Payments3DSStripeInitComponent.react",["FBPayUPLLogger","FBPaymentsModulesAPIUtils","Payments3DSUtils","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useEffect,k=b.useMemo;function a(a){var b=a.paymentType,e=a.stepUpUrl,f=a.uplSessionID,g=a.wizardSessionID;a=k(function(){var a=new(c("FBPayUPLLogger"))(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(b.toLowerCase()),d("Payments3DSUtils").getUserPlatform(),f);return{logger:a}},[b,f]);var h=a.logger;j(function(){h.logClientRenderThreedsUnificationDisplay({view_name:"challenge_display",flow_session_id:g},{"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.STRIPE),is_generic_3ds:"true"})});return i.jsxs("div",{className:"x6s0dn4 x1ey2m1c xds687c x5yr21d xl56j7k x17qophe x13vifvy",children:[(c("gkx")("20861")||c("gkx")("22975"))&&i.jsxs("h2",{className:"xyamay9 x1pi30zi x1l90r2v x1swvt13 x2b8uid xuj82j5",children:[i.jsx("strong",{children:"Generic 3DS Module: "}),"You are a Test User or Employee"]}),i.jsx("iframe",{className:"x1ejq31n xd10rxx x1sy0etr x17r0tee x5yr21d xh8yej3",method:"GET",src:e})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
Payments3DSPayuInitComponent.react",["FBPayUPLLogger","FBPaymentsModulesAPIUtils","Payments3DSUtils","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useEffect,k=b.useMemo;function a(a){var b=a.legacyPaymentType,e=a.sessionID,f=a.url,g=a.wizardSessionID;a=k(function(){var a=new(c("FBPayUPLLogger"))(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(b.toLowerCase()),d("Payments3DSUtils").getUserPlatform(),e);return{logger:a}},[b,e]);var h=a.logger;j(function(){h.logClientRenderThreedsUnificationDisplay({view_name:"challenge_display",flow_session_id:g},{"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.PAYU),is_generic_3ds:"true"})});return i.jsxs("div",{className:"x6s0dn4 xdt5ytf x1ey2m1c x78zum5 xds687c x5yr21d xl56j7k x17qophe x13vifvy",children:[(c("gkx")("20861")||c("gkx")("22975"))&&i.jsxs("h2",{className:"x1r8uery xh8yej3 xyamay9 x1pi30zi x1l90r2v x1swvt13 x2b8uid xuj82j5",children:[i.jsx("strong",{children:"Generic 3DS Module: "}),"You are a Test User or Employee"]}),i.jsx("iframe",{className:"x1iyjqo2 xh8yej3 x1ejq31n xd10rxx x1sy0etr x17r0tee",method:"GET",src:f})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
Payments3DSPayuReturnComponent.react",["FBPayUPLLogger","FBPaymentsModulesAPIUtils","FBPaymentsSpinner.react","Payments3DSUtils","SecurePostMessage","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useEffect,k=b.useMemo;function a(a){var b=a.legacyPaymentType,e=a.sessionID,f=a.status,g=a.token,h=a.wizardSessionID,l=d("Payments3DSUtils").mapProcessorResponseToUnifiedThreeDSAuthResult(d("Payments3DSUtils").ThreeDSProcessor.PAYU,f,g);a=k(function(){var a=new(c("FBPayUPLLogger"))(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(b.toLowerCase()),d("Payments3DSUtils").getUserPlatform(),e);return{logger:a}},[b,e]);var m=a.logger;j(function(){m.logClientFetchThreedsUnificationInit({view_name:"complete_3ds",flow_session_id:h},{"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.PAYU).toLowerCase(),is_generic_3ds:"true"}),l.auth_result===d("Payments3DSUtils").ThreeDSAuthResult.Success?m.logClientFetchThreedsUnificationSuccess({view_name:"complete_3ds",flow_session_id:h},{"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.PAYU).toLowerCase(),is_generic_3ds:"true"}):(l.auth_result===d("Payments3DSUtils").ThreeDSAuthResult.Failure||l.error_message!==null)&&m.logClientFetchThreedsUnificationFail({view_name:"complete_3ds",flow_session_id:h},{"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.PAYU).toLowerCase(),is_generic_3ds:"true"})});window.setTimeout(function(){c("SecurePostMessage").sendMessageAllowAnyOrigin_UNSAFE(window.parent,l),c("SecurePostMessage").sendMessageAllowAnyOrigin_UNSAFE(window.parent.parent,l)},2e3);return i.jsx("div",{className:"x6s0dn4 x1ey2m1c x78zum5 xds687c x5yr21d xl56j7k x17qophe x13vifvy",children:i.jsx(c("FBPaymentsSpinner.react"),{})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
FBPaymentSettingsReceiptContainer.react",["cx","fbt","AllPaymentTypeFields","Env","FBPaymentSettingsHistoryAPI","FBPaymentTransactionType","FBPaymentsLoadingView.react","FBPaymentsLogger","FBPaymentsLoggerConstants","FBPaymentsReceiptApp.react","FBPaymentsReceiptBackButton.react","FBPaymentsReceiptUpdateDialogComponent.react","FBPaymentsSubscriptionDetails.react","NmorOrderType","NmorOrderTypeName","PaymentSettingsBOFReceipt.react","PaymentSettingsBalanceRedemptionPaymentReceipt.react","PaymentSettingsComponentFlowReceipt.react","PaymentSettingsDonationReceipt.react","PaymentSettingsGameBundleReceipt.react","PaymentSettingsGiftPaymentReceipt.react","PaymentSettingsNmorDonationReceipt.react","PaymentSettingsOculusReceipt.react","PaymentSettingsP2PPaymentRequestReceiptContainer.react","PaymentSettingsP2PReceipt.react","PaymentSettingsPEPaymentReceipt.react","keyMirror","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||d("react"),m=c("keyMirror")(c("AllPaymentTypeFields"));a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h-----
FBPayECPAddressTypeaheadConstantsUtils",[],(function(a,b,c,d,e,f){"use strict";b="NO_TYPEAHEAD_SUGGESTION_AVAILABLE";function a(a){switch(a){case"billing":return"BILLING";default:return"ECP"}}f.NO_TYPEAHEAD_SUGGESTION_AVAILABLE=b;f.castAllPaymentTypeFields=a}),66);
-----
PaymentsComet3DSDialog.react",["fbt","Actor","CometEventListener","FBPayUPLLogger","FBPaymentsModulesAPIUtils","FDSCardedDialogLegacy.react","PaymentsCometOverlayLoadingSpinner.react","react","usePaymentsCometGet3DSAuthenticateURLMutation","usePaymentsCometGet3DSAuthenticateURLWithCSCMutation","usePaymentsCometGetAcquirerMerchantInfo"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useEffect,l=b.useRef,m=b.useState;function a(a){var b=a.onClose;a=a.props;var e=a.acquirerBin,f=a.acquirerMid,g=a.amount,i=a.countryCode,n=a.credentialID,o=a.creditCardType,p=a.csc,q=a.currency,r=a.itemType,s=a.merchantName,t=a.orderId,u=a.receiverId;a=a.sessionId;var v=m(null),w=v[0],x=v[1];v=m([]);var y=v[0],z=v[1];v=m(!0);var A=v[0],B=v[1],C=c("usePaymentsCometGet3DSAuthenticateURLMutation")(),D=c("usePaymentsCometGet3DSAuthenticateURLWithCSCMutation")(),E=l(null);v=d("Actor").useActor();v=v[0];var F={cardinalStatus:null,refID:"0",status:"FAILED",threeDSTransactionData:{cavv:"",dsTransactionID:"",eciFlag:"",threeDsSecureVersion:"",xid:""},transactionID:""},G=new(c("FBPayUPLLogger"))(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(r.toLowerCase()),"comet",a),H=function(a){var b;b=(b=a.authenticate_using_3ds_url)==null?void 0:(b=b.params)==null?void 0:b.map(function(a){return{key:a.key,value:a.value}});x((a=a.authenticate_using_3ds_url)==null?void 0:a.url);z((a=b)!=null?a:[]);B(!1)};k(function(){var a=c("CometEventListener").listen(window,"message",function(a){a.data.eventName==="3DS_RESPONSE_MESSAGE"&&b(a.data)});return function(){a&&a.remove()}},[b,B]);var I=c("usePaymentsCometGetAcquirerMerchantInfo")({onError:function(){b(F)},onSuccess:function(a,c,d){a={acquirerMerchantInfo:a==null&&c==null&&d==null?null:{acquirer_bin:(a=a)!=null?a:"",acquirer_mid:(a=c)!=null?a:"",merchant_name:(c=d)!=null?c:""},countryCode:i,credentialID:n,currencyAmount:{amount:g,currency:q},itemType:r};p!=null?D(babelHelpers["extends"]({csc:p,sessionID:G.getSessionID()},a),function(a){H(a)},function(){b(F)}):C(babelHelpers["extends"]({},a,{sessionID:G.getSessionID()}),function(a){H(a)},function(){b(F)})}});k(function(){if(w===null){var a;G.logClientLoadThreedsInit({target_name:"acquirer_merchant_info_mutation"},{currency:q,order_id:(a=t)!=null?a:"",raw_credential_id:n,receiver_id:(a=u)!=null?a:""});I({acquirerBin:e,acquirerMid:f,credentialID:n,creditCardType:o||"",currency:q,merchantName:s||"",orderId:t||"",paymentType:r,receiverId:u||"",sessionID:G.getSessionID()})}},[D,C,w,i,g,q,n,r,p,I,e,f,o,s,t,u]);k(function(){if(E!==null&&E.current!==null&&w!=null){var a;(a=E.current)==null?void 0:a.submit()}},[w]);return j.jsxs(c("FDSCardedDialogLegacy.react"),{onClose:function(){G.logUserClickThreedsAtomic({target_name:"challenge_close"}),b(F)},title:h._("__JHASH__tJk-b7G68gx__JHASH__"),titleHorizontalAlignment:"center",withCloseButton:!0,children:[A&&j.jsx(c("PaymentsCometOverlayLoadingSpinner.react"),{shouldShowOverlay:!1}),j.jsxs("form",{action:w,method:"POST",ref:E,target:"3ds2_iframe",children:[y.map(function(a){return j.jsx("input",{name:a.key,type:"hidden",value:a.value},a.key)}),j.jsx("input",{name:"user_id",type:"hidden",value:v},"user_id")]}),j.jsx("iframe",{className:"x1ejq31n xd10rxx x1sy0etr x17r0tee x1jn0hjm x1qrby5j",name:"3ds2_iframe"})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
CometFBPaySupportDialog.react",["fbt","AllPaymentTypeFields","CareCometSupportContext","CareFBPaySupportRef","CometFBPaySupportDialogContent.react","CometFBPaySupportDialogQuery.graphql","CometFBPaySupportTransactionInfo.react","CometMultiStepDialogLegacy.react","CometRelay","FBPaySupportDialogState","PaymentsCareLoggingContext","PaymentsCareSupportFlowTypeUtils.facebook","PaymentsCareUPLLogger","getJSEnumSafe","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useEffect,m=e.useMemo,n=e.useReducer,o=e.useRef,p=i!==void 0?i:i=b("CometFBPaySupportDialogQuery.graphql");function q(a){a=c("getJSEnumSafe")(c("AllPaymentTypeFields"),a.paymentType);return(a=a)!=null?a:"unknown"}function a(a){var b=a.props;a=a.queries;var e=a.loggingDataQueryRef,f=a.supportFlowQueryRef;a=a.transactionQueryRef;e=d("CometRelay").usePreloadedQuery(p,e);e=e.response;var g=e.context,i=e.loggingData,j=q(i),r=m(function(){var a=new(c("PaymentsCareUPLLogger"))(j,"comet",b.uplSessionID);return{logger:a}},[j,b.uplSessionID]),s=a.variables.transactionID,t=(e=f.variables.flowData)==null?void 0:e.commerce_account_id;e=b.referrer?c("CareFBPaySupportRef").getName(b.referrer):null;var u=(e=e)!=null?e:g.ref,v=m(function(){var a;a=(a=d("PaymentsCareSupportFlowTypeUtils.facebook").toJSEnum(i.supportFlowType))!=null?a:"unknown";return{commerceAccountID:t,extraData:typeof u==="string"?{ref:u}:{},flowContext:{cms_folder_id:g.folderID,cms_obj_id:g.objID,name:g.name,ref:u},supportFlowType:a,transactionID:s}},[i,s,g,t,u]);e=n(d("FBPaySupportDialogState").reducer,d("FBPaySupportDialogState").getInitialState());var w=e[0],x=e[1];e=m(function(){return{dialogState:w,dispatch:x}},[w,x]);var y=o(!0);l(function(){if(y.current===!0){var a;y.current=!1;r.logger.logClientLoadSupportflowInit({support_flow_type:v.supportFlowType,transaction_id:(a=v.transactionID)!=null?a:void 0,view_name:"comet_fbpay_support_dialog"},v.extraData)}},[r,y,v]);var z=function(a){x({pageIndex:a,type:d("FBPaySupportDialogState").ActionType.PAGE_UPDATE})},A=h._("__JHASH__LvRSH7r8HLY__JHASH__"),B=k.jsx(c("CometFBPaySupportTransactionInfo.react"),{queryRef:a});return k.jsx(c("PaymentsCareLoggingContext").Provider,{value:r,children:k.jsx(d("CareCometSupportContext").CareCometSupportContext.Provider,{value:v,children:k.jsx(d("FBPaySupportDialogState").DialogStateContext.Provider,{value:e,children:k.jsx(c("CometMultiStepDialogLegacy.react"),{onClose:b.onClose,onPageChange:z,title:A,withCloseButton:b.hideCloseButton!==!0,withDeprecatedStyles:!1,children:function(a){return k.jsx(c("CometFBPaySupportDialogContent.react"),{pushPage:a,supportFlowQueryRef:f,title:A,transactionInfo:B})}})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
FBPaymentsCheckoutConfigurationTypes",["AllPaymentTypeFields","FBPaymentsCheckoutConstants","prop-types","react","validateImageSrcPropType"],(function(a,b,c,d,e,f){"use strict";var g;g||b("react");c=b("FBPaymentsCheckoutConstants").Extensions;d=b("FBPaymentsCheckoutConstants").OptionPriceModel;f=b("prop-types").shape({url:b("prop-types").string.isRequired});f=b("prop-types").shape({offset:b("prop-types").number.isRequired,length:b("prop-types").number.isRequired,entity:f.isRequired});f=b("prop-types").shape({text:b("prop-types").string.isRequired,ranges:b("prop-types").arrayOf(f)});var h=b("prop-types").shape({cardType:b("prop-types").string.isRequired,currency:b("prop-types").string,info:b("prop-types").string.isRequired});h=b("prop-types").shape({acquirerBin:b("prop-types").arrayOf(h),acquirerMid:b("prop-types").arrayOf(h),action:b("prop-types").string.isRequired,extraData:b("prop-types").object,isFreePurchase:b("prop-types").bool,merchantName:b("prop-types").string,orderId:b("prop-types").string,payCallback:b("prop-types").func,paymentItemType:b("prop-types").oneOf(Object.values(b("AllPaymentTypeFields"))).isRequired,receiverId:b("prop-types").string});var i=b("prop-types").shape({title:b("prop-types").node.isRequired,subtitle:b("prop-types").node,imageURL:b("prop-types").string});i=b("prop-types").shape({description:b("prop-types").node,participant:i});var j=b("prop-types").shape({title:b("prop-types").string.isRequired,subtitle:b("prop-types").string,subsubtitle:b("prop-types").string,merchantName:b("prop-types").string,merchantText:b("prop-types").string,itemImageUrl:b("prop-types").string}),k=b("prop-types").shape({currency:b("prop-types").string.isRequired,amount:b("prop-types").string.isRequired});function a(a){return function(){return a.apply(this,arguments)}}a=a(function(){return l});var l=b("prop-types").shape({item:j,label:b("prop-types").string.isRequired,priceList:b("prop-types").arrayOf(a),price:k,userFacingReason:b("prop-types").node,zeroAmountReason:b("prop-types").node});a=b("prop-types").arrayOf(l);var m=b("prop-types").shape({identifier:b("prop-types").oneOf([c.CONTACT_NAME]).isRequired}),n=b("prop-types").shape({addEmailNuxCta:b("prop-types").node,addEmailPuxCta:b("prop-types").node,emailLabel:b("prop-types").node,formFooterMessage:b("prop-types").node,fieldPlaceholder:b("prop-types").node,showEmailLabelForMsiteNux:b("prop-types").bool}),o=b("prop-types").shape({identifier:b("prop-types").oneOf([c.CONTACT_EMAIL]).isRequired,customContent:n}),p=b("prop-types").shape({title:b("prop-types").node,iconSrc:b("validateImageSrcPropType"),emailFieldLabel:b("prop-types").node,formFooterMessage:b("prop-types").node});p=b("prop-types").shape({identifier:b("prop-types").oneOf([c.CONTACT_INFO]).isRequired,contactInfoTypes:b("prop-types").arrayOf(b("prop-types").string),customContent:p});var q=b("prop-types").shape({identifier:b("prop-types").oneOf([c.CONTACT_PHONE]).isRequired}),r=b("prop-types").shape({identifier:b("prop-types").oneOf([c.NOTE]).isRequired,length:b("prop-types").number,optional:b("prop-types").bool,placeholderText:b("prop-types").node}),s=b("prop-types").shape({allowChangeBillingCountry:b("prop-types").bool,identifier:b("prop-types").oneOf([c.PAYMENT_METHOD]).isRequired}),t=b("prop-types").shape({identifier:b("prop-types").oneOf([c.PIN_VERIFICATION]).isRequired}),u=b("prop-types").shape({addAddressNuxCta:b("prop-types").node,addAddressPuxCta:b("prop-types").node,addressLabel:b("prop-types").node,extensionLabel:b("prop-types").node,formFooterMessage:b("prop-types").node,formTitle:b("prop-types").node,selectAddressPuxCta:b("prop-types").node,showAddressLabelForMsiteNux:b("prop-types").bool,hideExtension:b("prop-types").bool,useNewAddressForm:b("prop-types").bool}),v=b("prop-types").shape({identifier:b("prop-types").oneOf([c.SHIPPING_ADDRESS]).isRequired,customContent:u}),w=b("prop-types").shape({identifier:b("prop-types").oneOf([c.PRICE_SELECTOR]).isRequired}),x=b("prop-types").shape({identifier:b("prop-types").oneOf([c.FREQUENCY_SELECTOR]).isRequired}),y=b("prop-types").shape({identifier:b("prop-types").oneOf([c.NATIONALITY_SELECTOR]).isRequired}),z=b("prop-types").shape({identifier:b("prop-types").oneOf([c.FREE_TRIAL]).isRequired,nextBillTime:b("prop-types").string,subscriptionFrequency:b("prop-types").node,subscriptionPrice:b("prop-types").node,trialFrequency:b("prop-types").node,trialPeriod:b("prop-types").number,trialType:b("prop-types").string}),A=b("prop-types").shape({"class":b("prop-types").func.isRequired,extensionKey:b("prop-types").string.isRequired,identifier:b("prop-types").oneOf([c.CUSTOM_EXTENSION]).isRequired,onChange:b("prop-types").func,extraProps:b("prop-types").object}),B=b("prop-types").shape({optionId:b("prop-types").string.isRequired,optionPriceList:a,optionTitle:b("prop-types").string.isRequired}),C=b("prop-types").shape({identifier:b("prop-types").string.isRequired,currency:b("prop-types").string,length:b("prop-types").number,optional:b("prop-types").bool,placeholderText:b("prop-types").string,prefilledContent:b("prop-types").string,priceTag:b("prop-types").string,type:b("prop-types").string.isRequired}),D=b("prop-types").shape({actionableTitle:b("prop-types").string.isRequired,disclaimer:b("prop-types").string,formFields:b("prop-types").object,title:b("prop-types").string.isRequired});B=b("prop-types").shape({actionableTitle:b("prop-types").string,allowsMultipleSelection:b("prop-types").bool,collectedDataKey:b("prop-types").string,customOption:D,identifier:b("prop-types").oneOf([c.CUSTOM_OPTIONS]).isRequired,optionListTitle:b("prop-types").string,options:b("prop-types").arrayOf(B).isRequired,preselectedOptionIDs:b("prop-types").arrayOf(b("prop-types").string),priceModel:b("prop-types").oneOf(Object.values(d)),shouldAddToOrderSummary:b("prop-types").bool,shouldPreSelect:b("prop-types").bool,title:b("prop-types").string.isRequired});d=b("prop-types").shape({couponValid:b("prop-types").bool,identifier:b("prop-types").oneOf([c.COUPON_CODE]).isRequired,length:b("prop-types").number,message:b("prop-types").string,optional:b("prop-types").bool,placeholderText:b("prop-types").string.isRequired,prefilledContent:b("prop-types").string,type:b("prop-types").string.isRequired});f=b("prop-types").shape({optIn:b("prop-types").bool,identifier:b("prop-types").oneOf([c.USER_INFO_OPT_IN]).isRequired,disclaimer:f,privacyPolicy:f});c=b("prop-types").shape({identifier:b("prop-types").oneOf([c.TAX_INFO]).isRequired});m=b("prop-types").oneOfType([m,o,q,p,r,s,t,v,A,B,w,x,y,d,z,f,c]);o=b("prop-types").shape({actionTitle:b("prop-types").string,backButton:b("prop-types").bool,backButtonCallback:b("prop-types").func,customTermsAndPoliciesText:b("prop-types").element,merchantName:b("prop-types").string,processorName:b("prop-types").string,termsAndPoliciesUrl:b("prop-types").string});q=b("prop-types").shape({type:b("prop-types").string.isRequired});p=b("prop-types").shape({"class":b("prop-types").func,extraData:b("prop-types").object,extensionKey:b("prop-types").string,identifier:b("prop-types").string.isRequired});r=b("prop-types").shape({confirmationClosedCallback:b("prop-types").func,confirmationExtensions:b("prop-types").arrayOf(p),confirmationText:b("prop-types").node,continueURL:b("prop-types").string,customConfirmationImage:b("prop-types").node,customBottomContext:b("prop-types").node,doneButtonText:b("prop-types").node,doneButtonTrackingNodeType:b("prop-types").node,enableReceiptFooterLink:b("prop-types").bool,forceHideReceiptCTA:b("prop-types").bool,merchantLogoUrl:b("prop-types").string,receiptUrl:b("prop-types").string,hideDoneButton:b("prop-types").bool,isPaymentStatusPending:b("prop-types").bool});s=b("prop-types").shape({checkoutClosedCallback:b("prop-types").func,confirmationConfiguration:r,dialogWidth:b("prop-types").number,entity:i,items:b("prop-types").arrayOf(j).isRequired,priceList:a,purchaseInfo:b("prop-types").arrayOf(m).isRequired,payActionContent:o.isRequired,renderInline:b("prop-types").bool});t=b("prop-types").shape({contentConfiguration:s,orderStatusModel:q.isRequired,paymentInfo:h.isRequired,version:b("prop-types").string.isRequired});v={CheckoutConfigurationPropTypes:t,ConfirmationConfigurationPropTypes:r,ConfirmationExtensionPropTypes:p,ContentConfigurationPropTypes:s,CustomContactEmailContentPropTypes:n,CustomOptionPropTypes:D,CustomShippingAddressContentPropTypes:u,EntityPropTypes:i,FormFieldAttributesPropTypes:C,ItemPropTypes:j,OrderStatusModelPropTypes:q,PayActionContentPropTypes:o,PaymentInfoPropTypes:h,PriceItemPropTypes:l,PriceListPropTypes:a,PricePropTypes:k,PurchaseInfoExtensionPropTypes:m};e.exports=v}),null);
-----
FBPaymentsSellerBonusTrackerContainer.react",["cx","AllPaymentTypeFields","FBPaymentsSellerBonusTrackerContainerQuery.graphql","RelayAPIConfig","RelayFBEnvironment","RelayModern","cr:808","gkx","keyMirror","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=b("RelayModern").QueryRenderer;b("RelayModern").graphql;var k=i||(i=b("react")),l=b("keyMirror")(b("AllPaymentTypeFields"));a=function(a){babelHelpers.inheritsLoose(c,a);function c(c){var d;d=a.call(this,c)||this;b("RelayAPIConfig").DO_NOT_USE_setActorID(c.pageID);return d}var d=c.prototype;d.render=function(){var a=this.props.compactView;return k.jsx(j,{environment:b("RelayFBEnvironment"),query:h!==void 0?h:h=b("FBPaymentsSellerBonusTrackerContainerQuery.graphql"),variables:{actorID:this.props.pageID,queryParams:{origin:this.props.origin,product_type:l.NMOR_PAGES_COMMERCE,thread_id:this.props.buyerID}},render:function(c){c.error;c=c.props;c=((c=c)!=null?(c=c.list)!=null?c.banners:c:c)||[];return c.length===0?null:k.jsx("div",{className:b("gkx")("20948")?"_1uzl"+(a?" _6hj2":""):"_apoy"+(a?" _apoz":""),children:c.map(function(c,d){return k.jsx(b("cr:808"),{banner:c,compactView:a},d)})})}})};return c}(k.Component);a.defaultProps={compactView:!1};e.exports=a}),null);
-----
CommerceCheckoutRootContainer.react",["AllPaymentTypeFields","CommerceCheckoutActionLogger","CommerceCheckoutContext","CommerceCheckoutDialogWrapper.react","CommerceCheckoutErrorScreen.react","CommerceCheckoutHooks","CommerceCheckoutLoadingScreen.react","CommerceCheckoutLoggingContext","CommerceCheckoutLoggingUtils","CommerceCheckoutOrderConfirmationScreen.react","CommerceCheckoutReducer","CommerceCheckoutScreen.react","CommerceCheckoutState","CommerceCheckoutTypes.flow","CommerceCheckoutUpdatePaymentScreen.react","react","useCommerceCheckoutInformationMutation"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useContext,k=b.useEffect,l=b.useMemo,m=b.useReducer,n=b.useRef,o=b.useState;function a(a){var b,e=a.checkoutProps,f=a.dialogProps,g=a.entrypoint,h=a.loggingSessionId,j=a.onClose;a=m(c("CommerceCheckoutReducer"),d("CommerceCheckoutState").getInitialState(e,h,f));var k=a[0],n=a[1];a=l(function(){return{dispatch:n,state:k}},[k]);var o=(b=c("AllPaymentTypeFields")[e==null?void 0:e.paymentType.toString()])!=null?b:"unknown",q=k.checkoutFlow;b=l(function(){var a;a=(a=(a=e.products)==null?void 0:a.map(function(a){return a.product_id}))!=null?a:[];a=new(c("CommerceCheckoutActionLogger"))(o,q,a,[e.receiverID],h,g,e.extraData);return{logger:a}},[e.products,e.receiverID,e.extraData,o,q,h,g]);var r=b.logger,s=function(){r.logUserClickCheckoutExit(),j()};return i.jsx(c("CommerceCheckoutContext").Provider,{value:a,children:i.jsx(c("CommerceCheckoutLoggingContext").Provider,{value:b,children:i.jsx(c("CommerceCheckoutDialogWrapper.react"),{dialogProps:(a=f)!=null?a:{},onClose:s,children:i.jsx(p,{checkoutProps:e,loggingSessionId:h,onClose:s})})})})}a.displayName=a.name+" [from "+f.id+"]";function p(a){var b=a.checkoutProps;a.dialogProps;a.entrypoint;var e=a.loggingSessionId;a=a.onClose;var f=j(c("CommerceCheckoutContext")),g=f.dispatch;f=f.state;var h=j(c("CommerceCheckoutLoggingContext")),l=h.logger,m=n(!1);h=d("CommerceCheckoutHooks").useCheckoutCurrentScreen();var p=f.checkoutSessionID,s=f.couponCodeTextInput,t=f.requiresCheckoutInfoRefresh,u=t===void 0?!1:t,v=f.selectedCredential,w=f.selectedDeliveryOptionID,x=f.selectedDeliveryOptionIDs,y=f.selectedShippingAddressID,z=(t=f.checkoutProps)==null?void 0:(f=t.extraData)==null?void 0:f.products;t=o(!0);var A=t[0],B=t[1],C=d("CommerceCheckoutHooks").useHasChanged(x),D=d("CommerceCheckoutHooks").useMutationWithLoading(c("useCommerceCheckoutInformationMutation"));k(function(){var a=z;if(A||u){m.current||(l.logClientCheckoutInit(),l.logClientLoadCheckoutInit(),m.current=!0);var c=d("CommerceCheckoutLoggingUtils").getCouponState(s);l.logClientEditCouponInit(c);C&&l.logClientChangeShippingMethodInit();a={checkout_session_id:p,coupon_code:s,extra_data:JSON.stringify(babelHelpers["extends"]({},b.extraData,{products:a})),is_dynamic_auth_available:!1,logging_id:e,payment_order_id:b.orderID,payment_type:b.paymentType,products:b.products,receiver_id:b.receiverID,selected_delivery_option_id:w,selected_delivery_option_ids:x,selected_payment_credentials:v?[{credential_id:v.credentialID,credential_type:r[v.credentialType]}]:null,selected_shipping_address_id:y};D(a,{onCompleted:function(a){var b;if(((b=a.checkout_information_mutation)==null?void 0:b.payments_error)!=null){b=(b=a.checkout_information_mutation)==null?void 0:b.payments_error;g({paymentsUserFacingError:b,type:"LOAD_CHECKOUT_INFO_PAYMENT_ERRORS"});l.logClientLoadCheckoutFail(b);l.logClientEditCouponFail(c,b);C&&l.logClientChangeShippingMethodFail()}else l.logClientLoadCheckoutSuccess(),l.logClientEditCouponSuccess(c),C&&l.logClientChangeShippingMethodSuccess(),g({checkoutInformation:a,isInitialLoad:A,logger:l,type:"LOAD_CHECKOUT_INFO_SUCCESS"});B(!1)},onError:function(a){l.logClientLoadCheckoutFail({error_code:a.code,error_description:a.description,error_title:a.message}),g({type:"LOAD_CHECKOUT_INFO_UNKNOWN_ERRORS"}),B(!1)}})}},[p,D,b,z,A,u,e,g,w,x,v,y,s,l,C]);return A?i.jsx(c("CommerceCheckoutLoadingScreen.react"),{}):q(h,a)}p.displayName=p.name+" [from "+f.id+"]";function q(a,b){switch(a.type){case d("CommerceCheckoutTypes.flow").CheckoutScreenType.ORDER_CONFIRMATION:return i.jsx(c("CommerceCheckoutOrderConfirmationScreen.react"),{onCloseCheckout:b});case d("CommerceCheckoutTypes.flow").CheckoutScreenType.ERROR:case d("CommerceCheckoutTypes.flow").CheckoutScreenType.UNKNOWN:return i.jsx(c("CommerceCheckoutErrorScreen.react"),{onCloseCheckout:b});case d("CommerceCheckoutTypes.flow").CheckoutScreenType.UPDATE_ORDER_PAYMENT:return i.jsx(c("CommerceCheckoutUpdatePaymentScreen.react"),{});default:return i.jsx(c("CommerceCheckoutScreen.react"),{})}}q.displayName=q.name+" [from "+f.id+"]";var r={credit_card:"CREDIT_CARD",new_credit_card:"NEW_CREDIT_CARD",new_paypal_ba:"NEW_PAYPAL_BA",paypal_ba:"PAYPAL_BA"};g["default"]=a}),98);
-----
FBPayments3DS",["FBPayUPLLogger","FBPayments3DSAcquirerMerchantInfoQuery.graphql","FBPayments3DSCardPaymentMethodInfoQuery.graphql","FBPayments3DSChallengeModalContainer.react","FBPayments3DSComplete3DSMutation.graphql","FBPayments3DSCompleteAndAuthorizeQuery.graphql","FBPayments3DSErrorUtils","FBPayments3DSEvents","FBPayments3DSFetch3rdPartyAuthURLMutation.graphql","FBPayments3DSLoggerBase","FBPayments3DSLoggerConstants","FBPayments3DSQuery.graphql","FBPaymentsModulesAPIUtils","ODS","Promise","ReactDOM","RelayFBEnvironment","RelayModern","SecureMessageListener","cr:6114","cr:7676","guid","isEmpty","isPlainObject","keyMirror","promiseDone","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m,n,o,p,q,r=p||d("react"),s=c("keyMirror")({CHALLENGED:null,COMPLETED:null,ATTEMPT_COMPLETED:null,FAILED:null,NOT_COMPLETED:null,REJECTED:null,NOT_ENROLLED:null,UNAVAILABLE:null,BYPASS:null}),t={SMALL:"01",MEDIUM:"02",LARGE:"03",EXTRA_LARGE:"04",FULL_PAGE:"05"},u=c("keyMirror")({CARDINAL_3DS1:null,CARDINAL_3DS2:null}),v="https://centinelapi.cardinalcommerce.com";a="https://centinelapistag.cardinalcommerce.com";var w="/V1/Cruise/Collect",x={CARDINAL_INCORRECT_CARD_INFO:1353097},y=h!==void 0?h:h=b("FBPayments3DSQuery.graphql"),z=i!==void 0?i:i=b("FBPayments3DSAcquirerMerchantInfoQuery.graphql"),A=j!==void 0?j:j=b("FBPayments3DSFetch3rdPartyAuthURLMutation.graphql"),B=k!==void 0?k:k=b("FBPayments3DSCardPaymentMethodInfoQuery.graphql"),C=l!==void 0?l:l=b("FBPayments3DSCompleteAndAuthorizeQuery.graphql"),D=m!==void 0?m:m=b("FBPayments3DSComplete3DSMutation.graphql");e=function(){function a(){var a=this;this.deviceDataJWT=null;this.deviceDataDfRef=null;this.divElement=null;this.transactionID=null;this.requires3DS=!1;this.cardinalPayload=null;this.logger=new(c("FBPayments3DSLoggerBase"))();this.uplLogger=new(c("FBPayUPLLogger"))();this.sessionID=null;this.relayEnvironment=c("RelayFBEnvironment");var b=new(c("SecureMessageListener"))(window).setSupportedOrigins(["meta.com","workplace.com","facebook.com"]).setEventHandler(function(b){if(c("isPlainObject")(b.data)){b=b.data;b.type==="challenge_complete_postmessage"&&((q||(q=d("ODS"))).bumpEntityKey(264,"www","3ds_challenge_complete_postmessage_test_success"),b.do_it&&a.challengeComplete(b.transaction_id,b.response))}});b.beginListening()}var e=a.prototype;e.initLogger=function(a,b){this.sessionID=this.sessionID==null?c("guid")():this.sessionID,this.logger.setGlobalFields({session:this.sessionID,item_type:a,credential_id:b})};e.initUPLLogger=function(a,b){this.uplLogger=new(c("FBPayUPLLogger"))(a,"web",b)};e.setRequires3DS=function(a){this.requires3DS=a};e.collectDeviceData=function(a){var e=this,f=a.ccNumberBin,g=a.credentialID,h=a.amount,i=a.itemType,j=a.ccCountryCode,k=a.paymentAccountID,l=a.isRequestFromWhatsapp,m=a.externalContextID;a=a.sessionID;this.initLogger(i,g);this.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.JWT_CREATE_INIT).setExternalContextID(m).log();this.initUPLLogger(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(i.toLowerCase()),a);this.uplLogger.logClientLoadThreedsInit({target_name:"jwt_create_mutation"},{credential_id:(a=g)!=null?a:"",amount:h.amount,currency:h.currency,cc_country_code:j,payment_account_id:(a=k)!=null?a:"",is_request_from_whatsapp:l===!0?"1":"0"});return new(o||(o=b("Promise")))(function(a,n){d("RelayModern").commitMutation(e.relayEnvironment,{mutation:y,variables:{input:babelHelpers["extends"]({cc_number_bin:f,credential_id:g,amount:h,item_type:i,cc_country_code:j,account_id:k,actor_id:g,is_request_from_whatsapp:l,logging_id:e.uplLogger.getSessionID()},m!=null?{external_context_id:m}:null)},onCompleted:function(f){var g;e.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.JWT_CREATE_COMPLETE).setExternalContextID(m).log();e.deviceDataJWT=((g=f.jwt_query)==null?void 0:g.token)||"";e.deviceDataDfRef=((g=f.jwt_query)==null?void 0:g.id)||"";g=((g=f.jwt_query)==null?void 0:g.status)||"";f=((f=f.jwt_query)==null?void 0:f.error_message)||"";if(g==="TEST_ONLY_MODE")a();else if(g==="SUCCESS"){g=e.deviceDataJWT;var h=d("ReactDOM").createRoot(b("cr:6114").create("div"));h.render(r.jsx(b("cr:7676"),{externalContextID:m,logger:e.logger,jwt:g,onDeviceDataComplete:function(){a()},uplLogger:e.uplLogger}))}else{e.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.JWT_CREATE_ERROR).setExternalContextID(m).setError(f).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();h=c("FBPayments3DSErrorUtils").getError("JWT_CREATION_FAILED",f);n(h)}},onError:function(a){e.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.JWT_CREATE_ERROR).setExternalContextID(m).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();a=c("FBPayments3DSErrorUtils").getError("JWT_CREATION_FAILED",a.message);n(a)}})})};e.requires3DS2=function(){return this.requires3DS};e.createLookupData=function(a){var b,c=a.lookupData.acquirer_merchant_info;c&&(c={merchant_name:c.merchantName,acquirer_mid:c.acquirerMid,acquirer_bin:c.acquirerBin});c={df_ref_id:this.deviceDataDfRef||"",device_channel:"Browser",transaction_mode:"S",browser_info:{user_agent:window.navigator.userAgent,java_enabled:window.navigator.javaEnabled()?"true":"false",language:window.navigator.language,color_depth:screen.colorDepth.toString(),screen_height:window.innerHeight,screen_width:window.innerWidth,time_zone:new Date().getTimezoneOffset().toString()},email:a.lookupData.email,mobile_phone:a.lookupData.mobile_phone,billing_first_name:a.lookupData.billing_first_name,billing_middle_name:a.lookupData.billing_middle_name,billing_last_name:a.lookupData.billing_last_name,credit_card_address:a.lookupData.credit_card_address,acs_window_size:(b=a.lookupData.acs_window_size)!=null?b:t.LARGE,acquirer_merchant_info:c,fb_return_url:a.lookupData.customFBReturnURL,challenge_indicator:(b=a.lookupData.challenge_indicator)!=null?b:"",fraud_activity_indicator:a.lookupData.fraud_activity_indicator};return c};e.getPaymentMethod=function(){var a={provider:"CREDIT_CARD",instrument_type:"CC"};return a};e.createCredentialID=function(a){a={fb_id:a,payment_method:this.getPaymentMethod()};return a};e.getAcquirerMerchantInfo=function(a){var e=this;switch(a.paymentType){case"NMOR_DONATION_P4P":case"NMOR_PPGF_DONATION":case"NMOR_DONATION_CIELO":return new(o||(o=b("Promise")))(function(b,f){var g=a.paymentInfo.receiverId||"",h=a.paymentInfo.orderId||"";e.uplLogger.logClientLoadThreedsInit({target_name:"acquirer_merchant_info_mutation"},{raw_credential_id:a.credentialID,provider:e.getPaymentMethod().provider,instrument_type:e.getPaymentMethod().instrument_type,currency:a.currency,order_id:h,receiver_id:g});c("promiseDone")(d("RelayModern").fetchQuery(e.relayEnvironment,z,{data:{credential_id:e.createCredentialID(a.credentialID),currency:a.currency,order_id:h,payment_type:a.paymentType,receiver_id:g,logging_id:e.uplLogger.getSessionID()}}),function(c){c=c.acquirer_merchant_info_query||{};var d=c.acquirer_mid;c=c.acquirer_bin;b({merchantName:a.paymentInfo.merchantName||"",acquirerMid:d||"",acquirerBin:c||""})},function(a){a=c("FBPayments3DSErrorUtils").getError("ACQUIRER_MERCHANT_INFO_FAILED",a.message);f(a)})});case"NMOR_EVENT_TICKETING":var f=this.getAcqurerInfoFromCardType(a.paymentInfo.acquirerMid||[],a.creditCardType,a.currency),g=this.getAcqurerInfoFromCardType(a.paymentInfo.acquirerBin||[],a.creditCardType,a.currency);f={merchantName:a.paymentInfo.merchantName||"",acquirerMid:f||"",acquirerBin:g||""};return(o||(o=b("Promise"))).resolve(f);default:return(o||(o=b("Promise"))).resolve(null)}};e.fetchAuthenticationURL=function(a){var e,f=this;this.logger.setGlobalFields({credential_id:a.credentialID});this.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_REQUEST).setExternalContextID(a.externalContextID).log();this.uplLogger.logClientLoadThreedsInit({target_name:"get_3rd_party_auth_url_mutation"},{raw_credential_id:a.credentialID,amount:a.amount.amount,currency:a.amount.currency,processor:(e=a.processor)!=null?e:u.CARDINAL_3DS2,is_request_from_whatsapp:a.isRequestFromWhatsapp===!0?"1":"0"});return new(o||(o=b("Promise")))(function(e,g){var h;d("RelayModern").commitMutation(f.relayEnvironment,{mutation:A,variables:{input:babelHelpers["extends"]({credential_id:f.createCredentialID(a.credentialID)},a.externalContextID!=null?{external_context_id:a.externalContextID}:null,{amount:a.amount,item_type:a.itemType,lookup_data:f.createLookupData(a),account_id:a.paymentAccountID,processor:(h=a.processor)!=null?h:u.CARDINAL_3DS2,actor_id:a.credentialID,is_request_from_whatsapp:a.isRequestFromWhatsapp,session_id:f.uplLogger.getSessionID()})},onCompleted:function(h){h=h.fetch_3rd_party_payment_auth||{};var i=h.status,j=h.row_id,k=h.step_up_url,l=h.step_up_jwt;h=h.payments_error;if(h!=null){f.uplLogger.logClientLoadThreedsSuccess({target_name:"get_3rd_party_auth_url_mutation"},{response_status:"fail"});f.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_RESPONSE_ERROR).setExternalContextID(a.externalContextID).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();if(h.error_code==x.CARDINAL_INCORRECT_CARD_INFO){h=c("FBPayments3DSErrorUtils").getError("INCORRECT_CARD_INFO","Backend threw incorrect card info error");g(h)}else{h=c("FBPayments3DSErrorUtils").getError("CMPI_FAILED",i||"Empty status");g(h)}}else if(i==s.CHALLENGED){f.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_RESPONSE_CHALLENGE).setExternalContextID(a.externalContextID).setResponseStatus(i).setRowID(j).log();f.uplLogger.logClientLoadThreedsSuccess({target_name:"get_3rd_party_auth_url_mutation"},{response_status:"challenge"});f.divElement=a.div==null?b("cr:6114").create("div"):a.div;h=f.divElement;var m=d("ReactDOM").createRoot(f.divElement);m.render(r.jsx(c("FBPayments3DSChallengeModalContainer.react"),{externalContextID:a.externalContextID,logger:f.logger,container:h,stepUpURL:(m=k)!=null?m:"",params:[{key:"JWT",value:(h=l==null?void 0:l.token)!=null?h:""}],protocol:"POST",isLite:(k=a.isLite)!=null?k:!1,onChallengeComplete:function(){var b;f.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CHALLENGE_SUCCESS).setExternalContextID(a.externalContextID).setExternalTransactionID(f.transactionID).setRowID(j).setCardinalPayload(f.cardinalPayload).log();f.uplLogger.logClientFetchThreedsSuccess({target_name:"challenge_success"});c("promiseDone")(f.processAfterCMPI((b=j)!=null?b:"",a.credentialID,a.itemType,(b=f.transactionID)!=null?b:"",a.paymentAccountID,a.isSavingCC,a.isRequestFromWhatsapp,a.externalContextID),function(a){e(a)},function(a){g(a)})},onChallengeFail:function(){g(c("FBPayments3DSErrorUtils").getError("USER_CANCELLED_MODAL","User clicked cancel button on the dialog box."))},uplLogger:f.uplLogger,productID:a.productID,isBilling:a.isBilling,experiment:a.experiment,mpiProcessor:a.processor}))}else if(i==s.COMPLETED||i==s.ATTEMPT_COMPLETED||i==s.UNAVAILABLE||i==s.NOT_ENROLLED||i==s.BYPASS){f.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_RESPONSE_SUCCESS).setExternalContextID(a.externalContextID).setResponseStatus(i).setRowID(j).log();f.uplLogger.logClientLoadThreedsSuccess({target_name:"get_3rd_party_auth_url_mutation"},{response_status:(m=i)!=null?m:"success"});c("promiseDone")(f.processAfterCMPI((l=j)!=null?l:"",a.credentialID,a.itemType,(h=f.transactionID)!=null?h:"",a.paymentAccountID,a.isSavingCC,a.isRequestFromWhatsapp,a.externalContextID),function(a){e(a)},function(a){g(a)})}else{f.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_RESPONSE_FAILED_STATUS).setExternalContextID(a.externalContextID).setResponseStatus(i).setRowID(j).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();k=c("FBPayments3DSErrorUtils").getError("AUTH_FAIL",i||"Empty status");g(k)}},onError:function(b){f.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_RESPONSE_ERROR).setExternalContextID(a.externalContextID).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();b=c("FBPayments3DSErrorUtils").getError("CMPI_FAILED",b.message);g(b)}})})};e.getDeviceDataURLOrigin=function(){return v};e.getDeviceDataURL=function(){return v+w};e.challengeComplete=function(a,b){this.divElement&&(this.transactionID=a,this.cardinalPayload=b,this.divElement.dispatchEvent(new Event(d("FBPayments3DSEvents").CHALLENGE_COMPLETE_EVENT_NAME)))};e.processAfterCMPI=function(a,d,e,f,g,h,i,j){var k=this;h===void 0&&(h=!1);i===void 0&&(i=null);return new(o||(o=b("Promise")))(function(b,l){c("promiseDone")(h?k.complete3DSAndAuthorize(a,d,e,g,j):k.complete3DS(a,d,e,f,g,i,j),function(a){switch(a.status){case s.COMPLETED:case s.ATTEMPT_COMPLETED:case s.NOT_ENROLLED:case s.BYPASS:case s.UNAVAILABLE:b(a);break;case s.FAILED:case s.NOT_COMPLETED:case s.REJECTED:l(c("FBPayments3DSErrorUtils").getError("AUTH_FAIL",String(a.status)));break;default:l(c("FBPayments3DSErrorUtils").getError(h?"COMPLETE_3DS_FAILED":"COMPLETE_3DS_AND_AUTH_FAILED",String(a.status)))}},function(a){l(a)})})};e.complete3DS=function(a,e,f,g,h,i,j){var k,l=this;this.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DS_REQUEST).setExternalContextID(j).setRowID(a).setCardinalPayload(this.cardinalPayload).setExternalTransactionID(this.transactionID).log();this.uplLogger.logClientLoadThreedsInit({target_name:"complete_3ds_mutation"},{auth_row_id:a,credential_id:e,cardinal_txn_id:g,account_id:(k=h)!=null?k:"",is_request_from_whatsapp:i===!0?"1":"0"});return new(o||(o=b("Promise")))(function(b,k){d("RelayModern").commitMutation(l.relayEnvironment,{mutation:D,variables:{input:babelHelpers["extends"]({auth_row_id:a},j!=null?{external_context_id:j}:null,{credential_id:e,item_type:f,cardinal_txn_id:g,actor_id:e,account_id:h,is_request_from_whatsapp:i,logging_id:l.uplLogger.getSessionID()})},onCompleted:function(e){e=e.complete_3ds;e=l.getAuthenticationResultFromComplete3DSResponse(e);if(e!=null)l.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DS_SUCCESS).setExternalContextID(j).setResponseStatus(e.status).setRowID(e.rowID).setCardinalPayload(l.cardinalPayload).setExternalTransactionID(l.transactionID).setVersionOf3ds(e.threeDSTransactionData.dsTransactionID).log(),b(e);else{l.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DS_ERROR).setExternalContextID(j).setRowID(a).setCardinalPayload(l.cardinalPayload).setExternalTransactionID(l.transactionID).log();e=c("FBPayments3DSErrorUtils").getError("COMPLETE_3DS_FAILED","Values returned from GraphQL Query were invalid");k(e)}},onError:function(b){l.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DS_ERROR).setExternalContextID(j).setRowID(a).setCardinalPayload(l.cardinalPayload).setExternalTransactionID(l.transactionID).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();b=c("FBPayments3DSErrorUtils").getError("COMPLETE_3DS_FAILED",b.message);k(b)}})})};e.complete3DSAndAuthorize=function(a,e,f,g,h){var i,j=this;this.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DSANDAUTH_REQUEST).setExternalContextID(h).setRowID(a).setCardinalPayload(this.cardinalPayload).setExternalTransactionID(this.transactionID).log();this.uplLogger.logClientLoadThreedsInit({target_name:"complete_3ds_and_auth_mutation"},{cardinal_payload:(i=this.cardinalPayload)!=null?i:"",auth_row_id:a,raw_credential_id:e,cardinal_txn_id:(i=this.transactionID)!=null?i:"",account_id:(i=g)!=null?i:""});return new(o||(o=b("Promise")))(function(b,i){var k;d("RelayModern").commitMutation(j.relayEnvironment,{mutation:C,variables:{input:babelHelpers["extends"]({processor:"CARDINAL_3DS2",auth_row_id:a,credential_id:j.createCredentialID(e),item_type:f,account_id:g,actor_id:e,payload:(k=j.cardinalPayload)!=null?k:"",transaction_id:j.transactionID,logging_id:j.uplLogger.getSessionID()},h!=null?{external_context_id:h}:null)},onCompleted:function(e){e=e.complete3ds_and_authorize;e=j.getAuthenticationResultFromComplete3DSResponse(e);if(e!=null)j.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DSANDAUTH_SUCCESS).setExternalContextID(h).setResponseStatus(e.status).setRowID(e.rowID).setCardinalPayload(j.cardinalPayload).setExternalTransactionID(j.transactionID).setVersionOf3ds(e.threeDSTransactionData.dsTransactionID).log(),b(e);else{j.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DS_ERROR).setExternalContextID(h).setRowID(a).setCardinalPayload(j.cardinalPayload).setExternalTransactionID(j.transactionID).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();e=c("FBPayments3DSErrorUtils").getError("COMPLETE_3DS_AND_AUTH_FAILED","Values returned from GraphQL Query were invalid");i(e)}},onError:function(b){j.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DSANDAUTH_ERROR).setExternalContextID(h).setRowID(a).setCardinalPayload(j.cardinalPayload).setExternalTransactionID(j.transactionID).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();b=c("FBPayments3DSErrorUtils").getError("COMPLETE_3DS_AND_AUTH_FAILED",b.message);i(b)}})})};e.getAuthenticationResultFromComplete3DSResponse=function(a){return a!=null&&a.three_d_secure_version!=null&&a.ds_transaction_id!=null&&a.cavv!=null&&a.eci_flag!=null&&a.auth_row_id!=null&&a.status!=null&&a.xid!=null&&a.cardinal_txn_id!=null?{status:a.status,rowID:a.auth_row_id,cardinalTransactionID:a.cardinal_txn_id,threeDSTransactionData:{threeDsSecureVersion:a.three_d_secure_version,cavv:a.cavv,eciFlag:a.eci_flag,xid:a.xid,dsTransactionID:a.ds_transaction_id}}:null};e.getCardPaymentMethodInfo=function(a){var e,f=this;this.initLogger(a.itemType,a.credentialId);this.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.GET_CARD_PAYMENT_INFO_REQUEST).log();this.initUPLLogger(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(a.itemType));this.uplLogger.logClientLoadThreedsInit({target_name:"3ds_eligibility_query"},{account_currency:a.accountCurrency,credential_id:(e=a.credentialId)!=null?e:"",cc_country_code:a.ccCountryCode});return new(o||(o=b("Promise")))(function(b,e){c("promiseDone")(d("RelayModern").fetchQuery(f.relayEnvironment,B,{input:{payment_method:f.getPaymentMethod(),cc_number_bin:a.ccNumberBin,credential_id:a.credentialId,cc_country_code:a.ccCountryCode,item_type:a.itemType,account_currency:a.accountCurrency,logging_id:f.uplLogger.getSessionID()}}),function(g){g=g.card_payment_method_info_query||{};var h=g.requires_3ds;g=g.mpi_processor;h==!0&&g==u.CARDINAL_3DS2?(f.uplLogger.logClientLoadThreedsSuccess({target_name:"3ds_eligibility_query"},{is_eligible:"1"}),f.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.GET_CARD_PAYMENT_INFO_RESPONSE_THREEDS_REQ).log(),f.setRequires3DS(!!h),c("promiseDone")(f.collectDeviceData({ccNumberBin:a.ccNumberBin,credentialID:a.credentialId,amount:{amount:"1",currency:a.accountCurrency},itemType:a.itemType,ccCountryCode:a.ccCountryCode,paymentAccountID:null}),function(){b()},function(a){e(a)})):(f.uplLogger.logClientLoadThreedsSuccess({target_name:"3ds_eligibility_query"},{is_eligible:"0"}),f.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.GET_CARD_PAYMENT_INFO_RESPONSE_THREEDS_NOT_REQ).log());f.setRequires3DS(!!h);b()},function(a){f.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.GET_CARD_PAYMENT_INFO_ERROR).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();a=c("FBPayments3DSErrorUtils").getError("CARD_LOOKUP_FAILED",a.message);e(a)})})};e.getBinNumberFromCreditCard=function(a){if(a==null)return null;a=a.replace(/ /g,"");return a.length>=6?a.substr(0,6):null};e.getAcqurerInfoFromCardType=function(a,b,d){a=a.find(function(a){if(!(n||(n=c("isEmpty")))(a.currency))return a.currency===d&&a.cardType===b;else return a.cardType===b});return a==null?void 0:a.info};return a}();f=new e();g["default"]=f}),98);
-----
FBPayments3DSAuthenticateComponent.react",["FBPayUPLLogger","FBPayments3DS","FBPayments3DS1CardinalFlow","FBPayments3DS1PayuFlow","FBPayments3DS2Flow","FBPayments3DSAuthenticateComponentCompleteCardAuthenticationActionMutation.graphql","FBPayments3DSErrorUtils","FBPayments3DSStripeFlow","FBPaymentsModulesAPIUtils","FBPaymentsSpinner.react","Payments3DSUtils","Promise","RelayFBEnvironment","RelayModern","SecurePostMessage","URI","nullthrows","react","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||d("react"),m=h!==void 0?h:h=b("FBPayments3DSAuthenticateComponentCompleteCardAuthenticationActionMutation.graphql");a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,d;for(var e=arguments.length,f=new Array(e),g=0;g-----
usePaymentsCometCheckout",["AllPaymentTypeFields","CometCardedDialogLoadingStateLegacy.react","FBPayUPLDebugLogger","JSResourceForInteraction","react","useCometLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useCallback,k=b.useMemo,l=b.useRef,m=c("JSResourceForInteraction")("PaymentsCometCheckoutDialog.react").__setRef("usePaymentsCometCheckout");function a(a){var b=a.onClose,d=babelHelpers.objectWithoutPropertiesLoose(a,["onClose"]);a=l(null);var e=c("useCometLazyDialog")(m,function(){return i.jsx(c("CometCardedDialogLoadingStateLegacy.react"),{})}),f=e[0];e=function(){var a;return(a=c("AllPaymentTypeFields")[(a=d.checkoutProps)==null?void 0:a.paymentType.toString()])!=null?a:"unknown"};var g=e(),h="upl-session-id-placeholder",n=k(function(){var a=new(c("FBPayUPLDebugLogger"))(g,"comet",h);return{logger:a}},[g]);e=j(function(a){var c;n.logger.logClientAddDebugAtomic(h,Date.now().toString(),{debug_step:"usePaymentsCometCheckout hook"},{checkout_props:JSON.stringify(d.checkoutProps),order_id_passed_in:(c=a)!=null?c:""});c=babelHelpers["extends"]({},d.checkoutProps,d.checkoutProps.paymentType.toLowerCase()==="mor_game_tipping_token"&&{orderID:a});f(babelHelpers["extends"]({},d,{checkoutProps:c,onClose:b}),b)},[n.logger,b,d,f]);return[e,a]}g["default"]=a}),98);
-----
useCommerceCheckoutDialog",["AllPaymentTypeFields","CometCardedDialogLoadingStateLegacy.react","CommerceCheckoutActionLogger","CommerceCheckoutLoggingUtils","JSResourceForInteraction","react","useCometLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useCallback,k=b.useRef,l=c("JSResourceForInteraction")("CommerceCheckoutRootContainer.react").__setRef("useCommerceCheckoutDialog");function a(a){var b=a.checkoutProps,e=a.dialogProps,f=a.entrypoint,g=a.onClose;a=k(null);var h=c("useCometLazyDialog")(l,function(){return i.jsx(c("CometCardedDialogLoadingStateLegacy.react"),{})}),m=h[0],n=(h=c("AllPaymentTypeFields")[b==null?void 0:b.paymentType.toString()])!=null?h:"unknown";h=j(function(){var a=d("CommerceCheckoutLoggingUtils").sessionIDGenerator(),h=b.products;h=(h=h==null?void 0:h.map(function(a){return a.product_id}))!=null?h:[];h=new(c("CommerceCheckoutActionLogger"))(n,"checkout_init",h,[b.receiverID],a,f,b.extraData);h.logUserClickFBPayCheckoutAtomic();m({checkoutProps:b,dialogProps:e,entrypoint:f,loggingSessionId:a,onClose:g},g)},[b,n,f,m,e,g]);return[h,a]}g["default"]=a}),98);
-----
CommerceCheckoutActionLogger",["ClientAddShippingaddressFailFalcoEvent","ClientAddShippingaddressInitFalcoEvent","ClientAddShippingaddressSuccessFalcoEvent","ClientCreatePlaceorderFailFalcoEvent","ClientCreatePlaceorderSuccessFalcoEvent","ClientEditShippingaddressFailFalcoEvent","ClientEditShippingaddressInitFalcoEvent","ClientEditShippingaddressSuccessFalcoEvent","ClientExecuteUpdatepaymentFailFalcoEvent","ClientExecuteUpdatepaymentSuccessFalcoEvent","ClientLoadFbpaycheckoutFailFalcoEvent","ClientLoadFbpaycheckoutInitFalcoEvent","ClientLoadFbpaycheckoutSuccessFalcoEvent","ClientLoadUpdatepaymentFailFalcoEvent","ClientLoadUpdatepaymentInitFalcoEvent","ClientLoadUpdatepaymentSuccessFalcoEvent","CommerceCheckoutLoggingUtils","FBPayUPLLogger","FBPaymentsLoggerConstants","FBPaymentsModulesAPIUtils","PayflowsInitFalcoEvent","PaymentsFlowsLogFalcoEvent","UserClickFbpaycheckoutAtomicFalcoEvent","UserClickFbpaycheckoutCancelFalcoEvent","UserClickFbpaycheckoutExitFalcoEvent","UserClickPlaceorderAtomicFalcoEvent","UserClickProductitemAtomicFalcoEvent","UserClickShippingaddressAtomicFalcoEvent","UserClickUpdatepaymentAtomicFalcoEvent","UserClickUpdatepaymentExitFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a,b,c,e,f,g,h){this.$1=(a=a)!=null?a:"unknown";this.$3=(a=b)!=null?a:"checkout_init";this.$7=c;this.$8=e;this.$2=(b=f)!=null?b:d("CommerceCheckoutLoggingUtils").sessionIDGenerator();this.$9=g;this.$10=h}var b=a.prototype;b.getFBPayUPLLoggerfromCheckoutLogger=function(){return new(c("FBPayUPLLogger"))(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(this.$1),"comet",this.$2)};b.setInvoiceId=function(a){this.$6=a};b.logUserClickPlaceOrderAtomic=function(a){var b=this;a===void 0&&(a={});c("UserClickPlaceorderAtomicFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PAYMENT},a)};b.logUserClickPlaceOrderUpdateOrderPaymentAtomic=function(a){var b=this;a===void 0&&(a={});c("UserClickUpdatepaymentAtomicFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_ORDER_PAYMENT},a)};b.logUserClickFBPayCheckoutAtomic=function(a){var b=this;a===void 0&&(a={});c("UserClickFbpaycheckoutAtomicFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.START},a)};b.logClientCreatePlaceOrderInit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PAYMENT},a)};b.logClientUpdateOrderPaymentInit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_ORDER_PAYMENT},a)};b.logClientCreatePlaceOrderSuccess=function(a){var b=this;a===void 0&&(a={});c("ClientCreatePlaceorderSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PAYMENT},a)};b.logClientUpdateOrderPaymentSuccess=function(a){var b=this;a===void 0&&(a={});c("ClientExecuteUpdatepaymentSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_ORDER_PAYMENT},a)};b.logClientCreatePlaceOrderFail=function(a,b){var e=this,f;b===void 0&&(b={});c("ClientCreatePlaceorderFailFalcoEvent").logCritical(function(){var b;return babelHelpers["extends"]({},e.$11(),{custom_fields:e.$12(),event_payload:{target_name:"checkout",view_name:"checkout"},extra_data:{error_code:(b=a==null?void 0:(b=a.error_code)==null?void 0:b.toString())!=null?b:"",error_message:(b=a==null?void 0:(b=a.error_description)==null?void 0:b.toString())!=null?b:""}})});this.$13({error_code:a==null?void 0:(f=a.error_code)==null?void 0:f.toString(),error_message:a==null?void 0:(f=a.error_description)==null?void 0:f.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PAYMENT},b)};b.logClientUpdateOrderPaymentFail=function(a,b){var e=this;b===void 0&&(b={});c("ClientExecuteUpdatepaymentFailFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$11(),{custom_fields:e.$12(),event_payload:{target_name:"checkout",view_name:"checkout"},extra_data:a})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_ORDER_PAYMENT},b)};b.logUserClickShippingAddressAtomic=function(a){var b=this;a===void 0&&(a={});c("UserClickShippingaddressAtomicFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout_address_typeahead",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADDRESS_TYPEAHEAD},a)};b.logUserClickProductItemAtomic=function(a){var b=this;a===void 0&&(a={});c("UserClickProductitemAtomicFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_PRODUCT_ITEM},a)};b.logClientCheckoutInit=function(a){var b=this;a===void 0&&(a={});c("PayflowsInitFalcoEvent").log(function(){return{e_counter_channel:0,event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,event_type:"client",flow_name:"checkout_init",flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.START,is_free:!1,paymod_extra_data:JSON.stringify(babelHelpers["extends"]({},b.$14(),a)),product:b.$1,session_id:b.$2}})};b.logClientLoadCheckoutInit=function(a){var b,e=this;a===void 0&&(a={});((b=this.$10)==null?void 0:b.is_update_order_payment_flow)===!0?c("ClientLoadUpdatepaymentInitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$11(),{custom_fields:e.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})}):c("ClientLoadFbpaycheckoutInitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$11(),{custom_fields:e.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_INFORMATION},a)};b.logClientLoadCheckoutFail=function(a,b){var e,f=this;b===void 0&&(b={});((e=this.$10)==null?void 0:e.is_update_order_payment_flow)===!0?c("ClientLoadUpdatepaymentFailFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},f.$11(),{custom_fields:f.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})}):c("ClientLoadFbpaycheckoutFailFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},f.$11(),{custom_fields:f.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({error_code:a==null?void 0:(e=a.error_code)==null?void 0:e.toString(),error_message:a==null?void 0:(e=a.error_description)==null?void 0:e.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_INFORMATION},b)};b.logClientLoadCheckoutSuccess=function(a){var b,e=this;a===void 0&&(a={});((b=this.$10)==null?void 0:b.is_update_order_payment_flow)===!0?c("ClientLoadUpdatepaymentSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$11(),{custom_fields:e.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})}):c("ClientLoadFbpaycheckoutSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$11(),{custom_fields:e.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_INFORMATION},a)};b.logUserClickCheckoutCancel=function(a){var b=this;a===void 0&&(a={});c("UserClickFbpaycheckoutCancelFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CANCEL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_MODULE},a)};b.logClientDisplayCheckoutExitDialog=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.DISPLAY,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_EXIT_DIALOG},a)};b.logUserClickCheckoutExit=function(a){var b=this;a===void 0&&(a={});c("UserClickFbpaycheckoutExitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.DONE,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_MODULE},a)};b.logUserClickCheckoutExitOnExitAlertDialog=function(a){var b,e=this;a===void 0&&(a={});((b=this.$10)==null?void 0:b.is_update_order_payment_flow)===!0&&c("UserClickUpdatepaymentExitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$11(),{custom_fields:e.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_EXIT_DIALOG},a)};b.logUserClickCheckoutExitOnOrderConfirmationScreen=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_CONFIRMATION_LEAVE},a)};b.logUserClickCheckoutCancelExit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CANCEL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_EXIT_DIALOG},a)};b.logUserClickCheckoutViewOrderDetails=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_CONFIRMATION_VIEW_ORDER_DETAILS},a)};b.logClientCheckoutPrefillEmailInit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PREFILLED_EMAIL},a)};b.logClientCheckoutPrefillShippingAddressInit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PREFILLED_SHIPPING_ADDRESS},a)};b.logClientCheckoutPrefillPaymentMethodInit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PREFILLED_PAYMENT_METHOD},a)};b.logUserClickAddPaypal=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PAYPAL},a)};b.logClientAddPaypalInit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PAYPAL},a)};b.logClientAddPaypalSuccess=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PAYPAL},a)};b.logClientAddPaypalFail=function(a,b){var c;b===void 0&&(b={});this.$13({error_code:a==null?void 0:(c=a.error_code)==null?void 0:c.toString(),error_message:a==null?void 0:(c=a.error_description)==null?void 0:c.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PAYPAL},b)};b.logClientAddPaypalCancel=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CANCEL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PAYPAL},a)};b.logClientAddEmailInit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_EMAIL},a)};b.logClientAddEmailSuccess=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_EMAIL},a)};b.logClientAddEmailFail=function(a,b){var c;b===void 0&&(b={});this.$13({error_code:a==null?void 0:(c=a.error_code)==null?void 0:c.toString(),error_message:a==null?void 0:(c=a.error_description)==null?void 0:c.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_EMAIL},b)};b.logUserClickUpdateEmail=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_EMAIL},a)};b.logClientUpdateEmailInit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_EMAIL},a)};b.logClientUpdateEmailSuccess=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_EMAIL},a)};b.logClientUpdateEmailFail=function(a,b){var c;b===void 0&&(b={});this.$13({error_code:a==null?void 0:(c=a.error_code)==null?void 0:c.toString(),error_message:a==null?void 0:(c=a.error_description)==null?void 0:c.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_EMAIL},b)};b.logUserClickNuxStepNext=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.NUX_CONSOLIDATED_INFO_STEP_NEXT},a)};b.logClientNuxStepNextSuccess=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.NUX_CONSOLIDATED_INFO_STEP_NEXT},a)};b.logClientNuxStepNextFail=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.NUX_CONSOLIDATED_INFO_STEP_NEXT},a)};b.logClientAddShippingAddressInit=function(a){var b=this;a===void 0&&(a={});c("ClientAddShippingaddressInitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout_add_address_button",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_SHIPPING_ADDRESS},a)};b.logClientAddShippingAddressSuccess=function(){var a=this;c("ClientAddShippingaddressSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},a.$11(),{custom_fields:a.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_SHIPPING_ADDRESS})};b.logClientAddShippingAddressFail=function(a){var b=this,e={error_code:String(a==null?void 0:a.error_code),error_message:String((a=a==null?void 0:a.error_description)!=null?a:"")};c("ClientAddShippingaddressFailFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout",view_name:"checkout"},extra_data:e})});this.$13(babelHelpers["extends"]({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_SHIPPING_ADDRESS},e))};b.logClientEditShippingAddressInit=function(){var a=this;c("ClientEditShippingaddressInitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},a.$11(),{custom_fields:a.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_SHIPPING_ADDRESS})};b.logClientEditShippingAddressSuccess=function(){var a=this;c("ClientEditShippingaddressSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},a.$11(),{custom_fields:a.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_SHIPPING_ADDRESS})};b.logClientEditShippingAddressFail=function(a){var b=this,e={error_code:String(a==null?void 0:a.error_code),error_message:String((a=a==null?void 0:a.error_description)!=null?a:"")};c("ClientEditShippingaddressFailFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout",view_name:"checkout"},extra_data:e})});this.$13(babelHelpers["extends"]({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_SHIPPING_ADDRESS},e))};b.logUserClickAddCreditCardAtomic=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_CARD},a)};b.logClientAddCreditCardInit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_CARD},a)};b.logClientAddCreditCardSuccess=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_CARD},a)};b.logClientAddCreditCardFail=function(a,b){var c;b===void 0&&(b={});this.$13({error_code:a==null?void 0:(c=a.error_code)==null?void 0:c.toString(),error_message:a==null?void 0:(c=a.error_description)==null?void 0:c.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_CARD},b)};b.logClientUpdateCreditCardInit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_CARD},a)};b.logClientUpdateCreditCardSuccess=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_CARD},a)};b.logClientUpdateCreditCardFail=function(a,b){var c;b===void 0&&(b={});this.$13({error_code:a==null?void 0:(c=a.error_code)==null?void 0:c.toString(),error_message:a==null?void 0:(c=a.error_description)==null?void 0:c.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_CARD},b)};b.logUserClickAddCouponCodeAtomic=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PROMO_CODE},a)};b.logUserClickRemoveCouponCodeAtomic=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.REMOVE_PROMO_CODE},a)};b.logClientEditCouponInit=function(a,b){b===void 0&&(b={});switch(a){case d("CommerceCheckoutLoggingUtils").EditCouponState.ADD_COUPON:this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PROMO_CODE},b);break;case d("CommerceCheckoutLoggingUtils").EditCouponState.REMOVE_COUPON:this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.REMOVE_PROMO_CODE},b);break;default:break}};b.logClientEditCouponSuccess=function(a,b){b===void 0&&(b={});switch(a){case d("CommerceCheckoutLoggingUtils").EditCouponState.ADD_COUPON:this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PROMO_CODE},b);break;case d("CommerceCheckoutLoggingUtils").EditCouponState.REMOVE_COUPON:this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.REMOVE_PROMO_CODE},b);break;default:break}};b.logClientEditCouponFail=function(a,b,c){c===void 0&&(c={});switch(a){case d("CommerceCheckoutLoggingUtils").EditCouponState.ADD_COUPON:this.$13({error_code:b==null?void 0:(a=b.error_code)==null?void 0:a.toString(),error_message:b==null?void 0:(a=b.error_description)==null?void 0:a.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PROMO_CODE},c);break;case d("CommerceCheckoutLoggingUtils").EditCouponState.REMOVE_COUPON:this.$13({error_code:b==null?void 0:(a=b.error_code)==null?void 0:a.toString(),error_message:b==null?void 0:(a=b.error_description)==null?void 0:a.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.REMOVE_PROMO_CODE},c);break;default:break}};b.logUserClickChangeShippingMethodAtomic=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.SELECT_SHIPPING_METHOD},a)};b.logClientChangeShippingMethodInit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.SELECT_SHIPPING_METHOD},a)};b.logClientChangeShippingMethodSuccess=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.SELECT_SHIPPING_METHOD},a)};b.logClientChangeShippingMethodFail=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.SELECT_SHIPPING_METHOD},a)};b.$12=function(){return{checkout_entry_point:this.$9,checkout_flow:this.$3,checkout_session_ent_id:this.$4,external_session_id:this.$5,invoice_id:this.$6,product_ids:this.$7,seller_ids:this.$8}};b.$11=function(){return{actual_event_time:Date.now().toString(),platform:"comet",product_type:this.$1,session_id:this.$2}};b.$15=function(){return{checkout_session_ent_id:this.$4,event_type:"client",external_session_id:this.$5,flow_name:this.$3,is_free:!1,product:this.$1,session_id:this.$2}};b.$14=function(){return babelHelpers["extends"]({comet:!0,entrypoint:this.$9},this.$10)};b.$13=function(a,b){var d=this;b===void 0&&(b={});c("PaymentsFlowsLogFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},d.$15(),a,{paymod_extra_data:JSON.stringify(babelHelpers["extends"]({},d.$14(),b))})})};return a}();g["default"]=a}),98);
-----
PaymentsCometCheckoutComponentUtils",["AllPaymentTypeFields","PaymentsCometCheckoutAPIUtils","getJSEnumSafe"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return(a==null?void 0:a.toLowerCase())==="mor_voices"}function b(a){var b=c("getJSEnumSafe")(c("AllPaymentTypeFields"),a.paymentType);a=d("PaymentsCometCheckoutAPIUtils").getDigitalCommerceOmnibusDirectiveData(a);a=a.isOmnibusUser;return b==="mor_voices"&&a?!1:!0}g.showStickyPaymentButton=a;g.getShouldShowSeeMoreMenu=b}),98);
-----
FBPaymentsModulesAPIUtils",["fbt","AdsCurrencyFormatter","BillingAgreementType","CreditCardFormParam","CurrentUser","FBPaymentsAffirmParamsGenerator","FBPaymentsCreditCardParamsGenerator","FBPaymentsCustomFormHelper","FBPaymentsDummyPaymentMethodParamsGenerator","FBPaymentsGiftcardBalanceParamsGenerator","FBPaymentsNewPaymentOptionTypes","FBPaymentsPaymentMethodTypes","FBPaymentsPaypalParamsGenerator","PageCommerceManualPaymentMethodParamsGenerator","PageCommerceOnlineBankingParamsGenerator","guid","uniqueID"],(function(a,b,c,d,e,f,g){"use strict";var h={stripWhitespace:function(a){return a.replace(/s/g,"")},parseExpiration:function(a){a=a.split("/");var c=a[0];a=a[1];var d={};d[b("CreditCardFormParam").MONTH]=c;d[b("CreditCardFormParam").YEAR]=a;return d},prepareCardMutationData:function(a){var c={};a[b("CreditCardFormParam").CARD_NUMBER]&&(c[b("CreditCardFormParam").CARD_NUMBER]=h.getFormDataCardNumber(a));c[b("CreditCardFormParam").CARD_EXPIRATION+"["+b("CreditCardFormParam").MONTH+"]"]=h.getFormDataExpMonth(a);c[b("CreditCardFormParam").CARD_EXPIRATION+"["+b("CreditCardFormParam").YEAR+"]"]=h.getFormDataExpYear(a);return babelHelpers["extends"]({},a,c)},parseAddressFormConfig:function(a){var c=new Map();a=(a=a==null?void 0:a.country_to_fields)!=null?a:[];a.forEach(function(a){var d=a.country_code;if(d){a=a.form_fields.map(function(a){return b("FBPaymentsCustomFormHelper").parseCustomFieldServerConfig(a)});c.set(d,a)}});return c},prepareInlineCardDirectChargeData:function(a){return{credit_card_number:h.getFormDataCardNumber(a),cc_exp_month:h.getFormDataExpMonth(a),cc_exp_year:h.getFormDataExpYear(a),cc_country_code:a[b("CreditCardFormParam").COUNTRY],cc_zip:a[b("CreditCardFormParam").ZIP],csc:a[b("CreditCardFormParam").CSC],nmor_payment_method:JSON.stringify({type:b("FBPaymentsPaymentMethodTypes").CREDIT_CARD})}},prepareDirectChargeCreditCardData:function(a){var b=h.getFormDataCardNumber(a);return{csc:a.csc,credit_card:{credit_card_number:b,credit_card_last_4:b.substring(b.length,b.length-4),credit_card_first_6:b.substring(0,6),cardholder_name:a.card_holder_name,expiry_year:h.getFormDataExpYear(a),expiry_month:h.getFormDataExpMonth(a),billing_address:{country_code:a.country,street1:a.street,city:a.city,state:a.state,zip:a.zip}}}},getFormDataCardNumber:function(a){return h.stripWhitespace(a[b("CreditCardFormParam").CARD_NUMBER])},getFormDataWithoutAuth:function(a){var b=a.without_auth,c=a.country;a=a.combined_payment_type;a==="nmor_donation_p4c"&&c==="IN"&&(b=!0);return b},getFormDataExpiration:function(a){var c=a[b("CreditCardFormParam").CARD_EXPIRATION];typeof c==="string"&&(c=h.parseExpiration(a[b("CreditCardFormParam").CARD_EXPIRATION]));return c},getFormDataExpMonth:function(a){a=h.getFormDataExpiration(a);return a[b("CreditCardFormParam").MONTH]},getFormDataExpYear:function(a){a=h.getFormDataExpiration(a);return a[b("CreditCardFormParam").YEAR]},genRequestID:function(){return"id:"+b("guid")()+":"+Date.now()},getMultiCredentialRequestParams:function(a,b,c){var d=a==null?void 0:a.paymentMethod,e=a==null?void 0:a.secondaryPaymentMethod;if(!d)return{};var f=h.getPaymentMethodParamsGenerator(e),g={};f&&(g=f.getMultiCredentialRequestParams(d.getID(),d.credentialType,e,b,c));return babelHelpers["extends"]({},g,h.getPaymentMethodRequestParams(d,a==null?void 0:a.bank))},getPaymentMethodParamsGenerator:function(a){switch(a.getType()){case b("FBPaymentsPaymentMethodTypes").CREDIT_CARD:return b("FBPaymentsCreditCardParamsGenerator");case b("FBPaymentsPaymentMethodTypes").PAYPAL_BILLING_AGREEMENT:return b("FBPaymentsPaypalParamsGenerator");case b("FBPaymentsPaymentMethodTypes").MANUAL_TRANSFER:return b("PageCommerceManualPaymentMethodParamsGenerator");case b("FBPaymentsPaymentMethodTypes").NET_BANKING:return b("PageCommerceOnlineBankingParamsGenerator");case b("FBPaymentsPaymentMethodTypes").AFFIRM_MONTHLY_PAYMENT:return b("FBPaymentsAffirmParamsGenerator");case b("FBPaymentsPaymentMethodTypes").GIFTCARD_BALANCE:return b("FBPaymentsGiftcardBalanceParamsGenerator");case b("FBPaymentsPaymentMethodTypes").DUMMY_PAYMENT_METHOD:return b("FBPaymentsDummyPaymentMethodParamsGenerator");default:return null}},getPaymentMethodRequestParams:function(a,c){if(!a)return{};var d=h.getPaymentMethodParamsGenerator(a);switch(a.getType()){case b("FBPaymentsPaymentMethodTypes").AFFIRM_MONTHLY_PAYMENT:case b("FBPaymentsPaymentMethodTypes").CREDIT_CARD:case b("FBPaymentsPaymentMethodTypes").MANUAL_TRANSFER:case b("FBPaymentsPaymentMethodTypes").PAYPAL_BILLING_AGREEMENT:case b("FBPaymentsPaymentMethodTypes").DUMMY_PAYMENT_METHOD:case b("FBPaymentsPaymentMethodTypes").GIFTCARD_BALANCE:return d.getRequestParams(a);case b("FBPaymentsPaymentMethodTypes").NET_BANKING:return b("PageCommerceOnlineBankingParamsGenerator").getRequestParams(a,c);default:return{}}},getPaymentMethodRequestParamsGraphQL:function(a,c){if(!a)return{};switch(a.getType()){case b("FBPaymentsPaymentMethodTypes").CREDIT_CARD:return b("FBPaymentsCreditCardParamsGenerator").getRequestParamsGraphQL(a);case b("FBPaymentsPaymentMethodTypes").PAYPAL_BILLING_AGREEMENT:return b("FBPaymentsPaypalParamsGenerator").getRequestParamsGraphQL(a);case b("FBPaymentsPaymentMethodTypes").MANUAL_TRANSFER:return b("PageCommerceManualPaymentMethodParamsGenerator").getRequestParamsGraphQL(a);case b("FBPaymentsPaymentMethodTypes").NET_BANKING:return b("PageCommerceOnlineBankingParamsGenerator").getRequestParamsGraphQL(a);default:return{}}},prepareAddCardData:function(a){var b=h.getFormDataCardNumber(a);return{payment_account_id:a.account_id,expiry_year:"20"+h.getFormDataExpYear(a),expiry_month:h.getFormDataExpMonth(a),payment_type:a.combined_payment_type,billing_address:{country_code:a.country,street1:a.street,city:a.city,state:a.state,zip:a.zip},credit_card_number:{sensitive_string_value:b},credit_card_first_6:{sensitive_string_value:b.substring(0,6)},credit_card_last_4:{sensitive_string_value:b.substring(b.length,b.length-4)},csc:{sensitive_string_value:a.csc},cardholder_name:a.card_holder_name,logging_id:a.logging_id,session_id:a.session_id,receiver_id:a.receiver_id,without_auth:h.getFormDataWithoutAuth(a)}},prepareAddCardDataGraphQL:function(a){a=h.prepareAddCardData(a);return a},prepareAddPaymentsPINGraphQL:function(a){return{actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),payment_type:a.payment_type,payments_protected:!0,fbpay_pin:{sensitive_string_value:a.pin||""},logging_id:a.logging_id}},prepareVerifyPaymentsPINGraphQL:function(a){return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,fbpay_pin:{sensitive_string_value:a.pin||""},logging_id:a.logging_id}},prepareVerifyConsumerAuthGraphQL:function(a){if(a.csc!=null)return{actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),csc:a.csc,device_id:"device_id",cred_id:a.cred_id,app_id:"app_id",auth_method:"CVV",payment_type:a.payment_type,is_pay_nonce_needed:!1};else return{actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),cred_id:a.cred_id,pp_access_token:{sensitive_string_value:a.pp_access_token},device_id:"device_id",app_id:"app_id",auth_method:"PAYPAL",payment_type:a.payment_type,is_pay_nonce_needed:!1}},prepareVerifyPasswordGraphQL:function(a){return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,fbpay_password_bypass_token_proxy:{sensitive_string_value:a.password||""},logging_id:a.logging_id}},prepareUpdatePaymentsPINGraphQL:function(a){if(a.password!==null&&a.password!==void 0)return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,fbpay_new_pin:{sensitive_string_value:a.new_pin||""},fbpay_password_bypass_token_proxy:{sensitive_string_value:a.password||""},logging_id:a.logging_id};else if(a.cred_id!=null&&a.csc!=null)return{actor_id:b("CurrentUser").getID(),cred_id:a.cred_id,csc:a.csc,payment_type:a.payment_type,fbpay_new_pin:{sensitive_string_value:a.new_pin||""},logging_id:a.logging_id};else if(a.old_pin!=null)return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,fbpay_new_pin:{sensitive_string_value:a.new_pin||""},fbpay_pin:{sensitive_string_value:a.old_pin||""},logging_id:a.logging_id};else return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,fbpay_new_pin:{sensitive_string_value:a.new_pin||""},no_auth_method_pin_reset:!0,logging_id:a.logging_id}},prepareDeletePaymentsPINGraphQL:function(a){return a.password!==null?{actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),payment_type:a.payment_type,password:{sensitive_string_value:a.password||""}}:{actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),payment_type:a.payment_type,pin:{sensitive_string_value:a.pin}}},prepareSwitchPaymentsPINGraphQL:function(a){return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,new_pin_status:a.new_pin_status,fbpay_pin:{sensitive_string_value:a.pin}}},prepareUpdateTaxIDDataRelayGraphQL:function(a){return{actor_id:b("CurrentUser").getID(),tax_id:a.taxID,tax_id_type:"MEXICO_RFC",payment_type:a.paymentType,logging_id:a.loggingID}},prepareUpdateCardGraphQL:function(a){var c;c={client_mutation_id:b("uniqueID")(),credit_card_id:(c=a.credit_card_id)!=null?c:"",payment_type:a.payment_type,disable_type:a.disable_type};return c},prepareAddCardDataRelayGraphQL:function(a){a=h.prepareAddCardData(a);return a},prepareUpdateCardData:function(a){var b={};(a.country||a.street||a.city||a.state||a.zip)&&(b={billing_address:{country_code:a.country||"US",street1:a.street,city:a.city,state:a.state,zip:a.zip}});var c=a.card_holder_name?{cardholder_name:a.card_holder_name}:null;return babelHelpers["extends"]({credit_card_id:a.cc_fbid,expiry_year:"20"+h.getFormDataExpYear(a),expiry_month:h.getFormDataExpMonth(a),payment_type:a.combined_payment_type,csc:{sensitive_string_value:a.csc}},b,c,{logging_id:a.logging_id,session_id:a.session_id})},prepareUpdateCardDataGraphQL:function(a){a=h.prepareUpdateCardData(a);return a},prepareUpdateCardDataRelayGraphQL:function(a){a=h.prepareUpdateCardData(a);return a},prepareCompleteCheckoutRelayGraphQLData:function(a){var c=b("AdsCurrencyFormatter").parsePECurrency(a.currency,a.amount);return{amount:c,credential_id:a.credential_id,credit_card:a.credit_card,csc:a.csc,currency:a.currency,extra_data:a.extra_data,order_id:a.order_id,payment_type:a.payment_type,platform_trust_token:a.authPTT,receiver_id:a.receiver_id,request_id:h.genRequestID(),security_pin:a.security_pin,session_id:a.session_id,cardinal_3ds_processor_data:a.cardinal_3ds_processor_data,without_auth:a.without_auth}},prepareCompleteCheckoutGraphQLData:function(a){return{actor_id:b("CurrentUser").getID(),amount:a.amount,client_mutation_id:b("uniqueID")(),contact_name:a.contact_name,contact_number_id:a.contact_number_id,coupon_code:a.coupon_code,credential_id:a.credential_id,credentials:a.credentials,csc:a.csc,currency:a.currency,do_async_postprocess:a.do_async_postprocess,email_address_id:a.email_address_id,extra_data:a.extra_data,mailing_address_id:a.mailing_address_id,nmor_payment_method:a.nmor_payment_method,order_id:a.order_id,payment_type:a.payment_type,paypal_fraudnet_id:a.paypal_fraudnet_id,platform_trust_token:a.authPTT,receiver_id:a.receiver_id,request_id:h.genRequestID(),security_pin:a.security_pin,session_id:a.session_id,shipping_option_id:a.shipping_option_id,subscription_period:a.subscription_period,subscription_type:Object.keys(b("BillingAgreementType")).find(function(c){return b("BillingAgreementType")[c]===a.subscription_type}),cardinal_3ds_processor_data:a.cardinal_3ds_processor_data,trial_type:a.trial_type,is_citizen:a.is_citizen,razorpay_callback_url:a.razorpay_callback_url,tax_info_collection_map:a.tax_info_collection_map}},prepareAsyncCheckoutData:function(a){a=babelHelpers["extends"]({actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),credentials:h.buildAsyncCheckoutCredentials(a),logging_id:a.session_id,payment_session_id:a.payment_session_id,payment_type:a.payment_type,paypal_fraudnet_id:a.paypal_fraudnet_id,total_payment_amount:{currency:a.currency,amount:a.amount},coupon_code:a.coupon_code,contact_name:a.contact_name,contact_number_id:a.contact_number_id,csc:a.csc,email_address_id:a.email_address_id,email_opt_in:a.email_opt_in,mailing_address_id:a.mailing_address_id,shipping_option_id:a.shipping_option_id,extra_data_json:a.extra_data,subscription_period:a.subscription_period,subscription_type:a.subscription_type,trial_type:a.trial_type,is_citizen:a.is_citizen,razorpay_callback_url:a.razorpay_callback_url,cardinal_3ds_processor_data:a.cardinal_3ds_processor_data,tax_info_collection_map:a.tax_info_collection_map,tax_info_id:a.tax_info_id,privacy_mutation_token:a.privacy_mutation_token},h.buildAsyncCheckoutPaymentOrderIdProducts(a),{is_dynamic_auth_available:a.is_dynamic_auth_available,platform_trust_token:a.authPTT,security_pin:a.security_pin});return a},buildAsyncCheckoutCredentials:function(a){if(a.altPayData)return[{credential_type:b("FBPaymentsNewPaymentOptionTypes").NEW_ALT_PAY_FROM_GRAPHQL,payment_amount:{currency:a.currency,amount:a.amount},altpay_data:a.altPayData}];if(a.credentials&&a.credentials.length>1){var c=[],d=a.currency;a.credentials.forEach(function(a){c.push({credential_id:a.credential_id,credential_type:a.credential_type,payment_amount:{currency:d,amount:a.amount},wallet_balance:a.wallet_balance?{currency:d,amount:a.wallet_balance}:void 0})});return c}return[{credential_type:a.credential_type,payment_amount:{currency:a.currency,amount:a.amount},credential_id:a.credential_id}]},buildAsyncCheckoutPaymentOrderIdProducts:function(a){switch(a.payment_type){case"mor_donations":case"nmor_donation_p4c":case"nmor_donation_p4p":case"nmor_ppgf_donation":case"mor_donations_matching_confirmation":case"mor_donations_matching_pledge":case"nmor_blackbaud_rwr_donation":return{payment_order_id:null,products:[{product_id:a.order_id,quantity:1,per_unit_price:{currency:a.currency,amount:a.amount}}]};case"nmor_checkout_experiences":case"nmor_c2c_checkout_experiences":return{payment_order_id:a.order_id,products:a.products?a.products.map(function(a){var b;return{product_id:a.product_id,quantity:a.quantity,per_unit_price:{currency:(b=a.price)==null?void 0:b.currency,amount:(b=a.price)==null?void 0:b.amount},customization_ids:a.customization_ids}}):null};case"mor_instant_games":case"mor_open_graph_product":return{payment_order_id:a.order_id,products:null};case"mor_game_tipping_token":return{payment_order_id:a.order_id,products:[{product_id:a.order_id,quantity:1,per_unit_price:{currency:a.currency,amount:a.amount}}]};case"mor_group_subscription":case"mor_fan_funding":case"mor_oculus_cv1":return{payment_order_id:null,products:a.products?a.products.map(function(a){return{product_id:a.product_id,quantity:a.quantity}}):null};default:return{payment_order_id:null,products:null}}},getUncaughtErrorMessage:function(){return g._("u5904u7406u8bf7u6c42u65f6u51fau73b0u6682u65f6u6027u9519u8befuff0cu8bf7u7a0du540eu91cdu8bd5u3002")},getGraphQLErrorMessage:function(a){return g._("{error_message}",[g._param("error_message",a)])},getAuthFailureErrorDetails:function(a){try{a=JSON.parse(a.debug_info);a=a.num_remaining_attempts;return{remainingAttempts:a}}catch(a){return{remainingAttempts:null}}},convertAllPaymentTypeFields:function(a){return a},convertAllPaymentTypeFieldsForNewAPI:function(a){return a}};e.exports=h}),130);
-----
PaymentsCometCheckoutDialog.react",["fbt","AllPaymentTypeFields","CometAuthenticityPaymentsWizard.react","CometCardedDialogLoadingStateLegacy.react","FBPayCometGatingUtils","FBPayHubHooks","FBPayLoggingContext","FBPayLoggingUtils","FBPaySurveyUtils","FBPayUPLLogger","FBPaymentsLoggerConstants","FDSCardedDialogLegacy.react","PayflowsInitFalcoEvent","PaymentsCometCheckout.react","PaymentsCometCheckoutAPIUtils","PaymentsCometCheckoutComponentUtils","PaymentsCometCheckoutContext","PaymentsCometCheckoutReducer","gkx","react","requireDeferred","useCometDeferredDialog","useConnectPayPal","usePaymentsCometCheckoutCreatePayment","usePaymentsCometCheckoutInformationMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useContext,l=b.useEffect,m=b.useMemo,n=b.useReducer,o=b.useRef,p=b.useState,q=c("requireDeferred")("PaymentsCometCheckoutExitCheckoutDialog.react").__setRef("PaymentsCometCheckoutDialog.react"),r="client",s={onClose:function(){},title:t(),withCloseButton:!0};function t(){var a=d("FBPayCometGatingUtils").shouldShowFBPayExperienceOnComet();return a&&c("gkx")("20956")===!1?h._("Facebook Pay"):h._("u7ed3u8d26")}var u=d("FBPayLoggingUtils").sessionIDGenerator(),v={mobileRootWrapper:{"@media (max-width: 564px)_bottom":"x1ckq5","@media (max-width: 564px)_height":"x40dr4r","@media (max-width: 564px)_position":"xfqz7ig",$$css:!0}};function a(a){var b=a.checkoutProps,e=a.dialogProps,f=a.onClose;u=(a=u)!=null?a:d("FBPayLoggingUtils").sessionIDGenerator();var g=c("usePaymentsCometCheckoutInformationMutation")(),i=c("useCometDeferredDialog")(q,function(){return j.jsx(c("CometCardedDialogLoadingStateLegacy.react"),{})});a=n(d("PaymentsCometCheckoutReducer").reducer,d("PaymentsCometCheckoutReducer").getInitialState({checkoutProps:b,clientSessionID:u,onClose:f}));var w=a[0],x=a[1];a=k(c("PaymentsCometCheckoutContext"));var y=a.logger,z=w.requiresCheckoutInfoRefresh,A=function(){var a;return(a=c("AllPaymentTypeFields")[b==null?void 0:b.paymentType.toString()])!=null?a:"unknown"},B=A();a=m(function(){var a=new(c("FBPayUPLLogger"))(B,"comet",u);return{logger:a}},[B]);var C=a.logger;d("FBPayHubHooks").useConstructor(function(){var a;y.setGlobalFields({flow_name:d("FBPaymentsLoggerConstants").LoggerFlowType.CHECKOUT,product:A(),session_id:w.clientSessionID});var b=babelHelpers["extends"]({comet:!0},(a=w.checkoutProps)==null?void 0:a.extraData);y.setGlobalExtraData(b);y.log({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_MODULE});c("PayflowsInitFalcoEvent").log(function(){return{e_counter_channel:0,event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,event_type:r,flow_name:d("FBPaymentsLoggerConstants").LoggerFlowType.CHECKOUT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.START,is_free:!1,paymod_extra_data:JSON.stringify(b),product:A(),session_id:w.clientSessionID}})});var D=o(!0),E=o(!0);l(function(){D.current===!0&&(D.current=!1,C.logClientLoadCheckoutInit({target_name:"checkout",view_name:"checkout"}))},[C]);l(function(){g(d("PaymentsCometCheckoutAPIUtils").getLoadCheckoutInfoInput(w),function(a){var b;if(((b=a.checkout_information_mutation)==null?void 0:b.payments_error)!=null){E.current&&(C.logClientLoadCheckoutFail({target_name:"checkout",view_name:"checkout"}),E.current=!1);b=(b=a.checkout_information_mutation)==null?void 0:b.payments_error;x({paymentsUserFacingError:b,type:"CHECKOUT_INIT_FAILURE"})}else x({checkoutInformation:a,type:"LOAD_CHECKOUT_INFO_SUCCESS"}),E.current&&(C.logClientLoadCheckoutSuccess({target_name:"checkout",view_name:"checkout"}),E.current=!1)},function(){E.current&&(C.logClientLoadCheckoutFail({target_name:"checkout",view_name:"checkout"}),E.current=!1)},function(){});return function(){u=null}},[g]);var F=p(!1),G=F[0],H=F[1];l(function(){z===!0&&G===!1&&(H(!0),g(d("PaymentsCometCheckoutAPIUtils").getLoadCheckoutInfoInput(w),function(a){x({checkoutInformation:a,type:"LOAD_CHECKOUT_INFO_SUCCESS"}),x({requiresCheckoutInfoRefresh:!1,type:"SET_REQUIRES_CHECKOUT_REFRESH"}),H(!1),y.log({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_CHECKOUT_API})},function(){x({requiresCheckoutInfoRefresh:!1,type:"SET_REQUIRES_CHECKOUT_REFRESH"}),H(!1)}))},[g,x,w,z,y,G]);var I=d("FBPaySurveyUtils").userHasResearchSurvey(w==null?void 0:w.hasExitSurvey,w==null?void 0:w.hasCompletionSurvey);F=Boolean(d("FBPaySurveyUtils").userHasResearchSurvey(w==null?void 0:w.hasExitSurvey,w==null?void 0:w.hasCompletionSurvey)&&d("FBPaySurveyUtils").isUserInSurveyControlGroup());var J=function(){if(w.step==="CONFIRMATION"){y.log({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_CONFIRMATION_LEAVE});f();return}y.log({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.DISPLAY,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_EXIT_DIALOG});i({onClose:function(){},onCloseLeavingDialog:function(){C.logUserClickCheckoutExit({target_name:"fbpay_checkout"}),f()},paymentType:b.paymentType,showSurveyOnClose:I})},K=p(!1),L=K[0],M=K[1];K=function(){var a=c("usePaymentsCometCheckoutCreatePayment")(),b=c("useConnectPayPal")(),d=b[0];return j.jsx(c("CometAuthenticityPaymentsWizard.react"),{onClose:f,onFinish:function(){M(!0),a(d)},order_id:"0"})};L=d("PaymentsCometCheckoutAPIUtils").isEligibleForIDVFlow(w)&&w.step==="CONFIRM_IDENTITY"&&!L;var N=m(function(){return{dispatch:x,logger:y,state:w}},[y,w]);if(L)return j.jsx(c("PaymentsCometCheckoutContext").Provider,{value:N,children:j.jsx(K,{})});if(w.step==="MEMBERSHIP_DETAIL"&&((K=w.loyaltyAccountLinkingEntryPointSpec)==null?void 0:K.title)!=null){s.title=(K=(K=w.loyaltyAccountLinkingEntryPointSpec)==null?void 0:K.title)!=null?K:w.loyaltyProgramName}else s.title=t();w.step==="CONFIRMATION"&&((K=w.checkoutProps)==null?void 0:K.extraData)!=null&&((K=w.checkoutProps)==null?void 0:(K=K.extraData)==null?void 0:K.negotiable_price_offer_data)!=null&&(s.title=h._("u5df2u51fau4ef7"));(!d("FBPayCometGatingUtils").shouldShowFBPayExperienceOnComet()&&d("PaymentsCometCheckoutAPIUtils").isDonation(A())||F)&&(s.title=h._("u7ed3u8d26"));c("gkx")("20956")&&d("PaymentsCometCheckoutAPIUtils").isDonation(A())&&(s.title=h._("u6350u6b3e"));K=d("PaymentsCometCheckoutComponentUtils").showStickyPaymentButton(A())?v.mobileRootWrapper:null;return j.jsx("div",{style:{display:L?"none":null},children:j.jsx(c("FDSCardedDialogLegacy.react"),babelHelpers["extends"]({},s,e,{anchorXStyle:K,disableClosingWithMask:!0,onClose:J,testid:void 0,children:j.jsx(c("PaymentsCometCheckoutContext").Provider,{value:N,children:j.jsx(c("FBPayLoggingContext").Provider,{value:a,children:j.jsx(c("PaymentsCometCheckout.react"),{})})})}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
cometMarketplaceCheckoutUtils.hybrid",["AllPaymentTypeFields","getGraphQLEnumSafe","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d,e,f,g,h,i,j){var k;f===void 0&&(f=1);g===void 0&&(g=null);e=c("getGraphQLEnumSafe")(c("AllPaymentTypeFields"),e);if(e==null)throw c("unrecoverableViolation")("Invalid / Null PaymentType provided","marketplace-comet");k=h!=null?(k={},k[b]={is_personalization_required:h==null?void 0:h.isPersonalizationRequired,personalization_instructions_from_buyer:h==null?void 0:h.personalizationRequestFromBuyer,personalization_options_from_seller:h==null?void 0:h.personalizationInstructionsFromSeller},k):null;return{commerceMerchantSettingsID:j,extraData:{personalization_info_data:k,products:[{pageId:g,price:d,product_id:b,quantity:f}]},isPurchaseProtected:i,paymentType:e,personalization:h,products:[{per_unit_price:d,product_id:b,quantity:f}],receiverID:a}}function b(a,b,d,e){e===void 0&&(e=null);d=c("getGraphQLEnumSafe")(c("AllPaymentTypeFields"),d);if(d==null)throw c("unrecoverableViolation")("Invalid / Null PaymentType provided","marketplace-comet");return{extraData:{is_marketplace_ecomm_cart_checkout:!0,products:b.map(function(a){return{pageId:e,price:a.price,product_id:a.productId,quantity:a.quantity}})},paymentType:d,products:b.map(function(a){return{per_unit_price:a.price,product_id:a.productId,quantity:a.quantity}}),receiverID:a}}g.generateCheckoutProps=a;g.generateMultiItemCheckoutProps=b}),98);
-----
FBPayECPConstantsUtils",["ix","$InternalEnum","IconSource","fbicon","recoverableViolation"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("$InternalEnum").Mirrored(["NONE","PROCESSING","COMPLETE","RESET","LOADING"]),j={APM:"APM",CHECKOUT_BODY_TERMS:"CHECKOUT_BODY_TERMS",CONTACT_INFORMATION:"CONTACT_INFORMATION",GIFT_AID:"GIFT_AID",IDV_FLOW:"IDV_FLOW",INCENTIVES:"INCENTIVES",ITEM_LIST:"ITEM_LIST",LOGIN_WITH_APP:"LOGIN_WITH_APP",META_BRANDING_FOOTER:"META_BRANDING_FOOTER",NUX_PAYMENT_RECEIVER:"NUX_PAYMENT_RECEIVER",ONE_TIME_CHECKOUT_OPTION:"ONE_TIME_CHECKOUT_OPTION",ORDER_SUMMARY:"ORDER_SUMMARY",PAY_BUTTON:"PAY_BUTTON",PAYER_DONOR_POSTAL_ADDRESS:"PAYER_DONOR_POSTAL_ADDRESS",PAYER_GIFT_AID_ADDRESS:"PAYER_GIFT_AID_ADDRESS",PAYER_NAME_ON_CARD:"PAYER_NAME_ON_CARD",PAYER_TAX_ADDRESS:"PAYER_TAX_ADDRESS",PAYMENT_METHOD:"PAYMENT_METHOD",PAYMENT_RECEIVER:"PAYMENT_RECEIVER",PRICE_TABLE:"PRICE_TABLE",PROMO_CODE:"PROMO_CODE",PSD_AGREEMENT:"PSD_AGREEMENT",PURCHASE_PROTECTION:"PURCHASE_PROTECTION",SHIPPING_ADDRESS:"SHIPPING_ADDRESS",SHIPPING_OPTIONS:"SHIPPING_OPTIONS",SUBSCRIPTION_INFO:"SUBSCRIPTION_INFO",TAX_ID:"TAX_ID",TERMS:"TERMS",USE_SHIPPING_AS_BILLING_CHECKBOX:"USE_SHIPPING_AS_BILLING_CHECKBOX"},k=["ANON_CHECKOUT_BACK_BUTTON","APM","BANNER","CHECKOUT_BODY_TERMS","CONTACT_INFORMATION","EMAIL_OPTIN","FULFILLMENT_OPTIONS","GIFT_AID","IDV_FLOW","INCENTIVES","ITEM_LIST","META_BRANDING_FOOTER","NUX_PAYMENT_RECEIVER","ONE_TIME_CHECKOUT_OPTION","ORDER_SUMMARY","PAYMENT_METHOD","PAYMENT_RECEIVER","PAY_BUTTON","PICKUP_CONTACT_INFO","PRICE_TABLE","PROMO_CODE","PSD_AGREEMENT","SHIPPING_ADDRESS","SHIPPING_OPTIONS","SUBSCRIPTION_INFO","TAX_ID","TERMS","PURCHASE_PROTECTION"],l={CONFIRMATION:"CONFIRMATION",IDV:"IDV",NUX:"NUX",PARTIAL_PUX:"PARTIAL_PUX",PENDING:"PENDING",PUX:"PUX"},m={NUX:"NUX",PUX:"PUX"},n={COMPLETED:"COMPLETED",NA:"NA",STARTED:"STARTED"};function a(a){switch(a){case"CREDIT_CARD":return"credit_card";case"PAYPAL_BA":return"paypal_ba";case"NETWORK_TOKEN":return"network_token";case"NEW_CREDIT_CARD":return"new_credit_card";case"NEW_PAYPAL_BA":return"new_paypal_ba";case"NEW_PAYPAL_CHECKOUT":return"new_paypal_checkout";case"GIFTCARD_BALANCE":return"giftcard_balance";case"NEW_PAYPAL_BNPL_CHECKOUT":return"new_paypal_bnpl_checkout";case"NEW_SHOP_PAY":return"new_shop_pay";case"MOCK_OPAQUE_REDIRECT_LPM":return"mock_opaque_redirect_lpm";case"SOFORT":return"sofort";case"OFFER":return"offer";case"QR_CODE":return"qr_code";default:if(a!=null){c("recoverableViolation")("unsupported credential type: "+a,"fbpay");return"dummy"}else return"dummy"}}function e(a){var b;switch(a){case"FAILURE":b="failure";break;case"PENDING":b="pending";break;case"SUCCESS":b="success";break;default:a!=null&&c("recoverableViolation")("unsupported status: "+a,"fbpay"),b="failure"}return String(b)}function f(a){switch(a){case"SUBTOTAL":return"SUBTOTAL";case"ESTIMATED_TAX":return"ESTIMATED_TAX";case"SHIPPING":return"SHIPPING";case"OFFER":return"OFFER";case"FEE":return"FEE";case"PLUS_TAX_DISCLAIMER":return"PLUS_TAX_DISCLAIMER";case"POST_TAX_DISCOUNT":return"POST_TAX_DISCOUNT";case"PRE_TAX_DISCOUNT":return"PRE_TAX_DISCOUNT";case"SPLIT_PAYMENT_BREAKDOWN":return"SPLIT_PAYMENT_BREAKDOWN";case"TOTAL":return"TOTAL";case"BUYER_PROPOSED_OFFER":return"BUYER_PROPOSED_OFFER";default:return"DEFAULT"}}var o={FORM_SCREEN:"FORM_SCREEN",LIST_SCREEN:"LIST_SCREEN",ROW_COMPONENT:"ROW_COMPONENT"};function p(a){a=a?[j.ORDER_SUMMARY,j.INCENTIVES,j.CONTACT_INFORMATION,j.SHIPPING_ADDRESS,j.SHIPPING_OPTIONS,j.PAYMENT_METHOD,j.GIFT_AID,j.ITEM_LIST,j.PRICE_TABLE,j.PAY_BUTTON,j.TERMS]:[j.PAYMENT_RECEIVER,j.PAYMENT_METHOD,j.SHIPPING_ADDRESS,j.CONTACT_INFORMATION,j.SHIPPING_OPTIONS,j.ITEM_LIST,j.GIFT_AID,j.PRICE_TABLE,j.PAY_BUTTON,j.TERMS];return a}var q={EMAIL_FORM:"EMAIL_FORM",NAME_FORM:"NAME_FORM",PHONE_FORM:"PHONE_FORM",SUX_FORM:"SUX_FORM"},r={LINK:"https://facebook.com/payments_terms"},s={LINK:"https://www.facebook.com/help/474520169818442"},t={LINK:"https://help.instagram.com/769358617347044"},u={LINK:"https://help.instagram.com/2136147216424213"},v={LINK:"https://www.facebook.com/help/565350107604363?helpref=about_content"},w={LINK:"https://help.instagram.com/2469676619783835"},x={LINK:"https://www.facebook.com/policy"},y={LINK:"https://www.facebook.com/payments_terms"},z={LINK:"https://help.instagram.com/2136147216424213"},A={LINK:"https://www.facebook.com/payments_terms/privacy"},B={LINK:"https://www.facebook.com/legal/buy/digital_content/sales_terms"},C={LINK:"https://www.meta.com/help/315696271061805/"},D={LINK:"https://www.facebook.com/privacy/explanation/"},E={CODE:"US",EXT:"+1"},F={EXTRA_SMALL:"extraSmall",MEDIUM:"medium",SMALL:"small"},G="https://facebook.com/payments_terms/privacy",H={CREDENTIALS:"credentials",EMAIL:"email",NAME:"name",PHONE:"phone",SHIPPING_ADDRESS:"shipping_address",TAX_ID:"tax_id"},I={GIFT_AID_TERMS:"GIFT_AID_TERMS",NUX_LEARN_MORE:"NUX_LEARN_MORE",PUX_LEARN_MORE:"PUX_LEARN_MORE",SUBSCRIPTION_LEARN_MORE:"SUBSCRIPTION_LEARN_MORE"};d={editIcon:d("fbicon")._(h("477825"),16),moreIcon:d("fbicon")._(h("555282"),20),selectedIcon:new(c("IconSource"))("FB",h("1585046"),20),unselectedIcon:new(c("IconSource"))("FB",h("1397726"),20)};h={ELIGIBLE_VALUES:"ELIGIBLE_VALUES",EXACT_LENGTH:"EXACT_LENGTH",MAX_LENGTH:"MAX_LENGTH",MIN_LENGTH:"MIN_LENGTH",REGEX:"REGEX"};var J={care_of:"address_form_full_name",city:"address_form_city",first_name:"address_form_first_name",last_name:"address_form_last_name",state:"address_form_state",street1:"address_form_address_one",street2:"address_form_address_two",zip:"address_form_postal_code"},K=["cardNumber","expireDate","securityCode","state","zip"],L="NO_TYPEAHEAD_SUGGESTION_AVAILABLE",M="2648932268733643",N="1147883786053547",O="742725890006429",P="1302814060304063",Q="474021490758763",R="615185509510995",S="424054882412337",T="696777095101523",U="912080620033674",V="766358168544755",W="254868786695132",X="apm_button",Y="apm_button",Z="apm_link",$="pux_apm_link",aa="apm_url",ba="apm_radio_button",ca="apm_webview",da="apm_webview",ea="apm_continue",fa="NEW_PAYPAL_CHECKOUT",ga="ISSUER_SCA_REQUIRED";b=b("$InternalEnum").Mirrored(["BUTTON","LINK"]);var ha=[O,P];function ia(a){switch(a){case"billing":return"BILLING";default:return"ECP"}}g.FBPayECPPayButtonMode=i;g.FBPayComponentTypes=j;g.FBPayComponentTypesList=k;g.ECPExperience=l;g.ECPOnboardingExperience=m;g.ECPIDVFlowType=n;g.castCredentialType=a;g.castOrderPurchaseStatus=e;g.castSummaryItemType=f;g.ContainerSubtypes=o;g.getFBPayComponentList=p;g.ContactInfoFormModes=q;g.FB_PAYMENT_TERMS=r;g.META_PAY_EDUCATION_FB_URL=s;g.META_PAY_EDUCATION_IG_URL=t;g.IG_PAYMENT_TERMS=u;g.FB_MANAGE_YOUR_PAYMENT_INFO=v;g.IG_MANAGE_YOUR_PAYMENT_INFO=w;g.DATA_POLICIES=x;g.PSD_AGREEMENT_COMMUNITY_PAYMENTS_TERMS=y;g.IG_PSD_AGREEMENT_COMMUNITY_PAYMENTS_TERMS=z;g.PSD_AGREEMENT_PAYMENTS_PRIVACY_POLICY=A;g.ONSITE_IAP_LEARN_MORE=B;g.META_UNIFIED_WALLET_CONNECT_PAYMENT_INFO_LEARN_MORE=C;g.UNIFIED_WALLET_PRIVACY_POLICY=D;g.US_PHONE_COUNTRY_CODE=E;g.ProductImageSize=F;g.PRIVACY_LINK=G;g.FBPayAccountMutationData=H;g.FBPayBottomSheetComponentTypes=I;g.selectionScreenIcons=d;g.PaymentsFormValidationRuleType=h;g.TEST_IDS_BASED_ON_KEY=J;g.FBPayECPAutoAdvanceFields=K;g.NO_TYPEAHEAD_SUGGESTION_AVAILABLE=L;g.P4C_PRODUCT_ID=M;g.IG_P4C_PRODUCT_ID=N;g.META_PAY_PRODUCT_ID=O;g.META_CHECKOUT_PRODUCT_ID=P;g.FB_STARS_PRODUCT_ID=Q;g.FB_CANVAS_GAMES_PRODUCT_ID=R;g.FB_INSTANT_GAMES_PRODUCT_ID=S;g.PPGF_PRODUCT_ID=T;g.IG_PPGF_PRODUCT_ID=U;g.AGE_VERIFICATION_CCV_PRODUCT_ID=V;g.C2C_PRODUCT_ID=W;g.APM_BUTTON_VIEW_NAME=X;g.APM_BUTTON_TARGET_NAME=Y;g.APM_LINK_TARGET_NAME=Z;g.APM_PUX_LINK_TARGET_NAME=$;g.APM_REDIRECT_VIEW_NAME=aa;g.APM_RADIO_BUTTON_TARGET_NAME=ba;g.APM_CREDENTIAL_VIEW_NAME=ca;g.APM_CREDENTIAL_TARGET_NAME=da;g.APM_CONTINUE_VIEW_NAME=ea;g.PAYPAL_OTC_CREDENTIAL_TYPE=fa;g.ISSUER_SCA_REQUIRED=ga;g.PaypalBAComponentVariant=b;g.OFFSITE_PRODUCT_IDS=ha;g.castAllPaymentTypeFields=ia}),98);
-----
PageSetUpManagedOnsiteShopInputDataUtils",["invariant","AllPaymentTypeFields","CommerceManagerOnboardingTaxIDUtils","CurrencyConstants","MerchantCategoryCode","PaymentCompanyType","ReceiverPaymentProviderType","TaxIdType","USAStateAbbreviations","keyMirror","nullthrows"],(function(a,b,c,d,e,f,g,h){"use strict";var i=(e=c("keyMirror"))(c("AllPaymentTypeFields")),j=e(c("PaymentCompanyType")),k=e(c("MerchantCategoryCode"));e(c("ReceiverPaymentProviderType"));var l=e(c("TaxIdType"));function m(a){var b={address:babelHelpers["extends"]({},a.businessInfo.address),alert_email:a.businessInfo.alertEmail,page_id:a.pageID};a.businessInfo.businessID!=null&&(b.business_id=a.businessInfo.businessID);b.contact_email=a.contactEmail;b.return_policy_time=a.returnPolicy;b.bank_country=a.businessInfo.address.country;b.country_code=a.businessInfo.address.country;b.currency_code=a.businessInfo.currency;b.payment_type=i.NMOR_CHECKOUT_EXPERIENCES;b.provider_type="BANK_ACCOUNT";b.bank_info=c("nullthrows")(n(a.payoutBankInfo));var d=c("nullthrows")(p(a.payoutTaxInfo));a=o({fraudnetSessionID:a.fraudnetSessionID,merchantCategoryCode:a.merchantCategoryCode});return babelHelpers["extends"]({},b,a,d)}function a(a){return babelHelpers["extends"]({},m(a))}function n(a){return a==null?null:{bank_account_number:a.bankAccountNumber,bank_account_type:a.bankAccountType,bank_code:a.bankCode,bank_code_type:a.bankCodeType,bank_country:a.bankCountry,beneficiary_name:a.beneficiaryName,iban_bank_code:a.ibanBankCode}}function o(a){var b={};a.fraudnetSessionID!=null&&(b.paypal_fraudnet_id=a.fraudnetSessionID);a.merchantCategoryCode!=null&&a.merchantCategoryCode!==k.NOT_SPECIFIED&&(b.merchant_category_code=a.merchantCategoryCode);return babelHelpers["extends"]({},b)}function b(a){var b={bank_info:n(a.payoutBankInfo),cms_id:a.cmsID},c=p(a.payoutTaxInfo)||{};a=o({fraudnetSessionID:a.fraudnetSessionID,merchantCategoryCode:a.merchantCategoryCode});return babelHelpers["extends"]({},b,a,c)}function d(a){a={page_id:a.pageID,shipping_options:a.shippingOptions.map(function(a){var b;return{cost:{amount_in_hundredths:(b=c("nullthrows"))(a.cost.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},cost_per_additional_item:{amount_in_hundredths:b(a.costPerAdditionalItem.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},estimated_days_until_arrival:{max_days_to_arrival:b(a.estimatedDaysToArrival.max),min_days_to_arrival:b(a.estimatedDaysToArrival.min)},shipping_tier:a.shippingTier}}),state_tax_registration_numbers:a.USAStateRegNums.map(function(a){return{state_code:c("USAStateAbbreviations")[a.USAState],tax_registration_number:a.regNum}})};return babelHelpers["extends"]({},a)}function p(a){if(a==null)return null;var b={company_type:c("nullthrows")(a.businessType)};switch(b.company_type){case j.INDIVIDUAL_BUSINESS:case j.SOLE_PROPRIETOR:c("CommerceManagerOnboardingTaxIDUtils")(a.ssn)?b.tax_id_type=l.ITIN:b.tax_id_type=l.SSN;b.ssn=a.ssn;break;case j.CORPORATION:case j.PARTNERSHIP:case j.NON_PROFIT:case j.PRIVATE_CORPORATION:case j.PUBLIC_CORPORATION:b.business_name=a.businessName;b.tax_id_type=l.EIN;b.tax_id=a.ein;break;default:h(0,2719)}b.legal_name={first_name:a.legalName.firstName,last_name:a.legalName.lastName,middle_name:a.legalName.middleName};a.birthdate!=null&&(b.birthdate=a.birthdate);return babelHelpers["extends"]({},b)}g.prepareFixedLengthMigrationData=a;g.getPayoutBankInfoFromSellerPayoutBankInfo=n;g.prepareManagedMerchantData=o;g.preparePayoutEditData=b;g.prepareShippingAndStateTaxData=d;g.prepareTaxData=p}),98);
-----
CommerceManagerOnboardingMutationInputUtils",["AllPaymentTypeFields","CommerceManagerOnboardingTaxIDUtils","CurrencyConstants","PageSetUpManagedOnsiteShopInputDataUtils","USAStateAbbreviations","keyMirror","nullthrows"],(function(a,b,c,d,e,f,g){"use strict";var h=c("keyMirror")(c("AllPaymentTypeFields"));function a(a){return{app_id:a.appID,business_id:a.businessID,business_name:a.businessName,catalog_id:a.catalogID,channel:a.channel,cms_id:a.cmsID,commerce_account_name:a.commerceAccountName,country_code:a.countryCode,currency_code:a.currencyCode,ig_user_id:a.igUserID,mode:a.mode,page_id:a.pageID,request_surface:"LEGACY_COMMERCE_MANAGER_ONSITE",temporary_ig_login_token:a.tempIGLoginToken,utm_params:a.utmParams}}function b(a){return{channel:a.channel,cms_id:a.cmsID,ig_user_id:a.igUserID,mode:a.mode,page_id:a.pageID,temporary_ig_login_token:a.tempIGLoginToken}}function e(a){var b;b=(b=a.shippingOptions)!=null?b:[];return{catalog_id:a.catalogID,channel:a.channel,cms_id:a.cmsID,contact_email:a.contactEmail,country_code_for_multinational_DANGEROUS:a.country,ig_user_id:a.igUserID,return_policy:a.returnPolicy,shipping_options:b.map(function(a){var b;return{cost:{amount_in_hundredths:(b=c("nullthrows"))(a.cost.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},cost_per_additional_item:{amount_in_hundredths:b(a.costPerAdditionalItem.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},estimated_days_until_arrival:{max_days_to_arrival:b(a.estimatedDaysToArrival.max),min_days_to_arrival:b(a.estimatedDaysToArrival.min)},shipping_tier:a.shippingTier}}),utm_params:a.utmParams}}function f(a){var b;b=(b=a.shippingOptions)!=null?b:[];return{cms_id:a.cmsID,contact_email:c("nullthrows")(a.contactEmail),country_code_for_multinational_DANGEROUS:a.country,return_policy:c("nullthrows")(a.returnPolicy),shipping_options:b.map(function(a){var b;return{cost:{amount_in_hundredths:(b=c("nullthrows"))(a.cost.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},cost_per_additional_item:{amount_in_hundredths:b(a.costPerAdditionalItem.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},estimated_days_until_arrival:{max_days_to_arrival:b(a.estimatedDaysToArrival.max),min_days_to_arrival:b(a.estimatedDaysToArrival.min)},shipping_tier:a.shippingTier}}),source:a.source}}function i(a){var b;b=(b=a.shippingOptions)!=null?b:[];return{cms_id:a.cmsID,contact_email:c("nullthrows")(a.contactEmail),return_policy:c("nullthrows")(a.returnPolicy),shipping_options:b.map(function(a){var b;return{cost:{amount_in_hundredths:(b=c("nullthrows"))(a.cost.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},cost_per_additional_item:{amount_in_hundredths:b(a.costPerAdditionalItem.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},estimated_days_until_arrival:{max_days_to_arrival:b(a.estimatedDaysToArrival.max),min_days_to_arrival:b(a.estimatedDaysToArrival.min)},shipping_tier:a.shippingTier}}),utm_params:a.utmParams}}function j(a){var b=d("PageSetUpManagedOnsiteShopInputDataUtils").getPayoutBankInfoFromSellerPayoutBankInfo(a.payoutBankInfo);b={address:babelHelpers["extends"]({},a.address),alert_email:a.alertEmail,bank_country:a.address.country,bank_info:c("nullthrows")(b),channel:a.channel,cms_id:a.cmsID,country_code:a.address.country,currency_code:a.currency,payment_type:h.NMOR_CHECKOUT_EXPERIENCES,provider_type:"BANK_ACCOUNT",state_tax_registration_numbers:a.USAStateRegNums.map(function(a){return{state_code:c("USAStateAbbreviations")[a.USAState],tax_registration_number:a.regNum}}),utm_params:a.utmParams,vat_address:babelHelpers["extends"]({},a.vatAddress),vat_id:a.vatID};var e=c("nullthrows")(d("PageSetUpManagedOnsiteShopInputDataUtils").prepareTaxData(a.payoutTaxInfo));b.birthdate=e.birthdate;b.business_name=e.business_name;b.company_type=e.company_type;b.legal_name=e.legal_name;b.ssn=e.ssn;b.tax_id=e.tax_id;b.tax_id_type=e.tax_id_type;b.tax_id_type==="SSN"&&c("CommerceManagerOnboardingTaxIDUtils")(b.ssn)&&(b.tax_id_type="ITIN");e=d("PageSetUpManagedOnsiteShopInputDataUtils").prepareManagedMerchantData({fraudnetSessionID:a.fraudnetSessionID,merchantCategoryCode:a.merchantCategoryCode});return babelHelpers["extends"]({},b,e)}function k(a){var b=d("PageSetUpManagedOnsiteShopInputDataUtils").getPayoutBankInfoFromSellerPayoutBankInfo(a.payoutBankInfo);b={bank_info:c("nullthrows")(b)};var e=c("nullthrows")(d("PageSetUpManagedOnsiteShopInputDataUtils").prepareTaxData(a.payoutTaxInfo));b.channel=a.channel;b.cms_id=a.cmsID;b.birthdate=c("nullthrows")(e.birthdate);b.business_name=e.business_name;b.company_type=e.company_type;b.legal_name=e.legal_name;b.ssn=e.ssn;b.tax_id=e.tax_id;b.tax_id_type=e.tax_id_type;b.currency_code=a.currency;b.payment_type=h.NMOR_CHECKOUT_EXPERIENCES;b.provider_type="BANK_ACCOUNT";b.tax_id_type==="SSN"&&c("CommerceManagerOnboardingTaxIDUtils")(b.ssn)&&(b.tax_id_type="ITIN");e=d("PageSetUpManagedOnsiteShopInputDataUtils").prepareManagedMerchantData({fraudnetSessionID:a.fraudnetSessionID});b.paypal_fraudnet_id=e.paypal_fraudnet_id;return babelHelpers["extends"]({},b)}function l(a){var b,e=d("PageSetUpManagedOnsiteShopInputDataUtils").getPayoutBankInfoFromSellerPayoutBankInfo(a.payoutBankInfo);e={address:babelHelpers["extends"]({},a.address),alert_email:a.alertEmail,bank_country:(b=c("nullthrows"))(a.address.country),bank_info:b(e),channel:a.channel,cms_id:a.cmsID,country_code:b(a.address.country),currency_code:a.currency,payment_type:h.NMOR_CHECKOUT_EXPERIENCES,provider_type:"BANK_ACCOUNT",source:a.source,state_tax_registration_numbers:a.USAStateRegNums.map(function(a){return{state_code:c("USAStateAbbreviations")[a.USAState],tax_registration_number:a.regNum}}),utm_params:a.utmParams,vat_address:babelHelpers["extends"]({},a.vatAddress),vat_id:a.vatID};var f=b(d("PageSetUpManagedOnsiteShopInputDataUtils").prepareTaxData(a.payoutTaxInfo));e.birthdate=b(f.birthdate);e.business_name=f.business_name;e.company_type=f.company_type;e.legal_name=f.legal_name;e.ssn=f.ssn;e.tax_id=f.tax_id;e.tax_id_type=f.tax_id_type;e.tax_id_type==="SSN"&&c("CommerceManagerOnboardingTaxIDUtils")(e.ssn)&&(e.tax_id_type="ITIN");b=d("PageSetUpManagedOnsiteShopInputDataUtils").prepareManagedMerchantData({fraudnetSessionID:a.fraudnetSessionID,merchantCategoryCode:a.merchantCategoryCode});e.merchant_category_code=c("nullthrows")(b.merchant_category_code);e.paypal_fraudnet_id=b.paypal_fraudnet_id;return babelHelpers["extends"]({},e)}g.prepareOnsiteBusinessAccountSetupData=a;g.prepareIGSandboxOnsiteBusinessAccountSetupData=b;g.preparePreferencesSetupData=e;g.prepareOnsiteConversionPreferencesSetupData=f;g.prepareFbePreferencesSetupData=i;g.preparePayoutsSetupData=j;g.prepareSunriseConversionPayoutsSetupData=k;g.prepareOnsiteConversionPayoutsSetupData=l}),98);
-----
FBPayAddressTypeahead.react",["BaseTypeahead.react","CometFormTypeaheadLayoutContextualStrategy.react","FBPayAddressTypeaheadDetailsQuery.graphql","FBPayAddressTypeaheadInputStrategy.react","FBPayAddressTypeaheadViewListStrategy","FBPayECPAddressTypeaheadLogger","FBPayECPConstantsUtils","FBPayECPFormFieldIDUtils","RelayHooks","fbpayECPCastFieldIDToAutoCompleteType","fbpayECPParseAddressTypeaheadData","promiseDone","react","useFBPAYAddressSuggestionsDataSource","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useState;e={view:{borderTopWidth:"x972fbf",borderEndWidth:"xcfux6l",borderBottomWidth:"x1qhh985",borderStartWidth:"xm0m39n",$$css:!0}};var l={viewXStyle_DO_NOT_USE:e.view},m="street1",n=h!==void 0?h:h=b("FBPayAddressTypeaheadDetailsQuery.graphql");function a(a){var b=a.addressTypeaheadSessionId,e=a.country,f=a.ecpFormErrorStatus,g=a.handlePressTypeaheadAddress,h=a.helperText,i=a.isBillingAddress;i=i===void 0?!1:i;var o=a.isDesktop,p=a.isNUXForm,q=p===void 0?!1:p;p=a.label;var r=a.loggingData,s=a.maxResults,t=a.onBlur,u=a.onChange,v=a.productId,w=a.setAddressTypeaheadSessionId,x=a.street1Value,y=x===void 0?"":x;x=a.testid;a=a.valueType;var z=c("fbpayECPCastFieldIDToAutoCompleteType")(m),A=k(!1),B=A[0],C=A[1];A=k(null);var D=A[0],E=A[1];A=k([]);var F=A[0],G=A[1];A=k(!1);var H=A[0],I=A[1];A=k(null);var J=A[0],K=A[1];A=k(null);var L=A[0],M=A[1];A=k(null);var N=A[0],O=A[1];A=k(z);var P=A[0],Q=A[1],R=new(c("FBPayECPAddressTypeaheadLogger"))(r==null?void 0:r.loggingPolicy,(A=r==null?void 0:r.productID)!=null?A:"",r==null?void 0:r.productType,r==null?void 0:r.platform,r==null?void 0:r.sessionID,r==null?void 0:r.oneTimeCheckoutStatus,r==null?void 0:r.isSubscriptionEnabled,r==null?void 0:r.isDesktop,r==null?void 0:r.productExtraLoggingData),S=R.getSessionID();A=c("useFBPAYAddressSuggestionsDataSource")(e,y,b,s,S,v,r==null?void 0:r.productType);e=function(a){return j.jsx(c("FBPayAddressTypeaheadViewListStrategy"),babelHelpers["extends"]({attributionIconNeeded:J,darkIconUri:N,isDesktop:o,lastSuggestedEntries:F,lightIconUri:L,logger:R,onPressEnterManually:function(a){Q(z),C(a),R.logUserClickEcpAddresstypeaheadAtomic("enter_address_manually",y.length.toString())},queryString:y,setAttributionIconUsabilityAndUri:function(a,b,c){K(a),M(b),O(c)},setAutoCompleteState:Q,setLastSuggestedEntries:function(a){G(a)},shouldDisableTypeahead:B},a))};var T=function(a){var b=[];Object.keys(a).forEach(function(c){if(a[c]!==""){b.push((c=d("FBPayECPFormFieldIDUtils").castFieldIDToUPLFieldName(c,q))!=null?c:"")}});return b},U=d("RelayHooks").useRelayEnvironment();s=function(a){R.logClientAddEcpAddresstypeaheadInit();var e=a.rawData.suggestions.address_id;if(e==null){var f;R.logUserClickEcpAddresstypeaheadAtomic("address_suggestion",y.length.toString(),(f=a.rawData.suggestions.address_details)==null?void 0:(f=f.index)==null?void 0:f.toString());f=c("fbpayECPParseAddressTypeaheadData")(a);g(f)}else{I(!0);R.logClientAddDebugAtomic(S,Date.now().toString(),{debug_step:"ecp_address_typeahead_fetch_detailed_address"},{isUplSessionIdValid:"false"});R.logUserClickEcpAddresstypeaheadAtomic("address_suggestion",y.length.toString(),(f=a.rawData.suggestions.index)==null?void 0:f.toString());c("promiseDone")(d("RelayHooks").fetchQuery(U,n,{address_id:e,payment_product_id:v,payment_type:d("FBPayECPConstantsUtils").castAllPaymentTypeFields(r==null?void 0:r.productType),session_id:b,upl_session_id:S},{fetchPolicy:"network-only"}).toPromise().then(function(a){a=a==null?void 0:(a=a.fetch_address_details)==null?void 0:a.address;if(a!==null){var b;a={city:(b=a==null?void 0:a.city)!=null?b:"",state:(b=a==null?void 0:a.state_code)!=null?b:"",street1:(b=a==null?void 0:a.address_line_1)!=null?b:"",street2:(b=a==null?void 0:a.address_line_2)!=null?b:"",zip:(b=a==null?void 0:a.postal_code)!=null?b:"",zipSuffix:(b=a==null?void 0:a.postal_code_suffix)!=null?b:""};R.logClientAddEcpAddresstypeaheadSuccess(T(a));g(a)}I(!1)})["catch"](function(a){a={error_message:a};R.logClientAddEcpAddresstypeaheadFail(a)})["finally"](function(){I(!1),w(c("uuidv4")())}))}E(!0)};return j.jsx(c("BaseTypeahead.react"),{dataSource:A,inputExtraProps:{autoCompleteState:P,disableBlurFocus:function(){E(!1)},ecpFormErrorStatus:f,field_id:m,helperText:h,isBillingAddress:i,isLoadingState:H,isNUXForm:q,logger:R,onBlur:t,shouldBlurFocus:D,testid:x,value_type:a},inputStrategyRenderer:c("FBPayAddressTypeaheadInputStrategy.react"),label:p,layoutStrategyRenderer:c("CometFormTypeaheadLayoutContextualStrategy.react"),onChange:function(a){u(a,m),a.length>0&&!B&&R.logClientLoadEcpAddresstypeaheadInit()},onPressEntry:s,queryString:y,shouldQueryStringFollowHighlightedEntry:!1,shouldQueryStringUpdateFromSelectedEntryOnClick:!1,viewStrategyRenderer:e,xstyles:l})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useFBPAYAddressSuggestionsDataSource",["FBPayECPConstantsUtils","WebPixelRatio","useCometTypeaheadGraphQLDataSource","useFBPAYAddressSuggestionsDataSourceQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("useFBPAYAddressSuggestionsDataSourceQuery.graphql");function a(a,b,e,f,g,h,k){return c("useCometTypeaheadGraphQLDataSource")({gqlQuery:i,limit:f,normalize:j,queryVariablesBuilderFunction:function(){return{country:a,max_results:f,payment_product_id:h,payment_type:d("FBPayECPConstantsUtils").castAllPaymentTypeFields(k),query_input:b,scale:d("WebPixelRatio").get(),session_id:e,upl_session_id:g}}})}function j(a){var b;if(!a)return[];a=a.fetch_address_suggestions;var c=a==null?void 0:(b=a.attribution)==null?void 0:(b=b.icon_dark)==null?void 0:b.uri,e=a==null?void 0:(b=a.attribution)==null?void 0:(b=b.icon_light)==null?void 0:b.uri;return(a==null?void 0:a.suggestions.length)===0?[{key:d("FBPayECPConstantsUtils").NO_TYPEAHEAD_SUGGESTION_AVAILABLE,label:d("FBPayECPConstantsUtils").NO_TYPEAHEAD_SUGGESTION_AVAILABLE,rawData:{suggestions:{}},type:"entry"}]:(b=a==null?void 0:a.suggestions.map(function(a,b){var d=a.address_details,f=a.address_id,g=a.main_text;a=a.secondary_text;if(f!==null){var h;return{key:(h=f)!=null?h:"",label:(h=f)!=null?h:"",rawData:{attribution:{icon_path_dark:c,icon_path_light:e},suggestions:{address_id:(h=f)!=null?h:"",index:b,main_text_matched_string:(f=g==null?void 0:g.matched_substring)!=null?f:[],main_text_value:(h=g==null?void 0:g.value)!=null?h:"",secondary_text_matched_string:(f=a==null?void 0:a.matched_substring)!=null?f:[],secondary_text_value:(g=a==null?void 0:a.value)!=null?g:""}},type:"entry"}}else{return{key:(h=d==null?void 0:d.address_line_1)!=null?h:"",label:(f=d==null?void 0:d.address_line_1)!=null?f:"",rawData:{suggestions:{address_details:{address_line_1:d==null?void 0:d.address_line_1,address_line_2:d==null?void 0:d.address_line_2,city:d==null?void 0:d.city,index:b,postal_code:d==null?void 0:d.postal_code,state:d==null?void 0:d.state,state_code:d==null?void 0:d.state_code}}},type:"entry"}}}))!=null?b:[]}g["default"]=a}),98);
-----
AllPaymentTypeFields",[],(function(a,b,c,d,e,f){a=Object.freeze({PAYMENT_SETTINGS:"payment_settings",PAYOUTHUB_MSC:"payouthub_msc",IG_PAYMENT_SETTINGS:"ig_payment_settings",UNKNOWN:"unknown",CAL_SETTING:"cal_setting",MP_PAYMENT_SETTINGS:"mp_payment_settings",FBPAY_HUB:"fbpay_hub",META_PAY_WALLET:"meta_pay_wallet",ECP:"ecp",DIGITAL_CODE:"digital_code",OFFER:"offer",LOYALTY:"loyalty",MERCHANT_LOYALTY:"merchant_loyalty",MERCHANT_ONBOARDING:"MERCHANT_ONBOARDING",MENU:"menu",IAP_ALL_PRODUCTS:"iap_all_products",IAP_INSTANT_GAME:"iap_instant_game",IAP_FAN_FUNDING:"iap_fan_funding",IAP_GAME_TIPPING:"iap_game_tipping",IAP_GROUP_SUBSCRIPTION:"iap_group_subscription",IAP_INSTAGRAM_P2A:"iap_instagram_p2a",IAP_INSTAGRAM_USERPAY_BADGES:"iap_instagram_userpay_badges",IAP_PAID_ONLINE_EVENT:"iap_paid_online_event",IAP_SUPER_MEET_AND_GREET:"iap_super_meet_and_greet",IAP_SUPER_VIRTUAL_GIFT:"iap_super_virtual_gift",IAP_INSTAGRAM_FAN_SUBS:"iap_instagram_fan_subs",IAP_AVATAR_CONTENT:"iap_avatar_content",IAP_NFT:"iap_nft",IAP_NON_CONSUMABLE_VIDEO:"iap_non_consumable_video",IAP_GAMES_SUBSCRIPTION:"iap_games_subscription",IAP_HORIZON_PURCHASES:"iap_horizon_purchases",IAP_WA_BUSINESS_SUBS:"iap_wa_business_subscription",IAP_WA_PAID_CHANNEL:"iap_wa_paid_channel",IAP_ADS_BILLING:"iap_ads_billing",IAP_INSTAGRAM_CONTENT_APPRECIATION:"iap_instagram_content_appreciation",IAP_META_GEM:"iap_meta_gem",IAP_MV_PAID_TOKEN:"iap_mv_paid_token",IAP_NME_SUBSCRIPTION:"iap_nme_subscription",IAP_WA_BUSINESS_CREDIT:"iap_wa_business_credit",IAP_AFS_SUBSCRIPTION:"iap_afs_subscription",IAP_MV4B:"iap_mv4b",IAP_DCP_DEMO:"iap_dcp_demo",IAP_AI_PREMIUM:"iap_ai_premium",FB_BROWSER_PAYMENT:"fb_browser_payment",MOR_NONE:"mor_none",MOR_ADS_CONSENT:"mor_ads_consent",MOR_ADS_CONSENT_AFA:"mor_ads_consent_afa",MOR_ADS_AFA:"mor_ads_afa",MOR_WA_PAID_MESSAGING:"mor_wa_paid_messaging",MOR_WA_PAID_MESSAGING_AUTH:"mor_wa_paid_messaging_auth",MOR_BIZ_MESSAGING:"mor_biz_messaging",MOR_WHATSAPP_SMB:"mor_whatsapp_smb",MOR_WHATSAPP_SMB_TOPUP:"mor_whatsapp_smb_topup",MOR_ADS_INVOICE:"mor_ads_invoice",MOR_ADS_AUTH:"mor_ads_auth",MOR_ADS_RISK_3DS_AUTHENTICATION:"mor_ads_risk_3ds_authentication",MOR_ADS_BUSINESS:"mor_ads_business",MOR_ADS_STORED_BALANCE:"mor_ads_stored_balance",MOR_DONATIONS:"mor_donations",MOR_DONATIONS_CAUSE_FOR_CHARITIES:"mor_donations_cause_for_charities",MOR_DONATIONS_MATCHING_CONFIRMATION:"mor_donations_matching_confirmation",MOR_DONATIONS_MATCHING_PLEDGE:"mor_donations_matching_pledge",MOR_OCULUS_CV1:"mor_oculus_cv1",MOR_OCULUS_LAUNCH_V1:"mor_oculus_launch_v1",MOR_OCULUS_LAUNCH_V2:"mor_oculus_launch_v2",MOR_OCULUS_SUBSCRIPTION:"mor_oculus_subscription",MOR_OZONE:"mor_ozone",MOR_OPEN_GRAPH_PRODUCT:"mor_open_graph_product",MOR_MESSENGER_COMMERCE:"mor_messenger_commerce",MOR_P2P_TRANSFER:"mor_p2p_transfer",MOR_GIFTS:"mor_gifts",MOR_BILL:"mor_bill",MOR_AIRMAIL:"mor_airmail",MOR_EVENT_TICKETING:"mor_event_ticketing",MOR_WORKPLACE_USAGE:"mor_workplace_usage",MOR_FACEBOOK_SHOP:"mor_facebook_shop",MOR_FAN_FUNDING:"mor_fan_funding",MOR_VOICES:"mor_voices",MOR_GAME_TIPPING_TOKEN:"mor_game_tipping_token",MOR_INSTANT_GAMES:"mor_instant_games",MOR_GAMES_SUBSCRIPTION:"mor_games_subscription",MOR_ALT_APP_STORES:"mor_alt_app_stores",MOR_GROUP_SUBSCRIPTION:"mor_group_subscription",MOR_PAID_ONLINE_EVENT:"mor_paid_online_event",MOR_SUPER_MEET_AND_GREET:"mor_super_meet_and_greet",MOR_SUPER_VIRTUAL_GIFT:"mor_super_virtual_gift",MOR_NON_CONSUMABLE_VIDEO:"mor_non_consumable_video",MOR_AFS_SUBSCRIPTION:"mor_afs_subscription",MOR_PAYOUT_DEV:"mor_payout_dev",MOR_PAYOUT_CHARITY:"mor_payout_charity",MOR_PAYOUT_ADNET:"mor_payout_adnet",MOR_PAYOUT_OCU:"mor_payout_ocu",MOR_PAYOUT_DCP:"mor_payout_dcp",MOR_PAYOUT_AUTOPAY:"mor_payout_autopay",MOR_PAYOUT_MISCAP:"mor_payout_miscap",MOR_PAYOUT_CONTENT:"mor_payout_content",MOR_REPAYMENT:"mor_repayment",MOR_THIRD_PARTY_APP_STORES_IAP:"mor_third_party_app_stores_iap",MOR_CP_RETURN_LABEL:"mor_cp_return_label",MOR_WHATSAPP_P2P:"mor_whatsapp_p2p",MOR_NME_SUBSCRIPTION:"mor_nme_subscription",MOR_MV4B:"mor_mv4b",MOR_AI_PREMIUM:"mor_ai_premium",MOR_BILLING_OMEGA_INVOICE:"mor_billing_omega_invoice",NMOR_UNKNOWN:"nmor_unknown",NMOR_NONE:"nmor_none",NMOR_PAGES_COMMERCE:"nmor_pages_commerce",NMOR_COMPONENT_FLOW:"nmor_component_flow",NMOR_BUSINESS_PLATFORM_COMMERCE:"nmor_business_platform_commerce",NMOR_SYNCHRONOUS_COMPONENT_FLOW:"nmor_synchronous_component_flow",NMOR_EVENT_TICKETING:"nmor_event_ticketing",NMOR_MARKETPLACE_TICKETING:"nmor_marketplace_ticketing",NMOR_PLATFORM_SELF_SERVE:"nmor_platform_self_serve",NMOR_MESSENGER_PLATFORM:"nmor_messenger_platform",NMOR_TIP_JAR:"nmor_tip_jar",NMOR_INSTANT_EXPERIENCES:"nmor_instant_experiences",NMOR_CHECKOUT_EXPERIENCES:"nmor_checkout_experiences",NMOR_C2C_CHECKOUT_EXPERIENCES:"nmor_c2c_checkout_experiences",NMOR_BUY_ON_FACEBOOK:"nmor_buy_on_facebook",NMOR_DONATION_P4P:"nmor_donation_p4p",NMOR_DONATION_P4C:"nmor_donation_p4c",NMOR_DONATION_CIELO:"nmor_donation_cielo",NMOR_NETWORK_TOKEN_NOTIF:"nmor_network_token_notif",NMOR_WHATSAPP_P2P:"nmor_whatsapp_p2p",NMOR_P2P:"nmor_p2p",NMOR_MESSENGER_P2P:"nmor_messenger_p2p",NMOR_MOBILE_TOP_UP:"nmor_mobile_top_up",NMOR_MFS:"nmor_mfs",NMOR_SHIPPING_LABEL_DEPRECATED:"nmor_shipping_label",NMOR_PAGES_SOLUTION_DEPRECATED:"nmor_pages_solution",NMOR_BLACKBAUD_RWR_DONATION:"nmor_blackbaud_rwr_donation",NMOR_MARKETPLACE_SHIPPING:"nmor_marketplace_shipping",NMOR_DUMMY:"nmor_dummy",NMOR_PPGF_DONATION:"nmor_ppgf_donation",NMOR_ADVERTISER_SUBSCRIPTION:"nmor_advertiser_subscription",NMOR_WHATSAPP_P2M:"nmor_whatsapp_p2m",WHATSAPP_P2M_LITE:"whatsapp_p2m_lite",MESSENGER_P2M:"messenger_p2m",NMOR_MOVIE_TICKETING:"nmor_movie_ticketing",NMOR_MESSAGING_COMMERCE:"nmor_messaging_commerce",NMOR_LIBRA:"nmor_libra",NMOR_SERVICES:"nmor_services",IN_APP_WEBVIEWER_PURCHASE:"in_app_webviewer_purchase",IG_NMOR_DONATION_P4P:"ig_nmor_donation_p4p",IG_NMOR_P2B:"ig_nmor_p2b",IG_NMOR_SHOPPING:"ig_nmor_shopping",IG_NMOR_SHOPPING_ONBOARDING:"ig_nmor_shopping_onboarding",IG_MOR_DONATIONS:"ig_mor_donations",IAB_AUTOFILL:"iab_autofill",IAB_AUTOFILL_MIGRATION:"iab_autofill_migration",IAB_AUTOFILL_CROSS_APP:"iab_autofill_cross_app",IAB_AUTOFILL_CROSS_APP_MIGRATION:"iab_autofill_cross_app_migration",IAB_AUTOFILL_BINDING_UPDATER:"iab_autofill_binding_updater",IAB_AUTOFILL_SILENT_BINDING:"iab_autofill_silent_binding",IAB_AUTOFILL_UNBOUND_CARD_TRUSTED_DEVICE_CHAIN:"iab_autofill_unbound_card_trusted_device_chain",CONNECT_VIA_IAW:"connect_via_iaw",NMOR_OFFSITE_SHOPPING:"nmor_offsite_shopping",META_CHECKOUT_SDK:"meta_checkout_sdk",FBPAY_CARD_TOKENIZATION:"fbpay_card_tokenization",CONTACTLESS_PAYMENT:"contactless_payment",NMOR_INSTAGRAM_P2B:"nmor_instagram_p2b",DUMMY_FIRST_PARTY_V2:"dummy_first_party_v2",DUMMY_THIRD_PARTY_V2:"dummy_third_party_v2",SOFT_DESCRIPTOR_AUTH:"soft_descriptor_auth",AD_PUBLISHER:"ad_publisher",ADS_MANAGER:"ads_manager",SIGMA:"sigma",FRAUD_CHECK:"fraud_check",SHOPIFY_API:"shopify_api",PAYMENTS_API_UNKNOWN_PRODUCT:"payments_api_unknown_product",FINANCIAL_SERVICES:"financial_services",INSTAGRAM_P2M:"instagram_p2m",DIGITAL_COLLECTIBLES:"digital_collectibles",IG_DIGITAL_COLLECTIBLES:"ig_digital_collectibles",FB_DIGITAL_COLLECTIBLES:"fb_digital_collectibles",IG_MINTING:"ig_minting",FB_MINTING:"fb_minting",IG_DIGITAL_COLLECTIBLES_PAYMENTS:"ig_digital_collectibles_payments",FB_DIGITAL_COLLECTIBLES_PAYMENTS:"fb_digital_collectibles_payments",BILLING:"billing",BILLING_HUB:"billing_hub",BILLING_WIZARD:"billing_wizard",CREATORS_AS_MARKETER_AFFILIATE:"cam_affiliate",CREATOR_MARKETPLACE:"creator marketplace",META_REWARD:"meta_reward",REWARDS_CENTER:"rewards_center",LITE_CHECKOUT:"lite_checkout",MESSENGER_BUSINESS_MESSAGING_API:"messenger_business_messaging_api",AURORA:"aurora",CARRIER_MONETIZATION:"carrier_monetization",AGE_VERIFICATION_CCV:"age_verification_ccv",TRUST_BINDING:"trust_binding"});f["default"]=a}),66);
-----
Payments3DSCardinalInitComponent.react",["FBPayUPLLogger","FBPaymentsModulesAPIUtils","FBPaymentsSpinner.react","FlexLayout.react","Payments3DSUtils","PaymentsCardinalDeviceDataCollectionComponent.react","PaymentsCardinalStepUpChallengeContainer","ReactDOM","SecurePostMessage","Text","URI","goURI","react","usePayments3DSCardinalFetchStepUpAuthURLMutation"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));b=i;var k=b.useCallback,l=b.useEffect,m=b.useMemo,n=b.useRef,o=b.useState;function a(a){a.accountID;a.actionGroupID;var b=a.appUrl,e=a.cardinalDeviceDataCollectionUrl,f=a.clientState;a.credential;var g=a.credentialAuthenticationID,i=a.isBillingMobile,p=i===void 0?!1:i;i=a.jwtToken;var q=a.paymentType,r=a.productID,s=a.returnMethod,t=a.sessionID,u=a.threeDSUseCase,v=u===void 0?"":u;u=a.wizardSessionID;var w=u===void 0?"":u,x=c("usePayments3DSCardinalFetchStepUpAuthURLMutation")(),y=n(!0);a=o(!1);u=a[0];var z=a[1];a=m(function(){var a=new(c("FBPayUPLLogger"))(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(q.toLowerCase()),d("Payments3DSUtils").getUserPlatform(),t);return{logger:a}},[q,t]);var A=a.logger,B=k(function(a){var e;A.logClientLoadThreedsUnificationInit({product_id:(e=r)!=null?e:"",view_name:"complete_redirect_3ds",flow_session_id:w},{"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.CARDINAL),is_generic_3ds:"true",returnMethod:s,is_billing_mobile:String(p),"3ds_use_case":v});if(s==="post_message")p?d("SecurePostMessage").sendMessageToSpecificOrigin(window.parent,String(a.auth_result).toLowerCase(),document.referrer):d("SecurePostMessage").sendMessageToSpecificOrigin(window.parent,babelHelpers["extends"]({eventName:d("Payments3DSUtils").THREEDS_RESPONSE_MESSAGE},a),document.referrer);else if(s==="app_url"&&b!=null){e=window.atob(b);e=new(h||(h=c("URI")))(e).addQueryData(a).toString();c("goURI")(e)}},[b,p,A,r,s,v,w]),C=k(function(a){a={auth_result:d("Payments3DSUtils").ThreeDSAuthResult.Success,client_state:f,step_up_complete_token:a};B(a);A.logClientFetchThreedsUnificationSuccess({product_id:(a=r)!=null?a:"",view_name:"complete_3ds",flow_session_id:w},{"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.CARDINAL),is_generic_3ds:"true","3ds_use_case":v})},[f,B,A,r,w,v]),D=k(function(){var a=d("Payments3DSUtils").get3DSUserFacingErrorData();a=babelHelpers["extends"]({},a,{auth_result:d("Payments3DSUtils").ThreeDSAuthResult.Failure,client_state:f});B(a);A.logClientFetchThreedsUnificationFail({product_id:(a=r)!=null?a:"",view_name:"complete_3ds",flow_session_id:w},{"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.CARDINAL),is_generic_3ds:"true","3ds_use_case":v})},[f,B,A,r,w,v]);a=k(function(a){var b;a={session_id:t,payment_type:q,credentialAuthenticationId:g,df_ref_id:a,screen_height:window.innerHeight,screen_width:window.innerWidth,product_id:r,wizard_session_id:w,threeds_use_case:v};A.logClientFetchThreedsUnificationInit({product_id:(b=r)!=null?b:"",view_name:"fetch_step_up_auth_url",flow_session_id:w},{"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.CARDINAL),is_generic_3ds:"true","3ds_use_case":v});x(a,function(a){var b;a=(a=a==null?void 0:a.threeds_cardinal_fetch_step_up_auth_url)!=null?a:{};var e=a.status,f=a.step_up_jwt,g=a.step_up_url;a=a.md;f=f==null?void 0:f.token;A.logClientFetchThreedsUnificationSuccess({product_id:(b=r)!=null?b:"",view_name:"fetch_step_up_auth_url",flow_session_id:w},{"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.CARDINAL),is_generic_3ds:"true",status:(b=e)!=null?b:"","3ds_use_case":v});if(e===d("Payments3DSUtils").ThreeDSLookupStatus.PENDING&&g!=null&&f!=null&&a!=null){z(!1);b=document.createElement("div");document.body&&document.body.prepend(b);d("ReactDOM").createRoot(b).render(j.jsx(c("PaymentsCardinalStepUpChallengeContainer"),{md:a,stepUpJwt:f,stepUpUrl:g,onError:D,onSuccess:function(a){C(a)},logger:A,productID:r,wizardSessionID:w,threeDSUseCase:v}))}else if(e===d("Payments3DSUtils").ThreeDSLookupStatus.COMPLETED)C();else if(e===d("Payments3DSUtils").ThreeDSLookupStatus.FAILED){D();A.logClientFetchThreedsUnificationFail({product_id:(b=r)!=null?b:"",view_name:"fetch_step_up_auth_url",flow_session_id:w},{"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.CARDINAL),is_generic_3ds:"true",status:d("Payments3DSUtils").ThreeDSLookupStatus.FAILED,"3ds_use_case":v})}},function(a){var b;D();b={product_id:(b=r)!=null?b:"",view_name:"fetch_step_up_auth_url",flow_session_id:w};var c={"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.CARDINAL),is_generic_3ds:"true",status:d("Payments3DSUtils").ThreeDSLookupStatus.FAILED,"3ds_use_case":v};if(a!=null&&a.message!=null){var e;c=babelHelpers["extends"]({},c,{errorMessage:a.message.toString(),errorTitle:a.title==null?"":a.title.toString(),exceptionClass:String(a.exceptionClass),errorCode:String(a.code),serverErrorMessage:(e=a.serverErrorMessage)!=null?e:"",stack:(e=a.stack)!=null?e:""})}else if(a!=null&&a.errorCode!=null){c=babelHelpers["extends"]({},c,{errorCode:String(a.errorCode),errorDescription:a.errorDescription,errorTitle:a.errorTitle,extraData:(e=a.extraData)!=null?e:"",flowStep:a.flowStep,serverErrorMessage:(e=a.serverErrorMessage)!=null?e:"",exceptionClass:(e=a.exceptionClass)!=null?e:""})}A.logClientFetchThreedsUnificationFail(b,c)})},[t,q,g,r,w,A,v,x,D,C]);l(function(){z(!0)},[]);l(function(){if(y.current===!0){var a;y.current=!1;A.logClientRenderThreedsUnificationDisplay({view_name:"3ds_cardinal_init_component",product_id:(a=r)!=null?a:"",flow_session_id:w},{credential_authentication_id:g,"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.CARDINAL),is_generic_3ds:"true","3ds_use_case":v})}},[g,e,i,a,C,D,A,r,w,v]);var E=j.jsx("div",{className:"x6s0dn4 x78zum5 xl56j7k x1jn0hjm","data-testid":void 0,children:j.jsxs(c("FlexLayout.react"),{direction:"vertical",align:"center",children:[j.jsx(c("FBPaymentsSpinner.react"),{}),j.jsx("div",{className:"x1anpbxc",children:j.jsx(c("Text"),{style:{fontSize:20,fontWeight:"500"},children:d("Payments3DSUtils").THREEDS_LOADING_BODY})}),j.jsx("div",{className:"x1k70j0n",children:j.jsx(c("Text"),{style:{fontSize:16,fontWeight:"200"},children:d("Payments3DSUtils").THREEDS_LOADING_SUB_BODY})})]})});return j.jsxs(j.Fragment,{children:[u&&E,j.jsx(c("PaymentsCardinalDeviceDataCollectionComponent.react"),{cardinalDeviceDataCollectionUrl:e,jwtToken:i,onError:D,onSuccess:a,logger:A,productID:r,wizardSessionID:w,threeDSUseCase:v})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
usePaymentsCometGetCardPaymentMethodInfoQuery",["CometRelay","FBPayUPLLogger","FBPaymentsModulesAPIUtils","gkx","promiseDone","usePaymentsCometGetCardPaymentMethodInfoQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("usePaymentsCometGetCardPaymentMethodInfoQuery.graphql");function j(a){a=a==null?void 0:a.replace(/ /g,"");return a==null||(a==null?void 0:a.length)<6?null:a.slice(0,6)}function a(a){var b=a.onError,e=a.onSuccess,f=d("CometRelay").useRelayEnvironment();return function(a,g,h){var k={payment_method:{instrument_type:"CC",provider:"CREDIT_CARD"}};if(a!=null){var l;l=((l=a.selectedCredential)==null?void 0:l.credentialType)==="CREDIT_CARD"||((l=a.selectedCredential)==null?void 0:l.credentialType)==="NEW_CREDIT_CARD";var m=a.paymentType,n=c("gkx")("22991");if(!l||n){e(!1,h);return}k=babelHelpers["extends"]({account_currency:(l=a.userCurrency)!=null?l:"",cc_country_code:(n=a.geoCountry)!=null?n:"",cc_number_bin:j((l=a.selectedCredential)==null?void 0:(n=l.creditCardData)==null?void 0:n.cardNumber),credential_id:(l=a.selectedCredential)==null?void 0:l.credentialID,item_type:m},k)}else{k=babelHelpers["extends"]({account_currency:(n=g==null?void 0:g.currency)!=null?n:"",cc_country_code:(l=g==null?void 0:g.country)!=null?l:"",cc_number_bin:j(g==null?void 0:g.cardNumber),item_type:"FBPAY_HUB"},k)}var o=new(c("FBPayUPLLogger"))(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(k.item_type.toLowerCase()),"comet",a==null?void 0:a.clientSessionID);o.logClientLoadThreedsInit({target_name:"3ds_eligibility_query"},{account_currency:(m=k)==null?void 0:m.account_currency,cc_country_code:k.cc_country_code,credential_id:(l=a==null?void 0:(n=a.selectedCredential)==null?void 0:n.credentialID)!=null?l:""});c("promiseDone")(d("CometRelay").fetchQuery(f,i,{input:babelHelpers["extends"]({logging_id:o.getSessionID()},k)}).toPromise(),function(a){var b;if((a==null?void 0:(b=a.card_payment_method_info_query)==null?void 0:b.requires_3ds)===!0&&(a==null?void 0:(b=a.card_payment_method_info_query)==null?void 0:b.mpi_processor)==="CARDINAL_3DS2"){o.logClientLoadThreedsSuccess({target_name:"3ds_eligibility_query"},{is_eligible:"1"});return e(!0,h)}else{o.logClientLoadThreedsSuccess({target_name:"3ds_eligibility_query"},{is_eligible:"0"});return e(!1,h)}},function(a){b()})}}g["default"]=a}),98);
-----
FBPayAuthAPIUtils",["CurrentUser","FBLogger","FBPayAuthLibrary","FBPayAuthLibraryCommon","FBPayCreateFBPayPINMutation","FBPayDisableFBPayPINMutation","FBPayEnableFBPayPINMutation","FBPayGetServerEncryptionKeyMutation","FBPayUpdatePaymentsPINMutation","FBPayVerifyAuthFactorMutation","FBPaymentsModulesAPIUtils","Promise","RelayFBEnvironment","URI","promiseDone","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=3;function a(a,e,f,g){var h={actor_id:c("CurrentUser").getID(),client_mutation_id:c("uuidv4")(),device_id:"device_id",payment_type:(a=a)!=null?a:"FBPAY_HUB",target_account_id:(a=e)!=null?a:null,fetch_unified_wallet_key:(e=f)!=null?e:!1,logging_id:(a=g)!=null?a:null};return new(i||(i=b("Promise")))(function(a,b){var e=function(e){c("promiseDone")(d("FBPayGetServerEncryptionKeyMutation").getServerEncryptionKey(h),function(f){var g=f.trustChain;f=f.isDevExternal;c("promiseDone")(d("FBPayAuthLibraryCommon").getCryptoKeyFromCert(g,f),function(b){e=0,a(b)},function(a){e===1&&b(a)})},function(a){b(a)}),f=e};for(var f=j;f>=1;f--)e(f)})}function e(a,b,d){a=new(h||(h=c("URI")))(window.location.href).addQueryData({payment_method_id:a,target_account_id:b,session_id:d});return a.toString()}function f(a,b,e,f,g){var h={data:{app_id:"2805739562851096",auth_ticket_type:"PIN",caps:["CHARGE"],device_id:"12345",pin:"$e2ee"},nonce:c("uuidv4")(),op:"CREATE_FBPAY_PIN",ver:1};a={pin:a};var i=c("RelayFBEnvironment");c("promiseDone")(d("FBPayAuthLibrary").getPTT(h,a),function(a){var h=a.keyPairs;a=a.ptt;c("FBPayCreateFBPayPINMutation")(i,{client_mutation_id:c("uuidv4")(),actor_id:c("CurrentUser").getID(),payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(b),platform_trust_token:a,logging_id:g,format_type:"NUM_4_DIGITS"},function(a){e(h)},function(a){f(a)})},function(a){f(a)})}function k(a,b,e,f,g,h){var i=d("FBPayAuthLibraryCommon").getVerifyAuthData(a,["CHARGE","DISABLE_FBPAY_PIN","ENABLE_FBPAY_PIN"],c("uuidv4")());a=a.authFactorType==="PIN"?{pin:f}:a.authFactorType==="CSC"?{csc:f}:{};var j=c("RelayFBEnvironment");c("promiseDone")(d("FBPayAuthLibrary").getPTT(i,a),function(a){var f,i=a.keyPairs;a=a.ptt;c("FBPayVerifyAuthFactorMutation")(j,{client_mutation_id:c("uuidv4")(),actor_id:(f=c("CurrentUser").getID())!=null?f:"",platform_trust_token:a,payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(b),logging_id:e},function(a){g(i)},function(a){h(a)})},function(){h({remainingAttempts:null})})}function l(a,b,e,f,g,h,i){b=d("FBPayAuthLibraryCommon").getVerifyAuthData(b,e,c("uuidv4")(),a);var j=c("RelayFBEnvironment");c("promiseDone")(d("FBPayAuthLibraryCommon").getPTTWithoutEncryption(b),function(a){var b,e=a.keyPairs;a=a.ptt;c("FBPayVerifyAuthFactorMutation")(j,{client_mutation_id:c("uuidv4")(),actor_id:(b=c("CurrentUser").getID())!=null?b:"",platform_trust_token:a,payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(f),logging_id:g},function(a){h(e)},function(a){i(a)})},function(){i({remainingAttempts:null})})}function m(a,b,e,f,g,h,i,j){a=d("FBPayAuthLibraryCommon").getVerifyAuthData(a,["CHARGE"],c("uuidv4")());var k={pin:b},l=c("RelayFBEnvironment"),m={client_mutation_id:c("uuidv4")(),actor_id:c("CurrentUser").getID(),payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(g),logging_id:j,new_pin:{sensitive_string_value:b}};e!=null?m=babelHelpers["extends"]({},m,{old_pin:{sensitive_string_value:e}}):f!=null&&(m=babelHelpers["extends"]({},m,{password:{sensitive_string_value:f}}));c("promiseDone")(d("FBPayAuthLibrary").getPTT(a,k),function(a){var b=a.keyPairs;a=a.ptt;m=babelHelpers["extends"]({},m,{platform_trust_token:a});d("FBPayUpdatePaymentsPINMutation").updatePaymentsPIN(l,m,function(a){h(b)},function(a){i(a)})},function(a){i(a)})}function n(a,b,e,f,g){var h={data:{},nonce:c("uuidv4")(),op:"DISABLE_FBPAY_PIN",ver:1},i=c("RelayFBEnvironment");k({authFactorType:"PIN"},a,b,e,function(e){c("promiseDone")(d("FBPayAuthLibrary").getPTT(h,{},e),function(e){e.keyPairs;e=e.ptt;c("FBPayDisableFBPayPINMutation")(i,{client_mutation_id:c("uuidv4")(),actor_id:c("CurrentUser").getID(),platform_trust_token:e,payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(a),logging_id:b},function(a){f()},function(){g({remainingAttempts:null})})},function(){g({remainingAttempts:null})})},function(a){g(a)})}function o(a,b,e,f,g){var h={data:{},nonce:c("uuidv4")(),op:"ENABLE_FBPAY_PIN",ver:1},i=c("RelayFBEnvironment");k({authFactorType:"PIN"},a,b,e,function(e){c("promiseDone")(d("FBPayAuthLibrary").getPTT(h,{},e),function(e){e.keyPairs;e=e.ptt;c("FBPayEnableFBPayPINMutation")(i,{client_mutation_id:c("uuidv4")(),actor_id:c("CurrentUser").getID(),platform_trust_token:e,payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(a),logging_id:b},function(a){f()},function(){g({remainingAttempts:null})})},function(){g({remainingAttempts:null})})},function(a){g(a)})}function p(a){switch(a){case"PIN":return 70;case"CSC":return 67;case"PAYPAL_ACCESS_TOKEN":return 80;case"SDC":return 68;default:throw c("FBLogger")("fbpay").mustfixThrow("Not supported auth factor type")}}g.getServerPublicCryptoKey=a;g.getPaypalredirectSuccessURL=e;g.createFBPayPIN=f;g.verifyAuthFactor=k;g.verifyAuthFactorPaypal=l;g.updatePIN=m;g.disableFBPayPIN=n;g.enableFBPayPIN=o;g.getAuthTicketType=p}),98);
-----
PaymentsCometTransactionHubPINDialogContent.react",["fbt","CometLink.react","FBPayCometAuthAPIUtils","FBPayCometAuthString","FBPayCometGatingUtils","FBPayECPActionButton.react","FBPayECPFormTextInput.react","FBPayECPText.react","FBPayLoggingContext","FBPaymentsLoggerConstants","FBPaymentsModulesAPIUtils","FBPaymentsPINInputFieldContainerV2.react","PaymentsCometOverlayLoadingSpinner.react","PaymentsCometSpinner.react","PaymentsCometTransactionHubAPIUtils","PaymentsCometTransactionHubContext","PaymentsCometTransactionHubPINFlowStep","PaymentsCometTransactionHubPINFlowType","TetraButton.react","XRecoverInitiateControllerRouteBuilder","emptyFunction","gkx","react","setTimeout","usePaymentsCometAddPINMutation","usePaymentsCometSwitchPINMutation","usePaymentsCometUpdateFBPayPINWithPW","usePaymentsCometUpdatePINMutation","usePaymentsCometVerifyPINMutation","usePaymentsCometVerifyPasswordMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useContext,aa=b.useEffect,l=b.useState,m={CONFIRM_PIN:"CONFIRM_PIN",CREATED_PIN:"CREATED_PIN",ENTER_PIN:"ENTER_PIN"},ba=["ENABLE_FBPAY_PIN"],n=1500,o=500,ca=0,da=2,ea=4,fa=2e3;function a(a){var b=a.context;b=b===void 0?c("PaymentsCometTransactionHubContext"):b;var e=a.ecpLogger,f=a.enableForgetPINButton,g=f===void 0?!0:f;f=a.isDesktop;f=f===void 0?!0:f;var i=a.onFlowStepChange,p=a.onSubmitNewAPI,q=p===void 0?c("emptyFunction"):p;p=a.paymentType;var r=p===void 0?"FBPAY_HUB":p;p=a.productCap;p=p===void 0?ba:p;var s=a.productID,t=a.receiverID,u=a.flowStep,v=a.onClose,w=v===void 0?c("emptyFunction"):v;v=a.onSubmit;var x=v===void 0?c("emptyFunction"):v,y=a.pinFlowType,z=a.pinStatus,A=c("usePaymentsCometSwitchPINMutation")(),ga=c("usePaymentsCometVerifyPasswordMutation")(),ha=c("usePaymentsCometVerifyPINMutation")(),ia=d("FBPayCometAuthAPIUtils").usePaymentsCometVerifyAuthFactor(),ja=d("FBPayCometAuthAPIUtils").usePaymentsCometDisableFBPayPIN(),ka=d("FBPayCometAuthAPIUtils").usePaymentsCometEnableFBPayPIN(),la=d("FBPayCometAuthAPIUtils").usePaymentsCometResetFBPayPIN(),ma=d("FBPayCometAuthAPIUtils").usePaymentsCometCreateFBPayPIN(),na=c("usePaymentsCometAddPINMutation")(),oa=d("usePaymentsCometUpdateFBPayPINWithPW").usePaymentsCometUpdateFBPayPINWithPW(),pa=c("usePaymentsCometUpdatePINMutation")();v=l(!1);a=v[0];var B=v[1];v=l(!1);var qa=v[0],C=v[1];v=l("");var D=v[0],E=v[1];v=l(!1);var ra=v[0],F=v[1];v=l(!1);var sa=v[0],G=v[1];v=l(null);var ta=v[0],H=v[1];v=l(!0);var ua=v[0],va=v[1];v=l("");var I=v[0],wa=v[1];v=l(m.ENTER_PIN);var J=v[0],K=v[1];v=l("");var xa=v[0],ya=v[1];v=l("");var za=v[0],Aa=v[1];v=k(b);var L=v.logger,M=d("FBPayCometGatingUtils").shouldUseNewPINAPIOnComet(r);b=l(null);var Ba=b[0],Ca=b[1];v=k(c("FBPayLoggingContext"));b=v.logger;var N=(v=e)!=null?v:b,O=N.getSessionID(),P=p==="SEND_MONEY"?["SEND_MONEY"]:p.concat(),Q=function(){if(y===c("PaymentsCometTransactionHubPINFlowType").SWITCH_PIN)switch(z){case void 0:return d("FBPaymentsLoggerConstants").LoggerFlowStep.CREATE_PIN;case"ACTIVE":return d("FBPaymentsLoggerConstants").LoggerFlowStep.DISABLE_PIN;case"DISABLED":return d("FBPaymentsLoggerConstants").LoggerFlowStep.ENABLE_PIN;default:return d("FBPaymentsLoggerConstants").LoggerFlowStep.RESET_PIN}else if(y===c("PaymentsCometTransactionHubPINFlowType").CHANGE_PIN)return d("FBPaymentsLoggerConstants").LoggerFlowStep.RESET_PIN},Da=function(){N.setPlatformAndProductType(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(r.toLowerCase()),"comet");switch(u){case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN:N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"fbpay_verify_pin"});return;case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN:J===m.ENTER_PIN?N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"reset_pin"}):J===m.CONFIRM_PIN&&N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"reset_pin_confirm"});return;case c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN:J===m.ENTER_PIN?N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"fbpay_create_pin"}):J===m.CONFIRM_PIN&&N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"fbpay_confirm_pin"});return;case"FORGOT_PIN_PASSWORD_CONFIRM":N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"fbpay_forget_pin"});return;default:return}};aa(function(){Da(),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.DISPLAY).log()},[u,J]);var Ea=j.jsx(c("TetraButton.react"),{label:h._("u5fd8u8bb0 PIN u7801uff1f"),onPress:function(){i(c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.CLICK).addToExtraData("button_click","FORGET").log(),N.logUserClickAuthAtomic({auth_factor_type:70,target_name:"forget_pin_link"})},reduceEmphasis:!0,type:"secondary"});e=c("XRecoverInitiateControllerRouteBuilder").buildURL({});var Fa=j.jsx(c("TetraButton.react"),{label:h._("u5fd8u8bb0u5bc6u7801u4e86uff1f"),linkProps:{target:"_blank",url:e},onPress:function(){N.logUserClickAuthAtomic({auth_factor_type:70,target_name:"forget_password_link"})},reduceEmphasis:!0,type:"secondary"});v=function(){var a;if(g&&(u===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN||u===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN||u===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY))a=Ea;else if(u===c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM||u===c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM)a=Fa;else return null;return j.jsx("div",{className:"xu06os2 x1anpbxc",children:a})};var Ga=function(a){z==="ACTIVE"?A(d("PaymentsCometTransactionHubAPIUtils").prepareSwitchPIN("DISABLED",r,a),R(a),T):A(d("PaymentsCometTransactionHubAPIUtils").prepareSwitchPIN("ACTIVE",r,a),R(a),T),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT).log()},Ha=function(a){z==="ACTIVE"?ja(a,r,O,Z,$,t):ka(a,r,O,Z,$,t)},R=function(a){return function(){Ia(a)}},Ia=function(a){C(!1),K(m.CREATED_PIN),c("setTimeout")(function(){w(),x(a)},n),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS).log()},Ja=function(a){return function(){y===c("PaymentsCometTransactionHubPINFlowType").SWITCH_PIN?Ga(a):Ia(a)}},Ka=function(a,b){y===c("PaymentsCometTransactionHubPINFlowType").SWITCH_PIN?Ha(b):Z(a)},La=function(a){return function(b){var c;c=b==null?void 0:(c=b.switch_payments_pin)==null?void 0:c.success;b=(b=b==null?void 0:(b=b.switch_payments_pin)==null?void 0:b.remain_attempts_count)!=null?b:Infinity;Boolean(c)?(Na(a),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS).log()):(S(b),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.FAIL).setUserFacingMessage(W(b)).log())}},Ma=function(a){return function(b){var c;c=b==null?void 0:(c=b.verify_payments_pin)==null?void 0:c.is_valid;b=(b=b==null?void 0:(b=b.verify_payments_pin)==null?void 0:b.remain_attempts_count)!=null?b:Infinity;Boolean(c)?(Na(a),L.setFlowStep(d("FBPaymentsLoggerConstants").LoggerFlowStep.VERIFY_PIN).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS).log()):(S(b),L.setFlowStep(d("FBPaymentsLoggerConstants").LoggerFlowStep.VERIFY_PIN).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.FAIL).setUserFacingMessage(W(b)).log())}},S=function(a){F(!1),B(!1),G(!0),H(W(a)),c("setTimeout")(function(){G(!1),E("")},o),a===0&&c("setTimeout")(function(){H(null),i(c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM)},fa)},Na=function(a){F(!0),H(""),y===c("PaymentsCometTransactionHubPINFlowType").CHANGE_PIN?Pa():(w(),x(a))},T=function(a){B(!1),C(!1),G(!0),H(a==null?void 0:a.error_description),va(!0),c("setTimeout")(function(){G(!1),E("")},o),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.FAIL).setUserFacingMessage(a==null?void 0:a.error_description).log()},Oa=function(){B(!1),i(c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN)},Pa=function(){B(!1),i(c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN)};b=function(){switch(u){case c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN:if(J===m.CONFIRM_PIN)return h._("u518du6b21u8f93u5165 PIN u7801");else if(J===m.CREATED_PIN)return h._("PIN u7801u5df2u521bu5efa");else return h._("u521bu5efa PIN u7801");case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN:return h._("u8f93u5165 PIN u7801");case c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM:return h._("u5fd8u8bb0 PIN u7801uff1f");case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN:if(J===m.CONFIRM_PIN)return h._("u518du6b21u8f93u5165u65b0 PIN u7801");else if(J===m.CREATED_PIN)return h._("PIN u7801u5df2u521bu5efa");else return y===c("PaymentsCometTransactionHubPINFlowType").CHANGE_PIN?h._("u66f4u6539 PIN u7801"):h._("u91cdu7f6e PIN u7801");case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM:return h._("u91cdu7f6e PIN u7801");default:return""}};var U=c("gkx")("22979");p=U&&c("gkx")("23847");var V=c("gkx")("20847")||p;e=function(){switch(u){case c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN:return V?h._("u5728u67d0u4e9bu60c5u51b5u4e0buff0cu4f60u9700u8981u8f93u5165 PIN u7801u8fdbu884cu5b89u5168u9a8cu8bc1u3002u5982u9700u7ba1u7406u652fu4ed8 PIN u7801uff0cu8bf7u8bbfu95ee Meta Pay u8bbeu7f6eu3002"):h._("u5728u67d0u4e9bu60c5u51b5u4e0buff0cu4f60u9700u8981u8f93u5165 PIN u7801u8fdbu884cu5b89u5168u9a8cu8bc1u3002u5982u9700u7ba1u7406u652fu4ed8 PIN u7801uff0cu8bf7u8bbfu95ee Facebook Pay u8bbeu7f6eu3002");case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN:return V?h._("u8f93u5165u4f60u7684 Meta Pay PIN u7801u6765u7ee7u7eedu64cdu4f5cu3002"):h._("u8f93u5165u4f60u7684 Facebook Pay PIN u7801u5e76u7ee7u7eedu64cdu4f5cu3002");case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN:return V?h._("u8f93u5165u4f60u7684 Meta Pay PIN u7801u6765u7ee7u7eedu64cdu4f5cu3002"):h._("u8f93u5165u4f60u7684 Facebook Pay PIN u7801u5e76u7ee7u7eedu64cdu4f5cu3002");case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY:return V?h._("u8bf7u8f93u5165u4f60u7684 Meta Pay PIN u7801u6765u786eu8ba4u652fu4ed8u3002"):h._("u8bf7u8f93u5165u4f60u7684 Facebook Pay PIN u7801u6765u786eu8ba4u652fu4ed8u3002");case c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM:return U?h._("u8bf7u8f93u5165 Instagram u5bc6u7801u6765u91cdu7f6eu4f60u7684 PIN u7801u3002"):h._("u8bf7u8f93u5165 Facebook u5bc6u7801u6765u91cdu7f6eu4f60u7684 PIN u7801u3002");case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN:if(J===m.ENTER_PIN)return V?h._("u8f93u5165u65b0u7684 Meta Pay PIN u7801u3002"):h._("u8f93u5165u65b0u7684 Facebook Pay PIN u7801u3002");else return V?h._("u8f93u5165u65b0u7684 Meta Pay PIN u7801u3002"):h._("u8f93u5165u65b0u7684 Facebook Pay PIN u7801u3002");case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM:return U?h._("u8bf7u5148u8f93u5165 Instagram u5bc6u7801u518du7ee7u7eedu3002"):h._("u8bf7u5148u8f93u5165 Facebook u5bc6u7801u518du7ee7u7eedu3002");default:return""}};var W=function(a){if(a===ca)return h._("PIN u7801u9519u8befu3002u8bf7u91cdu7f6e PIN u7801u3002");return a<=da?h._({"*":"PIN u7801u9519u8befu3002u4f60u8fd8u6709{attempts}u6b21u5c1du8bd5u673au4f1au3002"},[h._plural(a),h._param("attempts",a)]):(D==null?void 0:D.length)===ea&&ra?null:h._("PIN u7801u9519u8befuff0cu8bf7u91cdu8bd5u3002")};p=function(a){Aa(""),u===c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN||u===c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN?J===m.ENTER_PIN?(E(a),K(m.CONFIRM_PIN)):a===D?(Boolean(I)?M?oa(P,a,I,r,O,Ka,$,t):(pa(d("PaymentsCometTransactionHubAPIUtils").prepareUpdatePIN(a,"",I,r,O),Ja(a),T),L.setFlowStep(d("FBPaymentsLoggerConstants").LoggerFlowStep.RESET_PIN_WITH_PASSWORD).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT).log()):Boolean(xa)?(M?la(P,a,r,O,Z,T,Ba,t):pa(d("PaymentsCometTransactionHubAPIUtils").prepareUpdatePIN(a,xa,"",r,O),Ja(a),T),L.setFlowStep(d("FBPaymentsLoggerConstants").LoggerFlowStep.RESET_PIN).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT).log()):M?ma(P,a,r,O,Z,T,t,s):na(d("PaymentsCometTransactionHubAPIUtils").prepareCreatePIN(a,r,O),R(a),T),H(null),C(!0)):(G(!0),H(h._("PIN u7801u4e0du4e00u81f4u3002")),c("setTimeout")(function(){G(!1)},o)):u===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN?(B(!0),E(a),H(null),z==="ACTIVE"?M?ja(a,r,O,Y,$,t):A(d("PaymentsCometTransactionHubAPIUtils").prepareSwitchPIN("DISABLED",r,a),La(a),T):z==="DISABLED"&&(M?ka(a,r,O,Y,$,t):A(d("PaymentsCometTransactionHubAPIUtils").prepareSwitchPIN("ACTIVE",r,a),La(a),T)),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT).log()):u===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN?(B(!0),E(a),ya(a),H(null),M?ia(["RESET_FBPAY_PIN"],{authFactorType:"PIN"},r,O,a,null,Y,$,t,s):ha(d("PaymentsCometTransactionHubAPIUtils").prepareVerifyPIN(r,a,O),Ma(a),T),L.setFlowStep(d("FBPaymentsLoggerConstants").LoggerFlowStep.VERIFY_PIN).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT).log()):u===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY&&(B(!0),E(a),H(null),M?ia(P,{authFactorType:"PIN"},r,O,a,null,Y,$,t,s):ha(d("PaymentsCometTransactionHubAPIUtils").prepareVerifyPIN(r,a,O),Ma(a),T))};var Qa=function(a){Aa(a),H(null)},X=function(a){H(null),va(!((a==null?void 0:a.length)>=1)),wa(a)},Ra=function(){B(!0),H(null),ga(d("PaymentsCometTransactionHubAPIUtils").prepareVerifyPassword(I,r,O),Oa,T)},Y=function(a){F(!0),H(null),u===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY||y===c("PaymentsCometTransactionHubPINFlowType").SWITCH_PIN?(q(a),w()):y===c("PaymentsCometTransactionHubPINFlowType").CHANGE_PIN&&(Ca(a),Pa())},Z=function(a){C(!1),K(m.CREATED_PIN),c("setTimeout")(function(){w(),q(a)},n)},$=function(a){a=a==null?void 0:a.remainingAttempts;a==null?(B(!1),G(!0),H(d("FBPayCometAuthString").GENERAL_ERROR),c("setTimeout")(function(){G(!1),E("")},o)):S(a)},Sa=u===c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN?j.jsx("div",{className:"x6prxxf x1s688f",children:j.jsx(c("CometLink.react"),{href:"https://www.facebook.com/help/1434403039959381",style:{color:"#1877F2"},target:"_blank",children:h._("u8be6u7ec6u4e86u89e3")})}):null,Ta=function(){switch(u){case c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN:case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN:if(qa)return Wa;else if(J===m.CREATED_PIN)return Xa;else return Va;case c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM:case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM:return Ua;case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY:default:return Va}},Ua=j.jsx("div",{className:"xh8yej3",children:j.jsx(c("FBPayECPFormTextInput.react"),{label:h._("u5bc6u7801"),onFieldChange:X,type:"password",value:I})}),Va=j.jsx("div",{className:"xu06os2 x1anpbxc",children:j.jsx(c("FBPaymentsPINInputFieldContainerV2.react"),{disabled:a,isDesktop:f,onNewAttempt:Qa,onPINEnter:p,pin:za,shake:sa,smallerCircle:!0})}),Wa=j.jsx(c("PaymentsCometSpinner.react"),{type:"empty"}),Xa=j.jsx(c("PaymentsCometSpinner.react"),{type:"checkmark"});X=u===c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM||u===c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM?j.jsx("div",{className:"xu06os2 x1anpbxc xh8yej3",children:j.jsx(c("FBPayECPActionButton.react"),{fbActionButton:{reduceEmphasis:!0},isDisabled:ua,label:h._("u7ee7u7eed"),onPress:Ra})}):null;f=Boolean(ta)?j.jsx("div",{className:"xw7yly9",children:j.jsx(c("FBPayECPText.react"),{fbColor:"negative",fbType:"bodyLink3",igText:{color:"errorOrDestructive"},children:ta})}):null;return j.jsxs(j.Fragment,{children:[j.jsxs("div",{className:"x6s0dn4 x78zum5 xdt5ytf xl56j7k x1cnzs8 xc73u3c xx6bls6 x5ib6vp x2b8uid",children:[j.jsx("div",{className:"x1d0ri9u",children:j.jsx(c("FBPayECPText.react"),{fbType:"headlineEmphasized3",igText:{weight:"semibold"},children:b()})}),j.jsxs("div",{className:"xieb3on xw7yly9",children:[j.jsx(c("FBPayECPText.react"),{fbType:"bodyLink3",children:e()}),Sa]}),Ta(),f,X,v()]}),a&&j.jsx(c("PaymentsCometOverlayLoadingSpinner.react"),{})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
PaymentsCometCheckoutPriceTable",["fbt","ix","AllPaymentTypeFields","CometImage.react","CometRow.react","CometRowItem.react","FDSMenuSeparator.react","FDSText.react","FDSTooltip.react","PaymentsCometCheckoutAPIUtils","PaymentsCometCheckoutContext","PaymentsCometCheckoutSectionTitle","getJSEnumSafe","gkx","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react")),l=j.useContext,m={disclaimerItem:{paddingTop:"xyqdw3p",paddingEnd:"x10ogl3i",paddingBottom:"xg8j3zb",paddingStart:"x1k2j06m",$$css:!0},image:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"xng8ra",objectFit:"xl1xv1r",width:"x1247r65",$$css:!0}};function a(a){a=a.priceSubtables;a=a===void 0?[]:a;var b=l(c("PaymentsCometCheckoutContext"));b=b.state;var d=b.totalPrice;d=d||{};var e=d.display_price;d=d.label;b=n(b);return k.jsxs(k.Fragment,{children:[k.jsx(c("FDSMenuSeparator.react"),{}),a.map(o),k.jsxs("div",{className:"x1l90r2v x1y1aw1k",children:[k.jsx(r,{isTotal:!0,leftContent:d||"",rightContent:e||""}),b!=null&&k.jsx(r,{isTotal:!1,leftContent:"",rightContent:b})]})]})}a.displayName=a.name+" [from "+f.id+"]";function n(a){var b=a.showTaxDisclaimer,e=c("getJSEnumSafe")(c("AllPaymentTypeFields"),a.paymentType);e=e==="mor_fan_funding"&&c("gkx")("23837");a=d("PaymentsCometCheckoutAPIUtils").getDigitalCommerceOmnibusDirectiveData(a);a=a.isOmnibusUser;return b!==!0?e||a?k.jsx(q,{title:h._("u6240u6709u4ef7u683cu5305u542bu6240u6709u9002u7528u7a0eu8d39"),tooltip:null}):null:k.jsx(q,{title:e?h._("u5916u52a0u9002u7528u7a0eu8d39"):h._("u9644u52a0u7a0e"),tooltip:h._("u67e5u770bu7a0eu540eu603bu989du6536u636eu3002")})}n.displayName=n.name+" [from "+f.id+"]";function o(a,b){var d,e=l(c("PaymentsCometCheckoutContext"));e=e.state;a=a.price_lists||[];var f=a.some(function(a){return a.item!=null})||e.paymentType==="NMOR_EVENT_TICKETING"&&b===0,g=!1;((d=e.checkoutProps)==null?void 0:d.extraData)!=null&&((d=e.checkoutProps)==null?void 0:(d=d.extraData)==null?void 0:d.negotiable_price_offer_data)!=null&&(g=!0);d=f?h._("u5546u54c1u8be6u60c5"):g?h._("u8ba2u5355u603bu989duff08u5982u83b7u63a5u53d7uff09"):h._("u8ba2u5355u603bu989d");g=f?k.jsx("div",{className:"x1y1aw1k",children:k.jsx(c("FDSMenuSeparator.react"),{})}):null;var i=e==null?void 0:(e=e.checkoutProps)==null?void 0:(e=e.personalization)==null?void 0:e.personalizationRequestFromBuyer;return k.jsxs("div",{children:[k.jsx("div",{className:"xwib8y2",children:k.jsx(c("PaymentsCometCheckoutSectionTitle"),{title:d})}),a.map(function(a,b){var c=a.display_price,d=a.item,e=a.label;a=a.original_price;var g=d||{},j=g.item_image_url,l=g.subsubtitle;g=g.title;var m=i!=null?{body:i,title:h._("u5b9au5236u8981u6c42")}:null;d=d==null?e:k.jsx(p,{footer:m,imageURL:j||"",subtitle:l||"",title:g||""});return k.jsx(r,{leftContent:d,rightContent:f&&Boolean(a)?a:c||""},b)}),g]},b)}o.displayName=o.name+" [from "+f.id+"]";function p(a){var b=a.footer,d=a.imageURL,e=a.subtitle;a=a.title;return k.jsxs(c("CometRow.react"),{paddingHorizontal:0,paddingTop:0,verticalAlign:"top",children:[k.jsx(c("CometRowItem.react"),{children:k.jsx(c("CometImage.react"),{height:60,src:d,xstyle:m.image})}),k.jsxs(c("CometRowItem.react"),{children:[k.jsx("div",{className:"xwib8y2 xwl9fdd",children:k.jsx(c("FDSText.react"),{color:"primary",type:"headlineEmphasized3",children:a})}),k.jsx(c("FDSText.react"),{color:"secondary",type:"body2",children:e}),b!=null?k.jsxs(k.Fragment,{children:[k.jsx("div",{className:"x1y1aw1k xwl9fdd",children:k.jsx(c("FDSText.react"),{color:"primary",type:"bodyLink4",children:b.title})}),k.jsx("div",{className:"x1iorvi4 xwl9fdd",children:k.jsx(c("FDSText.react"),{color:"secondary",type:"body4",children:b.body})})]}):null]})]})}p.displayName=p.name+" [from "+f.id+"]";function q(a){var b=a.title;a=a.tooltip;return k.jsxs(c("CometRow.react"),{paddingHorizontal:0,paddingTop:0,verticalAlign:"top",children:[k.jsx(c("CometRowItem.react"),{xstyle:m.disclaimerItem,children:k.jsx(c("FDSText.react"),{color:"secondary",type:"body3",children:b})}),a!=null&&k.jsx(c("CometRowItem.react"),{xstyle:m.disclaimerItem,children:k.jsx(c("FDSTooltip.react"),{align:"middle",delayMs:100,tooltip:a,children:k.jsx(c("CometImage.react"),{src:i("479819")})})})]})}q.displayName=q.name+" [from "+f.id+"]";function r(a){var b=a.isTotal;b=b===void 0?!1:b;var d=a.leftContent;a=a.rightContent;var e=b?"primary":"secondary";b=b?"bodyLink2":"body2";var f=typeof d==="string"?"checkout_price_table_label"+d:"";f=typeof d==="string"&&typeof a==="string"?"checkout_price_table_label"+d+a:"";return k.jsxs(c("CometRow.react"),{paddingHorizontal:16,verticalAlign:"top",children:[k.jsx(c("CometRowItem.react"),{expanding:!0,children:typeof d==="object"?d:k.jsx(c("FDSText.react"),{color:e,testid:void 0,type:b,children:d})}),k.jsx(c("CometRowItem.react"),{children:k.jsx("div",{className:"xk8lq53",children:typeof a==="object"?a:k.jsx(c("FDSText.react"),{color:e,testid:void 0,type:b,children:a})})})]})}r.displayName=r.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
Payments3DSCardinalInitComponent.react",["FBPayUPLLogger","FBPaymentsModulesAPIUtils","FBPaymentsSpinner.react","FlexLayout.react","Paymentes3DSUtils","PaymentsCardinalDeviceDataCollectionComponent.react","PaymentsCardinalStepUpChallengeContainer","ReactDOMComet","SecurePostMessage","Text","URI","goURI","react","usePayments3DSCardinalFetchStepUpAuthURLMutation"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useEffect,k=b.useMemo,l=b.useRef,m=b.useState,n="https://checkout.instagram.com/",o="https://www.instagram.com";function p(){var a;return((a=window.origin)==null?void 0:a.startsWith(o))?n:window.parent.origin}function a(a){var b=a.actionGroupID,e=a.appUrl,f=a.cardinalDeviceDataCollectionUrl,g=a.clientState,n=a.jwtToken,o=a.paymentType,q=a.returnMethod,r=a.sessionID,s=a.productID,t=c("usePayments3DSCardinalFetchStepUpAuthURLMutation")(),u=l(!0);a=m(!1);var v=a[0],w=a[1];a=k(function(){var a=new(c("FBPayUPLLogger"))(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(o.toLowerCase()),d("Paymentes3DSUtils").getUserPlatform(),r);return{logger:a}},[o,r]);var x=a.logger,y=i(function(a){var b;x.logClientLoadThreedsUnificationInit({product_id:(b=s)!=null?b:"",view_name:"complete_redirect_3ds"},{returnMethod:q});if(q==="post_message"){b=p();d("SecurePostMessage").sendMessageToSpecificOrigin(window.parent,{eventName:d("Paymentes3DSUtils").THREEDS_RESPONSE_MESSAGE,data:a},b)}else if(q==="app_url"&&e!=null){b=window.atob(e);b=new(c("URI"))(b).addQueryData(a).toString();c("goURI")(b)}},[e,x,s,q]),z=i(function(a){a={auth_result:"Success",client_state:g,step_up_complete_token:a};y(a);x.logClientFetchThreedsUnificationSuccess({product_id:(a=s)!=null?a:"",view_name:"complete_3ds"})},[g,y,x,s]),A=i(function(){var a=d("Paymentes3DSUtils").get3DSUserFacingErrorData();a=babelHelpers["extends"]({},a,{auth_result:"Failure",client_state:g});y(a);x.logClientFetchThreedsUnificationFail({product_id:(a=s)!=null?a:"",view_name:"complete_3ds"})},[g,y,x,s]);a=i(function(a){var e;a={session_id:r,payment_type:o,actionGroupId:b,df_ref_id:a,screen_height:window.innerHeight,screen_width:window.innerWidth,product_id:s};x.logClientFetchThreedsUnificationInit({product_id:(e=s)!=null?e:"",view_name:"fetch_step_up_auth_url"});t(a,function(a){var b;a=(a=a==null?void 0:a.threeds_cardinal_fetch_step_up_auth_url)!=null?a:{};var e=a.status,f=a.step_up_jwt,g=a.step_up_url;a=a.md;f=f==null?void 0:f.token;x.logClientFetchThreedsUnificationSuccess({product_id:(b=s)!=null?b:"",view_name:"fetch_step_up_auth_url"},{status:(b=e)!=null?b:""});if(e===d("Paymentes3DSUtils").ThreeDSLookupStatus.PENDING&&g!=null&&f!=null&&a!=null){w(!1);b=document.createElement("div");document.body&&document.body.prepend(b);d("ReactDOMComet").createRoot(b).render(h.jsx(c("PaymentsCardinalStepUpChallengeContainer"),{md:a,stepUpJwt:f,stepUpUrl:g,onError:A,onSuccess:function(a){z(a)},logger:x,productID:s}))}else e===d("Paymentes3DSUtils").ThreeDSLookupStatus.COMPLETED?z():e===d("Paymentes3DSUtils").ThreeDSLookupStatus.FAILED&&A()},function(){var a;A();x.logClientFetchThreedsUnificationFail({product_id:(a=s)!=null?a:"",view_name:"fetch_step_up_auth_url"})})},[r,o,b,x,s,t,A,z]);j(function(){w(!0)},[]);j(function(){if(u.current===!0){var a;u.current=!1;x.logClientRenderThreedsUnificationDisplay({view_name:"3ds_cardinal_init_component",product_id:(a=s)!=null?a:""},{action_group_id:b})}},[b,f,n,a,z,A,x,s]);var B=h.jsx("div",{className:"x6s0dn4 x78zum5 xl56j7k x1jn0hjm","data-testid":void 0,children:h.jsxs(c("FlexLayout.react"),{direction:"vertical",align:"center",children:[h.jsx(c("FBPaymentsSpinner.react"),{}),h.jsx("div",{className:"x1anpbxc",children:h.jsx(c("Text"),{style:{fontSize:20,fontWeight:"500"},children:d("Paymentes3DSUtils").THREEDS_LOADING_BODY})}),h.jsx("div",{className:"x1k70j0n",children:h.jsx(c("Text"),{style:{fontSize:16,fontWeight:"200"},children:d("Paymentes3DSUtils").THREEDS_LOADING_SUB_BODY})})]})});return h.jsxs(h.Fragment,{children:[v&&B,h.jsx(c("PaymentsCardinalDeviceDataCollectionComponent.react"),{cardinalDeviceDataCollectionUrl:f,jwtToken:n,onError:A,onSuccess:a,logger:x,productID:s})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceCheckoutRootContainer.react",["AllPaymentTypeFields","CommerceCheckoutActionLogger","CommerceCheckoutContext","CommerceCheckoutDialogWrapper.react","CommerceCheckoutErrorScreen.react","CommerceCheckoutHooks","CommerceCheckoutLoadingScreen.react","CommerceCheckoutLoggingContext","CommerceCheckoutLoggingUtils","CommerceCheckoutOrderConfirmationScreen.react","CommerceCheckoutReducer","CommerceCheckoutScreen.react","CommerceCheckoutState","CommerceCheckoutTypes.flow","CommerceCheckoutUpdatePaymentScreen.react","gkx","react","useCommerceCheckoutInformationMutation","useCreateCommerceCheckoutSessionMutation"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useContext,j=b.useEffect,k=b.useMemo,l=b.useReducer,m=b.useRef,n=b.useState;function a(a){var b,e=a.checkoutProps,f=a.dialogProps,g=a.entrypoint,i=a.loggingSessionId,j=a.onClose;a=l(c("CommerceCheckoutReducer"),d("CommerceCheckoutState").getInitialState(e,i,f));var m=a[0],n=a[1];a=k(function(){return{dispatch:n,state:m}},[m]);var p=(b=c("AllPaymentTypeFields")[e==null?void 0:e.paymentType.toString()])!=null?b:"unknown",q=m.checkoutFlow;b=k(function(){var a;a=(a=(a=e.products)==null?void 0:a.map(function(a){return a.product_id}))!=null?a:[];a=new(c("CommerceCheckoutActionLogger"))(p,q,a,[e.receiverID],i,g,e.extraData);return{logger:a}},[e.products,e.receiverID,e.extraData,p,q,i,g]);var r=b.logger,s=function(){r.logUserClickCheckoutExit(),j()};return h.jsx(c("CommerceCheckoutContext").Provider,{value:a,children:h.jsx(c("CommerceCheckoutLoggingContext").Provider,{value:b,children:h.jsx(c("CommerceCheckoutDialogWrapper.react"),{dialogProps:(a=f)!=null?a:{},onClose:s,children:h.jsx(o,{checkoutProps:e,loggingSessionId:i,onClose:s})})})})}a.displayName=a.name+" [from "+f.id+"]";function o(a){var b=a.checkoutProps,e=a.loggingSessionId;a=a.onClose;var f=i(c("CommerceCheckoutContext")),g=f.dispatch;f=f.state;var k=i(c("CommerceCheckoutLoggingContext")),l=k.logger,o=m(!1);k=d("CommerceCheckoutHooks").useCheckoutCurrentScreen();var r=f.checkoutSessionID,s=f.couponCodeTextInput,t=f.requiresCheckoutInfoRefresh,u=t===void 0?!1:t,v=f.selectedCredential,w=f.selectedDeliveryOptionID,x=f.selectedDeliveryOptionIDs,y=f.selectedShippingAddressID,z=(t=f.checkoutProps)==null?void 0:(f=t.extraData)==null?void 0:f.products;t=n(!0);var A=t[0],B=t[1],C=d("CommerceCheckoutHooks").useHasChanged(x),D=d("CommerceCheckoutHooks").useMutationWithLoading(c("useCreateCommerceCheckoutSessionMutation")),E=d("CommerceCheckoutHooks").useMutationWithLoading(c("useCommerceCheckoutInformationMutation"));j(function(){var a=z;if(A||u){o.current||(l.logClientCheckoutInit(),l.logClientLoadCheckoutInit(),o.current=!0);var f=d("CommerceCheckoutLoggingUtils").getCouponState(s);l.logClientEditCouponInit(f);C&&l.logClientChangeShippingMethodInit();a={checkout_session_id:r,coupon_code:s,extra_data:JSON.stringify(babelHelpers["extends"]({},b.extraData,{products:a})),is_dynamic_auth_available:!1,logging_id:e,payment_order_id:b.orderID,payment_type:b.paymentType,products:b.products,receiver_id:b.receiverID,selected_delivery_option_id:w,selected_delivery_option_ids:x,selected_payment_credentials:v?[{credential_id:v.credentialID,credential_type:q[v.credentialType]}]:null,selected_shipping_address_id:y};c("gkx")("6854")&&A&&r==null&&D(a,{onCompleted:function(a){a=(a=a.create_commerce_checkout_session)==null?void 0:a.checkout_session_id;a!=null&&g({checkoutSessionID:a,type:"SET_CHECKOUT_SESSION_ID"})},onError:function(a){l.logClientLoadCheckoutFail({error_code:a.code,error_description:a.description,error_title:a.message}),g({type:"LOAD_CHECKOUT_INFO_UNKNOWN_ERRORS"})}});E(a,{onCompleted:function(a){var b;if(((b=a.checkout_information_mutation)==null?void 0:b.payments_error)!=null){b=(b=a.checkout_information_mutation)==null?void 0:b.payments_error;g({paymentsUserFacingError:b,type:"LOAD_CHECKOUT_INFO_PAYMENT_ERRORS"});l.logClientLoadCheckoutFail(b);l.logClientEditCouponFail(f,b);C&&l.logClientChangeShippingMethodFail()}else l.logClientLoadCheckoutSuccess(),l.logClientEditCouponSuccess(f),C&&l.logClientChangeShippingMethodSuccess(),g({checkoutInformation:a,isInitialLoad:A,logger:l,type:"LOAD_CHECKOUT_INFO_SUCCESS"});B(!1)},onError:function(a){l.logClientLoadCheckoutFail({error_code:a.code,error_description:a.description,error_title:a.message}),g({type:"LOAD_CHECKOUT_INFO_UNKNOWN_ERRORS"}),B(!1)}})}},[r,D,E,b,z,A,u,e,g,w,x,v,y,s,l,C]);return A?h.jsx(c("CommerceCheckoutLoadingScreen.react"),{}):p(k,a)}function p(a,b){switch(a.type){case d("CommerceCheckoutTypes.flow").CheckoutScreenType.ORDER_CONFIRMATION:return h.jsx(c("CommerceCheckoutOrderConfirmationScreen.react"),{onCloseCheckout:b});case d("CommerceCheckoutTypes.flow").CheckoutScreenType.ERROR:case d("CommerceCheckoutTypes.flow").CheckoutScreenType.UNKNOWN:return h.jsx(c("CommerceCheckoutErrorScreen.react"),{onCloseCheckout:b});case d("CommerceCheckoutTypes.flow").CheckoutScreenType.UPDATE_ORDER_PAYMENT:return h.jsx(c("CommerceCheckoutUpdatePaymentScreen.react"),{});default:return h.jsx(c("CommerceCheckoutScreen.react"),{})}}p.displayName=p.name+" [from "+f.id+"]";var q={credit_card:"CREDIT_CARD",new_credit_card:"NEW_CREDIT_CARD",new_paypal_ba:"NEW_PAYPAL_BA",paypal_ba:"PAYPAL_BA"};g["default"]=a}),98);
-----
FBPaymentSettingsReceiptContainer.react",["cx","fbt","AllPaymentTypeFields","Env","FBPaymentSettingsHistoryAPI","FBPaymentTransactionType","FBPaymentsLoadingView.react","FBPaymentsLogger","FBPaymentsLoggerConstants","FBPaymentsReceiptApp.react","FBPaymentsReceiptBackButton.react","FBPaymentsReceiptUpdateDialogComponent.react","FBPaymentsSubscriptionDetails.react","NmorOrderType","NmorOrderTypeName","PaymentSettingsBOFReceipt.react","PaymentSettingsBalanceRedemptionPaymentReceipt.react","PaymentSettingsComponentFlowReceipt.react","PaymentSettingsDonationReceipt.react","PaymentSettingsGameBundleReceipt.react","PaymentSettingsGiftPaymentReceipt.react","PaymentSettingsNmorDonationReceipt.react","PaymentSettingsOculusReceipt.react","PaymentSettingsP2PPaymentRequestReceiptContainer.react","PaymentSettingsP2PReceipt.react","PaymentSettingsPEPaymentReceipt.react","keyMirror","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=c("keyMirror")(c("AllPaymentTypeFields"));a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h-----
PaymentsComet3DSDialog.react",["fbt","Actor","CometCardedDialogLegacy.react","CometEventListener","FBPayUPLLogger","FBPaymentsModulesAPIUtils","PaymentsCometOverlayLoadingSpinner.react","react","usePaymentsCometGet3DSAuthenticateURLMutation","usePaymentsCometGet3DSAuthenticateURLWithCSCMutation","usePaymentsCometGetAcquirerMerchantInfo"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useEffect,k=b.useRef,l=b.useState;function a(a){var b=a.onClose;a=a.props;var e=a.acquirerBin,f=a.acquirerMid,g=a.amount,m=a.countryCode,n=a.credentialID,o=a.creditCardType,p=a.csc,q=a.currency,r=a.itemType,s=a.merchantName,t=a.orderId,u=a.receiverId;a=a.sessionId;var v=l(null),w=v[0],x=v[1];v=l([]);var y=v[0],z=v[1];v=l(!0);var A=v[0],B=v[1],C=c("usePaymentsCometGet3DSAuthenticateURLMutation")(),D=c("usePaymentsCometGet3DSAuthenticateURLWithCSCMutation")(),E=k(null);v=d("Actor").useActor();v=v[0];var F={cardinalStatus:null,refID:"0",status:"FAILED",threeDSTransactionData:{cavv:"",dsTransactionID:"",eciFlag:"",threeDsSecureVersion:"",xid:""},transactionID:""},G=new(c("FBPayUPLLogger"))(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(r.toLowerCase()),"comet",a),H=function(a){var b;b=(b=a.authenticate_using_3ds_url)==null?void 0:(b=b.params)==null?void 0:b.map(function(a){return{key:a.key,value:a.value}});x((a=a.authenticate_using_3ds_url)==null?void 0:a.url);z((a=b)!=null?a:[]);B(!1)};j(function(){var a=c("CometEventListener").listen(window,"message",function(a){a.data.eventName==="3DS_RESPONSE_MESSAGE"&&b(a.data)});return function(){a&&a.remove()}},[b,B]);var I=c("usePaymentsCometGetAcquirerMerchantInfo")({onError:function(){b(F)},onSuccess:function(a,c,d){a={acquirerMerchantInfo:a==null&&c==null&&d==null?null:{acquirer_bin:(a=a)!=null?a:"",acquirer_mid:(a=c)!=null?a:"",merchant_name:(c=d)!=null?c:""},countryCode:m,credentialID:n,currencyAmount:{amount:g,currency:q},itemType:r};p!=null?D(babelHelpers["extends"]({csc:p,sessionID:G.getSessionID()},a),function(a){H(a)},function(){b(F)}):C(babelHelpers["extends"]({},a,{sessionID:G.getSessionID()}),function(a){H(a)},function(){b(F)})}});j(function(){if(w===null){var a;G.logClientLoadThreedsInit({target_name:"acquirer_merchant_info_mutation"},{currency:q,order_id:(a=t)!=null?a:"",raw_credential_id:n,receiver_id:(a=u)!=null?a:""});I({acquirerBin:e,acquirerMid:f,credentialID:n,creditCardType:o||"",currency:q,merchantName:s||"",orderId:t||"",paymentType:r,receiverId:u||"",sessionID:G.getSessionID()})}},[D,C,w,m,g,q,n,r,p,I,e,f,o,s,t,u]);j(function(){if(E!==null&&E.current!==null&&w!=null){var a;(a=E.current)==null?void 0:a.submit()}},[w]);return i.jsxs(c("CometCardedDialogLegacy.react"),{onClose:function(){G.logUserClickThreedsAtomic({target_name:"challenge_close"}),b(F)},title:h._("u9a8cu8bc1u5361"),titleHorizontalAlignment:"center",withCloseButton:!0,children:[A&&i.jsx(c("PaymentsCometOverlayLoadingSpinner.react"),{shouldShowOverlay:!1}),i.jsxs("form",{action:w,method:"POST",ref:E,target:"3ds2_iframe",children:[y.map(function(a){return i.jsx("input",{name:a.key,type:"hidden",value:a.value},a.key)}),i.jsx("input",{name:"user_id",type:"hidden",value:v},"user_id")]}),i.jsx("iframe",{className:"x76ihet xwmqs3e x112ta8 xxxdfa6 x1jn0hjm x1qrby5j",name:"3ds2_iframe"})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CometFBPaySupportDialog.react",["fbt","AllPaymentTypeFields","CareCometSupportContext","CareFBPaySupportRef","CometFBPaySupportDialogContent.react","CometFBPaySupportDialogQuery.graphql","CometFBPaySupportTransactionInfo.react","CometMultiStepDialogLegacy.react","CometRelay","FBPaySupportDialogState","PaymentsCareLoggingContext","PaymentsCareSupportFlowTypeUtils.facebook","PaymentsCareUPLLogger","getJSEnumSafe","react","useQualityMeasurementDialogTrigger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useEffect,l=e.useMemo,m=e.useReducer,n=e.useRef,o=i!==void 0?i:i=b("CometFBPaySupportDialogQuery.graphql");function p(a){a=c("getJSEnumSafe")(c("AllPaymentTypeFields"),a.paymentType);return(a=a)!=null?a:"unknown"}function a(a){var b=a.props;a=a.queries;var e=a.loggingDataQueryRef,f=a.supportFlowQueryRef;a=a.transactionQueryRef;e=d("CometRelay").usePreloadedQuery(o,e);e=e.response;var g=e.context,i=e.loggingData,q=p(i),r=l(function(){var a=new(c("PaymentsCareUPLLogger"))(q,"comet",b.uplSessionID);return{logger:a}},[q,b.uplSessionID]),s=a.variables.transactionID,t=(e=f.variables.flowData)==null?void 0:e.commerce_account_id;e=b.referrer?c("CareFBPaySupportRef").getName(b.referrer):null;var u=(e=e)!=null?e:g.ref,v=l(function(){var a;a=(a=d("PaymentsCareSupportFlowTypeUtils.facebook").toJSEnum(i.supportFlowType))!=null?a:"unknown";return{commerceAccountID:t,extraData:typeof u==="string"?{ref:u}:{},flowContext:{cms_folder_id:g.folderID,cms_obj_id:g.objID,name:g.name,ref:u},supportFlowType:a,transactionID:s}},[i,s,g,t,u]);e=m(d("FBPaySupportDialogState").reducer,d("FBPaySupportDialogState").getInitialState());var w=e[0],x=e[1];e=l(function(){return{dialogState:w,dispatch:x}},[w,x]);var y=n(!0);k(function(){if(y.current===!0){var a;y.current=!1;r.logger.logClientLoadSupportflowInit({support_flow_type:v.supportFlowType,transaction_id:(a=v.transactionID)!=null?a:void 0,view_name:"comet_fbpay_support_dialog"},v.extraData)}},[r,y,v]);var z=function(a){x({pageIndex:a,type:d("FBPaySupportDialogState").ActionType.PAGE_UPDATE})},A=h._("Meta Pay u652fu6301"),B=j.jsx(c("CometFBPaySupportTransactionInfo.react"),{queryRef:a}),C=c("useQualityMeasurementDialogTrigger")((a=d("PaymentsCareSupportFlowTypeUtils.facebook").toJSEnum(i.supportFlowType))!=null?a:"unknown","FBPAY","USER",!1,new Map([]),b.onClose);a=function(){w.didSubmitSupportCase!==!0?C():b.onClose()};return j.jsx(c("PaymentsCareLoggingContext").Provider,{value:r,children:j.jsx(d("CareCometSupportContext").CareCometSupportContext.Provider,{value:v,children:j.jsx(d("FBPaySupportDialogState").DialogStateContext.Provider,{value:e,children:j.jsx(c("CometMultiStepDialogLegacy.react"),{onClose:a,onPageChange:z,title:A,withCloseButton:b.hideCloseButton!==!0,withDeprecatedStyles:!1,children:function(a){return j.jsx(c("CometFBPaySupportDialogContent.react"),{pushPage:a,supportFlowQueryRef:f,title:A,transactionInfo:B})}})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
FBEUnifiedBusinessLoginPaymentsUtils",["fbt","invariant","$InternalEnum","AdsCurrencyFormatter","AllPaymentTypeFields","CHEXSupportedCountry","CommerceStringUtils","CountryConstants","CurrencyConstants","DirectDebitBankAccountType","DirectDebitBankCodeType","FBEUnifiedBusinessLoginLinks","FBEUnifiedBusinessLoginPaymentsInfoValidator","FBEUnifiedBusinessLoginTypes","Link.react","LocalDate","MerchantCategoryCode","MerchantCategoryCodeDescriptions","PaymentCompanyType","SearchableEntry","TaxIdType","USAStateAbbreviations","formatDate","gkx","isEmail","justknobx","keyMirror","nullthrows","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=c("keyMirror")(c("AllPaymentTypeFields")),l=c("keyMirror")(c("TaxIdType")),m=c("keyMirror")(c("MerchantCategoryCode")),n=c("keyMirror")(c("PaymentCompanyType"));function o(a){return a.replace(/D/g,"")}function a(a,b,c){b=b;var e=a;switch(a){case d("FBEUnifiedBusinessLoginTypes").FormFieldName.FirstName:case d("FBEUnifiedBusinessLoginTypes").FormFieldName.LastName:case d("FBEUnifiedBusinessLoginTypes").FormFieldName.MiddleName:return babelHelpers["extends"]({},b,{legalName:babelHelpers["extends"]({},b.legalName,(a={},a[e]=c,a))});case d("FBEUnifiedBusinessLoginTypes").FormFieldName.BusinessName:case d("FBEUnifiedBusinessLoginTypes").FormFieldName.BusinessType:case d("FBEUnifiedBusinessLoginTypes").FormFieldName.Ein:return babelHelpers["extends"]({},b,(a={},a[e]=c,a));case d("FBEUnifiedBusinessLoginTypes").FormFieldName.Ssn:return babelHelpers["extends"]({},b,(a={},a[e]=o(c),a));case d("FBEUnifiedBusinessLoginTypes").FormFieldName.Birthdate:return babelHelpers["extends"]({},b)}}function e(a){return a!=null&&a.month!=null&&a.day!=null?new(c("LocalDate"))(a==null?void 0:a.year,a==null?void 0:a.month,a==null?void 0:a.day):null}var p=Object.keys(c("MerchantCategoryCode")).filter(function(a){return a!==m.NOT_SPECIFIED}).sort().map(function(a){return new(c("SearchableEntry"))({title:c("MerchantCategoryCodeDescriptions")[a],uniqueID:a})});function f(){return p}function q(a){return p.find(function(b){return b.getUniqueID()===a})}function r(a){return a==null?!1:/^[0-9]{8}$/.test(a)}function s(a){switch(a){case d("FBEUnifiedBusinessLoginTypes").ChequeImage.ACCOUNT:return d("FBEUnifiedBusinessLoginLinks").CHEQUE_IMAGE_ACCOUNT_NUMBER_URI;case d("FBEUnifiedBusinessLoginTypes").ChequeImage.ROUTING:return d("FBEUnifiedBusinessLoginLinks").CHEQUE_IMAGE_ROUTING_NUMBER_URI;case d("FBEUnifiedBusinessLoginTypes").ChequeImage.DEFAULT:return d("FBEUnifiedBusinessLoginLinks").CHEQUE_IMAGE_URI}}var t=h._("u514du9500u552eu624bu7eedu8d39u81f3{onsite fee start date}",[h._param("onsite fee start date",c("formatDate")(c("justknobx")._("293"),"Y",{utc:!0}))]),u=h._("u4e3au4e86u52a9u4f60u53d6u5f97u4e1au52a1u6210u529fuff0cu6211u4eecu76eeu524du5df2u53d6u6d88u6807u51c6u9500u552eu624bu7eedu8d39u3002{onsite fee start date}u4ee5u524duff0cu6240u6709u6807u8bb0u5df2u53d1u8d27u7684u8ba2u5355u90fdu5c06u514du9664u8fd9u9879u8d39u7528u3002",[h._param("onsite fee start date",c("formatDate")(c("justknobx")._("293"),"F j, Y",{utc:!0}))]),v=c("AdsCurrencyFormatter").formatCurrency(c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR,40),w=c("AdsCurrencyFormatter").formatCurrency(c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR,800),x=h._("u5bf9u4e8eu5728{onsite fee start date}u540eu6807u8bb0u4e3au201cu5df2u53d1u8d27u201du7684u8ba2u5355uff0cu4f60u5c06u652fu4ed8 5u0025 u7684{=m5}u3002u91d1u989du4e0du8d85u8fc7{seller_fee_min_threshold_amount}u7684u4ea4u6613u5c06u6536u53d6{seller_fee_flat_amount}u7684u56fau5b9au624bu7eedu8d39u3002",[h._param("onsite fee start date",c("formatDate")(c("justknobx")._("293"),"F j, Y",{utc:!0})),h._param("seller_fee_min_threshold_amount",w),h._param("seller_fee_flat_amount",v),h._implicitParam("=m5",j.jsx(c("Link.react"),{href:d("FBEUnifiedBusinessLoginLinks").SELLER_FEES,children:h._("u6211u4eecu7684u6807u51c6u9500u552eu624bu7eedu8d39")}))]),y=h._("u5bf9u4e8eu5728{onsite fee start date}u540eu6807u8bb0u4e3au201cu5df2u53d1u8d27u201du7684u8ba2u5355uff0cu4f60u5c06u652fu4ed8 5u0025 u7684{=m5}u3002u91d1u989du4e0du8d85u8fc7{seller_fee_min_threshold_amount}u7684u4ea4u6613u5c06u6536u53d6{seller_fee_flat_amount}u7684u56fau5b9au624bu7eedu8d39u3002",[h._param("onsite fee start date",c("formatDate")(c("justknobx")._("293"),"F j, Y",{utc:!0})),h._param("seller_fee_min_threshold_amount",w),h._param("seller_fee_flat_amount",v),h._implicitParam("=m5",j.jsx(c("Link.react"),{href:d("FBEUnifiedBusinessLoginLinks").SELLER_FEES_MSITE,children:h._("u6211u4eecu7684u6807u51c6u9500u552eu624bu7eedu8d39")}))]);w=h._("u4f60u5c06u4e3au6bcfu7b14u4ea4u6613u652fu4ed8 5u0025 u7684u9500u552eu624bu7eedu8d39u3002u91d1u989du4e0du8d85u8fc7{seller_fee_min_threshold_amount}u7684u4ea4u6613u5c06u6536u53d6{seller_fee_flat_amount}u7684u56fau5b9au624bu7eedu8d39u3002",[h._param("seller_fee_min_threshold_amount",w),h._param("seller_fee_flat_amount",v)]);v=h._("u70b9u51fbu201cu7ee7u7eedu201duff0cu5373u8868u793au4f60u540cu610fu6211u4eecu7684{=m1}uff0cu5176u4e2du89c4u5b9auff0cu5fc5u987bu9075u5b88u652fu4ed8u5904u7406u673au6784u7684u6761u6b3eu3002u4e3au4e86u652fu6301 Facebook u7535u5546u529fu80fdu8fd0u4f5cuff0cu6211u4eecu4f1au5b58u50a8u4f60u7684u4fe1u606fuff0cu5e76u628au4fe1u606fu5206u4eabu7ed9u652fu4ed8u5904u7406u673au6784u3002",[h._implicitParam("=m1",j.jsx(c("Link.react"),{href:"/legal/commerce_product_merchant_agreement",target:"_blank",children:h._("u5356u65b9u534fu8bae")}))]);var z=/^[9](d){8}$/;function A(a){return a==null?!1:z.test(a)}function B(a,b){return a.trim().toUpperCase().localeCompare(b.trim().toUpperCase())===0}function C(a){return Object.keys(c("USAStateAbbreviations")).find(function(b){return B(b,a)||B(c("USAStateAbbreviations")[b],a)})}function D(){return{bankAccountNumber:"",bankAccountType:c("DirectDebitBankAccountType").CHECKING,bankCode:"",bankCodeType:c("DirectDebitBankCodeType").ROUTING,bankCountry:c("CountryConstants").UNITED_STATES,beneficiaryName:""}}function E(a,b){return babelHelpers["extends"]({},a,{birthdate:b.birthdate?null:h._("u4f60u7684u4ee3u8868u4ebau5fc5u987bu5e74u6ee1 18 u5c81"),businessName:b.businessName?null:h._("u5fc5u987bu8f93u5165u516cu53f8u540du79f0"),businessType:b.businessType?null:h._("u5fc5u987bu9009u62e9u516cu53f8u7c7bu578b"),ein:b.ein?null:h._("u5fc5u987bu8f93u5165u6709u6548u7684u96c7u4e3bu8eabu4efdu8bc6u522bu53f7u7801 (EIN)"),firstName:b.firstName?null:h._("u540du5b57u5305u542bu65e0u6548u5b57u7b26u6216u683cu5f0fu3002"),lastName:b.lastName?null:h._("u59d3u6c0fu5305u542bu65e0u6548u5b57u7b26u6216u683cu5f0fu3002"),middleName:b.middleName?null:h._("u4e2du95f4u540du5305u542bu65e0u6548u5b57u7b26u6216u683cu5f0fu3002"),ssn:b.ssn?null:h._("u5fc5u987bu8f93u5165u6709u6548u7684u793eu4f1au5b89u5168u53f7u7801u6216u4e2au4ebau7eb3u7a0eu4ebau8bc6u522bu53f7 (ITIN)")})}j=h._("u8bf7u6309u201cu6708/u65e5/u5e74u201du683cu5f0fu8f93u5165u65e5u671fu3002");function F(a){switch(a){case d("FBEUnifiedBusinessLoginTypes").FormFieldName.FirstName:case d("FBEUnifiedBusinessLoginTypes").FormFieldName.LastName:return d("FBEUnifiedBusinessLoginPaymentsInfoValidator").isValidRequiredName;case d("FBEUnifiedBusinessLoginTypes").FormFieldName.MiddleName:return d("FBEUnifiedBusinessLoginPaymentsInfoValidator").isValidOptionalName;case d("FBEUnifiedBusinessLoginTypes").FormFieldName.BusinessName:return d("FBEUnifiedBusinessLoginPaymentsInfoValidator").isValidBusinessName;case d("FBEUnifiedBusinessLoginTypes").FormFieldName.BusinessType:return function(a){return Object.prototype.hasOwnProperty.call(n,a)};case d("FBEUnifiedBusinessLoginTypes").FormFieldName.Ein:case d("FBEUnifiedBusinessLoginTypes").FormFieldName.Ssn:return d("FBEUnifiedBusinessLoginPaymentsInfoValidator").isValidTaxIdentificationNumber;case d("FBEUnifiedBusinessLoginTypes").FormFieldName.Birthdate:return function(){return!1}}}function G(a){var b,c;b=Number(a==null?void 0:(b=a.birthdate)==null?void 0:b.day);c=Number(a==null?void 0:(c=a.birthdate)==null?void 0:c.month);a=Number(a==null?void 0:(a=a.birthdate)==null?void 0:a.year);return d("FBEUnifiedBusinessLoginPaymentsInfoValidator").isValidDate({day:b,month:c,year:a})}var H=b("$InternalEnum").Mirrored(["City","Email","Invalid","PostalCode","Region","Street1","Street2"]);function I(a){switch(a){case"city":return H.City;case"region":return H.Region;case"street1":return H.Street1;case"street2":return H.Street2;case"postalCode":return H.PostalCode;default:return H.Invalid}}function J(a,b){return babelHelpers["extends"]({},a,{email:b.email?null:h._("u5fc5u987bu8f93u5165u6709u6548u90aeu7bb1u3002"),postalCode:b.postalCode?null:h._("u5fc5u987bu8f93u5165u6709u6548u90aeu7f16u3002"),street1:b.street1?null:h._("u5fc5u987bu8f93u5165u8857u9053u5730u5740u3002u7a0eu52a1u6587u4ef6u53efu80fdu4f1au5bc4u5230u8fd9u4e2au5730u5740uff0cu56e0u6b64u4e0du80fdu8f93u5165u90aeu653fu4fe1u7bb1u3002"),city:b.city?null:h._("u5fc5u987bu8f93u5165u57ceu5e02u3002"),region:b.region?null:h._("u5fc5u987bu8f93u5165u5ddeu3002")})}function K(a){switch(a){case c("CHEXSupportedCountry").FR:return/^[0-9]{5}$/;case c("CHEXSupportedCountry").GB:return/^[A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]?s?[0-9][A-Za-z]{2}$/;case c("CHEXSupportedCountry").US:return/^[0-9]{5}(?:-[0-9]{4})?$/;default:return/.*/}}function L(a,b){return(b||"").replace(/[^a-z0-9 ]+/gi," ").match(N(a))!==null}var M=new RegExp("\b(?:post(?:al)? (?:office |ofc )?bo?x|parcel (?:bo?x|locker)|po ?bo?x?|p o bo?x?|p ?o(?= ?\d))(?: ?\d| [a-z]*\d| ?$)","imu");function N(a){switch(a){case c("CHEXSupportedCountry").GB:case c("CHEXSupportedCountry").US:return M;case c("CHEXSupportedCountry").FR:default:return/$^/}}function O(a,b,e){e=e.trim();switch(b){case H.Email:return c("isEmail")(e);case H.PostalCode:return K(a).test(e);case H.Street1:return L(a,e)?!1:!d("CommerceStringUtils").isEmpty(e);case H.City:case H.Region:return!d("CommerceStringUtils").isEmpty(e);default:return!0}}var P={city:"",country:c("CountryConstants").UNITED_STATES,postalCode:"",region:"",street1:"",street2:""};function Q(a){return a==null||d("CommerceStringUtils").isEmpty(a.country)?P:a}var R=/^(d){4,17}$/;function S(a){return R.test(a)}function T(a,b){return a!==""&&a===b}function U(a,b){return babelHelpers["extends"]({},a,{accountNumber:b.accountNumber?null:h._("u5fc5u987bu8f93u5165u6709u6548u7684u94f6u884cu5e10u53f7"),accountName:b.accountName?null:h._("u4f60u9700u8981u8f93u5165u5e10u6237u6240u6709u8005u7684u5168u540d"),confirmAccountNumber:b.confirmAccountNumber?null:h._("u5fc5u987bu8f93u5165u4e0eu4e0au65b9u4e00u81f4u7684u94f6u884cu5e10u53f7u3002"),routingNumber:b.routingNumber?null:h._("u5fc5u987bu8f93u5165u6709u6548u6c47u6b3eu8defu7ebfu53f7u7801")})}function V(a,b,d,e,f,g,h,j){var m=c("gkx")("8265");if(!m)return null;m=c("nullthrows")(g.businessType);var o=null,p=null,q="",r=null;switch(m){case n.INDIVIDUAL_BUSINESS:case n.SOLE_PROPRIETOR:o=A(g.ssn)?l.ITIN:l.SSN;p=g.ssn;break;case n.CORPORATION:case n.PARTNERSHIP:case n.NON_PROFIT:case n.PRIVATE_CORPORATION:case n.PUBLIC_CORPORATION:q=g.businessName;o=l.EIN;r=g.ein;break;default:i(0,2719)}return{address:{city:b.city,country:b.country,postalCode:b.postalCode,region:b.region,street1:b.street1,street2:b.street2},alert_email:(b=d)!=null?b:"",bank_account_name:f.beneficiaryName,bank_account_number:f.bankAccountNumber,bank_country:f.bankCountry,bank_info:null,bank_routing_number:f.bankCode,birthdate:g.birthdate,business_name:q,cms_id:(d=a)!=null?d:"",company_type:m,country_code:c("CountryConstants").UNITED_STATES,currency_code:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR,legal_name:{first_name:g.legalName.firstName,middle_name:g.legalName.middleName,last_name:g.legalName.lastName},merchant_category_code:e,payment_type:k.NMOR_CHECKOUT_EXPERIENCES,paypal_fraudnet_id:j,provider_type:"BANK_ACCOUNT",ssn:p,state_tax_registration_numbers:((b=h)!=null?b:[]).map(function(a){return{state_code:c("USAStateAbbreviations")[a.USAState],tax_registration_number:a.regNum}}),tax_id:r,tax_id_type:o}}g.prepareSSNInput=o;g.createNextPayoutTaxInfoData=a;g.convertDateInputToLocalDate=e;g.getSearchableEntries=f;g.getEntryFromUniqueID=q;g.isTaxRegistrationNumberValid=r;g.getChequeImage=s;g.NO_SELLER_FEE_HEADER=t;g.NO_SELLER_FEE_DESCRIPTION=u;g.COVID_TEMPORARY_NO_SELLER_FEE_TEXT=x;g.COVID_TEMPORARY_NO_SELLER_FEE_TEXT_MSITE=y;g.SELLER_FEE_DISCLAIMER_TEXT=w;g.PAYMENT_PROCESSOR_DISCLAIMER_TEXT=v;g.isTaxIDITINFormat=A;g.getUSAStateFromString=C;g.getEmptySellerPayoutInfo=D;g.getBusinessInfoErrorMessages=E;g.BIRTHDATE_ERROR_MESSAGE=j;g.getValidatorForField=F;g.isValidDate=G;g.BusinessAddressFields=H;g.castFieldToBusinessAddressField=I;g.getErrorBusinessAddressInfoMessages=J;g.getPostalCodeRegexByCountry=K;g.isAddressPostOfficeBox=L;g.validateBusinessAddressField=O;g.maybeUseDefaultBusinessAddress=Q;g.getIsAccountNumberValid=S;g.getIsConfirmAccountNumberValid=T;g.getBankAccountErrors=U;g.convertPaymentsAndTaxInfoToGraphQL=V}),98);
-----
FBPaymentsSellerBonusTrackerContainer.react",["cx","AllPaymentTypeFields","FBPaymentsSellerBonusTracker.react","FBPaymentsSellerBonusTrackerContainerQuery.graphql","RelayAPIConfig","RelayFBEnvironment","RelayModern","keyMirror","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=b("RelayModern").QueryRenderer;b("RelayModern").graphql;var k=i||(i=b("react")),l=b("keyMirror")(b("AllPaymentTypeFields"));a=function(a){babelHelpers.inheritsLoose(c,a);function c(c){var d;d=a.call(this,c)||this;b("RelayAPIConfig").DO_NOT_USE_setActorID(c.pageID);return d}var d=c.prototype;d.render=function(){var a=this.props.compactView;return k.jsx(j,{environment:b("RelayFBEnvironment"),query:h!==void 0?h:h=b("FBPaymentsSellerBonusTrackerContainerQuery.graphql"),variables:{actorID:this.props.pageID,queryParams:{origin:this.props.origin,product_type:l.NMOR_PAGES_COMMERCE,thread_id:this.props.buyerID}},render:function(c){c.error;c=c.props;c=((c=c)!=null?(c=c.list)!=null?c.banners:c:c)||[];return c.length===0?null:k.jsx("div",{className:"_1uzl"+(a?" _6hj2":""),children:c.map(function(c,d){return k.jsx(b("FBPaymentsSellerBonusTracker.react"),{banner:c,compactView:a},d)})})}})};return c}(k.Component);a.defaultProps={compactView:!1};e.exports=a}),null);
-----
PageSetUpManagedOnsiteShopInputDataUtils",["invariant","AllPaymentTypeFields","CommerceManagerOnboardingTaxIDUtils","CurrencyConstants","MerchantCategoryCode","PaymentCompanyType","ReceiverPaymentProviderType","TaxIdType","USAStateAbbreviations","keyMirror","nullthrows"],(function(a,b,c,d,e,f,g,h){"use strict";var i=c("keyMirror")(c("AllPaymentTypeFields")),j=c("keyMirror")(c("PaymentCompanyType")),k=c("keyMirror")(c("MerchantCategoryCode"));c("keyMirror")(c("ReceiverPaymentProviderType"));var l=c("keyMirror")(c("TaxIdType"));function m(a){var b={address:babelHelpers["extends"]({},a.businessInfo.address),alert_email:a.businessInfo.alertEmail,page_id:a.pageID};a.businessInfo.businessID!=null&&(b.business_id=a.businessInfo.businessID);b.contact_email=a.contactEmail;b.return_policy_time=a.returnPolicy;b.bank_country=a.businessInfo.address.country;b.country_code=a.businessInfo.address.country;b.currency_code=a.businessInfo.currency;b.payment_type=i.NMOR_CHECKOUT_EXPERIENCES;b.provider_type="BANK_ACCOUNT";b.bank_info=c("nullthrows")(n(a.payoutBankInfo));var d=c("nullthrows")(p(a.payoutTaxInfo));a=o({fraudnetSessionID:a.fraudnetSessionID,merchantCategoryCode:a.merchantCategoryCode});return babelHelpers["extends"]({},b,a,d)}function a(a){return babelHelpers["extends"]({},m(a))}function n(a){return a==null?null:{bank_account_number:a.bankAccountNumber,bank_account_type:a.bankAccountType,bank_code:a.bankCode,bank_code_type:a.bankCodeType,bank_country:a.bankCountry,beneficiary_name:a.beneficiaryName,iban_bank_code:a.ibanBankCode}}function o(a){var b={};a.fraudnetSessionID!=null&&(b.paypal_fraudnet_id=a.fraudnetSessionID);a.merchantCategoryCode!=null&&a.merchantCategoryCode!==k.NOT_SPECIFIED&&(b.merchant_category_code=a.merchantCategoryCode);return babelHelpers["extends"]({},b)}function b(a){var b=a.payoutBankInfo,d=p(a.payoutTaxInfo)||{},e=o({fraudnetSessionID:a.fraudnetSessionID,merchantCategoryCode:c("nullthrows")(a.merchantCategoryCode)});return{bank_info:c("nullthrows")(n(b)),birthdate:d.birthdate,business_name:d.business_name,cms_id:a.cmsID,company_type:c("nullthrows")(d.company_type),legal_name:c("nullthrows")(d.legal_name),merchant_category_code:c("nullthrows")(e.merchant_category_code),paypal_fraudnet_id:e.paypal_fraudnet_id,ssn:d.ssn,tax_id:d.tax_id,tax_id_type:c("nullthrows")(d.tax_id_type)}}function d(a){var b={bank_info:n(a.payoutBankInfo),cms_id:a.cmsID},c=p(a.payoutTaxInfo)||{};a=o({fraudnetSessionID:a.fraudnetSessionID,merchantCategoryCode:a.merchantCategoryCode});return babelHelpers["extends"]({},b,a,c)}function e(a){a={page_id:a.pageID,shipping_options:a.shippingOptions.map(function(a){return{cost:{amount_in_hundredths:c("nullthrows")(a.cost.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},cost_per_additional_item:{amount_in_hundredths:c("nullthrows")(a.costPerAdditionalItem.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},estimated_days_until_arrival:{max_days_to_arrival:c("nullthrows")(a.estimatedDaysToArrival.max),min_days_to_arrival:c("nullthrows")(a.estimatedDaysToArrival.min)},shipping_tier:a.shippingTier}}),state_tax_registration_numbers:a.USAStateRegNums.map(function(a){return{state_code:c("USAStateAbbreviations")[a.USAState],tax_registration_number:a.regNum}})};return babelHelpers["extends"]({},a)}function p(a){if(a==null)return null;var b={company_type:c("nullthrows")(a.businessType)};switch(b.company_type){case j.INDIVIDUAL_BUSINESS:case j.SOLE_PROPRIETOR:c("CommerceManagerOnboardingTaxIDUtils")(a.ssn)?b.tax_id_type=l.ITIN:b.tax_id_type=l.SSN;b.ssn=a.ssn;break;case j.CORPORATION:case j.PARTNERSHIP:case j.NON_PROFIT:case j.PRIVATE_CORPORATION:case j.PUBLIC_CORPORATION:b.business_name=a.businessName;b.tax_id_type=l.EIN;b.tax_id=a.ein;break;default:h(0,2719)}b.legal_name={first_name:a.legalName.firstName,last_name:a.legalName.lastName,middle_name:a.legalName.middleName};a.birthdate!=null&&(b.birthdate=a.birthdate);return babelHelpers["extends"]({},b)}g.prepareFixedLengthMigrationData=a;g.getPayoutBankInfoFromSellerPayoutBankInfo=n;g.prepareManagedMerchantData=o;g.preparePayoutSetupData=b;g.preparePayoutEditData=d;g.prepareShippingAndStateTaxData=e;g.prepareTaxData=p}),98);
-----
CommerceManagerOnboardingMutationInputUtils",["AllPaymentTypeFields","CommerceManagerOnboardingTaxIDUtils","CurrencyConstants","PageSetUpManagedOnsiteShopInputDataUtils","USAStateAbbreviations","keyMirror","nullthrows"],(function(a,b,c,d,e,f,g){"use strict";var h=c("keyMirror")(c("AllPaymentTypeFields"));function a(a){return{app_id:a.appID,business_id:a.businessID,business_name:a.businessName,catalog_id:a.catalogID,channel:a.channel,cms_id:a.cmsID,commerce_account_name:a.commerceAccountName,country_code:a.countryCode,currency_code:a.currencyCode,ig_user_id:a.igUserID,mode:a.mode,page_id:a.pageID,request_surface:"LEGACY_COMMERCE_MANAGER_ONSITE",temporary_ig_login_token:a.tempIGLoginToken,utm_params:a.utmParams}}function b(a){return{channel:a.channel,cms_id:a.cmsID,ig_user_id:a.igUserID,mode:a.mode,page_id:a.pageID,temporary_ig_login_token:a.tempIGLoginToken}}function e(a){var b;b=(b=a.shippingOptions)!=null?b:[];return{catalog_id:a.catalogID,channel:a.channel,cms_id:a.cmsID,contact_email:a.contactEmail,country_code_for_multinational_DANGEROUS:a.country,ig_user_id:a.igUserID,return_policy:a.returnPolicy,shipping_options:b.map(function(a){return{cost:{amount_in_hundredths:c("nullthrows")(a.cost.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},cost_per_additional_item:{amount_in_hundredths:c("nullthrows")(a.costPerAdditionalItem.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},estimated_days_until_arrival:{max_days_to_arrival:c("nullthrows")(a.estimatedDaysToArrival.max),min_days_to_arrival:c("nullthrows")(a.estimatedDaysToArrival.min)},shipping_tier:a.shippingTier}}),utm_params:a.utmParams}}function f(a){var b;b=(b=a.shippingOptions)!=null?b:[];return{cms_id:a.cmsID,contact_email:c("nullthrows")(a.contactEmail),country_code_for_multinational_DANGEROUS:a.country,return_policy:c("nullthrows")(a.returnPolicy),shipping_options:b.map(function(a){return{cost:{amount_in_hundredths:c("nullthrows")(a.cost.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},cost_per_additional_item:{amount_in_hundredths:c("nullthrows")(a.costPerAdditionalItem.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},estimated_days_until_arrival:{max_days_to_arrival:c("nullthrows")(a.estimatedDaysToArrival.max),min_days_to_arrival:c("nullthrows")(a.estimatedDaysToArrival.min)},shipping_tier:a.shippingTier}}),source:a.source}}function i(a){var b;b=(b=a.shippingOptions)!=null?b:[];return{cms_id:a.cmsID,contact_email:c("nullthrows")(a.contactEmail),return_policy:c("nullthrows")(a.returnPolicy),shipping_options:b.map(function(a){return{cost:{amount_in_hundredths:c("nullthrows")(a.cost.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},cost_per_additional_item:{amount_in_hundredths:c("nullthrows")(a.costPerAdditionalItem.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},estimated_days_until_arrival:{max_days_to_arrival:c("nullthrows")(a.estimatedDaysToArrival.max),min_days_to_arrival:c("nullthrows")(a.estimatedDaysToArrival.min)},shipping_tier:a.shippingTier}}),utm_params:a.utmParams}}function j(a){var b={address:babelHelpers["extends"]({},a.address),alert_email:a.alertEmail,bank_country:a.address.country,bank_info:c("nullthrows")(d("PageSetUpManagedOnsiteShopInputDataUtils").getPayoutBankInfoFromSellerPayoutBankInfo(a.payoutBankInfo)),channel:a.channel,cms_id:a.cmsID,country_code:a.address.country,currency_code:a.currency,payment_type:h.NMOR_CHECKOUT_EXPERIENCES,provider_type:"BANK_ACCOUNT",state_tax_registration_numbers:a.USAStateRegNums.map(function(a){return{state_code:c("USAStateAbbreviations")[a.USAState],tax_registration_number:a.regNum}}),utm_params:a.utmParams,vat_address:babelHelpers["extends"]({},a.vatAddress),vat_id:a.vatID},e=c("nullthrows")(d("PageSetUpManagedOnsiteShopInputDataUtils").prepareTaxData(a.payoutTaxInfo));b.birthdate=e.birthdate;b.business_name=e.business_name;b.company_type=e.company_type;b.legal_name=e.legal_name;b.ssn=e.ssn;b.tax_id=e.tax_id;b.tax_id_type=e.tax_id_type;b.tax_id_type==="SSN"&&c("CommerceManagerOnboardingTaxIDUtils")(b.ssn)&&(b.tax_id_type="ITIN");e=d("PageSetUpManagedOnsiteShopInputDataUtils").prepareManagedMerchantData({fraudnetSessionID:a.fraudnetSessionID,merchantCategoryCode:a.merchantCategoryCode});return babelHelpers["extends"]({},b,e)}function k(a){var b={bank_info:c("nullthrows")(d("PageSetUpManagedOnsiteShopInputDataUtils").getPayoutBankInfoFromSellerPayoutBankInfo(a.payoutBankInfo))},e=c("nullthrows")(d("PageSetUpManagedOnsiteShopInputDataUtils").prepareTaxData(a.payoutTaxInfo));b.channel=a.channel;b.cms_id=a.cmsID;b.birthdate=c("nullthrows")(e.birthdate);b.business_name=e.business_name;b.company_type=e.company_type;b.legal_name=e.legal_name;b.ssn=e.ssn;b.tax_id=e.tax_id;b.tax_id_type=e.tax_id_type;b.currency_code=a.currency;b.payment_type=h.NMOR_CHECKOUT_EXPERIENCES;b.provider_type="BANK_ACCOUNT";b.tax_id_type==="SSN"&&c("CommerceManagerOnboardingTaxIDUtils")(b.ssn)&&(b.tax_id_type="ITIN");e=d("PageSetUpManagedOnsiteShopInputDataUtils").prepareManagedMerchantData({fraudnetSessionID:a.fraudnetSessionID});b.paypal_fraudnet_id=e.paypal_fraudnet_id;return babelHelpers["extends"]({},b)}function l(a){var b={address:babelHelpers["extends"]({},a.address),alert_email:a.alertEmail,bank_country:c("nullthrows")(a.address.country),bank_info:c("nullthrows")(d("PageSetUpManagedOnsiteShopInputDataUtils").getPayoutBankInfoFromSellerPayoutBankInfo(a.payoutBankInfo)),channel:a.channel,cms_id:a.cmsID,country_code:c("nullthrows")(a.address.country),currency_code:a.currency,payment_type:h.NMOR_CHECKOUT_EXPERIENCES,provider_type:"BANK_ACCOUNT",source:a.source,state_tax_registration_numbers:a.USAStateRegNums.map(function(a){return{state_code:c("USAStateAbbreviations")[a.USAState],tax_registration_number:a.regNum}}),utm_params:a.utmParams,vat_address:babelHelpers["extends"]({},a.vatAddress),vat_id:a.vatID},e=c("nullthrows")(d("PageSetUpManagedOnsiteShopInputDataUtils").prepareTaxData(a.payoutTaxInfo));b.birthdate=c("nullthrows")(e.birthdate);b.business_name=e.business_name;b.company_type=e.company_type;b.legal_name=e.legal_name;b.ssn=e.ssn;b.tax_id=e.tax_id;b.tax_id_type=e.tax_id_type;b.tax_id_type==="SSN"&&c("CommerceManagerOnboardingTaxIDUtils")(b.ssn)&&(b.tax_id_type="ITIN");e=d("PageSetUpManagedOnsiteShopInputDataUtils").prepareManagedMerchantData({fraudnetSessionID:a.fraudnetSessionID,merchantCategoryCode:a.merchantCategoryCode});b.merchant_category_code=c("nullthrows")(e.merchant_category_code);b.paypal_fraudnet_id=e.paypal_fraudnet_id;return babelHelpers["extends"]({},b)}g.prepareOnsiteBusinessAccountSetupData=a;g.prepareIGSandboxOnsiteBusinessAccountSetupData=b;g.preparePreferencesSetupData=e;g.prepareOnsiteConversionPreferencesSetupData=f;g.prepareFbePreferencesSetupData=i;g.preparePayoutsSetupData=j;g.prepareSunriseConversionPayoutsSetupData=k;g.prepareOnsiteConversionPayoutsSetupData=l}),98);
-----
FBPayments3DS",["DOM","FBPayUPLLogger","FBPayments3DSAcquirerMerchantInfoQuery.graphql","FBPayments3DSCardPaymentMethodInfoQuery.graphql","FBPayments3DSChallengeModalContainer.react","FBPayments3DSComplete3DSMutation.graphql","FBPayments3DSCompleteAndAuthorizeQuery.graphql","FBPayments3DSDeviceDataCollectionComponent.react","FBPayments3DSErrorUtils","FBPayments3DSEvents","FBPayments3DSFetch3rdPartyAuthURLMutation.graphql","FBPayments3DSLoggerBase","FBPayments3DSLoggerConstants","FBPayments3DSQuery.graphql","FBPaymentsModulesAPIUtils","Promise","RelayFBEnvironment","RelayModern","guid","isEmpty","keyMirror","promiseDone","react","react-dom"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m,n=d("react"),o=c("keyMirror")({CHALLENGED:null,COMPLETED:null,ATTEMPT_COMPLETED:null,FAILED:null,NOT_COMPLETED:null,REJECTED:null,NOT_ENROLLED:null,UNAVAILABLE:null,BYPASS:null}),p={SMALL:"01",MEDIUM:"02",LARGE:"03",EXTRA_LARGE:"04",FULL_PAGE:"05"},q=c("keyMirror")({CARDINAL_3DS1:null,CARDINAL_3DS2:null}),r="https://centinelapi.cardinalcommerce.com";a="https://centinelapistag.cardinalcommerce.com";var s="/V1/Cruise/Collect",t={CARDINAL_INCORRECT_CARD_INFO:1353097},u=h!==void 0?h:h=b("FBPayments3DSQuery.graphql"),v=i!==void 0?i:i=b("FBPayments3DSAcquirerMerchantInfoQuery.graphql"),w=j!==void 0?j:j=b("FBPayments3DSFetch3rdPartyAuthURLMutation.graphql"),x=k!==void 0?k:k=b("FBPayments3DSCardPaymentMethodInfoQuery.graphql"),y=l!==void 0?l:l=b("FBPayments3DSCompleteAndAuthorizeQuery.graphql"),z=m!==void 0?m:m=b("FBPayments3DSComplete3DSMutation.graphql");e=function(){function a(){this.$1=null,this.$2=null,this.$3=null,this.$4=null,this.$5=!1,this.$6=null,this.$7=new(c("FBPayments3DSLoggerBase"))(),this.$8=new(c("FBPayUPLLogger"))(),this.$9=null,this.$10=c("RelayFBEnvironment")}var e=a.prototype;e.initLogger=function(a,b){this.$9=this.$9==null?c("guid")():this.$9,this.$7.setGlobalFields({session:this.$9,item_type:a,credential_id:b})};e.initUPLLogger=function(a,b){this.$8=new(c("FBPayUPLLogger"))(a,"web",b)};e.setRequires3DS=function(a){this.$5=a};e.collectDeviceData=function(a){var e=this,f=a.ccNumberBin,g=a.credentialID,h=a.amount,i=a.itemType,j=a.ccCountryCode,k=a.paymentAccountID,l=a.isRequestFromWhatsapp,m=a.externalContextID;a=a.sessionID;this.initLogger(i,g);this.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.JWT_CREATE_INIT).setExternalContextID(m).log();this.initUPLLogger(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(i.toLowerCase()),a);this.$8.logClientLoadThreedsInit({target_name:"jwt_create_mutation"},{credential_id:(a=g)!=null?a:"",amount:h.amount,currency:h.currency,cc_country_code:j,payment_account_id:(a=k)!=null?a:"",is_request_from_whatsapp:l===!0?"1":"0"});return new(b("Promise"))(function(a,b){d("RelayModern").commitMutation(e.$10,{mutation:u,variables:{input:babelHelpers["extends"]({cc_number_bin:f,credential_id:g,amount:h,item_type:i,cc_country_code:j,account_id:k,actor_id:g,is_request_from_whatsapp:l,logging_id:e.$8.getSessionID()},m!=null?{external_context_id:m}:null)},onCompleted:function(f){var g;e.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.JWT_CREATE_COMPLETE).setExternalContextID(m).log();e.$1=((g=f.jwt_query)==null?void 0:g.token)||"";e.$2=((g=f.jwt_query)==null?void 0:g.id)||"";g=((g=f.jwt_query)==null?void 0:g.status)||"";f=((f=f.jwt_query)==null?void 0:f.error_message)||"";if(g==="TEST_ONLY_MODE")a();else if(g==="SUCCESS")d("react-dom").render(n.jsx(c("FBPayments3DSDeviceDataCollectionComponent.react"),{externalContextID:m,logger:e.$7,jwt:e.$1,onDeviceDataComplete:function(){a()},uplLogger:e.$8}),c("DOM").create("div"));else{e.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.JWT_CREATE_ERROR).setExternalContextID(m).setError(f).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();g=c("FBPayments3DSErrorUtils").getError("JWT_CREATION_FAILED",f);b(g)}},onError:function(a){e.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.JWT_CREATE_ERROR).setExternalContextID(m).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();a=c("FBPayments3DSErrorUtils").getError("JWT_CREATION_FAILED",a.message);b(a)}})})};e.requires3DS2=function(){return this.$5};e.createLookupData=function(a){var b,c=a.lookupData.acquirer_merchant_info;c&&(c={merchant_name:c.merchantName,acquirer_mid:c.acquirerMid,acquirer_bin:c.acquirerBin});c={df_ref_id:this.$2||"",device_channel:"Browser",transaction_mode:"S",browser_info:{user_agent:window.navigator.userAgent,java_enabled:window.navigator.javaEnabled()?"true":"false",language:window.navigator.language,color_depth:screen.colorDepth.toString(),screen_height:window.innerHeight,screen_width:window.innerWidth,time_zone:new Date().getTimezoneOffset().toString()},email:a.lookupData.email,mobile_phone:a.lookupData.mobile_phone,billing_first_name:a.lookupData.billing_first_name,billing_middle_name:a.lookupData.billing_middle_name,billing_last_name:a.lookupData.billing_last_name,credit_card_address:a.lookupData.credit_card_address,acs_window_size:(b=a.lookupData.acs_window_size)!=null?b:p.LARGE,acquirer_merchant_info:c,fb_return_url:a.lookupData.customFBReturnURL,challenge_indicator:(b=a.lookupData.challenge_indicator)!=null?b:""};return c};e.getPaymentMethod=function(){var a={provider:"CREDIT_CARD",instrument_type:"CC"};return a};e.createCredentialID=function(a){a={fb_id:a,payment_method:this.getPaymentMethod()};return a};e.getAcquirerMerchantInfo=function(a){var e=this;switch(a.paymentType){case"NMOR_DONATION_P4P":case"NMOR_PPGF_DONATION":case"NMOR_DONATION_CIELO":return new(b("Promise"))(function(b,f){var g=a.paymentInfo.receiverId||"",h=a.paymentInfo.orderId||"";e.$8.logClientLoadThreedsInit({target_name:"acquirer_merchant_info_mutation"},{raw_credential_id:a.credentialID,provider:e.getPaymentMethod().provider,instrument_type:e.getPaymentMethod().instrument_type,currency:a.currency,order_id:h,receiver_id:g});c("promiseDone")(d("RelayModern").fetchQuery(e.$10,v,{data:{credential_id:e.createCredentialID(a.credentialID),currency:a.currency,order_id:h,payment_type:a.paymentType,receiver_id:g,logging_id:e.$8.getSessionID()}}),function(c){c=c.acquirer_merchant_info_query||{};var d=c.acquirer_mid;c=c.acquirer_bin;b({merchantName:a.paymentInfo.merchantName||"",acquirerMid:d||"",acquirerBin:c||""})},function(a){a=c("FBPayments3DSErrorUtils").getError("ACQUIRER_MERCHANT_INFO_FAILED",a.message);f(a)})});case"NMOR_EVENT_TICKETING":var f=this.getAcqurerInfoFromCardType(a.paymentInfo.acquirerMid||[],a.creditCardType,a.currency),g=this.getAcqurerInfoFromCardType(a.paymentInfo.acquirerBin||[],a.creditCardType,a.currency);f={merchantName:a.paymentInfo.merchantName||"",acquirerMid:f||"",acquirerBin:g||""};return b("Promise").resolve(f);default:return b("Promise").resolve(null)}};e.fetchAuthenticationURL=function(a){var e,f=this;this.$7.setGlobalFields({credential_id:a.credentialID});this.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_REQUEST).setExternalContextID(a.externalContextID).log();this.$8.logClientLoadThreedsInit({target_name:"get_3rd_party_auth_url_mutation"},{raw_credential_id:a.credentialID,amount:a.amount.amount,currency:a.amount.currency,processor:(e=a.processor)!=null?e:q.CARDINAL_3DS2,is_request_from_whatsapp:a.isRequestFromWhatsapp===!0?"1":"0"});return new(b("Promise"))(function(b,e){var g;d("RelayModern").commitMutation(f.$10,{mutation:w,variables:{input:babelHelpers["extends"]({credential_id:f.createCredentialID(a.credentialID)},a.externalContextID!=null?{external_context_id:a.externalContextID}:null,{amount:a.amount,item_type:a.itemType,lookup_data:f.createLookupData(a),account_id:a.paymentAccountID,processor:(g=a.processor)!=null?g:q.CARDINAL_3DS2,actor_id:a.credentialID,is_request_from_whatsapp:a.isRequestFromWhatsapp,session_id:f.$8.getSessionID()})},onCompleted:function(g){g=g.fetch_3rd_party_payment_auth||{};var h=g.status,i=g.row_id,j=g.step_up_url,k=g.step_up_jwt;g=g.payments_error;if(g!=null){f.$8.logClientLoadThreedsSuccess({target_name:"get_3rd_party_auth_url_mutation"},{response_status:"fail"});f.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_RESPONSE_ERROR).setExternalContextID(a.externalContextID).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();if(g.error_code==t.CARDINAL_INCORRECT_CARD_INFO){g=c("FBPayments3DSErrorUtils").getError("INCORRECT_CARD_INFO","Backend threw incorrect card info error");e(g)}else{g=c("FBPayments3DSErrorUtils").getError("CMPI_FAILED",h||"Empty status");e(g)}}else if(h==o.CHALLENGED){f.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_RESPONSE_CHALLENGE).setExternalContextID(a.externalContextID).setResponseStatus(h).setRowID(i).log();f.$8.logClientLoadThreedsSuccess({target_name:"get_3rd_party_auth_url_mutation"},{response_status:"challenge"});f.$3=a.div==null?c("DOM").create("div"):a.div;d("react-dom").render(n.jsx(c("FBPayments3DSChallengeModalContainer.react"),{externalContextID:a.externalContextID,logger:f.$7,container:f.$3,stepUpURL:(g=j)!=null?g:"",params:[{key:"JWT",value:(j=k==null?void 0:k.token)!=null?j:""}],protocol:"POST",isLite:(g=a.isLite)!=null?g:!1,onChallengeComplete:function(){var g;f.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CHALLENGE_SUCCESS).setExternalContextID(a.externalContextID).setExternalTransactionID(f.$4).setRowID(i).setCardinalPayload(f.$6).log();f.$8.logClientFetchThreedsSuccess({target_name:"challenge_success"});c("promiseDone")(f.processAfterCMPI((g=i)!=null?g:"",a.credentialID,a.itemType,(g=f.$4)!=null?g:"",a.paymentAccountID,a.isSavingCC,a.isRequestFromWhatsapp,a.externalContextID),function(a){b(a)},function(a){e(a)})},onChallengeFail:function(){e(c("FBPayments3DSErrorUtils").getError("USER_CANCELLED_MODAL","User clicked cancel button on the dialog box."))},uplLogger:f.$8}),f.$3)}else if(h==o.COMPLETED||h==o.ATTEMPT_COMPLETED||h==o.UNAVAILABLE||h==o.NOT_ENROLLED||h==o.BYPASS){f.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_RESPONSE_SUCCESS).setExternalContextID(a.externalContextID).setResponseStatus(h).setRowID(i).log();f.$8.logClientLoadThreedsSuccess({target_name:"get_3rd_party_auth_url_mutation"},{response_status:(k=h)!=null?k:"success"});c("promiseDone")(f.processAfterCMPI((j=i)!=null?j:"",a.credentialID,a.itemType,(g=f.$4)!=null?g:"",a.paymentAccountID,a.isSavingCC,a.isRequestFromWhatsapp,a.externalContextID),function(a){b(a)},function(a){e(a)})}else{f.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_RESPONSE_FAILED_STATUS).setExternalContextID(a.externalContextID).setResponseStatus(h).setRowID(i).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();k=c("FBPayments3DSErrorUtils").getError("AUTH_FAIL",h||"Empty status");e(k)}},onError:function(b){f.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_RESPONSE_ERROR).setExternalContextID(a.externalContextID).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();b=c("FBPayments3DSErrorUtils").getError("CMPI_FAILED",b.message);e(b)}})})};e.getDeviceDataURLOrigin=function(){return r};e.getDeviceDataURL=function(){return r+s};e.challengeComplete=function(a,b){this.$3&&(this.$4=a,this.$6=b,this.$3.dispatchEvent(new Event(d("FBPayments3DSEvents").CHALLENGE_COMPLETE_EVENT_NAME)))};e.processAfterCMPI=function(a,d,e,f,g,h,i,j){var k=this;h===void 0&&(h=!1);i===void 0&&(i=null);return new(b("Promise"))(function(b,l){c("promiseDone")(h?k.complete3DSAndAuthorize(a,d,e,g,j):k.complete3DS(a,d,e,f,g,i,j),function(a){switch(a.status){case o.COMPLETED:case o.ATTEMPT_COMPLETED:case o.NOT_ENROLLED:case o.BYPASS:case o.UNAVAILABLE:b(a);break;case o.FAILED:case o.NOT_COMPLETED:case o.REJECTED:l(c("FBPayments3DSErrorUtils").getError("AUTH_FAIL",status));break;default:l(c("FBPayments3DSErrorUtils").getError(h?"COMPLETE_3DS_FAILED":"COMPLETE_3DS_AND_AUTH_FAILED",status))}},function(a){l(a)})})};e.complete3DS=function(a,e,f,g,h,i,j){var k,l=this;this.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DS_REQUEST).setExternalContextID(j).setRowID(a).setCardinalPayload(this.$6).setExternalTransactionID(this.$4).log();this.$8.logClientLoadThreedsInit({target_name:"complete_3ds_mutation"},{auth_row_id:a,credential_id:e,cardinal_txn_id:g,account_id:(k=h)!=null?k:"",is_request_from_whatsapp:i===!0?"1":"0"});return new(b("Promise"))(function(b,k){d("RelayModern").commitMutation(l.$10,{mutation:z,variables:{input:babelHelpers["extends"]({auth_row_id:a},j!=null?{external_context_id:j}:null,{credential_id:e,item_type:f,cardinal_txn_id:g,actor_id:e,account_id:h,is_request_from_whatsapp:i,logging_id:l.$8.getSessionID()})},onCompleted:function(e){e=e.complete_3ds;e=l.$11(e);if(e!=null)l.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DS_SUCCESS).setExternalContextID(j).setResponseStatus(e.status).setRowID(e.rowID).setCardinalPayload(l.$6).setExternalTransactionID(l.$4).setVersionOf3ds(e.threeDSTransactionData.dsTransactionID).log(),b(e);else{l.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DS_ERROR).setExternalContextID(j).setRowID(a).setCardinalPayload(l.$6).setExternalTransactionID(l.$4).log();e=c("FBPayments3DSErrorUtils").getError("COMPLETE_3DS_FAILED","Values returned from GraphQL Query were invalid");k(e)}},onError:function(b){l.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DS_ERROR).setExternalContextID(j).setRowID(a).setCardinalPayload(l.$6).setExternalTransactionID(l.$4).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();b=c("FBPayments3DSErrorUtils").getError("COMPLETE_3DS_FAILED",b.message);k(b)}})})};e.complete3DSAndAuthorize=function(a,e,f,g,h){var i,j=this;this.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DSANDAUTH_REQUEST).setExternalContextID(h).setRowID(a).setCardinalPayload(this.$6).setExternalTransactionID(this.$4).log();this.$8.logClientLoadThreedsInit({target_name:"complete_3ds_and_auth_mutation"},{cardinal_payload:(i=this.$6)!=null?i:"",auth_row_id:a,raw_credential_id:e,cardinal_txn_id:(i=this.$4)!=null?i:"",account_id:(i=g)!=null?i:""});return new(b("Promise"))(function(b,i){var k;d("RelayModern").commitMutation(j.$10,{mutation:y,variables:{input:babelHelpers["extends"]({processor:"CARDINAL_3DS2",auth_row_id:a,credential_id:j.createCredentialID(e),item_type:f,account_id:g,actor_id:e,payload:(k=j.$6)!=null?k:"",transaction_id:j.$4,logging_id:j.$8.getSessionID()},h!=null?{external_context_id:h}:null)},onCompleted:function(e){e=e.complete3ds_and_authorize;e=j.$11(e);if(e!=null)j.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DSANDAUTH_SUCCESS).setExternalContextID(h).setResponseStatus(e.status).setRowID(e.rowID).setCardinalPayload(j.$6).setExternalTransactionID(j.$4).setVersionOf3ds(e.threeDSTransactionData.dsTransactionID).log(),b(e);else{j.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DS_ERROR).setExternalContextID(h).setRowID(a).setCardinalPayload(j.$6).setExternalTransactionID(j.$4).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();e=c("FBPayments3DSErrorUtils").getError("COMPLETE_3DS_AND_AUTH_FAILED","Values returned from GraphQL Query were invalid");i(e)}},onError:function(b){j.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DSANDAUTH_ERROR).setExternalContextID(h).setRowID(a).setCardinalPayload(j.$6).setExternalTransactionID(j.$4).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();b=c("FBPayments3DSErrorUtils").getError("COMPLETE_3DS_AND_AUTH_FAILED",b.message);i(b)}})})};e.$11=function(a){return a!=null&&a.three_d_secure_version!=null&&a.ds_transaction_id!=null&&a.cavv!=null&&a.eci_flag!=null&&a.auth_row_id!=null&&a.status!=null&&a.xid!=null&&a.cardinal_txn_id!=null?{status:a.status,rowID:a.auth_row_id,cardinalTransactionID:a.cardinal_txn_id,threeDSTransactionData:{threeDsSecureVersion:a.three_d_secure_version,cavv:a.cavv,eciFlag:a.eci_flag,xid:a.xid,dsTransactionID:a.ds_transaction_id}}:null};e.getCardPaymentMethodInfo=function(a){var e,f=this;this.initLogger(a.itemType,a.credentialId);this.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.GET_CARD_PAYMENT_INFO_REQUEST).log();this.initUPLLogger(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(a.itemType));this.$8.logClientLoadThreedsInit({target_name:"3ds_eligibility_query"},{account_currency:a.accountCurrency,credential_id:(e=a.credentialId)!=null?e:"",cc_country_code:a.ccCountryCode});return new(b("Promise"))(function(b,e){c("promiseDone")(d("RelayModern").fetchQuery(f.$10,x,{input:{payment_method:f.getPaymentMethod(),cc_number_bin:a.ccNumberBin,credential_id:a.credentialId,cc_country_code:a.ccCountryCode,item_type:a.itemType,account_currency:a.accountCurrency,logging_id:f.$8.getSessionID()}}),function(g){g=g.card_payment_method_info_query||{};var h=g.requires_3ds;g=g.mpi_processor;h==!0&&g==q.CARDINAL_3DS2?(f.$8.logClientLoadThreedsSuccess({target_name:"3ds_eligibility_query"},{is_eligible:"1"}),f.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.GET_CARD_PAYMENT_INFO_RESPONSE_THREEDS_REQ).log(),f.setRequires3DS(!!h),c("promiseDone")(f.collectDeviceData({ccNumberBin:a.ccNumberBin,credentialID:a.credentialId,amount:{amount:"1",currency:a.accountCurrency},itemType:a.itemType,ccCountryCode:a.ccCountryCode,paymentAccountID:null}),function(){b()},function(a){e(a)})):(f.$8.logClientLoadThreedsSuccess({target_name:"3ds_eligibility_query"},{is_eligible:"0"}),f.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.GET_CARD_PAYMENT_INFO_RESPONSE_THREEDS_NOT_REQ).log());f.setRequires3DS(!!h);b()},function(a){f.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.GET_CARD_PAYMENT_INFO_ERROR).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();a=c("FBPayments3DSErrorUtils").getError("CARD_LOOKUP_FAILED",a.message);e(a)})})};e.getBinNumberFromCreditCard=function(a){if(a==null)return null;a=a.replace(/ /g,"");return a.length>=6?a.substr(0,6):null};e.getAcqurerInfoFromCardType=function(a,b,d){a=a.find(function(a){if(!c("isEmpty")(a.currency))return a.currency===d&&a.cardType===b;else return a.cardType===b});return a==null?void 0:a.info};return a}();f=new e();g["default"]=f}),98);
-----
PaymentsCometCheckoutDialog.react",["fbt","AllPaymentTypeFields","CometAuthenticityPaymentsWizard.react","CometCardedDialogLegacy.react","CometCardedDialogLoadingStateLegacy.react","FBPayCometGatingUtils","FBPayHubHooks","FBPayLoggingContext","FBPayLoggingUtils","FBPaySurveyUtils","FBPayUPLLogger","FBPaymentsLoggerConstants","PayflowsInitFalcoEvent","PaymentsCometCheckout.react","PaymentsCometCheckoutAPIUtils","PaymentsCometCheckoutComponentUtils","PaymentsCometCheckoutContext","PaymentsCometCheckoutReducer","gkx","react","requireDeferred","useCometDeferredDialog","useConnectPayPal","usePaymentsCometCheckoutCreatePayment","usePaymentsCometCheckoutInformationMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useContext,k=b.useEffect,l=b.useMemo,m=b.useReducer,n=b.useRef,o=b.useState,p=c("requireDeferred")("PaymentsCometCheckoutExitCheckoutDialog.react").__setRef("PaymentsCometCheckoutDialog.react"),q="client",r={onClose:function(){},title:s(),withCloseButton:!0};function s(){var a=d("FBPayCometGatingUtils").shouldShowFBPayExperienceOnComet();return a&&c("gkx")("773")===!1?h._("Facebook Pay"):h._("u7ed3u8d26")}var t=d("FBPayLoggingUtils").sessionIDGenerator(),u={mobileRootWrapper:{"@media (max-width: 564px)_bottom":"x1ckq5","@media (max-width: 564px)_height":"x40dr4r","@media (max-width: 564px)_position":"xfqz7ig",$$css:!0}};function a(a){var b=a.checkoutProps,e=a.dialogProps,f=a.onClose;t=(a=t)!=null?a:d("FBPayLoggingUtils").sessionIDGenerator();var g=c("usePaymentsCometCheckoutInformationMutation")(),v=c("useCometDeferredDialog")(p,function(){return i.jsx(c("CometCardedDialogLoadingStateLegacy.react"),{})});a=m(d("PaymentsCometCheckoutReducer").reducer,d("PaymentsCometCheckoutReducer").getInitialState({checkoutProps:b,clientSessionID:t,onClose:f}));var w=a[0],x=a[1];a=j(c("PaymentsCometCheckoutContext"));var y=a.logger,z=w.requiresCheckoutInfoRefresh,A=function(){var a;return(a=c("AllPaymentTypeFields")[b==null?void 0:b.paymentType.toString()])!=null?a:"unknown"},B=A();a=l(function(){var a=new(c("FBPayUPLLogger"))(B,"comet",t);return{logger:a}},[B]);var C=a.logger;d("FBPayHubHooks").useConstructor(function(){var a;y.setGlobalFields({flow_name:d("FBPaymentsLoggerConstants").LoggerFlowType.CHECKOUT,product:A(),session_id:w.clientSessionID});var b=babelHelpers["extends"]({comet:!0},(a=w.checkoutProps)==null?void 0:a.extraData);y.setGlobalExtraData(b);y.log({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_MODULE});c("PayflowsInitFalcoEvent").log(function(){return{e_counter_channel:0,event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,event_type:q,flow_name:d("FBPaymentsLoggerConstants").LoggerFlowType.CHECKOUT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.START,is_free:!1,paymod_extra_data:JSON.stringify(b),product:A(),session_id:w.clientSessionID}})});var D=n(!0),E=n(!0);k(function(){D.current===!0&&(D.current=!1,C.logClientLoadCheckoutInit({target_name:"checkout",view_name:"checkout"}))},[C]);k(function(){g(d("PaymentsCometCheckoutAPIUtils").getLoadCheckoutInfoInput(w),function(a){var b;if(((b=a.checkout_information_mutation)==null?void 0:b.payments_error)!=null){E.current&&(C.logClientLoadCheckoutFail({target_name:"checkout",view_name:"checkout"}),E.current=!1);b=(b=a.checkout_information_mutation)==null?void 0:b.payments_error;x({paymentsUserFacingError:b,type:"CHECKOUT_INIT_FAILURE"})}else x({checkoutInformation:a,type:"LOAD_CHECKOUT_INFO_SUCCESS"}),E.current&&(C.logClientLoadCheckoutSuccess({target_name:"checkout",view_name:"checkout"}),E.current=!1)},function(){E.current&&(C.logClientLoadCheckoutFail({target_name:"checkout",view_name:"checkout"}),E.current=!1)},function(){});return function(){t=null}},[g]);var F=o(!1),G=F[0],H=F[1];k(function(){z===!0&&G===!1&&(H(!0),g(d("PaymentsCometCheckoutAPIUtils").getLoadCheckoutInfoInput(w),function(a){x({checkoutInformation:a,type:"LOAD_CHECKOUT_INFO_SUCCESS"}),x({requiresCheckoutInfoRefresh:!1,type:"SET_REQUIRES_CHECKOUT_REFRESH"}),H(!1),y.log({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_CHECKOUT_API})},function(){x({requiresCheckoutInfoRefresh:!1,type:"SET_REQUIRES_CHECKOUT_REFRESH"}),H(!1)}))},[g,x,w,z,y,G]);var I=d("FBPaySurveyUtils").userHasResearchSurvey(w==null?void 0:w.hasExitSurvey,w==null?void 0:w.hasCompletionSurvey);F=Boolean(d("FBPaySurveyUtils").userHasResearchSurvey(w==null?void 0:w.hasExitSurvey,w==null?void 0:w.hasCompletionSurvey)&&d("FBPaySurveyUtils").isUserInSurveyControlGroup());var J=function(){if(w.step==="CONFIRMATION"){y.log({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_CONFIRMATION_LEAVE});f();return}y.log({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.DISPLAY,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_EXIT_DIALOG});v({onClose:function(){},onCloseLeavingDialog:function(){C.logUserClickCheckoutExit({target_name:"fbpay_checkout"}),f()},showSurveyOnClose:I})},K=o(!1),L=K[0],M=K[1];K=function(){var a=c("usePaymentsCometCheckoutCreatePayment")(),b=c("useConnectPayPal")(),d=b[0];return i.jsx(c("CometAuthenticityPaymentsWizard.react"),{onClose:f,onFinish:function(){M(!0),a(d)},order_id:"0"})};L=d("PaymentsCometCheckoutAPIUtils").isEligibleForIDVFlow(w)&&w.step==="CONFIRM_IDENTITY"&&!L;var N=l(function(){return{dispatch:x,logger:y,state:w}},[y,w]);if(L)return i.jsx(c("PaymentsCometCheckoutContext").Provider,{value:N,children:i.jsx(K,{})});if(w.step==="MEMBERSHIP_DETAIL"&&((K=w.loyaltyAccountLinkingEntryPointSpec)==null?void 0:K.title)!=null){r.title=(K=(K=w.loyaltyAccountLinkingEntryPointSpec)==null?void 0:K.title)!=null?K:w.loyaltyProgramName}else r.title=s();w.step==="CONFIRMATION"&&((K=w.checkoutProps)==null?void 0:K.extraData)!=null&&((K=w.checkoutProps)==null?void 0:(K=K.extraData)==null?void 0:K.negotiable_price_offer_data)!=null&&(r.title=h._("u5df2u51fau4ef7"));(!d("FBPayCometGatingUtils").shouldShowFBPayExperienceOnComet()&&d("PaymentsCometCheckoutAPIUtils").isDonation(A())||F)&&(r.title=h._("u7ed3u8d26"));c("gkx")("773")&&d("PaymentsCometCheckoutAPIUtils").isDonation(A())&&(r.title=h._("u6350u6b3e"));K=d("PaymentsCometCheckoutComponentUtils").showStickyPaymentButton(A())?u.mobileRootWrapper:null;return i.jsx("div",{style:{display:L?"none":null},children:i.jsx(c("CometCardedDialogLegacy.react"),babelHelpers["extends"]({},r,e,{anchorXStyle:K,disableClosingWithMask:!0,onClose:J,testid:void 0,children:i.jsx(c("PaymentsCometCheckoutContext").Provider,{value:N,children:i.jsx(c("FBPayLoggingContext").Provider,{value:a,children:i.jsx(c("PaymentsCometCheckout.react"),{})})})}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
FBPayAuthAPIUtils",["CurrentUser","FBLogger","FBPayAuthLibrary","FBPayAuthLibraryCommon","FBPayCreateFBPayPINMutation","FBPayDisableFBPayPINMutation","FBPayEnableFBPayPINMutation","FBPayGetServerEncryptionKeyMutation","FBPayUpdatePaymentsPINMutation","FBPayVerifyAuthFactorMutation","FBPaymentsModulesAPIUtils","Promise","RelayFBEnvironment","URI","promiseDone","uuid"],(function(a,b,c,d,e,f,g){"use strict";var h=3;function a(a,e){var f={actor_id:c("CurrentUser").getID(),client_mutation_id:c("uuid")(),device_id:"device_id",payment_type:(a=a)!=null?a:"FBPAY_HUB",payment_legacy_account_id:(a=e)!=null?a:null};return new(b("Promise"))(function(a,b){var e=function(e){c("promiseDone")(d("FBPayGetServerEncryptionKeyMutation").getServerEncryptionKey(f),function(f){var g=f.trustChain;f=f.isDevExternal;c("promiseDone")(d("FBPayAuthLibraryCommon").getCryptoKeyFromCert(g,f),function(b){e=0,a(b)},function(a){e===1&&b(a)})},function(a){b(a)}),g=e};for(var g=h;g>=1;g--)e(g)})}function e(a,b,d){a=new(c("URI"))(window.location.href).addQueryData({payment_method_id:a,target_account_id:b,session_id:d});return a.toString()}function f(a,b,e,f,g){var h={data:{app_id:"2805739562851096",auth_ticket_type:"PIN",caps:["CHARGE"],device_id:"12345",pin:"$e2ee"},nonce:c("uuid")(),op:"CREATE_FBPAY_PIN",ver:1};a={pin:a};var i=c("RelayFBEnvironment");c("promiseDone")(d("FBPayAuthLibrary").getPTT(h,a),function(a){var h=a.keyPairs;a=a.ptt;c("FBPayCreateFBPayPINMutation")(i,{client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getID(),payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(b),platform_trust_token:a,logging_id:g,format_type:"NUM_4_DIGITS"},function(a){e(h)},function(a){f(a)})},function(a){f(a)})}function i(a,b,e,f,g,h){var i=d("FBPayAuthLibraryCommon").getVerifyAuthData(a,["CHARGE","DISABLE_FBPAY_PIN","ENABLE_FBPAY_PIN"],c("uuid")());a=a.authFactorType==="PIN"?{pin:f}:a.authFactorType==="CSC"?{csc:f}:{};var j=c("RelayFBEnvironment");c("promiseDone")(d("FBPayAuthLibrary").getPTT(i,a),function(a){var f,i=a.keyPairs;a=a.ptt;c("FBPayVerifyAuthFactorMutation")(j,{client_mutation_id:c("uuid")(),actor_id:(f=c("CurrentUser").getID())!=null?f:"",platform_trust_token:a,payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(b),logging_id:e},function(a){g(i)},function(a){h(a)})},function(){h({remainingAttempts:null})})}function j(a,b,e,f,g,h,i){b=d("FBPayAuthLibraryCommon").getVerifyAuthData(b,e,c("uuid")(),a);var j=c("RelayFBEnvironment");c("promiseDone")(d("FBPayAuthLibraryCommon").getPTTWithoutEncryption(b),function(a){var b,e=a.keyPairs;a=a.ptt;c("FBPayVerifyAuthFactorMutation")(j,{client_mutation_id:c("uuid")(),actor_id:(b=c("CurrentUser").getID())!=null?b:"",platform_trust_token:a,payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(f),logging_id:g},function(a){h(e)},function(a){i(a)})},function(){i({remainingAttempts:null})})}function k(a,b,e,f,g,h,i,j){a=d("FBPayAuthLibraryCommon").getVerifyAuthData(a,["CHARGE"],c("uuid")());var k={pin:b},l=c("RelayFBEnvironment"),m={client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getID(),payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(g),logging_id:j,new_pin:{sensitive_string_value:b}};e!=null?m=babelHelpers["extends"]({},m,{old_pin:{sensitive_string_value:e}}):f!=null&&(m=babelHelpers["extends"]({},m,{password:{sensitive_string_value:f}}));c("promiseDone")(d("FBPayAuthLibrary").getPTT(a,k),function(a){var b=a.keyPairs;a=a.ptt;m=babelHelpers["extends"]({},m,{platform_trust_token:a});d("FBPayUpdatePaymentsPINMutation").updatePaymentsPIN(l,m,function(a){h(b)},function(a){i(a)})},function(a){i(a)})}function l(a,b,e,f,g){var h={data:{},nonce:c("uuid")(),op:"DISABLE_FBPAY_PIN",ver:1},j=c("RelayFBEnvironment");i({authFactorType:"PIN"},a,b,e,function(e){c("promiseDone")(d("FBPayAuthLibrary").getPTT(h,{},e),function(e){e.keyPairs;e=e.ptt;c("FBPayDisableFBPayPINMutation")(j,{client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getID(),platform_trust_token:e,payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(a),logging_id:b},function(a){f()},function(){g({remainingAttempts:null})})},function(){g({remainingAttempts:null})})},function(a){g(a)})}function m(a,b,e,f,g){var h={data:{},nonce:c("uuid")(),op:"ENABLE_FBPAY_PIN",ver:1},j=c("RelayFBEnvironment");i({authFactorType:"PIN"},a,b,e,function(e){c("promiseDone")(d("FBPayAuthLibrary").getPTT(h,{},e),function(e){e.keyPairs;e=e.ptt;c("FBPayEnableFBPayPINMutation")(j,{client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getID(),platform_trust_token:e,payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(a),logging_id:b},function(a){f()},function(){g({remainingAttempts:null})})},function(){g({remainingAttempts:null})})},function(a){g(a)})}function n(a){switch(a){case"PIN":return 70;case"CSC":return 67;case"PAYPAL_ACCESS_TOKEN":return 80;case"SDC":return 68;default:throw c("FBLogger")("fbpay").mustfixThrow("Not supported auth factor type")}}g.getServerPublicCryptoKey=a;g.getPaypalredirectSuccessURL=e;g.createFBPayPIN=f;g.verifyAuthFactor=i;g.verifyAuthFactorPaypal=j;g.updatePIN=k;g.disableFBPayPIN=l;g.enableFBPayPIN=m;g.getAuthTicketType=n}),98);
-----
FBPaymentsCheckoutConfigurationTypes",["AllPaymentTypeFields","FBPaymentsCheckoutConstants","prop-types","react","validateImageSrcPropType"],(function(a,b,c,d,e,f){"use strict";var g;g||b("react");c=b("FBPaymentsCheckoutConstants").Extensions;d=b("FBPaymentsCheckoutConstants").OptionPriceModel;f=b("prop-types").shape({url:b("prop-types").string.isRequired});f=b("prop-types").shape({offset:b("prop-types").number.isRequired,length:b("prop-types").number.isRequired,entity:f.isRequired});f=b("prop-types").shape({text:b("prop-types").string.isRequired,ranges:b("prop-types").arrayOf(f)});var h=b("prop-types").shape({cardType:b("prop-types").string.isRequired,currency:b("prop-types").string,info:b("prop-types").string.isRequired});h=b("prop-types").shape({acquirerBin:b("prop-types").arrayOf(h),acquirerMid:b("prop-types").arrayOf(h),action:b("prop-types").string.isRequired,extraData:b("prop-types").object,isFreePurchase:b("prop-types").bool,merchantName:b("prop-types").string,orderId:b("prop-types").string,payCallback:b("prop-types").func,paymentItemType:b("prop-types").oneOf(Object.values(b("AllPaymentTypeFields"))).isRequired,receiverId:b("prop-types").string});var i=b("prop-types").shape({title:b("prop-types").node.isRequired,subtitle:b("prop-types").node,imageURL:b("prop-types").string});i=b("prop-types").shape({description:b("prop-types").node,participant:i});var j=b("prop-types").shape({title:b("prop-types").string.isRequired,subtitle:b("prop-types").string,subsubtitle:b("prop-types").string,merchantName:b("prop-types").string,merchantText:b("prop-types").string,itemImageUrl:b("prop-types").string}),k=b("prop-types").shape({currency:b("prop-types").string.isRequired,amount:b("prop-types").string.isRequired});function a(a){return function(){return a.apply(this,arguments)}}a=a(function(){return l});var l=b("prop-types").shape({item:j,label:b("prop-types").string.isRequired,priceList:b("prop-types").arrayOf(a),price:k,userFacingReason:b("prop-types").node,zeroAmountReason:b("prop-types").node});a=b("prop-types").arrayOf(l);var m=b("prop-types").shape({identifier:b("prop-types").oneOf([c.CONTACT_NAME]).isRequired}),n=b("prop-types").shape({addEmailNuxCta:b("prop-types").node,addEmailPuxCta:b("prop-types").node,emailLabel:b("prop-types").node,formFooterMessage:b("prop-types").node,fieldPlaceholder:b("prop-types").node,showEmailLabelForMsiteNux:b("prop-types").bool}),o=b("prop-types").shape({identifier:b("prop-types").oneOf([c.CONTACT_EMAIL]).isRequired,customContent:n}),p=b("prop-types").shape({title:b("prop-types").node,iconSrc:b("validateImageSrcPropType"),emailFieldLabel:b("prop-types").node,formFooterMessage:b("prop-types").node});p=b("prop-types").shape({identifier:b("prop-types").oneOf([c.CONTACT_INFO]).isRequired,contactInfoTypes:b("prop-types").arrayOf(b("prop-types").string),customContent:p});var q=b("prop-types").shape({identifier:b("prop-types").oneOf([c.CONTACT_PHONE]).isRequired}),r=b("prop-types").shape({identifier:b("prop-types").oneOf([c.NOTE]).isRequired,length:b("prop-types").number,optional:b("prop-types").bool,placeholderText:b("prop-types").node}),s=b("prop-types").shape({allowChangeBillingCountry:b("prop-types").bool,identifier:b("prop-types").oneOf([c.PAYMENT_METHOD]).isRequired}),t=b("prop-types").shape({identifier:b("prop-types").oneOf([c.PIN_VERIFICATION]).isRequired}),u=b("prop-types").shape({addAddressNuxCta:b("prop-types").node,addAddressPuxCta:b("prop-types").node,addressLabel:b("prop-types").node,extensionLabel:b("prop-types").node,formFooterMessage:b("prop-types").node,formTitle:b("prop-types").node,selectAddressPuxCta:b("prop-types").node,showAddressLabelForMsiteNux:b("prop-types").bool,hideExtension:b("prop-types").bool,useNewAddressForm:b("prop-types").bool}),v=b("prop-types").shape({identifier:b("prop-types").oneOf([c.SHIPPING_ADDRESS]).isRequired,customContent:u}),w=b("prop-types").shape({identifier:b("prop-types").oneOf([c.PRICE_SELECTOR]).isRequired}),x=b("prop-types").shape({identifier:b("prop-types").oneOf([c.FREQUENCY_SELECTOR]).isRequired}),y=b("prop-types").shape({identifier:b("prop-types").oneOf([c.NATIONALITY_SELECTOR]).isRequired}),z=b("prop-types").shape({identifier:b("prop-types").oneOf([c.FREE_TRIAL]).isRequired,nextBillTime:b("prop-types").string,subscriptionFrequency:b("prop-types").node,subscriptionPrice:b("prop-types").node,trialFrequency:b("prop-types").node,trialPeriod:b("prop-types").number,trialType:b("prop-types").string}),A=b("prop-types").shape({"class":b("prop-types").func.isRequired,extensionKey:b("prop-types").string.isRequired,identifier:b("prop-types").oneOf([c.CUSTOM_EXTENSION]).isRequired,onChange:b("prop-types").func,extraProps:b("prop-types").object}),B=b("prop-types").shape({optionId:b("prop-types").string.isRequired,optionPriceList:a,optionTitle:b("prop-types").string.isRequired}),C=b("prop-types").shape({identifier:b("prop-types").string.isRequired,currency:b("prop-types").string,length:b("prop-types").number,optional:b("prop-types").bool,placeholderText:b("prop-types").string,prefilledContent:b("prop-types").string,priceTag:b("prop-types").string,type:b("prop-types").string.isRequired}),D=b("prop-types").shape({actionableTitle:b("prop-types").string.isRequired,disclaimer:b("prop-types").string,formFields:b("prop-types").object,title:b("prop-types").string.isRequired});B=b("prop-types").shape({actionableTitle:b("prop-types").string,allowsMultipleSelection:b("prop-types").bool,collectedDataKey:b("prop-types").string,customOption:D,identifier:b("prop-types").oneOf([c.CUSTOM_OPTIONS]).isRequired,optionListTitle:b("prop-types").string,options:b("prop-types").arrayOf(B).isRequired,preselectedOptionIDs:b("prop-types").arrayOf(b("prop-types").string),priceModel:b("prop-types").oneOf(Object.values(d)),shouldAddToOrderSummary:b("prop-types").bool,shouldPreSelect:b("prop-types").bool,title:b("prop-types").string.isRequired});d=b("prop-types").shape({couponValid:b("prop-types").bool,identifier:b("prop-types").oneOf([c.COUPON_CODE]).isRequired,length:b("prop-types").number,message:b("prop-types").string,optional:b("prop-types").bool,placeholderText:b("prop-types").string.isRequired,prefilledContent:b("prop-types").string,type:b("prop-types").string.isRequired});f=b("prop-types").shape({optIn:b("prop-types").bool,identifier:b("prop-types").oneOf([c.USER_INFO_OPT_IN]).isRequired,disclaimer:f,privacyPolicy:f});c=b("prop-types").shape({identifier:b("prop-types").oneOf([c.TAX_INFO]).isRequired});m=b("prop-types").oneOfType([m,o,q,p,r,s,t,v,A,B,w,x,y,d,z,f,c]);o=b("prop-types").shape({actionTitle:b("prop-types").string,backButton:b("prop-types").bool,backButtonCallback:b("prop-types").func,customTermsAndPoliciesText:b("prop-types").element,merchantName:b("prop-types").string,processorName:b("prop-types").string,termsAndPoliciesUrl:b("prop-types").string});q=b("prop-types").shape({type:b("prop-types").string.isRequired});p=b("prop-types").shape({"class":b("prop-types").func,extraData:b("prop-types").object,extensionKey:b("prop-types").string,identifier:b("prop-types").string.isRequired});r=b("prop-types").shape({confirmationClosedCallback:b("prop-types").func,confirmationExtensions:b("prop-types").arrayOf(p),confirmationText:b("prop-types").node,continueURL:b("prop-types").string,customConfirmationImage:b("prop-types").node,customBottomContext:b("prop-types").node,doneButtonText:b("prop-types").node,doneButtonTrackingNodeType:b("prop-types").node,enableReceiptFooterLink:b("prop-types").bool,forceHideReceiptCTA:b("prop-types").bool,merchantLogoUrl:b("prop-types").string,receiptUrl:b("prop-types").string,hideDoneButton:b("prop-types").bool,isPaymentStatusPending:b("prop-types").bool});s=b("prop-types").shape({checkoutClosedCallback:b("prop-types").func,confirmationConfiguration:r,dialogWidth:b("prop-types").number,entity:i,items:b("prop-types").arrayOf(j).isRequired,priceList:a,purchaseInfo:b("prop-types").arrayOf(m).isRequired,payActionContent:o.isRequired,renderInline:b("prop-types").bool});t=b("prop-types").shape({contentConfiguration:s,orderStatusModel:q.isRequired,paymentInfo:h.isRequired,version:b("prop-types").string.isRequired});v={CheckoutConfigurationPropTypes:t,ConfirmationConfigurationPropTypes:r,ConfirmationExtensionPropTypes:p,ContentConfigurationPropTypes:s,CustomContactEmailContentPropTypes:n,CustomOptionPropTypes:D,CustomShippingAddressContentPropTypes:u,EntityPropTypes:i,FormFieldAttributesPropTypes:C,ItemPropTypes:j,OrderStatusModelPropTypes:q,PayActionContentPropTypes:o,PaymentInfoPropTypes:h,PriceItemPropTypes:l,PriceListPropTypes:a,PricePropTypes:k,PurchaseInfoExtensionPropTypes:m};e.exports=v}),null);
-----
usePaymentsCometGetCardPaymentMethodInfoQuery",["CometRelay","FBPayUPLLogger","FBPaymentsModulesAPIUtils","gkx","promiseDone","usePaymentsCometGetCardPaymentMethodInfoQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("usePaymentsCometGetCardPaymentMethodInfoQuery.graphql");function j(a){a=a==null?void 0:a.replace(/ /g,"");return a==null||(a==null?void 0:a.length)<6?null:a.slice(0,6)}function a(a){var b=a.onError,e=a.onSuccess,f=d("CometRelay").useRelayEnvironment();return function(a,g,h){var k={payment_method:{instrument_type:"CC",provider:"CREDIT_CARD"}};if(a!=null){var l;l=((l=a.selectedCredential)==null?void 0:l.credentialType)==="CREDIT_CARD"||((l=a.selectedCredential)==null?void 0:l.credentialType)==="NEW_CREDIT_CARD";var m=c("gkx")("3818");if(!l||m){e(!1,h);return}k=babelHelpers["extends"]({account_currency:(l=a.userCurrency)!=null?l:"",cc_country_code:(m=a.geoCountry)!=null?m:"",cc_number_bin:j((l=a.selectedCredential)==null?void 0:(m=l.creditCardData)==null?void 0:m.cardNumber),credential_id:(l=a.selectedCredential)==null?void 0:l.credentialID,item_type:a.paymentType},k)}else{k=babelHelpers["extends"]({account_currency:(m=g==null?void 0:g.currency)!=null?m:"",cc_country_code:(l=g==null?void 0:g.country)!=null?l:"",cc_number_bin:j(g==null?void 0:g.cardNumber),item_type:"FBPAY_HUB"},k)}var n=new(c("FBPayUPLLogger"))(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(k.item_type.toLowerCase()),"comet",a==null?void 0:a.clientSessionID);n.logClientLoadThreedsInit({target_name:"3ds_eligibility_query"},{account_currency:(m=k)==null?void 0:m.account_currency,cc_country_code:k.cc_country_code,credential_id:(g=a==null?void 0:(l=a.selectedCredential)==null?void 0:l.credentialID)!=null?g:""});c("promiseDone")(d("CometRelay").fetchQuery(f,i,{input:babelHelpers["extends"]({logging_id:n.getSessionID()},k)}).toPromise(),function(a){var b;if((a==null?void 0:(b=a.card_payment_method_info_query)==null?void 0:b.requires_3ds)===!0&&(a==null?void 0:(b=a.card_payment_method_info_query)==null?void 0:b.mpi_processor)==="CARDINAL_3DS2"){n.logClientLoadThreedsSuccess({target_name:"3ds_eligibility_query"},{is_eligible:"1"});return e(!0,h)}else{n.logClientLoadThreedsSuccess({target_name:"3ds_eligibility_query"},{is_eligible:"0"});return e(!1,h)}},function(a){b()})}}g["default"]=a}),98);
-----
AllPaymentTypeFields",[],(function(a,b,c,d,e,f){a=Object.freeze({PAYMENT_SETTINGS:"payment_settings",PAYOUTHUB_MSC:"payouthub_msc",IG_PAYMENT_SETTINGS:"ig_payment_settings",UNKNOWN:"unknown",CAL_SETTING:"cal_setting",MP_PAYMENT_SETTINGS:"mp_payment_settings",FBPAY_HUB:"fbpay_hub",ECP:"ecp",OFFER:"offer",LOYALTY:"loyalty",MERCHANT_LOYALTY:"merchant_loyalty",MERCHANT_ONBOARDING:"MERCHANT_ONBOARDING",MENU:"menu",META_IAP_OFFSITE:"meta_iap_offsite",META_IAP_ONSITE:"meta_iap_onsite",IAP_ALL_PRODUCTS:"iap_all_products",IAP_INSTANT_GAME:"iap_instant_game",IAP_FAN_FUNDING:"iap_fan_funding",IAP_GAME_TIPPING:"iap_game_tipping",IAP_GROUP_SUBSCRIPTION:"iap_group_subscription",IAP_INSTAGRAM_P2A:"iap_instagram_p2a",IAP_INSTAGRAM_USERPAY_BADGES:"iap_instagram_userpay_badges",IAP_PAID_ONLINE_EVENT:"iap_paid_online_event",IAP_SUPER_MEET_AND_GREET:"iap_super_meet_and_greet",IAP_SUPER_VIRTUAL_GIFT:"iap_super_virtual_gift",IAP_INSTAGRAM_FAN_SUBS:"iap_instagram_fan_subs",IAP_AVATAR_CONTENT:"iap_avatar_content",IAP_NFT:"iap_nft",IAP_NON_CONSUMABLE_VIDEO:"iap_non_consumable_video",IAP_GAMES_SUBSCRIPTION:"iap_games_subscription",IAP_HORIZON_PURCHASES:"iap_horizon_purchases",IAP_WA_BUSINESS_SUBS:"iap_wa_business_subscription",IAP_ADS_BILLING:"iap_ads_billing",IAP_INSTAGRAM_CONTENT_APPRECIATION:"iap_instagram_content_appreciation",IAP_META_GEM:"iap_meta_gem",IAP_NME_SUBSCRIPTION:"iap_nme_subscription",IAP_WA_BUSINESS_CREDIT:"iap_wa_business_credit",FB_BROWSER_PAYMENT:"fb_browser_payment",MOR_NONE:"mor_none",MOR_ADS_CONSENT:"mor_ads_consent",MOR_ADS_CONSENT_AFA:"mor_ads_consent_afa",MOR_ADS_AFA:"mor_ads_afa",MOR_WA_PAID_MESSAGING:"mor_wa_paid_messaging",MOR_BIZ_MESSAGING:"mor_biz_messaging",MOR_ADS_INVOICE:"mor_ads_invoice",MOR_ADS_AUTH:"mor_ads_auth",MOR_ADS_BUSINESS:"mor_ads_business",MOR_ADS_STORED_BALANCE:"mor_ads_stored_balance",MOR_DONATIONS:"mor_donations",MOR_DONATIONS_CAUSE_FOR_CHARITIES:"mor_donations_cause_for_charities",MOR_DONATIONS_MATCHING_CONFIRMATION:"mor_donations_matching_confirmation",MOR_DONATIONS_MATCHING_PLEDGE:"mor_donations_matching_pledge",MOR_OCULUS_CV1:"mor_oculus_cv1",MOR_OCULUS_LAUNCH_V1:"mor_oculus_launch_v1",MOR_OCULUS_LAUNCH_V2:"mor_oculus_launch_v2",MOR_OCULUS_SUBSCRIPTION:"mor_oculus_subscription",MOR_OZONE:"mor_ozone",MOR_OPEN_GRAPH_PRODUCT:"mor_open_graph_product",MOR_MESSENGER_COMMERCE:"mor_messenger_commerce",MOR_P2P_TRANSFER:"mor_p2p_transfer",MOR_GIFTS:"mor_gifts",MOR_BILL:"mor_bill",MOR_AIRMAIL:"mor_airmail",MOR_EVENT_TICKETING:"mor_event_ticketing",MOR_WORKPLACE_USAGE:"mor_workplace_usage",MOR_FACEBOOK_SHOP:"mor_facebook_shop",MOR_FAN_FUNDING:"mor_fan_funding",MOR_VOICES:"mor_voices",MOR_GAME_TIPPING_TOKEN:"mor_game_tipping_token",MOR_INSTANT_GAMES:"mor_instant_games",MOR_GAMES_SUBSCRIPTION:"mor_games_subscription",MOR_ALT_APP_STORES:"mor_alt_app_stores",MOR_GROUP_SUBSCRIPTION:"mor_group_subscription",MOR_PAID_ONLINE_EVENT:"mor_paid_online_event",MOR_SUPER_MEET_AND_GREET:"mor_super_meet_and_greet",MOR_SUPER_VIRTUAL_GIFT:"mor_super_virtual_gift",MOR_NON_CONSUMABLE_VIDEO:"mor_non_consumable_video",MOR_PAYOUT_DEV:"mor_payout_dev",MOR_PAYOUT_CHARITY:"mor_payout_charity",MOR_PAYOUT_ADNET:"mor_payout_adnet",MOR_PAYOUT_OCU:"mor_payout_ocu",MOR_PAYOUT_DCP:"mor_payout_dcp",MOR_PAYOUT_AUTOPAY:"mor_payout_autopay",MOR_PAYOUT_MISCAP:"mor_payout_miscap",MOR_PAYOUT_CONTENT:"mor_payout_content",MOR_REPAYMENT:"mor_repayment",MOR_THIRD_PARTY_APP_STORES_IAP:"mor_third_party_app_stores_iap",MOR_CP_RETURN_LABEL:"mor_cp_return_label",MOR_WHATSAPP_P2P:"mor_whatsapp_p2p",MOR_NME_SUBSCRIPTION:"mor_nme_subscription",NMOR_UNKNOWN:"nmor_unknown",NMOR_NONE:"nmor_none",NMOR_PAGES_COMMERCE:"nmor_pages_commerce",NMOR_COMPONENT_FLOW:"nmor_component_flow",NMOR_BUSINESS_PLATFORM_COMMERCE:"nmor_business_platform_commerce",NMOR_SYNCHRONOUS_COMPONENT_FLOW:"nmor_synchronous_component_flow",NMOR_EVENT_TICKETING:"nmor_event_ticketing",NMOR_MARKETPLACE_TICKETING:"nmor_marketplace_ticketing",NMOR_PLATFORM_SELF_SERVE:"nmor_platform_self_serve",NMOR_MESSENGER_PLATFORM:"nmor_messenger_platform",NMOR_TIP_JAR:"nmor_tip_jar",NMOR_INSTANT_EXPERIENCES:"nmor_instant_experiences",NMOR_CHECKOUT_EXPERIENCES:"nmor_checkout_experiences",NMOR_C2C_CHECKOUT_EXPERIENCES:"nmor_c2c_checkout_experiences",NMOR_BUY_ON_FACEBOOK:"nmor_buy_on_facebook",NMOR_DONATION_P4P:"nmor_donation_p4p",NMOR_DONATION_P4C:"nmor_donation_p4c",NMOR_DONATION_CIELO:"nmor_donation_cielo",NMOR_NETWORK_TOKEN_NOTIF:"nmor_network_token_notif",NMOR_WHATSAPP_P2P:"nmor_whatsapp_p2p",NMOR_P2P:"nmor_p2p",NMOR_MESSENGER_P2P:"nmor_messenger_p2p",NMOR_MOBILE_TOP_UP:"nmor_mobile_top_up",NMOR_MFS:"nmor_mfs",NMOR_SHIPPING_LABEL_DEPRECATED:"nmor_shipping_label",NMOR_PAGES_SOLUTION_DEPRECATED:"nmor_pages_solution",NMOR_BLACKBAUD_RWR_DONATION:"nmor_blackbaud_rwr_donation",NMOR_MARKETPLACE_SHIPPING:"nmor_marketplace_shipping",NMOR_DUMMY:"nmor_dummy",NMOR_PPGF_DONATION:"nmor_ppgf_donation",NMOR_ADVERTISER_SUBSCRIPTION:"nmor_advertiser_subscription",NMOR_WHATSAPP_P2M:"nmor_whatsapp_p2m",WHATSAPP_P2M_LITE:"whatsapp_p2m_lite",MESSENGER_P2M:"messenger_p2m",NMOR_MOVIE_TICKETING:"nmor_movie_ticketing",NMOR_MESSAGING_COMMERCE:"nmor_messaging_commerce",NMOR_LIBRA:"nmor_libra",NMOR_SERVICES:"nmor_services",IN_APP_WEBVIEWER_PURCHASE:"in_app_webviewer_purchase",IG_NMOR_DONATION_P4P:"ig_nmor_donation_p4p",IG_NMOR_P2B:"ig_nmor_p2b",IG_NMOR_SHOPPING:"ig_nmor_shopping",IG_NMOR_SHOPPING_ONBOARDING:"ig_nmor_shopping_onboarding",IG_MOR_DONATIONS:"ig_mor_donations",IAB_AUTOFILL:"iab_autofill",CONNECT_VIA_IAW:"connect_via_iaw",NMOR_OFFSITE_SHOPPING:"nmor_offsite_shopping",FBPAY_CARD_TOKENIZATION:"fbpay_card_tokenization",CONTACTLESS_PAYMENT:"contactless_payment",NMOR_INSTAGRAM_P2B:"nmor_instagram_p2b",DUMMY_FIRST_PARTY_V2:"dummy_first_party_v2",DUMMY_THIRD_PARTY_V2:"dummy_third_party_v2",SOFT_DESCRIPTOR_AUTH:"soft_descriptor_auth",AD_PUBLISHER:"ad_publisher",ADS_MANAGER:"ads_manager",SIGMA:"sigma",FRAUD_CHECK:"fraud_check",SHOPIFY_API:"shopify_api",PAYMENTS_API_UNKNOWN_PRODUCT:"payments_api_unknown_product",FINANCIAL_SERVICES:"financial_services",INSTAGRAM_P2M:"instagram_p2m",DIGITAL_COLLECTIBLES:"digital_collectibles",IG_DIGITAL_COLLECTIBLES:"ig_digital_collectibles",FB_DIGITAL_COLLECTIBLES:"fb_digital_collectibles",IG_MINTING:"ig_minting",FB_MINTING:"fb_minting",IG_DIGITAL_COLLECTIBLES_PAYMENTS:"ig_digital_collectibles_payments",FB_DIGITAL_COLLECTIBLES_PAYMENTS:"fb_digital_collectibles_payments",BILLING_HUB:"billing_hub",BILLING_WIZARD:"billing_wizard",CREATORS_AS_MARKETER_AFFILIATE:"cam_affiliate",CREATOR_MARKETPLACE:"creator marketplace",META_REWARD:"meta_reward",LITE_CHECKOUT:"lite_checkout",MESSENGER_BUSINESS_MESSAGING_API:"messenger_business_messaging_api",AURORA:"aurora"});f["default"]=a}),66);
-----
PaymentsCometTransactionHubPINDialogContent.react",["fbt","CometLink.react","FBPayCometAuthAPIUtils","FBPayCometAuthString","FBPayCometGatingUtils","FBPayECPActionButton.react","FBPayECPFormTextInput.react","FBPayECPText.react","FBPayLoggingContext","FBPaymentsLoggerConstants","FBPaymentsModulesAPIUtils","FBPaymentsPINInputFieldContainerV2.react","PaymentsCometOverlayLoadingSpinner.react","PaymentsCometSpinner.react","PaymentsCometTransactionHubAPIUtils","PaymentsCometTransactionHubContext","PaymentsCometTransactionHubPINFlowStep","PaymentsCometTransactionHubPINFlowType","TetraButton.react","XRecoverInitiateControllerRouteBuilder","emptyFunction","gkx","react","setTimeout","usePaymentsCometAddPINMutation","usePaymentsCometSwitchPINMutation","usePaymentsCometUpdateFBPayPINWithPW","usePaymentsCometUpdatePINMutation","usePaymentsCometVerifyPINMutation","usePaymentsCometVerifyPasswordMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useContext,aa=b.useEffect,k=b.useState,l={CONFIRM_PIN:"CONFIRM_PIN",CREATED_PIN:"CREATED_PIN",ENTER_PIN:"ENTER_PIN"},ba=["ENABLE_FBPAY_PIN"],m=1500,n=500,ca=0,da=2,ea=4,fa=2e3;function a(a){var b=a.context;b=b===void 0?c("PaymentsCometTransactionHubContext"):b;var e=a.flowStep,f=a.ecpLogger,g=a.isDesktop;g=g===void 0?!0:g;var o=a.onClose,p=o===void 0?c("emptyFunction"):o,q=a.onFlowStepChange;o=a.onSubmit;var r=o===void 0?c("emptyFunction"):o;o=a.onSubmitNewAPI;var s=o===void 0?c("emptyFunction"):o;o=a.paymentType;var t=o===void 0?"FBPAY_HUB":o,u=a.pinFlowType,v=a.pinStatus,w=a.productID,x=a.receiverID;o=a.productCap;o=o===void 0?ba:o;a=a.enableForgetPINButton;var ga=a===void 0?!0:a,y=c("usePaymentsCometSwitchPINMutation")(),ha=c("usePaymentsCometVerifyPasswordMutation")(),z=c("usePaymentsCometVerifyPINMutation")(),A=d("FBPayCometAuthAPIUtils").usePaymentsCometVerifyAuthFactor(),ia=d("FBPayCometAuthAPIUtils").usePaymentsCometDisableFBPayPIN(),ja=d("FBPayCometAuthAPIUtils").usePaymentsCometEnableFBPayPIN(),ka=d("FBPayCometAuthAPIUtils").usePaymentsCometResetFBPayPIN(),la=d("FBPayCometAuthAPIUtils").usePaymentsCometCreateFBPayPIN(),ma=c("usePaymentsCometAddPINMutation")(),na=d("usePaymentsCometUpdateFBPayPINWithPW").usePaymentsCometUpdateFBPayPINWithPW(),oa=c("usePaymentsCometUpdatePINMutation")();a=k(!1);var pa=a[0],B=a[1];a=k(!1);var qa=a[0],C=a[1];a=k("");var D=a[0],E=a[1];a=k(!1);var ra=a[0],F=a[1];a=k(!1);var sa=a[0],G=a[1];a=k(null);var ta=a[0],H=a[1];a=k(!0);var ua=a[0],va=a[1];a=k("");var I=a[0],wa=a[1];a=k(l.ENTER_PIN);var J=a[0],K=a[1];a=k("");var xa=a[0],ya=a[1];a=j(b);var L=a.logger,M=d("FBPayCometGatingUtils").shouldUseNewPINAPIOnComet(t);b=k(null);var za=b[0],Aa=b[1];a=j(c("FBPayLoggingContext"));b=a.logger;var N=(a=f)!=null?a:b,O=N.getSessionID(),P=o==="SEND_MONEY"?["SEND_MONEY"]:o.concat(),Q=function(){if(u===c("PaymentsCometTransactionHubPINFlowType").SWITCH_PIN)switch(v){case void 0:return d("FBPaymentsLoggerConstants").LoggerFlowStep.CREATE_PIN;case"ACTIVE":return d("FBPaymentsLoggerConstants").LoggerFlowStep.DISABLE_PIN;case"DISABLED":return d("FBPaymentsLoggerConstants").LoggerFlowStep.ENABLE_PIN;default:return d("FBPaymentsLoggerConstants").LoggerFlowStep.RESET_PIN}else if(u===c("PaymentsCometTransactionHubPINFlowType").CHANGE_PIN)return d("FBPaymentsLoggerConstants").LoggerFlowStep.RESET_PIN},Ba=function(){N.setPlatformAndProductType(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(t.toLowerCase()),"comet");switch(e){case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN:N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"fbpay_verify_pin"});return;case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN:J===l.ENTER_PIN?N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"reset_pin"}):J===l.CONFIRM_PIN&&N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"reset_pin_confirm"});return;case c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN:J===l.ENTER_PIN?N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"fbpay_create_pin"}):J===l.CONFIRM_PIN&&N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"fbpay_confirm_pin"});return;case"FORGOT_PIN_PASSWORD_CONFIRM":N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"fbpay_forget_pin"});return;default:return}};aa(function(){Ba(),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.DISPLAY).log()},[e,J]);var Ca=i.jsx(c("TetraButton.react"),{label:h._("u5fd8u8bb0 PIN u7801uff1f"),onPress:function(){q(c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.CLICK).addToExtraData("button_click","FORGET").log(),N.logUserClickAuthAtomic({auth_factor_type:70,target_name:"forget_pin_link"})},reduceEmphasis:!0,type:"secondary"});f=c("XRecoverInitiateControllerRouteBuilder").buildURL({});var Da=i.jsx(c("TetraButton.react"),{label:h._("u5fd8u8bb0u5bc6u7801u4e86uff1f"),linkProps:{target:"_blank",url:f},onPress:function(){N.logUserClickAuthAtomic({auth_factor_type:70,target_name:"forget_password_link"})},reduceEmphasis:!0,type:"secondary"});a=function(){var a;if(ga&&(e===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN||e===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN||e===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY))a=Ca;else if(e===c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM||e===c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM)a=Da;else return null;return i.jsx("div",{className:"xu06os2 x1anpbxc",children:a})};var Ea=function(a){v==="ACTIVE"?y(d("PaymentsCometTransactionHubAPIUtils").prepareSwitchPIN("DISABLED",t,a),R(a),T):y(d("PaymentsCometTransactionHubAPIUtils").prepareSwitchPIN("ACTIVE",t,a),R(a),T),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT).log()},Fa=function(a){v==="ACTIVE"?ia(a,t,O,Z,$,x):ja(a,t,O,Z,$,x)},R=function(a){return function(){Ga(a)}},Ga=function(a){C(!1),K(l.CREATED_PIN),c("setTimeout")(function(){p(),r(a)},m),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS).log()},Ha=function(a){return function(){u===c("PaymentsCometTransactionHubPINFlowType").SWITCH_PIN?Ea(a):Ga(a)}},Ia=function(a,b){u===c("PaymentsCometTransactionHubPINFlowType").SWITCH_PIN?Fa(b):Z(a)},Ja=function(a){return function(b){var c;c=b==null?void 0:(c=b.switch_payments_pin)==null?void 0:c.success;b=(b=b==null?void 0:(b=b.switch_payments_pin)==null?void 0:b.remain_attempts_count)!=null?b:Infinity;Boolean(c)?(La(a),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS).log()):(S(b),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.FAIL).setUserFacingMessage(W(b)).log())}},Ka=function(a){return function(b){var c;c=b==null?void 0:(c=b.verify_payments_pin)==null?void 0:c.is_valid;b=(b=b==null?void 0:(b=b.verify_payments_pin)==null?void 0:b.remain_attempts_count)!=null?b:Infinity;Boolean(c)?(La(a),L.setFlowStep(d("FBPaymentsLoggerConstants").LoggerFlowStep.VERIFY_PIN).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS).log()):(S(b),L.setFlowStep(d("FBPaymentsLoggerConstants").LoggerFlowStep.VERIFY_PIN).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.FAIL).setUserFacingMessage(W(b)).log())}},S=function(a){F(!1),B(!1),G(!0),H(W(a)),c("setTimeout")(function(){G(!1),E("")},n),a===0&&c("setTimeout")(function(){H(null),q(c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM)},fa)},La=function(a){F(!0),H(""),u===c("PaymentsCometTransactionHubPINFlowType").CHANGE_PIN?Na():(p(),r(a))},T=function(a){B(!1),C(!1),G(!0),H(a==null?void 0:a.error_description),va(!0),c("setTimeout")(function(){G(!1),E("")},n),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.FAIL).setUserFacingMessage(a==null?void 0:a.error_description).log()},Ma=function(){B(!1),q(c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN)},Na=function(){B(!1),q(c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN)};b=function(){switch(e){case c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN:if(J===l.CONFIRM_PIN)return h._("u518du6b21u8f93u5165 PIN u7801");else if(J===l.CREATED_PIN)return h._("PIN u7801u5df2u521bu5efa");else return h._("u521bu5efa PIN u7801");case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN:return h._("u8f93u5165 PIN u7801");case c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM:return h._("u5fd8u8bb0 PIN u7801uff1f");case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN:if(J===l.CONFIRM_PIN)return h._("u518du6b21u8f93u5165u65b0 PIN u7801");else if(J===l.CREATED_PIN)return h._("PIN u7801u5df2u521bu5efa");else return u===c("PaymentsCometTransactionHubPINFlowType").CHANGE_PIN?h._("u66f4u6539 PIN u7801"):h._("u91cdu7f6e PIN u7801");case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM:return h._("u91cdu7f6e PIN u7801");default:return""}};var U=c("gkx")("1902661");o=U&&c("gkx")("4245");var V=c("gkx")("2469")||o;f=function(){switch(e){case c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN:return V?h._("u5728u67d0u4e9bu60c5u51b5u4e0buff0cu4f60u9700u8981u8f93u5165 PIN u7801u8fdbu884cu5b89u5168u9a8cu8bc1u3002u5982u679cu4f60u5e0cu671bu6bcfu6b21u90fdu8f93u5165 PIN u7801uff0cu8bf7u8bbfu95ee Meta Pay u8bbeu7f6eu3002"):h._("u5728u67d0u4e9bu60c5u51b5u4e0buff0cu4f60u9700u8981u8f93u5165 PIN u7801u8fdbu884cu5b89u5168u9a8cu8bc1u3002u5982u679cu4f60u5e0cu671bu6bcfu6b21u90fdu8f93u5165 PIN u7801uff0cu8bf7u8bbfu95ee Facebook Pay u8bbeu7f6eu3002");case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN:return V?h._("u8f93u5165u4f60u7684 Meta Pay PIN u7801u6765u7ee7u7eedu64cdu4f5cu3002"):h._("u8f93u5165u4f60u7684 Facebook Pay PIN u7801u5e76u7ee7u7eedu64cdu4f5cu3002");case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN:return V?h._("u8f93u5165u4f60u7684 Meta Pay PIN u7801u6765u7ee7u7eedu64cdu4f5cu3002"):h._("u8f93u5165u4f60u7684 Facebook Pay PIN u7801u5e76u7ee7u7eedu64cdu4f5cu3002");case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY:return V?h._("u8bf7u8f93u5165u4f60u7684 Meta Pay PIN u7801u6765u786eu8ba4u652fu4ed8u3002"):h._("u8bf7u8f93u5165u4f60u7684 Facebook Pay PIN u7801u6765u786eu8ba4u652fu4ed8u3002");case c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM:return U?h._("u8bf7u8f93u5165 Instagram u5bc6u7801u6765u91cdu7f6eu4f60u7684 PIN u7801u3002"):h._("u8bf7u8f93u5165 Facebook u5bc6u7801u6765u91cdu7f6eu4f60u7684 PIN u7801u3002");case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN:if(J===l.ENTER_PIN)return V?h._("u8f93u5165u65b0u7684 Meta Pay PIN u7801u3002"):h._("u8f93u5165u65b0u7684 Facebook Pay PIN u7801u3002");else return V?h._("u8f93u5165u65b0u7684 Meta Pay PIN u7801u3002"):h._("u8f93u5165u65b0u7684 Facebook Pay PIN u7801u3002");case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM:return U?h._("u8bf7u5148u8f93u5165 Instagram u5bc6u7801u518du7ee7u7eedu3002"):h._("u8bf7u5148u8f93u5165 Facebook u5bc6u7801u518du7ee7u7eedu3002");default:return""}};var W=function(a){if(a===ca)return h._("PIN u7801u9519u8befu3002u8bf7u91cdu7f6e PIN u7801u3002");return a<=da?h._({"*":"PIN u7801u9519u8befu3002u4f60u8fd8u6709{attempts}u6b21u5c1du8bd5u673au4f1au3002"},[h._plural(a),h._param("attempts",a)]):(D==null?void 0:D.length)===ea&&ra?null:h._("PIN u7801u9519u8befuff0cu8bf7u91cdu8bd5u3002")};o=function(a){e===c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN||e===c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN?J===l.ENTER_PIN?(E(a),K(l.CONFIRM_PIN)):a===D?(Boolean(I)?M?na(P,a,I,t,O,Ia,$,x):(oa(d("PaymentsCometTransactionHubAPIUtils").prepareUpdatePIN(a,"",I,t,O),Ha(a),T),L.setFlowStep(d("FBPaymentsLoggerConstants").LoggerFlowStep.RESET_PIN_WITH_PASSWORD).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT).log()):Boolean(xa)?(M?ka(P,a,t,O,Z,T,za,x):oa(d("PaymentsCometTransactionHubAPIUtils").prepareUpdatePIN(a,xa,"",t,O),Ha(a),T),L.setFlowStep(d("FBPaymentsLoggerConstants").LoggerFlowStep.RESET_PIN).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT).log()):M?la(P,a,t,O,Z,T,x,w):ma(d("PaymentsCometTransactionHubAPIUtils").prepareCreatePIN(a,t,O),R(a),T),H(null),C(!0)):(G(!0),H(h._("PIN u7801u4e0du4e00u81f4u3002")),c("setTimeout")(function(){G(!1)},n)):e===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN?(B(!0),E(a),H(null),v==="ACTIVE"?M?ia(a,t,O,Y,$,x):y(d("PaymentsCometTransactionHubAPIUtils").prepareSwitchPIN("DISABLED",t,a),Ja(a),T):v==="DISABLED"&&(M?ja(a,t,O,Y,$,x):y(d("PaymentsCometTransactionHubAPIUtils").prepareSwitchPIN("ACTIVE",t,a),Ja(a),T)),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT).log()):e===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN?(B(!0),E(a),ya(a),H(null),M?A(["RESET_FBPAY_PIN"],{authFactorType:"PIN"},t,O,a,null,Y,$,x,w):z(d("PaymentsCometTransactionHubAPIUtils").prepareVerifyPIN(t,a,O),Ka(a),T),L.setFlowStep(d("FBPaymentsLoggerConstants").LoggerFlowStep.VERIFY_PIN).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT).log()):e===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY&&(B(!0),E(a),H(null),M?A(P,{authFactorType:"PIN"},t,O,a,null,Y,$,x,w):z(d("PaymentsCometTransactionHubAPIUtils").prepareVerifyPIN(t,a,O),Ka(a),T))};var X=function(a){H(null),va(!((a==null?void 0:a.length)>=1)),wa(a)},Oa=function(){B(!0),H(null),ha(d("PaymentsCometTransactionHubAPIUtils").prepareVerifyPassword(I,t,O),Ma,T)},Y=function(a){F(!0),H(null),e===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY||u===c("PaymentsCometTransactionHubPINFlowType").SWITCH_PIN?(s(a),p()):u===c("PaymentsCometTransactionHubPINFlowType").CHANGE_PIN&&(Aa(a),Na())},Z=function(a){C(!1),K(l.CREATED_PIN),c("setTimeout")(function(){p(),s(a)},m)},$=function(a){a=a==null?void 0:a.remainingAttempts;a==null?(B(!1),G(!0),H(d("FBPayCometAuthString").GENERAL_ERROR),c("setTimeout")(function(){G(!1),E("")},n)):S(a)},Pa=e===c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN?i.jsx("div",{className:"x6prxxf x1s688f",children:i.jsx(c("CometLink.react"),{href:"https://www.facebook.com/help/1434403039959381",style:{color:"#1877F2"},target:"_blank",children:h._("u8be6u7ec6u4e86u89e3")})}):null,Qa=function(){switch(e){case c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN:case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN:if(qa)return Ta;else if(J===l.CREATED_PIN)return Ua;else return Sa;case c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM:case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM:return Ra;case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY:default:return Sa}},Ra=i.jsx("div",{className:"xh8yej3",children:i.jsx(c("FBPayECPFormTextInput.react"),{label:h._("u5bc6u7801"),onFieldChange:X,type:"password",value:I})}),Sa=i.jsx("div",{className:"xu06os2 x1anpbxc",children:i.jsx(c("FBPaymentsPINInputFieldContainerV2.react"),{disabled:pa,isDesktop:g,onPINEnter:o,pin:"",shake:sa,smallerCircle:!0})}),Ta=i.jsx(c("PaymentsCometSpinner.react"),{type:"empty"}),Ua=i.jsx(c("PaymentsCometSpinner.react"),{type:"checkmark"});X=e===c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM||e===c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM?i.jsx("div",{className:"xu06os2 x1anpbxc xh8yej3",children:i.jsx(c("FBPayECPActionButton.react"),{fbActionButton:{reduceEmphasis:!0},isDisabled:ua,label:h._("u7ee7u7eed"),onPress:Oa})}):null;g=Boolean(ta)?i.jsx("div",{className:"xw7yly9",children:i.jsx(c("FBPayECPText.react"),{fbColor:"negative",fbType:"bodyLink3",igText:{color:"errorOrDestructive"},children:ta})}):null;return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"x6s0dn4 x78zum5 xdt5ytf xl56j7k x1cnzs8 xc73u3c xx6bls6 x5ib6vp x2b8uid",children:[i.jsx("div",{className:"x1d0ri9u",children:i.jsx(c("FBPayECPText.react"),{fbType:"headlineEmphasized3",igText:{weight:"semibold"},children:b()})}),i.jsxs("div",{className:"xieb3on xw7yly9",children:[i.jsx(c("FBPayECPText.react"),{fbType:"bodyLink3",children:f()}),Pa]}),Qa(),g,X,a()]}),pa&&i.jsx(c("PaymentsCometOverlayLoadingSpinner.react"),{})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
FBPaymentsModulesAPIUtils",["fbt","AdsCurrencyFormatter","BillingAgreementType","CreditCardFormParam","CurrentUser","FBPaymentsAffirmParamsGenerator","FBPaymentsCreditCardParamsGenerator","FBPaymentsCustomFormHelper","FBPaymentsDummyPaymentMethodParamsGenerator","FBPaymentsGiftcardBalanceParamsGenerator","FBPaymentsNewPaymentOptionTypes","FBPaymentsPaymentMethodTypes","FBPaymentsPaypalParamsGenerator","PageCommerceManualPaymentMethodParamsGenerator","PageCommerceOnlineBankingParamsGenerator","guid","uniqueID"],(function(a,b,c,d,e,f,g){"use strict";var h={stripWhitespace:function(a){return a.replace(/s/g,"")},parseExpiration:function(a){a=a.split("/");var c=a[0];a=a[1];var d={};d[b("CreditCardFormParam").MONTH]=c;d[b("CreditCardFormParam").YEAR]=a;return d},prepareCardMutationData:function(a){var c={};a[b("CreditCardFormParam").CARD_NUMBER]&&(c[b("CreditCardFormParam").CARD_NUMBER]=h.getFormDataCardNumber(a));c[b("CreditCardFormParam").CARD_EXPIRATION+"["+b("CreditCardFormParam").MONTH+"]"]=h.getFormDataExpMonth(a);c[b("CreditCardFormParam").CARD_EXPIRATION+"["+b("CreditCardFormParam").YEAR+"]"]=h.getFormDataExpYear(a);return babelHelpers["extends"]({},a,c)},parseAddressFormConfig:function(a){var c=new Map();a=(a=a==null?void 0:a.country_to_fields)!=null?a:[];a.forEach(function(a){var d=a.country_code;if(d){a=a.form_fields.map(function(a){return b("FBPaymentsCustomFormHelper").parseCustomFieldServerConfig(a)});c.set(d,a)}});return c},prepareInlineCardDirectChargeData:function(a){return{credit_card_number:h.getFormDataCardNumber(a),cc_exp_month:h.getFormDataExpMonth(a),cc_exp_year:h.getFormDataExpYear(a),cc_country_code:a[b("CreditCardFormParam").COUNTRY],cc_zip:a[b("CreditCardFormParam").ZIP],csc:a[b("CreditCardFormParam").CSC],nmor_payment_method:JSON.stringify({type:b("FBPaymentsPaymentMethodTypes").CREDIT_CARD})}},prepareDirectChargeCreditCardData:function(a){var b=h.getFormDataCardNumber(a);return{csc:a.csc,credit_card:{credit_card_number:b,credit_card_last_4:b.substring(b.length,b.length-4),credit_card_first_6:b.substring(0,6),cardholder_name:a.card_holder_name,expiry_year:h.getFormDataExpYear(a),expiry_month:h.getFormDataExpMonth(a),billing_address:{country_code:a.country,street1:a.street,city:a.city,state:a.state,zip:a.zip}}}},getFormDataCardNumber:function(a){return h.stripWhitespace(a[b("CreditCardFormParam").CARD_NUMBER])},getFormDataWithoutAuth:function(a){var b=a.without_auth,c=a.country;a=a.combined_payment_type;a==="nmor_donation_p4c"&&c==="IN"&&(b=!0);return b},getFormDataExpiration:function(a){var c=a[b("CreditCardFormParam").CARD_EXPIRATION];typeof c==="string"&&(c=h.parseExpiration(a[b("CreditCardFormParam").CARD_EXPIRATION]));return c},getFormDataExpMonth:function(a){a=h.getFormDataExpiration(a);return a[b("CreditCardFormParam").MONTH]},getFormDataExpYear:function(a){a=h.getFormDataExpiration(a);return a[b("CreditCardFormParam").YEAR]},genRequestID:function(){return"id:"+b("guid")()+":"+Date.now()},getMultiCredentialRequestParams:function(a,b,c){var d=a==null?void 0:a.paymentMethod,e=a==null?void 0:a.secondaryPaymentMethod;if(!d)return{};var f=h.getPaymentMethodParamsGenerator(e),g={};f&&(g=f.getMultiCredentialRequestParams(d.getID(),d.credentialType,e,b,c));return babelHelpers["extends"]({},g,h.getPaymentMethodRequestParams(d,a==null?void 0:a.bank))},getPaymentMethodParamsGenerator:function(a){switch(a.getType()){case b("FBPaymentsPaymentMethodTypes").CREDIT_CARD:return b("FBPaymentsCreditCardParamsGenerator");case b("FBPaymentsPaymentMethodTypes").PAYPAL_BILLING_AGREEMENT:return b("FBPaymentsPaypalParamsGenerator");case b("FBPaymentsPaymentMethodTypes").MANUAL_TRANSFER:return b("PageCommerceManualPaymentMethodParamsGenerator");case b("FBPaymentsPaymentMethodTypes").NET_BANKING:return b("PageCommerceOnlineBankingParamsGenerator");case b("FBPaymentsPaymentMethodTypes").AFFIRM_MONTHLY_PAYMENT:return b("FBPaymentsAffirmParamsGenerator");case b("FBPaymentsPaymentMethodTypes").GIFTCARD_BALANCE:return b("FBPaymentsGiftcardBalanceParamsGenerator");case b("FBPaymentsPaymentMethodTypes").DUMMY_PAYMENT_METHOD:return b("FBPaymentsDummyPaymentMethodParamsGenerator");default:return null}},getPaymentMethodRequestParams:function(a,c){if(!a)return{};var d=h.getPaymentMethodParamsGenerator(a);switch(a.getType()){case b("FBPaymentsPaymentMethodTypes").AFFIRM_MONTHLY_PAYMENT:case b("FBPaymentsPaymentMethodTypes").CREDIT_CARD:case b("FBPaymentsPaymentMethodTypes").MANUAL_TRANSFER:case b("FBPaymentsPaymentMethodTypes").PAYPAL_BILLING_AGREEMENT:case b("FBPaymentsPaymentMethodTypes").DUMMY_PAYMENT_METHOD:case b("FBPaymentsPaymentMethodTypes").GIFTCARD_BALANCE:return d.getRequestParams(a);case b("FBPaymentsPaymentMethodTypes").NET_BANKING:return b("PageCommerceOnlineBankingParamsGenerator").getRequestParams(a,c);default:return{}}},getPaymentMethodRequestParamsGraphQL:function(a,c){if(!a)return{};switch(a.getType()){case b("FBPaymentsPaymentMethodTypes").CREDIT_CARD:return b("FBPaymentsCreditCardParamsGenerator").getRequestParamsGraphQL(a);case b("FBPaymentsPaymentMethodTypes").PAYPAL_BILLING_AGREEMENT:return b("FBPaymentsPaypalParamsGenerator").getRequestParamsGraphQL(a);case b("FBPaymentsPaymentMethodTypes").MANUAL_TRANSFER:return b("PageCommerceManualPaymentMethodParamsGenerator").getRequestParamsGraphQL(a);case b("FBPaymentsPaymentMethodTypes").NET_BANKING:return b("PageCommerceOnlineBankingParamsGenerator").getRequestParamsGraphQL(a);default:return{}}},prepareAddCardData:function(a){var b=h.getFormDataCardNumber(a);return{payment_account_id:a.account_id,expiry_year:"20"+h.getFormDataExpYear(a),expiry_month:h.getFormDataExpMonth(a),payment_type:a.combined_payment_type,billing_address:{country_code:a.country,street1:a.street,city:a.city,state:a.state,zip:a.zip},credit_card_number:{sensitive_string_value:b},credit_card_first_6:{sensitive_string_value:b.substring(0,6)},credit_card_last_4:{sensitive_string_value:b.substring(b.length,b.length-4)},csc:{sensitive_string_value:a.csc},cardholder_name:a.card_holder_name,logging_id:a.logging_id,session_id:a.session_id,receiver_id:a.receiver_id,without_auth:h.getFormDataWithoutAuth(a)}},prepareAddCardDataGraphQL:function(a){a=h.prepareAddCardData(a);return a},prepareAddPaymentsPINGraphQL:function(a){return{actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),payment_type:a.payment_type,payments_protected:!0,fbpay_pin:{sensitive_string_value:a.pin||""},logging_id:a.logging_id}},prepareVerifyPaymentsPINGraphQL:function(a){return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,fbpay_pin:{sensitive_string_value:a.pin||""},logging_id:a.logging_id}},prepareVerifyConsumerAuthGraphQL:function(a){if(a.csc!=null)return{actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),csc:a.csc,device_id:"device_id",cred_id:a.cred_id,app_id:"app_id",auth_method:"CVV",payment_type:a.payment_type,is_pay_nonce_needed:!1};else return{actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),cred_id:a.cred_id,pp_access_token:{sensitive_string_value:a.pp_access_token},device_id:"device_id",app_id:"app_id",auth_method:"PAYPAL",payment_type:a.payment_type,is_pay_nonce_needed:!1}},prepareVerifyPasswordGraphQL:function(a){return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,fbpay_password_bypass_token_proxy:{sensitive_string_value:a.password||""},logging_id:a.logging_id}},prepareUpdatePaymentsPINGraphQL:function(a){if(a.password!==null&&a.password!==void 0)return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,fbpay_new_pin:{sensitive_string_value:a.new_pin||""},fbpay_password_bypass_token_proxy:{sensitive_string_value:a.password||""},logging_id:a.logging_id};else if(a.cred_id!=null&&a.csc!=null)return{actor_id:b("CurrentUser").getID(),cred_id:a.cred_id,csc:a.csc,payment_type:a.payment_type,fbpay_new_pin:{sensitive_string_value:a.new_pin||""},logging_id:a.logging_id};else if(a.old_pin!=null)return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,fbpay_new_pin:{sensitive_string_value:a.new_pin||""},fbpay_pin:{sensitive_string_value:a.old_pin||""},logging_id:a.logging_id};else return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,fbpay_new_pin:{sensitive_string_value:a.new_pin||""},no_auth_method_pin_reset:!0,logging_id:a.logging_id}},prepareDeletePaymentsPINGraphQL:function(a){return a.password!==null?{actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),payment_type:a.payment_type,password:{sensitive_string_value:a.password||""}}:{actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),payment_type:a.payment_type,pin:{sensitive_string_value:a.pin}}},prepareSwitchPaymentsPINGraphQL:function(a){return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,new_pin_status:a.new_pin_status,fbpay_pin:{sensitive_string_value:a.pin}}},prepareUpdateTaxIDDataRelayGraphQL:function(a){return{actor_id:b("CurrentUser").getID(),tax_id:a.taxID,tax_id_type:"MEXICO_RFC",payment_type:a.paymentType,logging_id:a.loggingID}},prepareUpdateCardGraphQL:function(a){var c;c={client_mutation_id:b("uniqueID")(),credit_card_id:(c=a.credit_card_id)!=null?c:"",payment_type:a.payment_type,disable_type:a.disable_type};return c},prepareAddCardDataRelayGraphQL:function(a){a=h.prepareAddCardData(a);return a},prepareUpdateCardData:function(a){var b={};(a.country||a.street||a.city||a.state||a.zip)&&(b={billing_address:{country_code:a.country||"US",street1:a.street,city:a.city,state:a.state,zip:a.zip}});var c=a.card_holder_name?{cardholder_name:a.card_holder_name}:null;return babelHelpers["extends"]({credit_card_id:a.cc_fbid,expiry_year:"20"+h.getFormDataExpYear(a),expiry_month:h.getFormDataExpMonth(a),payment_type:a.combined_payment_type,csc:{sensitive_string_value:a.csc}},b,c,{logging_id:a.logging_id,session_id:a.session_id})},prepareUpdateCardDataGraphQL:function(a){a=h.prepareUpdateCardData(a);return a},prepareUpdateCardDataRelayGraphQL:function(a){a=h.prepareUpdateCardData(a);return a},prepareCompleteCheckoutRelayGraphQLData:function(a){var c=b("AdsCurrencyFormatter").parsePECurrency(a.currency,a.amount);return{amount:c,credential_id:a.credential_id,credit_card:a.credit_card,csc:a.csc,currency:a.currency,extra_data:a.extra_data,order_id:a.order_id,payment_type:a.payment_type,platform_trust_token:a.authPTT,receiver_id:a.receiver_id,request_id:h.genRequestID(),security_pin:a.security_pin,session_id:a.session_id,cardinal_3ds_processor_data:a.cardinal_3ds_processor_data,without_auth:a.without_auth}},prepareCompleteCheckoutGraphQLData:function(a){return{actor_id:b("CurrentUser").getID(),amount:a.amount,client_mutation_id:b("uniqueID")(),contact_name:a.contact_name,contact_number_id:a.contact_number_id,coupon_code:a.coupon_code,credential_id:a.credential_id,credentials:a.credentials,csc:a.csc,currency:a.currency,do_async_postprocess:a.do_async_postprocess,email_address_id:a.email_address_id,extra_data:a.extra_data,mailing_address_id:a.mailing_address_id,nmor_payment_method:a.nmor_payment_method,order_id:a.order_id,payment_type:a.payment_type,paypal_fraudnet_id:a.paypal_fraudnet_id,platform_trust_token:a.authPTT,receiver_id:a.receiver_id,request_id:h.genRequestID(),security_pin:a.security_pin,session_id:a.session_id,shipping_option_id:a.shipping_option_id,subscription_period:a.subscription_period,subscription_type:Object.keys(b("BillingAgreementType")).find(function(c){return b("BillingAgreementType")[c]===a.subscription_type}),cardinal_3ds_processor_data:a.cardinal_3ds_processor_data,trial_type:a.trial_type,is_citizen:a.is_citizen,razorpay_callback_url:a.razorpay_callback_url,tax_info_collection_map:a.tax_info_collection_map}},prepareAsyncCheckoutData:function(a){a=babelHelpers["extends"]({actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),credentials:h.buildAsyncCheckoutCredentials(a),logging_id:a.session_id,payment_session_id:a.payment_session_id,payment_type:a.payment_type,paypal_fraudnet_id:a.paypal_fraudnet_id,total_payment_amount:{currency:a.currency,amount:a.amount},coupon_code:a.coupon_code,contact_name:a.contact_name,contact_number_id:a.contact_number_id,csc:a.csc,email_address_id:a.email_address_id,email_opt_in:a.email_opt_in,mailing_address_id:a.mailing_address_id,shipping_option_id:a.shipping_option_id,extra_data_json:a.extra_data,subscription_period:a.subscription_period,subscription_type:a.subscription_type,trial_type:a.trial_type,is_citizen:a.is_citizen,razorpay_callback_url:a.razorpay_callback_url,cardinal_3ds_processor_data:a.cardinal_3ds_processor_data,tax_info_collection_map:a.tax_info_collection_map,tax_info_id:a.tax_info_id,privacy_mutation_token:a.privacy_mutation_token},h.buildAsyncCheckoutPaymentOrderIdProducts(a),{is_dynamic_auth_available:a.is_dynamic_auth_available,platform_trust_token:a.authPTT,security_pin:a.security_pin});return a},buildAsyncCheckoutCredentials:function(a){if(a.altPayData)return[{credential_type:b("FBPaymentsNewPaymentOptionTypes").NEW_ALT_PAY_FROM_GRAPHQL,payment_amount:{currency:a.currency,amount:a.amount},altpay_data:a.altPayData}];if(a.credentials&&a.credentials.length>1){var c=[],d=a.currency;a.credentials.forEach(function(a){c.push({credential_id:a.credential_id,credential_type:a.credential_type,payment_amount:{currency:d,amount:a.amount},wallet_balance:a.wallet_balance?{currency:d,amount:a.wallet_balance}:void 0})});return c}return[{credential_type:a.credential_type,payment_amount:{currency:a.currency,amount:a.amount},credential_id:a.credential_id}]},buildAsyncCheckoutPaymentOrderIdProducts:function(a){switch(a.payment_type){case"mor_donations":case"nmor_donation_p4c":case"nmor_donation_p4p":case"nmor_ppgf_donation":case"mor_donations_matching_confirmation":case"mor_donations_matching_pledge":case"nmor_blackbaud_rwr_donation":return{payment_order_id:null,products:[{product_id:a.order_id,quantity:1,per_unit_price:{currency:a.currency,amount:a.amount}}]};case"nmor_checkout_experiences":case"nmor_c2c_checkout_experiences":return{payment_order_id:a.order_id,products:a.products?a.products.map(function(a){var b;return{product_id:a.product_id,quantity:a.quantity,per_unit_price:{currency:(b=a.price)==null?void 0:b.currency,amount:(b=a.price)==null?void 0:b.amount},customization_ids:a.customization_ids}}):null};case"mor_instant_games":case"mor_open_graph_product":return{payment_order_id:a.order_id,products:null};case"mor_game_tipping_token":return{payment_order_id:a.order_id,products:[{product_id:a.order_id,quantity:1,per_unit_price:{currency:a.currency,amount:a.amount}}]};case"mor_group_subscription":case"mor_fan_funding":case"mor_oculus_cv1":return{payment_order_id:null,products:a.products?a.products.map(function(a){return{product_id:a.product_id,quantity:a.quantity}}):null};default:return{payment_order_id:null,products:null}}},getUncaughtErrorMessage:function(){return g._("u5904u7406u8bf7u6c42u65f6u51fau73b0u6682u65f6u6027u9519u8befuff0cu8bf7u7a0du540eu91cdu8bd5u3002")},getGraphQLErrorMessage:function(a){return g._("{error_message}",[g._param("error_message",a)])},getAuthFailureErrorDetails:function(a){try{a=JSON.parse(a.debug_info);a=a.num_remaining_attempts;return{remainingAttempts:a}}catch(a){return{remainingAttempts:null}}},convertAllPaymentTypeFields:function(a){return a},convertAllPaymentTypeFieldsForNewAPI:function(a){return a}};e.exports=h}),null);
-----
PaymentsCometCheckoutPriceTable",["fbt","ix","AllPaymentTypeFields","CometImage.react","CometMenuSeparator.react","CometRow.react","CometRowItem.react","CometTooltip.react","PaymentsCometCheckoutAPIUtils","PaymentsCometCheckoutContext","PaymentsCometCheckoutSectionTitle","TetraText.react","getJSEnumSafe","gkx","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useContext,l={disclaimerItem:{paddingTop:"xyqdw3p",paddingEnd:"x10ogl3i",paddingBottom:"xg8j3zb",paddingStart:"x1k2j06m",$$css:!0},footer:{paddingTop:"x1iorvi4",width:"xwl9fdd",$$css:!0},footerTitle:{paddingTop:"x1y1aw1k",width:"xwl9fdd",$$css:!0},image:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"xng8ra",objectFit:"xl1xv1r",width:"x1247r65",$$css:!0},itemTitle:{paddingBottom:"xwib8y2",width:"xwl9fdd",$$css:!0},price:{minWidth:"xk8lq53",$$css:!0},separator:{paddingTop:"x1y1aw1k",$$css:!0},subtableTitle:{paddingBottom:"xwib8y2",$$css:!0},totalRow:{paddingBottom:"x1l90r2v",paddingTop:"x1y1aw1k",$$css:!0}};function a(a){a=a.priceSubtables;a=a===void 0?[]:a;var b=k(c("PaymentsCometCheckoutContext"));b=b.state;var d=b.totalPrice;d=d||{};var e=d.display_price;d=d.label;b=m(b);return j.jsxs(j.Fragment,{children:[j.jsx(c("CometMenuSeparator.react"),{}),a.map(n),j.jsxs("div",{className:"x1l90r2v x1y1aw1k",children:[j.jsx(q,{isTotal:!0,leftContent:d||"",rightContent:e||""}),b!=null&&j.jsx(q,{isTotal:!1,leftContent:"",rightContent:b})]})]})}a.displayName=a.name+" [from "+f.id+"]";function m(a){var b=a.showTaxDisclaimer,e=c("getJSEnumSafe")(c("AllPaymentTypeFields"),a.paymentType);e=e==="mor_fan_funding"&&c("gkx")("26");a=d("PaymentsCometCheckoutAPIUtils").getDigitalCommerceOmnibusDirectiveData(a);a=a.isOmnibusUser;return b!==!0?e||a?j.jsx(p,{title:h._("u6240u6709u4ef7u683cu5305u542bu6240u6709u9002u7528u7a0eu8d39"),tooltip:null}):null:j.jsx(p,{title:e?h._("u5916u52a0u9002u7528u7a0eu8d39"):h._("u9644u52a0u7a0e"),tooltip:h._("u67e5u770bu7a0eu540eu603bu989du6536u636eu3002")})}m.displayName=m.name+" [from "+f.id+"]";function n(a,b){var d,e=k(c("PaymentsCometCheckoutContext"));e=e.state;a=a.price_lists||[];var f=a.some(function(a){return a.item!=null})||e.paymentType==="NMOR_EVENT_TICKETING"&&b===0,g=!1;((d=e.checkoutProps)==null?void 0:d.extraData)!=null&&((d=e.checkoutProps)==null?void 0:(d=d.extraData)==null?void 0:d.negotiable_price_offer_data)!=null&&(g=!0);d=f?h._("u5546u54c1u8be6u60c5"):g?h._("u8ba2u5355u603bu989duff08u5982u83b7u63a5u53d7uff09"):h._("u8ba2u5355u603bu989d");g=f?j.jsx("div",{className:"x1y1aw1k",children:j.jsx(c("CometMenuSeparator.react"),{})}):null;var i=e==null?void 0:(e=e.checkoutProps)==null?void 0:(e=e.personalization)==null?void 0:e.personalizationRequestFromBuyer;return j.jsxs("div",{children:[j.jsx("div",{className:"xwib8y2",children:j.jsx(c("PaymentsCometCheckoutSectionTitle"),{title:d})}),a.map(function(a,b){var c=a.display_price,d=a.item,e=a.label;a=a.original_price;var g=d||{},k=g.item_image_url,l=g.subsubtitle;g=g.title;var m=i!=null?{body:i,title:h._("u5b9au5236u8981u6c42")}:null;d=d==null?e:j.jsx(o,{footer:m,imageURL:k||"",subtitle:l||"",title:g||""});return j.jsx(q,{leftContent:d,rightContent:f&&Boolean(a)?a:c||""},b)}),g]},b)}n.displayName=n.name+" [from "+f.id+"]";function o(a){var b=a.footer,d=a.imageURL,e=a.subtitle;a=a.title;return j.jsxs(c("CometRow.react"),{paddingHorizontal:0,paddingTop:0,verticalAlign:"top",children:[j.jsx(c("CometRowItem.react"),{children:j.jsx(c("CometImage.react"),{height:60,src:d,xstyle:l.image})}),j.jsxs(c("CometRowItem.react"),{children:[j.jsx("div",{className:"xwib8y2 xwl9fdd",children:j.jsx(c("TetraText.react"),{color:"primary",type:"headlineEmphasized3",children:a})}),j.jsx(c("TetraText.react"),{color:"secondary",type:"body2",children:e}),b!=null?j.jsxs(j.Fragment,{children:[j.jsx("div",{className:"x1y1aw1k xwl9fdd",children:j.jsx(c("TetraText.react"),{color:"primary",type:"bodyLink4",children:b.title})}),j.jsx("div",{className:"x1iorvi4 xwl9fdd",children:j.jsx(c("TetraText.react"),{color:"secondary",type:"body4",children:b.body})})]}):null]})]})}o.displayName=o.name+" [from "+f.id+"]";function p(a){var b=a.title;a=a.tooltip;return j.jsxs(c("CometRow.react"),{paddingHorizontal:0,paddingTop:0,verticalAlign:"top",children:[j.jsx(c("CometRowItem.react"),{xstyle:l.disclaimerItem,children:j.jsx(c("TetraText.react"),{color:"secondary",type:"body3",children:b})}),a!=null&&j.jsx(c("CometRowItem.react"),{xstyle:l.disclaimerItem,children:j.jsx(c("CometTooltip.react"),{align:"middle",delayMs:100,tooltip:a,children:j.jsx(c("CometImage.react"),{src:i("479819")})})})]})}p.displayName=p.name+" [from "+f.id+"]";function q(a){var b=a.isTotal;b=b===void 0?!1:b;var d=a.leftContent;a=a.rightContent;var e=b?"primary":"secondary";b=b?"bodyLink2":"body2";var f=typeof d==="string"?"checkout_price_table_label"+d:"";f=typeof d==="string"&&typeof a==="string"?"checkout_price_table_label"+d+a:"";return j.jsxs(c("CometRow.react"),{paddingHorizontal:16,verticalAlign:"top",children:[j.jsx(c("CometRowItem.react"),{expanding:!0,children:typeof d==="object"?d:j.jsx(c("TetraText.react"),{color:e,testid:void 0,type:b,children:d})}),j.jsx(c("CometRowItem.react"),{children:j.jsx("div",{className:"xk8lq53",children:typeof a==="object"?a:j.jsx(c("TetraText.react"),{color:e,testid:void 0,type:b,children:a})})})]})}q.displayName=q.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
PaymentsCometCheckoutComponentUtils",["AllPaymentTypeFields","PaymentsCometCheckoutAPIUtils","getJSEnumSafe"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return(a==null?void 0:a.toLowerCase())==="mor_voices"}function b(a){var b=c("getJSEnumSafe")(c("AllPaymentTypeFields"),a.paymentType);a=d("PaymentsCometCheckoutAPIUtils").getDigitalCommerceOmnibusDirectiveData(a);a=a.isOmnibusUser;return b==="mor_voices"&&a?!1:!0}g.showStickyPaymentButton=a;g.getShouldShowSeeMoreMenu=b}),98);
-----
useCommerceCheckoutDialog",["AllPaymentTypeFields","CometCardedDialogLoadingStateLegacy.react","CommerceCheckoutActionLogger","CommerceCheckoutLoggingUtils","JSResourceForInteraction","react","useCometLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useRef,k=c("JSResourceForInteraction")("CommerceCheckoutRootContainer.react").__setRef("useCommerceCheckoutDialog");function a(a){var b=a.checkoutProps,e=a.dialogProps,f=a.entrypoint,g=a.onClose;a=j(null);var l=c("useCometLazyDialog")(k,function(){return h.jsx(c("CometCardedDialogLoadingStateLegacy.react"),{})}),m=l[0],n=(l=c("AllPaymentTypeFields")[b==null?void 0:b.paymentType.toString()])!=null?l:"unknown";l=i(function(){var a=d("CommerceCheckoutLoggingUtils").sessionIDGenerator(),h=b.products;h=(h=h==null?void 0:h.map(function(a){return a.product_id}))!=null?h:[];h=new(c("CommerceCheckoutActionLogger"))(n,"checkout_init",h,[b.receiverID],a,f,b.extraData);h.logUserClickFBPayCheckoutAtomic();m({checkoutProps:b,dialogProps:e,entrypoint:f,loggingSessionId:a,onClose:g},g)},[b,n,f,m,e,g]);return[l,a]}g["default"]=a}),98);
-----
CommerceCheckoutActionLogger",["ClientAddShippingaddressFailFalcoEvent","ClientAddShippingaddressInitFalcoEvent","ClientAddShippingaddressSuccessFalcoEvent","ClientCreatePlaceorderFailFalcoEvent","ClientCreatePlaceorderSuccessFalcoEvent","ClientEditShippingaddressFailFalcoEvent","ClientEditShippingaddressInitFalcoEvent","ClientEditShippingaddressSuccessFalcoEvent","ClientExecuteUpdatepaymentFailFalcoEvent","ClientExecuteUpdatepaymentSuccessFalcoEvent","ClientLoadFbpaycheckoutFailFalcoEvent","ClientLoadFbpaycheckoutInitFalcoEvent","ClientLoadFbpaycheckoutSuccessFalcoEvent","ClientLoadUpdatepaymentFailFalcoEvent","ClientLoadUpdatepaymentInitFalcoEvent","ClientLoadUpdatepaymentSuccessFalcoEvent","CommerceCheckoutLoggingUtils","FBPayUPLLogger","FBPaymentsLoggerConstants","FBPaymentsModulesAPIUtils","PayflowsInitFalcoEvent","PaymentsFlowsLogFalcoEvent","UserClickFbpaycheckoutAtomicFalcoEvent","UserClickFbpaycheckoutCancelFalcoEvent","UserClickFbpaycheckoutExitFalcoEvent","UserClickPlaceorderAtomicFalcoEvent","UserClickProductitemAtomicFalcoEvent","UserClickShippingaddressAtomicFalcoEvent","UserClickUpdatepaymentAtomicFalcoEvent","UserClickUpdatepaymentExitFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a,b,c,e,f,g,h){this.$1=(a=a)!=null?a:"unknown";this.$3=(a=b)!=null?a:"checkout_init";this.$8=c;this.$9=e;this.$2=(b=f)!=null?b:d("CommerceCheckoutLoggingUtils").sessionIDGenerator();this.$10=g;this.$11=h}var b=a.prototype;b.getFBPayUPLLoggerfromCheckoutLogger=function(){return new(c("FBPayUPLLogger"))(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(this.$1),"comet",this.$2)};b.setInvoiceId=function(a){this.$7=a};b.logUserClickPlaceOrderAtomic=function(a){var b=this;a===void 0&&(a={});c("UserClickPlaceorderAtomicFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PAYMENT},a)};b.logUserClickPlaceOrderUpdateOrderPaymentAtomic=function(a){var b=this;a===void 0&&(a={});c("UserClickUpdatepaymentAtomicFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_ORDER_PAYMENT},a)};b.logUserClickFBPayCheckoutAtomic=function(a){var b=this;a===void 0&&(a={});c("UserClickFbpaycheckoutAtomicFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.START},a)};b.logClientCreatePlaceOrderInit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PAYMENT},a)};b.logClientUpdateOrderPaymentInit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_ORDER_PAYMENT},a)};b.logClientCreatePlaceOrderSuccess=function(a){var b=this;a===void 0&&(a={});c("ClientCreatePlaceorderSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PAYMENT},a)};b.logClientUpdateOrderPaymentSuccess=function(a){var b=this;a===void 0&&(a={});c("ClientExecuteUpdatepaymentSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_ORDER_PAYMENT},a)};b.logClientCreatePlaceOrderFail=function(a,b){var e=this,f;b===void 0&&(b={});c("ClientCreatePlaceorderFailFalcoEvent").logCritical(function(){var b;return babelHelpers["extends"]({},e.$12(),{custom_fields:e.$13(),event_payload:{target_name:"checkout",view_name:"checkout"},extra_data:{error_code:(b=a==null?void 0:(b=a.error_code)==null?void 0:b.toString())!=null?b:"",error_message:(b=a==null?void 0:(b=a.error_description)==null?void 0:b.toString())!=null?b:""}})});this.$14({error_code:a==null?void 0:(f=a.error_code)==null?void 0:f.toString(),error_message:a==null?void 0:(f=a.error_description)==null?void 0:f.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PAYMENT},b)};b.logClientUpdateOrderPaymentFail=function(a,b){var e=this;b===void 0&&(b={});c("ClientExecuteUpdatepaymentFailFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$12(),{custom_fields:e.$13(),event_payload:{target_name:"checkout",view_name:"checkout"},extra_data:a})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_ORDER_PAYMENT},b)};b.logUserClickShippingAddressAtomic=function(a){var b=this;a===void 0&&(a={});c("UserClickShippingaddressAtomicFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout_address_typeahead",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADDRESS_TYPEAHEAD},a)};b.logUserClickProductItemAtomic=function(a){var b=this;a===void 0&&(a={});c("UserClickProductitemAtomicFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_PRODUCT_ITEM},a)};b.logClientCheckoutInit=function(a){var b=this;a===void 0&&(a={});c("PayflowsInitFalcoEvent").log(function(){return{e_counter_channel:0,event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,event_type:"client",flow_name:"checkout_init",flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.START,is_free:!1,paymod_extra_data:JSON.stringify(babelHelpers["extends"]({},b.$15(),a)),product:b.$1,session_id:b.$2}})};b.logClientLoadCheckoutInit=function(a){var b,e=this;a===void 0&&(a={});((b=this.$11)==null?void 0:b.is_update_order_payment_flow)===!0?c("ClientLoadUpdatepaymentInitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$12(),{custom_fields:e.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})}):c("ClientLoadFbpaycheckoutInitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$12(),{custom_fields:e.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_INFORMATION},a)};b.logClientLoadCheckoutFail=function(a,b){var e,f=this;b===void 0&&(b={});((e=this.$11)==null?void 0:e.is_update_order_payment_flow)===!0?c("ClientLoadUpdatepaymentFailFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},f.$12(),{custom_fields:f.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})}):c("ClientLoadFbpaycheckoutFailFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},f.$12(),{custom_fields:f.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({error_code:a==null?void 0:(e=a.error_code)==null?void 0:e.toString(),error_message:a==null?void 0:(e=a.error_description)==null?void 0:e.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_INFORMATION},b)};b.logClientLoadCheckoutSuccess=function(a){var b,e=this;a===void 0&&(a={});((b=this.$11)==null?void 0:b.is_update_order_payment_flow)===!0?c("ClientLoadUpdatepaymentSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$12(),{custom_fields:e.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})}):c("ClientLoadFbpaycheckoutSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$12(),{custom_fields:e.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_INFORMATION},a)};b.logUserClickCheckoutCancel=function(a){var b=this;a===void 0&&(a={});c("UserClickFbpaycheckoutCancelFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CANCEL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_MODULE},a)};b.logClientDisplayCheckoutExitDialog=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.DISPLAY,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_EXIT_DIALOG},a)};b.logUserClickCheckoutExit=function(a){var b=this;a===void 0&&(a={});c("UserClickFbpaycheckoutExitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.DONE,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_MODULE},a)};b.logUserClickCheckoutExitOnExitAlertDialog=function(a){var b,e=this;a===void 0&&(a={});((b=this.$11)==null?void 0:b.is_update_order_payment_flow)===!0&&c("UserClickUpdatepaymentExitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$12(),{custom_fields:e.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_EXIT_DIALOG},a)};b.logUserClickCheckoutExitOnOrderConfirmationScreen=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_CONFIRMATION_LEAVE},a)};b.logUserClickCheckoutCancelExit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CANCEL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_EXIT_DIALOG},a)};b.logUserClickCheckoutViewOrderDetails=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_CONFIRMATION_VIEW_ORDER_DETAILS},a)};b.logClientCheckoutPrefillEmailInit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PREFILLED_EMAIL},a)};b.logClientCheckoutPrefillShippingAddressInit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PREFILLED_SHIPPING_ADDRESS},a)};b.logClientCheckoutPrefillPaymentMethodInit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PREFILLED_PAYMENT_METHOD},a)};b.logUserClickAddPaypal=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PAYPAL},a)};b.logClientAddPaypalInit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PAYPAL},a)};b.logClientAddPaypalSuccess=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PAYPAL},a)};b.logClientAddPaypalFail=function(a,b){var c;b===void 0&&(b={});this.$14({error_code:a==null?void 0:(c=a.error_code)==null?void 0:c.toString(),error_message:a==null?void 0:(c=a.error_description)==null?void 0:c.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PAYPAL},b)};b.logClientAddPaypalCancel=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CANCEL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PAYPAL},a)};b.logClientAddEmailInit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_EMAIL},a)};b.logClientAddEmailSuccess=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_EMAIL},a)};b.logClientAddEmailFail=function(a,b){var c;b===void 0&&(b={});this.$14({error_code:a==null?void 0:(c=a.error_code)==null?void 0:c.toString(),error_message:a==null?void 0:(c=a.error_description)==null?void 0:c.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_EMAIL},b)};b.logUserClickUpdateEmail=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_EMAIL},a)};b.logClientUpdateEmailInit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_EMAIL},a)};b.logClientUpdateEmailSuccess=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_EMAIL},a)};b.logClientUpdateEmailFail=function(a,b){var c;b===void 0&&(b={});this.$14({error_code:a==null?void 0:(c=a.error_code)==null?void 0:c.toString(),error_message:a==null?void 0:(c=a.error_description)==null?void 0:c.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_EMAIL},b)};b.logUserClickNuxStepNext=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.NUX_CONSOLIDATED_INFO_STEP_NEXT},a)};b.logClientNuxStepNextSuccess=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.NUX_CONSOLIDATED_INFO_STEP_NEXT},a)};b.logClientNuxStepNextFail=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.NUX_CONSOLIDATED_INFO_STEP_NEXT},a)};b.logClientAddShippingAddressInit=function(a){var b=this;a===void 0&&(a={});c("ClientAddShippingaddressInitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout_add_address_button",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_SHIPPING_ADDRESS},a)};b.logClientAddShippingAddressSuccess=function(){var a=this;c("ClientAddShippingaddressSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},a.$12(),{custom_fields:a.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_SHIPPING_ADDRESS})};b.logClientAddShippingAddressFail=function(a){var b=this,e={error_code:String(a==null?void 0:a.error_code),error_message:String((a=a==null?void 0:a.error_description)!=null?a:"")};c("ClientAddShippingaddressFailFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout",view_name:"checkout"},extra_data:e})});this.$14(babelHelpers["extends"]({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_SHIPPING_ADDRESS},e))};b.logClientEditShippingAddressInit=function(){var a=this;c("ClientEditShippingaddressInitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},a.$12(),{custom_fields:a.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_SHIPPING_ADDRESS})};b.logClientEditShippingAddressSuccess=function(){var a=this;c("ClientEditShippingaddressSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},a.$12(),{custom_fields:a.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_SHIPPING_ADDRESS})};b.logClientEditShippingAddressFail=function(a){var b=this,e={error_code:String(a==null?void 0:a.error_code),error_message:String((a=a==null?void 0:a.error_description)!=null?a:"")};c("ClientEditShippingaddressFailFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout",view_name:"checkout"},extra_data:e})});this.$14(babelHelpers["extends"]({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_SHIPPING_ADDRESS},e))};b.logUserClickAddCreditCardAtomic=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_CARD},a)};b.logClientAddCreditCardInit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_CARD},a)};b.logClientAddCreditCardSuccess=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_CARD},a)};b.logClientAddCreditCardFail=function(a,b){var c;b===void 0&&(b={});this.$14({error_code:a==null?void 0:(c=a.error_code)==null?void 0:c.toString(),error_message:a==null?void 0:(c=a.error_description)==null?void 0:c.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_CARD},b)};b.logClientUpdateCreditCardInit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_CARD},a)};b.logClientUpdateCreditCardSuccess=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_CARD},a)};b.logClientUpdateCreditCardFail=function(a,b){var c;b===void 0&&(b={});this.$14({error_code:a==null?void 0:(c=a.error_code)==null?void 0:c.toString(),error_message:a==null?void 0:(c=a.error_description)==null?void 0:c.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_CARD},b)};b.logUserClickAddCouponCodeAtomic=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PROMO_CODE},a)};b.logUserClickRemoveCouponCodeAtomic=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.REMOVE_PROMO_CODE},a)};b.logClientEditCouponInit=function(a,b){b===void 0&&(b={});switch(a){case d("CommerceCheckoutLoggingUtils").EditCouponState.ADD_COUPON:this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PROMO_CODE},b);break;case d("CommerceCheckoutLoggingUtils").EditCouponState.REMOVE_COUPON:this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.REMOVE_PROMO_CODE},b);break;default:break}};b.logClientEditCouponSuccess=function(a,b){b===void 0&&(b={});switch(a){case d("CommerceCheckoutLoggingUtils").EditCouponState.ADD_COUPON:this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PROMO_CODE},b);break;case d("CommerceCheckoutLoggingUtils").EditCouponState.REMOVE_COUPON:this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.REMOVE_PROMO_CODE},b);break;default:break}};b.logClientEditCouponFail=function(a,b,c){c===void 0&&(c={});switch(a){case d("CommerceCheckoutLoggingUtils").EditCouponState.ADD_COUPON:this.$14({error_code:b==null?void 0:(a=b.error_code)==null?void 0:a.toString(),error_message:b==null?void 0:(a=b.error_description)==null?void 0:a.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PROMO_CODE},c);break;case d("CommerceCheckoutLoggingUtils").EditCouponState.REMOVE_COUPON:this.$14({error_code:b==null?void 0:(a=b.error_code)==null?void 0:a.toString(),error_message:b==null?void 0:(a=b.error_description)==null?void 0:a.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.REMOVE_PROMO_CODE},c);break;default:break}};b.logUserClickChangeShippingMethodAtomic=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.SELECT_SHIPPING_METHOD},a)};b.logClientChangeShippingMethodInit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.SELECT_SHIPPING_METHOD},a)};b.logClientChangeShippingMethodSuccess=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.SELECT_SHIPPING_METHOD},a)};b.logClientChangeShippingMethodFail=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.SELECT_SHIPPING_METHOD},a)};b.$13=function(){return{checkout_entry_point:this.$10,checkout_flow:this.$3,checkout_session_ent_id:this.$4,external_session_id:this.$5,incentive_ids:this.$6,invoice_id:this.$7,product_ids:this.$8,seller_ids:this.$9}};b.$12=function(){return{actual_event_time:Date.now().toString(),platform:"comet",product_type:this.$1,session_id:this.$2}};b.$16=function(){return{checkout_session_ent_id:this.$4,event_type:"client",external_session_id:this.$5,flow_name:this.$3,is_free:!1,product:this.$1,session_id:this.$2}};b.$15=function(){return babelHelpers["extends"]({comet:!0,entrypoint:this.$10},this.$11)};b.$14=function(a,b){var d=this;b===void 0&&(b={});c("PaymentsFlowsLogFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},d.$16(),a,{paymod_extra_data:JSON.stringify(babelHelpers["extends"]({},d.$15(),b))})})};return a}();g["default"]=a}),98);
-----
cometMarketplaceCheckoutUtils.hybrid",["AllPaymentTypeFields","getGraphQLEnumSafe","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d,e,f,g,h,i){var j;f===void 0&&(f=1);g===void 0&&(g=null);e=c("getGraphQLEnumSafe")(c("AllPaymentTypeFields"),e);if(e==null)throw c("unrecoverableViolation")("Invalid / Null PaymentType provided","marketplace-comet");j=h!=null?(j={},j[b]={is_personalization_required:h==null?void 0:h.isPersonalizationRequired,personalization_instructions_from_buyer:h==null?void 0:h.personalizationRequestFromBuyer,personalization_options_from_seller:h==null?void 0:h.personalizationInstructionsFromSeller},j):null;return{extraData:{personalization_info_data:j,products:[{pageId:g,price:d,product_id:b,quantity:f}]},isPurchaseProtected:i,paymentType:e,personalization:h,products:[{per_unit_price:d,product_id:b,quantity:f}],receiverID:a}}function b(a,b,d,e){e===void 0&&(e=null);d=c("getGraphQLEnumSafe")(c("AllPaymentTypeFields"),d);if(d==null)throw c("unrecoverableViolation")("Invalid / Null PaymentType provided","marketplace-comet");return{extraData:{is_marketplace_ecomm_cart_checkout:!0,products:b.map(function(a){return{pageId:e,price:a.price,product_id:a.productId,quantity:a.quantity}})},paymentType:d,products:b.map(function(a){return{per_unit_price:a.price,product_id:a.productId,quantity:a.quantity}}),receiverID:a}}g.generateCheckoutProps=a;g.generateMultiItemCheckoutProps=b}),98);
-----
FBPaymentsCheckoutV2FlowContainerBase.react",["errorDesc","invariant","AllPaymentTypeFields","DateConsts","FBLogger","FBPayGatingUtils","FBPayLoggingUtils","FBPayPINUtils","FBPayStrings","FBPayUPLLogger","FBPayments3DS","FBPaymentsAsyncCompleteCheckoutManager","FBPaymentsAsyncCompleteCheckoutUtils","FBPaymentsCheckoutActions","FBPaymentsCheckoutConfigurationStore","FBPaymentsCheckoutConfigurationTypes","FBPaymentsCheckoutConstants","FBPaymentsCheckoutContext","FBPaymentsCheckoutHelper","FBPaymentsCheckoutInfoParser","FBPaymentsCheckoutLoggerStore","FBPaymentsCheckoutStep","FBPaymentsCheckoutStrings","FBPaymentsContentConfigurationParser","FBPaymentsCountryCodes","FBPaymentsDispatcher","FBPaymentsFreeTrialExtensionUtil","FBPaymentsInvoiceFetchStatus.graphql","FBPaymentsLinkHelper","FBPaymentsLoggerBase","FBPaymentsLoggerConstants","FBPaymentsModulesAPIShared","FBPaymentsModulesAPIUtils","FBPaymentsModulesErrorConstants","FBPaymentsModulesFlowType","FBPaymentsNewPaymentOptionTypes","FBPaymentsPINConstants","FBPaymentsPaymentMethodTypes","FBPaymentsPerfLogger","FBPaymentsPriceListHelper","FBPaymentsStringHelper","FBPaymentsUniversalErrorUtils","FBPaymentsVerificationConstants","FBPaymentsVerificationFlowHelper","PECurrency","PayPalFraudNetNew","PayPalFraudNetUrl","PayTransactionStatus","PaymentMethodUtils","PrivacyMutationToken","RelayAPIConfig","RelayFBEnvironment","RelayHooks","XCommerceOnsiteEventRouter","abstractMethod","enumUtils","getOwnObjectValues","gkx","immutable","keyMirror","promiseDone","prop-types","qpl","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=b("FBPayGatingUtils").shouldShowResearchSurvey,k=b("FBPayLoggingUtils").isUPLSessionID,l=b("FBPayLoggingUtils").sessionIDGenerator,m=b("FBPaymentsPINConstants").PIN_FLOW_STEPS,n=b("PECurrency").formatAmountX,o=b("PrivacyMutationToken").getPrivacyMutationTokenFromSourceID,p=b("RelayHooks").fetchQuery,q=i||(i=b("react")),r=b("DateConsts").MS_PER_SEC;a=b("FBPaymentsCheckoutConfigurationTypes").CheckoutConfigurationPropTypes;var s=b("FBPaymentsCheckoutConstants").CollectedDataKey,t=b("FBPaymentsCheckoutConstants").CustomExtensionKeys,u=b("FBPaymentsCheckoutConstants").Extensions,v=b("FBPaymentsCheckoutConstants").OrderStatusModelType,w=b("FBPaymentsCheckoutConstants").PaymentAction,x=b("FBPaymentsCheckoutConstants").PaymentCallbackUpdateState,y=b("FBPaymentsCheckoutStep");b("immutable").List;var z=b("immutable").Set,A=b("FBPaymentsLoggerConstants").LoggerFlowType,B=b("FBPaymentsLoggerConstants").LoggerFlowStep,C=b("FBPaymentsLoggerConstants").LoggerEvent,D=b("FBPaymentsLoggerBase").LOGGER_FIELD_NAMES,E=b("FBPaymentsVerificationConstants").VERIFICATION_FLOW_RESULT,F=b("FBPaymentsModulesErrorConstants").PaymentModulesErrorCode,G=b("FBPaymentsCheckoutConstants").RestoreKey,H=b("FBPaymentsPINConstants").RETURNED_FROM_PAYPAL,I=b("FBPaymentsPINConstants").VERIFIED_PAYPAL_STEP,J=b("keyMirror")(b("PayTransactionStatus"));c=function(a){babelHelpers.inheritsLoose(c,a);function c(c){var d,e;e=a.call(this,c)||this;e.$20=function(a){e.$1.setFlowStep(B.CHECKOUT_TERMS_FETCH).setEventName(C.SUCCESS).log(),b("FBPaymentsCheckoutActions").termsAndPoliciesLoaded(a)};e.$21=function(a){var c=b("FBPaymentsUniversalErrorUtils").getErrorCode(a);e.$1.setFlowStep(B.CHECKOUT_TERMS_FETCH).setEventName(C.FAIL).setUserFacingMessage(a.message).setUserFacingErrorCode(c).setErrorMessage(a.serverErrorMessage).setErrorCode(c).setExceptionClass(a.exceptionClass).log();b("FBPaymentsCheckoutActions").termsAndPoliciesLoadError()};e.$23=function(a){e.$1.setFlowStep(B.UPDATE_CHECKOUT_API).setEventName(C.SUCCESS).log();var c=e.getCheckoutConfiguration().version;c=b("FBPaymentsContentConfigurationParser").parse(c,a,!0);e.state.step!==y.CONFIRMATION&&b("FBPaymentsCheckoutActions").updateContentConfiguration(c)};e.$26=function(a){var c;b("FBPaymentsCheckoutActions").updateCheckoutInfoGraphQLResponse(a);e.setState({isSwedenDonation:(c=a==null?void 0:a.sweden_checkout_change_enabled)!=null?c:!1});e.$1.setFlowStep(B.CHECKOUT_INFORMATION).setEventName(C.SUCCESS).log();e.$6&&e.$6.logClientLoadCheckoutSuccess({target_name:"checkout",view_name:"checkout"});e.$10("checkout_load_success");c=b("FBPaymentsCheckoutInfoParser").parse(a,e.getCheckoutConfiguration().contentConfiguration,e.getPaymentType());e.state.step!==y.CONFIRMATION&&b("FBPaymentsCheckoutActions").updateCheckoutInfo(c)};e.$24=function(a){e.$1.setFlowStep(B.UPDATE_CHECKOUT_API).setEventName(C.FAIL).setUserFacingMessage(a.message).setErrorMessage(a.serverErrorMessage).setExceptionClass(a.exceptionClass).log(),b("FBPaymentsCheckoutActions").updateCheckoutLoadError(a)};e.$27=function(a){var c=b("FBPaymentsUniversalErrorUtils").getErrorCode(a),d=b("FBPaymentsUniversalErrorUtils").getUserFacingErrorMessage(a),f=b("FBPaymentsUniversalErrorUtils").getServerErrorMessage(a);e.$10("checkout_load_failure");e.$1.setFlowStep(B.CHECKOUT_INFORMATION).setEventName(C.FAIL).setUserFacingMessage(d).setErrorMessage(f).setUserFacingErrorCode(c).setErrorCode(c).log();e.$6&&e.$6.logClientLoadCheckoutFail({target_name:"checkout",view_name:"checkout"});b("FBPaymentsCheckoutActions").updateCheckoutLoadError(a)};e.$30=function(a){switch(a.state){case x.LOADING:b("FBPaymentsCheckoutActions").paymentProcessingCallbackLoading({paymentProcessingMessage:a.loadingMessage||""});break;case x.DONE:e.$1.setFlowStep(B.PAYMENT).setEventName(C.SUCCESS).logVital();e.$19();b("FBPaymentsCheckoutActions").paymentProcessingCallbackDone({confirmationConfiguration:a.confirmationConfiguration});break;case x.ERROR:e.$1.setFlowStep(B.PAYMENT).setEventName(C.FAIL).setErrorMessage(a.errorMessage).log();e.$10("checkout_flow_failed");e.$19();b("FBPaymentsCheckoutActions").paymentProcessingCallbackError({global:a.errorMessage||b("FBPaymentsModulesAPIUtils").getUncaughtErrorMessage(),additional:a.additionalErrors});break;default:throw Error("Invalid payment callback state: "+a.state)}};e.__handleDialogClose=function(){if(e.state.step===y.CONFIRMATION){e.$33(!1);return}var a=e.__isExitCheckoutConfirmDialogEnabled();if(a){b("FBPaymentsCheckoutActions").showExitCheckoutConfirmDialog({showDialog:!0});return}b("FBPaymentsCheckoutActions").toggleIsCheckoutDialogShown(!1);e.$6&&e.$6.logUserClickCheckoutExit({target_name:"fbpay_checkout"});e.$34()};e.$34=function(){var a;e.$1.setFlowStep(B.CHECKOUT_MODULE).setEventName(C.CANCEL).logVital();e.$10("checkout_flow_canceled");a=(a=e.getContentConfiguration())!=null?a.checkoutClosedCallback:a;a&&a();a=e.props.onCheckoutClosed;a&&a()};e.$36=function(a){e.setState({confirmationExtensions:a})};e.$43=function(a,c){b("FBPayGatingUtils").shouldUseNewPINAPI(e.getPaymentType(),e.$40())||b("FBPayGatingUtils").shouldUseCSCForNewPINAPI(e.getPaymentType())?b("FBPayGatingUtils").shouldUseKeyPairs(e.getPaymentType(),e.$40())&&c!=null?e.setState({authKeyPairs:c}):e.setState({authPTT:a}):e.setState({paymentsPIN:a}),e.$44(!0)};e.$45=function(a){e.setState({authKeyPairs:(a=a)!=null?a:null});e.$44(!0)};e.$47=function(){var a,c,d,f=e.state.paymentMethodData;c=(c=f)!=null?c.paymentMethodID:c;a=(a=f)!=null?a.newPaymentOptionType:a;d=(f==null?void 0:f.newPaymentOptionType)?f==null?void 0:f.newPaymentOptionType:f==null?void 0:(d=f.paymentMethod)==null?void 0:d.type;e.$46()&&e.$6&&e.$6.logUserClickFBPayPaymentAtomic({credential_id:a==null?c:void 0,credential_type:b("PaymentMethodUtils").castCredentialType(d)||"dummy",target_name:"checkout"});var g={};e.state.extensionFlagsMap.forEach(function(a,b){g[b]=a.isReady?1:0});e.$1.setFlowStep(B.PAYMENT).setEventName(C.CLICK).setPaymentMethodType(a).setPaymentMethodID(c).addToExtraData("components",JSON.stringify(g)).addToExtraData("CVV data",JSON.stringify(f==null?void 0:(d=f.paymentMethod)==null?void 0:(a=d.csc)==null?void 0:a.length)).logVital();e.setState({authPTT:null});e.$44()};e.$52=function(){e.$1.setFlowStep(B.VERIFICATION).setEventName(C.BACK_CLICK).setUserFacingMessage(e.state.errors.global).addToExtraData("incomplete_idv_to_checkout","true").log(),b("FBPaymentsCheckoutActions").exitIncompleteVerificationFlow(),e.__scrollToTop()};e.$58=function(a){switch(a){case E.PASSED:e.$53();return;case E.PENDING_REVIEW:e.$57();return;default:e.$1.setFlowStep(B.VERIFICATION).setEventName(C.BACK_CLICK).setErrorMessage("Unsupported verification flow result: "+String(a)).log(),b("FBLogger")("purchase_experience").warn("Unsupported verification flow result: %s",a)}};e.$62=function(){b("FBPaymentsCheckoutActions").showExitCheckoutConfirmDialog({showDialog:!1}),b("FBPaymentsCheckoutActions").toggleIsCheckoutDialogShown(!1),e.$1.setFlowStep(B.CHECKOUT_EXIT_DIALOG).setEventName(C.CLICK).addToExtraData("button_name","exit").addToExtraData("is_payment_processing",e.getIsPaymentProcessing().toString()).logVital(),e.$6&&e.$6.logUserClickCheckoutExit({target_name:"fbpay_checkout"}),e.__shouldUseBackButtonOnConfirmedExit()?e.$31():e.$34()};e.$63=function(){b("FBPaymentsCheckoutActions").showExitCheckoutConfirmDialog({showDialog:!1}),e.$1.setFlowStep(B.CHECKOUT_EXIT_DIALOG).setEventName(C.CLICK).addToExtraData("button_name","cancel").addToExtraData("is_payment_processing",e.getIsPaymentProcessing().toString()).logVital()};e.$64=function(){b("FBPaymentsCheckoutActions").showDonationLargeAmountConfirmDialog({showDialog:!1}),e.$1.setFlowStep(B.CHECKOUT_DONATION_LARGE_AMOUNT_DIALOG).setEventName(C.CLICK).addToExtraData("button_name","donate").logVital(),b("FBPaymentsCheckoutActions").payButtonClick(!1)};e.$65=function(){b("FBPaymentsCheckoutActions").showDonationLargeAmountConfirmDialog({showDialog:!1}),e.$1.setFlowStep(B.CHECKOUT_DONATION_LARGE_AMOUNT_DIALOG).setEventName(C.CLICK).addToExtraData("button_name","cancel").logVital()};e.$14=function(){var a,c,d;a=(a=e.state.cachedRequestData)==null?void 0:a.extra_data;c=(c=e.state.cachedRequestData)==null?void 0:c.mailing_address_id;d=(d=(d=e.state.cachedRequestData)==null?void 0:d.email_address_id)!=null?d:(d=e.state.contactInfoData)==null?void 0:d.emailID;b("FBPaymentsModulesAPIShared").confirmRazorPayPayment({payment_type:e.getPaymentType(),payment_session_id:e.state.paymentSessionID||"",context_id:b("FBPaymentsLinkHelper").getCurrentURIContextID(),product_id:e.getPaymentInfo().orderId,extra_data:a,address_id:c,email_id:d},e.$55,e.$56)};e.$71=function(a){b("FBPaymentsModulesAPIShared").confirmAltPayPayment({payment_type:e.getPaymentType(),payment_session_id:e.state.paymentSessionID||""},a,e.$55,e.$56)};e.$55=function(a,c){var d;e.$70(!0);c&&Object.entries(c).forEach(function(a){var b=a[0];a=a[1];e.$1.addToExtraData(b,a)});c=a.id;(d=e.$6)==null?void 0:d.logClientAddFbPayPaymentSuccess({credential_id:(d=(d=e.state.paymentMethodData)==null?void 0:d.paymentMethodID)!=null?d:"",order_id:(d=(d=a.extra_data)==null?void 0:d.order_id)!=null?d:"0",payment_id:(d=c)!=null?d:"0",target_name:"checkout"});e.$1.setFlowStep(B.PAYMENT).setEventName(C.SUCCESS).setPaymentID(c).logVital();b("FBPaymentsPerfLogger").logPaymentSuccess(e.getPaymentType());e.$10("checkout_succeeded");e.$19();d=e.props.onCheckoutSuccessCallback;if(d){c=e.getSelectedPaymentMethod();d(c,a,e.$72.bind(babelHelpers.assertThisInitialized(e),a),e.$54)}else e.$72(a)};e.$56=function(a,c){e.$70(!1);e.__closeRazorPayPopup();e.setState({authPTT:null,authKeyPairs:null});c&&Object.entries(c).forEach(function(a){var b=a[0];a=a[1];e.$1.addToExtraData(b,a)});c=b("FBPaymentsUniversalErrorUtils").getErrorCode(a);var d=b("FBPaymentsUniversalErrorUtils").getUserFacingErrorMessage(a),f=b("FBPaymentsUniversalErrorUtils").getServerErrorMessage(a);switch(c){case F.IDV_REQUIRED:e.$1.setFlowStep(B.PAYMENT).setEventName(C.FAIL).setUserFacingMessage(d).setErrorMessage(f).setUserFacingErrorCode(c).setErrorCode(c).addToExtraData("idv_status","required").log();b("FBPaymentsCheckoutActions").enterVerificationFlow({userFacingMessage:d});return;case F.ALT_PAY_FLOW_CANCELLED:e.$1.setFlowStep(B.PAYMENT).setEventName(C.CANCEL).setUserFacingMessage(d).setErrorMessage(f).setUserFacingErrorCode(c).setErrorCode(c).addToExtraData("alt_pay_cancelled","true").log();b("FBPaymentsPerfLogger").logPaymentFail(e.getPaymentType());b("FBPaymentsCheckoutActions").altPayFlowCancelled(a);break;case F.IDV_PENDING_MANUAL_REVIEW:e.$1.setFlowStep(B.PAYMENT).setEventName(C.FAIL).setUserFacingMessage(d).setErrorMessage(f).setUserFacingErrorCode(c).setErrorCode(c).addToExtraData("idv_status","pending_manual_review").log();b("FBPaymentsCheckoutActions").paymentProcessingError({global:d||b("FBPaymentsModulesAPIUtils").getUncaughtErrorMessage()});e.__scrollToTop();return}e.$1.setFlowStep(B.PAYMENT).setEventName(C.FAIL).setUserFacingMessage(d).setErrorMessage(f).setUserFacingErrorCode(c).setErrorCode(c).log();b("FBPaymentsPerfLogger").logPaymentFail(e.getPaymentType());e.$19();f=a&&a.errorCode?{userFacingError:a}:{global:d||b("FBPaymentsModulesAPIUtils").getUncaughtErrorMessage()};b("FBPaymentsCheckoutActions").paymentProcessingError(f);e.__scrollToTop()};e.$11=function(a,b){var c,d,f,g;a=a.transactionOrderDetails;a!=null||h(0,14199);c=(c=a==null?void 0:a.paymentID)!=null?c:"";d=(d=a==null?void 0:a.id)!=null?d:"";f=(f=a==null?void 0:a.receiptUrl)!=null?f:"";g=(g=a==null?void 0:(g=a.confirmationMessage)==null?void 0:g.text)!=null?g:"";e.$10("checkout_flow_failed",d);f={id:c,extra_data:{order_id:d,receipt_url:f,message_with_email:g,subscription_agreement:a.subscriptionAgreement}};g=(g=a)!=null?g.altpayRedirectURL:g;a=(a=a)!=null?a.razorpayRedirectURL:a;if(g){g={initURL:g,paymentID:c,onCancel:e.$71,onSuccess:e.$71,orderID:d};e.__connectAltPay(g)}else if(a){c=e.state.checkoutRestoreData;d={emailId:(g=(d=e.state.contactInfoData)==null?void 0:d.emailID)!=null?g:"",initURL:a,checkoutRestoreData:c,logger:e.$1,paymentType:e.getPaymentInfo().paymentItemType,onCancel:e.$14,onError:e.$14,onSuccess:e.$14};e.__connectRazorPay(d)}else e.$55(f,b)};e.$12=function(a,b){e.$56(a,b),e.$10("checkout_flow_failed")};e.$74=function(a){var b;b=(b=e.getContentConfiguration())!=null?b.dialogWidth:b;(e.state.activeExtension!==null||e.state.activeExtensionForVerification!==null)&&(b=a||b);if(b===e.state.dialogWidth)return;e.setState({dialogWidth:b})};b("FBPaymentsPerfLogger").logCheckoutFlowAppear(e.getPaymentType());e.validateProps(c);var f=e.$7();e.initializeLogging(c,f);b("FBPaymentsDispatcher").explicitlyRegisterStores(e.constructor.getStores());e.isGuestCheckout()&&e.props.guestActorID&&b("RelayAPIConfig").DO_NOT_USE_setActorID(e.props.guestActorID);f=c.configuration.contentConfiguration;e.state={activeExtension:null,activeExtensionForVerification:null,additionalAuthError:null,anyOngoingAPICall:!1,areAllExtensionsReady:!1,authPTT:null,authKeyPairs:null,buttonPrice:null,cachedRequestData:{},checkoutRestoreData:{},confirmationExtensions:new Map(),contactInfoData:null,contentConfiguration:f,dialogWidth:c.dialogWidth||((d=f)!=null?d.dialogWidth:d),errors:{},extensionDataMap:b("immutable").Map(),extensionDataPreparerMap:b("immutable").Map(),extensionFlagsMap:b("immutable").OrderedMap(),extensionsToTriggerUpdateCheckout:z(),extensionUserFacingErrorMap:b("immutable").Map(),finalPriceList:[],freeTrialData:null,frequencySelectorData:null,hasInitializationError:!1,isCheckoutDialogShown:!0,isInitialized:!1,isSwedenDonation:!1,isUpdatingCheckout:!1,paymentMethodData:null,paymentsPIN:"",paymentProcessingMessage:"",paymentSessionID:null,priceSelectorData:null,receiverInfo:null,ResearchSurvey:null,shouldEnablePaypal:!1,showContactSupportFlow:!1,showExitCheckoutConfirmDialog:!1,showDonationLargeAmountConfirmDialog:!1,showUpfrontAddressCollection:!1,showVerificationFlow:!1,step:y.INCOMPLETE,termsAndPolicies:null,updateCheckoutLoadError:null,cardinal3DSProcessorData:null,altPayCancelledError:null,banner:null,isSecondaryPaymentMethodChecked:!1,paymentSecurity:null,redirectFromPaypalURL:null};b("FBPaymentsCheckoutActions").initializeCheckout({contentConfiguration:f,disableUpfrontAddressCollect:!!c.disableUpfrontAddressCollect,enableCheckoutNUX:e.isCheckoutNUXEnabled(),enablePSDAgreementNUX:e.isPaymentsPSDAgreementEnabled(),logger:e.$1,receiverCountry:(d=e.getPaymentInfo())==null?void 0:(f=d.extraData)==null?void 0:f.receiverCountry,shouldLoadContentConfiguration:!e.getIsUsingUpdateCheckoutAPI()&&!e.getIsUsingUpdateCheckoutInfoAPI(),paymentType:e.getPaymentType()});e.__completePaymentOnPaymentProcessing=!1;e.__restorePaymentFromRazorPayRedirect=!1;e.$2=!1;return e}var d=c.prototype;d.validateProps=function(a){a=a.configuration;var b=a.orderStatusModel.type;switch(b){case v.FIXED_AMOUNT:!a.contentConfiguration&&h(0,319,b);break;case v.UPDATE_CHECKOUT_API:case v.CHECKOUT_INFORMATION:break;default:h(0,320,b)}};d.initializeLogging=function(a,c){var d,e,f;switch(a.paymentModuleFlowType){case b("FBPaymentsModulesFlowType").INVOICE:e=A.INVOICE;f=B.INVOICE;break;default:e=A.CHECKOUT;f=B.CHECKOUT_MODULE;break}var g=this.__getLogger();this.$1=new g();g=a.configuration.paymentInfo;var h=g.orderId,i=g.receiverId,j=g.paymentItemType,k=g.isFreePurchase;g=g.extraData;this.$6=new(b("FBPayUPLLogger"))(j,this.__getIsDesktop()?"web":"msite",c);this.$1.setGlobalFields((d={},d[D.session_id]=c,d[D.product]=j,d[D.order_id]=h,d[D.other_profile_id]=i,d[D.flow_name]=e,d[D.is_free]=k,d));c=b("gkx")("676854");g=babelHelpers["extends"]({},g,a.extraDataForLogging,a.checkoutExtraProps,(d={non_compliant_browser:c?"1":"",user_facing_error:"1",use_checkout_info:this.getIsUsingUpdateCheckoutInfoAPI()?"1":"",use_3ds2_flow:b("FBPaymentsCheckoutHelper").shouldUse3DS2Flow(j,(h=this.getPaymentInfo())==null?void 0:(k=h.extraData)==null?void 0:k.receiverCountry)},d[D.fbpay_enabled]=b("FBPayGatingUtils").isFBPayExperienceEnabled(),d));this.$1.setGlobalExtraData(g);this.$6&&this.$6.logClientLoadCheckoutInit({target_name:"checkout",view_name:"checkout"},i);f&&this.$1.setFlowStep(f).setEventName(C.INIT).logVital()};c.getStores=function(){return[this.__getCheckoutStore(),b("FBPaymentsCheckoutConfigurationStore"),b("FBPaymentsCheckoutLoggerStore")]};c.__getCheckoutStore=function(){return b("abstractMethod")("FBPaymentsCheckoutV2FlowContainerBase","__getCheckoutStore")};c.calculateState=function(a,c){var d;a=babelHelpers["extends"]({},a);var e=this.__getCheckoutStore(),f=e.getState();a.priceSelectorData=f.priceSelectorData;a.freeTrialData=f.freeTrialData;a.frequencySelectorData=f.frequencySelectorData;a.contactInfoData=f.contactInfoData;var g=f.paymentMethodData;a.paymentMethodData=f.isSecondaryPaymentMethodChecked?g:babelHelpers["extends"]({},g,{secondaryPaymentMethod:null});a.checkoutRestoreData=f.checkoutRestoreData;a.buttonPrice=f.buttonPrice;a.termsAndPolicies=f.termsAndPolicies;a.receiverInfo=f.receiverInfo;a.extensionDataPreparerMap=f.extensionDataPreparerMap;a.extensionDataMap=f.extensionDataMap;a.extensionFlagsMap=f.extensionFlagsMap;a.extensionUserFacingErrorMap=f.extensionUserFacingErrorMap;a.step=f.checkoutStep;a.paymentProcessingMessage=f.paymentProcessingMessage;a.activeExtension=f.activeExtension;a.activeExtensionForVerification=f.activeExtensionForVerification;a.errors=f.checkoutErrors;a.showContactSupportFlow=f.showContactSupportFlow;a.showVerificationFlow=f.showVerificationFlow;a.cachedRequestData=f.cachedRequestData;a.isCheckoutDialogShown=f.isCheckoutDialogShown;a.isUpdatingCheckout=f.isUpdatingCheckout;a.isSecondaryPaymentMethodChecked=f.isSecondaryPaymentMethodChecked;a.contentConfiguration=b("FBPaymentsCheckoutConfigurationStore").getContentConfiguration();g=e.getFinalPriceList(a.contentConfiguration);d=(d=c.configuration)==null?void 0:(d=d.paymentInfo)==null?void 0:d.paymentItemType;d=(d==="mor_donations_cause_for_charities"||d==="mor_donations_matching_confirmation")&&((d=c.configuration)==null?void 0:(d=d.orderStatusModel)==null?void 0:d.type)===v.CHECKOUT_INFORMATION;c=((c=c.configuration)==null?void 0:(c=c.contentConfiguration)==null?void 0:c.priceList)||g;d=d?c:g;a.finalPriceList=d;a.isInitialized=e.isCheckoutInitialized(a.contentConfiguration);a.hasInitializationError=e.hasAnyInitializationError();a.areAllExtensionsReady=e.areAllExtensionsReady();a.showUpfrontAddressCollection=e.shouldShowUpfrontAddressCollection();a.paymentSessionID=f.paymentSessionID;a.ResearchSurvey=f.getResearchSurvey();a.extensionsToTriggerUpdateCheckout=f.extensionsToTriggerUpdateCheckout;a.showExitCheckoutConfirmDialog=f.showExitCheckoutConfirmDialog;a.showDonationLargeAmountConfirmDialog=f.showDonationLargeAmountConfirmDialog;a.updateCheckoutLoadError=f.updateCheckoutLoadError;a.cardinal3DSProcessorData=f.cmpi3DSResult;a.anyOngoingAPICall=f.getIsAnyAPICallsOngoing();a.altPayCancelledError=f.altPayCancelledError;a.banner=f.banner;a.paymentSecurity=f.getPaymentSecurity();a.shouldEnablePaypal=f.shouldEnablePaypal;a.additionalAuthError=f.additionalAuthError;return a};d.isCheckoutNUXEnabled=function(){return!!this.props.enableCheckoutNUX};d.isPaymentsPSDAgreementEnabled=function(){return!!this.props.psdAgreementID};d.getExtensionName=function(a){return a.identifier==="CUSTOM_EXTENSION"?a.extensionKey:a.identifier};d.getCheckoutConfiguration=function(){return this.props.configuration};d.getPaymentInfo=function(){return this.props.configuration.paymentInfo};d.getContentConfiguration=function(){if(this.getIsUsingUpdateCheckoutAPI()||this.getIsUsingUpdateCheckoutInfoAPI())return this.state.contentConfiguration;else return this.getCheckoutConfiguration().contentConfiguration};d.getPayActionContent=function(){var a=this.getContentConfiguration();return a&&a.payActionContent};d.getPayActionTitle=function(a,c,d){var e,f;e=(c==null?void 0:c.newPaymentOptionType)?c==null?void 0:c.newPaymentOptionType:c==null?void 0:(e=c.paymentMethod)==null?void 0:e.type;var g=b("PaymentMethodUtils").getGraphQLPaymentMethodTypeFromLegacyType(e);f=(f=a==null?void 0:a.customLabelsForCredentials)!=null?f:[];f=f.find(function(a){return a.credential_type===g});d=d==null?void 0:d.subscriptionType;if(d&&d==="MONTHLY"&&b("gkx")("1669"))return typeof e==="string"&&e.includes("paypal")?b("FBPaymentsCheckoutStrings").getMonthlyDonationPaypalConfirmButtonLabel():b("FBPaymentsCheckoutStrings").getMonthlyDonationConfirmButtonLabel();if(!(a==null?void 0:a.customLabelsForCredentials)&&(c==null?void 0:c.newPaymentOptionType)===b("FBPaymentsNewPaymentOptionTypes").NEW_PAYPAL)return b("FBPaymentsCheckoutStrings").getNewPayPalPayActionTitle();if(!(a==null?void 0:a.customLabelsForCredentials)&&(c==null?void 0:c.newPaymentOptionType)===b("FBPaymentsNewPaymentOptionTypes").NEW_AFFIRM)return b("FBPaymentsCheckoutStrings").getNewAffirmPayActionTitle();return!(a==null?void 0:a.customLabelsForCredentials)||!c?a==null?void 0:a.actionTitle:(d=f==null?void 0:f.label)!=null?d:a==null?void 0:a.actionTitle};d.getConfirmationConfiguration=function(){var a=this.state.contentConfiguration;return a&&a.confirmationConfiguration||{}};d.getSelectedPaymentMethod=function(){var a=this.state.extensionDataMap.get(u.PAYMENT_METHOD);return(a=a)!=null?a.paymentMethod:a};d.isGiftAidExtensionDisplayed=function(){return this.state.extensionDataMap.get(t.GIFT_AID_CHECKBOX)!=null};d.getIsUsingUpdateCheckoutAPI=function(){return this.getCheckoutConfiguration().orderStatusModel.type===v.UPDATE_CHECKOUT_API};d.getIsUsingUpdateCheckoutInfoAPI=function(){return this.isGuestCheckout()?!1:this.getCheckoutConfiguration().orderStatusModel.type===v.CHECKOUT_INFORMATION};d.getIsPaymentProcessing=function(){return this.state.step===y.PAYMENT_PROCESSING||this.state.step===y.PAYMENT_PROCESSING_EXTENDED};d.componentDidMount=function(){this.logExperimentExposures(),this.$8(!0),this.getIsUsingUpdateCheckoutInfoAPI()||this.$9(),this.$10("checkout_impression"),this.isAsyncPaymentType()&&(this.$5=new(b("FBPaymentsAsyncCompleteCheckoutManager"))(this.$11,this.$12,this.$1))};d.componentWillUnmount=function(){b("FBPaymentsCheckoutActions").unmountCheckoutFlow()};d.componentDidUpdate=function(a,c){var d=this;c.step!==y.PAYMENT_PROCESSING&&this.state.step===y.PAYMENT_PROCESSING&&(this.__completePaymentOnPaymentProcessing?(this.__completePaymentOnPaymentProcessing=!1,this.$13()):this.__restorePaymentFromRazorPayRedirect&&(this.__restorePaymentFromRazorPayRedirect=!1,this.$14()));if(this.getIsUsingUpdateCheckoutAPI()||this.getIsUsingUpdateCheckoutInfoAPI()){a=c.extensionDataMap;var e=this.state.extensionDataMap;c=a.some(function(a,b){if(d.$15(b)){a=JSON.stringify(a)!==JSON.stringify(e.get(b));return a}return!1});c&&(this.getIsUsingUpdateCheckoutInfoAPI()?this.$16():this.$17())}!this.state.anyOngoingAPICall&&this.state.isInitialized&&!this.state.isUpdatingCheckout&&!this.$3&&(b("FBPaymentsPerfLogger").annotateAddressFormUpfront(b("qpl")._(23265284,"3211"),this.state.showUpfrontAddressCollection),b("FBPaymentsPerfLogger").markerEnd(b("qpl")._(23265284,"3211"),this.getPaymentType()),this.$3=!0,this.$18());this.$2||(this.$2=!0,this.$1.setFlowStep(B.CHECKOUT_SCREEN).setEventName(C.DISPLAY).logVital())};d.$18=function(){var a,b=Date.now();a=(a=this.props.checkoutExtraProps)==null?void 0:a.countdownTimerDurationInS;var c=3*r/4;a&&(this.__countdownTimerEndTime=b+a*r+c,this.forceUpdate())};d.$19=function(){var a;this.$1.setGlobalFields((a={},a[D.payment_method_id]=null,a[D.payment_method_type]=null,a[D.mailing_address_id]=null,a[D.shipping_option_id]=null,a[D.raw_amount]=null,a[D.currency]=null,a))};d.logExperimentExposures=function(){};d.$9=function(){var a,c=this.getPaymentInfo();a=(a=this.getPayActionContent())!=null?a.actionTitle:a;this.$1.setFlowStep(B.CHECKOUT_TERMS_FETCH).setEventName(C.API_INIT).log();this.isGuestCheckout()?b("FBPaymentsModulesAPIShared").fetchTermsAndPoliciesGraphQLRelay(c.paymentItemType,c.receiverId,c.orderId,c.extraData,a,this.$20,this.$21):this.__getAPI().fetchTermsAndPolicies(c.paymentItemType,c.receiverId,c.orderId,c.extraData,a,this.$20,this.$21)};d.$8=function(a){a===void 0&&(a=!1),this.getIsUsingUpdateCheckoutInfoAPI()?this.$16(a):this.getIsUsingUpdateCheckoutAPI()&&this.$17()};d.$17=function(){var a=this.$22();b("FBPaymentsCheckoutActions").setIsUpdatingCheckout();this.__getAPI().updateCheckoutGraphql(a,this.$23,this.$24)};d.$16=function(a){a===void 0&&(a=!1);var c=this.$25(a);b("FBPaymentsCheckoutActions").setIsUpdatingCheckout();this.$1.setFlowStep(B.CHECKOUT_INFORMATION).setEventName(C.API_INIT).addToExtraData("initial_load",a.toString()).log();b("FBPaymentsModulesAPIShared").updateCheckoutInformationGraphQL(c,this.$26,this.$27)};d.$25=function(a){var c,d;a===void 0&&(a=!1);var e=this.getPaymentInfo();c=(c=e==null?void 0:(c=e.extraData)==null?void 0:c.products)!=null?c:[];var f={};c={payment_type:e.paymentItemType,order_id:e.orderId,receiver_id:e.receiverId,logging_id:this.$1.getSessionID(),payment_session_id:this.state.paymentSessionID,products:c.map(function(a){var b;return{product_id:a.product_id,quantity:a.quantity,per_unit_price:a.price?{currency:(b=a.price)==null?void 0:b.currency,amount:(b=a.price)==null?void 0:b.amount}:null}}),is_dynamic_auth_available:b("FBPayGatingUtils").shouldUseDynamicAuth(e.paymentItemType,null),is_initial_load:a};a=e.extraData||{};for(var e=this.state.extensionDataMap.entries(),g=Array.isArray(e),h=0,e=g?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var i;if(g){if(h>=e.length)break;i=e[h++]}else{h=e.next();if(h.done)break;i=h.value}i=i;var j=i[0];i=i[1];switch(j){case u.PAYMENT_METHOD:j=i.newPaymentOptionType?b("PaymentMethodUtils").getGraphQLPaymentMethodTypeFromLegacyType(i.newPaymentOptionType):i.paymentMethod.credentialType;d=(d=i)!=null?d.altPayData:d;d&&(f={altpay_data:{payment_provider:d.payment_provider,pricepoint_id:d.pricepoint_id,msisdn:d.msisdn}});c.selected_payment_credentials=babelHelpers["extends"]({},f,{credential_type:j,credential_id:i.paymentMethodID,billing_country:i.selectedBillingCountry});break;case u.SHIPPING_ADDRESS:c.selected_shipping_address_id=i.selectedMailingAddressID;break;case u.CONTACT_INFO:c.contact_name=i.name;c.selected_contact_email_id=i.emailID;c.selected_contact_phone_id=i.phoneNumberID;break;case u.CUSTOM_OPTIONS:c.selected_delivery_option_id=i==null?void 0:(d=i.selectedOption)==null?void 0:d.optionId;break;case u.COUPON_CODE:c.coupon_code=i.couponCode;break}}c.extra_data=JSON.stringify(a);return c};d.$22=function(){var a,c=this.getPaymentInfo(),d={payment_type:c.paymentItemType,order_id:c.orderId,receiver_id:c.receiverId,session_id:this.$1.getSessionID()};c=c.extraData||{};var e={};for(var f=this.state.extensionDataMap.entries(),g=Array.isArray(f),h=0,f=g?f:f[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var i;if(g){if(h>=f.length)break;i=f[h++]}else{h=f.next();if(h.done)break;i=h.value}i=i;var j=i[0];i=i[1];switch(j){case u.PAYMENT_METHOD:j=b("FBPaymentsModulesAPIUtils").getPaymentMethodRequestParamsGraphQL(i.paymentMethod,i.bank);a=(a=i)!=null?(a=a.altPayData)!=null?a.fee:a:a;a&&(e={payment_credential_data:JSON.stringify({altpay_fee:a}),payment_instrument_type:"ALTPAY"});d=babelHelpers["extends"]({},e,d,j);c=babelHelpers["extends"]({},c,{billingCountryCode:i.selectedBillingCountry});break;case u.SHIPPING_ADDRESS:d.mailing_address_id=i.selectedMailingAddressID;break;case u.CUSTOM_OPTIONS:j=(a=i)!=null?(a=a.extraData)!=null?a.collectedDataKey:a:a;a=(a=i)!=null?(a=a.selectedOption)!=null?a.optionId:a:a;switch(j){case s.SHIPPING_OPTION:d.shipping_option_id=a;break;default:if(j){var k;c=babelHelpers["extends"]({},c,(k={},k[j]=a,k))}}break;case u.COUPON_CODE:d.coupon_code=i.couponCode;break}}d.extra_data=JSON.stringify(c);return d};d.$15=function(a){if(this.getIsUsingUpdateCheckoutInfoAPI())return this.isGiftAidExtensionDisplayed()&&a===u.SHIPPING_ADDRESS?!1:this.state.extensionsToTriggerUpdateCheckout.has(a);switch(a){case u.CONTACT_INFO:case u.COUPON_CODE:case u.PAYMENT_METHOD:case u.CUSTOM_OPTIONS:case u.SHIPPING_ADDRESS:return!0;default:return!1}};d.shouldConnectPayPalInCheckoutContainer=function(){return this.constructor.__getCheckoutStore().shouldConnectPayPalInCheckoutContainer()};d.areAllExtensionsReady=function(){return this.state.areAllExtensionsReady};d.isCheckoutInitialized=function(){return this.state.isInitialized};d.isGuestCheckout=function(){return!!this.props.guestActorID};d.isAsyncPaymentType=function(){return b("FBPaymentsAsyncCompleteCheckoutUtils").isAsyncPaymentType(this.getPaymentType())};d.isAsyncPayment=function(){return b("FBPaymentsAsyncCompleteCheckoutUtils").isAsyncPayment(this.getPaymentType())};d.$28=function(){return b("gkx")("763695")};d.$29=function(){var a,c;a=((a=this.state.paymentMethodData)==null?void 0:a.newPaymentOptionType)===b("FBPaymentsNewPaymentOptionTypes").NEW_CREDIT_CARD||((a=this.state.paymentMethodData)==null?void 0:a.newPaymentOptionType)===b("FBPaymentsNewPaymentOptionTypes").NEW_CREDIT_CARD_FROM_GRAPHQL||((a=this.state.paymentMethodData)==null?void 0:(a=a.paymentMethod)==null?void 0:a.type)===b("FBPaymentsPaymentMethodTypes").CREDIT_CARD||((a=this.state.paymentMethodData)==null?void 0:(a=a.paymentMethod)==null?void 0:a.type)===b("FBPaymentsPaymentMethodTypes").CREDIT_CARD_FROM_GRAPHQL;return b("FBPaymentsCheckoutHelper").shouldUse3DS2Flow(this.getPaymentType(),(c=this.getPaymentInfo())==null?void 0:(c=c.extraData)==null?void 0:c.receiverCountry)&&a&&b("FBPayments3DS").requires3DS2()};d.getPaymentType=function(){return this.getPaymentInfo().paymentItemType};d.__handleBackButtonClick=function(a){a===void 0&&(a=!1),!a&&this.__isExitCheckoutConfirmDialogEnabled()?(b("FBPaymentsCheckoutActions").showExitCheckoutConfirmDialog({showDialog:!0}),this.$1.setFlowStep(B.CHECKOUT_EXIT_DIALOG).setEventName(C.DISPLAY).addToExtraData("is_payment_processing",this.getIsPaymentProcessing().toString()).logVital()):this.$31()};d.$31=function(){this.$1.setFlowStep(B.CHECKOUT_MODULE).setEventName(C.CANCEL).logVital();this.$10("checkout_flow_canceled");var a=this.props.onBackButtonClick;if(a)a&&a();else{a=(a=this.getPayActionContent())!=null?a.backButtonCallback:a;a&&a()}};d.$32=function(){b("FBPaymentsCheckoutActions").nuxContinueButtonClick()};d.__exitCheckoutFlow=function(a){a===void 0;return b("abstractMethod")("FBPaymentsCheckoutV2FlowContainerBase","__exitCheckoutFlow")};d.$33=function(a){this.$35();var b=this.getConfirmationConfiguration().confirmationClosedCallback;b&&b(a,this.state.confirmationExtensions);b=this.props.onConfirmationClosed;b&&b(a,this.state.confirmationExtensions)};d.$35=function(){if(j()){var a=this.$37();a&&this.__getOpenSurveyRequest(a)}};d.$37=function(){var a=this.state.ResearchSurvey;return a?this.__getIsDesktop()?a.desktop_uri:a.msite_uri:null};d.$38=function(){var a=this.state.ResearchSurvey;return a?this.__getIsDesktop()?a.desktop_exit_uri:a.msite_exit_uri:null};d.$39=function(){var a=this.state.buttonPrice,c=this.getContentConfiguration(),d=b("FBPaymentsFreeTrialExtensionUtil").getIsUsingFreeTrial(this.state.freeTrialData),e=this.state.finalPriceList;if(c==null?void 0:c.newPriceTable){a=c==null?void 0:(c=c.newPriceTable)==null?void 0:c.totalPrice.price;if(d){a=b("FBPaymentsFreeTrialExtensionUtil").getFreeTrialPrice((c=(c=a)==null?void 0:c.currency)!=null?c:"")}}else if(this.isPriceListValid(e)){c=b("FBPaymentsPriceListHelper").calculateTotal(e);e=c.currency;e&&(a=d?b("FBPaymentsFreeTrialExtensionUtil").getFreeTrialPrice(e):{amount:c.amount.toString(),currency:e})}return a};d.$40=function(){var a;return(a=(a=this.state.paymentMethodData)==null?void 0:(a=a.paymentMethod)==null?void 0:a.csc)!=null?a:(a=this.state.paymentMethodData)==null?void 0:a.csc};d.$41=function(){var a,c,d=b("enumUtils").enumValueToKeyEnforcing(this.getPaymentType(),b("AllPaymentTypeFields")),e=this.state.paymentMethodData;c=((c=e)!=null?c.paymentMethodID:c)||"";e=(e=e)!=null?e.paymentMethod:e;e=(e==null?void 0:e.cardType)||"";a=((a=this.$39())==null?void 0:a.currency)||"";c={credentialID:c,creditCardType:e,currency:a,paymentInfo:this.getPaymentInfo(),paymentType:d};return b("FBPayments3DS").getAcquirerMerchantInfo(c)};d.$42=function(a){var c=this.state.paymentMethodData;c=(c=c)!=null?c.paymentMethodID:c;var d=this.$39();c={credentialID:c!=null?c:"",amount:{currency:(d==null?void 0:d.currency)||"",amount:(d==null?void 0:d.amount)||""},itemType:b("enumUtils").enumValueToKeyEnforcing(this.getPaymentType(),b("AllPaymentTypeFields")),lookupData:{email:"",mobile_phone:"",billing_first_name:"",billing_middle_name:"",billing_last_name:"",credit_card_address:{street:"",street2:"",city:"",state:"",zip:"",country_code:""},acs_window_size:"05",acquirer_merchant_info:a,challenge_indicator:""}};return c};d.$44=function(a){if(this.state.step===y.PAYMENT_PROCESSING)return;this.__completePaymentOnPaymentProcessing=!0;b("FBPaymentsCheckoutActions").payButtonClick(a?!1:this.__isDonationLargeAmountConfirmDialogEnabled())};d.$46=function(){return this.state.step===y.READY_TO_PAY&&!this.state.isUpdatingCheckout&&this.areAllExtensionsReady()};d.$48=function(){return b("FBPayPINUtils").getShouldShowPinFlow(this.state.paymentSecurity)&&!Boolean(this.state.paymentsPIN)&&!(Boolean(this.state.authPTT)||Boolean(this.state.authKeyPairs))};d.$49=function(){return b("FBPayPINUtils").getPINFlowStep(this.state.paymentSecurity)};d.$50=function(a){return a==="SHIPPING_ADDRESS"&&this.$51().paymentType==="mor_facebook_shop"};d.$53=function(){this.$1.setFlowStep(B.VERIFICATION).setEventName(C.DONE).addToExtraData("passed_idv_to_checkout","true").logVital();b("FBPaymentsCheckoutActions").exitPassedVerificationFlow();var a=this.state.cachedRequestData;if(!a){this.$54();return}this.isAsyncPayment()?(this.__startChannelManager(),this.$5!=null||h(0,11262),this.$5.makeAsyncPayment(a,this.getPaymentInfo())):this.__getAPI().completeCheckoutGraphQL(a,this.$55,this.$56)};d.$57=function(){this.$1.setFlowStep(B.VERIFICATION).setEventName(C.DONE).addToExtraData("pending_review_idv_to_checkout","true").logVital(),this.__exitCheckoutFlow(!0)};d.$59=function(){b("FBPaymentsCheckoutActions").contactSupportClick()};d.$60=function(){b("FBPaymentsCheckoutActions").exitIncompleteContactSupport()};d.$61=function(){b("FBPaymentsCheckoutActions").exitCompletedContactSupport()};d.__isDonationLargeAmountConfirmDialogEnabled=function(){var a,c;switch(this.getPaymentType()){case"mor_donations":case"mor_donations_cause_for_charities":case"mor_donations_matching_confirmation":case"mor_donations_matching_pledge":case"nmor_donation_p4p":case"nmor_blackbaud_rwr_donation":case"nmor_ppgf_donation":a=Number((a=(a=this.$39())==null?void 0:a.amount)!=null?a:"");c=Number((c=this.props.checkoutExtraProps)==null?void 0:c.amountForConfirmationDialog);return a>=c?b("gkx")("1176429"):!1;default:return!1}};d.__getDonationLargeAmountConfirmDialogCancelButtonLabel=function(){return b("FBPaymentsCheckoutStrings").getDonationLargeAmountConfirmDialogCancelButtonLabel()};d.__getDonationLargeAmountConfirmDialogConfirmButtonLabel=function(){return b("FBPaymentsCheckoutStrings").getDonationLargeAmountConfirmDialogConfirmButtonLabel()};d.__getDonationLargeAmountConfirmDialogDescription=function(){var a,c=this.$39(),d={showCurrencyCode:!1,showDecimals:!0,showSymbol:!0,stripZeros:!0,thousandSeparator:!0};c=n((a=c==null?void 0:c.currency)!=null?a:"",Number((a=c==null?void 0:c.amount)!=null?a:"")*100,d);return b("FBPaymentsCheckoutStrings").getDonationLargeAmountConfirmDialogDescription(c,(a=this.getContentConfiguration())==null?void 0:(d=a.entity)==null?void 0:d.participant.title)};d.$13=function(){var a=this;b("FBPaymentsCheckoutActions").updateCheckoutStep(y.PAYMENT_PROCESSING);var c=this.state.extensionDataPreparerMap,d=this.getPaymentInfo();d.paymentItemType==="nmor_donation_p4c"&&this.__connectRazorPay();b("promiseDone")(b("FBPaymentsCheckoutHelper").prepareExtensionDataPromise(c).then(function(b){!b&&h(0,960),a.$66(b)})["catch"](function(c){a.__closeRazorPayPopup();c=(c=c)!=null?c.error:c;b("FBPaymentsPerfLogger").logPaymentFail(a.getPaymentType());if(c)b("FBPaymentsCheckoutActions").paymentProcessingExtensionDataPrepError(c);else{c=b("FBPaymentsModulesAPIUtils").getUncaughtErrorMessage();b("FBPaymentsCheckoutActions").paymentProcessingExtensionDataPrepError({global:c})}a.__scrollToTop()}))};d.$66=function(a){var c=this;!this.$29()?this.$67(a):b("promiseDone")(this.$41(),function(d){d=c.$42(d);b("promiseDone")(b("FBPayments3DS").fetchAuthenticationURL(d),function(d){b("FBPaymentsCheckoutActions").successful3DS({cmpiLookupResult:d}),c.$67(a)},function(a){a=a.fetch_3rd_party_payment_auth||"";a=a.status;a==="CHALLENGED"?(b("FBPaymentsPerfLogger").logPaymentCancel(c.getPaymentType()),c.$54()):c.$12()})})};d.$67=function(a){var c=this,d,e=this.getPaymentInfo(),f=this.$68(a),g;d=(d=this.state.paymentMethodData)!=null?d.newPaymentOptionType:d;f.nmor_payment_method&&(g=JSON.parse(f.nmor_payment_method).type);var i=this.shouldConnectPayPalInCheckoutContainer()&&d===b("FBPaymentsNewPaymentOptionTypes").NEW_PAYPAL,j=i?B.ADD_PAYPAL:B.PAYMENT;this.$1.setFlowStep(j).setEventName(C.API_INIT).setGlobalFields((j={},j[D.payment_method_id]=f.credential_id,j[D.payment_method_type]=g,j[D.mailing_address_id]=f.mailing_address_id,j[D.shipping_option_id]=f.shipping_option_id,j[D.raw_amount]=f.amount,j[D.currency]=f.currency,j));f.payment_type!=="nmor_event_ticketing"&&this.$1.updateExtraData(JSON.parse(f.extra_data));this.$10("purchase_button_clicked");var k;!i&&e.action!==w.CUSTOM_CALLBACK&&(k=this.isAsyncPayment(),this.$1.addToExtraData("async",k?"true":"false"));this.$1.logVital();if(b("FBPayGatingUtils").shouldUseDynamicAuth(this.getPaymentType(),this.$40())){var l;j=b("FBPaymentsCheckoutHelper").buildCheckoutRestoreData(this.state.checkoutRestoreData,a);l=(l=this.state.paymentMethodData)==null?void 0:l.paymentMethodID;var m=b("getOwnObjectValues")(G);j=b("FBPaymentsLinkHelper").getCurrentURI().removeQueryData(m).addQueryData(babelHelpers["extends"]({},j,(m={},m[G.PAYMENT_METHOD_ID]=l,m[G.RETURNED_FROM_PAYPAL]=H.VERIFY,m[G.RETURNED_FROM_VERIFY_PAYPAL_STEP]=I.DA_FOR_PAYMENT,m)));this.setState({redirectFromPaypalURL:j.toString()})}if(i){l=b("FBPaymentsCheckoutHelper").buildCheckoutRestoreData(this.state.checkoutRestoreData,a);this.__connectPayPal({checkoutRestoreData:l,logger:this.$1,paymentType:e.paymentItemType,uplSessionId:(m=this.$6)==null?void 0:m.getSessionID()})}else if(this.$48()){j=b("FBPaymentsCheckoutHelper").buildCheckoutRestoreData(this.state.checkoutRestoreData,a);l=(i=this.state.paymentMethodData)==null?void 0:i.paymentMethodID;m=b("getOwnObjectValues")(G);m=b("FBPaymentsLinkHelper").getCurrentURI().removeQueryData(m).addQueryData(babelHelpers["extends"]({},j,(i={},i[G.PAYMENT_METHOD_ID]=l,i[G.RETURNED_FROM_PAYPAL]=H.VERIFY,i[G.RETURNED_FROM_VERIFY_PAYPAL_STEP]=I.UPDATE_PIN_IN_CHECKOUT,i)));this.setState({redirectFromPaypalURL:m.toString()});b("FBPaymentsCheckoutActions").updateCheckoutStep(y.PIN);return}else if(e.action===w.CUSTOM_CALLBACK)e.payCallbackV2!=null||h(0,12244),e.payCallbackV2(this.state.extensionDataMap,this.$30,f);else{b("FBPaymentsCheckoutActions").cacheRequestData(f);if(k){d===b("FBPaymentsNewPaymentOptionTypes").NEW_ALT_PAY&&this.__connectAltPay();this.__startChannelManager();if(e.paymentItemType==="nmor_donation_p4c"){j=b("FBPaymentsCheckoutHelper").buildCheckoutRestoreData(this.state.checkoutRestoreData,a);b("promiseDone")(this.__getRazorPayCallbackURL({checkoutRestoreData:j,extraData:(l=this.state.cachedRequestData)==null?void 0:l.extra_data,addressId:(i=this.state.cachedRequestData)==null?void 0:i.mailing_address_id,emailId:(m=this.state.cachedRequestData)==null?void 0:m.email_address_id,logger:this.$1,paymentType:e.paymentItemType,paymentSessionID:this.state.paymentSessionID}),function(a){f.razorpay_callback_url=a,c.$5!=null||h(0,11262),c.$5.makeAsyncPayment(f,c.getPaymentInfo())},function(a){var c=b("FBPaymentsUniversalErrorUtils").getUserFacingErrorMessage(a);a=a&&a.errorCode?{userFacingError:a}:{global:c!=null?c:b("FBPaymentsModulesAPIUtils").getUncaughtErrorMessage()};b("FBPaymentsCheckoutActions").paymentProcessingError(a)})}else this.$5!=null||h(0,11262),this.$5.makeAsyncPayment(f,this.getPaymentInfo())}else this.isGuestCheckout()||this.getPaymentType()==="mor_facebook_shop"?(f.paymentType=e.paymentItemType,b("FBPaymentsModulesAPIShared").completeCheckoutRelayGraphQL(f,this.$55,this.$56)):this.__getAPI().completeCheckoutGraphQL(f,this.$55,this.$56)}f.email_opt_in!=null&&f.email_opt_in!=void 0&&this.$1.setEventType(A.CHECKOUT).setFlowStep(B.EMAIL_OPT_IN).setEventName(C.SUBMIT).addToExtraData("requestData.email_opt_in",f.email_opt_in).log();f.email_opt_in===!0&&this.$1.setEventType(A.CHECKOUT).setFlowStep(B.EMAIL_OPT_IN).setEventName(C.CONFIRM).addToExtraData("requestData.email_opt_in",f.email_opt_in).log()};d.$69=function(a){if(b("FBPaymentsCheckoutHelper").shouldCollectFraudnetFeatures(a)){this.$4=(a=this.$4)!=null?a:b("PayPalFraudNetNew").collectFraudnetFeatures("FB_CHECKOUT_FLOW_ID",b("PayPalFraudNetUrl").fraudnet_url)}return this.$4};d.$68=function(a){var c,d,e=this.state,f=this.getPaymentInfo(),g=f.paymentItemType,i=this.$69(e.receiverInfo);g={action:f.action,payment_type:g,receiver_id:f.receiverId,order_id:f.orderId,products:(g=f.extraData)==null?void 0:g.products,session_id:this.$1.getSessionID(),payment_session_id:e.paymentSessionID,paypal_fraudnet_id:i};i=f.extraData||{};f=!1;var j={};for(var k=e.extensionDataMap.entries(),l=Array.isArray(k),m=0,k=l?k:k[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var n;if(l){if(m>=k.length)break;n=k[m++]}else{m=k.next();if(m.done)break;n=m.value}n=n;var p=n[0];n=n[1];switch(p){case u.COUPON_CODE:g=babelHelpers["extends"]({},g,{coupon_code:n.couponCode});break;case u.TAX_INFO:var q=a.get(p);g=babelHelpers["extends"]({},g,{tax_info_id:q==null?void 0:q.taxInfoID});break;case u.PAYMENT_METHOD:q=a.get(p);d=(d=q)!=null?d.paymentMethod:d;c=(c=n)!=null?c.altPayData:c;var r=void 0;if(c)delete c.fee,r={altPayData:c};else if(!((c=q)!=null?c.credit_card:c)){c=d||n.paymentMethod;n.secondaryPaymentMethod?(f=!0,j=n):r=b("FBPaymentsModulesAPIUtils").getPaymentMethodRequestParams(c,n.bank)}g=babelHelpers["extends"]({},g,r);n.csc&&(g.csc=n.csc);((d=q)!=null?d.credit_card:d)&&(g=babelHelpers["extends"]({},g,q));break;case u.CONTACT_INFO:c=a.get(p);d=(r=c)!=null?r.emailID:r;r=(q=c)!=null?q.emailAddress:q;c=(q=c)!=null?q.phoneNumberID:q;q=e.contactInfoData;q&&(g.contact_name=q.name,g.email_address_id=d||q.emailID,g.email_address=r||q.email,g.contact_number_id=c||q.phoneNumberID);break;case u.PRICE_SELECTOR:d=e.priceSelectorData;d&&(g.amount=b("FBPaymentsPriceListHelper").formatStringAmount(Number(d.selectedAmount)),g.currency=d.currency);break;case u.SHIPPING_ADDRESS:g.mailing_address_id=n.selectedMailingAddressID;break;case u.CUSTOM_OPTIONS:c=(r=n)!=null?(r=r.extraData)!=null?r.collectedDataKey:r:r;d=(q=n)!=null?(q=q.selectedOption)!=null?q.optionId:q:q;switch(c){case s.SHIPPING_OPTION:g.shipping_option_id=d;break;default:if(c){i=babelHelpers["extends"]({},i,(r={},r[c]=d,r))}}break;case u.FREQUENCY_SELECTOR:q=n.subscriptionType;c=n.subscriptionPeriod;q&&(g.subscription_type=q,g.subscription_period=c);break;case u.NATIONALITY_SELECTOR:d=n.isCitizen;g.is_citizen=d;break;case u.FREE_TRIAL:r=n.trialType;g.trial_type=r;break;case u.USER_INFO_OPT_IN:q=n.optIn;g.email_opt_in=q;break;case t.EMAIL_SHARING_CHECKBOX:c=n.privacyMutationSourceID;g=babelHelpers["extends"]({},g,{privacy_mutation_token:o(c)});break;default:i=babelHelpers["extends"]({},i,(d={},d[p]=n,d));break}}i.subscriptionType&&i.subscriptionPeriod&&(g.subscription_type=i.subscriptionType,g.subscription_period=i.subscriptionPeriod);r=this.state.finalPriceList;if((q=this.getContentConfiguration())==null?void 0:q.newPriceTable){p=(c=this.getContentConfiguration())==null?void 0:c.newPriceTable;g.currency=p==null?void 0:(n=p.totalPrice)==null?void 0:(d=n.price)==null?void 0:d.currency;g.amount=p==null?void 0:(m=p.totalPrice)==null?void 0:(l=m.price)==null?void 0:l.amount}else if(!g.currency||!g.amount){this.isPriceListValid(r)||h(0,962);k=b("FBPaymentsPriceListHelper").calculateTotal(r);g.currency=k.currency;g.amount=b("FBPaymentsPriceListHelper").formatStringAmount(k.amount)}if(f){!g.amount&&h(0,12982);a=b("FBPaymentsModulesAPIUtils").getMultiCredentialRequestParams(j,g.currency,g.amount);g=babelHelpers["extends"]({},g,a)}this.state.paymentsPIN&&(g.security_pin={sensitive_string_value:this.state.paymentsPIN});this.state.authPTT&&b("FBPayGatingUtils").shouldUseNewPINAPI(this.getPaymentType(),this.$40())&&(g.authPTT=this.state.authPTT);this.state.authKeyPairs&&b("FBPayGatingUtils").shouldUseKeyPairs(this.getPaymentType(),this.$40())&&(g.authKeyPairs=this.state.authKeyPairs);g.is_dynamic_auth_available=b("FBPayGatingUtils").shouldUseDynamicAuth(this.getPaymentType(),this.$40());q=(e=this.getContentConfiguration())!=null?e.taxID:e;q&&(i=babelHelpers["extends"]({},i,{taxID:q}));d=(c=this.getContentConfiguration())==null?void 0:(n=c.taxInfo)==null?void 0:n.tax_info_collection_map;d&&(g.tax_info_collection_map=d);if(b("FBPaymentsFreeTrialExtensionUtil").getIsUsingFreeTrial(this.state.freeTrialData)){m=(p=this.state.freeTrialData)==null?void 0:p.subscriptionPrice;g.amount=m==null?void 0:m.amount;g.currency=m==null?void 0:m.currency}if(this.state.cardinal3DSProcessorData){l=this.state.cardinal3DSProcessorData;r=l.cardinalTransactionID;k=l.rowID;f=l.status;j=l.threeDSTransactionData;var v;j&&(v={threeDs_secure_version:j.threeDsSecureVersion,cavv:j.cavv,eci_flag:j.eciFlag,xid:j.xid,ds_transaction_id:j.dsTransactionID});g.cardinal_3ds_processor_data={ref_id:k||"",status:f,transaction_id:r||"",threeDS_transaction_data:v}}g.extra_data=JSON.stringify(i);return g};d.$70=function(a){this.$28()&&b("FBPaymentsModulesAPIShared").logPaymentSessionStatus({paymentSessionID:this.state.paymentSessionID,paymentType:this.getPaymentType(),sessionID:this.$1&&this.$1.getSessionID(),success:a})};d.$54=function(){b("FBPaymentsCheckoutActions").updateCheckoutStep(y.READY_TO_PAY)};d.$73=function(){var a=this.getPaymentInfo();if(a.paymentItemType!=="nmor_pages_commerce")return;p(b("RelayFBEnvironment"),b("FBPaymentsInvoiceFetchStatus.graphql"),{query_params:{id:a.orderId,critical_read:!0}}).toPromise()};d.$72=function(a,c){var d;this.$73();c=c||this.getConfirmationConfiguration();d=(d=a.extra_data)==null?void 0:d.order_status;if(d===J.PENDING){d=(d=a)!=null?(d=d.extra_data)!=null?d.confirmation_message:d:d;c.isPaymentStatusPending=!0}else{var e;c.receiptUrl=((e=this.props.checkoutExtraProps)!=null?e.receiptUrl:e)||((e=a)!=null?(e=e.extra_data)!=null?e.receipt_url:e:e)||b("FBPaymentsLinkHelper").getPaymentSettingsReceiptURI(a.id).toString();e=this.getPaymentType();d=e==="nmor_donation_p4c"?(e=a)!=null?(e=e.extra_data)!=null?e.confirmation_message:e:e:(e=a)!=null?(e=e.extra_data)!=null?e.message_with_email:e:e}d&&(c.confirmationText=b("FBPaymentsStringHelper").stringToMarkup(d));d=(e=a)!=null?(e=e.extra_data)!=null?e.subscription_details:e:e;d&&(c.subscriptionConfirmationDetails={image:d.subscription_image.uri,name:d.subscription_name,renewMessage:d.renew_amount,renewTitle:d.renew_date,subtitle:d.subscription_subtitle.text});d=(e=a.extra_data)==null?void 0:e.subscription_agreement;if(d){c.subscriptionConfirmationDetails={image:(a=d.image)==null?void 0:a.uri,name:d.name,renewMessage:d.editMessage,renewTitle:d.renewMessage,subtitle:d.subtitle.text}}a=(e=this.props.checkoutExtraProps)!=null?e.doneButtonText:e;a&&(c.doneButtonText=a);e=(d=this.props.checkoutExtraProps)!=null?d.doneButtonTrackingNodeType:d;e&&(c.doneButtonTrackingNodeType=e);a=this.getContentConfiguration();a||h(0,323);a.confirmationConfiguration=c;b("FBPaymentsCheckoutActions").updateContentConfiguration(a);b("FBPaymentsCheckoutActions").updateCheckoutStep(y.CONFIRMATION)};d.$75=function(){b("FBPaymentsCheckoutActions").updateCheckoutStep(y.READY_TO_PAY)};d.$10=function(a,c){var d;if(this.getPaymentType()!=="nmor_checkout_experiences")return;d=(d=(d=this.getPaymentInfo().extraData)==null?void 0:d.products)!=null?d:[];d=d.map(function(a){return a.product_id});b("XCommerceOnsiteEventRouter").logEvent(a,{productIDs:d,adID:(a=this.getPaymentInfo().extraData)==null?void 0:(d=a.server_logging_params)==null?void 0:d.ad_id,orderID:c})};d.isPriceListValid=function(a){return!!a&&a.length>0};d.$76=function(a){var c=this,d=b("FBPaymentsLinkHelper").getVerifiedPaypalAccessToken();a={cred_id:a,pp_access_token:d,payment_type:this.getPaymentType()};this.__getAPI().verifyConsumerAuthGraphQL(a,!0,function(){c.$8(),b("FBPaymentsCheckoutActions").shouldEnablePaypal(!1)},function(a){b("FBPaymentsCheckoutActions").shouldEnablePaypal(!1);var c=b("FBPaymentsUniversalErrorUtils").getUserFacingErrorMessage(a);a=a&&a.errorCode?{userFacingError:a}:{global:c!=null?c:b("FBPaymentsModulesAPIUtils").getUncaughtErrorMessage()};b("FBPaymentsCheckoutActions").paymentProcessingError(a)})};d.$77=function(a,b,c){var d=a.identifier==="CUSTOM_EXTENSION"?a["class"]:this.__getExtensionManager().getExtensionContainer(a.identifier);return d==null?null:q.jsx(d,{checkoutConfiguration:this.getCheckoutConfiguration(),checkoutExtraProps:this.props.checkoutExtraProps,extensionConfiguration:a,isActive:b,isActiveForVerification:c,isGuestCheckout:this.isGuestCheckout(),isUsingUpdateCheckoutInfoAPI:this.getIsUsingUpdateCheckoutInfoAPI(),logger:this.$1,onContactSupportClick:this.$59,onExtensionWidthChange:this.$74})};d.$51=function(){return{banner:this.state.banner,isSwedenDonation:this.state.isSwedenDonation,logger:this.$1,paymentType:this.getPaymentType(),theme:this.props.theme||"DEFAULT",uplLogger:this.$6}};d.$78=function(a){a===void 0&&(a=!1);return b("FBPayGatingUtils").isFBPayExperienceEnabled(this.getPaymentType())?b("FBPayGatingUtils").isDonationPaymentType(this.getPaymentType())&&b("gkx")("2469")?b("FBPayStrings").DONATION_CHECKOUT:b("FBPayStrings").FACEBOOK_PAY:a?b("FBPaymentsFreeTrialExtensionUtil").getFreeTrialCheckoutDialogTitle(this.state.freeTrialData,this.getPaymentType()):this.props.dialogTitle};d.$7=function(){var a;a=(a=b("FBPaymentsLinkHelper").getCurrentURISessionID())!=null?a:"";return k(a)?a:l()};d.render=function(){var a=this,c=this.getContentConfiguration(),d,e,f,i,j,k,l,n=[],o,p=!1,r=!1,s=!1,v=!!this.props.renderInline,w=!!this.props.renderInlineWithPadding,x=b("FBPaymentsFreeTrialExtensionUtil").getIsUsingFreeTrial(this.state.freeTrialData),z=this.__isExtensionDisplayWhenValidatePIN(),A=this.state.paymentMethodData;A=(A==null?void 0:A.newPaymentOptionType)?A==null?void 0:A.newPaymentOptionType:A==null?void 0:(A=A.paymentMethod)==null?void 0:A.type;if(this.$46()){var B;(B=this.$6)==null?void 0:B.logClientEnablePayment((B=this.getSelectedPaymentMethod())==null?void 0:B.id,b("PaymentMethodUtils").castCredentialType(A))}else{(B=this.$6)==null?void 0:B.logClientDisablePayment((B=this.getSelectedPaymentMethod())==null?void 0:B.id,b("PaymentMethodUtils").castCredentialType(A))}var C;if(this.state.showVerificationFlow){B=this.__getVerificationFlowContainer();A=b("FBPaymentsVerificationFlowHelper").getVerificationFlowPaymentType(this.getPaymentType());var D=b("FBPaymentsVerificationFlowHelper").getVerificationFlowProductType(A);!!A&&!!D||h(0,963,this.getPaymentType());C=q.jsx(B,{isAsyncDialogBody:!0,onBackClick:this.$52,onClose:this.$58,paymentType:A,verificationProductType:D})}var E;A=(B=this.state.errors)!=null?B.userFacingError:B;if(A){var F;D=this.__getUserFacingErrorNotice();B=A.primaryCta;!!B&&B.type==="contact_us"&&(B.onClick=this.$59);F=(F=A)!=null?F.flowStep:F;E=q.jsx(D,{callToAction:B,description:A.errorDescription,flowStep:F,logger:this.$1,title:A.errorTitle,use:A.imageType})}var G;if(this.state.showContactSupportFlow){D=this.__getContactSupportContainer();B=this.state.showUpfrontAddressCollection?u.SHIPPING_ADDRESS:this.state.activeExtension||this.state.activeExtensionForVerification;if(B!=null){F=this.state.extensionUserFacingErrorMap.get(B);A=F||A}F=(B=A)!=null?B.errorCode:B;B=(B=A)!=null?B.flowStep:B;var H=this.getPaymentType();!!F&&!!B&&!!H||h(0,964);F={errorCode:F,flowStep:B,paymentType:H};G=q.jsx(D,{extraInfo:F,logger:this.$1,onBackClick:this.$60,onClose:this.$61})}var I;if(this.state.showExitCheckoutConfirmDialog){B=this.__getExitCheckoutConfirmDialog();H=this.$38();B!=null&&(I=q.jsx(B,{isShown:this.state.showExitCheckoutConfirmDialog,cancelButtonLabel:this.__getExitCheckoutConfirmDialogCancelButtonLabel(),confirmButtonLabel:this.__getExitCheckoutConfirmDialogConfirmButtonLabel(),description:b("FBPaymentsCheckoutStrings").getExitCheckoutConfirmDialogDescription(),logger:this.$1,onCancelClick:this.$63,onConfirmClick:this.$62,researchSurvey:H,title:b("FBPaymentsCheckoutStrings").getExitCheckoutConfirmDialogTitle()}))}var J;if(this.state.showDonationLargeAmountConfirmDialog){D=this.__getDonationLargeAmountConfirmDialog();D!=null&&(J=q.jsx(D,{isShown:this.state.showDonationLargeAmountConfirmDialog,cancelButtonLabel:this.__getDonationLargeAmountConfirmDialogCancelButtonLabel(),confirmButtonLabel:this.__getDonationLargeAmountConfirmDialogConfirmButtonLabel(),description:this.__getDonationLargeAmountConfirmDialogDescription(),logger:this.$1,onCancelClick:this.$65,onConfirmClick:this.$64,title:b("FBPaymentsCheckoutStrings").getDonationLargeAmountConfirmDialogTitle()}))}var K;if(this.state.altPayCancelledError){F=this.__getCheckoutAlertDialog();if(F!=null){B=b("FBPaymentsUniversalErrorUtils").getErrorTitle(this.state.altPayCancelledError);H=b("FBPaymentsUniversalErrorUtils").getUserFacingErrorMessage(this.state.altPayCancelledError);B&&H&&(K=q.jsx(F,{isShown:!0,confirmButtonLabel:this.__getAltPayCancelledDialogButtonLabel(),description:H,logger:this.$1,onConfirmClick:this.$34,title:B}))}}if(!c||this.state.hasInitializationError){D=this.__getLoadingView();i=q.jsx(D,{showLockSpinner:!0});F=b("FBPaymentsUniversalErrorUtils").getErrorDescription(this.state.updateCheckoutLoadError);B=this.state.hasInitializationError?b("gkx")("676858")?(H=F)!=null?H:b("FBPaymentsCheckoutStrings").getCheckoutInitializationErrorMessage():String(g._(function(a,b){return a._("u7531u4e8eu53d1u751fu4e34u65f6u6027u7cfbu7edfu9519u8befuff0cu64cdu4f5cu672au5b8cu6210uff0cu8bf7u7a0du540eu518du8bd5u3002")},{})):void 0;i=q.jsx(D,{loadingText:B,logger:this.$1,loggerExtraData:{item_loading:c?null:"contentConfiguration"},showError:this.state.hasInitializationError,showLockSpinner:!0})}else{F=this.state.finalPriceList;H=c.payActionContent;D=c.entity;if(D){B=this.__getEntityHeaderContainer();j=q.jsx(B,{entity:D})}if(!!c.newPriceTable||this.isPriceListValid(F)){B=this.__getPriceTableComponent();D=!x&&!!((D=this.props)!=null?(D=D.checkoutExtraProps)!=null?D.showTaxDisclaimer:D:D)&&((D=this.state.paymentMethodData)!=null?D.selectedBillingCountry:D)===b("FBPaymentsCountryCodes").US;k=q.jsx(B,{hidePriceTable:!!((B=this.props)!=null?(B=B.checkoutExtraProps)!=null?B.hidePriceTable:B:B),hideTotal:!!((B=this.props)!=null?(B=B.checkoutExtraProps)!=null?B.hidePriceTableTotal:B:B),isCalculating:this.state.isUpdatingCheckout,isCollapsed:!!((B=this.props)!=null?(B=B.checkoutExtraProps)!=null?B.isPriceTableCollapsedInitially:B:B),newPriceTable:c.newPriceTable,logger:this.$1,priceList:F,showTaxDisclaimer:D,showTotalOnly:(B=this.props.checkoutExtraProps)==null?void 0:B.showTotalOnly,customTotalLabel:(D=this.props.checkoutExtraProps)==null?void 0:D.customTotalLabel})}B=this.state.buttonPrice;var L;if(c.newPriceTable)L=c.newPriceTable.totalPrice.displayPrice,B=c.newPriceTable.totalPrice.price,x&&(B=b("FBPaymentsFreeTrialExtensionUtil").getFreeTrialPrice(B.currency));else if(this.isPriceListValid(F)){D=b("FBPaymentsPriceListHelper").calculateTotal(F);F=D.currency;F&&(B=x?b("FBPaymentsFreeTrialExtensionUtil").getFreeTrialPrice(F):{amount:D.amount.toString(),currency:F})}D=this.getPaymentInfo().extraData;var M;F=((F=this.state)!=null?(F=F.frequencySelectorData)!=null?F.subscriptionType:F:F)||(D==null?void 0:D.subscriptionType);F&&(M={type:F,price:B});((D=this.props)==null?void 0:(D=D.checkoutExtraProps)==null?void 0:D.hidePayButtonPrice)&&(B=null);D=this.__getPayActionRowContainer();var N=this.getPayActionTitle(H,this.state.paymentMethodData,this.state.frequencySelectorData);l=q.jsx(D,{actionTitle:N,backButton:this.props.backButton||H.backButton,checkoutStep:this.state.step,configuration:H,fundraiserVertical:(D=this.props.checkoutExtraProps)==null?void 0:D.fundraiserVertical,isLoading:this.state.step===y.PAYMENT_PROCESSING,logger:this.$1,onBackButtonClick:function(){a.__handleBackButtonClick(!1)},onPayButtonClick:this.$47,payButtonEnabled:this.$46(),price:B,displayPrice:L,renderInline:v,subscriptionTermsDetails:M,termsAndPolicies:this.state.termsAndPolicies});p=this.state.activeExtension!==null;r=this.state.activeExtensionForVerification!==null;s=this.state.activeExtensionForVerification===u.PIN_VERIFICATION;N=c.purchaseInfo;for(H=0;H-----
FBPaymentsPaymentMethodSelectorExtensionStoreBase",["AllPaymentTypeFields","FBLogger","FBPayments3DS","FBPaymentsAffirmMonthlyPayment","FBPaymentsCheckoutActions","FBPaymentsCheckoutConfigurationStore","FBPaymentsCheckoutConstants","FBPaymentsCheckoutHelper","FBPaymentsCreditCard","FBPaymentsDispatcher","FBPaymentsLinkHelper","FBPaymentsModulesAPIShared","FBPaymentsModulesAPIUtils","FBPaymentsNewPaymentOptionTypes","FBPaymentsPayPalBillingAgreement","FBPaymentsPayPalBillingAgreementTypes","FBPaymentsPaymentMethodActions","FBPaymentsPaymentMethodSelectorExtensionState","FBPaymentsPaymentMethodTypes","FBPaymentsPaymentMethodsInfo","FluxReduceStore","abstractMethod","immutable","promiseDone"],(function(a,b,c,d,e,f){"use strict";var g=b("immutable").Map,h=b("FBPaymentsPaymentMethodActions").types,i=b("FBPaymentsCheckoutConstants").Extensions;a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.call(this,b("FBPaymentsDispatcher"))||this}var d=c.prototype;d.getInitialState=function(){return new(b("FBPaymentsPaymentMethodSelectorExtensionState"))()};d.__getPaymentMethodStore=function(){return b("abstractMethod")("FBPaymentsPaymentMethodSelectorExtensionStoreBase","__getPaymentMethodStore")};d.__getAPI=function(){return b("abstractMethod")("FBPaymentsPaymentMethodSelectorExtensionStoreBase","__getAPI")};d.__connectPayPal=function(a){return b("abstractMethod")("FBPaymentsPaymentMethodSelectorExtensionStoreBase","__connectPayPal")};d.__connectAffirm=function(a){return b("abstractMethod")("FBPaymentsPaymentMethodSelectorExtensionStoreBase","__connectAffirm")};d.getExtensionName=function(){return i.PAYMENT_METHOD};d.reduce=function(a,c){var d,e=c.data;switch(c.type){case b("FBPaymentsCheckoutActions").types.UNMOUNT_CHECKOUT_FLOW:return this.getInitialState();case b("FBPaymentsCheckoutActions").types.INITIALIZE_CHECKOUT:d=c==null?void 0:(d=c.data)==null?void 0:d.paymentType;c=c==null?void 0:(c=c.data)==null?void 0:c.receiverCountry;return a.setPaymentItemType(d).setReceiverCountry(c);case b("FBPaymentsCheckoutActions").types.EXTENSION_UPDATE:return e.extensionName===this.getExtensionName()?this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase1(a,e):a;case b("FBPaymentsCheckoutActions").types.REQUEST_ACTIVE_EXTENSION_FOR_VERIFICATION:return e.extensionName===this.getExtensionName()&&!e.active?a.setConvertPayPalError(null).setSaveErrors(null).clearExtensionUserFacingError():a;case b("FBPaymentsCheckoutActions").types.UPDATE_CHECKOUT_INFO:return this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase2(a,e);case h.PAYMENT_METHODS_LOADED:b("FBPaymentsDispatcher").waitFor([this.__getPaymentMethodStore().getDispatchToken()]);return this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase3(a,e);case h.PAYMENT_METHODS_ERROR:b("FBPaymentsDispatcher").waitFor([this.__getPaymentMethodStore().getDispatchToken()]);return a.setFetchError();case h.CONNECT_PAYPAL:this.__connectPayPal(e);break;case h.CONNECT_AFFIRM:var f=(d=a)!=null?(d=d.paymentMethodsInfo)!=null?d.accountID:d:d;c=function(a){a=a.checkout_token;a={payment_account_id:f,checkout_token:a};b("FBPaymentsModulesAPIShared").createAffirmCredentialIDRelayGraphQL(a,e.onAuthorizeSuccess,e.onError)};d={affirmCheckoutObject:e.affirmCheckoutObject,checkoutExtraProps:e.checkoutExtraProps,paymentAccountID:f,checkoutConfig:e.checkoutConfig,onSuccess:c,onCancel:e.onCancel,onError:e.onError};this.__connectAffirm(d);break}return a};d.isInitialized=function(){var a=this.getState();return a.isInitialized};d.hasInitializationError=function(){var a=this.getState();return a.fetchError};d.isReady=function(){var a=!1,b=this.getState();b.selectedPaymentMethodOrNewPaymentOption&&b.selectedPaymentMethodOrNewPaymentOption.type==="newPaymentOption"||b.isNUXInlineCardFormMode?a=this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase4(b.selectedNewPaymentOptionType,b.newPaymentOptionData):this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase5(b)&&(a=!0);return a};d.getData=function(){var a,c=this.getState(),d={newPaymentOptionType:c.selectedNewPaymentOptionType,selectedBillingCountry:c.selectedBillingCountry,paymentMethod:c.selectedPaymentMethod,paymentMethodID:c.selectedPaymentMethodID,secondaryPaymentMethod:c.selectedSecondaryPaymentMethod};a=c.verificationData?c.verificationData.csc:c==null?void 0:(a=c.creditCardVerificationData)==null?void 0:a.csc;this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase5(c)&&(d=babelHelpers["extends"]({bank:c.selectedBank,csc:a},d));if(c.selectedNewPaymentOptionType===b("FBPaymentsNewPaymentOptionTypes").NEW_ALT_PAY){var e=(a=c.selectedPaymentMethodOrNewPaymentOption)!=null?a.id:a;a=(a=c.paymentMethodsInfo)!=null?a.newPaymentOptions:a;a=e&&a&&a.find(function(a){return a.altPayID===e});c=(c=c.newPaymentOptionData)==null?void 0:(c=c.data)==null?void 0:(c=c.parsed)==null?void 0:c.internationalNumberWithPlus;a=a&&{fee:a.fee,pricepoint_id:a.pricepointID,payment_provider:a.paymentProvider,msisdn:c};d=babelHelpers["extends"]({},d,{altPayData:a})}return d};d.getUserFacingError=function(){return this.getState().extensionUserFacingError};d.getPartialCheckoutRestoreData=function(){return{}};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase6=function(a,b,c,d,e){d={ccNumberBin:d,credentialId:a,ccCountryCode:b,itemType:e,accountCurrency:c};return d};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase1=function(a,c){var d=c.updateData;switch(c.extensionActionType){case h.EXISTING_PAYMENT_METHODS_CLICK:c=d.paymentMethod;if(c.type===b("FBPaymentsPaymentMethodTypes").CREDIT_CARD){a=a.setSelectedBillingCountry(c.countryCode);if(b("FBPaymentsCheckoutHelper").shouldUse3DS2Flow(a.paymentItemType,a.receiverCountry)){var e;e=this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase6(c.id,c.countryCode,((e=a.paymentMethodsInfo)==null?void 0:e.currency)||"",null,a.paymentItemType||"UNKNOWN");this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase7(e)}}return a.setNeedVerification(this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase8(c)).setSelectedBank(null).setSelectedNewPaymentOptionType(null).setSelectedPaymentMethod(c).setSelectedPaymentMethodID(c.id).setSelectedPaymentMethodOrNewPaymentOption({id:c.id,type:"paymentMethod"});case h.SECONDARY_PAYMENT_METHOD_CHECKBOX_CLICK:return a.setSelectedSecondaryPaymentMethod(d.paymentMethod);case h.BANK_CLICK:return a.setSelectedBank(d.selectedBank);case h.NEW_PAYMENT_OPTION_SAVED:return a.setSelectedBank(null).setSelectedPaymentMethod(null).setSelectedPaymentMethodID(null).setSelectedPaymentMethodOrNewPaymentOption(null).setIsLoading(!0).setIsSaving(!1).setNewCredentialID(d.newCredentialID).setNewPaymentOptionData(null);case h.NEW_PAYMENT_OPTION_SAVED_ERROR:return a.setIsSaving(!1).setSaveErrors(d.saveErrors);case h.CANCEL_SAVE_NEW_PAYMENT_OPTION:return a.setIsSaving(!1);case h.NEW_PAYMENT_OPTION_CLICK:return a.setSelectedNewPaymentOptionType(d.selectedNewPaymentOptionType).setSelectedPaymentMethodOrNewPaymentOption({id:(e=d.altPayID)!=null?e:d.selectedNewPaymentOptionType,type:"newPaymentOption"}).setSelectedPaymentMethod(null).setSelectedPaymentMethodID(null).setNeedVerification(!1);case h.SAVE_CREDIT_CARD_CHECKBOX_CLICK:return a.setIsNUXInlineCardFormSavingCreditCard(d.isNUXInlineCardFormSavingCreditCard);case h.NEW_PAYMENT_OPTION_FORM_DATA_UPDATED:c=d.newPaymentOptionData;if(c.newPaymentOptionType===b("FBPaymentsNewPaymentOptionTypes").NEW_CREDIT_CARD){e=(e=c)!=null?(e=e.data)!=null?e.country:e:e;a=a.setSelectedBillingCountry(e||a.selectedBillingCountry)}if(b("FBPaymentsCheckoutHelper").shouldUse3DS2Flow(a.paymentItemType,a.receiverCountry)&&c.newPaymentOptionType===b("FBPaymentsNewPaymentOptionTypes").NEW_CREDIT_CARD){var f;e=b("FBPayments3DS").getBinNumberFromCreditCard(c.data.creditCardNumber);f=b("FBPayments3DS").getBinNumberFromCreditCard(((f=a.newPaymentOptionData)==null?void 0:f.data.creditCardNumber)||"");if(e!==null&&e!==f){f=this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase6(null,a.selectedBillingCountry||"",((f=a.paymentMethodsInfo)==null?void 0:f.currency)||"",e,a.paymentItemType||"UNKNOWN");this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase7(f)}}return a.setNewPaymentOptionData(c);case h.CONVERT_PAYPAL_BA_TO_CIB_ERROR:return a.setIsConvertingPayPal(!1).setConvertPayPalError(d.convertPayPalError).maybeSetExtensionUserFacingError(d.convertPayPalError);case h.SET_SHOULD_VERIFY_CSC:return a.setShouldVerifyCSC(d.shouldVerifyCSC);case h.CANCEL_ACTIVE_STATE_CLICK:return a.setNewPaymentOptionData(d.newPaymentOptionData).setSaveErrors(null);case h.CREDIT_CARD_VERIFICATION_FORM_VALIDATION:return a.setCreditCardVerificationData(d.creditCardVerificationData).setIsCreditCardVerificationDataValid(d.isCreditCardVerificationDataValid);case h.BEFORE_CONVERT_PAYPAL_BA_TO_CIB:return a.setIsConvertingPayPal(!0).setConvertPayPalError(null).clearExtensionUserFacingError();case h.CONVERT_PAYPAL_BA_TO_CIB_V2:e=a.selectedPaymentMethod&&a.selectedPaymentMethod.set(b("FBPaymentsPayPalBillingAgreement").MutableProperties.BA_TYPE,b("FBPaymentsPayPalBillingAgreementTypes").CIB).set(b("FBPaymentsPayPalBillingAgreement").MutableProperties.CIB_CONVERSION_NEEDED,!1);return a.setSelectedPaymentMethod(e).setNeedVerification(!1).setVerificationData({verified:!0}).setIsConvertingPayPal(!1).setConvertPayPalError(null).clearExtensionUserFacingError();case h.CLEAR_SAVE_ERRORS:return a.setSaveErrors(null);case h.UPDATE_VERIFICATION_DATA:return a.setVerificationData(d.verificationData);case h.SELECT_SAVED_NEW_PAYMENT_OPTIONS:return a.setSelectedPaymentMethod(d).setSelectedPaymentMethodID(d.id).setSelectedPaymentMethodOrNewPaymentOption({id:d.id,type:"paymentMethod"});case h.SET_FAKE_SELECTED_PAYMENT_METHOD:return a.setSelectedPaymentMethod({selectedPaymentMethod:new(b("FBPaymentsCreditCard"))({id:0})});case h.BEFORE_SAVE_NEW_PAYMENT_OPTIONS:return a.setSaveErrors(null).setIsSaving(!0);case h.COMPLETE_CREDIT_CARD_VERIFICATION:return a.setIsSaving(!1).setVerificationData(d.verificationData);case h.UPDATE_CREDIT_CARD_ERROR:return this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase9(a,d.saveErrors);case h.BEFORE_UPDATE_CREDIT_CARD:return a.setSaveErrors(null).setIsSaving(!0).setVerificationData({verified:!1});case h.ONLY_SHOW_FIRST_PAYMENT_OPTION:return a.setShowOnlyFirstPaymentMethod(d.onlyShowFirstExistingPaymentMethod);case h.DEFAULT_TO_PAYPAL_FOR_NUX:return a.setDefaultToPayPalForNUX(d.defaultToPayPalForNUXData);case h.SET_AFFIRM_CREDENTIAL_ID:return a.setAffirmCredentialID(d)}return a};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase3=function(a,b){var c=this.__getPaymentMethodStore().makeImmutableKey(b.requestData);c=this.__getPaymentMethodStore().get(c);a=a.setIsLoading(c.isLoading());c=c.getValueEnforcing();return this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase10(a,c,b.requestData)};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase10=function(a,c,d){var e,f=c.paymentMethods,g=c.secondaryPaymentMethods.first(),h=c.newPaymentOptions;e=(e=d==null?void 0:d.isSwedenDonation)!=null?e:!1;var i=f.size===0,j=!i,k=h.find(function(a){return a.type===b("FBPaymentsNewPaymentOptionTypes").NEW_PAYPAL})||{},l=c.billingCountry;a=a.setPaymentMethodsInfo(c).setPaymentMethodsFrictionAttemptsInfo(this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase11(f)).setBillingCountry(l).setSelectedBillingCountry(a.selectedBillingCountry||l).setIsNUXInlineCardFormMode(i).setIsPUXInlineCardFormMode(j).setIsPUXNewPaymentOptionTabEnabled(j).setConnectPayPalURL(k.url).setIsInitialized(!0);g&&(a=a.setSelectedSecondaryPaymentMethod(g));if(a.newCredentialID){c=f.find(function(b){return b.id===a.newCredentialID});if(c){a=a.setSelectedBank(null).setSelectedPaymentMethod(c).setSelectedPaymentMethodID(c.id).setSelectedBillingCountry(((i=c)!=null?i.countryCode:i)||l).setNewCredentialID(null).setNeedVerification(this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase8(c))}}else if(!a.selectedPaymentMethod){j=d.affirmCredentialID;if(j){a=a.setSelectedPaymentMethod(new(b("FBPaymentsAffirmMonthlyPayment"))({id:j})).setSelectedPaymentMethodID(j).setSelectedPaymentMethodOrNewPaymentOption({id:j,type:"paymentMethod"});return a}k=b("FBPaymentsLinkHelper").isCurrentURIReturnedFromPaypal();a=a.set("isURIReturnedFromCancelPayPal",b("FBPaymentsLinkHelper").isCurrentURIReturnedFromCancelPaypal());g=b("FBPaymentsLinkHelper").isCurrentURIReturnedFromVerifiedPaypal();i=b("FBPaymentsLinkHelper").shouldEnablePaypal();var m=b("FBPaymentsLinkHelper").getPaymentMethodId();c=f.find(function(a){return a.isSelected});d=h.find(function(a){return a.isSelected});k||i?j=f.findLast(function(a){return a.getType()===b("FBPaymentsPaymentMethodTypes").PAYPAL_BILLING_AGREEMENT}):g?j=f.findLast(function(a){return a.getID()===m}):j=c;k=f.first();if(j){a=a.setSelectedBank(null).setSelectedPaymentMethod(j).setSelectedPaymentMethodID(j.id).setSelectedBillingCountry(((i=j)!=null?i.countryCode:i)||l).setNeedVerification(this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase8(j)).setSelectedPaymentMethodOrNewPaymentOption({id:j.id,type:"paymentMethod"})}else if(d){c=(g=d.altPayID)!=null?g:d.type;a=a.setSelectedNewPaymentOptionType(d.type).setSelectedPaymentMethodOrNewPaymentOption({id:c,type:"newPaymentOption"})}else if(k&&!e){a=a.setSelectedBank(null).setSelectedPaymentMethod(k).setSelectedPaymentMethodID(k.id).setSelectedBillingCountry(((f=k)!=null?f.countryCode:f)||l).setNeedVerification(this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase8(k)).setSelectedPaymentMethodOrNewPaymentOption({id:k.id,type:"paymentMethod"})}else if(!e){i=h.first();i&&(a=a.setSelectedNewPaymentOptionType(i.type).setSelectedPaymentMethodOrNewPaymentOption({id:i.type,type:"newPaymentOption"}))}if(b("FBPaymentsCheckoutHelper").shouldUse3DS2Flow(a.paymentItemType,a.receiverCountry)&&((j=a.selectedPaymentMethod)==null?void 0:j.type)===b("FBPaymentsPaymentMethodTypes").CREDIT_CARD){f=this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase6(((g=a.selectedPaymentMethod)==null?void 0:g.id)||"",((d=a.selectedPaymentMethod)==null?void 0:d.countryCode)||"",((c=a.paymentMethodsInfo)==null?void 0:c.currency)||"",null,a.paymentItemType||"");this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase7(f)}}return a};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase11=function(a){var c=g();a.forEach(function(a){if((a==null?void 0:a.type)!==b("FBPaymentsPaymentMethodTypes").CREDIT_CARD)return;var d=a.getVerifyCvvFieldsAttempt();if(!d)return;c=c.set(a.id,d)});return c};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase12=function(a,b){if(!a||!b)return g();var c=b.get(a);if(!c)return b;c.numberOfAttempts+=1;b=b.set(a,c);return b};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase9=function(a,c){a=a.setIsSaving(!1).setSaveErrors(c).setPaymentMethodsFrictionAttemptsInfo(this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase12(a.selectedPaymentMethodID,a.paymentMethodsFrictionAttemptsInfo));c=(c=a.paymentMethodsInfo)==null?void 0:c.newPaymentOptions;this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase13(a.selectedPaymentMethodID,a.paymentMethodsFrictionAttemptsInfo)&&c&&c.some(function(a){return a.type===b("FBPaymentsNewPaymentOptionTypes").NEW_CREDIT_CARD})&&(a=a.setSelectedBank(null).setSelectedNewPaymentOptionType(b("FBPaymentsNewPaymentOptionTypes").NEW_CREDIT_CARD).setSelectedPaymentMethodOrNewPaymentOption({id:b("FBPaymentsNewPaymentOptionTypes").NEW_CREDIT_CARD,type:"newPaymentOption"}).setSelectedPaymentMethod(null).setSelectedPaymentMethodID(null).setNeedVerification(!1));return a};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase13=function(a,b){if(!a||!b)return!1;b=b.get(a);return!b?!1:b.numberOfAttempts>=b.numberOfMaxTry};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase7=function(a){b("promiseDone")(b("FBPayments3DS").getCardPaymentMethodInfo(a),function(a){},function(a){})};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase2=function(a,c){var d,e;b("FBPaymentsDispatcher").waitFor([b("FBPaymentsCheckoutConfigurationStore").getDispatchToken()]);var f=b("FBPaymentsCheckoutConfigurationStore").getPaymentMethodExtensionConfig();d=(d=f==null?void 0:(d=f.paymentMethodData)==null?void 0:d.available_payment_credential_options)!=null?d:[];var g=[],h=[];d.map(function(a){var c=a.payment_credential_option,d=a.is_selected;a=a.onboarding_bubble;c=babelHelpers["extends"]({},c,{is_selected:d,onboarding_bubble:a});switch(c.credential_type){case b("FBPaymentsPaymentMethodTypes").PAYPAL_BILLING_AGREEMENT_FROM_GRAPHQL:case b("FBPaymentsPaymentMethodTypes").CREDIT_CARD_FROM_GRAPHQL:case b("FBPaymentsPaymentMethodTypes").DUMMY_PAYMENT_METHOD_FROM_GRAPHQL:g.push(c);break;case b("FBPaymentsPaymentMethodTypes").GIFTCARD_BALANCE_FROM_GRAPHQL:g.push(c);break;case b("FBPaymentsNewPaymentOptionTypes").NEW_CREDIT_CARD_FROM_GRAPHQL:case b("FBPaymentsNewPaymentOptionTypes").NEW_PAYPAL_FROM_GRAPHQL:case b("FBPaymentsNewPaymentOptionTypes").NEW_AFFIRM_FROM_GRAPHQL:case b("FBPaymentsNewPaymentOptionTypes").NEW_ALT_PAY_FROM_GRAPHQL:h.push(c);break;default:b("FBLogger")("purchase_experience").warn("Unsupported payment option: %s",c.credential_type)}});e=b("FBPaymentsModulesAPIUtils").parseAddressFormConfig(f==null?void 0:(e=f.paymentMethodData)==null?void 0:e.addressFormConfig);d=new(b("FBPaymentsPaymentMethodsInfo"))({accountID:"",addressFormConfig:e,availablePaymentOptions:d,paymentMethods:g,billingCountry:(e=f==null?void 0:(e=f.paymentMethodData)==null?void 0:(d=e.userInfo)==null?void 0:d.geo_country)!=null?e:"",currency:(f=f==null?void 0:(d=f.paymentMethodData)==null?void 0:(e=d.userInfo)==null?void 0:e.currency)!=null?f:"",newPaymentOptions:h});return this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase10(a,d,{affirmCredentialID:a.affirmCredentialID,isSwedenDonation:(e=c==null?void 0:c.isSwedenDonation)!=null?e:!1})};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase5=function(a){if(a.isSaving)return!1;var c=a.paymentMethodsInfo;if(!c)return!1;c=a.selectedPaymentMethod;if(!c)return!1;if(a.needVerification&&!a.isCreditCardVerificationDataValid)return!1;c=c.type||"";c=c===b("FBPaymentsPaymentMethodTypes").NET_BANKING;if(c&&!a.selectedBank)return!1;c=a.verificationData?a.verificationData.csc:a==null?void 0:(c=a.creditCardVerificationData)==null?void 0:c.csc;return a.shouldVerifyCSC&&a.paymentItemType===b("AllPaymentTypeFields").NMOR_DONATION_P4C&&!c?!1:!0};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase4=function(a,c){switch(a){case b("FBPaymentsNewPaymentOptionTypes").NEW_CREDIT_CARD:case b("FBPaymentsNewPaymentOptionTypes").NEW_ALT_PAY:return!!c&&c.isValid;default:return!0}};d.needsPrePaymentVerification=function(){var a=!1,c=this.getState();if(!c.selectedPaymentMethod)return!1;c=c.selectedPaymentMethod;c.type===b("FBPaymentsPaymentMethodTypes").PAYPAL_BILLING_AGREEMENT&&(a=c.cibConversionNeeded);return a};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase8=function(a){var c=!1;if(a.type===b("FBPaymentsPaymentMethodTypes").CREDIT_CARD){var d=this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase14(a);c=d.length!==0||(a==null?void 0:a.isSoftDisabled)}return c};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase14=function(a){if(!a)return[];var c=this.getState();c=c.shouldVerifyCSC;switch(a.type){case b("FBPaymentsPaymentMethodTypes").CREDIT_CARD:a=new Set(a.getVerifyFields());c&&a.add("csc");return Array.from(a);default:return[]}};return c}(b("FluxReduceStore"));a.__moduleID=e.id;e.exports=a}),null);
-----
-----
Payments3DSPayuInitComponent.react",["FBPayUPLLogger","FBPaymentsModulesAPIUtils","Payments3DSUtils","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useEffect,k=b.useMemo;function a(a){var b=a.legacyPaymentType,e=a.sessionID,f=a.url,g=a.wizardSessionID;a=k(function(){var a=new(c("FBPayUPLLogger"))(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(b.toLowerCase()),d("Payments3DSUtils").getUserPlatform(),e);return{logger:a}},[b,e]);var h=a.logger;j(function(){h.logClientRenderThreedsUnificationDisplay({view_name:"challenge_display",flow_session_id:g},{"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.PAYU),is_generic_3ds:"true"})});return i.jsxs("div",{className:"x6s0dn4 xdt5ytf x1ey2m1c x78zum5 xds687c x5yr21d xl56j7k x17qophe x13vifvy",children:[(c("gkx")("20861")||c("gkx")("22975"))&&i.jsxs("h2",{className:"x1r8uery xh8yej3 xyamay9 x1pi30zi x1l90r2v x1swvt13 x2b8uid xuj82j5",children:[i.jsx("strong",{children:"Generic 3DS Module: "}),"You are a Test User or Employee"]}),i.jsx("iframe",{className:"x1iyjqo2 xh8yej3 x1ejq31n xd10rxx x1sy0etr x17r0tee",method:"GET",src:f})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
Payments3DSPayuReturnComponent.react",["FBPayUPLLogger","FBPaymentsModulesAPIUtils","FBPaymentsSpinner.react","Payments3DSUtils","SecurePostMessage","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useEffect,k=b.useMemo;function a(a){var b=a.legacyPaymentType,e=a.sessionID,f=a.status,g=a.token,h=a.wizardSessionID,l=d("Payments3DSUtils").mapProcessorResponseToUnifiedThreeDSAuthResult(d("Payments3DSUtils").ThreeDSProcessor.PAYU,f,g);a=k(function(){var a=new(c("FBPayUPLLogger"))(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(b.toLowerCase()),d("Payments3DSUtils").getUserPlatform(),e);return{logger:a}},[b,e]);var m=a.logger;j(function(){m.logClientFetchThreedsUnificationInit({view_name:"complete_3ds",flow_session_id:h},{"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.PAYU).toLowerCase(),is_generic_3ds:"true"}),l.auth_result===d("Payments3DSUtils").ThreeDSAuthResult.Success?m.logClientFetchThreedsUnificationSuccess({view_name:"complete_3ds",flow_session_id:h},{"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.PAYU).toLowerCase(),is_generic_3ds:"true"}):(l.auth_result===d("Payments3DSUtils").ThreeDSAuthResult.Failure||l.error_message!==null)&&m.logClientFetchThreedsUnificationFail({view_name:"complete_3ds",flow_session_id:h},{"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.PAYU).toLowerCase(),is_generic_3ds:"true"})});window.setTimeout(function(){c("SecurePostMessage").sendMessageAllowAnyOrigin_UNSAFE(window.parent,l),c("SecurePostMessage").sendMessageAllowAnyOrigin_UNSAFE(window.parent.parent,l)},2e3);return i.jsx("div",{className:"x6s0dn4 x1ey2m1c x78zum5 xds687c x5yr21d xl56j7k x17qophe x13vifvy",children:i.jsx(c("FBPaymentsSpinner.react"),{})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
FBPaymentSettingsReceiptContainer.react",["cx","fbt","AllPaymentTypeFields","Env","FBPaymentSettingsHistoryAPI","FBPaymentTransactionType","FBPaymentsLoadingView.react","FBPaymentsLogger","FBPaymentsLoggerConstants","FBPaymentsReceiptApp.react","FBPaymentsReceiptBackButton.react","FBPaymentsReceiptUpdateDialogComponent.react","FBPaymentsSubscriptionDetails.react","NmorOrderType","NmorOrderTypeName","PaymentSettingsBOFReceipt.react","PaymentSettingsBalanceRedemptionPaymentReceipt.react","PaymentSettingsComponentFlowReceipt.react","PaymentSettingsDonationReceipt.react","PaymentSettingsGameBundleReceipt.react","PaymentSettingsGiftPaymentReceipt.react","PaymentSettingsNmorDonationReceipt.react","PaymentSettingsOculusReceipt.react","PaymentSettingsP2PPaymentRequestReceiptContainer.react","PaymentSettingsP2PReceipt.react","PaymentSettingsPEPaymentReceipt.react","keyMirror","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||d("react"),m=c("keyMirror")(c("AllPaymentTypeFields"));a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
FBPayECPAddressTypeaheadConstantsUtils",[],(function(a,b,c,d,e,f){"use strict";b="NO_TYPEAHEAD_SUGGESTION_AVAILABLE";function a(a){switch(a){case"billing":return"BILLING";default:return"ECP"}}f.NO_TYPEAHEAD_SUGGESTION_AVAILABLE=b;f.castAllPaymentTypeFields=a}),66);
-----
PaymentsComet3DSDialog.react",["fbt","Actor","CometEventListener","FBPayUPLLogger","FBPaymentsModulesAPIUtils","FDSCardedDialogLegacy.react","PaymentsCometOverlayLoadingSpinner.react","react","usePaymentsCometGet3DSAuthenticateURLMutation","usePaymentsCometGet3DSAuthenticateURLWithCSCMutation","usePaymentsCometGetAcquirerMerchantInfo"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useEffect,l=b.useRef,m=b.useState;function a(a){var b=a.onClose;a=a.props;var e=a.acquirerBin,f=a.acquirerMid,g=a.amount,i=a.countryCode,n=a.credentialID,o=a.creditCardType,p=a.csc,q=a.currency,r=a.itemType,s=a.merchantName,t=a.orderId,u=a.receiverId;a=a.sessionId;var v=m(null),w=v[0],x=v[1];v=m([]);var y=v[0],z=v[1];v=m(!0);var A=v[0],B=v[1],C=c("usePaymentsCometGet3DSAuthenticateURLMutation")(),D=c("usePaymentsCometGet3DSAuthenticateURLWithCSCMutation")(),E=l(null);v=d("Actor").useActor();v=v[0];var F={cardinalStatus:null,refID:"0",status:"FAILED",threeDSTransactionData:{cavv:"",dsTransactionID:"",eciFlag:"",threeDsSecureVersion:"",xid:""},transactionID:""},G=new(c("FBPayUPLLogger"))(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(r.toLowerCase()),"comet",a),H=function(a){var b;b=(b=a.authenticate_using_3ds_url)==null?void 0:(b=b.params)==null?void 0:b.map(function(a){return{key:a.key,value:a.value}});x((a=a.authenticate_using_3ds_url)==null?void 0:a.url);z((a=b)!=null?a:[]);B(!1)};k(function(){var a=c("CometEventListener").listen(window,"message",function(a){a.data.eventName==="3DS_RESPONSE_MESSAGE"&&b(a.data)});return function(){a&&a.remove()}},[b,B]);var I=c("usePaymentsCometGetAcquirerMerchantInfo")({onError:function(){b(F)},onSuccess:function(a,c,d){a={acquirerMerchantInfo:a==null&&c==null&&d==null?null:{acquirer_bin:(a=a)!=null?a:"",acquirer_mid:(a=c)!=null?a:"",merchant_name:(c=d)!=null?c:""},countryCode:i,credentialID:n,currencyAmount:{amount:g,currency:q},itemType:r};p!=null?D(babelHelpers["extends"]({csc:p,sessionID:G.getSessionID()},a),function(a){H(a)},function(){b(F)}):C(babelHelpers["extends"]({},a,{sessionID:G.getSessionID()}),function(a){H(a)},function(){b(F)})}});k(function(){if(w===null){var a;G.logClientLoadThreedsInit({target_name:"acquirer_merchant_info_mutation"},{currency:q,order_id:(a=t)!=null?a:"",raw_credential_id:n,receiver_id:(a=u)!=null?a:""});I({acquirerBin:e,acquirerMid:f,credentialID:n,creditCardType:o||"",currency:q,merchantName:s||"",orderId:t||"",paymentType:r,receiverId:u||"",sessionID:G.getSessionID()})}},[D,C,w,i,g,q,n,r,p,I,e,f,o,s,t,u]);k(function(){if(E!==null&&E.current!==null&&w!=null){var a;(a=E.current)==null?void 0:a.submit()}},[w]);return j.jsxs(c("FDSCardedDialogLegacy.react"),{onClose:function(){G.logUserClickThreedsAtomic({target_name:"challenge_close"}),b(F)},title:h._("__JHASH__tJk-b7G68gx__JHASH__"),titleHorizontalAlignment:"center",withCloseButton:!0,children:[A&&j.jsx(c("PaymentsCometOverlayLoadingSpinner.react"),{shouldShowOverlay:!1}),j.jsxs("form",{action:w,method:"POST",ref:E,target:"3ds2_iframe",children:[y.map(function(a){return j.jsx("input",{name:a.key,type:"hidden",value:a.value},a.key)}),j.jsx("input",{name:"user_id",type:"hidden",value:v},"user_id")]}),j.jsx("iframe",{className:"x1ejq31n xd10rxx x1sy0etr x17r0tee x1jn0hjm x1qrby5j",name:"3ds2_iframe"})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
CometFBPaySupportDialog.react",["fbt","AllPaymentTypeFields","CareCometSupportContext","CareFBPaySupportRef","CometFBPaySupportDialogContent.react","CometFBPaySupportDialogQuery.graphql","CometFBPaySupportTransactionInfo.react","CometMultiStepDialogLegacy.react","CometRelay","FBPaySupportDialogState","PaymentsCareLoggingContext","PaymentsCareSupportFlowTypeUtils.facebook","PaymentsCareUPLLogger","getJSEnumSafe","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useEffect,m=e.useMemo,n=e.useReducer,o=e.useRef,p=i!==void 0?i:i=b("CometFBPaySupportDialogQuery.graphql");function q(a){a=c("getJSEnumSafe")(c("AllPaymentTypeFields"),a.paymentType);return(a=a)!=null?a:"unknown"}function a(a){var b=a.props;a=a.queries;var e=a.loggingDataQueryRef,f=a.supportFlowQueryRef;a=a.transactionQueryRef;e=d("CometRelay").usePreloadedQuery(p,e);e=e.response;var g=e.context,i=e.loggingData,j=q(i),r=m(function(){var a=new(c("PaymentsCareUPLLogger"))(j,"comet",b.uplSessionID);return{logger:a}},[j,b.uplSessionID]),s=a.variables.transactionID,t=(e=f.variables.flowData)==null?void 0:e.commerce_account_id;e=b.referrer?c("CareFBPaySupportRef").getName(b.referrer):null;var u=(e=e)!=null?e:g.ref,v=m(function(){var a;a=(a=d("PaymentsCareSupportFlowTypeUtils.facebook").toJSEnum(i.supportFlowType))!=null?a:"unknown";return{commerceAccountID:t,extraData:typeof u==="string"?{ref:u}:{},flowContext:{cms_folder_id:g.folderID,cms_obj_id:g.objID,name:g.name,ref:u},supportFlowType:a,transactionID:s}},[i,s,g,t,u]);e=n(d("FBPaySupportDialogState").reducer,d("FBPaySupportDialogState").getInitialState());var w=e[0],x=e[1];e=m(function(){return{dialogState:w,dispatch:x}},[w,x]);var y=o(!0);l(function(){if(y.current===!0){var a;y.current=!1;r.logger.logClientLoadSupportflowInit({support_flow_type:v.supportFlowType,transaction_id:(a=v.transactionID)!=null?a:void 0,view_name:"comet_fbpay_support_dialog"},v.extraData)}},[r,y,v]);var z=function(a){x({pageIndex:a,type:d("FBPaySupportDialogState").ActionType.PAGE_UPDATE})},A=h._("__JHASH__LvRSH7r8HLY__JHASH__"),B=k.jsx(c("CometFBPaySupportTransactionInfo.react"),{queryRef:a});return k.jsx(c("PaymentsCareLoggingContext").Provider,{value:r,children:k.jsx(d("CareCometSupportContext").CareCometSupportContext.Provider,{value:v,children:k.jsx(d("FBPaySupportDialogState").DialogStateContext.Provider,{value:e,children:k.jsx(c("CometMultiStepDialogLegacy.react"),{onClose:b.onClose,onPageChange:z,title:A,withCloseButton:b.hideCloseButton!==!0,withDeprecatedStyles:!1,children:function(a){return k.jsx(c("CometFBPaySupportDialogContent.react"),{pushPage:a,supportFlowQueryRef:f,title:A,transactionInfo:B})}})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
FBPaymentsCheckoutConfigurationTypes",["AllPaymentTypeFields","FBPaymentsCheckoutConstants","prop-types","react","validateImageSrcPropType"],(function(a,b,c,d,e,f){"use strict";var g;g||b("react");c=b("FBPaymentsCheckoutConstants").Extensions;d=b("FBPaymentsCheckoutConstants").OptionPriceModel;f=b("prop-types").shape({url:b("prop-types").string.isRequired});f=b("prop-types").shape({offset:b("prop-types").number.isRequired,length:b("prop-types").number.isRequired,entity:f.isRequired});f=b("prop-types").shape({text:b("prop-types").string.isRequired,ranges:b("prop-types").arrayOf(f)});var h=b("prop-types").shape({cardType:b("prop-types").string.isRequired,currency:b("prop-types").string,info:b("prop-types").string.isRequired});h=b("prop-types").shape({acquirerBin:b("prop-types").arrayOf(h),acquirerMid:b("prop-types").arrayOf(h),action:b("prop-types").string.isRequired,extraData:b("prop-types").object,isFreePurchase:b("prop-types").bool,merchantName:b("prop-types").string,orderId:b("prop-types").string,payCallback:b("prop-types").func,paymentItemType:b("prop-types").oneOf(Object.values(b("AllPaymentTypeFields"))).isRequired,receiverId:b("prop-types").string});var i=b("prop-types").shape({title:b("prop-types").node.isRequired,subtitle:b("prop-types").node,imageURL:b("prop-types").string});i=b("prop-types").shape({description:b("prop-types").node,participant:i});var j=b("prop-types").shape({title:b("prop-types").string.isRequired,subtitle:b("prop-types").string,subsubtitle:b("prop-types").string,merchantName:b("prop-types").string,merchantText:b("prop-types").string,itemImageUrl:b("prop-types").string}),k=b("prop-types").shape({currency:b("prop-types").string.isRequired,amount:b("prop-types").string.isRequired});function a(a){return function(){return a.apply(this,arguments)}}a=a(function(){return l});var l=b("prop-types").shape({item:j,label:b("prop-types").string.isRequired,priceList:b("prop-types").arrayOf(a),price:k,userFacingReason:b("prop-types").node,zeroAmountReason:b("prop-types").node});a=b("prop-types").arrayOf(l);var m=b("prop-types").shape({identifier:b("prop-types").oneOf([c.CONTACT_NAME]).isRequired}),n=b("prop-types").shape({addEmailNuxCta:b("prop-types").node,addEmailPuxCta:b("prop-types").node,emailLabel:b("prop-types").node,formFooterMessage:b("prop-types").node,fieldPlaceholder:b("prop-types").node,showEmailLabelForMsiteNux:b("prop-types").bool}),o=b("prop-types").shape({identifier:b("prop-types").oneOf([c.CONTACT_EMAIL]).isRequired,customContent:n}),p=b("prop-types").shape({title:b("prop-types").node,iconSrc:b("validateImageSrcPropType"),emailFieldLabel:b("prop-types").node,formFooterMessage:b("prop-types").node});p=b("prop-types").shape({identifier:b("prop-types").oneOf([c.CONTACT_INFO]).isRequired,contactInfoTypes:b("prop-types").arrayOf(b("prop-types").string),customContent:p});var q=b("prop-types").shape({identifier:b("prop-types").oneOf([c.CONTACT_PHONE]).isRequired}),r=b("prop-types").shape({identifier:b("prop-types").oneOf([c.NOTE]).isRequired,length:b("prop-types").number,optional:b("prop-types").bool,placeholderText:b("prop-types").node}),s=b("prop-types").shape({allowChangeBillingCountry:b("prop-types").bool,identifier:b("prop-types").oneOf([c.PAYMENT_METHOD]).isRequired}),t=b("prop-types").shape({identifier:b("prop-types").oneOf([c.PIN_VERIFICATION]).isRequired}),u=b("prop-types").shape({addAddressNuxCta:b("prop-types").node,addAddressPuxCta:b("prop-types").node,addressLabel:b("prop-types").node,extensionLabel:b("prop-types").node,formFooterMessage:b("prop-types").node,formTitle:b("prop-types").node,selectAddressPuxCta:b("prop-types").node,showAddressLabelForMsiteNux:b("prop-types").bool,hideExtension:b("prop-types").bool,useNewAddressForm:b("prop-types").bool}),v=b("prop-types").shape({identifier:b("prop-types").oneOf([c.SHIPPING_ADDRESS]).isRequired,customContent:u}),w=b("prop-types").shape({identifier:b("prop-types").oneOf([c.PRICE_SELECTOR]).isRequired}),x=b("prop-types").shape({identifier:b("prop-types").oneOf([c.FREQUENCY_SELECTOR]).isRequired}),y=b("prop-types").shape({identifier:b("prop-types").oneOf([c.NATIONALITY_SELECTOR]).isRequired}),z=b("prop-types").shape({identifier:b("prop-types").oneOf([c.FREE_TRIAL]).isRequired,nextBillTime:b("prop-types").string,subscriptionFrequency:b("prop-types").node,subscriptionPrice:b("prop-types").node,trialFrequency:b("prop-types").node,trialPeriod:b("prop-types").number,trialType:b("prop-types").string}),A=b("prop-types").shape({"class":b("prop-types").func.isRequired,extensionKey:b("prop-types").string.isRequired,identifier:b("prop-types").oneOf([c.CUSTOM_EXTENSION]).isRequired,onChange:b("prop-types").func,extraProps:b("prop-types").object}),B=b("prop-types").shape({optionId:b("prop-types").string.isRequired,optionPriceList:a,optionTitle:b("prop-types").string.isRequired}),C=b("prop-types").shape({identifier:b("prop-types").string.isRequired,currency:b("prop-types").string,length:b("prop-types").number,optional:b("prop-types").bool,placeholderText:b("prop-types").string,prefilledContent:b("prop-types").string,priceTag:b("prop-types").string,type:b("prop-types").string.isRequired}),D=b("prop-types").shape({actionableTitle:b("prop-types").string.isRequired,disclaimer:b("prop-types").string,formFields:b("prop-types").object,title:b("prop-types").string.isRequired});B=b("prop-types").shape({actionableTitle:b("prop-types").string,allowsMultipleSelection:b("prop-types").bool,collectedDataKey:b("prop-types").string,customOption:D,identifier:b("prop-types").oneOf([c.CUSTOM_OPTIONS]).isRequired,optionListTitle:b("prop-types").string,options:b("prop-types").arrayOf(B).isRequired,preselectedOptionIDs:b("prop-types").arrayOf(b("prop-types").string),priceModel:b("prop-types").oneOf(Object.values(d)),shouldAddToOrderSummary:b("prop-types").bool,shouldPreSelect:b("prop-types").bool,title:b("prop-types").string.isRequired});d=b("prop-types").shape({couponValid:b("prop-types").bool,identifier:b("prop-types").oneOf([c.COUPON_CODE]).isRequired,length:b("prop-types").number,message:b("prop-types").string,optional:b("prop-types").bool,placeholderText:b("prop-types").string.isRequired,prefilledContent:b("prop-types").string,type:b("prop-types").string.isRequired});f=b("prop-types").shape({optIn:b("prop-types").bool,identifier:b("prop-types").oneOf([c.USER_INFO_OPT_IN]).isRequired,disclaimer:f,privacyPolicy:f});c=b("prop-types").shape({identifier:b("prop-types").oneOf([c.TAX_INFO]).isRequired});m=b("prop-types").oneOfType([m,o,q,p,r,s,t,v,A,B,w,x,y,d,z,f,c]);o=b("prop-types").shape({actionTitle:b("prop-types").string,backButton:b("prop-types").bool,backButtonCallback:b("prop-types").func,customTermsAndPoliciesText:b("prop-types").element,merchantName:b("prop-types").string,processorName:b("prop-types").string,termsAndPoliciesUrl:b("prop-types").string});q=b("prop-types").shape({type:b("prop-types").string.isRequired});p=b("prop-types").shape({"class":b("prop-types").func,extraData:b("prop-types").object,extensionKey:b("prop-types").string,identifier:b("prop-types").string.isRequired});r=b("prop-types").shape({confirmationClosedCallback:b("prop-types").func,confirmationExtensions:b("prop-types").arrayOf(p),confirmationText:b("prop-types").node,continueURL:b("prop-types").string,customConfirmationImage:b("prop-types").node,customBottomContext:b("prop-types").node,doneButtonText:b("prop-types").node,doneButtonTrackingNodeType:b("prop-types").node,enableReceiptFooterLink:b("prop-types").bool,forceHideReceiptCTA:b("prop-types").bool,merchantLogoUrl:b("prop-types").string,receiptUrl:b("prop-types").string,hideDoneButton:b("prop-types").bool,isPaymentStatusPending:b("prop-types").bool});s=b("prop-types").shape({checkoutClosedCallback:b("prop-types").func,confirmationConfiguration:r,dialogWidth:b("prop-types").number,entity:i,items:b("prop-types").arrayOf(j).isRequired,priceList:a,purchaseInfo:b("prop-types").arrayOf(m).isRequired,payActionContent:o.isRequired,renderInline:b("prop-types").bool});t=b("prop-types").shape({contentConfiguration:s,orderStatusModel:q.isRequired,paymentInfo:h.isRequired,version:b("prop-types").string.isRequired});v={CheckoutConfigurationPropTypes:t,ConfirmationConfigurationPropTypes:r,ConfirmationExtensionPropTypes:p,ContentConfigurationPropTypes:s,CustomContactEmailContentPropTypes:n,CustomOptionPropTypes:D,CustomShippingAddressContentPropTypes:u,EntityPropTypes:i,FormFieldAttributesPropTypes:C,ItemPropTypes:j,OrderStatusModelPropTypes:q,PayActionContentPropTypes:o,PaymentInfoPropTypes:h,PriceItemPropTypes:l,PriceListPropTypes:a,PricePropTypes:k,PurchaseInfoExtensionPropTypes:m};e.exports=v}),null);
-----
FBPaymentsSellerBonusTrackerContainer.react",["cx","AllPaymentTypeFields","FBPaymentsSellerBonusTrackerContainerQuery.graphql","RelayAPIConfig","RelayFBEnvironment","RelayModern","cr:808","gkx","keyMirror","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=b("RelayModern").QueryRenderer;b("RelayModern").graphql;var k=i||(i=b("react")),l=b("keyMirror")(b("AllPaymentTypeFields"));a=function(a){babelHelpers.inheritsLoose(c,a);function c(c){var d;d=a.call(this,c)||this;b("RelayAPIConfig").DO_NOT_USE_setActorID(c.pageID);return d}var d=c.prototype;d.render=function(){var a=this.props.compactView;return k.jsx(j,{environment:b("RelayFBEnvironment"),query:h!==void 0?h:h=b("FBPaymentsSellerBonusTrackerContainerQuery.graphql"),variables:{actorID:this.props.pageID,queryParams:{origin:this.props.origin,product_type:l.NMOR_PAGES_COMMERCE,thread_id:this.props.buyerID}},render:function(c){c.error;c=c.props;c=((c=c)!=null?(c=c.list)!=null?c.banners:c:c)||[];return c.length===0?null:k.jsx("div",{className:b("gkx")("20948")?"_1uzl"+(a?" _6hj2":""):"_apoy"+(a?" _apoz":""),children:c.map(function(c,d){return k.jsx(b("cr:808"),{banner:c,compactView:a},d)})})}})};return c}(k.Component);a.defaultProps={compactView:!1};e.exports=a}),null);
-----
CommerceCheckoutRootContainer.react",["AllPaymentTypeFields","CommerceCheckoutActionLogger","CommerceCheckoutContext","CommerceCheckoutDialogWrapper.react","CommerceCheckoutErrorScreen.react","CommerceCheckoutHooks","CommerceCheckoutLoadingScreen.react","CommerceCheckoutLoggingContext","CommerceCheckoutLoggingUtils","CommerceCheckoutOrderConfirmationScreen.react","CommerceCheckoutReducer","CommerceCheckoutScreen.react","CommerceCheckoutState","CommerceCheckoutTypes.flow","CommerceCheckoutUpdatePaymentScreen.react","react","useCommerceCheckoutInformationMutation"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useContext,k=b.useEffect,l=b.useMemo,m=b.useReducer,n=b.useRef,o=b.useState;function a(a){var b,e=a.checkoutProps,f=a.dialogProps,g=a.entrypoint,h=a.loggingSessionId,j=a.onClose;a=m(c("CommerceCheckoutReducer"),d("CommerceCheckoutState").getInitialState(e,h,f));var k=a[0],n=a[1];a=l(function(){return{dispatch:n,state:k}},[k]);var o=(b=c("AllPaymentTypeFields")[e==null?void 0:e.paymentType.toString()])!=null?b:"unknown",q=k.checkoutFlow;b=l(function(){var a;a=(a=(a=e.products)==null?void 0:a.map(function(a){return a.product_id}))!=null?a:[];a=new(c("CommerceCheckoutActionLogger"))(o,q,a,[e.receiverID],h,g,e.extraData);return{logger:a}},[e.products,e.receiverID,e.extraData,o,q,h,g]);var r=b.logger,s=function(){r.logUserClickCheckoutExit(),j()};return i.jsx(c("CommerceCheckoutContext").Provider,{value:a,children:i.jsx(c("CommerceCheckoutLoggingContext").Provider,{value:b,children:i.jsx(c("CommerceCheckoutDialogWrapper.react"),{dialogProps:(a=f)!=null?a:{},onClose:s,children:i.jsx(p,{checkoutProps:e,loggingSessionId:h,onClose:s})})})})}a.displayName=a.name+" [from "+f.id+"]";function p(a){var b=a.checkoutProps;a.dialogProps;a.entrypoint;var e=a.loggingSessionId;a=a.onClose;var f=j(c("CommerceCheckoutContext")),g=f.dispatch;f=f.state;var h=j(c("CommerceCheckoutLoggingContext")),l=h.logger,m=n(!1);h=d("CommerceCheckoutHooks").useCheckoutCurrentScreen();var p=f.checkoutSessionID,s=f.couponCodeTextInput,t=f.requiresCheckoutInfoRefresh,u=t===void 0?!1:t,v=f.selectedCredential,w=f.selectedDeliveryOptionID,x=f.selectedDeliveryOptionIDs,y=f.selectedShippingAddressID,z=(t=f.checkoutProps)==null?void 0:(f=t.extraData)==null?void 0:f.products;t=o(!0);var A=t[0],B=t[1],C=d("CommerceCheckoutHooks").useHasChanged(x),D=d("CommerceCheckoutHooks").useMutationWithLoading(c("useCommerceCheckoutInformationMutation"));k(function(){var a=z;if(A||u){m.current||(l.logClientCheckoutInit(),l.logClientLoadCheckoutInit(),m.current=!0);var c=d("CommerceCheckoutLoggingUtils").getCouponState(s);l.logClientEditCouponInit(c);C&&l.logClientChangeShippingMethodInit();a={checkout_session_id:p,coupon_code:s,extra_data:JSON.stringify(babelHelpers["extends"]({},b.extraData,{products:a})),is_dynamic_auth_available:!1,logging_id:e,payment_order_id:b.orderID,payment_type:b.paymentType,products:b.products,receiver_id:b.receiverID,selected_delivery_option_id:w,selected_delivery_option_ids:x,selected_payment_credentials:v?[{credential_id:v.credentialID,credential_type:r[v.credentialType]}]:null,selected_shipping_address_id:y};D(a,{onCompleted:function(a){var b;if(((b=a.checkout_information_mutation)==null?void 0:b.payments_error)!=null){b=(b=a.checkout_information_mutation)==null?void 0:b.payments_error;g({paymentsUserFacingError:b,type:"LOAD_CHECKOUT_INFO_PAYMENT_ERRORS"});l.logClientLoadCheckoutFail(b);l.logClientEditCouponFail(c,b);C&&l.logClientChangeShippingMethodFail()}else l.logClientLoadCheckoutSuccess(),l.logClientEditCouponSuccess(c),C&&l.logClientChangeShippingMethodSuccess(),g({checkoutInformation:a,isInitialLoad:A,logger:l,type:"LOAD_CHECKOUT_INFO_SUCCESS"});B(!1)},onError:function(a){l.logClientLoadCheckoutFail({error_code:a.code,error_description:a.description,error_title:a.message}),g({type:"LOAD_CHECKOUT_INFO_UNKNOWN_ERRORS"}),B(!1)}})}},[p,D,b,z,A,u,e,g,w,x,v,y,s,l,C]);return A?i.jsx(c("CommerceCheckoutLoadingScreen.react"),{}):q(h,a)}p.displayName=p.name+" [from "+f.id+"]";function q(a,b){switch(a.type){case d("CommerceCheckoutTypes.flow").CheckoutScreenType.ORDER_CONFIRMATION:return i.jsx(c("CommerceCheckoutOrderConfirmationScreen.react"),{onCloseCheckout:b});case d("CommerceCheckoutTypes.flow").CheckoutScreenType.ERROR:case d("CommerceCheckoutTypes.flow").CheckoutScreenType.UNKNOWN:return i.jsx(c("CommerceCheckoutErrorScreen.react"),{onCloseCheckout:b});case d("CommerceCheckoutTypes.flow").CheckoutScreenType.UPDATE_ORDER_PAYMENT:return i.jsx(c("CommerceCheckoutUpdatePaymentScreen.react"),{});default:return i.jsx(c("CommerceCheckoutScreen.react"),{})}}q.displayName=q.name+" [from "+f.id+"]";var r={credit_card:"CREDIT_CARD",new_credit_card:"NEW_CREDIT_CARD",new_paypal_ba:"NEW_PAYPAL_BA",paypal_ba:"PAYPAL_BA"};g["default"]=a}),98);
-----
FBPayments3DS",["FBPayUPLLogger","FBPayments3DSAcquirerMerchantInfoQuery.graphql","FBPayments3DSCardPaymentMethodInfoQuery.graphql","FBPayments3DSChallengeModalContainer.react","FBPayments3DSComplete3DSMutation.graphql","FBPayments3DSCompleteAndAuthorizeQuery.graphql","FBPayments3DSErrorUtils","FBPayments3DSEvents","FBPayments3DSFetch3rdPartyAuthURLMutation.graphql","FBPayments3DSLoggerBase","FBPayments3DSLoggerConstants","FBPayments3DSQuery.graphql","FBPaymentsModulesAPIUtils","ODS","Promise","ReactDOM","RelayFBEnvironment","RelayModern","SecureMessageListener","cr:6114","cr:7676","guid","isEmpty","isPlainObject","keyMirror","promiseDone","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m,n,o,p,q,r=p||d("react"),s=c("keyMirror")({CHALLENGED:null,COMPLETED:null,ATTEMPT_COMPLETED:null,FAILED:null,NOT_COMPLETED:null,REJECTED:null,NOT_ENROLLED:null,UNAVAILABLE:null,BYPASS:null}),t={SMALL:"01",MEDIUM:"02",LARGE:"03",EXTRA_LARGE:"04",FULL_PAGE:"05"},u=c("keyMirror")({CARDINAL_3DS1:null,CARDINAL_3DS2:null}),v="https://centinelapi.cardinalcommerce.com";a="https://centinelapistag.cardinalcommerce.com";var w="/V1/Cruise/Collect",x={CARDINAL_INCORRECT_CARD_INFO:1353097},y=h!==void 0?h:h=b("FBPayments3DSQuery.graphql"),z=i!==void 0?i:i=b("FBPayments3DSAcquirerMerchantInfoQuery.graphql"),A=j!==void 0?j:j=b("FBPayments3DSFetch3rdPartyAuthURLMutation.graphql"),B=k!==void 0?k:k=b("FBPayments3DSCardPaymentMethodInfoQuery.graphql"),C=l!==void 0?l:l=b("FBPayments3DSCompleteAndAuthorizeQuery.graphql"),D=m!==void 0?m:m=b("FBPayments3DSComplete3DSMutation.graphql");e=function(){function a(){var a=this;this.deviceDataJWT=null;this.deviceDataDfRef=null;this.divElement=null;this.transactionID=null;this.requires3DS=!1;this.cardinalPayload=null;this.logger=new(c("FBPayments3DSLoggerBase"))();this.uplLogger=new(c("FBPayUPLLogger"))();this.sessionID=null;this.relayEnvironment=c("RelayFBEnvironment");var b=new(c("SecureMessageListener"))(window).setSupportedOrigins(["meta.com","workplace.com","facebook.com"]).setEventHandler(function(b){if(c("isPlainObject")(b.data)){b=b.data;b.type==="challenge_complete_postmessage"&&((q||(q=d("ODS"))).bumpEntityKey(264,"www","3ds_challenge_complete_postmessage_test_success"),b.do_it&&a.challengeComplete(b.transaction_id,b.response))}});b.beginListening()}var e=a.prototype;e.initLogger=function(a,b){this.sessionID=this.sessionID==null?c("guid")():this.sessionID,this.logger.setGlobalFields({session:this.sessionID,item_type:a,credential_id:b})};e.initUPLLogger=function(a,b){this.uplLogger=new(c("FBPayUPLLogger"))(a,"web",b)};e.setRequires3DS=function(a){this.requires3DS=a};e.collectDeviceData=function(a){var e=this,f=a.ccNumberBin,g=a.credentialID,h=a.amount,i=a.itemType,j=a.ccCountryCode,k=a.paymentAccountID,l=a.isRequestFromWhatsapp,m=a.externalContextID;a=a.sessionID;this.initLogger(i,g);this.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.JWT_CREATE_INIT).setExternalContextID(m).log();this.initUPLLogger(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(i.toLowerCase()),a);this.uplLogger.logClientLoadThreedsInit({target_name:"jwt_create_mutation"},{credential_id:(a=g)!=null?a:"",amount:h.amount,currency:h.currency,cc_country_code:j,payment_account_id:(a=k)!=null?a:"",is_request_from_whatsapp:l===!0?"1":"0"});return new(o||(o=b("Promise")))(function(a,n){d("RelayModern").commitMutation(e.relayEnvironment,{mutation:y,variables:{input:babelHelpers["extends"]({cc_number_bin:f,credential_id:g,amount:h,item_type:i,cc_country_code:j,account_id:k,actor_id:g,is_request_from_whatsapp:l,logging_id:e.uplLogger.getSessionID()},m!=null?{external_context_id:m}:null)},onCompleted:function(f){var g;e.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.JWT_CREATE_COMPLETE).setExternalContextID(m).log();e.deviceDataJWT=((g=f.jwt_query)==null?void 0:g.token)||"";e.deviceDataDfRef=((g=f.jwt_query)==null?void 0:g.id)||"";g=((g=f.jwt_query)==null?void 0:g.status)||"";f=((f=f.jwt_query)==null?void 0:f.error_message)||"";if(g==="TEST_ONLY_MODE")a();else if(g==="SUCCESS"){g=e.deviceDataJWT;var h=d("ReactDOM").createRoot(b("cr:6114").create("div"));h.render(r.jsx(b("cr:7676"),{externalContextID:m,logger:e.logger,jwt:g,onDeviceDataComplete:function(){a()},uplLogger:e.uplLogger}))}else{e.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.JWT_CREATE_ERROR).setExternalContextID(m).setError(f).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();h=c("FBPayments3DSErrorUtils").getError("JWT_CREATION_FAILED",f);n(h)}},onError:function(a){e.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.JWT_CREATE_ERROR).setExternalContextID(m).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();a=c("FBPayments3DSErrorUtils").getError("JWT_CREATION_FAILED",a.message);n(a)}})})};e.requires3DS2=function(){return this.requires3DS};e.createLookupData=function(a){var b,c=a.lookupData.acquirer_merchant_info;c&&(c={merchant_name:c.merchantName,acquirer_mid:c.acquirerMid,acquirer_bin:c.acquirerBin});c={df_ref_id:this.deviceDataDfRef||"",device_channel:"Browser",transaction_mode:"S",browser_info:{user_agent:window.navigator.userAgent,java_enabled:window.navigator.javaEnabled()?"true":"false",language:window.navigator.language,color_depth:screen.colorDepth.toString(),screen_height:window.innerHeight,screen_width:window.innerWidth,time_zone:new Date().getTimezoneOffset().toString()},email:a.lookupData.email,mobile_phone:a.lookupData.mobile_phone,billing_first_name:a.lookupData.billing_first_name,billing_middle_name:a.lookupData.billing_middle_name,billing_last_name:a.lookupData.billing_last_name,credit_card_address:a.lookupData.credit_card_address,acs_window_size:(b=a.lookupData.acs_window_size)!=null?b:t.LARGE,acquirer_merchant_info:c,fb_return_url:a.lookupData.customFBReturnURL,challenge_indicator:(b=a.lookupData.challenge_indicator)!=null?b:"",fraud_activity_indicator:a.lookupData.fraud_activity_indicator};return c};e.getPaymentMethod=function(){var a={provider:"CREDIT_CARD",instrument_type:"CC"};return a};e.createCredentialID=function(a){a={fb_id:a,payment_method:this.getPaymentMethod()};return a};e.getAcquirerMerchantInfo=function(a){var e=this;switch(a.paymentType){case"NMOR_DONATION_P4P":case"NMOR_PPGF_DONATION":case"NMOR_DONATION_CIELO":return new(o||(o=b("Promise")))(function(b,f){var g=a.paymentInfo.receiverId||"",h=a.paymentInfo.orderId||"";e.uplLogger.logClientLoadThreedsInit({target_name:"acquirer_merchant_info_mutation"},{raw_credential_id:a.credentialID,provider:e.getPaymentMethod().provider,instrument_type:e.getPaymentMethod().instrument_type,currency:a.currency,order_id:h,receiver_id:g});c("promiseDone")(d("RelayModern").fetchQuery(e.relayEnvironment,z,{data:{credential_id:e.createCredentialID(a.credentialID),currency:a.currency,order_id:h,payment_type:a.paymentType,receiver_id:g,logging_id:e.uplLogger.getSessionID()}}),function(c){c=c.acquirer_merchant_info_query||{};var d=c.acquirer_mid;c=c.acquirer_bin;b({merchantName:a.paymentInfo.merchantName||"",acquirerMid:d||"",acquirerBin:c||""})},function(a){a=c("FBPayments3DSErrorUtils").getError("ACQUIRER_MERCHANT_INFO_FAILED",a.message);f(a)})});case"NMOR_EVENT_TICKETING":var f=this.getAcqurerInfoFromCardType(a.paymentInfo.acquirerMid||[],a.creditCardType,a.currency),g=this.getAcqurerInfoFromCardType(a.paymentInfo.acquirerBin||[],a.creditCardType,a.currency);f={merchantName:a.paymentInfo.merchantName||"",acquirerMid:f||"",acquirerBin:g||""};return(o||(o=b("Promise"))).resolve(f);default:return(o||(o=b("Promise"))).resolve(null)}};e.fetchAuthenticationURL=function(a){var e,f=this;this.logger.setGlobalFields({credential_id:a.credentialID});this.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_REQUEST).setExternalContextID(a.externalContextID).log();this.uplLogger.logClientLoadThreedsInit({target_name:"get_3rd_party_auth_url_mutation"},{raw_credential_id:a.credentialID,amount:a.amount.amount,currency:a.amount.currency,processor:(e=a.processor)!=null?e:u.CARDINAL_3DS2,is_request_from_whatsapp:a.isRequestFromWhatsapp===!0?"1":"0"});return new(o||(o=b("Promise")))(function(e,g){var h;d("RelayModern").commitMutation(f.relayEnvironment,{mutation:A,variables:{input:babelHelpers["extends"]({credential_id:f.createCredentialID(a.credentialID)},a.externalContextID!=null?{external_context_id:a.externalContextID}:null,{amount:a.amount,item_type:a.itemType,lookup_data:f.createLookupData(a),account_id:a.paymentAccountID,processor:(h=a.processor)!=null?h:u.CARDINAL_3DS2,actor_id:a.credentialID,is_request_from_whatsapp:a.isRequestFromWhatsapp,session_id:f.uplLogger.getSessionID()})},onCompleted:function(h){h=h.fetch_3rd_party_payment_auth||{};var i=h.status,j=h.row_id,k=h.step_up_url,l=h.step_up_jwt;h=h.payments_error;if(h!=null){f.uplLogger.logClientLoadThreedsSuccess({target_name:"get_3rd_party_auth_url_mutation"},{response_status:"fail"});f.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_RESPONSE_ERROR).setExternalContextID(a.externalContextID).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();if(h.error_code==x.CARDINAL_INCORRECT_CARD_INFO){h=c("FBPayments3DSErrorUtils").getError("INCORRECT_CARD_INFO","Backend threw incorrect card info error");g(h)}else{h=c("FBPayments3DSErrorUtils").getError("CMPI_FAILED",i||"Empty status");g(h)}}else if(i==s.CHALLENGED){f.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_RESPONSE_CHALLENGE).setExternalContextID(a.externalContextID).setResponseStatus(i).setRowID(j).log();f.uplLogger.logClientLoadThreedsSuccess({target_name:"get_3rd_party_auth_url_mutation"},{response_status:"challenge"});f.divElement=a.div==null?b("cr:6114").create("div"):a.div;h=f.divElement;var m=d("ReactDOM").createRoot(f.divElement);m.render(r.jsx(c("FBPayments3DSChallengeModalContainer.react"),{externalContextID:a.externalContextID,logger:f.logger,container:h,stepUpURL:(m=k)!=null?m:"",params:[{key:"JWT",value:(h=l==null?void 0:l.token)!=null?h:""}],protocol:"POST",isLite:(k=a.isLite)!=null?k:!1,onChallengeComplete:function(){var b;f.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CHALLENGE_SUCCESS).setExternalContextID(a.externalContextID).setExternalTransactionID(f.transactionID).setRowID(j).setCardinalPayload(f.cardinalPayload).log();f.uplLogger.logClientFetchThreedsSuccess({target_name:"challenge_success"});c("promiseDone")(f.processAfterCMPI((b=j)!=null?b:"",a.credentialID,a.itemType,(b=f.transactionID)!=null?b:"",a.paymentAccountID,a.isSavingCC,a.isRequestFromWhatsapp,a.externalContextID),function(a){e(a)},function(a){g(a)})},onChallengeFail:function(){g(c("FBPayments3DSErrorUtils").getError("USER_CANCELLED_MODAL","User clicked cancel button on the dialog box."))},uplLogger:f.uplLogger,productID:a.productID,isBilling:a.isBilling,experiment:a.experiment,mpiProcessor:a.processor}))}else if(i==s.COMPLETED||i==s.ATTEMPT_COMPLETED||i==s.UNAVAILABLE||i==s.NOT_ENROLLED||i==s.BYPASS){f.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_RESPONSE_SUCCESS).setExternalContextID(a.externalContextID).setResponseStatus(i).setRowID(j).log();f.uplLogger.logClientLoadThreedsSuccess({target_name:"get_3rd_party_auth_url_mutation"},{response_status:(m=i)!=null?m:"success"});c("promiseDone")(f.processAfterCMPI((l=j)!=null?l:"",a.credentialID,a.itemType,(h=f.transactionID)!=null?h:"",a.paymentAccountID,a.isSavingCC,a.isRequestFromWhatsapp,a.externalContextID),function(a){e(a)},function(a){g(a)})}else{f.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_RESPONSE_FAILED_STATUS).setExternalContextID(a.externalContextID).setResponseStatus(i).setRowID(j).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();k=c("FBPayments3DSErrorUtils").getError("AUTH_FAIL",i||"Empty status");g(k)}},onError:function(b){f.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_RESPONSE_ERROR).setExternalContextID(a.externalContextID).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();b=c("FBPayments3DSErrorUtils").getError("CMPI_FAILED",b.message);g(b)}})})};e.getDeviceDataURLOrigin=function(){return v};e.getDeviceDataURL=function(){return v+w};e.challengeComplete=function(a,b){this.divElement&&(this.transactionID=a,this.cardinalPayload=b,this.divElement.dispatchEvent(new Event(d("FBPayments3DSEvents").CHALLENGE_COMPLETE_EVENT_NAME)))};e.processAfterCMPI=function(a,d,e,f,g,h,i,j){var k=this;h===void 0&&(h=!1);i===void 0&&(i=null);return new(o||(o=b("Promise")))(function(b,l){c("promiseDone")(h?k.complete3DSAndAuthorize(a,d,e,g,j):k.complete3DS(a,d,e,f,g,i,j),function(a){switch(a.status){case s.COMPLETED:case s.ATTEMPT_COMPLETED:case s.NOT_ENROLLED:case s.BYPASS:case s.UNAVAILABLE:b(a);break;case s.FAILED:case s.NOT_COMPLETED:case s.REJECTED:l(c("FBPayments3DSErrorUtils").getError("AUTH_FAIL",String(a.status)));break;default:l(c("FBPayments3DSErrorUtils").getError(h?"COMPLETE_3DS_FAILED":"COMPLETE_3DS_AND_AUTH_FAILED",String(a.status)))}},function(a){l(a)})})};e.complete3DS=function(a,e,f,g,h,i,j){var k,l=this;this.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DS_REQUEST).setExternalContextID(j).setRowID(a).setCardinalPayload(this.cardinalPayload).setExternalTransactionID(this.transactionID).log();this.uplLogger.logClientLoadThreedsInit({target_name:"complete_3ds_mutation"},{auth_row_id:a,credential_id:e,cardinal_txn_id:g,account_id:(k=h)!=null?k:"",is_request_from_whatsapp:i===!0?"1":"0"});return new(o||(o=b("Promise")))(function(b,k){d("RelayModern").commitMutation(l.relayEnvironment,{mutation:D,variables:{input:babelHelpers["extends"]({auth_row_id:a},j!=null?{external_context_id:j}:null,{credential_id:e,item_type:f,cardinal_txn_id:g,actor_id:e,account_id:h,is_request_from_whatsapp:i,logging_id:l.uplLogger.getSessionID()})},onCompleted:function(e){e=e.complete_3ds;e=l.getAuthenticationResultFromComplete3DSResponse(e);if(e!=null)l.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DS_SUCCESS).setExternalContextID(j).setResponseStatus(e.status).setRowID(e.rowID).setCardinalPayload(l.cardinalPayload).setExternalTransactionID(l.transactionID).setVersionOf3ds(e.threeDSTransactionData.dsTransactionID).log(),b(e);else{l.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DS_ERROR).setExternalContextID(j).setRowID(a).setCardinalPayload(l.cardinalPayload).setExternalTransactionID(l.transactionID).log();e=c("FBPayments3DSErrorUtils").getError("COMPLETE_3DS_FAILED","Values returned from GraphQL Query were invalid");k(e)}},onError:function(b){l.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DS_ERROR).setExternalContextID(j).setRowID(a).setCardinalPayload(l.cardinalPayload).setExternalTransactionID(l.transactionID).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();b=c("FBPayments3DSErrorUtils").getError("COMPLETE_3DS_FAILED",b.message);k(b)}})})};e.complete3DSAndAuthorize=function(a,e,f,g,h){var i,j=this;this.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DSANDAUTH_REQUEST).setExternalContextID(h).setRowID(a).setCardinalPayload(this.cardinalPayload).setExternalTransactionID(this.transactionID).log();this.uplLogger.logClientLoadThreedsInit({target_name:"complete_3ds_and_auth_mutation"},{cardinal_payload:(i=this.cardinalPayload)!=null?i:"",auth_row_id:a,raw_credential_id:e,cardinal_txn_id:(i=this.transactionID)!=null?i:"",account_id:(i=g)!=null?i:""});return new(o||(o=b("Promise")))(function(b,i){var k;d("RelayModern").commitMutation(j.relayEnvironment,{mutation:C,variables:{input:babelHelpers["extends"]({processor:"CARDINAL_3DS2",auth_row_id:a,credential_id:j.createCredentialID(e),item_type:f,account_id:g,actor_id:e,payload:(k=j.cardinalPayload)!=null?k:"",transaction_id:j.transactionID,logging_id:j.uplLogger.getSessionID()},h!=null?{external_context_id:h}:null)},onCompleted:function(e){e=e.complete3ds_and_authorize;e=j.getAuthenticationResultFromComplete3DSResponse(e);if(e!=null)j.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DSANDAUTH_SUCCESS).setExternalContextID(h).setResponseStatus(e.status).setRowID(e.rowID).setCardinalPayload(j.cardinalPayload).setExternalTransactionID(j.transactionID).setVersionOf3ds(e.threeDSTransactionData.dsTransactionID).log(),b(e);else{j.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DS_ERROR).setExternalContextID(h).setRowID(a).setCardinalPayload(j.cardinalPayload).setExternalTransactionID(j.transactionID).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();e=c("FBPayments3DSErrorUtils").getError("COMPLETE_3DS_AND_AUTH_FAILED","Values returned from GraphQL Query were invalid");i(e)}},onError:function(b){j.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DSANDAUTH_ERROR).setExternalContextID(h).setRowID(a).setCardinalPayload(j.cardinalPayload).setExternalTransactionID(j.transactionID).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();b=c("FBPayments3DSErrorUtils").getError("COMPLETE_3DS_AND_AUTH_FAILED",b.message);i(b)}})})};e.getAuthenticationResultFromComplete3DSResponse=function(a){return a!=null&&a.three_d_secure_version!=null&&a.ds_transaction_id!=null&&a.cavv!=null&&a.eci_flag!=null&&a.auth_row_id!=null&&a.status!=null&&a.xid!=null&&a.cardinal_txn_id!=null?{status:a.status,rowID:a.auth_row_id,cardinalTransactionID:a.cardinal_txn_id,threeDSTransactionData:{threeDsSecureVersion:a.three_d_secure_version,cavv:a.cavv,eciFlag:a.eci_flag,xid:a.xid,dsTransactionID:a.ds_transaction_id}}:null};e.getCardPaymentMethodInfo=function(a){var e,f=this;this.initLogger(a.itemType,a.credentialId);this.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.GET_CARD_PAYMENT_INFO_REQUEST).log();this.initUPLLogger(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(a.itemType));this.uplLogger.logClientLoadThreedsInit({target_name:"3ds_eligibility_query"},{account_currency:a.accountCurrency,credential_id:(e=a.credentialId)!=null?e:"",cc_country_code:a.ccCountryCode});return new(o||(o=b("Promise")))(function(b,e){c("promiseDone")(d("RelayModern").fetchQuery(f.relayEnvironment,B,{input:{payment_method:f.getPaymentMethod(),cc_number_bin:a.ccNumberBin,credential_id:a.credentialId,cc_country_code:a.ccCountryCode,item_type:a.itemType,account_currency:a.accountCurrency,logging_id:f.uplLogger.getSessionID()}}),function(g){g=g.card_payment_method_info_query||{};var h=g.requires_3ds;g=g.mpi_processor;h==!0&&g==u.CARDINAL_3DS2?(f.uplLogger.logClientLoadThreedsSuccess({target_name:"3ds_eligibility_query"},{is_eligible:"1"}),f.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.GET_CARD_PAYMENT_INFO_RESPONSE_THREEDS_REQ).log(),f.setRequires3DS(!!h),c("promiseDone")(f.collectDeviceData({ccNumberBin:a.ccNumberBin,credentialID:a.credentialId,amount:{amount:"1",currency:a.accountCurrency},itemType:a.itemType,ccCountryCode:a.ccCountryCode,paymentAccountID:null}),function(){b()},function(a){e(a)})):(f.uplLogger.logClientLoadThreedsSuccess({target_name:"3ds_eligibility_query"},{is_eligible:"0"}),f.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.GET_CARD_PAYMENT_INFO_RESPONSE_THREEDS_NOT_REQ).log());f.setRequires3DS(!!h);b()},function(a){f.logger.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.GET_CARD_PAYMENT_INFO_ERROR).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();a=c("FBPayments3DSErrorUtils").getError("CARD_LOOKUP_FAILED",a.message);e(a)})})};e.getBinNumberFromCreditCard=function(a){if(a==null)return null;a=a.replace(/ /g,"");return a.length>=6?a.substr(0,6):null};e.getAcqurerInfoFromCardType=function(a,b,d){a=a.find(function(a){if(!(n||(n=c("isEmpty")))(a.currency))return a.currency===d&&a.cardType===b;else return a.cardType===b});return a==null?void 0:a.info};return a}();f=new e();g["default"]=f}),98);
-----
FBPayments3DSAuthenticateComponent.react",["FBPayUPLLogger","FBPayments3DS","FBPayments3DS1CardinalFlow","FBPayments3DS1PayuFlow","FBPayments3DS2Flow","FBPayments3DSAuthenticateComponentCompleteCardAuthenticationActionMutation.graphql","FBPayments3DSErrorUtils","FBPayments3DSStripeFlow","FBPaymentsModulesAPIUtils","FBPaymentsSpinner.react","Payments3DSUtils","Promise","RelayFBEnvironment","RelayModern","SecurePostMessage","URI","nullthrows","react","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||d("react"),m=h!==void 0?h:h=b("FBPayments3DSAuthenticateComponentCompleteCardAuthenticationActionMutation.graphql");a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,d;for(var e=arguments.length,f=new Array(e),g=0;g
usePaymentsCometCheckout",["AllPaymentTypeFields","CometCardedDialogLoadingStateLegacy.react","FBPayUPLDebugLogger","JSResourceForInteraction","react","useCometLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useCallback,k=b.useMemo,l=b.useRef,m=c("JSResourceForInteraction")("PaymentsCometCheckoutDialog.react").__setRef("usePaymentsCometCheckout");function a(a){var b=a.onClose,d=babelHelpers.objectWithoutPropertiesLoose(a,["onClose"]);a=l(null);var e=c("useCometLazyDialog")(m,function(){return i.jsx(c("CometCardedDialogLoadingStateLegacy.react"),{})}),f=e[0];e=function(){var a;return(a=c("AllPaymentTypeFields")[(a=d.checkoutProps)==null?void 0:a.paymentType.toString()])!=null?a:"unknown"};var g=e(),h="upl-session-id-placeholder",n=k(function(){var a=new(c("FBPayUPLDebugLogger"))(g,"comet",h);return{logger:a}},[g]);e=j(function(a){var c;n.logger.logClientAddDebugAtomic(h,Date.now().toString(),{debug_step:"usePaymentsCometCheckout hook"},{checkout_props:JSON.stringify(d.checkoutProps),order_id_passed_in:(c=a)!=null?c:""});c=babelHelpers["extends"]({},d.checkoutProps,d.checkoutProps.paymentType.toLowerCase()==="mor_game_tipping_token"&&{orderID:a});f(babelHelpers["extends"]({},d,{checkoutProps:c,onClose:b}),b)},[n.logger,b,d,f]);return[e,a]}g["default"]=a}),98);
-----
useCommerceCheckoutDialog",["AllPaymentTypeFields","CometCardedDialogLoadingStateLegacy.react","CommerceCheckoutActionLogger","CommerceCheckoutLoggingUtils","JSResourceForInteraction","react","useCometLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useCallback,k=b.useRef,l=c("JSResourceForInteraction")("CommerceCheckoutRootContainer.react").__setRef("useCommerceCheckoutDialog");function a(a){var b=a.checkoutProps,e=a.dialogProps,f=a.entrypoint,g=a.onClose;a=k(null);var h=c("useCometLazyDialog")(l,function(){return i.jsx(c("CometCardedDialogLoadingStateLegacy.react"),{})}),m=h[0],n=(h=c("AllPaymentTypeFields")[b==null?void 0:b.paymentType.toString()])!=null?h:"unknown";h=j(function(){var a=d("CommerceCheckoutLoggingUtils").sessionIDGenerator(),h=b.products;h=(h=h==null?void 0:h.map(function(a){return a.product_id}))!=null?h:[];h=new(c("CommerceCheckoutActionLogger"))(n,"checkout_init",h,[b.receiverID],a,f,b.extraData);h.logUserClickFBPayCheckoutAtomic();m({checkoutProps:b,dialogProps:e,entrypoint:f,loggingSessionId:a,onClose:g},g)},[b,n,f,m,e,g]);return[h,a]}g["default"]=a}),98);
-----
CommerceCheckoutActionLogger",["ClientAddShippingaddressFailFalcoEvent","ClientAddShippingaddressInitFalcoEvent","ClientAddShippingaddressSuccessFalcoEvent","ClientCreatePlaceorderFailFalcoEvent","ClientCreatePlaceorderSuccessFalcoEvent","ClientEditShippingaddressFailFalcoEvent","ClientEditShippingaddressInitFalcoEvent","ClientEditShippingaddressSuccessFalcoEvent","ClientExecuteUpdatepaymentFailFalcoEvent","ClientExecuteUpdatepaymentSuccessFalcoEvent","ClientLoadFbpaycheckoutFailFalcoEvent","ClientLoadFbpaycheckoutInitFalcoEvent","ClientLoadFbpaycheckoutSuccessFalcoEvent","ClientLoadUpdatepaymentFailFalcoEvent","ClientLoadUpdatepaymentInitFalcoEvent","ClientLoadUpdatepaymentSuccessFalcoEvent","CommerceCheckoutLoggingUtils","FBPayUPLLogger","FBPaymentsLoggerConstants","FBPaymentsModulesAPIUtils","PayflowsInitFalcoEvent","PaymentsFlowsLogFalcoEvent","UserClickFbpaycheckoutAtomicFalcoEvent","UserClickFbpaycheckoutCancelFalcoEvent","UserClickFbpaycheckoutExitFalcoEvent","UserClickPlaceorderAtomicFalcoEvent","UserClickProductitemAtomicFalcoEvent","UserClickShippingaddressAtomicFalcoEvent","UserClickUpdatepaymentAtomicFalcoEvent","UserClickUpdatepaymentExitFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a,b,c,e,f,g,h){this.$1=(a=a)!=null?a:"unknown";this.$3=(a=b)!=null?a:"checkout_init";this.$7=c;this.$8=e;this.$2=(b=f)!=null?b:d("CommerceCheckoutLoggingUtils").sessionIDGenerator();this.$9=g;this.$10=h}var b=a.prototype;b.getFBPayUPLLoggerfromCheckoutLogger=function(){return new(c("FBPayUPLLogger"))(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(this.$1),"comet",this.$2)};b.setInvoiceId=function(a){this.$6=a};b.logUserClickPlaceOrderAtomic=function(a){var b=this;a===void 0&&(a={});c("UserClickPlaceorderAtomicFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PAYMENT},a)};b.logUserClickPlaceOrderUpdateOrderPaymentAtomic=function(a){var b=this;a===void 0&&(a={});c("UserClickUpdatepaymentAtomicFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_ORDER_PAYMENT},a)};b.logUserClickFBPayCheckoutAtomic=function(a){var b=this;a===void 0&&(a={});c("UserClickFbpaycheckoutAtomicFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.START},a)};b.logClientCreatePlaceOrderInit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PAYMENT},a)};b.logClientUpdateOrderPaymentInit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_ORDER_PAYMENT},a)};b.logClientCreatePlaceOrderSuccess=function(a){var b=this;a===void 0&&(a={});c("ClientCreatePlaceorderSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PAYMENT},a)};b.logClientUpdateOrderPaymentSuccess=function(a){var b=this;a===void 0&&(a={});c("ClientExecuteUpdatepaymentSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_ORDER_PAYMENT},a)};b.logClientCreatePlaceOrderFail=function(a,b){var e=this,f;b===void 0&&(b={});c("ClientCreatePlaceorderFailFalcoEvent").logCritical(function(){var b;return babelHelpers["extends"]({},e.$11(),{custom_fields:e.$12(),event_payload:{target_name:"checkout",view_name:"checkout"},extra_data:{error_code:(b=a==null?void 0:(b=a.error_code)==null?void 0:b.toString())!=null?b:"",error_message:(b=a==null?void 0:(b=a.error_description)==null?void 0:b.toString())!=null?b:""}})});this.$13({error_code:a==null?void 0:(f=a.error_code)==null?void 0:f.toString(),error_message:a==null?void 0:(f=a.error_description)==null?void 0:f.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PAYMENT},b)};b.logClientUpdateOrderPaymentFail=function(a,b){var e=this;b===void 0&&(b={});c("ClientExecuteUpdatepaymentFailFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$11(),{custom_fields:e.$12(),event_payload:{target_name:"checkout",view_name:"checkout"},extra_data:a})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_ORDER_PAYMENT},b)};b.logUserClickShippingAddressAtomic=function(a){var b=this;a===void 0&&(a={});c("UserClickShippingaddressAtomicFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout_address_typeahead",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADDRESS_TYPEAHEAD},a)};b.logUserClickProductItemAtomic=function(a){var b=this;a===void 0&&(a={});c("UserClickProductitemAtomicFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_PRODUCT_ITEM},a)};b.logClientCheckoutInit=function(a){var b=this;a===void 0&&(a={});c("PayflowsInitFalcoEvent").log(function(){return{e_counter_channel:0,event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,event_type:"client",flow_name:"checkout_init",flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.START,is_free:!1,paymod_extra_data:JSON.stringify(babelHelpers["extends"]({},b.$14(),a)),product:b.$1,session_id:b.$2}})};b.logClientLoadCheckoutInit=function(a){var b,e=this;a===void 0&&(a={});((b=this.$10)==null?void 0:b.is_update_order_payment_flow)===!0?c("ClientLoadUpdatepaymentInitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$11(),{custom_fields:e.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})}):c("ClientLoadFbpaycheckoutInitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$11(),{custom_fields:e.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_INFORMATION},a)};b.logClientLoadCheckoutFail=function(a,b){var e,f=this;b===void 0&&(b={});((e=this.$10)==null?void 0:e.is_update_order_payment_flow)===!0?c("ClientLoadUpdatepaymentFailFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},f.$11(),{custom_fields:f.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})}):c("ClientLoadFbpaycheckoutFailFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},f.$11(),{custom_fields:f.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({error_code:a==null?void 0:(e=a.error_code)==null?void 0:e.toString(),error_message:a==null?void 0:(e=a.error_description)==null?void 0:e.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_INFORMATION},b)};b.logClientLoadCheckoutSuccess=function(a){var b,e=this;a===void 0&&(a={});((b=this.$10)==null?void 0:b.is_update_order_payment_flow)===!0?c("ClientLoadUpdatepaymentSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$11(),{custom_fields:e.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})}):c("ClientLoadFbpaycheckoutSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$11(),{custom_fields:e.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_INFORMATION},a)};b.logUserClickCheckoutCancel=function(a){var b=this;a===void 0&&(a={});c("UserClickFbpaycheckoutCancelFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CANCEL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_MODULE},a)};b.logClientDisplayCheckoutExitDialog=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.DISPLAY,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_EXIT_DIALOG},a)};b.logUserClickCheckoutExit=function(a){var b=this;a===void 0&&(a={});c("UserClickFbpaycheckoutExitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.DONE,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_MODULE},a)};b.logUserClickCheckoutExitOnExitAlertDialog=function(a){var b,e=this;a===void 0&&(a={});((b=this.$10)==null?void 0:b.is_update_order_payment_flow)===!0&&c("UserClickUpdatepaymentExitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$11(),{custom_fields:e.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_EXIT_DIALOG},a)};b.logUserClickCheckoutExitOnOrderConfirmationScreen=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_CONFIRMATION_LEAVE},a)};b.logUserClickCheckoutCancelExit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CANCEL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_EXIT_DIALOG},a)};b.logUserClickCheckoutViewOrderDetails=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_CONFIRMATION_VIEW_ORDER_DETAILS},a)};b.logClientCheckoutPrefillEmailInit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PREFILLED_EMAIL},a)};b.logClientCheckoutPrefillShippingAddressInit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PREFILLED_SHIPPING_ADDRESS},a)};b.logClientCheckoutPrefillPaymentMethodInit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PREFILLED_PAYMENT_METHOD},a)};b.logUserClickAddPaypal=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PAYPAL},a)};b.logClientAddPaypalInit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PAYPAL},a)};b.logClientAddPaypalSuccess=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PAYPAL},a)};b.logClientAddPaypalFail=function(a,b){var c;b===void 0&&(b={});this.$13({error_code:a==null?void 0:(c=a.error_code)==null?void 0:c.toString(),error_message:a==null?void 0:(c=a.error_description)==null?void 0:c.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PAYPAL},b)};b.logClientAddPaypalCancel=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CANCEL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PAYPAL},a)};b.logClientAddEmailInit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_EMAIL},a)};b.logClientAddEmailSuccess=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_EMAIL},a)};b.logClientAddEmailFail=function(a,b){var c;b===void 0&&(b={});this.$13({error_code:a==null?void 0:(c=a.error_code)==null?void 0:c.toString(),error_message:a==null?void 0:(c=a.error_description)==null?void 0:c.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_EMAIL},b)};b.logUserClickUpdateEmail=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_EMAIL},a)};b.logClientUpdateEmailInit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_EMAIL},a)};b.logClientUpdateEmailSuccess=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_EMAIL},a)};b.logClientUpdateEmailFail=function(a,b){var c;b===void 0&&(b={});this.$13({error_code:a==null?void 0:(c=a.error_code)==null?void 0:c.toString(),error_message:a==null?void 0:(c=a.error_description)==null?void 0:c.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_EMAIL},b)};b.logUserClickNuxStepNext=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.NUX_CONSOLIDATED_INFO_STEP_NEXT},a)};b.logClientNuxStepNextSuccess=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.NUX_CONSOLIDATED_INFO_STEP_NEXT},a)};b.logClientNuxStepNextFail=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.NUX_CONSOLIDATED_INFO_STEP_NEXT},a)};b.logClientAddShippingAddressInit=function(a){var b=this;a===void 0&&(a={});c("ClientAddShippingaddressInitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout_add_address_button",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_SHIPPING_ADDRESS},a)};b.logClientAddShippingAddressSuccess=function(){var a=this;c("ClientAddShippingaddressSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},a.$11(),{custom_fields:a.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_SHIPPING_ADDRESS})};b.logClientAddShippingAddressFail=function(a){var b=this,e={error_code:String(a==null?void 0:a.error_code),error_message:String((a=a==null?void 0:a.error_description)!=null?a:"")};c("ClientAddShippingaddressFailFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout",view_name:"checkout"},extra_data:e})});this.$13(babelHelpers["extends"]({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_SHIPPING_ADDRESS},e))};b.logClientEditShippingAddressInit=function(){var a=this;c("ClientEditShippingaddressInitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},a.$11(),{custom_fields:a.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_SHIPPING_ADDRESS})};b.logClientEditShippingAddressSuccess=function(){var a=this;c("ClientEditShippingaddressSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},a.$11(),{custom_fields:a.$12(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_SHIPPING_ADDRESS})};b.logClientEditShippingAddressFail=function(a){var b=this,e={error_code:String(a==null?void 0:a.error_code),error_message:String((a=a==null?void 0:a.error_description)!=null?a:"")};c("ClientEditShippingaddressFailFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$11(),{custom_fields:b.$12(),event_payload:{target_name:"checkout",view_name:"checkout"},extra_data:e})});this.$13(babelHelpers["extends"]({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_SHIPPING_ADDRESS},e))};b.logUserClickAddCreditCardAtomic=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_CARD},a)};b.logClientAddCreditCardInit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_CARD},a)};b.logClientAddCreditCardSuccess=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_CARD},a)};b.logClientAddCreditCardFail=function(a,b){var c;b===void 0&&(b={});this.$13({error_code:a==null?void 0:(c=a.error_code)==null?void 0:c.toString(),error_message:a==null?void 0:(c=a.error_description)==null?void 0:c.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_CARD},b)};b.logClientUpdateCreditCardInit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_CARD},a)};b.logClientUpdateCreditCardSuccess=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_CARD},a)};b.logClientUpdateCreditCardFail=function(a,b){var c;b===void 0&&(b={});this.$13({error_code:a==null?void 0:(c=a.error_code)==null?void 0:c.toString(),error_message:a==null?void 0:(c=a.error_description)==null?void 0:c.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_CARD},b)};b.logUserClickAddCouponCodeAtomic=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PROMO_CODE},a)};b.logUserClickRemoveCouponCodeAtomic=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.REMOVE_PROMO_CODE},a)};b.logClientEditCouponInit=function(a,b){b===void 0&&(b={});switch(a){case d("CommerceCheckoutLoggingUtils").EditCouponState.ADD_COUPON:this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PROMO_CODE},b);break;case d("CommerceCheckoutLoggingUtils").EditCouponState.REMOVE_COUPON:this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.REMOVE_PROMO_CODE},b);break;default:break}};b.logClientEditCouponSuccess=function(a,b){b===void 0&&(b={});switch(a){case d("CommerceCheckoutLoggingUtils").EditCouponState.ADD_COUPON:this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PROMO_CODE},b);break;case d("CommerceCheckoutLoggingUtils").EditCouponState.REMOVE_COUPON:this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.REMOVE_PROMO_CODE},b);break;default:break}};b.logClientEditCouponFail=function(a,b,c){c===void 0&&(c={});switch(a){case d("CommerceCheckoutLoggingUtils").EditCouponState.ADD_COUPON:this.$13({error_code:b==null?void 0:(a=b.error_code)==null?void 0:a.toString(),error_message:b==null?void 0:(a=b.error_description)==null?void 0:a.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PROMO_CODE},c);break;case d("CommerceCheckoutLoggingUtils").EditCouponState.REMOVE_COUPON:this.$13({error_code:b==null?void 0:(a=b.error_code)==null?void 0:a.toString(),error_message:b==null?void 0:(a=b.error_description)==null?void 0:a.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.REMOVE_PROMO_CODE},c);break;default:break}};b.logUserClickChangeShippingMethodAtomic=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.SELECT_SHIPPING_METHOD},a)};b.logClientChangeShippingMethodInit=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.SELECT_SHIPPING_METHOD},a)};b.logClientChangeShippingMethodSuccess=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.SELECT_SHIPPING_METHOD},a)};b.logClientChangeShippingMethodFail=function(a){a===void 0&&(a={}),this.$13({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.SELECT_SHIPPING_METHOD},a)};b.$12=function(){return{checkout_entry_point:this.$9,checkout_flow:this.$3,checkout_session_ent_id:this.$4,external_session_id:this.$5,invoice_id:this.$6,product_ids:this.$7,seller_ids:this.$8}};b.$11=function(){return{actual_event_time:Date.now().toString(),platform:"comet",product_type:this.$1,session_id:this.$2}};b.$15=function(){return{checkout_session_ent_id:this.$4,event_type:"client",external_session_id:this.$5,flow_name:this.$3,is_free:!1,product:this.$1,session_id:this.$2}};b.$14=function(){return babelHelpers["extends"]({comet:!0,entrypoint:this.$9},this.$10)};b.$13=function(a,b){var d=this;b===void 0&&(b={});c("PaymentsFlowsLogFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},d.$15(),a,{paymod_extra_data:JSON.stringify(babelHelpers["extends"]({},d.$14(),b))})})};return a}();g["default"]=a}),98);
-----
PaymentsCometCheckoutComponentUtils",["AllPaymentTypeFields","PaymentsCometCheckoutAPIUtils","getJSEnumSafe"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return(a==null?void 0:a.toLowerCase())==="mor_voices"}function b(a){var b=c("getJSEnumSafe")(c("AllPaymentTypeFields"),a.paymentType);a=d("PaymentsCometCheckoutAPIUtils").getDigitalCommerceOmnibusDirectiveData(a);a=a.isOmnibusUser;return b==="mor_voices"&&a?!1:!0}g.showStickyPaymentButton=a;g.getShouldShowSeeMoreMenu=b}),98);
-----
FBPaymentsModulesAPIUtils",["fbt","AdsCurrencyFormatter","BillingAgreementType","CreditCardFormParam","CurrentUser","FBPaymentsAffirmParamsGenerator","FBPaymentsCreditCardParamsGenerator","FBPaymentsCustomFormHelper","FBPaymentsDummyPaymentMethodParamsGenerator","FBPaymentsGiftcardBalanceParamsGenerator","FBPaymentsNewPaymentOptionTypes","FBPaymentsPaymentMethodTypes","FBPaymentsPaypalParamsGenerator","PageCommerceManualPaymentMethodParamsGenerator","PageCommerceOnlineBankingParamsGenerator","guid","uniqueID"],(function(a,b,c,d,e,f,g){"use strict";var h={stripWhitespace:function(a){return a.replace(/s/g,"")},parseExpiration:function(a){a=a.split("/");var c=a[0];a=a[1];var d={};d[b("CreditCardFormParam").MONTH]=c;d[b("CreditCardFormParam").YEAR]=a;return d},prepareCardMutationData:function(a){var c={};a[b("CreditCardFormParam").CARD_NUMBER]&&(c[b("CreditCardFormParam").CARD_NUMBER]=h.getFormDataCardNumber(a));c[b("CreditCardFormParam").CARD_EXPIRATION+"["+b("CreditCardFormParam").MONTH+"]"]=h.getFormDataExpMonth(a);c[b("CreditCardFormParam").CARD_EXPIRATION+"["+b("CreditCardFormParam").YEAR+"]"]=h.getFormDataExpYear(a);return babelHelpers["extends"]({},a,c)},parseAddressFormConfig:function(a){var c=new Map();a=(a=a==null?void 0:a.country_to_fields)!=null?a:[];a.forEach(function(a){var d=a.country_code;if(d){a=a.form_fields.map(function(a){return b("FBPaymentsCustomFormHelper").parseCustomFieldServerConfig(a)});c.set(d,a)}});return c},prepareInlineCardDirectChargeData:function(a){return{credit_card_number:h.getFormDataCardNumber(a),cc_exp_month:h.getFormDataExpMonth(a),cc_exp_year:h.getFormDataExpYear(a),cc_country_code:a[b("CreditCardFormParam").COUNTRY],cc_zip:a[b("CreditCardFormParam").ZIP],csc:a[b("CreditCardFormParam").CSC],nmor_payment_method:JSON.stringify({type:b("FBPaymentsPaymentMethodTypes").CREDIT_CARD})}},prepareDirectChargeCreditCardData:function(a){var b=h.getFormDataCardNumber(a);return{csc:a.csc,credit_card:{credit_card_number:b,credit_card_last_4:b.substring(b.length,b.length-4),credit_card_first_6:b.substring(0,6),cardholder_name:a.card_holder_name,expiry_year:h.getFormDataExpYear(a),expiry_month:h.getFormDataExpMonth(a),billing_address:{country_code:a.country,street1:a.street,city:a.city,state:a.state,zip:a.zip}}}},getFormDataCardNumber:function(a){return h.stripWhitespace(a[b("CreditCardFormParam").CARD_NUMBER])},getFormDataWithoutAuth:function(a){var b=a.without_auth,c=a.country;a=a.combined_payment_type;a==="nmor_donation_p4c"&&c==="IN"&&(b=!0);return b},getFormDataExpiration:function(a){var c=a[b("CreditCardFormParam").CARD_EXPIRATION];typeof c==="string"&&(c=h.parseExpiration(a[b("CreditCardFormParam").CARD_EXPIRATION]));return c},getFormDataExpMonth:function(a){a=h.getFormDataExpiration(a);return a[b("CreditCardFormParam").MONTH]},getFormDataExpYear:function(a){a=h.getFormDataExpiration(a);return a[b("CreditCardFormParam").YEAR]},genRequestID:function(){return"id:"+b("guid")()+":"+Date.now()},getMultiCredentialRequestParams:function(a,b,c){var d=a==null?void 0:a.paymentMethod,e=a==null?void 0:a.secondaryPaymentMethod;if(!d)return{};var f=h.getPaymentMethodParamsGenerator(e),g={};f&&(g=f.getMultiCredentialRequestParams(d.getID(),d.credentialType,e,b,c));return babelHelpers["extends"]({},g,h.getPaymentMethodRequestParams(d,a==null?void 0:a.bank))},getPaymentMethodParamsGenerator:function(a){switch(a.getType()){case b("FBPaymentsPaymentMethodTypes").CREDIT_CARD:return b("FBPaymentsCreditCardParamsGenerator");case b("FBPaymentsPaymentMethodTypes").PAYPAL_BILLING_AGREEMENT:return b("FBPaymentsPaypalParamsGenerator");case b("FBPaymentsPaymentMethodTypes").MANUAL_TRANSFER:return b("PageCommerceManualPaymentMethodParamsGenerator");case b("FBPaymentsPaymentMethodTypes").NET_BANKING:return b("PageCommerceOnlineBankingParamsGenerator");case b("FBPaymentsPaymentMethodTypes").AFFIRM_MONTHLY_PAYMENT:return b("FBPaymentsAffirmParamsGenerator");case b("FBPaymentsPaymentMethodTypes").GIFTCARD_BALANCE:return b("FBPaymentsGiftcardBalanceParamsGenerator");case b("FBPaymentsPaymentMethodTypes").DUMMY_PAYMENT_METHOD:return b("FBPaymentsDummyPaymentMethodParamsGenerator");default:return null}},getPaymentMethodRequestParams:function(a,c){if(!a)return{};var d=h.getPaymentMethodParamsGenerator(a);switch(a.getType()){case b("FBPaymentsPaymentMethodTypes").AFFIRM_MONTHLY_PAYMENT:case b("FBPaymentsPaymentMethodTypes").CREDIT_CARD:case b("FBPaymentsPaymentMethodTypes").MANUAL_TRANSFER:case b("FBPaymentsPaymentMethodTypes").PAYPAL_BILLING_AGREEMENT:case b("FBPaymentsPaymentMethodTypes").DUMMY_PAYMENT_METHOD:case b("FBPaymentsPaymentMethodTypes").GIFTCARD_BALANCE:return d.getRequestParams(a);case b("FBPaymentsPaymentMethodTypes").NET_BANKING:return b("PageCommerceOnlineBankingParamsGenerator").getRequestParams(a,c);default:return{}}},getPaymentMethodRequestParamsGraphQL:function(a,c){if(!a)return{};switch(a.getType()){case b("FBPaymentsPaymentMethodTypes").CREDIT_CARD:return b("FBPaymentsCreditCardParamsGenerator").getRequestParamsGraphQL(a);case b("FBPaymentsPaymentMethodTypes").PAYPAL_BILLING_AGREEMENT:return b("FBPaymentsPaypalParamsGenerator").getRequestParamsGraphQL(a);case b("FBPaymentsPaymentMethodTypes").MANUAL_TRANSFER:return b("PageCommerceManualPaymentMethodParamsGenerator").getRequestParamsGraphQL(a);case b("FBPaymentsPaymentMethodTypes").NET_BANKING:return b("PageCommerceOnlineBankingParamsGenerator").getRequestParamsGraphQL(a);default:return{}}},prepareAddCardData:function(a){var b=h.getFormDataCardNumber(a);return{payment_account_id:a.account_id,expiry_year:"20"+h.getFormDataExpYear(a),expiry_month:h.getFormDataExpMonth(a),payment_type:a.combined_payment_type,billing_address:{country_code:a.country,street1:a.street,city:a.city,state:a.state,zip:a.zip},credit_card_number:{sensitive_string_value:b},credit_card_first_6:{sensitive_string_value:b.substring(0,6)},credit_card_last_4:{sensitive_string_value:b.substring(b.length,b.length-4)},csc:{sensitive_string_value:a.csc},cardholder_name:a.card_holder_name,logging_id:a.logging_id,session_id:a.session_id,receiver_id:a.receiver_id,without_auth:h.getFormDataWithoutAuth(a)}},prepareAddCardDataGraphQL:function(a){a=h.prepareAddCardData(a);return a},prepareAddPaymentsPINGraphQL:function(a){return{actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),payment_type:a.payment_type,payments_protected:!0,fbpay_pin:{sensitive_string_value:a.pin||""},logging_id:a.logging_id}},prepareVerifyPaymentsPINGraphQL:function(a){return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,fbpay_pin:{sensitive_string_value:a.pin||""},logging_id:a.logging_id}},prepareVerifyConsumerAuthGraphQL:function(a){if(a.csc!=null)return{actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),csc:a.csc,device_id:"device_id",cred_id:a.cred_id,app_id:"app_id",auth_method:"CVV",payment_type:a.payment_type,is_pay_nonce_needed:!1};else return{actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),cred_id:a.cred_id,pp_access_token:{sensitive_string_value:a.pp_access_token},device_id:"device_id",app_id:"app_id",auth_method:"PAYPAL",payment_type:a.payment_type,is_pay_nonce_needed:!1}},prepareVerifyPasswordGraphQL:function(a){return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,fbpay_password_bypass_token_proxy:{sensitive_string_value:a.password||""},logging_id:a.logging_id}},prepareUpdatePaymentsPINGraphQL:function(a){if(a.password!==null&&a.password!==void 0)return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,fbpay_new_pin:{sensitive_string_value:a.new_pin||""},fbpay_password_bypass_token_proxy:{sensitive_string_value:a.password||""},logging_id:a.logging_id};else if(a.cred_id!=null&&a.csc!=null)return{actor_id:b("CurrentUser").getID(),cred_id:a.cred_id,csc:a.csc,payment_type:a.payment_type,fbpay_new_pin:{sensitive_string_value:a.new_pin||""},logging_id:a.logging_id};else if(a.old_pin!=null)return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,fbpay_new_pin:{sensitive_string_value:a.new_pin||""},fbpay_pin:{sensitive_string_value:a.old_pin||""},logging_id:a.logging_id};else return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,fbpay_new_pin:{sensitive_string_value:a.new_pin||""},no_auth_method_pin_reset:!0,logging_id:a.logging_id}},prepareDeletePaymentsPINGraphQL:function(a){return a.password!==null?{actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),payment_type:a.payment_type,password:{sensitive_string_value:a.password||""}}:{actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),payment_type:a.payment_type,pin:{sensitive_string_value:a.pin}}},prepareSwitchPaymentsPINGraphQL:function(a){return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,new_pin_status:a.new_pin_status,fbpay_pin:{sensitive_string_value:a.pin}}},prepareUpdateTaxIDDataRelayGraphQL:function(a){return{actor_id:b("CurrentUser").getID(),tax_id:a.taxID,tax_id_type:"MEXICO_RFC",payment_type:a.paymentType,logging_id:a.loggingID}},prepareUpdateCardGraphQL:function(a){var c;c={client_mutation_id:b("uniqueID")(),credit_card_id:(c=a.credit_card_id)!=null?c:"",payment_type:a.payment_type,disable_type:a.disable_type};return c},prepareAddCardDataRelayGraphQL:function(a){a=h.prepareAddCardData(a);return a},prepareUpdateCardData:function(a){var b={};(a.country||a.street||a.city||a.state||a.zip)&&(b={billing_address:{country_code:a.country||"US",street1:a.street,city:a.city,state:a.state,zip:a.zip}});var c=a.card_holder_name?{cardholder_name:a.card_holder_name}:null;return babelHelpers["extends"]({credit_card_id:a.cc_fbid,expiry_year:"20"+h.getFormDataExpYear(a),expiry_month:h.getFormDataExpMonth(a),payment_type:a.combined_payment_type,csc:{sensitive_string_value:a.csc}},b,c,{logging_id:a.logging_id,session_id:a.session_id})},prepareUpdateCardDataGraphQL:function(a){a=h.prepareUpdateCardData(a);return a},prepareUpdateCardDataRelayGraphQL:function(a){a=h.prepareUpdateCardData(a);return a},prepareCompleteCheckoutRelayGraphQLData:function(a){var c=b("AdsCurrencyFormatter").parsePECurrency(a.currency,a.amount);return{amount:c,credential_id:a.credential_id,credit_card:a.credit_card,csc:a.csc,currency:a.currency,extra_data:a.extra_data,order_id:a.order_id,payment_type:a.payment_type,platform_trust_token:a.authPTT,receiver_id:a.receiver_id,request_id:h.genRequestID(),security_pin:a.security_pin,session_id:a.session_id,cardinal_3ds_processor_data:a.cardinal_3ds_processor_data,without_auth:a.without_auth}},prepareCompleteCheckoutGraphQLData:function(a){return{actor_id:b("CurrentUser").getID(),amount:a.amount,client_mutation_id:b("uniqueID")(),contact_name:a.contact_name,contact_number_id:a.contact_number_id,coupon_code:a.coupon_code,credential_id:a.credential_id,credentials:a.credentials,csc:a.csc,currency:a.currency,do_async_postprocess:a.do_async_postprocess,email_address_id:a.email_address_id,extra_data:a.extra_data,mailing_address_id:a.mailing_address_id,nmor_payment_method:a.nmor_payment_method,order_id:a.order_id,payment_type:a.payment_type,paypal_fraudnet_id:a.paypal_fraudnet_id,platform_trust_token:a.authPTT,receiver_id:a.receiver_id,request_id:h.genRequestID(),security_pin:a.security_pin,session_id:a.session_id,shipping_option_id:a.shipping_option_id,subscription_period:a.subscription_period,subscription_type:Object.keys(b("BillingAgreementType")).find(function(c){return b("BillingAgreementType")[c]===a.subscription_type}),cardinal_3ds_processor_data:a.cardinal_3ds_processor_data,trial_type:a.trial_type,is_citizen:a.is_citizen,razorpay_callback_url:a.razorpay_callback_url,tax_info_collection_map:a.tax_info_collection_map}},prepareAsyncCheckoutData:function(a){a=babelHelpers["extends"]({actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),credentials:h.buildAsyncCheckoutCredentials(a),logging_id:a.session_id,payment_session_id:a.payment_session_id,payment_type:a.payment_type,paypal_fraudnet_id:a.paypal_fraudnet_id,total_payment_amount:{currency:a.currency,amount:a.amount},coupon_code:a.coupon_code,contact_name:a.contact_name,contact_number_id:a.contact_number_id,csc:a.csc,email_address_id:a.email_address_id,email_opt_in:a.email_opt_in,mailing_address_id:a.mailing_address_id,shipping_option_id:a.shipping_option_id,extra_data_json:a.extra_data,subscription_period:a.subscription_period,subscription_type:a.subscription_type,trial_type:a.trial_type,is_citizen:a.is_citizen,razorpay_callback_url:a.razorpay_callback_url,cardinal_3ds_processor_data:a.cardinal_3ds_processor_data,tax_info_collection_map:a.tax_info_collection_map,tax_info_id:a.tax_info_id,privacy_mutation_token:a.privacy_mutation_token},h.buildAsyncCheckoutPaymentOrderIdProducts(a),{is_dynamic_auth_available:a.is_dynamic_auth_available,platform_trust_token:a.authPTT,security_pin:a.security_pin});return a},buildAsyncCheckoutCredentials:function(a){if(a.altPayData)return[{credential_type:b("FBPaymentsNewPaymentOptionTypes").NEW_ALT_PAY_FROM_GRAPHQL,payment_amount:{currency:a.currency,amount:a.amount},altpay_data:a.altPayData}];if(a.credentials&&a.credentials.length>1){var c=[],d=a.currency;a.credentials.forEach(function(a){c.push({credential_id:a.credential_id,credential_type:a.credential_type,payment_amount:{currency:d,amount:a.amount},wallet_balance:a.wallet_balance?{currency:d,amount:a.wallet_balance}:void 0})});return c}return[{credential_type:a.credential_type,payment_amount:{currency:a.currency,amount:a.amount},credential_id:a.credential_id}]},buildAsyncCheckoutPaymentOrderIdProducts:function(a){switch(a.payment_type){case"mor_donations":case"nmor_donation_p4c":case"nmor_donation_p4p":case"nmor_ppgf_donation":case"mor_donations_matching_confirmation":case"mor_donations_matching_pledge":case"nmor_blackbaud_rwr_donation":return{payment_order_id:null,products:[{product_id:a.order_id,quantity:1,per_unit_price:{currency:a.currency,amount:a.amount}}]};case"nmor_checkout_experiences":case"nmor_c2c_checkout_experiences":return{payment_order_id:a.order_id,products:a.products?a.products.map(function(a){var b;return{product_id:a.product_id,quantity:a.quantity,per_unit_price:{currency:(b=a.price)==null?void 0:b.currency,amount:(b=a.price)==null?void 0:b.amount},customization_ids:a.customization_ids}}):null};case"mor_instant_games":case"mor_open_graph_product":return{payment_order_id:a.order_id,products:null};case"mor_game_tipping_token":return{payment_order_id:a.order_id,products:[{product_id:a.order_id,quantity:1,per_unit_price:{currency:a.currency,amount:a.amount}}]};case"mor_group_subscription":case"mor_fan_funding":case"mor_oculus_cv1":return{payment_order_id:null,products:a.products?a.products.map(function(a){return{product_id:a.product_id,quantity:a.quantity}}):null};default:return{payment_order_id:null,products:null}}},getUncaughtErrorMessage:function(){return g._("u5904u7406u8bf7u6c42u65f6u51fau73b0u6682u65f6u6027u9519u8befuff0cu8bf7u7a0du540eu91cdu8bd5u3002")},getGraphQLErrorMessage:function(a){return g._("{error_message}",[g._param("error_message",a)])},getAuthFailureErrorDetails:function(a){try{a=JSON.parse(a.debug_info);a=a.num_remaining_attempts;return{remainingAttempts:a}}catch(a){return{remainingAttempts:null}}},convertAllPaymentTypeFields:function(a){return a},convertAllPaymentTypeFieldsForNewAPI:function(a){return a}};e.exports=h}),130);
-----
PaymentsCometCheckoutDialog.react",["fbt","AllPaymentTypeFields","CometAuthenticityPaymentsWizard.react","CometCardedDialogLoadingStateLegacy.react","FBPayCometGatingUtils","FBPayHubHooks","FBPayLoggingContext","FBPayLoggingUtils","FBPaySurveyUtils","FBPayUPLLogger","FBPaymentsLoggerConstants","FDSCardedDialogLegacy.react","PayflowsInitFalcoEvent","PaymentsCometCheckout.react","PaymentsCometCheckoutAPIUtils","PaymentsCometCheckoutComponentUtils","PaymentsCometCheckoutContext","PaymentsCometCheckoutReducer","gkx","react","requireDeferred","useCometDeferredDialog","useConnectPayPal","usePaymentsCometCheckoutCreatePayment","usePaymentsCometCheckoutInformationMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useContext,l=b.useEffect,m=b.useMemo,n=b.useReducer,o=b.useRef,p=b.useState,q=c("requireDeferred")("PaymentsCometCheckoutExitCheckoutDialog.react").__setRef("PaymentsCometCheckoutDialog.react"),r="client",s={onClose:function(){},title:t(),withCloseButton:!0};function t(){var a=d("FBPayCometGatingUtils").shouldShowFBPayExperienceOnComet();return a&&c("gkx")("20956")===!1?h._("Facebook Pay"):h._("u7ed3u8d26")}var u=d("FBPayLoggingUtils").sessionIDGenerator(),v={mobileRootWrapper:{"@media (max-width: 564px)_bottom":"x1ckq5","@media (max-width: 564px)_height":"x40dr4r","@media (max-width: 564px)_position":"xfqz7ig",$$css:!0}};function a(a){var b=a.checkoutProps,e=a.dialogProps,f=a.onClose;u=(a=u)!=null?a:d("FBPayLoggingUtils").sessionIDGenerator();var g=c("usePaymentsCometCheckoutInformationMutation")(),i=c("useCometDeferredDialog")(q,function(){return j.jsx(c("CometCardedDialogLoadingStateLegacy.react"),{})});a=n(d("PaymentsCometCheckoutReducer").reducer,d("PaymentsCometCheckoutReducer").getInitialState({checkoutProps:b,clientSessionID:u,onClose:f}));var w=a[0],x=a[1];a=k(c("PaymentsCometCheckoutContext"));var y=a.logger,z=w.requiresCheckoutInfoRefresh,A=function(){var a;return(a=c("AllPaymentTypeFields")[b==null?void 0:b.paymentType.toString()])!=null?a:"unknown"},B=A();a=m(function(){var a=new(c("FBPayUPLLogger"))(B,"comet",u);return{logger:a}},[B]);var C=a.logger;d("FBPayHubHooks").useConstructor(function(){var a;y.setGlobalFields({flow_name:d("FBPaymentsLoggerConstants").LoggerFlowType.CHECKOUT,product:A(),session_id:w.clientSessionID});var b=babelHelpers["extends"]({comet:!0},(a=w.checkoutProps)==null?void 0:a.extraData);y.setGlobalExtraData(b);y.log({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_MODULE});c("PayflowsInitFalcoEvent").log(function(){return{e_counter_channel:0,event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,event_type:r,flow_name:d("FBPaymentsLoggerConstants").LoggerFlowType.CHECKOUT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.START,is_free:!1,paymod_extra_data:JSON.stringify(b),product:A(),session_id:w.clientSessionID}})});var D=o(!0),E=o(!0);l(function(){D.current===!0&&(D.current=!1,C.logClientLoadCheckoutInit({target_name:"checkout",view_name:"checkout"}))},[C]);l(function(){g(d("PaymentsCometCheckoutAPIUtils").getLoadCheckoutInfoInput(w),function(a){var b;if(((b=a.checkout_information_mutation)==null?void 0:b.payments_error)!=null){E.current&&(C.logClientLoadCheckoutFail({target_name:"checkout",view_name:"checkout"}),E.current=!1);b=(b=a.checkout_information_mutation)==null?void 0:b.payments_error;x({paymentsUserFacingError:b,type:"CHECKOUT_INIT_FAILURE"})}else x({checkoutInformation:a,type:"LOAD_CHECKOUT_INFO_SUCCESS"}),E.current&&(C.logClientLoadCheckoutSuccess({target_name:"checkout",view_name:"checkout"}),E.current=!1)},function(){E.current&&(C.logClientLoadCheckoutFail({target_name:"checkout",view_name:"checkout"}),E.current=!1)},function(){});return function(){u=null}},[g]);var F=p(!1),G=F[0],H=F[1];l(function(){z===!0&&G===!1&&(H(!0),g(d("PaymentsCometCheckoutAPIUtils").getLoadCheckoutInfoInput(w),function(a){x({checkoutInformation:a,type:"LOAD_CHECKOUT_INFO_SUCCESS"}),x({requiresCheckoutInfoRefresh:!1,type:"SET_REQUIRES_CHECKOUT_REFRESH"}),H(!1),y.log({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_CHECKOUT_API})},function(){x({requiresCheckoutInfoRefresh:!1,type:"SET_REQUIRES_CHECKOUT_REFRESH"}),H(!1)}))},[g,x,w,z,y,G]);var I=d("FBPaySurveyUtils").userHasResearchSurvey(w==null?void 0:w.hasExitSurvey,w==null?void 0:w.hasCompletionSurvey);F=Boolean(d("FBPaySurveyUtils").userHasResearchSurvey(w==null?void 0:w.hasExitSurvey,w==null?void 0:w.hasCompletionSurvey)&&d("FBPaySurveyUtils").isUserInSurveyControlGroup());var J=function(){if(w.step==="CONFIRMATION"){y.log({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_CONFIRMATION_LEAVE});f();return}y.log({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.DISPLAY,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_EXIT_DIALOG});i({onClose:function(){},onCloseLeavingDialog:function(){C.logUserClickCheckoutExit({target_name:"fbpay_checkout"}),f()},paymentType:b.paymentType,showSurveyOnClose:I})},K=p(!1),L=K[0],M=K[1];K=function(){var a=c("usePaymentsCometCheckoutCreatePayment")(),b=c("useConnectPayPal")(),d=b[0];return j.jsx(c("CometAuthenticityPaymentsWizard.react"),{onClose:f,onFinish:function(){M(!0),a(d)},order_id:"0"})};L=d("PaymentsCometCheckoutAPIUtils").isEligibleForIDVFlow(w)&&w.step==="CONFIRM_IDENTITY"&&!L;var N=m(function(){return{dispatch:x,logger:y,state:w}},[y,w]);if(L)return j.jsx(c("PaymentsCometCheckoutContext").Provider,{value:N,children:j.jsx(K,{})});if(w.step==="MEMBERSHIP_DETAIL"&&((K=w.loyaltyAccountLinkingEntryPointSpec)==null?void 0:K.title)!=null){s.title=(K=(K=w.loyaltyAccountLinkingEntryPointSpec)==null?void 0:K.title)!=null?K:w.loyaltyProgramName}else s.title=t();w.step==="CONFIRMATION"&&((K=w.checkoutProps)==null?void 0:K.extraData)!=null&&((K=w.checkoutProps)==null?void 0:(K=K.extraData)==null?void 0:K.negotiable_price_offer_data)!=null&&(s.title=h._("u5df2u51fau4ef7"));(!d("FBPayCometGatingUtils").shouldShowFBPayExperienceOnComet()&&d("PaymentsCometCheckoutAPIUtils").isDonation(A())||F)&&(s.title=h._("u7ed3u8d26"));c("gkx")("20956")&&d("PaymentsCometCheckoutAPIUtils").isDonation(A())&&(s.title=h._("u6350u6b3e"));K=d("PaymentsCometCheckoutComponentUtils").showStickyPaymentButton(A())?v.mobileRootWrapper:null;return j.jsx("div",{style:{display:L?"none":null},children:j.jsx(c("FDSCardedDialogLegacy.react"),babelHelpers["extends"]({},s,e,{anchorXStyle:K,disableClosingWithMask:!0,onClose:J,testid:void 0,children:j.jsx(c("PaymentsCometCheckoutContext").Provider,{value:N,children:j.jsx(c("FBPayLoggingContext").Provider,{value:a,children:j.jsx(c("PaymentsCometCheckout.react"),{})})})}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
cometMarketplaceCheckoutUtils.hybrid",["AllPaymentTypeFields","getGraphQLEnumSafe","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d,e,f,g,h,i,j){var k;f===void 0&&(f=1);g===void 0&&(g=null);e=c("getGraphQLEnumSafe")(c("AllPaymentTypeFields"),e);if(e==null)throw c("unrecoverableViolation")("Invalid / Null PaymentType provided","marketplace-comet");k=h!=null?(k={},k[b]={is_personalization_required:h==null?void 0:h.isPersonalizationRequired,personalization_instructions_from_buyer:h==null?void 0:h.personalizationRequestFromBuyer,personalization_options_from_seller:h==null?void 0:h.personalizationInstructionsFromSeller},k):null;return{commerceMerchantSettingsID:j,extraData:{personalization_info_data:k,products:[{pageId:g,price:d,product_id:b,quantity:f}]},isPurchaseProtected:i,paymentType:e,personalization:h,products:[{per_unit_price:d,product_id:b,quantity:f}],receiverID:a}}function b(a,b,d,e){e===void 0&&(e=null);d=c("getGraphQLEnumSafe")(c("AllPaymentTypeFields"),d);if(d==null)throw c("unrecoverableViolation")("Invalid / Null PaymentType provided","marketplace-comet");return{extraData:{is_marketplace_ecomm_cart_checkout:!0,products:b.map(function(a){return{pageId:e,price:a.price,product_id:a.productId,quantity:a.quantity}})},paymentType:d,products:b.map(function(a){return{per_unit_price:a.price,product_id:a.productId,quantity:a.quantity}}),receiverID:a}}g.generateCheckoutProps=a;g.generateMultiItemCheckoutProps=b}),98);
-----
FBPayECPConstantsUtils",["ix","$InternalEnum","IconSource","fbicon","recoverableViolation"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("$InternalEnum").Mirrored(["NONE","PROCESSING","COMPLETE","RESET","LOADING"]),j={APM:"APM",CHECKOUT_BODY_TERMS:"CHECKOUT_BODY_TERMS",CONTACT_INFORMATION:"CONTACT_INFORMATION",GIFT_AID:"GIFT_AID",IDV_FLOW:"IDV_FLOW",INCENTIVES:"INCENTIVES",ITEM_LIST:"ITEM_LIST",LOGIN_WITH_APP:"LOGIN_WITH_APP",META_BRANDING_FOOTER:"META_BRANDING_FOOTER",NUX_PAYMENT_RECEIVER:"NUX_PAYMENT_RECEIVER",ONE_TIME_CHECKOUT_OPTION:"ONE_TIME_CHECKOUT_OPTION",ORDER_SUMMARY:"ORDER_SUMMARY",PAY_BUTTON:"PAY_BUTTON",PAYER_DONOR_POSTAL_ADDRESS:"PAYER_DONOR_POSTAL_ADDRESS",PAYER_GIFT_AID_ADDRESS:"PAYER_GIFT_AID_ADDRESS",PAYER_NAME_ON_CARD:"PAYER_NAME_ON_CARD",PAYER_TAX_ADDRESS:"PAYER_TAX_ADDRESS",PAYMENT_METHOD:"PAYMENT_METHOD",PAYMENT_RECEIVER:"PAYMENT_RECEIVER",PRICE_TABLE:"PRICE_TABLE",PROMO_CODE:"PROMO_CODE",PSD_AGREEMENT:"PSD_AGREEMENT",PURCHASE_PROTECTION:"PURCHASE_PROTECTION",SHIPPING_ADDRESS:"SHIPPING_ADDRESS",SHIPPING_OPTIONS:"SHIPPING_OPTIONS",SUBSCRIPTION_INFO:"SUBSCRIPTION_INFO",TAX_ID:"TAX_ID",TERMS:"TERMS",USE_SHIPPING_AS_BILLING_CHECKBOX:"USE_SHIPPING_AS_BILLING_CHECKBOX"},k=["ANON_CHECKOUT_BACK_BUTTON","APM","BANNER","CHECKOUT_BODY_TERMS","CONTACT_INFORMATION","EMAIL_OPTIN","FULFILLMENT_OPTIONS","GIFT_AID","IDV_FLOW","INCENTIVES","ITEM_LIST","META_BRANDING_FOOTER","NUX_PAYMENT_RECEIVER","ONE_TIME_CHECKOUT_OPTION","ORDER_SUMMARY","PAYMENT_METHOD","PAYMENT_RECEIVER","PAY_BUTTON","PICKUP_CONTACT_INFO","PRICE_TABLE","PROMO_CODE","PSD_AGREEMENT","SHIPPING_ADDRESS","SHIPPING_OPTIONS","SUBSCRIPTION_INFO","TAX_ID","TERMS","PURCHASE_PROTECTION"],l={CONFIRMATION:"CONFIRMATION",IDV:"IDV",NUX:"NUX",PARTIAL_PUX:"PARTIAL_PUX",PENDING:"PENDING",PUX:"PUX"},m={NUX:"NUX",PUX:"PUX"},n={COMPLETED:"COMPLETED",NA:"NA",STARTED:"STARTED"};function a(a){switch(a){case"CREDIT_CARD":return"credit_card";case"PAYPAL_BA":return"paypal_ba";case"NETWORK_TOKEN":return"network_token";case"NEW_CREDIT_CARD":return"new_credit_card";case"NEW_PAYPAL_BA":return"new_paypal_ba";case"NEW_PAYPAL_CHECKOUT":return"new_paypal_checkout";case"GIFTCARD_BALANCE":return"giftcard_balance";case"NEW_PAYPAL_BNPL_CHECKOUT":return"new_paypal_bnpl_checkout";case"NEW_SHOP_PAY":return"new_shop_pay";case"MOCK_OPAQUE_REDIRECT_LPM":return"mock_opaque_redirect_lpm";case"SOFORT":return"sofort";case"OFFER":return"offer";case"QR_CODE":return"qr_code";default:if(a!=null){c("recoverableViolation")("unsupported credential type: "+a,"fbpay");return"dummy"}else return"dummy"}}function e(a){var b;switch(a){case"FAILURE":b="failure";break;case"PENDING":b="pending";break;case"SUCCESS":b="success";break;default:a!=null&&c("recoverableViolation")("unsupported status: "+a,"fbpay"),b="failure"}return String(b)}function f(a){switch(a){case"SUBTOTAL":return"SUBTOTAL";case"ESTIMATED_TAX":return"ESTIMATED_TAX";case"SHIPPING":return"SHIPPING";case"OFFER":return"OFFER";case"FEE":return"FEE";case"PLUS_TAX_DISCLAIMER":return"PLUS_TAX_DISCLAIMER";case"POST_TAX_DISCOUNT":return"POST_TAX_DISCOUNT";case"PRE_TAX_DISCOUNT":return"PRE_TAX_DISCOUNT";case"SPLIT_PAYMENT_BREAKDOWN":return"SPLIT_PAYMENT_BREAKDOWN";case"TOTAL":return"TOTAL";case"BUYER_PROPOSED_OFFER":return"BUYER_PROPOSED_OFFER";default:return"DEFAULT"}}var o={FORM_SCREEN:"FORM_SCREEN",LIST_SCREEN:"LIST_SCREEN",ROW_COMPONENT:"ROW_COMPONENT"};function p(a){a=a?[j.ORDER_SUMMARY,j.INCENTIVES,j.CONTACT_INFORMATION,j.SHIPPING_ADDRESS,j.SHIPPING_OPTIONS,j.PAYMENT_METHOD,j.GIFT_AID,j.ITEM_LIST,j.PRICE_TABLE,j.PAY_BUTTON,j.TERMS]:[j.PAYMENT_RECEIVER,j.PAYMENT_METHOD,j.SHIPPING_ADDRESS,j.CONTACT_INFORMATION,j.SHIPPING_OPTIONS,j.ITEM_LIST,j.GIFT_AID,j.PRICE_TABLE,j.PAY_BUTTON,j.TERMS];return a}var q={EMAIL_FORM:"EMAIL_FORM",NAME_FORM:"NAME_FORM",PHONE_FORM:"PHONE_FORM",SUX_FORM:"SUX_FORM"},r={LINK:"https://facebook.com/payments_terms"},s={LINK:"https://www.facebook.com/help/474520169818442"},t={LINK:"https://help.instagram.com/769358617347044"},u={LINK:"https://help.instagram.com/2136147216424213"},v={LINK:"https://www.facebook.com/help/565350107604363?helpref=about_content"},w={LINK:"https://help.instagram.com/2469676619783835"},x={LINK:"https://www.facebook.com/policy"},y={LINK:"https://www.facebook.com/payments_terms"},z={LINK:"https://help.instagram.com/2136147216424213"},A={LINK:"https://www.facebook.com/payments_terms/privacy"},B={LINK:"https://www.facebook.com/legal/buy/digital_content/sales_terms"},C={LINK:"https://www.meta.com/help/315696271061805/"},D={LINK:"https://www.facebook.com/privacy/explanation/"},E={CODE:"US",EXT:"+1"},F={EXTRA_SMALL:"extraSmall",MEDIUM:"medium",SMALL:"small"},G="https://facebook.com/payments_terms/privacy",H={CREDENTIALS:"credentials",EMAIL:"email",NAME:"name",PHONE:"phone",SHIPPING_ADDRESS:"shipping_address",TAX_ID:"tax_id"},I={GIFT_AID_TERMS:"GIFT_AID_TERMS",NUX_LEARN_MORE:"NUX_LEARN_MORE",PUX_LEARN_MORE:"PUX_LEARN_MORE",SUBSCRIPTION_LEARN_MORE:"SUBSCRIPTION_LEARN_MORE"};d={editIcon:d("fbicon")._(h("477825"),16),moreIcon:d("fbicon")._(h("555282"),20),selectedIcon:new(c("IconSource"))("FB",h("1585046"),20),unselectedIcon:new(c("IconSource"))("FB",h("1397726"),20)};h={ELIGIBLE_VALUES:"ELIGIBLE_VALUES",EXACT_LENGTH:"EXACT_LENGTH",MAX_LENGTH:"MAX_LENGTH",MIN_LENGTH:"MIN_LENGTH",REGEX:"REGEX"};var J={care_of:"address_form_full_name",city:"address_form_city",first_name:"address_form_first_name",last_name:"address_form_last_name",state:"address_form_state",street1:"address_form_address_one",street2:"address_form_address_two",zip:"address_form_postal_code"},K=["cardNumber","expireDate","securityCode","state","zip"],L="NO_TYPEAHEAD_SUGGESTION_AVAILABLE",M="2648932268733643",N="1147883786053547",O="742725890006429",P="1302814060304063",Q="474021490758763",R="615185509510995",S="424054882412337",T="696777095101523",U="912080620033674",V="766358168544755",W="254868786695132",X="apm_button",Y="apm_button",Z="apm_link",$="pux_apm_link",aa="apm_url",ba="apm_radio_button",ca="apm_webview",da="apm_webview",ea="apm_continue",fa="NEW_PAYPAL_CHECKOUT",ga="ISSUER_SCA_REQUIRED";b=b("$InternalEnum").Mirrored(["BUTTON","LINK"]);var ha=[O,P];function ia(a){switch(a){case"billing":return"BILLING";default:return"ECP"}}g.FBPayECPPayButtonMode=i;g.FBPayComponentTypes=j;g.FBPayComponentTypesList=k;g.ECPExperience=l;g.ECPOnboardingExperience=m;g.ECPIDVFlowType=n;g.castCredentialType=a;g.castOrderPurchaseStatus=e;g.castSummaryItemType=f;g.ContainerSubtypes=o;g.getFBPayComponentList=p;g.ContactInfoFormModes=q;g.FB_PAYMENT_TERMS=r;g.META_PAY_EDUCATION_FB_URL=s;g.META_PAY_EDUCATION_IG_URL=t;g.IG_PAYMENT_TERMS=u;g.FB_MANAGE_YOUR_PAYMENT_INFO=v;g.IG_MANAGE_YOUR_PAYMENT_INFO=w;g.DATA_POLICIES=x;g.PSD_AGREEMENT_COMMUNITY_PAYMENTS_TERMS=y;g.IG_PSD_AGREEMENT_COMMUNITY_PAYMENTS_TERMS=z;g.PSD_AGREEMENT_PAYMENTS_PRIVACY_POLICY=A;g.ONSITE_IAP_LEARN_MORE=B;g.META_UNIFIED_WALLET_CONNECT_PAYMENT_INFO_LEARN_MORE=C;g.UNIFIED_WALLET_PRIVACY_POLICY=D;g.US_PHONE_COUNTRY_CODE=E;g.ProductImageSize=F;g.PRIVACY_LINK=G;g.FBPayAccountMutationData=H;g.FBPayBottomSheetComponentTypes=I;g.selectionScreenIcons=d;g.PaymentsFormValidationRuleType=h;g.TEST_IDS_BASED_ON_KEY=J;g.FBPayECPAutoAdvanceFields=K;g.NO_TYPEAHEAD_SUGGESTION_AVAILABLE=L;g.P4C_PRODUCT_ID=M;g.IG_P4C_PRODUCT_ID=N;g.META_PAY_PRODUCT_ID=O;g.META_CHECKOUT_PRODUCT_ID=P;g.FB_STARS_PRODUCT_ID=Q;g.FB_CANVAS_GAMES_PRODUCT_ID=R;g.FB_INSTANT_GAMES_PRODUCT_ID=S;g.PPGF_PRODUCT_ID=T;g.IG_PPGF_PRODUCT_ID=U;g.AGE_VERIFICATION_CCV_PRODUCT_ID=V;g.C2C_PRODUCT_ID=W;g.APM_BUTTON_VIEW_NAME=X;g.APM_BUTTON_TARGET_NAME=Y;g.APM_LINK_TARGET_NAME=Z;g.APM_PUX_LINK_TARGET_NAME=$;g.APM_REDIRECT_VIEW_NAME=aa;g.APM_RADIO_BUTTON_TARGET_NAME=ba;g.APM_CREDENTIAL_VIEW_NAME=ca;g.APM_CREDENTIAL_TARGET_NAME=da;g.APM_CONTINUE_VIEW_NAME=ea;g.PAYPAL_OTC_CREDENTIAL_TYPE=fa;g.ISSUER_SCA_REQUIRED=ga;g.PaypalBAComponentVariant=b;g.OFFSITE_PRODUCT_IDS=ha;g.castAllPaymentTypeFields=ia}),98);
-----
PageSetUpManagedOnsiteShopInputDataUtils",["invariant","AllPaymentTypeFields","CommerceManagerOnboardingTaxIDUtils","CurrencyConstants","MerchantCategoryCode","PaymentCompanyType","ReceiverPaymentProviderType","TaxIdType","USAStateAbbreviations","keyMirror","nullthrows"],(function(a,b,c,d,e,f,g,h){"use strict";var i=(e=c("keyMirror"))(c("AllPaymentTypeFields")),j=e(c("PaymentCompanyType")),k=e(c("MerchantCategoryCode"));e(c("ReceiverPaymentProviderType"));var l=e(c("TaxIdType"));function m(a){var b={address:babelHelpers["extends"]({},a.businessInfo.address),alert_email:a.businessInfo.alertEmail,page_id:a.pageID};a.businessInfo.businessID!=null&&(b.business_id=a.businessInfo.businessID);b.contact_email=a.contactEmail;b.return_policy_time=a.returnPolicy;b.bank_country=a.businessInfo.address.country;b.country_code=a.businessInfo.address.country;b.currency_code=a.businessInfo.currency;b.payment_type=i.NMOR_CHECKOUT_EXPERIENCES;b.provider_type="BANK_ACCOUNT";b.bank_info=c("nullthrows")(n(a.payoutBankInfo));var d=c("nullthrows")(p(a.payoutTaxInfo));a=o({fraudnetSessionID:a.fraudnetSessionID,merchantCategoryCode:a.merchantCategoryCode});return babelHelpers["extends"]({},b,a,d)}function a(a){return babelHelpers["extends"]({},m(a))}function n(a){return a==null?null:{bank_account_number:a.bankAccountNumber,bank_account_type:a.bankAccountType,bank_code:a.bankCode,bank_code_type:a.bankCodeType,bank_country:a.bankCountry,beneficiary_name:a.beneficiaryName,iban_bank_code:a.ibanBankCode}}function o(a){var b={};a.fraudnetSessionID!=null&&(b.paypal_fraudnet_id=a.fraudnetSessionID);a.merchantCategoryCode!=null&&a.merchantCategoryCode!==k.NOT_SPECIFIED&&(b.merchant_category_code=a.merchantCategoryCode);return babelHelpers["extends"]({},b)}function b(a){var b={bank_info:n(a.payoutBankInfo),cms_id:a.cmsID},c=p(a.payoutTaxInfo)||{};a=o({fraudnetSessionID:a.fraudnetSessionID,merchantCategoryCode:a.merchantCategoryCode});return babelHelpers["extends"]({},b,a,c)}function d(a){a={page_id:a.pageID,shipping_options:a.shippingOptions.map(function(a){var b;return{cost:{amount_in_hundredths:(b=c("nullthrows"))(a.cost.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},cost_per_additional_item:{amount_in_hundredths:b(a.costPerAdditionalItem.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},estimated_days_until_arrival:{max_days_to_arrival:b(a.estimatedDaysToArrival.max),min_days_to_arrival:b(a.estimatedDaysToArrival.min)},shipping_tier:a.shippingTier}}),state_tax_registration_numbers:a.USAStateRegNums.map(function(a){return{state_code:c("USAStateAbbreviations")[a.USAState],tax_registration_number:a.regNum}})};return babelHelpers["extends"]({},a)}function p(a){if(a==null)return null;var b={company_type:c("nullthrows")(a.businessType)};switch(b.company_type){case j.INDIVIDUAL_BUSINESS:case j.SOLE_PROPRIETOR:c("CommerceManagerOnboardingTaxIDUtils")(a.ssn)?b.tax_id_type=l.ITIN:b.tax_id_type=l.SSN;b.ssn=a.ssn;break;case j.CORPORATION:case j.PARTNERSHIP:case j.NON_PROFIT:case j.PRIVATE_CORPORATION:case j.PUBLIC_CORPORATION:b.business_name=a.businessName;b.tax_id_type=l.EIN;b.tax_id=a.ein;break;default:h(0,2719)}b.legal_name={first_name:a.legalName.firstName,last_name:a.legalName.lastName,middle_name:a.legalName.middleName};a.birthdate!=null&&(b.birthdate=a.birthdate);return babelHelpers["extends"]({},b)}g.prepareFixedLengthMigrationData=a;g.getPayoutBankInfoFromSellerPayoutBankInfo=n;g.prepareManagedMerchantData=o;g.preparePayoutEditData=b;g.prepareShippingAndStateTaxData=d;g.prepareTaxData=p}),98);
-----
CommerceManagerOnboardingMutationInputUtils",["AllPaymentTypeFields","CommerceManagerOnboardingTaxIDUtils","CurrencyConstants","PageSetUpManagedOnsiteShopInputDataUtils","USAStateAbbreviations","keyMirror","nullthrows"],(function(a,b,c,d,e,f,g){"use strict";var h=c("keyMirror")(c("AllPaymentTypeFields"));function a(a){return{app_id:a.appID,business_id:a.businessID,business_name:a.businessName,catalog_id:a.catalogID,channel:a.channel,cms_id:a.cmsID,commerce_account_name:a.commerceAccountName,country_code:a.countryCode,currency_code:a.currencyCode,ig_user_id:a.igUserID,mode:a.mode,page_id:a.pageID,request_surface:"LEGACY_COMMERCE_MANAGER_ONSITE",temporary_ig_login_token:a.tempIGLoginToken,utm_params:a.utmParams}}function b(a){return{channel:a.channel,cms_id:a.cmsID,ig_user_id:a.igUserID,mode:a.mode,page_id:a.pageID,temporary_ig_login_token:a.tempIGLoginToken}}function e(a){var b;b=(b=a.shippingOptions)!=null?b:[];return{catalog_id:a.catalogID,channel:a.channel,cms_id:a.cmsID,contact_email:a.contactEmail,country_code_for_multinational_DANGEROUS:a.country,ig_user_id:a.igUserID,return_policy:a.returnPolicy,shipping_options:b.map(function(a){var b;return{cost:{amount_in_hundredths:(b=c("nullthrows"))(a.cost.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},cost_per_additional_item:{amount_in_hundredths:b(a.costPerAdditionalItem.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},estimated_days_until_arrival:{max_days_to_arrival:b(a.estimatedDaysToArrival.max),min_days_to_arrival:b(a.estimatedDaysToArrival.min)},shipping_tier:a.shippingTier}}),utm_params:a.utmParams}}function f(a){var b;b=(b=a.shippingOptions)!=null?b:[];return{cms_id:a.cmsID,contact_email:c("nullthrows")(a.contactEmail),country_code_for_multinational_DANGEROUS:a.country,return_policy:c("nullthrows")(a.returnPolicy),shipping_options:b.map(function(a){var b;return{cost:{amount_in_hundredths:(b=c("nullthrows"))(a.cost.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},cost_per_additional_item:{amount_in_hundredths:b(a.costPerAdditionalItem.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},estimated_days_until_arrival:{max_days_to_arrival:b(a.estimatedDaysToArrival.max),min_days_to_arrival:b(a.estimatedDaysToArrival.min)},shipping_tier:a.shippingTier}}),source:a.source}}function i(a){var b;b=(b=a.shippingOptions)!=null?b:[];return{cms_id:a.cmsID,contact_email:c("nullthrows")(a.contactEmail),return_policy:c("nullthrows")(a.returnPolicy),shipping_options:b.map(function(a){var b;return{cost:{amount_in_hundredths:(b=c("nullthrows"))(a.cost.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},cost_per_additional_item:{amount_in_hundredths:b(a.costPerAdditionalItem.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},estimated_days_until_arrival:{max_days_to_arrival:b(a.estimatedDaysToArrival.max),min_days_to_arrival:b(a.estimatedDaysToArrival.min)},shipping_tier:a.shippingTier}}),utm_params:a.utmParams}}function j(a){var b=d("PageSetUpManagedOnsiteShopInputDataUtils").getPayoutBankInfoFromSellerPayoutBankInfo(a.payoutBankInfo);b={address:babelHelpers["extends"]({},a.address),alert_email:a.alertEmail,bank_country:a.address.country,bank_info:c("nullthrows")(b),channel:a.channel,cms_id:a.cmsID,country_code:a.address.country,currency_code:a.currency,payment_type:h.NMOR_CHECKOUT_EXPERIENCES,provider_type:"BANK_ACCOUNT",state_tax_registration_numbers:a.USAStateRegNums.map(function(a){return{state_code:c("USAStateAbbreviations")[a.USAState],tax_registration_number:a.regNum}}),utm_params:a.utmParams,vat_address:babelHelpers["extends"]({},a.vatAddress),vat_id:a.vatID};var e=c("nullthrows")(d("PageSetUpManagedOnsiteShopInputDataUtils").prepareTaxData(a.payoutTaxInfo));b.birthdate=e.birthdate;b.business_name=e.business_name;b.company_type=e.company_type;b.legal_name=e.legal_name;b.ssn=e.ssn;b.tax_id=e.tax_id;b.tax_id_type=e.tax_id_type;b.tax_id_type==="SSN"&&c("CommerceManagerOnboardingTaxIDUtils")(b.ssn)&&(b.tax_id_type="ITIN");e=d("PageSetUpManagedOnsiteShopInputDataUtils").prepareManagedMerchantData({fraudnetSessionID:a.fraudnetSessionID,merchantCategoryCode:a.merchantCategoryCode});return babelHelpers["extends"]({},b,e)}function k(a){var b=d("PageSetUpManagedOnsiteShopInputDataUtils").getPayoutBankInfoFromSellerPayoutBankInfo(a.payoutBankInfo);b={bank_info:c("nullthrows")(b)};var e=c("nullthrows")(d("PageSetUpManagedOnsiteShopInputDataUtils").prepareTaxData(a.payoutTaxInfo));b.channel=a.channel;b.cms_id=a.cmsID;b.birthdate=c("nullthrows")(e.birthdate);b.business_name=e.business_name;b.company_type=e.company_type;b.legal_name=e.legal_name;b.ssn=e.ssn;b.tax_id=e.tax_id;b.tax_id_type=e.tax_id_type;b.currency_code=a.currency;b.payment_type=h.NMOR_CHECKOUT_EXPERIENCES;b.provider_type="BANK_ACCOUNT";b.tax_id_type==="SSN"&&c("CommerceManagerOnboardingTaxIDUtils")(b.ssn)&&(b.tax_id_type="ITIN");e=d("PageSetUpManagedOnsiteShopInputDataUtils").prepareManagedMerchantData({fraudnetSessionID:a.fraudnetSessionID});b.paypal_fraudnet_id=e.paypal_fraudnet_id;return babelHelpers["extends"]({},b)}function l(a){var b,e=d("PageSetUpManagedOnsiteShopInputDataUtils").getPayoutBankInfoFromSellerPayoutBankInfo(a.payoutBankInfo);e={address:babelHelpers["extends"]({},a.address),alert_email:a.alertEmail,bank_country:(b=c("nullthrows"))(a.address.country),bank_info:b(e),channel:a.channel,cms_id:a.cmsID,country_code:b(a.address.country),currency_code:a.currency,payment_type:h.NMOR_CHECKOUT_EXPERIENCES,provider_type:"BANK_ACCOUNT",source:a.source,state_tax_registration_numbers:a.USAStateRegNums.map(function(a){return{state_code:c("USAStateAbbreviations")[a.USAState],tax_registration_number:a.regNum}}),utm_params:a.utmParams,vat_address:babelHelpers["extends"]({},a.vatAddress),vat_id:a.vatID};var f=b(d("PageSetUpManagedOnsiteShopInputDataUtils").prepareTaxData(a.payoutTaxInfo));e.birthdate=b(f.birthdate);e.business_name=f.business_name;e.company_type=f.company_type;e.legal_name=f.legal_name;e.ssn=f.ssn;e.tax_id=f.tax_id;e.tax_id_type=f.tax_id_type;e.tax_id_type==="SSN"&&c("CommerceManagerOnboardingTaxIDUtils")(e.ssn)&&(e.tax_id_type="ITIN");b=d("PageSetUpManagedOnsiteShopInputDataUtils").prepareManagedMerchantData({fraudnetSessionID:a.fraudnetSessionID,merchantCategoryCode:a.merchantCategoryCode});e.merchant_category_code=c("nullthrows")(b.merchant_category_code);e.paypal_fraudnet_id=b.paypal_fraudnet_id;return babelHelpers["extends"]({},e)}g.prepareOnsiteBusinessAccountSetupData=a;g.prepareIGSandboxOnsiteBusinessAccountSetupData=b;g.preparePreferencesSetupData=e;g.prepareOnsiteConversionPreferencesSetupData=f;g.prepareFbePreferencesSetupData=i;g.preparePayoutsSetupData=j;g.prepareSunriseConversionPayoutsSetupData=k;g.prepareOnsiteConversionPayoutsSetupData=l}),98);
-----
FBPayAddressTypeahead.react",["BaseTypeahead.react","CometFormTypeaheadLayoutContextualStrategy.react","FBPayAddressTypeaheadDetailsQuery.graphql","FBPayAddressTypeaheadInputStrategy.react","FBPayAddressTypeaheadViewListStrategy","FBPayECPAddressTypeaheadLogger","FBPayECPConstantsUtils","FBPayECPFormFieldIDUtils","RelayHooks","fbpayECPCastFieldIDToAutoCompleteType","fbpayECPParseAddressTypeaheadData","promiseDone","react","useFBPAYAddressSuggestionsDataSource","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useState;e={view:{borderTopWidth:"x972fbf",borderEndWidth:"xcfux6l",borderBottomWidth:"x1qhh985",borderStartWidth:"xm0m39n",$$css:!0}};var l={viewXStyle_DO_NOT_USE:e.view},m="street1",n=h!==void 0?h:h=b("FBPayAddressTypeaheadDetailsQuery.graphql");function a(a){var b=a.addressTypeaheadSessionId,e=a.country,f=a.ecpFormErrorStatus,g=a.handlePressTypeaheadAddress,h=a.helperText,i=a.isBillingAddress;i=i===void 0?!1:i;var o=a.isDesktop,p=a.isNUXForm,q=p===void 0?!1:p;p=a.label;var r=a.loggingData,s=a.maxResults,t=a.onBlur,u=a.onChange,v=a.productId,w=a.setAddressTypeaheadSessionId,x=a.street1Value,y=x===void 0?"":x;x=a.testid;a=a.valueType;var z=c("fbpayECPCastFieldIDToAutoCompleteType")(m),A=k(!1),B=A[0],C=A[1];A=k(null);var D=A[0],E=A[1];A=k([]);var F=A[0],G=A[1];A=k(!1);var H=A[0],I=A[1];A=k(null);var J=A[0],K=A[1];A=k(null);var L=A[0],M=A[1];A=k(null);var N=A[0],O=A[1];A=k(z);var P=A[0],Q=A[1],R=new(c("FBPayECPAddressTypeaheadLogger"))(r==null?void 0:r.loggingPolicy,(A=r==null?void 0:r.productID)!=null?A:"",r==null?void 0:r.productType,r==null?void 0:r.platform,r==null?void 0:r.sessionID,r==null?void 0:r.oneTimeCheckoutStatus,r==null?void 0:r.isSubscriptionEnabled,r==null?void 0:r.isDesktop,r==null?void 0:r.productExtraLoggingData),S=R.getSessionID();A=c("useFBPAYAddressSuggestionsDataSource")(e,y,b,s,S,v,r==null?void 0:r.productType);e=function(a){return j.jsx(c("FBPayAddressTypeaheadViewListStrategy"),babelHelpers["extends"]({attributionIconNeeded:J,darkIconUri:N,isDesktop:o,lastSuggestedEntries:F,lightIconUri:L,logger:R,onPressEnterManually:function(a){Q(z),C(a),R.logUserClickEcpAddresstypeaheadAtomic("enter_address_manually",y.length.toString())},queryString:y,setAttributionIconUsabilityAndUri:function(a,b,c){K(a),M(b),O(c)},setAutoCompleteState:Q,setLastSuggestedEntries:function(a){G(a)},shouldDisableTypeahead:B},a))};var T=function(a){var b=[];Object.keys(a).forEach(function(c){if(a[c]!==""){b.push((c=d("FBPayECPFormFieldIDUtils").castFieldIDToUPLFieldName(c,q))!=null?c:"")}});return b},U=d("RelayHooks").useRelayEnvironment();s=function(a){R.logClientAddEcpAddresstypeaheadInit();var e=a.rawData.suggestions.address_id;if(e==null){var f;R.logUserClickEcpAddresstypeaheadAtomic("address_suggestion",y.length.toString(),(f=a.rawData.suggestions.address_details)==null?void 0:(f=f.index)==null?void 0:f.toString());f=c("fbpayECPParseAddressTypeaheadData")(a);g(f)}else{I(!0);R.logClientAddDebugAtomic(S,Date.now().toString(),{debug_step:"ecp_address_typeahead_fetch_detailed_address"},{isUplSessionIdValid:"false"});R.logUserClickEcpAddresstypeaheadAtomic("address_suggestion",y.length.toString(),(f=a.rawData.suggestions.index)==null?void 0:f.toString());c("promiseDone")(d("RelayHooks").fetchQuery(U,n,{address_id:e,payment_product_id:v,payment_type:d("FBPayECPConstantsUtils").castAllPaymentTypeFields(r==null?void 0:r.productType),session_id:b,upl_session_id:S},{fetchPolicy:"network-only"}).toPromise().then(function(a){a=a==null?void 0:(a=a.fetch_address_details)==null?void 0:a.address;if(a!==null){var b;a={city:(b=a==null?void 0:a.city)!=null?b:"",state:(b=a==null?void 0:a.state_code)!=null?b:"",street1:(b=a==null?void 0:a.address_line_1)!=null?b:"",street2:(b=a==null?void 0:a.address_line_2)!=null?b:"",zip:(b=a==null?void 0:a.postal_code)!=null?b:"",zipSuffix:(b=a==null?void 0:a.postal_code_suffix)!=null?b:""};R.logClientAddEcpAddresstypeaheadSuccess(T(a));g(a)}I(!1)})["catch"](function(a){a={error_message:a};R.logClientAddEcpAddresstypeaheadFail(a)})["finally"](function(){I(!1),w(c("uuidv4")())}))}E(!0)};return j.jsx(c("BaseTypeahead.react"),{dataSource:A,inputExtraProps:{autoCompleteState:P,disableBlurFocus:function(){E(!1)},ecpFormErrorStatus:f,field_id:m,helperText:h,isBillingAddress:i,isLoadingState:H,isNUXForm:q,logger:R,onBlur:t,shouldBlurFocus:D,testid:x,value_type:a},inputStrategyRenderer:c("FBPayAddressTypeaheadInputStrategy.react"),label:p,layoutStrategyRenderer:c("CometFormTypeaheadLayoutContextualStrategy.react"),onChange:function(a){u(a,m),a.length>0&&!B&&R.logClientLoadEcpAddresstypeaheadInit()},onPressEntry:s,queryString:y,shouldQueryStringFollowHighlightedEntry:!1,shouldQueryStringUpdateFromSelectedEntryOnClick:!1,viewStrategyRenderer:e,xstyles:l})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useFBPAYAddressSuggestionsDataSource",["FBPayECPConstantsUtils","WebPixelRatio","useCometTypeaheadGraphQLDataSource","useFBPAYAddressSuggestionsDataSourceQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("useFBPAYAddressSuggestionsDataSourceQuery.graphql");function a(a,b,e,f,g,h,k){return c("useCometTypeaheadGraphQLDataSource")({gqlQuery:i,limit:f,normalize:j,queryVariablesBuilderFunction:function(){return{country:a,max_results:f,payment_product_id:h,payment_type:d("FBPayECPConstantsUtils").castAllPaymentTypeFields(k),query_input:b,scale:d("WebPixelRatio").get(),session_id:e,upl_session_id:g}}})}function j(a){var b;if(!a)return[];a=a.fetch_address_suggestions;var c=a==null?void 0:(b=a.attribution)==null?void 0:(b=b.icon_dark)==null?void 0:b.uri,e=a==null?void 0:(b=a.attribution)==null?void 0:(b=b.icon_light)==null?void 0:b.uri;return(a==null?void 0:a.suggestions.length)===0?[{key:d("FBPayECPConstantsUtils").NO_TYPEAHEAD_SUGGESTION_AVAILABLE,label:d("FBPayECPConstantsUtils").NO_TYPEAHEAD_SUGGESTION_AVAILABLE,rawData:{suggestions:{}},type:"entry"}]:(b=a==null?void 0:a.suggestions.map(function(a,b){var d=a.address_details,f=a.address_id,g=a.main_text;a=a.secondary_text;if(f!==null){var h;return{key:(h=f)!=null?h:"",label:(h=f)!=null?h:"",rawData:{attribution:{icon_path_dark:c,icon_path_light:e},suggestions:{address_id:(h=f)!=null?h:"",index:b,main_text_matched_string:(f=g==null?void 0:g.matched_substring)!=null?f:[],main_text_value:(h=g==null?void 0:g.value)!=null?h:"",secondary_text_matched_string:(f=a==null?void 0:a.matched_substring)!=null?f:[],secondary_text_value:(g=a==null?void 0:a.value)!=null?g:""}},type:"entry"}}else{return{key:(h=d==null?void 0:d.address_line_1)!=null?h:"",label:(f=d==null?void 0:d.address_line_1)!=null?f:"",rawData:{suggestions:{address_details:{address_line_1:d==null?void 0:d.address_line_1,address_line_2:d==null?void 0:d.address_line_2,city:d==null?void 0:d.city,index:b,postal_code:d==null?void 0:d.postal_code,state:d==null?void 0:d.state,state_code:d==null?void 0:d.state_code}}},type:"entry"}}}))!=null?b:[]}g["default"]=a}),98);
-----
AllPaymentTypeFields",[],(function(a,b,c,d,e,f){a=Object.freeze({PAYMENT_SETTINGS:"payment_settings",PAYOUTHUB_MSC:"payouthub_msc",IG_PAYMENT_SETTINGS:"ig_payment_settings",UNKNOWN:"unknown",CAL_SETTING:"cal_setting",MP_PAYMENT_SETTINGS:"mp_payment_settings",FBPAY_HUB:"fbpay_hub",META_PAY_WALLET:"meta_pay_wallet",ECP:"ecp",DIGITAL_CODE:"digital_code",OFFER:"offer",LOYALTY:"loyalty",MERCHANT_LOYALTY:"merchant_loyalty",MERCHANT_ONBOARDING:"MERCHANT_ONBOARDING",MENU:"menu",IAP_ALL_PRODUCTS:"iap_all_products",IAP_INSTANT_GAME:"iap_instant_game",IAP_FAN_FUNDING:"iap_fan_funding",IAP_GAME_TIPPING:"iap_game_tipping",IAP_GROUP_SUBSCRIPTION:"iap_group_subscription",IAP_INSTAGRAM_P2A:"iap_instagram_p2a",IAP_INSTAGRAM_USERPAY_BADGES:"iap_instagram_userpay_badges",IAP_PAID_ONLINE_EVENT:"iap_paid_online_event",IAP_SUPER_MEET_AND_GREET:"iap_super_meet_and_greet",IAP_SUPER_VIRTUAL_GIFT:"iap_super_virtual_gift",IAP_INSTAGRAM_FAN_SUBS:"iap_instagram_fan_subs",IAP_AVATAR_CONTENT:"iap_avatar_content",IAP_NFT:"iap_nft",IAP_NON_CONSUMABLE_VIDEO:"iap_non_consumable_video",IAP_GAMES_SUBSCRIPTION:"iap_games_subscription",IAP_HORIZON_PURCHASES:"iap_horizon_purchases",IAP_WA_BUSINESS_SUBS:"iap_wa_business_subscription",IAP_WA_PAID_CHANNEL:"iap_wa_paid_channel",IAP_ADS_BILLING:"iap_ads_billing",IAP_INSTAGRAM_CONTENT_APPRECIATION:"iap_instagram_content_appreciation",IAP_META_GEM:"iap_meta_gem",IAP_MV_PAID_TOKEN:"iap_mv_paid_token",IAP_NME_SUBSCRIPTION:"iap_nme_subscription",IAP_WA_BUSINESS_CREDIT:"iap_wa_business_credit",IAP_AFS_SUBSCRIPTION:"iap_afs_subscription",IAP_MV4B:"iap_mv4b",IAP_DCP_DEMO:"iap_dcp_demo",IAP_AI_PREMIUM:"iap_ai_premium",FB_BROWSER_PAYMENT:"fb_browser_payment",MOR_NONE:"mor_none",MOR_ADS_CONSENT:"mor_ads_consent",MOR_ADS_CONSENT_AFA:"mor_ads_consent_afa",MOR_ADS_AFA:"mor_ads_afa",MOR_WA_PAID_MESSAGING:"mor_wa_paid_messaging",MOR_WA_PAID_MESSAGING_AUTH:"mor_wa_paid_messaging_auth",MOR_BIZ_MESSAGING:"mor_biz_messaging",MOR_WHATSAPP_SMB:"mor_whatsapp_smb",MOR_WHATSAPP_SMB_TOPUP:"mor_whatsapp_smb_topup",MOR_ADS_INVOICE:"mor_ads_invoice",MOR_ADS_AUTH:"mor_ads_auth",MOR_ADS_RISK_3DS_AUTHENTICATION:"mor_ads_risk_3ds_authentication",MOR_ADS_BUSINESS:"mor_ads_business",MOR_ADS_STORED_BALANCE:"mor_ads_stored_balance",MOR_DONATIONS:"mor_donations",MOR_DONATIONS_CAUSE_FOR_CHARITIES:"mor_donations_cause_for_charities",MOR_DONATIONS_MATCHING_CONFIRMATION:"mor_donations_matching_confirmation",MOR_DONATIONS_MATCHING_PLEDGE:"mor_donations_matching_pledge",MOR_OCULUS_CV1:"mor_oculus_cv1",MOR_OCULUS_LAUNCH_V1:"mor_oculus_launch_v1",MOR_OCULUS_LAUNCH_V2:"mor_oculus_launch_v2",MOR_OCULUS_SUBSCRIPTION:"mor_oculus_subscription",MOR_OZONE:"mor_ozone",MOR_OPEN_GRAPH_PRODUCT:"mor_open_graph_product",MOR_MESSENGER_COMMERCE:"mor_messenger_commerce",MOR_P2P_TRANSFER:"mor_p2p_transfer",MOR_GIFTS:"mor_gifts",MOR_BILL:"mor_bill",MOR_AIRMAIL:"mor_airmail",MOR_EVENT_TICKETING:"mor_event_ticketing",MOR_WORKPLACE_USAGE:"mor_workplace_usage",MOR_FACEBOOK_SHOP:"mor_facebook_shop",MOR_FAN_FUNDING:"mor_fan_funding",MOR_VOICES:"mor_voices",MOR_GAME_TIPPING_TOKEN:"mor_game_tipping_token",MOR_INSTANT_GAMES:"mor_instant_games",MOR_GAMES_SUBSCRIPTION:"mor_games_subscription",MOR_ALT_APP_STORES:"mor_alt_app_stores",MOR_GROUP_SUBSCRIPTION:"mor_group_subscription",MOR_PAID_ONLINE_EVENT:"mor_paid_online_event",MOR_SUPER_MEET_AND_GREET:"mor_super_meet_and_greet",MOR_SUPER_VIRTUAL_GIFT:"mor_super_virtual_gift",MOR_NON_CONSUMABLE_VIDEO:"mor_non_consumable_video",MOR_AFS_SUBSCRIPTION:"mor_afs_subscription",MOR_PAYOUT_DEV:"mor_payout_dev",MOR_PAYOUT_CHARITY:"mor_payout_charity",MOR_PAYOUT_ADNET:"mor_payout_adnet",MOR_PAYOUT_OCU:"mor_payout_ocu",MOR_PAYOUT_DCP:"mor_payout_dcp",MOR_PAYOUT_AUTOPAY:"mor_payout_autopay",MOR_PAYOUT_MISCAP:"mor_payout_miscap",MOR_PAYOUT_CONTENT:"mor_payout_content",MOR_REPAYMENT:"mor_repayment",MOR_THIRD_PARTY_APP_STORES_IAP:"mor_third_party_app_stores_iap",MOR_CP_RETURN_LABEL:"mor_cp_return_label",MOR_WHATSAPP_P2P:"mor_whatsapp_p2p",MOR_NME_SUBSCRIPTION:"mor_nme_subscription",MOR_MV4B:"mor_mv4b",MOR_AI_PREMIUM:"mor_ai_premium",MOR_BILLING_OMEGA_INVOICE:"mor_billing_omega_invoice",NMOR_UNKNOWN:"nmor_unknown",NMOR_NONE:"nmor_none",NMOR_PAGES_COMMERCE:"nmor_pages_commerce",NMOR_COMPONENT_FLOW:"nmor_component_flow",NMOR_BUSINESS_PLATFORM_COMMERCE:"nmor_business_platform_commerce",NMOR_SYNCHRONOUS_COMPONENT_FLOW:"nmor_synchronous_component_flow",NMOR_EVENT_TICKETING:"nmor_event_ticketing",NMOR_MARKETPLACE_TICKETING:"nmor_marketplace_ticketing",NMOR_PLATFORM_SELF_SERVE:"nmor_platform_self_serve",NMOR_MESSENGER_PLATFORM:"nmor_messenger_platform",NMOR_TIP_JAR:"nmor_tip_jar",NMOR_INSTANT_EXPERIENCES:"nmor_instant_experiences",NMOR_CHECKOUT_EXPERIENCES:"nmor_checkout_experiences",NMOR_C2C_CHECKOUT_EXPERIENCES:"nmor_c2c_checkout_experiences",NMOR_BUY_ON_FACEBOOK:"nmor_buy_on_facebook",NMOR_DONATION_P4P:"nmor_donation_p4p",NMOR_DONATION_P4C:"nmor_donation_p4c",NMOR_DONATION_CIELO:"nmor_donation_cielo",NMOR_NETWORK_TOKEN_NOTIF:"nmor_network_token_notif",NMOR_WHATSAPP_P2P:"nmor_whatsapp_p2p",NMOR_P2P:"nmor_p2p",NMOR_MESSENGER_P2P:"nmor_messenger_p2p",NMOR_MOBILE_TOP_UP:"nmor_mobile_top_up",NMOR_MFS:"nmor_mfs",NMOR_SHIPPING_LABEL_DEPRECATED:"nmor_shipping_label",NMOR_PAGES_SOLUTION_DEPRECATED:"nmor_pages_solution",NMOR_BLACKBAUD_RWR_DONATION:"nmor_blackbaud_rwr_donation",NMOR_MARKETPLACE_SHIPPING:"nmor_marketplace_shipping",NMOR_DUMMY:"nmor_dummy",NMOR_PPGF_DONATION:"nmor_ppgf_donation",NMOR_ADVERTISER_SUBSCRIPTION:"nmor_advertiser_subscription",NMOR_WHATSAPP_P2M:"nmor_whatsapp_p2m",WHATSAPP_P2M_LITE:"whatsapp_p2m_lite",MESSENGER_P2M:"messenger_p2m",NMOR_MOVIE_TICKETING:"nmor_movie_ticketing",NMOR_MESSAGING_COMMERCE:"nmor_messaging_commerce",NMOR_LIBRA:"nmor_libra",NMOR_SERVICES:"nmor_services",IN_APP_WEBVIEWER_PURCHASE:"in_app_webviewer_purchase",IG_NMOR_DONATION_P4P:"ig_nmor_donation_p4p",IG_NMOR_P2B:"ig_nmor_p2b",IG_NMOR_SHOPPING:"ig_nmor_shopping",IG_NMOR_SHOPPING_ONBOARDING:"ig_nmor_shopping_onboarding",IG_MOR_DONATIONS:"ig_mor_donations",IAB_AUTOFILL:"iab_autofill",IAB_AUTOFILL_MIGRATION:"iab_autofill_migration",IAB_AUTOFILL_CROSS_APP:"iab_autofill_cross_app",IAB_AUTOFILL_CROSS_APP_MIGRATION:"iab_autofill_cross_app_migration",IAB_AUTOFILL_BINDING_UPDATER:"iab_autofill_binding_updater",IAB_AUTOFILL_SILENT_BINDING:"iab_autofill_silent_binding",IAB_AUTOFILL_UNBOUND_CARD_TRUSTED_DEVICE_CHAIN:"iab_autofill_unbound_card_trusted_device_chain",CONNECT_VIA_IAW:"connect_via_iaw",NMOR_OFFSITE_SHOPPING:"nmor_offsite_shopping",META_CHECKOUT_SDK:"meta_checkout_sdk",FBPAY_CARD_TOKENIZATION:"fbpay_card_tokenization",CONTACTLESS_PAYMENT:"contactless_payment",NMOR_INSTAGRAM_P2B:"nmor_instagram_p2b",DUMMY_FIRST_PARTY_V2:"dummy_first_party_v2",DUMMY_THIRD_PARTY_V2:"dummy_third_party_v2",SOFT_DESCRIPTOR_AUTH:"soft_descriptor_auth",AD_PUBLISHER:"ad_publisher",ADS_MANAGER:"ads_manager",SIGMA:"sigma",FRAUD_CHECK:"fraud_check",SHOPIFY_API:"shopify_api",PAYMENTS_API_UNKNOWN_PRODUCT:"payments_api_unknown_product",FINANCIAL_SERVICES:"financial_services",INSTAGRAM_P2M:"instagram_p2m",DIGITAL_COLLECTIBLES:"digital_collectibles",IG_DIGITAL_COLLECTIBLES:"ig_digital_collectibles",FB_DIGITAL_COLLECTIBLES:"fb_digital_collectibles",IG_MINTING:"ig_minting",FB_MINTING:"fb_minting",IG_DIGITAL_COLLECTIBLES_PAYMENTS:"ig_digital_collectibles_payments",FB_DIGITAL_COLLECTIBLES_PAYMENTS:"fb_digital_collectibles_payments",BILLING:"billing",BILLING_HUB:"billing_hub",BILLING_WIZARD:"billing_wizard",CREATORS_AS_MARKETER_AFFILIATE:"cam_affiliate",CREATOR_MARKETPLACE:"creator marketplace",META_REWARD:"meta_reward",REWARDS_CENTER:"rewards_center",LITE_CHECKOUT:"lite_checkout",MESSENGER_BUSINESS_MESSAGING_API:"messenger_business_messaging_api",AURORA:"aurora",CARRIER_MONETIZATION:"carrier_monetization",AGE_VERIFICATION_CCV:"age_verification_ccv",TRUST_BINDING:"trust_binding"});f["default"]=a}),66);
-----
Payments3DSCardinalInitComponent.react",["FBPayUPLLogger","FBPaymentsModulesAPIUtils","FBPaymentsSpinner.react","FlexLayout.react","Payments3DSUtils","PaymentsCardinalDeviceDataCollectionComponent.react","PaymentsCardinalStepUpChallengeContainer","ReactDOM","SecurePostMessage","Text","URI","goURI","react","usePayments3DSCardinalFetchStepUpAuthURLMutation"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));b=i;var k=b.useCallback,l=b.useEffect,m=b.useMemo,n=b.useRef,o=b.useState;function a(a){a.accountID;a.actionGroupID;var b=a.appUrl,e=a.cardinalDeviceDataCollectionUrl,f=a.clientState;a.credential;var g=a.credentialAuthenticationID,i=a.isBillingMobile,p=i===void 0?!1:i;i=a.jwtToken;var q=a.paymentType,r=a.productID,s=a.returnMethod,t=a.sessionID,u=a.threeDSUseCase,v=u===void 0?"":u;u=a.wizardSessionID;var w=u===void 0?"":u,x=c("usePayments3DSCardinalFetchStepUpAuthURLMutation")(),y=n(!0);a=o(!1);u=a[0];var z=a[1];a=m(function(){var a=new(c("FBPayUPLLogger"))(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(q.toLowerCase()),d("Payments3DSUtils").getUserPlatform(),t);return{logger:a}},[q,t]);var A=a.logger,B=k(function(a){var e;A.logClientLoadThreedsUnificationInit({product_id:(e=r)!=null?e:"",view_name:"complete_redirect_3ds",flow_session_id:w},{"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.CARDINAL),is_generic_3ds:"true",returnMethod:s,is_billing_mobile:String(p),"3ds_use_case":v});if(s==="post_message")p?d("SecurePostMessage").sendMessageToSpecificOrigin(window.parent,String(a.auth_result).toLowerCase(),document.referrer):d("SecurePostMessage").sendMessageToSpecificOrigin(window.parent,babelHelpers["extends"]({eventName:d("Payments3DSUtils").THREEDS_RESPONSE_MESSAGE},a),document.referrer);else if(s==="app_url"&&b!=null){e=window.atob(b);e=new(h||(h=c("URI")))(e).addQueryData(a).toString();c("goURI")(e)}},[b,p,A,r,s,v,w]),C=k(function(a){a={auth_result:d("Payments3DSUtils").ThreeDSAuthResult.Success,client_state:f,step_up_complete_token:a};B(a);A.logClientFetchThreedsUnificationSuccess({product_id:(a=r)!=null?a:"",view_name:"complete_3ds",flow_session_id:w},{"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.CARDINAL),is_generic_3ds:"true","3ds_use_case":v})},[f,B,A,r,w,v]),D=k(function(){var a=d("Payments3DSUtils").get3DSUserFacingErrorData();a=babelHelpers["extends"]({},a,{auth_result:d("Payments3DSUtils").ThreeDSAuthResult.Failure,client_state:f});B(a);A.logClientFetchThreedsUnificationFail({product_id:(a=r)!=null?a:"",view_name:"complete_3ds",flow_session_id:w},{"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.CARDINAL),is_generic_3ds:"true","3ds_use_case":v})},[f,B,A,r,w,v]);a=k(function(a){var b;a={session_id:t,payment_type:q,credentialAuthenticationId:g,df_ref_id:a,screen_height:window.innerHeight,screen_width:window.innerWidth,product_id:r,wizard_session_id:w,threeds_use_case:v};A.logClientFetchThreedsUnificationInit({product_id:(b=r)!=null?b:"",view_name:"fetch_step_up_auth_url",flow_session_id:w},{"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.CARDINAL),is_generic_3ds:"true","3ds_use_case":v});x(a,function(a){var b;a=(a=a==null?void 0:a.threeds_cardinal_fetch_step_up_auth_url)!=null?a:{};var e=a.status,f=a.step_up_jwt,g=a.step_up_url;a=a.md;f=f==null?void 0:f.token;A.logClientFetchThreedsUnificationSuccess({product_id:(b=r)!=null?b:"",view_name:"fetch_step_up_auth_url",flow_session_id:w},{"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.CARDINAL),is_generic_3ds:"true",status:(b=e)!=null?b:"","3ds_use_case":v});if(e===d("Payments3DSUtils").ThreeDSLookupStatus.PENDING&&g!=null&&f!=null&&a!=null){z(!1);b=document.createElement("div");document.body&&document.body.prepend(b);d("ReactDOM").createRoot(b).render(j.jsx(c("PaymentsCardinalStepUpChallengeContainer"),{md:a,stepUpJwt:f,stepUpUrl:g,onError:D,onSuccess:function(a){C(a)},logger:A,productID:r,wizardSessionID:w,threeDSUseCase:v}))}else if(e===d("Payments3DSUtils").ThreeDSLookupStatus.COMPLETED)C();else if(e===d("Payments3DSUtils").ThreeDSLookupStatus.FAILED){D();A.logClientFetchThreedsUnificationFail({product_id:(b=r)!=null?b:"",view_name:"fetch_step_up_auth_url",flow_session_id:w},{"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.CARDINAL),is_generic_3ds:"true",status:d("Payments3DSUtils").ThreeDSLookupStatus.FAILED,"3ds_use_case":v})}},function(a){var b;D();b={product_id:(b=r)!=null?b:"",view_name:"fetch_step_up_auth_url",flow_session_id:w};var c={"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.CARDINAL),is_generic_3ds:"true",status:d("Payments3DSUtils").ThreeDSLookupStatus.FAILED,"3ds_use_case":v};if(a!=null&&a.message!=null){var e;c=babelHelpers["extends"]({},c,{errorMessage:a.message.toString(),errorTitle:a.title==null?"":a.title.toString(),exceptionClass:String(a.exceptionClass),errorCode:String(a.code),serverErrorMessage:(e=a.serverErrorMessage)!=null?e:"",stack:(e=a.stack)!=null?e:""})}else if(a!=null&&a.errorCode!=null){c=babelHelpers["extends"]({},c,{errorCode:String(a.errorCode),errorDescription:a.errorDescription,errorTitle:a.errorTitle,extraData:(e=a.extraData)!=null?e:"",flowStep:a.flowStep,serverErrorMessage:(e=a.serverErrorMessage)!=null?e:"",exceptionClass:(e=a.exceptionClass)!=null?e:""})}A.logClientFetchThreedsUnificationFail(b,c)})},[t,q,g,r,w,A,v,x,D,C]);l(function(){z(!0)},[]);l(function(){if(y.current===!0){var a;y.current=!1;A.logClientRenderThreedsUnificationDisplay({view_name:"3ds_cardinal_init_component",product_id:(a=r)!=null?a:"",flow_session_id:w},{credential_authentication_id:g,"3ds_processor":String(d("Payments3DSUtils").ThreeDSProcessor.CARDINAL),is_generic_3ds:"true","3ds_use_case":v})}},[g,e,i,a,C,D,A,r,w,v]);var E=j.jsx("div",{className:"x6s0dn4 x78zum5 xl56j7k x1jn0hjm","data-testid":void 0,children:j.jsxs(c("FlexLayout.react"),{direction:"vertical",align:"center",children:[j.jsx(c("FBPaymentsSpinner.react"),{}),j.jsx("div",{className:"x1anpbxc",children:j.jsx(c("Text"),{style:{fontSize:20,fontWeight:"500"},children:d("Payments3DSUtils").THREEDS_LOADING_BODY})}),j.jsx("div",{className:"x1k70j0n",children:j.jsx(c("Text"),{style:{fontSize:16,fontWeight:"200"},children:d("Payments3DSUtils").THREEDS_LOADING_SUB_BODY})})]})});return j.jsxs(j.Fragment,{children:[u&&E,j.jsx(c("PaymentsCardinalDeviceDataCollectionComponent.react"),{cardinalDeviceDataCollectionUrl:e,jwtToken:i,onError:D,onSuccess:a,logger:A,productID:r,wizardSessionID:w,threeDSUseCase:v})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
usePaymentsCometGetCardPaymentMethodInfoQuery",["CometRelay","FBPayUPLLogger","FBPaymentsModulesAPIUtils","gkx","promiseDone","usePaymentsCometGetCardPaymentMethodInfoQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("usePaymentsCometGetCardPaymentMethodInfoQuery.graphql");function j(a){a=a==null?void 0:a.replace(/ /g,"");return a==null||(a==null?void 0:a.length)<6?null:a.slice(0,6)}function a(a){var b=a.onError,e=a.onSuccess,f=d("CometRelay").useRelayEnvironment();return function(a,g,h){var k={payment_method:{instrument_type:"CC",provider:"CREDIT_CARD"}};if(a!=null){var l;l=((l=a.selectedCredential)==null?void 0:l.credentialType)==="CREDIT_CARD"||((l=a.selectedCredential)==null?void 0:l.credentialType)==="NEW_CREDIT_CARD";var m=a.paymentType,n=c("gkx")("22991");if(!l||n){e(!1,h);return}k=babelHelpers["extends"]({account_currency:(l=a.userCurrency)!=null?l:"",cc_country_code:(n=a.geoCountry)!=null?n:"",cc_number_bin:j((l=a.selectedCredential)==null?void 0:(n=l.creditCardData)==null?void 0:n.cardNumber),credential_id:(l=a.selectedCredential)==null?void 0:l.credentialID,item_type:m},k)}else{k=babelHelpers["extends"]({account_currency:(n=g==null?void 0:g.currency)!=null?n:"",cc_country_code:(l=g==null?void 0:g.country)!=null?l:"",cc_number_bin:j(g==null?void 0:g.cardNumber),item_type:"FBPAY_HUB"},k)}var o=new(c("FBPayUPLLogger"))(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(k.item_type.toLowerCase()),"comet",a==null?void 0:a.clientSessionID);o.logClientLoadThreedsInit({target_name:"3ds_eligibility_query"},{account_currency:(m=k)==null?void 0:m.account_currency,cc_country_code:k.cc_country_code,credential_id:(l=a==null?void 0:(n=a.selectedCredential)==null?void 0:n.credentialID)!=null?l:""});c("promiseDone")(d("CometRelay").fetchQuery(f,i,{input:babelHelpers["extends"]({logging_id:o.getSessionID()},k)}).toPromise(),function(a){var b;if((a==null?void 0:(b=a.card_payment_method_info_query)==null?void 0:b.requires_3ds)===!0&&(a==null?void 0:(b=a.card_payment_method_info_query)==null?void 0:b.mpi_processor)==="CARDINAL_3DS2"){o.logClientLoadThreedsSuccess({target_name:"3ds_eligibility_query"},{is_eligible:"1"});return e(!0,h)}else{o.logClientLoadThreedsSuccess({target_name:"3ds_eligibility_query"},{is_eligible:"0"});return e(!1,h)}},function(a){b()})}}g["default"]=a}),98);
-----
FBPayAuthAPIUtils",["CurrentUser","FBLogger","FBPayAuthLibrary","FBPayAuthLibraryCommon","FBPayCreateFBPayPINMutation","FBPayDisableFBPayPINMutation","FBPayEnableFBPayPINMutation","FBPayGetServerEncryptionKeyMutation","FBPayUpdatePaymentsPINMutation","FBPayVerifyAuthFactorMutation","FBPaymentsModulesAPIUtils","Promise","RelayFBEnvironment","URI","promiseDone","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=3;function a(a,e,f,g){var h={actor_id:c("CurrentUser").getID(),client_mutation_id:c("uuidv4")(),device_id:"device_id",payment_type:(a=a)!=null?a:"FBPAY_HUB",target_account_id:(a=e)!=null?a:null,fetch_unified_wallet_key:(e=f)!=null?e:!1,logging_id:(a=g)!=null?a:null};return new(i||(i=b("Promise")))(function(a,b){var e=function(e){c("promiseDone")(d("FBPayGetServerEncryptionKeyMutation").getServerEncryptionKey(h),function(f){var g=f.trustChain;f=f.isDevExternal;c("promiseDone")(d("FBPayAuthLibraryCommon").getCryptoKeyFromCert(g,f),function(b){e=0,a(b)},function(a){e===1&&b(a)})},function(a){b(a)}),f=e};for(var f=j;f>=1;f--)e(f)})}function e(a,b,d){a=new(h||(h=c("URI")))(window.location.href).addQueryData({payment_method_id:a,target_account_id:b,session_id:d});return a.toString()}function f(a,b,e,f,g){var h={data:{app_id:"2805739562851096",auth_ticket_type:"PIN",caps:["CHARGE"],device_id:"12345",pin:"$e2ee"},nonce:c("uuidv4")(),op:"CREATE_FBPAY_PIN",ver:1};a={pin:a};var i=c("RelayFBEnvironment");c("promiseDone")(d("FBPayAuthLibrary").getPTT(h,a),function(a){var h=a.keyPairs;a=a.ptt;c("FBPayCreateFBPayPINMutation")(i,{client_mutation_id:c("uuidv4")(),actor_id:c("CurrentUser").getID(),payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(b),platform_trust_token:a,logging_id:g,format_type:"NUM_4_DIGITS"},function(a){e(h)},function(a){f(a)})},function(a){f(a)})}function k(a,b,e,f,g,h){var i=d("FBPayAuthLibraryCommon").getVerifyAuthData(a,["CHARGE","DISABLE_FBPAY_PIN","ENABLE_FBPAY_PIN"],c("uuidv4")());a=a.authFactorType==="PIN"?{pin:f}:a.authFactorType==="CSC"?{csc:f}:{};var j=c("RelayFBEnvironment");c("promiseDone")(d("FBPayAuthLibrary").getPTT(i,a),function(a){var f,i=a.keyPairs;a=a.ptt;c("FBPayVerifyAuthFactorMutation")(j,{client_mutation_id:c("uuidv4")(),actor_id:(f=c("CurrentUser").getID())!=null?f:"",platform_trust_token:a,payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(b),logging_id:e},function(a){g(i)},function(a){h(a)})},function(){h({remainingAttempts:null})})}function l(a,b,e,f,g,h,i){b=d("FBPayAuthLibraryCommon").getVerifyAuthData(b,e,c("uuidv4")(),a);var j=c("RelayFBEnvironment");c("promiseDone")(d("FBPayAuthLibraryCommon").getPTTWithoutEncryption(b),function(a){var b,e=a.keyPairs;a=a.ptt;c("FBPayVerifyAuthFactorMutation")(j,{client_mutation_id:c("uuidv4")(),actor_id:(b=c("CurrentUser").getID())!=null?b:"",platform_trust_token:a,payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(f),logging_id:g},function(a){h(e)},function(a){i(a)})},function(){i({remainingAttempts:null})})}function m(a,b,e,f,g,h,i,j){a=d("FBPayAuthLibraryCommon").getVerifyAuthData(a,["CHARGE"],c("uuidv4")());var k={pin:b},l=c("RelayFBEnvironment"),m={client_mutation_id:c("uuidv4")(),actor_id:c("CurrentUser").getID(),payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(g),logging_id:j,new_pin:{sensitive_string_value:b}};e!=null?m=babelHelpers["extends"]({},m,{old_pin:{sensitive_string_value:e}}):f!=null&&(m=babelHelpers["extends"]({},m,{password:{sensitive_string_value:f}}));c("promiseDone")(d("FBPayAuthLibrary").getPTT(a,k),function(a){var b=a.keyPairs;a=a.ptt;m=babelHelpers["extends"]({},m,{platform_trust_token:a});d("FBPayUpdatePaymentsPINMutation").updatePaymentsPIN(l,m,function(a){h(b)},function(a){i(a)})},function(a){i(a)})}function n(a,b,e,f,g){var h={data:{},nonce:c("uuidv4")(),op:"DISABLE_FBPAY_PIN",ver:1},i=c("RelayFBEnvironment");k({authFactorType:"PIN"},a,b,e,function(e){c("promiseDone")(d("FBPayAuthLibrary").getPTT(h,{},e),function(e){e.keyPairs;e=e.ptt;c("FBPayDisableFBPayPINMutation")(i,{client_mutation_id:c("uuidv4")(),actor_id:c("CurrentUser").getID(),platform_trust_token:e,payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(a),logging_id:b},function(a){f()},function(){g({remainingAttempts:null})})},function(){g({remainingAttempts:null})})},function(a){g(a)})}function o(a,b,e,f,g){var h={data:{},nonce:c("uuidv4")(),op:"ENABLE_FBPAY_PIN",ver:1},i=c("RelayFBEnvironment");k({authFactorType:"PIN"},a,b,e,function(e){c("promiseDone")(d("FBPayAuthLibrary").getPTT(h,{},e),function(e){e.keyPairs;e=e.ptt;c("FBPayEnableFBPayPINMutation")(i,{client_mutation_id:c("uuidv4")(),actor_id:c("CurrentUser").getID(),platform_trust_token:e,payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(a),logging_id:b},function(a){f()},function(){g({remainingAttempts:null})})},function(){g({remainingAttempts:null})})},function(a){g(a)})}function p(a){switch(a){case"PIN":return 70;case"CSC":return 67;case"PAYPAL_ACCESS_TOKEN":return 80;case"SDC":return 68;default:throw c("FBLogger")("fbpay").mustfixThrow("Not supported auth factor type")}}g.getServerPublicCryptoKey=a;g.getPaypalredirectSuccessURL=e;g.createFBPayPIN=f;g.verifyAuthFactor=k;g.verifyAuthFactorPaypal=l;g.updatePIN=m;g.disableFBPayPIN=n;g.enableFBPayPIN=o;g.getAuthTicketType=p}),98);
-----
PaymentsCometTransactionHubPINDialogContent.react",["fbt","CometLink.react","FBPayCometAuthAPIUtils","FBPayCometAuthString","FBPayCometGatingUtils","FBPayECPActionButton.react","FBPayECPFormTextInput.react","FBPayECPText.react","FBPayLoggingContext","FBPaymentsLoggerConstants","FBPaymentsModulesAPIUtils","FBPaymentsPINInputFieldContainerV2.react","PaymentsCometOverlayLoadingSpinner.react","PaymentsCometSpinner.react","PaymentsCometTransactionHubAPIUtils","PaymentsCometTransactionHubContext","PaymentsCometTransactionHubPINFlowStep","PaymentsCometTransactionHubPINFlowType","TetraButton.react","XRecoverInitiateControllerRouteBuilder","emptyFunction","gkx","react","setTimeout","usePaymentsCometAddPINMutation","usePaymentsCometSwitchPINMutation","usePaymentsCometUpdateFBPayPINWithPW","usePaymentsCometUpdatePINMutation","usePaymentsCometVerifyPINMutation","usePaymentsCometVerifyPasswordMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useContext,aa=b.useEffect,l=b.useState,m={CONFIRM_PIN:"CONFIRM_PIN",CREATED_PIN:"CREATED_PIN",ENTER_PIN:"ENTER_PIN"},ba=["ENABLE_FBPAY_PIN"],n=1500,o=500,ca=0,da=2,ea=4,fa=2e3;function a(a){var b=a.context;b=b===void 0?c("PaymentsCometTransactionHubContext"):b;var e=a.ecpLogger,f=a.enableForgetPINButton,g=f===void 0?!0:f;f=a.isDesktop;f=f===void 0?!0:f;var i=a.onFlowStepChange,p=a.onSubmitNewAPI,q=p===void 0?c("emptyFunction"):p;p=a.paymentType;var r=p===void 0?"FBPAY_HUB":p;p=a.productCap;p=p===void 0?ba:p;var s=a.productID,t=a.receiverID,u=a.flowStep,v=a.onClose,w=v===void 0?c("emptyFunction"):v;v=a.onSubmit;var x=v===void 0?c("emptyFunction"):v,y=a.pinFlowType,z=a.pinStatus,A=c("usePaymentsCometSwitchPINMutation")(),ga=c("usePaymentsCometVerifyPasswordMutation")(),ha=c("usePaymentsCometVerifyPINMutation")(),ia=d("FBPayCometAuthAPIUtils").usePaymentsCometVerifyAuthFactor(),ja=d("FBPayCometAuthAPIUtils").usePaymentsCometDisableFBPayPIN(),ka=d("FBPayCometAuthAPIUtils").usePaymentsCometEnableFBPayPIN(),la=d("FBPayCometAuthAPIUtils").usePaymentsCometResetFBPayPIN(),ma=d("FBPayCometAuthAPIUtils").usePaymentsCometCreateFBPayPIN(),na=c("usePaymentsCometAddPINMutation")(),oa=d("usePaymentsCometUpdateFBPayPINWithPW").usePaymentsCometUpdateFBPayPINWithPW(),pa=c("usePaymentsCometUpdatePINMutation")();v=l(!1);a=v[0];var B=v[1];v=l(!1);var qa=v[0],C=v[1];v=l("");var D=v[0],E=v[1];v=l(!1);var ra=v[0],F=v[1];v=l(!1);var sa=v[0],G=v[1];v=l(null);var ta=v[0],H=v[1];v=l(!0);var ua=v[0],va=v[1];v=l("");var I=v[0],wa=v[1];v=l(m.ENTER_PIN);var J=v[0],K=v[1];v=l("");var xa=v[0],ya=v[1];v=l("");var za=v[0],Aa=v[1];v=k(b);var L=v.logger,M=d("FBPayCometGatingUtils").shouldUseNewPINAPIOnComet(r);b=l(null);var Ba=b[0],Ca=b[1];v=k(c("FBPayLoggingContext"));b=v.logger;var N=(v=e)!=null?v:b,O=N.getSessionID(),P=p==="SEND_MONEY"?["SEND_MONEY"]:p.concat(),Q=function(){if(y===c("PaymentsCometTransactionHubPINFlowType").SWITCH_PIN)switch(z){case void 0:return d("FBPaymentsLoggerConstants").LoggerFlowStep.CREATE_PIN;case"ACTIVE":return d("FBPaymentsLoggerConstants").LoggerFlowStep.DISABLE_PIN;case"DISABLED":return d("FBPaymentsLoggerConstants").LoggerFlowStep.ENABLE_PIN;default:return d("FBPaymentsLoggerConstants").LoggerFlowStep.RESET_PIN}else if(y===c("PaymentsCometTransactionHubPINFlowType").CHANGE_PIN)return d("FBPaymentsLoggerConstants").LoggerFlowStep.RESET_PIN},Da=function(){N.setPlatformAndProductType(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(r.toLowerCase()),"comet");switch(u){case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN:N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"fbpay_verify_pin"});return;case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN:J===m.ENTER_PIN?N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"reset_pin"}):J===m.CONFIRM_PIN&&N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"reset_pin_confirm"});return;case c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN:J===m.ENTER_PIN?N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"fbpay_create_pin"}):J===m.CONFIRM_PIN&&N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"fbpay_confirm_pin"});return;case"FORGOT_PIN_PASSWORD_CONFIRM":N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"fbpay_forget_pin"});return;default:return}};aa(function(){Da(),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.DISPLAY).log()},[u,J]);var Ea=j.jsx(c("TetraButton.react"),{label:h._("u5fd8u8bb0 PIN u7801uff1f"),onPress:function(){i(c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.CLICK).addToExtraData("button_click","FORGET").log(),N.logUserClickAuthAtomic({auth_factor_type:70,target_name:"forget_pin_link"})},reduceEmphasis:!0,type:"secondary"});e=c("XRecoverInitiateControllerRouteBuilder").buildURL({});var Fa=j.jsx(c("TetraButton.react"),{label:h._("u5fd8u8bb0u5bc6u7801u4e86uff1f"),linkProps:{target:"_blank",url:e},onPress:function(){N.logUserClickAuthAtomic({auth_factor_type:70,target_name:"forget_password_link"})},reduceEmphasis:!0,type:"secondary"});v=function(){var a;if(g&&(u===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN||u===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN||u===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY))a=Ea;else if(u===c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM||u===c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM)a=Fa;else return null;return j.jsx("div",{className:"xu06os2 x1anpbxc",children:a})};var Ga=function(a){z==="ACTIVE"?A(d("PaymentsCometTransactionHubAPIUtils").prepareSwitchPIN("DISABLED",r,a),R(a),T):A(d("PaymentsCometTransactionHubAPIUtils").prepareSwitchPIN("ACTIVE",r,a),R(a),T),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT).log()},Ha=function(a){z==="ACTIVE"?ja(a,r,O,Z,$,t):ka(a,r,O,Z,$,t)},R=function(a){return function(){Ia(a)}},Ia=function(a){C(!1),K(m.CREATED_PIN),c("setTimeout")(function(){w(),x(a)},n),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS).log()},Ja=function(a){return function(){y===c("PaymentsCometTransactionHubPINFlowType").SWITCH_PIN?Ga(a):Ia(a)}},Ka=function(a,b){y===c("PaymentsCometTransactionHubPINFlowType").SWITCH_PIN?Ha(b):Z(a)},La=function(a){return function(b){var c;c=b==null?void 0:(c=b.switch_payments_pin)==null?void 0:c.success;b=(b=b==null?void 0:(b=b.switch_payments_pin)==null?void 0:b.remain_attempts_count)!=null?b:Infinity;Boolean(c)?(Na(a),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS).log()):(S(b),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.FAIL).setUserFacingMessage(W(b)).log())}},Ma=function(a){return function(b){var c;c=b==null?void 0:(c=b.verify_payments_pin)==null?void 0:c.is_valid;b=(b=b==null?void 0:(b=b.verify_payments_pin)==null?void 0:b.remain_attempts_count)!=null?b:Infinity;Boolean(c)?(Na(a),L.setFlowStep(d("FBPaymentsLoggerConstants").LoggerFlowStep.VERIFY_PIN).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS).log()):(S(b),L.setFlowStep(d("FBPaymentsLoggerConstants").LoggerFlowStep.VERIFY_PIN).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.FAIL).setUserFacingMessage(W(b)).log())}},S=function(a){F(!1),B(!1),G(!0),H(W(a)),c("setTimeout")(function(){G(!1),E("")},o),a===0&&c("setTimeout")(function(){H(null),i(c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM)},fa)},Na=function(a){F(!0),H(""),y===c("PaymentsCometTransactionHubPINFlowType").CHANGE_PIN?Pa():(w(),x(a))},T=function(a){B(!1),C(!1),G(!0),H(a==null?void 0:a.error_description),va(!0),c("setTimeout")(function(){G(!1),E("")},o),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.FAIL).setUserFacingMessage(a==null?void 0:a.error_description).log()},Oa=function(){B(!1),i(c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN)},Pa=function(){B(!1),i(c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN)};b=function(){switch(u){case c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN:if(J===m.CONFIRM_PIN)return h._("u518du6b21u8f93u5165 PIN u7801");else if(J===m.CREATED_PIN)return h._("PIN u7801u5df2u521bu5efa");else return h._("u521bu5efa PIN u7801");case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN:return h._("u8f93u5165 PIN u7801");case c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM:return h._("u5fd8u8bb0 PIN u7801uff1f");case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN:if(J===m.CONFIRM_PIN)return h._("u518du6b21u8f93u5165u65b0 PIN u7801");else if(J===m.CREATED_PIN)return h._("PIN u7801u5df2u521bu5efa");else return y===c("PaymentsCometTransactionHubPINFlowType").CHANGE_PIN?h._("u66f4u6539 PIN u7801"):h._("u91cdu7f6e PIN u7801");case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM:return h._("u91cdu7f6e PIN u7801");default:return""}};var U=c("gkx")("22979");p=U&&c("gkx")("23847");var V=c("gkx")("20847")||p;e=function(){switch(u){case c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN:return V?h._("u5728u67d0u4e9bu60c5u51b5u4e0buff0cu4f60u9700u8981u8f93u5165 PIN u7801u8fdbu884cu5b89u5168u9a8cu8bc1u3002u5982u9700u7ba1u7406u652fu4ed8 PIN u7801uff0cu8bf7u8bbfu95ee Meta Pay u8bbeu7f6eu3002"):h._("u5728u67d0u4e9bu60c5u51b5u4e0buff0cu4f60u9700u8981u8f93u5165 PIN u7801u8fdbu884cu5b89u5168u9a8cu8bc1u3002u5982u9700u7ba1u7406u652fu4ed8 PIN u7801uff0cu8bf7u8bbfu95ee Facebook Pay u8bbeu7f6eu3002");case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN:return V?h._("u8f93u5165u4f60u7684 Meta Pay PIN u7801u6765u7ee7u7eedu64cdu4f5cu3002"):h._("u8f93u5165u4f60u7684 Facebook Pay PIN u7801u5e76u7ee7u7eedu64cdu4f5cu3002");case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN:return V?h._("u8f93u5165u4f60u7684 Meta Pay PIN u7801u6765u7ee7u7eedu64cdu4f5cu3002"):h._("u8f93u5165u4f60u7684 Facebook Pay PIN u7801u5e76u7ee7u7eedu64cdu4f5cu3002");case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY:return V?h._("u8bf7u8f93u5165u4f60u7684 Meta Pay PIN u7801u6765u786eu8ba4u652fu4ed8u3002"):h._("u8bf7u8f93u5165u4f60u7684 Facebook Pay PIN u7801u6765u786eu8ba4u652fu4ed8u3002");case c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM:return U?h._("u8bf7u8f93u5165 Instagram u5bc6u7801u6765u91cdu7f6eu4f60u7684 PIN u7801u3002"):h._("u8bf7u8f93u5165 Facebook u5bc6u7801u6765u91cdu7f6eu4f60u7684 PIN u7801u3002");case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN:if(J===m.ENTER_PIN)return V?h._("u8f93u5165u65b0u7684 Meta Pay PIN u7801u3002"):h._("u8f93u5165u65b0u7684 Facebook Pay PIN u7801u3002");else return V?h._("u8f93u5165u65b0u7684 Meta Pay PIN u7801u3002"):h._("u8f93u5165u65b0u7684 Facebook Pay PIN u7801u3002");case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM:return U?h._("u8bf7u5148u8f93u5165 Instagram u5bc6u7801u518du7ee7u7eedu3002"):h._("u8bf7u5148u8f93u5165 Facebook u5bc6u7801u518du7ee7u7eedu3002");default:return""}};var W=function(a){if(a===ca)return h._("PIN u7801u9519u8befu3002u8bf7u91cdu7f6e PIN u7801u3002");return a<=da?h._({"*":"PIN u7801u9519u8befu3002u4f60u8fd8u6709{attempts}u6b21u5c1du8bd5u673au4f1au3002"},[h._plural(a),h._param("attempts",a)]):(D==null?void 0:D.length)===ea&&ra?null:h._("PIN u7801u9519u8befuff0cu8bf7u91cdu8bd5u3002")};p=function(a){Aa(""),u===c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN||u===c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN?J===m.ENTER_PIN?(E(a),K(m.CONFIRM_PIN)):a===D?(Boolean(I)?M?oa(P,a,I,r,O,Ka,$,t):(pa(d("PaymentsCometTransactionHubAPIUtils").prepareUpdatePIN(a,"",I,r,O),Ja(a),T),L.setFlowStep(d("FBPaymentsLoggerConstants").LoggerFlowStep.RESET_PIN_WITH_PASSWORD).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT).log()):Boolean(xa)?(M?la(P,a,r,O,Z,T,Ba,t):pa(d("PaymentsCometTransactionHubAPIUtils").prepareUpdatePIN(a,xa,"",r,O),Ja(a),T),L.setFlowStep(d("FBPaymentsLoggerConstants").LoggerFlowStep.RESET_PIN).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT).log()):M?ma(P,a,r,O,Z,T,t,s):na(d("PaymentsCometTransactionHubAPIUtils").prepareCreatePIN(a,r,O),R(a),T),H(null),C(!0)):(G(!0),H(h._("PIN u7801u4e0du4e00u81f4u3002")),c("setTimeout")(function(){G(!1)},o)):u===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN?(B(!0),E(a),H(null),z==="ACTIVE"?M?ja(a,r,O,Y,$,t):A(d("PaymentsCometTransactionHubAPIUtils").prepareSwitchPIN("DISABLED",r,a),La(a),T):z==="DISABLED"&&(M?ka(a,r,O,Y,$,t):A(d("PaymentsCometTransactionHubAPIUtils").prepareSwitchPIN("ACTIVE",r,a),La(a),T)),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT).log()):u===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN?(B(!0),E(a),ya(a),H(null),M?ia(["RESET_FBPAY_PIN"],{authFactorType:"PIN"},r,O,a,null,Y,$,t,s):ha(d("PaymentsCometTransactionHubAPIUtils").prepareVerifyPIN(r,a,O),Ma(a),T),L.setFlowStep(d("FBPaymentsLoggerConstants").LoggerFlowStep.VERIFY_PIN).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT).log()):u===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY&&(B(!0),E(a),H(null),M?ia(P,{authFactorType:"PIN"},r,O,a,null,Y,$,t,s):ha(d("PaymentsCometTransactionHubAPIUtils").prepareVerifyPIN(r,a,O),Ma(a),T))};var Qa=function(a){Aa(a),H(null)},X=function(a){H(null),va(!((a==null?void 0:a.length)>=1)),wa(a)},Ra=function(){B(!0),H(null),ga(d("PaymentsCometTransactionHubAPIUtils").prepareVerifyPassword(I,r,O),Oa,T)},Y=function(a){F(!0),H(null),u===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY||y===c("PaymentsCometTransactionHubPINFlowType").SWITCH_PIN?(q(a),w()):y===c("PaymentsCometTransactionHubPINFlowType").CHANGE_PIN&&(Ca(a),Pa())},Z=function(a){C(!1),K(m.CREATED_PIN),c("setTimeout")(function(){w(),q(a)},n)},$=function(a){a=a==null?void 0:a.remainingAttempts;a==null?(B(!1),G(!0),H(d("FBPayCometAuthString").GENERAL_ERROR),c("setTimeout")(function(){G(!1),E("")},o)):S(a)},Sa=u===c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN?j.jsx("div",{className:"x6prxxf x1s688f",children:j.jsx(c("CometLink.react"),{href:"https://www.facebook.com/help/1434403039959381",style:{color:"#1877F2"},target:"_blank",children:h._("u8be6u7ec6u4e86u89e3")})}):null,Ta=function(){switch(u){case c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN:case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN:if(qa)return Wa;else if(J===m.CREATED_PIN)return Xa;else return Va;case c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM:case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM:return Ua;case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY:default:return Va}},Ua=j.jsx("div",{className:"xh8yej3",children:j.jsx(c("FBPayECPFormTextInput.react"),{label:h._("u5bc6u7801"),onFieldChange:X,type:"password",value:I})}),Va=j.jsx("div",{className:"xu06os2 x1anpbxc",children:j.jsx(c("FBPaymentsPINInputFieldContainerV2.react"),{disabled:a,isDesktop:f,onNewAttempt:Qa,onPINEnter:p,pin:za,shake:sa,smallerCircle:!0})}),Wa=j.jsx(c("PaymentsCometSpinner.react"),{type:"empty"}),Xa=j.jsx(c("PaymentsCometSpinner.react"),{type:"checkmark"});X=u===c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM||u===c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM?j.jsx("div",{className:"xu06os2 x1anpbxc xh8yej3",children:j.jsx(c("FBPayECPActionButton.react"),{fbActionButton:{reduceEmphasis:!0},isDisabled:ua,label:h._("u7ee7u7eed"),onPress:Ra})}):null;f=Boolean(ta)?j.jsx("div",{className:"xw7yly9",children:j.jsx(c("FBPayECPText.react"),{fbColor:"negative",fbType:"bodyLink3",igText:{color:"errorOrDestructive"},children:ta})}):null;return j.jsxs(j.Fragment,{children:[j.jsxs("div",{className:"x6s0dn4 x78zum5 xdt5ytf xl56j7k x1cnzs8 xc73u3c xx6bls6 x5ib6vp x2b8uid",children:[j.jsx("div",{className:"x1d0ri9u",children:j.jsx(c("FBPayECPText.react"),{fbType:"headlineEmphasized3",igText:{weight:"semibold"},children:b()})}),j.jsxs("div",{className:"xieb3on xw7yly9",children:[j.jsx(c("FBPayECPText.react"),{fbType:"bodyLink3",children:e()}),Sa]}),Ta(),f,X,v()]}),a&&j.jsx(c("PaymentsCometOverlayLoadingSpinner.react"),{})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
PaymentsCometCheckoutPriceTable",["fbt","ix","AllPaymentTypeFields","CometImage.react","CometRow.react","CometRowItem.react","FDSMenuSeparator.react","FDSText.react","FDSTooltip.react","PaymentsCometCheckoutAPIUtils","PaymentsCometCheckoutContext","PaymentsCometCheckoutSectionTitle","getJSEnumSafe","gkx","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react")),l=j.useContext,m={disclaimerItem:{paddingTop:"xyqdw3p",paddingEnd:"x10ogl3i",paddingBottom:"xg8j3zb",paddingStart:"x1k2j06m",$$css:!0},image:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"xng8ra",objectFit:"xl1xv1r",width:"x1247r65",$$css:!0}};function a(a){a=a.priceSubtables;a=a===void 0?[]:a;var b=l(c("PaymentsCometCheckoutContext"));b=b.state;var d=b.totalPrice;d=d||{};var e=d.display_price;d=d.label;b=n(b);return k.jsxs(k.Fragment,{children:[k.jsx(c("FDSMenuSeparator.react"),{}),a.map(o),k.jsxs("div",{className:"x1l90r2v x1y1aw1k",children:[k.jsx(r,{isTotal:!0,leftContent:d||"",rightContent:e||""}),b!=null&&k.jsx(r,{isTotal:!1,leftContent:"",rightContent:b})]})]})}a.displayName=a.name+" [from "+f.id+"]";function n(a){var b=a.showTaxDisclaimer,e=c("getJSEnumSafe")(c("AllPaymentTypeFields"),a.paymentType);e=e==="mor_fan_funding"&&c("gkx")("23837");a=d("PaymentsCometCheckoutAPIUtils").getDigitalCommerceOmnibusDirectiveData(a);a=a.isOmnibusUser;return b!==!0?e||a?k.jsx(q,{title:h._("u6240u6709u4ef7u683cu5305u542bu6240u6709u9002u7528u7a0eu8d39"),tooltip:null}):null:k.jsx(q,{title:e?h._("u5916u52a0u9002u7528u7a0eu8d39"):h._("u9644u52a0u7a0e"),tooltip:h._("u67e5u770bu7a0eu540eu603bu989du6536u636eu3002")})}n.displayName=n.name+" [from "+f.id+"]";function o(a,b){var d,e=l(c("PaymentsCometCheckoutContext"));e=e.state;a=a.price_lists||[];var f=a.some(function(a){return a.item!=null})||e.paymentType==="NMOR_EVENT_TICKETING"&&b===0,g=!1;((d=e.checkoutProps)==null?void 0:d.extraData)!=null&&((d=e.checkoutProps)==null?void 0:(d=d.extraData)==null?void 0:d.negotiable_price_offer_data)!=null&&(g=!0);d=f?h._("u5546u54c1u8be6u60c5"):g?h._("u8ba2u5355u603bu989duff08u5982u83b7u63a5u53d7uff09"):h._("u8ba2u5355u603bu989d");g=f?k.jsx("div",{className:"x1y1aw1k",children:k.jsx(c("FDSMenuSeparator.react"),{})}):null;var i=e==null?void 0:(e=e.checkoutProps)==null?void 0:(e=e.personalization)==null?void 0:e.personalizationRequestFromBuyer;return k.jsxs("div",{children:[k.jsx("div",{className:"xwib8y2",children:k.jsx(c("PaymentsCometCheckoutSectionTitle"),{title:d})}),a.map(function(a,b){var c=a.display_price,d=a.item,e=a.label;a=a.original_price;var g=d||{},j=g.item_image_url,l=g.subsubtitle;g=g.title;var m=i!=null?{body:i,title:h._("u5b9au5236u8981u6c42")}:null;d=d==null?e:k.jsx(p,{footer:m,imageURL:j||"",subtitle:l||"",title:g||""});return k.jsx(r,{leftContent:d,rightContent:f&&Boolean(a)?a:c||""},b)}),g]},b)}o.displayName=o.name+" [from "+f.id+"]";function p(a){var b=a.footer,d=a.imageURL,e=a.subtitle;a=a.title;return k.jsxs(c("CometRow.react"),{paddingHorizontal:0,paddingTop:0,verticalAlign:"top",children:[k.jsx(c("CometRowItem.react"),{children:k.jsx(c("CometImage.react"),{height:60,src:d,xstyle:m.image})}),k.jsxs(c("CometRowItem.react"),{children:[k.jsx("div",{className:"xwib8y2 xwl9fdd",children:k.jsx(c("FDSText.react"),{color:"primary",type:"headlineEmphasized3",children:a})}),k.jsx(c("FDSText.react"),{color:"secondary",type:"body2",children:e}),b!=null?k.jsxs(k.Fragment,{children:[k.jsx("div",{className:"x1y1aw1k xwl9fdd",children:k.jsx(c("FDSText.react"),{color:"primary",type:"bodyLink4",children:b.title})}),k.jsx("div",{className:"x1iorvi4 xwl9fdd",children:k.jsx(c("FDSText.react"),{color:"secondary",type:"body4",children:b.body})})]}):null]})]})}p.displayName=p.name+" [from "+f.id+"]";function q(a){var b=a.title;a=a.tooltip;return k.jsxs(c("CometRow.react"),{paddingHorizontal:0,paddingTop:0,verticalAlign:"top",children:[k.jsx(c("CometRowItem.react"),{xstyle:m.disclaimerItem,children:k.jsx(c("FDSText.react"),{color:"secondary",type:"body3",children:b})}),a!=null&&k.jsx(c("CometRowItem.react"),{xstyle:m.disclaimerItem,children:k.jsx(c("FDSTooltip.react"),{align:"middle",delayMs:100,tooltip:a,children:k.jsx(c("CometImage.react"),{src:i("479819")})})})]})}q.displayName=q.name+" [from "+f.id+"]";function r(a){var b=a.isTotal;b=b===void 0?!1:b;var d=a.leftContent;a=a.rightContent;var e=b?"primary":"secondary";b=b?"bodyLink2":"body2";var f=typeof d==="string"?"checkout_price_table_label"+d:"";f=typeof d==="string"&&typeof a==="string"?"checkout_price_table_label"+d+a:"";return k.jsxs(c("CometRow.react"),{paddingHorizontal:16,verticalAlign:"top",children:[k.jsx(c("CometRowItem.react"),{expanding:!0,children:typeof d==="object"?d:k.jsx(c("FDSText.react"),{color:e,testid:void 0,type:b,children:d})}),k.jsx(c("CometRowItem.react"),{children:k.jsx("div",{className:"xk8lq53",children:typeof a==="object"?a:k.jsx(c("FDSText.react"),{color:e,testid:void 0,type:b,children:a})})})]})}r.displayName=r.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
Payments3DSCardinalInitComponent.react",["FBPayUPLLogger","FBPaymentsModulesAPIUtils","FBPaymentsSpinner.react","FlexLayout.react","Paymentes3DSUtils","PaymentsCardinalDeviceDataCollectionComponent.react","PaymentsCardinalStepUpChallengeContainer","ReactDOMComet","SecurePostMessage","Text","URI","goURI","react","usePayments3DSCardinalFetchStepUpAuthURLMutation"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useEffect,k=b.useMemo,l=b.useRef,m=b.useState,n="https://checkout.instagram.com/",o="https://www.instagram.com";function p(){var a;return((a=window.origin)==null?void 0:a.startsWith(o))?n:window.parent.origin}function a(a){var b=a.actionGroupID,e=a.appUrl,f=a.cardinalDeviceDataCollectionUrl,g=a.clientState,n=a.jwtToken,o=a.paymentType,q=a.returnMethod,r=a.sessionID,s=a.productID,t=c("usePayments3DSCardinalFetchStepUpAuthURLMutation")(),u=l(!0);a=m(!1);var v=a[0],w=a[1];a=k(function(){var a=new(c("FBPayUPLLogger"))(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(o.toLowerCase()),d("Paymentes3DSUtils").getUserPlatform(),r);return{logger:a}},[o,r]);var x=a.logger,y=i(function(a){var b;x.logClientLoadThreedsUnificationInit({product_id:(b=s)!=null?b:"",view_name:"complete_redirect_3ds"},{returnMethod:q});if(q==="post_message"){b=p();d("SecurePostMessage").sendMessageToSpecificOrigin(window.parent,{eventName:d("Paymentes3DSUtils").THREEDS_RESPONSE_MESSAGE,data:a},b)}else if(q==="app_url"&&e!=null){b=window.atob(e);b=new(c("URI"))(b).addQueryData(a).toString();c("goURI")(b)}},[e,x,s,q]),z=i(function(a){a={auth_result:"Success",client_state:g,step_up_complete_token:a};y(a);x.logClientFetchThreedsUnificationSuccess({product_id:(a=s)!=null?a:"",view_name:"complete_3ds"})},[g,y,x,s]),A=i(function(){var a=d("Paymentes3DSUtils").get3DSUserFacingErrorData();a=babelHelpers["extends"]({},a,{auth_result:"Failure",client_state:g});y(a);x.logClientFetchThreedsUnificationFail({product_id:(a=s)!=null?a:"",view_name:"complete_3ds"})},[g,y,x,s]);a=i(function(a){var e;a={session_id:r,payment_type:o,actionGroupId:b,df_ref_id:a,screen_height:window.innerHeight,screen_width:window.innerWidth,product_id:s};x.logClientFetchThreedsUnificationInit({product_id:(e=s)!=null?e:"",view_name:"fetch_step_up_auth_url"});t(a,function(a){var b;a=(a=a==null?void 0:a.threeds_cardinal_fetch_step_up_auth_url)!=null?a:{};var e=a.status,f=a.step_up_jwt,g=a.step_up_url;a=a.md;f=f==null?void 0:f.token;x.logClientFetchThreedsUnificationSuccess({product_id:(b=s)!=null?b:"",view_name:"fetch_step_up_auth_url"},{status:(b=e)!=null?b:""});if(e===d("Paymentes3DSUtils").ThreeDSLookupStatus.PENDING&&g!=null&&f!=null&&a!=null){w(!1);b=document.createElement("div");document.body&&document.body.prepend(b);d("ReactDOMComet").createRoot(b).render(h.jsx(c("PaymentsCardinalStepUpChallengeContainer"),{md:a,stepUpJwt:f,stepUpUrl:g,onError:A,onSuccess:function(a){z(a)},logger:x,productID:s}))}else e===d("Paymentes3DSUtils").ThreeDSLookupStatus.COMPLETED?z():e===d("Paymentes3DSUtils").ThreeDSLookupStatus.FAILED&&A()},function(){var a;A();x.logClientFetchThreedsUnificationFail({product_id:(a=s)!=null?a:"",view_name:"fetch_step_up_auth_url"})})},[r,o,b,x,s,t,A,z]);j(function(){w(!0)},[]);j(function(){if(u.current===!0){var a;u.current=!1;x.logClientRenderThreedsUnificationDisplay({view_name:"3ds_cardinal_init_component",product_id:(a=s)!=null?a:""},{action_group_id:b})}},[b,f,n,a,z,A,x,s]);var B=h.jsx("div",{className:"x6s0dn4 x78zum5 xl56j7k x1jn0hjm","data-testid":void 0,children:h.jsxs(c("FlexLayout.react"),{direction:"vertical",align:"center",children:[h.jsx(c("FBPaymentsSpinner.react"),{}),h.jsx("div",{className:"x1anpbxc",children:h.jsx(c("Text"),{style:{fontSize:20,fontWeight:"500"},children:d("Paymentes3DSUtils").THREEDS_LOADING_BODY})}),h.jsx("div",{className:"x1k70j0n",children:h.jsx(c("Text"),{style:{fontSize:16,fontWeight:"200"},children:d("Paymentes3DSUtils").THREEDS_LOADING_SUB_BODY})})]})});return h.jsxs(h.Fragment,{children:[v&&B,h.jsx(c("PaymentsCardinalDeviceDataCollectionComponent.react"),{cardinalDeviceDataCollectionUrl:f,jwtToken:n,onError:A,onSuccess:a,logger:x,productID:s})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceCheckoutRootContainer.react",["AllPaymentTypeFields","CommerceCheckoutActionLogger","CommerceCheckoutContext","CommerceCheckoutDialogWrapper.react","CommerceCheckoutErrorScreen.react","CommerceCheckoutHooks","CommerceCheckoutLoadingScreen.react","CommerceCheckoutLoggingContext","CommerceCheckoutLoggingUtils","CommerceCheckoutOrderConfirmationScreen.react","CommerceCheckoutReducer","CommerceCheckoutScreen.react","CommerceCheckoutState","CommerceCheckoutTypes.flow","CommerceCheckoutUpdatePaymentScreen.react","gkx","react","useCommerceCheckoutInformationMutation","useCreateCommerceCheckoutSessionMutation"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useContext,j=b.useEffect,k=b.useMemo,l=b.useReducer,m=b.useRef,n=b.useState;function a(a){var b,e=a.checkoutProps,f=a.dialogProps,g=a.entrypoint,i=a.loggingSessionId,j=a.onClose;a=l(c("CommerceCheckoutReducer"),d("CommerceCheckoutState").getInitialState(e,i,f));var m=a[0],n=a[1];a=k(function(){return{dispatch:n,state:m}},[m]);var p=(b=c("AllPaymentTypeFields")[e==null?void 0:e.paymentType.toString()])!=null?b:"unknown",q=m.checkoutFlow;b=k(function(){var a;a=(a=(a=e.products)==null?void 0:a.map(function(a){return a.product_id}))!=null?a:[];a=new(c("CommerceCheckoutActionLogger"))(p,q,a,[e.receiverID],i,g,e.extraData);return{logger:a}},[e.products,e.receiverID,e.extraData,p,q,i,g]);var r=b.logger,s=function(){r.logUserClickCheckoutExit(),j()};return h.jsx(c("CommerceCheckoutContext").Provider,{value:a,children:h.jsx(c("CommerceCheckoutLoggingContext").Provider,{value:b,children:h.jsx(c("CommerceCheckoutDialogWrapper.react"),{dialogProps:(a=f)!=null?a:{},onClose:s,children:h.jsx(o,{checkoutProps:e,loggingSessionId:i,onClose:s})})})})}a.displayName=a.name+" [from "+f.id+"]";function o(a){var b=a.checkoutProps,e=a.loggingSessionId;a=a.onClose;var f=i(c("CommerceCheckoutContext")),g=f.dispatch;f=f.state;var k=i(c("CommerceCheckoutLoggingContext")),l=k.logger,o=m(!1);k=d("CommerceCheckoutHooks").useCheckoutCurrentScreen();var r=f.checkoutSessionID,s=f.couponCodeTextInput,t=f.requiresCheckoutInfoRefresh,u=t===void 0?!1:t,v=f.selectedCredential,w=f.selectedDeliveryOptionID,x=f.selectedDeliveryOptionIDs,y=f.selectedShippingAddressID,z=(t=f.checkoutProps)==null?void 0:(f=t.extraData)==null?void 0:f.products;t=n(!0);var A=t[0],B=t[1],C=d("CommerceCheckoutHooks").useHasChanged(x),D=d("CommerceCheckoutHooks").useMutationWithLoading(c("useCreateCommerceCheckoutSessionMutation")),E=d("CommerceCheckoutHooks").useMutationWithLoading(c("useCommerceCheckoutInformationMutation"));j(function(){var a=z;if(A||u){o.current||(l.logClientCheckoutInit(),l.logClientLoadCheckoutInit(),o.current=!0);var f=d("CommerceCheckoutLoggingUtils").getCouponState(s);l.logClientEditCouponInit(f);C&&l.logClientChangeShippingMethodInit();a={checkout_session_id:r,coupon_code:s,extra_data:JSON.stringify(babelHelpers["extends"]({},b.extraData,{products:a})),is_dynamic_auth_available:!1,logging_id:e,payment_order_id:b.orderID,payment_type:b.paymentType,products:b.products,receiver_id:b.receiverID,selected_delivery_option_id:w,selected_delivery_option_ids:x,selected_payment_credentials:v?[{credential_id:v.credentialID,credential_type:q[v.credentialType]}]:null,selected_shipping_address_id:y};c("gkx")("6854")&&A&&r==null&&D(a,{onCompleted:function(a){a=(a=a.create_commerce_checkout_session)==null?void 0:a.checkout_session_id;a!=null&&g({checkoutSessionID:a,type:"SET_CHECKOUT_SESSION_ID"})},onError:function(a){l.logClientLoadCheckoutFail({error_code:a.code,error_description:a.description,error_title:a.message}),g({type:"LOAD_CHECKOUT_INFO_UNKNOWN_ERRORS"})}});E(a,{onCompleted:function(a){var b;if(((b=a.checkout_information_mutation)==null?void 0:b.payments_error)!=null){b=(b=a.checkout_information_mutation)==null?void 0:b.payments_error;g({paymentsUserFacingError:b,type:"LOAD_CHECKOUT_INFO_PAYMENT_ERRORS"});l.logClientLoadCheckoutFail(b);l.logClientEditCouponFail(f,b);C&&l.logClientChangeShippingMethodFail()}else l.logClientLoadCheckoutSuccess(),l.logClientEditCouponSuccess(f),C&&l.logClientChangeShippingMethodSuccess(),g({checkoutInformation:a,isInitialLoad:A,logger:l,type:"LOAD_CHECKOUT_INFO_SUCCESS"});B(!1)},onError:function(a){l.logClientLoadCheckoutFail({error_code:a.code,error_description:a.description,error_title:a.message}),g({type:"LOAD_CHECKOUT_INFO_UNKNOWN_ERRORS"}),B(!1)}})}},[r,D,E,b,z,A,u,e,g,w,x,v,y,s,l,C]);return A?h.jsx(c("CommerceCheckoutLoadingScreen.react"),{}):p(k,a)}function p(a,b){switch(a.type){case d("CommerceCheckoutTypes.flow").CheckoutScreenType.ORDER_CONFIRMATION:return h.jsx(c("CommerceCheckoutOrderConfirmationScreen.react"),{onCloseCheckout:b});case d("CommerceCheckoutTypes.flow").CheckoutScreenType.ERROR:case d("CommerceCheckoutTypes.flow").CheckoutScreenType.UNKNOWN:return h.jsx(c("CommerceCheckoutErrorScreen.react"),{onCloseCheckout:b});case d("CommerceCheckoutTypes.flow").CheckoutScreenType.UPDATE_ORDER_PAYMENT:return h.jsx(c("CommerceCheckoutUpdatePaymentScreen.react"),{});default:return h.jsx(c("CommerceCheckoutScreen.react"),{})}}p.displayName=p.name+" [from "+f.id+"]";var q={credit_card:"CREDIT_CARD",new_credit_card:"NEW_CREDIT_CARD",new_paypal_ba:"NEW_PAYPAL_BA",paypal_ba:"PAYPAL_BA"};g["default"]=a}),98);
-----
FBPaymentSettingsReceiptContainer.react",["cx","fbt","AllPaymentTypeFields","Env","FBPaymentSettingsHistoryAPI","FBPaymentTransactionType","FBPaymentsLoadingView.react","FBPaymentsLogger","FBPaymentsLoggerConstants","FBPaymentsReceiptApp.react","FBPaymentsReceiptBackButton.react","FBPaymentsReceiptUpdateDialogComponent.react","FBPaymentsSubscriptionDetails.react","NmorOrderType","NmorOrderTypeName","PaymentSettingsBOFReceipt.react","PaymentSettingsBalanceRedemptionPaymentReceipt.react","PaymentSettingsComponentFlowReceipt.react","PaymentSettingsDonationReceipt.react","PaymentSettingsGameBundleReceipt.react","PaymentSettingsGiftPaymentReceipt.react","PaymentSettingsNmorDonationReceipt.react","PaymentSettingsOculusReceipt.react","PaymentSettingsP2PPaymentRequestReceiptContainer.react","PaymentSettingsP2PReceipt.react","PaymentSettingsPEPaymentReceipt.react","keyMirror","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=c("keyMirror")(c("AllPaymentTypeFields"));a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
PaymentsComet3DSDialog.react",["fbt","Actor","CometCardedDialogLegacy.react","CometEventListener","FBPayUPLLogger","FBPaymentsModulesAPIUtils","PaymentsCometOverlayLoadingSpinner.react","react","usePaymentsCometGet3DSAuthenticateURLMutation","usePaymentsCometGet3DSAuthenticateURLWithCSCMutation","usePaymentsCometGetAcquirerMerchantInfo"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useEffect,k=b.useRef,l=b.useState;function a(a){var b=a.onClose;a=a.props;var e=a.acquirerBin,f=a.acquirerMid,g=a.amount,m=a.countryCode,n=a.credentialID,o=a.creditCardType,p=a.csc,q=a.currency,r=a.itemType,s=a.merchantName,t=a.orderId,u=a.receiverId;a=a.sessionId;var v=l(null),w=v[0],x=v[1];v=l([]);var y=v[0],z=v[1];v=l(!0);var A=v[0],B=v[1],C=c("usePaymentsCometGet3DSAuthenticateURLMutation")(),D=c("usePaymentsCometGet3DSAuthenticateURLWithCSCMutation")(),E=k(null);v=d("Actor").useActor();v=v[0];var F={cardinalStatus:null,refID:"0",status:"FAILED",threeDSTransactionData:{cavv:"",dsTransactionID:"",eciFlag:"",threeDsSecureVersion:"",xid:""},transactionID:""},G=new(c("FBPayUPLLogger"))(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(r.toLowerCase()),"comet",a),H=function(a){var b;b=(b=a.authenticate_using_3ds_url)==null?void 0:(b=b.params)==null?void 0:b.map(function(a){return{key:a.key,value:a.value}});x((a=a.authenticate_using_3ds_url)==null?void 0:a.url);z((a=b)!=null?a:[]);B(!1)};j(function(){var a=c("CometEventListener").listen(window,"message",function(a){a.data.eventName==="3DS_RESPONSE_MESSAGE"&&b(a.data)});return function(){a&&a.remove()}},[b,B]);var I=c("usePaymentsCometGetAcquirerMerchantInfo")({onError:function(){b(F)},onSuccess:function(a,c,d){a={acquirerMerchantInfo:a==null&&c==null&&d==null?null:{acquirer_bin:(a=a)!=null?a:"",acquirer_mid:(a=c)!=null?a:"",merchant_name:(c=d)!=null?c:""},countryCode:m,credentialID:n,currencyAmount:{amount:g,currency:q},itemType:r};p!=null?D(babelHelpers["extends"]({csc:p,sessionID:G.getSessionID()},a),function(a){H(a)},function(){b(F)}):C(babelHelpers["extends"]({},a,{sessionID:G.getSessionID()}),function(a){H(a)},function(){b(F)})}});j(function(){if(w===null){var a;G.logClientLoadThreedsInit({target_name:"acquirer_merchant_info_mutation"},{currency:q,order_id:(a=t)!=null?a:"",raw_credential_id:n,receiver_id:(a=u)!=null?a:""});I({acquirerBin:e,acquirerMid:f,credentialID:n,creditCardType:o||"",currency:q,merchantName:s||"",orderId:t||"",paymentType:r,receiverId:u||"",sessionID:G.getSessionID()})}},[D,C,w,m,g,q,n,r,p,I,e,f,o,s,t,u]);j(function(){if(E!==null&&E.current!==null&&w!=null){var a;(a=E.current)==null?void 0:a.submit()}},[w]);return i.jsxs(c("CometCardedDialogLegacy.react"),{onClose:function(){G.logUserClickThreedsAtomic({target_name:"challenge_close"}),b(F)},title:h._("u9a8cu8bc1u5361"),titleHorizontalAlignment:"center",withCloseButton:!0,children:[A&&i.jsx(c("PaymentsCometOverlayLoadingSpinner.react"),{shouldShowOverlay:!1}),i.jsxs("form",{action:w,method:"POST",ref:E,target:"3ds2_iframe",children:[y.map(function(a){return i.jsx("input",{name:a.key,type:"hidden",value:a.value},a.key)}),i.jsx("input",{name:"user_id",type:"hidden",value:v},"user_id")]}),i.jsx("iframe",{className:"x76ihet xwmqs3e x112ta8 xxxdfa6 x1jn0hjm x1qrby5j",name:"3ds2_iframe"})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CometFBPaySupportDialog.react",["fbt","AllPaymentTypeFields","CareCometSupportContext","CareFBPaySupportRef","CometFBPaySupportDialogContent.react","CometFBPaySupportDialogQuery.graphql","CometFBPaySupportTransactionInfo.react","CometMultiStepDialogLegacy.react","CometRelay","FBPaySupportDialogState","PaymentsCareLoggingContext","PaymentsCareSupportFlowTypeUtils.facebook","PaymentsCareUPLLogger","getJSEnumSafe","react","useQualityMeasurementDialogTrigger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useEffect,l=e.useMemo,m=e.useReducer,n=e.useRef,o=i!==void 0?i:i=b("CometFBPaySupportDialogQuery.graphql");function p(a){a=c("getJSEnumSafe")(c("AllPaymentTypeFields"),a.paymentType);return(a=a)!=null?a:"unknown"}function a(a){var b=a.props;a=a.queries;var e=a.loggingDataQueryRef,f=a.supportFlowQueryRef;a=a.transactionQueryRef;e=d("CometRelay").usePreloadedQuery(o,e);e=e.response;var g=e.context,i=e.loggingData,q=p(i),r=l(function(){var a=new(c("PaymentsCareUPLLogger"))(q,"comet",b.uplSessionID);return{logger:a}},[q,b.uplSessionID]),s=a.variables.transactionID,t=(e=f.variables.flowData)==null?void 0:e.commerce_account_id;e=b.referrer?c("CareFBPaySupportRef").getName(b.referrer):null;var u=(e=e)!=null?e:g.ref,v=l(function(){var a;a=(a=d("PaymentsCareSupportFlowTypeUtils.facebook").toJSEnum(i.supportFlowType))!=null?a:"unknown";return{commerceAccountID:t,extraData:typeof u==="string"?{ref:u}:{},flowContext:{cms_folder_id:g.folderID,cms_obj_id:g.objID,name:g.name,ref:u},supportFlowType:a,transactionID:s}},[i,s,g,t,u]);e=m(d("FBPaySupportDialogState").reducer,d("FBPaySupportDialogState").getInitialState());var w=e[0],x=e[1];e=l(function(){return{dialogState:w,dispatch:x}},[w,x]);var y=n(!0);k(function(){if(y.current===!0){var a;y.current=!1;r.logger.logClientLoadSupportflowInit({support_flow_type:v.supportFlowType,transaction_id:(a=v.transactionID)!=null?a:void 0,view_name:"comet_fbpay_support_dialog"},v.extraData)}},[r,y,v]);var z=function(a){x({pageIndex:a,type:d("FBPaySupportDialogState").ActionType.PAGE_UPDATE})},A=h._("Meta Pay u652fu6301"),B=j.jsx(c("CometFBPaySupportTransactionInfo.react"),{queryRef:a}),C=c("useQualityMeasurementDialogTrigger")((a=d("PaymentsCareSupportFlowTypeUtils.facebook").toJSEnum(i.supportFlowType))!=null?a:"unknown","FBPAY","USER",!1,new Map([]),b.onClose);a=function(){w.didSubmitSupportCase!==!0?C():b.onClose()};return j.jsx(c("PaymentsCareLoggingContext").Provider,{value:r,children:j.jsx(d("CareCometSupportContext").CareCometSupportContext.Provider,{value:v,children:j.jsx(d("FBPaySupportDialogState").DialogStateContext.Provider,{value:e,children:j.jsx(c("CometMultiStepDialogLegacy.react"),{onClose:a,onPageChange:z,title:A,withCloseButton:b.hideCloseButton!==!0,withDeprecatedStyles:!1,children:function(a){return j.jsx(c("CometFBPaySupportDialogContent.react"),{pushPage:a,supportFlowQueryRef:f,title:A,transactionInfo:B})}})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
FBEUnifiedBusinessLoginPaymentsUtils",["fbt","invariant","$InternalEnum","AdsCurrencyFormatter","AllPaymentTypeFields","CHEXSupportedCountry","CommerceStringUtils","CountryConstants","CurrencyConstants","DirectDebitBankAccountType","DirectDebitBankCodeType","FBEUnifiedBusinessLoginLinks","FBEUnifiedBusinessLoginPaymentsInfoValidator","FBEUnifiedBusinessLoginTypes","Link.react","LocalDate","MerchantCategoryCode","MerchantCategoryCodeDescriptions","PaymentCompanyType","SearchableEntry","TaxIdType","USAStateAbbreviations","formatDate","gkx","isEmail","justknobx","keyMirror","nullthrows","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=c("keyMirror")(c("AllPaymentTypeFields")),l=c("keyMirror")(c("TaxIdType")),m=c("keyMirror")(c("MerchantCategoryCode")),n=c("keyMirror")(c("PaymentCompanyType"));function o(a){return a.replace(/D/g,"")}function a(a,b,c){b=b;var e=a;switch(a){case d("FBEUnifiedBusinessLoginTypes").FormFieldName.FirstName:case d("FBEUnifiedBusinessLoginTypes").FormFieldName.LastName:case d("FBEUnifiedBusinessLoginTypes").FormFieldName.MiddleName:return babelHelpers["extends"]({},b,{legalName:babelHelpers["extends"]({},b.legalName,(a={},a[e]=c,a))});case d("FBEUnifiedBusinessLoginTypes").FormFieldName.BusinessName:case d("FBEUnifiedBusinessLoginTypes").FormFieldName.BusinessType:case d("FBEUnifiedBusinessLoginTypes").FormFieldName.Ein:return babelHelpers["extends"]({},b,(a={},a[e]=c,a));case d("FBEUnifiedBusinessLoginTypes").FormFieldName.Ssn:return babelHelpers["extends"]({},b,(a={},a[e]=o(c),a));case d("FBEUnifiedBusinessLoginTypes").FormFieldName.Birthdate:return babelHelpers["extends"]({},b)}}function e(a){return a!=null&&a.month!=null&&a.day!=null?new(c("LocalDate"))(a==null?void 0:a.year,a==null?void 0:a.month,a==null?void 0:a.day):null}var p=Object.keys(c("MerchantCategoryCode")).filter(function(a){return a!==m.NOT_SPECIFIED}).sort().map(function(a){return new(c("SearchableEntry"))({title:c("MerchantCategoryCodeDescriptions")[a],uniqueID:a})});function f(){return p}function q(a){return p.find(function(b){return b.getUniqueID()===a})}function r(a){return a==null?!1:/^[0-9]{8}$/.test(a)}function s(a){switch(a){case d("FBEUnifiedBusinessLoginTypes").ChequeImage.ACCOUNT:return d("FBEUnifiedBusinessLoginLinks").CHEQUE_IMAGE_ACCOUNT_NUMBER_URI;case d("FBEUnifiedBusinessLoginTypes").ChequeImage.ROUTING:return d("FBEUnifiedBusinessLoginLinks").CHEQUE_IMAGE_ROUTING_NUMBER_URI;case d("FBEUnifiedBusinessLoginTypes").ChequeImage.DEFAULT:return d("FBEUnifiedBusinessLoginLinks").CHEQUE_IMAGE_URI}}var t=h._("u514du9500u552eu624bu7eedu8d39u81f3{onsite fee start date}",[h._param("onsite fee start date",c("formatDate")(c("justknobx")._("293"),"Y",{utc:!0}))]),u=h._("u4e3au4e86u52a9u4f60u53d6u5f97u4e1au52a1u6210u529fuff0cu6211u4eecu76eeu524du5df2u53d6u6d88u6807u51c6u9500u552eu624bu7eedu8d39u3002{onsite fee start date}u4ee5u524duff0cu6240u6709u6807u8bb0u5df2u53d1u8d27u7684u8ba2u5355u90fdu5c06u514du9664u8fd9u9879u8d39u7528u3002",[h._param("onsite fee start date",c("formatDate")(c("justknobx")._("293"),"F j, Y",{utc:!0}))]),v=c("AdsCurrencyFormatter").formatCurrency(c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR,40),w=c("AdsCurrencyFormatter").formatCurrency(c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR,800),x=h._("u5bf9u4e8eu5728{onsite fee start date}u540eu6807u8bb0u4e3au201cu5df2u53d1u8d27u201du7684u8ba2u5355uff0cu4f60u5c06u652fu4ed8 5u0025 u7684{=m5}u3002u91d1u989du4e0du8d85u8fc7{seller_fee_min_threshold_amount}u7684u4ea4u6613u5c06u6536u53d6{seller_fee_flat_amount}u7684u56fau5b9au624bu7eedu8d39u3002",[h._param("onsite fee start date",c("formatDate")(c("justknobx")._("293"),"F j, Y",{utc:!0})),h._param("seller_fee_min_threshold_amount",w),h._param("seller_fee_flat_amount",v),h._implicitParam("=m5",j.jsx(c("Link.react"),{href:d("FBEUnifiedBusinessLoginLinks").SELLER_FEES,children:h._("u6211u4eecu7684u6807u51c6u9500u552eu624bu7eedu8d39")}))]),y=h._("u5bf9u4e8eu5728{onsite fee start date}u540eu6807u8bb0u4e3au201cu5df2u53d1u8d27u201du7684u8ba2u5355uff0cu4f60u5c06u652fu4ed8 5u0025 u7684{=m5}u3002u91d1u989du4e0du8d85u8fc7{seller_fee_min_threshold_amount}u7684u4ea4u6613u5c06u6536u53d6{seller_fee_flat_amount}u7684u56fau5b9au624bu7eedu8d39u3002",[h._param("onsite fee start date",c("formatDate")(c("justknobx")._("293"),"F j, Y",{utc:!0})),h._param("seller_fee_min_threshold_amount",w),h._param("seller_fee_flat_amount",v),h._implicitParam("=m5",j.jsx(c("Link.react"),{href:d("FBEUnifiedBusinessLoginLinks").SELLER_FEES_MSITE,children:h._("u6211u4eecu7684u6807u51c6u9500u552eu624bu7eedu8d39")}))]);w=h._("u4f60u5c06u4e3au6bcfu7b14u4ea4u6613u652fu4ed8 5u0025 u7684u9500u552eu624bu7eedu8d39u3002u91d1u989du4e0du8d85u8fc7{seller_fee_min_threshold_amount}u7684u4ea4u6613u5c06u6536u53d6{seller_fee_flat_amount}u7684u56fau5b9au624bu7eedu8d39u3002",[h._param("seller_fee_min_threshold_amount",w),h._param("seller_fee_flat_amount",v)]);v=h._("u70b9u51fbu201cu7ee7u7eedu201duff0cu5373u8868u793au4f60u540cu610fu6211u4eecu7684{=m1}uff0cu5176u4e2du89c4u5b9auff0cu5fc5u987bu9075u5b88u652fu4ed8u5904u7406u673au6784u7684u6761u6b3eu3002u4e3au4e86u652fu6301 Facebook u7535u5546u529fu80fdu8fd0u4f5cuff0cu6211u4eecu4f1au5b58u50a8u4f60u7684u4fe1u606fuff0cu5e76u628au4fe1u606fu5206u4eabu7ed9u652fu4ed8u5904u7406u673au6784u3002",[h._implicitParam("=m1",j.jsx(c("Link.react"),{href:"/legal/commerce_product_merchant_agreement",target:"_blank",children:h._("u5356u65b9u534fu8bae")}))]);var z=/^[9](d){8}$/;function A(a){return a==null?!1:z.test(a)}function B(a,b){return a.trim().toUpperCase().localeCompare(b.trim().toUpperCase())===0}function C(a){return Object.keys(c("USAStateAbbreviations")).find(function(b){return B(b,a)||B(c("USAStateAbbreviations")[b],a)})}function D(){return{bankAccountNumber:"",bankAccountType:c("DirectDebitBankAccountType").CHECKING,bankCode:"",bankCodeType:c("DirectDebitBankCodeType").ROUTING,bankCountry:c("CountryConstants").UNITED_STATES,beneficiaryName:""}}function E(a,b){return babelHelpers["extends"]({},a,{birthdate:b.birthdate?null:h._("u4f60u7684u4ee3u8868u4ebau5fc5u987bu5e74u6ee1 18 u5c81"),businessName:b.businessName?null:h._("u5fc5u987bu8f93u5165u516cu53f8u540du79f0"),businessType:b.businessType?null:h._("u5fc5u987bu9009u62e9u516cu53f8u7c7bu578b"),ein:b.ein?null:h._("u5fc5u987bu8f93u5165u6709u6548u7684u96c7u4e3bu8eabu4efdu8bc6u522bu53f7u7801 (EIN)"),firstName:b.firstName?null:h._("u540du5b57u5305u542bu65e0u6548u5b57u7b26u6216u683cu5f0fu3002"),lastName:b.lastName?null:h._("u59d3u6c0fu5305u542bu65e0u6548u5b57u7b26u6216u683cu5f0fu3002"),middleName:b.middleName?null:h._("u4e2du95f4u540du5305u542bu65e0u6548u5b57u7b26u6216u683cu5f0fu3002"),ssn:b.ssn?null:h._("u5fc5u987bu8f93u5165u6709u6548u7684u793eu4f1au5b89u5168u53f7u7801u6216u4e2au4ebau7eb3u7a0eu4ebau8bc6u522bu53f7 (ITIN)")})}j=h._("u8bf7u6309u201cu6708/u65e5/u5e74u201du683cu5f0fu8f93u5165u65e5u671fu3002");function F(a){switch(a){case d("FBEUnifiedBusinessLoginTypes").FormFieldName.FirstName:case d("FBEUnifiedBusinessLoginTypes").FormFieldName.LastName:return d("FBEUnifiedBusinessLoginPaymentsInfoValidator").isValidRequiredName;case d("FBEUnifiedBusinessLoginTypes").FormFieldName.MiddleName:return d("FBEUnifiedBusinessLoginPaymentsInfoValidator").isValidOptionalName;case d("FBEUnifiedBusinessLoginTypes").FormFieldName.BusinessName:return d("FBEUnifiedBusinessLoginPaymentsInfoValidator").isValidBusinessName;case d("FBEUnifiedBusinessLoginTypes").FormFieldName.BusinessType:return function(a){return Object.prototype.hasOwnProperty.call(n,a)};case d("FBEUnifiedBusinessLoginTypes").FormFieldName.Ein:case d("FBEUnifiedBusinessLoginTypes").FormFieldName.Ssn:return d("FBEUnifiedBusinessLoginPaymentsInfoValidator").isValidTaxIdentificationNumber;case d("FBEUnifiedBusinessLoginTypes").FormFieldName.Birthdate:return function(){return!1}}}function G(a){var b,c;b=Number(a==null?void 0:(b=a.birthdate)==null?void 0:b.day);c=Number(a==null?void 0:(c=a.birthdate)==null?void 0:c.month);a=Number(a==null?void 0:(a=a.birthdate)==null?void 0:a.year);return d("FBEUnifiedBusinessLoginPaymentsInfoValidator").isValidDate({day:b,month:c,year:a})}var H=b("$InternalEnum").Mirrored(["City","Email","Invalid","PostalCode","Region","Street1","Street2"]);function I(a){switch(a){case"city":return H.City;case"region":return H.Region;case"street1":return H.Street1;case"street2":return H.Street2;case"postalCode":return H.PostalCode;default:return H.Invalid}}function J(a,b){return babelHelpers["extends"]({},a,{email:b.email?null:h._("u5fc5u987bu8f93u5165u6709u6548u90aeu7bb1u3002"),postalCode:b.postalCode?null:h._("u5fc5u987bu8f93u5165u6709u6548u90aeu7f16u3002"),street1:b.street1?null:h._("u5fc5u987bu8f93u5165u8857u9053u5730u5740u3002u7a0eu52a1u6587u4ef6u53efu80fdu4f1au5bc4u5230u8fd9u4e2au5730u5740uff0cu56e0u6b64u4e0du80fdu8f93u5165u90aeu653fu4fe1u7bb1u3002"),city:b.city?null:h._("u5fc5u987bu8f93u5165u57ceu5e02u3002"),region:b.region?null:h._("u5fc5u987bu8f93u5165u5ddeu3002")})}function K(a){switch(a){case c("CHEXSupportedCountry").FR:return/^[0-9]{5}$/;case c("CHEXSupportedCountry").GB:return/^[A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]?s?[0-9][A-Za-z]{2}$/;case c("CHEXSupportedCountry").US:return/^[0-9]{5}(?:-[0-9]{4})?$/;default:return/.*/}}function L(a,b){return(b||"").replace(/[^a-z0-9 ]+/gi," ").match(N(a))!==null}var M=new RegExp("\b(?:post(?:al)? (?:office |ofc )?bo?x|parcel (?:bo?x|locker)|po ?bo?x?|p o bo?x?|p ?o(?= ?\d))(?: ?\d| [a-z]*\d| ?$)","imu");function N(a){switch(a){case c("CHEXSupportedCountry").GB:case c("CHEXSupportedCountry").US:return M;case c("CHEXSupportedCountry").FR:default:return/$^/}}function O(a,b,e){e=e.trim();switch(b){case H.Email:return c("isEmail")(e);case H.PostalCode:return K(a).test(e);case H.Street1:return L(a,e)?!1:!d("CommerceStringUtils").isEmpty(e);case H.City:case H.Region:return!d("CommerceStringUtils").isEmpty(e);default:return!0}}var P={city:"",country:c("CountryConstants").UNITED_STATES,postalCode:"",region:"",street1:"",street2:""};function Q(a){return a==null||d("CommerceStringUtils").isEmpty(a.country)?P:a}var R=/^(d){4,17}$/;function S(a){return R.test(a)}function T(a,b){return a!==""&&a===b}function U(a,b){return babelHelpers["extends"]({},a,{accountNumber:b.accountNumber?null:h._("u5fc5u987bu8f93u5165u6709u6548u7684u94f6u884cu5e10u53f7"),accountName:b.accountName?null:h._("u4f60u9700u8981u8f93u5165u5e10u6237u6240u6709u8005u7684u5168u540d"),confirmAccountNumber:b.confirmAccountNumber?null:h._("u5fc5u987bu8f93u5165u4e0eu4e0au65b9u4e00u81f4u7684u94f6u884cu5e10u53f7u3002"),routingNumber:b.routingNumber?null:h._("u5fc5u987bu8f93u5165u6709u6548u6c47u6b3eu8defu7ebfu53f7u7801")})}function V(a,b,d,e,f,g,h,j){var m=c("gkx")("8265");if(!m)return null;m=c("nullthrows")(g.businessType);var o=null,p=null,q="",r=null;switch(m){case n.INDIVIDUAL_BUSINESS:case n.SOLE_PROPRIETOR:o=A(g.ssn)?l.ITIN:l.SSN;p=g.ssn;break;case n.CORPORATION:case n.PARTNERSHIP:case n.NON_PROFIT:case n.PRIVATE_CORPORATION:case n.PUBLIC_CORPORATION:q=g.businessName;o=l.EIN;r=g.ein;break;default:i(0,2719)}return{address:{city:b.city,country:b.country,postalCode:b.postalCode,region:b.region,street1:b.street1,street2:b.street2},alert_email:(b=d)!=null?b:"",bank_account_name:f.beneficiaryName,bank_account_number:f.bankAccountNumber,bank_country:f.bankCountry,bank_info:null,bank_routing_number:f.bankCode,birthdate:g.birthdate,business_name:q,cms_id:(d=a)!=null?d:"",company_type:m,country_code:c("CountryConstants").UNITED_STATES,currency_code:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR,legal_name:{first_name:g.legalName.firstName,middle_name:g.legalName.middleName,last_name:g.legalName.lastName},merchant_category_code:e,payment_type:k.NMOR_CHECKOUT_EXPERIENCES,paypal_fraudnet_id:j,provider_type:"BANK_ACCOUNT",ssn:p,state_tax_registration_numbers:((b=h)!=null?b:[]).map(function(a){return{state_code:c("USAStateAbbreviations")[a.USAState],tax_registration_number:a.regNum}}),tax_id:r,tax_id_type:o}}g.prepareSSNInput=o;g.createNextPayoutTaxInfoData=a;g.convertDateInputToLocalDate=e;g.getSearchableEntries=f;g.getEntryFromUniqueID=q;g.isTaxRegistrationNumberValid=r;g.getChequeImage=s;g.NO_SELLER_FEE_HEADER=t;g.NO_SELLER_FEE_DESCRIPTION=u;g.COVID_TEMPORARY_NO_SELLER_FEE_TEXT=x;g.COVID_TEMPORARY_NO_SELLER_FEE_TEXT_MSITE=y;g.SELLER_FEE_DISCLAIMER_TEXT=w;g.PAYMENT_PROCESSOR_DISCLAIMER_TEXT=v;g.isTaxIDITINFormat=A;g.getUSAStateFromString=C;g.getEmptySellerPayoutInfo=D;g.getBusinessInfoErrorMessages=E;g.BIRTHDATE_ERROR_MESSAGE=j;g.getValidatorForField=F;g.isValidDate=G;g.BusinessAddressFields=H;g.castFieldToBusinessAddressField=I;g.getErrorBusinessAddressInfoMessages=J;g.getPostalCodeRegexByCountry=K;g.isAddressPostOfficeBox=L;g.validateBusinessAddressField=O;g.maybeUseDefaultBusinessAddress=Q;g.getIsAccountNumberValid=S;g.getIsConfirmAccountNumberValid=T;g.getBankAccountErrors=U;g.convertPaymentsAndTaxInfoToGraphQL=V}),98);
-----
FBPaymentsSellerBonusTrackerContainer.react",["cx","AllPaymentTypeFields","FBPaymentsSellerBonusTracker.react","FBPaymentsSellerBonusTrackerContainerQuery.graphql","RelayAPIConfig","RelayFBEnvironment","RelayModern","keyMirror","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=b("RelayModern").QueryRenderer;b("RelayModern").graphql;var k=i||(i=b("react")),l=b("keyMirror")(b("AllPaymentTypeFields"));a=function(a){babelHelpers.inheritsLoose(c,a);function c(c){var d;d=a.call(this,c)||this;b("RelayAPIConfig").DO_NOT_USE_setActorID(c.pageID);return d}var d=c.prototype;d.render=function(){var a=this.props.compactView;return k.jsx(j,{environment:b("RelayFBEnvironment"),query:h!==void 0?h:h=b("FBPaymentsSellerBonusTrackerContainerQuery.graphql"),variables:{actorID:this.props.pageID,queryParams:{origin:this.props.origin,product_type:l.NMOR_PAGES_COMMERCE,thread_id:this.props.buyerID}},render:function(c){c.error;c=c.props;c=((c=c)!=null?(c=c.list)!=null?c.banners:c:c)||[];return c.length===0?null:k.jsx("div",{className:"_1uzl"+(a?" _6hj2":""),children:c.map(function(c,d){return k.jsx(b("FBPaymentsSellerBonusTracker.react"),{banner:c,compactView:a},d)})})}})};return c}(k.Component);a.defaultProps={compactView:!1};e.exports=a}),null);
-----
PageSetUpManagedOnsiteShopInputDataUtils",["invariant","AllPaymentTypeFields","CommerceManagerOnboardingTaxIDUtils","CurrencyConstants","MerchantCategoryCode","PaymentCompanyType","ReceiverPaymentProviderType","TaxIdType","USAStateAbbreviations","keyMirror","nullthrows"],(function(a,b,c,d,e,f,g,h){"use strict";var i=c("keyMirror")(c("AllPaymentTypeFields")),j=c("keyMirror")(c("PaymentCompanyType")),k=c("keyMirror")(c("MerchantCategoryCode"));c("keyMirror")(c("ReceiverPaymentProviderType"));var l=c("keyMirror")(c("TaxIdType"));function m(a){var b={address:babelHelpers["extends"]({},a.businessInfo.address),alert_email:a.businessInfo.alertEmail,page_id:a.pageID};a.businessInfo.businessID!=null&&(b.business_id=a.businessInfo.businessID);b.contact_email=a.contactEmail;b.return_policy_time=a.returnPolicy;b.bank_country=a.businessInfo.address.country;b.country_code=a.businessInfo.address.country;b.currency_code=a.businessInfo.currency;b.payment_type=i.NMOR_CHECKOUT_EXPERIENCES;b.provider_type="BANK_ACCOUNT";b.bank_info=c("nullthrows")(n(a.payoutBankInfo));var d=c("nullthrows")(p(a.payoutTaxInfo));a=o({fraudnetSessionID:a.fraudnetSessionID,merchantCategoryCode:a.merchantCategoryCode});return babelHelpers["extends"]({},b,a,d)}function a(a){return babelHelpers["extends"]({},m(a))}function n(a){return a==null?null:{bank_account_number:a.bankAccountNumber,bank_account_type:a.bankAccountType,bank_code:a.bankCode,bank_code_type:a.bankCodeType,bank_country:a.bankCountry,beneficiary_name:a.beneficiaryName,iban_bank_code:a.ibanBankCode}}function o(a){var b={};a.fraudnetSessionID!=null&&(b.paypal_fraudnet_id=a.fraudnetSessionID);a.merchantCategoryCode!=null&&a.merchantCategoryCode!==k.NOT_SPECIFIED&&(b.merchant_category_code=a.merchantCategoryCode);return babelHelpers["extends"]({},b)}function b(a){var b=a.payoutBankInfo,d=p(a.payoutTaxInfo)||{},e=o({fraudnetSessionID:a.fraudnetSessionID,merchantCategoryCode:c("nullthrows")(a.merchantCategoryCode)});return{bank_info:c("nullthrows")(n(b)),birthdate:d.birthdate,business_name:d.business_name,cms_id:a.cmsID,company_type:c("nullthrows")(d.company_type),legal_name:c("nullthrows")(d.legal_name),merchant_category_code:c("nullthrows")(e.merchant_category_code),paypal_fraudnet_id:e.paypal_fraudnet_id,ssn:d.ssn,tax_id:d.tax_id,tax_id_type:c("nullthrows")(d.tax_id_type)}}function d(a){var b={bank_info:n(a.payoutBankInfo),cms_id:a.cmsID},c=p(a.payoutTaxInfo)||{};a=o({fraudnetSessionID:a.fraudnetSessionID,merchantCategoryCode:a.merchantCategoryCode});return babelHelpers["extends"]({},b,a,c)}function e(a){a={page_id:a.pageID,shipping_options:a.shippingOptions.map(function(a){return{cost:{amount_in_hundredths:c("nullthrows")(a.cost.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},cost_per_additional_item:{amount_in_hundredths:c("nullthrows")(a.costPerAdditionalItem.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},estimated_days_until_arrival:{max_days_to_arrival:c("nullthrows")(a.estimatedDaysToArrival.max),min_days_to_arrival:c("nullthrows")(a.estimatedDaysToArrival.min)},shipping_tier:a.shippingTier}}),state_tax_registration_numbers:a.USAStateRegNums.map(function(a){return{state_code:c("USAStateAbbreviations")[a.USAState],tax_registration_number:a.regNum}})};return babelHelpers["extends"]({},a)}function p(a){if(a==null)return null;var b={company_type:c("nullthrows")(a.businessType)};switch(b.company_type){case j.INDIVIDUAL_BUSINESS:case j.SOLE_PROPRIETOR:c("CommerceManagerOnboardingTaxIDUtils")(a.ssn)?b.tax_id_type=l.ITIN:b.tax_id_type=l.SSN;b.ssn=a.ssn;break;case j.CORPORATION:case j.PARTNERSHIP:case j.NON_PROFIT:case j.PRIVATE_CORPORATION:case j.PUBLIC_CORPORATION:b.business_name=a.businessName;b.tax_id_type=l.EIN;b.tax_id=a.ein;break;default:h(0,2719)}b.legal_name={first_name:a.legalName.firstName,last_name:a.legalName.lastName,middle_name:a.legalName.middleName};a.birthdate!=null&&(b.birthdate=a.birthdate);return babelHelpers["extends"]({},b)}g.prepareFixedLengthMigrationData=a;g.getPayoutBankInfoFromSellerPayoutBankInfo=n;g.prepareManagedMerchantData=o;g.preparePayoutSetupData=b;g.preparePayoutEditData=d;g.prepareShippingAndStateTaxData=e;g.prepareTaxData=p}),98);
-----
CommerceManagerOnboardingMutationInputUtils",["AllPaymentTypeFields","CommerceManagerOnboardingTaxIDUtils","CurrencyConstants","PageSetUpManagedOnsiteShopInputDataUtils","USAStateAbbreviations","keyMirror","nullthrows"],(function(a,b,c,d,e,f,g){"use strict";var h=c("keyMirror")(c("AllPaymentTypeFields"));function a(a){return{app_id:a.appID,business_id:a.businessID,business_name:a.businessName,catalog_id:a.catalogID,channel:a.channel,cms_id:a.cmsID,commerce_account_name:a.commerceAccountName,country_code:a.countryCode,currency_code:a.currencyCode,ig_user_id:a.igUserID,mode:a.mode,page_id:a.pageID,request_surface:"LEGACY_COMMERCE_MANAGER_ONSITE",temporary_ig_login_token:a.tempIGLoginToken,utm_params:a.utmParams}}function b(a){return{channel:a.channel,cms_id:a.cmsID,ig_user_id:a.igUserID,mode:a.mode,page_id:a.pageID,temporary_ig_login_token:a.tempIGLoginToken}}function e(a){var b;b=(b=a.shippingOptions)!=null?b:[];return{catalog_id:a.catalogID,channel:a.channel,cms_id:a.cmsID,contact_email:a.contactEmail,country_code_for_multinational_DANGEROUS:a.country,ig_user_id:a.igUserID,return_policy:a.returnPolicy,shipping_options:b.map(function(a){return{cost:{amount_in_hundredths:c("nullthrows")(a.cost.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},cost_per_additional_item:{amount_in_hundredths:c("nullthrows")(a.costPerAdditionalItem.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},estimated_days_until_arrival:{max_days_to_arrival:c("nullthrows")(a.estimatedDaysToArrival.max),min_days_to_arrival:c("nullthrows")(a.estimatedDaysToArrival.min)},shipping_tier:a.shippingTier}}),utm_params:a.utmParams}}function f(a){var b;b=(b=a.shippingOptions)!=null?b:[];return{cms_id:a.cmsID,contact_email:c("nullthrows")(a.contactEmail),country_code_for_multinational_DANGEROUS:a.country,return_policy:c("nullthrows")(a.returnPolicy),shipping_options:b.map(function(a){return{cost:{amount_in_hundredths:c("nullthrows")(a.cost.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},cost_per_additional_item:{amount_in_hundredths:c("nullthrows")(a.costPerAdditionalItem.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},estimated_days_until_arrival:{max_days_to_arrival:c("nullthrows")(a.estimatedDaysToArrival.max),min_days_to_arrival:c("nullthrows")(a.estimatedDaysToArrival.min)},shipping_tier:a.shippingTier}}),source:a.source}}function i(a){var b;b=(b=a.shippingOptions)!=null?b:[];return{cms_id:a.cmsID,contact_email:c("nullthrows")(a.contactEmail),return_policy:c("nullthrows")(a.returnPolicy),shipping_options:b.map(function(a){return{cost:{amount_in_hundredths:c("nullthrows")(a.cost.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},cost_per_additional_item:{amount_in_hundredths:c("nullthrows")(a.costPerAdditionalItem.amountInHundredths),currency:c("CurrencyConstants").ISO_CURRENCY_UNITED_STATES_DOLLAR},estimated_days_until_arrival:{max_days_to_arrival:c("nullthrows")(a.estimatedDaysToArrival.max),min_days_to_arrival:c("nullthrows")(a.estimatedDaysToArrival.min)},shipping_tier:a.shippingTier}}),utm_params:a.utmParams}}function j(a){var b={address:babelHelpers["extends"]({},a.address),alert_email:a.alertEmail,bank_country:a.address.country,bank_info:c("nullthrows")(d("PageSetUpManagedOnsiteShopInputDataUtils").getPayoutBankInfoFromSellerPayoutBankInfo(a.payoutBankInfo)),channel:a.channel,cms_id:a.cmsID,country_code:a.address.country,currency_code:a.currency,payment_type:h.NMOR_CHECKOUT_EXPERIENCES,provider_type:"BANK_ACCOUNT",state_tax_registration_numbers:a.USAStateRegNums.map(function(a){return{state_code:c("USAStateAbbreviations")[a.USAState],tax_registration_number:a.regNum}}),utm_params:a.utmParams,vat_address:babelHelpers["extends"]({},a.vatAddress),vat_id:a.vatID},e=c("nullthrows")(d("PageSetUpManagedOnsiteShopInputDataUtils").prepareTaxData(a.payoutTaxInfo));b.birthdate=e.birthdate;b.business_name=e.business_name;b.company_type=e.company_type;b.legal_name=e.legal_name;b.ssn=e.ssn;b.tax_id=e.tax_id;b.tax_id_type=e.tax_id_type;b.tax_id_type==="SSN"&&c("CommerceManagerOnboardingTaxIDUtils")(b.ssn)&&(b.tax_id_type="ITIN");e=d("PageSetUpManagedOnsiteShopInputDataUtils").prepareManagedMerchantData({fraudnetSessionID:a.fraudnetSessionID,merchantCategoryCode:a.merchantCategoryCode});return babelHelpers["extends"]({},b,e)}function k(a){var b={bank_info:c("nullthrows")(d("PageSetUpManagedOnsiteShopInputDataUtils").getPayoutBankInfoFromSellerPayoutBankInfo(a.payoutBankInfo))},e=c("nullthrows")(d("PageSetUpManagedOnsiteShopInputDataUtils").prepareTaxData(a.payoutTaxInfo));b.channel=a.channel;b.cms_id=a.cmsID;b.birthdate=c("nullthrows")(e.birthdate);b.business_name=e.business_name;b.company_type=e.company_type;b.legal_name=e.legal_name;b.ssn=e.ssn;b.tax_id=e.tax_id;b.tax_id_type=e.tax_id_type;b.currency_code=a.currency;b.payment_type=h.NMOR_CHECKOUT_EXPERIENCES;b.provider_type="BANK_ACCOUNT";b.tax_id_type==="SSN"&&c("CommerceManagerOnboardingTaxIDUtils")(b.ssn)&&(b.tax_id_type="ITIN");e=d("PageSetUpManagedOnsiteShopInputDataUtils").prepareManagedMerchantData({fraudnetSessionID:a.fraudnetSessionID});b.paypal_fraudnet_id=e.paypal_fraudnet_id;return babelHelpers["extends"]({},b)}function l(a){var b={address:babelHelpers["extends"]({},a.address),alert_email:a.alertEmail,bank_country:c("nullthrows")(a.address.country),bank_info:c("nullthrows")(d("PageSetUpManagedOnsiteShopInputDataUtils").getPayoutBankInfoFromSellerPayoutBankInfo(a.payoutBankInfo)),channel:a.channel,cms_id:a.cmsID,country_code:c("nullthrows")(a.address.country),currency_code:a.currency,payment_type:h.NMOR_CHECKOUT_EXPERIENCES,provider_type:"BANK_ACCOUNT",source:a.source,state_tax_registration_numbers:a.USAStateRegNums.map(function(a){return{state_code:c("USAStateAbbreviations")[a.USAState],tax_registration_number:a.regNum}}),utm_params:a.utmParams,vat_address:babelHelpers["extends"]({},a.vatAddress),vat_id:a.vatID},e=c("nullthrows")(d("PageSetUpManagedOnsiteShopInputDataUtils").prepareTaxData(a.payoutTaxInfo));b.birthdate=c("nullthrows")(e.birthdate);b.business_name=e.business_name;b.company_type=e.company_type;b.legal_name=e.legal_name;b.ssn=e.ssn;b.tax_id=e.tax_id;b.tax_id_type=e.tax_id_type;b.tax_id_type==="SSN"&&c("CommerceManagerOnboardingTaxIDUtils")(b.ssn)&&(b.tax_id_type="ITIN");e=d("PageSetUpManagedOnsiteShopInputDataUtils").prepareManagedMerchantData({fraudnetSessionID:a.fraudnetSessionID,merchantCategoryCode:a.merchantCategoryCode});b.merchant_category_code=c("nullthrows")(e.merchant_category_code);b.paypal_fraudnet_id=e.paypal_fraudnet_id;return babelHelpers["extends"]({},b)}g.prepareOnsiteBusinessAccountSetupData=a;g.prepareIGSandboxOnsiteBusinessAccountSetupData=b;g.preparePreferencesSetupData=e;g.prepareOnsiteConversionPreferencesSetupData=f;g.prepareFbePreferencesSetupData=i;g.preparePayoutsSetupData=j;g.prepareSunriseConversionPayoutsSetupData=k;g.prepareOnsiteConversionPayoutsSetupData=l}),98);
-----
FBPayments3DS",["DOM","FBPayUPLLogger","FBPayments3DSAcquirerMerchantInfoQuery.graphql","FBPayments3DSCardPaymentMethodInfoQuery.graphql","FBPayments3DSChallengeModalContainer.react","FBPayments3DSComplete3DSMutation.graphql","FBPayments3DSCompleteAndAuthorizeQuery.graphql","FBPayments3DSDeviceDataCollectionComponent.react","FBPayments3DSErrorUtils","FBPayments3DSEvents","FBPayments3DSFetch3rdPartyAuthURLMutation.graphql","FBPayments3DSLoggerBase","FBPayments3DSLoggerConstants","FBPayments3DSQuery.graphql","FBPaymentsModulesAPIUtils","Promise","RelayFBEnvironment","RelayModern","guid","isEmpty","keyMirror","promiseDone","react","react-dom"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m,n=d("react"),o=c("keyMirror")({CHALLENGED:null,COMPLETED:null,ATTEMPT_COMPLETED:null,FAILED:null,NOT_COMPLETED:null,REJECTED:null,NOT_ENROLLED:null,UNAVAILABLE:null,BYPASS:null}),p={SMALL:"01",MEDIUM:"02",LARGE:"03",EXTRA_LARGE:"04",FULL_PAGE:"05"},q=c("keyMirror")({CARDINAL_3DS1:null,CARDINAL_3DS2:null}),r="https://centinelapi.cardinalcommerce.com";a="https://centinelapistag.cardinalcommerce.com";var s="/V1/Cruise/Collect",t={CARDINAL_INCORRECT_CARD_INFO:1353097},u=h!==void 0?h:h=b("FBPayments3DSQuery.graphql"),v=i!==void 0?i:i=b("FBPayments3DSAcquirerMerchantInfoQuery.graphql"),w=j!==void 0?j:j=b("FBPayments3DSFetch3rdPartyAuthURLMutation.graphql"),x=k!==void 0?k:k=b("FBPayments3DSCardPaymentMethodInfoQuery.graphql"),y=l!==void 0?l:l=b("FBPayments3DSCompleteAndAuthorizeQuery.graphql"),z=m!==void 0?m:m=b("FBPayments3DSComplete3DSMutation.graphql");e=function(){function a(){this.$1=null,this.$2=null,this.$3=null,this.$4=null,this.$5=!1,this.$6=null,this.$7=new(c("FBPayments3DSLoggerBase"))(),this.$8=new(c("FBPayUPLLogger"))(),this.$9=null,this.$10=c("RelayFBEnvironment")}var e=a.prototype;e.initLogger=function(a,b){this.$9=this.$9==null?c("guid")():this.$9,this.$7.setGlobalFields({session:this.$9,item_type:a,credential_id:b})};e.initUPLLogger=function(a,b){this.$8=new(c("FBPayUPLLogger"))(a,"web",b)};e.setRequires3DS=function(a){this.$5=a};e.collectDeviceData=function(a){var e=this,f=a.ccNumberBin,g=a.credentialID,h=a.amount,i=a.itemType,j=a.ccCountryCode,k=a.paymentAccountID,l=a.isRequestFromWhatsapp,m=a.externalContextID;a=a.sessionID;this.initLogger(i,g);this.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.JWT_CREATE_INIT).setExternalContextID(m).log();this.initUPLLogger(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(i.toLowerCase()),a);this.$8.logClientLoadThreedsInit({target_name:"jwt_create_mutation"},{credential_id:(a=g)!=null?a:"",amount:h.amount,currency:h.currency,cc_country_code:j,payment_account_id:(a=k)!=null?a:"",is_request_from_whatsapp:l===!0?"1":"0"});return new(b("Promise"))(function(a,b){d("RelayModern").commitMutation(e.$10,{mutation:u,variables:{input:babelHelpers["extends"]({cc_number_bin:f,credential_id:g,amount:h,item_type:i,cc_country_code:j,account_id:k,actor_id:g,is_request_from_whatsapp:l,logging_id:e.$8.getSessionID()},m!=null?{external_context_id:m}:null)},onCompleted:function(f){var g;e.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.JWT_CREATE_COMPLETE).setExternalContextID(m).log();e.$1=((g=f.jwt_query)==null?void 0:g.token)||"";e.$2=((g=f.jwt_query)==null?void 0:g.id)||"";g=((g=f.jwt_query)==null?void 0:g.status)||"";f=((f=f.jwt_query)==null?void 0:f.error_message)||"";if(g==="TEST_ONLY_MODE")a();else if(g==="SUCCESS")d("react-dom").render(n.jsx(c("FBPayments3DSDeviceDataCollectionComponent.react"),{externalContextID:m,logger:e.$7,jwt:e.$1,onDeviceDataComplete:function(){a()},uplLogger:e.$8}),c("DOM").create("div"));else{e.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.JWT_CREATE_ERROR).setExternalContextID(m).setError(f).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();g=c("FBPayments3DSErrorUtils").getError("JWT_CREATION_FAILED",f);b(g)}},onError:function(a){e.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.JWT_CREATE_ERROR).setExternalContextID(m).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();a=c("FBPayments3DSErrorUtils").getError("JWT_CREATION_FAILED",a.message);b(a)}})})};e.requires3DS2=function(){return this.$5};e.createLookupData=function(a){var b,c=a.lookupData.acquirer_merchant_info;c&&(c={merchant_name:c.merchantName,acquirer_mid:c.acquirerMid,acquirer_bin:c.acquirerBin});c={df_ref_id:this.$2||"",device_channel:"Browser",transaction_mode:"S",browser_info:{user_agent:window.navigator.userAgent,java_enabled:window.navigator.javaEnabled()?"true":"false",language:window.navigator.language,color_depth:screen.colorDepth.toString(),screen_height:window.innerHeight,screen_width:window.innerWidth,time_zone:new Date().getTimezoneOffset().toString()},email:a.lookupData.email,mobile_phone:a.lookupData.mobile_phone,billing_first_name:a.lookupData.billing_first_name,billing_middle_name:a.lookupData.billing_middle_name,billing_last_name:a.lookupData.billing_last_name,credit_card_address:a.lookupData.credit_card_address,acs_window_size:(b=a.lookupData.acs_window_size)!=null?b:p.LARGE,acquirer_merchant_info:c,fb_return_url:a.lookupData.customFBReturnURL,challenge_indicator:(b=a.lookupData.challenge_indicator)!=null?b:""};return c};e.getPaymentMethod=function(){var a={provider:"CREDIT_CARD",instrument_type:"CC"};return a};e.createCredentialID=function(a){a={fb_id:a,payment_method:this.getPaymentMethod()};return a};e.getAcquirerMerchantInfo=function(a){var e=this;switch(a.paymentType){case"NMOR_DONATION_P4P":case"NMOR_PPGF_DONATION":case"NMOR_DONATION_CIELO":return new(b("Promise"))(function(b,f){var g=a.paymentInfo.receiverId||"",h=a.paymentInfo.orderId||"";e.$8.logClientLoadThreedsInit({target_name:"acquirer_merchant_info_mutation"},{raw_credential_id:a.credentialID,provider:e.getPaymentMethod().provider,instrument_type:e.getPaymentMethod().instrument_type,currency:a.currency,order_id:h,receiver_id:g});c("promiseDone")(d("RelayModern").fetchQuery(e.$10,v,{data:{credential_id:e.createCredentialID(a.credentialID),currency:a.currency,order_id:h,payment_type:a.paymentType,receiver_id:g,logging_id:e.$8.getSessionID()}}),function(c){c=c.acquirer_merchant_info_query||{};var d=c.acquirer_mid;c=c.acquirer_bin;b({merchantName:a.paymentInfo.merchantName||"",acquirerMid:d||"",acquirerBin:c||""})},function(a){a=c("FBPayments3DSErrorUtils").getError("ACQUIRER_MERCHANT_INFO_FAILED",a.message);f(a)})});case"NMOR_EVENT_TICKETING":var f=this.getAcqurerInfoFromCardType(a.paymentInfo.acquirerMid||[],a.creditCardType,a.currency),g=this.getAcqurerInfoFromCardType(a.paymentInfo.acquirerBin||[],a.creditCardType,a.currency);f={merchantName:a.paymentInfo.merchantName||"",acquirerMid:f||"",acquirerBin:g||""};return b("Promise").resolve(f);default:return b("Promise").resolve(null)}};e.fetchAuthenticationURL=function(a){var e,f=this;this.$7.setGlobalFields({credential_id:a.credentialID});this.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_REQUEST).setExternalContextID(a.externalContextID).log();this.$8.logClientLoadThreedsInit({target_name:"get_3rd_party_auth_url_mutation"},{raw_credential_id:a.credentialID,amount:a.amount.amount,currency:a.amount.currency,processor:(e=a.processor)!=null?e:q.CARDINAL_3DS2,is_request_from_whatsapp:a.isRequestFromWhatsapp===!0?"1":"0"});return new(b("Promise"))(function(b,e){var g;d("RelayModern").commitMutation(f.$10,{mutation:w,variables:{input:babelHelpers["extends"]({credential_id:f.createCredentialID(a.credentialID)},a.externalContextID!=null?{external_context_id:a.externalContextID}:null,{amount:a.amount,item_type:a.itemType,lookup_data:f.createLookupData(a),account_id:a.paymentAccountID,processor:(g=a.processor)!=null?g:q.CARDINAL_3DS2,actor_id:a.credentialID,is_request_from_whatsapp:a.isRequestFromWhatsapp,session_id:f.$8.getSessionID()})},onCompleted:function(g){g=g.fetch_3rd_party_payment_auth||{};var h=g.status,i=g.row_id,j=g.step_up_url,k=g.step_up_jwt;g=g.payments_error;if(g!=null){f.$8.logClientLoadThreedsSuccess({target_name:"get_3rd_party_auth_url_mutation"},{response_status:"fail"});f.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_RESPONSE_ERROR).setExternalContextID(a.externalContextID).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();if(g.error_code==t.CARDINAL_INCORRECT_CARD_INFO){g=c("FBPayments3DSErrorUtils").getError("INCORRECT_CARD_INFO","Backend threw incorrect card info error");e(g)}else{g=c("FBPayments3DSErrorUtils").getError("CMPI_FAILED",h||"Empty status");e(g)}}else if(h==o.CHALLENGED){f.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_RESPONSE_CHALLENGE).setExternalContextID(a.externalContextID).setResponseStatus(h).setRowID(i).log();f.$8.logClientLoadThreedsSuccess({target_name:"get_3rd_party_auth_url_mutation"},{response_status:"challenge"});f.$3=a.div==null?c("DOM").create("div"):a.div;d("react-dom").render(n.jsx(c("FBPayments3DSChallengeModalContainer.react"),{externalContextID:a.externalContextID,logger:f.$7,container:f.$3,stepUpURL:(g=j)!=null?g:"",params:[{key:"JWT",value:(j=k==null?void 0:k.token)!=null?j:""}],protocol:"POST",isLite:(g=a.isLite)!=null?g:!1,onChallengeComplete:function(){var g;f.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CHALLENGE_SUCCESS).setExternalContextID(a.externalContextID).setExternalTransactionID(f.$4).setRowID(i).setCardinalPayload(f.$6).log();f.$8.logClientFetchThreedsSuccess({target_name:"challenge_success"});c("promiseDone")(f.processAfterCMPI((g=i)!=null?g:"",a.credentialID,a.itemType,(g=f.$4)!=null?g:"",a.paymentAccountID,a.isSavingCC,a.isRequestFromWhatsapp,a.externalContextID),function(a){b(a)},function(a){e(a)})},onChallengeFail:function(){e(c("FBPayments3DSErrorUtils").getError("USER_CANCELLED_MODAL","User clicked cancel button on the dialog box."))},uplLogger:f.$8}),f.$3)}else if(h==o.COMPLETED||h==o.ATTEMPT_COMPLETED||h==o.UNAVAILABLE||h==o.NOT_ENROLLED||h==o.BYPASS){f.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_RESPONSE_SUCCESS).setExternalContextID(a.externalContextID).setResponseStatus(h).setRowID(i).log();f.$8.logClientLoadThreedsSuccess({target_name:"get_3rd_party_auth_url_mutation"},{response_status:(k=h)!=null?k:"success"});c("promiseDone")(f.processAfterCMPI((j=i)!=null?j:"",a.credentialID,a.itemType,(g=f.$4)!=null?g:"",a.paymentAccountID,a.isSavingCC,a.isRequestFromWhatsapp,a.externalContextID),function(a){b(a)},function(a){e(a)})}else{f.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_RESPONSE_FAILED_STATUS).setExternalContextID(a.externalContextID).setResponseStatus(h).setRowID(i).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();k=c("FBPayments3DSErrorUtils").getError("AUTH_FAIL",h||"Empty status");e(k)}},onError:function(b){f.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.CMPI_RESPONSE_ERROR).setExternalContextID(a.externalContextID).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();b=c("FBPayments3DSErrorUtils").getError("CMPI_FAILED",b.message);e(b)}})})};e.getDeviceDataURLOrigin=function(){return r};e.getDeviceDataURL=function(){return r+s};e.challengeComplete=function(a,b){this.$3&&(this.$4=a,this.$6=b,this.$3.dispatchEvent(new Event(d("FBPayments3DSEvents").CHALLENGE_COMPLETE_EVENT_NAME)))};e.processAfterCMPI=function(a,d,e,f,g,h,i,j){var k=this;h===void 0&&(h=!1);i===void 0&&(i=null);return new(b("Promise"))(function(b,l){c("promiseDone")(h?k.complete3DSAndAuthorize(a,d,e,g,j):k.complete3DS(a,d,e,f,g,i,j),function(a){switch(a.status){case o.COMPLETED:case o.ATTEMPT_COMPLETED:case o.NOT_ENROLLED:case o.BYPASS:case o.UNAVAILABLE:b(a);break;case o.FAILED:case o.NOT_COMPLETED:case o.REJECTED:l(c("FBPayments3DSErrorUtils").getError("AUTH_FAIL",status));break;default:l(c("FBPayments3DSErrorUtils").getError(h?"COMPLETE_3DS_FAILED":"COMPLETE_3DS_AND_AUTH_FAILED",status))}},function(a){l(a)})})};e.complete3DS=function(a,e,f,g,h,i,j){var k,l=this;this.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DS_REQUEST).setExternalContextID(j).setRowID(a).setCardinalPayload(this.$6).setExternalTransactionID(this.$4).log();this.$8.logClientLoadThreedsInit({target_name:"complete_3ds_mutation"},{auth_row_id:a,credential_id:e,cardinal_txn_id:g,account_id:(k=h)!=null?k:"",is_request_from_whatsapp:i===!0?"1":"0"});return new(b("Promise"))(function(b,k){d("RelayModern").commitMutation(l.$10,{mutation:z,variables:{input:babelHelpers["extends"]({auth_row_id:a},j!=null?{external_context_id:j}:null,{credential_id:e,item_type:f,cardinal_txn_id:g,actor_id:e,account_id:h,is_request_from_whatsapp:i,logging_id:l.$8.getSessionID()})},onCompleted:function(e){e=e.complete_3ds;e=l.$11(e);if(e!=null)l.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DS_SUCCESS).setExternalContextID(j).setResponseStatus(e.status).setRowID(e.rowID).setCardinalPayload(l.$6).setExternalTransactionID(l.$4).setVersionOf3ds(e.threeDSTransactionData.dsTransactionID).log(),b(e);else{l.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DS_ERROR).setExternalContextID(j).setRowID(a).setCardinalPayload(l.$6).setExternalTransactionID(l.$4).log();e=c("FBPayments3DSErrorUtils").getError("COMPLETE_3DS_FAILED","Values returned from GraphQL Query were invalid");k(e)}},onError:function(b){l.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DS_ERROR).setExternalContextID(j).setRowID(a).setCardinalPayload(l.$6).setExternalTransactionID(l.$4).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();b=c("FBPayments3DSErrorUtils").getError("COMPLETE_3DS_FAILED",b.message);k(b)}})})};e.complete3DSAndAuthorize=function(a,e,f,g,h){var i,j=this;this.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DSANDAUTH_REQUEST).setExternalContextID(h).setRowID(a).setCardinalPayload(this.$6).setExternalTransactionID(this.$4).log();this.$8.logClientLoadThreedsInit({target_name:"complete_3ds_and_auth_mutation"},{cardinal_payload:(i=this.$6)!=null?i:"",auth_row_id:a,raw_credential_id:e,cardinal_txn_id:(i=this.$4)!=null?i:"",account_id:(i=g)!=null?i:""});return new(b("Promise"))(function(b,i){var k;d("RelayModern").commitMutation(j.$10,{mutation:y,variables:{input:babelHelpers["extends"]({processor:"CARDINAL_3DS2",auth_row_id:a,credential_id:j.createCredentialID(e),item_type:f,account_id:g,actor_id:e,payload:(k=j.$6)!=null?k:"",transaction_id:j.$4,logging_id:j.$8.getSessionID()},h!=null?{external_context_id:h}:null)},onCompleted:function(e){e=e.complete3ds_and_authorize;e=j.$11(e);if(e!=null)j.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DSANDAUTH_SUCCESS).setExternalContextID(h).setResponseStatus(e.status).setRowID(e.rowID).setCardinalPayload(j.$6).setExternalTransactionID(j.$4).setVersionOf3ds(e.threeDSTransactionData.dsTransactionID).log(),b(e);else{j.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DS_ERROR).setExternalContextID(h).setRowID(a).setCardinalPayload(j.$6).setExternalTransactionID(j.$4).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();e=c("FBPayments3DSErrorUtils").getError("COMPLETE_3DS_AND_AUTH_FAILED","Values returned from GraphQL Query were invalid");i(e)}},onError:function(b){j.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.COMPLETE3DSANDAUTH_ERROR).setExternalContextID(h).setRowID(a).setCardinalPayload(j.$6).setExternalTransactionID(j.$4).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();b=c("FBPayments3DSErrorUtils").getError("COMPLETE_3DS_AND_AUTH_FAILED",b.message);i(b)}})})};e.$11=function(a){return a!=null&&a.three_d_secure_version!=null&&a.ds_transaction_id!=null&&a.cavv!=null&&a.eci_flag!=null&&a.auth_row_id!=null&&a.status!=null&&a.xid!=null&&a.cardinal_txn_id!=null?{status:a.status,rowID:a.auth_row_id,cardinalTransactionID:a.cardinal_txn_id,threeDSTransactionData:{threeDsSecureVersion:a.three_d_secure_version,cavv:a.cavv,eciFlag:a.eci_flag,xid:a.xid,dsTransactionID:a.ds_transaction_id}}:null};e.getCardPaymentMethodInfo=function(a){var e,f=this;this.initLogger(a.itemType,a.credentialId);this.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.GET_CARD_PAYMENT_INFO_REQUEST).log();this.initUPLLogger(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(a.itemType));this.$8.logClientLoadThreedsInit({target_name:"3ds_eligibility_query"},{account_currency:a.accountCurrency,credential_id:(e=a.credentialId)!=null?e:"",cc_country_code:a.ccCountryCode});return new(b("Promise"))(function(b,e){c("promiseDone")(d("RelayModern").fetchQuery(f.$10,x,{input:{payment_method:f.getPaymentMethod(),cc_number_bin:a.ccNumberBin,credential_id:a.credentialId,cc_country_code:a.ccCountryCode,item_type:a.itemType,account_currency:a.accountCurrency,logging_id:f.$8.getSessionID()}}),function(g){g=g.card_payment_method_info_query||{};var h=g.requires_3ds;g=g.mpi_processor;h==!0&&g==q.CARDINAL_3DS2?(f.$8.logClientLoadThreedsSuccess({target_name:"3ds_eligibility_query"},{is_eligible:"1"}),f.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.GET_CARD_PAYMENT_INFO_RESPONSE_THREEDS_REQ).log(),f.setRequires3DS(!!h),c("promiseDone")(f.collectDeviceData({ccNumberBin:a.ccNumberBin,credentialID:a.credentialId,amount:{amount:"1",currency:a.accountCurrency},itemType:a.itemType,ccCountryCode:a.ccCountryCode,paymentAccountID:null}),function(){b()},function(a){e(a)})):(f.$8.logClientLoadThreedsSuccess({target_name:"3ds_eligibility_query"},{is_eligible:"0"}),f.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.GET_CARD_PAYMENT_INFO_RESPONSE_THREEDS_NOT_REQ).log());f.setRequires3DS(!!h);b()},function(a){f.$7.setFlowStep(d("FBPayments3DSLoggerConstants").LoggerEvent.GET_CARD_PAYMENT_INFO_ERROR).setEventName(d("FBPayments3DSLoggerConstants").LoggerEventName.FAILURE).log();a=c("FBPayments3DSErrorUtils").getError("CARD_LOOKUP_FAILED",a.message);e(a)})})};e.getBinNumberFromCreditCard=function(a){if(a==null)return null;a=a.replace(/ /g,"");return a.length>=6?a.substr(0,6):null};e.getAcqurerInfoFromCardType=function(a,b,d){a=a.find(function(a){if(!c("isEmpty")(a.currency))return a.currency===d&&a.cardType===b;else return a.cardType===b});return a==null?void 0:a.info};return a}();f=new e();g["default"]=f}),98);
-----
PaymentsCometCheckoutDialog.react",["fbt","AllPaymentTypeFields","CometAuthenticityPaymentsWizard.react","CometCardedDialogLegacy.react","CometCardedDialogLoadingStateLegacy.react","FBPayCometGatingUtils","FBPayHubHooks","FBPayLoggingContext","FBPayLoggingUtils","FBPaySurveyUtils","FBPayUPLLogger","FBPaymentsLoggerConstants","PayflowsInitFalcoEvent","PaymentsCometCheckout.react","PaymentsCometCheckoutAPIUtils","PaymentsCometCheckoutComponentUtils","PaymentsCometCheckoutContext","PaymentsCometCheckoutReducer","gkx","react","requireDeferred","useCometDeferredDialog","useConnectPayPal","usePaymentsCometCheckoutCreatePayment","usePaymentsCometCheckoutInformationMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useContext,k=b.useEffect,l=b.useMemo,m=b.useReducer,n=b.useRef,o=b.useState,p=c("requireDeferred")("PaymentsCometCheckoutExitCheckoutDialog.react").__setRef("PaymentsCometCheckoutDialog.react"),q="client",r={onClose:function(){},title:s(),withCloseButton:!0};function s(){var a=d("FBPayCometGatingUtils").shouldShowFBPayExperienceOnComet();return a&&c("gkx")("773")===!1?h._("Facebook Pay"):h._("u7ed3u8d26")}var t=d("FBPayLoggingUtils").sessionIDGenerator(),u={mobileRootWrapper:{"@media (max-width: 564px)_bottom":"x1ckq5","@media (max-width: 564px)_height":"x40dr4r","@media (max-width: 564px)_position":"xfqz7ig",$$css:!0}};function a(a){var b=a.checkoutProps,e=a.dialogProps,f=a.onClose;t=(a=t)!=null?a:d("FBPayLoggingUtils").sessionIDGenerator();var g=c("usePaymentsCometCheckoutInformationMutation")(),v=c("useCometDeferredDialog")(p,function(){return i.jsx(c("CometCardedDialogLoadingStateLegacy.react"),{})});a=m(d("PaymentsCometCheckoutReducer").reducer,d("PaymentsCometCheckoutReducer").getInitialState({checkoutProps:b,clientSessionID:t,onClose:f}));var w=a[0],x=a[1];a=j(c("PaymentsCometCheckoutContext"));var y=a.logger,z=w.requiresCheckoutInfoRefresh,A=function(){var a;return(a=c("AllPaymentTypeFields")[b==null?void 0:b.paymentType.toString()])!=null?a:"unknown"},B=A();a=l(function(){var a=new(c("FBPayUPLLogger"))(B,"comet",t);return{logger:a}},[B]);var C=a.logger;d("FBPayHubHooks").useConstructor(function(){var a;y.setGlobalFields({flow_name:d("FBPaymentsLoggerConstants").LoggerFlowType.CHECKOUT,product:A(),session_id:w.clientSessionID});var b=babelHelpers["extends"]({comet:!0},(a=w.checkoutProps)==null?void 0:a.extraData);y.setGlobalExtraData(b);y.log({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_MODULE});c("PayflowsInitFalcoEvent").log(function(){return{e_counter_channel:0,event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,event_type:q,flow_name:d("FBPaymentsLoggerConstants").LoggerFlowType.CHECKOUT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.START,is_free:!1,paymod_extra_data:JSON.stringify(b),product:A(),session_id:w.clientSessionID}})});var D=n(!0),E=n(!0);k(function(){D.current===!0&&(D.current=!1,C.logClientLoadCheckoutInit({target_name:"checkout",view_name:"checkout"}))},[C]);k(function(){g(d("PaymentsCometCheckoutAPIUtils").getLoadCheckoutInfoInput(w),function(a){var b;if(((b=a.checkout_information_mutation)==null?void 0:b.payments_error)!=null){E.current&&(C.logClientLoadCheckoutFail({target_name:"checkout",view_name:"checkout"}),E.current=!1);b=(b=a.checkout_information_mutation)==null?void 0:b.payments_error;x({paymentsUserFacingError:b,type:"CHECKOUT_INIT_FAILURE"})}else x({checkoutInformation:a,type:"LOAD_CHECKOUT_INFO_SUCCESS"}),E.current&&(C.logClientLoadCheckoutSuccess({target_name:"checkout",view_name:"checkout"}),E.current=!1)},function(){E.current&&(C.logClientLoadCheckoutFail({target_name:"checkout",view_name:"checkout"}),E.current=!1)},function(){});return function(){t=null}},[g]);var F=o(!1),G=F[0],H=F[1];k(function(){z===!0&&G===!1&&(H(!0),g(d("PaymentsCometCheckoutAPIUtils").getLoadCheckoutInfoInput(w),function(a){x({checkoutInformation:a,type:"LOAD_CHECKOUT_INFO_SUCCESS"}),x({requiresCheckoutInfoRefresh:!1,type:"SET_REQUIRES_CHECKOUT_REFRESH"}),H(!1),y.log({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_CHECKOUT_API})},function(){x({requiresCheckoutInfoRefresh:!1,type:"SET_REQUIRES_CHECKOUT_REFRESH"}),H(!1)}))},[g,x,w,z,y,G]);var I=d("FBPaySurveyUtils").userHasResearchSurvey(w==null?void 0:w.hasExitSurvey,w==null?void 0:w.hasCompletionSurvey);F=Boolean(d("FBPaySurveyUtils").userHasResearchSurvey(w==null?void 0:w.hasExitSurvey,w==null?void 0:w.hasCompletionSurvey)&&d("FBPaySurveyUtils").isUserInSurveyControlGroup());var J=function(){if(w.step==="CONFIRMATION"){y.log({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_CONFIRMATION_LEAVE});f();return}y.log({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.DISPLAY,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_EXIT_DIALOG});v({onClose:function(){},onCloseLeavingDialog:function(){C.logUserClickCheckoutExit({target_name:"fbpay_checkout"}),f()},showSurveyOnClose:I})},K=o(!1),L=K[0],M=K[1];K=function(){var a=c("usePaymentsCometCheckoutCreatePayment")(),b=c("useConnectPayPal")(),d=b[0];return i.jsx(c("CometAuthenticityPaymentsWizard.react"),{onClose:f,onFinish:function(){M(!0),a(d)},order_id:"0"})};L=d("PaymentsCometCheckoutAPIUtils").isEligibleForIDVFlow(w)&&w.step==="CONFIRM_IDENTITY"&&!L;var N=l(function(){return{dispatch:x,logger:y,state:w}},[y,w]);if(L)return i.jsx(c("PaymentsCometCheckoutContext").Provider,{value:N,children:i.jsx(K,{})});if(w.step==="MEMBERSHIP_DETAIL"&&((K=w.loyaltyAccountLinkingEntryPointSpec)==null?void 0:K.title)!=null){r.title=(K=(K=w.loyaltyAccountLinkingEntryPointSpec)==null?void 0:K.title)!=null?K:w.loyaltyProgramName}else r.title=s();w.step==="CONFIRMATION"&&((K=w.checkoutProps)==null?void 0:K.extraData)!=null&&((K=w.checkoutProps)==null?void 0:(K=K.extraData)==null?void 0:K.negotiable_price_offer_data)!=null&&(r.title=h._("u5df2u51fau4ef7"));(!d("FBPayCometGatingUtils").shouldShowFBPayExperienceOnComet()&&d("PaymentsCometCheckoutAPIUtils").isDonation(A())||F)&&(r.title=h._("u7ed3u8d26"));c("gkx")("773")&&d("PaymentsCometCheckoutAPIUtils").isDonation(A())&&(r.title=h._("u6350u6b3e"));K=d("PaymentsCometCheckoutComponentUtils").showStickyPaymentButton(A())?u.mobileRootWrapper:null;return i.jsx("div",{style:{display:L?"none":null},children:i.jsx(c("CometCardedDialogLegacy.react"),babelHelpers["extends"]({},r,e,{anchorXStyle:K,disableClosingWithMask:!0,onClose:J,testid:void 0,children:i.jsx(c("PaymentsCometCheckoutContext").Provider,{value:N,children:i.jsx(c("FBPayLoggingContext").Provider,{value:a,children:i.jsx(c("PaymentsCometCheckout.react"),{})})})}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
FBPayAuthAPIUtils",["CurrentUser","FBLogger","FBPayAuthLibrary","FBPayAuthLibraryCommon","FBPayCreateFBPayPINMutation","FBPayDisableFBPayPINMutation","FBPayEnableFBPayPINMutation","FBPayGetServerEncryptionKeyMutation","FBPayUpdatePaymentsPINMutation","FBPayVerifyAuthFactorMutation","FBPaymentsModulesAPIUtils","Promise","RelayFBEnvironment","URI","promiseDone","uuid"],(function(a,b,c,d,e,f,g){"use strict";var h=3;function a(a,e){var f={actor_id:c("CurrentUser").getID(),client_mutation_id:c("uuid")(),device_id:"device_id",payment_type:(a=a)!=null?a:"FBPAY_HUB",payment_legacy_account_id:(a=e)!=null?a:null};return new(b("Promise"))(function(a,b){var e=function(e){c("promiseDone")(d("FBPayGetServerEncryptionKeyMutation").getServerEncryptionKey(f),function(f){var g=f.trustChain;f=f.isDevExternal;c("promiseDone")(d("FBPayAuthLibraryCommon").getCryptoKeyFromCert(g,f),function(b){e=0,a(b)},function(a){e===1&&b(a)})},function(a){b(a)}),g=e};for(var g=h;g>=1;g--)e(g)})}function e(a,b,d){a=new(c("URI"))(window.location.href).addQueryData({payment_method_id:a,target_account_id:b,session_id:d});return a.toString()}function f(a,b,e,f,g){var h={data:{app_id:"2805739562851096",auth_ticket_type:"PIN",caps:["CHARGE"],device_id:"12345",pin:"$e2ee"},nonce:c("uuid")(),op:"CREATE_FBPAY_PIN",ver:1};a={pin:a};var i=c("RelayFBEnvironment");c("promiseDone")(d("FBPayAuthLibrary").getPTT(h,a),function(a){var h=a.keyPairs;a=a.ptt;c("FBPayCreateFBPayPINMutation")(i,{client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getID(),payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(b),platform_trust_token:a,logging_id:g,format_type:"NUM_4_DIGITS"},function(a){e(h)},function(a){f(a)})},function(a){f(a)})}function i(a,b,e,f,g,h){var i=d("FBPayAuthLibraryCommon").getVerifyAuthData(a,["CHARGE","DISABLE_FBPAY_PIN","ENABLE_FBPAY_PIN"],c("uuid")());a=a.authFactorType==="PIN"?{pin:f}:a.authFactorType==="CSC"?{csc:f}:{};var j=c("RelayFBEnvironment");c("promiseDone")(d("FBPayAuthLibrary").getPTT(i,a),function(a){var f,i=a.keyPairs;a=a.ptt;c("FBPayVerifyAuthFactorMutation")(j,{client_mutation_id:c("uuid")(),actor_id:(f=c("CurrentUser").getID())!=null?f:"",platform_trust_token:a,payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(b),logging_id:e},function(a){g(i)},function(a){h(a)})},function(){h({remainingAttempts:null})})}function j(a,b,e,f,g,h,i){b=d("FBPayAuthLibraryCommon").getVerifyAuthData(b,e,c("uuid")(),a);var j=c("RelayFBEnvironment");c("promiseDone")(d("FBPayAuthLibraryCommon").getPTTWithoutEncryption(b),function(a){var b,e=a.keyPairs;a=a.ptt;c("FBPayVerifyAuthFactorMutation")(j,{client_mutation_id:c("uuid")(),actor_id:(b=c("CurrentUser").getID())!=null?b:"",platform_trust_token:a,payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(f),logging_id:g},function(a){h(e)},function(a){i(a)})},function(){i({remainingAttempts:null})})}function k(a,b,e,f,g,h,i,j){a=d("FBPayAuthLibraryCommon").getVerifyAuthData(a,["CHARGE"],c("uuid")());var k={pin:b},l=c("RelayFBEnvironment"),m={client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getID(),payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(g),logging_id:j,new_pin:{sensitive_string_value:b}};e!=null?m=babelHelpers["extends"]({},m,{old_pin:{sensitive_string_value:e}}):f!=null&&(m=babelHelpers["extends"]({},m,{password:{sensitive_string_value:f}}));c("promiseDone")(d("FBPayAuthLibrary").getPTT(a,k),function(a){var b=a.keyPairs;a=a.ptt;m=babelHelpers["extends"]({},m,{platform_trust_token:a});d("FBPayUpdatePaymentsPINMutation").updatePaymentsPIN(l,m,function(a){h(b)},function(a){i(a)})},function(a){i(a)})}function l(a,b,e,f,g){var h={data:{},nonce:c("uuid")(),op:"DISABLE_FBPAY_PIN",ver:1},j=c("RelayFBEnvironment");i({authFactorType:"PIN"},a,b,e,function(e){c("promiseDone")(d("FBPayAuthLibrary").getPTT(h,{},e),function(e){e.keyPairs;e=e.ptt;c("FBPayDisableFBPayPINMutation")(j,{client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getID(),platform_trust_token:e,payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(a),logging_id:b},function(a){f()},function(){g({remainingAttempts:null})})},function(){g({remainingAttempts:null})})},function(a){g(a)})}function m(a,b,e,f,g){var h={data:{},nonce:c("uuid")(),op:"ENABLE_FBPAY_PIN",ver:1},j=c("RelayFBEnvironment");i({authFactorType:"PIN"},a,b,e,function(e){c("promiseDone")(d("FBPayAuthLibrary").getPTT(h,{},e),function(e){e.keyPairs;e=e.ptt;c("FBPayEnableFBPayPINMutation")(j,{client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getID(),platform_trust_token:e,payment_type:d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFields(a),logging_id:b},function(a){f()},function(){g({remainingAttempts:null})})},function(){g({remainingAttempts:null})})},function(a){g(a)})}function n(a){switch(a){case"PIN":return 70;case"CSC":return 67;case"PAYPAL_ACCESS_TOKEN":return 80;case"SDC":return 68;default:throw c("FBLogger")("fbpay").mustfixThrow("Not supported auth factor type")}}g.getServerPublicCryptoKey=a;g.getPaypalredirectSuccessURL=e;g.createFBPayPIN=f;g.verifyAuthFactor=i;g.verifyAuthFactorPaypal=j;g.updatePIN=k;g.disableFBPayPIN=l;g.enableFBPayPIN=m;g.getAuthTicketType=n}),98);
-----
FBPaymentsCheckoutConfigurationTypes",["AllPaymentTypeFields","FBPaymentsCheckoutConstants","prop-types","react","validateImageSrcPropType"],(function(a,b,c,d,e,f){"use strict";var g;g||b("react");c=b("FBPaymentsCheckoutConstants").Extensions;d=b("FBPaymentsCheckoutConstants").OptionPriceModel;f=b("prop-types").shape({url:b("prop-types").string.isRequired});f=b("prop-types").shape({offset:b("prop-types").number.isRequired,length:b("prop-types").number.isRequired,entity:f.isRequired});f=b("prop-types").shape({text:b("prop-types").string.isRequired,ranges:b("prop-types").arrayOf(f)});var h=b("prop-types").shape({cardType:b("prop-types").string.isRequired,currency:b("prop-types").string,info:b("prop-types").string.isRequired});h=b("prop-types").shape({acquirerBin:b("prop-types").arrayOf(h),acquirerMid:b("prop-types").arrayOf(h),action:b("prop-types").string.isRequired,extraData:b("prop-types").object,isFreePurchase:b("prop-types").bool,merchantName:b("prop-types").string,orderId:b("prop-types").string,payCallback:b("prop-types").func,paymentItemType:b("prop-types").oneOf(Object.values(b("AllPaymentTypeFields"))).isRequired,receiverId:b("prop-types").string});var i=b("prop-types").shape({title:b("prop-types").node.isRequired,subtitle:b("prop-types").node,imageURL:b("prop-types").string});i=b("prop-types").shape({description:b("prop-types").node,participant:i});var j=b("prop-types").shape({title:b("prop-types").string.isRequired,subtitle:b("prop-types").string,subsubtitle:b("prop-types").string,merchantName:b("prop-types").string,merchantText:b("prop-types").string,itemImageUrl:b("prop-types").string}),k=b("prop-types").shape({currency:b("prop-types").string.isRequired,amount:b("prop-types").string.isRequired});function a(a){return function(){return a.apply(this,arguments)}}a=a(function(){return l});var l=b("prop-types").shape({item:j,label:b("prop-types").string.isRequired,priceList:b("prop-types").arrayOf(a),price:k,userFacingReason:b("prop-types").node,zeroAmountReason:b("prop-types").node});a=b("prop-types").arrayOf(l);var m=b("prop-types").shape({identifier:b("prop-types").oneOf([c.CONTACT_NAME]).isRequired}),n=b("prop-types").shape({addEmailNuxCta:b("prop-types").node,addEmailPuxCta:b("prop-types").node,emailLabel:b("prop-types").node,formFooterMessage:b("prop-types").node,fieldPlaceholder:b("prop-types").node,showEmailLabelForMsiteNux:b("prop-types").bool}),o=b("prop-types").shape({identifier:b("prop-types").oneOf([c.CONTACT_EMAIL]).isRequired,customContent:n}),p=b("prop-types").shape({title:b("prop-types").node,iconSrc:b("validateImageSrcPropType"),emailFieldLabel:b("prop-types").node,formFooterMessage:b("prop-types").node});p=b("prop-types").shape({identifier:b("prop-types").oneOf([c.CONTACT_INFO]).isRequired,contactInfoTypes:b("prop-types").arrayOf(b("prop-types").string),customContent:p});var q=b("prop-types").shape({identifier:b("prop-types").oneOf([c.CONTACT_PHONE]).isRequired}),r=b("prop-types").shape({identifier:b("prop-types").oneOf([c.NOTE]).isRequired,length:b("prop-types").number,optional:b("prop-types").bool,placeholderText:b("prop-types").node}),s=b("prop-types").shape({allowChangeBillingCountry:b("prop-types").bool,identifier:b("prop-types").oneOf([c.PAYMENT_METHOD]).isRequired}),t=b("prop-types").shape({identifier:b("prop-types").oneOf([c.PIN_VERIFICATION]).isRequired}),u=b("prop-types").shape({addAddressNuxCta:b("prop-types").node,addAddressPuxCta:b("prop-types").node,addressLabel:b("prop-types").node,extensionLabel:b("prop-types").node,formFooterMessage:b("prop-types").node,formTitle:b("prop-types").node,selectAddressPuxCta:b("prop-types").node,showAddressLabelForMsiteNux:b("prop-types").bool,hideExtension:b("prop-types").bool,useNewAddressForm:b("prop-types").bool}),v=b("prop-types").shape({identifier:b("prop-types").oneOf([c.SHIPPING_ADDRESS]).isRequired,customContent:u}),w=b("prop-types").shape({identifier:b("prop-types").oneOf([c.PRICE_SELECTOR]).isRequired}),x=b("prop-types").shape({identifier:b("prop-types").oneOf([c.FREQUENCY_SELECTOR]).isRequired}),y=b("prop-types").shape({identifier:b("prop-types").oneOf([c.NATIONALITY_SELECTOR]).isRequired}),z=b("prop-types").shape({identifier:b("prop-types").oneOf([c.FREE_TRIAL]).isRequired,nextBillTime:b("prop-types").string,subscriptionFrequency:b("prop-types").node,subscriptionPrice:b("prop-types").node,trialFrequency:b("prop-types").node,trialPeriod:b("prop-types").number,trialType:b("prop-types").string}),A=b("prop-types").shape({"class":b("prop-types").func.isRequired,extensionKey:b("prop-types").string.isRequired,identifier:b("prop-types").oneOf([c.CUSTOM_EXTENSION]).isRequired,onChange:b("prop-types").func,extraProps:b("prop-types").object}),B=b("prop-types").shape({optionId:b("prop-types").string.isRequired,optionPriceList:a,optionTitle:b("prop-types").string.isRequired}),C=b("prop-types").shape({identifier:b("prop-types").string.isRequired,currency:b("prop-types").string,length:b("prop-types").number,optional:b("prop-types").bool,placeholderText:b("prop-types").string,prefilledContent:b("prop-types").string,priceTag:b("prop-types").string,type:b("prop-types").string.isRequired}),D=b("prop-types").shape({actionableTitle:b("prop-types").string.isRequired,disclaimer:b("prop-types").string,formFields:b("prop-types").object,title:b("prop-types").string.isRequired});B=b("prop-types").shape({actionableTitle:b("prop-types").string,allowsMultipleSelection:b("prop-types").bool,collectedDataKey:b("prop-types").string,customOption:D,identifier:b("prop-types").oneOf([c.CUSTOM_OPTIONS]).isRequired,optionListTitle:b("prop-types").string,options:b("prop-types").arrayOf(B).isRequired,preselectedOptionIDs:b("prop-types").arrayOf(b("prop-types").string),priceModel:b("prop-types").oneOf(Object.values(d)),shouldAddToOrderSummary:b("prop-types").bool,shouldPreSelect:b("prop-types").bool,title:b("prop-types").string.isRequired});d=b("prop-types").shape({couponValid:b("prop-types").bool,identifier:b("prop-types").oneOf([c.COUPON_CODE]).isRequired,length:b("prop-types").number,message:b("prop-types").string,optional:b("prop-types").bool,placeholderText:b("prop-types").string.isRequired,prefilledContent:b("prop-types").string,type:b("prop-types").string.isRequired});f=b("prop-types").shape({optIn:b("prop-types").bool,identifier:b("prop-types").oneOf([c.USER_INFO_OPT_IN]).isRequired,disclaimer:f,privacyPolicy:f});c=b("prop-types").shape({identifier:b("prop-types").oneOf([c.TAX_INFO]).isRequired});m=b("prop-types").oneOfType([m,o,q,p,r,s,t,v,A,B,w,x,y,d,z,f,c]);o=b("prop-types").shape({actionTitle:b("prop-types").string,backButton:b("prop-types").bool,backButtonCallback:b("prop-types").func,customTermsAndPoliciesText:b("prop-types").element,merchantName:b("prop-types").string,processorName:b("prop-types").string,termsAndPoliciesUrl:b("prop-types").string});q=b("prop-types").shape({type:b("prop-types").string.isRequired});p=b("prop-types").shape({"class":b("prop-types").func,extraData:b("prop-types").object,extensionKey:b("prop-types").string,identifier:b("prop-types").string.isRequired});r=b("prop-types").shape({confirmationClosedCallback:b("prop-types").func,confirmationExtensions:b("prop-types").arrayOf(p),confirmationText:b("prop-types").node,continueURL:b("prop-types").string,customConfirmationImage:b("prop-types").node,customBottomContext:b("prop-types").node,doneButtonText:b("prop-types").node,doneButtonTrackingNodeType:b("prop-types").node,enableReceiptFooterLink:b("prop-types").bool,forceHideReceiptCTA:b("prop-types").bool,merchantLogoUrl:b("prop-types").string,receiptUrl:b("prop-types").string,hideDoneButton:b("prop-types").bool,isPaymentStatusPending:b("prop-types").bool});s=b("prop-types").shape({checkoutClosedCallback:b("prop-types").func,confirmationConfiguration:r,dialogWidth:b("prop-types").number,entity:i,items:b("prop-types").arrayOf(j).isRequired,priceList:a,purchaseInfo:b("prop-types").arrayOf(m).isRequired,payActionContent:o.isRequired,renderInline:b("prop-types").bool});t=b("prop-types").shape({contentConfiguration:s,orderStatusModel:q.isRequired,paymentInfo:h.isRequired,version:b("prop-types").string.isRequired});v={CheckoutConfigurationPropTypes:t,ConfirmationConfigurationPropTypes:r,ConfirmationExtensionPropTypes:p,ContentConfigurationPropTypes:s,CustomContactEmailContentPropTypes:n,CustomOptionPropTypes:D,CustomShippingAddressContentPropTypes:u,EntityPropTypes:i,FormFieldAttributesPropTypes:C,ItemPropTypes:j,OrderStatusModelPropTypes:q,PayActionContentPropTypes:o,PaymentInfoPropTypes:h,PriceItemPropTypes:l,PriceListPropTypes:a,PricePropTypes:k,PurchaseInfoExtensionPropTypes:m};e.exports=v}),null);
-----
usePaymentsCometGetCardPaymentMethodInfoQuery",["CometRelay","FBPayUPLLogger","FBPaymentsModulesAPIUtils","gkx","promiseDone","usePaymentsCometGetCardPaymentMethodInfoQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("usePaymentsCometGetCardPaymentMethodInfoQuery.graphql");function j(a){a=a==null?void 0:a.replace(/ /g,"");return a==null||(a==null?void 0:a.length)<6?null:a.slice(0,6)}function a(a){var b=a.onError,e=a.onSuccess,f=d("CometRelay").useRelayEnvironment();return function(a,g,h){var k={payment_method:{instrument_type:"CC",provider:"CREDIT_CARD"}};if(a!=null){var l;l=((l=a.selectedCredential)==null?void 0:l.credentialType)==="CREDIT_CARD"||((l=a.selectedCredential)==null?void 0:l.credentialType)==="NEW_CREDIT_CARD";var m=c("gkx")("3818");if(!l||m){e(!1,h);return}k=babelHelpers["extends"]({account_currency:(l=a.userCurrency)!=null?l:"",cc_country_code:(m=a.geoCountry)!=null?m:"",cc_number_bin:j((l=a.selectedCredential)==null?void 0:(m=l.creditCardData)==null?void 0:m.cardNumber),credential_id:(l=a.selectedCredential)==null?void 0:l.credentialID,item_type:a.paymentType},k)}else{k=babelHelpers["extends"]({account_currency:(m=g==null?void 0:g.currency)!=null?m:"",cc_country_code:(l=g==null?void 0:g.country)!=null?l:"",cc_number_bin:j(g==null?void 0:g.cardNumber),item_type:"FBPAY_HUB"},k)}var n=new(c("FBPayUPLLogger"))(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(k.item_type.toLowerCase()),"comet",a==null?void 0:a.clientSessionID);n.logClientLoadThreedsInit({target_name:"3ds_eligibility_query"},{account_currency:(m=k)==null?void 0:m.account_currency,cc_country_code:k.cc_country_code,credential_id:(g=a==null?void 0:(l=a.selectedCredential)==null?void 0:l.credentialID)!=null?g:""});c("promiseDone")(d("CometRelay").fetchQuery(f,i,{input:babelHelpers["extends"]({logging_id:n.getSessionID()},k)}).toPromise(),function(a){var b;if((a==null?void 0:(b=a.card_payment_method_info_query)==null?void 0:b.requires_3ds)===!0&&(a==null?void 0:(b=a.card_payment_method_info_query)==null?void 0:b.mpi_processor)==="CARDINAL_3DS2"){n.logClientLoadThreedsSuccess({target_name:"3ds_eligibility_query"},{is_eligible:"1"});return e(!0,h)}else{n.logClientLoadThreedsSuccess({target_name:"3ds_eligibility_query"},{is_eligible:"0"});return e(!1,h)}},function(a){b()})}}g["default"]=a}),98);
-----
AllPaymentTypeFields",[],(function(a,b,c,d,e,f){a=Object.freeze({PAYMENT_SETTINGS:"payment_settings",PAYOUTHUB_MSC:"payouthub_msc",IG_PAYMENT_SETTINGS:"ig_payment_settings",UNKNOWN:"unknown",CAL_SETTING:"cal_setting",MP_PAYMENT_SETTINGS:"mp_payment_settings",FBPAY_HUB:"fbpay_hub",ECP:"ecp",OFFER:"offer",LOYALTY:"loyalty",MERCHANT_LOYALTY:"merchant_loyalty",MERCHANT_ONBOARDING:"MERCHANT_ONBOARDING",MENU:"menu",META_IAP_OFFSITE:"meta_iap_offsite",META_IAP_ONSITE:"meta_iap_onsite",IAP_ALL_PRODUCTS:"iap_all_products",IAP_INSTANT_GAME:"iap_instant_game",IAP_FAN_FUNDING:"iap_fan_funding",IAP_GAME_TIPPING:"iap_game_tipping",IAP_GROUP_SUBSCRIPTION:"iap_group_subscription",IAP_INSTAGRAM_P2A:"iap_instagram_p2a",IAP_INSTAGRAM_USERPAY_BADGES:"iap_instagram_userpay_badges",IAP_PAID_ONLINE_EVENT:"iap_paid_online_event",IAP_SUPER_MEET_AND_GREET:"iap_super_meet_and_greet",IAP_SUPER_VIRTUAL_GIFT:"iap_super_virtual_gift",IAP_INSTAGRAM_FAN_SUBS:"iap_instagram_fan_subs",IAP_AVATAR_CONTENT:"iap_avatar_content",IAP_NFT:"iap_nft",IAP_NON_CONSUMABLE_VIDEO:"iap_non_consumable_video",IAP_GAMES_SUBSCRIPTION:"iap_games_subscription",IAP_HORIZON_PURCHASES:"iap_horizon_purchases",IAP_WA_BUSINESS_SUBS:"iap_wa_business_subscription",IAP_ADS_BILLING:"iap_ads_billing",IAP_INSTAGRAM_CONTENT_APPRECIATION:"iap_instagram_content_appreciation",IAP_META_GEM:"iap_meta_gem",IAP_NME_SUBSCRIPTION:"iap_nme_subscription",IAP_WA_BUSINESS_CREDIT:"iap_wa_business_credit",FB_BROWSER_PAYMENT:"fb_browser_payment",MOR_NONE:"mor_none",MOR_ADS_CONSENT:"mor_ads_consent",MOR_ADS_CONSENT_AFA:"mor_ads_consent_afa",MOR_ADS_AFA:"mor_ads_afa",MOR_WA_PAID_MESSAGING:"mor_wa_paid_messaging",MOR_BIZ_MESSAGING:"mor_biz_messaging",MOR_ADS_INVOICE:"mor_ads_invoice",MOR_ADS_AUTH:"mor_ads_auth",MOR_ADS_BUSINESS:"mor_ads_business",MOR_ADS_STORED_BALANCE:"mor_ads_stored_balance",MOR_DONATIONS:"mor_donations",MOR_DONATIONS_CAUSE_FOR_CHARITIES:"mor_donations_cause_for_charities",MOR_DONATIONS_MATCHING_CONFIRMATION:"mor_donations_matching_confirmation",MOR_DONATIONS_MATCHING_PLEDGE:"mor_donations_matching_pledge",MOR_OCULUS_CV1:"mor_oculus_cv1",MOR_OCULUS_LAUNCH_V1:"mor_oculus_launch_v1",MOR_OCULUS_LAUNCH_V2:"mor_oculus_launch_v2",MOR_OCULUS_SUBSCRIPTION:"mor_oculus_subscription",MOR_OZONE:"mor_ozone",MOR_OPEN_GRAPH_PRODUCT:"mor_open_graph_product",MOR_MESSENGER_COMMERCE:"mor_messenger_commerce",MOR_P2P_TRANSFER:"mor_p2p_transfer",MOR_GIFTS:"mor_gifts",MOR_BILL:"mor_bill",MOR_AIRMAIL:"mor_airmail",MOR_EVENT_TICKETING:"mor_event_ticketing",MOR_WORKPLACE_USAGE:"mor_workplace_usage",MOR_FACEBOOK_SHOP:"mor_facebook_shop",MOR_FAN_FUNDING:"mor_fan_funding",MOR_VOICES:"mor_voices",MOR_GAME_TIPPING_TOKEN:"mor_game_tipping_token",MOR_INSTANT_GAMES:"mor_instant_games",MOR_GAMES_SUBSCRIPTION:"mor_games_subscription",MOR_ALT_APP_STORES:"mor_alt_app_stores",MOR_GROUP_SUBSCRIPTION:"mor_group_subscription",MOR_PAID_ONLINE_EVENT:"mor_paid_online_event",MOR_SUPER_MEET_AND_GREET:"mor_super_meet_and_greet",MOR_SUPER_VIRTUAL_GIFT:"mor_super_virtual_gift",MOR_NON_CONSUMABLE_VIDEO:"mor_non_consumable_video",MOR_PAYOUT_DEV:"mor_payout_dev",MOR_PAYOUT_CHARITY:"mor_payout_charity",MOR_PAYOUT_ADNET:"mor_payout_adnet",MOR_PAYOUT_OCU:"mor_payout_ocu",MOR_PAYOUT_DCP:"mor_payout_dcp",MOR_PAYOUT_AUTOPAY:"mor_payout_autopay",MOR_PAYOUT_MISCAP:"mor_payout_miscap",MOR_PAYOUT_CONTENT:"mor_payout_content",MOR_REPAYMENT:"mor_repayment",MOR_THIRD_PARTY_APP_STORES_IAP:"mor_third_party_app_stores_iap",MOR_CP_RETURN_LABEL:"mor_cp_return_label",MOR_WHATSAPP_P2P:"mor_whatsapp_p2p",MOR_NME_SUBSCRIPTION:"mor_nme_subscription",NMOR_UNKNOWN:"nmor_unknown",NMOR_NONE:"nmor_none",NMOR_PAGES_COMMERCE:"nmor_pages_commerce",NMOR_COMPONENT_FLOW:"nmor_component_flow",NMOR_BUSINESS_PLATFORM_COMMERCE:"nmor_business_platform_commerce",NMOR_SYNCHRONOUS_COMPONENT_FLOW:"nmor_synchronous_component_flow",NMOR_EVENT_TICKETING:"nmor_event_ticketing",NMOR_MARKETPLACE_TICKETING:"nmor_marketplace_ticketing",NMOR_PLATFORM_SELF_SERVE:"nmor_platform_self_serve",NMOR_MESSENGER_PLATFORM:"nmor_messenger_platform",NMOR_TIP_JAR:"nmor_tip_jar",NMOR_INSTANT_EXPERIENCES:"nmor_instant_experiences",NMOR_CHECKOUT_EXPERIENCES:"nmor_checkout_experiences",NMOR_C2C_CHECKOUT_EXPERIENCES:"nmor_c2c_checkout_experiences",NMOR_BUY_ON_FACEBOOK:"nmor_buy_on_facebook",NMOR_DONATION_P4P:"nmor_donation_p4p",NMOR_DONATION_P4C:"nmor_donation_p4c",NMOR_DONATION_CIELO:"nmor_donation_cielo",NMOR_NETWORK_TOKEN_NOTIF:"nmor_network_token_notif",NMOR_WHATSAPP_P2P:"nmor_whatsapp_p2p",NMOR_P2P:"nmor_p2p",NMOR_MESSENGER_P2P:"nmor_messenger_p2p",NMOR_MOBILE_TOP_UP:"nmor_mobile_top_up",NMOR_MFS:"nmor_mfs",NMOR_SHIPPING_LABEL_DEPRECATED:"nmor_shipping_label",NMOR_PAGES_SOLUTION_DEPRECATED:"nmor_pages_solution",NMOR_BLACKBAUD_RWR_DONATION:"nmor_blackbaud_rwr_donation",NMOR_MARKETPLACE_SHIPPING:"nmor_marketplace_shipping",NMOR_DUMMY:"nmor_dummy",NMOR_PPGF_DONATION:"nmor_ppgf_donation",NMOR_ADVERTISER_SUBSCRIPTION:"nmor_advertiser_subscription",NMOR_WHATSAPP_P2M:"nmor_whatsapp_p2m",WHATSAPP_P2M_LITE:"whatsapp_p2m_lite",MESSENGER_P2M:"messenger_p2m",NMOR_MOVIE_TICKETING:"nmor_movie_ticketing",NMOR_MESSAGING_COMMERCE:"nmor_messaging_commerce",NMOR_LIBRA:"nmor_libra",NMOR_SERVICES:"nmor_services",IN_APP_WEBVIEWER_PURCHASE:"in_app_webviewer_purchase",IG_NMOR_DONATION_P4P:"ig_nmor_donation_p4p",IG_NMOR_P2B:"ig_nmor_p2b",IG_NMOR_SHOPPING:"ig_nmor_shopping",IG_NMOR_SHOPPING_ONBOARDING:"ig_nmor_shopping_onboarding",IG_MOR_DONATIONS:"ig_mor_donations",IAB_AUTOFILL:"iab_autofill",CONNECT_VIA_IAW:"connect_via_iaw",NMOR_OFFSITE_SHOPPING:"nmor_offsite_shopping",FBPAY_CARD_TOKENIZATION:"fbpay_card_tokenization",CONTACTLESS_PAYMENT:"contactless_payment",NMOR_INSTAGRAM_P2B:"nmor_instagram_p2b",DUMMY_FIRST_PARTY_V2:"dummy_first_party_v2",DUMMY_THIRD_PARTY_V2:"dummy_third_party_v2",SOFT_DESCRIPTOR_AUTH:"soft_descriptor_auth",AD_PUBLISHER:"ad_publisher",ADS_MANAGER:"ads_manager",SIGMA:"sigma",FRAUD_CHECK:"fraud_check",SHOPIFY_API:"shopify_api",PAYMENTS_API_UNKNOWN_PRODUCT:"payments_api_unknown_product",FINANCIAL_SERVICES:"financial_services",INSTAGRAM_P2M:"instagram_p2m",DIGITAL_COLLECTIBLES:"digital_collectibles",IG_DIGITAL_COLLECTIBLES:"ig_digital_collectibles",FB_DIGITAL_COLLECTIBLES:"fb_digital_collectibles",IG_MINTING:"ig_minting",FB_MINTING:"fb_minting",IG_DIGITAL_COLLECTIBLES_PAYMENTS:"ig_digital_collectibles_payments",FB_DIGITAL_COLLECTIBLES_PAYMENTS:"fb_digital_collectibles_payments",BILLING_HUB:"billing_hub",BILLING_WIZARD:"billing_wizard",CREATORS_AS_MARKETER_AFFILIATE:"cam_affiliate",CREATOR_MARKETPLACE:"creator marketplace",META_REWARD:"meta_reward",LITE_CHECKOUT:"lite_checkout",MESSENGER_BUSINESS_MESSAGING_API:"messenger_business_messaging_api",AURORA:"aurora"});f["default"]=a}),66);
-----
PaymentsCometTransactionHubPINDialogContent.react",["fbt","CometLink.react","FBPayCometAuthAPIUtils","FBPayCometAuthString","FBPayCometGatingUtils","FBPayECPActionButton.react","FBPayECPFormTextInput.react","FBPayECPText.react","FBPayLoggingContext","FBPaymentsLoggerConstants","FBPaymentsModulesAPIUtils","FBPaymentsPINInputFieldContainerV2.react","PaymentsCometOverlayLoadingSpinner.react","PaymentsCometSpinner.react","PaymentsCometTransactionHubAPIUtils","PaymentsCometTransactionHubContext","PaymentsCometTransactionHubPINFlowStep","PaymentsCometTransactionHubPINFlowType","TetraButton.react","XRecoverInitiateControllerRouteBuilder","emptyFunction","gkx","react","setTimeout","usePaymentsCometAddPINMutation","usePaymentsCometSwitchPINMutation","usePaymentsCometUpdateFBPayPINWithPW","usePaymentsCometUpdatePINMutation","usePaymentsCometVerifyPINMutation","usePaymentsCometVerifyPasswordMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useContext,aa=b.useEffect,k=b.useState,l={CONFIRM_PIN:"CONFIRM_PIN",CREATED_PIN:"CREATED_PIN",ENTER_PIN:"ENTER_PIN"},ba=["ENABLE_FBPAY_PIN"],m=1500,n=500,ca=0,da=2,ea=4,fa=2e3;function a(a){var b=a.context;b=b===void 0?c("PaymentsCometTransactionHubContext"):b;var e=a.flowStep,f=a.ecpLogger,g=a.isDesktop;g=g===void 0?!0:g;var o=a.onClose,p=o===void 0?c("emptyFunction"):o,q=a.onFlowStepChange;o=a.onSubmit;var r=o===void 0?c("emptyFunction"):o;o=a.onSubmitNewAPI;var s=o===void 0?c("emptyFunction"):o;o=a.paymentType;var t=o===void 0?"FBPAY_HUB":o,u=a.pinFlowType,v=a.pinStatus,w=a.productID,x=a.receiverID;o=a.productCap;o=o===void 0?ba:o;a=a.enableForgetPINButton;var ga=a===void 0?!0:a,y=c("usePaymentsCometSwitchPINMutation")(),ha=c("usePaymentsCometVerifyPasswordMutation")(),z=c("usePaymentsCometVerifyPINMutation")(),A=d("FBPayCometAuthAPIUtils").usePaymentsCometVerifyAuthFactor(),ia=d("FBPayCometAuthAPIUtils").usePaymentsCometDisableFBPayPIN(),ja=d("FBPayCometAuthAPIUtils").usePaymentsCometEnableFBPayPIN(),ka=d("FBPayCometAuthAPIUtils").usePaymentsCometResetFBPayPIN(),la=d("FBPayCometAuthAPIUtils").usePaymentsCometCreateFBPayPIN(),ma=c("usePaymentsCometAddPINMutation")(),na=d("usePaymentsCometUpdateFBPayPINWithPW").usePaymentsCometUpdateFBPayPINWithPW(),oa=c("usePaymentsCometUpdatePINMutation")();a=k(!1);var pa=a[0],B=a[1];a=k(!1);var qa=a[0],C=a[1];a=k("");var D=a[0],E=a[1];a=k(!1);var ra=a[0],F=a[1];a=k(!1);var sa=a[0],G=a[1];a=k(null);var ta=a[0],H=a[1];a=k(!0);var ua=a[0],va=a[1];a=k("");var I=a[0],wa=a[1];a=k(l.ENTER_PIN);var J=a[0],K=a[1];a=k("");var xa=a[0],ya=a[1];a=j(b);var L=a.logger,M=d("FBPayCometGatingUtils").shouldUseNewPINAPIOnComet(t);b=k(null);var za=b[0],Aa=b[1];a=j(c("FBPayLoggingContext"));b=a.logger;var N=(a=f)!=null?a:b,O=N.getSessionID(),P=o==="SEND_MONEY"?["SEND_MONEY"]:o.concat(),Q=function(){if(u===c("PaymentsCometTransactionHubPINFlowType").SWITCH_PIN)switch(v){case void 0:return d("FBPaymentsLoggerConstants").LoggerFlowStep.CREATE_PIN;case"ACTIVE":return d("FBPaymentsLoggerConstants").LoggerFlowStep.DISABLE_PIN;case"DISABLED":return d("FBPaymentsLoggerConstants").LoggerFlowStep.ENABLE_PIN;default:return d("FBPaymentsLoggerConstants").LoggerFlowStep.RESET_PIN}else if(u===c("PaymentsCometTransactionHubPINFlowType").CHANGE_PIN)return d("FBPaymentsLoggerConstants").LoggerFlowStep.RESET_PIN},Ba=function(){N.setPlatformAndProductType(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(t.toLowerCase()),"comet");switch(e){case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN:N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"fbpay_verify_pin"});return;case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN:J===l.ENTER_PIN?N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"reset_pin"}):J===l.CONFIRM_PIN&&N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"reset_pin_confirm"});return;case c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN:J===l.ENTER_PIN?N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"fbpay_create_pin"}):J===l.CONFIRM_PIN&&N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"fbpay_confirm_pin"});return;case"FORGOT_PIN_PASSWORD_CONFIRM":N.logClientLoadAuthSuccess({auth_factor_type:70,view_name:"fbpay_forget_pin"});return;default:return}};aa(function(){Ba(),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.DISPLAY).log()},[e,J]);var Ca=i.jsx(c("TetraButton.react"),{label:h._("u5fd8u8bb0 PIN u7801uff1f"),onPress:function(){q(c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.CLICK).addToExtraData("button_click","FORGET").log(),N.logUserClickAuthAtomic({auth_factor_type:70,target_name:"forget_pin_link"})},reduceEmphasis:!0,type:"secondary"});f=c("XRecoverInitiateControllerRouteBuilder").buildURL({});var Da=i.jsx(c("TetraButton.react"),{label:h._("u5fd8u8bb0u5bc6u7801u4e86uff1f"),linkProps:{target:"_blank",url:f},onPress:function(){N.logUserClickAuthAtomic({auth_factor_type:70,target_name:"forget_password_link"})},reduceEmphasis:!0,type:"secondary"});a=function(){var a;if(ga&&(e===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN||e===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN||e===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY))a=Ca;else if(e===c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM||e===c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM)a=Da;else return null;return i.jsx("div",{className:"xu06os2 x1anpbxc",children:a})};var Ea=function(a){v==="ACTIVE"?y(d("PaymentsCometTransactionHubAPIUtils").prepareSwitchPIN("DISABLED",t,a),R(a),T):y(d("PaymentsCometTransactionHubAPIUtils").prepareSwitchPIN("ACTIVE",t,a),R(a),T),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT).log()},Fa=function(a){v==="ACTIVE"?ia(a,t,O,Z,$,x):ja(a,t,O,Z,$,x)},R=function(a){return function(){Ga(a)}},Ga=function(a){C(!1),K(l.CREATED_PIN),c("setTimeout")(function(){p(),r(a)},m),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS).log()},Ha=function(a){return function(){u===c("PaymentsCometTransactionHubPINFlowType").SWITCH_PIN?Ea(a):Ga(a)}},Ia=function(a,b){u===c("PaymentsCometTransactionHubPINFlowType").SWITCH_PIN?Fa(b):Z(a)},Ja=function(a){return function(b){var c;c=b==null?void 0:(c=b.switch_payments_pin)==null?void 0:c.success;b=(b=b==null?void 0:(b=b.switch_payments_pin)==null?void 0:b.remain_attempts_count)!=null?b:Infinity;Boolean(c)?(La(a),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS).log()):(S(b),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.FAIL).setUserFacingMessage(W(b)).log())}},Ka=function(a){return function(b){var c;c=b==null?void 0:(c=b.verify_payments_pin)==null?void 0:c.is_valid;b=(b=b==null?void 0:(b=b.verify_payments_pin)==null?void 0:b.remain_attempts_count)!=null?b:Infinity;Boolean(c)?(La(a),L.setFlowStep(d("FBPaymentsLoggerConstants").LoggerFlowStep.VERIFY_PIN).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS).log()):(S(b),L.setFlowStep(d("FBPaymentsLoggerConstants").LoggerFlowStep.VERIFY_PIN).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.FAIL).setUserFacingMessage(W(b)).log())}},S=function(a){F(!1),B(!1),G(!0),H(W(a)),c("setTimeout")(function(){G(!1),E("")},n),a===0&&c("setTimeout")(function(){H(null),q(c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM)},fa)},La=function(a){F(!0),H(""),u===c("PaymentsCometTransactionHubPINFlowType").CHANGE_PIN?Na():(p(),r(a))},T=function(a){B(!1),C(!1),G(!0),H(a==null?void 0:a.error_description),va(!0),c("setTimeout")(function(){G(!1),E("")},n),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.FAIL).setUserFacingMessage(a==null?void 0:a.error_description).log()},Ma=function(){B(!1),q(c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN)},Na=function(){B(!1),q(c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN)};b=function(){switch(e){case c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN:if(J===l.CONFIRM_PIN)return h._("u518du6b21u8f93u5165 PIN u7801");else if(J===l.CREATED_PIN)return h._("PIN u7801u5df2u521bu5efa");else return h._("u521bu5efa PIN u7801");case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN:return h._("u8f93u5165 PIN u7801");case c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM:return h._("u5fd8u8bb0 PIN u7801uff1f");case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN:if(J===l.CONFIRM_PIN)return h._("u518du6b21u8f93u5165u65b0 PIN u7801");else if(J===l.CREATED_PIN)return h._("PIN u7801u5df2u521bu5efa");else return u===c("PaymentsCometTransactionHubPINFlowType").CHANGE_PIN?h._("u66f4u6539 PIN u7801"):h._("u91cdu7f6e PIN u7801");case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM:return h._("u91cdu7f6e PIN u7801");default:return""}};var U=c("gkx")("1902661");o=U&&c("gkx")("4245");var V=c("gkx")("2469")||o;f=function(){switch(e){case c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN:return V?h._("u5728u67d0u4e9bu60c5u51b5u4e0buff0cu4f60u9700u8981u8f93u5165 PIN u7801u8fdbu884cu5b89u5168u9a8cu8bc1u3002u5982u679cu4f60u5e0cu671bu6bcfu6b21u90fdu8f93u5165 PIN u7801uff0cu8bf7u8bbfu95ee Meta Pay u8bbeu7f6eu3002"):h._("u5728u67d0u4e9bu60c5u51b5u4e0buff0cu4f60u9700u8981u8f93u5165 PIN u7801u8fdbu884cu5b89u5168u9a8cu8bc1u3002u5982u679cu4f60u5e0cu671bu6bcfu6b21u90fdu8f93u5165 PIN u7801uff0cu8bf7u8bbfu95ee Facebook Pay u8bbeu7f6eu3002");case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN:return V?h._("u8f93u5165u4f60u7684 Meta Pay PIN u7801u6765u7ee7u7eedu64cdu4f5cu3002"):h._("u8f93u5165u4f60u7684 Facebook Pay PIN u7801u5e76u7ee7u7eedu64cdu4f5cu3002");case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN:return V?h._("u8f93u5165u4f60u7684 Meta Pay PIN u7801u6765u7ee7u7eedu64cdu4f5cu3002"):h._("u8f93u5165u4f60u7684 Facebook Pay PIN u7801u5e76u7ee7u7eedu64cdu4f5cu3002");case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY:return V?h._("u8bf7u8f93u5165u4f60u7684 Meta Pay PIN u7801u6765u786eu8ba4u652fu4ed8u3002"):h._("u8bf7u8f93u5165u4f60u7684 Facebook Pay PIN u7801u6765u786eu8ba4u652fu4ed8u3002");case c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM:return U?h._("u8bf7u8f93u5165 Instagram u5bc6u7801u6765u91cdu7f6eu4f60u7684 PIN u7801u3002"):h._("u8bf7u8f93u5165 Facebook u5bc6u7801u6765u91cdu7f6eu4f60u7684 PIN u7801u3002");case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN:if(J===l.ENTER_PIN)return V?h._("u8f93u5165u65b0u7684 Meta Pay PIN u7801u3002"):h._("u8f93u5165u65b0u7684 Facebook Pay PIN u7801u3002");else return V?h._("u8f93u5165u65b0u7684 Meta Pay PIN u7801u3002"):h._("u8f93u5165u65b0u7684 Facebook Pay PIN u7801u3002");case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM:return U?h._("u8bf7u5148u8f93u5165 Instagram u5bc6u7801u518du7ee7u7eedu3002"):h._("u8bf7u5148u8f93u5165 Facebook u5bc6u7801u518du7ee7u7eedu3002");default:return""}};var W=function(a){if(a===ca)return h._("PIN u7801u9519u8befu3002u8bf7u91cdu7f6e PIN u7801u3002");return a<=da?h._({"*":"PIN u7801u9519u8befu3002u4f60u8fd8u6709{attempts}u6b21u5c1du8bd5u673au4f1au3002"},[h._plural(a),h._param("attempts",a)]):(D==null?void 0:D.length)===ea&&ra?null:h._("PIN u7801u9519u8befuff0cu8bf7u91cdu8bd5u3002")};o=function(a){e===c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN||e===c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN?J===l.ENTER_PIN?(E(a),K(l.CONFIRM_PIN)):a===D?(Boolean(I)?M?na(P,a,I,t,O,Ia,$,x):(oa(d("PaymentsCometTransactionHubAPIUtils").prepareUpdatePIN(a,"",I,t,O),Ha(a),T),L.setFlowStep(d("FBPaymentsLoggerConstants").LoggerFlowStep.RESET_PIN_WITH_PASSWORD).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT).log()):Boolean(xa)?(M?ka(P,a,t,O,Z,T,za,x):oa(d("PaymentsCometTransactionHubAPIUtils").prepareUpdatePIN(a,xa,"",t,O),Ha(a),T),L.setFlowStep(d("FBPaymentsLoggerConstants").LoggerFlowStep.RESET_PIN).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT).log()):M?la(P,a,t,O,Z,T,x,w):ma(d("PaymentsCometTransactionHubAPIUtils").prepareCreatePIN(a,t,O),R(a),T),H(null),C(!0)):(G(!0),H(h._("PIN u7801u4e0du4e00u81f4u3002")),c("setTimeout")(function(){G(!1)},n)):e===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN?(B(!0),E(a),H(null),v==="ACTIVE"?M?ia(a,t,O,Y,$,x):y(d("PaymentsCometTransactionHubAPIUtils").prepareSwitchPIN("DISABLED",t,a),Ja(a),T):v==="DISABLED"&&(M?ja(a,t,O,Y,$,x):y(d("PaymentsCometTransactionHubAPIUtils").prepareSwitchPIN("ACTIVE",t,a),Ja(a),T)),L.setFlowStep(Q()).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT).log()):e===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN?(B(!0),E(a),ya(a),H(null),M?A(["RESET_FBPAY_PIN"],{authFactorType:"PIN"},t,O,a,null,Y,$,x,w):z(d("PaymentsCometTransactionHubAPIUtils").prepareVerifyPIN(t,a,O),Ka(a),T),L.setFlowStep(d("FBPaymentsLoggerConstants").LoggerFlowStep.VERIFY_PIN).setEventName(d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT).log()):e===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY&&(B(!0),E(a),H(null),M?A(P,{authFactorType:"PIN"},t,O,a,null,Y,$,x,w):z(d("PaymentsCometTransactionHubAPIUtils").prepareVerifyPIN(t,a,O),Ka(a),T))};var X=function(a){H(null),va(!((a==null?void 0:a.length)>=1)),wa(a)},Oa=function(){B(!0),H(null),ha(d("PaymentsCometTransactionHubAPIUtils").prepareVerifyPassword(I,t,O),Ma,T)},Y=function(a){F(!0),H(null),e===c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY||u===c("PaymentsCometTransactionHubPINFlowType").SWITCH_PIN?(s(a),p()):u===c("PaymentsCometTransactionHubPINFlowType").CHANGE_PIN&&(Aa(a),Na())},Z=function(a){C(!1),K(l.CREATED_PIN),c("setTimeout")(function(){p(),s(a)},m)},$=function(a){a=a==null?void 0:a.remainingAttempts;a==null?(B(!1),G(!0),H(d("FBPayCometAuthString").GENERAL_ERROR),c("setTimeout")(function(){G(!1),E("")},n)):S(a)},Pa=e===c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN?i.jsx("div",{className:"x6prxxf x1s688f",children:i.jsx(c("CometLink.react"),{href:"https://www.facebook.com/help/1434403039959381",style:{color:"#1877F2"},target:"_blank",children:h._("u8be6u7ec6u4e86u89e3")})}):null,Qa=function(){switch(e){case c("PaymentsCometTransactionHubPINFlowStep").CREATE_PIN:case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN:if(qa)return Ta;else if(J===l.CREATED_PIN)return Ua;else return Sa;case c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM:case c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM:return Ra;case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_CHANGE_PIN:case c("PaymentsCometTransactionHubPINFlowStep").VERIFY_PIN_TO_PAY:default:return Sa}},Ra=i.jsx("div",{className:"xh8yej3",children:i.jsx(c("FBPayECPFormTextInput.react"),{label:h._("u5bc6u7801"),onFieldChange:X,type:"password",value:I})}),Sa=i.jsx("div",{className:"xu06os2 x1anpbxc",children:i.jsx(c("FBPaymentsPINInputFieldContainerV2.react"),{disabled:pa,isDesktop:g,onPINEnter:o,pin:"",shake:sa,smallerCircle:!0})}),Ta=i.jsx(c("PaymentsCometSpinner.react"),{type:"empty"}),Ua=i.jsx(c("PaymentsCometSpinner.react"),{type:"checkmark"});X=e===c("PaymentsCometTransactionHubPINFlowStep").FORGOT_PIN_PASSWORD_CONFIRM||e===c("PaymentsCometTransactionHubPINFlowStep").RESET_PIN_PASSWORD_CONFIRM?i.jsx("div",{className:"xu06os2 x1anpbxc xh8yej3",children:i.jsx(c("FBPayECPActionButton.react"),{fbActionButton:{reduceEmphasis:!0},isDisabled:ua,label:h._("u7ee7u7eed"),onPress:Oa})}):null;g=Boolean(ta)?i.jsx("div",{className:"xw7yly9",children:i.jsx(c("FBPayECPText.react"),{fbColor:"negative",fbType:"bodyLink3",igText:{color:"errorOrDestructive"},children:ta})}):null;return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"x6s0dn4 x78zum5 xdt5ytf xl56j7k x1cnzs8 xc73u3c xx6bls6 x5ib6vp x2b8uid",children:[i.jsx("div",{className:"x1d0ri9u",children:i.jsx(c("FBPayECPText.react"),{fbType:"headlineEmphasized3",igText:{weight:"semibold"},children:b()})}),i.jsxs("div",{className:"xieb3on xw7yly9",children:[i.jsx(c("FBPayECPText.react"),{fbType:"bodyLink3",children:f()}),Pa]}),Qa(),g,X,a()]}),pa&&i.jsx(c("PaymentsCometOverlayLoadingSpinner.react"),{})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
FBPaymentsModulesAPIUtils",["fbt","AdsCurrencyFormatter","BillingAgreementType","CreditCardFormParam","CurrentUser","FBPaymentsAffirmParamsGenerator","FBPaymentsCreditCardParamsGenerator","FBPaymentsCustomFormHelper","FBPaymentsDummyPaymentMethodParamsGenerator","FBPaymentsGiftcardBalanceParamsGenerator","FBPaymentsNewPaymentOptionTypes","FBPaymentsPaymentMethodTypes","FBPaymentsPaypalParamsGenerator","PageCommerceManualPaymentMethodParamsGenerator","PageCommerceOnlineBankingParamsGenerator","guid","uniqueID"],(function(a,b,c,d,e,f,g){"use strict";var h={stripWhitespace:function(a){return a.replace(/s/g,"")},parseExpiration:function(a){a=a.split("/");var c=a[0];a=a[1];var d={};d[b("CreditCardFormParam").MONTH]=c;d[b("CreditCardFormParam").YEAR]=a;return d},prepareCardMutationData:function(a){var c={};a[b("CreditCardFormParam").CARD_NUMBER]&&(c[b("CreditCardFormParam").CARD_NUMBER]=h.getFormDataCardNumber(a));c[b("CreditCardFormParam").CARD_EXPIRATION+"["+b("CreditCardFormParam").MONTH+"]"]=h.getFormDataExpMonth(a);c[b("CreditCardFormParam").CARD_EXPIRATION+"["+b("CreditCardFormParam").YEAR+"]"]=h.getFormDataExpYear(a);return babelHelpers["extends"]({},a,c)},parseAddressFormConfig:function(a){var c=new Map();a=(a=a==null?void 0:a.country_to_fields)!=null?a:[];a.forEach(function(a){var d=a.country_code;if(d){a=a.form_fields.map(function(a){return b("FBPaymentsCustomFormHelper").parseCustomFieldServerConfig(a)});c.set(d,a)}});return c},prepareInlineCardDirectChargeData:function(a){return{credit_card_number:h.getFormDataCardNumber(a),cc_exp_month:h.getFormDataExpMonth(a),cc_exp_year:h.getFormDataExpYear(a),cc_country_code:a[b("CreditCardFormParam").COUNTRY],cc_zip:a[b("CreditCardFormParam").ZIP],csc:a[b("CreditCardFormParam").CSC],nmor_payment_method:JSON.stringify({type:b("FBPaymentsPaymentMethodTypes").CREDIT_CARD})}},prepareDirectChargeCreditCardData:function(a){var b=h.getFormDataCardNumber(a);return{csc:a.csc,credit_card:{credit_card_number:b,credit_card_last_4:b.substring(b.length,b.length-4),credit_card_first_6:b.substring(0,6),cardholder_name:a.card_holder_name,expiry_year:h.getFormDataExpYear(a),expiry_month:h.getFormDataExpMonth(a),billing_address:{country_code:a.country,street1:a.street,city:a.city,state:a.state,zip:a.zip}}}},getFormDataCardNumber:function(a){return h.stripWhitespace(a[b("CreditCardFormParam").CARD_NUMBER])},getFormDataWithoutAuth:function(a){var b=a.without_auth,c=a.country;a=a.combined_payment_type;a==="nmor_donation_p4c"&&c==="IN"&&(b=!0);return b},getFormDataExpiration:function(a){var c=a[b("CreditCardFormParam").CARD_EXPIRATION];typeof c==="string"&&(c=h.parseExpiration(a[b("CreditCardFormParam").CARD_EXPIRATION]));return c},getFormDataExpMonth:function(a){a=h.getFormDataExpiration(a);return a[b("CreditCardFormParam").MONTH]},getFormDataExpYear:function(a){a=h.getFormDataExpiration(a);return a[b("CreditCardFormParam").YEAR]},genRequestID:function(){return"id:"+b("guid")()+":"+Date.now()},getMultiCredentialRequestParams:function(a,b,c){var d=a==null?void 0:a.paymentMethod,e=a==null?void 0:a.secondaryPaymentMethod;if(!d)return{};var f=h.getPaymentMethodParamsGenerator(e),g={};f&&(g=f.getMultiCredentialRequestParams(d.getID(),d.credentialType,e,b,c));return babelHelpers["extends"]({},g,h.getPaymentMethodRequestParams(d,a==null?void 0:a.bank))},getPaymentMethodParamsGenerator:function(a){switch(a.getType()){case b("FBPaymentsPaymentMethodTypes").CREDIT_CARD:return b("FBPaymentsCreditCardParamsGenerator");case b("FBPaymentsPaymentMethodTypes").PAYPAL_BILLING_AGREEMENT:return b("FBPaymentsPaypalParamsGenerator");case b("FBPaymentsPaymentMethodTypes").MANUAL_TRANSFER:return b("PageCommerceManualPaymentMethodParamsGenerator");case b("FBPaymentsPaymentMethodTypes").NET_BANKING:return b("PageCommerceOnlineBankingParamsGenerator");case b("FBPaymentsPaymentMethodTypes").AFFIRM_MONTHLY_PAYMENT:return b("FBPaymentsAffirmParamsGenerator");case b("FBPaymentsPaymentMethodTypes").GIFTCARD_BALANCE:return b("FBPaymentsGiftcardBalanceParamsGenerator");case b("FBPaymentsPaymentMethodTypes").DUMMY_PAYMENT_METHOD:return b("FBPaymentsDummyPaymentMethodParamsGenerator");default:return null}},getPaymentMethodRequestParams:function(a,c){if(!a)return{};var d=h.getPaymentMethodParamsGenerator(a);switch(a.getType()){case b("FBPaymentsPaymentMethodTypes").AFFIRM_MONTHLY_PAYMENT:case b("FBPaymentsPaymentMethodTypes").CREDIT_CARD:case b("FBPaymentsPaymentMethodTypes").MANUAL_TRANSFER:case b("FBPaymentsPaymentMethodTypes").PAYPAL_BILLING_AGREEMENT:case b("FBPaymentsPaymentMethodTypes").DUMMY_PAYMENT_METHOD:case b("FBPaymentsPaymentMethodTypes").GIFTCARD_BALANCE:return d.getRequestParams(a);case b("FBPaymentsPaymentMethodTypes").NET_BANKING:return b("PageCommerceOnlineBankingParamsGenerator").getRequestParams(a,c);default:return{}}},getPaymentMethodRequestParamsGraphQL:function(a,c){if(!a)return{};switch(a.getType()){case b("FBPaymentsPaymentMethodTypes").CREDIT_CARD:return b("FBPaymentsCreditCardParamsGenerator").getRequestParamsGraphQL(a);case b("FBPaymentsPaymentMethodTypes").PAYPAL_BILLING_AGREEMENT:return b("FBPaymentsPaypalParamsGenerator").getRequestParamsGraphQL(a);case b("FBPaymentsPaymentMethodTypes").MANUAL_TRANSFER:return b("PageCommerceManualPaymentMethodParamsGenerator").getRequestParamsGraphQL(a);case b("FBPaymentsPaymentMethodTypes").NET_BANKING:return b("PageCommerceOnlineBankingParamsGenerator").getRequestParamsGraphQL(a);default:return{}}},prepareAddCardData:function(a){var b=h.getFormDataCardNumber(a);return{payment_account_id:a.account_id,expiry_year:"20"+h.getFormDataExpYear(a),expiry_month:h.getFormDataExpMonth(a),payment_type:a.combined_payment_type,billing_address:{country_code:a.country,street1:a.street,city:a.city,state:a.state,zip:a.zip},credit_card_number:{sensitive_string_value:b},credit_card_first_6:{sensitive_string_value:b.substring(0,6)},credit_card_last_4:{sensitive_string_value:b.substring(b.length,b.length-4)},csc:{sensitive_string_value:a.csc},cardholder_name:a.card_holder_name,logging_id:a.logging_id,session_id:a.session_id,receiver_id:a.receiver_id,without_auth:h.getFormDataWithoutAuth(a)}},prepareAddCardDataGraphQL:function(a){a=h.prepareAddCardData(a);return a},prepareAddPaymentsPINGraphQL:function(a){return{actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),payment_type:a.payment_type,payments_protected:!0,fbpay_pin:{sensitive_string_value:a.pin||""},logging_id:a.logging_id}},prepareVerifyPaymentsPINGraphQL:function(a){return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,fbpay_pin:{sensitive_string_value:a.pin||""},logging_id:a.logging_id}},prepareVerifyConsumerAuthGraphQL:function(a){if(a.csc!=null)return{actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),csc:a.csc,device_id:"device_id",cred_id:a.cred_id,app_id:"app_id",auth_method:"CVV",payment_type:a.payment_type,is_pay_nonce_needed:!1};else return{actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),cred_id:a.cred_id,pp_access_token:{sensitive_string_value:a.pp_access_token},device_id:"device_id",app_id:"app_id",auth_method:"PAYPAL",payment_type:a.payment_type,is_pay_nonce_needed:!1}},prepareVerifyPasswordGraphQL:function(a){return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,fbpay_password_bypass_token_proxy:{sensitive_string_value:a.password||""},logging_id:a.logging_id}},prepareUpdatePaymentsPINGraphQL:function(a){if(a.password!==null&&a.password!==void 0)return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,fbpay_new_pin:{sensitive_string_value:a.new_pin||""},fbpay_password_bypass_token_proxy:{sensitive_string_value:a.password||""},logging_id:a.logging_id};else if(a.cred_id!=null&&a.csc!=null)return{actor_id:b("CurrentUser").getID(),cred_id:a.cred_id,csc:a.csc,payment_type:a.payment_type,fbpay_new_pin:{sensitive_string_value:a.new_pin||""},logging_id:a.logging_id};else if(a.old_pin!=null)return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,fbpay_new_pin:{sensitive_string_value:a.new_pin||""},fbpay_pin:{sensitive_string_value:a.old_pin||""},logging_id:a.logging_id};else return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,fbpay_new_pin:{sensitive_string_value:a.new_pin||""},no_auth_method_pin_reset:!0,logging_id:a.logging_id}},prepareDeletePaymentsPINGraphQL:function(a){return a.password!==null?{actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),payment_type:a.payment_type,password:{sensitive_string_value:a.password||""}}:{actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),payment_type:a.payment_type,pin:{sensitive_string_value:a.pin}}},prepareSwitchPaymentsPINGraphQL:function(a){return{actor_id:b("CurrentUser").getID(),payment_type:a.payment_type,new_pin_status:a.new_pin_status,fbpay_pin:{sensitive_string_value:a.pin}}},prepareUpdateTaxIDDataRelayGraphQL:function(a){return{actor_id:b("CurrentUser").getID(),tax_id:a.taxID,tax_id_type:"MEXICO_RFC",payment_type:a.paymentType,logging_id:a.loggingID}},prepareUpdateCardGraphQL:function(a){var c;c={client_mutation_id:b("uniqueID")(),credit_card_id:(c=a.credit_card_id)!=null?c:"",payment_type:a.payment_type,disable_type:a.disable_type};return c},prepareAddCardDataRelayGraphQL:function(a){a=h.prepareAddCardData(a);return a},prepareUpdateCardData:function(a){var b={};(a.country||a.street||a.city||a.state||a.zip)&&(b={billing_address:{country_code:a.country||"US",street1:a.street,city:a.city,state:a.state,zip:a.zip}});var c=a.card_holder_name?{cardholder_name:a.card_holder_name}:null;return babelHelpers["extends"]({credit_card_id:a.cc_fbid,expiry_year:"20"+h.getFormDataExpYear(a),expiry_month:h.getFormDataExpMonth(a),payment_type:a.combined_payment_type,csc:{sensitive_string_value:a.csc}},b,c,{logging_id:a.logging_id,session_id:a.session_id})},prepareUpdateCardDataGraphQL:function(a){a=h.prepareUpdateCardData(a);return a},prepareUpdateCardDataRelayGraphQL:function(a){a=h.prepareUpdateCardData(a);return a},prepareCompleteCheckoutRelayGraphQLData:function(a){var c=b("AdsCurrencyFormatter").parsePECurrency(a.currency,a.amount);return{amount:c,credential_id:a.credential_id,credit_card:a.credit_card,csc:a.csc,currency:a.currency,extra_data:a.extra_data,order_id:a.order_id,payment_type:a.payment_type,platform_trust_token:a.authPTT,receiver_id:a.receiver_id,request_id:h.genRequestID(),security_pin:a.security_pin,session_id:a.session_id,cardinal_3ds_processor_data:a.cardinal_3ds_processor_data,without_auth:a.without_auth}},prepareCompleteCheckoutGraphQLData:function(a){return{actor_id:b("CurrentUser").getID(),amount:a.amount,client_mutation_id:b("uniqueID")(),contact_name:a.contact_name,contact_number_id:a.contact_number_id,coupon_code:a.coupon_code,credential_id:a.credential_id,credentials:a.credentials,csc:a.csc,currency:a.currency,do_async_postprocess:a.do_async_postprocess,email_address_id:a.email_address_id,extra_data:a.extra_data,mailing_address_id:a.mailing_address_id,nmor_payment_method:a.nmor_payment_method,order_id:a.order_id,payment_type:a.payment_type,paypal_fraudnet_id:a.paypal_fraudnet_id,platform_trust_token:a.authPTT,receiver_id:a.receiver_id,request_id:h.genRequestID(),security_pin:a.security_pin,session_id:a.session_id,shipping_option_id:a.shipping_option_id,subscription_period:a.subscription_period,subscription_type:Object.keys(b("BillingAgreementType")).find(function(c){return b("BillingAgreementType")[c]===a.subscription_type}),cardinal_3ds_processor_data:a.cardinal_3ds_processor_data,trial_type:a.trial_type,is_citizen:a.is_citizen,razorpay_callback_url:a.razorpay_callback_url,tax_info_collection_map:a.tax_info_collection_map}},prepareAsyncCheckoutData:function(a){a=babelHelpers["extends"]({actor_id:b("CurrentUser").getID(),client_mutation_id:b("uniqueID")(),credentials:h.buildAsyncCheckoutCredentials(a),logging_id:a.session_id,payment_session_id:a.payment_session_id,payment_type:a.payment_type,paypal_fraudnet_id:a.paypal_fraudnet_id,total_payment_amount:{currency:a.currency,amount:a.amount},coupon_code:a.coupon_code,contact_name:a.contact_name,contact_number_id:a.contact_number_id,csc:a.csc,email_address_id:a.email_address_id,email_opt_in:a.email_opt_in,mailing_address_id:a.mailing_address_id,shipping_option_id:a.shipping_option_id,extra_data_json:a.extra_data,subscription_period:a.subscription_period,subscription_type:a.subscription_type,trial_type:a.trial_type,is_citizen:a.is_citizen,razorpay_callback_url:a.razorpay_callback_url,cardinal_3ds_processor_data:a.cardinal_3ds_processor_data,tax_info_collection_map:a.tax_info_collection_map,tax_info_id:a.tax_info_id,privacy_mutation_token:a.privacy_mutation_token},h.buildAsyncCheckoutPaymentOrderIdProducts(a),{is_dynamic_auth_available:a.is_dynamic_auth_available,platform_trust_token:a.authPTT,security_pin:a.security_pin});return a},buildAsyncCheckoutCredentials:function(a){if(a.altPayData)return[{credential_type:b("FBPaymentsNewPaymentOptionTypes").NEW_ALT_PAY_FROM_GRAPHQL,payment_amount:{currency:a.currency,amount:a.amount},altpay_data:a.altPayData}];if(a.credentials&&a.credentials.length>1){var c=[],d=a.currency;a.credentials.forEach(function(a){c.push({credential_id:a.credential_id,credential_type:a.credential_type,payment_amount:{currency:d,amount:a.amount},wallet_balance:a.wallet_balance?{currency:d,amount:a.wallet_balance}:void 0})});return c}return[{credential_type:a.credential_type,payment_amount:{currency:a.currency,amount:a.amount},credential_id:a.credential_id}]},buildAsyncCheckoutPaymentOrderIdProducts:function(a){switch(a.payment_type){case"mor_donations":case"nmor_donation_p4c":case"nmor_donation_p4p":case"nmor_ppgf_donation":case"mor_donations_matching_confirmation":case"mor_donations_matching_pledge":case"nmor_blackbaud_rwr_donation":return{payment_order_id:null,products:[{product_id:a.order_id,quantity:1,per_unit_price:{currency:a.currency,amount:a.amount}}]};case"nmor_checkout_experiences":case"nmor_c2c_checkout_experiences":return{payment_order_id:a.order_id,products:a.products?a.products.map(function(a){var b;return{product_id:a.product_id,quantity:a.quantity,per_unit_price:{currency:(b=a.price)==null?void 0:b.currency,amount:(b=a.price)==null?void 0:b.amount},customization_ids:a.customization_ids}}):null};case"mor_instant_games":case"mor_open_graph_product":return{payment_order_id:a.order_id,products:null};case"mor_game_tipping_token":return{payment_order_id:a.order_id,products:[{product_id:a.order_id,quantity:1,per_unit_price:{currency:a.currency,amount:a.amount}}]};case"mor_group_subscription":case"mor_fan_funding":case"mor_oculus_cv1":return{payment_order_id:null,products:a.products?a.products.map(function(a){return{product_id:a.product_id,quantity:a.quantity}}):null};default:return{payment_order_id:null,products:null}}},getUncaughtErrorMessage:function(){return g._("u5904u7406u8bf7u6c42u65f6u51fau73b0u6682u65f6u6027u9519u8befuff0cu8bf7u7a0du540eu91cdu8bd5u3002")},getGraphQLErrorMessage:function(a){return g._("{error_message}",[g._param("error_message",a)])},getAuthFailureErrorDetails:function(a){try{a=JSON.parse(a.debug_info);a=a.num_remaining_attempts;return{remainingAttempts:a}}catch(a){return{remainingAttempts:null}}},convertAllPaymentTypeFields:function(a){return a},convertAllPaymentTypeFieldsForNewAPI:function(a){return a}};e.exports=h}),null);
-----
PaymentsCometCheckoutPriceTable",["fbt","ix","AllPaymentTypeFields","CometImage.react","CometMenuSeparator.react","CometRow.react","CometRowItem.react","CometTooltip.react","PaymentsCometCheckoutAPIUtils","PaymentsCometCheckoutContext","PaymentsCometCheckoutSectionTitle","TetraText.react","getJSEnumSafe","gkx","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useContext,l={disclaimerItem:{paddingTop:"xyqdw3p",paddingEnd:"x10ogl3i",paddingBottom:"xg8j3zb",paddingStart:"x1k2j06m",$$css:!0},footer:{paddingTop:"x1iorvi4",width:"xwl9fdd",$$css:!0},footerTitle:{paddingTop:"x1y1aw1k",width:"xwl9fdd",$$css:!0},image:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"xng8ra",objectFit:"xl1xv1r",width:"x1247r65",$$css:!0},itemTitle:{paddingBottom:"xwib8y2",width:"xwl9fdd",$$css:!0},price:{minWidth:"xk8lq53",$$css:!0},separator:{paddingTop:"x1y1aw1k",$$css:!0},subtableTitle:{paddingBottom:"xwib8y2",$$css:!0},totalRow:{paddingBottom:"x1l90r2v",paddingTop:"x1y1aw1k",$$css:!0}};function a(a){a=a.priceSubtables;a=a===void 0?[]:a;var b=k(c("PaymentsCometCheckoutContext"));b=b.state;var d=b.totalPrice;d=d||{};var e=d.display_price;d=d.label;b=m(b);return j.jsxs(j.Fragment,{children:[j.jsx(c("CometMenuSeparator.react"),{}),a.map(n),j.jsxs("div",{className:"x1l90r2v x1y1aw1k",children:[j.jsx(q,{isTotal:!0,leftContent:d||"",rightContent:e||""}),b!=null&&j.jsx(q,{isTotal:!1,leftContent:"",rightContent:b})]})]})}a.displayName=a.name+" [from "+f.id+"]";function m(a){var b=a.showTaxDisclaimer,e=c("getJSEnumSafe")(c("AllPaymentTypeFields"),a.paymentType);e=e==="mor_fan_funding"&&c("gkx")("26");a=d("PaymentsCometCheckoutAPIUtils").getDigitalCommerceOmnibusDirectiveData(a);a=a.isOmnibusUser;return b!==!0?e||a?j.jsx(p,{title:h._("u6240u6709u4ef7u683cu5305u542bu6240u6709u9002u7528u7a0eu8d39"),tooltip:null}):null:j.jsx(p,{title:e?h._("u5916u52a0u9002u7528u7a0eu8d39"):h._("u9644u52a0u7a0e"),tooltip:h._("u67e5u770bu7a0eu540eu603bu989du6536u636eu3002")})}m.displayName=m.name+" [from "+f.id+"]";function n(a,b){var d,e=k(c("PaymentsCometCheckoutContext"));e=e.state;a=a.price_lists||[];var f=a.some(function(a){return a.item!=null})||e.paymentType==="NMOR_EVENT_TICKETING"&&b===0,g=!1;((d=e.checkoutProps)==null?void 0:d.extraData)!=null&&((d=e.checkoutProps)==null?void 0:(d=d.extraData)==null?void 0:d.negotiable_price_offer_data)!=null&&(g=!0);d=f?h._("u5546u54c1u8be6u60c5"):g?h._("u8ba2u5355u603bu989duff08u5982u83b7u63a5u53d7uff09"):h._("u8ba2u5355u603bu989d");g=f?j.jsx("div",{className:"x1y1aw1k",children:j.jsx(c("CometMenuSeparator.react"),{})}):null;var i=e==null?void 0:(e=e.checkoutProps)==null?void 0:(e=e.personalization)==null?void 0:e.personalizationRequestFromBuyer;return j.jsxs("div",{children:[j.jsx("div",{className:"xwib8y2",children:j.jsx(c("PaymentsCometCheckoutSectionTitle"),{title:d})}),a.map(function(a,b){var c=a.display_price,d=a.item,e=a.label;a=a.original_price;var g=d||{},k=g.item_image_url,l=g.subsubtitle;g=g.title;var m=i!=null?{body:i,title:h._("u5b9au5236u8981u6c42")}:null;d=d==null?e:j.jsx(o,{footer:m,imageURL:k||"",subtitle:l||"",title:g||""});return j.jsx(q,{leftContent:d,rightContent:f&&Boolean(a)?a:c||""},b)}),g]},b)}n.displayName=n.name+" [from "+f.id+"]";function o(a){var b=a.footer,d=a.imageURL,e=a.subtitle;a=a.title;return j.jsxs(c("CometRow.react"),{paddingHorizontal:0,paddingTop:0,verticalAlign:"top",children:[j.jsx(c("CometRowItem.react"),{children:j.jsx(c("CometImage.react"),{height:60,src:d,xstyle:l.image})}),j.jsxs(c("CometRowItem.react"),{children:[j.jsx("div",{className:"xwib8y2 xwl9fdd",children:j.jsx(c("TetraText.react"),{color:"primary",type:"headlineEmphasized3",children:a})}),j.jsx(c("TetraText.react"),{color:"secondary",type:"body2",children:e}),b!=null?j.jsxs(j.Fragment,{children:[j.jsx("div",{className:"x1y1aw1k xwl9fdd",children:j.jsx(c("TetraText.react"),{color:"primary",type:"bodyLink4",children:b.title})}),j.jsx("div",{className:"x1iorvi4 xwl9fdd",children:j.jsx(c("TetraText.react"),{color:"secondary",type:"body4",children:b.body})})]}):null]})]})}o.displayName=o.name+" [from "+f.id+"]";function p(a){var b=a.title;a=a.tooltip;return j.jsxs(c("CometRow.react"),{paddingHorizontal:0,paddingTop:0,verticalAlign:"top",children:[j.jsx(c("CometRowItem.react"),{xstyle:l.disclaimerItem,children:j.jsx(c("TetraText.react"),{color:"secondary",type:"body3",children:b})}),a!=null&&j.jsx(c("CometRowItem.react"),{xstyle:l.disclaimerItem,children:j.jsx(c("CometTooltip.react"),{align:"middle",delayMs:100,tooltip:a,children:j.jsx(c("CometImage.react"),{src:i("479819")})})})]})}p.displayName=p.name+" [from "+f.id+"]";function q(a){var b=a.isTotal;b=b===void 0?!1:b;var d=a.leftContent;a=a.rightContent;var e=b?"primary":"secondary";b=b?"bodyLink2":"body2";var f=typeof d==="string"?"checkout_price_table_label"+d:"";f=typeof d==="string"&&typeof a==="string"?"checkout_price_table_label"+d+a:"";return j.jsxs(c("CometRow.react"),{paddingHorizontal:16,verticalAlign:"top",children:[j.jsx(c("CometRowItem.react"),{expanding:!0,children:typeof d==="object"?d:j.jsx(c("TetraText.react"),{color:e,testid:void 0,type:b,children:d})}),j.jsx(c("CometRowItem.react"),{children:j.jsx("div",{className:"xk8lq53",children:typeof a==="object"?a:j.jsx(c("TetraText.react"),{color:e,testid:void 0,type:b,children:a})})})]})}q.displayName=q.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
PaymentsCometCheckoutComponentUtils",["AllPaymentTypeFields","PaymentsCometCheckoutAPIUtils","getJSEnumSafe"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return(a==null?void 0:a.toLowerCase())==="mor_voices"}function b(a){var b=c("getJSEnumSafe")(c("AllPaymentTypeFields"),a.paymentType);a=d("PaymentsCometCheckoutAPIUtils").getDigitalCommerceOmnibusDirectiveData(a);a=a.isOmnibusUser;return b==="mor_voices"&&a?!1:!0}g.showStickyPaymentButton=a;g.getShouldShowSeeMoreMenu=b}),98);
-----
useCommerceCheckoutDialog",["AllPaymentTypeFields","CometCardedDialogLoadingStateLegacy.react","CommerceCheckoutActionLogger","CommerceCheckoutLoggingUtils","JSResourceForInteraction","react","useCometLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useRef,k=c("JSResourceForInteraction")("CommerceCheckoutRootContainer.react").__setRef("useCommerceCheckoutDialog");function a(a){var b=a.checkoutProps,e=a.dialogProps,f=a.entrypoint,g=a.onClose;a=j(null);var l=c("useCometLazyDialog")(k,function(){return h.jsx(c("CometCardedDialogLoadingStateLegacy.react"),{})}),m=l[0],n=(l=c("AllPaymentTypeFields")[b==null?void 0:b.paymentType.toString()])!=null?l:"unknown";l=i(function(){var a=d("CommerceCheckoutLoggingUtils").sessionIDGenerator(),h=b.products;h=(h=h==null?void 0:h.map(function(a){return a.product_id}))!=null?h:[];h=new(c("CommerceCheckoutActionLogger"))(n,"checkout_init",h,[b.receiverID],a,f,b.extraData);h.logUserClickFBPayCheckoutAtomic();m({checkoutProps:b,dialogProps:e,entrypoint:f,loggingSessionId:a,onClose:g},g)},[b,n,f,m,e,g]);return[l,a]}g["default"]=a}),98);
-----
CommerceCheckoutActionLogger",["ClientAddShippingaddressFailFalcoEvent","ClientAddShippingaddressInitFalcoEvent","ClientAddShippingaddressSuccessFalcoEvent","ClientCreatePlaceorderFailFalcoEvent","ClientCreatePlaceorderSuccessFalcoEvent","ClientEditShippingaddressFailFalcoEvent","ClientEditShippingaddressInitFalcoEvent","ClientEditShippingaddressSuccessFalcoEvent","ClientExecuteUpdatepaymentFailFalcoEvent","ClientExecuteUpdatepaymentSuccessFalcoEvent","ClientLoadFbpaycheckoutFailFalcoEvent","ClientLoadFbpaycheckoutInitFalcoEvent","ClientLoadFbpaycheckoutSuccessFalcoEvent","ClientLoadUpdatepaymentFailFalcoEvent","ClientLoadUpdatepaymentInitFalcoEvent","ClientLoadUpdatepaymentSuccessFalcoEvent","CommerceCheckoutLoggingUtils","FBPayUPLLogger","FBPaymentsLoggerConstants","FBPaymentsModulesAPIUtils","PayflowsInitFalcoEvent","PaymentsFlowsLogFalcoEvent","UserClickFbpaycheckoutAtomicFalcoEvent","UserClickFbpaycheckoutCancelFalcoEvent","UserClickFbpaycheckoutExitFalcoEvent","UserClickPlaceorderAtomicFalcoEvent","UserClickProductitemAtomicFalcoEvent","UserClickShippingaddressAtomicFalcoEvent","UserClickUpdatepaymentAtomicFalcoEvent","UserClickUpdatepaymentExitFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a,b,c,e,f,g,h){this.$1=(a=a)!=null?a:"unknown";this.$3=(a=b)!=null?a:"checkout_init";this.$8=c;this.$9=e;this.$2=(b=f)!=null?b:d("CommerceCheckoutLoggingUtils").sessionIDGenerator();this.$10=g;this.$11=h}var b=a.prototype;b.getFBPayUPLLoggerfromCheckoutLogger=function(){return new(c("FBPayUPLLogger"))(d("FBPaymentsModulesAPIUtils").convertAllPaymentTypeFieldsForNewAPI(this.$1),"comet",this.$2)};b.setInvoiceId=function(a){this.$7=a};b.logUserClickPlaceOrderAtomic=function(a){var b=this;a===void 0&&(a={});c("UserClickPlaceorderAtomicFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PAYMENT},a)};b.logUserClickPlaceOrderUpdateOrderPaymentAtomic=function(a){var b=this;a===void 0&&(a={});c("UserClickUpdatepaymentAtomicFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_ORDER_PAYMENT},a)};b.logUserClickFBPayCheckoutAtomic=function(a){var b=this;a===void 0&&(a={});c("UserClickFbpaycheckoutAtomicFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.START},a)};b.logClientCreatePlaceOrderInit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PAYMENT},a)};b.logClientUpdateOrderPaymentInit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_ORDER_PAYMENT},a)};b.logClientCreatePlaceOrderSuccess=function(a){var b=this;a===void 0&&(a={});c("ClientCreatePlaceorderSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PAYMENT},a)};b.logClientUpdateOrderPaymentSuccess=function(a){var b=this;a===void 0&&(a={});c("ClientExecuteUpdatepaymentSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_ORDER_PAYMENT},a)};b.logClientCreatePlaceOrderFail=function(a,b){var e=this,f;b===void 0&&(b={});c("ClientCreatePlaceorderFailFalcoEvent").logCritical(function(){var b;return babelHelpers["extends"]({},e.$12(),{custom_fields:e.$13(),event_payload:{target_name:"checkout",view_name:"checkout"},extra_data:{error_code:(b=a==null?void 0:(b=a.error_code)==null?void 0:b.toString())!=null?b:"",error_message:(b=a==null?void 0:(b=a.error_description)==null?void 0:b.toString())!=null?b:""}})});this.$14({error_code:a==null?void 0:(f=a.error_code)==null?void 0:f.toString(),error_message:a==null?void 0:(f=a.error_description)==null?void 0:f.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PAYMENT},b)};b.logClientUpdateOrderPaymentFail=function(a,b){var e=this;b===void 0&&(b={});c("ClientExecuteUpdatepaymentFailFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$12(),{custom_fields:e.$13(),event_payload:{target_name:"checkout",view_name:"checkout"},extra_data:a})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_ORDER_PAYMENT},b)};b.logUserClickShippingAddressAtomic=function(a){var b=this;a===void 0&&(a={});c("UserClickShippingaddressAtomicFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout_address_typeahead",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADDRESS_TYPEAHEAD},a)};b.logUserClickProductItemAtomic=function(a){var b=this;a===void 0&&(a={});c("UserClickProductitemAtomicFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_PRODUCT_ITEM},a)};b.logClientCheckoutInit=function(a){var b=this;a===void 0&&(a={});c("PayflowsInitFalcoEvent").log(function(){return{e_counter_channel:0,event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,event_type:"client",flow_name:"checkout_init",flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.START,is_free:!1,paymod_extra_data:JSON.stringify(babelHelpers["extends"]({},b.$15(),a)),product:b.$1,session_id:b.$2}})};b.logClientLoadCheckoutInit=function(a){var b,e=this;a===void 0&&(a={});((b=this.$11)==null?void 0:b.is_update_order_payment_flow)===!0?c("ClientLoadUpdatepaymentInitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$12(),{custom_fields:e.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})}):c("ClientLoadFbpaycheckoutInitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$12(),{custom_fields:e.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_INFORMATION},a)};b.logClientLoadCheckoutFail=function(a,b){var e,f=this;b===void 0&&(b={});((e=this.$11)==null?void 0:e.is_update_order_payment_flow)===!0?c("ClientLoadUpdatepaymentFailFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},f.$12(),{custom_fields:f.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})}):c("ClientLoadFbpaycheckoutFailFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},f.$12(),{custom_fields:f.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({error_code:a==null?void 0:(e=a.error_code)==null?void 0:e.toString(),error_message:a==null?void 0:(e=a.error_description)==null?void 0:e.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_INFORMATION},b)};b.logClientLoadCheckoutSuccess=function(a){var b,e=this;a===void 0&&(a={});((b=this.$11)==null?void 0:b.is_update_order_payment_flow)===!0?c("ClientLoadUpdatepaymentSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$12(),{custom_fields:e.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})}):c("ClientLoadFbpaycheckoutSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$12(),{custom_fields:e.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_INFORMATION},a)};b.logUserClickCheckoutCancel=function(a){var b=this;a===void 0&&(a={});c("UserClickFbpaycheckoutCancelFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CANCEL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_MODULE},a)};b.logClientDisplayCheckoutExitDialog=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.DISPLAY,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_EXIT_DIALOG},a)};b.logUserClickCheckoutExit=function(a){var b=this;a===void 0&&(a={});c("UserClickFbpaycheckoutExitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.DONE,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_MODULE},a)};b.logUserClickCheckoutExitOnExitAlertDialog=function(a){var b,e=this;a===void 0&&(a={});((b=this.$11)==null?void 0:b.is_update_order_payment_flow)===!0&&c("UserClickUpdatepaymentExitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},e.$12(),{custom_fields:e.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_EXIT_DIALOG},a)};b.logUserClickCheckoutExitOnOrderConfirmationScreen=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_CONFIRMATION_LEAVE},a)};b.logUserClickCheckoutCancelExit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CANCEL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_EXIT_DIALOG},a)};b.logUserClickCheckoutViewOrderDetails=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.CHECKOUT_CONFIRMATION_VIEW_ORDER_DETAILS},a)};b.logClientCheckoutPrefillEmailInit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PREFILLED_EMAIL},a)};b.logClientCheckoutPrefillShippingAddressInit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PREFILLED_SHIPPING_ADDRESS},a)};b.logClientCheckoutPrefillPaymentMethodInit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.PREFILLED_PAYMENT_METHOD},a)};b.logUserClickAddPaypal=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PAYPAL},a)};b.logClientAddPaypalInit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PAYPAL},a)};b.logClientAddPaypalSuccess=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PAYPAL},a)};b.logClientAddPaypalFail=function(a,b){var c;b===void 0&&(b={});this.$14({error_code:a==null?void 0:(c=a.error_code)==null?void 0:c.toString(),error_message:a==null?void 0:(c=a.error_description)==null?void 0:c.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PAYPAL},b)};b.logClientAddPaypalCancel=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CANCEL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PAYPAL},a)};b.logClientAddEmailInit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_EMAIL},a)};b.logClientAddEmailSuccess=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_EMAIL},a)};b.logClientAddEmailFail=function(a,b){var c;b===void 0&&(b={});this.$14({error_code:a==null?void 0:(c=a.error_code)==null?void 0:c.toString(),error_message:a==null?void 0:(c=a.error_description)==null?void 0:c.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_EMAIL},b)};b.logUserClickUpdateEmail=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_EMAIL},a)};b.logClientUpdateEmailInit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_EMAIL},a)};b.logClientUpdateEmailSuccess=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_EMAIL},a)};b.logClientUpdateEmailFail=function(a,b){var c;b===void 0&&(b={});this.$14({error_code:a==null?void 0:(c=a.error_code)==null?void 0:c.toString(),error_message:a==null?void 0:(c=a.error_description)==null?void 0:c.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_EMAIL},b)};b.logUserClickNuxStepNext=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.NUX_CONSOLIDATED_INFO_STEP_NEXT},a)};b.logClientNuxStepNextSuccess=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.NUX_CONSOLIDATED_INFO_STEP_NEXT},a)};b.logClientNuxStepNextFail=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.NUX_CONSOLIDATED_INFO_STEP_NEXT},a)};b.logClientAddShippingAddressInit=function(a){var b=this;a===void 0&&(a={});c("ClientAddShippingaddressInitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout_add_address_button",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_SHIPPING_ADDRESS},a)};b.logClientAddShippingAddressSuccess=function(){var a=this;c("ClientAddShippingaddressSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},a.$12(),{custom_fields:a.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_SHIPPING_ADDRESS})};b.logClientAddShippingAddressFail=function(a){var b=this,e={error_code:String(a==null?void 0:a.error_code),error_message:String((a=a==null?void 0:a.error_description)!=null?a:"")};c("ClientAddShippingaddressFailFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout",view_name:"checkout"},extra_data:e})});this.$14(babelHelpers["extends"]({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_SHIPPING_ADDRESS},e))};b.logClientEditShippingAddressInit=function(){var a=this;c("ClientEditShippingaddressInitFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},a.$12(),{custom_fields:a.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_SHIPPING_ADDRESS})};b.logClientEditShippingAddressSuccess=function(){var a=this;c("ClientEditShippingaddressSuccessFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},a.$12(),{custom_fields:a.$13(),event_payload:{target_name:"checkout",view_name:"checkout"}})});this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_SHIPPING_ADDRESS})};b.logClientEditShippingAddressFail=function(a){var b=this,e={error_code:String(a==null?void 0:a.error_code),error_message:String((a=a==null?void 0:a.error_description)!=null?a:"")};c("ClientEditShippingaddressFailFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},b.$12(),{custom_fields:b.$13(),event_payload:{target_name:"checkout",view_name:"checkout"},extra_data:e})});this.$14(babelHelpers["extends"]({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.EDIT_SHIPPING_ADDRESS},e))};b.logUserClickAddCreditCardAtomic=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_CARD},a)};b.logClientAddCreditCardInit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_CARD},a)};b.logClientAddCreditCardSuccess=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_CARD},a)};b.logClientAddCreditCardFail=function(a,b){var c;b===void 0&&(b={});this.$14({error_code:a==null?void 0:(c=a.error_code)==null?void 0:c.toString(),error_message:a==null?void 0:(c=a.error_description)==null?void 0:c.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_CARD},b)};b.logClientUpdateCreditCardInit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_CARD},a)};b.logClientUpdateCreditCardSuccess=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_CARD},a)};b.logClientUpdateCreditCardFail=function(a,b){var c;b===void 0&&(b={});this.$14({error_code:a==null?void 0:(c=a.error_code)==null?void 0:c.toString(),error_message:a==null?void 0:(c=a.error_description)==null?void 0:c.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.UPDATE_CARD},b)};b.logUserClickAddCouponCodeAtomic=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PROMO_CODE},a)};b.logUserClickRemoveCouponCodeAtomic=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.REMOVE_PROMO_CODE},a)};b.logClientEditCouponInit=function(a,b){b===void 0&&(b={});switch(a){case d("CommerceCheckoutLoggingUtils").EditCouponState.ADD_COUPON:this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PROMO_CODE},b);break;case d("CommerceCheckoutLoggingUtils").EditCouponState.REMOVE_COUPON:this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.REMOVE_PROMO_CODE},b);break;default:break}};b.logClientEditCouponSuccess=function(a,b){b===void 0&&(b={});switch(a){case d("CommerceCheckoutLoggingUtils").EditCouponState.ADD_COUPON:this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PROMO_CODE},b);break;case d("CommerceCheckoutLoggingUtils").EditCouponState.REMOVE_COUPON:this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.REMOVE_PROMO_CODE},b);break;default:break}};b.logClientEditCouponFail=function(a,b,c){c===void 0&&(c={});switch(a){case d("CommerceCheckoutLoggingUtils").EditCouponState.ADD_COUPON:this.$14({error_code:b==null?void 0:(a=b.error_code)==null?void 0:a.toString(),error_message:b==null?void 0:(a=b.error_description)==null?void 0:a.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.ADD_PROMO_CODE},c);break;case d("CommerceCheckoutLoggingUtils").EditCouponState.REMOVE_COUPON:this.$14({error_code:b==null?void 0:(a=b.error_code)==null?void 0:a.toString(),error_message:b==null?void 0:(a=b.error_description)==null?void 0:a.toString(),event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.REMOVE_PROMO_CODE},c);break;default:break}};b.logUserClickChangeShippingMethodAtomic=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.CLICK,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.SELECT_SHIPPING_METHOD},a)};b.logClientChangeShippingMethodInit=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.API_INIT,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.SELECT_SHIPPING_METHOD},a)};b.logClientChangeShippingMethodSuccess=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.SUCCESS,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.SELECT_SHIPPING_METHOD},a)};b.logClientChangeShippingMethodFail=function(a){a===void 0&&(a={}),this.$14({event_name:d("FBPaymentsLoggerConstants").LoggerEvent.FAIL,flow_step:d("FBPaymentsLoggerConstants").LoggerFlowStep.SELECT_SHIPPING_METHOD},a)};b.$13=function(){return{checkout_entry_point:this.$10,checkout_flow:this.$3,checkout_session_ent_id:this.$4,external_session_id:this.$5,incentive_ids:this.$6,invoice_id:this.$7,product_ids:this.$8,seller_ids:this.$9}};b.$12=function(){return{actual_event_time:Date.now().toString(),platform:"comet",product_type:this.$1,session_id:this.$2}};b.$16=function(){return{checkout_session_ent_id:this.$4,event_type:"client",external_session_id:this.$5,flow_name:this.$3,is_free:!1,product:this.$1,session_id:this.$2}};b.$15=function(){return babelHelpers["extends"]({comet:!0,entrypoint:this.$10},this.$11)};b.$14=function(a,b){var d=this;b===void 0&&(b={});c("PaymentsFlowsLogFalcoEvent").logCritical(function(){return babelHelpers["extends"]({},d.$16(),a,{paymod_extra_data:JSON.stringify(babelHelpers["extends"]({},d.$15(),b))})})};return a}();g["default"]=a}),98);
-----
cometMarketplaceCheckoutUtils.hybrid",["AllPaymentTypeFields","getGraphQLEnumSafe","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d,e,f,g,h,i){var j;f===void 0&&(f=1);g===void 0&&(g=null);e=c("getGraphQLEnumSafe")(c("AllPaymentTypeFields"),e);if(e==null)throw c("unrecoverableViolation")("Invalid / Null PaymentType provided","marketplace-comet");j=h!=null?(j={},j[b]={is_personalization_required:h==null?void 0:h.isPersonalizationRequired,personalization_instructions_from_buyer:h==null?void 0:h.personalizationRequestFromBuyer,personalization_options_from_seller:h==null?void 0:h.personalizationInstructionsFromSeller},j):null;return{extraData:{personalization_info_data:j,products:[{pageId:g,price:d,product_id:b,quantity:f}]},isPurchaseProtected:i,paymentType:e,personalization:h,products:[{per_unit_price:d,product_id:b,quantity:f}],receiverID:a}}function b(a,b,d,e){e===void 0&&(e=null);d=c("getGraphQLEnumSafe")(c("AllPaymentTypeFields"),d);if(d==null)throw c("unrecoverableViolation")("Invalid / Null PaymentType provided","marketplace-comet");return{extraData:{is_marketplace_ecomm_cart_checkout:!0,products:b.map(function(a){return{pageId:e,price:a.price,product_id:a.productId,quantity:a.quantity}})},paymentType:d,products:b.map(function(a){return{per_unit_price:a.price,product_id:a.productId,quantity:a.quantity}}),receiverID:a}}g.generateCheckoutProps=a;g.generateMultiItemCheckoutProps=b}),98);
-----
FBPaymentsCheckoutV2FlowContainerBase.react",["errorDesc","invariant","AllPaymentTypeFields","DateConsts","FBLogger","FBPayGatingUtils","FBPayLoggingUtils","FBPayPINUtils","FBPayStrings","FBPayUPLLogger","FBPayments3DS","FBPaymentsAsyncCompleteCheckoutManager","FBPaymentsAsyncCompleteCheckoutUtils","FBPaymentsCheckoutActions","FBPaymentsCheckoutConfigurationStore","FBPaymentsCheckoutConfigurationTypes","FBPaymentsCheckoutConstants","FBPaymentsCheckoutContext","FBPaymentsCheckoutHelper","FBPaymentsCheckoutInfoParser","FBPaymentsCheckoutLoggerStore","FBPaymentsCheckoutStep","FBPaymentsCheckoutStrings","FBPaymentsContentConfigurationParser","FBPaymentsCountryCodes","FBPaymentsDispatcher","FBPaymentsFreeTrialExtensionUtil","FBPaymentsInvoiceFetchStatus.graphql","FBPaymentsLinkHelper","FBPaymentsLoggerBase","FBPaymentsLoggerConstants","FBPaymentsModulesAPIShared","FBPaymentsModulesAPIUtils","FBPaymentsModulesErrorConstants","FBPaymentsModulesFlowType","FBPaymentsNewPaymentOptionTypes","FBPaymentsPINConstants","FBPaymentsPaymentMethodTypes","FBPaymentsPerfLogger","FBPaymentsPriceListHelper","FBPaymentsStringHelper","FBPaymentsUniversalErrorUtils","FBPaymentsVerificationConstants","FBPaymentsVerificationFlowHelper","PECurrency","PayPalFraudNetNew","PayPalFraudNetUrl","PayTransactionStatus","PaymentMethodUtils","PrivacyMutationToken","RelayAPIConfig","RelayFBEnvironment","RelayHooks","XCommerceOnsiteEventRouter","abstractMethod","enumUtils","getOwnObjectValues","gkx","immutable","keyMirror","promiseDone","prop-types","qpl","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=b("FBPayGatingUtils").shouldShowResearchSurvey,k=b("FBPayLoggingUtils").isUPLSessionID,l=b("FBPayLoggingUtils").sessionIDGenerator,m=b("FBPaymentsPINConstants").PIN_FLOW_STEPS,n=b("PECurrency").formatAmountX,o=b("PrivacyMutationToken").getPrivacyMutationTokenFromSourceID,p=b("RelayHooks").fetchQuery,q=i||(i=b("react")),r=b("DateConsts").MS_PER_SEC;a=b("FBPaymentsCheckoutConfigurationTypes").CheckoutConfigurationPropTypes;var s=b("FBPaymentsCheckoutConstants").CollectedDataKey,t=b("FBPaymentsCheckoutConstants").CustomExtensionKeys,u=b("FBPaymentsCheckoutConstants").Extensions,v=b("FBPaymentsCheckoutConstants").OrderStatusModelType,w=b("FBPaymentsCheckoutConstants").PaymentAction,x=b("FBPaymentsCheckoutConstants").PaymentCallbackUpdateState,y=b("FBPaymentsCheckoutStep");b("immutable").List;var z=b("immutable").Set,A=b("FBPaymentsLoggerConstants").LoggerFlowType,B=b("FBPaymentsLoggerConstants").LoggerFlowStep,C=b("FBPaymentsLoggerConstants").LoggerEvent,D=b("FBPaymentsLoggerBase").LOGGER_FIELD_NAMES,E=b("FBPaymentsVerificationConstants").VERIFICATION_FLOW_RESULT,F=b("FBPaymentsModulesErrorConstants").PaymentModulesErrorCode,G=b("FBPaymentsCheckoutConstants").RestoreKey,H=b("FBPaymentsPINConstants").RETURNED_FROM_PAYPAL,I=b("FBPaymentsPINConstants").VERIFIED_PAYPAL_STEP,J=b("keyMirror")(b("PayTransactionStatus"));c=function(a){babelHelpers.inheritsLoose(c,a);function c(c){var d,e;e=a.call(this,c)||this;e.$20=function(a){e.$1.setFlowStep(B.CHECKOUT_TERMS_FETCH).setEventName(C.SUCCESS).log(),b("FBPaymentsCheckoutActions").termsAndPoliciesLoaded(a)};e.$21=function(a){var c=b("FBPaymentsUniversalErrorUtils").getErrorCode(a);e.$1.setFlowStep(B.CHECKOUT_TERMS_FETCH).setEventName(C.FAIL).setUserFacingMessage(a.message).setUserFacingErrorCode(c).setErrorMessage(a.serverErrorMessage).setErrorCode(c).setExceptionClass(a.exceptionClass).log();b("FBPaymentsCheckoutActions").termsAndPoliciesLoadError()};e.$23=function(a){e.$1.setFlowStep(B.UPDATE_CHECKOUT_API).setEventName(C.SUCCESS).log();var c=e.getCheckoutConfiguration().version;c=b("FBPaymentsContentConfigurationParser").parse(c,a,!0);e.state.step!==y.CONFIRMATION&&b("FBPaymentsCheckoutActions").updateContentConfiguration(c)};e.$26=function(a){var c;b("FBPaymentsCheckoutActions").updateCheckoutInfoGraphQLResponse(a);e.setState({isSwedenDonation:(c=a==null?void 0:a.sweden_checkout_change_enabled)!=null?c:!1});e.$1.setFlowStep(B.CHECKOUT_INFORMATION).setEventName(C.SUCCESS).log();e.$6&&e.$6.logClientLoadCheckoutSuccess({target_name:"checkout",view_name:"checkout"});e.$10("checkout_load_success");c=b("FBPaymentsCheckoutInfoParser").parse(a,e.getCheckoutConfiguration().contentConfiguration,e.getPaymentType());e.state.step!==y.CONFIRMATION&&b("FBPaymentsCheckoutActions").updateCheckoutInfo(c)};e.$24=function(a){e.$1.setFlowStep(B.UPDATE_CHECKOUT_API).setEventName(C.FAIL).setUserFacingMessage(a.message).setErrorMessage(a.serverErrorMessage).setExceptionClass(a.exceptionClass).log(),b("FBPaymentsCheckoutActions").updateCheckoutLoadError(a)};e.$27=function(a){var c=b("FBPaymentsUniversalErrorUtils").getErrorCode(a),d=b("FBPaymentsUniversalErrorUtils").getUserFacingErrorMessage(a),f=b("FBPaymentsUniversalErrorUtils").getServerErrorMessage(a);e.$10("checkout_load_failure");e.$1.setFlowStep(B.CHECKOUT_INFORMATION).setEventName(C.FAIL).setUserFacingMessage(d).setErrorMessage(f).setUserFacingErrorCode(c).setErrorCode(c).log();e.$6&&e.$6.logClientLoadCheckoutFail({target_name:"checkout",view_name:"checkout"});b("FBPaymentsCheckoutActions").updateCheckoutLoadError(a)};e.$30=function(a){switch(a.state){case x.LOADING:b("FBPaymentsCheckoutActions").paymentProcessingCallbackLoading({paymentProcessingMessage:a.loadingMessage||""});break;case x.DONE:e.$1.setFlowStep(B.PAYMENT).setEventName(C.SUCCESS).logVital();e.$19();b("FBPaymentsCheckoutActions").paymentProcessingCallbackDone({confirmationConfiguration:a.confirmationConfiguration});break;case x.ERROR:e.$1.setFlowStep(B.PAYMENT).setEventName(C.FAIL).setErrorMessage(a.errorMessage).log();e.$10("checkout_flow_failed");e.$19();b("FBPaymentsCheckoutActions").paymentProcessingCallbackError({global:a.errorMessage||b("FBPaymentsModulesAPIUtils").getUncaughtErrorMessage(),additional:a.additionalErrors});break;default:throw Error("Invalid payment callback state: "+a.state)}};e.__handleDialogClose=function(){if(e.state.step===y.CONFIRMATION){e.$33(!1);return}var a=e.__isExitCheckoutConfirmDialogEnabled();if(a){b("FBPaymentsCheckoutActions").showExitCheckoutConfirmDialog({showDialog:!0});return}b("FBPaymentsCheckoutActions").toggleIsCheckoutDialogShown(!1);e.$6&&e.$6.logUserClickCheckoutExit({target_name:"fbpay_checkout"});e.$34()};e.$34=function(){var a;e.$1.setFlowStep(B.CHECKOUT_MODULE).setEventName(C.CANCEL).logVital();e.$10("checkout_flow_canceled");a=(a=e.getContentConfiguration())!=null?a.checkoutClosedCallback:a;a&&a();a=e.props.onCheckoutClosed;a&&a()};e.$36=function(a){e.setState({confirmationExtensions:a})};e.$43=function(a,c){b("FBPayGatingUtils").shouldUseNewPINAPI(e.getPaymentType(),e.$40())||b("FBPayGatingUtils").shouldUseCSCForNewPINAPI(e.getPaymentType())?b("FBPayGatingUtils").shouldUseKeyPairs(e.getPaymentType(),e.$40())&&c!=null?e.setState({authKeyPairs:c}):e.setState({authPTT:a}):e.setState({paymentsPIN:a}),e.$44(!0)};e.$45=function(a){e.setState({authKeyPairs:(a=a)!=null?a:null});e.$44(!0)};e.$47=function(){var a,c,d,f=e.state.paymentMethodData;c=(c=f)!=null?c.paymentMethodID:c;a=(a=f)!=null?a.newPaymentOptionType:a;d=(f==null?void 0:f.newPaymentOptionType)?f==null?void 0:f.newPaymentOptionType:f==null?void 0:(d=f.paymentMethod)==null?void 0:d.type;e.$46()&&e.$6&&e.$6.logUserClickFBPayPaymentAtomic({credential_id:a==null?c:void 0,credential_type:b("PaymentMethodUtils").castCredentialType(d)||"dummy",target_name:"checkout"});var g={};e.state.extensionFlagsMap.forEach(function(a,b){g[b]=a.isReady?1:0});e.$1.setFlowStep(B.PAYMENT).setEventName(C.CLICK).setPaymentMethodType(a).setPaymentMethodID(c).addToExtraData("components",JSON.stringify(g)).addToExtraData("CVV data",JSON.stringify(f==null?void 0:(d=f.paymentMethod)==null?void 0:(a=d.csc)==null?void 0:a.length)).logVital();e.setState({authPTT:null});e.$44()};e.$52=function(){e.$1.setFlowStep(B.VERIFICATION).setEventName(C.BACK_CLICK).setUserFacingMessage(e.state.errors.global).addToExtraData("incomplete_idv_to_checkout","true").log(),b("FBPaymentsCheckoutActions").exitIncompleteVerificationFlow(),e.__scrollToTop()};e.$58=function(a){switch(a){case E.PASSED:e.$53();return;case E.PENDING_REVIEW:e.$57();return;default:e.$1.setFlowStep(B.VERIFICATION).setEventName(C.BACK_CLICK).setErrorMessage("Unsupported verification flow result: "+String(a)).log(),b("FBLogger")("purchase_experience").warn("Unsupported verification flow result: %s",a)}};e.$62=function(){b("FBPaymentsCheckoutActions").showExitCheckoutConfirmDialog({showDialog:!1}),b("FBPaymentsCheckoutActions").toggleIsCheckoutDialogShown(!1),e.$1.setFlowStep(B.CHECKOUT_EXIT_DIALOG).setEventName(C.CLICK).addToExtraData("button_name","exit").addToExtraData("is_payment_processing",e.getIsPaymentProcessing().toString()).logVital(),e.$6&&e.$6.logUserClickCheckoutExit({target_name:"fbpay_checkout"}),e.__shouldUseBackButtonOnConfirmedExit()?e.$31():e.$34()};e.$63=function(){b("FBPaymentsCheckoutActions").showExitCheckoutConfirmDialog({showDialog:!1}),e.$1.setFlowStep(B.CHECKOUT_EXIT_DIALOG).setEventName(C.CLICK).addToExtraData("button_name","cancel").addToExtraData("is_payment_processing",e.getIsPaymentProcessing().toString()).logVital()};e.$64=function(){b("FBPaymentsCheckoutActions").showDonationLargeAmountConfirmDialog({showDialog:!1}),e.$1.setFlowStep(B.CHECKOUT_DONATION_LARGE_AMOUNT_DIALOG).setEventName(C.CLICK).addToExtraData("button_name","donate").logVital(),b("FBPaymentsCheckoutActions").payButtonClick(!1)};e.$65=function(){b("FBPaymentsCheckoutActions").showDonationLargeAmountConfirmDialog({showDialog:!1}),e.$1.setFlowStep(B.CHECKOUT_DONATION_LARGE_AMOUNT_DIALOG).setEventName(C.CLICK).addToExtraData("button_name","cancel").logVital()};e.$14=function(){var a,c,d;a=(a=e.state.cachedRequestData)==null?void 0:a.extra_data;c=(c=e.state.cachedRequestData)==null?void 0:c.mailing_address_id;d=(d=(d=e.state.cachedRequestData)==null?void 0:d.email_address_id)!=null?d:(d=e.state.contactInfoData)==null?void 0:d.emailID;b("FBPaymentsModulesAPIShared").confirmRazorPayPayment({payment_type:e.getPaymentType(),payment_session_id:e.state.paymentSessionID||"",context_id:b("FBPaymentsLinkHelper").getCurrentURIContextID(),product_id:e.getPaymentInfo().orderId,extra_data:a,address_id:c,email_id:d},e.$55,e.$56)};e.$71=function(a){b("FBPaymentsModulesAPIShared").confirmAltPayPayment({payment_type:e.getPaymentType(),payment_session_id:e.state.paymentSessionID||""},a,e.$55,e.$56)};e.$55=function(a,c){var d;e.$70(!0);c&&Object.entries(c).forEach(function(a){var b=a[0];a=a[1];e.$1.addToExtraData(b,a)});c=a.id;(d=e.$6)==null?void 0:d.logClientAddFbPayPaymentSuccess({credential_id:(d=(d=e.state.paymentMethodData)==null?void 0:d.paymentMethodID)!=null?d:"",order_id:(d=(d=a.extra_data)==null?void 0:d.order_id)!=null?d:"0",payment_id:(d=c)!=null?d:"0",target_name:"checkout"});e.$1.setFlowStep(B.PAYMENT).setEventName(C.SUCCESS).setPaymentID(c).logVital();b("FBPaymentsPerfLogger").logPaymentSuccess(e.getPaymentType());e.$10("checkout_succeeded");e.$19();d=e.props.onCheckoutSuccessCallback;if(d){c=e.getSelectedPaymentMethod();d(c,a,e.$72.bind(babelHelpers.assertThisInitialized(e),a),e.$54)}else e.$72(a)};e.$56=function(a,c){e.$70(!1);e.__closeRazorPayPopup();e.setState({authPTT:null,authKeyPairs:null});c&&Object.entries(c).forEach(function(a){var b=a[0];a=a[1];e.$1.addToExtraData(b,a)});c=b("FBPaymentsUniversalErrorUtils").getErrorCode(a);var d=b("FBPaymentsUniversalErrorUtils").getUserFacingErrorMessage(a),f=b("FBPaymentsUniversalErrorUtils").getServerErrorMessage(a);switch(c){case F.IDV_REQUIRED:e.$1.setFlowStep(B.PAYMENT).setEventName(C.FAIL).setUserFacingMessage(d).setErrorMessage(f).setUserFacingErrorCode(c).setErrorCode(c).addToExtraData("idv_status","required").log();b("FBPaymentsCheckoutActions").enterVerificationFlow({userFacingMessage:d});return;case F.ALT_PAY_FLOW_CANCELLED:e.$1.setFlowStep(B.PAYMENT).setEventName(C.CANCEL).setUserFacingMessage(d).setErrorMessage(f).setUserFacingErrorCode(c).setErrorCode(c).addToExtraData("alt_pay_cancelled","true").log();b("FBPaymentsPerfLogger").logPaymentFail(e.getPaymentType());b("FBPaymentsCheckoutActions").altPayFlowCancelled(a);break;case F.IDV_PENDING_MANUAL_REVIEW:e.$1.setFlowStep(B.PAYMENT).setEventName(C.FAIL).setUserFacingMessage(d).setErrorMessage(f).setUserFacingErrorCode(c).setErrorCode(c).addToExtraData("idv_status","pending_manual_review").log();b("FBPaymentsCheckoutActions").paymentProcessingError({global:d||b("FBPaymentsModulesAPIUtils").getUncaughtErrorMessage()});e.__scrollToTop();return}e.$1.setFlowStep(B.PAYMENT).setEventName(C.FAIL).setUserFacingMessage(d).setErrorMessage(f).setUserFacingErrorCode(c).setErrorCode(c).log();b("FBPaymentsPerfLogger").logPaymentFail(e.getPaymentType());e.$19();f=a&&a.errorCode?{userFacingError:a}:{global:d||b("FBPaymentsModulesAPIUtils").getUncaughtErrorMessage()};b("FBPaymentsCheckoutActions").paymentProcessingError(f);e.__scrollToTop()};e.$11=function(a,b){var c,d,f,g;a=a.transactionOrderDetails;a!=null||h(0,14199);c=(c=a==null?void 0:a.paymentID)!=null?c:"";d=(d=a==null?void 0:a.id)!=null?d:"";f=(f=a==null?void 0:a.receiptUrl)!=null?f:"";g=(g=a==null?void 0:(g=a.confirmationMessage)==null?void 0:g.text)!=null?g:"";e.$10("checkout_flow_failed",d);f={id:c,extra_data:{order_id:d,receipt_url:f,message_with_email:g,subscription_agreement:a.subscriptionAgreement}};g=(g=a)!=null?g.altpayRedirectURL:g;a=(a=a)!=null?a.razorpayRedirectURL:a;if(g){g={initURL:g,paymentID:c,onCancel:e.$71,onSuccess:e.$71,orderID:d};e.__connectAltPay(g)}else if(a){c=e.state.checkoutRestoreData;d={emailId:(g=(d=e.state.contactInfoData)==null?void 0:d.emailID)!=null?g:"",initURL:a,checkoutRestoreData:c,logger:e.$1,paymentType:e.getPaymentInfo().paymentItemType,onCancel:e.$14,onError:e.$14,onSuccess:e.$14};e.__connectRazorPay(d)}else e.$55(f,b)};e.$12=function(a,b){e.$56(a,b),e.$10("checkout_flow_failed")};e.$74=function(a){var b;b=(b=e.getContentConfiguration())!=null?b.dialogWidth:b;(e.state.activeExtension!==null||e.state.activeExtensionForVerification!==null)&&(b=a||b);if(b===e.state.dialogWidth)return;e.setState({dialogWidth:b})};b("FBPaymentsPerfLogger").logCheckoutFlowAppear(e.getPaymentType());e.validateProps(c);var f=e.$7();e.initializeLogging(c,f);b("FBPaymentsDispatcher").explicitlyRegisterStores(e.constructor.getStores());e.isGuestCheckout()&&e.props.guestActorID&&b("RelayAPIConfig").DO_NOT_USE_setActorID(e.props.guestActorID);f=c.configuration.contentConfiguration;e.state={activeExtension:null,activeExtensionForVerification:null,additionalAuthError:null,anyOngoingAPICall:!1,areAllExtensionsReady:!1,authPTT:null,authKeyPairs:null,buttonPrice:null,cachedRequestData:{},checkoutRestoreData:{},confirmationExtensions:new Map(),contactInfoData:null,contentConfiguration:f,dialogWidth:c.dialogWidth||((d=f)!=null?d.dialogWidth:d),errors:{},extensionDataMap:b("immutable").Map(),extensionDataPreparerMap:b("immutable").Map(),extensionFlagsMap:b("immutable").OrderedMap(),extensionsToTriggerUpdateCheckout:z(),extensionUserFacingErrorMap:b("immutable").Map(),finalPriceList:[],freeTrialData:null,frequencySelectorData:null,hasInitializationError:!1,isCheckoutDialogShown:!0,isInitialized:!1,isSwedenDonation:!1,isUpdatingCheckout:!1,paymentMethodData:null,paymentsPIN:"",paymentProcessingMessage:"",paymentSessionID:null,priceSelectorData:null,receiverInfo:null,ResearchSurvey:null,shouldEnablePaypal:!1,showContactSupportFlow:!1,showExitCheckoutConfirmDialog:!1,showDonationLargeAmountConfirmDialog:!1,showUpfrontAddressCollection:!1,showVerificationFlow:!1,step:y.INCOMPLETE,termsAndPolicies:null,updateCheckoutLoadError:null,cardinal3DSProcessorData:null,altPayCancelledError:null,banner:null,isSecondaryPaymentMethodChecked:!1,paymentSecurity:null,redirectFromPaypalURL:null};b("FBPaymentsCheckoutActions").initializeCheckout({contentConfiguration:f,disableUpfrontAddressCollect:!!c.disableUpfrontAddressCollect,enableCheckoutNUX:e.isCheckoutNUXEnabled(),enablePSDAgreementNUX:e.isPaymentsPSDAgreementEnabled(),logger:e.$1,receiverCountry:(d=e.getPaymentInfo())==null?void 0:(f=d.extraData)==null?void 0:f.receiverCountry,shouldLoadContentConfiguration:!e.getIsUsingUpdateCheckoutAPI()&&!e.getIsUsingUpdateCheckoutInfoAPI(),paymentType:e.getPaymentType()});e.__completePaymentOnPaymentProcessing=!1;e.__restorePaymentFromRazorPayRedirect=!1;e.$2=!1;return e}var d=c.prototype;d.validateProps=function(a){a=a.configuration;var b=a.orderStatusModel.type;switch(b){case v.FIXED_AMOUNT:!a.contentConfiguration&&h(0,319,b);break;case v.UPDATE_CHECKOUT_API:case v.CHECKOUT_INFORMATION:break;default:h(0,320,b)}};d.initializeLogging=function(a,c){var d,e,f;switch(a.paymentModuleFlowType){case b("FBPaymentsModulesFlowType").INVOICE:e=A.INVOICE;f=B.INVOICE;break;default:e=A.CHECKOUT;f=B.CHECKOUT_MODULE;break}var g=this.__getLogger();this.$1=new g();g=a.configuration.paymentInfo;var h=g.orderId,i=g.receiverId,j=g.paymentItemType,k=g.isFreePurchase;g=g.extraData;this.$6=new(b("FBPayUPLLogger"))(j,this.__getIsDesktop()?"web":"msite",c);this.$1.setGlobalFields((d={},d[D.session_id]=c,d[D.product]=j,d[D.order_id]=h,d[D.other_profile_id]=i,d[D.flow_name]=e,d[D.is_free]=k,d));c=b("gkx")("676854");g=babelHelpers["extends"]({},g,a.extraDataForLogging,a.checkoutExtraProps,(d={non_compliant_browser:c?"1":"",user_facing_error:"1",use_checkout_info:this.getIsUsingUpdateCheckoutInfoAPI()?"1":"",use_3ds2_flow:b("FBPaymentsCheckoutHelper").shouldUse3DS2Flow(j,(h=this.getPaymentInfo())==null?void 0:(k=h.extraData)==null?void 0:k.receiverCountry)},d[D.fbpay_enabled]=b("FBPayGatingUtils").isFBPayExperienceEnabled(),d));this.$1.setGlobalExtraData(g);this.$6&&this.$6.logClientLoadCheckoutInit({target_name:"checkout",view_name:"checkout"},i);f&&this.$1.setFlowStep(f).setEventName(C.INIT).logVital()};c.getStores=function(){return[this.__getCheckoutStore(),b("FBPaymentsCheckoutConfigurationStore"),b("FBPaymentsCheckoutLoggerStore")]};c.__getCheckoutStore=function(){return b("abstractMethod")("FBPaymentsCheckoutV2FlowContainerBase","__getCheckoutStore")};c.calculateState=function(a,c){var d;a=babelHelpers["extends"]({},a);var e=this.__getCheckoutStore(),f=e.getState();a.priceSelectorData=f.priceSelectorData;a.freeTrialData=f.freeTrialData;a.frequencySelectorData=f.frequencySelectorData;a.contactInfoData=f.contactInfoData;var g=f.paymentMethodData;a.paymentMethodData=f.isSecondaryPaymentMethodChecked?g:babelHelpers["extends"]({},g,{secondaryPaymentMethod:null});a.checkoutRestoreData=f.checkoutRestoreData;a.buttonPrice=f.buttonPrice;a.termsAndPolicies=f.termsAndPolicies;a.receiverInfo=f.receiverInfo;a.extensionDataPreparerMap=f.extensionDataPreparerMap;a.extensionDataMap=f.extensionDataMap;a.extensionFlagsMap=f.extensionFlagsMap;a.extensionUserFacingErrorMap=f.extensionUserFacingErrorMap;a.step=f.checkoutStep;a.paymentProcessingMessage=f.paymentProcessingMessage;a.activeExtension=f.activeExtension;a.activeExtensionForVerification=f.activeExtensionForVerification;a.errors=f.checkoutErrors;a.showContactSupportFlow=f.showContactSupportFlow;a.showVerificationFlow=f.showVerificationFlow;a.cachedRequestData=f.cachedRequestData;a.isCheckoutDialogShown=f.isCheckoutDialogShown;a.isUpdatingCheckout=f.isUpdatingCheckout;a.isSecondaryPaymentMethodChecked=f.isSecondaryPaymentMethodChecked;a.contentConfiguration=b("FBPaymentsCheckoutConfigurationStore").getContentConfiguration();g=e.getFinalPriceList(a.contentConfiguration);d=(d=c.configuration)==null?void 0:(d=d.paymentInfo)==null?void 0:d.paymentItemType;d=(d==="mor_donations_cause_for_charities"||d==="mor_donations_matching_confirmation")&&((d=c.configuration)==null?void 0:(d=d.orderStatusModel)==null?void 0:d.type)===v.CHECKOUT_INFORMATION;c=((c=c.configuration)==null?void 0:(c=c.contentConfiguration)==null?void 0:c.priceList)||g;d=d?c:g;a.finalPriceList=d;a.isInitialized=e.isCheckoutInitialized(a.contentConfiguration);a.hasInitializationError=e.hasAnyInitializationError();a.areAllExtensionsReady=e.areAllExtensionsReady();a.showUpfrontAddressCollection=e.shouldShowUpfrontAddressCollection();a.paymentSessionID=f.paymentSessionID;a.ResearchSurvey=f.getResearchSurvey();a.extensionsToTriggerUpdateCheckout=f.extensionsToTriggerUpdateCheckout;a.showExitCheckoutConfirmDialog=f.showExitCheckoutConfirmDialog;a.showDonationLargeAmountConfirmDialog=f.showDonationLargeAmountConfirmDialog;a.updateCheckoutLoadError=f.updateCheckoutLoadError;a.cardinal3DSProcessorData=f.cmpi3DSResult;a.anyOngoingAPICall=f.getIsAnyAPICallsOngoing();a.altPayCancelledError=f.altPayCancelledError;a.banner=f.banner;a.paymentSecurity=f.getPaymentSecurity();a.shouldEnablePaypal=f.shouldEnablePaypal;a.additionalAuthError=f.additionalAuthError;return a};d.isCheckoutNUXEnabled=function(){return!!this.props.enableCheckoutNUX};d.isPaymentsPSDAgreementEnabled=function(){return!!this.props.psdAgreementID};d.getExtensionName=function(a){return a.identifier==="CUSTOM_EXTENSION"?a.extensionKey:a.identifier};d.getCheckoutConfiguration=function(){return this.props.configuration};d.getPaymentInfo=function(){return this.props.configuration.paymentInfo};d.getContentConfiguration=function(){if(this.getIsUsingUpdateCheckoutAPI()||this.getIsUsingUpdateCheckoutInfoAPI())return this.state.contentConfiguration;else return this.getCheckoutConfiguration().contentConfiguration};d.getPayActionContent=function(){var a=this.getContentConfiguration();return a&&a.payActionContent};d.getPayActionTitle=function(a,c,d){var e,f;e=(c==null?void 0:c.newPaymentOptionType)?c==null?void 0:c.newPaymentOptionType:c==null?void 0:(e=c.paymentMethod)==null?void 0:e.type;var g=b("PaymentMethodUtils").getGraphQLPaymentMethodTypeFromLegacyType(e);f=(f=a==null?void 0:a.customLabelsForCredentials)!=null?f:[];f=f.find(function(a){return a.credential_type===g});d=d==null?void 0:d.subscriptionType;if(d&&d==="MONTHLY"&&b("gkx")("1669"))return typeof e==="string"&&e.includes("paypal")?b("FBPaymentsCheckoutStrings").getMonthlyDonationPaypalConfirmButtonLabel():b("FBPaymentsCheckoutStrings").getMonthlyDonationConfirmButtonLabel();if(!(a==null?void 0:a.customLabelsForCredentials)&&(c==null?void 0:c.newPaymentOptionType)===b("FBPaymentsNewPaymentOptionTypes").NEW_PAYPAL)return b("FBPaymentsCheckoutStrings").getNewPayPalPayActionTitle();if(!(a==null?void 0:a.customLabelsForCredentials)&&(c==null?void 0:c.newPaymentOptionType)===b("FBPaymentsNewPaymentOptionTypes").NEW_AFFIRM)return b("FBPaymentsCheckoutStrings").getNewAffirmPayActionTitle();return!(a==null?void 0:a.customLabelsForCredentials)||!c?a==null?void 0:a.actionTitle:(d=f==null?void 0:f.label)!=null?d:a==null?void 0:a.actionTitle};d.getConfirmationConfiguration=function(){var a=this.state.contentConfiguration;return a&&a.confirmationConfiguration||{}};d.getSelectedPaymentMethod=function(){var a=this.state.extensionDataMap.get(u.PAYMENT_METHOD);return(a=a)!=null?a.paymentMethod:a};d.isGiftAidExtensionDisplayed=function(){return this.state.extensionDataMap.get(t.GIFT_AID_CHECKBOX)!=null};d.getIsUsingUpdateCheckoutAPI=function(){return this.getCheckoutConfiguration().orderStatusModel.type===v.UPDATE_CHECKOUT_API};d.getIsUsingUpdateCheckoutInfoAPI=function(){return this.isGuestCheckout()?!1:this.getCheckoutConfiguration().orderStatusModel.type===v.CHECKOUT_INFORMATION};d.getIsPaymentProcessing=function(){return this.state.step===y.PAYMENT_PROCESSING||this.state.step===y.PAYMENT_PROCESSING_EXTENDED};d.componentDidMount=function(){this.logExperimentExposures(),this.$8(!0),this.getIsUsingUpdateCheckoutInfoAPI()||this.$9(),this.$10("checkout_impression"),this.isAsyncPaymentType()&&(this.$5=new(b("FBPaymentsAsyncCompleteCheckoutManager"))(this.$11,this.$12,this.$1))};d.componentWillUnmount=function(){b("FBPaymentsCheckoutActions").unmountCheckoutFlow()};d.componentDidUpdate=function(a,c){var d=this;c.step!==y.PAYMENT_PROCESSING&&this.state.step===y.PAYMENT_PROCESSING&&(this.__completePaymentOnPaymentProcessing?(this.__completePaymentOnPaymentProcessing=!1,this.$13()):this.__restorePaymentFromRazorPayRedirect&&(this.__restorePaymentFromRazorPayRedirect=!1,this.$14()));if(this.getIsUsingUpdateCheckoutAPI()||this.getIsUsingUpdateCheckoutInfoAPI()){a=c.extensionDataMap;var e=this.state.extensionDataMap;c=a.some(function(a,b){if(d.$15(b)){a=JSON.stringify(a)!==JSON.stringify(e.get(b));return a}return!1});c&&(this.getIsUsingUpdateCheckoutInfoAPI()?this.$16():this.$17())}!this.state.anyOngoingAPICall&&this.state.isInitialized&&!this.state.isUpdatingCheckout&&!this.$3&&(b("FBPaymentsPerfLogger").annotateAddressFormUpfront(b("qpl")._(23265284,"3211"),this.state.showUpfrontAddressCollection),b("FBPaymentsPerfLogger").markerEnd(b("qpl")._(23265284,"3211"),this.getPaymentType()),this.$3=!0,this.$18());this.$2||(this.$2=!0,this.$1.setFlowStep(B.CHECKOUT_SCREEN).setEventName(C.DISPLAY).logVital())};d.$18=function(){var a,b=Date.now();a=(a=this.props.checkoutExtraProps)==null?void 0:a.countdownTimerDurationInS;var c=3*r/4;a&&(this.__countdownTimerEndTime=b+a*r+c,this.forceUpdate())};d.$19=function(){var a;this.$1.setGlobalFields((a={},a[D.payment_method_id]=null,a[D.payment_method_type]=null,a[D.mailing_address_id]=null,a[D.shipping_option_id]=null,a[D.raw_amount]=null,a[D.currency]=null,a))};d.logExperimentExposures=function(){};d.$9=function(){var a,c=this.getPaymentInfo();a=(a=this.getPayActionContent())!=null?a.actionTitle:a;this.$1.setFlowStep(B.CHECKOUT_TERMS_FETCH).setEventName(C.API_INIT).log();this.isGuestCheckout()?b("FBPaymentsModulesAPIShared").fetchTermsAndPoliciesGraphQLRelay(c.paymentItemType,c.receiverId,c.orderId,c.extraData,a,this.$20,this.$21):this.__getAPI().fetchTermsAndPolicies(c.paymentItemType,c.receiverId,c.orderId,c.extraData,a,this.$20,this.$21)};d.$8=function(a){a===void 0&&(a=!1),this.getIsUsingUpdateCheckoutInfoAPI()?this.$16(a):this.getIsUsingUpdateCheckoutAPI()&&this.$17()};d.$17=function(){var a=this.$22();b("FBPaymentsCheckoutActions").setIsUpdatingCheckout();this.__getAPI().updateCheckoutGraphql(a,this.$23,this.$24)};d.$16=function(a){a===void 0&&(a=!1);var c=this.$25(a);b("FBPaymentsCheckoutActions").setIsUpdatingCheckout();this.$1.setFlowStep(B.CHECKOUT_INFORMATION).setEventName(C.API_INIT).addToExtraData("initial_load",a.toString()).log();b("FBPaymentsModulesAPIShared").updateCheckoutInformationGraphQL(c,this.$26,this.$27)};d.$25=function(a){var c,d;a===void 0&&(a=!1);var e=this.getPaymentInfo();c=(c=e==null?void 0:(c=e.extraData)==null?void 0:c.products)!=null?c:[];var f={};c={payment_type:e.paymentItemType,order_id:e.orderId,receiver_id:e.receiverId,logging_id:this.$1.getSessionID(),payment_session_id:this.state.paymentSessionID,products:c.map(function(a){var b;return{product_id:a.product_id,quantity:a.quantity,per_unit_price:a.price?{currency:(b=a.price)==null?void 0:b.currency,amount:(b=a.price)==null?void 0:b.amount}:null}}),is_dynamic_auth_available:b("FBPayGatingUtils").shouldUseDynamicAuth(e.paymentItemType,null),is_initial_load:a};a=e.extraData||{};for(var e=this.state.extensionDataMap.entries(),g=Array.isArray(e),h=0,e=g?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var i;if(g){if(h>=e.length)break;i=e[h++]}else{h=e.next();if(h.done)break;i=h.value}i=i;var j=i[0];i=i[1];switch(j){case u.PAYMENT_METHOD:j=i.newPaymentOptionType?b("PaymentMethodUtils").getGraphQLPaymentMethodTypeFromLegacyType(i.newPaymentOptionType):i.paymentMethod.credentialType;d=(d=i)!=null?d.altPayData:d;d&&(f={altpay_data:{payment_provider:d.payment_provider,pricepoint_id:d.pricepoint_id,msisdn:d.msisdn}});c.selected_payment_credentials=babelHelpers["extends"]({},f,{credential_type:j,credential_id:i.paymentMethodID,billing_country:i.selectedBillingCountry});break;case u.SHIPPING_ADDRESS:c.selected_shipping_address_id=i.selectedMailingAddressID;break;case u.CONTACT_INFO:c.contact_name=i.name;c.selected_contact_email_id=i.emailID;c.selected_contact_phone_id=i.phoneNumberID;break;case u.CUSTOM_OPTIONS:c.selected_delivery_option_id=i==null?void 0:(d=i.selectedOption)==null?void 0:d.optionId;break;case u.COUPON_CODE:c.coupon_code=i.couponCode;break}}c.extra_data=JSON.stringify(a);return c};d.$22=function(){var a,c=this.getPaymentInfo(),d={payment_type:c.paymentItemType,order_id:c.orderId,receiver_id:c.receiverId,session_id:this.$1.getSessionID()};c=c.extraData||{};var e={};for(var f=this.state.extensionDataMap.entries(),g=Array.isArray(f),h=0,f=g?f:f[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var i;if(g){if(h>=f.length)break;i=f[h++]}else{h=f.next();if(h.done)break;i=h.value}i=i;var j=i[0];i=i[1];switch(j){case u.PAYMENT_METHOD:j=b("FBPaymentsModulesAPIUtils").getPaymentMethodRequestParamsGraphQL(i.paymentMethod,i.bank);a=(a=i)!=null?(a=a.altPayData)!=null?a.fee:a:a;a&&(e={payment_credential_data:JSON.stringify({altpay_fee:a}),payment_instrument_type:"ALTPAY"});d=babelHelpers["extends"]({},e,d,j);c=babelHelpers["extends"]({},c,{billingCountryCode:i.selectedBillingCountry});break;case u.SHIPPING_ADDRESS:d.mailing_address_id=i.selectedMailingAddressID;break;case u.CUSTOM_OPTIONS:j=(a=i)!=null?(a=a.extraData)!=null?a.collectedDataKey:a:a;a=(a=i)!=null?(a=a.selectedOption)!=null?a.optionId:a:a;switch(j){case s.SHIPPING_OPTION:d.shipping_option_id=a;break;default:if(j){var k;c=babelHelpers["extends"]({},c,(k={},k[j]=a,k))}}break;case u.COUPON_CODE:d.coupon_code=i.couponCode;break}}d.extra_data=JSON.stringify(c);return d};d.$15=function(a){if(this.getIsUsingUpdateCheckoutInfoAPI())return this.isGiftAidExtensionDisplayed()&&a===u.SHIPPING_ADDRESS?!1:this.state.extensionsToTriggerUpdateCheckout.has(a);switch(a){case u.CONTACT_INFO:case u.COUPON_CODE:case u.PAYMENT_METHOD:case u.CUSTOM_OPTIONS:case u.SHIPPING_ADDRESS:return!0;default:return!1}};d.shouldConnectPayPalInCheckoutContainer=function(){return this.constructor.__getCheckoutStore().shouldConnectPayPalInCheckoutContainer()};d.areAllExtensionsReady=function(){return this.state.areAllExtensionsReady};d.isCheckoutInitialized=function(){return this.state.isInitialized};d.isGuestCheckout=function(){return!!this.props.guestActorID};d.isAsyncPaymentType=function(){return b("FBPaymentsAsyncCompleteCheckoutUtils").isAsyncPaymentType(this.getPaymentType())};d.isAsyncPayment=function(){return b("FBPaymentsAsyncCompleteCheckoutUtils").isAsyncPayment(this.getPaymentType())};d.$28=function(){return b("gkx")("763695")};d.$29=function(){var a,c;a=((a=this.state.paymentMethodData)==null?void 0:a.newPaymentOptionType)===b("FBPaymentsNewPaymentOptionTypes").NEW_CREDIT_CARD||((a=this.state.paymentMethodData)==null?void 0:a.newPaymentOptionType)===b("FBPaymentsNewPaymentOptionTypes").NEW_CREDIT_CARD_FROM_GRAPHQL||((a=this.state.paymentMethodData)==null?void 0:(a=a.paymentMethod)==null?void 0:a.type)===b("FBPaymentsPaymentMethodTypes").CREDIT_CARD||((a=this.state.paymentMethodData)==null?void 0:(a=a.paymentMethod)==null?void 0:a.type)===b("FBPaymentsPaymentMethodTypes").CREDIT_CARD_FROM_GRAPHQL;return b("FBPaymentsCheckoutHelper").shouldUse3DS2Flow(this.getPaymentType(),(c=this.getPaymentInfo())==null?void 0:(c=c.extraData)==null?void 0:c.receiverCountry)&&a&&b("FBPayments3DS").requires3DS2()};d.getPaymentType=function(){return this.getPaymentInfo().paymentItemType};d.__handleBackButtonClick=function(a){a===void 0&&(a=!1),!a&&this.__isExitCheckoutConfirmDialogEnabled()?(b("FBPaymentsCheckoutActions").showExitCheckoutConfirmDialog({showDialog:!0}),this.$1.setFlowStep(B.CHECKOUT_EXIT_DIALOG).setEventName(C.DISPLAY).addToExtraData("is_payment_processing",this.getIsPaymentProcessing().toString()).logVital()):this.$31()};d.$31=function(){this.$1.setFlowStep(B.CHECKOUT_MODULE).setEventName(C.CANCEL).logVital();this.$10("checkout_flow_canceled");var a=this.props.onBackButtonClick;if(a)a&&a();else{a=(a=this.getPayActionContent())!=null?a.backButtonCallback:a;a&&a()}};d.$32=function(){b("FBPaymentsCheckoutActions").nuxContinueButtonClick()};d.__exitCheckoutFlow=function(a){a===void 0;return b("abstractMethod")("FBPaymentsCheckoutV2FlowContainerBase","__exitCheckoutFlow")};d.$33=function(a){this.$35();var b=this.getConfirmationConfiguration().confirmationClosedCallback;b&&b(a,this.state.confirmationExtensions);b=this.props.onConfirmationClosed;b&&b(a,this.state.confirmationExtensions)};d.$35=function(){if(j()){var a=this.$37();a&&this.__getOpenSurveyRequest(a)}};d.$37=function(){var a=this.state.ResearchSurvey;return a?this.__getIsDesktop()?a.desktop_uri:a.msite_uri:null};d.$38=function(){var a=this.state.ResearchSurvey;return a?this.__getIsDesktop()?a.desktop_exit_uri:a.msite_exit_uri:null};d.$39=function(){var a=this.state.buttonPrice,c=this.getContentConfiguration(),d=b("FBPaymentsFreeTrialExtensionUtil").getIsUsingFreeTrial(this.state.freeTrialData),e=this.state.finalPriceList;if(c==null?void 0:c.newPriceTable){a=c==null?void 0:(c=c.newPriceTable)==null?void 0:c.totalPrice.price;if(d){a=b("FBPaymentsFreeTrialExtensionUtil").getFreeTrialPrice((c=(c=a)==null?void 0:c.currency)!=null?c:"")}}else if(this.isPriceListValid(e)){c=b("FBPaymentsPriceListHelper").calculateTotal(e);e=c.currency;e&&(a=d?b("FBPaymentsFreeTrialExtensionUtil").getFreeTrialPrice(e):{amount:c.amount.toString(),currency:e})}return a};d.$40=function(){var a;return(a=(a=this.state.paymentMethodData)==null?void 0:(a=a.paymentMethod)==null?void 0:a.csc)!=null?a:(a=this.state.paymentMethodData)==null?void 0:a.csc};d.$41=function(){var a,c,d=b("enumUtils").enumValueToKeyEnforcing(this.getPaymentType(),b("AllPaymentTypeFields")),e=this.state.paymentMethodData;c=((c=e)!=null?c.paymentMethodID:c)||"";e=(e=e)!=null?e.paymentMethod:e;e=(e==null?void 0:e.cardType)||"";a=((a=this.$39())==null?void 0:a.currency)||"";c={credentialID:c,creditCardType:e,currency:a,paymentInfo:this.getPaymentInfo(),paymentType:d};return b("FBPayments3DS").getAcquirerMerchantInfo(c)};d.$42=function(a){var c=this.state.paymentMethodData;c=(c=c)!=null?c.paymentMethodID:c;var d=this.$39();c={credentialID:c!=null?c:"",amount:{currency:(d==null?void 0:d.currency)||"",amount:(d==null?void 0:d.amount)||""},itemType:b("enumUtils").enumValueToKeyEnforcing(this.getPaymentType(),b("AllPaymentTypeFields")),lookupData:{email:"",mobile_phone:"",billing_first_name:"",billing_middle_name:"",billing_last_name:"",credit_card_address:{street:"",street2:"",city:"",state:"",zip:"",country_code:""},acs_window_size:"05",acquirer_merchant_info:a,challenge_indicator:""}};return c};d.$44=function(a){if(this.state.step===y.PAYMENT_PROCESSING)return;this.__completePaymentOnPaymentProcessing=!0;b("FBPaymentsCheckoutActions").payButtonClick(a?!1:this.__isDonationLargeAmountConfirmDialogEnabled())};d.$46=function(){return this.state.step===y.READY_TO_PAY&&!this.state.isUpdatingCheckout&&this.areAllExtensionsReady()};d.$48=function(){return b("FBPayPINUtils").getShouldShowPinFlow(this.state.paymentSecurity)&&!Boolean(this.state.paymentsPIN)&&!(Boolean(this.state.authPTT)||Boolean(this.state.authKeyPairs))};d.$49=function(){return b("FBPayPINUtils").getPINFlowStep(this.state.paymentSecurity)};d.$50=function(a){return a==="SHIPPING_ADDRESS"&&this.$51().paymentType==="mor_facebook_shop"};d.$53=function(){this.$1.setFlowStep(B.VERIFICATION).setEventName(C.DONE).addToExtraData("passed_idv_to_checkout","true").logVital();b("FBPaymentsCheckoutActions").exitPassedVerificationFlow();var a=this.state.cachedRequestData;if(!a){this.$54();return}this.isAsyncPayment()?(this.__startChannelManager(),this.$5!=null||h(0,11262),this.$5.makeAsyncPayment(a,this.getPaymentInfo())):this.__getAPI().completeCheckoutGraphQL(a,this.$55,this.$56)};d.$57=function(){this.$1.setFlowStep(B.VERIFICATION).setEventName(C.DONE).addToExtraData("pending_review_idv_to_checkout","true").logVital(),this.__exitCheckoutFlow(!0)};d.$59=function(){b("FBPaymentsCheckoutActions").contactSupportClick()};d.$60=function(){b("FBPaymentsCheckoutActions").exitIncompleteContactSupport()};d.$61=function(){b("FBPaymentsCheckoutActions").exitCompletedContactSupport()};d.__isDonationLargeAmountConfirmDialogEnabled=function(){var a,c;switch(this.getPaymentType()){case"mor_donations":case"mor_donations_cause_for_charities":case"mor_donations_matching_confirmation":case"mor_donations_matching_pledge":case"nmor_donation_p4p":case"nmor_blackbaud_rwr_donation":case"nmor_ppgf_donation":a=Number((a=(a=this.$39())==null?void 0:a.amount)!=null?a:"");c=Number((c=this.props.checkoutExtraProps)==null?void 0:c.amountForConfirmationDialog);return a>=c?b("gkx")("1176429"):!1;default:return!1}};d.__getDonationLargeAmountConfirmDialogCancelButtonLabel=function(){return b("FBPaymentsCheckoutStrings").getDonationLargeAmountConfirmDialogCancelButtonLabel()};d.__getDonationLargeAmountConfirmDialogConfirmButtonLabel=function(){return b("FBPaymentsCheckoutStrings").getDonationLargeAmountConfirmDialogConfirmButtonLabel()};d.__getDonationLargeAmountConfirmDialogDescription=function(){var a,c=this.$39(),d={showCurrencyCode:!1,showDecimals:!0,showSymbol:!0,stripZeros:!0,thousandSeparator:!0};c=n((a=c==null?void 0:c.currency)!=null?a:"",Number((a=c==null?void 0:c.amount)!=null?a:"")*100,d);return b("FBPaymentsCheckoutStrings").getDonationLargeAmountConfirmDialogDescription(c,(a=this.getContentConfiguration())==null?void 0:(d=a.entity)==null?void 0:d.participant.title)};d.$13=function(){var a=this;b("FBPaymentsCheckoutActions").updateCheckoutStep(y.PAYMENT_PROCESSING);var c=this.state.extensionDataPreparerMap,d=this.getPaymentInfo();d.paymentItemType==="nmor_donation_p4c"&&this.__connectRazorPay();b("promiseDone")(b("FBPaymentsCheckoutHelper").prepareExtensionDataPromise(c).then(function(b){!b&&h(0,960),a.$66(b)})["catch"](function(c){a.__closeRazorPayPopup();c=(c=c)!=null?c.error:c;b("FBPaymentsPerfLogger").logPaymentFail(a.getPaymentType());if(c)b("FBPaymentsCheckoutActions").paymentProcessingExtensionDataPrepError(c);else{c=b("FBPaymentsModulesAPIUtils").getUncaughtErrorMessage();b("FBPaymentsCheckoutActions").paymentProcessingExtensionDataPrepError({global:c})}a.__scrollToTop()}))};d.$66=function(a){var c=this;!this.$29()?this.$67(a):b("promiseDone")(this.$41(),function(d){d=c.$42(d);b("promiseDone")(b("FBPayments3DS").fetchAuthenticationURL(d),function(d){b("FBPaymentsCheckoutActions").successful3DS({cmpiLookupResult:d}),c.$67(a)},function(a){a=a.fetch_3rd_party_payment_auth||"";a=a.status;a==="CHALLENGED"?(b("FBPaymentsPerfLogger").logPaymentCancel(c.getPaymentType()),c.$54()):c.$12()})})};d.$67=function(a){var c=this,d,e=this.getPaymentInfo(),f=this.$68(a),g;d=(d=this.state.paymentMethodData)!=null?d.newPaymentOptionType:d;f.nmor_payment_method&&(g=JSON.parse(f.nmor_payment_method).type);var i=this.shouldConnectPayPalInCheckoutContainer()&&d===b("FBPaymentsNewPaymentOptionTypes").NEW_PAYPAL,j=i?B.ADD_PAYPAL:B.PAYMENT;this.$1.setFlowStep(j).setEventName(C.API_INIT).setGlobalFields((j={},j[D.payment_method_id]=f.credential_id,j[D.payment_method_type]=g,j[D.mailing_address_id]=f.mailing_address_id,j[D.shipping_option_id]=f.shipping_option_id,j[D.raw_amount]=f.amount,j[D.currency]=f.currency,j));f.payment_type!=="nmor_event_ticketing"&&this.$1.updateExtraData(JSON.parse(f.extra_data));this.$10("purchase_button_clicked");var k;!i&&e.action!==w.CUSTOM_CALLBACK&&(k=this.isAsyncPayment(),this.$1.addToExtraData("async",k?"true":"false"));this.$1.logVital();if(b("FBPayGatingUtils").shouldUseDynamicAuth(this.getPaymentType(),this.$40())){var l;j=b("FBPaymentsCheckoutHelper").buildCheckoutRestoreData(this.state.checkoutRestoreData,a);l=(l=this.state.paymentMethodData)==null?void 0:l.paymentMethodID;var m=b("getOwnObjectValues")(G);j=b("FBPaymentsLinkHelper").getCurrentURI().removeQueryData(m).addQueryData(babelHelpers["extends"]({},j,(m={},m[G.PAYMENT_METHOD_ID]=l,m[G.RETURNED_FROM_PAYPAL]=H.VERIFY,m[G.RETURNED_FROM_VERIFY_PAYPAL_STEP]=I.DA_FOR_PAYMENT,m)));this.setState({redirectFromPaypalURL:j.toString()})}if(i){l=b("FBPaymentsCheckoutHelper").buildCheckoutRestoreData(this.state.checkoutRestoreData,a);this.__connectPayPal({checkoutRestoreData:l,logger:this.$1,paymentType:e.paymentItemType,uplSessionId:(m=this.$6)==null?void 0:m.getSessionID()})}else if(this.$48()){j=b("FBPaymentsCheckoutHelper").buildCheckoutRestoreData(this.state.checkoutRestoreData,a);l=(i=this.state.paymentMethodData)==null?void 0:i.paymentMethodID;m=b("getOwnObjectValues")(G);m=b("FBPaymentsLinkHelper").getCurrentURI().removeQueryData(m).addQueryData(babelHelpers["extends"]({},j,(i={},i[G.PAYMENT_METHOD_ID]=l,i[G.RETURNED_FROM_PAYPAL]=H.VERIFY,i[G.RETURNED_FROM_VERIFY_PAYPAL_STEP]=I.UPDATE_PIN_IN_CHECKOUT,i)));this.setState({redirectFromPaypalURL:m.toString()});b("FBPaymentsCheckoutActions").updateCheckoutStep(y.PIN);return}else if(e.action===w.CUSTOM_CALLBACK)e.payCallbackV2!=null||h(0,12244),e.payCallbackV2(this.state.extensionDataMap,this.$30,f);else{b("FBPaymentsCheckoutActions").cacheRequestData(f);if(k){d===b("FBPaymentsNewPaymentOptionTypes").NEW_ALT_PAY&&this.__connectAltPay();this.__startChannelManager();if(e.paymentItemType==="nmor_donation_p4c"){j=b("FBPaymentsCheckoutHelper").buildCheckoutRestoreData(this.state.checkoutRestoreData,a);b("promiseDone")(this.__getRazorPayCallbackURL({checkoutRestoreData:j,extraData:(l=this.state.cachedRequestData)==null?void 0:l.extra_data,addressId:(i=this.state.cachedRequestData)==null?void 0:i.mailing_address_id,emailId:(m=this.state.cachedRequestData)==null?void 0:m.email_address_id,logger:this.$1,paymentType:e.paymentItemType,paymentSessionID:this.state.paymentSessionID}),function(a){f.razorpay_callback_url=a,c.$5!=null||h(0,11262),c.$5.makeAsyncPayment(f,c.getPaymentInfo())},function(a){var c=b("FBPaymentsUniversalErrorUtils").getUserFacingErrorMessage(a);a=a&&a.errorCode?{userFacingError:a}:{global:c!=null?c:b("FBPaymentsModulesAPIUtils").getUncaughtErrorMessage()};b("FBPaymentsCheckoutActions").paymentProcessingError(a)})}else this.$5!=null||h(0,11262),this.$5.makeAsyncPayment(f,this.getPaymentInfo())}else this.isGuestCheckout()||this.getPaymentType()==="mor_facebook_shop"?(f.paymentType=e.paymentItemType,b("FBPaymentsModulesAPIShared").completeCheckoutRelayGraphQL(f,this.$55,this.$56)):this.__getAPI().completeCheckoutGraphQL(f,this.$55,this.$56)}f.email_opt_in!=null&&f.email_opt_in!=void 0&&this.$1.setEventType(A.CHECKOUT).setFlowStep(B.EMAIL_OPT_IN).setEventName(C.SUBMIT).addToExtraData("requestData.email_opt_in",f.email_opt_in).log();f.email_opt_in===!0&&this.$1.setEventType(A.CHECKOUT).setFlowStep(B.EMAIL_OPT_IN).setEventName(C.CONFIRM).addToExtraData("requestData.email_opt_in",f.email_opt_in).log()};d.$69=function(a){if(b("FBPaymentsCheckoutHelper").shouldCollectFraudnetFeatures(a)){this.$4=(a=this.$4)!=null?a:b("PayPalFraudNetNew").collectFraudnetFeatures("FB_CHECKOUT_FLOW_ID",b("PayPalFraudNetUrl").fraudnet_url)}return this.$4};d.$68=function(a){var c,d,e=this.state,f=this.getPaymentInfo(),g=f.paymentItemType,i=this.$69(e.receiverInfo);g={action:f.action,payment_type:g,receiver_id:f.receiverId,order_id:f.orderId,products:(g=f.extraData)==null?void 0:g.products,session_id:this.$1.getSessionID(),payment_session_id:e.paymentSessionID,paypal_fraudnet_id:i};i=f.extraData||{};f=!1;var j={};for(var k=e.extensionDataMap.entries(),l=Array.isArray(k),m=0,k=l?k:k[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var n;if(l){if(m>=k.length)break;n=k[m++]}else{m=k.next();if(m.done)break;n=m.value}n=n;var p=n[0];n=n[1];switch(p){case u.COUPON_CODE:g=babelHelpers["extends"]({},g,{coupon_code:n.couponCode});break;case u.TAX_INFO:var q=a.get(p);g=babelHelpers["extends"]({},g,{tax_info_id:q==null?void 0:q.taxInfoID});break;case u.PAYMENT_METHOD:q=a.get(p);d=(d=q)!=null?d.paymentMethod:d;c=(c=n)!=null?c.altPayData:c;var r=void 0;if(c)delete c.fee,r={altPayData:c};else if(!((c=q)!=null?c.credit_card:c)){c=d||n.paymentMethod;n.secondaryPaymentMethod?(f=!0,j=n):r=b("FBPaymentsModulesAPIUtils").getPaymentMethodRequestParams(c,n.bank)}g=babelHelpers["extends"]({},g,r);n.csc&&(g.csc=n.csc);((d=q)!=null?d.credit_card:d)&&(g=babelHelpers["extends"]({},g,q));break;case u.CONTACT_INFO:c=a.get(p);d=(r=c)!=null?r.emailID:r;r=(q=c)!=null?q.emailAddress:q;c=(q=c)!=null?q.phoneNumberID:q;q=e.contactInfoData;q&&(g.contact_name=q.name,g.email_address_id=d||q.emailID,g.email_address=r||q.email,g.contact_number_id=c||q.phoneNumberID);break;case u.PRICE_SELECTOR:d=e.priceSelectorData;d&&(g.amount=b("FBPaymentsPriceListHelper").formatStringAmount(Number(d.selectedAmount)),g.currency=d.currency);break;case u.SHIPPING_ADDRESS:g.mailing_address_id=n.selectedMailingAddressID;break;case u.CUSTOM_OPTIONS:c=(r=n)!=null?(r=r.extraData)!=null?r.collectedDataKey:r:r;d=(q=n)!=null?(q=q.selectedOption)!=null?q.optionId:q:q;switch(c){case s.SHIPPING_OPTION:g.shipping_option_id=d;break;default:if(c){i=babelHelpers["extends"]({},i,(r={},r[c]=d,r))}}break;case u.FREQUENCY_SELECTOR:q=n.subscriptionType;c=n.subscriptionPeriod;q&&(g.subscription_type=q,g.subscription_period=c);break;case u.NATIONALITY_SELECTOR:d=n.isCitizen;g.is_citizen=d;break;case u.FREE_TRIAL:r=n.trialType;g.trial_type=r;break;case u.USER_INFO_OPT_IN:q=n.optIn;g.email_opt_in=q;break;case t.EMAIL_SHARING_CHECKBOX:c=n.privacyMutationSourceID;g=babelHelpers["extends"]({},g,{privacy_mutation_token:o(c)});break;default:i=babelHelpers["extends"]({},i,(d={},d[p]=n,d));break}}i.subscriptionType&&i.subscriptionPeriod&&(g.subscription_type=i.subscriptionType,g.subscription_period=i.subscriptionPeriod);r=this.state.finalPriceList;if((q=this.getContentConfiguration())==null?void 0:q.newPriceTable){p=(c=this.getContentConfiguration())==null?void 0:c.newPriceTable;g.currency=p==null?void 0:(n=p.totalPrice)==null?void 0:(d=n.price)==null?void 0:d.currency;g.amount=p==null?void 0:(m=p.totalPrice)==null?void 0:(l=m.price)==null?void 0:l.amount}else if(!g.currency||!g.amount){this.isPriceListValid(r)||h(0,962);k=b("FBPaymentsPriceListHelper").calculateTotal(r);g.currency=k.currency;g.amount=b("FBPaymentsPriceListHelper").formatStringAmount(k.amount)}if(f){!g.amount&&h(0,12982);a=b("FBPaymentsModulesAPIUtils").getMultiCredentialRequestParams(j,g.currency,g.amount);g=babelHelpers["extends"]({},g,a)}this.state.paymentsPIN&&(g.security_pin={sensitive_string_value:this.state.paymentsPIN});this.state.authPTT&&b("FBPayGatingUtils").shouldUseNewPINAPI(this.getPaymentType(),this.$40())&&(g.authPTT=this.state.authPTT);this.state.authKeyPairs&&b("FBPayGatingUtils").shouldUseKeyPairs(this.getPaymentType(),this.$40())&&(g.authKeyPairs=this.state.authKeyPairs);g.is_dynamic_auth_available=b("FBPayGatingUtils").shouldUseDynamicAuth(this.getPaymentType(),this.$40());q=(e=this.getContentConfiguration())!=null?e.taxID:e;q&&(i=babelHelpers["extends"]({},i,{taxID:q}));d=(c=this.getContentConfiguration())==null?void 0:(n=c.taxInfo)==null?void 0:n.tax_info_collection_map;d&&(g.tax_info_collection_map=d);if(b("FBPaymentsFreeTrialExtensionUtil").getIsUsingFreeTrial(this.state.freeTrialData)){m=(p=this.state.freeTrialData)==null?void 0:p.subscriptionPrice;g.amount=m==null?void 0:m.amount;g.currency=m==null?void 0:m.currency}if(this.state.cardinal3DSProcessorData){l=this.state.cardinal3DSProcessorData;r=l.cardinalTransactionID;k=l.rowID;f=l.status;j=l.threeDSTransactionData;var v;j&&(v={threeDs_secure_version:j.threeDsSecureVersion,cavv:j.cavv,eci_flag:j.eciFlag,xid:j.xid,ds_transaction_id:j.dsTransactionID});g.cardinal_3ds_processor_data={ref_id:k||"",status:f,transaction_id:r||"",threeDS_transaction_data:v}}g.extra_data=JSON.stringify(i);return g};d.$70=function(a){this.$28()&&b("FBPaymentsModulesAPIShared").logPaymentSessionStatus({paymentSessionID:this.state.paymentSessionID,paymentType:this.getPaymentType(),sessionID:this.$1&&this.$1.getSessionID(),success:a})};d.$54=function(){b("FBPaymentsCheckoutActions").updateCheckoutStep(y.READY_TO_PAY)};d.$73=function(){var a=this.getPaymentInfo();if(a.paymentItemType!=="nmor_pages_commerce")return;p(b("RelayFBEnvironment"),b("FBPaymentsInvoiceFetchStatus.graphql"),{query_params:{id:a.orderId,critical_read:!0}}).toPromise()};d.$72=function(a,c){var d;this.$73();c=c||this.getConfirmationConfiguration();d=(d=a.extra_data)==null?void 0:d.order_status;if(d===J.PENDING){d=(d=a)!=null?(d=d.extra_data)!=null?d.confirmation_message:d:d;c.isPaymentStatusPending=!0}else{var e;c.receiptUrl=((e=this.props.checkoutExtraProps)!=null?e.receiptUrl:e)||((e=a)!=null?(e=e.extra_data)!=null?e.receipt_url:e:e)||b("FBPaymentsLinkHelper").getPaymentSettingsReceiptURI(a.id).toString();e=this.getPaymentType();d=e==="nmor_donation_p4c"?(e=a)!=null?(e=e.extra_data)!=null?e.confirmation_message:e:e:(e=a)!=null?(e=e.extra_data)!=null?e.message_with_email:e:e}d&&(c.confirmationText=b("FBPaymentsStringHelper").stringToMarkup(d));d=(e=a)!=null?(e=e.extra_data)!=null?e.subscription_details:e:e;d&&(c.subscriptionConfirmationDetails={image:d.subscription_image.uri,name:d.subscription_name,renewMessage:d.renew_amount,renewTitle:d.renew_date,subtitle:d.subscription_subtitle.text});d=(e=a.extra_data)==null?void 0:e.subscription_agreement;if(d){c.subscriptionConfirmationDetails={image:(a=d.image)==null?void 0:a.uri,name:d.name,renewMessage:d.editMessage,renewTitle:d.renewMessage,subtitle:d.subtitle.text}}a=(e=this.props.checkoutExtraProps)!=null?e.doneButtonText:e;a&&(c.doneButtonText=a);e=(d=this.props.checkoutExtraProps)!=null?d.doneButtonTrackingNodeType:d;e&&(c.doneButtonTrackingNodeType=e);a=this.getContentConfiguration();a||h(0,323);a.confirmationConfiguration=c;b("FBPaymentsCheckoutActions").updateContentConfiguration(a);b("FBPaymentsCheckoutActions").updateCheckoutStep(y.CONFIRMATION)};d.$75=function(){b("FBPaymentsCheckoutActions").updateCheckoutStep(y.READY_TO_PAY)};d.$10=function(a,c){var d;if(this.getPaymentType()!=="nmor_checkout_experiences")return;d=(d=(d=this.getPaymentInfo().extraData)==null?void 0:d.products)!=null?d:[];d=d.map(function(a){return a.product_id});b("XCommerceOnsiteEventRouter").logEvent(a,{productIDs:d,adID:(a=this.getPaymentInfo().extraData)==null?void 0:(d=a.server_logging_params)==null?void 0:d.ad_id,orderID:c})};d.isPriceListValid=function(a){return!!a&&a.length>0};d.$76=function(a){var c=this,d=b("FBPaymentsLinkHelper").getVerifiedPaypalAccessToken();a={cred_id:a,pp_access_token:d,payment_type:this.getPaymentType()};this.__getAPI().verifyConsumerAuthGraphQL(a,!0,function(){c.$8(),b("FBPaymentsCheckoutActions").shouldEnablePaypal(!1)},function(a){b("FBPaymentsCheckoutActions").shouldEnablePaypal(!1);var c=b("FBPaymentsUniversalErrorUtils").getUserFacingErrorMessage(a);a=a&&a.errorCode?{userFacingError:a}:{global:c!=null?c:b("FBPaymentsModulesAPIUtils").getUncaughtErrorMessage()};b("FBPaymentsCheckoutActions").paymentProcessingError(a)})};d.$77=function(a,b,c){var d=a.identifier==="CUSTOM_EXTENSION"?a["class"]:this.__getExtensionManager().getExtensionContainer(a.identifier);return d==null?null:q.jsx(d,{checkoutConfiguration:this.getCheckoutConfiguration(),checkoutExtraProps:this.props.checkoutExtraProps,extensionConfiguration:a,isActive:b,isActiveForVerification:c,isGuestCheckout:this.isGuestCheckout(),isUsingUpdateCheckoutInfoAPI:this.getIsUsingUpdateCheckoutInfoAPI(),logger:this.$1,onContactSupportClick:this.$59,onExtensionWidthChange:this.$74})};d.$51=function(){return{banner:this.state.banner,isSwedenDonation:this.state.isSwedenDonation,logger:this.$1,paymentType:this.getPaymentType(),theme:this.props.theme||"DEFAULT",uplLogger:this.$6}};d.$78=function(a){a===void 0&&(a=!1);return b("FBPayGatingUtils").isFBPayExperienceEnabled(this.getPaymentType())?b("FBPayGatingUtils").isDonationPaymentType(this.getPaymentType())&&b("gkx")("2469")?b("FBPayStrings").DONATION_CHECKOUT:b("FBPayStrings").FACEBOOK_PAY:a?b("FBPaymentsFreeTrialExtensionUtil").getFreeTrialCheckoutDialogTitle(this.state.freeTrialData,this.getPaymentType()):this.props.dialogTitle};d.$7=function(){var a;a=(a=b("FBPaymentsLinkHelper").getCurrentURISessionID())!=null?a:"";return k(a)?a:l()};d.render=function(){var a=this,c=this.getContentConfiguration(),d,e,f,i,j,k,l,n=[],o,p=!1,r=!1,s=!1,v=!!this.props.renderInline,w=!!this.props.renderInlineWithPadding,x=b("FBPaymentsFreeTrialExtensionUtil").getIsUsingFreeTrial(this.state.freeTrialData),z=this.__isExtensionDisplayWhenValidatePIN(),A=this.state.paymentMethodData;A=(A==null?void 0:A.newPaymentOptionType)?A==null?void 0:A.newPaymentOptionType:A==null?void 0:(A=A.paymentMethod)==null?void 0:A.type;if(this.$46()){var B;(B=this.$6)==null?void 0:B.logClientEnablePayment((B=this.getSelectedPaymentMethod())==null?void 0:B.id,b("PaymentMethodUtils").castCredentialType(A))}else{(B=this.$6)==null?void 0:B.logClientDisablePayment((B=this.getSelectedPaymentMethod())==null?void 0:B.id,b("PaymentMethodUtils").castCredentialType(A))}var C;if(this.state.showVerificationFlow){B=this.__getVerificationFlowContainer();A=b("FBPaymentsVerificationFlowHelper").getVerificationFlowPaymentType(this.getPaymentType());var D=b("FBPaymentsVerificationFlowHelper").getVerificationFlowProductType(A);!!A&&!!D||h(0,963,this.getPaymentType());C=q.jsx(B,{isAsyncDialogBody:!0,onBackClick:this.$52,onClose:this.$58,paymentType:A,verificationProductType:D})}var E;A=(B=this.state.errors)!=null?B.userFacingError:B;if(A){var F;D=this.__getUserFacingErrorNotice();B=A.primaryCta;!!B&&B.type==="contact_us"&&(B.onClick=this.$59);F=(F=A)!=null?F.flowStep:F;E=q.jsx(D,{callToAction:B,description:A.errorDescription,flowStep:F,logger:this.$1,title:A.errorTitle,use:A.imageType})}var G;if(this.state.showContactSupportFlow){D=this.__getContactSupportContainer();B=this.state.showUpfrontAddressCollection?u.SHIPPING_ADDRESS:this.state.activeExtension||this.state.activeExtensionForVerification;if(B!=null){F=this.state.extensionUserFacingErrorMap.get(B);A=F||A}F=(B=A)!=null?B.errorCode:B;B=(B=A)!=null?B.flowStep:B;var H=this.getPaymentType();!!F&&!!B&&!!H||h(0,964);F={errorCode:F,flowStep:B,paymentType:H};G=q.jsx(D,{extraInfo:F,logger:this.$1,onBackClick:this.$60,onClose:this.$61})}var I;if(this.state.showExitCheckoutConfirmDialog){B=this.__getExitCheckoutConfirmDialog();H=this.$38();B!=null&&(I=q.jsx(B,{isShown:this.state.showExitCheckoutConfirmDialog,cancelButtonLabel:this.__getExitCheckoutConfirmDialogCancelButtonLabel(),confirmButtonLabel:this.__getExitCheckoutConfirmDialogConfirmButtonLabel(),description:b("FBPaymentsCheckoutStrings").getExitCheckoutConfirmDialogDescription(),logger:this.$1,onCancelClick:this.$63,onConfirmClick:this.$62,researchSurvey:H,title:b("FBPaymentsCheckoutStrings").getExitCheckoutConfirmDialogTitle()}))}var J;if(this.state.showDonationLargeAmountConfirmDialog){D=this.__getDonationLargeAmountConfirmDialog();D!=null&&(J=q.jsx(D,{isShown:this.state.showDonationLargeAmountConfirmDialog,cancelButtonLabel:this.__getDonationLargeAmountConfirmDialogCancelButtonLabel(),confirmButtonLabel:this.__getDonationLargeAmountConfirmDialogConfirmButtonLabel(),description:this.__getDonationLargeAmountConfirmDialogDescription(),logger:this.$1,onCancelClick:this.$65,onConfirmClick:this.$64,title:b("FBPaymentsCheckoutStrings").getDonationLargeAmountConfirmDialogTitle()}))}var K;if(this.state.altPayCancelledError){F=this.__getCheckoutAlertDialog();if(F!=null){B=b("FBPaymentsUniversalErrorUtils").getErrorTitle(this.state.altPayCancelledError);H=b("FBPaymentsUniversalErrorUtils").getUserFacingErrorMessage(this.state.altPayCancelledError);B&&H&&(K=q.jsx(F,{isShown:!0,confirmButtonLabel:this.__getAltPayCancelledDialogButtonLabel(),description:H,logger:this.$1,onConfirmClick:this.$34,title:B}))}}if(!c||this.state.hasInitializationError){D=this.__getLoadingView();i=q.jsx(D,{showLockSpinner:!0});F=b("FBPaymentsUniversalErrorUtils").getErrorDescription(this.state.updateCheckoutLoadError);B=this.state.hasInitializationError?b("gkx")("676858")?(H=F)!=null?H:b("FBPaymentsCheckoutStrings").getCheckoutInitializationErrorMessage():String(g._(function(a,b){return a._("u7531u4e8eu53d1u751fu4e34u65f6u6027u7cfbu7edfu9519u8befuff0cu64cdu4f5cu672au5b8cu6210uff0cu8bf7u7a0du540eu518du8bd5u3002")},{})):void 0;i=q.jsx(D,{loadingText:B,logger:this.$1,loggerExtraData:{item_loading:c?null:"contentConfiguration"},showError:this.state.hasInitializationError,showLockSpinner:!0})}else{F=this.state.finalPriceList;H=c.payActionContent;D=c.entity;if(D){B=this.__getEntityHeaderContainer();j=q.jsx(B,{entity:D})}if(!!c.newPriceTable||this.isPriceListValid(F)){B=this.__getPriceTableComponent();D=!x&&!!((D=this.props)!=null?(D=D.checkoutExtraProps)!=null?D.showTaxDisclaimer:D:D)&&((D=this.state.paymentMethodData)!=null?D.selectedBillingCountry:D)===b("FBPaymentsCountryCodes").US;k=q.jsx(B,{hidePriceTable:!!((B=this.props)!=null?(B=B.checkoutExtraProps)!=null?B.hidePriceTable:B:B),hideTotal:!!((B=this.props)!=null?(B=B.checkoutExtraProps)!=null?B.hidePriceTableTotal:B:B),isCalculating:this.state.isUpdatingCheckout,isCollapsed:!!((B=this.props)!=null?(B=B.checkoutExtraProps)!=null?B.isPriceTableCollapsedInitially:B:B),newPriceTable:c.newPriceTable,logger:this.$1,priceList:F,showTaxDisclaimer:D,showTotalOnly:(B=this.props.checkoutExtraProps)==null?void 0:B.showTotalOnly,customTotalLabel:(D=this.props.checkoutExtraProps)==null?void 0:D.customTotalLabel})}B=this.state.buttonPrice;var L;if(c.newPriceTable)L=c.newPriceTable.totalPrice.displayPrice,B=c.newPriceTable.totalPrice.price,x&&(B=b("FBPaymentsFreeTrialExtensionUtil").getFreeTrialPrice(B.currency));else if(this.isPriceListValid(F)){D=b("FBPaymentsPriceListHelper").calculateTotal(F);F=D.currency;F&&(B=x?b("FBPaymentsFreeTrialExtensionUtil").getFreeTrialPrice(F):{amount:D.amount.toString(),currency:F})}D=this.getPaymentInfo().extraData;var M;F=((F=this.state)!=null?(F=F.frequencySelectorData)!=null?F.subscriptionType:F:F)||(D==null?void 0:D.subscriptionType);F&&(M={type:F,price:B});((D=this.props)==null?void 0:(D=D.checkoutExtraProps)==null?void 0:D.hidePayButtonPrice)&&(B=null);D=this.__getPayActionRowContainer();var N=this.getPayActionTitle(H,this.state.paymentMethodData,this.state.frequencySelectorData);l=q.jsx(D,{actionTitle:N,backButton:this.props.backButton||H.backButton,checkoutStep:this.state.step,configuration:H,fundraiserVertical:(D=this.props.checkoutExtraProps)==null?void 0:D.fundraiserVertical,isLoading:this.state.step===y.PAYMENT_PROCESSING,logger:this.$1,onBackButtonClick:function(){a.__handleBackButtonClick(!1)},onPayButtonClick:this.$47,payButtonEnabled:this.$46(),price:B,displayPrice:L,renderInline:v,subscriptionTermsDetails:M,termsAndPolicies:this.state.termsAndPolicies});p=this.state.activeExtension!==null;r=this.state.activeExtensionForVerification!==null;s=this.state.activeExtensionForVerification===u.PIN_VERIFICATION;N=c.purchaseInfo;for(H=0;H
FBPaymentsPaymentMethodSelectorExtensionStoreBase",["AllPaymentTypeFields","FBLogger","FBPayments3DS","FBPaymentsAffirmMonthlyPayment","FBPaymentsCheckoutActions","FBPaymentsCheckoutConfigurationStore","FBPaymentsCheckoutConstants","FBPaymentsCheckoutHelper","FBPaymentsCreditCard","FBPaymentsDispatcher","FBPaymentsLinkHelper","FBPaymentsModulesAPIShared","FBPaymentsModulesAPIUtils","FBPaymentsNewPaymentOptionTypes","FBPaymentsPayPalBillingAgreement","FBPaymentsPayPalBillingAgreementTypes","FBPaymentsPaymentMethodActions","FBPaymentsPaymentMethodSelectorExtensionState","FBPaymentsPaymentMethodTypes","FBPaymentsPaymentMethodsInfo","FluxReduceStore","abstractMethod","immutable","promiseDone"],(function(a,b,c,d,e,f){"use strict";var g=b("immutable").Map,h=b("FBPaymentsPaymentMethodActions").types,i=b("FBPaymentsCheckoutConstants").Extensions;a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.call(this,b("FBPaymentsDispatcher"))||this}var d=c.prototype;d.getInitialState=function(){return new(b("FBPaymentsPaymentMethodSelectorExtensionState"))()};d.__getPaymentMethodStore=function(){return b("abstractMethod")("FBPaymentsPaymentMethodSelectorExtensionStoreBase","__getPaymentMethodStore")};d.__getAPI=function(){return b("abstractMethod")("FBPaymentsPaymentMethodSelectorExtensionStoreBase","__getAPI")};d.__connectPayPal=function(a){return b("abstractMethod")("FBPaymentsPaymentMethodSelectorExtensionStoreBase","__connectPayPal")};d.__connectAffirm=function(a){return b("abstractMethod")("FBPaymentsPaymentMethodSelectorExtensionStoreBase","__connectAffirm")};d.getExtensionName=function(){return i.PAYMENT_METHOD};d.reduce=function(a,c){var d,e=c.data;switch(c.type){case b("FBPaymentsCheckoutActions").types.UNMOUNT_CHECKOUT_FLOW:return this.getInitialState();case b("FBPaymentsCheckoutActions").types.INITIALIZE_CHECKOUT:d=c==null?void 0:(d=c.data)==null?void 0:d.paymentType;c=c==null?void 0:(c=c.data)==null?void 0:c.receiverCountry;return a.setPaymentItemType(d).setReceiverCountry(c);case b("FBPaymentsCheckoutActions").types.EXTENSION_UPDATE:return e.extensionName===this.getExtensionName()?this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase1(a,e):a;case b("FBPaymentsCheckoutActions").types.REQUEST_ACTIVE_EXTENSION_FOR_VERIFICATION:return e.extensionName===this.getExtensionName()&&!e.active?a.setConvertPayPalError(null).setSaveErrors(null).clearExtensionUserFacingError():a;case b("FBPaymentsCheckoutActions").types.UPDATE_CHECKOUT_INFO:return this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase2(a,e);case h.PAYMENT_METHODS_LOADED:b("FBPaymentsDispatcher").waitFor([this.__getPaymentMethodStore().getDispatchToken()]);return this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase3(a,e);case h.PAYMENT_METHODS_ERROR:b("FBPaymentsDispatcher").waitFor([this.__getPaymentMethodStore().getDispatchToken()]);return a.setFetchError();case h.CONNECT_PAYPAL:this.__connectPayPal(e);break;case h.CONNECT_AFFIRM:var f=(d=a)!=null?(d=d.paymentMethodsInfo)!=null?d.accountID:d:d;c=function(a){a=a.checkout_token;a={payment_account_id:f,checkout_token:a};b("FBPaymentsModulesAPIShared").createAffirmCredentialIDRelayGraphQL(a,e.onAuthorizeSuccess,e.onError)};d={affirmCheckoutObject:e.affirmCheckoutObject,checkoutExtraProps:e.checkoutExtraProps,paymentAccountID:f,checkoutConfig:e.checkoutConfig,onSuccess:c,onCancel:e.onCancel,onError:e.onError};this.__connectAffirm(d);break}return a};d.isInitialized=function(){var a=this.getState();return a.isInitialized};d.hasInitializationError=function(){var a=this.getState();return a.fetchError};d.isReady=function(){var a=!1,b=this.getState();b.selectedPaymentMethodOrNewPaymentOption&&b.selectedPaymentMethodOrNewPaymentOption.type==="newPaymentOption"||b.isNUXInlineCardFormMode?a=this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase4(b.selectedNewPaymentOptionType,b.newPaymentOptionData):this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase5(b)&&(a=!0);return a};d.getData=function(){var a,c=this.getState(),d={newPaymentOptionType:c.selectedNewPaymentOptionType,selectedBillingCountry:c.selectedBillingCountry,paymentMethod:c.selectedPaymentMethod,paymentMethodID:c.selectedPaymentMethodID,secondaryPaymentMethod:c.selectedSecondaryPaymentMethod};a=c.verificationData?c.verificationData.csc:c==null?void 0:(a=c.creditCardVerificationData)==null?void 0:a.csc;this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase5(c)&&(d=babelHelpers["extends"]({bank:c.selectedBank,csc:a},d));if(c.selectedNewPaymentOptionType===b("FBPaymentsNewPaymentOptionTypes").NEW_ALT_PAY){var e=(a=c.selectedPaymentMethodOrNewPaymentOption)!=null?a.id:a;a=(a=c.paymentMethodsInfo)!=null?a.newPaymentOptions:a;a=e&&a&&a.find(function(a){return a.altPayID===e});c=(c=c.newPaymentOptionData)==null?void 0:(c=c.data)==null?void 0:(c=c.parsed)==null?void 0:c.internationalNumberWithPlus;a=a&&{fee:a.fee,pricepoint_id:a.pricepointID,payment_provider:a.paymentProvider,msisdn:c};d=babelHelpers["extends"]({},d,{altPayData:a})}return d};d.getUserFacingError=function(){return this.getState().extensionUserFacingError};d.getPartialCheckoutRestoreData=function(){return{}};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase6=function(a,b,c,d,e){d={ccNumberBin:d,credentialId:a,ccCountryCode:b,itemType:e,accountCurrency:c};return d};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase1=function(a,c){var d=c.updateData;switch(c.extensionActionType){case h.EXISTING_PAYMENT_METHODS_CLICK:c=d.paymentMethod;if(c.type===b("FBPaymentsPaymentMethodTypes").CREDIT_CARD){a=a.setSelectedBillingCountry(c.countryCode);if(b("FBPaymentsCheckoutHelper").shouldUse3DS2Flow(a.paymentItemType,a.receiverCountry)){var e;e=this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase6(c.id,c.countryCode,((e=a.paymentMethodsInfo)==null?void 0:e.currency)||"",null,a.paymentItemType||"UNKNOWN");this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase7(e)}}return a.setNeedVerification(this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase8(c)).setSelectedBank(null).setSelectedNewPaymentOptionType(null).setSelectedPaymentMethod(c).setSelectedPaymentMethodID(c.id).setSelectedPaymentMethodOrNewPaymentOption({id:c.id,type:"paymentMethod"});case h.SECONDARY_PAYMENT_METHOD_CHECKBOX_CLICK:return a.setSelectedSecondaryPaymentMethod(d.paymentMethod);case h.BANK_CLICK:return a.setSelectedBank(d.selectedBank);case h.NEW_PAYMENT_OPTION_SAVED:return a.setSelectedBank(null).setSelectedPaymentMethod(null).setSelectedPaymentMethodID(null).setSelectedPaymentMethodOrNewPaymentOption(null).setIsLoading(!0).setIsSaving(!1).setNewCredentialID(d.newCredentialID).setNewPaymentOptionData(null);case h.NEW_PAYMENT_OPTION_SAVED_ERROR:return a.setIsSaving(!1).setSaveErrors(d.saveErrors);case h.CANCEL_SAVE_NEW_PAYMENT_OPTION:return a.setIsSaving(!1);case h.NEW_PAYMENT_OPTION_CLICK:return a.setSelectedNewPaymentOptionType(d.selectedNewPaymentOptionType).setSelectedPaymentMethodOrNewPaymentOption({id:(e=d.altPayID)!=null?e:d.selectedNewPaymentOptionType,type:"newPaymentOption"}).setSelectedPaymentMethod(null).setSelectedPaymentMethodID(null).setNeedVerification(!1);case h.SAVE_CREDIT_CARD_CHECKBOX_CLICK:return a.setIsNUXInlineCardFormSavingCreditCard(d.isNUXInlineCardFormSavingCreditCard);case h.NEW_PAYMENT_OPTION_FORM_DATA_UPDATED:c=d.newPaymentOptionData;if(c.newPaymentOptionType===b("FBPaymentsNewPaymentOptionTypes").NEW_CREDIT_CARD){e=(e=c)!=null?(e=e.data)!=null?e.country:e:e;a=a.setSelectedBillingCountry(e||a.selectedBillingCountry)}if(b("FBPaymentsCheckoutHelper").shouldUse3DS2Flow(a.paymentItemType,a.receiverCountry)&&c.newPaymentOptionType===b("FBPaymentsNewPaymentOptionTypes").NEW_CREDIT_CARD){var f;e=b("FBPayments3DS").getBinNumberFromCreditCard(c.data.creditCardNumber);f=b("FBPayments3DS").getBinNumberFromCreditCard(((f=a.newPaymentOptionData)==null?void 0:f.data.creditCardNumber)||"");if(e!==null&&e!==f){f=this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase6(null,a.selectedBillingCountry||"",((f=a.paymentMethodsInfo)==null?void 0:f.currency)||"",e,a.paymentItemType||"UNKNOWN");this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase7(f)}}return a.setNewPaymentOptionData(c);case h.CONVERT_PAYPAL_BA_TO_CIB_ERROR:return a.setIsConvertingPayPal(!1).setConvertPayPalError(d.convertPayPalError).maybeSetExtensionUserFacingError(d.convertPayPalError);case h.SET_SHOULD_VERIFY_CSC:return a.setShouldVerifyCSC(d.shouldVerifyCSC);case h.CANCEL_ACTIVE_STATE_CLICK:return a.setNewPaymentOptionData(d.newPaymentOptionData).setSaveErrors(null);case h.CREDIT_CARD_VERIFICATION_FORM_VALIDATION:return a.setCreditCardVerificationData(d.creditCardVerificationData).setIsCreditCardVerificationDataValid(d.isCreditCardVerificationDataValid);case h.BEFORE_CONVERT_PAYPAL_BA_TO_CIB:return a.setIsConvertingPayPal(!0).setConvertPayPalError(null).clearExtensionUserFacingError();case h.CONVERT_PAYPAL_BA_TO_CIB_V2:e=a.selectedPaymentMethod&&a.selectedPaymentMethod.set(b("FBPaymentsPayPalBillingAgreement").MutableProperties.BA_TYPE,b("FBPaymentsPayPalBillingAgreementTypes").CIB).set(b("FBPaymentsPayPalBillingAgreement").MutableProperties.CIB_CONVERSION_NEEDED,!1);return a.setSelectedPaymentMethod(e).setNeedVerification(!1).setVerificationData({verified:!0}).setIsConvertingPayPal(!1).setConvertPayPalError(null).clearExtensionUserFacingError();case h.CLEAR_SAVE_ERRORS:return a.setSaveErrors(null);case h.UPDATE_VERIFICATION_DATA:return a.setVerificationData(d.verificationData);case h.SELECT_SAVED_NEW_PAYMENT_OPTIONS:return a.setSelectedPaymentMethod(d).setSelectedPaymentMethodID(d.id).setSelectedPaymentMethodOrNewPaymentOption({id:d.id,type:"paymentMethod"});case h.SET_FAKE_SELECTED_PAYMENT_METHOD:return a.setSelectedPaymentMethod({selectedPaymentMethod:new(b("FBPaymentsCreditCard"))({id:0})});case h.BEFORE_SAVE_NEW_PAYMENT_OPTIONS:return a.setSaveErrors(null).setIsSaving(!0);case h.COMPLETE_CREDIT_CARD_VERIFICATION:return a.setIsSaving(!1).setVerificationData(d.verificationData);case h.UPDATE_CREDIT_CARD_ERROR:return this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase9(a,d.saveErrors);case h.BEFORE_UPDATE_CREDIT_CARD:return a.setSaveErrors(null).setIsSaving(!0).setVerificationData({verified:!1});case h.ONLY_SHOW_FIRST_PAYMENT_OPTION:return a.setShowOnlyFirstPaymentMethod(d.onlyShowFirstExistingPaymentMethod);case h.DEFAULT_TO_PAYPAL_FOR_NUX:return a.setDefaultToPayPalForNUX(d.defaultToPayPalForNUXData);case h.SET_AFFIRM_CREDENTIAL_ID:return a.setAffirmCredentialID(d)}return a};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase3=function(a,b){var c=this.__getPaymentMethodStore().makeImmutableKey(b.requestData);c=this.__getPaymentMethodStore().get(c);a=a.setIsLoading(c.isLoading());c=c.getValueEnforcing();return this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase10(a,c,b.requestData)};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase10=function(a,c,d){var e,f=c.paymentMethods,g=c.secondaryPaymentMethods.first(),h=c.newPaymentOptions;e=(e=d==null?void 0:d.isSwedenDonation)!=null?e:!1;var i=f.size===0,j=!i,k=h.find(function(a){return a.type===b("FBPaymentsNewPaymentOptionTypes").NEW_PAYPAL})||{},l=c.billingCountry;a=a.setPaymentMethodsInfo(c).setPaymentMethodsFrictionAttemptsInfo(this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase11(f)).setBillingCountry(l).setSelectedBillingCountry(a.selectedBillingCountry||l).setIsNUXInlineCardFormMode(i).setIsPUXInlineCardFormMode(j).setIsPUXNewPaymentOptionTabEnabled(j).setConnectPayPalURL(k.url).setIsInitialized(!0);g&&(a=a.setSelectedSecondaryPaymentMethod(g));if(a.newCredentialID){c=f.find(function(b){return b.id===a.newCredentialID});if(c){a=a.setSelectedBank(null).setSelectedPaymentMethod(c).setSelectedPaymentMethodID(c.id).setSelectedBillingCountry(((i=c)!=null?i.countryCode:i)||l).setNewCredentialID(null).setNeedVerification(this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase8(c))}}else if(!a.selectedPaymentMethod){j=d.affirmCredentialID;if(j){a=a.setSelectedPaymentMethod(new(b("FBPaymentsAffirmMonthlyPayment"))({id:j})).setSelectedPaymentMethodID(j).setSelectedPaymentMethodOrNewPaymentOption({id:j,type:"paymentMethod"});return a}k=b("FBPaymentsLinkHelper").isCurrentURIReturnedFromPaypal();a=a.set("isURIReturnedFromCancelPayPal",b("FBPaymentsLinkHelper").isCurrentURIReturnedFromCancelPaypal());g=b("FBPaymentsLinkHelper").isCurrentURIReturnedFromVerifiedPaypal();i=b("FBPaymentsLinkHelper").shouldEnablePaypal();var m=b("FBPaymentsLinkHelper").getPaymentMethodId();c=f.find(function(a){return a.isSelected});d=h.find(function(a){return a.isSelected});k||i?j=f.findLast(function(a){return a.getType()===b("FBPaymentsPaymentMethodTypes").PAYPAL_BILLING_AGREEMENT}):g?j=f.findLast(function(a){return a.getID()===m}):j=c;k=f.first();if(j){a=a.setSelectedBank(null).setSelectedPaymentMethod(j).setSelectedPaymentMethodID(j.id).setSelectedBillingCountry(((i=j)!=null?i.countryCode:i)||l).setNeedVerification(this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase8(j)).setSelectedPaymentMethodOrNewPaymentOption({id:j.id,type:"paymentMethod"})}else if(d){c=(g=d.altPayID)!=null?g:d.type;a=a.setSelectedNewPaymentOptionType(d.type).setSelectedPaymentMethodOrNewPaymentOption({id:c,type:"newPaymentOption"})}else if(k&&!e){a=a.setSelectedBank(null).setSelectedPaymentMethod(k).setSelectedPaymentMethodID(k.id).setSelectedBillingCountry(((f=k)!=null?f.countryCode:f)||l).setNeedVerification(this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase8(k)).setSelectedPaymentMethodOrNewPaymentOption({id:k.id,type:"paymentMethod"})}else if(!e){i=h.first();i&&(a=a.setSelectedNewPaymentOptionType(i.type).setSelectedPaymentMethodOrNewPaymentOption({id:i.type,type:"newPaymentOption"}))}if(b("FBPaymentsCheckoutHelper").shouldUse3DS2Flow(a.paymentItemType,a.receiverCountry)&&((j=a.selectedPaymentMethod)==null?void 0:j.type)===b("FBPaymentsPaymentMethodTypes").CREDIT_CARD){f=this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase6(((g=a.selectedPaymentMethod)==null?void 0:g.id)||"",((d=a.selectedPaymentMethod)==null?void 0:d.countryCode)||"",((c=a.paymentMethodsInfo)==null?void 0:c.currency)||"",null,a.paymentItemType||"");this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase7(f)}}return a};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase11=function(a){var c=g();a.forEach(function(a){if((a==null?void 0:a.type)!==b("FBPaymentsPaymentMethodTypes").CREDIT_CARD)return;var d=a.getVerifyCvvFieldsAttempt();if(!d)return;c=c.set(a.id,d)});return c};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase12=function(a,b){if(!a||!b)return g();var c=b.get(a);if(!c)return b;c.numberOfAttempts+=1;b=b.set(a,c);return b};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase9=function(a,c){a=a.setIsSaving(!1).setSaveErrors(c).setPaymentMethodsFrictionAttemptsInfo(this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase12(a.selectedPaymentMethodID,a.paymentMethodsFrictionAttemptsInfo));c=(c=a.paymentMethodsInfo)==null?void 0:c.newPaymentOptions;this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase13(a.selectedPaymentMethodID,a.paymentMethodsFrictionAttemptsInfo)&&c&&c.some(function(a){return a.type===b("FBPaymentsNewPaymentOptionTypes").NEW_CREDIT_CARD})&&(a=a.setSelectedBank(null).setSelectedNewPaymentOptionType(b("FBPaymentsNewPaymentOptionTypes").NEW_CREDIT_CARD).setSelectedPaymentMethodOrNewPaymentOption({id:b("FBPaymentsNewPaymentOptionTypes").NEW_CREDIT_CARD,type:"newPaymentOption"}).setSelectedPaymentMethod(null).setSelectedPaymentMethodID(null).setNeedVerification(!1));return a};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase13=function(a,b){if(!a||!b)return!1;b=b.get(a);return!b?!1:b.numberOfAttempts>=b.numberOfMaxTry};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase7=function(a){b("promiseDone")(b("FBPayments3DS").getCardPaymentMethodInfo(a),function(a){},function(a){})};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase2=function(a,c){var d,e;b("FBPaymentsDispatcher").waitFor([b("FBPaymentsCheckoutConfigurationStore").getDispatchToken()]);var f=b("FBPaymentsCheckoutConfigurationStore").getPaymentMethodExtensionConfig();d=(d=f==null?void 0:(d=f.paymentMethodData)==null?void 0:d.available_payment_credential_options)!=null?d:[];var g=[],h=[];d.map(function(a){var c=a.payment_credential_option,d=a.is_selected;a=a.onboarding_bubble;c=babelHelpers["extends"]({},c,{is_selected:d,onboarding_bubble:a});switch(c.credential_type){case b("FBPaymentsPaymentMethodTypes").PAYPAL_BILLING_AGREEMENT_FROM_GRAPHQL:case b("FBPaymentsPaymentMethodTypes").CREDIT_CARD_FROM_GRAPHQL:case b("FBPaymentsPaymentMethodTypes").DUMMY_PAYMENT_METHOD_FROM_GRAPHQL:g.push(c);break;case b("FBPaymentsPaymentMethodTypes").GIFTCARD_BALANCE_FROM_GRAPHQL:g.push(c);break;case b("FBPaymentsNewPaymentOptionTypes").NEW_CREDIT_CARD_FROM_GRAPHQL:case b("FBPaymentsNewPaymentOptionTypes").NEW_PAYPAL_FROM_GRAPHQL:case b("FBPaymentsNewPaymentOptionTypes").NEW_AFFIRM_FROM_GRAPHQL:case b("FBPaymentsNewPaymentOptionTypes").NEW_ALT_PAY_FROM_GRAPHQL:h.push(c);break;default:b("FBLogger")("purchase_experience").warn("Unsupported payment option: %s",c.credential_type)}});e=b("FBPaymentsModulesAPIUtils").parseAddressFormConfig(f==null?void 0:(e=f.paymentMethodData)==null?void 0:e.addressFormConfig);d=new(b("FBPaymentsPaymentMethodsInfo"))({accountID:"",addressFormConfig:e,availablePaymentOptions:d,paymentMethods:g,billingCountry:(e=f==null?void 0:(e=f.paymentMethodData)==null?void 0:(d=e.userInfo)==null?void 0:d.geo_country)!=null?e:"",currency:(f=f==null?void 0:(d=f.paymentMethodData)==null?void 0:(e=d.userInfo)==null?void 0:e.currency)!=null?f:"",newPaymentOptions:h});return this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase10(a,d,{affirmCredentialID:a.affirmCredentialID,isSwedenDonation:(e=c==null?void 0:c.isSwedenDonation)!=null?e:!1})};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase5=function(a){if(a.isSaving)return!1;var c=a.paymentMethodsInfo;if(!c)return!1;c=a.selectedPaymentMethod;if(!c)return!1;if(a.needVerification&&!a.isCreditCardVerificationDataValid)return!1;c=c.type||"";c=c===b("FBPaymentsPaymentMethodTypes").NET_BANKING;if(c&&!a.selectedBank)return!1;c=a.verificationData?a.verificationData.csc:a==null?void 0:(c=a.creditCardVerificationData)==null?void 0:c.csc;return a.shouldVerifyCSC&&a.paymentItemType===b("AllPaymentTypeFields").NMOR_DONATION_P4C&&!c?!1:!0};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase4=function(a,c){switch(a){case b("FBPaymentsNewPaymentOptionTypes").NEW_CREDIT_CARD:case b("FBPaymentsNewPaymentOptionTypes").NEW_ALT_PAY:return!!c&&c.isValid;default:return!0}};d.needsPrePaymentVerification=function(){var a=!1,c=this.getState();if(!c.selectedPaymentMethod)return!1;c=c.selectedPaymentMethod;c.type===b("FBPaymentsPaymentMethodTypes").PAYPAL_BILLING_AGREEMENT&&(a=c.cibConversionNeeded);return a};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase8=function(a){var c=!1;if(a.type===b("FBPaymentsPaymentMethodTypes").CREDIT_CARD){var d=this.$FBPaymentsPaymentMethodSelectorExtensionStoreBase14(a);c=d.length!==0||(a==null?void 0:a.isSoftDisabled)}return c};d.$FBPaymentsPaymentMethodSelectorExtensionStoreBase14=function(a){if(!a)return[];var c=this.getState();c=c.shouldVerifyCSC;switch(a.type){case b("FBPaymentsPaymentMethodTypes").CREDIT_CARD:a=new Set(a.getVerifyFields());c&&a.add("csc");return Array.from(a);default:return[]}};return c}(b("FluxReduceStore"));a.__moduleID=e.id;e.exports=a}),null);
-----