__d("useMWEBLogEvergreenPINUpsellImpressionMutation_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="25221398067499604"}),null); __d("useMWEBLogEvergreenPINUpsellImpressionMutation.graphql",["useMWEBLogEvergreenPINUpsellImpressionMutation_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{alias:null,args:null,concreteType:"XFBMwEbLogEvergreenPinUpsellImpressionResponsePayload",kind:"LinkedField",name:"xfb_mw_eb_log_evergreen_pin_upsell_impression",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"next_display_timestamp",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useMWEBLogEvergreenPINUpsellImpressionMutation",selections:e,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"useMWEBLogEvergreenPINUpsellImpressionMutation",selections:e},params:{id:n("useMWEBLogEvergreenPINUpsellImpressionMutation_facebookRelayOperation"),metadata:{},name:"useMWEBLogEvergreenPINUpsellImpressionMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null); __d("useMWEBLogEvergreenPINUpsellImpression",["CometRelay","MWEncryptedBackupsLocalStorageEntryEnum","MWEncryptedBackupsSharedState","promiseDone","react","useAsyncReStore","useMWEBLogEvergreenPINUpsellImpressionMutation.graphql"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=(s||(s=o("react"))).useCallback;function c(){var t=o("CometRelay").useMutation(e!==void 0?e:e=n("useMWEBLogEvergreenPINUpsellImpressionMutation.graphql")),a=t[0],i=r("useAsyncReStore")(),l=u(function(){a({onCompleted:function(t){var e,n=(e=t.xfb_mw_eb_log_evergreen_pin_upsell_impression)==null?void 0:e.next_display_timestamp;n!=null&&r("promiseDone")(i,function(e){r("promiseDone")(o("MWEncryptedBackupsSharedState").upsertEBSharedStateEntry({db:e,stateKey:r("MWEncryptedBackupsLocalStorageEntryEnum").EB_EVERGREEN_PIN_UPSELL_DISPLAY_TIMESTAMP_SECONDS,stateValue:n.toString()}))})},variables:{}})},[a,i]);return{logImpression:l}}l.default=c}),98); __d("MWEBJewelEvergreenPINUpsellSoftblock.react",["fbt","BaseMultiStepContainer.react","CometRelay","CometTopNavListDropdownCard.react","CometTransientDialogProvider.react","MWChatEncryptedBackupsLogging","MWChatEncryptedBackupsNumericCodeErrorWrapper.react","MWChatEncryptedBackupsNumericCodeInput.react","MWChatEncryptedBackupsQPLEvents","MWChatEncryptedBackupsQPLSource.enum","MWChatEncryptedBackupsUpsellJewelChatTabLayout.react","MWEBEntrypointsKillswitch.enum","MWEBFlowSourceContextProvider.react","MWEBOnboardingDismissOnboardingUpsellsInRelay","MWEBPinCodeSetupConfirmDialog.entrypoint","MWEBPinCodeSize","MWEBQPResetPIN.react","MWEncryptedBackupsRetrieveQplLoggingAnnotations","MWXColumn.react","MWXColumnItem.react","MWXLink.react","MWXText.react","QPLUserFlow","promiseDone","react","useAsyncReStore","useLabyrinthLogging","useMWChatEncryptedBackupsNumericCode","useMWEBBackupState","useMWEBLogEvergreenPINUpsellImpression","usePushPage","useVisibilityObserver"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c=e,d=c.useCallback,m=c.useEffect,p=c.useId,_=c.useRef,f=c.useState;function g(e){var t=e.dismissJewelSoftblock,n=o("CometRelay").useRelayEnvironment(),a=p(),i=r("useMWEBLogEvergreenPINUpsellImpression")(),l=i.logImpression,c=r("useAsyncReStore")(),g=o("useLabyrinthLogging").useLabyrinthLoggingFlow(),h=g.startFlow;m(function(){r("MWEBPinCodeSetupConfirmDialog.entrypoint").root.preload()},[]);var y=_(!1),C=r("useVisibilityObserver")({onVisible:function(){y.current||(y.current=!0,l(),r("promiseDone")(c,function(e){o("MWEncryptedBackupsRetrieveQplLoggingAnnotations").encryptedBackupsRetrieveQplLoggingAnnotations({db:e,onFetch:function(t){var e=t.firstUpsellTime,n=t.hasUserOnboardedBefore;h({additionalAnnotations:{auto_eb_experience:"PIN_UPSELL",eb_session_identifier:e,has_user_onboarded_before:n},event:o("MWChatEncryptedBackupsQPLEvents").backupSetupQplEvent,source:r("MWChatEncryptedBackupsQPLSource.enum").JEWEL_EVERGREEN_PIN_UPSELL}),r("QPLUserFlow").addPoint(o("MWChatEncryptedBackupsQPLEvents").backupSetupQplEvent,"AUTO_EB_EVERGREEN_PIN_UPSELL_PIN_INSERT_STEP_IMPRESSION")}})}))}}),b=r("usePushPage")(r("MWEBPinCodeSetupConfirmDialog.entrypoint"),{}),v=b[0],S=b[1],R=f(!1),L=R[0],E=R[1],k=p(),I=r("useMWEBBackupState")({entrypoint:r("MWEBEntrypointsKillswitch.enum").JEWEL_EVERGREEN_PIN_UPSELL}),T=I===4||I===3,D=d(function(e){v({backupExists:T,confirmPinImpressionLogQPLName:"AUTO_EB_EVERGREEN_PIN_UPSELL_PIN_CONFIRM_STEP_IMPRESSION",confirmPinSubtitle:s._(/*BTDS*/""),confirmPinTitle:s._(/*BTDS*/""),enteredPinCode:e,onClose:t,onFinish:function(){o("MWEBOnboardingDismissOnboardingUpsellsInRelay").dismissOnboardingUpsellsInRelayStore({environment:n,upsellsToDismiss:"all"}),t()},onStart:t,popParentPage:function(){},qplEventName:o("MWChatEncryptedBackupsQPLEvents").backupSetupQplEvent,setIsMismatchError:E,withCloseButton:!1})},[t,n,v,T]),x=o("useMWChatEncryptedBackupsNumericCode").useMWChatEncryptedBackupsNumericCode({ariaDescribedBy:a,clearInputOnComplete:!0,errorId:k,focusRegionId:"jewel-pin-upsell",inputSize:o("MWEBPinCodeSize").EB_PIN_CODE_SIZE,isMismatchError:L,onChange:function(){E(!1)},onComplete:D,type:"pin"}),$=x[0],P=x[1].invalidKeyPressedError,N=d(function(){r("QPLUserFlow").addPoint(o("MWChatEncryptedBackupsQPLEvents").backupSetupQplEvent,"ONBOARDING_EB_SKIP_CLICK"),o("MWChatEncryptedBackupsLogging").cancelFlow({cancelEndPoint:"AUTO_EB_EVERGREEN_PIN_UPSELL_CLOSE_CLICK",event:o("MWChatEncryptedBackupsQPLEvents").backupSetupQplEvent,source:r("MWChatEncryptedBackupsQPLSource.enum").JEWEL_EVERGREEN_PIN_UPSELL}),t()},[t]),M=P!=null?P:L?s._(/*BTDS*/""):void 0;return u.jsx(r("CometTopNavListDropdownCard.react"),{useFullHeight:!0,useMaxHeight:!0,children:u.jsx(r("MWEBFlowSourceContextProvider.react"),{source:r("MWChatEncryptedBackupsQPLSource.enum").JEWEL_EVERGREEN_PIN_UPSELL,children:u.jsx(r("CometTransientDialogProvider.react"),{children:u.jsx(r("MWXColumn.react"),{expanding:!0,paddingHorizontal:16,paddingVertical:0,ref:C,children:u.jsx(r("BaseMultiStepContainer.react"),{expanding:!0,children:function(t){return u.jsx(r("MWChatEncryptedBackupsUpsellJewelChatTabLayout.react"),{size:"large",topItem:{align:"end",item:u.jsx(r("MWXText.react"),{color:"highlight",type:"button2",children:u.jsx(r("MWXLink.react"),{onClick:N,rel:"noreferrer",testid:void 0,children:s._(/*BTDS*/"")})})},children:u.jsxs(r("MWXColumn.react"),{spacing:16,children:[u.jsx(r("MWXColumnItem.react"),{align:"center",children:u.jsx(r("MWEBQPResetPIN.react"),{})}),u.jsx(r("MWXColumnItem.react"),{children:u.jsx(r("MWXText.react"),{align:"center",isSemanticHeading:!0,type:"headlineEmphasized2",children:s._(/*BTDS*/"")})}),u.jsx(r("MWXColumnItem.react"),{paddingTop:8,children:u.jsx(r("MWXText.react"),{align:"center",color:"secondary",id:a,type:"body3",children:s._(/*BTDS*/"")})}),u.jsx(r("MWXColumnItem.react"),{align:"center",paddingTop:16,paddingVertical:24,children:u.jsx(r("MWChatEncryptedBackupsNumericCodeErrorWrapper.react"),{error:M,inputSize:"small",labelId:k,children:u.jsx(r("MWChatEncryptedBackupsNumericCodeInput.react"),babelHelpers.extends({inputSize:"small",testid:void 0},$))})})]})})}})})})})})}g.displayName=g.name+" [from "+i.id+"]",l.default=g}),226);