TwoFactorLoginMethodPasskeyFooter.react",["CAAWebBloksPasskeyUtils","CDSDialogFooter.react","CometRelay","RelayHooks","TwoFactorLoginMethodPasskeyFooterAssertionMutation.graphql","TwoFactorLoginMethodPasskeyFooter_data.graphql","TwoStepVerificationContext","TwoStepVerificationEventFalcoEvent","TwoStepVerificationPasskeyUtils","WebAuthN","react","react-compiler-runtime","usePasskeyAssertion"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react");function a(a){var e=d("react-compiler-runtime").c(30),f=a.flow,g=a.fragmentKey,j=a.navigation;a=d("CometRelay").useFragment(h!==void 0?h:h=b("TwoFactorLoginMethodPasskeyFooter_data.graphql"),g);var n=(g=(g=d("TwoStepVerificationContext").useTwoStepVerificationContext())==null?void 0:g.encryptedContext)!=null?g:"";e[0]===Symbol.for("react.memo_cache_sentinel")?(g=i!==void 0?i:i=b("TwoFactorLoginMethodPasskeyFooterAssertionMutation.graphql"),e[0]=g):g=e[0];g=d("RelayHooks").useMutation(g);var o=g[0];e[1]!==a.xfb_two_step_verification_authentication_passkey_options.allow_credentials?(g=a.xfb_two_step_verification_authentication_passkey_options.allow_credentials.map(l),e[1]=a.xfb_two_step_verification_authentication_passkey_options.allow_credentials,e[2]=g):g=e[2];var p;e[3]!==a.xfb_two_step_verification_authentication_passkey_options.rp.id||e[4]!==a.xfb_two_step_verification_authentication_passkey_options.rp.name?(p={id:a.xfb_two_step_verification_authentication_passkey_options.rp.id,name:a.xfb_two_step_verification_authentication_passkey_options.rp.name},e[3]=a.xfb_two_step_verification_authentication_passkey_options.rp.id,e[4]=a.xfb_two_step_verification_authentication_passkey_options.rp.name,e[5]=p):p=e[5];var q;e[6]!==a.xfb_two_step_verification_authentication_passkey_options.challenge||e[7]!==a.xfb_two_step_verification_authentication_passkey_options.user_verification||e[8]!==g||e[9]!==p?(q={allowCredentials:g,challenge:a.xfb_two_step_verification_authentication_passkey_options.challenge,rp:p,userVerification:a.xfb_two_step_verification_authentication_passkey_options.user_verification},e[6]=a.xfb_two_step_verification_authentication_passkey_options.challenge,e[7]=a.xfb_two_step_verification_authentication_passkey_options.user_verification,e[8]=g,e[9]=p,e[10]=q):q=e[10];a=q;e[11]!==n?(g=function(a,b){m("client_error",n,a.toString())},e[11]=n,e[12]=g):g=e[12];e[13]!==o||e[14]!==n||e[15]!==j?(p=async function(a){var b;b={authenticatorAttachment:a.authenticatorAttachment,id:a.id,raw_id:(b=d("WebAuthN")).bufferEncode(a.rawId),response:{authenticatorData:b.bufferEncode(a.response.authenticatorData),clientDataJSON:b.bufferEncode(a.response.clientDataJSON),signature:b.bufferEncode(a.response.signature),userHandle:b.bufferEncode(a.response.userHandle)},type:a.type};a=d("CAAWebBloksPasskeyUtils").base64UrlEncode(JSON.stringify(b));o({onCompleted:function(){j.navigateToRememberBrowser()},onError:function(a){m("client_error",n,a.toString())},variables:{encryptedContext:n,payload:a}})},e[13]=o,e[14]=n,e[15]=j,e[16]=p):p=e[16];e[17]!==a||e[18]!==g||e[19]!==p?(q={assertionOptions:a,handlePasskeySubmissionError:g,handleWebauthnSignatureResponse:p},e[17]=a,e[18]=g,e[19]=p,e[20]=q):q=e[20];a=c("usePasskeyAssertion")(q);var r=a.initPasskeyAssertionCeremony;switch(f){case"SECURED_ACTION":e[21]!==n||e[22]!==r?(g=d("TwoStepVerificationPasskeyUtils").getPasskeyPrimaryButtonProps(function(){r(),m("use_passkey_button_clicked",n)}),e[21]=n,e[22]=r,e[23]=g):g=e[23];e[24]!==n||e[25]!==j?(p=d("TwoStepVerificationPasskeyUtils").getPasskeySecondaryButtonProps(function(){j.showMethodPickerDialog(),m("try_another_way_clicked",n)}),e[24]=n,e[25]=j,e[26]=p):p=e[26];e[27]!==g||e[28]!==p?(q=k.jsx(c("CDSDialogFooter.react"),{primary:g,secondary:p,size:"large",stacking:"auto"}),e[27]=g,e[28]=p,e[29]=q):q=e[29];return q;default:return null}}function l(a){return{id:a.id,type:a.type}}function m(a,b,d){c("TwoStepVerificationEventFalcoEvent").log(function(){return{challenge:"passkey",encrypted_context:b,event:a,exception_message:d}})}g.default=a}),98);
-----
TwoFactorLoginMethodPasskeyFooterAssertionMutation.graphql",["TwoFactorLoginMethodPasskeyFooterAssertionMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"encryptedContext"},c={defaultValue:null,kind:"LocalArgument",name:"payload"},d=[{alias:null,args:[{kind:"Variable",name:"encrypted_context",variableName:"encryptedContext"},{kind:"Variable",name:"payload",variableName:"payload"}],concreteType:"XFBTwoFactorLoginPasskeyAssertionResponse",kind:"LinkedField",name:"xfb_two_step_verification_authentication_passkey_assertion",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"error_message",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"TwoFactorLoginMethodPasskeyFooterAssertionMutation",selections:d,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"TwoFactorLoginMethodPasskeyFooterAssertionMutation",selections:d},params:{id:b("TwoFactorLoginMethodPasskeyFooterAssertionMutation_facebookRelayOperation"),metadata:{},name:"TwoFactorLoginMethodPasskeyFooterAssertionMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
TwoFactorLoginMethodPasskeyFooterAssertionMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24494640116806373"}),null);
-----
-----
TwoFactorLoginMethodPasskeyFooterAssertionMutation.graphql",["TwoFactorLoginMethodPasskeyFooterAssertionMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"encryptedContext"},c={defaultValue:null,kind:"LocalArgument",name:"payload"},d=[{alias:null,args:[{kind:"Variable",name:"encrypted_context",variableName:"encryptedContext"},{kind:"Variable",name:"payload",variableName:"payload"}],concreteType:"XFBTwoFactorLoginPasskeyAssertionResponse",kind:"LinkedField",name:"xfb_two_step_verification_authentication_passkey_assertion",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"error_message",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"TwoFactorLoginMethodPasskeyFooterAssertionMutation",selections:d,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"TwoFactorLoginMethodPasskeyFooterAssertionMutation",selections:d},params:{id:b("TwoFactorLoginMethodPasskeyFooterAssertionMutation_facebookRelayOperation"),metadata:{},name:"TwoFactorLoginMethodPasskeyFooterAssertionMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
TwoFactorLoginMethodPasskeyFooterAssertionMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24494640116806373"}),null);
-----