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);
-----
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);
-----
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);
-----
OCAccountPINPurchaseProtectionOptInRow.react",["fbt","OCAccountPINPurchaseProtectionOptInRow_user.graphql","OCAccountUpdatePinPreferenceMutation","OCAccountUpdatePinPreferenceReverifyMutation","OCDSHeading.react","OCDSResponsiveRow.react","OCDSResponsiveRowItem.react","OCDSSpacer.react","OCDSText.react","OCNotificationsDSToggle.react","OCPINPad.react","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useState,n={inner:{display:"x78zum5",alignItems:"x6s0dn4",$$css:!0},pinPadHeader:{display:"x78zum5",alignItems:"x6s0dn4",marginTop:"xw7yly9",marginBottom:"x1yztbdb",$$css:!0}},o="PIN_OPT_IN",p="PIN_OPT_OUT";function a(a){a=a.user;a=d("RelayHooks").useFragment(q,a);a=m((a==null?void 0:a.show_pin_verification)!==null?!a.show_pin_verification:!1);var b=a[0],e=a[1];a=m(!1);var f=a[0],g=a[1];a=m(!1);var i=a[0],j=a[1];a=m(null);var r=a[0],s=a[1];a=m("");var t=a[0],u=a[1],v=d("RelayHooks").useRelayEnvironment(),w=l(function(){i&&(j(!1),u("")),g(!1),s("")},[i]),x=l(function(){i&&(j(!1),u("")),g(!1),s("")},[i]),y=l(function(a){a!=null&&s(a.description),g(!1)},[]),z=l(function(a){a=a.substr(0,4);u(a);a.length===4&&(g(!0),c("OCAccountUpdatePinPreferenceReverifyMutation")(v,{pin:a,pinPreference:p},w,y))},[y,w,v]);a=l(function(){var a=!b;e(a);a?j(!0):(g(!0),c("OCAccountUpdatePinPreferenceMutation")(v,{pinPreference:o},x,y))},[b,v,x,y]);return k.jsxs("div",{children:[k.jsxs(c("OCDSResponsiveRow.react"),{"data-testid":void 0,children:[k.jsx(c("OCDSResponsiveRowItem.react"),{span:{mobile:7,tablet:8,desktop:10},xstyle:n.inner,children:k.jsxs("div",{children:[k.jsx(c("OCDSHeading.react"),{type:"heading6",children:h._("Quick Purchase")}),k.jsx(c("OCDSText.react"),{type:"body2",children:h._("Enable Quick Purchase to skip PIN entry during checkout.")})]})}),k.jsx(c("OCDSSpacer.react"),{topSize:"small"}),k.jsx(c("OCDSResponsiveRowItem.react"),{"data-testid":void 0,span:{mobile:2,tablet:2,desktop:4},xstyle:n.inner,children:k.jsx("div",{className:"x78zum5 x6s0dn4",children:k.jsx(c("OCNotificationsDSToggle.react"),{disabled:f,size:"large",testId:b?"quick-purchase-opt-out-switch-on":"quick-purchase-opt-out-switch-off",value:b,onToggle:a})})})]}),i?k.jsxs(c("OCDSResponsiveRow.react"),{children:[k.jsx(c("OCDSResponsiveRowItem.react"),{span:{mobile:7,tablet:8,desktop:10},xstyle:n.pinPadHeader,children:k.jsx("div",{className:"x78zum5 x6s0dn4 xw7yly9 x1yztbdb",children:k.jsx(c("OCDSText.react"),{type:"body1",children:h._("Enter your PIN to confirm this change")})})}),k.jsx(c("OCDSResponsiveRowItem.react"),{span:{mobile:2,tablet:2,desktop:4},children:k.jsx(c("OCPINPad.react"),{maxDigits:4,pin:t,pinState:c("OCPINPad.react").PINValidationState.DEFAULT,shouldSkipValidationIcon:!0,testId:"quick-purchase-pin-pad",onChange:function(a){z(a)}})})]}):null,r!=null?k.jsx(c("OCDSText.react"),{children:r}):null]})}a.displayName=a.name+" [from "+f.id+"]";var q=i!==void 0?i:i=b("OCAccountPINPurchaseProtectionOptInRow_user.graphql");g["default"]=a}),226);
-----
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);
-----
OCAccountPINPurchaseProtectionOptInRow_user.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCAccountPINPurchaseProtectionOptInRow_user",selections:[{alias:null,args:null,kind:"ScalarField",name:"show_pin_verification",storageKey:null}],type:"User",abstractKey:null};e.exports=a}),null);
-----
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);
-----
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);
-----
OCAccountPINPurchaseProtectionOptInRow.react",["fbt","OCAccountPINPurchaseProtectionOptInRow_user.graphql","OCAccountUpdatePinPreferenceMutation","OCAccountUpdatePinPreferenceReverifyMutation","OCDSHeading.react","OCDSResponsiveRow.react","OCDSResponsiveRowItem.react","OCDSSpacer.react","OCDSText.react","OCNotificationsDSToggle.react","OCPINPad.react","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useCallback,l=e.useState,m={inner:{display:"x78zum5",alignItems:"x6s0dn4",$$css:!0},pinPadHeader:{display:"x78zum5",alignItems:"x6s0dn4",marginTop:"xw7yly9",marginBottom:"x1yztbdb",$$css:!0}},n="PIN_OPT_IN",o="PIN_OPT_OUT";function a(a){a=a.user;a=d("RelayHooks").useFragment(p,a);a=l((a=a==null?void 0:a.show_pin_verification)!=null?a:!0);var b=a[0],e=a[1];a=l(!1);var f=a[0],g=a[1];a=l(!1);var i=a[0],q=a[1];a=l(null);var r=a[0],s=a[1];a=l("");var t=a[0],u=a[1],v=d("RelayHooks").useRelayEnvironment(),w=k(function(a){i&&q(!1);g(!1);e((a=a==null?void 0:(a=a.xoc_viewer_update_pin_preference_reverify)==null?void 0:(a=a.user)==null?void 0:a.show_pin_verification)!=null?a:!0)},[i]),x=k(function(a){i&&q(!1);g(!1);e((a=a==null?void 0:(a=a.xoc_viewer_update_pin_preference)==null?void 0:(a=a.user)==null?void 0:a.show_pin_verification)!=null?a:!0)},[i]),y=k(function(a){a!=null&&s(a.description),g(!1)},[]),z=k(function(a){a=a.substr(0,4);u(a);a.length===4&&c("OCAccountUpdatePinPreferenceReverifyMutation")(v,{pin:a,pinPreference:o},w,y)},[y,w,v]);a=k(function(){var a=!b;a===!1?q(!0):c("OCAccountUpdatePinPreferenceMutation")(v,{pinPreference:n},x,y);e(a)},[b,v,x,y]);return j.jsxs("div",{children:[j.jsxs(c("OCDSResponsiveRow.react"),{"data-testid":void 0,children:[j.jsx(c("OCDSResponsiveRowItem.react"),{span:{mobile:7,tablet:8,desktop:10},xstyle:m.inner,children:j.jsxs("div",{children:[j.jsx(c("OCDSHeading.react"),{type:"heading6",children:h._("PIN u7801u8d2du7269u4fddu62a4")}),j.jsx(c("OCDSText.react"),{type:"body2",children:h._("u5728 Meta Quest u5546u5e97u5b8cu6210u8d2du4e70u65f6u5fc5u987bu4f7fu7528u4f60u7684 PIN u7801")})]})}),j.jsx(c("OCDSSpacer.react"),{topSize:"small"}),j.jsx(c("OCDSResponsiveRowItem.react"),{"data-testid":void 0,span:{mobile:2,tablet:2,desktop:4},xstyle:m.inner,children:j.jsx("div",{className:"x78zum5 x6s0dn4",children:j.jsx(c("OCNotificationsDSToggle.react"),{disabled:f,size:"large",testId:b?"pin-purchase-protection-opt-out-switch-on":"pin-purchase-protection-opt-out-switch-off",value:b,onToggle:a})})})]}),i?j.jsxs(c("OCDSResponsiveRow.react"),{children:[j.jsx(c("OCDSResponsiveRowItem.react"),{span:{mobile:7,tablet:8,desktop:10},xstyle:m.pinPadHeader,children:j.jsx("div",{className:"x78zum5 x6s0dn4 xw7yly9 x1yztbdb",children:j.jsx(c("OCDSText.react"),{type:"body1",children:h._("u8bf7u8f93u5165 PIN u7801u6765u786eu8ba4u8fd9u9879u66f4u6539")})})}),j.jsx(c("OCDSResponsiveRowItem.react"),{span:{mobile:2,tablet:2,desktop:4},children:j.jsx(c("OCPINPad.react"),{maxDigits:4,pin:t,pinState:c("OCPINPad.react").PINValidationState.DEFAULT,shouldSkipValidationIcon:!0,testId:"pin-purchase-protection-pin-pad",onChange:function(a){z(a)}})})]}):null,r!=null?j.jsx(c("OCDSText.react"),{children:r}):null]})}a.displayName=a.name+" [from "+f.id+"]";var p=i!==void 0?i:i=b("OCAccountPINPurchaseProtectionOptInRow_user.graphql");g["default"]=a}),98);
-----
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);
-----
OCAccountPINPurchaseProtectionOptInRow_user.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCAccountPINPurchaseProtectionOptInRow_user",selections:[{alias:null,args:null,kind:"ScalarField",name:"show_pin_verification",storageKey:null}],type:"User",abstractKey:null};e.exports=a}),null);
-----