OCAccountSetPINForm.react",["errorCode","fbt","GraphQLError","OCAccountChangePINMutation","OCAccountSetPINFormRefetchQuery.graphql","OCAccountSetPINForm_user.graphql","OCDSButton.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","promiseDone","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||d("react"),n="OCAccountSetPINForm";a=function(a){babelHelpers.inheritsLoose(e,a);function e(e){var f;f=a.call(this,e)||this;f.state={confirmPIN:"",confirmPINErrorMessage:null,isLoading:!1,password:"",passwordErrorMessage:null,pin:"",pinErrorMessage:null};f.$2=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a.preventDefault();if(!f.$3())return;yield f.$4()});return function(b){return a.apply(this,arguments)}}();f.$7=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a.preventDefault();a=f.$5();var b=f.$3(),c=f.$6();if(!a||!b||!c)return;yield f.$4()});return function(b){return a.apply(this,arguments)}}();f.$4=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=f.state,b=a.isLoading,e=a.password;a=a.pin;if(!b){f.setState({isLoading:!0});b={password:e,pin:a};c("OCWWWAnalyticsLoggingMySecurityPINChangeAttempt.log")(n,{text:"Save",type:"button"});try{yield d("OCAccountChangePINMutation").commit(b),f.$8()}catch(a){f.$9(a)}}});f.$1=c("OCInputValidator.react").onValidatedInputChange.bind(babelHelpers.assertThisInitialized(f));return f}var f=e.prototype;f.$5=function(){var a=this.state.password;if(a===""){this.setState({passwordErrorMessage:i._("Please enter your current password.")});return!1}if(!d("OCValidators").isEmptyOrIsValidPassword(a)){this.setState({passwordErrorMessage:d("OCErrorMessageHelper").passwordLengthErrorMessage(d("OCErrorMessageHelper").password_min_length())});return!1}return!0};f.$3=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.$6=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=this;this.props.relay.refetch({},null,function(){a.setState({isLoading:!1,password:"",pin:"",confirmPIN:""}),a.props.onSuccess()},{force:!0})};f.$9=function(a){if(a!=null){var b;b=(b=a==null?void 0:(b=a.source)==null?void 0:b.code)!=null?b:0;a=(a=d("GraphQLError").getErrorMessage(a))!=null?a:d("OCErrorMessageHelper").unknownErrorMessage;var e=null,f=null,g=!1;switch(b){case 1891007:e=a;break;case 1891344:g=!0;break;case 1891018:default:f=a;break}g?(this.setState({isLoading:!1}),c("promiseDone")(c("OCSecuredActionAuth.react").showDialog().then(this.$4))):this.setState({isLoading:!1,passwordErrorMessage:e,pinErrorMessage:f})}else this.setState({isLoading:!1,pinErrorMessage:d("OCErrorMessageHelper").unknownErrorMessage.toString()})};f.render=function(){var a,b=this,d=this.props.user,e=this.state,f=e.confirmPIN,g=e.confirmPINErrorMessage,h=e.isLoading,j=e.password,k=e.passwordErrorMessage,l=e.pin;e=e.pinErrorMessage;a=(a=this.props.isModalView)!=null?a:!1;var n=m.jsx(c("OCDSButton.react"),{display:a?"block":"inline-block",isDisabled:k!=null||e!=null||g!=null,isLoading:h,label:a?i._("UPDATE PIN"):i._("SAVE"),type:a?"primary":"secondary",variant:a?"filled":"outline"});if(d.isPinSet==null||d.isPinSet===!1){d=c("OCPINPad.react").PINValidationState.DEFAULT;var o;e!=null&&(d=c("OCPINPad.react").PINValidationState.INVALID,o=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",{method:"post",onSubmit:this.$2,children:[o,m.jsx(c("OCDigitalPurchasePINPad.react"),{isPINCreation:!0,pin:l,pinState:d,onChange:function(a){b.setState({pin:a})}}),n]})}return m.jsx("form",{method:"post",onSubmit:this.$7,children:m.jsxs(c("OCDSResponsiveRow.react"),{verticalGutter:a?"medium":"small",children:[m.jsx(c("OCDSResponsiveRowItem.react"),{span:12,children:m.jsx(c("OCDSResponsiveRow.react"),{children:m.jsx(c("OCDSResponsiveRowItem.react"),{span:{desktop:a?12:6},children:m.jsx(c("OCDSTextInput.react"),{autoComplete:"on",errorMessage:k,isDisabled:h,label:i._("Password"),size:"small",type:"password",value:j,onChange:function(a){return b.setState({password:a.target.value,passwordErrorMessage:null})}})})})}),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:h,label:i._("PIN"),size:"small",type:"password",value:l,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:g,isDisabled:h,label:i._("Confirm PIN"),size:"small",type:"password",value:f,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"}),n]})]})})};return e}(m.Component);e=c("OCRelayModern").createRefetchContainer(a,{user:j!==void 0?j:j=b("OCAccountSetPINForm_user.graphql")},k!==void 0?k:k=b("OCAccountSetPINFormRefetchQuery.graphql"));f=e;g["default"]=f}),226);
-----
OCAccountChangePINMutation",["OCAccountChangePINMutation.graphql","OCRelayModern","Promise","RelayFBEnvironment"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h!==void 0?h:h=b("OCAccountChangePINMutation.graphql");function a(a){return new(i||(i=b("Promise")))(function(b,d){return c("OCRelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:j,variables:{input:{password:a.password,current_pin:a.current_pin,pin:a.pin}},onCompleted:function(a){return b(a)},onError:function(a){return d(a)}})})}g.commit=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","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);
-----
OCAccountChangePINMutation.graphql",["OCAccountChangePINMutation_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"is_pin_set",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"OCAccountChangePINMutation",selections:[{alias:null,args:c,concreteType:"UserEditResponsePayload",kind:"LinkedField",name:"user_edit",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[d],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"OCAccountChangePINMutation",selections:[{alias:null,args:c,concreteType:"UserEditResponsePayload",kind:"LinkedField",name:"user_edit",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("OCAccountChangePINMutation_oculusRelayOperation"),metadata:{},name:"OCAccountChangePINMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
OCAccountChangePINMutation_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5093176524065016"}),null);
-----
OCAccountSetPINForm.react",["errorCode","fbt","GraphQLError","OCAccountChangePINMutation","OCAccountSetPINFormRefetchQuery.graphql","OCAccountSetPINForm_user.graphql","OCDSButton.react","OCDSResponsiveRow.react","OCDSResponsiveRowItem.react","OCDSSpacer.react","OCDSText.react","OCDSTextInput.react","OCDigitalPurchasePINPad.react","OCErrorMessageHelper","OCInputValidator.react","OCPINPad.react","OCRelayModern","OCSecuredActionAuth.react","OCValidators","OCWWWAnalyticsLoggingMySecurityPINChangeAttempt.log","promiseDone","react","regeneratorRuntime"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=d("react"),m="OCAccountSetPINForm";a=function(a){babelHelpers.inheritsLoose(e,a);function e(e){var f;f=a.call(this,e)||this;f.state={confirmPIN:"",confirmPINErrorMessage:null,isLoading:!1,password:"",passwordErrorMessage:null,pin:"",pinErrorMessage:null};f.$2=function(a){return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:a.preventDefault();if(f.$3()){c.next=3;break}return c.abrupt("return");case 3:c.next=5;return b("regeneratorRuntime").awrap(f.$4());case 5:case"end":return c.stop()}},null,this)};f.$7=function(a){var c,d,e;return b("regeneratorRuntime").async(function(g){while(1)switch(g.prev=g.next){case 0:a.preventDefault();c=f.$5();d=f.$3();e=f.$6();if(!(!c||!d||!e)){g.next=6;break}return g.abrupt("return");case 6:g.next=8;return b("regeneratorRuntime").awrap(f.$4());case 8:case"end":return g.stop()}},null,this)};f.$4=function(){var a,e,g,h,i;return b("regeneratorRuntime").async(function(j){while(1)switch(j.prev=j.next){case 0:a=f.state,e=a.isLoading,g=a.password,h=a.pin;if(e){j.next=14;break}f.setState({isLoading:!0});i={password:g,pin:h};c("OCWWWAnalyticsLoggingMySecurityPINChangeAttempt.log")(m,{text:"Save",type:"button"});j.prev=5;j.next=8;return b("regeneratorRuntime").awrap(d("OCAccountChangePINMutation").commit(i));case 8:f.$8();j.next=14;break;case 11:j.prev=11,j.t0=j["catch"](5),f.$9(j.t0);case 14:case"end":return j.stop()}},null,this,[[5,11]])};f.$1=c("OCInputValidator.react").onValidatedInputChange.bind(babelHelpers.assertThisInitialized(f));return f}var f=e.prototype;f.$5=function(){var a=this.state.password;if(a===""){this.setState({passwordErrorMessage:i._("u8bf7u8f93u5165u65e7u5bc6u7801u3002")});return!1}if(!d("OCValidators").isEmptyOrIsValidPassword(a)){this.setState({passwordErrorMessage:d("OCErrorMessageHelper").passwordLengthErrorMessage(d("OCErrorMessageHelper").password_min_length())});return!1}return!0};f.$3=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.$6=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(){var a=this;this.props.relay.refetch({},null,function(){a.setState({isLoading:!1,password:"",pin:"",confirmPIN:""}),a.props.onSuccess()},{force:!0})};f.$9=function(a){if(a!=null){var b;b=(b=a==null?void 0:(b=a.source)==null?void 0:b.code)!=null?b:0;a=(a=d("GraphQLError").getErrorMessage(a))!=null?a:d("OCErrorMessageHelper").unknownErrorMessage;var e=null,f=null,g=!1;switch(b){case 1891007:e=a;break;case 1891344:g=!0;break;case 1891018:default:f=a;break}g?(this.setState({isLoading:!1}),c("promiseDone")(c("OCSecuredActionAuth.react").showDialog().then(this.$4))):this.setState({isLoading:!1,passwordErrorMessage:e,pinErrorMessage:f})}else this.setState({isLoading:!1,pinErrorMessage:d("OCErrorMessageHelper").unknownErrorMessage.toString()})};f.render=function(){var a,b=this,d=this.props.user,e=this.state,f=e.confirmPIN,g=e.confirmPINErrorMessage,h=e.isLoading,j=e.password,k=e.passwordErrorMessage,m=e.pin;e=e.pinErrorMessage;a=(a=this.props.isModalView)!=null?a:!1;var n=l.jsx(c("OCDSButton.react"),{display:a?"block":"inline-block",isDisabled:k!=null||e!=null||g!=null,isLoading:h,label:a?i._("u66f4u65b0 PIN u7801"):i._("u4fddu5b58"),type:a?"primary":"secondary",variant:a?"filled":"outline"});if(d.isPinSet==null||d.isPinSet===!1){d=c("OCPINPad.react").PINValidationState.DEFAULT;var o;e!=null&&(d=c("OCPINPad.react").PINValidationState.INVALID,o=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",{method:"post",onSubmit:this.$2,children:[o,l.jsx(c("OCDigitalPurchasePINPad.react"),{isPINCreation:!0,pin:m,pinState:d,onChange:function(a){b.setState({pin:a})}}),n]})}return l.jsx("form",{method:"post",onSubmit:this.$7,children:l.jsxs(c("OCDSResponsiveRow.react"),{verticalGutter:a?"medium":"small",children:[l.jsx(c("OCDSResponsiveRowItem.react"),{span:12,children:l.jsx(c("OCDSResponsiveRow.react"),{children:l.jsx(c("OCDSResponsiveRowItem.react"),{span:{desktop:a?12:6},children:l.jsx(c("OCDSTextInput.react"),{autoComplete:"on",errorMessage:k,isDisabled:h,label:i._("u5bc6u7801"),size:"small",type:"password",value:j,onChange:function(a){return b.setState({password:a.target.value,passwordErrorMessage:null})}})})})}),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:h,label:i._("PIN u7801"),size:"small",type:"password",value:m,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:g,isDisabled:h,label:i._("u518du6b21u8f93u5165 PIN u7801"),size:"small",type:"password",value:f,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"}),n]})]})})};return e}(l.Component);e=c("OCRelayModern").createRefetchContainer(a,{user:j!==void 0?j:j=b("OCAccountSetPINForm_user.graphql")},k!==void 0?k:k=b("OCAccountSetPINFormRefetchQuery.graphql"));f=e;g["default"]=f}),98);
-----
OCAccountChangePINMutation",["OCAccountChangePINMutation.graphql","OCRelayModern","Promise","RelayFBEnvironment"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("OCAccountChangePINMutation.graphql");function a(a){return new(b("Promise"))(function(b,d){return c("OCRelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:i,variables:{input:{password:a.password,current_pin:a.current_pin,pin:a.pin}},onCompleted:function(a){return b(a)},onError:function(a){return d(a)}})})}g.commit=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);
-----
OCAccountChangePINMutation.graphql",["OCAccountChangePINMutation_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"is_pin_set",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"OCAccountChangePINMutation",selections:[{alias:null,args:c,concreteType:"UserEditResponsePayload",kind:"LinkedField",name:"user_edit",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[d],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"OCAccountChangePINMutation",selections:[{alias:null,args:c,concreteType:"UserEditResponsePayload",kind:"LinkedField",name:"user_edit",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("OCAccountChangePINMutation_oculusRelayOperation"),metadata:{},name:"OCAccountChangePINMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
OCAccountChangePINMutation_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5093176524065016"}),null);
-----
-----
OCAccountChangePINMutation",["OCAccountChangePINMutation.graphql","OCRelayModern","Promise","RelayFBEnvironment"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h!==void 0?h:h=b("OCAccountChangePINMutation.graphql");function a(a){return new(i||(i=b("Promise")))(function(b,d){return c("OCRelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:j,variables:{input:{password:a.password,current_pin:a.current_pin,pin:a.pin}},onCompleted:function(a){return b(a)},onError:function(a){return d(a)}})})}g.commit=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","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);
-----
OCAccountChangePINMutation.graphql",["OCAccountChangePINMutation_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"is_pin_set",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"OCAccountChangePINMutation",selections:[{alias:null,args:c,concreteType:"UserEditResponsePayload",kind:"LinkedField",name:"user_edit",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[d],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"OCAccountChangePINMutation",selections:[{alias:null,args:c,concreteType:"UserEditResponsePayload",kind:"LinkedField",name:"user_edit",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("OCAccountChangePINMutation_oculusRelayOperation"),metadata:{},name:"OCAccountChangePINMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
OCAccountChangePINMutation_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5093176524065016"}),null);
-----
OCAccountSetPINForm.react",["errorCode","fbt","GraphQLError","OCAccountChangePINMutation","OCAccountSetPINFormRefetchQuery.graphql","OCAccountSetPINForm_user.graphql","OCDSButton.react","OCDSResponsiveRow.react","OCDSResponsiveRowItem.react","OCDSSpacer.react","OCDSText.react","OCDSTextInput.react","OCDigitalPurchasePINPad.react","OCErrorMessageHelper","OCInputValidator.react","OCPINPad.react","OCRelayModern","OCSecuredActionAuth.react","OCValidators","OCWWWAnalyticsLoggingMySecurityPINChangeAttempt.log","promiseDone","react","regeneratorRuntime"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=d("react"),m="OCAccountSetPINForm";a=function(a){babelHelpers.inheritsLoose(e,a);function e(e){var f;f=a.call(this,e)||this;f.state={confirmPIN:"",confirmPINErrorMessage:null,isLoading:!1,password:"",passwordErrorMessage:null,pin:"",pinErrorMessage:null};f.$2=function(a){return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:a.preventDefault();if(f.$3()){c.next=3;break}return c.abrupt("return");case 3:c.next=5;return b("regeneratorRuntime").awrap(f.$4());case 5:case"end":return c.stop()}},null,this)};f.$7=function(a){var c,d,e;return b("regeneratorRuntime").async(function(g){while(1)switch(g.prev=g.next){case 0:a.preventDefault();c=f.$5();d=f.$3();e=f.$6();if(!(!c||!d||!e)){g.next=6;break}return g.abrupt("return");case 6:g.next=8;return b("regeneratorRuntime").awrap(f.$4());case 8:case"end":return g.stop()}},null,this)};f.$4=function(){var a,e,g,h,i;return b("regeneratorRuntime").async(function(j){while(1)switch(j.prev=j.next){case 0:a=f.state,e=a.isLoading,g=a.password,h=a.pin;if(e){j.next=14;break}f.setState({isLoading:!0});i={password:g,pin:h};c("OCWWWAnalyticsLoggingMySecurityPINChangeAttempt.log")(m,{text:"Save",type:"button"});j.prev=5;j.next=8;return b("regeneratorRuntime").awrap(d("OCAccountChangePINMutation").commit(i));case 8:f.$8();j.next=14;break;case 11:j.prev=11,j.t0=j["catch"](5),f.$9(j.t0);case 14:case"end":return j.stop()}},null,this,[[5,11]])};f.$1=c("OCInputValidator.react").onValidatedInputChange.bind(babelHelpers.assertThisInitialized(f));return f}var f=e.prototype;f.$5=function(){var a=this.state.password;if(a===""){this.setState({passwordErrorMessage:i._("u8bf7u8f93u5165u65e7u5bc6u7801u3002")});return!1}if(!d("OCValidators").isEmptyOrIsValidPassword(a)){this.setState({passwordErrorMessage:d("OCErrorMessageHelper").passwordLengthErrorMessage(d("OCErrorMessageHelper").password_min_length())});return!1}return!0};f.$3=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.$6=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(){var a=this;this.props.relay.refetch({},null,function(){a.setState({isLoading:!1,password:"",pin:"",confirmPIN:""}),a.props.onSuccess()},{force:!0})};f.$9=function(a){if(a!=null){var b;b=(b=a==null?void 0:(b=a.source)==null?void 0:b.code)!=null?b:0;a=(a=d("GraphQLError").getErrorMessage(a))!=null?a:d("OCErrorMessageHelper").unknownErrorMessage;var e=null,f=null,g=!1;switch(b){case 1891007:e=a;break;case 1891344:g=!0;break;case 1891018:default:f=a;break}g?(this.setState({isLoading:!1}),c("promiseDone")(c("OCSecuredActionAuth.react").showDialog().then(this.$4))):this.setState({isLoading:!1,passwordErrorMessage:e,pinErrorMessage:f})}else this.setState({isLoading:!1,pinErrorMessage:d("OCErrorMessageHelper").unknownErrorMessage.toString()})};f.render=function(){var a,b=this,d=this.props.user,e=this.state,f=e.confirmPIN,g=e.confirmPINErrorMessage,h=e.isLoading,j=e.password,k=e.passwordErrorMessage,m=e.pin;e=e.pinErrorMessage;a=(a=this.props.isModalView)!=null?a:!1;var n=l.jsx(c("OCDSButton.react"),{display:a?"block":"inline-block",isDisabled:k!=null||e!=null||g!=null,isLoading:h,label:a?i._("u66f4u65b0 PIN u7801"):i._("u4fddu5b58"),type:a?"primary":"secondary",variant:a?"filled":"outline"});if(d.isPinSet==null||d.isPinSet===!1){d=c("OCPINPad.react").PINValidationState.DEFAULT;var o;e!=null&&(d=c("OCPINPad.react").PINValidationState.INVALID,o=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",{method:"post",onSubmit:this.$2,children:[o,l.jsx(c("OCDigitalPurchasePINPad.react"),{isPINCreation:!0,pin:m,pinState:d,onChange:function(a){b.setState({pin:a})}}),n]})}return l.jsx("form",{method:"post",onSubmit:this.$7,children:l.jsxs(c("OCDSResponsiveRow.react"),{verticalGutter:a?"medium":"small",children:[l.jsx(c("OCDSResponsiveRowItem.react"),{span:12,children:l.jsx(c("OCDSResponsiveRow.react"),{children:l.jsx(c("OCDSResponsiveRowItem.react"),{span:{desktop:a?12:6},children:l.jsx(c("OCDSTextInput.react"),{autoComplete:"on",errorMessage:k,isDisabled:h,label:i._("u5bc6u7801"),size:"small",type:"password",value:j,onChange:function(a){return b.setState({password:a.target.value,passwordErrorMessage:null})}})})})}),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:h,label:i._("PIN u7801"),size:"small",type:"password",value:m,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:g,isDisabled:h,label:i._("u518du6b21u8f93u5165 PIN u7801"),size:"small",type:"password",value:f,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"}),n]})]})})};return e}(l.Component);e=c("OCRelayModern").createRefetchContainer(a,{user:j!==void 0?j:j=b("OCAccountSetPINForm_user.graphql")},k!==void 0?k:k=b("OCAccountSetPINFormRefetchQuery.graphql"));f=e;g["default"]=f}),98);
-----
OCAccountChangePINMutation",["OCAccountChangePINMutation.graphql","OCRelayModern","Promise","RelayFBEnvironment"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("OCAccountChangePINMutation.graphql");function a(a){return new(b("Promise"))(function(b,d){return c("OCRelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:i,variables:{input:{password:a.password,current_pin:a.current_pin,pin:a.pin}},onCompleted:function(a){return b(a)},onError:function(a){return d(a)}})})}g.commit=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);
-----
OCAccountChangePINMutation.graphql",["OCAccountChangePINMutation_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"is_pin_set",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"OCAccountChangePINMutation",selections:[{alias:null,args:c,concreteType:"UserEditResponsePayload",kind:"LinkedField",name:"user_edit",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[d],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"OCAccountChangePINMutation",selections:[{alias:null,args:c,concreteType:"UserEditResponsePayload",kind:"LinkedField",name:"user_edit",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("OCAccountChangePINMutation_oculusRelayOperation"),metadata:{},name:"OCAccountChangePINMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
OCAccountChangePINMutation_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5093176524065016"}),null);
-----