OCAccountSecurityPINComp.react",["fbt","OCAccountButtonContainerNew.react","OCAccountSecurityPINComp_user.graphql","OCAccountSetPINForm.react","OCAccountSetPINWithPINForm.react","OCAccountSettingsDisplayRow.react","OCDSButton.react","OCDSSpacer.react","OCDSText.react","RelayHooks","react","setTimeout"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useState,m=1e4;function a(a){var e=a.isMissingPassword,f=a.isUserPermanentlyLinked,g=a.isWriteMode,j=a.onCancelClick,n=a.onSetPassword,o=a.onSuccess,p=a.onToggleClick;a=a.user;a=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCAccountSecurityPINComp_user.graphql"),a);var q=a.isPinSet,r=l(null),s=r[0],t=r[1];function u(){t(h._("Your PIN has been changed successfully!")),o(),c("setTimeout")(function(){return t(null)},m)}return k.jsxs("div",{className:"xso031l x1q0q8m5 x135p29s",children:[k.jsx(c("OCAccountSettingsDisplayRow.react"),{isWriteMode:g,label:h._("PIN"),successText:s,value:q===!0?"****":h._("No PIN has been set."),onCancelClick:j,onToggleClick:p}),g&&k.jsx("div",{className:"xbaz6xv",children:e===!0?k.jsxs(k.Fragment,{children:[k.jsx(c("OCDSText.react"),{display:"block",textAlign:"center",type:"body2",children:h._("You"ll need an Oculus password before you can reset your PIN.")}),k.jsx(c("OCDSSpacer.react"),{topSize:"xsmall"}),k.jsx(c("OCAccountButtonContainerNew.react"),{children:k.jsx(c("OCDSButton.react"),{label:h._("SET PASSWORD"),variant:"outline",onClick:n})})]}):f?k.jsx(c("OCAccountSetPINWithPINForm.react"),{user:a,onSuccess:u}):k.jsx(c("OCAccountSetPINForm.react"),{user:a,onSuccess:u})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCAccountSecurityPINComp_user.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCAccountSecurityPINComp_user",selections:[{alias:"isPinSet",args:null,kind:"ScalarField",name:"is_pin_set",storageKey:null},{args:null,kind:"FragmentSpread",name:"OCAccountSetPINWithPINForm_user"},{args:null,kind:"FragmentSpread",name:"OCAccountSetPINForm_user"},{args:null,kind:"FragmentSpread",name:"OCAccountPINPurchaseProtectionOptInRow_user"}],type:"User",abstractKey:null};e.exports=a}),null);
-----
OCAccountSecurityCenterView_viewer.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCAccountSecurityCenterView_viewer",selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null},{args:null,kind:"FragmentSpread",name:"OCAccountSecurityPINComp_user"},{args:null,kind:"FragmentSpread",name:"OCAccountSetPINForm_user"},{args:null,kind:"FragmentSpread",name:"OCAccountSetPINWithPINForm_user"},{args:null,kind:"FragmentSpread",name:"OCAccountSecurityTwoFactorComp_user"},{args:null,kind:"FragmentSpread",name:"OCAccountTwoFactorSetupView_user"},{args:null,kind:"FragmentSpread",name:"OCAccountViewBase_user"},{args:null,kind:"FragmentSpread",name:"OCAccountPINPurchaseProtectionOptInRow_user"}],storageKey:null},{alias:null,args:null,concreteType:"ViewerLinkedAccountsInfo",kind:"LinkedField",name:"linked_accounts_info",plural:!1,selections:[{alias:null,args:null,concreteType:"FacebookAccount",kind:"LinkedField",name:"facebook_account",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"needs_password_to_unlink",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_fb_linked_permanently",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"OCAccountSecuritySessionsComp_viewer"},{args:null,kind:"FragmentSpread",name:"OCAccountManageSessionsView_viewer"}],type:"Viewer",abstractKey:null};e.exports=a}),null);
-----
FRLAccountSecurityPINComp.react",["fbt","FRLAccountSecurityPINComp_user.graphql","FRLEventLogger","OCAccountSetPINWithPINForm.react","OCAccountSettingsDisplayRow.react","RelayHooks","react","setTimeout","useSimpleImpression"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useState,m=1e4;function a(a){a=a.user;var e=d("RelayHooks").useFragment(i!==void 0?i:i=b("FRLAccountSecurityPINComp_user.graphql"),a);a=l(null);var f=a[0],g=a[1];c("useSimpleImpression")(function(){return d("FRLEventLogger").logEvent({account_id:e.frlm_account_id,app_id:"1104169840158622",event_name:"edit_pin_page_load_success",event_flow:"security_settings_pin",event_type:"page_load",step:"settings_security"})});function j(){g(h._("Your PIN has been changed successfully!")),c("setTimeout")(function(){return g(null)},m)}return k.jsxs("div",{children:[k.jsx(c("OCAccountSetPINWithPINForm.react"),{user:e,onSuccess:j}),k.jsx("div",{children:k.jsx(c("OCAccountSettingsDisplayRow.react"),{isWriteMode:!0,label:"",successText:f,value:h._("")})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCAccountSetPINWithPINForm.react",["errorCode","fbt","FRLEventLogger","GraphQLError","OCAccountChangePINMutation","OCAccountPINPurchaseProtectionOptInRow.react","OCAccountRequestPINResetForm.react","OCAccountSetPINWithPINFormRefetchQuery.graphql","OCAccountSetPINWithPINForm_user.graphql","OCDSButton.react","OCDSLink.react","OCDSResponsiveRow.react","OCDSResponsiveRowItem.react","OCDSSpacer.react","OCDSText.react","OCDSTextInput.react","OCDigitalPurchasePINPad.react","OCErrorMessageHelper","OCInputValidator.react","OCPINPad.react","OCRelayModern","OCSecuredActionAuth.react","OCValidators","OCWWWAnalyticsLoggingMySecurityPINChangeAttempt.log","asyncToGeneratorRuntime","gkx","promiseDone","react","testID"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||d("react"),n="OCAccountSetPINWithPINForm";a=function(a){babelHelpers.inheritsLoose(e,a);function e(b){b=a.call(this,b)||this;b.state={confirmPIN:"",confirmPINErrorMessage:null,clickedForgotPIN:!1,isLoading:!1,currentPIN:"",currentPINErrorMessage:null,pin:"",pinErrorMessage:null};b.$1=c("OCInputValidator.react").onValidatedInputChange.bind(babelHelpers.assertThisInitialized(b));return b}var f=e.prototype;f.$2=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a.preventDefault();this.$3({app_id:"1104169840158622",account_id:this.props.user.accountID,event_name:"click_save_pin",event_flow:"security_settings_pin",event_type:"click",step:"settings_security"});if(!this.$4())return;yield this.$5()});function c(b){return a.apply(this,arguments)}return c}();f.$6=function(){var a=this.state.currentPIN;if(a===""){this.setState({currentPINErrorMessage:i._("Please enter your current password.")});return!1}if(!d("OCValidators").isValidPIN(a)){this.setState({currentPINErrorMessage:i._("Please enter a valid PIN. PINs must contain 4 numbers.")});return!1}return!0};f.$4=function(){var a=this.state.pin;if(a===""){this.setState({pinErrorMessage:i._("Please enter your new PIN.")});return!1}if(!d("OCValidators").isValidPIN(a)){this.setState({pinErrorMessage:i._("Please enter a valid PIN. PINs must contain 4 numbers.")});return!1}return!0};f.$7=function(){var a=this.state,b=a.confirmPIN;a=a.pin;if(b===""){this.setState({confirmPINErrorMessage:i._("Please enter your new PIN again to confirm.")});return!1}if(!d("OCValidators").isValidPIN(b)){this.setState({confirmPINErrorMessage:i._("Please enter a valid PIN. PINs must contain 4 numbers.")});return!1}if(a!==b){this.setState({confirmPINErrorMessage:i._("Your PINs do not match.")});return!1}return!0};f.$8=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a.preventDefault();a=this.$6();var b=this.$4(),c=this.$7();if(!a||!b||!c)return;yield this.$5()});function c(b){return a.apply(this,arguments)}return c}();f.$5=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=this.state,b=a.currentPIN,e=a.isLoading;a=a.pin;if(!e){this.setState({isLoading:!0});e={current_pin:b,pin:a};c("OCWWWAnalyticsLoggingMySecurityPINChangeAttempt.log")(n,{text:"Save",type:"button"});try{yield d("OCAccountChangePINMutation").commit(e),this.$9()}catch(a){this.$10(a)}}});function e(){return a.apply(this,arguments)}return e}();f.$9=function(){var a=this;this.$3({app_id:"1104169840158622",account_id:this.props.user.accountID,event_name:"save_pin_success",event_flow:"security_settings_pin",event_type:"success",step:"settings_security"});this.props.relay.refetch({},null,function(){a.setState({isLoading:!1,currentPIN:"",pin:"",confirmPIN:""}),a.props.onSuccess()},{force:!0})};f.$10=function(a){var b=this,e=null,f=null,g=!1;if(a!=null){var h,i;h=(h=a==null?void 0:(h=a.source)==null?void 0:h.code)!=null?h:0;i=(i=d("GraphQLError").getErrorMessage(a))!=null?i:d("OCErrorMessageHelper").unknownErrorMessage;switch(h){case 1891017:e=i;break;case 1891344:g=!0;break;case 1891018:default:f=i;break}}this.$3({account_id:this.props.user.accountID,app_id:"1104169840158622",event_name:"save_pin_fail",event_flow:"security_settings_pin",event_type:"error",step:"settings_security",error_reason:(i=(h=e)!=null?h:f)!=null?i:a==null?void 0:a.message});a!=null?g?(this.setState({isLoading:!1}),c("promiseDone")(c("OCSecuredActionAuth.react").showDialog().then(function(){b.$5()}))):this.setState({isLoading:!1,currentPINErrorMessage:e,pinErrorMessage:f}):this.setState({isLoading:!1,pinErrorMessage:d("OCErrorMessageHelper").unknownErrorMessage.toString()})};f.$3=function(a){if(this.props.user.hasValidFRLAccount!==!0)return;d("FRLEventLogger").logEvent(a)};f.render=function(){var a,b=this,d=this.props.user,e=this.state,f=e.clickedForgotPIN,g=e.confirmPIN,h=e.confirmPINErrorMessage,j=e.currentPIN,k=e.currentPINErrorMessage,l=e.isLoading,n=e.pin;e=e.pinErrorMessage;a=(a=this.props.isModalView)!=null?a:!1;var o=m.jsx(c("OCDSButton.react"),{display:a?"block":"inline-block",isDisabled:k!=null||e!=null||h!=null,isLoading:l,label:a?i._("UPDATE PIN"):i._("SAVE"),type:a?"primary":"secondary",variant:a?"filled":"outline"});if(d.isPinSet==null||d.isPinSet===!1){var p=c("OCPINPad.react").PINValidationState.DEFAULT,q;e!=null&&(p=c("OCPINPad.react").PINValidationState.INVALID,q=m.jsx(c("OCDSSpacer.react"),{bottomSize:"small",children:m.jsx(c("OCDSText.react"),{color:"error",display:"block",type:"body2",children:e})}));return m.jsxs("form",babelHelpers["extends"]({method:"post",onSubmit:function(a){return b.$2(a)}},c("testID")("oc-set-pin-with-pin-form"),{children:[q,m.jsx(c("OCDigitalPurchasePINPad.react"),{isPINCreation:!0,pin:n,pinState:p,onChange:function(a){b.setState({pin:a})}}),o]}))}p=m.jsx(c("OCDSText.react"),{type:"body2",children:m.jsx(c("OCDSLink.react"),{onClick:function(){return b.setState({clickedForgotPIN:!0})},children:i._("Forgotten PIN?")})});return f?m.jsx(c("OCAccountRequestPINResetForm.react"),{}):m.jsxs("div",{children:[m.jsxs("form",{method:"post",onSubmit:function(a){return b.$8(a)},children:[m.jsxs(c("OCDSResponsiveRow.react"),{verticalGutter:a?"medium":"small",children:[m.jsxs(c("OCDSResponsiveRowItem.react"),{span:{desktop:a?12:6},children:[m.jsx(c("OCDSTextInput.react"),{autoComplete:"off",errorMessage:k,isDisabled:l,label:i._("Current PIN"),size:"small",type:"password",value:j,onChange:function(a){return b.setState({currentPIN:a.target.value,currentPINErrorMessage:null})}}),m.jsx(c("OCDSSpacer.react"),{topSize:"xsmall"}),p]}),m.jsx(c("OCDSResponsiveRowItem.react"),{span:12,children:m.jsxs(c("OCDSResponsiveRow.react"),{verticalGutter:a?"medium":"small",children:[m.jsx(c("OCDSResponsiveRowItem.react"),{span:{desktop:a?12:6},children:m.jsx(c("OCDSTextInput.react"),{autoComplete:"off",errorMessage:e,isDisabled:l,label:i._("New PIN"),size:"small",type:"password",value:n,onChange:function(a){return b.setState({pin:a.target.value,pinErrorMessage:null})}})}),m.jsx(c("OCDSResponsiveRowItem.react"),{span:{desktop:a?12:6},children:m.jsx(c("OCDSTextInput.react"),{autoComplete:"off",errorMessage:h,isDisabled:l,label:i._("Confirm new PIN"),size:"small",type:"password",value:g,onChange:function(a){return b.setState({confirmPIN:a.target.value,confirmPINErrorMessage:null})}})})]})}),m.jsxs(c("OCDSResponsiveRowItem.react"),{span:12,children:[m.jsx(c("OCDSSpacer.react"),{topSize:"small"}),o]})]}),m.jsx(c("OCDSSpacer.react"),{topSize:"large"})]}),c("gkx")("25645")&&m.jsx(c("OCAccountPINPurchaseProtectionOptInRow.react"),{user:d})]})};return e}(m.Component);e=c("OCRelayModern").createRefetchContainer(a,{user:j!==void 0?j:j=b("OCAccountSetPINWithPINForm_user.graphql")},k!==void 0?k:k=b("OCAccountSetPINWithPINFormRefetchQuery.graphql"));f=e;g["default"]=f}),226);
-----
FRLAccountSecurityPINComp_user.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"FRLAccountSecurityPINComp_user",selections:[{args:null,kind:"FragmentSpread",name:"OCAccountSetPINWithPINForm_user"},{alias:null,args:null,kind:"ScalarField",name:"frlm_account_id",storageKey:null}],type:"User",abstractKey:null};e.exports=a}),null);
-----
OCAccountSetPINWithPINForm_user.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCAccountSetPINWithPINForm_user",selections:[{alias:"accountID",args:null,kind:"ScalarField",name:"frlm_account_id",storageKey:null},{alias:"hasValidFRLAccount",args:null,kind:"ScalarField",name:"has_valid_frl_account",storageKey:null},{alias:"isPinSet",args:null,kind:"ScalarField",name:"is_pin_set",storageKey:null},{args:null,kind:"FragmentSpread",name:"OCAccountPINPurchaseProtectionOptInRow_user"}],type:"User",abstractKey:null};e.exports=a}),null);
-----
FRLAccountSecurityCenterView_viewer.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"FRLAccountSecurityCenterView_viewer",selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null},{args:null,kind:"FragmentSpread",name:"FRLAccountSecurityPINComp_user"},{args:null,kind:"FragmentSpread",name:"OCAccountSetPINWithPINForm_user"},{args:null,kind:"FragmentSpread",name:"OCAccountViewBase_user"}],storageKey:null}],type:"Viewer",abstractKey:null};e.exports=a}),null);
-----
OCAccountSetPINWithPINFormRefetchQuery.graphql",["OCAccountSetPINWithPINFormRefetchQuery_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCAccountSetPINWithPINFormRefetchQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"OCAccountSetPINWithPINForm_user"},{args:null,kind:"FragmentSpread",name:"OCAccountPINPurchaseProtectionOptInRow_user"}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"OCAccountSetPINWithPINFormRefetchQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[{alias:"accountID",args:null,kind:"ScalarField",name:"frlm_account_id",storageKey:null},{alias:"hasValidFRLAccount",args:null,kind:"ScalarField",name:"has_valid_frl_account",storageKey:null},{alias:"isPinSet",args:null,kind:"ScalarField",name:"is_pin_set",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"show_pin_verification",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("OCAccountSetPINWithPINFormRefetchQuery_oculusRelayOperation"),metadata:{},name:"OCAccountSetPINWithPINFormRefetchQuery",operationKind:"query",text:null}};e.exports=a}),null);
-----
OCAccountSetPINWithPINFormRefetchQuery_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6294103753938423"}),null);
-----
OCAccountSecurityPINComp.react",["fbt","OCAccountButtonContainerNew.react","OCAccountSecurityPINComp_user.graphql","OCAccountSetPINForm.react","OCAccountSetPINWithPINForm.react","OCAccountSettingsDisplayRow.react","OCDSButton.react","OCDSSpacer.react","OCDSText.react","RelayHooks","react","setTimeout"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=d("react").useState,l=1e4;function a(a){var e=a.isMissingPassword,f=a.isUserPermanentlyLinked,g=a.isWriteMode,m=a.onCancelClick,n=a.onSetPassword,o=a.onSuccess,p=a.onToggleClick;a=a.user;a=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCAccountSecurityPINComp_user.graphql"),a);var q=a.isPinSet,r=k(null),s=r[0],t=r[1];function u(){t(h._("PIN u7801u66f4u6539u6210u529fuff01")),o(),c("setTimeout")(function(){return t(null)},l)}return j.jsxs("div",{className:"x1wfzsf3",children:[j.jsx(c("OCAccountSettingsDisplayRow.react"),{isWriteMode:g,label:h._("PIN u7801"),successText:s,value:q===!0?"****":h._("u8fd8u672au8bbeu7f6e PIN u7801u3002"),onCancelClick:m,onToggleClick:p}),g&&j.jsx("div",{className:"xbaz6xv",children:e===!0?j.jsxs(j.Fragment,{children:[j.jsx(c("OCDSText.react"),{display:"block",textAlign:"center",type:"body2",children:h._("u4f60u5fc5u987bu8bbeu7f6e Oculus u5bc6u7801u624du80fdu91cdu7f6e PIN u7801u3002")}),j.jsx(c("OCDSSpacer.react"),{topSize:"xsmall"}),j.jsx(c("OCAccountButtonContainerNew.react"),{children:j.jsx(c("OCDSButton.react"),{label:h._("u8bbeu7f6eu5bc6u7801"),variant:"outline",onClick:n})})]}):f?j.jsx(c("OCAccountSetPINWithPINForm.react"),{user:a,onSuccess:u}):j.jsx(c("OCAccountSetPINForm.react"),{user:a,onSuccess:u})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
FRLAccountSecurityPINComp.react",["fbt","FRLAccountSecurityPINComp_user.graphql","FRLEventLogger","OCAccountSetPINWithPINForm.react","OCAccountSettingsDisplayRow.react","RelayHooks","react","setTimeout","useSimpleImpression"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=d("react").useState,l=1e4;function a(a){a=a.user;var e=d("RelayHooks").useFragment(i!==void 0?i:i=b("FRLAccountSecurityPINComp_user.graphql"),a);a=k(null);var f=a[0],g=a[1];c("useSimpleImpression")(function(){return d("FRLEventLogger").logEvent({account_id:e.frlm_account_id,app_id:"1104169840158622",event_name:"edit_pin_page_load_success",event_flow:"security_settings_pin",event_type:"page_load",step:"settings_security"})});function m(){g(h._("PIN u7801u66f4u6539u6210u529fuff01")),c("setTimeout")(function(){return g(null)},l)}return j.jsxs("div",{children:[j.jsx(c("OCAccountSetPINWithPINForm.react"),{user:e,onSuccess:m}),j.jsx("div",{children:j.jsx(c("OCAccountSettingsDisplayRow.react"),{isWriteMode:!0,label:"",successText:f,value:h._("")})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCAccountSetPINWithPINForm.react",["errorCode","fbt","FRLEventLogger","GraphQLError","OCAccountChangePINMutation","OCAccountPINPurchaseProtectionOptInRow.react","OCAccountRequestPINResetForm.react","OCAccountSetPINWithPINFormRefetchQuery.graphql","OCAccountSetPINWithPINForm_user.graphql","OCDSButton.react","OCDSLink.react","OCDSResponsiveRow.react","OCDSResponsiveRowItem.react","OCDSSpacer.react","OCDSText.react","OCDSTextInput.react","OCDigitalPurchasePINPad.react","OCErrorMessageHelper","OCInputValidator.react","OCPINPad.react","OCRelayModern","OCSecuredActionAuth.react","OCValidators","OCWWWAnalyticsLoggingMySecurityPINChangeAttempt.log","gkx","promiseDone","react","regeneratorRuntime","testID"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=d("react"),m="OCAccountSetPINWithPINForm";a=function(a){babelHelpers.inheritsLoose(e,a);function e(b){b=a.call(this,b)||this;b.state={confirmPIN:"",confirmPINErrorMessage:null,clickedForgotPIN:!1,isLoading:!1,currentPIN:"",currentPINErrorMessage:null,pin:"",pinErrorMessage:null};b.$1=c("OCInputValidator.react").onValidatedInputChange.bind(babelHelpers.assertThisInitialized(b));return b}var f=e.prototype;f.$2=function(a){return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:a.preventDefault();this.$3({app_id:"1104169840158622",account_id:this.props.user.accountID,event_name:"click_save_pin",event_flow:"security_settings_pin",event_type:"click",step:"settings_security"});if(this.$4()){c.next=4;break}return c.abrupt("return");case 4:c.next=6;return b("regeneratorRuntime").awrap(this.$5());case 6:case"end":return c.stop()}},null,this)};f.$6=function(){var a=this.state.currentPIN;if(a===""){this.setState({currentPINErrorMessage:i._("u8bf7u8f93u5165u65e7u5bc6u7801u3002")});return!1}if(!d("OCValidators").isValidPIN(a)){this.setState({currentPINErrorMessage:i._("u8bf7u8f93u5165u6709u6548u7684 PIN u7801u3002PIN u7801u5fc5u987bu5305u542b 4 u4e2au6570u5b57u3002")});return!1}return!0};f.$4=function(){var a=this.state.pin;if(a===""){this.setState({pinErrorMessage:i._("u8bf7u8f93u5165u65b0u7684 PIN u7801u3002")});return!1}if(!d("OCValidators").isValidPIN(a)){this.setState({pinErrorMessage:i._("u8bf7u8f93u5165u6709u6548u7684 PIN u7801u3002PIN u7801u5fc5u987bu5305u542b 4 u4e2au6570u5b57u3002")});return!1}return!0};f.$7=function(){var a=this.state,b=a.confirmPIN;a=a.pin;if(b===""){this.setState({confirmPINErrorMessage:i._("u8bf7u518du6b21u8f93u5165u65b0u7684 PIN u7801u6765u786eu8ba4u3002")});return!1}if(!d("OCValidators").isValidPIN(b)){this.setState({confirmPINErrorMessage:i._("u8bf7u8f93u5165u6709u6548u7684 PIN u7801u3002PIN u7801u5fc5u987bu5305u542b 4 u4e2au6570u5b57u3002")});return!1}if(a!==b){this.setState({confirmPINErrorMessage:i._("u4e24u6b21u8f93u5165u7684 PIN u7801u4e0du4e00u81f4u3002")});return!1}return!0};f.$8=function(a){var c,d,e;return b("regeneratorRuntime").async(function(f){while(1)switch(f.prev=f.next){case 0:a.preventDefault();c=this.$6();d=this.$4();e=this.$7();if(!(!c||!d||!e)){f.next=6;break}return f.abrupt("return");case 6:f.next=8;return b("regeneratorRuntime").awrap(this.$5());case 8:case"end":return f.stop()}},null,this)};f.$5=function(){var a,e,f,g,h;return b("regeneratorRuntime").async(function(i){while(1)switch(i.prev=i.next){case 0:a=this.state,e=a.currentPIN,f=a.isLoading,g=a.pin;if(f){i.next=14;break}this.setState({isLoading:!0});h={current_pin:e,pin:g};c("OCWWWAnalyticsLoggingMySecurityPINChangeAttempt.log")(m,{text:"Save",type:"button"});i.prev=5;i.next=8;return b("regeneratorRuntime").awrap(d("OCAccountChangePINMutation").commit(h));case 8:this.$9();i.next=14;break;case 11:i.prev=11,i.t0=i["catch"](5),this.$10(i.t0);case 14:case"end":return i.stop()}},null,this,[[5,11]])};f.$9=function(){var a=this;this.$3({app_id:"1104169840158622",account_id:this.props.user.accountID,event_name:"save_pin_success",event_flow:"security_settings_pin",event_type:"success",step:"settings_security"});this.props.relay.refetch({},null,function(){a.setState({isLoading:!1,currentPIN:"",pin:"",confirmPIN:""}),a.props.onSuccess()},{force:!0})};f.$10=function(a){var b=this,e=null,f=null,g=!1;if(a!=null){var h,i;h=(h=a==null?void 0:(h=a.source)==null?void 0:h.code)!=null?h:0;i=(i=d("GraphQLError").getErrorMessage(a))!=null?i:d("OCErrorMessageHelper").unknownErrorMessage;switch(h){case 1891017:e=i;break;case 1891344:g=!0;break;case 1891018:default:f=i;break}}this.$3({account_id:this.props.user.accountID,app_id:"1104169840158622",event_name:"save_pin_fail",event_flow:"security_settings_pin",event_type:"error",step:"settings_security",error_reason:(i=(h=e)!=null?h:f)!=null?i:a==null?void 0:a.message});a!=null?g?(this.setState({isLoading:!1}),c("promiseDone")(c("OCSecuredActionAuth.react").showDialog().then(function(){b.$5()}))):this.setState({isLoading:!1,currentPINErrorMessage:e,pinErrorMessage:f}):this.setState({isLoading:!1,pinErrorMessage:d("OCErrorMessageHelper").unknownErrorMessage.toString()})};f.$3=function(a){if(this.props.user.hasValidFRLAccount!==!0)return;d("FRLEventLogger").logEvent(a)};f.render=function(){var a,b=this,d=this.props.user,e=this.state,f=e.clickedForgotPIN,g=e.confirmPIN,h=e.confirmPINErrorMessage,j=e.currentPIN,k=e.currentPINErrorMessage,m=e.isLoading,n=e.pin;e=e.pinErrorMessage;a=(a=this.props.isModalView)!=null?a:!1;var o=l.jsx(c("OCDSButton.react"),{display:a?"block":"inline-block",isDisabled:k!=null||e!=null||h!=null,isLoading:m,label:a?i._("u66f4u65b0 PIN u7801"):i._("u4fddu5b58"),type:a?"primary":"secondary",variant:a?"filled":"outline"});if(d.isPinSet==null||d.isPinSet===!1){var p=c("OCPINPad.react").PINValidationState.DEFAULT,q;e!=null&&(p=c("OCPINPad.react").PINValidationState.INVALID,q=l.jsx(c("OCDSSpacer.react"),{bottomSize:"small",children:l.jsx(c("OCDSText.react"),{color:"error",display:"block",type:"body2",children:e})}));return l.jsxs("form",babelHelpers["extends"]({method:"post",onSubmit:function(a){return b.$2(a)}},c("testID")("oc-set-pin-with-pin-form"),{children:[q,l.jsx(c("OCDigitalPurchasePINPad.react"),{isPINCreation:!0,pin:n,pinState:p,onChange:function(a){b.setState({pin:a})}}),o]}))}p=l.jsx(c("OCDSText.react"),{type:"body2",children:l.jsx(c("OCDSLink.react"),{onClick:function(){return b.setState({clickedForgotPIN:!0})},children:i._("u5fd8u8bb0 PIN u7801uff1f")})});return f?l.jsx(c("OCAccountRequestPINResetForm.react"),{}):l.jsxs("div",{children:[l.jsxs("form",{method:"post",onSubmit:function(a){return b.$8(a)},children:[l.jsxs(c("OCDSResponsiveRow.react"),{verticalGutter:a?"medium":"small",children:[l.jsxs(c("OCDSResponsiveRowItem.react"),{span:{desktop:a?12:6},children:[l.jsx(c("OCDSTextInput.react"),{autoComplete:"off",errorMessage:k,isDisabled:m,label:i._("u5f53u524d PIN u7801"),size:"small",type:"password",value:j,onChange:function(a){return b.setState({currentPIN:a.target.value,currentPINErrorMessage:null})}}),l.jsx(c("OCDSSpacer.react"),{topSize:"xsmall"}),p]}),l.jsx(c("OCDSResponsiveRowItem.react"),{span:12,children:l.jsxs(c("OCDSResponsiveRow.react"),{verticalGutter:a?"medium":"small",children:[l.jsx(c("OCDSResponsiveRowItem.react"),{span:{desktop:a?12:6},children:l.jsx(c("OCDSTextInput.react"),{autoComplete:"off",errorMessage:e,isDisabled:m,label:i._("u65b0 PIN u7801"),size:"small",type:"password",value:n,onChange:function(a){return b.setState({pin:a.target.value,pinErrorMessage:null})}})}),l.jsx(c("OCDSResponsiveRowItem.react"),{span:{desktop:a?12:6},children:l.jsx(c("OCDSTextInput.react"),{autoComplete:"off",errorMessage:h,isDisabled:m,label:i._("u518du6b21u8f93u5165u65b0 PIN u7801"),size:"small",type:"password",value:g,onChange:function(a){return b.setState({confirmPIN:a.target.value,confirmPINErrorMessage:null})}})})]})}),l.jsxs(c("OCDSResponsiveRowItem.react"),{span:12,children:[l.jsx(c("OCDSSpacer.react"),{topSize:"small"}),o]})]}),l.jsx(c("OCDSSpacer.react"),{topSize:"large"})]}),c("gkx")("2109")&&l.jsx(c("OCAccountPINPurchaseProtectionOptInRow.react"),{user:d})]})};return e}(l.Component);e=c("OCRelayModern").createRefetchContainer(a,{user:j!==void 0?j:j=b("OCAccountSetPINWithPINForm_user.graphql")},k!==void 0?k:k=b("OCAccountSetPINWithPINFormRefetchQuery.graphql"));f=e;g["default"]=f}),98);
-----
OCAccountSecurityPINComp_user.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCAccountSecurityPINComp_user",selections:[{alias:"isPinSet",args:null,kind:"ScalarField",name:"is_pin_set",storageKey:null},{args:null,kind:"FragmentSpread",name:"OCAccountSetPINWithPINForm_user"},{args:null,kind:"FragmentSpread",name:"OCAccountSetPINForm_user"},{args:null,kind:"FragmentSpread",name:"OCAccountPINPurchaseProtectionOptInRow_user"}],type:"User",abstractKey:null};e.exports=a}),null);
-----
FRLAccountSecurityPINComp_user.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"FRLAccountSecurityPINComp_user",selections:[{args:null,kind:"FragmentSpread",name:"OCAccountSetPINWithPINForm_user"},{alias:null,args:null,kind:"ScalarField",name:"frlm_account_id",storageKey:null}],type:"User",abstractKey:null};e.exports=a}),null);
-----
OCAccountSetPINWithPINForm_user.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCAccountSetPINWithPINForm_user",selections:[{alias:"accountID",args:null,kind:"ScalarField",name:"frlm_account_id",storageKey:null},{alias:"hasValidFRLAccount",args:null,kind:"ScalarField",name:"has_valid_frl_account",storageKey:null},{alias:"isPinSet",args:null,kind:"ScalarField",name:"is_pin_set",storageKey:null},{args:null,kind:"FragmentSpread",name:"OCAccountPINPurchaseProtectionOptInRow_user"}],type:"User",abstractKey:null};e.exports=a}),null);
-----
OCAccountSecurityCenterView_viewer.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCAccountSecurityCenterView_viewer",selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null},{args:null,kind:"FragmentSpread",name:"OCAccountSecurityPINComp_user"},{args:null,kind:"FragmentSpread",name:"OCAccountSetPINForm_user"},{args:null,kind:"FragmentSpread",name:"OCAccountSetPINWithPINForm_user"},{args:null,kind:"FragmentSpread",name:"OCAccountSecurityTwoFactorComp_user"},{args:null,kind:"FragmentSpread",name:"OCAccountTwoFactorSetupView_user"},{args:null,kind:"FragmentSpread",name:"OCAccountViewBase_user"},{args:null,kind:"FragmentSpread",name:"OCAccountPINPurchaseProtectionOptInRow_user"}],storageKey:null},{alias:null,args:null,concreteType:"ViewerLinkedAccountsInfo",kind:"LinkedField",name:"linked_accounts_info",plural:!1,selections:[{alias:null,args:null,concreteType:"FacebookAccount",kind:"LinkedField",name:"facebook_account",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"needs_password_to_unlink",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_fb_linked_permanently",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"OCAccountSecuritySessionsComp_viewer"},{args:null,kind:"FragmentSpread",name:"OCAccountManageSessionsView_viewer"}],type:"Viewer",abstractKey:null};e.exports=a}),null);
-----
FRLAccountSecurityCenterView_viewer.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"FRLAccountSecurityCenterView_viewer",selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null},{args:null,kind:"FragmentSpread",name:"FRLAccountSecurityPINComp_user"},{args:null,kind:"FragmentSpread",name:"OCAccountSetPINWithPINForm_user"},{args:null,kind:"FragmentSpread",name:"OCAccountViewBase_user"}],storageKey:null}],type:"Viewer",abstractKey:null};e.exports=a}),null);
-----
OCAccountSetPINWithPINFormRefetchQuery.graphql",["OCAccountSetPINWithPINFormRefetchQuery_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCAccountSetPINWithPINFormRefetchQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"OCAccountSetPINWithPINForm_user"},{args:null,kind:"FragmentSpread",name:"OCAccountPINPurchaseProtectionOptInRow_user"}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"OCAccountSetPINWithPINFormRefetchQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[{alias:"accountID",args:null,kind:"ScalarField",name:"frlm_account_id",storageKey:null},{alias:"hasValidFRLAccount",args:null,kind:"ScalarField",name:"has_valid_frl_account",storageKey:null},{alias:"isPinSet",args:null,kind:"ScalarField",name:"is_pin_set",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"show_pin_verification",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("OCAccountSetPINWithPINFormRefetchQuery_oculusRelayOperation"),metadata:{},name:"OCAccountSetPINWithPINFormRefetchQuery",operationKind:"query",text:null}};e.exports=a}),null);
-----
OCAccountSetPINWithPINFormRefetchQuery_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6294103753938423"}),null);
-----