if (self.CavalryLogger) { CavalryLogger.start_js(["\/RBHT"]); } __d("AdContentFeedbackTypes",[],(function(a,b,c,d,e,f){e.exports={UNKNOWN:0,APPROVE:1,NEED_MANUAL_REVIEW:2,REJECT:3}}),null); __d("AdmarketAccountStatusesJS",[],(function(a,b,c,d,e,f){e.exports={values:{ADMARKET_ACCOUNT_STATUS_DISABLED:0,ADMARKET_ACCOUNT_STATUS_ACTIVE:1,ADMARKET_ACCOUNT_STATUS_TEST:2,ADMARKET_ACCOUNT_STATUS_UNSETTLED:3,ADMARKET_ACCOUNT_STATUS_UNSPECIFIED:4,ADMARKET_ACCOUNT_STATUS_PENDING_CLOSURE:5,ADMARKET_ACCOUNT_STATUS_CLOSED:6,ADMARKET_ACCOUNT_STATUS_PENDING_RISK_REVIEW:7,ADMARKET_ACCOUNT_STATUS_PENDING_SETTLEMENT:8,ADMARKET_ACCOUNT_STATUS_IN_GRACE_PERIOD:9,ADMARKET_ACCOUNT_STATUS_INVALID_DUP_WRONG_DB:10},labels:["ADMARKET_ACCOUNT_STATUS_DISABLED","ADMARKET_ACCOUNT_STATUS_ACTIVE","ADMARKET_ACCOUNT_STATUS_TEST","ADMARKET_ACCOUNT_STATUS_UNSETTLED","ADMARKET_ACCOUNT_STATUS_UNSPECIFIED","ADMARKET_ACCOUNT_STATUS_PENDING_CLOSURE","ADMARKET_ACCOUNT_STATUS_CLOSED","ADMARKET_ACCOUNT_STATUS_PENDING_RISK_REVIEW","ADMARKET_ACCOUNT_STATUS_PENDING_SETTLEMENT","ADMARKET_ACCOUNT_STATUS_IN_GRACE_PERIOD","ADMARKET_ACCOUNT_STATUS_INVALID_DUP_WRONG_DB"],descriptions:{0:"This ad account has recently been flagged because of unusual activity. Any ads this account is running will be paused until your client confirms their account information.",3:"This ad account is unsettled. Please contact the client to inform them of the situation to see how it can be resolved.",5:"This account will be deactivated soon. Closure is pending upon ensuring that this account does not have any outstanding balances.",6:"This advertising account has been deactivated.",8:"This account is currently pending settlement.",9:"The payment method associated with this account could not be charged. Your client must go to the Payment Information page and settle the outstanding balance."}}}),null); __d("AdsGetDirectionsActionLink",[],(function(a,b,c,d,e,f){e.exports={LINK_START:"fbgeo://",URI_REGEX:'^fbgeo:\\/\\/(-?\\d+(?:\\.\\d+)?),\\s*(-?\\d+(?:\\.\\d+)?)(?:,\\s*"([^"]+)")?(?:,\\s*"([^"]+)")?(?:,\\s*(\\d+))?$'}}),null); __d("AdsLeadGenFormFeatureToCapability",[],(function(a,b,c,d,e,f){e.exports={LEAD_AD_WITH_FORM_CUSTOMIZATION:"15",LEAD_GEN_WITH_CONTEXT_CARD:"17",LEAD_AD_WITH_CUSTOM_DISCLAIMER:"24",LEAD_AD_WITH_CUSTOM_DISCLAIMER_AND_OPTIONAL_CHECKBOX:"26",LEAD_AD_WITH_CONTEXT_CARD_PHOTO:"31",LEAD_AD_WITH_STORE_LOOKUP:"64",LEAD_AD_WITH_CUSTOMIZED_THANK_YOU_PAGE:"68",LEAD_AD_WITH_DATE_TIME_INPUT:"75",LEAD_AD_WITH_IMPROVED_AD_UNIT:"82",LEAD_AD_WITH_CANVAS:"88",LEAD_AD_WITH_STORE_LOOKUP_TYPEAHEAD:"102"}}),null); __d("CROWCompsType",[],(function(a,b,c,d,e,f){e.exports={UNKNOWN:0,PROACTIVE_AD:1,PROACTIVE_AD_ACCOUNT:2,PROACTIVE_AD_BODY_TEXT:3,PROACTIVE_AD_CAMPAIGN:4,PROACTIVE_AD_IMAGE:5,PROACTIVE_AD_LANDING_PAGE:6,PROACTIVE_AD_TITLE_TEXT:7,PROACTIVE_AD_TARGET_SPEC:8,AD_IMAGE_FUZZY_HASH:9,PROACTIVE_COUPON:10,INITIAL_APP_CENTER_DEPRECATED:11,INITIAL_APP_CENTER_DEVELOPER_DEPRECATED:12,INITIAL_APP_CENTER_SUBTITLE:13,INITIAL_APP_CENTER_DESCRIPTION:14,INITIAL_APP_CENTER_DETAILED_DESCRIPTION:15,INITIAL_APP_CENTER_ICONS_DEPRECATED:16,INITIAL_APP_CENTER_SCREENSHOTS:17,INITIAL_APP_CENTER_BANNERS:18,INITIAL_APP_CENTER_COVER_IMAGE:19,INITIAL_APP_CENTER_APP_DEPRECATED:20,PROACTIVE_PAGE:21,PROACTIVE_PAGE_COVER_PHOTO:22,PROACTIVE_PAGE_TITLE:23,AD_ACCOUNT_MANAGER:24,AD_ACCOUNT_PHONE:25,AD_ACCOUNT_BILLING_ADDRESS:26,AD_ACCOUNT_FUZZY_EMAIL:27,APP_OVERVIEW:28,APP_PLATFORM_IPHONE:29,APP_PLATFORM_ANDROID:30,APP_PLATFORM_CANVAS:31,APP_PLATFORM_MOBILE_WEB:32,APP_PLATFORM_PAGE_TAB:33,APP_PLATFORM_WEB:34,APP_SUBMISSION:35,AD_ACCOUNT_BRAND:36,AD_ACCOUNT_PAYMENT_METHOD:37,AD_ACCOUNT_DATR:38,AD_ACCOUNT_IP:39,APP_ICON:40,APP_LOGO:41,AD_ACCOUNT_USER_ADMIN:42,BRAND_SAFETY_GROUP:43,APP_PLATFORM_IPAD:44,AD_PHOTODNA_HASH:45,APP_OG_ACTION_TYPE:46,PAGE_COMMERCIAL_CONTENT:47,AD_ACCOUNT_COMPS_COLLECTION:48,VIDEO:49,APP_PLATFORM_WINDOWS:50,APP_PLATFORM_XBOX:51,APP_PLATFORM_PLAYSTATION:52,APP_DEMO_VIDEO:54,AD_LANDING_PAGE_MD5_FETCH_SOURCE:55,PAGE_POST:56,VIDEODNA_HASH:57,MERCHANT:58,PRODUCT:59,MERCHANT_APPLICATION:60,POST_BODY_TEXT:61,PRODUCT_TITLE_TEXT:62,PRODUCT_BODY_TEXT:63,PRODUCT_IMAGE:64,MESSENGER_FEATURED_BANNER:65,PAGE_NAME_CHANGE:66,INSTAGRAM_STAGED_AD:67,ATLAS_CLICK_THROUGH:69,PROACTIVE_PAGE_RATING:70,PROACTIVE_AD_DOM_PARSER_IMAGE:71,LIVERAIL_SUPPLY:72,PROACTIVE_AD_DOM_PARSER_LINK:73,PROACTIVE_AD_DOM_PARSER_TEXT:74,PAGE_MERGE:75,AD_METADATA:77,API_AD:78,AD_XRAY_HASH:79,LEAD_GEN_AD_QUESTION:80,AD_IMAGE_FILE_HASH:81,BUSINESS:84,LIVERAIL_APP:85,LIVERAIL_ADS:86,AD_LANDING_PAGE_DOMAIN:87,AD_NETWORK_DOMAIN:88,AD_NETWORK_APP_BUNDLE:89,ACTOR:90,FUNDRAISER:91,POST_COMMENT:92,INSTAGRAM_BUSINESS_PROFILE:93,AD_NETWORK_APP:94,JOB_OPENING:95,OFFER:96,VIDEO_PUBLISHER:97,APPLICATION_AD_PLACEMENT:98,INSTANT_ARTICLE:99,SALES_PROMO:100,INSTAGRAM_FEED:101,INSTAGRAM_STORY:102,AD_SPACE:103,PRODUCT_LIKE:104,FINGERPRINT:105,REVIEWABLE_OBJECT:106,FINANCIAL_ENTITY:107,DEVELOPER:108,AD_SENSITIVE_CONTEXT:109,AD_NETWORK_URL:110,OFFERX:111,INSTANT_ARTICLE_DOMAIN:112,PAGE_MONETIZATION:113,IGTV:114,INSTAGRAM_STORY_PRODUCT_STICKER:115,POLITICAL_AD_INSTAGRAM_PROFILE_NAME:116,VIDEO_CLIP:117,IG_MEDIA:118,DIGITAL_STORE_OBJECT:119,WHATSAPP_HIGHLY_STRUCTURED_MESSAGE:120,IG_VIDEO:121,AD_KEYWORD:122,UNSTRUCTURED_GROUP_POST:123,THIRD_PARTY_STORE_DEVELOPER:124,BI_HONEYPOT_ADGROUP:125,BUSINESS_MARKETING_EMAIL:126,AD_DISCLAIMER_BYLINE:127,PAGE_PROFILE_PHOTO:128,IG_ACTOR:129}}),null); __d("DirectDebitMandateGeoType",[],(function(a,b,c,d,e,f){e.exports={BACS:66,UNSPECIFIED:78,SEPA:83,US:85}}),null); __d("PaymentItemType",[],(function(a,b,c,d,e,f){e.exports={NONE:0,GRAPH_NODE:1,INVOICE:2,BILL:3,FBOBJ:4,GIFTS:5,BOOST:6,AIRMAIL:7,REPAYMENT:8,THIRD_PARTY_BUNDLE:9,REG_ALT_PAY_REPAYMENT:10,P2P:11,STORED_BALANCE:12,ADS_ALT_PAY_REPAYMENT:13,WITHDRAW:14,ATLAS_NRTB:17,ATLAS_RTB:18,OCULUS_LAUNCH_V1:19,MESSENGER_COMMERCE:20,OCULUS_CV1:21,OCULUS_LAUNCH_V2:22,OZONE:23,DONATIONS:24,EVENT_TICKETING:25,CAMPAIGN:26,PAGES_BOOKING:30,INSERTION_ORDER:31,WORKPLACE_USAGE:32,OMEGA_INVOICE:33,FACEBOOK_SHOP:34,GAME_TIPPING_TOKEN:35,INSTANT_GAMES:36,MESSAGE_SENDS:37,FAN_FUNDING:38,RECURRING_DONATIONS:39,GROUP_SUBSCRIPTION:40,ADS_CONSENT:42,SOTTO:43,WA_PAID_SENSE:44,DUMMY_FIRST_PARTY:101,DUMMY_THIRD_PARTY:102,DUMMY_FIRST_PARTY_TAXABLE:103,DUMMY_THIRD_PARTY_TAXABLE:104,PAYOUT_DEV:200,PAYOUT_ADNET:201,PAYOUT_OCU:202,DONATIONS_MATCHING_PLEDGE:203,DONATIONS_MATCHING_CONFIRMATION:204,PAYOUT_DCP:205,PAYOUT_AUTOPAY:206,PAYOUT_MISCAP:207,RECORD_PAYOUTS:208,DONATIONS_CAUSE_FOR_CHARITIES:209,SUPPLIER_PAYOUT:210,PAYMENT_UTILITIES:300,MARKETPLACE_SHOPPING:400,INSTAGRAM_SHOPPING:401,INSTAGRAM_DONATION:402,MARKETPLACE_C2C:403,WALLET_STORED_BALANCE:500}}),null); __d("PhoneNumberCategory",[],(function(a,b,c,d,e,f){e.exports={UNKNOWN:"UNKNOWN",FIXED_LINE:"FIXED_LINE",MOBILE:"MOBILE",FIXED_LINE_OR_MOBILE:"FIXED_LINE_OR_MOBILE",TOLL_FREE:"TOLL_FREE",PREMIUM_RATE:"PREMIUM_RATE",SHARED_COST:"SHARED_COST",VOIP:"VOIP",PERSONAL_NUMBER:"PERSONAL_NUMBER",PAGER:"PAGER",UAN:"UAN",VOICEMAIL:"VOICEMAIL"}}),null); __d("AdsBoostedComponentAdAccountV2UpdateAccountDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"BoostedComponentAdAccount.UPDATE_ACCOUNT"}}),null); __d("AdsCanvasInlineAdvancedBuilderBlankOpenDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"ADS_CANVAS_INLINE.ADVANCED_BUILDER_BLANK_OPEN");e.exports=a}),null); __d("AdsCanvasInlineAdvancedBuilderBlankSaveDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"ADS_CANVAS_INLINE.ADVANCED_BUILDER_BLANK_SAVE");e.exports=a}),null); __d("AdsCanvasInlineBuilderBuilderNuxTourCompleteDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"BUILDER_NUX_TOUR_COMPLETE");e.exports=a}),null); __d("AdsCanvasInlineBuilderBuilderNuxTourXoutDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"BUILDER_NUX_TOUR_XOUT");e.exports=a}),null); __d("AdsCanvasInlineBuilderFinishFormCanvasDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"canvasInlineBuilderFinishLeadGenFormCanvas"}}),null); __d("AdsCanvasInlineBuilderHideProductTaggingOverlayDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"HIDE_PRODUCT_TAGGING_OVERLAY");e.exports=a}),null); __d("AdsCanvasInlineBuilderRemoveInlineCanvasDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"REMOVE_INLINE_CANVAS_DATA");e.exports=a}),null); __d("AdsCanvasInlineBuilderSaveCanvasDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"SAVE_CANVAS");e.exports=a}),null); __d("AdsCanvasInlineBuilderSelectRadioButtonDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"SELECT_RADIO_BUTTON");e.exports=a}),null); __d("AdsCanvasInlineBuilderSetProductTaggingCoordinatesDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"SET_PRODUCT_TAGGING_COORDINATES");e.exports=a}),null); __d("AdsCanvasInlineBuilderShowInlineModalDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"SHOW_INLINE_MODAL");e.exports=a}),null); __d("AdsCanvasInlineBuilderShowProductTaggingOverlayDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"SHOW_PRODUCT_TAGGING_OVERLAY");e.exports=a}),null); __d("AdsCanvasInlineBuilderSwitchInlineTabsDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"SWITCH_INLINE_TABS");e.exports=a}),null); __d("AdsCanvasInlineDropdownCreateNewSelectDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"ADS_CANVAS_INLINE.DROPDOWN_CREATE_NEW_SELECT");e.exports=a}),null); __d("AdsCanvasInlineDropdownUseExistingSelectDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"ADS_CANVAS_INLINE.DROPDOWN_USE_EXISTING_SELECT");e.exports=a}),null); __d("AdsCanvasInlineTemplateBuilderDoneDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"ADS_CANVAS_INLINE.TEMPLATE_BUILDER_DONE");e.exports=a}),null); __d("AdsCanvasInlineTemplateBuilderMobilePreviewDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"ADS_CANVAS_INLINE.TEMPLATE_BUILDER_MOBILE_PREVIEW");e.exports=a}),null); __d("AdsFullscreenExperienceRadioToggleDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"TOGGLE_FULLSCREEN_EXPERIENCE_RADIO_LIST");e.exports=a}),null); __d("AdsGrowthCouponsDataProvider",["Laminar","AdsGrowthCouponsDataProviderPlugin"],(function(a,b,c,d,e,f){"use strict";e.exports=b("Laminar").__createProvider(b("AdsGrowthCouponsDataProviderPlugin"),"AdsGrowthCouponsDataProviderPlugin")}),null); __d("AdsGrowthLoadCouponForAdAccountReducerPlugin",[],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,b){var c=a,d=c.couponInfo;b.couponInfo.forEach(function(b,e){d=d.set(e,b);e=b.getValue();a.hasXOutAdCenterCard==null&&e!=null&&(c=c.set("hasXOutAdCenterCard",e.hasXOutAdCenterCard))});return c.set("couponInfo",d)}};e.exports=a}),null); __d("AdsGrowthLoadCouponForAdAccountAction",["Laminar","AdsGrowthLoadCouponForAdAccountReducerPlugin","AdsGrowthCouponsDataProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("AdsGrowthLoadCouponForAdAccountReducerPlugin"),b("AdsGrowthCouponsDataProvider"),{})]},function(){return[]},"AdsGrowthCoupon.LOAD_COUPON_FOR_AD_ACCOUNT");e.exports=a}),null); __d("AdsGrowthCouponDataRecord",["immutable"],(function(a,b,c,d,e,f){"use strict";a=b("immutable").Record({boostedComponentProducts:void 0,claimTimes:void 0,couponProduct:void 0,couponStatus:void 0,currency:void 0,currentSpendInCents:void 0,error:void 0,expirationTime:void 0,hasCreatedAdAfterEnrollment:void 0,hasReachSpendGoal:void 0,hasUnexpiredClaimedCoupon:void 0,isAutoEnrolled:void 0,isLimitedTimeOffer:void 0,maxNumClaims:void 0,offerID:void 0,promotionType:void 0,hasXOutAdCenterCard:void 0,spendRequirementInCents:void 0,valueInCents:void 0});c=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}return b}(a);e.exports=c}),null); __d("XAdsCouponOfferLWIEnrollDataController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/ads/coupon/enroll/offer_data/",{ad_account_id:{type:"FBID"},coupon_offer_id:{type:"FBID",required:!0},placement:{type:"String"},client_app_id:{type:"FBID"}})}),null); __d("XAdsCouponOfferReadDataController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/ads/coupon/read/offer_data/",{ad_account_id:{type:"FBID"},client_app_id:{type:"FBID"}})}),null); __d("AdsGrowthCouponAdAccountInfoDataLoader",["AdsGrowthCouponDataRecord","AsyncRequest","XAdsCouponOfferLWIEnrollDataController","XAdsCouponOfferReadDataController","immutable"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={fetchCouponInfo:function(a){a=b("XAdsCouponOfferReadDataController").getURIBuilder().setFBID("ad_account_id",a.adAccountID).setFBID("client_app_id",a.clientAppID).getURI();return new(b("AsyncRequest"))().setURI(a).exec().then(function(a){return g(a.payload)},function(a){return null})},enrollOffer:function(a,c,d){c=b("XAdsCouponOfferLWIEnrollDataController").getURIBuilder().setFBID("ad_account_id",a.adAccountID).setFBID("coupon_offer_id",c).setString("placement",d).setFBID("client_app_id",a.clientAppID).getURI();return new(b("AsyncRequest"))().setURI(c).exec().then(function(a){return g(a.payload)},function(a){return new(b("AdsGrowthCouponDataRecord"))({boostedComponentProducts:b("immutable").Set(),claimTimes:[],couponProduct:null,currency:null,currentSpendInCents:null,error:"Async Request Error",expirationTime:null,couponStatus:"enroll_failure",hasCreatedAdAfterEnrollment:!1,hasReachSpendGoal:!1,hasUnexpiredClaimedCoupon:!1,isAutoEnrolled:!1,isLimitedTimeOffer:!1,maxNumClaims:1,offerID:null,promotionType:null,hasXOutAdCenterCard:!1,spendRequirementInCents:null,valueInCents:null})})}};function g(a){return new(b("AdsGrowthCouponDataRecord"))({boostedComponentProducts:b("immutable").Set(a.boosted_component_products),claimTimes:a.claim_times,couponProduct:a.coupon_product,couponStatus:a.coupon_status,currency:a.currency,currentSpendInCents:a.current_spend_in_cents,error:a.error,expirationTime:a.expiration_time,hasCreatedAdAfterEnrollment:a.has_created_ad_after_enrollment,hasReachSpendGoal:a.has_reach_spend_goal,hasUnexpiredClaimedCoupon:a.has_unexpired_claimed_coupon,isAutoEnrolled:a.is_auto_enrolled,isLimitedTimeOffer:a.is_limited_time_offer,maxNumClaims:a.max_num_claims,offerID:a.offer_id,promotionType:a.promotion_type,hasXOutAdCenterCard:a.has_xout_ad_center_card,spendRequirementInCents:a.spend_requirement_in_cents,valueInCents:a.value_in_cents})}e.exports=a}),null); __d("AdsGrowthCouponDataStoreRecord",["immutable"],(function(a,b,c,d,e,f){"use strict";a=b("immutable").Record({offerID:void 0,hasXOutAdCenterCard:void 0,targetID:void 0,couponInfo:void 0});c=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}return b}(a);e.exports=c}),null); __d("AdsGrowthCouponsDataProviderPlugin",["AdsGrowthCouponAdAccountInfoDataLoader","AdsGrowthCouponDataStoreRecord","AdsGrowthLoadCouponForAdAccountAction","LoadObject","LoadObjectMap","promiseDone","promiseLoadObjects"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function g(a,c){a(function(a){var d=a,e=a.couponInfo;c.keys.forEach(function(a){e=e.set(a,b("LoadObject").loading())});return d.set("couponInfo",e)})}a={initialState:function(a){return new(b("AdsGrowthCouponDataStoreRecord"))({couponInfo:b("LoadObjectMap").create(function(c){g(a,{keys:c});var d=new Map();c.forEach(function(a){return d.set(a,b("AdsGrowthCouponAdAccountInfoDataLoader").fetchCouponInfo(a))});b("promiseDone")(b("promiseLoadObjects")(d),function(a){b("AdsGrowthLoadCouponForAdAccountAction").dispatch({couponInfo:a},{line:"66",module:"AdsGrowthCouponsDataProviderPlugin.js"})})}),hasXOutAdCenterCard:null,targetID:null,offerID:null})}};e.exports=a}),null); __d("AdsGrowthEnrollOfferForAdAccountReducerPlugin",["LoadObject"],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,c){return a.set("couponInfo",a.couponInfo.set(c.key,b("LoadObject").loading()))}};e.exports=a}),null); __d("AdsGrowthEnrollOfferForAdAccountAction",["Laminar","AdsGrowthEnrollOfferForAdAccountReducerPlugin","AdsGrowthCouponsDataProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("AdsGrowthEnrollOfferForAdAccountReducerPlugin"),b("AdsGrowthCouponsDataProvider"),{})]},function(){return[]},"AdsGrowthCoupon.ENROLL_OFFER_FOR_AD_ACCOUNT");e.exports=a}),null); __d("AdsGrowthLoadEnrolledOfferForAdAccountReducerPlugin",["LoadObject"],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,c){var d=a;a.hasXOutAdCenterCard==null&&(d=a.set("hasXOutAdCenterCard",c.couponData.hasXOutAdCenterCard));return d.set("offerID",null).set("couponInfo",a.couponInfo.set(c.key,b("LoadObject").withValue(c.couponData)))}};e.exports=a}),null); __d("AdsGrowthLoadEnrolledOfferForAdAccountAction",["Laminar","AdsGrowthLoadEnrolledOfferForAdAccountReducerPlugin","AdsGrowthCouponsDataProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("AdsGrowthLoadEnrolledOfferForAdAccountReducerPlugin"),b("AdsGrowthCouponsDataProvider"),{})]},function(){return[]},"AdsGrowthCoupon.LOAD_ENROLLED_OFFER_FOR_AD_ACCOUNT");e.exports=a}),null); __d("AdsGrowthLoadOfferIDForAdAccountReducerPlugin",[],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,b){return a.set("offerID",b.offerID).set("targetID",b.targetID)}};e.exports=a}),null); __d("AdsGrowthLoadOfferForAdAccountAction",["Laminar","AdsGrowthLoadOfferIDForAdAccountReducerPlugin","AdsGrowthCouponsDataProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("AdsGrowthLoadOfferIDForAdAccountReducerPlugin"),b("AdsGrowthCouponsDataProvider"),{})]},function(){return[]},"AdsGrowthCoupon.LOAD_OFFER_ID_FOR_AD_ACCOUNT");e.exports=a}),null); __d("AdsImageLoadImagesErrorDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"AdsImageAction.LOAD_IMAGES_ERROR");e.exports=a}),null); __d("AdsLeadGenFormEditorClearValidationStoreActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"AdsLeadGenFormEditorActionTypes.CLEAR_VALIDATION_STORE"}}),null); __d("AdsLeadGenFormEditorContextCardSetCanvasValidationResultActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"leadGenFormEditorContextCardSetCanvasValidationResult"}}),null); __d("AdsLeadGenFormEditorDraftFormSaveFailedActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"leadGenFormEditorDraftFormSaveFailed"}}),null); __d("AdsLeadGenFormEditorFormPublishFailedActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"leadGenFormEditorFormPublishFailed"}}),null); __d("AdsLeadGenFormEditorQuestionsConditionalAnswerSetUploadStartActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"leadGenFormEditorQuestionsConditionalAnswerSetUploadStart"}}),null); __d("AdsLeadGenFormEditorValidateFormAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"leadGenFormEditorValidateForm");e.exports=a}),null); __d("AdsLeadGenFormEditorValidateFormActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"leadGenFormEditorValidateForm"}}),null); __d("AdsProductSetBatchDeletedDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"PRODUCT_SET.BATCH_DELETED"}}),null); __d("AdsProductSetCreatedActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"AdsProductSetCreatedActionPlugin"}}),null); __d("AdsProductSetListBatchLoadErrorDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"PRODUCT_SET.LIST.BATCH_LOAD_ERROR");e.exports=a}),null); __d("AdsProductSetListBatchLoadErrorDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"PRODUCT_SET.LIST.BATCH_LOAD_ERROR"}}),null); __d("AdsProductSetListBatchLoadedDataAction",["Laminar","ifRequired"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("ifRequired")("AdsCFAdgroupProductSetListBatchLoadedReducerPlugin",function(a){return b("ifRequired")("AdsCFAdgroupDataProvider",function(c){return b("Laminar").__createReducer(a,c,{})})})]},function(){return[]},"PRODUCT_SET.LIST.BATCH_LOADED");e.exports=a}),null); __d("AdsProductSetListBatchLoadedDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"PRODUCT_SET.LIST.BATCH_LOADED"}}),null); __d("AdsProductSetListLoadErrorDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"PRODUCT_SET.LIST.LOAD_ERROR"}}),null); __d("AdsProductSetListLoadedDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"PRODUCT_SET.LIST.LOADED"}}),null); __d("AdsProductSetListPartialLoadDataAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"PRODUCT_SET.LIST.PARTIAL_LOAD");e.exports=a}),null); __d("AdsProductSetListPartialLoadDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"PRODUCT_SET.LIST.PARTIAL_LOAD"}}),null); __d("AdsSlideshowCreateDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"CREATE"}}),null); __d("AdsSlideshowCreateResetDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"CREATE_RESET"}}),null); __d("AdsSlideshowResetAllDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"RESET_ALL"}}),null); __d("DynamicInstantAdsDialogStateRecord",["immutable"],(function(a,b,c,d,e,f){"use strict";a=b("immutable").Record({mainDialogState:"",pageSetupNotice:"",pixelSetupNotice:"",setupDialogState:0,setupDialogStateMax:-1,feedRefreshState:""});c=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}return b}(a);e.exports=c}),null); __d("DynamicInstantAdsDialogProviderPlugin",["DynamicInstantAdsDialogStateRecord"],(function(a,b,c,d,e,f){"use strict";a=function(){return new(b("DynamicInstantAdsDialogStateRecord"))()};c={initialState:a()};e.exports=c}),null); __d("DynamicInstantAdsDialogProvider",["Laminar","DynamicInstantAdsDialogProviderPlugin"],(function(a,b,c,d,e,f){"use strict";e.exports=b("Laminar").__createProvider(b("DynamicInstantAdsDialogProviderPlugin"),"DynamicInstantAdsDialogProviderPlugin")}),null); __d("PartnerIntegrationSelectedAdAccountIDDataProviderPlugin",[],(function(a,b,c,d,e,f){"use strict";a={initialState:null};e.exports=a}),null); __d("PartnerIntegrationSelectedAdAccountIDDataProvider",["Laminar","PartnerIntegrationSelectedAdAccountIDDataProviderPlugin"],(function(a,b,c,d,e,f){"use strict";e.exports=b("Laminar").__createProvider(b("PartnerIntegrationSelectedAdAccountIDDataProviderPlugin"),"PartnerIntegrationSelectedAdAccountIDDataProviderPlugin")}),null); __d("ProductsProductSetBatchLoadErrorAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"ProductCatalog.PRODUCT_SET.BATCH_LOAD_ERROR");e.exports=a}),null); __d("ProductsProductSetBatchLoadedAction",["Laminar"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[]},function(){return[]},"ProductCatalog.PRODUCT_SET.BATCH_LOADED");e.exports=a}),null); __d("BillingCometOnBlueUtilIsEnabledForRagnarokQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"LocalArgument",name:"paymentAccountID",type:"ID!",defaultValue:null},{kind:"LocalArgument",name:"country_override",type:"String",defaultValue:null}],b=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],c={kind:"ScalarField",alias:null,name:"is_enabled_for_ragnarok",args:[{kind:"Variable",name:"country_override",variableName:"country_override"}],storageKey:null};return{kind:"Request",fragment:{kind:"Fragment",name:"BillingCometOnBlueUtilIsEnabledForRagnarokQuery",type:"Query",metadata:null,argumentDefinitions:a,selections:[{kind:"LinkedField",alias:null,name:"billable_account_by_payment_account",storageKey:null,args:b,concreteType:null,plural:!1,selections:[c]}]},operation:{kind:"Operation",name:"BillingCometOnBlueUtilIsEnabledForRagnarokQuery",argumentDefinitions:a,selections:[{kind:"LinkedField",alias:null,name:"billable_account_by_payment_account",storageKey:null,args:b,concreteType:null,plural:!1,selections:[{kind:"ScalarField",alias:null,name:"__typename",args:null,storageKey:null},c,{kind:"ScalarField",alias:null,name:"id",args:null,storageKey:null}]}]},params:{operationKind:"query",name:"BillingCometOnBlueUtilIsEnabledForRagnarokQuery",id:"2555767914473934",text:null,metadata:{}}}}();e.exports=a}),null); __d("AdsPaymentsFlowPlacement",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({UNSETTLED:"unsettled",FUNDING_PAGE:"funding_page",CREATE_FLOW:"create_flow",PAGE_NAX:"page_nax",CF_COUPON_MEGAPHONE:"cf_coupon_megaphone",BOOSTED_POST:"boosted_post",BOOSTED_JOB_POST:"boosted_job_post",BOOSTED_APP:"boosted_app",BOOSTED_PAGE:"boosted_page",BOOSTED_PAGE_LIKE:"boosted_page_like",BOOSTED_PAGE_LIKE_PAGE_NAX:"boosted_page_like_page_nax",BOOSTED_CCTA:"boosted_ccta",BOOSTED_LEAD_GEN:"boosted_lead_gen",BOOSTED_WEBSITE:"boosted_website",BOOSTED_LOCALAWARENESS:"boosted_localawareness",BOOSTED_AUTOMATED_ADS:"boosted_automated_ads",BOOSTED_MARKETPLACE_LISTING:"boosted_marketplace_listing",GRACE_PERIOD:"grace_period",MARKETING_PAYMENT_METHOD:"marketing_payment_method",PAY_NOW:"pay_now",BOOSTED_TOUR:"boosted_tour",BOOSTED_REAL_ESTATE_LISTING:"boosted_real_estate_listing",CREATE_FROM_NOTIFICATION:"create_from_notification",BRAZIL_PRIMARY_AMEX_MEGAPHONE:"brazil_primary_amex_megaphone",CM_PAYMENT_METHODS_TAB:"cm_payment_methods_tab",MIGRATE_TO_POSTPAY:"migrate_to_postpay",POWER_EDITOR_PUBLISH:"power_editor_publish",AYMT_HOME_PAGE_PANEL:"aymt_home_page_panel",AYMT_PAGE_ADMIN_MEGAPHONE:"aymt_page_admin_megaphone",AYMT_CAMPAIGN_MANAGER_MEGAPHONE:"aymt_campaign_manager_megaphone",BM_PAYMENT_METHODS_PANE:"bm_payment_methods_pane",BM_AEC_APPLICATION_PM:"bm_aec_application_pm",BM_PAY_INVOICE:"bm_pay_invoice",BOOSTED_POST_MSITE:"boosted_post_msite",MSITE_BILLING_MANAGER:"msite_billing_manager",MSITE_UNSETTLED:"msite_unsettled",IG_BOOSTED_POST:"ig_boosted_post",IG_PAYMENT_MANAGER:"ig_payment_manager",IG_UNSETTLED:"ig_unsettled",FBLITE_LWI:"fblite_lwi",NATIVE_MOBILE:"native_mobile",COUNTRY_CHANGE:"country_change",TAX_INFO_AYMT:"tax_info_aymt",LWI_PUX:"lwi_pux",CF_PUX:"cf_pux",WORKPLACE_NOTICE_ON_DASHBOARD:"dashboard",WORKPLACE_NOTICE_ON_HOME_PAGE:"home_page",WORKPLACE_SETTINGS_PAGE:"settings_page",ADS_SUPPORT_ADD_PAYMENT_METHOD:"ads_support_add_payment_method",ADS_SUPPORT_PAY_NOW:"ads_support_pay_now",AD_COUPON_INTERSTITIAL_INLINE:"ad_coupon_interstitial_inline",AD_ADD_PAYMENT_METHOD_FOR_COUPON:"ad_add_payment_method_for_coupon"})}),null); __d("AdsPaymentFlowBanzaiEventTypes",[],(function(a,b,c,d,e,f){"use strict";a={FACEBOOK:"facebook",PROVIDER:"provider",USER:"user"};e.exports=a}),null); __d("AdsPaymentFlowBanzaiEvents",[],(function(a,b,c,d,e,f){"use strict";a={AGENCY_REPRESENTING_CLIENT_CHANGED:"agency_representing_client_changed",BRAZIL_POSTAL_CODE_FAILURE:"brazil_postal_code_failure",BRAZIL_POSTAL_CODE_SUBMITTED:"brazil_postal_code_submitted",BRAZIL_POSTAL_CODE_SUCCESS:"brazil_postal_code_success",CALCULATE_ALTPAY_FEE_FAILURE:"calculate_altpay_fee_failure",CALCULATE_ALTPAY_FEE_SUCCESS:"calculate_altpay_fee_success",CANCEL_PWMB_IFRAME:"cancel_pwmb_iframe",CLOSED_PAYMENT_METHOD_POPUP:"closed_payment_method_popup",COUPON_CHECKBOX_CHANGED:"coupon_checkbox_changed",COUPON_CODE_ERROR:"coupon_code_error",COUPON_CODE_SUBMITTED:"coupon_code_submitted",COUPON_CODE_SUCCESS:"coupon_code_success",DISCLAIMER_CHECKBOX_CHANGED:"disclaimer_checkbox_changed",FAILED_CLIENT_FIELDS_VALIDATIONS:"failed_client_fields_validations",FLOW_CANCELLED:"flow_cancelled",FLOW_COUNTRY_CHANGED:"flow_country_changed",FLOW_CURRENCY_CHANGED:"flow_currency_changed",HELP_TRAY_CLOSED:"help_tray_closed",HELP_TRAY_OPENED:"help_tray_opened",HELP_TRAY_SEARCHED:"help_tray_searched",IFRAME_SET_SIZE:"iframe_set_size",INIT_COUNTRY_DROPDOWN:"init_country_dropdown",INIT_COUPON_CHECKBOX:"init_coupon_checkbok",INIT_CURRENCY_DROPDOWN:"init_currency_dropdown",INIT_DIRECT_DEBIT_FORM:"init_direct_debit_form",INIT_SELECT_PM_BUTTON:"init_select_pm_button",INIT_SELECT_PM_FORM:"init_select_pm_form",MSITE_BILLING_COUNTRY_LINK_CLICKED:"msite_billing_country_link_clicked",MSITE_INIT_COUNTRY_SELECTOR:"msite_init_country_selector",OPEN_PAYMENT_METHOD_POPUP:"open_payment_method_popup",PASSED_CLIENT_FIELDS_VALIDATIONS:"passed_client_fields_validations",PAYMENT_METHOD_CHANGED:"payment_method_changed",PAYPAL_BUTTON_CLICKED:"paypal_button_clicked",PROCESS_ALTPAY_IFRAME_RESPONSE:"process_altpay_iframe_response",PROCESS_POPUP_RESPONSE:"process_popup_response",RENDER_CREDIT_CARD_FORM:"render_credit_card_form",SAVE_CREDIT_CARD_API_FAIL:"save_credit_card_api_fail",SAVE_CREDIT_CARD_API_SUCCESS:"save_credit_card_api_success",SAVE_DIRECT_DEBIT_FAILURE:"save_direct_debit_failure",SAVE_DIRECT_DEBIT_SUCCESS:"save_direct_debit_success",SAVE_PAYMENT_METHODS_SEEN:"save_payment_methods_seen",SUBMIT_BUSINESS_INFO_FORM:"submit_business_info_form",SUBMIT_CALCULATE_ALTPAY_FEE:"submit_calculate_altpay_fee",SUBMIT_CLIENT_BUSINESS_INFO_FORM:"submit_client_business_info_form",SUBMIT_CREDIT_CARD_FORM:"submit_credit_card_form",SUBMIT_CREDIT_CARD_FORM_STATE:"submit_credit_card_form_state",SUBMIT_DEFERRED_CREDENTIAL_FORM:"submit_deferred_credential_form",SUBMIT_DIRECT_DEBIT_FORM:"submit_direct_debit_form",SUBMIT_DISCLAIMER_STATE:"submit_disclaimer_state",SUBMIT_NEW_MOBILE_FORM:"submit_new_mobile_form",SUBMIT_PREPAID_AMOUNT_FORM:"submit_prepaid_amount_form",SUBMIT_PWMB_IFRAME_RESPONSE:"submit_pwmb_iframe_response",SUBMIT_SELECT_STATE:"submit_select_state",SUBMIT_TAX_ADDRESS_FORM:"submit_tax_address_form",SUBMIT_TAX_ID_FORM:"submit_tax_id_form",VALIDATE_IBAN_FAILURE:"validate_iban_failure",VALIDATE_IBAN_SUCCESS:"validate_iban_success"};e.exports=a}),null); __d("AdsPaymentFlowBanzaiLogger",["Banzai"],(function(a,b,c,d,e,f){"use strict";var g={log:function(a,b,c,d,e,f){g.logFull(a,b,c,d,e,null,f)},logFull:function(a,c,d,e,f,g,h){b("Banzai").post("ads_payments_flow",{event_name:a,event_type:c,context_id:d.toString(),state_count:e,selected_method:f,payment_methods_seen:g,extra_data:h,client_event_time_ms:Date.now()},b("Banzai").VITAL)}};e.exports=g}),null); __d("XPaymentsCreditCardMutatorController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/payments/credit_card/mutator/{mutation_type}/",{mutation_type:{type:"Enum",enumType:1}})}),null); __d("XPaymentsCreditCardMutatorParam",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({AUTH_LOG_ID:"auth_log_id",MUTATION_TYPE:"mutation_type",CARD_FBID:"cc_fbid",CACHE_TOKEN:"cache_token",ERRORS:"errors",GENERAL_ERROR:"general",FIELD_ERRORS:"fields",ERROR_CODE:"code",ERROR_MSG:"message",ERROR_TITLE:"title"})}),null); __d("XPaymentsDirectDebitMutatorController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/payments/direct_debit/mutator/",{})}),null); __d("PaymentsAPIBase",["PaymentTokenProxyUtils","URI","XPaymentsCreditCardMutatorController","XPaymentsCreditCardMutatorParam","XPaymentsDirectDebitMutatorController"],(function(a,b,c,d,e,f){__p&&__p();a=function(){"use strict";__p&&__p();function a(){}var c=a.prototype;c.createPayment=function(a,c){var d=b("XPaymentsCreditCardMutatorController").getURIBuilder().setEnum("mutation_type","create").getURI().getPath();d=b("PaymentTokenProxyUtils").getURI({tpe:d});if(!b("URI").getRequestURI().isSecure())throw new Error("Operation must be performed via HTTPS");a.creditCardNumber&&(a.creditCardNumber=a.creditCardNumber.replace(/[\D]/g,""));var e=a.exp;e&&e.indexOf("/")>-1&&(delete a.exp,a["exp[month]"]=Number(e.substr(0,2)),a["exp[year]"]=Number(e.substr(3,2)));this.sendRequest(d,!0,a||{},c)};c.updateCreditCard=function(a,c){__p&&__p();if(!a.cc_fbid)throw new Error("Cannot update card without the FBID");var d=b("XPaymentsCreditCardMutatorController").getURIBuilder().setEnum("mutation_type","update").getURI().getPath();d=b("PaymentTokenProxyUtils").getURI({tpe:d});if(!b("URI").getRequestURI().isSecure())throw new Error("Operation must be performed via HTTPS");a=babelHelpers["extends"]({},a);delete a.creditCardNumber;var e=a.exp;e&&e.indexOf("/")>-1&&(delete a.exp,a["exp[month]"]=Number(e.substr(0,2)),a["exp[year]"]=Number(e.substr(3,2)));this.sendRequest(d,!0,a||{},c)};c.createDirectDebit=function(a,c){var d=b("XPaymentsDirectDebitMutatorController").getURIBuilder().getURI().getPath();d=b("PaymentTokenProxyUtils").getURI({tpe:d});this.sendRequest(d,!0,a||{},c)};c.cacheCVV=function(a,c){var d=b("XPaymentsCreditCardMutatorController").getURIBuilder().setEnum("mutation_type","cache_cvv").getURI().getPath();d=b("PaymentTokenProxyUtils").getURI({tpe:d});if(!b("URI").getRequestURI().isSecure())throw new Error("Operation must be performed via HTTPS");this.sendRequest(d,!0,a||{},c)};c.sendRequest=function(a,b,c,d){};return a}();e.exports=a}),null); __d("PaymentsAPI",["AsyncRequest","PaymentsAPIBase"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.sendRequest=function(a,c,d,e){new(b("AsyncRequest"))().setAllowCrossOrigin(!0).setURI(a).setData(d||{}).setHandler(e).send()};return c}(b("PaymentsAPIBase"));e.exports=new a()}),null); __d("AdsPaymentsFlowAPIBase",["PaymentsAPI","XCommerceResponse"],(function(a,b,c,d,e,f){__p&&__p();a=function(){"use strict";__p&&__p();function a(){}var c=a.prototype;c.saveCreditCard=function(a){var c=function(c){c=new(b("XCommerceResponse"))(c.payload);c.getPayload().cc_fbid?a.success&&a.success(c):a.error&&a.error(c)};b("PaymentsAPI").createPayment(a.data,c)};c.updateCreditCard=function(a){var c=function(c){c=new(b("XCommerceResponse"))(c.payload);c.getPayload().cc_fbid?a.success&&a.success(c):a.error&&a.error(c)};b("PaymentsAPI").updateCreditCard(a.data,c)};c.sendCVV=function(a){var c=function(c){c=new(b("XCommerceResponse"))(c.payload);c.getPayload().cache_token?a.success&&a.success(c):a.error&&a.error(c)};b("PaymentsAPI").cacheCVV(a.data,c)};return a}();e.exports=a}),null); /** * License: https://www.facebook.com/legal/license/qBMnyyYpBvB/ */ __d("IBAN_JS",[],(function(a,b,c,d,e,f){__p&&__p();(function(a){__p&&__p();Array.prototype.map||(Array.prototype.map=function(a){"use strict";__p&&__p();if(this===void 0||this===null)throw new TypeError();var b=Object(this),c=b.length>>>0;if(typeof a!=="function")throw new TypeError();var d=new Array(c),e=arguments.length>=2?arguments[1]:void 0;for(var f=0;f=b&&d<=c)return d-b+10;else return a}).join("")}function e(a){a=a;var b;while(a.length>2)b=a.slice(0,9),a=parseInt(b,10)%97+a.slice(b.length);return parseInt(a,10)%97}function g(a){__p&&__p();a=a.match(/(.{3})/g).map(function(a){__p&&__p();var b,c=a.slice(0,1);a=parseInt(a.slice(1),10);switch(c){case"A":b="0-9A-Za-z";break;case"B":b="0-9A-Z";break;case"C":b="A-Za-z";break;case"F":b="0-9";break;case"L":b="a-z";break;case"U":b="A-Z";break;case"W":b="0-9a-z";break}return"(["+b+"]{"+a+"})"});return new RegExp("^"+a.join("")+"$")}function h(a,b,c,d){this.countryCode=a,this.length=b,this.structure=c,this.example=d}h.prototype._regex=function(){return this._cachedRegex||(this._cachedRegex=g(this.structure))};h.prototype.isValid=function(a){return this.length==a.length&&this.countryCode===a.slice(0,2)&&this._regex().test(a.slice(4))&&e(d(a))==1};h.prototype.toBBAN=function(a,b){return this._regex().exec(a.slice(4)).slice(1).join(b)};h.prototype.fromBBAN=function(a){if(!this.isValidBBAN(a))throw new Error("Invalid BBAN");var b=e(d(this.countryCode+"00"+a));b=("0"+(98-b)).slice(-2);return this.countryCode+b+a};h.prototype.isValidBBAN=function(a){return this.length-4==a.length&&this._regex().test(a)};var i={};function j(a){i[a.countryCode]=a}j(new h("AD",24,"F04F04A12","AD1200012030200359100100"));j(new h("AE",23,"F03F16","AE070331234567890123456"));j(new h("AL",28,"F08A16","AL47212110090000000235698741"));j(new h("AT",20,"F05F11","AT611904300234573201"));j(new h("AZ",28,"U04A20","AZ21NABZ00000000137010001944"));j(new h("BA",20,"F03F03F08F02","BA391290079401028494"));j(new h("BE",16,"F03F07F02","BE68539007547034"));j(new h("BG",22,"U04F04F02A08","BG80BNBG96611020345678"));j(new h("BH",22,"U04A14","BH67BMAG00001299123456"));j(new h("BR",29,"F08F05F10U01A01","BR9700360305000010009795493P1"));j(new h("CH",21,"F05A12","CH9300762011623852957"));j(new h("CR",21,"F03F14","CR0515202001026284066"));j(new h("CY",28,"F03F05A16","CY17002001280000001200527600"));j(new h("CZ",24,"F04F06F10","CZ6508000000192000145399"));j(new h("DE",22,"F08F10","DE89370400440532013000"));j(new h("DK",18,"F04F09F01","DK5000400440116243"));j(new h("DO",28,"U04F20","DO28BAGR00000001212453611324"));j(new h("EE",20,"F02F02F11F01","EE382200221020145685"));j(new h("ES",24,"F04F04F01F01F10","ES9121000418450200051332"));j(new h("FI",18,"F06F07F01","FI2112345600000785"));j(new h("FO",18,"F04F09F01","FO6264600001631634"));j(new h("FR",27,"F05F05A11F02","FR1420041010050500013M02606"));j(new h("GB",22,"U04F06F08","GB29NWBK60161331926819"));j(new h("GE",22,"U02F16","GE29NB0000000101904917"));j(new h("GI",23,"U04A15","GI75NWBK000000007099453"));j(new h("GL",18,"F04F09F01","GL8964710001000206"));j(new h("GR",27,"F03F04A16","GR1601101250000000012300695"));j(new h("GT",28,"A04A20","GT82TRAJ01020000001210029690"));j(new h("HR",21,"F07F10","HR1210010051863000160"));j(new h("HU",28,"F03F04F01F15F01","HU42117730161111101800000000"));j(new h("IE",22,"U04F06F08","IE29AIBK93115212345678"));j(new h("IL",23,"F03F03F13","IL620108000000099999999"));j(new h("IS",26,"F04F02F06F10","IS140159260076545510730339"));j(new h("IT",27,"U01F05F05A12","IT60X0542811101000000123456"));j(new h("KW",30,"U04A22","KW81CBKU0000000000001234560101"));j(new h("KZ",20,"F03A13","KZ86125KZT5004100100"));j(new h("LB",28,"F04A20","LB62099900000001001901229114"));j(new h("LI",21,"F05A12","LI21088100002324013AA"));j(new h("LT",20,"F05F11","LT121000011101001000"));j(new h("LU",20,"F03A13","LU280019400644750000"));j(new h("LV",21,"U04A13","LV80BANK0000435195001"));j(new h("MC",27,"F05F05A11F02","MC5811222000010123456789030"));j(new h("MD",24,"U02F18","MD24AG000225100013104168"));j(new h("ME",22,"F03F13F02","ME25505000012345678951"));j(new h("MK",19,"F03A10F02","MK07250120000058984"));j(new h("MR",27,"F05F05F11F02","MR1300020001010000123456753"));j(new h("MT",31,"U04F05A18","MT84MALT011000012345MTLCAST001S"));j(new h("MU",30,"U04F02F02F12F03U03","MU17BOMM0101101030300200000MUR"));j(new h("NL",18,"U04F10","NL91ABNA0417164300"));j(new h("NO",15,"F04F06F01","NO9386011117947"));j(new h("PK",24,"U04A16","PK36SCBL0000001123456702"));j(new h("PL",28,"F08F16","PL61109010140000071219812874"));j(new h("PS",29,"U04A21","PS92PALS000000000400123456702"));j(new h("PT",25,"F04F04F11F02","PT50000201231234567890154"));j(new h("RO",24,"U04A16","RO49AAAA1B31007593840000"));j(new h("RS",22,"F03F13F02","RS35260005601001611379"));j(new h("SA",24,"F02A18","SA0380000000608010167519"));j(new h("SE",24,"F03F16F01","SE4550000000058398257466"));j(new h("SI",19,"F05F08F02","SI56263300012039086"));j(new h("SK",24,"F04F06F10","SK3112000000198742637541"));j(new h("SM",27,"U01F05F05A12","SM86U0322509800000000270100"));j(new h("TN",24,"F02F03F13F02","TN5910006035183598478831"));j(new h("TR",26,"F05A01A16","TR330006100519786457841326"));j(new h("VG",24,"U04F16","VG96VPVG0000012345678901"));j(new h("AO",25,"F21","AO69123456789012345678901"));j(new h("BF",27,"F23","BF2312345678901234567890123"));j(new h("BI",16,"F12","BI41123456789012"));j(new h("BJ",28,"F24","BJ39123456789012345678901234"));j(new h("CI",28,"U01F23","CI17A12345678901234567890123"));j(new h("CM",27,"F23","CM9012345678901234567890123"));j(new h("CV",25,"F21","CV30123456789012345678901"));j(new h("DZ",24,"F20","DZ8612345678901234567890"));j(new h("IR",26,"F22","IR861234568790123456789012"));j(new h("JO",30,"A04F22","JO15AAAA1234567890123456789012"));j(new h("MG",27,"F23","MG1812345678901234567890123"));j(new h("ML",28,"U01F23","ML15A12345678901234567890123"));j(new h("MZ",25,"F21","MZ25123456789012345678901"));j(new h("QA",29,"U04A21","QA30AAAA123456789012345678901"));j(new h("SN",28,"U01F23","SN52A12345678901234567890123"));j(new h("UA",29,"F25","UA511234567890123456789012345"));var k=/[^a-zA-Z0-9]/g,l=/(.{4})(?!$)/g;function m(a){return typeof a=="string"||a instanceof String}a.isValid=function(a){if(!m(a))return!1;a=this.electronicFormat(a);var b=i[a.slice(0,2)];return!!b&&b.isValid(a)};a.toBBAN=function(a,b){typeof b=="undefined"&&(b=" ");a=this.electronicFormat(a);var c=i[a.slice(0,2)];if(!c)throw new Error("No country with code "+a.slice(0,2));return c.toBBAN(a,b)};a.fromBBAN=function(a,b){var c=i[a];if(!c)throw new Error("No country with code "+a);return c.fromBBAN(this.electronicFormat(b))};a.isValidBBAN=function(a,b){if(!m(b))return!1;a=i[a];return a&&a.isValidBBAN(this.electronicFormat(b))};a.printFormat=function(a,b){typeof b=="undefined"&&(b=" ");return this.electronicFormat(a).replace(l,"$1"+b)};a.electronicFormat=function(a){return a.replace(k,"").toUpperCase()};a.countries=i})(typeof f=="undefined"?this.IBAN_JS={}:f)}),null); __d("XAdsPaymentCheckZipCodeNeededController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/fbpayments/flows/ads_payment/zip_needed/",{cc_bin:{type:"String",required:!0}})}),null); __d("XAdsPaymentDialogActionController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/fbpayments/flows/payment/dialog_action/",{altpay_method_name:{type:"String"},prepay_shortcut_flow:{type:"Bool",defaultValue:!1},dd_shortcut_flow:{type:"Bool",defaultValue:!1},campaign_budget_amount:{type:"Int"},campaign_budget_currency:{type:"String"},campaign_budget_type:{type:"String"},campaign_end_time:{type:"String"},campaign_start_time:{type:"String"},campaign_length_in_days:{type:"Int"},is_edit_mode:{type:"Bool",defaultValue:!1},credential_id:{type:"Int"},show_existing_coupon:{type:"Bool",defaultValue:!1},coupon_code:{type:"String"},product_name:{type:"String",defaultValue:""},shortcut_charge_flow:{type:"Bool",defaultValue:!1},funding_id:{type:"Int"},payment_method_type:{type:"String",defaultValue:""},country_code:{type:"String"},selected_payment_method:{type:"String"},payment_method_id:{type:"Int"},back_press:{type:"Bool",defaultValue:!1},selected_country:{type:"String"},selected_currency:{type:"String"},coupon_checkbox:{type:"Bool",defaultValue:!1},selected_credit_card_bank:{type:"String"},low_balance_flow:{type:"Bool",defaultValue:!1},coupon_offer_id:{type:"FBID"},external_flow_id:{type:"String"},authorize_payment_method:{type:"Bool",defaultValue:!1},is_from_support:{type:"Bool",defaultValue:!1},source_support_form_id:{type:"Int",defaultValue:0},start_india_migration:{type:"Bool",defaultValue:!1},is_add_prepay_shortcut_flow:{type:"Bool",defaultValue:!1},boosted_specs:{type:"String"},page_id:{type:"Int"},campaign_app_id:{type:"Int"},campaign_post_id:{type:"Int"},campaign_title:{type:"String"},campaign_image_url:{type:"String"},campaign_lower_est_reach:{type:"Int"},campaign_upper_est_reach:{type:"Int"},campaign_group_id:{type:"Int"},campaign_prev_balance:{type:"Int"},checkout_add_pm_no_charge:{type:"Bool",defaultValue:!1},is_lwi_v1:{type:"Bool",defaultValue:!0},success_uri:{type:"String"},failure_uri:{type:"String"},cancel_uri:{type:"String"},show_country_selector:{type:"Bool",defaultValue:!1},is_payer_protection_link:{type:"Bool",defaultValue:!1},provider_pending:{type:"Bool",defaultValue:!1},provider_cancel:{type:"Bool",defaultValue:!1},provider_error:{type:"Bool",defaultValue:!1},provider_error_code:{type:"Int"},provider_error_message:{type:"String",defaultValue:""},locale:{type:"String"},runtime_is_comet:{type:"Bool",defaultValue:!1},context_id:{type:"Int"},state_count:{type:"Int"},cc_cache_token:{type:"String"},auth_log_id:{type:"Int"},paypal_cib:{type:"Bool",defaultValue:!1},paypal_token:{type:"String"},paypal_fb_entity:{type:"String"},payment_option:{type:"String"},skip_coupon:{type:"Bool",defaultValue:!1},change_payment_method:{type:"Bool",defaultValue:!1},provider_success:{type:"Bool",defaultValue:!1},brazil_tax_id:{type:"String"},start_graduation_flow:{type:"Bool",defaultValue:!1},skip_flow:{type:"Bool",defaultValue:!1},coupon_id:{type:"Int"},coupon_code_string:{type:"String"},change_currency_country:{type:"Bool",defaultValue:!1},business_name:{type:"String"},address_street1:{type:"String"},address_street_number:{type:"String"},address_street2:{type:"String"},address_neighborhood:{type:"String"},address_city:{type:"String"},address_postal_code:{type:"String"},address_state:{type:"String"},address_country:{type:"String"},eu_vat_country:{type:"String"},eu_vat_number:{type:"String"},business_ads_for_client:{type:"Bool",defaultValue:!1},business_target_france:{type:"Bool",defaultValue:!1},business_who_pays_facebook:{type:"String"},business_client_company_name:{type:"String"},business_client_email_address:{type:"String"},business_mandate_received:{type:"Bool",defaultValue:!1},disclaimer_decision:{type:"Bool",defaultValue:!1},disclaimer_checkbox:{type:"Bool",defaultValue:!1},amount_decision:{type:"Bool",defaultValue:!1},prepaid_amount:{type:"String",defaultValue:""},msisdn:{type:"String"},is_amount_edited:{type:"Bool",defaultValue:!1},payment_account_verified:{type:"Bool",defaultValue:!1},pwmb_notification_success:{type:"Bool",defaultValue:!1},redirect_url_type:{type:"String"},pwmb_transaction_id:{type:"String"},pwmb_transaction_type:{type:"String"},pwmb_redirection_type:{type:"String"},merchant_reference:{type:"String"},pwmb_retrieval_status:{type:"String"},request_signature:{type:"String"},pwmb_redirect_url:{type:"String"},pwmb_entry_method:{type:"String"},transaction_id_3ds2:{type:"String"},reference_id_3ds2:{type:"String"},success_3ds2:{type:"String"},iframe_3ds_payload:{type:"String"},iframe_3ds_token:{type:"String"},iframe_3ds_success:{type:"String"},"3ds_error_code":{type:"String"},"3ds_error_message":{type:"String"},hec_response:{type:"String"},confirm_purchase:{type:"Bool",defaultValue:!1},tax_id:{type:"String"},tax_id_type:{type:"Enum",enumType:0},amount_entered:{type:"Int",defaultValue:0},new_ad_account:{type:"Int"},add_payment_method:{type:"Bool",defaultValue:!1},lock_into_prepay:{type:"Bool",defaultValue:!1},card_charge_mode:{type:"Enum",enumType:0},amount_entered_list:{type:"IntVector"},payment_method_id_list:{type:"IntVector"},card_charge_mode_list:{type:"EnumVector",enumType:{member:0}}})}),null); __d("AdsPaymentsFlowAPI",["cx","fbt","AdsPaymentsFlowAPIBase","AsyncRequest","CSS","DirectDebitMandateGeoType","DOM","IBAN_JS","PaymentsAPI","React","ReactDOM","XAdsPaymentCheckZipCodeNeededController","XAdsPaymentDialogActionController","XCommerceResponse","XUINotice.react","XUINoticeGroup.react","$"],(function(a,b,c,d,e,f,g,h){__p&&__p();var i=!0;a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.checkIsZipCodeRequired=function(a,c){a=b("XAdsPaymentCheckZipCodeNeededController").getURIBuilder().setString("cc_bin",a).getURI();new(b("AsyncRequest"))(a).setHandler(c).setErrorHandler(c).send()};d.handleCreateDirectDebitSaveSuccess=function(a,c,d){a=b("XAdsPaymentDialogActionController").getURIBuilder().setInt("context_id",a).setInt("state_count",c).setInt("payment_method_id",d).getURI();new(b("AsyncRequest"))().setURI(a).send()};d.showAccountNumberError=function(){var a=b("$")("XPaymentDialogBody"),c=h._("We couldn't verify this account number. Please check the number and try again.");this.showFieldError(a,"bankAccountNumber",c)};d.showFieldError=function(a,c,d){a=b("DOM").find(a,'input[name="'+c+'"]');b("DOM").setAttributes(a,{"data-xui-error":d,"data-xui-error-position":"above"});b("CSS").addClass(a,"_1tp7")};d.handleCreateDirectDebitSaveError=function(a){__p&&__p();var c=b("$")("XPaymentDialogBody");if(a.hasGeneralError()){var d;a.getGeneralError().message.__html?d=b("React").createElement("div",{dangerouslySetInnerHTML:a.getGeneralError().message}):d=a.getGeneralError().message;var e=b("$")("AdsPaymentsDirectDebitGeneralError");b("ReactDOM").render(b("React").createElement(b("XUINoticeGroup.react"),null,b("React").createElement(b("XUINotice.react"),{use:"warn"},d)),e)}if(a.hasFieldErrors()){d=a.getFieldErrors();for(var f in d)if(Object.prototype.hasOwnProperty.call(d,f)){e=d[f].message;this.showFieldError(c,f,e)}}};d.validateIBAN=function(a){this.isValidAccountNumber(Number(this.$AdsPaymentsFlowAPI1()),a)?i=!0:(i=!1,this.showAccountNumberError());return i};d.$AdsPaymentsFlowAPI1=function(){var a=b("DOM").scry(b("$")("XPaymentDialog"),"input");for(var c=0,d=a.length;c0&&a.width>0&&g({compatAction:"dialog-resize",newSize:b})}}}),this.$BillingV1BlackBox2=new MutationObserver(function(){var a=document.querySelector('div#XPaymentDialog div[aria-labelledby="u_0_0"]');if(a!=null){a.style.margin="0px";a=a.getBoundingClientRect&&a.getBoundingClientRect();if(a){var b={height:a.height,width:a.width};a.height>0&&a.width>0&&g({compatAction:"dialog-resize",newSize:b})}}}),document.body!=null&&this.$BillingV1BlackBox1.observe(document.body,{attributes:!0,childList:!0,subtree:!0}),document.body!=null&&this.$BillingV1BlackBox2.observe(document.body,{attributes:!0,childList:!0,subtree:!0}))};d.renderComponent=function(a,c,d,e,f){if(!c&&!a)b("react-dom").render(b("react").createElement(b("BillingV1Loader.react"),{done:!0}),this.root,f);else if(!a)b("react-dom").render(b("react").createElement(b("BillingV1Loader.react"),null),this.root,f);else if(a&&d!=null&&e!=null)b("react-dom").render(b("react").createElement(b("react").Fragment,null,b("react").createElement(d,e),b("react").createElement(b("BillingV1Loader.react"),null)),this.root,f);else throw new Error("BillingV1BlackBox.renderComponent callled with invalid params")};d.$BillingV1BlackBox3=function(){__p&&__p();var a=document.querySelectorAll("#XPaymentDialog");a.forEach(function(a){__p&&__p();if(a!=null){a.className+=" hidden_elem";for(var a=a.children,b=Array.isArray(a),c=0,a=b?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var d;if(b){if(c>=a.length)break;d=a[c++]}else{c=a.next();if(c.done)break;d=c.value}d=d;d.removeAttribute("role")}}})};return c}(b("BillingV1BaseBlackBox"));e.exports=new a()}),null); __d("BoostedComponentConstants",[],(function(a,b,c,d,e,f){"use strict";a={DIALOG_MIN_HEIGHT:300,DIALOG_MAX_HEIGHT:600,FOOTER_PANE_HEIGHT:52,DIALOG_WIDTH:940,SMALL_DIALOG_WIDTH:445,LOADING_DIALOG_WIDTH:300,DIALOG_MARGIN:250,LEFT_PANE_WIDTH:400,RIGHT_PANE_WIDTH:540,NARROW_COLUMN_WIDTH:350,WIDE_COLUMN_WIDTH:590,DURATION_SECTION:{CONTINUOUS_OPTION:"continuous",DATE_PICKER_OPTION:"date_picker"},BODY_EDITOR_TEXT_LIMIT:90,HEADLINE_EDITOR_TEXT_LIMIT:25,MIN_FAN_COUNT_FOR_CONNECTIONS_TARGETING:50,BOOSTED_BUTTON_TYPE:{EDIT:"edit",VIEW:"view"},BAD_TEXT_RULES:[/[\^~_=\{\}\[\]\|<>]/g,/[\/!.\\?\-*,;:()]{2,}/g,/^[\/!\.\\?\-\*,:;()]/],MIN_DURATION_FOR_LEAD_GEN:7,LOWERED_MIN_DURATION_FOR_LEAD_GEN:5,MAX_AUDIENCES_IN_SMALL_LIST:5,MAX_NUM_OF_DCO_CREATIVES:6};e.exports=a}),null); __d("DialogAnimationFromDimensions",["DialogExpansion"],(function(a,b,c,d,e,f){__p&&__p();function a(a,c){__p&&__p();var d=function(d){"use strict";__p&&__p();babelHelpers.inheritsLoose(b,d);function b(){return d.apply(this,arguments)||this}var e=b.prototype;e._getWidth=function(){return a};e._getHeight=function(){return c};return b}(b("DialogExpansion"));return d}e.exports={create:a}}),null); __d("AdsPaymentsFormEvents",[],(function(a,b,c,d,e,f){a={SAVE_CREDIT_CARD:"AdsPaymentsCreditCard_SaveCreditCard",SAVE_PAYPAL_CREDENTIALS:"AdsPaymentsPaypal_SavePaypalCredentials",SAVE_CVV:"AdsPaymentCVV_SaveCVV",SAVE_BRAZIL_CPF_ADDRESS:"AdsPaymentsBrazil_SaveCPFAddress",SAVE_AMOUNT:"AdsPaymentLowBalance_SaveAmount"};e.exports=a}),null); __d("CommerceAbstractFormMixin.react",["invariant","DOM","React","ReactDOM","emptyFunction"],(function(a,b,c,d,e,f,g){__p&&__p();a=b("React").PropTypes;var h={autocomplete:"autoComplete",maxlength:"maxLength",tabindex:"tabIndex"};c={ERROR_PREFIX:"3rr0r_",propTypes:{onDataChange:a.func},getDefaultProps:function(){return{onDataChange:b("emptyFunction")}},getFormData:function(){var a={};for(var b in this.state)Object.prototype.hasOwnProperty.call(this.state,b)&&!Object.prototype.hasOwnProperty.call(this.getNonFormData(),b)&&b.substring(0,this.ERROR_PREFIX.length)!==this.ERROR_PREFIX&&(a[b]=this.state[b]);return a},UNSAFE_componentWillMount:function(){this.props.setIsReadyToSubmit&&this.props.setIsReadyToSubmit(this._checkAllInputs(this.getFormData()))},_onChangeSetValue:function(a,c){__p&&__p();this.getConfig&&this.getFormData||g(0,5581,this.constructor.displayName);var d=c.value;!d&&c.target&&("checkbox"===c.target.type?d=c.target.checked:d=c.target.value);var e=this.getFormData();e[a]=d;var f=this.getConfig();if(f&&f[a]&&f[a].normalizeOnChange)this._normalizeInput(a,e);else{var h={};h[a]=d;this.setState(h);this.props.onDataChange(h)}if(f&&f[a]&&f[a].autotabbers){h=f[a].autotabbers;for(var i in h)if(h[i](d,e)){f=b("DOM").scry(b("ReactDOM").findDOMNode(this),'[tabIndex="'+(Number(c.target.tabIndex)+1)+'"]');if(f.length){f[0].focus();break}}}a==="exp[month]"&&e[a].length===2&&this.refs.expYear.focusInput();this.props.setIsReadyToSubmit&&this.props.setIsReadyToSubmit(this._checkAllInputs(e))},_onBlurProcessValue:function(a,b){this.getFormData||g(0,5582,this.constructor.displayName);var c=this.getFormData();c[a]="checkbox"===b.target.type?b.target.checked:b.target.value;this._processInput(a,c)},_onFocusClearError:function(a,b){b={};b[this.ERROR_PREFIX+a]={show:!1,msg:(this.state[this.ERROR_PREFIX+a]||{}).msg};this.setState(b)},_validateAllInputs:function(){__p&&__p();this.getConfig||g(0,5583,this.constructor.displayName);this.getFormData||g(0,5582,this.constructor.displayName);var a=!0;for(var b in this.getConfig()){if(!Object.prototype.hasOwnProperty.call(this.getConfig(),b))continue;var c=this._processInput(b,this.getFormData());c||(a=!1)}return a},_checkAllInputs:function(a){this.getConfig||g(0,5583,this.constructor.displayName);for(var b in this.getConfig()){if(!Object.prototype.hasOwnProperty.call(this.getConfig(),b))continue;if(!this._validateInput(b,a).success)return!1}return!0},_processInput:function(a,b){b[a]=this._normalizeInput(a,b);b=this._validateInput(a,b);var c={},d=!0;b.success?c[this.ERROR_PREFIX+a]={show:!1,msg:null}:(d=!1,c[this.ERROR_PREFIX+a]={show:!0,msg:b.message||""});this.setState(c);return d},_normalizeInput:function(a,b){__p&&__p();this.getConfig||g(0,5583,this.constructor.displayName);var c=this.getConfig()[a];if(!c||!c.normalizers)return;var d=b[a];for(var e in c.normalizers){if(!Object.prototype.hasOwnProperty.call(c.normalizers,e))continue;d=c.normalizers[e](d,b);b[a]=d}c={};c[a]=d;this.setState(c);this.props.onDataChange(c);return d},_validateInput:function(a,b){__p&&__p();this.getConfig||g(0,5583,this.constructor.displayName);var c=this.getConfig()[a];if(!c||!c.validators)return{success:!0,message:null};var d=!0,e=null;for(var f in c.validators){if(!Object.prototype.hasOwnProperty.call(c.validators,f))continue;d=d&&c.validators[f](b[a],b);if(!d){e=c.errors[f];break}}return{success:d,message:e}},_errorAllInputs:function(a,b){this.getConfig||g(0,5583,this.constructor.displayName);var c={},d=this.getConfig();for(var e in d){if(!Object.prototype.hasOwnProperty.call(d,e))continue;var f=d[e].errorKey||e;a&&Object.prototype.hasOwnProperty.call(a,f)?c[this.ERROR_PREFIX+e]={show:!0,msg:a[f][b]}:c[this.ERROR_PREFIX+e]={show:!1,msg:null}}this.setState(c)},_getReactAttributes:function(a){var b={};for(var c in a){if(!Object.prototype.hasOwnProperty.call(a,c))continue;b[h[c]||c]=a[c]}return b}};e.exports=c}),null); __d("SettingsCardTypes",["CSS","DOM"],(function(a,b,c,d,e,f){__p&&__p();var g={},h=[{name:"elo",pattern:/^40117[8-9]/,ccn_length:16,csc_length:3},{name:"mc",pattern:/^5[1-5]|^2(2(2[1-9]|[3-9])|[3-6]|7([01]|20))/,ccn_length:16,csc_length:3},{name:"visa",pattern:/^4/,ccn_length:16,csc_length:3},{name:"amex",pattern:/^3[47]/,ccn_length:15,csc_length:4},{name:"jcb",pattern:/^35(2[8-9]|[3-8])/,ccn_length:16,csc_length:3},{name:"cup",pattern:/^62/,ccn_length:16,csc_length:3},{name:"disc",pattern:/^(6011|64[4-9]|65)/,ccn_length:16,csc_length:3},{name:"rupay",pattern:/^(508[5-9]|60[6-8])/,ccn_length:16,csc_length:3},{name:"diners",pattern:/^30[0-5]/,ccn_length:14,csc_length:3}];function a(a){g[a.id]=this,this.container=a}a.getInstance=function(a){return g[a]};Object.assign(a.prototype,{getCCType:function(a){__p&&__p();a=(""+a).substr(0,6);if(this.isElo(a))return"elo";if((""+a).substr(0,2)==="65"){var b=Number(a);if(b>=652150&&b<=653143)return"rupay";else return"disc"}for(var b=0;b=b[c][0]&&a<=b[c][1])return!0;return!1},getPropertyFromTypeName:function(a,b){for(var c=0;c2){a=a.toLowerCase().replace(/^columbia/,"district of columbia").replace(/^n\.?\s+/,"north ").replace(/^s\.?\s+/,"south ");var c=1e3,d=null;for(var e in b("CommerceUSAStates")){if(!Object.prototype.hasOwnProperty.call(b("CommerceUSAStates"),e))continue;var f=b("CommerceUSAStates")[e].toLowerCase(),g=b("DamerauLevenshtein").DamerauLevenshteinDistance(a,f);a.charAt(0)!==f.charAt(0)&&g++;if(g===0){c=g;d=e;break}else g5?a.substr(0,5)+"-"+a.substr(5):a}},email:function(){return function(a){return a.toLowerCase().replace(/[\s]/g,"")}},creditCardNumber:function(){return function(a){var c=b("PaymentMethodUtils").getCardType(a);return"amex"===c.name?(a.substr(0,4)+" "+a.substr(4,6)+" "+a.substr(10)).trim():(a.substr(0,4)+" "+a.substr(4,4)+" "+a.substr(8,4)+" "+a.substr(12)).trim()}},expirationYear:function(){return function(a){return a.length>0?(parseInt(a,10)%100).toString():""}},expirationSingleField:function(){__p&&__p();return function(a){__p&&__p();if(!a)return"";var b=a.indexOf("/")>=0;a=a.match(g);var c=a&&a.length>=2?a[1]:"";a=a&&a.length>=3?a[2]:"";if(!c&&c!=="0")return"";var d=parseInt(c,10);d=c.length===1&&d>=1&&d<10&&a;d=d?"0":"";if(a===void 0){b=b?"/":"";return""+d+c+b}return""+d+c+"/"+a}}};e.exports=a}),null); __d("CommerceInputValidator",["CommerceUSAStates","CreditCardFormParam","PaymentMethodUtils"],(function(a,b,c,d,e,f){__p&&__p();a={or:function(a,b){return function(c){return a(c)||b(c)}},notEmpty:function(){return function(a){return!!a.trim()}},lengthEquals:function(a){return function(b){return b.length===a}},numberBetween:function(a,b){return function(c){return Number(c)>=a&&Number(c)<=b}},USAState:function(){return function(a){return Object.prototype.hasOwnProperty.call(b("CommerceUSAStates"),"STATE_"+a)}},cardNumber:function(){return function(a,c){return b("PaymentMethodUtils").isValidCCNumber(a)}},cardLength:function(){return function(a,c){c=b("PaymentMethodUtils").getCardType(a);return a.replace(/\D+/g,"").length==c.digits}},CSC:function(){return function(a,c){c=b("PaymentMethodUtils").getCardType(c[b("CreditCardFormParam").CARD_NUMBER]);return a.length==c.cscDigits}},cscByCode:function(){return function(a,c){c=b("PaymentMethodUtils").getCardTypeFromCode(c[b("CreditCardFormParam").CARD_TYPE]);return a.length==c.cscDigits}},expiration:function(){__p&&__p();return function(a,c){__p&&__p();a=b("CreditCardFormParam").CARD_EXPIRATION+"["+b("CreditCardFormParam").MONTH+"]";var d=b("CreditCardFormParam").CARD_EXPIRATION+"["+b("CreditCardFormParam").YEAR+"]";a=c[a];c=c[d];if(!a||!c)return!0;a==="12"?(a="1",c=(parseInt(c,10)+1).toString()):a=(parseInt(a,10)+1).toString();d=new Date().getFullYear().toString().substring(0,2);c=2===c.length?d+c:c;d=new Date(c,Math.max(a-1,0));return d.getTime()>Date.now()}},expirationSingleField:function(){return function(a){var b=Number(a.substr(0,2));a=Number(a.substr(3,2));if(b<1||b>12)return!1;b==12?(b=1,a++):b++;a=new Date(2e3+a,Math.max(b-1,0));return a.getTime()>Date.now()}},email:function(){return function(a){var b=a.indexOf("@");a=a.lastIndexOf(".");return b>0&&a>b}}};e.exports=a}),null); __d("AdsPaymentsFormConfig",["AdsPaymentsFormInputSpec","CommerceErrorCode","CommerceInputNormalizer","CommerceInputValidator","PaymentMethodUtils"],(function(a,b,c,d,e,f){__p&&__p();var g="exp[month]",h="exp[year]";a=function(a){__p&&__p();var c={},d=function(a){return b("AdsPaymentsFormInputSpec").creditCard[a]||{}};c.creditCardNumber={attributes:d("creditCardNumber"),normalizers:[b("CommerceInputNormalizer").numericize()],autotabbers:{cardLength:b("CommerceInputValidator").cardLength()},validators:{cardNumber:b("CommerceInputValidator").cardNumber(),cardType:function(c){c=b("PaymentMethodUtils").getCardType(c);return c!=null&&a.indexOf(c.code)!==-1}},errors:{cardNumber:b("CommerceErrorCode").COMMERCE__INVALID_CREDIT_CARD_NUMBER,cardType:b("CommerceErrorCode").COMMERCE__UNSUPPORTED_CARD_TYPE}};c[g]={attributes:d(g),normalizers:[b("CommerceInputNormalizer").numericize()],autotabbers:{expLength:b("CommerceInputValidator").lengthEquals(2)},validators:{numberBetween:b("CommerceInputValidator").numberBetween(1,12)},errors:{numberBetween:b("CommerceErrorCode").COMMERCE__INVALID_CREDIT_CARD_EXPIRATION}};c[h]={attributes:d(h),normalizers:[b("CommerceInputNormalizer").numericize(),b("CommerceInputNormalizer").expirationYear()],autotabbers:{expLength:b("CommerceInputValidator").lengthEquals(2)},validators:{numberBetween:b("CommerceInputValidator").numberBetween(new Date().getFullYear()%100,99),expiration:b("CommerceInputValidator").expiration()},errors:{numberBetween:b("CommerceErrorCode").COMMERCE__INVALID_CREDIT_CARD_EXPIRATION,expiration:b("CommerceErrorCode").COMMERCE__INVALID_CREDIT_CARD_EXPIRATION}};c.csc={attributes:d("csc"),normalizers:[b("CommerceInputNormalizer").numericize()],autotabbers:{CSC:b("CommerceInputValidator").CSC()},validators:{CSC:b("CommerceInputValidator").CSC()},errors:{CSC:b("CommerceErrorCode").COMMERCE__INVALID_CREDIT_CARD_SECURITY_CODE}};c.zip={attributes:d("zip"),normalizers:[b("CommerceInputNormalizer").trim()],validators:{},errors:{}};return c};c=function(a){__p&&__p();var c={},d=function(a){return b("AdsPaymentsFormInputSpec").creditCard[a]||{}};c[g]={};c[h]={};c.creditCardNumber={attributes:d("creditCardNumber"),normalizers:[b("CommerceInputNormalizer").numericize(),b("CommerceInputNormalizer").creditCardNumber()],autotabbers:{cardLength:b("CommerceInputValidator").cardLength()},validators:{cardNumber:b("CommerceInputValidator").cardNumber(),cardType:function(c){c=b("PaymentMethodUtils").getCardType(c);return c!=null&&a.indexOf(c.code)!==-1}},errors:{cardNumber:b("CommerceErrorCode").COMMERCE__SHORT_INVALID_CREDIT_CARD_NUMBER,cardType:b("CommerceErrorCode").COMMERCE__UNSUPPORTED_CARD_TYPE}};c.exp={attributes:d("exp"),normalizers:[b("CommerceInputNormalizer").expirationSingleField()],autotabbers:{expLength:b("CommerceInputValidator").lengthEquals(5)},validators:{numberBetween:b("CommerceInputValidator").expirationSingleField()},errors:{numberBetween:b("CommerceErrorCode").COMMERCE__SHORT_INVALID_CREDIT_CARD_EXPIRATION}};c.csc={attributes:d("csc"),normalizers:[b("CommerceInputNormalizer").numericize()],autotabbers:{CSC:b("CommerceInputValidator").CSC()},validators:{CSC:b("CommerceInputValidator").CSC()},errors:{CSC:b("CommerceErrorCode").COMMERCE__SHORT_INVALID_CREDIT_CARD_SECURITY_CODE}};c.zip={attributes:d("zip"),normalizers:[b("CommerceInputNormalizer").trim()],validators:{},errors:{}};return c};d=function(){var a={},c=function(a){return b("AdsPaymentsFormInputSpec").paypal[a]||{}};a.email={attributes:c("email"),normalizers:[b("CommerceInputNormalizer").email()],validators:{email:b("CommerceInputValidator").email()},errors:{email:b("CommerceErrorCode").COMMERCE__INVALID_EMAIL}};a.password={attributes:c("password"),normalizers:[],validators:{notEmpty:b("CommerceInputValidator").notEmpty()},errors:{notEmpty:b("CommerceErrorCode").COMMERCE__FIELD_EMPTY}};return a};f=function(){var a={};a.csc={attributes:b("AdsPaymentsFormInputSpec").creditCard.csc||{},normalizers:[b("CommerceInputNormalizer").numericize()],autotabbers:{CSC:b("CommerceInputValidator").cscByCode()},validators:{CSC:b("CommerceInputValidator").cscByCode()},errors:{CSC:b("CommerceErrorCode").COMMERCE__INVALID_CREDIT_CARD_SECURITY_CODE}};return a};a={creditCard:a,mCreditCard:c,paypal:d,cvv:f};e.exports=a}),null); __d("CreditCardCVVTooltip.react",["cx","fbt","ix","CreditCardTypeEnum","Grid.react","Image.react","PaymentMethodUtils","React","ReactLayeredComponentMixin_DEPRECATED","XUIContextualDialog.react","XUIContextualDialogBody.react","fbglyph"],(function(a,b,c,d,e,f,g,h,i){__p&&__p();var j=b("Grid.react").GridItem;a=b("React").PropTypes;c=b("React").createClass({displayName:"CreditCardCVVTooltip",mixins:[b("ReactLayeredComponentMixin_DEPRECATED")],propTypes:{supportedTypes:a.arrayOf(a.oneOf(Object.values(b("CreditCardTypeEnum")))),creditCardNumber:a.string},getInitialState:function(){return{show:!1,shouldShowNonAmex:!0,shouldShowAmex:!0}},UNSAFE_componentWillMount:function(){this._setInitialShowValues()},UNSAFE_componentWillReceiveProps:function(a){__p&&__p();if(!a.creditCardNumber){this._setInitialShowValues();return}a=b("PaymentMethodUtils").getCardType(a.creditCardNumber);a=a.code;if(a===b("CreditCardTypeEnum").UNKNOWN){this._setInitialShowValues();return}a===b("CreditCardTypeEnum").VISA||a===b("CreditCardTypeEnum").MASTERCARD||a===b("CreditCardTypeEnum").DISCOVER?this.setState({shouldShowNonAmex:!0,shouldShowAmex:!1}):a===b("CreditCardTypeEnum").AMERICANEXPRESS&&this.setState({shouldShowNonAmex:!1,shouldShowAmex:!0})},render:function(){return b("React").createElement(b("Image.react"),{className:"_1bya",onMouseEnter:this._onMouseEnter,onMouseLeave:this._onMouseLeave,ref:"CVVHelpImg",src:i("127943")})},renderLayers:function(){var a=this,c=b("React").createElement(b("Grid.react"),{alignh:"center",className:"_16fl",cols:this._getDisplayCount()},this.state.shouldShowNonAmex&&b("React").createElement(j,null,b("React").createElement(b("Image.react"),{src:i("29057")})),this.state.shouldShowAmex&&b("React").createElement(j,null,b("React").createElement(b("Image.react"),{src:i("29056")})),this.state.shouldShowNonAmex&&b("React").createElement(j,null,h._("Visa, MasterCard, and Discover")),this.state.shouldShowAmex&&b("React").createElement(j,null,h._("American Express")));return b("React").createElement(b("XUIContextualDialog.react"),{alignment:"center",contextRef:function(){return a.refs.CVVHelpImg},position:"below",shown:this.state.show},b("React").createElement(b("XUIContextualDialogBody.react"),null,c))},_onMouseEnter:function(){this.setState({show:!0})},_onMouseLeave:function(){this.setState({show:!1})},_getDisplayCount:function(){if(this.state.shouldShowAmex&&this.state.shouldShowNonAmex)return 2;else return 1},_setInitialShowValues:function(){if(!this.props.supportedTypes)return;var a={shouldShowNonAmex:!1,shouldShowAmex:!1};this.props.supportedTypes.forEach(function(c){c===b("CreditCardTypeEnum").VISA||c===b("CreditCardTypeEnum").MASTERCARD||c===b("CreditCardTypeEnum").DISCOVER?a.shouldShowNonAmex=!0:c===b("CreditCardTypeEnum").AMERICANEXPRESS&&(a.shouldShowAmex=!0)});this.setState(a)}});e.exports=c}),null); __d("AdsPaymentsCreditCardForm.react",["cx","fbt","AdsPaymentsCreditCardFormMixin.react","AdsPaymentsErrorMessageWithSupportFormLink.react","AdsPaymentsFlowAPI","AdsPaymentsFormConfig","CreditCardCVVTooltip.react","CSS","DOM","Layout.react","LeftRight.react","React","XUIGrayText.react","XUITextInput.react","cxMargin"],(function(a,b,c,d,e,f,g,h){__p&&__p();var i=b("Layout.react").Column;a=b("React").createClass({displayName:"AdsPaymentsCreditCardForm",mixins:[b("AdsPaymentsCreditCardFormMixin.react")],_currentBinNumber:"",_currentLast4:"",render:function(){var a=[];this.props.validatorChecks.forEach(function(b){a.push("checks["+b+"]")});var c="[month]",d="[year]";return b("React").createElement("div",{ref:"inlineForm",className:"_4r9n"},this._renderError(),this._renderHiddenInput("kpts"),this._renderHiddenInput("country"),this._renderHiddenInput("stored_balance_status"),a.map(this._renderHiddenInput),this.props.showNameOnCard?b("React").createElement(b("React").Fragment,null,b("React").createElement(b("Layout.react"),null,b("React").createElement(i,{className:"_6-wc"},b("React").createElement(b("XUIGrayText.react"),{size:"meta1",weight:"bold",shade:"medium"},h._("Name on Card")))),b("React").createElement(b("Layout.react"),{className:"_3-8x"},b("React").createElement(i,{className:"_6-wc"},this._renderTextInput("card_holder_name")))):null,b("React").createElement(b("Layout.react"),{className:"_3-8x"},b("React").createElement(i,{className:"_2_w8"},b("React").createElement(b("XUIGrayText.react"),{size:"meta1",weight:"bold",shade:"medium"},h._("Card Number"))),b("React").createElement(i,null,b("React").createElement(b("XUIGrayText.react"),{size:"meta1",weight:"bold",shade:"medium"},h._("Expiration")))),b("React").createElement(b("Layout.react"),{className:"_3-8x"},b("React").createElement(i,{className:"_2_w8"},this._renderTextInput("creditCardNumber")),b("React").createElement(i,{className:"_2_w9"},this._renderTextInput("exp"+c)),b("React").createElement(i,{className:"_2_w9"},this._renderTextInput("exp"+d))),b("React").createElement(b("Layout.react"),null,b("React").createElement(i,{className:"_2_wa"},b("React").createElement(b("LeftRight.react"),{direction:"right"},b("React").createElement(b("XUIGrayText.react"),{size:"meta1",weight:"bold",shade:"medium"},h._("Security Code")),b("React").createElement(b("CreditCardCVVTooltip.react"),{creditCardNumber:this.state.creditCardNumber,supportedTypes:this.props.supportedTypes}))),this._renderZipCodeField()),b("React").createElement(b("Layout.react"),null,b("React").createElement(i,{className:"_2_wa"},this._renderTextInput("csc")),this._renderZipCodeTextInput()))},getConfig:function(){return b("AdsPaymentsFormConfig").creditCard(this.props.supportedTypes)},_getInitialExp:function(a){a["exp[month]"]=this._getInitialExpMonth(),a["exp[year]"]=this._getInitialExpYear()},_renderError:function(){var a=this.state.generalError;return!a||!a.message?null:b("React").createElement(b("AdsPaymentsErrorMessageWithSupportFormLink.react"),{adAccountID:this.props.accountID,ccBin:this._currentBinNumber,ccLast4:this._currentLast4,className:"_3-96",errorCode:a.code,errorMessage:a.message,paymentsInterface:"ads_credit_card_form",isFromSupport:this.props.isFromSupport,contextID:this.props.contextID,sourceSupportFormId:this.props.sourceSupportFormId,geoCountry:this.props.geoCountry})},_renderTextInput:function(a){var c=this.state[this.ERROR_PREFIX+a],d=c&&c.show,e=this._getReactAttributes((this.getConfig()[a]||{}).attributes||{}),f=null;d&&c.msg.description?f=c.msg.description:d&&c.msg&&(f=b("DOM").create("div",{},c.msg));return b("React").createElement(b("XUITextInput.react"),babelHelpers["extends"]({},e,{className:"_53sm"+(d?" _1tp7":""),height:"tall",value:this.state[a],onChange:a==="creditCardNumber"?this._onCCNumberChangeSetValue.bind(this,a):this._onChangeSetValue.bind(this,a),onBlur:this._onBlurProcessNonEmptyValue.bind(this,a),onFocus:this._onFocusClearError.bind(this,a),ref:a==="exp[year]"?"expYear":null,xuiError:f}))},_onCCNumberChangeSetValue:function(a,c){var d=c.target.value.trim();d=d.replace(/ /g,"");if(d.length>=6){var e=d.substr(0,6);e!==this._currentBinNumber&&(b("AdsPaymentsFlowAPI").checkIsZipCodeRequired(e,this.handleZipCodeNeeded),this._currentBinNumber=e);this._currentLast4=d.substr(-4)}this._onChangeSetValue(a,c)},handleZipCodeNeeded:function(a){__p&&__p();a=a.payload;var c=document.getElementsByClassName("_2_wb");if(c.length!==2)return;a=a===null?this.props.showZip:a;b("CSS").conditionClass(c[0],"hidden_elem",!a);b("CSS").conditionClass(c[1],"hidden_elem",!a);if(!a){c={};c.zip="";this.setState(c)}},_renderZipCodeField:function(){var a="_2_wb"+(this.props.showZip?"":" hidden_elem");return b("React").createElement(i,{className:a},b("React").createElement(b("XUIGrayText.react"),{size:"meta1",weight:"bold",shade:"medium"},h._("Billing Zip Code")))},_renderZipCodeTextInput:function(){var a="_2_wb"+(this.props.showZip?"":" hidden_elem");return b("React").createElement(i,{className:a},this._renderTextInput("zip"))}});e.exports=a}),null); __d("XAdsPaymentDialogCancelController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/fbpayments/flows/payment/dialog_cancel/",{context_id:{type:"Int",required:!0}})}),null); __d("PaymentsFlowBase",["AdsPaymentFlowBanzaiEvents","AdsPaymentFlowBanzaiEventTypes","AdsPaymentFlowBanzaiLogger","AdsPaymentsCreditCardForm.react","AdsPaymentsFormEvents","EventEmitter","React","ReactDOM","XAdsPaymentDialogActionController","XAdsPaymentDialogCancelController","XAsyncRequest","$"],(function(a,b,c,d,e,f){__p&&__p();var g="#141823",h="#B9BDC5";c=function(){"use strict";__p&&__p();function a(){this.contextID=null,this.currency=null,this.stateCount=null,this.eventEmitter=null,this.paymentMethodsConfig=null,this.selectedMethod=null,this.button=null,this.selectedCountry=null,this.submitting=!1,this.separateCCFormStep=!1}var c=a.prototype;c.init=function(a,b){this.contextID=a,this.stateCount=b};c.getEventEmitter=function(){this.eventEmitter===null&&(this.eventEmitter=new(b("EventEmitter"))());return this.eventEmitter};c.getSelectedPaymentMethod=function(){return this.selectedMethod};c.getContextID=function(){return this.contextID};c.setCurrency=function(a){this.currency=a};c.initCountryCode=function(a){this.selectedCountry=a};c.initSelectPaymentMethodButton=function(a){this.button=a,this.setSubmitting(!1),b("AdsPaymentFlowBanzaiLogger").log(b("AdsPaymentFlowBanzaiEvents").INIT_SELECT_PM_BUTTON,b("AdsPaymentFlowBanzaiEventTypes").FACEBOOK,this.contextID,this.stateCount,this.selectedMethod)};c.initSelectPaymentMethodForm=function(a,c,d,e){this.contextID=a,this.paymentMethodsConfig=d,this.separateCCFormStep=e,b("AdsPaymentFlowBanzaiLogger").log(b("AdsPaymentFlowBanzaiEvents").INIT_SELECT_PM_FORM,b("AdsPaymentFlowBanzaiEventTypes").FACEBOOK,this.contextID,this.stateCount,this.selectedMethod,{separate_cc_form_state:e})};c.onCancel=function(a,c){a=b("XAdsPaymentDialogCancelController").getURIBuilder().setInt("context_id",this.contextID).getURI();new(b("XAsyncRequest"))(a).send();b("AdsPaymentFlowBanzaiLogger").log(b("AdsPaymentFlowBanzaiEvents").FLOW_CANCELLED,b("AdsPaymentFlowBanzaiEventTypes").USER,this.contextID,this.stateCount,this.selectedMethod)};c.renderInlineCreditCardForm=function(a,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){b("ReactDOM").render(b("React").createElement(b("AdsPaymentsCreditCardForm.react"),{pubSub:this.getEventEmitter(),accountID:d,contextID:this.getContextID(),defaultCountry:e,flowPlacement:f,trackingID:g,showZip:i,parentID:a,currency:j,isStoredBalance:l,selectedFlowType:m,appID:n,onSubmit:this.$1.bind(this),onSubmitFailure:this.$2.bind(this),validatorChecks:h,supportedTypes:k,isCheckoutEligible:o,checkoutSaveCCWithAuth:p,stateCount:this.stateCount,checkoutFundAmount:q,showNameOnCard:r,isFromSupport:s,sourceSupportFormId:t,geoCountry:u}),c)};c.$1=function(a,b,c){this.submitSelectState(a,b,c)};c.$2=function(){this.setSubmitting(!1)};c.submitCreditCardForm=function(){this.getEventEmitter().emit(b("AdsPaymentsFormEvents").SAVE_CREDIT_CARD),b("AdsPaymentFlowBanzaiLogger").log(b("AdsPaymentFlowBanzaiEvents").SUBMIT_CREDIT_CARD_FORM,b("AdsPaymentFlowBanzaiEventTypes").USER,this.contextID,this.stateCount,this.selectedMethod)};c.submitSelectState=function(a,b,c){};c.setSubmitting=function(a){};c.agencyRepresentingClientChanged=function(){__p&&__p();var a=document.getElementsByName("ads_for_client");a=this.getRadioValue(a);var c=document.getElementsByName("target_france"),d=b("$")("target_france_text"),e=b("$")("france_yes"),f=b("$")("france_no");if(a=="yes"){for(var i=0;i0&&e.setString("selected_credit_card_bank",f[0].value);d.payment_method_id=parseInt(a.cc_cred_id,10)}else if(this.selectedMethod=="paypal"&&a.success=="1"&&a.paypal_added=="1")e.setString("paypal_token",a.token).setString("paypal_fb_entity",a.fbent).setBool("paypal_cib",a.cib=="1"),d.paypal_token=a.token,d.paypal_fb_entity=a.fbent;else{this.setSubmitting(!1);return}new(b("AsyncRequest"))().setURI(e.getURI()).send();b("AdsPaymentFlowBanzaiLogger").log(b("AdsPaymentFlowBanzaiEvents").PROCESS_POPUP_RESPONSE,b("AdsPaymentFlowBanzaiEventTypes").FACEBOOK,this.contextID,this.stateCount,this.selectedMethod,d);b("AdsPaymentsLatencyBanzaiLogger").logFlow(this.contextID,this.stateCount,b("AdsPaymentFlowBanzaiEvents").PROCESS_POPUP_RESPONSE,b("AdsPaymentFlowBanzaiEventTypes").FACEBOOK,c,Date.now()-c)};d.onCancel=function(b,c){a.prototype.onCancel.call(this,b,c),this.onErrorOrCancel(b,c),this.$PaymentsFlow2&&this.$PaymentsFlow2.show()};d.onErrorOrCancel=function(a,c){this.doCallback(c?c:{},!1),this.$PaymentsFlow3=null,b("BillingV1BlackBox").close(),b("BillingV1BlackBox").dispatchCloseCompleteAction(!1,!1)};d.initRadioInput=function(a,c,d){var e=b("DOM").scry(b("$")("XPaymentDialogBody"),"#CouponOfferPrepayFraudFixWarning");if(e.length>0){var f=b("DOM").find(a,'input[type="radio"]').checked;f&&c&&d||b("CSS").hide(e[0])}b("DOMEventListener").add(a,"change",this.onChange.bind(this,c,d))};d.initCouponCheckbox=function(a){b("DOMEventListener").add(a,"change",this.onCouponChange.bind(this)),b("AdsPaymentFlowBanzaiLogger").log(b("AdsPaymentFlowBanzaiEvents").INIT_COUPON_CHECKBOX,b("AdsPaymentFlowBanzaiEventTypes").FACEBOOK,this.contextID,this.stateCount,this.selectedMethod)};d.initCountryDropdown=function(a,c){var d=this,e=function(a,b){d.onCountryChange(a,b,c)};a.subscribe("change",e.bind(this));this.selectedCountry=a.getValue();b("AdsPaymentFlowBanzaiLogger").log(b("AdsPaymentFlowBanzaiEvents").INIT_COUNTRY_DROPDOWN,b("AdsPaymentFlowBanzaiEventTypes").FACEBOOK,this.contextID,this.stateCount,this.selectedMethod,{selected_country:this.selectedCountry})};d.initCurrencyDropdown=function(a){a.subscribe("change",this.onCurrencyChange.bind(this)),this.currency=a.getValue(),b("AdsPaymentFlowBanzaiLogger").log(b("AdsPaymentFlowBanzaiEvents").INIT_CURRENCY_DROPDOWN,b("AdsPaymentFlowBanzaiEventTypes").FACEBOOK,this.contextID,this.stateCount,this.selectedMethod,{selected_currency:this.currency})};d.onChange=function(a,c){__p&&__p();this.$PaymentsFlow12();var d=b("DOM").scry(b("$")("XPaymentDialogBody"),"#CouponOfferPrepayFraudFixWarning");d.length>0&&(a&&c?b("CSS").show(d[0]):b("CSS").hide(d[0]));d=b("DOM").scry(b("$")("XPaymentDialogBody"),"#AdsPaymentsInlineCreditCard");d.length&&(this.selectedMethod=="new_cc"?b("CSS").show(d[0]):b("CSS").hide(d[0]));d=b("DOM").scry(b("$")("XPaymentDialogBody"),"#AdsPaymentsInlinePaypal");d.length&&(this.selectedMethod=="paypal"?b("CSS").show(d[0]):b("CSS").hide(d[0]));d=b("DOM").scry(b("$")("XPaymentDialogBody"),"#AdsPaymentsInlineMobile");d.length&&(this.selectedMethod=="mobile"?b("CSS").show(d[0]):b("CSS").hide(d[0]));d=b("DOM").scry(b("$")("XPaymentDialogFooter"),"#AdsPaymentsCouponCheckbox");d.length&&(a&&!c?(b("CSS").hide(b("$")("AdsPaymentsCouponMessage")),b("CSS").hide(b("$")("AdsCouponCheckboxLabel")),d[0].checked&&(d[0].checked=!1,b("CSS").show(b("$")("AdsPaymentsCouponUnsupportedMessage")))):(b("CSS").hide(b("$")("AdsPaymentsCouponUnsupportedMessage")),b("CSS").show(b("$")("AdsCouponCheckboxLabel")),this.onCouponChange()))};d.onCouponChange=function(){var a=b("$")("AdsPaymentsCouponCheckbox"),c=b("$")("AdsPaymentsCouponMessage");b("CSS").conditionClass(c,"hidden_elem",!a.checked);b("AdsPaymentFlowBanzaiLogger").log(b("AdsPaymentFlowBanzaiEvents").COUPON_CHECKBOX_CHANGED,b("AdsPaymentFlowBanzaiEventTypes").USER,this.contextID,this.stateCount,this.selectedMethod,{coupon_checkbox:a.checked})};d.onCountryChange=function(a,c,d){this.selectedCountry=c.value;this.setSubmitting(!0);a=b("XAdsPaymentDialogActionController").getURIBuilder().setInt("context_id",this.contextID).setInt("state_count",this.stateCount).setString("selected_country",c.value).getURI();new(b("AsyncRequest"))().setURI(a).send();b("AdsPaymentFlowBanzaiLogger").log(b("AdsPaymentFlowBanzaiEvents").FLOW_COUNTRY_CHANGED,b("AdsPaymentFlowBanzaiEventTypes").USER,this.contextID,this.stateCount,this.selectedMethod,{selected_country:c.value})};d.onCurrencyChange=function(a,c){this.currency=c.value;this.setSubmitting(!0);a=b("XAdsPaymentDialogActionController").getURIBuilder().setInt("context_id",this.contextID).setInt("state_count",this.stateCount).setString("selected_currency",c.value).getURI();new(b("AsyncRequest"))().setURI(a).send();b("AdsPaymentFlowBanzaiLogger").log(b("AdsPaymentFlowBanzaiEvents").FLOW_CURRENCY_CHANGED,b("AdsPaymentFlowBanzaiEventTypes").USER,this.contextID,this.stateCount,this.selectedMethod,{selected_currency:c.value})};d.enableCouponButton=function(a,c){this.$PaymentsFlow8=a,this.$PaymentsFlow9=c,b("Button").setEnabled(b("$")("coupon_submit_button"),!0)};d.submitCoupon=function(){if(!b("Button").isEnabled(b("$")("coupon_submit_button")))return;var a=b("XAdsPaymentDialogActionController").getURIBuilder().setInt("context_id",this.contextID).setInt("state_count",this.stateCount).setInt("coupon_id",this.$PaymentsFlow8).setString("coupon_code_string",this.$PaymentsFlow9).getURI();new(b("AsyncRequest"))().setURI(a).send()};d.setIndiaMigrationCallBack=function(a){var c=b("XAdsCMController").getURIBuilder().setEnum("page","account_settings").setEnum("tab","account_billing").setInt("act",a).getURI();this.setCallback(function(){return b("URI").go(c,!0)})};d.setCallback=function(a){this.$PaymentsFlow1=a};d.doCallback=function(a,c){b("BillingV1BlackBox").close();b("BillingV1BlackBox").dispatchCloseCompleteAction(!1,c!=null?c:!0);this.$PaymentsFlow1&&this.$PaymentsFlow1(a);this.$PaymentsFlow3&&this.$PaymentsFlow3.hide();c=document.getElementById("XPaymentDialog");c&&c.parentNode&&c.parentNode.removeChild(c)};d.processPWMBCancelIFrame=function(a){this.onCancel(),b("AdsPaymentFlowBanzaiLogger").log(b("AdsPaymentFlowBanzaiEvents").CANCEL_PWMB_IFRAME,b("AdsPaymentFlowBanzaiEventTypes").PROVIDER,this.contextID,this.stateCount,this.selectedMethod)};d.processPWMBReturnIFrame=function(a){__p&&__p();if(a.panel==="2"&&a.status==="2"&&a.payment_account_verified==="false"){this.onCancel(null,{canceled:!0});b("AdsPaymentFlowBanzaiLogger").log(b("AdsPaymentFlowBanzaiEvents").SUBMIT_PWMB_IFRAME_RESPONSE,b("AdsPaymentFlowBanzaiEventTypes").PROVIDER,this.contextID,this.stateCount,this.selectedMethod,{canceled:!0});return}a.payment_account_verified=a.payment_account_verified=="true";a.pwmb_notification_success=a.notification!="failed";var c=b("XAdsPaymentDialogActionController").getURIBuilder().setInt("context_id",this.contextID).setInt("state_count",this.stateCount).setBool("payment_account_verified",a.payment_account_verified).setBool("pwmb_notification_success",a.pwmb_notification_success).setString("redirect_url_type",a.type).setString("pwmb_transaction_id",a.transactionId).setString("pwmb_transaction_type",a.transactionType).setString("pwmb_redirection_type",a.type).setString("merchant_reference",a.merchantReference).setString("pwmb_retrieval_status",a.status).setString("request_signature",a.requestSignature).setString("pwmb_redirect_url",a.redirect_url).setString("pwmb_entry_method",this.$PaymentsFlow18(a)).getURI();new(b("AsyncRequest"))().setURI(c).send();b("AdsPaymentFlowBanzaiLogger").log(b("AdsPaymentFlowBanzaiEvents").SUBMIT_PWMB_IFRAME_RESPONSE,b("AdsPaymentFlowBanzaiEventTypes").PROVIDER,this.contextID,this.stateCount,this.selectedMethod,{payment_account_verified:a.payment_account_verified,pwmb_notification_success:a.pwmb_notification_success,redirect_url_type:a.type,pwmb_transaction_id:a.transactionId,pwmb_transaction_type:a.transactionType,pwmb_redirection_type:a.type,merchant_reference:a.merchantReference,pwmb_retrieval_status:a.status,request_signature:a.requestSignature,pwmb_redirect_url:a.redirect_url,pwmb_entry_method:this.$PaymentsFlow18(a)})};d.$PaymentsFlow18=function(a){var b=a.entry_method;if(!b){a=a.payment_paymentProvider_type;a=="1"||a=="PWMB"?b="eos":(a=="2"||a=="ECHECK")&&(b="mcd")}return b};d.post3DSIFrame=function(a,b){this.contextID=b,a.submit()};d.process3DS2IFrame=function(a,c,d,e,f){a=b("XAdsPaymentDialogActionController").getURIBuilder().setInt("context_id",this.contextID).setInt("state_count",this.stateCount).setString("transaction_id_3ds2",a).setString("reference_id_3ds2",c).setString("success_3ds2",d).setString("3ds_error_code",e).setString("3ds_error_message",f).getURI();b("AdsPaymentsLoadingIndicator").show();new(b("AsyncRequest"))().setURI(a).send()};d.process3DSIFrame=function(a,c,d){var e=b("XAdsPaymentDialogActionController").getURIBuilder().setInt("context_id",this.contextID).setInt("state_count",this.stateCount).setString("iframe_3ds_payload",a).setString("iframe_3ds_token",c).setString("iframe_3ds_success",d).getURI();d!=null?(window.setTimeout(function(){return new(b("AsyncRequest"))().setURI(e).send()},1e3),b("BillingV1BlackBox").open(b("BillingV1AuthorizationLoadingScreen.react"),{finished:!0})):(b("AdsPaymentsLoadingIndicator").show(),new(b("AsyncRequest"))().setURI(e).send())};d.setCancelSurveyDialog=function(a){this.$PaymentsFlow2=a};d.initCouponCodeForm=function(a){var c=this;this.$PaymentsFlow8=null;this.$PaymentsFlow9=null;b("Event").listen(a,"submit",function(){return c.logCouponCodeEvent(b("AdsPaymentFlowBanzaiEvents").COUPON_CODE_SUBMITTED,b("AdsPaymentFlowBanzaiEventTypes").USER)});b("Event").listen(a,"success",function(a){return c.logCouponCodeEvent(a.data.response.payload.coupon_added?b("AdsPaymentFlowBanzaiEvents").COUPON_CODE_SUCCESS:b("AdsPaymentFlowBanzaiEvents").COUPON_CODE_ERROR,b("AdsPaymentFlowBanzaiEventTypes").FACEBOOK)});b("Event").listen(a,"error",function(){return c.logCouponCodeEvent(b("AdsPaymentFlowBanzaiEvents").COUPON_CODE_ERROR,b("AdsPaymentFlowBanzaiEventTypes").FACEBOOK)})};d.logCouponCodeEvent=function(a,c){b("AdsPaymentFlowBanzaiLogger").log(a,c,this.contextID,this.stateCount,null,{coupon_code:b("$")("coupon_code_field").value})};d.onFlowComplete=function(){var a=b("XAdsPaymentDialogActionController").getURIBuilder().setInt("context_id",this.contextID).setInt("state_count",this.stateCount).getURI();new(b("AsyncRequest"))().setURI(a).send()};d.onFlowCompleteReload=function(){var a=b("XAdsPaymentDialogActionController").getURIBuilder().setInt("context_id",this.contextID).setInt("state_count",this.stateCount).getURI();new(b("AsyncRequest"))().setHandler(function(a){return b("ReloadPage").now()}).setURI(a).send()};return c}(b("PaymentsFlowBase"));a.PaymentsFlow=e.exports=new c()}),null); __d("BillingCometOnBlueUtil",["BaseModal.react","CometSuspendedDialogImpl.react","JSResource","PaymentsFlow","React","ReactDOM","RelayFBEnvironment","RelayModern","lazyLoadComponent","BillingCometOnBlueUtilIsEnabledForRagnarokQuery.graphql"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g,h=b("JSResource")("BillingWizardRoot.react").__setRef("BillingCometOnBlueUtil"),i=b("RelayModern").fetchQuery;b("RelayModern").graphql;function a(a,c,d,e,f){i(b("RelayFBEnvironment"),g||(g=function(){return b("BillingCometOnBlueUtilIsEnabledForRagnarokQuery.graphql")}),{country_override:c,paymentAccountID:a}).then(function(a){if((a=(a=a.billable_account_by_payment_account)==null?void 0:a.is_enabled_for_ragnarok)!=null?a:!1){e((a=f)!=null?a:"nux_add_pm")}else d()})["catch"](function(a){b("PaymentsFlow").onErrorOrCancel();throw a})}function c(a,b,c,d,e,f){a={countryCode:a,onComplete:e,paymentAccountID:b,placementDetails:f,wizardName:c};l(h,a,function(){d&&d()})}function j(a,c){a=a==null?void 0:a.current;a!=null&&a.focus!=null&&a.focus();window.setTimeout(function(){b("ReactDOM").unmountComponentAtNode(c),c.remove()},0)}function k(a,c,d,e){var f=document.body,g=document.createElement("div");f!=null&&f.appendChild(g);f=function(){e!=null&&e.apply(void 0,arguments),j(d,g)};b("ReactDOM").render(b("React").createElement(b("BaseModal.react"),null,b("React").createElement(a,babelHelpers["extends"]({},c,{onClose:f}))),g)}function l(a,c,d){a=b("lazyLoadComponent")(a);k(b("CometSuspendedDialogImpl.react"),{dialog:a,dialogProps:c},null,d)}e.exports={launchCometOrBlueBillingFlow:a,openCometBillingDialog:c}}),null); __d("XAdsCreatorController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/ads/create/",{business_id:{type:"Int"},act:{type:"Int"},campaign:{type:"Int"},ad_set:{type:"Int"},campaign_id:{type:"Int"},campaign_placement:{type:"String"},destination:{type:"String"},oid:{type:"Int"},fbid:{type:"Int"},storyid:{type:"Int"},objective:{type:"String"},buying_type:{type:"String"},edit_ad_link:{type:"Bool",defaultValue:!1},conversion_pixel_id:{type:"Int"},saved_audience:{type:"Int"},rf_prediction_id:{type:"Int"},targeting_spec:{type:"String"},ref:{type:"String"},desturl:{type:"String"},coupon_code:{type:"String"},coupon_error:{type:"Bool",defaultValue:!1}})}),null); __d("XAdsPaymentDialogController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/fbpayments/flows/payment/dialog/",{altpay_method_name:{type:"String"},prepay_shortcut_flow:{type:"Bool",defaultValue:!1},dd_shortcut_flow:{type:"Bool",defaultValue:!1},campaign_budget_amount:{type:"Int"},campaign_budget_currency:{type:"String"},campaign_budget_type:{type:"String"},campaign_end_time:{type:"String"},campaign_start_time:{type:"String"},campaign_length_in_days:{type:"Int"},is_edit_mode:{type:"Bool",defaultValue:!1},credential_id:{type:"Int"},show_existing_coupon:{type:"Bool",defaultValue:!1},coupon_code:{type:"String"},product_name:{type:"String",defaultValue:""},shortcut_charge_flow:{type:"Bool",defaultValue:!1},funding_id:{type:"Int"},payment_method_type:{type:"String",defaultValue:""},country_code:{type:"String"},selected_payment_method:{type:"String"},payment_method_id:{type:"Int"},back_press:{type:"Bool",defaultValue:!1},selected_country:{type:"String"},selected_currency:{type:"String"},coupon_checkbox:{type:"Bool",defaultValue:!1},selected_credit_card_bank:{type:"String"},low_balance_flow:{type:"Bool",defaultValue:!1},coupon_offer_id:{type:"FBID"},external_flow_id:{type:"String"},authorize_payment_method:{type:"Bool",defaultValue:!1},is_from_support:{type:"Bool",defaultValue:!1},source_support_form_id:{type:"Int",defaultValue:0},start_india_migration:{type:"Bool",defaultValue:!1},is_add_prepay_shortcut_flow:{type:"Bool",defaultValue:!1},boosted_specs:{type:"String"},page_id:{type:"Int"},campaign_app_id:{type:"Int"},campaign_post_id:{type:"Int"},campaign_title:{type:"String"},campaign_image_url:{type:"String"},campaign_lower_est_reach:{type:"Int"},campaign_upper_est_reach:{type:"Int"},campaign_group_id:{type:"Int"},campaign_prev_balance:{type:"Int"},checkout_add_pm_no_charge:{type:"Bool",defaultValue:!1},is_lwi_v1:{type:"Bool",defaultValue:!0},success_uri:{type:"String"},failure_uri:{type:"String"},cancel_uri:{type:"String"},show_country_selector:{type:"Bool",defaultValue:!1},is_payer_protection_link:{type:"Bool",defaultValue:!1},provider_pending:{type:"Bool",defaultValue:!1},provider_cancel:{type:"Bool",defaultValue:!1},provider_error:{type:"Bool",defaultValue:!1},provider_error_code:{type:"Int"},provider_error_message:{type:"String",defaultValue:""},locale:{type:"String"},runtime_is_comet:{type:"Bool",defaultValue:!1},context_id:{type:"Int"},account_id:{type:"Int",required:!0},placement:{type:"String",required:!0},__asyncDialog:{type:"Int"}})}),null); __d("XAdsPaymentInlineDialogController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/fbpayments/flows/payment/inline_dialog/",{altpay_method_name:{type:"String"},prepay_shortcut_flow:{type:"Bool",defaultValue:!1},dd_shortcut_flow:{type:"Bool",defaultValue:!1},campaign_budget_amount:{type:"Int"},campaign_budget_currency:{type:"String"},campaign_budget_type:{type:"String"},campaign_end_time:{type:"String"},campaign_start_time:{type:"String"},campaign_length_in_days:{type:"Int"},is_edit_mode:{type:"Bool",defaultValue:!1},credential_id:{type:"Int"},show_existing_coupon:{type:"Bool",defaultValue:!1},coupon_code:{type:"String"},product_name:{type:"String",defaultValue:""},shortcut_charge_flow:{type:"Bool",defaultValue:!1},funding_id:{type:"Int"},payment_method_type:{type:"String",defaultValue:""},country_code:{type:"String"},selected_payment_method:{type:"String"},payment_method_id:{type:"Int"},back_press:{type:"Bool",defaultValue:!1},selected_country:{type:"String"},selected_currency:{type:"String"},coupon_checkbox:{type:"Bool",defaultValue:!1},selected_credit_card_bank:{type:"String"},low_balance_flow:{type:"Bool",defaultValue:!1},coupon_offer_id:{type:"FBID"},external_flow_id:{type:"String"},authorize_payment_method:{type:"Bool",defaultValue:!1},is_from_support:{type:"Bool",defaultValue:!1},source_support_form_id:{type:"Int",defaultValue:0},start_india_migration:{type:"Bool",defaultValue:!1},is_add_prepay_shortcut_flow:{type:"Bool",defaultValue:!1},boosted_specs:{type:"String"},page_id:{type:"Int"},campaign_app_id:{type:"Int"},campaign_post_id:{type:"Int"},campaign_title:{type:"String"},campaign_image_url:{type:"String"},campaign_lower_est_reach:{type:"Int"},campaign_upper_est_reach:{type:"Int"},campaign_group_id:{type:"Int"},campaign_prev_balance:{type:"Int"},checkout_add_pm_no_charge:{type:"Bool",defaultValue:!1},is_lwi_v1:{type:"Bool",defaultValue:!0},success_uri:{type:"String"},failure_uri:{type:"String"},cancel_uri:{type:"String"},show_country_selector:{type:"Bool",defaultValue:!1},is_payer_protection_link:{type:"Bool",defaultValue:!1},provider_pending:{type:"Bool",defaultValue:!1},provider_cancel:{type:"Bool",defaultValue:!1},provider_error:{type:"Bool",defaultValue:!1},provider_error_code:{type:"Int"},provider_error_message:{type:"String",defaultValue:""},locale:{type:"String"},runtime_is_comet:{type:"Bool",defaultValue:!1},context_id:{type:"Int"},account_id:{type:"Int"},placement:{type:"String"}})}),null); __d("AdManagerFunding",["invariant","AdsInterfacesLogger","AdsPaymentsFlowPlacement","AsyncDialog","AsyncRequest","BillingCometOnBlueUtil","Event","PaymentsFlow","URI","XAdsCreatorController","XAdsPaymentDialogController","XAdsPaymentInlineDialogController","XAsyncRequest","goURI"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=b("BillingCometOnBlueUtil").launchCometOrBlueBillingFlow,i=b("BillingCometOnBlueUtil").openCometBillingDialog;a=null;var j={ADS_PAYMENT_APP_ID:123097351040126,CAMPAIGN_DATE_FORMAT:"m/d/Y",POWER_EDITOR_APP_ID:119211728144504,_business_id:a,_flowLock:!1,bindPaymentMethodClickEvent:function(a,c,d,e,f){b("Event").listen(c,"click",function(){a!=null&&j.setBusinessID(a),j.addCredential(d,e,f)})},addCredentialCallbackFromFunding:function(a,c){if(c.credential_state){c=new(b("URI"))("/ads/manage/funding.php").addQueryData({credential_state:c.credential_state,has_hit_asl:c.has_hit_asl,act:a});j.getBusinessID()&&c.addQueryData({business_id:j.getBusinessID()});b("goURI")(c)}},addCredentialCallbackFromFundingInPE:function(a){if(a){a=new(b("URI"))("/adsmanager/funding").addQueryData({host:j.POWER_EDITOR_APP_ID}).addQueryData({account:a});j.getBusinessID()&&a.addQueryData({business_id:j.getBusinessID()});b("goURI")(a)}},addCredentialCallbackFromUnsettled:function(a,c){if(!c)return;if(c.credential_state||c.redirect_to_unsettled_page){a=new(b("URI"))("/ads/manage/unsettled.php").addQueryData({primary:1}).addQueryData({act:a}).addQueryData({redirect:c.redirect});j.getBusinessID()&&a.addQueryData({business_id:j.getBusinessID()});b("goURI")(a)}},addCredentialCallbackFromPageNAX:function(a){if(a.credential_state){a=new(b("URI"))(window.location.href).addQueryData({success:!0});j.getBusinessID()&&a.addQueryData({business_id:j.getBusinessID()});b("goURI")(a)}},addCredentialCallbackFromAYMTs:function(a){if(a.credential_state){a=b("XAdsCreatorController").getURIBuilder().getURI();b("goURI")(a)}},addCredential:function(a,c,d,e,f,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B){__p&&__p();var C=this;if(this._flowLock)return;this.setFlowLock(!0);b("AdsInterfacesLogger").log({eventName:"payment_initiated",data:{event_source:a}});if(!f)switch(a){case"funding_page":case"migrate_to_postpay":case"brazil_primary_amex_megaphone":l==j.POWER_EDITOR_APP_ID?f=function(){j.addCredentialCallbackFromFundingInPE(d)}:f=function(a){j.addCredentialCallbackFromFunding(d,a)};break;case"unsettled":case"grace_period":f=function(a){j.addCredentialCallbackFromUnsettled(d,a)};break;case"create_flow":case"power_editor_publish":case"cm_payment_methods_tab":g(0,3463);case"page_nax":f=j.addCredentialCallbackFromPageNAX;break;case"boosted_automated_ads":case"boosted_localawareness":case"boosted_page_like":case"boosted_page_like_page_nax":case"boosted_website":f=function(a){};break;case"aymt_home_page_panel":case"aymt_page_admin_megaphone":case"aymt_campaign_manager_megaphone":f=function(a){j.addCredentialCallbackFromAYMTs(a)};break;default:return}c=function(c){b("AdsInterfacesLogger").log({eventName:c&&c.credential_state?"payment_completed":"payment_cancelled",data:{event_source:a}}),f&&f(babelHelpers["extends"]({},c,{cancelled:!0}))};b("PaymentsFlow").setCallback(c);h(d||"",null,function(){p||(p={});var c=b("XAdsPaymentDialogController").getURIBuilder().setInt("account_id",d).setString("altpay_method_name",p.altpay_method_name).setBool("prepay_shortcut_flow",p.prepay_shortcut_flow).setString("placement",a).setBool("dd_shortcut_flow",p.dd_shortcut_flow).setInt("credential_id",p.credential_id).setBool("show_existing_coupon",o).setFBID("coupon_offer_id",x).setString("coupon_code",e).setString("product_name",k).setBool("shortcut_charge_flow",p.shortcut_charge_flow).setInt("funding_id",p.funding_id).setString("payment_method_type",p.payment_method_type).setInt("campaign_budget_amount",r).setString("campaign_budget_currency",s).setString("campaign_budget_type",q).setString("campaign_end_time",t).setString("campaign_start_time",u).setString("country_code",v).setBool("low_balance_flow",w).setInt("campaign_length_in_days",y).setBool("is_edit_mode",z).setString("campaign_title",p.campaign_title).setInt("campaign_group_id",p.campaign_group_id).setString("campaign_image_url",p.image_url).setInt("page_id",p.page_id).setInt("campaign_prev_balance",p.campaign_prev_balance).setString("boosted_specs",p.boosted_specs).setInt("campaign_app_id",p.campaign_app_id).setInt("campaign_post_id",p.campaign_post_id).setBool("is_lwi_v1",p.is_lwi_v1).setBool("checkout_add_pm_no_charge",p.checkout_add_pm_no_charge).setString("external_flow_id",A).getURI();c=new(b("AsyncRequest"))().setURI(c).setFinallyHandler(C.setFlowLock.bind(C,!1));B&&c.setAbortHandler(B);b("AsyncDialog").send(c,function(a){b("PaymentsFlow").setDialog(a)})},function(a){C.setFlowLock(!1),i(v,d,a,function(){b("PaymentsFlow").onErrorOrCancel()},function(a,b){})})},openInlineAddCredentialFlow:function(a,c,d){__p&&__p();var e=this;if(this._flowLock)return;this.setFlowLock(!0);b("AdsInterfacesLogger").log({eventName:"payment_initiated",data:{event_source:c.source}});var f=function(d){b("AdsInterfacesLogger").log({eventName:d&&d.credential_state?"payment_completed":"payment_cancelled",data:{event_source:c.source}}),a(d)},g=b("XAdsPaymentInlineDialogController").getURIBuilder().setInt("account_id",c.account_id).setString("placement",c.source).setInt("campaign_budget_amount",c.campaign_budget_amount).setInt("campaign_prev_balance",c.campaign_prev_balance).setString("campaign_budget_currency",c.campaign_budget_currency).setString("campaign_budget_type",c.campaign_budget_type).setString("campaign_end_time",c.campaign_end_time).setBool("prepay_shortcut_flow",c.has_funding_source).setInt("page_id",c.page_id).setString("boosted_specs",c.boosted_specs).setInt("campaign_app_id",c.campaign_app_id).setInt("campaign_post_id",c.campaign_post_id).setString("campaign_title",c.campaign_title).setString("campaign_image_url",c.campaign_image_url).setInt("campaign_lower_est_reach",c.campaign_lower_est_reach).setInt("campaign_upper_est_reach",c.campaign_upper_est_reach).setInt("campaign_group_id",c.campaign_group_id).setBool("is_edit_mode",c.is_edit_mode).setBool("is_lwi_v1",c.is_lwi_v1).setBool("checkout_add_pm_no_charge",c.checkout_add_pm_no_charge).setInt("funding_id",c.funding_id).getURI();b("PaymentsFlow").setCallback(f);new(b("XAsyncRequest"))(g).setHandler(function(){e.setFlowLock(!1),d!=null&&d()}).send()},setFlowLock:function(a){this._flowLock=a},setBusinessID:function(a){j._business_id=a},getBusinessID:function(){return j._business_id},verifyDirectDebitCredential:function(a,c,d,e){__p&&__p();if(this._flowLock)return;this.setFlowLock(!0);e||(e=j.addCredentialCallbackFromFunding);b("AdsInterfacesLogger").log({eventName:"verification_initiated",data:{event_source:d}});var f=function(a){b("AdsInterfacesLogger").log({eventName:a&&a.credential_state?"verification_completed":"verification_cancelled",data:{event_source:d}}),e(a)};a=b("XAdsPaymentDialogController").getURIBuilder().setInt("account_id",a).setInt("credential_id",c).setBool("dd_shortcut_flow",!0).setString("placement",d).getURI();b("PaymentsFlow").setCallback(f);c=new(b("AsyncRequest"))().setURI(a).setFinallyHandler(this.setFlowLock.bind(this,!1));b("AsyncDialog").send(c,function(a){b("PaymentsFlow").setDialog(a)})},chargeCredential:function(a,b,c,d,e,f){d={funding_id:d,payment_method:e,payment_method_type:e,shortcut_charge_flow:!0};j.addCredential(a,b,c,null,f,null,null,null,null,null,d)},authorizeCredential:function(a,c,d,e){__p&&__p();if(j._flowLock)return;j.setFlowLock(!0);b("AdsInterfacesLogger").log({eventName:"authorize_credential_initiated",data:{event_source:d}});var f=function(a){b("AdsInterfacesLogger").log({eventName:a?"authorize_credential_completed":"authorize_credential_cancelled",data:{event_source:d}}),e&&e(babelHelpers["extends"]({},a))};a=b("XAdsPaymentDialogController").getURIBuilder().setInt("account_id",a).setInt("payment_method_id",c).setBool("authorize_payment_method",!0).setString("placement",d).getURI();b("PaymentsFlow").setCallback(f);c=new(b("AsyncRequest"))().setURI(a).setFinallyHandler(j.setFlowLock.bind(j,!1));b("AsyncDialog").send(c,function(a){b("PaymentsFlow").setDialog(a)})}};e.exports=j}),null); __d("AdsLWIPromoteButtonLabel",["fbt","qex"],(function(a,b,c,d,e,f,g){"use strict";function a(){return b("qex")._("863345")?g._("Create Ad"):g._("Promote")}e.exports={getPromoteButtonLabel:a}}),null); __d("AdsLWIURIConstants",["URI"],(function(a,b,c,d,e,f){"use strict";e.exports={DEFAULT_HELP_CENTER_URI_LINK:new(b("URI"))("/help/www/547448218658012/")}}),null); __d("AdsLWIDialogMounts",[],(function(a,b,c,d,e,f){"use strict";a=document.createElement("div");e.exports={BOOSTED_COMPONENT_DIALOG_MOUNT:a}}),null); __d("isBoostIDBoosted",["AdsLWIBoostIDType"],(function(a,b,c,d,e,f){"use strict";var g=b("AdsLWIBoostIDType").NEW_BOOST_ID;function a(a){return!!a&&a!==g}e.exports=a}),null); __d("XAdsManagerHomePageController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/ads/manage/home/",{business_id:{type:"Int"},account_id:{type:"Int"},campaigns:{type:"IntSet"},level:{type:"Enum",defaultValue:"campaign",enumType:1},time_start:{type:"String"},time_end:{type:"String"},offset:{type:"Int",defaultValue:0},status:{type:"Enum",enumType:0},sort_key:{type:"Int"},sort_dir:{type:"String"},show_adgroup_id:{type:"Int"},show_gray_disabled_info:{type:"Exists",defaultValue:!1},source:{type:"Enum",enumType:1}})}),null); __d("BoostedAutomatedAdsConstants",["XAdsManagerHomePageController"],(function(a,b,c,d,e,f){"use strict";a={AD_TOOLTIP_WIDTH:268,AUDIENCE_INSIGHTS_REDESIGN_OFFSET:46,AUTOMATED_ADS_CONFIRMATION_DIALOG_WIDTH:642,AUTOMATED_ADS_DIALOG_MAX_HEIGHT:700,AUTOMATED_ADS_DIALOG_MIN_HEIGHT:350,AUTOMATED_ADS_DIALOG_SCROLLABLE_TAB_THRESHOLD:500,AUTOMATED_ADS_DIALOG_RIGHT_PANE_WIDTH:540,CREATIVE_REFRESH_BOTTOM_BAR_HEIGHT:48,CREATIVE_REFRESH_DIALOG_COLUMN_HEIGHT:167,CREATIVE_REFRESH_DIALOG_IMAGE_HEIGHT:52,CREATIVE_REFRESH_DIALOG_IMAGE_WIDTH:52,CREATIVE_REFRESH_DIALOG_WIDTH:688,CREATIVE_REFRESH_SETTINGS_BAR_OFFSET:52,SAVE_CHANGES_DIALOG_WIDTH:420,SMALL_AUTOMATED_ADS_DIALOG_MAX_HEIGHT:470,SMALL_AUTOMATED_ADS_DIALOG_MIN_HEIGHT:250,SMALL_AUTOMATED_ADS_DIALOG_WIDTH:940,ADS_PLACEMENT_LEARN_MORE_URI:"/business/ads-guide?tab0=Mobile%20News%20Feed",ADS_LOOKALIKE_LEARN_MORE_URI:"/business/learn/facebook-ads-lookalike-audiences",ADS_PENDING_LEARN_MORE_URI:"/business/help/204798856225114",AVERAGE_DAILY_BUDGET_LEARN_MORE_URI:"/business/help/190490051321426",ATTRIBUTION_LEARN_MORE_URI:"/business/help/458681590974355",CREATE_PROMOTION_LEARN_MORE_URI:"/business/help/653938121423949",CREATIVE_TOOLTIP_LEARN_MORE_URI:"/business/help/1189028774466371",CUSTOMIZED_ADVERTISING_PLAN:"http://www.facebook.com/business/help/223852498347426",BUDGET_UPDATE_LEARN_MORE_URI:"/business/help/1761939464074139",INSTAGRAM_CREATIVE_HELP_CENTER_URI:"/business/help/430958953753149",LEAD_GEN_POLICY_LEARN_MORE_URI:"/business/help/163970387498120",ONGOING_PROMOTIONS_LEARN_MORE_URI:"/business/help/1295598247141781/",PIXEL_IMPLEMENTATION_GUIDE_URI:"/business/help/952192354843755",PLACEMENTS_AUDIENCE_NETWORK_LEARN_MORE_URI:"/business/help/407108559393196",PLACEMENTS_LEARN_MORE_URI:"/business/help/717961614941499",ROAS_LEARN_MORE_URI:"/business/help/1283504535023899",MAX_NUM_OF_ADS:6,NUM_OF_ADS_PER_ROW:3,DEFAULT_AUTOMATED_ADS_INSIGHTS_TAB:"conversions",DEFAULT_AUTOMATED_ADS_TAB:"summary",DEFAULT_AUTOMATED_ADS_LOCATIONS_PLACEMENTS_TAB:"locations",AD_CARD_IMAGE_HEIGHT:151,AD_CARD_IMAGE_WIDTH:269,MESSAGE_BOX_PAGENAME_LENGTH:20,ADS_MANAGER_HOME_PAGE_URI:b("XAdsManagerHomePageController").getURIBuilder().getURI(),LEAD_GEN_TOS_CMS_CONTENT_ID:"787633668081852",LEAD_GEN_TOS_DIALOG_WIDTH:800,LEAD_GEN_TOS_DIALOG_HEIGHT:400,LEAD_GEN_AGE_GENDER_BREAKDOWN_THRESHOLD:20,CONVERSION_UPSELL_INFO_STEP:"conversion_upsell_info_step",CONVERSION_UPSELL_EDIT_STEP:"conversion_upsell_edit_step",CONVERSION_UPSELL_FINISH_STEP:"conversion_upsell_finish_step",CONVERSION_UPSELL_DIALOG_HEIGHT:650,CONVERSIONS_ROAS_THRESHOLD:2,BUDGET_MIGRATION_MESSAGE_IMPRESSIONS_CAP:5};e.exports=a}),null); __d("BoostedComponentStringsV2",["fbt","React"],(function(a,b,c,d,e,f,g){"use strict";a={BOOST:g._("Boost"),DELETE_PROMOTION_TITLE:g._("Delete Ad"),ADD_BUDGET:g._("Add Budget"),AUDIENCE_SECTION:g._("AUDIENCE"),BUDGET_DURATION_SECTION:g._("BUDGET AND DURATION"),DURATION_BUDGET_SECTION:g._("DURATION AND BUDGET"),DAILY_BUDGET_LABEL:g._("Daily Budget"),DAILY_BUDGET_TOOLTIP:g._("The maximum amount you'll spend on your ad each day"),DURATION_LABEL:g._("Duration"),DURATION_TOOLTIP:g._("Choose how long you want your ad to run"),PAYMENT_INFO_SECTION:g._("PAYMENT"),CONVERSION_TRACKING_SECTION:g._("TRACKING CONVERSIONS"),FACEBOOK_PIXEL_LABEL:g._("Choose a Pixel (Optional)"),FACEBOOK_PIXEL_TOOLTIP:g._("Facebook pixel is a small piece of code that lets you keep track of conversions, such as purchases and sign-ups, on your website"),ACCOUNT_SECTION:g._("Account"),PIXEL_SECTION:g._("Pixel"),HELP_CENTER:g._("Help Center"),BOOSTED_COMPONENT_INSIGHT_DIALOG_TITLE:g._("View Results"),BOOSTED_COUPON_PAYMENT_HELP_TEXT:g._("Your primary payment method will be charged for any amount spent beyond the value of your coupon."),BOOSTED_WEBSITE_DIALOG_TITLE:g._("Promote Website"),BOOSTED_APP_INSTALL_DIALOG_TITLE:g._("Promote Your App"),BOOSTED_PAGELIKE_DIALOG_TITLE:g._("Promote Page"),BOOSTED_LOCAL_AWARENESS_DIALOG_TITLE:g._("Promote Local Business"),BOOSTED_LEADGEN_CREATE_FORM_DIALOG_TITLE:g._("Create a Form"),BOOSTED_LEADGEN_SIMPLIFIED_CREATE_FORM_DIALOG_TITLE:g._("Create an Ad - Create a Form"),BOOSTED_LEADGEN_DIALOG_TITLE:g._("Get Contacts"),BOOSTED_LEADGEN_SIMPLIFIED_DIALOG_TITLE:g._("Create an Ad - Get Contacts"),PAGE_MESSAGES_DISABLED_ERROR:g._("To use this call-to-action button you must allow people to send private messages to your Page"),CALL_TO_ACTION_VALIDATION_FAILED:g._("A technical problem occurred. Please try again in a few minutes, or refresh your browser."),EDIT:g._("Edit"),EDIT_PROMOTION:g._("Edit Ad"),SAVE:g._("Save"),CREATE_PROMOTION:g._("Create Promotion"),INVALID_PHONE_NUMBER_ERROR:g._("Given phone number must be a valid telephone number including country code. For example, 15555550100"),INVALID_TICKET_EVENT_ERROR:g._("Please select a valid event."),AD_LIBRARY_NOTICE:g._("AD LIBRARY VISIBILITY"),AD_LIBRARY_NOTICE_HELP_TEXT:g._("Your ad and information from your Marketplace profile may appear publicly in Ad Library search results."),getCampaignDurationString:function(a,c){return g._("This ad will run for {campaign_length_in_days} days, ending on {campaign_end_date}.",[g._param("campaign_length_in_days",b("React").createElement("b",null,a)),g._param("campaign_end_date",c)])},getAverageSpendPerDayString:function(a){return g._("You will spend an average of {average_budget_per_day_amount} per day.",[g._param("average_budget_per_day_amount",b("React").createElement("b",null,a))])},getTotalSpendPerDayString:function(a){return g._("You will spend a total of {total_budget_amount}.",[g._param("total_budget_amount",b("React").createElement("b",null,a))])},getCampaignDurationForScheduledPostString:function(a,c,d){return g._({"*":"This ad will run for {number} days, from {campaign_start_date} to {campaign_end_date}.","_1":"This ad will run for 1 day, from {campaign_start_date} to {campaign_end_date}."},[g._plural(a,"number",b("React").createElement("b",null,a)),g._param("campaign_start_date",c),g._param("campaign_end_date",d)])}};e.exports=a}),null); __d("BoostedComponentLeadGenUtils",["URI"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=new(b("URI"))("/business/help/114161868925832/"),h=new(b("URI"))("/business/help/528479170832814/"),i=function(a){return a!=="0"&&!!a};a=function(a,b){return j(a)&&i(b)};var j=function(a){return a!=="www_third_party_embedded_flow"};c=function(a){return j(a)?h:g};e.exports={isBoostFormStep:i,isConsolidatedBoostFormStep:a,isOnFacebookLeadGenPlacement:j,getHelpCenterURILink:c,ON_FACEBOOK_HELP_CENTER_URI_LINK:h}}),null); __d("CanvasCreationWaterfallTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(){this.$1={}}var c=a.prototype;c.log=function(){b("GeneratedLoggerUtils").log("logger:CanvasCreationWaterfallLoggerConfig",this.$1,b("Banzai").BASIC)};c.logVital=function(){b("GeneratedLoggerUtils").log("logger:CanvasCreationWaterfallLoggerConfig",this.$1,b("Banzai").VITAL)};c.logImmediately=function(){b("GeneratedLoggerUtils").log("logger:CanvasCreationWaterfallLoggerConfig",this.$1,{signal:!0})};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setAdAccountID=function(a){this.$1.ad_account_id=a;return this};c.setAdObjectiveName=function(a){this.$1.ad_objective_name=a;return this};c.setAymtChannel=function(a){this.$1.aymt_channel=a;return this};c.setAymtEventName=function(a){this.$1.aymt_event_name=a;return this};c.setAymtQe=function(a){this.$1.aymt_qe=a;return this};c.setAymtTip=function(a){this.$1.aymt_tip=a;return this};c.setCanvasID=function(a){this.$1.canvas_id=a;return this};c.setCanvasLoadType=function(a){this.$1.canvas_load_type=a;return this};c.setCanvasName=function(a){this.$1.canvas_name=a;return this};c.setCanvasTags=function(a){this.$1.canvas_tags=b("GeneratedLoggerUtils").serializeVector(a);return this};c.setDraftElementTypes=function(a){this.$1.draft_element_types=b("GeneratedLoggerUtils").serializeVector(a);return this};c.setDuplicateParentCanvasID=function(a){this.$1.duplicate_parent_canvas_id=a;return this};c.setEditorLineHeight=function(a){this.$1.editor_line_height=a;return this};c.setEditorPaddingBottom=function(a){this.$1.editor_padding_bottom=a;return this};c.setEditorPaddingTop=function(a){this.$1.editor_padding_top=a;return this};c.setEditorPhotoHeight=function(a){this.$1.editor_photo_height=a;return this};c.setEditorPhotoWidth=function(a){this.$1.editor_photo_width=a;return this};c.setEditorURL=function(a){this.$1.editor_url=a;return this};c.setElementPayload=function(a){this.$1.element_payload=a;return this};c.setElementType=function(a){this.$1.element_type=a;return this};c.setErrorCode=function(a){this.$1.error_code=a;return this};c.setErrorMessage=function(a){this.$1.error_message=a;return this};c.setEventDetails=function(a){this.$1.event_details=a;return this};c.setEventName=function(a){this.$1.event_name=a;return this};c.setFbtraceID=function(a){this.$1.fbtrace_id=a;return this};c.setHelpPageEventName=function(a){this.$1.help_page_event_name=a;return this};c.setIncompleteElements=function(a){this.$1.incomplete_elements=a;return this};c.setIsNewUser=function(a){this.$1.is_new_user=a;return this};c.setNuxTourStep=function(a){this.$1.nux_tour_step=a;return this};c.setPageCanvasCount=function(a){this.$1.page_canvas_count=a;return this};c.setPageID=function(a){this.$1.page_id=a;return this};c.setPageName=function(a){this.$1.page_name=a;return this};c.setPagePublishedCanvasCount=function(a){this.$1.page_published_canvas_count=a;return this};c.setPropertyList=function(a){this.$1.property_list=b("GeneratedLoggerUtils").serializeVector(a);return this};c.setPublishedURL=function(a){this.$1.published_url=a;return this};c.setReorderComponentDistance=function(a){this.$1.reorder_component_distance=a;return this};c.setSource=function(a){this.$1.source=a;return this};c.setTime=function(a){this.$1.time=a;return this};c.setVC=function(a){this.$1.vc=a;return this};c.setVideoID=function(a){this.$1.video_id=a;return this};c.setViewerID=function(a){this.$1.viewer_id=a;return this};c.setWeight=function(a){this.$1.weight=a;return this};return a}();c={ad_account_id:!0,ad_objective_name:!0,aymt_channel:!0,aymt_event_name:!0,aymt_qe:!0,aymt_tip:!0,canvas_id:!0,canvas_load_type:!0,canvas_name:!0,canvas_tags:!0,draft_element_types:!0,duplicate_parent_canvas_id:!0,editor_line_height:!0,editor_padding_bottom:!0,editor_padding_top:!0,editor_photo_height:!0,editor_photo_width:!0,editor_url:!0,element_payload:!0,element_type:!0,error_code:!0,error_message:!0,event_details:!0,event_name:!0,fbtrace_id:!0,help_page_event_name:!0,incomplete_elements:!0,is_new_user:!0,nux_tour_step:!0,page_canvas_count:!0,page_id:!0,page_name:!0,page_published_canvas_count:!0,property_list:!0,published_url:!0,reorder_component_distance:!0,source:!0,time:!0,vc:!0,video_id:!0,viewer_id:!0,weight:!0};e.exports=a}),null); __d("AdsCanvasInlineBuilderActions",["AdsCanvasInlineAdvancedBuilderBlankOpenDataAction","AdsCanvasInlineAdvancedBuilderBlankSaveDataAction","AdsCanvasInlineBuilderBuilderNuxTourCompleteDataAction","AdsCanvasInlineBuilderBuilderNuxTourXoutDataAction","AdsCanvasInlineBuilderHideProductTaggingOverlayDataAction","AdsCanvasInlineBuilderRemoveInlineCanvasDataAction","AdsCanvasInlineBuilderSaveCanvasDataAction","AdsCanvasInlineBuilderSelectRadioButtonDataAction","AdsCanvasInlineBuilderSetProductTaggingCoordinatesDataAction","AdsCanvasInlineBuilderShowInlineModalDataAction","AdsCanvasInlineBuilderShowProductTaggingOverlayDataAction","AdsCanvasInlineBuilderSwitchInlineTabsDataAction","AdsCanvasInlineDropdownCreateNewSelectDataAction","AdsCanvasInlineDropdownUseExistingSelectDataAction","AdsCanvasInlineTemplateBuilderDoneDataAction","AdsCanvasInlineTemplateBuilderMobilePreviewDataAction","AdsFullscreenExperienceRadioToggleDataAction","CanvasCreationWaterfallTypedLogger"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={removeInlineCanvasData:function(){b("AdsCanvasInlineBuilderRemoveInlineCanvasDataAction").dispatch({},{line:"47",module:"AdsCanvasInlineBuilderActions.js"})},saveCurrentCanvas:function(a,c,d,e,f,g,h,i,j){new(b("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.init_save").setDraftElementTypes(a.elements.map(function(a){return a.elementType})).log(),b("AdsCanvasInlineBuilderSaveCanvasDataAction").dispatch({canvasDocument:a,elements:c,productSetID:d,pageID:e,onSuccess:f,onError:g,hostID:h,adgroupIDs:i,canvasLeadForm:j},{line:"72",module:"AdsCanvasInlineBuilderActions.js"})},setShowInlineModal:function(a,c,d,e){b("AdsCanvasInlineBuilderShowInlineModalDataAction").dispatch({canvasID:c,showModal:a,templateID:d,sourceFormID:e},{line:"91",module:"AdsCanvasInlineBuilderActions.js"})},setInlineTab:function(a,c){b("AdsCanvasInlineBuilderSwitchInlineTabsDataAction").dispatch({tab:a,isUserInteracted:c},{line:"100",module:"AdsCanvasInlineBuilderActions.js"})},selectRadioButton:function(a){b("AdsCanvasInlineBuilderSelectRadioButtonDataAction").dispatch({newValue:a},{line:"107",module:"AdsCanvasInlineBuilderActions.js"})},inlineAdvancedBuilderBlankOpen:function(){b("AdsCanvasInlineAdvancedBuilderBlankOpenDataAction").dispatch({},{line:"113",module:"AdsCanvasInlineBuilderActions.js"})},inlineAdvancedBuilderBlankSave:function(){b("AdsCanvasInlineAdvancedBuilderBlankSaveDataAction").dispatch({},{line:"117",module:"AdsCanvasInlineBuilderActions.js"})},inlineBuilderNuxTourComplete:function(a,c){b("AdsCanvasInlineBuilderBuilderNuxTourCompleteDataAction").dispatch({nuxStep:a,templateID:c},{line:"121",module:"AdsCanvasInlineBuilderActions.js"})},inlineBuilderNuxTourXout:function(a,c){b("AdsCanvasInlineBuilderBuilderNuxTourXoutDataAction").dispatch({nuxStep:a,templateID:c},{line:"128",module:"AdsCanvasInlineBuilderActions.js"})},inlineTemplateBuilderDone:function(){b("AdsCanvasInlineTemplateBuilderDoneDataAction").dispatch({},{line:"135",module:"AdsCanvasInlineBuilderActions.js"})},inlineDropdownCreateNewSelect:function(){b("AdsCanvasInlineDropdownCreateNewSelectDataAction").dispatch({},{line:"139",module:"AdsCanvasInlineBuilderActions.js"})},inlineDropdownUseExistingSelect:function(){b("AdsCanvasInlineDropdownUseExistingSelectDataAction").dispatch({},{line:"143",module:"AdsCanvasInlineBuilderActions.js"})},inlineTemplateBuilderMobilePreview:function(){b("AdsCanvasInlineTemplateBuilderMobilePreviewDataAction").dispatch({},{line:"147",module:"AdsCanvasInlineBuilderActions.js"})},showProductTaggingOverlay:function(a,c,d){b("AdsCanvasInlineBuilderShowProductTaggingOverlayDataAction").dispatch({index:d,photoElementID:a,productID:c},{line:"155",module:"AdsCanvasInlineBuilderActions.js"})},hideProductTaggingOverlay:function(){b("AdsCanvasInlineBuilderHideProductTaggingOverlayDataAction").dispatch({},{line:"163",module:"AdsCanvasInlineBuilderActions.js"})},setProductTaggingCoordinates:function(a,c,d){b("AdsCanvasInlineBuilderSetProductTaggingCoordinatesDataAction").dispatch({coordinates:d,photoElementID:a,productID:c},{line:"171",module:"AdsCanvasInlineBuilderActions.js"})},toggleFullscreenExperienceRadioList:function(a){b("AdsFullscreenExperienceRadioToggleDataAction").dispatch({selectedOption:a},{line:"181",module:"AdsCanvasInlineBuilderActions.js"})}};e.exports=a}),null); __d("AdsNumericStepper.react",["cx","invariant","React","Tooltip"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();a=b("React").PropTypes;var i={blue:{number:"white",activeNumber:"dodgerblue",activeNav:"dodgerblue",inactiveNav:"#ccc",activeLegend:"dodgerblue",inactiveLegend:"#999",innerCircle:"white"},red:{number:"white",activeNumber:"red",activeNav:"#DF0101",inactiveNav:"#ccc",activeLegend:"red",inactiveLegend:"#999",innerCircle:"white"},dark:{number:"white",activeNumber:"black",activeNav:"black",inactiveNav:"#ccc",activeLegend:"black",inactiveLegend:"#999",innerCircle:"white"},light:{number:"black",activeNumber:"#999999",activeNav:"#eeeeee",inactiveNav:"#fff",activeLegend:"#999999",inactiveLegend:"#ccc",innerCircle:"white"},gray:{number:"white",activeNumber:"#aaaaaa",activeNav:"#aaaaaa",inactiveNav:"#aaaaaa",activeLegend:"#888",inactiveLegend:"#aaaaaa",innerCircle:"white"}};c=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;for(var e=arguments.length,f=new Array(e),g=0;g=0&&this.props.currentStep=d:a.props.currentStep==d,a.props.currentStep>d);e.push(b);d+1=d+1:!1))});e.push(this.$4("top_spacer_right",this.props.spacerWidth));return b("React").createElement("div",null,b("React").createElement("div",{className:"_59m9"},e),this.$5(d))};return c}(b("React").Component);c.propTypes={circleWidth:a.number.isRequired,color:a.string.isRequired,connectorHeight:a.number.isRequired,connectorWidth:a.number.isRequired,currentStep:a.number.isRequired,fontSize:a.number.isRequired,highlightPassedSteps:a.bool,items:a.array.isRequired,showCheckmark:a.bool,showInnerCircle:a.bool,showLegend:a.bool,showToolTip:a.bool,spacerWidth:a.number.isRequired};c.defaultProps={circleWidth:25,color:"blue",connectorHeight:3,connectorWidth:110,currentStep:0,fontSize:12,highlightPassedSteps:!0,showCheckmark:!1,showLegend:!0,spacerWidth:50};e.exports=c}),null); __d("adsGrowthCouponStoreDataSelector",["AdsGrowthCouponsDataProvider","AdsStoreUtils"],(function(a,b,c,d,e,f){"use strict";a=b("AdsGrowthCouponsDataProvider").toFluxStore();e.exports=b("AdsStoreUtils").toSelector(a)}),null); __d("AdsGrowthCouponDataManager",["AdsGrowthCouponAdAccountInfoDataLoader","AdsGrowthEnrollOfferForAdAccountAction","AdsGrowthLoadEnrolledOfferForAdAccountAction","AdsGrowthLoadOfferForAdAccountAction","adsGrowthCouponStoreDataSelector","promiseDone"],(function(a,b,c,d,e,f){"use strict";e.exports={enroll:function(a,c,d,e){if(b("adsGrowthCouponStoreDataSelector")().targetID&&e!==b("adsGrowthCouponStoreDataSelector")().targetID&&d==="new_timeline")return;b("AdsGrowthEnrollOfferForAdAccountAction").dispatch({key:a,placement:d,offerID:c},{line:"40",module:"AdsGrowthCouponDataManager.js"});b("promiseDone")(b("AdsGrowthCouponAdAccountInfoDataLoader").enrollOffer(a,c,d),function(c){b("AdsGrowthLoadEnrolledOfferForAdAccountAction").dispatch({key:a,couponData:c},{line:"52",module:"AdsGrowthCouponDataManager.js"})})},loadOffer:function(a){b("AdsGrowthLoadOfferForAdAccountAction").dispatch({offerID:a.offerID,targetID:a.targetID},{line:"62",module:"AdsGrowthCouponDataManager.js"})}}}),null); __d("XAdsManagerGetProcessingAltpayPaymentsController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/ads/ajax/billing/get_processing_altpay_payments/",{ad_account_id:{type:"String",required:!0}})}),null); __d("AdsPaymentMethodsDataLoader",["Promise","AdsGraphAPI","AsyncRequest","GraphAPIFieldUtils","XAdsManagerGetProcessingAltpayPaymentsController"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={loadAllPaymentMethods:function(a){return b("AdsGraphAPI").get(e.id).adaccount(a).get({fields:[b("GraphAPIFieldUtils").getFieldWithSubfields("all_payment_methods",[b("GraphAPIFieldUtils").getFieldWithSubfields("payment_method_altpays",["account_id","country","credential_id","display_name","image_url","instrument_type","network_id","payment_provider","title"]),b("GraphAPIFieldUtils").getFieldWithSubfields("pm_credit_card",["account_id","credential_id","credit_card_address","credit_card_type","display_string","exp_month","exp_year","first_name","is_verified","last_name","middle_name","time_created","need_3ds_authorization","allow_manual_3ds_authorization","supports_recurring_in_india"]),b("GraphAPIFieldUtils").getFieldWithSubfields("non_ads_credit_card",["account_id","credential_id","credit_card_address","credit_card_type","display_string","exp_month","exp_year","first_name","is_verified","last_name","middle_name","subtitle","time_created","need_3ds_authorization","allow_manual_3ds_authorization","supports_recurring_in_india"]),b("GraphAPIFieldUtils").getFieldWithSubfields("payment_method_direct_debits",["account_id","address","can_verify","credential_id","display_string","first_name","is_awaiting","is_pending","last_name","middle_name","status","time_created"]),b("GraphAPIFieldUtils").getFieldWithSubfields("payment_method_extended_credits",["account_id","balance","credential_id","max_balance","type","partitioned_from","sequential_liability_amount"]),b("GraphAPIFieldUtils").getFieldWithSubfields("payment_method_paypal",["account_id","credential_id","email_address","time_created"]),b("GraphAPIFieldUtils").getFieldWithSubfields("payment_method_stored_balances",["account_id","balance","credential_id","total_fundings"]),b("GraphAPIFieldUtils").getFieldWithSubfields("payment_method_tokens",["account_id","credential_id","current_balance","original_balance","time_created","time_expire","type"])])]})},loadPrimaryPaymentMethod:function(a){return b("AdsGraphAPI").get(e.id).adaccount(a).get({fields:["funding_source_details"]})},loadAllAltpayProcessingPayments:function(a){return new(b("Promise"))(function(c,d){var e=b("XAdsManagerGetProcessingAltpayPaymentsController").getURIBuilder().setString("ad_account_id",a).getURI();new(b("AsyncRequest"))().setURI(e).setHandler(function(a){c(a.payload)}).setErrorHandler(function(a){d(a)}).send()})}};e.exports=a}),null); __d("AdsImageIDClasses",["invariant","Cache","ShutterstockImageUtils","hashString","nullthrows"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h="SECRET_"+Math.random();a=function(){__p&&__p();function a(a,b){a===h||g(0,2367),this.$1=b}a.fromAcountAndHash=function(a,c){var d="ACCOUNT_"+a+":"+c;n.has(d)||n.set(d,new i(h,d,a,c));return b("nullthrows")(n.get(d))};a.fromFacebookID=function(a){var c="FACEBOOK_"+a;n.has(c)||n.set(c,new j(h,c,a));return b("nullthrows")(n.get(c))};a.fromShutterstockID=function(a){var c="SHUTTERSTOCK_"+a;n.has(c)||n.set(c,new l(h,c,a));return b("nullthrows")(n.get(c))};a.fromShutterstockURL=function(c){b("ShutterstockImageUtils").isStockImageURL(c)||g(0,2368);return a.fromShutterstockID(b("ShutterstockImageUtils").urlToID(c))};a.fromExternalURL=function(a){var c="EXT_"+a;n.has(c)||n.set(c,new m(h,c,a));return b("nullthrows")(n.get(c))};a.fromBusinessImageID=function(a){var c="FACEBOOK_"+a;n.has(c)||n.set(c,new k(h,c,a));return b("nullthrows")(n.get(c))};a.fromSignature=function(a){n.has(a)||g(0,2369);return b("nullthrows")(n.get(a))};var c=a.prototype;c.getSignature=function(){return this.$1};c.equals=function(b){if(this===b)return!0;return!(b instanceof a)?!1:this.getSignature()===b.getSignature()};c.hashCode=function(){var a=this.$2;if(a==null){var c=b("hashString")(this.getSignature());this.$2=c;return c}return a};return a}();var i=function(b){__p&&__p();babelHelpers.inheritsLoose(a,b);function a(a,c,d,e){a=b.call(this,a,c)||this;a.$AdsAccountImageID1=d;a.$AdsAccountImageID2=e;return a}var c=a.prototype;c.getAccountID=function(){return this.$AdsAccountImageID1};c.getHash=function(){return this.$AdsAccountImageID2};return a}(a),j=function(b){babelHelpers.inheritsLoose(a,b);function a(a,c,d){a=b.call(this,a,c)||this;a.$AdsFacebookImageID1=d;return a}var c=a.prototype;c.getFacebookID=function(){return this.$AdsFacebookImageID1};return a}(a),k=function(b){babelHelpers.inheritsLoose(a,b);function a(a,c,d){a=b.call(this,a,c)||this;a.$AdsBusinessImageID1=d;return a}var c=a.prototype;c.getFacebookID=function(){return this.$AdsBusinessImageID1};return a}(a),l=function(b){babelHelpers.inheritsLoose(a,b);function a(a,c,d){a=b.call(this,a,c)||this;a.$AdsShutterstockImageID1=d;return a}var c=a.prototype;c.getShutterstockImageID=function(){return this.$AdsShutterstockImageID1};return a}(a),m=function(b){__p&&__p();babelHelpers.inheritsLoose(a,b);function a(a,c,d){a=b.call(this,a,c)||this;a.$AdsExternalImageID1=d;a.$AdsExternalImageID2=c.split("?")[0];return a}var c=a.prototype;c.getUrl=function(){return this.$AdsExternalImageID1};c.getComparableSignature=function(){return this.$AdsExternalImageID2};return a}(a),n=new(b("Cache"))();e.exports={AdsAccountImageID:i,AdsBusinessImageID:k,AdsExternalImageID:m,AdsFacebookImageID:j,AdsImageID:a,AdsShutterstockImageID:l}}),null); __d("AdsSimpleImage",["immutable"],(function(a,b,c,d,e,f){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}return b}(b("immutable").Record({height:null,url:null,width:null,isSphericalPhoto:null}));e.exports=a}),null); __d("formatCurrency",["AdsCurrencyFormatter","isFalsey"],(function(a,b,c,d,e,f){"use strict";function a(a,c){return b("isFalsey")(a)||b("isFalsey")(c)?null:b("AdsCurrencyFormatter").formatCurrencyFullFormat(c,a,!1,!0,!(a>=100||c!=="USD"))}e.exports=a}),null); __d("PYMABoostedComponentUtils",["AsyncRequest","Event","tidyEvent"],(function(a,b,c,d,e,f){"use strict";a={creativeSpecKeys:new Map(),instagramCandidatePosts:new Set(),listenForClick:function(a,c){b("tidyEvent")(b("Event").listen(a,"click",function(a){new(b("AsyncRequest"))().setURI(c).setMethod("POST").send()}))},addCustomCreativeSpecKey:function(a,b){this.creativeSpecKeys.set(a,b)},getCustomCreativeSpecKey:function(a){return this.creativeSpecKeys.get(a)},addInstagramCandidatePost:function(a){this.instagramCandidatePosts.add(a)},isInstagramCandidatePost:function(a){return this.instagramCandidatePosts.has(a)}};e.exports=a}),null); __d("AdsReviewAPIUtils",["fbt","AdsError","AdsLoadState_LEGACY","BoostedComponentAppID","CROWAdDisapprovalReasons","CROWCompsType","DOMContainer.react","IntegrityAPIConversionsConstants","React","ServerHTML.react","compactArray","md5"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=b("IntegrityAPIConversionsConstants").TEXT_PENALTY_ORDERED,i=b("IntegrityAPIConversionsConstants").TEXT_PENALTY_REASONS,j=b("IntegrityAPIConversionsConstants").TEXT_OVERLAY_REASONS,k={getCMSContentAndStatusForTextOverlay:function(a,c){var d=new Map();b("AdsLoadState_LEGACY").LOADED;a=b("compactArray")(a);d=c.getAll(a);c=k.getLoadState(Array.from(d.values()));return[d,c]},getDataForTextOverlayViolationBanner:function(a){return[k._getDataForTextOverlayViolation(a,"banner_title"),k._getDataForTextOverlayViolation(a,"banner_cms_content"),k._getDataForTextOverlayViolation(a,"exception_cms_content")]},_getDataForTextOverlayViolation:function(a,c){__p&&__p();if(!a)return null;a=a.warningData;if(!a||!a[b("CROWCompsType").PROACTIVE_AD_IMAGE])return null;var d=null,e=a[b("CROWCompsType").PROACTIVE_AD_IMAGE];a=Object.keys(e);a.forEach(function(a){if(j.has(a)){a=e[a].feedback_info;a.cms_data&&a.cms_data[c]&&(d=a.cms_data[c])}});return d},getPolicyBannerCMSIDs:function(a){var b=[];if(!a)return b;this._addBannerCMSIDsFromData(a.data,b);return b},getTextOverlayExceptionTitleCMSIDForLWI:function(){return"920890114708245"},getPolicyBannerTitleForAds:function(a){var b=g._("Your Ad May Not Be Approved");return k._getPolicyBannerTitle(a,b)},getPolicyBannerTitleForLWI:function(a,b){return k._getPolicyBannerTitle(a,k._getDefaultTitleForLWI(b))},getCrystalRMRToggleContentLWI:function(){return"342078379608293"},getCrystalRMRToggleContentCF:function(){return"219140238654890"},_getDefaultTitleForLWI:function(a){switch(a){case b("BoostedComponentAppID").BOOSTED_EVENT:return g._("Your Boosted Event May Not Be Approved");case b("BoostedComponentAppID").BOOSTED_PAGELIKE:return g._("Your Promoted Page May Not Be Approved");case b("BoostedComponentAppID").BOOSTED_WEBSITE:return g._("Your Promoted Website May Not Be Approved");default:return g._("Your Boosted Post May Not Be Approved")}},_getPolicyBannerTitle:function(a,b){if(!a||!a.data)return b;var c=[];k._addEntriesFromData(a.data,"banner_title",c);if(c.length===0)return b;else return g._("{banner_title}",[g._param("banner_title",c.shift())])},_addBannerCMSIDsFromData:function(a,b){k._addEntriesFromData(a,"banner_cms_content",b)},_addEntriesFromData:function(a,b,c){var d=new Set();Object.keys(a).forEach(function(e){var f=a[e];Object.keys(f).forEach(function(a){if(!d.has(a)){d.add(a);a=f[a].feedback_info;a.cms_data&&a.cms_data[b]!=="0"&&a.cms_data[b]!==""&&c.push(a.cms_data[b])}})})},getLoadState:function(a){__p&&__p();for(var a=a,c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;if(typeof e!=="string"&&e.loadState===b("AdsLoadState_LEGACY").LOADING)return b("AdsLoadState_LEGACY").LOADING}return b("AdsLoadState_LEGACY").LOADED},getObjectTextPenalty:function(a){a=a==null?void 0:a.text_penalty_level;return!a?"none":a},getHighestTextPenalty:function(a){var b=h.find(function(b){return k._anyHasTextPenaltyLevel(a,b)});b||(b="none");return b},_anyHasTextPenaltyLevel:function(a,b){return a.filter(function(a){return k.getObjectTextPenalty(a)===b}).length>0},getPenaltyLevelFromCROWDisapprovalReason:function(a){switch(a){case b("CROWAdDisapprovalReasons").TEXT_PENALTY_HIGH:return"high";case b("CROWAdDisapprovalReasons").TEXT_PENALTY_MEDIUM:return"medium";case b("CROWAdDisapprovalReasons").TEXT_PENALTY_LOW:return"low";default:return"none"}},getTextPenaltyLevel:function(a){if(!a||!a[b("CROWCompsType").PROACTIVE_AD_IMAGE])return"none";a=a[b("CROWCompsType").PROACTIVE_AD_IMAGE];a=Object.keys(a);var c=[];a.forEach(function(a){i.has(a)&&c.push(k.getPenaltyLevelFromCROWDisapprovalReason(a))});return c[0]},getTextPenaltyNoticeType:function(a){return a==="low"||a==="medium"?b("AdsError").Level.RECOMMEND:b("AdsError").Level.WARN},getCROWType:function(a){a=parseInt(a,10);var c=Object.keys(b("CROWCompsType"));for(var d=0;d=b("AdsLeadGenFormConstants").MIN_NUM_SELECTOR_OPTIONS?null:r}function G(a,c){return c.get("user_info_questions").some(function(c){c=a.get(c.get("id"));return!!c&&c.level===b("AdsError").Level.WARN})}function H(a){return I(a)+J(a)>0}function I(a){return a.get("user_info_questions").size+a.getCustomQuestionsOfType("prefill").size}function J(a){return a.get("customized_questions").size}function K(a,b){if(!t(a))return j;return b.has(a)?i:null}e.exports={reduce:a}}),null); __d("AdsLeadGenFormEditorValidationSettingsReducer",["AdsDataAtom","AdsLeadGenFormEditorConstants","AdsLeadGenFormEditorFormFinishActionFlux","AdsLeadGenFormEditorQuestionsAddQuestionActionFlux","AdsLeadGenFormEditorQuestionsDeleteQuestionActionFlux","AdsLeadGenFormEditorQuestionsSetFieldIdActionFlux","AdsLeadGenFormEditorQuestionsSetUserInfoActionFlux","AdsLeadGenFormEditorQuestionsUpdateQuestionActionFlux","AdsLeadGenFormEditorStore","AdsLeadGenFormEditorUtils","AdsLeadGenFormEditorValidateFormActionFlux","AdsLeadGenFormEditorValidationErrors","AdsLeadGenFormEditorValidationFields","adsLeadGenFormEditorSelectedUserInfoQuestionsSelector","immutable","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsLeadGenFormEditorValidationErrors").DUPLICATE_ANSWER_KEY_ERROR,h=b("AdsLeadGenFormEditorValidationErrors").DUPLICATE_QUESTION_KEY_ERROR,i=b("AdsLeadGenFormEditorValidationErrors").FORM_ERROR,j=b("AdsLeadGenFormEditorValidationErrors").SECTION_ERROR;function a(a,c){switch(c.type){case b("AdsLeadGenFormEditorQuestionsAddQuestionActionFlux").actionType:case b("AdsLeadGenFormEditorQuestionsDeleteQuestionActionFlux").actionType:case b("AdsLeadGenFormEditorQuestionsSetUserInfoActionFlux").actionType:case b("AdsLeadGenFormEditorQuestionsUpdateQuestionActionFlux").actionType:b("AdsDataAtom").waitFor([b("AdsLeadGenFormEditorStore").getDispatchToken()]);return l(a,c.formID);case b("AdsLeadGenFormEditorValidateFormActionFlux").actionType:case b("AdsLeadGenFormEditorFormFinishActionFlux").actionType:return l(a,c.formID);case b("AdsLeadGenFormEditorQuestionsSetFieldIdActionFlux").actionType:return a.set("FieldID_"+c.questionID,null);default:return a}}function k(a,c){__p&&__p();if(c.get("questionTypeKey")!=="multiple-choice")return a;var d=c.get("answers");if(d==null)return a;var e=!1,f=b("immutable").Set();d.forEach(function(d,h){h="FieldID_"+c.get("id")+"_"+d.answer;d=b("AdsLeadGenFormEditorUtils").generateKeyFromText(d.fieldID?d.fieldID:d.answer);f.has(d)?(e=!0,a=a.set(h,g)):(f=f.add(d),a=a.set(h,null))});e&&(a=a.set(b("AdsLeadGenFormEditorConstants").SETTINGS_TAB.SECTIONS.FIELD_IDS,j).set(b("AdsLeadGenFormEditorValidationFields").FORM,i));return a}function l(a,c){__p&&__p();a=a.set(b("AdsLeadGenFormEditorConstants").SETTINGS_TAB.SECTIONS.FIELD_IDS,null);c=b("nullthrows")(b("AdsLeadGenFormEditorStore").getForm(c));var d=b("immutable").Set(),e=!1,f=c.get("customized_questions");f.forEach(function(c){__p&&__p();a=k(a,c);if(c.get("questionTypeKey")==="conditional"){var f=c.get("conditionalQuestions");if(f==null)return;f.forEach(function(f,g){f=b("AdsLeadGenFormEditorUtils").generateKeyFromText(f.fieldKey||"conditional_question_"+(g+1));d.has(f)?(e=!0,a=a.set("FieldID_"+c.get("id")+"_"+g,h)):d=d.add(f)});return}f=b("AdsLeadGenFormEditorUtils").generateKeyFromText(c.get("fieldID")||b("AdsLeadGenFormEditorUtils").getDefaultFieldID(c.get("label")));var g=d.has(f);a=a.set("FieldID_"+c.get("id"),g?h:null);g?e=!0:d=d.add(f)});f=c.get("custom_disclaimer_consents");f.forEach(function(c){var f=b("AdsLeadGenFormEditorUtils").generateKeyFromText(c.get("fieldID")||b("AdsLeadGenFormEditorUtils").getDefaultFieldID(c.get("content"))),g=d.has(f);g?e=!0:d=d.add(f);a=a.set("FieldID_"+c.get("id"),g?h:null)});f=b("adsLeadGenFormEditorSelectedUserInfoQuestionsSelector")().getValue();!f?(f=c.get("user_info_questions"),f.map(function(b,c){c=b.get("fieldID");if(!c)return;var f=d.has(c);a=a.set("FieldID_"+b.get("id"),f?h:null);f?e=!0:d=d.add(c)})):f.map(function(c,f){f=b("AdsLeadGenFormEditorUtils").generateKeyFromText(c.get("fieldID")||b("AdsLeadGenFormEditorUtils").getDefaultFieldID(c.get("name")));var g=d.has(f);a=a.set("FieldID_"+c.get("id"),g?h:null);g?e=!0:d=d.add(f)});e&&(a=a.set(b("AdsLeadGenFormEditorConstants").SETTINGS_TAB.SECTIONS.FIELD_IDS,j).set(b("AdsLeadGenFormEditorValidationFields").FORM,i));return a}e.exports={reduce:a}}),null); __d("AdsLeadGenFormEditorValidationThankYouScreenReducer",["errorCode","errorDesc","fbt","AdsCanvasInlineBuilderFinishFormCanvasDataActionFlux","AdsError","AdsLeadGenFormEditorConstants","AdsLeadGenFormEditorFormFinishActionFlux","AdsLeadGenFormEditorFormPublishFailedActionFlux","AdsLeadGenFormEditorThankYouPageSetBodyActionFlux","AdsLeadGenFormEditorThankYouPageSetButtonTextActionFlux","AdsLeadGenFormEditorThankYouPageSetFollowUpActionUrlActionFlux","AdsLeadGenFormEditorThankYouPageSetPhoneNumberActionFlux","AdsLeadGenFormEditorThankYouPageSetTitleActionFlux","AdsLeadGenFormEditorValidateFormActionFlux","AdsLeadGenFormEditorValidationErrors","AdsLeadGenFormEditorValidationFields","AdsLeadGenFormEditorValidationUtils","ads-lib-urllib","immutable"],(function(a,b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j=b("AdsLeadGenFormEditorValidationErrors").FORM_ERROR,k=b("AdsLeadGenFormEditorValidationErrors").SECTION_ERROR,l=b("AdsLeadGenFormEditorValidationUtils").isNonEmptyString;function a(a,c){__p&&__p();switch(c.type){case b("AdsLeadGenFormEditorThankYouPageSetTitleActionFlux").actionType:return a.set(b("AdsLeadGenFormEditorValidationFields").THANK_YOU_PAGE_HEADLINE,o(c.title));case b("AdsLeadGenFormEditorThankYouPageSetBodyActionFlux").actionType:return a.set(b("AdsLeadGenFormEditorValidationFields").THANK_YOU_PAGE_BODY,p(c.body));case b("AdsLeadGenFormEditorThankYouPageSetButtonTextActionFlux").actionType:return a.set(b("AdsLeadGenFormEditorValidationFields").THANK_YOU_PAGE_BUTTON_TEXT,q(c.buttonText));case b("AdsLeadGenFormEditorThankYouPageSetPhoneNumberActionFlux").actionType:return a.set(b("AdsLeadGenFormEditorValidationFields").THANK_YOU_PAGE_BUSINESS_PHONENUMBER,r(c.phoneNumber));case b("AdsLeadGenFormEditorValidateFormActionFlux").actionType:case b("AdsLeadGenFormEditorFormFinishActionFlux").actionType:case b("AdsCanvasInlineBuilderFinishFormCanvasDataActionFlux").actionType:a=a.set(b("AdsLeadGenFormEditorConstants").CONTENT_TAB.SECTIONS.THANK_YOU_PAGE,null);var d=c.form;a=m(a,d);return a;case b("AdsLeadGenFormEditorThankYouPageSetFollowUpActionUrlActionFlux").actionType:return a.set("follow_up_action_url",n(c.followUpActionURL));case b("AdsLeadGenFormEditorFormPublishFailedActionFlux").actionType:return c.error.code===192?a.set(b("AdsLeadGenFormEditorValidationFields").THANK_YOU_PAGE_BUSINESS_PHONENUMBER,new(b("AdsError"))(c.error.code,i._("Please provide a valid phone number"))).set(b("AdsLeadGenFormEditorConstants").CONTENT_TAB.SECTIONS.THANK_YOU_PAGE,k).set(b("AdsLeadGenFormEditorValidationFields").FORM,j):a;default:return a}}function m(a,c){var d=c.get("thank_you_page"),e=null,f=null,g=null;d&&(e=o(d.get("title")),f=p(d.get("body")),g=q(d.get("button_text")),a=a.set(b("AdsLeadGenFormEditorValidationFields").THANK_YOU_PAGE_HEADLINE,e).set(b("AdsLeadGenFormEditorValidationFields").THANK_YOU_PAGE_BODY,f).set(b("AdsLeadGenFormEditorValidationFields").THANK_YOU_PAGE_BUTTON_TEXT,g));var h=null;d&&d.button_type==="CALL_BUSINESS"&&(h=r(d.business_phone_number),a=a.set(b("AdsLeadGenFormEditorValidationFields").THANK_YOU_PAGE_BUSINESS_PHONENUMBER,h));var i=null;(!d||d.button_type==="VIEW_WEBSITE"||d.button_type==="DOWNLOAD")&&(i=n(c.get("follow_up_action_url")),a=a.set("follow_up_action_url",i));(i||e||f||g||h)&&(a=a.set(b("AdsLeadGenFormEditorConstants").CONTENT_TAB.SECTIONS.THANK_YOU_PAGE,k).set(b("AdsLeadGenFormEditorValidationFields").FORM,j));return a}function n(a){return b("ads-lib-urllib").isUrl(a)?null:new(b("AdsError"))(1892011,i._("Please provide a valid Website URL"),{level:b("AdsError").Level.WARN})}function o(a){return l(a)?null:new(b("AdsError"))(1892123,h._(function(a,b){return a._("Title is required for thank you page. Please add the title.")},{}),{level:b("AdsError").Level.WARN,path:b("AdsLeadGenFormEditorThankYouPageSetTitleActionFlux").actionType})}function p(a){return l(a)?null:new(b("AdsError"))(1892124,h._(function(a,b){return a._("A description is required for thank you page. Please add a description in thank you page.")},{}),{level:b("AdsError").Level.WARN,path:b("AdsLeadGenFormEditorThankYouPageSetBodyActionFlux").actionType})}function q(a){return l(a)?null:new(b("AdsError"))(1892125,h._(function(a,b){return a._("The button text is required for thank you page. Please add the button text in thank you page.")},{}),{level:b("AdsError").Level.WARN,path:b("AdsLeadGenFormEditorThankYouPageSetButtonTextActionFlux").actionType})}function r(a){return!a||!a.nationalNumber?new(b("AdsError"))(1892149,h._(function(a,b){return a._("Thank you page phone number is required. Please add a valid phone number.")},{}),{level:b("AdsError").Level.WARN,path:b("AdsLeadGenFormEditorThankYouPageSetPhoneNumberActionFlux").actionType}):null}e.exports={reduce:a}}),null); __d("AdsLeadGenFormEditorValidationTrackingParametersReducer",["AdsCanvasInlineBuilderFinishFormCanvasDataActionFlux","AdsLeadGenForm","AdsLeadGenFormConstants","AdsLeadGenFormEditorAddTrackingParameterActionFlux","AdsLeadGenFormEditorChangeTrackingParametersActionFlux","AdsLeadGenFormEditorConstants","AdsLeadGenFormEditorDeleteTrackingParameterActionFlux","AdsLeadGenFormEditorFormFinishActionFlux","AdsLeadGenFormEditorQuestionsSetFieldIdActionFlux","AdsLeadGenFormEditorStore","AdsLeadGenFormEditorUserInfoQuestionStore","AdsLeadGenFormEditorValidateFormActionFlux","AdsLeadGenFormEditorValidationErrors","AdsLeadGenFormEditorValidationFields","AdsLeadGenFormEditorValidationUtils","AdsLeadGenFormUtils","immutable"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsLeadGenFormEditorValidationErrors").FORM_ERROR,h=b("AdsLeadGenFormEditorValidationErrors").SECTION_ERROR,i=b("AdsLeadGenFormEditorValidationErrors").TRACKING_PARAMETERS_DUPLICATE_NAME_ERROR,j=b("AdsLeadGenFormEditorValidationErrors").TRACKING_PARAMETERS_NAME_OR_VALUE_TOO_LONG_ERROR,k=b("AdsLeadGenFormEditorValidationErrors").TRACKING_PARMETERS_EMPTY_NAME_OR_VALUE_ERROR,l=b("AdsLeadGenFormEditorValidationUtils").isNonEmptyString;function a(a,c){var d=function(a){return a.set(b("AdsLeadGenFormEditorConstants").SETTINGS_TAB.SECTIONS.TRACKING_PARAMETERS,null)};switch(c.type){case b("AdsLeadGenFormEditorValidateFormActionFlux").actionType:case b("AdsLeadGenFormEditorFormFinishActionFlux").actionType:case b("AdsCanvasInlineBuilderFinishFormCanvasDataActionFlux").actionType:case b("AdsLeadGenFormEditorAddTrackingParameterActionFlux").actionType:case b("AdsLeadGenFormEditorChangeTrackingParametersActionFlux").actionType:case b("AdsLeadGenFormEditorDeleteTrackingParameterActionFlux").actionType:case b("AdsLeadGenFormEditorQuestionsSetFieldIdActionFlux").actionType:var e=c.form!=null?c.form:c.type===b("AdsLeadGenFormEditorQuestionsSetFieldIdActionFlux").actionType?b("AdsLeadGenFormEditorStore").get(c.formID).value:null;c=c.trackingParameters!=null?c.trackingParameters:e!=null&&e instanceof b("AdsLeadGenForm")?e.tracking_parameters:null;return c instanceof b("immutable").List&&e instanceof b("AdsLeadGenForm")?m(d(a),e,c):a;default:return a}}function m(a,c,d){__p&&__p();d=n(d,c);c=d.reduce(function(a,b){if(a===k||b.nameError===k||b.valueError===k)return k;else if(a===j||b.nameError===j||b.valueError===j)return j;else if(a===i||b.nameError===i)return i;return null},null);return c===null?a.set("tracking_parameters",null):a.set("tracking_parameters",c).set(b("AdsLeadGenFormEditorConstants").SETTINGS_TAB.SECTIONS.TRACKING_PARAMETERS,h).set(b("AdsLeadGenFormEditorValidationFields").FORM,g)}function n(a,c){__p&&__p();var d=b("AdsLeadGenFormEditorUserInfoQuestionStore").getLookupMap(c.locale),e=c.user_info_questions.toSet().map(function(a){var c=a.get("fieldID");if(typeof c==="string")return c;if(d===null||d===void 0)return null;c=d.get(a.get("id"));return c!==void 0&&c!==null&&typeof c.name==="string"?b("AdsLeadGenFormUtils").getDefaultFieldID(c.name):null}).union(c.customized_questions.toSet().map(function(a){return a.get("fieldID")||b("AdsLeadGenFormUtils").getDefaultFieldID(a.get("label"))})),f=new Set();c=a.map(function(a){var c=a.name.trim();a=a.value.trim();var d=!l(c)&&!l(a),g=!l(c)&&!d?k:c.length>b("AdsLeadGenFormConstants").MAX_TRACKING_PARAMETER_LENGTH?j:e.contains(c)||f.has(c)?i:null;g==null&&!d&&f.add(c);c=d?null:a.length>b("AdsLeadGenFormConstants").MAX_TRACKING_PARAMETER_LENGTH?j:l(a)?null:k;return{nameError:g,valueError:c}});return c}e.exports={calculateTrackingParameterErrors:n,reduce:a}}),null); __d("AdsLeadGenFormEditorFunnelLogger",["AdsLeadGenFormEditorFunnelLoggerConstants","FunnelLogger","UserAgentData"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsLeadGenFormEditorFunnelLoggerConstants").FUNNEL_NAME,h=b("AdsLeadGenFormEditorFunnelLoggerConstants").FUNNEL_LOGGING_TIMEOUT,i=b("AdsLeadGenFormEditorFunnelLoggerConstants").FUNNEL_LOGGING_TAG_PREFIXES,j=b("AdsLeadGenFormEditorFunnelLoggerConstants").FUNNEL_LOGGING_TAGS,k={initAndStartFunnel:function(a,c,d,e,f,l,m){__p&&__p();b("FunnelLogger").startFunnel(g);b("FunnelLogger").setFunnelTimeout(g,h);a!=null&&a.account_id&&k.addFunnelTag(i.AD_ACCOUNT_ID+a.account_id);k.addFunnelTag(i.AD_MEDIA_FORMAT+(c==null?"unknown":c.toLowerCase()));k.addFunnelTag(i.PAGE_ID+e.id);a=f!=null?j.EDIT_DRAFT_FORM:l!=null?j.DUPLICATE_FORM:j.CREATE_NEW_FORM;k.addFunnelTag(a);k.addFunnelTag(d);k.addFunnelTag(i.BROWSER_NAME+b("UserAgentData").browserName);k.addFunnelTag(i.BROWSER_VERSION+b("UserAgentData").browserFullVersion);k.addFunnelTag(m?j.FIRST_FORM:j.NOT_FIRST_FORM)},endFunnel:function(){b("FunnelLogger").endFunnel(g)},addFunnelTag:function(a){b("FunnelLogger").addFunnelTag(g,a)},appendAction:function(a){b("FunnelLogger").appendAction(g,a)},appendActionIfNew:function(a){b("FunnelLogger").appendActionIfNew(g,a)},appendActionWithTag:function(a,c){b("FunnelLogger").appendActionWithTag(g,a,c)}};e.exports=k}),null); __d("AdsLeadGenFormEditorValidationStore",["AdsCanvasInlineBuilderActions","AdsCanvasInlineBuilderFinishFormCanvasDataActionFlux","AdsDataAtom","AdsError","AdsLeadGenFormEditorApiFormSaveActionFlux","AdsLeadGenFormEditorClearValidationStoreActionFlux","AdsLeadGenFormEditorConstants","AdsLeadGenFormEditorDataManager","AdsLeadGenFormEditorDraftFormSaveFailedActionFlux","AdsLeadGenFormEditorFormFinishActionFlux","AdsLeadGenFormEditorFormPublishFailedActionFlux","AdsLeadGenFormEditorFunnelLogger","AdsLeadGenFormEditorFunnelLoggerConstants","AdsLeadGenFormEditorUtils","AdsLeadGenFormEditorValidateFormActionFlux","AdsLeadGenFormEditorValidationContextCardReducer","AdsLeadGenFormEditorValidationCustomDisclaimerReducer","AdsLeadGenFormEditorValidationErrors","AdsLeadGenFormEditorValidationFields","AdsLeadGenFormEditorValidationFormReducer","AdsLeadGenFormEditorValidationPrivacyPolicyReducer","AdsLeadGenFormEditorValidationQuestionsReducer","AdsLeadGenFormEditorValidationSettingsReducer","AdsLeadGenFormEditorValidationThankYouScreenReducer","AdsLeadGenFormEditorValidationTrackingParametersReducer","AdsLeadGenFormEditorValidationUtils","AdsLeadGenFormEditorViewStore","FluxMapStore","adsCreateStoreSelector","immutable"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsLeadGenFormEditorValidationErrors").FORM_ERROR,h=b("AdsLeadGenFormEditorValidationErrors").SECTION_ERROR,i=b("AdsLeadGenFormEditorValidationUtils").conditionalQuestionValidationKey,j=b("AdsLeadGenFormEditorFunnelLoggerConstants").FUNNEL_LOGGING_EVENTS,k=b("AdsLeadGenFormEditorFunnelLoggerConstants").FUNNEL_LOGGING_TAG_PREFIXES;a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var f=arguments.length,g=new Array(f),h=0;hthis._lastResizeAckId&&(this._lastResizeAckId=b.id)}.bind(this))},getQueue:function(){this._queue||(this._queue=new(b("Queue"))());return this._queue},setChannelUrl:function(a){var b=this;this.getQueue().start(function(c){return b.send(c,a)})},send:function(a,c){__p&&__p();a===void 0&&(a=null);c===void 0&&(c=null);c=c||this._opts.channelUrl;if(!c){this.getQueue().enqueue(a);return}var d={};c=new(b("URI"))(c);Object.assign(d,a,b("PHPQuerySerializer").deserialize(c.getFragment()));var e=new(b("URI"))(d.origin).getOrigin();if(typeof d.relation!=="string"){b("Log").error("No relation specified to resolve proxy window.");return}var f=b("resolveWindow")(d.relation.replace(/^parent\./,"")),g=1;a=function a(){try{f.postMessage(b("PHPQuerySerializer").serialize(d),e)}catch(c){--g?window.setTimeout(a,200):b("sdk.Scribe").log("jssdk_error",{error:"POST_MESSAGE",extra:{message:c.message+", html/js/modules/XD.js:139"}})}};a()},_computeSize:function(){__p&&__p();var a=b("DOMDimensions").getDocumentDimensions(),c=0;if(this._opts.resizeWidth){var d=document.body;if(d!=null){if(d.clientWidthc&&(c=d)}}c=Math.max(c,g._forcedMinWidth)}else c=g._forcedMinWidth}a.width=c;this._opts.allowShrink&&(this._shrinker||(this._shrinker=b("DOM").create("div")),b("DOM").appendContent(document.body,this._shrinker),a.height=Math.max(this._shrinker.offsetTop,0));return a},_startResizeMonitor:function(){__p&&__p();var a,c;a=(a=document.documentElement)!=null?a:{};if(this._opts.hideOverflow){a.style.overflow="hidden";((a=document.body)!=null?a:{}).style.overflow="hidden"}a=function(){__p&&__p();var a=this._computeSize(),d=Date.now(),e=this._lastResizeAckIdthis._opts.resizeAckTimeout;if(!c||this._opts.expectResizeAck&&e||this._opts.allowShrink&&c.width!=a.width||!this._opts.allowShrink&&c.widthb||c&&a[e].bid>c)break;if(e===0){d=a[0];var g=b/d.spend;c&&(g=Math.min(g,c/d.bid));g=g*d.spend;return this.interpolatePoint(g,f,d,"spend")}if(e===a.length)return a[a.length-1];g=a[e-1];f=a[e];d=(b-g.spend)/(f.spend-g.spend);c&&(d=Math.min(d,(c-g.bid)/(f.bid-g.bid)));a=g.spend+d*(f.spend-g.spend);return this.interpolatePoint(a,g,f,"spend")},interpolateCBOCampaignGroupByBudget:function(a,b){var c=this.getEmptyPoint();if(a==null||a.length===0)return c;if(b>a[a.length-1].spend)return a[a.length-1];c=this.interpolateCBOOutcome(a,null,b);return c},interpolateCBOOutcome:function(a,b,c){var d=this.getEmptyPoint(),e;for(var f=0;fc||c>a[f+1].spend)continue;e=a[f+1].spend-a[f].spend==0?0:(c-a[f].spend)/(a[f+1].spend-a[f].spend);d=this.interpolatedPointOnSelectedCampaignCurve(e,f,f+1,(e=b)!=null?e:a)}return d},interpolateCBOCampaignByBudget:function(a,c,d,e){var f=this.getEmptyPoint();if(e!==b("AdsAPIBidStrategies").LOWEST_COST_WITHOUT_CAP)return f;if(a==null||a.length===0||c==null||c.length===0)return f;if(d>a[a.length-1].spend)return c[c.length-1];f=this.interpolateCBOOutcome(a,c,d);return f},interpolatedPointOnSelectedCampaignCurve:function(a,b,c,d){var e=d[b],f=d[c];b=function(b){return e[b]==null||f[b]==null?0:e[b]+a*(f[b]-e[b])};d=j.getEmptyPoint();for(var g in d)d[g]=b(g);return d},getInterpolatedPointByTargetCPA:function(a,b){__p&&__p();var c=this.getEmptyPoint();if(!b||b<=0)return c;var d;for(d=0;d=b)break}e=Object.assign({},a[a.length-1]);if(d0?i/b:0;h=a+g*(d-a);e=this.interpolatePoint(h,f,c,"spend")}return e},getReachEstimateByTargetCPA:function(a,b,c){a=this.getInterpolatedPointByTargetCPA(a,c);return j.scalePointByBudgetFactor(a,b)},getReachEstimateForBidStrategy:function(a,c,d,e){switch(e){case b("AdsAPIBidStrategies").LOWEST_COST_WITHOUT_CAP:return j.getReachEstimateByBudget(a,c,d,!0,!1);case b("AdsAPIBidStrategies").TARGET_COST:return j.getReachEstimateByBudget(a,c,d,!1,!0);case b("AdsAPIBidStrategies").LOWEST_COST_WITH_BID_CAP:return j.getReachEstimateByBudget(a,c,d,!1,!1);case b("AdsAPIBidStrategies").COST_CAP:return j.getReachEstimateForCostCap(a,c,d);default:return this.getEmptyPoint()}},getBoundsWithErrorPrediction:function(a,b,c,d,e){b<0&&(b=2*a);if(e)return{max:d||b,mid:a,min:c||0};else{e=Math.max(c||0,a/g);c=Math.min(d||Number.MAX_SAFE_INTEGER,Math.min(a*g,b));e=Math.max(0,Math.min(a-i/2,e));c=Math.max(e+i,c);return{max:c,mid:a,min:e}}},getLastAcceptableConfidence:function(a,b){if(!Array.isArray(a)||a.length==0)return j.getEmptyPoint();var c=b==="reach"?"predicted_errors_reach":"predicted_errors_conversions";b=a.findIndex(function(a){return a[c]>g});b=b>0?a[b-1]:a[a.length-1];return b},checkBudgetConfidenceMultiplier:function(a,b,c){__p&&__p();if(!Array.isArray(a)||a.length<2)return!1;var d=b==="reach"?"predicted_errors_reach":"predicted_errors_conversions";b=a.findIndex(function(a){return a[d]>g});if(b<=0)return!0;var e=h*c;if(a[b-1].spend>e)return!0;else if(a[b].spend=c.length)return c[c.length-1];var e=d===0?j.getEmptyPoint():c[d-1];c=c[d];return j.interpolatePoint(a,e,c,"spend")},interpolatePoint:function(a,b,c,d){__p&&__p();var e=b[d],f=c[d];if(e===f)return b;d=function(d){if(b[d]==null||c[d]==null)return 0;var g=(c[d]-b[d])/(f-e);return b[d]+g*(a-e)};var g=j.getEmptyPoint();for(var h in g)g[h]=d(h);return g},scalePointByBudgetFactor:function(a,b){var c=bb)break;if(e===0){var f=a[0];d=this.interpolatePoint(b,d,f,"spend")}else if(e===a.length)d=a[a.length-1];else{f=a[e-1];e=a[e];d=this.interpolatePoint(b,f,e,"spend")}b=d.spend/d.actions;f=c>=b;return f?d:this.getInterpolatedPointByTargetCPA(a,c)}};e.exports=j}),null); __d("DynamicInstantAdsDialogState",["keyMirror"],(function(a,b,c,d,e,f){"use strict";a=b("keyMirror")({SUBMITTING:null,FINISHED:null});c=b("keyMirror")({ADS_MANAGER:null,CONTROL_PANEL:null,SETUP:null,LOADING:null,ERROR:null});d={WELCOME:0,SETUP_PAGE:1,SETUP_PIXEL:2,EXPORT_PRODUCTS:3,SUBMITTING:4,UPDATING_PAGE:5,UPDATING_PIXEL:6,SUCCEED:7,ADVANCED_OPTIONS:8,SUMMARY:9,AD_CREATION:10};f=b("keyMirror")({LOADED:null,SUBMITTING:null});b=b("keyMirror")({NONE:null,LOADING:null,DONE:null,UPLOADING:null,GEN_FEED:null});e.exports={DynamicInstantAdsCreateCampaignDialogState:a,DynamicInstantAdsMainDialogState:c,DynamicInstantAdsSetupDialogState:d,DynamicInstantAdsCampaignDialogState:f,DynamicInstantAdsFeedRefreshState:b}}),null); __d("AdproObjectiveType",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({NONE:0,OFFER_CLAIMS:6,PAGE_LIKES:8,CANVAS_APP_INSTALLS:11,EVENT_RESPONSES:12,CANVAS_APP_ENGAGEMENT:13,POST_ENGAGEMENT:14,WEBSITE_CONVERSIONS:15,MOBILE_APP_INSTALLS:17,LINK_CLICKS:19,MOBILE_APP_ENGAGEMENT:20,VIDEO_VIEWS:24,LOCAL_AWARENESS:26,INSTAGRAM_BRAND_AWARENESS:27,PRODUCT_CATALOG_SALES:29,LEAD_GENERATION:31,BRAND_AWARENESS:32,RESEARCH_POLL:33,EXTERNAL:34,STORE_VISITS:35,REACH:36,APP_INSTALLS:37,MESSAGES:39,IMPRESSIONS:21,MILLE:23,LOCAL_IMPRESSIONS:28,MULTIPLE:999,DEPRECATED_CLICKS:2,INCOMPATIBLE_OFFER_CLAIMS:106,INCOMPATIBLE_PAGE_LIKES:108,INCOMPATIBLE_CANVAS_APP_INSTALLS:111,INCOMPATIBLE_EVENT_RESPONSES:112,INCOMPATIBLE_CANVAS_APP_ENGAGEMENT:113,INCOMPATIBLE_POST_ENGAGEMENT:114,INCOMPATIBLE_WEBSITE_CONVERSIONS:115,INCOMPATIBLE_MOBILE_APP_INSTALLS:117,INCOMPATIBLE_WEBSITE_CLICKS:119,INCOMPATIBLE_PAGE_ENGAGEMENT:120,WILDCARD_INTERNAL_ONLY:121,MEDIA_DOWNLOADS:25,XPLATFORM_SALES:30})}),null); __d("BoostedComponentTypedLoggerLite",["Banzai","generateLiteTypedLogger"],(function(a,b,c,d,e,f){"use strict";e.exports=b("generateLiteTypedLogger")("logger:BoostedComponentLoggerConfig")}),null); __d("XAdsManagerCampaignGroupPageController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/ads/manage/summary/campaign/",{business_id:{type:"Int"},campaign_id:{type:"Int",required:!0},level:{type:"Enum",defaultValue:"ad_set",enumType:1},time_start:{type:"String"},time_end:{type:"String"},offset:{type:"Int",defaultValue:0},status:{type:"Enum",enumType:0},sort_key:{type:"Int"},sort_dir:{type:"String"},show_adgroup_id:{type:"Int"},can_use_campaign_spend_cap:{type:"Bool",defaultValue:!1},source:{type:"Enum",enumType:1}})}),null);