/*! * ------------------------------------------- START OF THIRD PARTY NOTICE ----------------------------------------- * * This file is based on or incorporates material from the projects listed below (Third Party IP). The original copyright notice and the license under which Microsoft received such Third Party IP, are set forth below. Such licenses and notices are provided for informational purposes only. Microsoft licenses the Third Party IP to you under the licensing terms for the Microsoft product. Microsoft reserves all other rights not expressly granted under this agreement, whether by implication, estoppel or otherwise. * * json2.js (2016-05-01) * https://github.com/douglascrockford/JSON-js * License: Public Domain * * Provided for Informational Purposes Only * * ----------------------------------------------- END OF THIRD PARTY NOTICE ------------------------------------------ */ (window.webpackJsonp=window.webpackJsonp||[]).push([[24],{464:function(e,n,t){var i=t(2),o=t(0),r=t(1),a=t(4),s=t(580),d=t(3),c=t(28),l=t(31),u=t(11).getInstance(window.ServerData),p=t(8),w=t(7),v=t(14),f=t(5),h=t(9),_=t(16),x=t(20);var g=window,T=d.String,b=o.PaginatedState,C=o.LoginMode,k=o.CredentialType,P=o.EstsError,S=r.Helper,m=s.GrctResultAction;function R(e){var n=this,o=e.serverData,r=e.serverError,d=e.isInitialView,c=e.username,g=e.displayName||"",R=e.hipRequiredForUsername,y=e.passwordBrowserPrefill,D=e.availableCreds||[],L=e.evictedCreds||[],E=e.defaultKmsiValue,I=e.userTenantBranding,B=e.sessions,F=e.callMetadata,V=e.flowToken,A=e.useEvictedCredentials,W=e.showCredViewBrandingDesc,O=e.supportsNativeCredentialRecovery,U=o.str,H=o.iLoginMode,N=o.urlHIPScript,M=o.sRemoteConnectAppName,q=o.fAllowCancel,K=o.urlSwitch,G=o.urlSkipZtd,Z=o.fLockUsername,j=o.fShowSwitchUser,J=o.fPOST_ForceSignin,z=o.sZtdFriendlyName,$=o.sZtdTenantName,X=o.sZtdUpnHint,Y=o.fShowButtons,Q=o.sErrorCode,ee=o.fShowHipOnNewView,ne=(o.fLogSkipToOfflineAccountAction,o.fHideOfflineAccountWithNoSkipString,o.sUnauthSessionID),te=o.iRequestLCID,ie=o.sSiteId,oe=o.sClientId,re=o.sForwardedClientId,ae=o.sNoPaBubbleVersion,se=o.fShouldSupportTargetCredentialForRecovery,de=!1,ce=null,le=!1,ue=!1,pe={},we=null,ve={},fe=!1,he=i.observable(!1),_e=i.observable();function xe(){n.onSubmitReady()}function ge(e){n.isBackButtonVisible(e),n.onSetBackButtonState(Y&&e)}function Te(e){return e.getResponseJson&&(e=e.getResponseJson()),{success:!0,userCode:e.UserCode,deviceCode:e.SessionLookupKey}}function be(){return n.setDefaultFocus(),{success:!1}}n.onSwitchView=a.create(),n.onSubmitReady=a.create(),n.onResetPassword=a.create(u.getDefaultEventTracingOptions(w.ClientTracingEventIds.ComponentEvent_LoginPaginatedPasswordView_onResetPassword,!0)),n.onRedirect=a.create(),n.onSetBackButtonState=a.create(),n.onSetPendingRequest=a.create(),n.onUpdateFlowToken=a.create(),n.onRestoreIsRecoveryAttemptPost=a.create(),n.passwordTextbox=new l(i.pureComputed((function(){var e;if(_e())return _e();if(!he())return e=r||null,r=null,e;return n.passwordTextbox.value()?null:U.CT_PWD_STR_Error_MissingPassword})),y),n.passwordTextbox.value.extend({logValue:u.getPasswordTextBoxPropertyLogOption(n,{eventId:w.ClientTracingEventIds.PropertyValue_LoginPaginatedPasswordView_Password})}),n.passwordTextbox.error.extend({logValue:u.getPropertyLogOption(n,{eventId:w.ClientTracingEventIds.PropertyValue_LoginPaginatedPasswordView_ClientError})}),n.hipInterface=i.observable(),n.isKmsiChecked=i.observable(E).extend({logValue:u.getPropertyLogOption(n,{eventId:w.ClientTracingEventIds.PropertyValue_LoginPaginatedPasswordView_KMSI})}),n.isRequestPending=i.observable(!1),n.unsafe_username=i.observable(),n.showTileLogo=i.observable(!1),n.isBackButtonVisible=i.observable(!1),n.secondaryButtonText=i.observable(),n.useEvictedCredentials=i.observable(A),n.showPassword=i.observable(!1),n.shouldHipInit=i.observable(!1),n.tenantBranding=null,n.unsafe_displayName=null,n.username=c,n.unsafe_passwordAriaLabel=null,n.hasRemoteNgc=!1,n.availableCreds=D,n.evictedCreds=L,n.allowPhoneDisambiguation=!1,n.unsafe_pageDescription=null,n.unsafe_pageTitle=null,n.unsafe_skipZTDLinkText=null,n.isInitialView=d,n.showHipOnPasswordView=!1,n.showChangeUserLink=!1,n.callMetadata=F,n.flowToken=V,n.showCredViewBrandingDesc=W,n.supportsNativeCredentialRecovery=O,n.hideForgotMyPassword=!1,n.unsafe_forgotPasswordText=U.STR_SSSU_ForgotPassword||U.CT_PWD_STR_ForgotPwdLink_Text,n.hidePasswordReset=!1,n.accessRecoveryLink=null,u.attachViewLoadClientTracingOptions(n,{eventId:w.ClientTracingEventIds.Event_LoginPaginatedPasswordView_onLoad}),n.saveSharedData=function(e){var t=pe.result;e.remoteNgcParams.requestSent=!1,e.useEvictedCredentials=le||n.useEvictedCredentials(),e.password=n.passwordTextbox.value(),e.showCredViewBrandingDesc=!1,e.remoteLoginUserCode=t?t.userCode:null,e.remoteLoginDeviceCode=t?t.deviceCode:null,se?e.targetCredentialForRecovery=fe?k.Password:k.None:e.isRecoveryAttemptPost=fe,ce&&(e.otcCredential=ce),fe&&(e.recoveryCredentialsData=ve)},n.getState=function(){return{isKmsiChecked:n.isKmsiChecked(),useEvictedCredentials:n.useEvictedCredentials(),grctRequestHelperState:O?we.getState():null}},n.restoreState=function(e){e&&(n.isKmsiChecked(e.isKmsiChecked),n.useEvictedCredentials(e.useEvictedCredentials),O&&we.restoreState(e.grctRequestHelperState))},n.setDefaultFocus=function(){n.passwordTextbox.focused(!0)},n.primaryButton_onClick=function(){var e=n.hipInterface();if(!de&&!n.isRequestPending())if(he(!0),e&&e.enableValidation(),null===n.passwordTextbox.error())if(e){if(null!==e.getError())return void e.focus();de=!0,e.verify((function(){de=!1,xe()}))}else ue&&ee?n.onSwitchView(b.Hip):xe();else n.setDefaultFocus()},n.secondaryButton_onClick=function(){n.onSwitchView(b.Previous)},n.phoneDisambiguation_onClick=function(){n.onSwitchView(b.PhoneDisambiguation)},n.resetPassword_onClick=function(){if(O){var e=S.htmlUnescape(g);n.isRequestPending(!0),n.onSetPendingRequest(!0),h.throwUnhandledExceptionOnRejection(we.sendAsync(e,V,k.Password).then((function(e){switch(n.isRequestPending(!1),n.onSetPendingRequest(!1),e.flowToken&&(V=e.flowToken,n.onUpdateFlowToken(e.flowToken)),e.action){case m.ShowError:_e(e.error),n.setDefaultFocus();break;case m.SwitchView:ve=i.utils.extend(e.sharedData,e.viewParams||{}),fe=!0,n.onSwitchView(e.viewId)}})))}else n.onResetPassword(g)},n.selectAccount_onClick=function(){Z&&K?n.onRedirect({url:K,eventOptions:{eventId:p.EventIds.Redriect_SwitchUser}}):n.onSwitchView(B.length?b.Tiles:b.Username)},n.hip_onHipLoad=function(){n.isRequestPending(!1),null!==n.passwordTextbox.error()&&n.setDefaultFocus()},n.skip_onClick=function(){null},n.switchToRemoteNGC_onClick=function(){n.onSwitchView(b.RemoteNGC)},n.skipZtd_onClick=function(){n.onRedirect({url:G,eventOptions:{eventId:p.EventIds.Redirect_SkipZeroTouch}})},n.privacy_onClick=function(){n.onSwitchView(b.ViewAgreement)},n.tileLogo_onLoad=function(){n.showTileLogo(!0)},n.desktopSso_onSuccess=function(){n.onSubmitReady()},n.switchToEvictedCredPicker_onClick=function(){le=!0,n.onSwitchView(b.CredentialPicker)},n.credSwitchLink_onSwitchView=function(e,t,i){i&&(ce=i),n.onSwitchView(e,t)},n.credSwitchLink_onSetPendingRequest=function(e){n.onSetPendingRequest(e),n.isRequestPending(e)},n.credSwitchLink_onUpdateFlowToken=function(e){e&&(V=e,n.onUpdateFlowToken(e))},n.remoteLogin_onClick=function(){var e;h.throwUnhandledExceptionOnRejection((e=_.Purpose.XboxRemoteConnect,function(e){return new f((function(n,t){new x({purpose:e,flowToken:V,unauthSessionId:ne,lcid:te,siteId:ie,clientId:oe,forwardedClientId:re,noPaBubbleVersion:ae,successCallback:n,failureCallback:t}).sendRequest()}))}(e).then(Te,be)).then((function(e){e.success&&(pe.result=e,n.onSwitchView(b.RemoteLoginPolling))})))},function(){var e=S.htmlUnescape(g);if(n.unsafe_username(S.htmlUnescape(c)),n.unsafe_displayName=i.observable(e).extend({preventExternalWrite:null}),n.allowPhoneDisambiguation=!Z&&!T.isEmailAddress(g)&&!T.isSkypeName(g)&&T.isPhoneNumber(g),n.hasRemoteNgc=!!i.utils.arrayFirst(D,(function(e){return e.credType===k.RemoteNGC})),ue=!!N&&c===R,n.showHipOnPasswordView=ue&&!ee,n.showChangeUserLink=j&&(Z&&K||d),n.tenantBranding=I,M&&d?n.unsafe_pageDescription=T.format(U.CT_PWD_STR_RemoteConnect_PasswordPage_Desc,M,e):H===C.ForceSignin||H===C.ForceSigninMobile||H===C.ForceSigninHost||J?n.unsafe_pageDescription=function(e,n){switch(e){case P.SsoArtifactExpiredDueToConditionalAccess:return U.WF_STR_ASLP_Info;case P.SsoArtifactExpiredDueToConditionalAccessReAuth:return U.WF_STR_ReAuth_Info;default:return T.format(U.WF_STR_ForceSI_Info,n)}}(Q,e):U.CT_PWD_STR_EnterPassword_Desc&&(n.unsafe_pageDescription=T.format(U.CT_PWD_STR_EnterPassword_Desc,e)),X&&$){var r=S.htmlUnescape($);n.unsafe_pageTitle=z?T.format(U.CT_Win10_PwdWithOrgDomain_AndFriendlyName,S.htmlUnescape(z),r):T.format(U.CT_Win10_STR_Pwd_Title_WithOrgDomain,r),n.unsafe_skipZTDLinkText=T.format(U.CT_Win10_STR_Pwd_StartOver_WithOrgDomain,r)}else n.unsafe_pageTitle=U.CT_PWD_STR_EnterYourPassword_Title,n.unsafe_skipZTDLinkText=U.CT_Win10_STR_StartOver;if(n.unsafe_passwordAriaLabel=T.format(U.CT_PWD_STR_PwdTB_AriaLabel,e),n.showHipOnPasswordView&&n.isRequestPending(!0),n.unsafe_displayName.subscribe((function(){setTimeout((function(){n.passwordTextbox.value(null)}),0)})),d?q&&ge(!0):ge(!0),N&&n.showHipOnPasswordView&&t.e(1).then(function(){t(766),n.shouldHipInit(!0)}.bind(null,t))["catch"](t.oe),I){var a=v.getLayoutTemplateConfig(I);I.ForgotPasswordText&&(n.unsafe_forgotPasswordText=S.htmlUnescape(I.ForgotPasswordText)),n.accessRecoveryLink=I.AccessRecoveryLink,n.hideForgotMyPassword=a.hideForgotMyPassword||a.hideAccountResetCredentials,n.hidePasswordReset=a.hideResetItNow||a.hideAccountResetCredentials}O&&(we=new s(o),n.onRestoreIsRecoveryAttemptPost())}()}c.applyExtenders(i),i.components.register("login-paginated-password-view",{viewModel:R,template:t(581),synchronous:!g.ServerData.iMaxStackForKnockoutAsyncComponents||r.Helper.isStackSizeGreaterThan(g.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=R},580:function(e,n,t){var i=t(0),o=t(5),r=t(3),a=t(12),s=t(8),d=r.String,c=r.Object,l=i.CredentialType,u=i.ApiErrorCodes,p=i.EstsError,w=i.PaginatedState,v=h.GrctResultAction={ShowError:1,SwitchView:2},f=h.GrctRequestHelperFlags={DisableAutoSend:1};function h(e,n){var t=this,h={},_=e,x=0!=(n&f.DisableAutoSend),g=_.str,T=_.fCheckApiCanary,b=_.urlGetRecoveryCredentialType,C=_.arrProofData||{},k=_.fIsRestrictedWsi;function P(e){e.proof.str={},c.extend(e.proof.str,C[e.proof.type]||{})}function S(e){var n={};if(e&&e.error)switch(e.error.code){case u.AuthFailure:n=y(g.CT_PWD_STR_Error_FlowTokenExpired);break;case p.TenantDoesNotSupportNativeCredentialRecovery:case p.UserDoesNotSupportNativeCredentialRecovery:case p.CredentialDoesNotSupportNativeRecovery:n=y(g.CT_PWD_STR_Error_CredentialDoesNotSupportNativeRecovery);break;default:n=y(g.CT_PWD_STR_Error_GetRecoveryCredentialTypeError)}else n=y(g.CT_PWD_STR_Error_GetRecoveryCredentialTypeError);return n.flowToken=e.FlowToken||null,n}function m(e){var n=e.Credentials,t=null;return n&&(t=n.PrefCredential),t}function R(e,n){return{action:v.SwitchView,viewId:e,viewParams:n}}function y(e,n,t){return{action:v.ShowError,error:e,isBlockingError:n,bypassCache:t}}t.sendAsync=function(e,n,r){var c=d.cleanseUsername(e,!0),u=h[c]?h[c]:null,p=u||function(e,n){return new o((function(t,o){new a({checkApiCanary:T}).Json({url:b,eventId:s.EventIds.Api_GetRecoveryCredentialType},{targetCredential:e,flowToken:n},t,o,i.DefaultRequestTimeout)}))}(r,n);return o.all([p]).then((function(e){var n=e[0];return function(e,n){var i={},o=t.getGrctSharedData(e,n);(i=function(e){var n=m(e);if(k&&!(e.Credentials.HasPassword||e.Credentials.HasGoogleFed||e.Credentials.HasCertAuth||e.Credentials.HasFido||e.Credentials.HasRemoteNGC||e.Credentials.HasPhone||e.Credentials.HasFacebookFed)&&n!==l.AccessPass)return R(w.MoreInfo);switch(n){case l.OneTimeCode:var t=w.OneTimeCodeRecovery;return x&&(t=w.ConfirmSend),R(t);default:return y(g.CT_PWD_STR_Error_GetRecoveryCredentialTypeError,!1,!0)}}(n)).flowToken=n.FlowToken||null,i.bypassCache||(h[e]=n,h[e].FlowToken=null);return i.sharedData=o,i}(c,n)}),S)},t.getState=function(){return{cache:h}},t.restoreState=function(e){e&&(h=e.cache||{})},t.getGrctSharedData=function(e,n){var t={},i=m(n);return t.preferredCredential=i,t.availableRecoveryCreds=function(e,n){var t=[];if(C[PROOF.Type.Email]){var i=function(e,n){var t=[];if(m(n)===l.OneTimeCode){var i={credType:l.OneTimeCode,proof:{display:e,data:d.cleanseUsername(e),otcSent:!0,isEncrypted:!1,isDefault:!0,isNopa:!0,type:PROOF.Type.Email}};t.push(i)}return t}(e,n);i.length>0&&(r.Array.forEach(i,P),t=t.concat(i))}return t}(e,n),i===l.OneTimeCode&&(t.otcCredential=r.Array.first(t.availableRecoveryCreds,(function(e){return e.credType===l.OneTimeCode&&e.proof.otcSent}))),t.otcParams={requestSent:i===l.OneTimeCode},t}}e.exports=h},581:function(e,n,t){e.exports="\x3c!-- "+(t(32),t(13),t(29),' --\x3e\n\n\x3c!-- --\x3e\n\n\n\n
\n
\n
\n\n\x3c!-- ko if: showCredViewBrandingDesc --\x3e\n
\n
\n
\n\x3c!-- /ko --\x3e\n\n\x3c!-- ko if: unsafe_pageDescription --\x3e\n
\n
\n
\n\x3c!-- /ko --\x3e\n\n
\n
\n
\n \x3c!-- ko if: passwordTextbox.error --\x3e\n
\n \x3c!-- /ko --\x3e\n
\n\n
\n\n \n\n \x3c!-- ko if: svr.fUsePasswordPeek && showPassword() --\x3e\n \n \x3c!-- /ko --\x3e\n
\n\n \x3c!-- ko if: svr.fUsePasswordPeek --\x3e\n
\n \n
\n \x3c!-- /ko --\x3e\n
\n
\n\n\x3c!-- ko if: shouldHipInit --\x3e\n
\n
\n\x3c!-- /ko --\x3e\n\n
\n
\n \x3c!-- ko if: svr.fShowPersistentCookiesWarning --\x3e\n
\n
\n
\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: svr.fKMSIEnabled !== false && !svr.fShowPersistentCookiesWarning && !tenantBranding.KeepMeSignedInDisabled --\x3e\n
\n \n
\n \x3c!-- /ko --\x3e\n\n
\n
\n
\n \x3c!-- ko if: svr.urlSkipZtd && svr.sZtdUpnHint --\x3e\n
\n \n
\n \x3c!-- /ko --\x3e\n \x3c!-- ko ifnot: hideForgotMyPassword --\x3e\n
\n \n
\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: allowPhoneDisambiguation --\x3e\n
\n \n
\n \x3c!-- /ko --\x3e\n \x3c!-- ko ifnot: useEvictedCredentials --\x3e\n \x3c!-- ko component: { name: "cred-switch-link-control",\n params: {\n serverData: svr,\n username: username,\n availableCreds: availableCreds,\n flowToken: flowToken,\n currentCred: { credType: '+t(0).CredentialType.Password+' } },\n event: {\n switchView: credSwitchLink_onSwitchView,\n redirect: onRedirect,\n setPendingRequest: credSwitchLink_onSetPendingRequest,\n updateFlowToken: credSwitchLink_onUpdateFlowToken } } --\x3e\n \x3c!-- /ko --\x3e\n\n \x3c!-- ko if: evictedCreds.length > 0 --\x3e\n
\n \n
\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: showChangeUserLink --\x3e\n
\n \n
\n \x3c!-- /ko --\x3e\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n\n\x3c!-- ko if: tenantBranding.BoilerPlateText --\x3e\n
\n\x3c!-- /ko --\x3e\n'}}]),window.__convergedlogin_ppassword_f7b06b70c72b4590b779=!0; //# sourceMappingURL=../f7b06b70c72b4590b779.map