HiddenEye-Legacy/WebPages/fb_standard/mobile_files/7ssg83RQmKQ.js
2019-06-23 08:28:33 +05:00

28 lines
57 KiB
JavaScript

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",REMEMBER_PASSWORD_HEADER_LOGIN_COPY_EMAIL:"remember_password_header_login_copy_email",REMEMBER_PASSWORD_SUBTITLE_EMAIL:"remember_password_subtitle_email",REMEMBER_PASSWORD_SUBTITLE_LOGIN_COPY:"remember_password_subtitle_login_copy",REMEMBER_PASSWORD_SUBTITLE_MOBILE:"remember_password_subtitle_mobile",REMEMBER_PASSWORD_OK_BUTTON:"remember_password_ok_button",REMEMBER_PASSWORD_PASSWORD_VALUE:"remember_password_password_value",REMEMBER_PASSWORD_SHOW_LOGIN_INFO_DIALOG:"remember_password_show_login_info_dialog",REMEMBER_PASSWORD_SPINNER:"remember_password_spinner",SAVE_PASSWORD:"multi_step_save_password",SKIP_PASSWORD:"multi_step_skip_password",SKIP_PASSWORD_INPUT:"multi_step_skip_password_input",SKIP_PW_GO_BACK:"multi_step_skip_pw_go_back",SKIP_PW_SIGN_UP:"multi_step_skip_pw_sign_up",STEP_TITLE_TEXT:"step_title_text",STEP_BODY_TEXT:"step_body_text",STOP_BUTTON:"audio_stop_button",SUBMIT:"multi_step_submit",SUGGEST_NEW_PASSWORD_BUTTON:"suggest_new_password_button",SWITCH_EMAIL_TO_PHONE:"switch_email_to_phone",SWITCH_PHONE_TO_EMAIL:"switch_phone_to_email",TOGGLE_MONONYM_LINK:"toggle_mononym_link",TOGGLE_MONONYM_OFF_ERROR:"toggle_mononym_off_error",TOGGLE_MONONYM_ON_ERROR:"toggle_mononym_on_error",TOP_BAR:"top_bar",UPLOAD_CONTACTS:"upload_contacts",USE_HEADER_PREFILL_CP:"use_header_prefill_cp",USE_MONONYM:"use_mononym",WAS_ELIGIBLE_FOR_NAME_SUGGESTIONS_INPUT:"was_eligible_for_name_suggestions_input",WAS_SHOWN_NAME_SUGGESTIONS_INPUT:"was_shown_name_suggestions_input",WELCOME_STEP_BUTTON:"welcome_step_button",WRAPPER:"multi_step_input_wrapper",ZERO_HEADER_AF_CLIENT:"zero_header_af_client"})}),null);
__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.shouldAutoLandOnStep2,this.prefillContactpointHiddenInput=b("ge")(b("LoginFormKeys").PREFILL_CONTACT_POINT),this.emailComponentsWrapper=b("ge")(b("LoginFormKeys").EMAIL_COMPONENTS_WRAPPER),this.passwordComponentWrapper=b("ge")(b("LoginFormKeys").PASSWORD_COMPONENTS_WRAPPER),this.stepTwoCPDisplayContainer=b("ge")(b("LoginFormKeys").AUTH_STEP_CP_DISPLAY),this.shouldEnableOneTimePassword=a.shouldEnableOneTimePassword,this.nextButton=b("DOM").find(this.root,"button",b("MLoginFormSigils").NEXT_BUTTON),this.cpText=b("DOM").scry(this.root,"span",b("MLoginFormSigils").CP_TEXT).pop(),this.cpDisplayLabel=b("DOM").scry(this.root,"span",b("MLoginFormSigils").CONTACTPOINT_DISPLAY_LABEL).pop(),this.passwordFieldLabel=b("DOM").scry(this.root,"span",b("MLoginFormSigils").PASSWORD_FIELD_LABEL).pop(),this.profilePicElem=b("DOM").scry(this.root,"*",b("MLoginFormSigils").PROFILE_PIC_ELEM).pop(),this.oneTimePasswordLink=b("DOM").scry(this.root,"a",b("MLoginFormSigils").ONE_TIME_PASSWORD_LINK).pop(),this.otpSentMsg=b("DOM").scry(this.root,"div",b("MLoginFormSigils").OTP_RETRIEVE_DESC).pop(),this.userName=b("DOM").scry(this.root,"span",b("MLoginFormSigils").RECOGNIZED_USER_NAME_HOLDER).pop(),this.moreLinks=b("DOM").scry(this.root,"div",b("MLoginFormSigils").MORE_LINKS).pop(),this.progressBar=b("DOM").find(this.root.ownerDocument,"div",b("MLoginFormSigils").LOGIN_IDENTIFY_STEP_PROGRESS_BAR),this.languageSelector=b("DOM").find(this.root.ownerDocument,"div",b("MLoginFormSigils").LANGUAGE_SELECTOR),this.identifyStepElements=b("DOM").scry(this.root.ownerDocument,"div",b("MLoginFormSigils").LOGIN_IDENTIFY_STEP_ELEMENT),this.identifyStepElements.push(this.languageSelector),this.passwordStepElements=b("DOM").scry(this.root.ownerDocument,"div",b("MLoginFormSigils").LOGIN_PASSWORD_STEP_ELEMENT),this._initTwoStepsListeners(),b("DataStore").set(this.loginForm,"step",j)):this.prefillContactpointHiddenInput=b("ge")(b("MLoginFormSigils").EMAIL_INPUT);this.loginButton.type="button";this.notice=b("DOM").find(this.root,"div",b("MLoginFormSigils").NOTICE);this.emailInput=this._getElem("input",b("MLoginFormSigils").EMAIL_INPUT);this.passwordInput=this._getElem("div",b("MLoginFormSigils").PASSWORD_INPUT);this.emailInputContainer=b("ge")(b("LoginFormKeys").EMAIL_INPUT_CONTAINER);this.passwordInputDOM=b("DOM").find(this.passwordInput,"input");this.tryNumber=this._getElem("input",b("MLoginFormSigils").TRY_NUMBER);this.unrecognizedTriesCountInput=this._getElem("input",b("MLoginFormSigils").UNRECOGNIZED_TRIES_COUNT);this.upsell=this._getElem("div",b("MLoginFormSigils").UPSELL);this.numPasswordErrorAttempts=0;this.unrecognizedContactpointErrorCount=0;this.rapidFeedbackUri=a.rapidFeedbackUri;this.originalPasswordPlaceholder=this.passwordInputDOM.getAttribute("placeholder");this.userInfoContainer=b("ge")(b("LoginFormKeys").USER_INFO_CONTAINER);this.oauthLoginButtonContainer=b("ge")(b("LoginFormKeys").OAUTH_LOGIN_BUTTON_CONTAINER);this.oauthLoginDescContainer=b("ge")(b("LoginFormKeys").OAUTH_LOGIN_DESC_CONTAINER);this.passwordLabelContainer=b("ge")(b("LoginFormKeys").PWD_LABEL_CONTAINER);this.otpButtonContainer=b("ge")(b("LoginFormKeys").OTP_BUTTON_ELEM_CONTAINER);this.otpRetrieveDescContainer=b("ge")(b("LoginFormKeys").OTP_RETRIEVE_DESC_CONTAINER);this.userInfoAfterFailureElements=b("DOM").scry(this.root.ownerDocument,"div",b("MLoginFormSigils").USER_INFO_AFTER_FAILURE_ELEMENT);this.otpPasswordPlaceholder=h._("Password or one-off password");this.shouldPrefillJioHeaderForRegFromLogin&&b("MMsisdnJioApiModule").fetchMsisdnAndCache();this.shouldPrefillHeaderJio&&this.prefillContactpointHiddenInput!==null&&!this.prefillContactpointHiddenInput.value&&(b("MMsisdnJioApiModule").prefillMsisdnForLogin(this.emailInput,this.jioPrefillTimeRange,!0),this.jioPrefilled=!0);b("DOM").listen(this.loginButton,"click",null,this._handleSubmitButtonClick.bind(this));this.loginButtonAlt!==null&&b("DOM").listen(this.loginButtonAlt,"click",null,this._handleSubmitButtonClick.bind(this));this.hiddenInputPrefillSource=b("ge")(b("LoginFormKeys").PREFILL_SOURCE);this.useHeaderPrefillCP=b("ge")(b("LoginFormKeys").USE_HEADER_PREFILL_CP);this.hiddenInputPrefillSource!==null&&this.hiddenInputPrefillSource.value===b("BrowserPrefillSource").HEADER&&this.clearPrefillMaskOnKeydown===!0&&b("DOM").listen(this.emailInput,"keydown",null,function(a){this.clearPrefillMaskOnKeydown===!0&&(this.clearPrefillMaskOnKeydown=!1,this.emailInput.value="",this.useHeaderPrefillCP!==null&&(this.useHeaderPrefillCP.value="false"),new(b("IorgMaskHeaderPrefillTypedLogger"))().setEvent(b("IorgMaskHeaderPrefillEvent").CLEAR_MASKED_PREFILL_LOGIN).log())}.bind(this));d=a.listenKeyDown?"keydown":"keyup";this.isTwoStepsLogin?(this.nextButton.setAttribute("type","button"),this.passwordInputDOM.setAttribute("tabindex",-1),b("DOM").listen(this.loginForm,"keydown",null,function(a){a.getRawEvent().keyCode===b("Keys").RETURN?b("DataStore").get(this.loginForm,"step","")===j?this._handleNextButtonClick():this._handleSubmitButtonClick():a.getRawEvent().keyCode===b("Keys").TAB&&b("DataStore").get(this.loginForm,"step","")===j&&this._handleNextButtonClick()}.bind(this))):a.shouldDisableSubmitOnEnter?this.initLoginPageEvents():b("DOM").listen(this.loginForm,d,null,function(a){a.getRawEvent().keyCode===b("Keys").RETURN&&this._handleSubmitButtonClick()}.bind(this));a.clearOnDelete&&b("DOM").listen(this.emailInput,d,null,function(a){a.getRawEvent().keyCode===b("Keys").BACKSPACE&&(this.emailInput.value="")}.bind(this));if(this.isActionLoggingEnabled){b("Stratcom").listen("change",b("MLoginFormSigils").EMAIL_INPUT,function(a){this._logAction("changed_user_identifier"),this.shouldDisplayOTPMsg=!1,this.displayOTPLink=!1,this._rerenderAuthStepCPDisplay()}.bind(this));b("Stratcom").listen("change",b("MLoginFormSigils").PASSWORD_INPUT,function(a){this._logAction("changed_password")}.bind(this));b("Stratcom").listen("click",b("MLoginFormSigils").REG_BUTTON,function(a){this.emailInput.value===""?this._logAction("clicked_reg_identifier_blank"):this._logAction("clicked_reg_identifier_filled"),this.passwordInputDOM.value===""?this._logAction("clicked_reg_password_blank"):this._logAction("clicked_reg_password_filled")}.bind(this));b("Stratcom").listen("click",b("MLoginFormSigils").LANGUAGE_SELECTOR,function(a){c.clickedLanguageSelector||(c._logAction("clicked_language_selector"),c.clickedLanguageSelector=!0)});b("Event").listen(this.root,"click",function(){c._logAction("clicked_on_login_screen")});this.hasFocusedAlready=!1;b("Run").onAfterLoad(function(){this._logAction("form_load_client")}.bind(this));d=b("DOM").scry(this.root,"input",null);d.forEach(function(a){b("Event").listen(a,"focus",c._logFormFocus.bind(c))})}this.shouldAutoLandOnStep2&&this.emailInput.value.trim()!==""&&(this.hadCPPrefilled=!0,b("MHistory").pushSoftState(l));this.shouldPrefillHeaderJio&&new(b("ZeroJioHeaderTypedLogger"))().setEvent(b("ZeroJioHeaderEvent").LOGIN_FORM_LOAD_CLIENT).log();b("Stratcom").listen("click",[b("MRegMultiStepConstants").CHANGE_LANGUAGE],function(d){new(b("LoggedOutLocaleEventsClientLogger"))(c.root,a.datrCookie).logLocaleEvent(d,b("LocaleInteractiveSurface").LOGIN,b("LocaleInteractiveSurface").LOGIN)});b("Stratcom").listen("click",[b("MRegMultiStepConstants").MORE_LANGUAGE],function(d){new(b("LoggedOutLocaleEventsClientLogger"))(c.root,a.datrCookie).logMoreLanguage(b("LocaleInteractiveSurface").LOGIN,b("LocaleInteractiveSurface").LOGIN)})},_initSmartLockAccountChooser:function(){var a=this;window.PasswordCredential&&(this._logAction("smart_lock_supported"),navigator.credentials!==null&&(this._logAction("smart_lock_showed"),navigator.credentials.get({password:!0,mediation:"required"}).then(function(b){b!==null&&b.type==="password"&&b.password!==null&&b.id!==null?(a.emailInput.setAttribute("value",b.id),a.passwordInputDOM.setAttribute("value",b.password),a._logAction("smart_lock_selected"),a.isSmartLock.setAttribute("value",!0),a._sendLoginRequest()):(a.passwordInputDOM.value="",a._logAction("smart_lock_canceled"))})["catch"](function(a){b("FBLogger")("login").catching(a).warn("smart lock promise fail")})))},_logFormFocus:function(){if(this.hasFocusedAlready)return;this.hasFocusedAlready=!0;this._logAction("form_focus")},_getElem:function(a,c){a=b("DOM").scry(this.root,a,c);return a.length===0?null:a[0]},_animateScrollToElem:function(a){if(!a)return;var c=b("MViewport").getScrollPos().y,d=a.offsetTop;a=function(a){b("MViewport").scrollTo(0,c+a*(d-c-n))};new(b("MAnimator"))().start(a,null,function(){},m)},_autoFocusIfNeeded:function(a){if(!this.emailInput||!this.passwordInput)return;if(!this.passwordInputDOM)return;var c=this.emailInput.value===""||a[b("MLoginFormSigils").EMAIL_INPUT].error;a=this.passwordInputDOM.value===""||a[b("MLoginFormSigils").PASSWORD_INPUT].error;(c||a)&&(c?this.emailInput.focus():a&&this.passwordInputDOM.focus())},_sendLoginRequest:function(){__p&&__p();b("DeferredCookie").flushAllCookies();b("CSS").hide(this.notice);b("MButton").setEnabled(this.loginButton,!1);this.isTwoStepsLogin&&b("MButton").setEnabled(this.nextButton,!1);window.setTimeout(b("MButton").setEnabled.bind(null,this.loginButton,!0),15e3);this.loginButtonAlt!==null&&(b("MButton").setEnabled(this.loginButtonAlt,!1),window.setTimeout(b("MButton").setEnabled.bind(null,this.loginButtonAlt,!0),15e3));this.tryNumber!==null&&this.tryNumber.setAttribute("value",this.numPasswordErrorAttempts);this.unrecognizedTriesCountInput!==null&&(this.unrecognizedTriesCountInput.value=this.unrecognizedContactpointErrorCount);this.shouldRunBotDetection&&b("FBSiteWhiteOps").appendToWindow(b("uuid")(),"FACEBOOK_LOGIN","LOGIN_CLICK");var a=new(b("URI"))(this.loginForm.action).addQueryData("jio_prefilled",this.jioPrefilled).addQueryData("ig_cp_login",this.igCpLogin);this.loginForm.action=a.toString();b("MAjaxify").form(null,this.loginForm,null,"nocache",null,!0,[{response:this._onLoginResponse.bind(this)}])},_sendLoginRequestFromReg:function(){__p&&__p();b("DeferredCookie").flushAllCookies();this.shouldProcessUserConsentForTokenHeader&&this._processUserConsentForTokenHeader();if(this.emailInput.value===""||this.passwordInput.value===""){b("goURI")(this.regURI);return}b("CSS").hide(this.notice);b("MButton").setEnabled(this.loginButton,!1);window.setTimeout(b("MButton").setEnabled.bind(null,this.loginButton,!0),15e3);this.loginButtonAlt!==null&&(b("MButton").setEnabled(this.loginButtonAlt,!1),window.setTimeout(b("MButton").setEnabled.bind(null,this.loginButtonAlt,!0),15e3));this.shouldRunBotDetection&&b("FBSiteWhiteOps").appendToWindow(b("uuid")(),"FACEBOOK_LOGIN","LOGIN_CLICK");b("MAjaxify").form(null,this.loginForm,null,"nocache",null,!0,[{response:this._onLoginFromRegResponse.bind(this)}])},_redirectToPrefilledForgotPassword:function(){__p&&__p();if(this.emailInput===null){b("goURI")(this.originalURL);return}var a=this.emailInput.value.trim();if(a===""){b("goURI")(this.originalURL);return}a=new(b("URI"))(this.originalURL).addQueryData("cpp",a);b("goURI")(a)},_updatePagePrefillState:function(){__p&&__p();var a=b("ge")(b("LoginFormKeys").FIRST_PREFILL_TYPE),c=null;a!=null&&a.value!==""&&(c=a.value);a=b("ge")(b("LoginFormKeys").FIRST_PREFILL_SOURCE);var d=null;a!=null&&a.value!==""&&(d=a.value);a=b("ge")(b("LoginFormKeys").PREFILL_TYPE);var e=null;a!=null&&a.value!==""&&(e=a.value);a=b("ge")(b("LoginFormKeys").PREFILL_SOURCE);var f=null;a!=null&&a.value!==""&&(f=a.value);a=b("ge")(b("LoginFormKeys").HAD_CP_PREFILLED);var g=null;a!=null&&a.value!==""&&(g=a.value);a=b("ge")(b("LoginFormKeys").HAD_PASSWORD_PREFILLED);var h=null;a!=null&&a.value!==""&&(h=a.value);this.pagePrefillState={first_prefill_type:c,first_prefill_source:d,prefill_type:e,prefill_source:f,had_cp_prefilled:g,had_password_prefilled:h}},_logAction:function(a){if(!this.isActionLoggingEnabled)return;this._updatePagePrefillState();b("BanzaiLogger").create({signal:!0}).log("LoginEventsLoggerConfig",{event:a,first_prefill_type:this.pagePrefillState.firstPrefillType,first_prefill_source:this.pagePrefillState.firstPrefillSource,prefill_type:this.pagePrefillState.prefillType,prefill_source:this.pagePrefillState.prefillSource,had_cp_prefilled:this.pagePrefillState.hadCPPrefilled,had_password_prefilled:this.pagePrefillState.hadPasswordPrefilled})},_handleSubmitButtonClick:function(){this._logAction("clicked_submit"),this.emailInput.value===""?this._logAction("clicked_submit_identifier_blank"):this._logAction("clicked_submit_identifier_filled"),this.passwordInputDOM.value===""?this._logAction("clicked_submit_password_blank"):this._logAction("clicked_submit_password_filled"),this.shouldProcessUserConsentForTokenHeader&&this._processUserConsentForTokenHeader(),this._sendLoginRequest()},_processUserConsentForTokenHeader:function(){var a=b("XZeroTokenHeaderUserConsentProcessController").getURIBuilder().getURI();new(b("MRequest"))(a).setMethod("POST").send()},_showBlankPWError:function(a){b("DOM").setContent(this.notice,this._getBlankPasswordErrorFBT(a)),b("CSS").show(this.notice)},_onSendOneTimePassword:function(a){var c=this;a.prevent();b("MAjaxify").ajaxify(null,null,new(b("MRequest"))(this.otp_uri).setMethod("POST"),null,[{response:function(a){a=a.payload;if(a.msg===null)return;b("DOM").setContent(c.otpSentMsg,a.msg);c.shouldDisplayOTPMsg=!0;c._rerenderAuthStepCPDisplay()}}])},_populateProfileInfo:function(a){__p&&__p();var c=this;this._updatePagePrefillState();var d=b("XLoginProfileInfoFetcherController").getURIBuilder().setString("contactpoint",this.emailInput.value).setBool("pwdprefill","true"===this.pagePrefillState.had_password_prefilled).getURI();b("MAjaxify").ajaxify(null,null,new(b("MRequest"))(d).setMethod("GET"),null,[{response:function(d){__p&&__p();c.nextButton.disabled=!1;if(!d.payload){a();return}d=d.payload;if(d.profile_pic_elem){var e=c.profilePicElem.parentNode;b("DOM").replace(c.profilePicElem,d.profile_pic_elem);c.profilePicElem=b("DOM").scry(e,"*",b("MLoginFormSigils").PROFILE_PIC_ELEM).pop();c.displayProfilePic=!0}d.user_name&&c.userName&&(b("DOM").setContent(c.userName,d.user_name||c.emailInput.value),c.displayUserName=!0);d.otp_uri&&c.oneTimePasswordLink&&(c.otp_uri=d.otp_uri,c.displayOTPLink=!0);a()}}])},_getBlankEmailErrorFBT:function(){var a=h._("Sign up for an account."),c=b("DOM").create("a");c.setAttribute("href",this.onErrorRegURI);b("DOM").setContent(c,a);return h._("The email address or phone number that you've entered doesn't match any account. {reg_uri}",[h._param("reg_uri",c)])},_getBlankPasswordErrorFBT:function(a){var c=h._("Did you forget your password?"),d=b("DOM").create("a");d.setAttribute("href",a[b("MLoginFormSigils").FORGOT_PASSWORD_URI]);b("DOM").setContent(d,c);return h._("Please enter your password. {recovery_uri}",[h._param("recovery_uri",d)])},_onEnteringCP:function(){__p&&__p();this._logAction("clicked_next");if(this.emailInput.value.trim()===""){this._logAction("clicked_next_user_identifier_blank");b("DOM").setContent(this.notice,this._getBlankEmailErrorFBT());b("CSS").show(this.notice);b("MLoginFormError").set(this.emailInput,"error");b("DataStore").set(this.emailInput,"error",!0);b("MHistory").popSoftState(l);return}this._logAction("clicked_next_user_identifier_filled");b("MLoginFormError").unset(this.emailInput);b("DataStore").set(this.emailInput,"error",!1);b("DataStore").get(this.passwordInput,"error",!1)||b("CSS").hide(this.notice);this.nextButton.disabled=!0;this._enableProgressBar();this._populateProfileInfo(this._goToPasswordStep.bind(this));return},_onBackToCP:function(){b("DataStore").get(this.passwordInput,"error",!1)&&(b("CSS").hide(this.notice),b("DataStore").set(this.passwordInput,"error",!1),b("CSS").removeClass(this.passwordInput,i)),this._goToIdentificationStep()},_hideAll:function(a){a.forEach(function(a){return b("CSS").hide(a)})},_showAll:function(a){a.forEach(function(a){return b("CSS").show(a)})},_rerenderAuthStepCPDisplay:function(){this.displayUserName&&(this.cpText&&b("CSS").hide(this.cpText),this.cpDisplayLabel&&b("CSS").hide(this.cpDisplayLabel),this.userName&&b("CSS").show(this.userName));this.profilePicElem&&b("CSS").conditionShow(this.profilePicElem,!!this.displayProfilePic);this.oneTimePasswordLink&&b("CSS").conditionShow(this.oneTimePasswordLink,!!this.displayOTPLink);this.otpSentMsg&&(b("CSS").conditionShow(this.otpSentMsg,!!this.shouldDisplayOTPMsg),this.shouldDisplayOTPMsg?(this.passwordInputDOM.setAttribute("placeholder",this.otpPasswordPlaceholder),this._animateScrollToElem(this.passwordFieldLabel)):this.passwordInputDOM.setAttribute("placeholder",this.originalPasswordPlaceholder));if(!this.stepTwoCPDisplayContainer||!this.emailComponentsWrapper)return;var a=this.displayUserName||this.displayProfilePic;b("CSS").conditionShow(this.stepTwoCPDisplayContainer,!!a);b("CSS").conditionShow(this.emailComponentsWrapper,!a)},_showEditableCPFieldOnAuthStep:function(){this.displayProfilePic=!1,this.displayUserName=!1,this.displayOTPLink=!1,this._rerenderAuthStepCPDisplay(),this.emailInput.focus()},_goToPasswordStep:function(){__p&&__p();b("DataStore").set(this.loginForm,"step",k);this.prefillContactpointHiddenInput.value!==this.emailInput.value&&(this.passwordInputDOM.value="");if(this.shouldClearPasswordIfOnlyPasswordPrefilled){var a=b("ge")(b("LoginFormKeys").HAD_CP_PREFILLED),c=b("ge")(b("LoginFormKeys").HAD_PASSWORD_PREFILLED);a!=null&&c!=null&&(a.value==null||a.value==="false")&&c.value==="true"&&(this.shouldClearPasswordIfOnlyPasswordPrefilled=!1)}this._hideAll(this.identifyStepElements);this._showAll(this.passwordStepElements);this._logAction("password_entry_viewed");this._rerenderAuthStepCPDisplay();this.moreLinks&&b("CSS").addClass(this.moreLinks,"_2pie");b("CSS").removeClass(this.passwordInput,"_1-z5");b("CSS").removeClass(this.passwordComponentWrapper,"_1-z5");this.passwordInputDOM.removeAttribute("tabindex");this.cpText&&b("DOM").setContent(this.cpText,this.emailInput.value);this.passwordInputDOM.focus()},_resetProgressBar:function(){this.progressBar.style.transitionDuration="0ms",this.progressBar.style["-webkit-transition-duration"]="0ms",this.progressBar.style["-moz-transition-duration"]="0ms",this.progressBar.style.transform="translateX(0%)",this.progressBar.style["-webkit-transform"]="translateX(0%)",this.progressBar.style["-moz-transform"]="translateX(0%)"},_enableProgressBar:function(){this.progressBar.style.transitionDuration="1000ms",this.progressBar.style["-webkit-transition-duration"]="1000ms",this.progressBar.style["-moz-transition-duration"]="1000ms",this.progressBar.style.transform="translateX(100%)",this.progressBar.style["-webkit-transform"]="translateX(100%)",this.progressBar.style["-moz-transform"]="translateX(100%)"},_goToIdentificationStep:function(){b("DataStore").set(this.loginForm,"step",j),this._resetProgressBar(),this.displayUserName=!1,this.displayProfilePic=!1,this.displayOTPLink=!1,this.cpText&&b("CSS").show(this.cpText),this.cpDisplayLabel&&b("CSS").show(this.cpDisplayLabel),this.userName&&(b("DOM").setContent(this.userName,""),b("CSS").hide(this.userName)),b("CSS").addClass(this.passwordInput,"_1-z5"),b("CSS").addClass(this.passwordComponentWrapper,"_1-z5"),this.passwordInputDOM.setAttribute("tabindex",-1),this._hideAll(this.passwordStepElements),this._showAll(this.identifyStepElements),!b("DataStore").get(this.emailInput,"error",!1)?this._logAction("clicked_back"):b("DOM").hide(this.upsell),this.moreLinks&&b("CSS").removeClass(this.moreLinks,"_2pie"),this.emailInput.focus()},_handleNextButtonClick:function(){this.passwordInputDOM.value.trim()!==""&&this.prefillContactpointHiddenInput&&this.prefillContactpointHiddenInput.value===this.emailInput.value&&(this.hadCPPrefilled=!0),b("MHistory").pushSoftState(l)},_mayBeShowTwoStepsLoginAfterPwdFailure:function(a){__p&&__p();var c=this;a=a[b("MLoginFormSigils").USER_INFO_ELEM_PAYLOAD];if(!a)return;var d=a.profileInfo,e=a.passwordFieldLabelElem;if(!d||!e)return;this.userInfoContainer&&b("DOM").setContent(this.userInfoContainer,d);this.passwordLabelContainer&&b("DOM").setContent(this.passwordLabelContainer,e);this._showAll(this.userInfoAfterFailureElements);b("CSS").hide(this.emailInput);b("Stratcom").listen("click",b("MLoginFormSigils").CHANGE_CP_LINK,function(a){a.prevent(),c._logAction("clicked_not_you"),b("CSS").show(c.emailInput),c._hideAll(c.userInfoAfterFailureElements)});d=a.otpButtonElem;e=a.otpURI;a=a.otpRetrieveDescElem;if(!d||!e||!a)return;this.otpButtonContainer&&b("DOM").setContent(this.otpButtonContainer,d);this.otpRetrieveDescContainer&&b("DOM").setContent(this.otpRetrieveDescContainer,a);this.otpSentMsg=b("DOM").find(this.otpRetrieveDescContainer,"div",b("MLoginFormSigils").OTP_RETRIEVE_DESC);this.otp_uri=e;this.displayOTPLink=!0;this.oneTimePasswordLink=b("DOM").scry(this.otpButtonContainer,"a",b("MLoginFormSigils").ONE_TIME_PASSWORD_LINK).pop();b("DOM").listen(this.oneTimePasswordLink,"click",null,this._onSendOneTimePassword.bind(this));this._rerenderAuthStepCPDisplay()},_mayBeShowOAuthLoginAfterPwdFailure:function(a){__p&&__p();a=a[b("MLoginFormSigils").OAUTH_LOGIN_ELEM_PAYLOAD];if(!a)return;var c=a.oAuthButton;a=a.oAuthDesc;if(!c)return;this.oauthLoginButtonContainer&&b("DOM").setContent(this.oauthLoginButtonContainer,c);b("CSS").show(this.oauthLoginButtonContainer);if(!a)return;this.oauthLoginDescContainer&&b("DOM").setContent(this.oauthLoginDescContainer,a);b("CSS").show(this.oauthLoginDescContainer)},_mayBeShowFamilyAuthLoginAfterPwdFailure:function(a){__p&&__p();var c=this;this.igCpLogin=!0;a=a.familyAuthDesc;this.languageSelector=b("DOM").find(this.root.ownerDocument,"div",b("MLoginFormSigils").LANGUAGE_SELECTOR);this.footerElem=b("DOM").find(this.root.ownerDocument,"div",b("MLoginFormSigils").FOOTER);this.root&&this.root.parentNode&&this.root.parentNode.parentNode&&(b("DOM").setContent(this.root,a),b("CSS").hide(this.languageSelector),b("CSS").hide(this.footerElem));var d=b("DOM").find(this.root,"button",b("MLoginFormSigils").FAMILY_AUTH_LOGIN_BUTTON);if(!a)return;b("Event").listen(d,"click",function(a){a.preventDefault(),c._sendLoginRequest()})},_onLoginResponse:function(a){__p&&__p();b("MButton").setEnabled(this.loginButton,!0);this.isTwoStepsLogin&&b("MButton").setEnabled(this.nextButton,!0);this.loginButtonAlt!==null&&b("MButton").setEnabled(this.loginButtonAlt,!0);if(!a.payload)return;var c=a.payload;this.isSmartLock.setAttribute("value",!1);c[b("MLoginFormSigils").PASSWORD_INPUT].error?this.numPasswordErrorAttempts++:this.numPasswordErrorAttempts=0;c[b("MLoginFormSigils").EMAIL_INPUT].unrecognized&&this.unrecognizedContactpointErrorCount++;this.rapidFeedbackUri&&this.numPasswordErrorAttempts==2&&b("goURI")(this.rapidFeedbackUri);c[b("MLoginFormSigils").NOTICE]&&(b("DOM").setContent(this.notice,c[b("MLoginFormSigils").NOTICE]),c[b("MLoginFormSigils").PASSWORD_INPUT].error&&this.passwordInputDOM.value.trim()===""&&this._showBlankPWError(a.payload),b("CSS").show(this.notice));if(this.emailInput!==null){c[b("MLoginFormSigils").EMAIL_INPUT].error?(b("MLoginFormError").set(this.emailInput,"error"),b("DataStore").set(this.emailInput,"error",!0),this.isTwoStepsLogin&&(this.shouldDisplayOTPMsg=!1,this._rerenderAuthStepCPDisplay())):(b("MLoginFormError").unset(this.emailInput),b("DataStore").set(this.emailInput,"error",!1));if(this.shouldPrefillAfterLoginFailure&&c[b("MLoginFormSigils").EMAIL_INPUT].unrecognized)b("MMsisdnJioApiModule").prefillMsisdnForLogin(this.emailInput,this.jioPrefillTimeRange,!1),new(b("ZeroJioHeaderTypedLogger"))().setEvent(b("ZeroJioHeaderEvent").PREFILL_AFTER_LOGIN_FAILUIRE).log();else{var d=c[b("MLoginFormSigils").EMAIL_INPUT].value,e=!1,f=null;d?(this.jioPrefilled&&(this.shouldClearPrefillAfterLoginFailure?(e=!0,f=b("JioClearLoginPrefillReason").LOGIN_FAILURE):this.shouldClearPrefillIfInvalidNumber?(e=c[b("MLoginFormSigils").EMAIL_INPUT].unrecognized,f=b("JioClearLoginPrefillReason").LOGIN_FAILURE_UNRECOGNIZED_ACCOUNT):this.shouldClearPrefillIfPwError?(e=c[b("MLoginFormSigils").PASSWORD_INPUT].error,f=b("JioClearLoginPrefillReason").LOGIN_FAILURE_PW_ERROR):this.shouldClearPrefillIfNonePwError&&(e=!c[b("MLoginFormSigils").PASSWORD_INPUT].error,f=b("JioClearLoginPrefillReason").LOGIN_FAILURE_NON_PW_ERROR)),e?(this.emailInput.value="",new(b("ZeroJioHeaderTypedLogger"))().setEvent(b("ZeroJioHeaderEvent").CLEAR_LOGIN_PREFILL).setClearLoginPrefillReason(f).log()):(this.emailInput.value=d,this.isTwoStepsLogin&&this.cpText&&b("DOM").setContent(this.cpText,d))):this.emailInput.value=""}}if(this.passwordInput!==null){e=c[b("MLoginFormSigils").FAMILY_AUTH_LOGIN_ELEM_PAYLOAD];e===null&&(b("DOM").find(this.passwordInput,"input").value="");b("Stratcom").invoke("m:passwordinput:autoclear",b("MPasswordPlainTextToggleSigils").INPUT);c[b("MLoginFormSigils").PASSWORD_INPUT].error?(b("DataStore").set(this.passwordInput,"error",!0),b("CSS").addClass(this.passwordInput,i),this.isTwoStepsLogin&&b("DataStore").get(this.loginForm,"step","")===j&&b("MHistory").pushSoftState(l),this.isTwoStepsLogin&&this._populateProfileInfo(this._rerenderAuthStepCPDisplay.bind(this)),this._mayBeShowTwoStepsLoginAfterPwdFailure(c),this._mayBeShowOAuthLoginAfterPwdFailure(c)):(b("DataStore").set(this.passwordInput,"error",!1),b("CSS").removeClass(this.passwordInput,i));e!==null&&this._mayBeShowFamilyAuthLoginAfterPwdFailure(e)}this._autoFocusIfNeeded(a.payload);this.upsell!==null&&b("DOM").hide(this.upsell);b("Stratcom").invoke(b("KaiOSSpatialNavEvents").REFRESH,null,null)},_onLoginFromRegResponse:function(a){b("goURI")(this.regURI)},redirect:function(a){window.location.replace(a)}};e.exports=a}),null);
__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:function(a,c){var d=null;c===b("BrowserPrefillType").CONTACT_POINT&&(d=this.previousContactpoint);a!==b("BrowserPrefillSource").SERVER_PREFILL&&this.updatePrefill(d,a,c);b("BanzaiLogger").create({signal:!0}).log("LoginEventsLoggerConfig",{event:b("LoginEvent").BROWSER_AUTOCOMPLETE,prefill_contact_point:d,prefill_source:a,prefill_type:c})}};e.exports=a}),null);