XCloseWindow",[],(function(a,b,c,d,e,f){function a(){window.close()}f.closeWindow=a}),66);
-----
OCAccountPaymentMethodsView.react",["fbt","OCAccountAppStoreAdditionalPurchaseRequirements.react","OCAccountPaymentMethodsAddCreditCard.react","OCAccountPaymentMethodsAddMethodsComp.react","OCAccountPaymentMethodsAddPaypal.react","OCAccountPaymentMethodsList.react","OCAccountPaymentMethodsView_user.graphql","OCAccountSubscriptionPaymentSettings.react","OCAccountViewBase.react","OCCoreUtils","OCDSErrorMessage.react","OCDSPadding.react","OCDSResponsiveRow.react","OCDSResponsiveRowItem.react","OCDSSpinner.react","OCDSText.react","OCURIValidators","ReactRouterDOM","RelayHooks","URI","XCloseWindow","goURI","nullthrows","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.startTransition,n=e.useCallback,o=e.useEffect,p=e.useState;function a(a){var e=a.action,f=a.baToken,g=a.isMetaPayWalletEnabledInAC,k=a.paypal_response,q=a.redirectClose,r=a.redirectURI,s=a.token;a=a.viewer;a=d("RelayHooks").useRefetchableFragment(i!==void 0?i:i=b("OCAccountPaymentMethodsView_user.graphql"),a);var t=a[0],u=a[1],v=(a=t==null?void 0:t.is_pin_set)!=null?a:!1;a=t==null?void 0:t.paymentv2;var w=(a=a==null?void 0:(a=a.edges)==null?void 0:a.length)!=null?a:0,x=t;a=p(e);var y=a[0],z=a[1];a=p(!1);var A=a[0],B=a[1];a=p(f);var C=a[0],D=a[1];f=p(null);var E=f[0],F=f[1],G=n(function(){if(r!=null){var a=d("OCCoreUtils").getOculusDeeplink(r);return a!=null?a:d("OCURIValidators").isValidOculusURI(new(j||(j=c("URI")))(r))?r:null}return null},[r]);o(function(){if(k==="true"&&!A)z("add-paypal");else if(e==="digital-setup"){if(v===!0&&w>0){var a=G();a!=null&&(z("REDIRECT"),c("goURI")(a))}}else v!==!0?z("SETUP_PIN_REDIRECT"):z(e)},[e,w,G,v,A,k]);a=function(){if(x==null)return l.jsx(c("OCDSText.react"),{display:"block",type:"body2",children:h._("Something went wrong while trying to display your payment methods. Please make sure that you are logged in and try again.")});switch(y){case"SETUP_PIN_REDIRECT":return l.jsx("div",{className:"x2b8uid",children:l.jsxs(c("OCDSPadding.react"),{vertical:"large",children:[l.jsx(d("ReactRouterDOM").Redirect,{to:"/my/purchase-pin/"}),l.jsx(c("OCDSSpinner.react"),{size:"large",title:h._("Redirecting... A digital purchase PIN is required before adding a payment method.")})]})});case"add-paypal":return l.jsx(c("OCAccountPaymentMethodsAddPaypal.react"),{baToken:C,newPayPalAdded:A,token:s,user:x,onPaymentMethodUpdated:I,onPayPalError:J});case"digital-setup":case"digital-update":return l.jsx(c("OCAccountPaymentMethodsAddMethodsComp.react"),{isMetaPayWalletEnabledInAC:g,viewer:t,onAddMethod:H,onPaymentMethodAdded:I});case"add-credit-card":return l.jsx(c("OCAccountPaymentMethodsAddCreditCard.react"),{isMetaPayWalletEnabledInAC:g,user:x,onPaymentMethodAdded:I});case"REDIRECT":return l.jsx("div",{className:"x2b8uid",children:l.jsx(c("OCDSPadding.react"),{vertical:"large",children:l.jsx(c("OCDSSpinner.react"),{size:"large",title:h._("Redirecting to {redirectURI}",[h._param("redirectURI",r)])})})});default:return l.jsxs("div",{children:[w>0?l.jsx(c("OCAccountPaymentMethodsList.react"),{user:t}):null,l.jsx(c("OCAccountPaymentMethodsAddMethodsComp.react"),{isMetaPayWalletEnabledInAC:g,viewer:t,onAddMethod:H,onPaymentMethodAdded:I}),E!=null?l.jsxs(c("OCDSResponsiveRow.react"),{children:[l.jsx(c("OCDSResponsiveRowItem.react"),{span:12,children:l.jsx(c("OCDSErrorMessage.react"),{children:E.error_title})}),l.jsx(c("OCDSResponsiveRowItem.react"),{span:12,children:l.jsx(c("OCDSErrorMessage.react"),{children:E.error_description})})]}):null]})}};var H=function(a){switch(a){case"cc":z("add-credit-card");break;case"paypal":D(null);F(null);z("add-paypal");break}},I=function(){var a=null;switch(y){case"digital-update":case"add-paypal":case"add-credit-card":q===!0&&d("XCloseWindow").closeWindow();var b=G();b!=null&&(a="REDIRECT",c("goURI")(b));break;default:break}y==="add-paypal"&&(B(!0),m(function(){u({})}));z(a)},J=function(a){F(a),z(null)};return l.jsxs(c("OCAccountViewBase.react"),{headerText:h._("Payment methods"),user:c("nullthrows")(x),children:[a(),x&&l.jsx(c("OCAccountAppStoreAdditionalPurchaseRequirements.react"),{user:x}),x&&l.jsx(c("OCAccountSubscriptionPaymentSettings.react"),{user:x})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCAccountPaymentMethodsView.react",["fbt","OCAccountAppStoreAdditionalPurchaseRequirements.react","OCAccountPaymentMethodsAddCreditCard.react","OCAccountPaymentMethodsAddMethodsComp.react","OCAccountPaymentMethodsAddPaypal.react","OCAccountPaymentMethodsList.react","OCAccountPaymentMethodsView_viewer.graphql","OCAccountPinPurchaseOptOut.react","OCAccountViewBase.react","OCCoreUtils","OCDSPadding.react","OCDSSpinner.react","OCDSText.react","OCMonetizationExperiments","OCPurchasePreferences","OCRelayModern","OCURIValidators","QE2Logger","ReactRouterDOM","URI","XCloseWindow","goURI","nullthrows","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h0){e=this.$1();e!=null&&(this.setState({currentAction:"REDIRECT"}),c("goURI")(e))}}else a!==!0?this.setState({currentAction:"SETUP_PIN_REDIRECT"}):this.setState({currentAction:d})};e.$2=function(){var a,b;a=(a=this.props.viewer)==null?void 0:a.user;if(a==null)return j.jsx(c("OCDSText.react"),{display:"block",type:"body2",children:h._("u5c1du8bd5u663eu793au652fu4ed8u65b9u5f0fu65f6u51fau9519uff0cu8bf7u786eu4fddu4f60u5df2u767bu5f55u5e76u91cdu8bd5u3002")});switch(this.state.currentAction){case"SETUP_PIN_REDIRECT":return j.jsx("div",{className:"x2b8uid",children:j.jsxs(c("OCDSPadding.react"),{vertical:"large",children:[j.jsx(d("ReactRouterDOM").Redirect,{to:"/my/purchase-pin/"}),j.jsx(c("OCDSSpinner.react"),{size:"large",title:h._("u6b63u5728u8df3u8f6c...u6dfbu52a0u652fu4ed8u65b9u5f0fu524duff0cu8bf7u8f93u5165u6570u5b57u8d2du4e70 PIN u7801u3002")})]})});case"add-paypal":return j.jsx(c("OCAccountPaymentMethodsAddPaypal.react"),{token:this.props.token,user:a,onPaymentMethodUpdated:this.$3});case"digital-setup":case"digital-update":return j.jsx(c("OCAccountPaymentMethodsAddMethodsComp.react"),{viewer:this.props.viewer,onAddMethod:this.$4,onPaymentMethodAdded:this.$3});case"add-credit-card":return j.jsx(c("OCAccountPaymentMethodsAddCreditCard.react"),{user:a,onPaymentMethodAdded:this.$3});case"REDIRECT":return j.jsx("div",{className:"x2b8uid",children:j.jsx(c("OCDSPadding.react"),{vertical:"large",children:j.jsx(c("OCDSSpinner.react"),{size:"large",title:h._("u8df3u8f6cu5230{redirectURI}",[h._param("redirectURI",this.props.redirectURI)])})})});default:return j.jsxs("div",{children:[((b=a==null?void 0:(b=a.all_payment_methods)==null?void 0:b.count)!=null?b:0)>0?j.jsx(c("OCAccountPaymentMethodsList.react"),{user:a}):null,j.jsx(c("OCAccountPaymentMethodsAddMethodsComp.react"),{viewer:this.props.viewer,onAddMethod:this.$4,onPaymentMethodAdded:this.$3})]})}};e.$1=function(){var a=this.props.redirectURI;if(a!=null){var b=d("OCCoreUtils").getOculusDeeplink(a);return b!=null?b:d("OCURIValidators").isValidOculusURI(new(c("URI"))(a))?a:null}return null};e.render=function(){var a=this.props.viewer.user;return j.jsxs(c("OCAccountViewBase.react"),{headerText:h._("u652fu4ed8u65b9u5f0f"),user:c("nullthrows")(a),children:[this.$2(),a&&j.jsx(c("OCAccountAppStoreAdditionalPurchaseRequirements.react"),{user:a}),a&&k()&&j.jsx(c("OCAccountPinPurchaseOptOut.react"),{user:a})]})};return b}(j.Component);function k(){d("QE2Logger").logExposure(c("OCPurchasePreferences").PIN_ALTERNATIVES_UNIVERSE,"",14);return c("OCMonetizationExperiments").pinAlternativesEnabled}e=c("OCRelayModern").createFragmentContainer(a,{viewer:i!==void 0?i:i=b("OCAccountPaymentMethodsView_viewer.graphql")});g["default"]=e}),98);
-----
LoginWithPaypalJSAction",["XCloseWindow"],(function(a,b,c,d,e,f,g){function a(){setTimeout(d("XCloseWindow").closeWindow,3e3)}g.closeWindow=a}),98);
-----
XCloseWindow",[],(function(a,b,c,d,e,f){function a(){window.close()}f.closeWindow=a}),66);
-----
-----
OCAccountPaymentMethodsView.react",["fbt","OCAccountAppStoreAdditionalPurchaseRequirements.react","OCAccountPaymentMethodsAddCreditCard.react","OCAccountPaymentMethodsAddMethodsComp.react","OCAccountPaymentMethodsAddPaypal.react","OCAccountPaymentMethodsList.react","OCAccountPaymentMethodsView_user.graphql","OCAccountSubscriptionPaymentSettings.react","OCAccountViewBase.react","OCCoreUtils","OCDSErrorMessage.react","OCDSPadding.react","OCDSResponsiveRow.react","OCDSResponsiveRowItem.react","OCDSSpinner.react","OCDSText.react","OCURIValidators","ReactRouterDOM","RelayHooks","URI","XCloseWindow","goURI","nullthrows","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.startTransition,n=e.useCallback,o=e.useEffect,p=e.useState;function a(a){var e=a.action,f=a.baToken,g=a.isMetaPayWalletEnabledInAC,k=a.paypal_response,q=a.redirectClose,r=a.redirectURI,s=a.token;a=a.viewer;a=d("RelayHooks").useRefetchableFragment(i!==void 0?i:i=b("OCAccountPaymentMethodsView_user.graphql"),a);var t=a[0],u=a[1],v=(a=t==null?void 0:t.is_pin_set)!=null?a:!1;a=t==null?void 0:t.paymentv2;var w=(a=a==null?void 0:(a=a.edges)==null?void 0:a.length)!=null?a:0,x=t;a=p(e);var y=a[0],z=a[1];a=p(!1);var A=a[0],B=a[1];a=p(f);var C=a[0],D=a[1];f=p(null);var E=f[0],F=f[1],G=n(function(){if(r!=null){var a=d("OCCoreUtils").getOculusDeeplink(r);return a!=null?a:d("OCURIValidators").isValidOculusURI(new(j||(j=c("URI")))(r))?r:null}return null},[r]);o(function(){if(k==="true"&&!A)z("add-paypal");else if(e==="digital-setup"){if(v===!0&&w>0){var a=G();a!=null&&(z("REDIRECT"),c("goURI")(a))}}else v!==!0?z("SETUP_PIN_REDIRECT"):z(e)},[e,w,G,v,A,k]);a=function(){if(x==null)return l.jsx(c("OCDSText.react"),{display:"block",type:"body2",children:h._("Something went wrong while trying to display your payment methods. Please make sure that you are logged in and try again.")});switch(y){case"SETUP_PIN_REDIRECT":return l.jsx("div",{className:"x2b8uid",children:l.jsxs(c("OCDSPadding.react"),{vertical:"large",children:[l.jsx(d("ReactRouterDOM").Redirect,{to:"/my/purchase-pin/"}),l.jsx(c("OCDSSpinner.react"),{size:"large",title:h._("Redirecting... A digital purchase PIN is required before adding a payment method.")})]})});case"add-paypal":return l.jsx(c("OCAccountPaymentMethodsAddPaypal.react"),{baToken:C,newPayPalAdded:A,token:s,user:x,onPaymentMethodUpdated:I,onPayPalError:J});case"digital-setup":case"digital-update":return l.jsx(c("OCAccountPaymentMethodsAddMethodsComp.react"),{isMetaPayWalletEnabledInAC:g,viewer:t,onAddMethod:H,onPaymentMethodAdded:I});case"add-credit-card":return l.jsx(c("OCAccountPaymentMethodsAddCreditCard.react"),{isMetaPayWalletEnabledInAC:g,user:x,onPaymentMethodAdded:I});case"REDIRECT":return l.jsx("div",{className:"x2b8uid",children:l.jsx(c("OCDSPadding.react"),{vertical:"large",children:l.jsx(c("OCDSSpinner.react"),{size:"large",title:h._("Redirecting to {redirectURI}",[h._param("redirectURI",r)])})})});default:return l.jsxs("div",{children:[w>0?l.jsx(c("OCAccountPaymentMethodsList.react"),{user:t}):null,l.jsx(c("OCAccountPaymentMethodsAddMethodsComp.react"),{isMetaPayWalletEnabledInAC:g,viewer:t,onAddMethod:H,onPaymentMethodAdded:I}),E!=null?l.jsxs(c("OCDSResponsiveRow.react"),{children:[l.jsx(c("OCDSResponsiveRowItem.react"),{span:12,children:l.jsx(c("OCDSErrorMessage.react"),{children:E.error_title})}),l.jsx(c("OCDSResponsiveRowItem.react"),{span:12,children:l.jsx(c("OCDSErrorMessage.react"),{children:E.error_description})})]}):null]})}};var H=function(a){switch(a){case"cc":z("add-credit-card");break;case"paypal":D(null);F(null);z("add-paypal");break}},I=function(){var a=null;switch(y){case"digital-update":case"add-paypal":case"add-credit-card":q===!0&&d("XCloseWindow").closeWindow();var b=G();b!=null&&(a="REDIRECT",c("goURI")(b));break;default:break}y==="add-paypal"&&(B(!0),m(function(){u({})}));z(a)},J=function(a){F(a),z(null)};return l.jsxs(c("OCAccountViewBase.react"),{headerText:h._("Payment methods"),user:c("nullthrows")(x),children:[a(),x&&l.jsx(c("OCAccountAppStoreAdditionalPurchaseRequirements.react"),{user:x}),x&&l.jsx(c("OCAccountSubscriptionPaymentSettings.react"),{user:x})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCAccountPaymentMethodsView.react",["fbt","OCAccountAppStoreAdditionalPurchaseRequirements.react","OCAccountPaymentMethodsAddCreditCard.react","OCAccountPaymentMethodsAddMethodsComp.react","OCAccountPaymentMethodsAddPaypal.react","OCAccountPaymentMethodsList.react","OCAccountPaymentMethodsView_viewer.graphql","OCAccountPinPurchaseOptOut.react","OCAccountViewBase.react","OCCoreUtils","OCDSPadding.react","OCDSSpinner.react","OCDSText.react","OCMonetizationExperiments","OCPurchasePreferences","OCRelayModern","OCURIValidators","QE2Logger","ReactRouterDOM","URI","XCloseWindow","goURI","nullthrows","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
-----
LoginWithPaypalJSAction",["XCloseWindow"],(function(a,b,c,d,e,f,g){function a(){setTimeout(d("XCloseWindow").closeWindow,3e3)}g.closeWindow=a}),98);
-----
XCloseWindow",[],(function(a,b,c,d,e,f){function a(){window.close()}f.closeWindow=a}),66);
-----