useFXSettingsTwoFactorNextStep",["FBLogger","FXAccountsCenterTwoFactorAddOrChangePhoneDialog.entrypoint","FXAccountsCenterTwoFactorDisableSMSDialog.entrypoint","FXAccountsCenterTwoFactorFIDODialog.entrypoint","FXAccountsCenterTwoFactorFidoRegistrationNotAvailableDialog.entrypoint","FXAccountsCenterTwoFactorRecoveryCodesDialog.entrypoint","FXAccountsCenterTwoFactorSelectPhoneDialog.entrypoint","FXAccountsCenterTwoFactorSettingsAdditionalMethodDialog.entrypoint","FXAccountsCenterTwoFactorSettingsDialog.entrypoint","FXAccountsCenterTwoFactorSettingsFIDOManagerDialog.entrypoint","FXAccountsCenterTwoFactorSettingsTOTPManagerDialog.entrypoint","FXAccountsCenterTwoFactorTOTPQRCodeDialog.entrypoint","FXAccountsCenterTwoFactorTrustedDevicesListDialog.entrypoint","FXAccountsCenterTwoFactorVettedToTrustedConstants","FXAccountsCenterTwoFactorVettedToTrustedDialog.entrypoint","react","usePushPage"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useCallback,j=b.useEffect,k=b.useState;function a(a,b,e){var f=k(!1),g=f[0],h=f[1];f=k(c("FXAccountsCenterTwoFactorSettingsDialog.entrypoint"));var l=f[0],m=f[1];f=k(c("FXAccountsCenterTwoFactorFidoRegistrationNotAvailableDialog.entrypoint"));var n=f[0],o=f[1];f=k();var p=f[0],q=f[1];f=c("usePushPage")(l,{accountID:a.id,accountType:a.accountType,optOutDate:e==null?void 0:e.optOutDate});var r=f[0];l=c("usePushPage")(n,{});var s=l[0];f=i(function(a){h(!0);q(a);switch(a){case"TOTP":m((e==null?void 0:e.totpEnabled)===!0?c("FXAccountsCenterTwoFactorSettingsTOTPManagerDialog.entrypoint"):c("FXAccountsCenterTwoFactorTOTPQRCodeDialog.entrypoint"));break;case"SMS":m((e==null?void 0:e.smsEnabled)===!0?c("FXAccountsCenterTwoFactorDisableSMSDialog.entrypoint"):(e==null?void 0:e.hasPendingPhones)===!0?c("FXAccountsCenterTwoFactorSelectPhoneDialog.entrypoint"):c("FXAccountsCenterTwoFactorAddOrChangePhoneDialog.entrypoint"));break;case"FIDO":if((e==null?void 0:e.isEligibleToEditFIDO)===!1){o(c("FXAccountsCenterTwoFactorFidoRegistrationNotAvailableDialog.entrypoint"));break}m((e==null?void 0:e.fidoEnabled)===!0?c("FXAccountsCenterTwoFactorSettingsFIDOManagerDialog.entrypoint"):c("FXAccountsCenterTwoFactorFIDODialog.entrypoint"));break;case"ADDITIONAL_METHODS":m(c("FXAccountsCenterTwoFactorSettingsAdditionalMethodDialog.entrypoint"));break;case"RECOVERY_CODES":m(c("FXAccountsCenterTwoFactorRecoveryCodesDialog.entrypoint"));break;case"TRUSTED_DEVICES":m(c("FXAccountsCenterTwoFactorTrustedDevicesListDialog.entrypoint"));break;case"CONVERT_VETTED_TO_TRUSTED":m(c("FXAccountsCenterTwoFactorVettedToTrustedDialog.entrypoint"));break;case"WHATSAPP":case"LOGIN_REQUESTS":default:throw c("FBLogger")("two_factor").mustfixThrow("Two factor option [%s] is not available",a)}},[]);j(function(){if(g){if(p==="SMS"){var c;r({account:a,currentMethod:p,isChangePhoneNumber:(c=e==null?void 0:e.isChangePhoneNumber)!=null?c:!1,onClose:b})}else if(p==="CONVERT_VETTED_TO_TRUSTED"){r({account:a,currentMethod:p,onClose:b,optOutDate:(c=e==null?void 0:e.optOutDate)!=null?c:d("FXAccountsCenterTwoFactorVettedToTrustedConstants").VETTED_TO_TRUSTED_OPT_OUT_DATE})}else p==="FIDO"&&(e==null?void 0:e.isEligibleToEditFIDO)===!1?s({onClose:b}):r({account:a,currentMethod:p,onClose:b});h(!1)}},[g]);return[f]}g["default"]=a}),98);
-----
FXAccountsCenterTwoFactorVettedToTrustedDialog.entrypoint",["FXAccountsCenterTwoFactorVettedToTrustedConstants","FXAccountsCenterTwoFactorVettedToTrustedDialogQuery$Parameters","JSResourceForInteraction","getFXClientInterfaceName.entrypoint"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){return{queries:{query:{options:{fetchPolicy:"store-and-network"},parameters:c("FXAccountsCenterTwoFactorVettedToTrustedDialogQuery$Parameters"),variables:{account_id:a.accountID,account_type:a.accountType,date:(a=a.optOutDate)!=null?a:d("FXAccountsCenterTwoFactorVettedToTrustedConstants").VETTED_TO_TRUSTED_OPT_OUT_DATE,"interface":c("getFXClientInterfaceName.entrypoint")()}}}}},root:c("JSResourceForInteraction")("FXAccountsCenterTwoFactorVettedToTrustedDialog.react").__setRef("FXAccountsCenterTwoFactorVettedToTrustedDialog.entrypoint")};b=a;g["default"]=b}),98);
-----
FXAccountsCenterTwoFactorVettedToTrustedConstants",[],(function(a,b,c,d,e,f){"use strict";a=1699808203;f.VETTED_TO_TRUSTED_OPT_OUT_DATE=a}),66);
-----
FXAccountsCenterTwoFactorVettedToTrustedConstants",[],(function(a,b,c,d,e,f){"use strict";a=1694169233;f.VETTED_TO_TRUSTED_OPT_OUT_DATE=a}),66);
-----
FXAccountsCenterTwoFactorVettedToTrustedDialog.entrypoint",["FXAccountsCenterTwoFactorVettedToTrustedConstants","FXAccountsCenterTwoFactorVettedToTrustedDialogQuery$Parameters","JSResourceForInteraction","getFXClientInterfaceName.entrypoint"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){return{queries:{query:{options:{fetchPolicy:"store-and-network"},parameters:c("FXAccountsCenterTwoFactorVettedToTrustedDialogQuery$Parameters"),variables:{account_id:a.accountID,account_type:a.accountType,date:(a=a.optOutDate)!=null?a:d("FXAccountsCenterTwoFactorVettedToTrustedConstants").VETTED_TO_TRUSTED_OPT_OUT_DATE,"interface":c("getFXClientInterfaceName.entrypoint")()}}}}},root:c("JSResourceForInteraction")("FXAccountsCenterTwoFactorVettedToTrustedDialog.react").__setRef("FXAccountsCenterTwoFactorVettedToTrustedDialog.entrypoint")};b=a;g["default"]=b}),98);
-----
-----
FXAccountsCenterTwoFactorVettedToTrustedDialog.entrypoint",["FXAccountsCenterTwoFactorVettedToTrustedConstants","FXAccountsCenterTwoFactorVettedToTrustedDialogQuery$Parameters","JSResourceForInteraction","getFXClientInterfaceName.entrypoint"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){return{queries:{query:{options:{fetchPolicy:"store-and-network"},parameters:c("FXAccountsCenterTwoFactorVettedToTrustedDialogQuery$Parameters"),variables:{account_id:a.accountID,account_type:a.accountType,date:(a=a.optOutDate)!=null?a:d("FXAccountsCenterTwoFactorVettedToTrustedConstants").VETTED_TO_TRUSTED_OPT_OUT_DATE,"interface":c("getFXClientInterfaceName.entrypoint")()}}}}},root:c("JSResourceForInteraction")("FXAccountsCenterTwoFactorVettedToTrustedDialog.react").__setRef("FXAccountsCenterTwoFactorVettedToTrustedDialog.entrypoint")};b=a;g["default"]=b}),98);
-----
FXAccountsCenterTwoFactorVettedToTrustedConstants",[],(function(a,b,c,d,e,f){"use strict";a=1699808203;f.VETTED_TO_TRUSTED_OPT_OUT_DATE=a}),66);
-----
FXAccountsCenterTwoFactorVettedToTrustedConstants",[],(function(a,b,c,d,e,f){"use strict";a=1694169233;f.VETTED_TO_TRUSTED_OPT_OUT_DATE=a}),66);
-----
FXAccountsCenterTwoFactorVettedToTrustedDialog.entrypoint",["FXAccountsCenterTwoFactorVettedToTrustedConstants","FXAccountsCenterTwoFactorVettedToTrustedDialogQuery$Parameters","JSResourceForInteraction","getFXClientInterfaceName.entrypoint"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){return{queries:{query:{options:{fetchPolicy:"store-and-network"},parameters:c("FXAccountsCenterTwoFactorVettedToTrustedDialogQuery$Parameters"),variables:{account_id:a.accountID,account_type:a.accountType,date:(a=a.optOutDate)!=null?a:d("FXAccountsCenterTwoFactorVettedToTrustedConstants").VETTED_TO_TRUSTED_OPT_OUT_DATE,"interface":c("getFXClientInterfaceName.entrypoint")()}}}}},root:c("JSResourceForInteraction")("FXAccountsCenterTwoFactorVettedToTrustedDialog.react").__setRef("FXAccountsCenterTwoFactorVettedToTrustedDialog.entrypoint")};b=a;g["default"]=b}),98);
-----