MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelectorCVVEntryRow.react",["fbt","FBPayCometAuthAPIUtils","FBPayECPStrings","FBPayLoggingUtils","MCDSText.react","MCDSTextInput.react","MDCAppStoreArvrPaymentMethodUtils","MDCAppStoreOculusEngagementEventsLoggingHooks","MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelectorCVVEntryRow_order.graphql","asyncToGeneratorRuntime","err","gkx","react","react-relay"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));a=j;var l=a.useCallback,m=a.useEffect,n=a.useMemo,o=a.useState;q.displayName="MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelectorCVVEntryRow";function p(a){return a==null||a.trim()===""}function q(a){var e=a.isCvvVerificationRequired,f=a.onCvvVerifyStatusChange,g=a.orderRef;a=a.shouldShowCvvEntryField;var j=i!==void 0?i:i=b("MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelectorCVVEntryRow_order.graphql"),r=d("react-relay").useFragment(j,g),s=n(function(){return d("FBPayLoggingUtils").sessionIDGenerator()},[]),t=(g=r==null?void 0:(j=r.payment_method)==null?void 0:j.id)!=null?g:"";j=o("");var u=j[0],v=j[1];g=o(null);j=g[0];var w=g[1];g=o(!1);var x=g[0],y=g[1];g=o(c("MDCAppStoreArvrPaymentMethodUtils").getCardTypeFromGraphQLType(r==null?void 0:(g=r.payment_method)==null?void 0:g.card_type).cscDigits);var z=g[0],A=g[1],B=d("FBPayCometAuthAPIUtils").usePaymentsCometVerifyAuthFactor(!0),C="VALID",D="MOR_OCULUS_LAUNCH_V2",E="CREATE_AUTH_TICKET_BASED_FACTOR";g=(g=q.displayName)!=null?g:"StorePurchasePaymentMethodCvvEntryRow";var F=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useEventLogging(g),G=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useErrorLogging(g),H=d("FBPayECPStrings").ERROR_COULDNT_VERIFY_CVV;m(function(){var a;v("");y(!1);w(null);A(c("MDCAppStoreArvrPaymentMethodUtils").getCardTypeFromGraphQLType(r==null?void 0:(a=r.payment_method)==null?void 0:a.card_type).cscDigits)},[r==null?void 0:r.payment_method]);var I=l(function(a){F("SUBMIT_CVV_ATTEMPT");w(null);y(!0);if(p(a)||p(t)){G("SUBMIT_CVV_ERROR");w(c("err")(H.toString()));y(!1);return}F("VERIFY_PLATFORM_TRUST_TOKEN_ATTEMPT");B([E],{authFactorType:"CSC",credID:t},D,s,a,null,function(a,b){F("VERIFY_PLATFORM_TRUST_TOKEN_SUCCESS");a=b==null?void 0:(a=b.fbpay_auth_factor_verification)==null?void 0:(b=a.authentication_ticket)==null?void 0:b.auth_ticket_status;y(!1);String(a)===C?f(!0):(G("VERIFY_PLATFORM_TRUST_TOKEN_ERROR"),w(c("err")(H.toString())),y(!1))},function(a){G("VERIFY_PLATFORM_TRUST_TOKEN_ERROR"),w(c("err")(H.toString())),y(!1)},null,null,null,null);F("SUBMIT_CVV_SUCCESS")},[t,G,F,s,B,f,H]),J=l(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a.length<=z&&v(a),a.length===z&&(yield I(a))});return function(b){return a.apply(this,arguments)}}(),[z,I]);if(!c("gkx")("3172"))return null;g=z===c("MDCAppStoreArvrPaymentMethodUtils").getMaxCSCLength()?h._(/*BTDS*/"1234"):h._(/*BTDS*/"123");return!e||a?null:k.jsx(c("MCDSTextInput.react"),{"data-testid":void 0,errorMessage:j?k.jsx(c("MCDSText.react"),{children:H}):null,inputMode:"numberCompact",isDisabled:x===!0,isLoading:x,label:h._(/*BTDS*/"CVV"),maxLength:z,placeholder:g,type:"number",value:u,onSubmit:function(){void I(u)},onValueChange:function(a){void J(a)}})}q.displayName=q.name+" [from "+f.id+"]";g["default"]=q}),226);
-----
MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelectorCVVEntryRow_order.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelectorCVVEntryRow_order",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"payment_method",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"card_type",storageKey:null}],type:"ExternalCreditCard",abstractKey:null}],storageKey:null}],type:"Order",abstractKey:null};e.exports=a}),null);
-----
MDCAppStoreV2PurchaseAddCardPaymentMethodMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],b=[{kind:"Variable",name:"data",variableName:"input"}],c={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"card_type",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"last4",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"is_billing_address_update_required",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"state",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"country",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"zip",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"city",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"street1",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"street2",storageKey:null},m={alias:null,args:null,concreteType:"OCCardPaymentMethodInfoResponse",kind:"LinkedField",name:"card_payment_method_info_3ds2",plural:!1,selections:[{alias:null,args:null,concreteType:"CardPaymentMethodInfoResponse",kind:"LinkedField",name:"card_payment_method_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"mpi_processor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"requires_3ds",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"JWTDataResponse",kind:"LinkedField",name:"jwt",plural:!1,selections:[c,{alias:null,args:null,kind:"ScalarField",name:"token",storageKey:null}],storageKey:null}],storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},p={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"formatted_amount",storageKey:null}],storageKey:null},q=[o,p,c],r=[{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MDCAppStoreV2PurchaseAddCardPaymentMethodMutation",selections:[{alias:null,args:b,concreteType:"AddCreditCardResponsePayload",kind:"LinkedField",name:"add_credit_card",plural:!1,selections:[{alias:null,args:null,concreteType:"ExternalCreditCard",kind:"LinkedField",name:"payment_method",plural:!1,selections:[c,d,e,f,{alias:null,args:null,concreteType:"PaymentAddress",kind:"LinkedField",name:"billing_address",plural:!1,selections:[g,h,i,j,k,l],storageKey:null}],storageKey:null},m,{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:"MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user"}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MDCAppStoreV2PurchaseAddCardPaymentMethodMutation",selections:[{alias:null,args:b,concreteType:"AddCreditCardResponsePayload",kind:"LinkedField",name:"add_credit_card",plural:!1,selections:[{alias:null,args:null,concreteType:"ExternalCreditCard",kind:"LinkedField",name:"payment_method",plural:!1,selections:[c,d,e,f,{alias:null,args:null,concreteType:"PaymentAddress",kind:"LinkedField",name:"billing_address",plural:!1,selections:[g,h,i,j,k,l,c],storageKey:null}],storageKey:null},m,{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:null,args:null,concreteType:"PaymentAccount",kind:"LinkedField",name:"payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:"XOCOCCredit",kind:"LinkedField",name:"credit",plural:!1,selections:[n,o,p],storageKey:null},c,{alias:null,args:null,concreteType:"StoredCredit",kind:"LinkedField",name:"stored_credit",plural:!1,selections:q,storageKey:null},{alias:null,args:null,concreteType:"StoredCredit",kind:"LinkedField",name:"gc_credit",plural:!1,selections:q,storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Literal",name:"first",value:100}],concreteType:"UserToAllPaymentMethodsConnection",kind:"LinkedField",name:"all_payment_methods",plural:!1,selections:[{alias:null,args:null,concreteType:"UserToAllPaymentMethodsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[n,c,o,{kind:"InlineFragment",selections:r,type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:r,type:"PaymentPaypalBillingAgreement",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:"all_payment_methods(first:100)"},c],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:"7813928835371959",metadata:{},name:"MDCAppStoreV2PurchaseAddCardPaymentMethodMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
MDCAppStoreV2PurchaseConfirmOrder.react",["fbt","$InternalEnum","CometRelay","DDSButton.react","DDSFlexbox.react","DDSHorizontalDivider.react","DDSRow.react","DDSRowItem.react","DDSText.react","DDSVerticalStack.react","FBLogger","MDCAppStoreOculusEngagementEventsLogging","MDCAppStoreOculusEngagementEventsLoggingHooks","MDCAppStorePaymentsAPI","MDCAppStoreV2GiftInfoConfirmationView.react","MDCAppStoreV2PurchaseConfirmMessages.react","MDCAppStoreV2PurchaseConfirmOrderHeader.react","MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector.react","MDCAppStoreV2PurchaseConfirmOrderPromoCodeInput.react","MDCAppStoreV2PurchaseConfirmOrderQuery.graphql","MDCAppStoreV2PurchaseConfirmVerifyPin.react","MDCAppStoreV2PurchaseExemptionsRow.react","MDCAppStoreV2PurchaseIncentiveDetailsRow.react","MDCAppStoreV2PurchaseItemNameAndPriceRow.react","MDCAppStoreV2PurchaseNextItemNameAndPriceRow.react","MDCAppStoreV2PurchaseTaxRow.react","MDCAppStoreV2PurchaseTotalPriceRow.react","MDCAppStoreV2Store3DS2Challenge.react","asyncToGeneratorRuntime","gkx","react","useMDCAppStoreV2OnConfirmOrder"],(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.useEffect,n=e.useState,o=b("$InternalEnum").Mirrored(["FORM_ENTRY","THREE_DS_CHALLENGE","THREE_DS_ERROR"]);function a(a){var e=a.onBackClick,f=a.onError,g=a.onHide,j=a.onSubmit,p=a.orderId;a=a.purchaseFlyoutProps;var q=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useEventLogging("MDCAppStoreV2PurchaseConfirmOrder"),r=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useErrorLogging("MDCAppStoreV2PurchaseConfirmOrder");p=d("CometRelay").useLazyLoadQuery(i!==void 0?i:i=b("MDCAppStoreV2PurchaseConfirmOrderQuery.graphql"),{orderId:p});var s=p.order;p=p.viewer;var t=n(o.FORM_ENTRY),u=t[0],v=t[1];t=n(null);var w=t[0],x=t[1];t=n(!1);var y=t[0];t=t[1];var z=n(null),A=z[0],B=z[1];z=n("");var C=z[0];z=z[1];var D=n(!1),E=D[0];D=D[1];var F=n(!1),G=F[0],H=F[1];F=n(!1);var I=F[0];F=F[1];var J=c("useMDCAppStoreV2OnConfirmOrder")(s==null?void 0:s.app_store_item,f,H),K=l(function(a,b,c,d){J(a,b,c,d)},[J]),L=(j=j)!=null?j:K,M=s==null?void 0:s.id,N=l(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a,b;H(!0);d("MDCAppStoreOculusEngagementEventsLogging").logEngagementEvent({event_name:"ACCEPT_PURCHASE",event_type:d("MDCAppStoreOculusEngagementEventsLogging").EngagementEventTypeClick,content_id:s==null?void 0:(a=s.app_store_item)==null?void 0:a.id,store_order_id:M,subsurface:"PDP"});a=null;if((s==null?void 0:(b=s.data_3ds)==null?void 0:b.ddc_jwt_token)!=null&&(s==null?void 0:(b=s.data_3ds)==null?void 0:b.ddc_jwt_token)!==""){var e;q("START_3DS_MDC");var f=function(){r("FINISH_3DS_MDC_ERROR"),v(o.THREE_DS_ERROR)};b=function(a){q("START_3DS_MDC_DDC"),x(a)};var g=function(){q("FINISH_3DS_MDC_DDC_SUCCESS"),x(null),q("START_3DS_MDC_CMPI_CALL")},h=function(a){B(a),v(o.THREE_DS_CHALLENGE),q("FINISH_3DS_MDC_CMPI_CALL_SUCCESS")},i=function(b){a=(b==null?void 0:(b=b.cmpi_3ds2_lookup_query)==null?void 0:b.row_id)||"";if(M==null){f();return!1}q("FINISH_3DS_MDC_SUCCESS");return!0};b=(yield d("MDCAppStorePaymentsAPI").is3dsFlowCompletedSuccessfully((s==null?void 0:(e=s.data_3ds)==null?void 0:e.ddc_jwt_token)||"",f,b,g,s==null?void 0:(e=s.data_3ds)==null?void 0:e.ddc_jwt_id,null,M,!1,h,i));if(!b)return}if(M==null)throw c("FBLogger")("dolly").mustfixThrow("Order ID should not be null.");L(M,C,a,null)}),[r,q,L,s==null?void 0:(j=s.app_store_item)==null?void 0:j.id,s==null?void 0:(K=s.data_3ds)==null?void 0:K.ddc_jwt_id,s==null?void 0:(j=s.data_3ds)==null?void 0:j.ddc_jwt_token,M,C]);j=c("gkx")("25546")&&(p==null?void 0:(K=p.user)==null?void 0:K.show_pin_verification)!==!0;var O=(j||y)&&E&&!I;K=s==null?void 0:s.sent_gift;var P=a.setFooter;m(function(){switch(u){case o.FORM_ENTRY:P(k.jsxs(c("DDSRow.react"),{children:[e&&k.jsx(c("DDSRowItem.react"),{span:6,children:k.jsx(c("DDSButton.react"),{display:"block",label:h._("Back"),type:"secondary-filled",onClick:e})}),k.jsx(c("DDSRowItem.react"),{span:e?6:12,children:k.jsx(c("DDSButton.react"),{"data-testid":void 0,display:"block",isDisabled:!O||G,isLoading:G,label:h._("Confirm"),type:"primary",onClick:function(){N()["catch"](function(a){return f(a)})}})})]}));break;default:P(null)}},[G,e,f,N,P,u,O]);switch(u){case o.FORM_ENTRY:return s&&k.jsxs(c("DDSVerticalStack.react"),{gap:24,children:[k.jsx(c("MDCAppStoreV2PurchaseConfirmOrderHeader.react"),{orderRef:s}),k.jsx(c("DDSHorizontalDivider.react"),{}),k.jsx(c("MDCAppStoreV2PurchaseItemNameAndPriceRow.react"),{orderRef:s}),k.jsx(c("MDCAppStoreV2PurchaseNextItemNameAndPriceRow.react"),{orderRef:s}),k.jsx(c("MDCAppStoreV2PurchaseTaxRow.react"),{orderRef:s}),k.jsx(c("MDCAppStoreV2PurchaseIncentiveDetailsRow.react"),{orderRef:s}),k.jsx(c("MDCAppStoreV2PurchaseExemptionsRow.react"),{orderRef:s}),k.jsx(c("DDSHorizontalDivider.react"),{}),k.jsx(c("MDCAppStoreV2PurchaseTotalPriceRow.react"),{orderRef:s}),k.jsx(c("MDCAppStoreV2PurchaseConfirmOrderPromoCodeInput.react"),{orderRef:s,setIsSaving:F}),K&&k.jsx(c("MDCAppStoreV2GiftInfoConfirmationView.react"),{giftRef:K,viewerRef:p}),k.jsx(c("MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector.react"),{orderRef:s,purchaseFlyoutProps:a,setIsSaving:F,userRef:p==null?void 0:p.user}),!j&&k.jsx(c("MDCAppStoreV2PurchaseConfirmVerifyPin.react"),{isValidPin:y,pin:C,setIsValidPin:t,setPin:z,userRef:p==null?void 0:p.user}),k.jsx(c("MDCAppStoreV2PurchaseConfirmMessages.react"),{orderRef:s,setAllConditionsAccepted:D}),w!=null&&k.jsx("iframe",{className:"x972fbf xcfux6l x1qhh985 xm0m39n xqtp20y xnalus7",srcDoc:w,title:"order-ddc-auth"})]});case o.THREE_DS_CHALLENGE:return k.jsx(c("DDSFlexbox.react"),{justifyContent:"center",children:k.jsx(c("MDCAppStoreV2Store3DS2Challenge.react"),{iframe3DS2ChallengeCallback:function(a){var b=null;a=a.data;typeof a==="string"&&(b=JSON.parse(a).transactionID);if(typeof b==="string"){a=(A==null?void 0:(a=A.cmpi_3ds2_lookup_query)==null?void 0:a.row_id)||"";if(M==null){r("FINISH_3DS_MDC_ERROR");throw c("FBLogger")("dolly").mustfixThrow("Order ID should not be null.")}q("FINISH_3DS_MDC_SUCCESS");L(M,C,a,b)}},lookupResponseData:A})});case o.THREE_DS_ERROR:return k.jsxs(c("DDSVerticalStack.react"),{gap:24,children:[k.jsx(c("DDSText.react"),{type:"mcds-small-body",children:h._("Something went wrong during authentication. Please try again later.")}),k.jsx(c("DDSButton.react"),{display:"block",label:h._("Okay"),type:"primary",onClick:g})]})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MDCAppStoreV2PurchaseConfirmOrderQuery.graphql",["MDCAppStoreV2PurchaseConfirmOrderQuery_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"orderId"}],c=[{kind:"Variable",name:"node_id",variableName:"orderId"}],d={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"card_type",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"last4",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},i={alias:null,args:null,concreteType:"XOCOCOrderData3DS",kind:"LinkedField",name:"data_3ds",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ddc_jwt_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ddc_jwt_token",storageKey:null}],storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"show_pin_verification",storageKey:null},k={kind:"Literal",name:"encode",value:"JPEG"},l=[k,{kind:"Literal",name:"size",value:"720x405"}],m=[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],n={alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"formatted",storageKey:null},p=[o],q={alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"price",plural:!1,selections:p,storageKey:null};o=[o,n];var r={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"formatted_amount",storageKey:null}],storageKey:null},s=[h,r,d],t=[{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MDCAppStoreV2PurchaseConfirmOrderQuery",selections:[{alias:"order",args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[d,{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseItemNameAndPriceRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseNextItemNameAndPriceRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseIncentiveDetailsRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseExemptionsRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseTaxRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseTotalPriceRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderHeader_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderPromoCodeInput_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmMessages_order"},{alias:null,args:null,concreteType:"DigitalGift",kind:"LinkedField",name:"sent_gift",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2GiftInfoConfirmationView_gift"}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"app_store_item",plural:!1,selections:[d,{args:null,kind:"FragmentSpread",name:"useMDCAppStoreV2OnConfirmOrder_item"}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"payment_method",plural:!1,selections:[e,d,{kind:"InlineFragment",selections:[f,g,h],type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:[h],type:"PaymentPaypalBillingAgreement",abstractKey:null}],storageKey:null},i],type:"Order",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2GiftInfoConfirmationView_viewer"},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[j,{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmVerifyPin_user"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user"}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MDCAppStoreV2PurchaseConfirmOrderQuery",selections:[{alias:"order",args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[e,d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"app_store_item",plural:!1,selections:[e,d,h,{kind:"TypeDiscriminator",abstractKey:"__isAppStoreItem"},{alias:null,args:l,concreteType:"Image",kind:"LinkedField",name:"cover_landscape_image",plural:!1,selections:m,storageKey:"cover_landscape_image(encode:"JPEG",size:"720x405")"},{alias:null,args:[k,{kind:"Literal",name:"size",value:"720x720"}],concreteType:"Image",kind:"LinkedField",name:"icon_image",plural:!1,selections:m,storageKey:"icon_image(encode:"JPEG",size:"720x720")"},{alias:null,args:l,concreteType:"Image",kind:"LinkedField",name:"small_landscape_image",plural:!1,selections:m,storageKey:"small_landscape_image(encode:"JPEG",size:"720x405")"},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"current_offer",plural:!1,selections:[e,d,{alias:null,args:null,kind:"ScalarField",name:"offer_type",storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"price",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"strikethrough_price",plural:!1,selections:[n],storageKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"current_offer",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"price_without_proration",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null}],storageKey:null}],storageKey:null}],type:"AppItemBundle",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"AppStoreTrialOffer",kind:"LinkedField",name:"current_trial_offer",plural:!1,selections:[q,d],storageKey:null}],type:"IAPItem",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"OCEntAppStoreItemWithQualityRatingsQualityRatingHistogramAggregate",kind:"LinkedField",name:"quality_rating_histogram_aggregate_all",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"star_rating",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"count",storageKey:null}],storageKey:null}],type:"Application",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:"OrderPurchase",kind:"LinkedField",name:"purchase",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"price_display_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"price_subtitle",storageKey:null},q,{alias:null,args:null,kind:"ScalarField",name:"price_with_formatted_term",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"price_per_month_with_formatted_term",storageKey:null},d,{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"next_price",plural:!1,selections:p,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"next_price_display_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"next_price_subtitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"next_price_with_formatted_term",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"next_price_per_month_with_formatted_term",storageKey:null},{alias:null,args:null,concreteType:"XOCOCPurchaseIncentiveInfo",kind:"LinkedField",name:"incentive_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subtitle",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"exemptions",plural:!1,selections:o,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"exemptions_promo_code",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"exemptions_promo_code_subtitle",storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"tax",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"total_to_charge",plural:!1,selections:p,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_payment_method_required",storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"usable_credit",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"XOCCreditStatus",kind:"LinkedField",name:"credit_status",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"usage_blocked_message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"show_credit_as_payment_method",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"usable_store_credit",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"usable_gc_credit",plural:!1,selections:o,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"can_apply_gc_credit_for_purchase",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_tax_exclusive",storageKey:null},{alias:null,args:null,concreteType:"ViewerSubscriptionInfo",kind:"LinkedField",name:"subscription",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"term_expiration",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"payment_method",plural:!1,selections:[e,d,h,{kind:"InlineFragment",selections:[f,g],type:"ExternalCreditCard",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PurchaseMessage",kind:"LinkedField",name:"pre_purchase_messages",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cta_text",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cta_uri",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"DigitalGift",kind:"LinkedField",name:"sent_gift",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"recipient",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"profile_username",storageKey:null},d],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"recipient_email",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gift_message",storageKey:null},d],storageKey:null},i],type:"Order",abstractKey:null}],storageKey:null},{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:null,args:null,kind:"ScalarField",name:"alias",storageKey:null},d,j,{alias:null,args:null,kind:"ScalarField",name:"has_valid_frl_account",storageKey:null},{alias:null,args:null,concreteType:"PaymentAccount",kind:"LinkedField",name:"payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:"XOCOCCredit",kind:"LinkedField",name:"credit",plural:!1,selections:[e,h,r],storageKey:null},d,{alias:null,args:null,concreteType:"StoredCredit",kind:"LinkedField",name:"stored_credit",plural:!1,selections:s,storageKey:null},{alias:null,args:null,concreteType:"StoredCredit",kind:"LinkedField",name:"gc_credit",plural:!1,selections:s,storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Literal",name:"first",value:100}],concreteType:"UserToAllPaymentMethodsConnection",kind:"LinkedField",name:"all_payment_methods",plural:!1,selections:[{alias:null,args:null,concreteType:"UserToAllPaymentMethodsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[e,d,h,{kind:"InlineFragment",selections:t,type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:t,type:"PaymentPaypalBillingAgreement",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:"all_payment_methods(first:100)"}],storageKey:null}],storageKey:null}]},params:{id:b("MDCAppStoreV2PurchaseConfirmOrderQuery_oculusRelayOperation"),metadata:{},name:"MDCAppStoreV2PurchaseConfirmOrderQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector.react",["fbt","CometRelay","DDSFormSelector.react","DDSFormSelectorItem.react","DDSLink.react","DDSText.react","DDSVerticalStack.react","MDCAppStoreMetaHorizonOSRebrandGating","MDCAppStoreOculusEngagementEventsLoggingHooks","MDCAppStorePanelAppErrorEventLogging","MDCAppStorePaymentMethodConstants","MDCAppStoreSkyErrorUtils","MDCAppStoreV2PurchaseAddPaymentMethod.react","MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_order.graphql","MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user.graphql","MDCAppStoreV2PurchaseConfirmOrderQuestCash.react","asyncToGeneratorRuntime","react","translatedServerString","useMDCAppStoreUpdateOrderPaymentMethod"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k.useState;function a(a){var e,f=a.orderRef,g=a.purchaseFlyoutProps,k=a.setIsSaving;a=a.userRef;var n=d("CometRelay").useFragment(i!==void 0?i:i=b("MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_order.graphql"),f);f=d("CometRelay").useFragment(j!==void 0?j:j=b("MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user.graphql"),a);var o=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useEventLogging("PurchaseConfirmOrderPaymentMethodSelector"),p=d("MDCAppStorePanelAppErrorEventLogging").useErrorLogging("PurchaseConfirmOrderPaymentMethodSelector");a=c("useMDCAppStoreUpdateOrderPaymentMethod")();var q=a[0];a=a[1];var r=m(null),s=r[0],t=r[1];r=(n==null?void 0:(r=n.purchase)==null?void 0:r.is_payment_method_required)===!0&&Number((r=f==null?void 0:(r=f.all_payment_methods)==null?void 0:(r=r.edges)==null?void 0:r.length)!=null?r:0)===0;e=f==null?void 0:(e=f.all_payment_methods)==null?void 0:e.edges;e=(e=e==null?void 0:e.map(function(a){a=a.node;if(a==null||(a==null?void 0:a.credential_type)==null)return null;var b=a.display_name;a=a.id;return a==null||b==null?null:{id:a,display_name:b}}).filter(Boolean))!=null?e:[];var u=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){try{t(null),o("UPDATE_PAYMENT_METHOD_ATTEMPT"),yield q(n.id,a),o("UPDATE_PAYMENT_METHOD_SUCCESS")}catch(a){p("UPDATE_PAYMENT_METHOD_ERROR"),t(a)}});return function(b){return a.apply(this,arguments)}}(),v=l.jsx(c("DDSText.react"),{color:"secondary",type:"mcds-label",children:h._("Vist the {link} to manage payment methods.",[h._param("link",l.jsx(c("DDSLink.react"),{decoration:"always-underline",isMuted:!0,target:"_blank",url:d("MDCAppStorePaymentMethodConstants").PaymentMethodURIs.SECURE_PAYMENT_METHODS,children:d("MDCAppStoreMetaHorizonOSRebrandGating").passMetaHorizonOSRebrand()?"Meta Horizon Store account":"Meta Quest Store account"}))])});return l.jsxs(c("DDSVerticalStack.react"),{gap:16,children:[l.jsx(c("DDSText.react"),{color:"secondary",type:"mcds-small-body-emphasized",children:r?h._("Add payment method"):h._("Payment method")}),r&&l.jsx(c("MDCAppStoreV2PurchaseAddPaymentMethod.react"),{purchaseFlyoutProps:g,onError:function(){},onSuccess:function(a){if(a==null)return;void u(a)}}),l.jsx(c("MDCAppStoreV2PurchaseConfirmOrderQuestCash.react"),{orderRef:n,setIsSaving:k,userRef:f}),e.length!==0&&l.jsxs(c("DDSVerticalStack.react"),{gap:8,children:[l.jsx(c("DDSFormSelector.react"),{"data-testid":void 0,errorMessage:s&&l.jsx(c("DDSText.react"),{children:d("MDCAppStoreSkyErrorUtils").getErrorMessage(s)}),isDisabled:a,label:a?c("translatedServerString")("Updating..."):h._("Credit or debit card"),value:n==null?void 0:(r=n.payment_method)==null?void 0:r.id,onChange:function(a){if(a==null)return;void u(a)},children:e.map(function(a){var b=a.display_name;a=a.id;return l.jsx(c("DDSFormSelectorItem.react"),{label:c("translatedServerString")(b),value:a},a)})}),v]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user",selections:[{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderQuestCash_user"},{alias:null,args:[{kind:"Literal",name:"first",value:100}],concreteType:"UserToAllPaymentMethodsConnection",kind:"LinkedField",name:"all_payment_methods",plural:!1,selections:[{alias:null,args:null,concreteType:"UserToAllPaymentMethodsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},{kind:"InlineFragment",selections:a,type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:a,type:"PaymentPaypalBillingAgreement",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:"all_payment_methods(first:100)"}],type:"User",abstractKey:null}}();e.exports=a}),null);
-----
MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_order.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_order",selections:[{kind:"RequiredField",field:a,action:"THROW",path:"id"},{alias:null,args:null,concreteType:"OrderPurchase",kind:"LinkedField",name:"purchase",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"is_payment_method_required",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"payment_method",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderQuestCash_order"}],type:"Order",abstractKey:null}}();e.exports=a}),null);
-----
MDCAppStoreAddPaymentMethodMutation.graphql",["MDCAppStoreAddPaymentMethodMutation_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:"id",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"card_type",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"last4",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"is_billing_address_update_required",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"state",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"country",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"zip",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"city",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"street1",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"street2",storageKey:null},n={alias:null,args:null,concreteType:"OCCardPaymentMethodInfoResponse",kind:"LinkedField",name:"card_payment_method_info_3ds2",plural:!1,selections:[{alias:null,args:null,concreteType:"CardPaymentMethodInfoResponse",kind:"LinkedField",name:"card_payment_method_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"mpi_processor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"requires_3ds",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"JWTDataResponse",kind:"LinkedField",name:"jwt",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"token",storageKey:null}],storageKey:null}],storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},q={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"formatted_amount",storageKey:null}],storageKey:null},r=[p,q,d],s={alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null},t={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_in_hundredths",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MDCAppStoreAddPaymentMethodMutation",selections:[{alias:null,args:c,concreteType:"AddCreditCardResponsePayload",kind:"LinkedField",name:"add_credit_card",plural:!1,selections:[{alias:null,args:null,concreteType:"ExternalCreditCard",kind:"LinkedField",name:"payment_method",plural:!1,selections:[d,e,f,g,{alias:null,args:null,concreteType:"PaymentAddress",kind:"LinkedField",name:"billing_address",plural:!1,selections:[h,i,j,k,l,m],storageKey:null}],storageKey:null},n,{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:"MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user"}],storageKey:null},{args:null,kind:"FragmentSpread",name:"MDCAppStorePaypalPaymentMethodRow_viewer"}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MDCAppStoreAddPaymentMethodMutation",selections:[{alias:null,args:c,concreteType:"AddCreditCardResponsePayload",kind:"LinkedField",name:"add_credit_card",plural:!1,selections:[{alias:null,args:null,concreteType:"ExternalCreditCard",kind:"LinkedField",name:"payment_method",plural:!1,selections:[d,e,f,g,{alias:null,args:null,concreteType:"PaymentAddress",kind:"LinkedField",name:"billing_address",plural:!1,selections:[h,i,j,k,l,m,d],storageKey:null}],storageKey:null},n,{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:null,args:null,concreteType:"PaymentAccount",kind:"LinkedField",name:"payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:"XOCOCCredit",kind:"LinkedField",name:"credit",plural:!1,selections:[o,p,q],storageKey:null},d,{alias:null,args:null,concreteType:"StoredCredit",kind:"LinkedField",name:"stored_credit",plural:!1,selections:r,storageKey:null},{alias:null,args:null,concreteType:"StoredCredit",kind:"LinkedField",name:"gc_credit",plural:!1,selections:r,storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Literal",name:"first",value:100}],concreteType:"UserToAllPaymentMethodsConnection",kind:"LinkedField",name:"all_payment_methods",plural:!1,selections:[{alias:null,args:null,concreteType:"UserToAllPaymentMethodsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[o,d,p,{kind:"InlineFragment",selections:[s,e,f],type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:[s],type:"PaymentPaypalBillingAgreement",abstractKey:null},{kind:"InlineFragment",selections:[t,{alias:null,args:[{kind:"Literal",name:"first",value:500}],concreteType:"StoredCreditToAllSubcreditsConnection",kind:"LinkedField",name:"subcredits",plural:!1,selections:[{alias:null,args:null,concreteType:"StoredCreditToAllSubcreditsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"StoredSubcredit",kind:"LinkedField",name:"node",plural:!1,selections:[d,t,{alias:null,args:null,kind:"ScalarField",name:"expiration_time",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subcredit_status",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:"subcredits(first:500)"}],type:"StoredCredit",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:"all_payment_methods(first:100)"},d],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("MDCAppStoreAddPaymentMethodMutation_oculusRelayOperation"),metadata:{},name:"MDCAppStoreAddPaymentMethodMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
MDCAppStoreV2PurchaseConfirmOrder.react",["cx","fbt","$InternalEnum","CometRelay","DDSButton.react","DDSFlexbox.react","DDSHorizontalDivider.react","DDSRow.react","DDSRowItem.react","DDSVerticalStack.react","FBLogger","MDCAppStoreButton.react","MDCAppStoreOculusEngagementEventsContext.react","MDCAppStoreOculusEngagementEventsLogging","MDCAppStorePaymentsAPI","MDCAppStoreV2GiftInfoConfirmationView.react","MDCAppStoreV2PurchaseConfirmMessages.react","MDCAppStoreV2PurchaseConfirmOrderHeader.react","MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector.react","MDCAppStoreV2PurchaseConfirmOrderPromoCodeInput.react","MDCAppStoreV2PurchaseConfirmOrderQuery.graphql","MDCAppStoreV2PurchaseConfirmVerifyPin.react","MDCAppStoreV2PurchaseExemptionsRow.react","MDCAppStoreV2PurchaseIncentiveDetailsRow.react","MDCAppStoreV2PurchaseItemNameAndPriceRow.react","MDCAppStoreV2PurchaseNextItemNameAndPriceRow.react","MDCAppStoreV2PurchaseTaxRow.react","MDCAppStoreV2PurchaseTotalPriceRow.react","MDCAppStoreV2Store3DS2Challenge.react","asyncToGeneratorRuntime","gkx","react","useMDCAppStoreV2OnConfirmOrder"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react"));e=k;var m=e.useCallback,n=e.useEffect,o=e.useState,p=b("$InternalEnum").Mirrored(["FORM_ENTRY","THREE_DS_CHALLENGE","THREE_DS_ERROR"]);function a(a){var e=a.onBackClick,f=a.onError,g=a.onHide,h=a.onSubmit,k=a.orderId;a=a.purchaseFlyoutProps;k=d("CometRelay").useLazyLoadQuery(j!==void 0?j:j=b("MDCAppStoreV2PurchaseConfirmOrderQuery.graphql"),{orderId:k});var q=k.order;k=k.viewer;var r=o(p.FORM_ENTRY),s=r[0],t=r[1];r=o(null);var u=r[0],v=r[1];r=o(!1);var w=r[0];r=r[1];var x=o(null),y=x[0],z=x[1];x=o("");var A=x[0];x=x[1];var B=o(!1),C=B[0];B=B[1];var D=o(!1),E=D[0],F=D[1];D=o(!1);var G=D[0];D=D[1];var H=c("useMDCAppStoreV2OnConfirmOrder")(q==null?void 0:q.app_store_item,f,F),I=m(function(a,b,c,d){H(a,b,c,d)},[H]),J=(h=h)!=null?h:I,K=q==null?void 0:q.id,L=m(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;F(!0);d("MDCAppStoreOculusEngagementEventsLogging").logEngagementEvent({event_name:"ACCEPT_PURCHASE",event_type:d("MDCAppStoreOculusEngagementEventsLogging").EngagementEventTypeClick,content_id:q==null?void 0:(a=q.app_store_item)==null?void 0:a.id,store_order_id:K,subsurface:"PDP"});if((q==null?void 0:(a=q.data_3ds)==null?void 0:a.ddc_jwt_token)!=null&&(q==null?void 0:(a=q.data_3ds)==null?void 0:a.ddc_jwt_token)!==""){var b,e=function(){t(p.THREE_DS_ERROR)};a=function(a){v(a)};var f=function(){v(null)},g=function(a){z(a),t(p.THREE_DS_CHALLENGE)},h=function(a){a=(a==null?void 0:(a=a.cmpi_3ds2_lookup_query)==null?void 0:a.row_id)||"";if(K==null){e();return!1}J(K,A,a,null);return!0};a=(yield d("MDCAppStorePaymentsAPI").is3dsFlowCompletedSuccessfully((q==null?void 0:(b=q.data_3ds)==null?void 0:b.ddc_jwt_token)||"",e,a,f,q==null?void 0:(b=q.data_3ds)==null?void 0:b.ddc_jwt_id,null,K,!1,g,h));if(!a)return}if(K==null)throw c("FBLogger")("dolly").mustfixThrow("Order ID should not be null.");J(K,A,null,null)}),[J,q==null?void 0:(h=q.app_store_item)==null?void 0:h.id,q==null?void 0:(I=q.data_3ds)==null?void 0:I.ddc_jwt_id,q==null?void 0:(h=q.data_3ds)==null?void 0:h.ddc_jwt_token,K,A]);h=c("gkx")("25546")&&(k==null?void 0:(I=k.user)==null?void 0:I.show_pin_verification)!==!0;var M=(h||w)&&C&&!G;I=q==null?void 0:q.sent_gift;var N=a.setFooter;n(function(){switch(s){case p.FORM_ENTRY:N(l.jsxs(c("DDSRow.react"),{children:[e&&l.jsx(c("DDSRowItem.react"),{span:6,children:l.jsx(c("DDSButton.react"),{display:"block",label:i._("u8fd4u56de"),type:"secondary-filled",onClick:e})}),l.jsx(c("DDSRowItem.react"),{span:e?6:12,children:l.jsx(c("DDSButton.react"),{"data-testid":void 0,display:"block",isDisabled:!M||E,isLoading:E,label:i._("u786eu8ba4"),type:"primary",onClick:function(){L()["catch"](function(a){return f(a)})}})})]}));break;default:N(null)}},[E,e,f,L,N,s,M]);switch(s){case p.FORM_ENTRY:return q&&l.jsxs(c("DDSVerticalStack.react"),{gap:24,children:[l.jsx(c("MDCAppStoreV2PurchaseConfirmOrderHeader.react"),{orderRef:q}),l.jsx(c("DDSHorizontalDivider.react"),{}),l.jsx(c("MDCAppStoreV2PurchaseItemNameAndPriceRow.react"),{orderRef:q}),l.jsx(c("MDCAppStoreV2PurchaseNextItemNameAndPriceRow.react"),{orderRef:q}),l.jsx(c("MDCAppStoreV2PurchaseTaxRow.react"),{orderRef:q}),l.jsx(c("MDCAppStoreV2PurchaseIncentiveDetailsRow.react"),{orderRef:q}),l.jsx(c("MDCAppStoreV2PurchaseExemptionsRow.react"),{orderRef:q}),l.jsx(c("DDSHorizontalDivider.react"),{}),l.jsx(c("MDCAppStoreV2PurchaseTotalPriceRow.react"),{orderRef:q}),l.jsx(c("MDCAppStoreV2PurchaseConfirmOrderPromoCodeInput.react"),{orderRef:q,setIsSaving:D}),I&&l.jsx(c("MDCAppStoreV2GiftInfoConfirmationView.react"),{giftRef:I,viewerRef:k}),l.jsx(c("MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector.react"),{orderRef:q,purchaseFlyoutProps:a,setIsSaving:D,userRef:k==null?void 0:k.user}),!h&&l.jsx(d("MDCAppStoreOculusEngagementEventsContext.react").MDCAppStoreOculusEngagementEventsContextProvider,{value:{store_order_id:K},children:l.jsx(c("MDCAppStoreV2PurchaseConfirmVerifyPin.react"),{isValidPin:w,pin:A,setIsValidPin:r,setPin:x,userRef:k==null?void 0:k.user})}),l.jsx(c("MDCAppStoreV2PurchaseConfirmMessages.react"),{orderRef:q,setAllConditionsAccepted:B}),u!=null&&l.jsx("iframe",{className:"_anof",srcDoc:u,title:"order-ddc-auth"})]});case p.THREE_DS_CHALLENGE:return l.jsx(c("DDSFlexbox.react"),{justifyContent:"center",children:l.jsx(c("MDCAppStoreV2Store3DS2Challenge.react"),{iframe3DS2ChallengeCallback:function(a){var b=null;a=a.data;typeof a==="string"&&(b=JSON.parse(a).transactionID);if(typeof b==="string"){a=(y==null?void 0:(a=y.cmpi_3ds2_lookup_query)==null?void 0:a.row_id)||"";if(K==null)throw c("FBLogger")("dolly").mustfixThrow("Order ID should not be null.");J(K,A,a,b)}},lookupResponseData:y})});case p.THREE_DS_ERROR:return l.jsxs("div",{className:"_annt",children:[i._("u8eabu4efdu9a8cu8bc1u8fc7u7a0bu4e2du51fau9519uff0cu8bf7u7a0du540eu91cdu8bd5u3002"),l.jsx(c("MDCAppStoreButton.react"),{className:"_annv","data-testid":void 0,tabIndex:0,onClick:g,children:i._("u786eu5b9a")})]})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MDCAppStoreV2PurchaseConfirmOrderQuery.graphql",["MDCAppStoreV2PurchaseConfirmOrderQuery_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"orderId"}],c=[{kind:"Variable",name:"node_id",variableName:"orderId"}],d={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"card_type",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"last4",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},i={alias:null,args:null,concreteType:"XOCOCOrderData3DS",kind:"LinkedField",name:"data_3ds",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ddc_jwt_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ddc_jwt_token",storageKey:null}],storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"show_pin_verification",storageKey:null},k={kind:"Literal",name:"encode",value:"JPEG"},l=[k,{kind:"Literal",name:"size",value:"720x405"}],m=[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],n={alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"formatted",storageKey:null},p=[o],q={alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"price",plural:!1,selections:p,storageKey:null};o=[o,n];var r={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"formatted_amount",storageKey:null}],storageKey:null},s=[h,r,d],t=[{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MDCAppStoreV2PurchaseConfirmOrderQuery",selections:[{alias:"order",args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[d,{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseItemNameAndPriceRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseNextItemNameAndPriceRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseIncentiveDetailsRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseExemptionsRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseTaxRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseTotalPriceRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderHeader_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderPromoCodeInput_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmMessages_order"},{alias:null,args:null,concreteType:"DigitalGift",kind:"LinkedField",name:"sent_gift",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2GiftInfoConfirmationView_gift"}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"app_store_item",plural:!1,selections:[d,{args:null,kind:"FragmentSpread",name:"useMDCAppStoreV2OnConfirmOrder_item"}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"payment_method",plural:!1,selections:[e,d,{kind:"InlineFragment",selections:[f,g,h],type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:[h],type:"PaymentPaypalBillingAgreement",abstractKey:null}],storageKey:null},i],type:"Order",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2GiftInfoConfirmationView_viewer"},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[j,{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmVerifyPin_user"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user"}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MDCAppStoreV2PurchaseConfirmOrderQuery",selections:[{alias:"order",args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[e,d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"app_store_item",plural:!1,selections:[e,d,h,{kind:"TypeDiscriminator",abstractKey:"__isAppStoreItem"},{alias:null,args:l,concreteType:"Image",kind:"LinkedField",name:"cover_landscape_image",plural:!1,selections:m,storageKey:"cover_landscape_image(encode:"JPEG",size:"720x405")"},{alias:null,args:[k,{kind:"Literal",name:"size",value:"720X720"}],concreteType:"Image",kind:"LinkedField",name:"icon_image",plural:!1,selections:m,storageKey:"icon_image(encode:"JPEG",size:"720X720")"},{alias:null,args:l,concreteType:"Image",kind:"LinkedField",name:"small_landscape_image",plural:!1,selections:m,storageKey:"small_landscape_image(encode:"JPEG",size:"720x405")"},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"current_offer",plural:!1,selections:[e,d,{alias:null,args:null,kind:"ScalarField",name:"offer_type",storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"price",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"strikethrough_price",plural:!1,selections:[n],storageKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"current_offer",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"price_without_proration",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null}],storageKey:null}],storageKey:null}],type:"AppItemBundle",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"AppStoreTrialOffer",kind:"LinkedField",name:"current_trial_offer",plural:!1,selections:[q,d],storageKey:null}],type:"IAPItem",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"OCEntAppStoreItemWithQualityRatingsQualityRatingHistogramAggregate",kind:"LinkedField",name:"quality_rating_histogram_aggregate_all",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"star_rating",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"count",storageKey:null}],storageKey:null}],type:"Application",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:"OrderPurchase",kind:"LinkedField",name:"purchase",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"price_display_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"price_subtitle",storageKey:null},q,{alias:null,args:null,kind:"ScalarField",name:"price_with_formatted_term",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"price_per_month_with_formatted_term",storageKey:null},d,{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"next_price",plural:!1,selections:p,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"next_price_display_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"next_price_subtitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"next_price_with_formatted_term",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"next_price_per_month_with_formatted_term",storageKey:null},{alias:null,args:null,concreteType:"XOCOCPurchaseIncentiveInfo",kind:"LinkedField",name:"incentive_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subtitle",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"exemptions",plural:!1,selections:o,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"exemptions_promo_code",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"exemptions_promo_code_subtitle",storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"tax",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"total_to_charge",plural:!1,selections:p,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_payment_method_required",storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"usable_credit",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"XOCCreditStatus",kind:"LinkedField",name:"credit_status",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"usage_blocked_message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"show_credit_as_payment_method",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"usable_store_credit",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"usable_gc_credit",plural:!1,selections:o,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"can_apply_gc_credit_for_purchase",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_tax_exclusive",storageKey:null},{alias:null,args:null,concreteType:"ViewerSubscriptionInfo",kind:"LinkedField",name:"subscription",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"term_expiration",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"payment_method",plural:!1,selections:[e,d,h,{kind:"InlineFragment",selections:[f,g],type:"ExternalCreditCard",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PurchaseMessage",kind:"LinkedField",name:"pre_purchase_messages",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cta_text",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cta_uri",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"DigitalGift",kind:"LinkedField",name:"sent_gift",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"recipient",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"profile_username",storageKey:null},d],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"recipient_email",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gift_message",storageKey:null},d],storageKey:null},i],type:"Order",abstractKey:null}],storageKey:null},{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:null,args:null,kind:"ScalarField",name:"alias",storageKey:null},d,j,{alias:null,args:null,kind:"ScalarField",name:"has_valid_frl_account",storageKey:null},{alias:null,args:null,concreteType:"PaymentAccount",kind:"LinkedField",name:"payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:"XOCOCCredit",kind:"LinkedField",name:"credit",plural:!1,selections:[e,h,r],storageKey:null},d,{alias:null,args:null,concreteType:"StoredCredit",kind:"LinkedField",name:"stored_credit",plural:!1,selections:s,storageKey:null},{alias:null,args:null,concreteType:"StoredCredit",kind:"LinkedField",name:"gc_credit",plural:!1,selections:s,storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Literal",name:"first",value:100}],concreteType:"UserToAllPaymentMethodsConnection",kind:"LinkedField",name:"all_payment_methods",plural:!1,selections:[{alias:null,args:null,concreteType:"UserToAllPaymentMethodsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[e,d,h,{kind:"InlineFragment",selections:t,type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:t,type:"PaymentPaypalBillingAgreement",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:"all_payment_methods(first:100)"}],storageKey:null}],storageKey:null}]},params:{id:b("MDCAppStoreV2PurchaseConfirmOrderQuery_oculusRelayOperation"),metadata:{},name:"MDCAppStoreV2PurchaseConfirmOrderQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector.react",["fbt","CometRelay","DDSFormSelector.react","DDSFormSelectorItem.react","DDSText.react","DDSVerticalStack.react","MDCAppStoreOculusEngagementEventsLoggingHooks","MDCAppStorePanelAppErrorEventLogging","MDCAppStoreSkyErrorUtils","MDCAppStoreV2PurchaseAddPaymentMethod.react","MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_order.graphql","MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user.graphql","MDCAppStoreV2PurchaseConfirmOrderQuestCash.react","asyncToGeneratorRuntime","react","translatedServerString","useMDCAppStoreUpdateOrderPaymentMethod"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k.useState;function a(a){var e,f=a.orderRef,g=a.purchaseFlyoutProps,k=a.setIsSaving;a=a.userRef;var n=d("CometRelay").useFragment(i!==void 0?i:i=b("MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_order.graphql"),f);f=d("CometRelay").useFragment(j!==void 0?j:j=b("MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user.graphql"),a);var o=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useEventLogging("PurchaseConfirmOrderPaymentMethodSelector"),p=d("MDCAppStorePanelAppErrorEventLogging").useErrorLogging("PurchaseConfirmOrderPaymentMethodSelector");a=c("useMDCAppStoreUpdateOrderPaymentMethod")();var q=a[0];a=a[1];var r=m(null),s=r[0],t=r[1];r=(n==null?void 0:(r=n.purchase)==null?void 0:r.is_payment_method_required)===!0&&Number((r=f==null?void 0:(r=f.all_payment_methods)==null?void 0:(r=r.edges)==null?void 0:r.length)!=null?r:0)===0;e=f==null?void 0:(e=f.all_payment_methods)==null?void 0:e.edges;e=(e=e==null?void 0:e.map(function(a){a=a.node;if(a==null||(a==null?void 0:a.credential_type)==null)return null;var b=a.display_name;a=a.id;return a==null||b==null?null:{id:a,display_name:b}}).filter(Boolean))!=null?e:[];var u=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){try{t(null),o("UPDATE_PAYMENT_METHOD_ATTEMPT"),yield q(n.id,a),o("UPDATE_PAYMENT_METHOD_SUCCESS")}catch(a){p("UPDATE_PAYMENT_METHOD_ERROR"),t(a)}});return function(b){return a.apply(this,arguments)}}();return l.jsxs(c("DDSVerticalStack.react"),{gap:16,children:[l.jsx(c("DDSText.react"),{color:"secondary",type:"mcds-small-body-emphasized",children:r?h._("Add payment method"):h._("u652fu4ed8u65b9u5f0f")}),r&&l.jsx(c("MDCAppStoreV2PurchaseAddPaymentMethod.react"),{purchaseFlyoutProps:g,onError:function(){},onSuccess:function(a){if(a==null)return;void u(a)}}),l.jsx(c("MDCAppStoreV2PurchaseConfirmOrderQuestCash.react"),{orderRef:n,setIsSaving:k,userRef:f}),e.length!==0&&l.jsx(c("DDSFormSelector.react"),{"data-testid":void 0,errorMessage:s&&l.jsx(c("DDSText.react"),{children:d("MDCAppStoreSkyErrorUtils").getErrorMessage(s)}),isDisabled:a,label:a?c("translatedServerString")("Updating..."):h._("Credit or debit card"),value:n==null?void 0:(r=n.payment_method)==null?void 0:r.id,onChange:function(a){if(a==null)return;void u(a)},children:e.map(function(a){var b=a.display_name;a=a.id;return l.jsx(c("DDSFormSelectorItem.react"),{label:c("translatedServerString")(b),value:a},a)})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user",selections:[{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderQuestCash_user"},{alias:null,args:[{kind:"Literal",name:"first",value:100}],concreteType:"UserToAllPaymentMethodsConnection",kind:"LinkedField",name:"all_payment_methods",plural:!1,selections:[{alias:null,args:null,concreteType:"UserToAllPaymentMethodsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},{kind:"InlineFragment",selections:a,type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:a,type:"PaymentPaypalBillingAgreement",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:"all_payment_methods(first:100)"}],type:"User",abstractKey:null}}();e.exports=a}),null);
-----
MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_order.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_order",selections:[{kind:"RequiredField",field:a,action:"THROW",path:"id"},{alias:null,args:null,concreteType:"OrderPurchase",kind:"LinkedField",name:"purchase",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"is_payment_method_required",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"payment_method",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderQuestCash_order"}],type:"Order",abstractKey:null}}();e.exports=a}),null);
-----
-----
MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelectorCVVEntryRow_order.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelectorCVVEntryRow_order",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"payment_method",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"card_type",storageKey:null}],type:"ExternalCreditCard",abstractKey:null}],storageKey:null}],type:"Order",abstractKey:null};e.exports=a}),null);
-----
MDCAppStoreV2PurchaseAddCardPaymentMethodMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],b=[{kind:"Variable",name:"data",variableName:"input"}],c={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"card_type",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"last4",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"is_billing_address_update_required",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"state",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"country",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"zip",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"city",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"street1",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"street2",storageKey:null},m={alias:null,args:null,concreteType:"OCCardPaymentMethodInfoResponse",kind:"LinkedField",name:"card_payment_method_info_3ds2",plural:!1,selections:[{alias:null,args:null,concreteType:"CardPaymentMethodInfoResponse",kind:"LinkedField",name:"card_payment_method_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"mpi_processor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"requires_3ds",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"JWTDataResponse",kind:"LinkedField",name:"jwt",plural:!1,selections:[c,{alias:null,args:null,kind:"ScalarField",name:"token",storageKey:null}],storageKey:null}],storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},p={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"formatted_amount",storageKey:null}],storageKey:null},q=[o,p,c],r=[{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MDCAppStoreV2PurchaseAddCardPaymentMethodMutation",selections:[{alias:null,args:b,concreteType:"AddCreditCardResponsePayload",kind:"LinkedField",name:"add_credit_card",plural:!1,selections:[{alias:null,args:null,concreteType:"ExternalCreditCard",kind:"LinkedField",name:"payment_method",plural:!1,selections:[c,d,e,f,{alias:null,args:null,concreteType:"PaymentAddress",kind:"LinkedField",name:"billing_address",plural:!1,selections:[g,h,i,j,k,l],storageKey:null}],storageKey:null},m,{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:"MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user"}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MDCAppStoreV2PurchaseAddCardPaymentMethodMutation",selections:[{alias:null,args:b,concreteType:"AddCreditCardResponsePayload",kind:"LinkedField",name:"add_credit_card",plural:!1,selections:[{alias:null,args:null,concreteType:"ExternalCreditCard",kind:"LinkedField",name:"payment_method",plural:!1,selections:[c,d,e,f,{alias:null,args:null,concreteType:"PaymentAddress",kind:"LinkedField",name:"billing_address",plural:!1,selections:[g,h,i,j,k,l,c],storageKey:null}],storageKey:null},m,{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:null,args:null,concreteType:"PaymentAccount",kind:"LinkedField",name:"payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:"XOCOCCredit",kind:"LinkedField",name:"credit",plural:!1,selections:[n,o,p],storageKey:null},c,{alias:null,args:null,concreteType:"StoredCredit",kind:"LinkedField",name:"stored_credit",plural:!1,selections:q,storageKey:null},{alias:null,args:null,concreteType:"StoredCredit",kind:"LinkedField",name:"gc_credit",plural:!1,selections:q,storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Literal",name:"first",value:100}],concreteType:"UserToAllPaymentMethodsConnection",kind:"LinkedField",name:"all_payment_methods",plural:!1,selections:[{alias:null,args:null,concreteType:"UserToAllPaymentMethodsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[n,c,o,{kind:"InlineFragment",selections:r,type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:r,type:"PaymentPaypalBillingAgreement",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:"all_payment_methods(first:100)"},c],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:"7813928835371959",metadata:{},name:"MDCAppStoreV2PurchaseAddCardPaymentMethodMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
MDCAppStoreV2PurchaseConfirmOrder.react",["fbt","$InternalEnum","CometRelay","DDSButton.react","DDSFlexbox.react","DDSHorizontalDivider.react","DDSRow.react","DDSRowItem.react","DDSText.react","DDSVerticalStack.react","FBLogger","MDCAppStoreOculusEngagementEventsLogging","MDCAppStoreOculusEngagementEventsLoggingHooks","MDCAppStorePaymentsAPI","MDCAppStoreV2GiftInfoConfirmationView.react","MDCAppStoreV2PurchaseConfirmMessages.react","MDCAppStoreV2PurchaseConfirmOrderHeader.react","MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector.react","MDCAppStoreV2PurchaseConfirmOrderPromoCodeInput.react","MDCAppStoreV2PurchaseConfirmOrderQuery.graphql","MDCAppStoreV2PurchaseConfirmVerifyPin.react","MDCAppStoreV2PurchaseExemptionsRow.react","MDCAppStoreV2PurchaseIncentiveDetailsRow.react","MDCAppStoreV2PurchaseItemNameAndPriceRow.react","MDCAppStoreV2PurchaseNextItemNameAndPriceRow.react","MDCAppStoreV2PurchaseTaxRow.react","MDCAppStoreV2PurchaseTotalPriceRow.react","MDCAppStoreV2Store3DS2Challenge.react","asyncToGeneratorRuntime","gkx","react","useMDCAppStoreV2OnConfirmOrder"],(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.useEffect,n=e.useState,o=b("$InternalEnum").Mirrored(["FORM_ENTRY","THREE_DS_CHALLENGE","THREE_DS_ERROR"]);function a(a){var e=a.onBackClick,f=a.onError,g=a.onHide,j=a.onSubmit,p=a.orderId;a=a.purchaseFlyoutProps;var q=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useEventLogging("MDCAppStoreV2PurchaseConfirmOrder"),r=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useErrorLogging("MDCAppStoreV2PurchaseConfirmOrder");p=d("CometRelay").useLazyLoadQuery(i!==void 0?i:i=b("MDCAppStoreV2PurchaseConfirmOrderQuery.graphql"),{orderId:p});var s=p.order;p=p.viewer;var t=n(o.FORM_ENTRY),u=t[0],v=t[1];t=n(null);var w=t[0],x=t[1];t=n(!1);var y=t[0];t=t[1];var z=n(null),A=z[0],B=z[1];z=n("");var C=z[0];z=z[1];var D=n(!1),E=D[0];D=D[1];var F=n(!1),G=F[0],H=F[1];F=n(!1);var I=F[0];F=F[1];var J=c("useMDCAppStoreV2OnConfirmOrder")(s==null?void 0:s.app_store_item,f,H),K=l(function(a,b,c,d){J(a,b,c,d)},[J]),L=(j=j)!=null?j:K,M=s==null?void 0:s.id,N=l(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a,b;H(!0);d("MDCAppStoreOculusEngagementEventsLogging").logEngagementEvent({event_name:"ACCEPT_PURCHASE",event_type:d("MDCAppStoreOculusEngagementEventsLogging").EngagementEventTypeClick,content_id:s==null?void 0:(a=s.app_store_item)==null?void 0:a.id,store_order_id:M,subsurface:"PDP"});a=null;if((s==null?void 0:(b=s.data_3ds)==null?void 0:b.ddc_jwt_token)!=null&&(s==null?void 0:(b=s.data_3ds)==null?void 0:b.ddc_jwt_token)!==""){var e;q("START_3DS_MDC");var f=function(){r("FINISH_3DS_MDC_ERROR"),v(o.THREE_DS_ERROR)};b=function(a){q("START_3DS_MDC_DDC"),x(a)};var g=function(){q("FINISH_3DS_MDC_DDC_SUCCESS"),x(null),q("START_3DS_MDC_CMPI_CALL")},h=function(a){B(a),v(o.THREE_DS_CHALLENGE),q("FINISH_3DS_MDC_CMPI_CALL_SUCCESS")},i=function(b){a=(b==null?void 0:(b=b.cmpi_3ds2_lookup_query)==null?void 0:b.row_id)||"";if(M==null){f();return!1}q("FINISH_3DS_MDC_SUCCESS");return!0};b=(yield d("MDCAppStorePaymentsAPI").is3dsFlowCompletedSuccessfully((s==null?void 0:(e=s.data_3ds)==null?void 0:e.ddc_jwt_token)||"",f,b,g,s==null?void 0:(e=s.data_3ds)==null?void 0:e.ddc_jwt_id,null,M,!1,h,i));if(!b)return}if(M==null)throw c("FBLogger")("dolly").mustfixThrow("Order ID should not be null.");L(M,C,a,null)}),[r,q,L,s==null?void 0:(j=s.app_store_item)==null?void 0:j.id,s==null?void 0:(K=s.data_3ds)==null?void 0:K.ddc_jwt_id,s==null?void 0:(j=s.data_3ds)==null?void 0:j.ddc_jwt_token,M,C]);j=c("gkx")("25546")&&(p==null?void 0:(K=p.user)==null?void 0:K.show_pin_verification)!==!0;var O=(j||y)&&E&&!I;K=s==null?void 0:s.sent_gift;var P=a.setFooter;m(function(){switch(u){case o.FORM_ENTRY:P(k.jsxs(c("DDSRow.react"),{children:[e&&k.jsx(c("DDSRowItem.react"),{span:6,children:k.jsx(c("DDSButton.react"),{display:"block",label:h._("Back"),type:"secondary-filled",onClick:e})}),k.jsx(c("DDSRowItem.react"),{span:e?6:12,children:k.jsx(c("DDSButton.react"),{"data-testid":void 0,display:"block",isDisabled:!O||G,isLoading:G,label:h._("Confirm"),type:"primary",onClick:function(){N()["catch"](function(a){return f(a)})}})})]}));break;default:P(null)}},[G,e,f,N,P,u,O]);switch(u){case o.FORM_ENTRY:return s&&k.jsxs(c("DDSVerticalStack.react"),{gap:24,children:[k.jsx(c("MDCAppStoreV2PurchaseConfirmOrderHeader.react"),{orderRef:s}),k.jsx(c("DDSHorizontalDivider.react"),{}),k.jsx(c("MDCAppStoreV2PurchaseItemNameAndPriceRow.react"),{orderRef:s}),k.jsx(c("MDCAppStoreV2PurchaseNextItemNameAndPriceRow.react"),{orderRef:s}),k.jsx(c("MDCAppStoreV2PurchaseTaxRow.react"),{orderRef:s}),k.jsx(c("MDCAppStoreV2PurchaseIncentiveDetailsRow.react"),{orderRef:s}),k.jsx(c("MDCAppStoreV2PurchaseExemptionsRow.react"),{orderRef:s}),k.jsx(c("DDSHorizontalDivider.react"),{}),k.jsx(c("MDCAppStoreV2PurchaseTotalPriceRow.react"),{orderRef:s}),k.jsx(c("MDCAppStoreV2PurchaseConfirmOrderPromoCodeInput.react"),{orderRef:s,setIsSaving:F}),K&&k.jsx(c("MDCAppStoreV2GiftInfoConfirmationView.react"),{giftRef:K,viewerRef:p}),k.jsx(c("MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector.react"),{orderRef:s,purchaseFlyoutProps:a,setIsSaving:F,userRef:p==null?void 0:p.user}),!j&&k.jsx(c("MDCAppStoreV2PurchaseConfirmVerifyPin.react"),{isValidPin:y,pin:C,setIsValidPin:t,setPin:z,userRef:p==null?void 0:p.user}),k.jsx(c("MDCAppStoreV2PurchaseConfirmMessages.react"),{orderRef:s,setAllConditionsAccepted:D}),w!=null&&k.jsx("iframe",{className:"x972fbf xcfux6l x1qhh985 xm0m39n xqtp20y xnalus7",srcDoc:w,title:"order-ddc-auth"})]});case o.THREE_DS_CHALLENGE:return k.jsx(c("DDSFlexbox.react"),{justifyContent:"center",children:k.jsx(c("MDCAppStoreV2Store3DS2Challenge.react"),{iframe3DS2ChallengeCallback:function(a){var b=null;a=a.data;typeof a==="string"&&(b=JSON.parse(a).transactionID);if(typeof b==="string"){a=(A==null?void 0:(a=A.cmpi_3ds2_lookup_query)==null?void 0:a.row_id)||"";if(M==null){r("FINISH_3DS_MDC_ERROR");throw c("FBLogger")("dolly").mustfixThrow("Order ID should not be null.")}q("FINISH_3DS_MDC_SUCCESS");L(M,C,a,b)}},lookupResponseData:A})});case o.THREE_DS_ERROR:return k.jsxs(c("DDSVerticalStack.react"),{gap:24,children:[k.jsx(c("DDSText.react"),{type:"mcds-small-body",children:h._("Something went wrong during authentication. Please try again later.")}),k.jsx(c("DDSButton.react"),{display:"block",label:h._("Okay"),type:"primary",onClick:g})]})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MDCAppStoreV2PurchaseConfirmOrderQuery.graphql",["MDCAppStoreV2PurchaseConfirmOrderQuery_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"orderId"}],c=[{kind:"Variable",name:"node_id",variableName:"orderId"}],d={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"card_type",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"last4",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},i={alias:null,args:null,concreteType:"XOCOCOrderData3DS",kind:"LinkedField",name:"data_3ds",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ddc_jwt_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ddc_jwt_token",storageKey:null}],storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"show_pin_verification",storageKey:null},k={kind:"Literal",name:"encode",value:"JPEG"},l=[k,{kind:"Literal",name:"size",value:"720x405"}],m=[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],n={alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"formatted",storageKey:null},p=[o],q={alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"price",plural:!1,selections:p,storageKey:null};o=[o,n];var r={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"formatted_amount",storageKey:null}],storageKey:null},s=[h,r,d],t=[{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MDCAppStoreV2PurchaseConfirmOrderQuery",selections:[{alias:"order",args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[d,{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseItemNameAndPriceRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseNextItemNameAndPriceRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseIncentiveDetailsRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseExemptionsRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseTaxRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseTotalPriceRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderHeader_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderPromoCodeInput_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmMessages_order"},{alias:null,args:null,concreteType:"DigitalGift",kind:"LinkedField",name:"sent_gift",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2GiftInfoConfirmationView_gift"}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"app_store_item",plural:!1,selections:[d,{args:null,kind:"FragmentSpread",name:"useMDCAppStoreV2OnConfirmOrder_item"}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"payment_method",plural:!1,selections:[e,d,{kind:"InlineFragment",selections:[f,g,h],type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:[h],type:"PaymentPaypalBillingAgreement",abstractKey:null}],storageKey:null},i],type:"Order",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2GiftInfoConfirmationView_viewer"},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[j,{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmVerifyPin_user"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user"}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MDCAppStoreV2PurchaseConfirmOrderQuery",selections:[{alias:"order",args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[e,d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"app_store_item",plural:!1,selections:[e,d,h,{kind:"TypeDiscriminator",abstractKey:"__isAppStoreItem"},{alias:null,args:l,concreteType:"Image",kind:"LinkedField",name:"cover_landscape_image",plural:!1,selections:m,storageKey:"cover_landscape_image(encode:"JPEG",size:"720x405")"},{alias:null,args:[k,{kind:"Literal",name:"size",value:"720x720"}],concreteType:"Image",kind:"LinkedField",name:"icon_image",plural:!1,selections:m,storageKey:"icon_image(encode:"JPEG",size:"720x720")"},{alias:null,args:l,concreteType:"Image",kind:"LinkedField",name:"small_landscape_image",plural:!1,selections:m,storageKey:"small_landscape_image(encode:"JPEG",size:"720x405")"},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"current_offer",plural:!1,selections:[e,d,{alias:null,args:null,kind:"ScalarField",name:"offer_type",storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"price",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"strikethrough_price",plural:!1,selections:[n],storageKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"current_offer",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"price_without_proration",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null}],storageKey:null}],storageKey:null}],type:"AppItemBundle",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"AppStoreTrialOffer",kind:"LinkedField",name:"current_trial_offer",plural:!1,selections:[q,d],storageKey:null}],type:"IAPItem",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"OCEntAppStoreItemWithQualityRatingsQualityRatingHistogramAggregate",kind:"LinkedField",name:"quality_rating_histogram_aggregate_all",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"star_rating",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"count",storageKey:null}],storageKey:null}],type:"Application",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:"OrderPurchase",kind:"LinkedField",name:"purchase",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"price_display_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"price_subtitle",storageKey:null},q,{alias:null,args:null,kind:"ScalarField",name:"price_with_formatted_term",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"price_per_month_with_formatted_term",storageKey:null},d,{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"next_price",plural:!1,selections:p,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"next_price_display_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"next_price_subtitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"next_price_with_formatted_term",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"next_price_per_month_with_formatted_term",storageKey:null},{alias:null,args:null,concreteType:"XOCOCPurchaseIncentiveInfo",kind:"LinkedField",name:"incentive_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subtitle",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"exemptions",plural:!1,selections:o,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"exemptions_promo_code",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"exemptions_promo_code_subtitle",storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"tax",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"total_to_charge",plural:!1,selections:p,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_payment_method_required",storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"usable_credit",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"XOCCreditStatus",kind:"LinkedField",name:"credit_status",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"usage_blocked_message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"show_credit_as_payment_method",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"usable_store_credit",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"usable_gc_credit",plural:!1,selections:o,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"can_apply_gc_credit_for_purchase",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_tax_exclusive",storageKey:null},{alias:null,args:null,concreteType:"ViewerSubscriptionInfo",kind:"LinkedField",name:"subscription",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"term_expiration",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"payment_method",plural:!1,selections:[e,d,h,{kind:"InlineFragment",selections:[f,g],type:"ExternalCreditCard",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PurchaseMessage",kind:"LinkedField",name:"pre_purchase_messages",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cta_text",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cta_uri",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"DigitalGift",kind:"LinkedField",name:"sent_gift",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"recipient",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"profile_username",storageKey:null},d],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"recipient_email",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gift_message",storageKey:null},d],storageKey:null},i],type:"Order",abstractKey:null}],storageKey:null},{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:null,args:null,kind:"ScalarField",name:"alias",storageKey:null},d,j,{alias:null,args:null,kind:"ScalarField",name:"has_valid_frl_account",storageKey:null},{alias:null,args:null,concreteType:"PaymentAccount",kind:"LinkedField",name:"payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:"XOCOCCredit",kind:"LinkedField",name:"credit",plural:!1,selections:[e,h,r],storageKey:null},d,{alias:null,args:null,concreteType:"StoredCredit",kind:"LinkedField",name:"stored_credit",plural:!1,selections:s,storageKey:null},{alias:null,args:null,concreteType:"StoredCredit",kind:"LinkedField",name:"gc_credit",plural:!1,selections:s,storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Literal",name:"first",value:100}],concreteType:"UserToAllPaymentMethodsConnection",kind:"LinkedField",name:"all_payment_methods",plural:!1,selections:[{alias:null,args:null,concreteType:"UserToAllPaymentMethodsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[e,d,h,{kind:"InlineFragment",selections:t,type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:t,type:"PaymentPaypalBillingAgreement",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:"all_payment_methods(first:100)"}],storageKey:null}],storageKey:null}]},params:{id:b("MDCAppStoreV2PurchaseConfirmOrderQuery_oculusRelayOperation"),metadata:{},name:"MDCAppStoreV2PurchaseConfirmOrderQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector.react",["fbt","CometRelay","DDSFormSelector.react","DDSFormSelectorItem.react","DDSLink.react","DDSText.react","DDSVerticalStack.react","MDCAppStoreMetaHorizonOSRebrandGating","MDCAppStoreOculusEngagementEventsLoggingHooks","MDCAppStorePanelAppErrorEventLogging","MDCAppStorePaymentMethodConstants","MDCAppStoreSkyErrorUtils","MDCAppStoreV2PurchaseAddPaymentMethod.react","MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_order.graphql","MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user.graphql","MDCAppStoreV2PurchaseConfirmOrderQuestCash.react","asyncToGeneratorRuntime","react","translatedServerString","useMDCAppStoreUpdateOrderPaymentMethod"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k.useState;function a(a){var e,f=a.orderRef,g=a.purchaseFlyoutProps,k=a.setIsSaving;a=a.userRef;var n=d("CometRelay").useFragment(i!==void 0?i:i=b("MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_order.graphql"),f);f=d("CometRelay").useFragment(j!==void 0?j:j=b("MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user.graphql"),a);var o=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useEventLogging("PurchaseConfirmOrderPaymentMethodSelector"),p=d("MDCAppStorePanelAppErrorEventLogging").useErrorLogging("PurchaseConfirmOrderPaymentMethodSelector");a=c("useMDCAppStoreUpdateOrderPaymentMethod")();var q=a[0];a=a[1];var r=m(null),s=r[0],t=r[1];r=(n==null?void 0:(r=n.purchase)==null?void 0:r.is_payment_method_required)===!0&&Number((r=f==null?void 0:(r=f.all_payment_methods)==null?void 0:(r=r.edges)==null?void 0:r.length)!=null?r:0)===0;e=f==null?void 0:(e=f.all_payment_methods)==null?void 0:e.edges;e=(e=e==null?void 0:e.map(function(a){a=a.node;if(a==null||(a==null?void 0:a.credential_type)==null)return null;var b=a.display_name;a=a.id;return a==null||b==null?null:{id:a,display_name:b}}).filter(Boolean))!=null?e:[];var u=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){try{t(null),o("UPDATE_PAYMENT_METHOD_ATTEMPT"),yield q(n.id,a),o("UPDATE_PAYMENT_METHOD_SUCCESS")}catch(a){p("UPDATE_PAYMENT_METHOD_ERROR"),t(a)}});return function(b){return a.apply(this,arguments)}}(),v=l.jsx(c("DDSText.react"),{color:"secondary",type:"mcds-label",children:h._("Vist the {link} to manage payment methods.",[h._param("link",l.jsx(c("DDSLink.react"),{decoration:"always-underline",isMuted:!0,target:"_blank",url:d("MDCAppStorePaymentMethodConstants").PaymentMethodURIs.SECURE_PAYMENT_METHODS,children:d("MDCAppStoreMetaHorizonOSRebrandGating").passMetaHorizonOSRebrand()?"Meta Horizon Store account":"Meta Quest Store account"}))])});return l.jsxs(c("DDSVerticalStack.react"),{gap:16,children:[l.jsx(c("DDSText.react"),{color:"secondary",type:"mcds-small-body-emphasized",children:r?h._("Add payment method"):h._("Payment method")}),r&&l.jsx(c("MDCAppStoreV2PurchaseAddPaymentMethod.react"),{purchaseFlyoutProps:g,onError:function(){},onSuccess:function(a){if(a==null)return;void u(a)}}),l.jsx(c("MDCAppStoreV2PurchaseConfirmOrderQuestCash.react"),{orderRef:n,setIsSaving:k,userRef:f}),e.length!==0&&l.jsxs(c("DDSVerticalStack.react"),{gap:8,children:[l.jsx(c("DDSFormSelector.react"),{"data-testid":void 0,errorMessage:s&&l.jsx(c("DDSText.react"),{children:d("MDCAppStoreSkyErrorUtils").getErrorMessage(s)}),isDisabled:a,label:a?c("translatedServerString")("Updating..."):h._("Credit or debit card"),value:n==null?void 0:(r=n.payment_method)==null?void 0:r.id,onChange:function(a){if(a==null)return;void u(a)},children:e.map(function(a){var b=a.display_name;a=a.id;return l.jsx(c("DDSFormSelectorItem.react"),{label:c("translatedServerString")(b),value:a},a)})}),v]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user",selections:[{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderQuestCash_user"},{alias:null,args:[{kind:"Literal",name:"first",value:100}],concreteType:"UserToAllPaymentMethodsConnection",kind:"LinkedField",name:"all_payment_methods",plural:!1,selections:[{alias:null,args:null,concreteType:"UserToAllPaymentMethodsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},{kind:"InlineFragment",selections:a,type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:a,type:"PaymentPaypalBillingAgreement",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:"all_payment_methods(first:100)"}],type:"User",abstractKey:null}}();e.exports=a}),null);
-----
MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_order.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_order",selections:[{kind:"RequiredField",field:a,action:"THROW",path:"id"},{alias:null,args:null,concreteType:"OrderPurchase",kind:"LinkedField",name:"purchase",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"is_payment_method_required",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"payment_method",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderQuestCash_order"}],type:"Order",abstractKey:null}}();e.exports=a}),null);
-----
MDCAppStoreAddPaymentMethodMutation.graphql",["MDCAppStoreAddPaymentMethodMutation_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:"id",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"card_type",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"last4",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"is_billing_address_update_required",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"state",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"country",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"zip",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"city",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"street1",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"street2",storageKey:null},n={alias:null,args:null,concreteType:"OCCardPaymentMethodInfoResponse",kind:"LinkedField",name:"card_payment_method_info_3ds2",plural:!1,selections:[{alias:null,args:null,concreteType:"CardPaymentMethodInfoResponse",kind:"LinkedField",name:"card_payment_method_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"mpi_processor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"requires_3ds",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"JWTDataResponse",kind:"LinkedField",name:"jwt",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"token",storageKey:null}],storageKey:null}],storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},q={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"formatted_amount",storageKey:null}],storageKey:null},r=[p,q,d],s={alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null},t={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_in_hundredths",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MDCAppStoreAddPaymentMethodMutation",selections:[{alias:null,args:c,concreteType:"AddCreditCardResponsePayload",kind:"LinkedField",name:"add_credit_card",plural:!1,selections:[{alias:null,args:null,concreteType:"ExternalCreditCard",kind:"LinkedField",name:"payment_method",plural:!1,selections:[d,e,f,g,{alias:null,args:null,concreteType:"PaymentAddress",kind:"LinkedField",name:"billing_address",plural:!1,selections:[h,i,j,k,l,m],storageKey:null}],storageKey:null},n,{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:"MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user"}],storageKey:null},{args:null,kind:"FragmentSpread",name:"MDCAppStorePaypalPaymentMethodRow_viewer"}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MDCAppStoreAddPaymentMethodMutation",selections:[{alias:null,args:c,concreteType:"AddCreditCardResponsePayload",kind:"LinkedField",name:"add_credit_card",plural:!1,selections:[{alias:null,args:null,concreteType:"ExternalCreditCard",kind:"LinkedField",name:"payment_method",plural:!1,selections:[d,e,f,g,{alias:null,args:null,concreteType:"PaymentAddress",kind:"LinkedField",name:"billing_address",plural:!1,selections:[h,i,j,k,l,m,d],storageKey:null}],storageKey:null},n,{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:null,args:null,concreteType:"PaymentAccount",kind:"LinkedField",name:"payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:"XOCOCCredit",kind:"LinkedField",name:"credit",plural:!1,selections:[o,p,q],storageKey:null},d,{alias:null,args:null,concreteType:"StoredCredit",kind:"LinkedField",name:"stored_credit",plural:!1,selections:r,storageKey:null},{alias:null,args:null,concreteType:"StoredCredit",kind:"LinkedField",name:"gc_credit",plural:!1,selections:r,storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Literal",name:"first",value:100}],concreteType:"UserToAllPaymentMethodsConnection",kind:"LinkedField",name:"all_payment_methods",plural:!1,selections:[{alias:null,args:null,concreteType:"UserToAllPaymentMethodsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[o,d,p,{kind:"InlineFragment",selections:[s,e,f],type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:[s],type:"PaymentPaypalBillingAgreement",abstractKey:null},{kind:"InlineFragment",selections:[t,{alias:null,args:[{kind:"Literal",name:"first",value:500}],concreteType:"StoredCreditToAllSubcreditsConnection",kind:"LinkedField",name:"subcredits",plural:!1,selections:[{alias:null,args:null,concreteType:"StoredCreditToAllSubcreditsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"StoredSubcredit",kind:"LinkedField",name:"node",plural:!1,selections:[d,t,{alias:null,args:null,kind:"ScalarField",name:"expiration_time",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subcredit_status",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:"subcredits(first:500)"}],type:"StoredCredit",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:"all_payment_methods(first:100)"},d],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("MDCAppStoreAddPaymentMethodMutation_oculusRelayOperation"),metadata:{},name:"MDCAppStoreAddPaymentMethodMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
MDCAppStoreV2PurchaseConfirmOrder.react",["cx","fbt","$InternalEnum","CometRelay","DDSButton.react","DDSFlexbox.react","DDSHorizontalDivider.react","DDSRow.react","DDSRowItem.react","DDSVerticalStack.react","FBLogger","MDCAppStoreButton.react","MDCAppStoreOculusEngagementEventsContext.react","MDCAppStoreOculusEngagementEventsLogging","MDCAppStorePaymentsAPI","MDCAppStoreV2GiftInfoConfirmationView.react","MDCAppStoreV2PurchaseConfirmMessages.react","MDCAppStoreV2PurchaseConfirmOrderHeader.react","MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector.react","MDCAppStoreV2PurchaseConfirmOrderPromoCodeInput.react","MDCAppStoreV2PurchaseConfirmOrderQuery.graphql","MDCAppStoreV2PurchaseConfirmVerifyPin.react","MDCAppStoreV2PurchaseExemptionsRow.react","MDCAppStoreV2PurchaseIncentiveDetailsRow.react","MDCAppStoreV2PurchaseItemNameAndPriceRow.react","MDCAppStoreV2PurchaseNextItemNameAndPriceRow.react","MDCAppStoreV2PurchaseTaxRow.react","MDCAppStoreV2PurchaseTotalPriceRow.react","MDCAppStoreV2Store3DS2Challenge.react","asyncToGeneratorRuntime","gkx","react","useMDCAppStoreV2OnConfirmOrder"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react"));e=k;var m=e.useCallback,n=e.useEffect,o=e.useState,p=b("$InternalEnum").Mirrored(["FORM_ENTRY","THREE_DS_CHALLENGE","THREE_DS_ERROR"]);function a(a){var e=a.onBackClick,f=a.onError,g=a.onHide,h=a.onSubmit,k=a.orderId;a=a.purchaseFlyoutProps;k=d("CometRelay").useLazyLoadQuery(j!==void 0?j:j=b("MDCAppStoreV2PurchaseConfirmOrderQuery.graphql"),{orderId:k});var q=k.order;k=k.viewer;var r=o(p.FORM_ENTRY),s=r[0],t=r[1];r=o(null);var u=r[0],v=r[1];r=o(!1);var w=r[0];r=r[1];var x=o(null),y=x[0],z=x[1];x=o("");var A=x[0];x=x[1];var B=o(!1),C=B[0];B=B[1];var D=o(!1),E=D[0],F=D[1];D=o(!1);var G=D[0];D=D[1];var H=c("useMDCAppStoreV2OnConfirmOrder")(q==null?void 0:q.app_store_item,f,F),I=m(function(a,b,c,d){H(a,b,c,d)},[H]),J=(h=h)!=null?h:I,K=q==null?void 0:q.id,L=m(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;F(!0);d("MDCAppStoreOculusEngagementEventsLogging").logEngagementEvent({event_name:"ACCEPT_PURCHASE",event_type:d("MDCAppStoreOculusEngagementEventsLogging").EngagementEventTypeClick,content_id:q==null?void 0:(a=q.app_store_item)==null?void 0:a.id,store_order_id:K,subsurface:"PDP"});if((q==null?void 0:(a=q.data_3ds)==null?void 0:a.ddc_jwt_token)!=null&&(q==null?void 0:(a=q.data_3ds)==null?void 0:a.ddc_jwt_token)!==""){var b,e=function(){t(p.THREE_DS_ERROR)};a=function(a){v(a)};var f=function(){v(null)},g=function(a){z(a),t(p.THREE_DS_CHALLENGE)},h=function(a){a=(a==null?void 0:(a=a.cmpi_3ds2_lookup_query)==null?void 0:a.row_id)||"";if(K==null){e();return!1}J(K,A,a,null);return!0};a=(yield d("MDCAppStorePaymentsAPI").is3dsFlowCompletedSuccessfully((q==null?void 0:(b=q.data_3ds)==null?void 0:b.ddc_jwt_token)||"",e,a,f,q==null?void 0:(b=q.data_3ds)==null?void 0:b.ddc_jwt_id,null,K,!1,g,h));if(!a)return}if(K==null)throw c("FBLogger")("dolly").mustfixThrow("Order ID should not be null.");J(K,A,null,null)}),[J,q==null?void 0:(h=q.app_store_item)==null?void 0:h.id,q==null?void 0:(I=q.data_3ds)==null?void 0:I.ddc_jwt_id,q==null?void 0:(h=q.data_3ds)==null?void 0:h.ddc_jwt_token,K,A]);h=c("gkx")("25546")&&(k==null?void 0:(I=k.user)==null?void 0:I.show_pin_verification)!==!0;var M=(h||w)&&C&&!G;I=q==null?void 0:q.sent_gift;var N=a.setFooter;n(function(){switch(s){case p.FORM_ENTRY:N(l.jsxs(c("DDSRow.react"),{children:[e&&l.jsx(c("DDSRowItem.react"),{span:6,children:l.jsx(c("DDSButton.react"),{display:"block",label:i._("u8fd4u56de"),type:"secondary-filled",onClick:e})}),l.jsx(c("DDSRowItem.react"),{span:e?6:12,children:l.jsx(c("DDSButton.react"),{"data-testid":void 0,display:"block",isDisabled:!M||E,isLoading:E,label:i._("u786eu8ba4"),type:"primary",onClick:function(){L()["catch"](function(a){return f(a)})}})})]}));break;default:N(null)}},[E,e,f,L,N,s,M]);switch(s){case p.FORM_ENTRY:return q&&l.jsxs(c("DDSVerticalStack.react"),{gap:24,children:[l.jsx(c("MDCAppStoreV2PurchaseConfirmOrderHeader.react"),{orderRef:q}),l.jsx(c("DDSHorizontalDivider.react"),{}),l.jsx(c("MDCAppStoreV2PurchaseItemNameAndPriceRow.react"),{orderRef:q}),l.jsx(c("MDCAppStoreV2PurchaseNextItemNameAndPriceRow.react"),{orderRef:q}),l.jsx(c("MDCAppStoreV2PurchaseTaxRow.react"),{orderRef:q}),l.jsx(c("MDCAppStoreV2PurchaseIncentiveDetailsRow.react"),{orderRef:q}),l.jsx(c("MDCAppStoreV2PurchaseExemptionsRow.react"),{orderRef:q}),l.jsx(c("DDSHorizontalDivider.react"),{}),l.jsx(c("MDCAppStoreV2PurchaseTotalPriceRow.react"),{orderRef:q}),l.jsx(c("MDCAppStoreV2PurchaseConfirmOrderPromoCodeInput.react"),{orderRef:q,setIsSaving:D}),I&&l.jsx(c("MDCAppStoreV2GiftInfoConfirmationView.react"),{giftRef:I,viewerRef:k}),l.jsx(c("MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector.react"),{orderRef:q,purchaseFlyoutProps:a,setIsSaving:D,userRef:k==null?void 0:k.user}),!h&&l.jsx(d("MDCAppStoreOculusEngagementEventsContext.react").MDCAppStoreOculusEngagementEventsContextProvider,{value:{store_order_id:K},children:l.jsx(c("MDCAppStoreV2PurchaseConfirmVerifyPin.react"),{isValidPin:w,pin:A,setIsValidPin:r,setPin:x,userRef:k==null?void 0:k.user})}),l.jsx(c("MDCAppStoreV2PurchaseConfirmMessages.react"),{orderRef:q,setAllConditionsAccepted:B}),u!=null&&l.jsx("iframe",{className:"_anof",srcDoc:u,title:"order-ddc-auth"})]});case p.THREE_DS_CHALLENGE:return l.jsx(c("DDSFlexbox.react"),{justifyContent:"center",children:l.jsx(c("MDCAppStoreV2Store3DS2Challenge.react"),{iframe3DS2ChallengeCallback:function(a){var b=null;a=a.data;typeof a==="string"&&(b=JSON.parse(a).transactionID);if(typeof b==="string"){a=(y==null?void 0:(a=y.cmpi_3ds2_lookup_query)==null?void 0:a.row_id)||"";if(K==null)throw c("FBLogger")("dolly").mustfixThrow("Order ID should not be null.");J(K,A,a,b)}},lookupResponseData:y})});case p.THREE_DS_ERROR:return l.jsxs("div",{className:"_annt",children:[i._("u8eabu4efdu9a8cu8bc1u8fc7u7a0bu4e2du51fau9519uff0cu8bf7u7a0du540eu91cdu8bd5u3002"),l.jsx(c("MDCAppStoreButton.react"),{className:"_annv","data-testid":void 0,tabIndex:0,onClick:g,children:i._("u786eu5b9a")})]})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MDCAppStoreV2PurchaseConfirmOrderQuery.graphql",["MDCAppStoreV2PurchaseConfirmOrderQuery_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"orderId"}],c=[{kind:"Variable",name:"node_id",variableName:"orderId"}],d={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"card_type",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"last4",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},i={alias:null,args:null,concreteType:"XOCOCOrderData3DS",kind:"LinkedField",name:"data_3ds",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ddc_jwt_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ddc_jwt_token",storageKey:null}],storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"show_pin_verification",storageKey:null},k={kind:"Literal",name:"encode",value:"JPEG"},l=[k,{kind:"Literal",name:"size",value:"720x405"}],m=[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],n={alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"formatted",storageKey:null},p=[o],q={alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"price",plural:!1,selections:p,storageKey:null};o=[o,n];var r={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"formatted_amount",storageKey:null}],storageKey:null},s=[h,r,d],t=[{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MDCAppStoreV2PurchaseConfirmOrderQuery",selections:[{alias:"order",args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[d,{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseItemNameAndPriceRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseNextItemNameAndPriceRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseIncentiveDetailsRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseExemptionsRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseTaxRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseTotalPriceRow_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderHeader_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderPromoCodeInput_order"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmMessages_order"},{alias:null,args:null,concreteType:"DigitalGift",kind:"LinkedField",name:"sent_gift",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2GiftInfoConfirmationView_gift"}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"app_store_item",plural:!1,selections:[d,{args:null,kind:"FragmentSpread",name:"useMDCAppStoreV2OnConfirmOrder_item"}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"payment_method",plural:!1,selections:[e,d,{kind:"InlineFragment",selections:[f,g,h],type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:[h],type:"PaymentPaypalBillingAgreement",abstractKey:null}],storageKey:null},i],type:"Order",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2GiftInfoConfirmationView_viewer"},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[j,{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmVerifyPin_user"},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user"}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MDCAppStoreV2PurchaseConfirmOrderQuery",selections:[{alias:"order",args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[e,d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"app_store_item",plural:!1,selections:[e,d,h,{kind:"TypeDiscriminator",abstractKey:"__isAppStoreItem"},{alias:null,args:l,concreteType:"Image",kind:"LinkedField",name:"cover_landscape_image",plural:!1,selections:m,storageKey:"cover_landscape_image(encode:"JPEG",size:"720x405")"},{alias:null,args:[k,{kind:"Literal",name:"size",value:"720X720"}],concreteType:"Image",kind:"LinkedField",name:"icon_image",plural:!1,selections:m,storageKey:"icon_image(encode:"JPEG",size:"720X720")"},{alias:null,args:l,concreteType:"Image",kind:"LinkedField",name:"small_landscape_image",plural:!1,selections:m,storageKey:"small_landscape_image(encode:"JPEG",size:"720x405")"},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"current_offer",plural:!1,selections:[e,d,{alias:null,args:null,kind:"ScalarField",name:"offer_type",storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"price",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"strikethrough_price",plural:!1,selections:[n],storageKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"current_offer",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"price_without_proration",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null}],storageKey:null}],storageKey:null}],type:"AppItemBundle",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"AppStoreTrialOffer",kind:"LinkedField",name:"current_trial_offer",plural:!1,selections:[q,d],storageKey:null}],type:"IAPItem",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"OCEntAppStoreItemWithQualityRatingsQualityRatingHistogramAggregate",kind:"LinkedField",name:"quality_rating_histogram_aggregate_all",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"star_rating",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"count",storageKey:null}],storageKey:null}],type:"Application",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:"OrderPurchase",kind:"LinkedField",name:"purchase",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"price_display_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"price_subtitle",storageKey:null},q,{alias:null,args:null,kind:"ScalarField",name:"price_with_formatted_term",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"price_per_month_with_formatted_term",storageKey:null},d,{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"next_price",plural:!1,selections:p,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"next_price_display_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"next_price_subtitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"next_price_with_formatted_term",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"next_price_per_month_with_formatted_term",storageKey:null},{alias:null,args:null,concreteType:"XOCOCPurchaseIncentiveInfo",kind:"LinkedField",name:"incentive_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subtitle",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"exemptions",plural:!1,selections:o,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"exemptions_promo_code",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"exemptions_promo_code_subtitle",storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"tax",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"total_to_charge",plural:!1,selections:p,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_payment_method_required",storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"usable_credit",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"XOCCreditStatus",kind:"LinkedField",name:"credit_status",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"usage_blocked_message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"show_credit_as_payment_method",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"usable_store_credit",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"usable_gc_credit",plural:!1,selections:o,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"can_apply_gc_credit_for_purchase",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_tax_exclusive",storageKey:null},{alias:null,args:null,concreteType:"ViewerSubscriptionInfo",kind:"LinkedField",name:"subscription",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"term_expiration",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"payment_method",plural:!1,selections:[e,d,h,{kind:"InlineFragment",selections:[f,g],type:"ExternalCreditCard",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PurchaseMessage",kind:"LinkedField",name:"pre_purchase_messages",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cta_text",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cta_uri",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"DigitalGift",kind:"LinkedField",name:"sent_gift",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"recipient",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"profile_username",storageKey:null},d],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"recipient_email",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"gift_message",storageKey:null},d],storageKey:null},i],type:"Order",abstractKey:null}],storageKey:null},{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:null,args:null,kind:"ScalarField",name:"alias",storageKey:null},d,j,{alias:null,args:null,kind:"ScalarField",name:"has_valid_frl_account",storageKey:null},{alias:null,args:null,concreteType:"PaymentAccount",kind:"LinkedField",name:"payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:"XOCOCCredit",kind:"LinkedField",name:"credit",plural:!1,selections:[e,h,r],storageKey:null},d,{alias:null,args:null,concreteType:"StoredCredit",kind:"LinkedField",name:"stored_credit",plural:!1,selections:s,storageKey:null},{alias:null,args:null,concreteType:"StoredCredit",kind:"LinkedField",name:"gc_credit",plural:!1,selections:s,storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Literal",name:"first",value:100}],concreteType:"UserToAllPaymentMethodsConnection",kind:"LinkedField",name:"all_payment_methods",plural:!1,selections:[{alias:null,args:null,concreteType:"UserToAllPaymentMethodsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[e,d,h,{kind:"InlineFragment",selections:t,type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:t,type:"PaymentPaypalBillingAgreement",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:"all_payment_methods(first:100)"}],storageKey:null}],storageKey:null}]},params:{id:b("MDCAppStoreV2PurchaseConfirmOrderQuery_oculusRelayOperation"),metadata:{},name:"MDCAppStoreV2PurchaseConfirmOrderQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector.react",["fbt","CometRelay","DDSFormSelector.react","DDSFormSelectorItem.react","DDSText.react","DDSVerticalStack.react","MDCAppStoreOculusEngagementEventsLoggingHooks","MDCAppStorePanelAppErrorEventLogging","MDCAppStoreSkyErrorUtils","MDCAppStoreV2PurchaseAddPaymentMethod.react","MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_order.graphql","MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user.graphql","MDCAppStoreV2PurchaseConfirmOrderQuestCash.react","asyncToGeneratorRuntime","react","translatedServerString","useMDCAppStoreUpdateOrderPaymentMethod"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k.useState;function a(a){var e,f=a.orderRef,g=a.purchaseFlyoutProps,k=a.setIsSaving;a=a.userRef;var n=d("CometRelay").useFragment(i!==void 0?i:i=b("MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_order.graphql"),f);f=d("CometRelay").useFragment(j!==void 0?j:j=b("MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user.graphql"),a);var o=d("MDCAppStoreOculusEngagementEventsLoggingHooks").useEventLogging("PurchaseConfirmOrderPaymentMethodSelector"),p=d("MDCAppStorePanelAppErrorEventLogging").useErrorLogging("PurchaseConfirmOrderPaymentMethodSelector");a=c("useMDCAppStoreUpdateOrderPaymentMethod")();var q=a[0];a=a[1];var r=m(null),s=r[0],t=r[1];r=(n==null?void 0:(r=n.purchase)==null?void 0:r.is_payment_method_required)===!0&&Number((r=f==null?void 0:(r=f.all_payment_methods)==null?void 0:(r=r.edges)==null?void 0:r.length)!=null?r:0)===0;e=f==null?void 0:(e=f.all_payment_methods)==null?void 0:e.edges;e=(e=e==null?void 0:e.map(function(a){a=a.node;if(a==null||(a==null?void 0:a.credential_type)==null)return null;var b=a.display_name;a=a.id;return a==null||b==null?null:{id:a,display_name:b}}).filter(Boolean))!=null?e:[];var u=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){try{t(null),o("UPDATE_PAYMENT_METHOD_ATTEMPT"),yield q(n.id,a),o("UPDATE_PAYMENT_METHOD_SUCCESS")}catch(a){p("UPDATE_PAYMENT_METHOD_ERROR"),t(a)}});return function(b){return a.apply(this,arguments)}}();return l.jsxs(c("DDSVerticalStack.react"),{gap:16,children:[l.jsx(c("DDSText.react"),{color:"secondary",type:"mcds-small-body-emphasized",children:r?h._("Add payment method"):h._("u652fu4ed8u65b9u5f0f")}),r&&l.jsx(c("MDCAppStoreV2PurchaseAddPaymentMethod.react"),{purchaseFlyoutProps:g,onError:function(){},onSuccess:function(a){if(a==null)return;void u(a)}}),l.jsx(c("MDCAppStoreV2PurchaseConfirmOrderQuestCash.react"),{orderRef:n,setIsSaving:k,userRef:f}),e.length!==0&&l.jsx(c("DDSFormSelector.react"),{"data-testid":void 0,errorMessage:s&&l.jsx(c("DDSText.react"),{children:d("MDCAppStoreSkyErrorUtils").getErrorMessage(s)}),isDisabled:a,label:a?c("translatedServerString")("Updating..."):h._("Credit or debit card"),value:n==null?void 0:(r=n.payment_method)==null?void 0:r.id,onChange:function(a){if(a==null)return;void u(a)},children:e.map(function(a){var b=a.display_name;a=a.id;return l.jsx(c("DDSFormSelectorItem.react"),{label:c("translatedServerString")(b),value:a},a)})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_user",selections:[{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderQuestCash_user"},{alias:null,args:[{kind:"Literal",name:"first",value:100}],concreteType:"UserToAllPaymentMethodsConnection",kind:"LinkedField",name:"all_payment_methods",plural:!1,selections:[{alias:null,args:null,concreteType:"UserToAllPaymentMethodsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},{kind:"InlineFragment",selections:a,type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:a,type:"PaymentPaypalBillingAgreement",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:"all_payment_methods(first:100)"}],type:"User",abstractKey:null}}();e.exports=a}),null);
-----
MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_order.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MDCAppStoreV2PurchaseConfirmOrderPaymentMethodSelector_order",selections:[{kind:"RequiredField",field:a,action:"THROW",path:"id"},{alias:null,args:null,concreteType:"OrderPurchase",kind:"LinkedField",name:"purchase",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"is_payment_method_required",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"payment_method",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"MDCAppStoreV2PurchaseConfirmOrderQuestCash_order"}],type:"Order",abstractKey:null}}();e.exports=a}),null);
-----