HiddenEye-Legacy/WebPages/fb_standard/mobile_files/7ssg83RQmKQ.js

28 lines
57 KiB
JavaScript
Raw Normal View History

2019-06-23 11:28:33 +08:00
if (self.CavalryLogger) { CavalryLogger.start_js(["Ye1zm"]); }
__d("LoggedOutLocaleLoggingEvents",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({CHANGE_LANGUAGE_ACQUIRED:"change_language_acquired",MORE_LANGUAGE_CLICKED:"more_language_clicked",SUGGESTED_LOCALE:"suggested_locale"})}),null);
__d("MRegMultiStepConstants",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({BACK_BUTTON:"reg_back_button",BIRTHDAY_STEP_BODY:"birthday_step_body",BIRTHDAY_SELECTORS:"birthday_selectors",BIRTHDAY_WHY_LINK:"birthday_why_link",BIRTHDAY_WHY_TOGGLE_UNIT:"birthday_why_toggle_unit",BUTTON_BLOCK:"multi_step_next_button_block",CHANGE_LANGUAGE:"change_language",CONTACT_IMPORT_CONFIRMATION_ALLOW:"contact_import_confirmation_allow",CONTACT_IMPORT_CONFIRMATION_DENY:"contact_import_confirmation_deny",CONTACT_IMPORT_CONFIRMATION_SHOWN:"contact_import_confirmation_shown",CONTINUE_WITHOUT_LAST_NAME_LINK:"continue_without_last_name_link",COUNTRY_CODE_BUTTON:"country_code_button",COUNTRY_CODE_DISPLAY_CODE:"country_code_display_code",COUNTRY_CODE_DISPLAY_TEXT:"country_code_display_text",COUNTRY_CODE_OPTION:"country_code_option",COUNTRY_CODE_SELECTOR:"country_code_selector",COUNTRY_CODE_USER_SELECT_OPTION:"country_code_user_select_option",CP_INPUT:"contactpoint_step_input",CP_INPUT_LABEL:"contactpoint_step_input_label",CP_STEP_BODY:"contactpoint_step_body",CP_TITLE:"contactpoint_step_title",CP_TYPE_TOGGLE_UNIT:"contactpoint_type_toggle_unit",CUSTOM_GENDER_RADIO:"custom_gender_radio",CUSTOM_GENDER_SUBTEXT:"custom_gender_subtext",CUSTOM_GENDER_PRONOUN_SUBTEXT:"custom_gender_pronoun_subtext",DEFAULT_BIRTHDAY_POPUP_YES:"default_birthday_popup_yes",DID_USE_SUGGESTED_NAME_INPUT:"did_use_suggested_name_input",DISABLE_CONTACT_UPLOAD:"disable_contact_upload",DISMISS_NO_INTERNET_DIALOG:"dismiss_no_internet_dialog",DISPLAYED_STEP:"multi_step_displayed_step",HEADER_PREFILL_CP:"header_prefill_cp",EXIT_DIALOG_OVERLAY_YES:"exit_dialog_overlay_yes",EXIT_DIALOG_OVERLAY_NO:"exit_dialog_overlay_no",FIRSTNAME_CONTAINER:"firstname_container",FIRSTNAME_INPUT:"firstname_input",FIRSTNAME_LABEL:"firstname_label",FIRSTNAME_INPUT_LABEL:"firstname_input_label",FOCUS_ME:"focus_me",FOOTER_LANGUAGE_SELECTOR:"language_selector",FORM:"multi_step_form",FLYTRAP_LINK:"flytrap_link",FULLNAME_LABEL:"fullname_label",GENDER_STEP_BODY:"gender_step_body",HIDDEN:"hidden_elem",INPUT_AREA:"multi_step_input_area",LANGUAGE_SELECTOR:"multi_step_language_selector",LASTNAME_CONTAINER:"lastname_container",LASTNAME_INPUT:"lastname_input",LASTNAME_INPUT_LABEL:"lastname_input_label",LEGAL_TEXT:"legal_text",LEGAL_TEXT_LINKS:"legal_text_links",LEGAL_TEXT_CONTACT_IMPORTER:"legal_text_contact_importer",LEGAL_TEXT_KOREA:"legal_text_korea",LOGIN_LINK:"login_link",MASKED_CP:"masked_cp",MORE_LANGUAGE:"more_language",NAME_STEP_BODY:"name_step_body",NAME_STEP_BODY_TEXT:"name_step_body_text",NAME_STEP_LABEL:"name_step_label",NAME_STEP_TITLE_TEXT:"name_step_title_text",NAME_SUGGESTED_BUTTON:"name_suggested_button",NAME_SUGGESTION_BINARY:"name_suggestion_binary",NAME_SUGGESTION_PICKER:"name_suggestion_picker",NEXT:"multi_step_next",NONE_OF_THESE_NAMES_BUTTON:"none_of_these_names_button",NTIP_CP_FIELD:"ntip_cp_field",NTIP_FIRST_NAME_FIELD:"ntip_first_name_field",NTIP_LAST_NAME_FIELD:"ntip_last_name_field",NTIP_PASSWORD_FIELD:"ntip_password_field",NUM_SUBMITS:"num_submits",PASSWORD:"multi_step_password",PASSWORD_ACCEPT_BUTTON:"password_accept_button",PASSWORD_CHANGE_BUTTON:"password_change_button",PASSWORD_INPUT_LABEL:"password_input_label",PASSWORD_STEP_BODY:"password_step_body",PASSWORD_STEP_INPUT:"password_step_input",PASSWORD_STEP_TITLE:"password_step_title",PASSWORD_SUGGESTION:"multi_step_password_suggestion",PASSWORD_SUGGESTION_INPUT:"password_suggestion_input",PLAY_BUTTON:"audio_play_button",PROGRESS_BAR_STEP:"progress_bar_step",REG_ASSISTANT_CONTAINER:"reg_assistant_container",REG_ASSISTANT_CONTAINER_ABOVE_NEXT:"reg_assistant_above_next",REG_IMPRESSION_ID:"reg_impression_id",REMEMBER_PASSWORD_CREATING_ACCOUNT_DIALOG:"remember_password_creating_account_dialog",REMEMBER_PASSWORD_CP_VALUE:"remember_password_cp_value",REMEMBER_PASSWORD_CP_LABEL_EMAIL:"remember_password_cp_label_email",REMEMBER_PASSWORD_CP_LABEL_MOBILE:"remember_password_cp_label_email_mobile",REMEMBER_PASSWORD_HEADER:"remember_password_header",REMEMBER_PASSWORD_HEADER_LOGIN_COPY_MOBILE:"remember_password_header_login_copy_mobile",REM
__d("LoggedOutLocaleEventsClientLogger",["Banzai","BanzaiLogger","LoggedOutLocaleLoggingEvents","MRegMultiStepConstants"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(a,b){this.regInstance=b}var c=a.prototype;c.logLocaleEvent=function(a,c,d){a=a.getNode(b("MRegMultiStepConstants").CHANGE_LANGUAGE);if(a instanceof HTMLElement){a=a.dataset.locale;b("BanzaiLogger").create(b("Banzai").VITAL).log("LoggedOutLocaleEventsLoggerConfig",{event:b("LoggedOutLocaleLoggingEvents").CHANGE_LANGUAGE_ACQUIRED,reg_instance:this.regInstance,surface:d,switch_info:{endLocale:a,step:c}})}};c.logMoreLanguage=function(a,c){b("BanzaiLogger").create(b("Banzai").VITAL).log("LoggedOutLocaleEventsLoggerConfig",{event:b("LoggedOutLocaleLoggingEvents").MORE_LANGUAGE_CLICKED,reg_instance:this.regInstance,surface:c,switch_info:{step:a}})};return a}();e.exports=a}),null);
__d("IorgMaskHeaderPrefillTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(){this.$1={}}var c=a.prototype;c.log=function(){b("GeneratedLoggerUtils").log("logger:IorgMaskHeaderPrefillLoggerConfig",this.$1,b("Banzai").BASIC)};c.logVital=function(){b("GeneratedLoggerUtils").log("logger:IorgMaskHeaderPrefillLoggerConfig",this.$1,b("Banzai").VITAL)};c.logImmediately=function(){b("GeneratedLoggerUtils").log("logger:IorgMaskHeaderPrefillLoggerConfig",this.$1,{signal:!0})};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setEvent=function(a){this.$1.event=a;return this};c.setNumDigitsShown=function(a){this.$1.num_digits_shown=a;return this};c.setPhoneNumberLength=function(a){this.$1.phone_number_length=a;return this};c.setTime=function(a){this.$1.time=a;return this};c.setVC=function(a){this.$1.vc=a;return this};c.setWeight=function(a){this.$1.weight=a;return this};return a}();c={event:!0,num_digits_shown:!0,phone_number_length:!0,time:!0,vc:!0,weight:!0};e.exports=a}),null);
__d("ZeroJioHeaderTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(){this.$1={}}var c=a.prototype;c.log=function(){b("GeneratedLoggerUtils").log("logger:ZeroJioHeaderLoggerConfig",this.$1,b("Banzai").BASIC)};c.logVital=function(){b("GeneratedLoggerUtils").log("logger:ZeroJioHeaderLoggerConfig",this.$1,b("Banzai").VITAL)};c.logImmediately=function(){b("GeneratedLoggerUtils").log("logger:ZeroJioHeaderLoggerConfig",this.$1,{signal:!0})};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setAutoConfMatch=function(a){this.$1.auto_conf_match=a;return this};c.setAutoConfValidationParams=function(a){this.$1.auto_conf_validation_params=b("GeneratedLoggerUtils").serializeMap(a);return this};c.setCarrierID=function(a){this.$1.carrier_id=a;return this};c.setClearLoginPrefillReason=function(a){this.$1.clear_login_prefill_reason=a;return this};c.setEvent=function(a){this.$1.event=a;return this};c.setHeaderSignature=function(a){this.$1.header_signature=a;return this};c.setJioAPISurface=function(a){this.$1.jio_api_surface=a;return this};c.setPossibleSoftmatchUid=function(a){this.$1.possible_softmatch_uid=a;return this};c.setResponseTime=function(a){this.$1.response_time=a;return this};c.setTime=function(a){this.$1.time=a;return this};c.setTimeToPrefill=function(a){this.$1.time_to_prefill=a;return this};c.setUserRegisterPhoneNumber=function(a){this.$1.user_register_phone_number=a;return this};c.setVC=function(a){this.$1.vc=a;return this};c.setWeight=function(a){this.$1.weight=a;return this};return a}();c={auto_conf_match:!0,auto_conf_validation_params:!0,carrier_id:!0,clear_login_prefill_reason:!0,event:!0,header_signature:!0,jio_api_surface:!0,possible_softmatch_uid:!0,response_time:!0,time:!0,time_to_prefill:!0,user_register_phone_number:!0,vc:!0,weight:!0};e.exports=a}),null);
__d("LoginNativeButton",["BanzaiLogger","DOM"],(function(a,b,c,d,e,f){"use strict";var g="native_login_button_click_client";e.exports={init:function(a,c){b("DOM").listen(a,"click",null,function(a){this._logClick(c)}.bind(this))},_logClick:function(a){var c=b("BanzaiLogger").create({retry:!0,delay:0});c.log("PlatformLoggedOutEventsLoggerConfig",{event:g,logger_id:a})}}}),null);
__d("BrowserPrefillSource",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({BROWSER_DROPDOWN:"browser_dropdown",BROWSER_ONLOAD:"browser_onload",SERVER_PREFILL:"server_prefill",ATTEMPT_USER:"attempt_user",EMAIL_NOTIFICATION:"email_notification",HEADER:"header",IDENTIFIED_USER:"identified_user",LAST_LOGIN:"last_login",MOBILE_SUBNO_KEY:"mobile_subno_key",PROVIDED_OR_SOFT_MATCHED:"provided_or_soft_matched",TYPO_CORRECTED:"typo_corrected"})}),null);
__d("IorgMaskHeaderPrefillEvent",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({CLEAR_MASKED_PREFILL_LOGIN:"clear_masked_prefill_login",CLEAR_MASKED_PREFILL_REG:"clear_masked_prefill_reg",EDIT_MASKED_PREFILL_MBASIC_LOGIN:"edit_masked_prefill_mbasic_login",EDIT_MASKED_PREFILL_MBASIC_REG:"edit_masked_prefill_mbasic_reg",MASK_LOGIN_PREFILL:"mask_login_prefill",MASK_REG_PREFILL:"mask_reg_prefill"})}),null);
__d("JioClearLoginPrefillReason",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({HAS_USER_IN_ACCOUNT_SWITCHER:"has_user_in_account_switcher",LOGIN_FAILURE:"login_failure",LOGIN_FAILURE_UNRECOGNIZED_ACCOUNT:"login_failure_unrecognized_account",LOGIN_FAILURE_PW_ERROR:"login_failure_pw_error",LOGIN_FAILURE_NON_PW_ERROR:"login_failure_non_pw_error"})}),null);
__d("LocaleInteractiveSurface",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({REG:"registration",LOGIN:"login"})}),null);
__d("LoginFormKeys",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({BUTTON_KEY:"loginbutton",CUID:"cuid",EMAIL_FIELD_CONTAINER:"email_container",EMAIL_FIELD_KEY:"email",ERROR_BOX_KEY:"error_box",HEADER_BLOCK:"header_block",LOGIN_LINK:"login_link",NOT_ME_LINK:"not_me_link",PASSWORD_FIELD_KEY:"pass",PREFILL_CONTACT_POINT:"prefill_contact_point",PREFILL_SOURCE:"prefill_source",PREFILL_TYPE:"prefill_type",EMAIL_INPUT_CONTAINER:"email_input_container",FIRST_PREFILL_SOURCE:"first_prefill_source",FIRST_PREFILL_TYPE:"first_prefill_type",HAD_CP_PREFILLED:"had_cp_prefilled",HAD_PASSWORD_PREFILLED:"had_password_prefilled",AUTH_STEP_CP_DISPLAY:"step_two_cp_display",EMAIL_COMPONENTS_WRAPPER:"email_components_wrapper",PASSWORD_COMPONENTS_WRAPPER:"password_component_wrapper",USER_INFO_CONTAINER:"user_info_container",PWD_LABEL_CONTAINER:"pwd_label_container",OTP_RETRIEVE_DESC_CONTAINER:"otp_retrieve_desc_container",OTP_BUTTON_ELEM_CONTAINER:"otp_button_elem_container",OAUTH_LOGIN_BUTTON_CONTAINER:"oauth_login_button_container",OAUTH_LOGIN_DESC_CONTAINER:"oauth_login_desc_container",IS_SMART_LOCK:"is_smart_lock",HEADER_PREFILL_CP:"header_prefill_cp",USE_HEADER_PREFILL_CP:"use_header_prefill_cp",MASKED_CP:"masked_cp",IS_MTOUCH:"is_mtouch"})}),null);
__d("MButton",["cx","invariant","CSSCore","DOM"],(function(a,b,c,d,e,f,g,h){__p&&__p();var i="_2347";function j(a){b("DOM").isType(a,"button")||b("DOM").isType(a,"a")||h(0,2447,a.nodeType)}var k={isEnabled:function(a){j(a);return a.disabled===!1||b("DOM").isType(a,"a")&&!b("CSSCore").hasClass(a,i)},setEnabled:function(a,c){j(a);if(k.isEnabled(a)===c)return;b("DOM").isType(a,"button")?a.disabled=!c:(b("CSSCore").conditionClass(a,i,!c),c?(a.removeAttribute("tabindex"),a.removeAttribute("aria-disabled")):(a.setAttribute("tabindex","-1"),a.setAttribute("aria-disabled","true")))}};e.exports=k}),null);
__d("MLoginFormError",["cx","invariant","CSS","DOM"],(function(a,b,c,d,e,f,g,h){"use strict";var i="_3qsy",j="_3qs-";a={set:function(a,c){c!==null||h(0,653),b("CSS").addClass(a,i),b("CSS").addClass(a,j),b("DOM").listen(a,"input",null,function(c){b("CSS").removeClass(a,j)})},unset:function(a){b("CSS").removeClass(a,i),b("CSS").removeClass(a,j)}};e.exports=a}),null);
__d("MLoginFormSigils",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({FORM:"m_login_form",BUTTON:"m_login_button",BUTTON_ALT:"m_login_button_alt",NOTICE:"m_login_notice",UPSELL:"m_login_upsell",EMAIL_INPUT:"m_login_email",PASSWORD_INPUT:"m_login_password",TRY_NUMBER:"m_login_try_number",UNRECOGNIZED_TRIES_COUNT:"m_login_unrecognized_tries",MORE_LINKS:"m_login_more_links",NEXT_BUTTON:"m_login_next_btn",CP_TEXT:"m_login_cp_text",LANGUAGE_SELECTOR:"language_selector",LOGIN_IDENTIFY_STEP_ELEMENT:"login_identify_step_element",LOGIN_IDENTIFY_STEP_PROGRESS_BAR:"login_identify_step_progress_bar",LOGIN_PASSWORD_STEP_ELEMENT:"login_password_step_element",CHANGE_CP_LINK:"m_login_change_cp_link",REG_BUTTON:"m_reg_button",CONTACTPOINT_EXISTS:"contactpoint_exists",RECOGNIZED_USER_NAME_HOLDER:"m_recognized_user_name",PROFILE_PIC_ELEM:"profile_pic_elem",CONTACTPOINT_DISPLAY_LABEL:"contactpoint_display_label",ONE_TIME_PASSWORD_LINK:"one_time_password_link",PASSWORD_FIELD_LABEL:"password_field_label",OTP_RETRIEVE_DESC:"otp_retrieve_desc",FORGOT_PASSWORD_URI:"forgot_password_uri",USER_INFO_ELEM_PAYLOAD:"two_steps_after_failuer_payload",OAUTH_LOGIN_ELEM_PAYLOAD:"oauth_login_elem_payload",FAMILY_AUTH_LOGIN_ELEM_PAYLOAD:"family_auth_login_elem_payload",FAMILY_AUTH_LOGIN_BUTTON:"family_auth_login_button",USER_INFO_AFTER_FAILURE_ELEMENT:"user_info_after_failure_element",USER_NAME:"user_name",OTP_URI:"otp_uri",FORM_TITLE:"m_login_form_title",FOOTER:"m_login_footer"})}),null);
__d("JioAPISurface",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({LOGIN:"login",REG:"reg",ACCOUNT_RECOVERY:"account_recovery"})}),null);
__d("ZeroClientAutoConfParam",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({FB_JIO_MSISDN_VALUE:"fb_jio_msisdn_value",FB_JIO_MSISDN_TIMESTAMP:"fb_jio_msisdn_timestamp",FB_JIO_MSISDN_SIGNATURE:"fb_jio_msisdn_signature",FB_JIO_MSISDN_SALT:"fb_jio_msisdn_salt"})}),null);
__d("ZeroJioHeaderEvent",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({ACCOUNT_RECOVERY_PREFILL:"account_recovery_prefill",LOGIN_PREFILL:"login_prefill",LOGIN_PREFILL_ATTEMPT:"login_prefill_attempt",LOGIN_FORM_LOAD_SERVER:"login_form_load_server",LOGIN_FORM_INIT_CLIENT:"login_form_init_client",LOGIN_FORM_LOAD_CLIENT:"login_form_load_client",REG_AUTO_CONF:"reg_auto_conf",REG_AUTO_CONF_VALIDATION:"reg_auto_conf_validation",REG_PREFILL_ATTEMPT:"reg_prefill_attempt",REG_PREFILL:"reg_prefill",PREFILL_AFTER_LOGIN_FAILUIRE:"prefill_after_login_failuire",ACCOUNT_RECOVERY_PREFILL_EX:"account_recovery_prefill_ex",LOGIN_PREFILL_EX:"login_prefill_ex",REG_AUTO_CONF_EX:"reg_auto_conf_ex",REG_PREFILL_EX:"reg_prefill_ex",CLEAR_LOGIN_PREFILL:"clear_login_prefill",JIO_API_REQUEST:"jio_api_request",JIO_API_RESPONSE:"jio_api_response",REG_FORM_LOAD_SERVER:"reg_form_load_server",REG_FORM_INIT_CLIENT:"reg_form_init_client",REG_FORM_LOAD_CLIENT:"reg_form_load_client"})}),null);
__d("MMsisdnJioApiModule",["DateConsts","DOM","JioAPISurface","KaiOSController","KaiOSSendMessageUtil","WebStorage","ZeroClientAutoConfParam","ZeroJioHeaderEvent","ZeroJioHeaderTypedLogger","promiseDone"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g="login_identify_search_placeholder",h=2;function a(a){__p&&__p();var c=b("WebStorage").getLocalStorage();if(c){var d=a.get("msisdn");c.setItem(b("ZeroClientAutoConfParam").FB_JIO_MSISDN_VALUE,d?d:"");d=a.get("timeStamp");c.setItem(b("ZeroClientAutoConfParam").FB_JIO_MSISDN_TIMESTAMP,d?d:"");d=a.get("signature");c.setItem(b("ZeroClientAutoConfParam").FB_JIO_MSISDN_SIGNATURE,d?d:"");d=a.get("unique");c.setItem(b("ZeroClientAutoConfParam").FB_JIO_MSISDN_SALT,d?d:"")}}function c(){__p&&__p();var a=b("WebStorage").getLocalStorage();if(!a)return null;var c=a.getItem(b("ZeroClientAutoConfParam").FB_JIO_MSISDN_TIMESTAMP);if(!c||Date.now()>Number(c)+h*b("DateConsts").MS_PER_DAY)return null;c=a.getItem(b("ZeroClientAutoConfParam").FB_JIO_MSISDN_VALUE);var d=a.getItem(b("ZeroClientAutoConfParam").FB_JIO_MSISDN_TIMESTAMP),e=a.getItem(b("ZeroClientAutoConfParam").FB_JIO_MSISDN_SIGNATURE);a=a.getItem(b("ZeroClientAutoConfParam").FB_JIO_MSISDN_SALT);if(!c||!d||!e||!a)return null;var f=new Map();f.set(b("ZeroClientAutoConfParam").FB_JIO_MSISDN_VALUE,c);f.set(b("ZeroClientAutoConfParam").FB_JIO_MSISDN_TIMESTAMP,d);f.set(b("ZeroClientAutoConfParam").FB_JIO_MSISDN_SIGNATURE,e);f.set(b("ZeroClientAutoConfParam").FB_JIO_MSISDN_SALT,a);return f}function d(a,c,d){__p&&__p();d&&new(b("ZeroJioHeaderTypedLogger"))().setEvent(b("ZeroJioHeaderEvent").LOGIN_PREFILL_ATTEMPT).log();var e=Date.now();d&&i(b("JioAPISurface").LOGIN);b("promiseDone")(b("KaiOSController").waitForKaiOS(),function(){b("KaiOSController").sendMessageToAppWithCallback(b("KaiOSSendMessageUtil").Type.FETCH_MSISDN,function(f){d&&j(Date.now()-e,b("JioAPISurface").LOGIN);f=f.get("msisdn");var g=!1;c>0&&(g=Date.now()-e<1e3*c);f&&!a.value&&g&&(a.value=f,d&&new(b("ZeroJioHeaderTypedLogger"))().setEvent(b("ZeroJioHeaderEvent").LOGIN_PREFILL).setTimeToPrefill(Date.now()-e).log())})})}function f(){var a=Date.now();i();b("promiseDone")(b("KaiOSController").waitForKaiOS(),function(){b("KaiOSController").sendMessageToAppWithCallback(b("KaiOSSendMessageUtil").Type.FETCH_MSISDN,function(b){j(Date.now()-a);var c=b.get("msisdn");c&&l.cacheMsisdn(b)})})}function i(a){new(b("ZeroJioHeaderTypedLogger"))().setEvent(b("ZeroJioHeaderEvent").JIO_API_REQUEST).setJioAPISurface(a).log()}function j(a,c){new(b("ZeroJioHeaderTypedLogger"))().setEvent(b("ZeroJioHeaderEvent").JIO_API_RESPONSE).setResponseTime(a).setJioAPISurface(c).log()}function k(a){var c=Date.now(),d=b("DOM").find(a,"input",g);d.value||(i(b("JioAPISurface").ACCOUNT_RECOVERY),b("promiseDone")(b("KaiOSController").waitForKaiOS(),function(){b("KaiOSController").sendMessageToAppWithCallback(b("KaiOSSendMessageUtil").Type.FETCH_MSISDN,function(a){j(Date.now()-c,b("JioAPISurface").ACCOUNT_RECOVERY);a=a.get("msisdn");a&&(d.value=a,new(b("ZeroJioHeaderTypedLogger"))().setEvent(b("ZeroJioHeaderEvent").ACCOUNT_RECOVERY_PREFILL).setTimeToPrefill(Date.now()-c).log())})}))}var l={cacheMsisdn:a,getCachedMsisdn:c,prefillMsisdnForLogin:d,prefillMsisdnForAccountRecovery:k,logAPIRequest:i,logAPIResponse:j,fetchMsisdnAndCache:f};e.exports=l}),null);
__d("XLoginProfileInfoFetcherController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/login/pp/",{contactpoint:{type:"String"},pwdprefill:{type:"Bool",defaultValue:!1}})}),null);
__d("XZeroTokenHeaderUserConsentProcessController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/mobile/zero/TOS_process/",{})}),null);
__d("MLoginController",["cx","fbt","BanzaiLogger","BrowserPrefillSource","CSS","DataStore","DeferredCookie","DOM","Event","FBLogger","FBSiteWhiteOps","IorgMaskHeaderPrefillEvent","IorgMaskHeaderPrefillTypedLogger","JioClearLoginPrefillReason","KaiOSSpatialNavEvents","Keys","LocaleInteractiveSurface","LoggedOutLocaleEventsClientLogger","LoginFormKeys","MAjaxify","MAnimator","MButton","MHistory","MLoginFormError","MLoginFormSigils","MMsisdnJioApiModule","MPasswordPlainTextToggleSigils","MRegMultiStepConstants","MRequest","MViewport","Run","Stratcom","SubscriptionsHandler","URI","XLoginProfileInfoFetcherController","XZeroTokenHeaderUserConsentProcessController","ZeroJioHeaderEvent","ZeroJioHeaderTypedLogger","ge","goURI","uuid"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i="_pg8",j="stepOneIdentification",k="stepTwoAuthenticaiton",l="auth",m=500,n=5;a={_initTwoStepsListeners:function(){__p&&__p();var a=this,c=new(b("SubscriptionsHandler"))();c.addSubscriptions(b("Stratcom").listen("click",b("MLoginFormSigils").CHANGE_CP_LINK,function(b){b.prevent(),a._logAction("clicked_not_you"),a._showEditableCPFieldOnAuthStep()}),b("Stratcom").listen("m:history:change",null,function(a){var c=a.getData();if(c.path){c=new(b("URI"))(c.path);this._initialURI.getPath()===c.getPath()&&(a.prevent(),a.getData().soft===l?this._onEnteringCP():this._onBackToCP())}}.bind(this)),b("Stratcom").listen("click",b("MLoginFormSigils").NEXT_BUTTON,this._handleNextButtonClick.bind(this)));b("DOM").listen(this.oneTimePasswordLink,"click",null,this._onSendOneTimePassword.bind(this));b("Stratcom").listen("m:page:unload",null,function(){b("Stratcom").removeCurrentListener(),c.release()})},initRegButton:function(a){var c=a.root;this.regURI=a.regURI;this.regButton=b("DOM").find(c,"a",b("MLoginFormSigils").REG_BUTTON);this.regButton.removeAttribute("href");b("DOM").listen(this.regButton,"click",null,this._sendLoginRequestFromReg.bind(this))},initCloseButton:function(a){b("DOM").listen(a,"click",null,function(){window.close()})},initForgotAccountLink:function(a){this.originalURL=a.root.getAttribute("href"),a.root.removeAttribute("href"),b("DOM").listen(a.root,"click",null,this._redirectToPrefilledForgotPassword.bind(this))},initLoginPageEvents:function(){var a=this;b("Stratcom").listen("m:login:submit-form",null,function(){return a._handleSubmitButtonClick()})},initLoginForm:function(a){__p&&__p();var c=this;this.root=a.root;this.isTwoStepsLogin=a.isTwoStepsLogin;this.isActionLoggingEnabled=a.isActionLoggingEnabled;this.shouldPrefillHeaderJio=a.shouldPrefillHeaderJio;this.shouldPrefillAfterLoginFailure=a.shouldPrefillAfterLoginFailure;this.shouldPrefillJioHeaderForRegFromLogin=a.shouldPrefillJioHeaderForRegFromLogin;this.shouldClearPrefillAfterLoginFailure=a.shouldClearPrefillAfterLoginFailure;this.shouldClearPrefillIfInvalidNumber=a.shouldClearPrefillIfInvalidNumber;this.shouldClearPrefillIfPwError=a.shouldClearPrefillIfPwError;this.shouldClearPrefillIfNonePwError=a.shouldClearPrefillIfNonePwError;this.jioPrefillTimeRange=a.jioPrefillTimeRange;this.jioPrefilled=!1;this.igCPLogin=!1;this.shouldProcessUserConsentForTokenHeader=a.shouldProcessUserConsentForTokenHeader;this.onErrorRegURI=a.onErrorRegURI;this.loginForm=b("DOM").find(this.root,"form",b("MLoginFormSigils").FORM);this.loginForm.action=a.ajaxURI;this.loginButton=b("DOM").find(this.root,"button",b("MLoginFormSigils").BUTTON);var d=b("DOM").scry(this.root,"a",b("MLoginFormSigils").BUTTON_ALT);d=d.pop();this.loginButtonAlt=null;this.isSmartLock=b("ge")(b("LoginFormKeys").IS_SMART_LOCK);this.shouldRunBotDetection=a.shouldRunBotDetection;this.clearPrefillMaskOnKeydown=a.clearPrefillMaskOnKeydown;d!==void 0&&(this.loginButtonAlt=d);a.shouldShowSmartLockSelector&&this._initSmartLockAccountChooser();this.shouldPrefillHeaderJio&&new(b("ZeroJioHeaderTypedLogger"))().setEvent(b("ZeroJioHeaderEvent").LOGIN_FORM_INIT_CLIENT).log();this.isTwoStepsLogin?(this.hadCPPrefilled=!1,this.shouldClearPasswordIfOnlyPasswordPrefilled=!0,this._initialURI=b("URI").getRequestURI(),this.shouldAutoLandOnStep2=a.shouldAutoLa
__d("MLoginView",["cx","CSS","DeferredCookie","DOM","KaiOSSpatialNavEvents","MButton","MLoginFormSigils","Stratcom","ge"],(function(a,b,c,d,e,f,g){__p&&__p();var h={disableOnSubmit:function(a,c){b("DOM").listen(a,"submit",null,function(){b("DeferredCookie").flushAllCookies(),b("MButton").setEnabled(c,!1),window.setTimeout(b("MButton").setEnabled.bind(null,c,!0),15e3)})},appSwitch:function(a){window.location.replace(a)},showForm:function(a,c,d){__p&&__p();b("DOM").listen(a,"click",null,function(d){b("DOM").remove(a);b("CSS").removeClass(c,"_7tb");d=b("DOM").scry(b("ge")("root"),"div",b("MLoginFormSigils").FORM_TITLE);if(d.length>0){d=d[0];d instanceof HTMLElement&&b("DOM").remove(d)}window.setTimeout(function(){b("Stratcom").invoke(b("KaiOSSpatialNavEvents").REFRESH,null,null),h.snapFocusToUsernameTextField()},150)})},snapFocusToRegButton:function(){b("Stratcom").listen(b("KaiOSSpatialNavEvents").INIT_COMPLETE,null,function(){var a=b("ge")("signup-button");a=a?b("DOM").find(a,"a"):null;a instanceof HTMLElement&&a.focus()})},snapFocusToUsernameTextField:function(){var a=b("ge")(b("MLoginFormSigils").EMAIL_INPUT);a=a?b("DOM").find(a,"input"):null;a instanceof HTMLElement&&a.focus()}};e.exports=h}),null);
__d("BrowserPrefillType",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({CONTACT_POINT:"contact_point",PASSWORD:"password"})}),null);
__d("LoginEvent",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({LOGIN_FAILURE:"login_failure",LOGIN_SUCCESS:"login_success",SESSION_TERMINATION:"session_termination",SESSION_UPDATE:"session_update",SESSION_FETCH:"session_fetch",SESSION_VALIDATION:"session_validation",CHANGED_USER_IDENTIFIER:"changed_user_identifier",CLICKED_NEXT:"clicked_next",CLICKED_NEXT_USER_IDENTIFIER_BLANK:"clicked_next_user_identifier_blank",CLICKED_NEXT_USER_IDENTIFIER_FILLED:"clicked_next_user_identifier_filled",PASSWORD_ENTRY_VIEWED:"password_entry_viewed",CHANGED_PASSWORD:"changed_password",CLICKED_BACK:"clicked_back",CLICKED_SUBMIT:"clicked_submit",CLICKED_SUBMIT_PASSWORD_BLANK:"clicked_submit_password_blank",CLICKED_SUBMIT_PASSWORD_FILLED:"clicked_submit_password_filled",CLICKED_SUBMIT_IDENTIFIER_BLANK:"clicked_submit_identifier_blank",CLICKED_SUBMIT_IDENTIFIER_FILLED:"clicked_submit_identifier_filled",FORM_LOAD_CLIENT:"form_load_client",FORM_LOAD:"form_load",FORM_FOCUS:"form_focus",CLICKED_REG_IDENTIFIER_BLANK:"clicked_reg_identifier_blank",CLICKED_REG_IDENTIFIER_FILLED:"clicked_reg_identifier_filled",CLICKED_REG_PASSWORD_BLANK:"clicked_reg_password_blank",CLICKED_REG_PASSWORD_FILLED:"clicked_reg_password_filled",CLICKED_LANGUAGE_SELECTOR:"clicked_language_selector",CLICKED_ON_LOGIN_SCREEN:"clicked_on_login_screen",BROWSER_AUTOCOMPLETE:"browser_autocomplete",INVALID_CONTACTPOINT:"invalid_contactpoint",VALID_CONTACTPOINT:"valid_contactpoint",SHOWN_OTP_LINK:"shown_otp_link",CLICKED_OTP_LINK:"clicked_otp_link",CLICKED_NOT_YOU:"clicked_not_you",LOGIN_WITH_REMOVED_CP_CORRECT_PW:"login_with_removed_cp_correct_pw",SMART_LOCK_SELECTED:"smart_lock_selected",SMART_LOCK_CANCELED:"smart_lock_canceled",SMART_LOCK_SHOWED:"smart_lock_showed",SMART_LOCK_SUPPORTED:"smart_lock_supported"})}),null);
__d("DamerauLevenshtein",[],(function(a,b,c,d,e,f){__p&&__p();a={DamerauLevenshteinDistance:function(a,b){__p&&__p();if(a.length===0)return b.length;if(b.length===0)return a.length;if(a===b)return 0;var c,d,e=[];e[0]=[];e[1]=[];e[2]=[];for(d=0;d<=b.length;d++)e[0][d]=d;for(c=1;c<=a.length;c++)for(d=1;d<=b.length;d++){e[c%3][0]=c;var f=a.charAt(c-1)===b.charAt(d-1)?0:1;e[c%3][d]=Math.min(e[(c-1)%3][d]+1,e[c%3][d-1]+1,e[(c-1)%3][d-1]+f);c>1&&d>1&&a.charAt(c-1)==b.charAt(d-2)&&a.charAt(c-2)==b.charAt(d-1)&&(e[c%3][d]=Math.min(e[c%3][d],e[(c-2)%3][d-2]+f))}return e[a.length%3][b.length]}};e.exports=a}),null);
__d("BrowserPrefillLogging",["BanzaiLogger","BrowserPrefillSource","BrowserPrefillType","DamerauLevenshtein","LoginEvent","LoginFormKeys","ge"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={initContactpointFieldLogging:function(a){this.contactpointFieldID=a.contactpointFieldID;this._updateContactpoint();this.serverPrefillContactpoint=a.serverPrefill;a=b("ge")(this.contactpointFieldID);if(a==null)return;a.addEventListener("input",this._mayLogContactpointPrefillViaDropdown.bind(this));window.addEventListener("load",this._mayLogContactpointPrefillOnload.bind(this));return},registerCallback:function(a){this.regeisteredCallbacks=this.regeisteredCallbacks||[],this.regeisteredCallbacks.push(a)},_invokeCallbacks:function(a,b){if(this.regeisteredCallbacks==null||this.regeisteredCallbacks.size===0)return;this.regeisteredCallbacks.forEach(function(c){c(a,b)})},initPasswordFieldLogging:function(a){this.passwordFieldID=a.passwordFieldID;this._updatePassword();a=b("ge")(this.passwordFieldID);if(a==null)return;a.addEventListener("input",this._mayLogPasswordPrefillViaDropdown.bind(this));window.addEventListener("load",this._mayLogPasswordPrefillOnload.bind(this))},updatePrefill:function(a,c,d){var e=b("ge")(b("LoginFormKeys").PREFILL_SOURCE),f=b("ge")(b("LoginFormKeys").PREFILL_TYPE),g=b("ge")(b("LoginFormKeys").FIRST_PREFILL_SOURCE),h=b("ge")(b("LoginFormKeys").FIRST_PREFILL_TYPE),i=b("ge")(b("LoginFormKeys").HAD_CP_PREFILLED),j=b("ge")(b("LoginFormKeys").HAD_PASSWORD_PREFILLED),k=b("ge")(b("LoginFormKeys").PREFILL_CONTACT_POINT);e!=null&&(e.value=c);f!=null&&(f.value=d);k!=null&&a!=null&&(k.value=a);h!=null&&(h.value==null||h.value=="")&&(h.value=d);g!=null&&(g.value==null||g.value=="")&&(g.value=c);i!=null&&(i.value==null||i.value==="false")&&d===b("BrowserPrefillType").CONTACT_POINT&&(i.value="true");j!=null&&(j.value==null||j.value==="false")&&d===b("BrowserPrefillType").PASSWORD&&(j.value="true")},_mayLogContactpointPrefillOnload:function(){this._updateContactpoint();if(this.previousContactpoint==null||this.previousContactpoint==="")return;var a=this.previousContactpoint===this.serverPrefillContactpoint?b("BrowserPrefillSource").SERVER_PREFILL:b("BrowserPrefillSource").BROWSER_ONLOAD;this._logBrowserPrefill(a,b("BrowserPrefillType").CONTACT_POINT);this._invokeCallbacks(a,b("BrowserPrefillType").CONTACT_POINT)},_mayLogPasswordPrefillOnload:function(){this._updatePassword();if(this.previousPassword==null||this.previousPassword==="")return;this._logBrowserPrefill(b("BrowserPrefillSource").BROWSER_ONLOAD,b("BrowserPrefillType").PASSWORD);this._invokeCallbacks(b("BrowserPrefillSource").BROWSER_ONLOAD,b("BrowserPrefillType").PASSWORD)},_mayLogContactpointPrefillViaDropdown:function(){__p&&__p();var a=b("ge")(this.contactpointFieldID);if(a==null||a.value==null)return;if(this._isBrowserPrefill(this.previousContactpoint,a.value)===!1){this._updateContactpoint();return}this._updateContactpoint();this._logBrowserPrefill(b("BrowserPrefillSource").BROWSER_DROPDOWN,b("BrowserPrefillType").CONTACT_POINT);this._invokeCallbacks(b("BrowserPrefillSource").BROWSER_DROPDOWN,b("BrowserPrefillType").CONTACT_POINT)},_mayLogPasswordPrefillViaDropdown:function(){__p&&__p();var a=b("ge")(this.passwordFieldID);if(a==null||a.value==null)return;if(this._isBrowserPrefill(this.previousPassword,a.value)===!1){this._updatePassword();return}this._updatePassword();this._logBrowserPrefill(b("BrowserPrefillSource").BROWSER_DROPDOWN,b("BrowserPrefillType").PASSWORD);this._invokeCallbacks(b("BrowserPrefillSource").BROWSER_DROPDOWN,b("BrowserPrefillType").PASSWORD)},_isBrowserPrefill:function(a,c){if(c==="")return!1;if(c===a)return!1;if(c.length===1||a.length===c.length+1||c.length===a.length+1)return!1;var d=b("DamerauLevenshtein").DamerauLevenshteinDistance(c,a);return d===a.length-c.length?!1:!0},_updateContactpoint:function(){var a=b("ge")(this.contactpointFieldID);this.previousContactpoint=a!=null&&a.value!=null?a.value:""},_updatePassword:function(){var a=b("ge")(this.passwordFieldID);this.previousPassword=a!=null&&a.value!=null?a.value:""},_logBrowserPrefill: