if (self.CavalryLogger) { CavalryLogger.start_js(["ADnPc"]); }

__d("AccountCheckoutPaymentType",[],(function a(b,c,d,e,f,g){f.exports={WITHDRAW_AVAILABLE_FUNDS:"WITHDRAW_AVAILABLE_FUNDS",CHARGE:"CHARGE",MOVE_TO_AVAILABLE_FUNDS:"MOVE_TO_AVAILABLE_FUNDS"}}),null);
__d("BoostedPostTestElements",[],(function a(b,c,d,e,f,g){f.exports={BOOSTED_POST_BUTTON_ID:"boosted_post_button_with_id",BOOSTED_ACTION_BUTTON_ID:"boosted_action_button_with_id",BOOSTED_AUTOMATED_ADS_BUTTON_ID:"boosted_automated_ads_button_with_id",DIALOG_BOOST_BUTTON:"boost_button_in_dialog",DIALOG_UPSELL_HEADER:"boost_dialog_upsell_header",DIALOG_UPSELL_HEADER_CONTENT:"boost_dialog_upsell_header_content",TARGET_FIELD_GENDER:"boost_target_field_gender",TARGET_FIELD_COUNTRIES:"boost_target_field_countries",TARGET_FIELD_REGIONS:"boost_target_field_regions",TARGET_FIELD_CITIES:"boost_target_field_cities",TARGET_FIELD_RADIUS:"boost_target_field_radius",TARGET_FIELD_AGE_MAX:"boost_target_field_age_max",TARGET_FIELD_AGE_MIN:"boost_target_field_age_min",TARGET_FIELD_INTERESTS:"boosted_target_field_interests",TARGETING_DIALOG:"targeting_dialog"}}),null);
__d("CROWAdDisapprovalReasonEnum",[],(function a(b,c,d,e,f,g){f.exports={UNKNOWN:0,IRREGULAR_APP_INSTALL:1,TEXT_OVERLAY:2,ADULT_CONTENT:3,ADULT_HEALTH:4,ALCOHOL:5,ANIMATED_IMAGE:6,BEFORE_AND_AFTER:7,CASUAL_DATING:8,DATING:9,FACEBOOK_REFERENCE:10,FINANCIAL:11,GAMBLING:12,IDEALIZED_BODY:13,LANGUAGE:14,LANDING_PAGE_FAIL:15,SEXUAL:16,TEST:17,TOBACCO_SALE:18,TRAPPING:19,UNSUBSTANTIATED_CLAIM:20,OTHER:21,WEAPON_SALE:22,WORK_FROM_HOME:23,CASH_ADVANCE:24,SHOCK_AND_SCARE:25,SPY_CAMERA:26,BAD_HEALTH_PRODUCT:27,GRAMMAR:28,ILLEGAL:29,MISUSE_OF_LIKE:30,NON_EXISTENT_FUNCTIONALITY:31,ONLINE_PHARMACY:32,PENNY_AUCTION:33,PORN:34,COPYRIGHT:35,TRADEMARK:36,COUNTERFEIT:37,SYSTEM_ISSUE:38,Q_BLURRY_PIXELATED:39,Q_BORDERLINE_SEXUAL:40,Q_BORDER_BACKGROUND:41,Q_GRAMMAR_CAPITALIZATION:42,Q_IRRELEVANT_IMAGE_COPY:43,Q_MISLEADING:44,Q_MULTIPLE_IMAGES:45,Q_HOT_BUTTON:46,Q_ZOOM_IN_BODY_PARTS:47,Q_ZOOM_IN_FOOD:48,QUALITY_LOW:49,LEAD_AD_FROM_AGGREGATOR:50,UNSUITABLE_QUESTION:51,FRAUD_ASSOCIATED:52,MYSTERY_IMAGE:53,APP_SCAM:54,TEXT_PENALTY_HIGH:55,TEXT_PENALTY_MEDIUM:56,TEXT_PENALTY_LOW:57,BAD_SUBSCRIPTION:58,Q_LETTERBOXING:59,Q_LOW_PROD_IMAGE:60,Q_BAD_TEXT_OR_BUTTON:61,Q_AGGRESSIVE_LANGUAGE:62,Q_VAGUE_COPY:63,Q_SHOCKING_HOT_BUTTON:64,Q_FAKE_NEWS:65,BRANDED_CONTENT_REJECT:66,POSSIBLE_AD_FARM:67,ANIMATION:68,DATING_SEXUAL:69,DATING_LOW_QUALITY_IMAGE:70,DATING_GRAMMAR:71,DATING_LANGUAGE:72,INSTAGRAM_REFERENCE:73,OFFSITE_AUTOPLAY:74,FACEBOOK_REFERENCE_ALLOWED:75,LOW_QUALITY_ECOMMERCE:76,ETHNIC_CLUSTER_HIGH_RISK_VERTICAL:77,AFFILIATE_PENALTY_LOW:78,AFFILIATE_PENALTY_MEDIUM:79,AFFILIATE_PENALTY_HIGH:80,CLOAKING:81,PAGE_FAILED_PAYMENTS:82,ADFARM_PENALTY_WEAK:83,FACEBOOK_WORD_MANIPULATED:100,FACEBOOK_ICONS:101,FACEBOOK_PAGE_LOOKALIKE:102,FACEBOOK_LOGO_FOCUS:103,FACEBOOK_LOGO_OVERLAP:104,FACEBOOK_LOGO:105,FACEBOOK_LOGO_THUMBS_UP:106,FACEBOOK_SCREENSHOT_PROD:107,FACEBOOK_WORDMARK:108,FACEBOOK_ZUCKPIC:109,HIGHLIGHTED_PAIN_POINTS:110,PERFECT_BODY:111,SCALES:112,TAPE_MEASURE:113,UNDESIRABLE_BODY:114,ZOOM_BODY_PART:115,HARRASSMENT:116,USER_ATTRIBUTES_CALLOUT:117,USER_FINANICAL_CALLOUT:118,USER_HEALTH_ATTRIBUTES:119,USER_WEIGHT_ATTRIBUTES:120,PROFANITY:121,FAKE_FORM_ELEMENTS:122,FAKE_NOTIFICATIONS:123,MOUSE_CURSOR:124,PLAY_BUTTON:126,QR_CODES:127,EXCESSIVE_SKIN:128,INDIRECT_NUDITY:129,INDIRECT_SEXUAL_ACT:130,SEXUAL_OTHER:131,ZOOM_SEXUAL_IMAGE:132,BREASTENLARGEMENT:133,GENITALSURGERY:134,LIBIDO:135,NUDITY_NOTPORN:136,PHEROMONE:137,SCHEME_HOTGIRLPAGE:138,SERVICES_SEDUCTION:139,SEXPUBLICATIONS:140,SEXTOYS:141,SEXUALPLEASURE:142,STRIPCLUBS:143,MENTION_BOTOX:144,MENTION_DIETPRODUCT:145,MENTION_LASERS:146,MENTION_SEXUALHEALTH:147,MENTION_SUPPLEMENT:148,MENTION_SURGERY:149,MENTION_BRAND_ALCOHOL:150,MENTION_CONSUMPTION_ALCOHOL:151,MENTION_SALES_ALCOHOL:152,SPONSORSHIP:153,MENTION_SALES_BADHEALTHPRODUCT:154,UNCLEAR_CANCELLATION_SUBSCRIPTION:155,UNCLEAR_PRICING_SUBSCRIPTION:156,BA_HAIRLOSS:157,BA_MEDICAL:158,BA_SKIN:159,BA_TEETH:160,BA_WEIGHTLOSS:161,GIBBERISH:162,RANDOMCHARACTERS:163,DRUGS_ILLEGAL:164,HUMAN_TRAFFICKING:165,SERVICES_ESCORT:166,IMAGE_ANIMALCRUELTY:167,IMAGE_MEDICAL:168,IMAGE_OFFENSIVEGESTURE:169,IMAGE_VEHICLECOLLISION:170,IMAGE_WEAPONATUSER:171,MENTION_IMAGE_VIOLENCE_GORE:172,MENTION_ACCESSORY_CONSUMPTION_TOBACCO:173,MENTION_BRAND_TOBACCO:174,FALSENOTIFICATION:175,IMPOSSIBLECURES:176,MENTION_NUMERIC_CLAIM:177,MENTION_TRICKSTIPS:178,SPECIFICINDIVIDUALCLAIM:179,UNREALISTIC_EBOOKPROMISE:180,VIDEOSEXUAL:181,VIDEOSCHOCKANDSCARE:182,VIDEOLANGUAGE:183,NOT_DATING_PARTNER:184,ANIMALS:185,NON_PRODUCT:186,OVERLY_SEXUAL:187,UNSAFE_SUPPLEMENTS:188,USER_TRUST:189,STUDENT_LOANS_MISLEADING:190,STUDENT_LOANS:191,MISMATCHED_DOMAINS:192,FREE_FORM_CAPTION:193,HOUSING_OR_CREDIT:194,HOUSING_OR_CREDIT_WITH_AFFINITY:195,MISMATCHED_PROMOTABLE_PAGE:196,MISMATCHED_PROMOTABLE_APP:197,MISMATCHED_PROMOTABLE_URL:198,BREAST_FEEDING_NIPPLE:199,SEXUAL_ACTS:200,MENTION_NICOTINE_PRODUCT:201,MENTION_CONSUMPTION_BADHEALTHPRODUCT:202,DEFAULT_OPTIN_SUBSCRIPTION:203,BA_UNCLEAR:204,MENTION_CASH_ADVANCE:205,MENTION_PAYDAY_LOAN:206,MENTION_CASUAL_DATING:207,CASUAL_DATING_SERVICE:208,MAIL_ORDER_BRIDE:209,PERSONAL_FINANCIAL_INFO_REQUESTED:210,MENTION_GAMBLING:211,SENSATIONALIZATION:212,EMPTY_PAGE:213,FB_DESTINATION:214,OBJECT_FILE:215,WEB_OF_TRUST:216,EXCESSIVE_BREASTFEEDING:217,AUTO_DOWNLOAD:218,PAGE_TRAPPING:219,SCHEME_FAKE_ARTICLE:220,SCHEME_FAKE_GIFTCARD:221,SCHEME_FREE_ELECTRONICS:222,SCHEME_FREE_JERSEY:223,TEXT_OBFUSCATION:224,USER_TRUST_OTHER:225,FIREARM_SALE:226,FIREWORK_SALE:227,WEAPON_SALE_OTHER:228,MENTION_UNCLEAR_BUSINESS:229,FRAUDULENT_MERCHANDISE:230,GUN_RANGE:231,WEAPON_REVIEW:232,UNAUTHORIZED_STREAMING:233,REPEAT_MISINFORMATION_OFFENDER:234,WEAPON_BRANDISHING:235,RUSSIAN_EXPORT:236,HATE_SPEECH:237,INFLAMMATORY_LANGUAGE:238,MERCH_SCAM:239,CRYPTO_CURRENCY:240}}),null);
__d("ExampleContentType",[],(function a(b,c,d,e,f,g){f.exports={BASIC_TEXT:1,CAPTION_BLOCK:2,BULLET:3}}),null);
__d("ExampleOrientationType",[],(function a(b,c,d,e,f,g){f.exports={HORIZONTAL:1,VERTICAL:2}}),null);
__d("ExampleType",[],(function a(b,c,d,e,f,g){f.exports={POSITIVE:1,NEGATIVE:2}}),null);
__d("AdsLWICustomAudiencesCheckboxList.react",["cx","AdsLWISelectCustomAudienceDataAction","React","XUICheckboxList.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;function k(){var l,m;for(var n=arguments.length,o=Array(n),p=0;p<n;p++)o[p]=arguments[p];return m=(l=j.constructor).call.apply(l,[this].concat(o)),this.$AdsLWICustomAudiencesCheckboxList1=function(q){c("AdsLWISelectCustomAudienceDataAction").dispatch({add:!q.checked,appID:this.props.appID,boostID:this.props.boostID,customAudience:{id:Number(q.value),name:q.label},targetID:this.props.targetID})}.bind(this),m}k.prototype.render=function(){var l=this.props.targetSpec.custom_audiences,m=l?new Set(l.map(function(o){return String(o.id)})):null,n=this.props.customAudiences.toArray().map(function(o){var p=o.audienceID,q=o.name;return{checked:m&&m.has(p),inputLabelProps:{labelClassName:"_ny3"},label:q,value:p}});return c("React").createElement(c("XUICheckboxList.react"),{items:n,onAdd:this.$AdsLWICustomAudiencesCheckboxList1,onRemove:this.$AdsLWICustomAudiencesCheckboxList1})};f.exports=k}),null);
__d("AdsLWIDialogFooter.react",["cx","React","XUIDialogFooter.react"],(function a(b,c,d,e,f,g,h){"use strict";function i(j){return c("React").createElement(c("XUIDialogFooter.react"),{fullBleedBorder:true,leftContent:j.leftContent},c("React").createElement("div",{className:"_29fz"},j.children))}f.exports=i}),null);
__d("AdsLWIDialogHeader.react",["cx","React","XUIDialogTitle.react"],(function a(b,c,d,e,f,g,h){"use strict";function i(j){return c("React").createElement(c("XUIDialogTitle.react"),{showCloseButton:false},c("React").createElement("div",{className:"_29fv"},j.children),j.closeButton&&c("React").createElement("div",{className:"_29fv"},j.closeButton))}f.exports=i}),null);
__d("adsChooseSelector",["AdsSelectorNameUtils"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(i,j,k,l){var m=function m(){return i()?k.apply(undefined,arguments):j.apply(undefined,arguments)};m.isGetStoresStatic=false;m.getStores=function(n){return i()?k.getStores(n):j.getStores(n)};m.rawSelectFn=function(){return i()?k.rawSelectFn.apply(k,arguments):j.rawSelectFn.apply(j,arguments)};c("AdsSelectorNameUtils").nameSelector(m,l);return m}f.exports=h}),null);
__d("adsLWIAutomatedAdsMultiAdgroupSpecStoreDataSelector",["AdsStoreUtils","BoostedAutomatedAdsMultiAdgroupSpecStoreData","BoostedAutomatedAdsMultiAdgroupSpecStoreV2","adsLWICreateLegacyKeyedStoreDataSelector"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsStoreUtils").toSelector(c("BoostedAutomatedAdsMultiAdgroupSpecStoreV2")),i=c("adsLWICreateLegacyKeyedStoreDataSelector")(h,function(j){return new(c("BoostedAutomatedAdsMultiAdgroupSpecStoreData"))(j)});f.exports=i}),null);
__d("adsLWIAdgroupsSelector",["AdsAPIAdgroupRecord","BoostedComponentContainerUtils","BoostedComponentQEs","BoostedComponentQEUtils","immutable","LoadObject","adsChooseSelector","adsCreateSelector","adsLWIAdgroupIDsSelector","adsLWIAdgroupStoreSelectors","adsLWIAutomatedAdsMultiAdgroupSpecStoreDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("BoostedComponentContainerUtils").isDataLoaded,i=c("adsLWIAdgroupStoreSelectors").adsLWIAdgroupStoreSelector,j=c("adsCreateSelector")([c("adsLWIAutomatedAdsMultiAdgroupSpecStoreDataSelector")],function(m){if(!h([m]))return c("LoadObject").loading();var n=m.multi_adgroup_specs;return c("LoadObject").withValue(c("immutable").Map(n.map(function(o,p){return[String(p),new(c("AdsAPIAdgroupRecord"))(o.toJS())]})))},f.id+".adsLWIAdgroupsLegacySelector"),k=c("adsCreateSelector")([c("adsLWIAdgroupIDsSelector"),i],function(m,n){if(!m)return c("LoadObject").loading();return c("LoadObject").withValue(c("immutable").Map(m.map(function(o){return[o,n.get(o).adgroupSpec]})))},f.id+".adsLWIAdgroupsNewSelector"),l=c("adsChooseSelector")(function(){return c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").ADS_LWI_MULTI_ADGROUP_CONSOLIDATION).getParamBool("use_new_stores",false)},j,k,f.id+".adsLWIAdgroupsSelector");f.exports=l}),null);
__d("AdsLWIInsightsDataRecord",["immutable"],(function a(b,c,d,e,f,g){"use strict";var h,i,j=c("immutable").Record({action_values:undefined,actions:undefined,age:undefined,cpm:undefined,cost_per_action_type:undefined,country:undefined,country_name:undefined,date_start:undefined,date_stop:undefined,gender:undefined,impressions:undefined,placement:undefined,placement_name:undefined,reach:undefined,region:undefined,region_name:undefined,roas:undefined,spend:undefined});h=babelHelpers.inherits(k,j);i=h&&h.prototype;function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("AdsLWIInsightsKeyRecord",["immutable"],(function a(b,c,d,e,f,g){"use strict";var h,i,j=c("immutable").Record({adObjectID:undefined,granularity:undefined,insightsType:undefined,timeRange:undefined});h=babelHelpers.inherits(k,j);i=h&&h.prototype;function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("AdsLWIInsightsType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({AGE_GENDER_METRICS:"age_gender_metrics",COUNTRY_METRICS:"country_metrics",DAILY_METRICS:"daily_metrics",OVERALL_METRICS:"overall_metrics",PLACEMENT_METRICS:"placement_metrics",PREVIOUS_METRICS:"previous_metrics",REGION_METRICS:"region_metrics"})}),null);
__d("AdsReportStatsColumnType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({TIME_START:"time_start",TIME_STOP:"time_stop",DATE_START:"date_start",DATE_STOP:"date_stop",ACCOUNT_CURRENCY:"account_currency",ACCOUNT_ID:"account_id",ACCOUNT_NAME:"account_name",ADGROUP_BID_TYPE:"adgroup_bid_type",ADGROUP_BID_VALUE:"adgroup_bid_value",ADGROUP_ID:"adgroup_id",ADGROUP_NAME:"adgroup_name",ADGROUP_OBJECTIVE:"adgroup_objective",BID_TYPE:"bid_type",BUYING_TYPE:"buying_type",CAMPAIGN_BID_TYPE:"campaign_bid_type",CAMPAIGN_BID_VALUE:"campaign_bid_value",CAMPAIGN_END:"campaign_end",CAMPAIGN_BUDGET_VALUE:"campaign_budget_value",CAMPAIGN_BUDGET_TYPE:"campaign_budget_type",CAMPAIGN_GROUP_START:"campaign_group_start",CAMPAIGN_GROUP_END:"campaign_group_end",CAMPAIGN_GROUP_ID:"campaign_group_id",CAMPAIGN_GROUP_NAME:"campaign_group_name",CAMPAIGN_GROUP_UI_STATUS:"campaign_group_ui_status",CAMPAIGN_GROUP_UI_STATUS_NAME:"campaign_group_ui_status_name",CAMPAIGN_GROUP_BUDGET_VALUE:"campaign_group_budget_value",CAMPAIGN_GROUP_BUDGET_TYPE:"campaign_group_budget_type",CAMPAIGN_ID:"campaign_id",CAMPAIGN_NAME:"campaign_name",CAMPAIGN_START:"campaign_start",CAMPAIGN_UI_STATUS:"campaign_ui_status",CAMPAIGN_UI_STATUS_NAME:"campaign_ui_status_name",ADGROUP_DELIVERY:"adgroup_delivery",CAMPAIGN_DELIVERY:"campaign_delivery",CAMPAIGN_GROUP_DELIVERY:"campaign_group_delivery",OBJECTIVE:"objective",OPTIMIZATION_GOAL:"optimization_goal",PRODUCT_FORMAT:"product_format",DELIVERY_AD_ID:"delivery_ad_id",PURCHASING_INTERFACE:"purchasing_interface",DELIVERY_INFO:"delivery_info",ACTION_CAROUSEL_CARD_ID:"action_carousel_card_id",ACTION_DESTINATION:"action_destination",ACTION_DEVICE:"action_device",ACTION_LINK_CLICK_DESTINATION:"action_link_click_destination",ACTION_REACTION:"action_reaction",ACTION_TARGET_ID:"action_target_id",ACTION_TARGET_NAME:"action_target_name",ACTION_TYPE:"action_type",ACTION_CAROUSEL_CARD_NAME:"action_carousel_card_name",ACTION_VIDEO_SOUND:"action_video_sound",ACTION_VIDEO_TYPE:"action_video_type",ACTION_LOCATION_CODE:"action_location_code",ACTION_VIDEO_ASSET_ID:"action_video_asset_id",VIDEO_VIEW_ACTION_CT_1:"video_view_actions_1d_click",VIDEO_VIEW_ACTION_CT_7:"video_view_actions_7d_click",VIDEO_VIEW_ACTION_CT_28:"video_view_actions_28d_click",VIDEO_VIEW_ACTION_VT_1:"video_view_actions_1d_view",VIDEO_VIEW_ACTION_VT_7:"video_view_actions_7d_view",VIDEO_VIEW_ACTION_VT_28:"video_view_actions_28d_view",VIDEO_VIEW_ACTION_INLINE:"video_view_actions_inline",VIDEO_VIEW_ACTION:"video_view_actions",VIDEO_VIEW_ACTION_BY_CONVS:"video_view_actions_by_convs",VIDEO_VIEW_ACTION_CT_1_BY_CONVS:"video_view_actions_1d_click_by_convs",VIDEO_VIEW_ACTION_CT_7_BY_CONVS:"video_view_actions_7d_click_by_convs",VIDEO_VIEW_ACTION_CT_28_BY_CONVS:"video_view_actions_28d_click_by_convs",VIDEO_VIEW_ACTION_VT_1_BY_CONVS:"video_view_actions_1d_view_by_convs",VIDEO_VIEW_ACTION_VT_7_BY_CONVS:"video_view_actions_7d_view_by_convs",VIDEO_VIEW_ACTION_VT_28_BY_CONVS:"video_view_actions_28d_view_by_convs",VIDEO_VIEW_ACTION_INLINE_BY_CONVS:"video_view_actions_inline_by_convs",ACTION_CT_1:"actions_1d_click",ACTION_CT_7:"actions_7d_click",ACTION_CT_28:"actions_28d_click",ACTION_VT_1:"actions_1d_view",ACTION_VT_7:"actions_7d_view",ACTION_VT_28:"actions_28d_view",ACTION_AT_1:"actions_1d_attention",ACTION_AT_7:"actions_7d_attention",ACTION_AT_28:"actions_28d_attention",ACTION_INLINE:"actions_inline",ACTION_CT_UNQ_1:"unique_actions_1d_click",ACTION_CT_UNQ_7:"unique_actions_7d_click",ACTION_CT_UNQ_28:"unique_actions_28d_click",ACTION_VT_UNQ_1:"unique_actions_1d_view",ACTION_VT_UNQ_7:"unique_actions_7d_view",ACTION_VT_UNQ_28:"unique_actions_28d_view",ACTION_UNQ_INLINE:"unique_actions_inline",ACTION:"actions",ACTION_BY_CONVS:"actions_by_convs",ACTION_UNQ:"unique_actions",ACTION_UNQ_BY_CONVS:"unique_actions_by_convs",ACTION_RESULTS:"actions_results",ACTION_CT_1_BY_CONVS:"actions_1d_click_by_convs",ACTION_CT_7_BY_CONVS:"actions_7d_click_by_convs",ACTION_CT_28_BY_CONVS:"actions_28d_click_by_convs",ACTION_VT_1_BY_CONVS:"actions_1d_view_by_convs",ACTION_VT_7_BY_CONVS:"actions_7d_view_by_convs",ACTION_VT_28_BY_CONVS:"actions_28d_view_by_convs",ACTION_AT_1_BY_CONVS:"actions_1d_attention_by_convs",ACTION_AT_7_BY_CONVS:"actions_7d_attention_by_convs",ACTION_AT_28_BY_CONVS:"actions_28d_attention_by_convs",ACTION_INLINE_BY_CONVS:"actions_inline_by_convs",ACTION_CT_UNQ_1_BY_CONVS:"unique_actions_1d_click_by_convs",ACTION_CT_UNQ_7_BY_CONVS:"unique_actions_7d_click_by_convs",ACTION_CT_UNQ_28_BY_CONVS:"unique_actions_28d_click_by_convs",ACTION_VT_UNQ_1_BY_CONVS:"unique_actions_1d_view_by_convs",ACTION_VT_UNQ_7_BY_CONVS:"unique_actions_7d_view_by_convs",ACTION_VT_UNQ_28_BY_CONVS:"unique_actions_28d_view_by_convs",ACTION_UNQ_INLINE_BY_CONVS:"unique_actions_inline_by_convs",ACTION_TOTAL_BY_CONVS:"total_actions_by_convs",ACTION_TOTAL_UNQ_BY_CONVS:"total_unique_actions_by_convs",DEDUPING_RATIO:"deduping_ratio",DEDUPING_1ST_SOURCE_AD:"deduping_1st_source_ad",DEDUPING_1ST_SOURCE_RATIO:"deduping_1st_source_ratio",DEDUPING_2ND_SOURCE_AD:"deduping_2nd_source_ad",DEDUPING_2ND_SOURCE_RATIO:"deduping_2nd_source_ratio",DEDUPING_3RD_SOURCE_AD:"deduping_3rd_source_ad",DEDUPING_3RD_SOURCE_RATIO:"deduping_3rd_source_ratio",PERCENTAGE_FIRST_TIME_IMPRESSIONS:"percentage_first_time_impressions",PERCENTAGE_AUDIENCE_REACHED:"percentage_audience_reached",CUMULATIVE_REACH:"cumulative_reach",NEW_REACH:"new_reach",HOLDOUT_ACTION_VT_1:"holdout_actions_1d_view",HOLDOUT_ACTION_VT_7:"holdout_actions_7d_view",HOLDOUT_ACTION_VT_28:"holdout_actions_28d_view",HOLDOUT_ACTION_VT_UNQ_1:"unique_holdout_actions_1d_view",HOLDOUT_ACTION_VT_UNQ_7:"unique_holdout_actions_7d_view",HOLDOUT_ACTION_VT_UNQ_28:"unique_holdout_actions_28d_view",HOLDOUT_ACTION:"holdout_actions",HOLDOUT_ACTION_UNQ:"unique_holdout_actions",HOLDOUT_ACTION_VT_1_BY_CONVS:"holdout_actions_1d_view_by_convs",HOLDOUT_ACTION_VT_7_BY_CONVS:"holdout_actions_7d_view_by_convs",HOLDOUT_ACTION_VT_28_BY_CONVS:"holdout_actions_28d_view_by_convs",HOLDOUT_ACTION_VT_UNQ_1_BY_CONVS:"unique_holdout_actions_1d_view_by_convs",HOLDOUT_ACTION_VT_UNQ_7_BY_CONVS:"unique_holdout_actions_7d_view_by_convs",HOLDOUT_ACTION_VT_UNQ_28_BY_CONVS:"unique_holdout_actions_28d_view_by_convs",HOLDOUT_ACTION_TOTAL_BY_CONVS:"total_holdout_actions_by_convs",HOLDOUT_ACTION_TOTAL_UNQ_BY_CONVS:"total_unique_holdout_actions_by_convs",TOTAL_ACTION_CT_1:"total_actions_1d_click",TOTAL_ACTION_CT_7:"total_actions_7d_click",TOTAL_ACTION_CT_28:"total_actions_28d_click",TOTAL_ACTION_VT_1:"total_actions_1d_view",TOTAL_ACTION_VT_7:"total_actions_7d_view",TOTAL_ACTION_VT_28:"total_actions_28d_view",TOTAL_ACTION_INLINE:"total_actions_inline",TOTAL_ACTION_CT_UNQ_1:"total_unique_actions_1d_click",TOTAL_ACTION_CT_UNQ_7:"total_unique_actions_7d_click",TOTAL_ACTION_CT_UNQ_28:"total_unique_actions_28d_click",TOTAL_ACTION_VT_UNQ_1:"total_unique_actions_1d_view",TOTAL_ACTION_VT_UNQ_7:"total_unique_actions_7d_view",TOTAL_ACTION_VT_UNQ_28:"total_unique_actions_28d_view",TOTAL_ACTION_UNQ_INLINE:"total_unique_actions_inline",TOTAL_ACTION:"total_actions",TOTAL_ACTION_UNQ:"total_unique_actions",TOTAL_HOLDOUT_ACTION_VT_1:"total_holdout_actions_1d_view",TOTAL_HOLDOUT_ACTION_VT_7:"total_holdout_actions_7d_view",TOTAL_HOLDOUT_ACTION_VT_28:"total_holdout_actions_28d_view",TOTAL_HOLDOUT_ACTION_VT_UNQ_1:"total_unique_holdout_actions_1d_view",TOTAL_HOLDOUT_ACTION_VT_UNQ_7:"total_unique_holdout_actions_7d_view",TOTAL_HOLDOUT_ACTION_VT_UNQ_28:"total_unique_holdout_actions_28d_view",TOTAL_HOLDOUT_ACTION:"total_holdout_actions",TOTAL_HOLDOUT_ACTION_UNQ:"total_unique_holdout_actions",NUM_CAMPAIGN_GROUPS:"num_campaign_groups",NUM_ACTIVE_CAMPAIGN_GROUPS:"num_active_campaign_groups",NUM_CAMPAIGNS:"num_campaigns",ACTION_CV_1:"action_values_1d_click",ACTION_CV_7:"action_values_7d_click",ACTION_CV_28:"action_values_28d_click",ACTION_VV_1:"action_values_1d_view",ACTION_VV_7:"action_values_7d_view",ACTION_VV_28:"action_values_28d_view",ACTION_VALUES_INLINE:"action_values_inline",ACTION_VALUES:"action_values",TOTAL_ACTION_CV_1:"total_action_value_1d_click",TOTAL_ACTION_CV_7:"total_action_value_7d_click",TOTAL_ACTION_CV_28:"total_action_value_28d_click",TOTAL_ACTION_VV_1:"total_action_value_1d_view",TOTAL_ACTION_VV_7:"total_action_value_7d_view",TOTAL_ACTION_VV_28:"total_action_value_28d_view",TOTAL_ACTION_VALUE:"total_action_value",TOTAL_ACTION_VALUE_INLINE:"total_action_value_inline",ACTION_CV_1_BY_CONVS:"action_values_1d_click_by_convs",ACTION_CV_7_BY_CONVS:"action_values_7d_click_by_convs",ACTION_CV_28_BY_CONVS:"action_values_28d_click_by_convs",ACTION_VV_1_BY_CONVS:"action_values_1d_view_by_convs",ACTION_VV_7_BY_CONVS:"action_values_7d_view_by_convs",ACTION_VV_28_BY_CONVS:"action_values_28d_view_by_convs",ACTION_VALUES_INLINE_BY_CONVS:"action_values_inline_by_convs",ACTION_VALUES_BY_CONVS:"action_values_by_convs",HOLDOUT_ACTION_VV_1:"holdout_action_values_1d_view",HOLDOUT_ACTION_VV_7:"holdout_action_values_7d_view",HOLDOUT_ACTION_VV_28:"holdout_action_values_28d_view",HOLDOUT_ACTION_VALUES:"holdout_action_values",INLINE_ACTIONS:"inline_actions",HOLDOUT_ACTION_VV_1_BY_CONVS:"holdout_action_values_1d_view_by_convs",HOLDOUT_ACTION_VV_7_BY_CONVS:"holdout_action_values_7d_view_by_convs",HOLDOUT_ACTION_VV_28_BY_CONVS:"holdout_action_values_28d_view_by_convs",AGE:"age",GENDER:"gender",CITY_PREDICTION:"city",DMA:"dma",DMA_CODE:"dma_code",REGION_PREDICTION:"region",REGION_PREDICTION_ID:"region_id",COUNTRY:"country",AGE_GROUP:"age_group",COUNTRY_GROUP:"country_group",HOURLY_STATS_AGGREGATED_BY_ADVERTISER_TIME_ZONE:"hourly_stats_aggregated_by_advertiser_time_zone",HOURLY_STATS_AGGREGATED_BY_AUDIENCE_TIME_ZONE:"hourly_stats_aggregated_by_audience_time_zone",IMPRESSIONS:"impressions",IMPRESSIONS_AUTO_REFRESH:"impressions_auto_refresh",IMPRESSIONS_DUMMY:"impressions_dummy",IMPRESSIONS_GROSS:"impressions_gross",SOCIAL_IMPRESSIONS:"social_impressions",SUBSEQUENT_IMPRESSIONS:"subsequent_impressions",CLICKS:"clicks",SOCIAL_CLICKS:"social_clicks",IMPRESSIONS_UNQ:"unique_impressions",SOCIAL_IMPRESSIONS_UNQ:"unique_social_impressions",CLICKS_UNQ:"unique_clicks",SOCIAL_CLICKS_UNQ:"unique_social_clicks",SPEND:"spend",TODAY_SPEND:"today_spend",FREQUENCY:"frequency",FREQUENCY_VALUE:"frequency_value",SOCIAL_SPEND:"social_spend",INTERNAL_SOCIAL_SPEND:"internal_social_spend",INTERNAL_SPEND:"internal_spend",DEEPLINK_CLICKS:"deeplink_clicks",APP_STORE_CLICKS:"app_store_clicks",WEBSITE_CLICKS:"website_clicks",COST_PER_INLINE_POST_ENGAGEMENT:"cost_per_inline_post_engagement",INLINE_LINK_CLICKS:"inline_link_clicks",COST_PER_INLINE_LINK_CLICK:"cost_per_inline_link_click",INLINE_POST_ENGAGEMENT:"inline_post_engagement",COST_PER_STORE_VISIT:"cost_per_store_visit",UNIQUE_INLINE_LINK_CLICKS:"unique_inline_link_clicks",COST_PER_UNIQUE_INLINE_LINK_CLICK:"cost_per_unique_inline_link_click",INLINE_LINK_CLICK_CTR:"inline_link_click_ctr",UNIQUE_INLINE_LINK_CLICK_CTR:"unique_inline_link_click_ctr",OUTBOUND_CLICKS:"outbound_clicks",OUTBOUND_CLICKS_CT_1:"outbound_clicks_1d_click",OUTBOUND_CLICKS_CT_7:"outbound_clicks_7d_click",OUTBOUND_CLICKS_CT_28:"outbound_clicks_28d_click",OUTBOUND_CLICKS_VT_1:"outbound_clicks_1d_view",OUTBOUND_CLICKS_VT_7:"outbound_clicks_7d_view",OUTBOUND_CLICKS_VT_28:"outbound_clicks_28d_view",OUTBOUND_CLICKS_INLINE:"outbound_clicks_inline",OUTBOUND_CLICKS_BY_CONVS:"outbound_clicks_by_convs",OUTBOUND_CLICKS_CT_1_BY_CONVS:"outbound_clicks_1d_click_by_convs",OUTBOUND_CLICKS_CT_7_BY_CONVS:"outbound_clicks_7d_click_by_convs",OUTBOUND_CLICKS_CT_28_BY_CONVS:"outbound_clicks_28d_click_by_convs",OUTBOUND_CLICKS_VT_1_BY_CONVS:"outbound_clicks_1d_view_by_convs",OUTBOUND_CLICKS_VT_7_BY_CONVS:"outbound_clicks_7d_view_by_convs",OUTBOUND_CLICKS_VT_28_BY_CONVS:"outbound_clicks_28d_view_by_convs",OUTBOUND_CLICKS_INLINE_BY_CONVS:"outbound_clicks_inline_by_convs",UNIQUE_OUTBOUND_CLICKS:"unique_outbound_clicks",UNIQUE_OUTBOUND_CLICKS_CT_1:"unique_outbound_clicks_1d_click",UNIQUE_OUTBOUND_CLICKS_CT_7:"unique_outbound_clicks_7d_click",UNIQUE_OUTBOUND_CLICKS_CT_28:"unique_outbound_clicks_28d_click",UNIQUE_OUTBOUND_CLICKS_VT_1:"unique_outbound_clicks_1d_view",UNIQUE_OUTBOUND_CLICKS_VT_7:"unique_outbound_clicks_7d_view",UNIQUE_OUTBOUND_CLICKS_VT_28:"unique_outbound_clicks_28d_view",UNIQUE_OUTBOUND_CLICKS_INLINE:"unique_outbound_clicks_inline",UNIQUE_OUTBOUND_CLICKS_BY_CONVS:"unique_outbound_clicks_by_convs",UNIQUE_OUTBOUND_CLICKS_CT_1_BY_CONVS:"unique_outbound_clicks_1d_click_by_convs",UNIQUE_OUTBOUND_CLICKS_CT_7_BY_CONVS:"unique_outbound_clicks_7d_click_by_convs",UNIQUE_OUTBOUND_CLICKS_CT_28_BY_CONVS:"unique_outbound_clicks_28d_click_by_convs",UNIQUE_OUTBOUND_CLICKS_VT_1_BY_CONVS:"unique_outbound_clicks_1d_view_by_convs",UNIQUE_OUTBOUND_CLICKS_VT_7_BY_CONVS:"unique_outbound_clicks_7d_view_by_convs",UNIQUE_OUTBOUND_CLICKS_VT_28_BY_CONVS:"unique_outbound_clicks_28d_view_by_convs",UNIQUE_OUTBOUND_CLICKS_INLINE_BY_CONVS:"unique_outbound_clicks_inline_by_convs",DEVICE_OUTBOUND_CLICKS:"device_outbound_clicks",DEVICE_OUTBOUND_CLICKS_CT_1:"device_outbound_clicks_1d_click",DEVICE_OUTBOUND_CLICKS_CT_7:"device_outbound_clicks_7d_click",DEVICE_OUTBOUND_CLICKS_CT_28:"device_outbound_clicks_28d_click",DEVICE_OUTBOUND_CLICKS_VT_1:"device_outbound_clicks_1d_view",DEVICE_OUTBOUND_CLICKS_VT_7:"device_outbound_clicks_7d_view",DEVICE_OUTBOUND_CLICKS_VT_28:"device_outbound_clicks_28d_view",DEVICE_OUTBOUND_CLICKS_INLINE:"device_outbound_clicks_inline",DEVICE_OUTBOUND_CLICKS_BY_CONVS:"device_outbound_clicks_by_convs",DEVICE_OUTBOUND_CLICKS_CT_1_BY_CONVS:"device_outbound_clicks_1d_click_by_convs",DEVICE_OUTBOUND_CLICKS_CT_7_BY_CONVS:"device_outbound_clicks_7d_click_by_convs",DEVICE_OUTBOUND_CLICKS_CT_28_BY_CONVS:"device_outbound_clicks_28d_click_by_convs",DEVICE_OUTBOUND_CLICKS_VT_1_BY_CONVS:"device_outbound_clicks_1d_view_by_convs",DEVICE_OUTBOUND_CLICKS_VT_7_BY_CONVS:"device_outbound_clicks_7d_view_by_convs",DEVICE_OUTBOUND_CLICKS_VT_28_BY_CONVS:"device_outbound_clicks_28d_view_by_convs",DEVICE_OUTBOUND_CLICKS_INLINE_BY_CONVS:"device_outbound_clicks_inline_by_convs",OUTBOUND_CLICKS_CTR:"outbound_clicks_ctr",OUTBOUND_CLICKS_CTR_CT_1:"outbound_clicks_ctr_1d_click",OUTBOUND_CLICKS_CTR_CT_7:"outbound_clicks_ctr_7d_click",OUTBOUND_CLICKS_CTR_CT_28:"outbound_clicks_ctr_28d_click",OUTBOUND_CLICKS_CTR_VT_1:"outbound_clicks_ctr_1d_view",OUTBOUND_CLICKS_CTR_VT_7:"outbound_clicks_ctr_7d_view",OUTBOUND_CLICKS_CTR_VT_28:"outbound_clicks_ctr_28d_view",OUTBOUND_CLICKS_CTR_INLINE:"outbound_clicks_ctr_inline",UNIQUE_OUTBOUND_CLICKS_CTR:"unique_outbound_clicks_ctr",UNIQUE_OUTBOUND_CLICKS_CTR_CT_1:"unique_outbound_clicks_ctr_1d_click",UNIQUE_OUTBOUND_CLICKS_CTR_CT_7:"unique_outbound_clicks_ctr_7d_click",UNIQUE_OUTBOUND_CLICKS_CTR_CT_28:"unique_outbound_clicks_ctr_28d_click",UNIQUE_OUTBOUND_CLICKS_CTR_VT_1:"unique_outbound_clicks_ctr_1d_view",UNIQUE_OUTBOUND_CLICKS_CTR_VT_7:"unique_outbound_clicks_ctr_7d_view",UNIQUE_OUTBOUND_CLICKS_CTR_VT_28:"unique_outbound_clicks_ctr_28d_view",UNIQUE_OUTBOUND_CLICKS_CTR_INLINE:"unique_outbound_clicks_ctr_inline",COST_PER_OUTBOUND_CLICK:"cost_per_outbound_click",COST_PER_OUTBOUND_CLICK_CT_1:"cost_per_outbound_click_1d_click",COST_PER_OUTBOUND_CLICK_CT_7:"cost_per_outbound_click_7d_click",COST_PER_OUTBOUND_CLICK_CT_28:"cost_per_outbound_click_28d_click",COST_PER_OUTBOUND_CLICK_VT_1:"cost_per_outbound_click_1d_view",COST_PER_OUTBOUND_CLICK_VT_7:"cost_per_outbound_click_7d_view",COST_PER_OUTBOUND_CLICK_VT_28:"cost_per_outbound_click_28d_view",COST_PER_OUTBOUND_CLICK_INLINE:"cost_per_outbound_click_inline",COST_PER_OUTBOUND_CLICK_BY_CONVS:"cost_per_outbound_click_by_convs",COST_PER_OUTBOUND_CLICK_CT_1_BY_CONVS:"cost_per_outbound_click_1d_click_by_convs",COST_PER_OUTBOUND_CLICK_CT_7_BY_CONVS:"cost_per_outbound_click_7d_click_by_convs",COST_PER_OUTBOUND_CLICK_CT_28_BY_CONVS:"cost_per_outbound_click_28d_click_by_convs",COST_PER_OUTBOUND_CLICK_VT_1_BY_CONVS:"cost_per_outbound_click_1d_view_by_convs",COST_PER_OUTBOUND_CLICK_VT_7_BY_CONVS:"cost_per_outbound_click_7d_view_by_convs",COST_PER_OUTBOUND_CLICK_VT_28_BY_CONVS:"cost_per_outbound_click_28d_view_by_convs",COST_PER_OUTBOUND_CLICK_INLINE_BY_CONVS:"cost_per_outbound_click_inline_by_convs",COST_PER_UNIQUE_OUTBOUND_CLICK:"cost_per_unique_outbound_click",COST_PER_UNIQUE_OUTBOUND_CLICK_CT_1:"cost_per_unique_outbound_click_1d_click",COST_PER_UNIQUE_OUTBOUND_CLICK_CT_7:"cost_per_unique_outbound_click_7d_click",COST_PER_UNIQUE_OUTBOUND_CLICK_CT_28:"cost_per_unique_outbound_click_28d_click",COST_PER_UNIQUE_OUTBOUND_CLICK_VT_1:"cost_per_unique_outbound_click_1d_view",COST_PER_UNIQUE_OUTBOUND_CLICK_VT_7:"cost_per_unique_outbound_click_7d_view",COST_PER_UNIQUE_OUTBOUND_CLICK_VT_28:"cost_per_unique_outbound_click_28d_view",COST_PER_UNIQUE_OUTBOUND_CLICK_INLINE:"cost_per_unique_outbound_click_inline",COST_PER_UNIQUE_OUTBOUND_CLICK_BY_CONVS:"cost_per_unique_outbound_click_by_convs",COST_PER_UNIQUE_OUTBOUND_CLICK_CT_1_BY_CONVS:"cost_per_unique_outbound_click_1d_click_by_convs",COST_PER_UNIQUE_OUTBOUND_CLICK_CT_7_BY_CONVS:"cost_per_unique_outbound_click_7d_click_by_convs",COST_PER_UNIQUE_OUTBOUND_CLICK_CT_28_BY_CONVS:"cost_per_unique_outbound_click_28d_click_by_convs",COST_PER_UNIQUE_OUTBOUND_CLICK_VT_1_BY_CONVS:"cost_per_unique_outbound_click_1d_view_by_convs",COST_PER_UNIQUE_OUTBOUND_CLICK_VT_7_BY_CONVS:"cost_per_unique_outbound_click_7d_view_by_convs",COST_PER_UNIQUE_OUTBOUND_CLICK_VT_28_BY_CONVS:"cost_per_unique_outbound_click_28d_view_by_convs",COST_PER_UNIQUE_OUTBOUND_CLICK_INLINE_BY_CONVS:"cost_per_unique_outbound_click_inline_by_convs",LEGAL_IMPRESSIONS:"legal_impressions",LEGAL_CLICKS:"legal_clicks",LEGAL_SPEND:"legal_spent",LEGAL_ACTION:"legal_actions",LEGAL_CONVERSION:"legal_conversions",DEVICE_IMPRESSIONS:"device_impressions",DEVICE_SOCIAL_IMPRESSIONS:"device_social_impressions",DEVICE_CLICKS:"device_clicks",DEVICE_SOCIAL_CLICKS:"device_social_clicks",DEVICE_ACTION_CT_1:"device_actions_1d_click",DEVICE_ACTION_CT_7:"device_actions_7d_click",DEVICE_ACTION_CT_28:"device_actions_28d_click",DEVICE_ACTION_VT_1:"device_actions_1d_view",DEVICE_ACTION_VT_7:"device_actions_7d_view",DEVICE_ACTION_VT_28:"device_actions_28d_view",DEVICE_ACTION_INLINE:"device_actions_inline",DEVICE_ACTION:"device_actions",DEVICE_ACTION_CT_1_BY_CONVS:"device_actions_1d_click_by_convs",DEVICE_ACTION_CT_7_BY_CONVS:"device_actions_7d_click_by_convs",DEVICE_ACTION_CT_28_BY_CONVS:"device_actions_28d_click_by_convs",DEVICE_ACTION_VT_1_BY_CONVS:"device_actions_1d_view_by_convs",DEVICE_ACTION_VT_7_BY_CONVS:"device_actions_7d_view_by_convs",DEVICE_ACTION_VT_28_BY_CONVS:"device_actions_28d_view_by_convs",DEVICE_ACTION_INLINE_BY_CONVS:"device_actions_inline_by_convs",DEVICE_ACTION_BY_CONVS:"device_actions_by_convs",DEVICE_TOTAL_ACTION_CT_1:"device_total_actions_1d_click",DEVICE_TOTAL_ACTION_CT_7:"device_total_actions_7d_click",DEVICE_TOTAL_ACTION_CT_28:"device_total_actions_28d_click",DEVICE_TOTAL_ACTION_VT_1:"device_total_actions_1d_view",DEVICE_TOTAL_ACTION_VT_7:"device_total_actions_7d_view",DEVICE_TOTAL_ACTION_VT_28:"device_total_actions_28d_view",DEVICE_TOTAL_ACTION_INLINE:"device_total_actions_inline",DEVICE_TOTAL_ACTION:"device_total_actions",DEVICE_TOTAL_ACTION_BY_CONVS:"device_total_actions_by_convs",CALL_TO_ACTION_CLICKS:"call_to_action_clicks",NEWSFEED_AVG_POSITION:"newsfeed_avg_position",NEWSFEED_IMPRESSIONS:"newsfeed_impressions",NEWSFEED_POSITION_COUNT:"newsfeed_position_count",NEWSFEED_CLICKS:"newsfeed_clicks",HOLDOUT_IMPRESSIONS:"holdout_impressions",SOCIAL_HOLDOUT_IMPRESSIONS:"social_holdout_impressions",SUBSEQUENT_HOLDOUT_IMPRESSIONS:"subsequent_holdout_impressions",HOLDOUT_IMPRESSIONS_UNQ:"unique_holdout_impressions",SOCIAL_HOLDOUT_IMPRESSIONS_UNQ:"unique_social_holdout_impressions",HOLDOUT_REACH:"holdout_reach",SOCIAL_HOLDOUT_REACH:"social_holdout_reach",HOLDOUT_FREQUENCY:"holdout_frequency",PLACEMENT:"placement",PUBLISHER_PLATFORM:"publisher_platform",PLATFORM_POSITION:"platform_position",DEVICE_PLATFORM:"device_platform",IMPRESSION_DEVICE:"impression_device",PRODUCT_ID:"product_id",PRODUCT_ITEM_ID:"product_item_id",PRODUCT_SET_ID:"product_set_id",CREATIVE_FINGERPRINT:"creative_fingerprint",CREATIVE_AD_IDS:"creative_ad_ids",NUM_CREATIVE_AD_IDS:"num_creative_ad_ids",CREATIVE_DELIVERY_INFO:"creative_delivery_info",CREATIVE_FINGERPRINT_MAPPING_ID:"creative_fingerprint_mapping_id",CREATIVE_NAME:"creative_name",ACTIVITY_RECENCY:"activity_recency",REACH:"reach",SOCIAL_REACH:"social_reach",CTR:"ctr",UNIQUE_CTR:"unique_ctr",UNIQUE_LINK_CLICKS_CTR:"unique_link_clicks_ctr",LANDING_PAGE_VIEW_RATE:"landing_page_view_rate",CPC:"cpc",CPM:"cpm",CPP:"cpp",COST_PER_TOTAL_ACTION:"cost_per_total_action",COST_PER_ACTION_TYPE:"cost_per_action_type",COST_PER_CLICKS_UNQ:"cost_per_unique_click",COST_PER_ACTION_TYPE_BY_CONVS:"cost_per_action_type_by_convs",COST_PER_ACTION_CT_1:"cost_per_action_type_1d_click",COST_PER_ACTION_CT_7:"cost_per_action_type_7d_click",COST_PER_ACTION_CT_28:"cost_per_action_type_28d_click",COST_PER_ACTION_VT_1:"cost_per_action_type_1d_view",COST_PER_ACTION_VT_7:"cost_per_action_type_7d_view",COST_PER_ACTION_VT_28:"cost_per_action_type_28d_view",COST_PER_ACTION_INLINE:"cost_per_action_type_inline",COST_PER_10_SEC_VIDEO_VIEW:"cost_per_10_sec_video_view",COST_PER_10_SEC_VIDEO_VIEW_CT_1:"cost_per_10_sec_video_view_1d_click",COST_PER_10_SEC_VIDEO_VIEW_CT_7:"cost_per_10_sec_video_view_7d_click",COST_PER_10_SEC_VIDEO_VIEW_CT_28:"cost_per_10_sec_video_view_28d_click",COST_PER_10_SEC_VIDEO_VIEW_VT_1:"cost_per_10_sec_video_view_1d_view",COST_PER_10_SEC_VIDEO_VIEW_VT_7:"cost_per_10_sec_video_view_7d_view",COST_PER_10_SEC_VIDEO_VIEW_VT_28:"cost_per_10_sec_video_view_28d_view",COST_PER_10_SEC_VIDEO_VIEW_INLINE:"cost_per_10_sec_video_view_inline",COST_PER_10_SEC_VIDEO_VIEW_BY_CONVS:"cost_per_10_sec_video_view_by_convs",COST_PER_10_SEC_VIDEO_VIEW_CT_1_BY_CONVS:"cost_per_10_sec_video_view_1d_click_by_convs",COST_PER_10_SEC_VIDEO_VIEW_CT_7_BY_CONVS:"cost_per_10_sec_video_view_7d_click_by_convs",COST_PER_10_SEC_VIDEO_VIEW_CT_28_BY_CONVS:"cost_per_10_sec_video_view_28d_click_by_convs",COST_PER_10_SEC_VIDEO_VIEW_VT_1_BY_CONVS:"cost_per_10_sec_video_view_1d_view_by_convs",COST_PER_10_SEC_VIDEO_VIEW_VT_7_BY_CONVS:"cost_per_10_sec_video_view_7d_view_by_convs",COST_PER_10_SEC_VIDEO_VIEW_VT_28_BY_CONVS:"cost_per_10_sec_video_view_28d_view_by_convs",COST_PER_10_SEC_VIDEO_VIEW_INLINE_BY_CONVS:"cost_per_10_sec_video_view_inline_by_convs",COST_PER_2_SEC_CONTINUOUS_VIDEO_VIEW:"cost_per_2_sec_continuous_video_view",COST_PER_2_SEC_CONTINUOUS_VIDEO_VIEW_CT_1:"cost_per_2_sec_continuous_video_view_1d_click",COST_PER_2_SEC_CONTINUOUS_VIDEO_VIEW_CT_7:"cost_per_2_sec_continuous_video_view_7d_click",COST_PER_2_SEC_CONTINUOUS_VIDEO_VIEW_CT_28:"cost_per_2_sec_continuous_video_view_28d_click",COST_PER_2_SEC_CONTINUOUS_VIDEO_VIEW_VT_1:"cost_per_2_sec_continuous_video_view_1d_view",COST_PER_2_SEC_CONTINUOUS_VIDEO_VIEW_VT_7:"cost_per_2_sec_continuous_video_view_7d_view",COST_PER_2_SEC_CONTINUOUS_VIDEO_VIEW_VT_28:"cost_per_2_sec_continuous_video_view_28d_view",COST_PER_2_SEC_CONTINUOUS_VIDEO_VIEW_INLINE:"cost_per_2_sec_continuous_video_view_inline",COST_PER_2_SEC_CONTINUOUS_VIDEO_VIEW_BY_CONVS:"cost_per_2_sec_continuous_video_view_by_convs",COST_PER_2_SEC_CONTINUOUS_VIDEO_VIEW_CT_1_BY_CONVS:"cost_per_2_sec_continuous_video_view_1d_click_by_convs",COST_PER_2_SEC_CONTINUOUS_VIDEO_VIEW_CT_7_BY_CONVS:"cost_per_2_sec_continuous_video_view_7d_click_by_convs",COST_PER_2_SEC_CONTINUOUS_VIDEO_VIEW_CT_28_BY_CONVS:"cost_per_2_sec_continuous_video_view_28d_click_by_convs",COST_PER_2_SEC_CONTINUOUS_VIDEO_VIEW_VT_1_BY_CONVS:"cost_per_2_sec_continuous_video_view_1d_view_by_convs",COST_PER_2_SEC_CONTINUOUS_VIDEO_VIEW_VT_7_BY_CONVS:"cost_per_2_sec_continuous_video_view_7d_view_by_convs",COST_PER_2_SEC_CONTINUOUS_VIDEO_VIEW_VT_28_BY_CONVS:"cost_per_2_sec_continuous_video_view_28d_view_by_convs",COST_PER_2_SEC_CONTINUOUS_VIDEO_VIEW_INLINE_BY_CONVS:"cost_per_2_sec_continuous_video_view_inline_by_convs",COST_PER_COMPLETED_VIDEO_VIEW:"cost_per_completed_video_view",COST_PER_COMPLETED_VIDEO_VIEW_CT_1:"cost_per_completed_video_view_1d_click",COST_PER_COMPLETED_VIDEO_VIEW_CT_7:"cost_per_completed_video_view_7d_click",COST_PER_COMPLETED_VIDEO_VIEW_CT_28:"cost_per_completed_video_view_28d_click",COST_PER_COMPLETED_VIDEO_VIEW_VT_1:"cost_per_completed_video_view_1d_view",COST_PER_COMPLETED_VIDEO_VIEW_VT_7:"cost_per_completed_video_view_7d_view",COST_PER_COMPLETED_VIDEO_VIEW_VT_28:"cost_per_completed_video_view_28d_view",COST_PER_COMPLETED_VIDEO_VIEW_INLINE:"cost_per_completed_video_view_inline",COST_PER_COMPLETED_VIDEO_VIEW_BY_CONVS:"cost_per_completed_video_view_by_convs",COST_PER_COMPLETED_VIDEO_VIEW_CT_1_BY_CONVS:"cost_per_completed_video_view_1d_click_by_convs",COST_PER_COMPLETED_VIDEO_VIEW_CT_7_BY_CONVS:"cost_per_completed_video_view_7d_click_by_convs",COST_PER_COMPLETED_VIDEO_VIEW_CT_28_BY_CONVS:"cost_per_completed_video_view_28d_click_by_convs",COST_PER_COMPLETED_VIDEO_VIEW_VT_1_BY_CONVS:"cost_per_completed_video_view_1d_view_by_convs",COST_PER_COMPLETED_VIDEO_VIEW_VT_7_BY_CONVS:"cost_per_completed_video_view_7d_view_by_convs",COST_PER_COMPLETED_VIDEO_VIEW_VT_28_BY_CONVS:"cost_per_completed_video_view_28d_view_by_convs",COST_PER_COMPLETED_VIDEO_VIEW_INLINE_BY_CONVS:"cost_per_completed_video_view_inline_by_convs",COST_PER_COMPLETED_VIEW_OR_15S_PASSED_ACTION:"cost_per_completed_view_or_15s_passed_action",COST_PER_COMPLETED_VIEW_OR_15S_PASSED_ACTION_CT_1:"cost_per_completed_view_or_15s_passed_action_1d_click",COST_PER_COMPLETED_VIEW_OR_15S_PASSED_ACTION_CT_7:"cost_per_completed_view_or_15s_passed_action_7d_click",COST_PER_COMPLETED_VIEW_OR_15S_PASSED_ACTION_CT_28:"cost_per_completed_view_or_15s_passed_action_28d_click",COST_PER_COMPLETED_VIEW_OR_15S_PASSED_ACTION_VT_1:"cost_per_completed_view_or_15s_passed_action_1d_view",COST_PER_COMPLETED_VIEW_OR_15S_PASSED_ACTION_VT_7:"cost_per_completed_view_or_15s_passed_action_7d_view",COST_PER_COMPLETED_VIEW_OR_15S_PASSED_ACTION_VT_28:"cost_per_completed_view_or_15s_passed_action_28d_view",COST_PER_COMPLETED_VIEW_OR_15S_PASSED_ACTION_INLINE:"cost_per_completed_view_or_15s_passed_action_inline",COST_PER_COMPLETED_VIEW_OR_15S_PASSED_ACTION_BY_CONVS:"cost_per_completed_view_or_15s_passed_action_by_convs",COST_PER_COMPLETED_VIEW_OR_15S_PASSED_ACTION_CT_1_BY_CONVS:"cost_per_completed_view_or_15s_passed_action_1d_click_by_convs",COST_PER_COMPLETED_VIEW_OR_15S_PASSED_ACTION_CT_7_BY_CONVS:"cost_per_completed_view_or_15s_passed_action_7d_click_by_convs",COST_PER_COMPLETED_VIEW_OR_15S_PASSED_ACTION_CT_28_BY_CONVS:"cost_per_completed_view_or_15s_passed_action_28d_click_by_convs",COST_PER_COMPLETED_VIEW_OR_15S_PASSED_ACTION_VT_1_BY_CONVS:"cost_per_completed_view_or_15s_passed_action_1d_view_by_convs",COST_PER_COMPLETED_VIEW_OR_15S_PASSED_ACTION_VT_7_BY_CONVS:"cost_per_completed_view_or_15s_passed_action_7d_view_by_convs",COST_PER_COMPLETED_VIEW_OR_15S_PASSED_ACTION_VT_28_BY_CONVS:"cost_per_completed_view_or_15s_passed_action_28d_view_by_convs",COST_PER_COMPLETED_VIEW_OR_15S_PASSED_ACTION_INLINE_BY_CONVS:"cost_per_completed_view_or_15s_passed_action_inline_by_convs",COST_PER_ACTION_CT_1_BY_CONVS:"cost_per_action_type_1d_click_by_convs",COST_PER_ACTION_CT_7_BY_CONVS:"cost_per_action_type_7d_click_by_convs",COST_PER_ACTION_CT_28_BY_CONVS:"cost_per_action_type_28d_click_by_convs",COST_PER_ACTION_VT_1_BY_CONVS:"cost_per_action_type_1d_view_by_convs",COST_PER_ACTION_VT_7_BY_CONVS:"cost_per_action_type_7d_view_by_convs",COST_PER_ACTION_VT_28_BY_CONVS:"cost_per_action_type_28d_view_by_convs",COST_PER_ACTION_INLINE_BY_CONVS:"cost_per_action_type_inline_by_convs",COST_PER_UNIQUE_ACTION_TYPE:"cost_per_unique_action_type",COST_PER_UNIQUE_ACTION_TYPE_BY_CONVS:"cost_per_unique_action_type_by_convs",COST_PER_UNIQUE_ACTION_CT_1:"cost_per_unique_action_type_1d_click",COST_PER_UNIQUE_ACTION_CT_7:"cost_per_unique_action_type_7d_click",COST_PER_UNIQUE_ACTION_CT_28:"cost_per_unique_action_type_28d_click",COST_PER_UNIQUE_ACTION_VT_1:"cost_per_unique_action_type_1d_view",COST_PER_UNIQUE_ACTION_VT_7:"cost_per_unique_action_type_7d_view",COST_PER_UNIQUE_ACTION_VT_28:"cost_per_unique_action_type_28d_view",COST_PER_UNIQUE_ACTION_INLINE:"cost_per_unique_action_type_inline",COST_PER_UNIQUE_ACTION_CT_1_BY_CONVS:"cost_per_unique_action_type_1d_click_by_convs",COST_PER_UNIQUE_ACTION_CT_7_BY_CONVS:"cost_per_unique_action_type_7d_click_by_convs",COST_PER_UNIQUE_ACTION_CT_28_BY_CONVS:"cost_per_unique_action_type_28d_click_by_convs",COST_PER_UNIQUE_ACTION_VT_1_BY_CONVS:"cost_per_unique_action_type_1d_view_by_convs",COST_PER_UNIQUE_ACTION_VT_7_BY_CONVS:"cost_per_unique_action_type_7d_view_by_convs",COST_PER_UNIQUE_ACTION_VT_28_BY_CONVS:"cost_per_unique_action_type_28d_view_by_convs",COST_PER_UNIQUE_ACTION_INLINE_BY_CONVS:"cost_per_unique_action_type_inline_by_convs",WEBSITE_PURCHASE_ROAS:"website_purchase_roas",WEBSITE_PURCHASE_ROAS_CV_1:"website_purchase_roas_1d_click",WEBSITE_PURCHASE_ROAS_CV_7:"website_purchase_roas_7d_click",WEBSITE_PURCHASE_ROAS_CV_28:"website_purchase_roas_28d_click",WEBSITE_PURCHASE_ROAS_VV_1:"website_purchase_roas_1d_view",WEBSITE_PURCHASE_ROAS_VV_7:"website_purchase_roas_7d_view",WEBSITE_PURCHASE_ROAS_VV_28:"website_purchase_roas_28d_view",WEBSITE_PURCHASE_ROAS_BY_CONVS:"website_purchase_roas_by_convs",WEBSITE_PURCHASE_ROAS_CV_1_BY_CONVS:"website_purchase_roas_1d_click_by_convs",WEBSITE_PURCHASE_ROAS_CV_7_BY_CONVS:"website_purchase_roas_7d_click_by_convs",WEBSITE_PURCHASE_ROAS_CV_28_BY_CONVS:"website_purchase_roas_28d_click_by_convs",WEBSITE_PURCHASE_ROAS_VV_1_BY_CONVS:"website_purchase_roas_1d_view_by_convs",WEBSITE_PURCHASE_ROAS_VV_7_BY_CONVS:"website_purchase_roas_7d_view_by_convs",WEBSITE_PURCHASE_ROAS_VV_28_BY_CONVS:"website_purchase_roas_28d_view_by_convs",MOBILE_APP_PURCHASE_ROAS:"mobile_app_purchase_roas",MOBILE_APP_PURCHASE_ROAS_CV_1:"mobile_app_purchase_roas_1d_click",MOBILE_APP_PURCHASE_ROAS_CV_7:"mobile_app_purchase_roas_7d_click",MOBILE_APP_PURCHASE_ROAS_CV_28:"mobile_app_purchase_roas_28d_click",MOBILE_APP_PURCHASE_ROAS_VV_1:"mobile_app_purchase_roas_1d_view",MOBILE_APP_PURCHASE_ROAS_VV_7:"mobile_app_purchase_roas_7d_view",MOBILE_APP_PURCHASE_ROAS_VV_28:"mobile_app_purchase_roas_28d_view",MOBILE_APP_PURCHASE_ROAS_BY_CONVS:"mobile_app_purchase_roas_by_convs",MOBILE_APP_PURCHASE_ROAS_CV_1_BY_CONVS:"mobile_app_purchase_roas_1d_click_by_convs",MOBILE_APP_PURCHASE_ROAS_CV_7_BY_CONVS:"mobile_app_purchase_roas_7d_click_by_convs",MOBILE_APP_PURCHASE_ROAS_CV_28_BY_CONVS:"mobile_app_purchase_roas_28d_click_by_convs",MOBILE_APP_PURCHASE_ROAS_VV_1_BY_CONVS:"mobile_app_purchase_roas_1d_view_by_convs",MOBILE_APP_PURCHASE_ROAS_VV_7_BY_CONVS:"mobile_app_purchase_roas_7d_view_by_convs",MOBILE_APP_PURCHASE_ROAS_VV_28_BY_CONVS:"mobile_app_purchase_roas_28d_view_by_convs",ACTIONS_PER_IMPRESSION:"actions_per_impression",RESULT_RATE:"result_rate",COST_PER_ACTION_RESULT:"cost_per_action_result",COST_PER_OBJECTIVE_RESULT:"cost_per_objective_result",COST_PER_RESULT:"cost_per_result",KPI_RESULTS:"kpi_results",RESULTS:"results",PERFORMANCE_INDICATOR:"performance_indicator",OBJECTIVE_RESULTS:"objective_results",OBJECTIVE_RESULT_RATE:"objective_result_rate",OPTIMIZATION_RESULTS:"optimization_results",OPTIMIZATION_RESULTS_CONVERSION_WINDOW:"optimization_results_conversion_window",OPTIMIZATION_RESULTS_INDICATOR:"optimization_results_indicator",COST_PER_OPTIMIZATION_RESULT:"cost_per_optimization_result",CARD_VIEWS:"card_views",CARD_VIEW_FREQUENCY:"card_view_frequency",CARD_VIEW_CTR:"card_view_ctr",CATALOG_SEGMENT_VALUE:"catalog_segment_value",UNIQUE_CARD_VIEW_CTR:"unique_card_view_ctr",RELEVANCE_SCORE:"relevance_score",RELEVANCE_SCORE_VALUE:"score",RELEVANCE_SCORE_POSITIVE_FEEDBACK:"positive_feedback",RELEVANCE_SCORE_NEGATIVE_FEEDBACK:"negative_feedback",RELEVANCE_SCORE_ORGANIC_RANK:"organic_rank",RELEVANCE_SCORE_STATUS:"status",STORE_VISITS:"store_visits",STORE_VISITS_BY_CONVS:"store_visits_by_convs",MEASURABILITY_PARTITION:"measurability_partition",STORE_VISITS_CT_28:"store_visits_28d_click",STORE_VISITS_CT_28_BY_CONVS:"store_visits_28d_click_by_convs",STORE_VISITS_AT_7:"store_visits_7d_attention",STORE_VISITS_AT_7_BY_CONVS:"store_visits_7d_atttention_by_convs",STORE_VISITS_CT_28_UPSCALED:"store_visits_28d_click_upscaled",STORE_VISITS_CT_28_UPSCALED_BY_CONVS:"store_visits_28d_click_upscaled_by_convs",STORE_VISITS_AT_7_UPSCALED:"store_visits_7d_attention_upscaled",STORE_VISITS_AT_7_UPSCALED_BY_CONVS:"store_visits_7d_atttention_upscaled_by_convs",STORE_VISIT_ACTION_CT_1:"store_visit_actions_1d_click",STORE_VISIT_ACTION_CT_7:"store_visit_actions_7d_click",STORE_VISIT_ACTION_CT_28:"store_visit_actions_28d_click",STORE_VISIT_ACTION_VT_1:"store_visit_actions_1d_view",STORE_VISIT_ACTION_VT_7:"store_visit_actions_7d_view",STORE_VISIT_ACTION_VT_28:"store_visit_actions_28d_view",STORE_VISIT_ACTION:"store_visit_actions",STORE_VISIT_ACTION_INLINE:"store_visit_actions_inline",STORE_VISIT_ACTION_CT_1_BY_CONVS:"store_visit_actions_1d_click_by_convs",STORE_VISIT_ACTION_CT_7_BY_CONVS:"store_visit_actions_7d_click_by_convs",STORE_VISIT_ACTION_CT_28_BY_CONVS:"store_visit_actions_28d_click_by_convs",STORE_VISIT_ACTION_VT_1_BY_CONVS:"store_visit_actions_1d_view_by_convs",STORE_VISIT_ACTION_VT_7_BY_CONVS:"store_visit_actions_7d_view_by_convs",STORE_VISIT_ACTION_VT_28_BY_CONVS:"store_visit_actions_28d_view_by_convs",STORE_VISIT_ACTION_TOTAL_BY_CONVS:"store_visit_actions_by_convs",STORE_VISIT_ACTION_INLINE_BY_CONVS:"store_visit_actions_inline_by_convs",COST_PER_STORE_VISIT_ACTION_CT_1:"cost_per_store_visit_action_1d_click",COST_PER_STORE_VISIT_ACTION_CT_7:"cost_per_store_visit_action_7d_click",COST_PER_STORE_VISIT_ACTION_CT_28:"cost_per_store_visit_action_28d_click",COST_PER_STORE_VISIT_ACTION_VT_1:"cost_per_store_visit_action_1d_view",COST_PER_STORE_VISIT_ACTION_VT_7:"cost_per_store_visit_action_7d_view",COST_PER_STORE_VISIT_ACTION_VT_28:"cost_per_store_visit_action_28d_view",COST_PER_STORE_VISIT_ACTION:"cost_per_store_visit_action",COST_PER_STORE_VISIT_ACTION_INLINE:"cost_per_store_visit_action_inline",COST_PER_STORE_VISIT_ACTION_CT_1_BY_CONVS:"cost_per_store_visit_action_1d_click_by_convs",COST_PER_STORE_VISIT_ACTION_CT_7_BY_CONVS:"cost_per_store_visit_action_7d_click_by_convs",COST_PER_STORE_VISIT_ACTION_CT_28_BY_CONVS:"cost_per_store_visit_action_28d_click_by_convs",COST_PER_STORE_VISIT_ACTION_VT_1_BY_CONVS:"cost_per_store_visit_action_1d_view_by_convs",COST_PER_STORE_VISIT_ACTION_VT_7_BY_CONVS:"cost_per_store_visit_action_7d_view_by_convs",COST_PER_STORE_VISIT_ACTION_VT_28_BY_CONVS:"cost_per_store_visit_action_28d_view_by_convs",COST_PER_STORE_VISIT_ACTION_TOTAL_BY_CONVS:"cost_per_store_visit_action_by_convs",COST_PER_STORE_VISIT_ACTION_INLINE_BY_CONVS:"cost_per_store_visit_action_inline_by_convs",MPA_IMPRESSIONS:"mpa_impressions",WEBSITE_CTR:"website_ctr",UNIQUE_VIDEO_VIEW_10_SEC_CT_1:"unique_video_view_10_sec_1d_click",UNIQUE_VIDEO_VIEW_10_SEC_CT_7:"unique_video_view_10_sec_7d_click",UNIQUE_VIDEO_VIEW_10_SEC_CT_28:"unique_video_view_10_sec_28d_click",UNIQUE_VIDEO_VIEW_10_SEC_VT_1:"unique_video_view_10_sec_1d_view",UNIQUE_VIDEO_VIEW_10_SEC_VT_7:"unique_video_view_10_sec_7d_view",UNIQUE_VIDEO_VIEW_10_SEC_VT_28:"unique_video_view_10_sec_28d_view",UNIQUE_VIDEO_VIEW_10_SEC:"unique_video_view_10_sec",UNIQUE_VIDEO_VIEW_10_SEC_INLINE:"unique_video_view_10_sec_inline",UNIQUE_VIDEO_VIEW_10_SEC_CT_1_BY_CONVS:"unique_video_view_10_sec_1d_click_by_convs",UNIQUE_VIDEO_VIEW_10_SEC_CT_7_BY_CONVS:"unique_video_view_10_sec_7d_click_by_convs",UNIQUE_VIDEO_VIEW_10_SEC_CT_28_BY_CONVS:"unique_video_view_10_sec_28d_click_by_convs",UNIQUE_VIDEO_VIEW_10_SEC_VT_1_BY_CONVS:"unique_video_view_10_sec_1d_view_by_convs",UNIQUE_VIDEO_VIEW_10_SEC_VT_7_BY_CONVS:"unique_video_view_10_sec_7d_view_by_convs",UNIQUE_VIDEO_VIEW_10_SEC_VT_28_BY_CONVS:"unique_video_view_10_sec_28d_view_by_convs",UNIQUE_VIDEO_VIEW_10_SEC_TOTAL_BY_CONVS:"unique_video_view_10_sec_by_convs",UNIQUE_VIDEO_VIEW_10_SEC_INLINE_BY_CONVS:"unique_video_view_10_sec_inline_by_convs",VIDEO_SEC_WATCHED_ACTION_CT_1:"video_sec_watched_actions_1d_click",VIDEO_SEC_WATCHED_ACTION_CT_7:"video_sec_watched_actions_7d_click",VIDEO_SEC_WATCHED_ACTION_CT_28:"video_sec_watched_actions_28d_click",VIDEO_SEC_WATCHED_ACTION_VT_1:"video_sec_watched_actions_1d_view",VIDEO_SEC_WATCHED_ACTION_VT_7:"video_sec_watched_actions_7d_view",VIDEO_SEC_WATCHED_ACTION_VT_28:"video_sec_watched_actions_28d_view",VIDEO_SEC_WATCHED_ACTION:"video_sec_watched_actions",VIDEO_SEC_WATCHED_ACTION_INLINE:"video_sec_watched_actions_inline",VIDEO_AVG_SEC_WATCHED_ACTION_CT_1:"video_avg_sec_watched_actions_1d_click",VIDEO_AVG_SEC_WATCHED_ACTION_CT_7:"video_avg_sec_watched_actions_7d_click",VIDEO_AVG_SEC_WATCHED_ACTION_CT_28:"video_avg_sec_watched_actions_28d_click",VIDEO_AVG_SEC_WATCHED_ACTION_VT_1:"video_avg_sec_watched_actions_1d_view",VIDEO_AVG_SEC_WATCHED_ACTION_VT_7:"video_avg_sec_watched_actions_7d_view",VIDEO_AVG_SEC_WATCHED_ACTION_VT_28:"video_avg_sec_watched_actions_28d_view",VIDEO_AVG_SEC_WATCHED_ACTION:"video_avg_sec_watched_actions",VIDEO_AVG_SEC_WATCHED_ACTION_INLINE:"video_avg_sec_watched_actions_inline",VIDEO_SEC_WATCHED_ACTION_CT_1_BY_CONVS:"video_sec_watched_actions_1d_click_by_convs",VIDEO_SEC_WATCHED_ACTION_CT_7_BY_CONVS:"video_sec_watched_actions_7d_click_by_convs",VIDEO_SEC_WATCHED_ACTION_CT_28_BY_CONVS:"video_sec_watched_actions_28d_click_by_convs",VIDEO_SEC_WATCHED_ACTION_VT_1_BY_CONVS:"video_sec_watched_actions_1d_view_by_convs",VIDEO_SEC_WATCHED_ACTION_VT_7_BY_CONVS:"video_sec_watched_actions_7d_view_by_convs",VIDEO_SEC_WATCHED_ACTION_VT_28_BY_CONVS:"video_sec_watched_actions_28d_view_by_convs",VIDEO_SEC_WATCHED_ACTION_TOTAL_BY_CONVS:"video_sec_watched_actions_by_convs",VIDEO_SEC_WATCHED_ACTION_INLINE_BY_CONVS:"video_sec_watched_actions_inline_by_convs",VIDEO_AVG_SEC_WATCHED_ACTION_CT_1_BY_CONVS:"video_avg_sec_watched_actions_1d_click_by_convs",VIDEO_AVG_SEC_WATCHED_ACTION_CT_7_BY_CONVS:"video_avg_sec_watched_actions_7d_click_by_convs",VIDEO_AVG_SEC_WATCHED_ACTION_CT_28_BY_CONVS:"video_avg_sec_watched_actions_28d_click_by_convs",VIDEO_AVG_SEC_WATCHED_ACTION_VT_1_BY_CONVS:"video_avg_sec_watched_actions_1d_view_by_convs",VIDEO_AVG_SEC_WATCHED_ACTION_VT_7_BY_CONVS:"video_avg_sec_watched_actions_7d_view_by_convs",VIDEO_AVG_SEC_WATCHED_ACTION_VT_28_BY_CONVS:"video_avg_sec_watched_actions_28d_view_by_convs",VIDEO_AVG_SEC_WATCHED_ACTION_TOTAL_BY_CONVS:"video_avg_sec_watched_actions_by_convs",VIDEO_AVG_SEC_WATCHED_ACTION_INLINE_BY_CONVS:"video_avg_sec_watched_actions_inline_by_convs",VIDEO_PCT_WATCHED_ACTION_CT_1:"video_pct_watched_actions_1d_click",VIDEO_PCT_WATCHED_ACTION_CT_7:"video_pct_watched_actions_7d_click",VIDEO_PCT_WATCHED_ACTION_CT_28:"video_pct_watched_actions_28d_click",VIDEO_PCT_WATCHED_ACTION_VT_1:"video_pct_watched_actions_1d_view",VIDEO_PCT_WATCHED_ACTION_VT_7:"video_pct_watched_actions_7d_view",VIDEO_PCT_WATCHED_ACTION_VT_28:"video_pct_watched_actions_28d_view",VIDEO_PCT_WATCHED_ACTION:"video_pct_watched_actions",VIDEO_PCT_WATCHED_ACTION_INLINE:"video_pct_watched_actions_inline",VIDEO_AVG_PCT_WATCHED_ACTION_CT_1:"video_avg_pct_watched_actions_1d_click",VIDEO_AVG_PCT_WATCHED_ACTION_CT_7:"video_avg_pct_watched_actions_7d_click",VIDEO_AVG_PCT_WATCHED_ACTION_CT_28:"video_avg_pct_watched_actions_28d_click",VIDEO_AVG_PCT_WATCHED_ACTION_VT_1:"video_avg_pct_watched_actions_1d_view",VIDEO_AVG_PCT_WATCHED_ACTION_VT_7:"video_avg_pct_watched_actions_7d_view",VIDEO_AVG_PCT_WATCHED_ACTION_VT_28:"video_avg_pct_watched_actions_28d_view",VIDEO_AVG_PCT_WATCHED_ACTION:"video_avg_pct_watched_actions",VIDEO_AVG_PCT_WATCHED_ACTION_INLINE:"video_avg_pct_watched_actions_inline",VIDEO_PCT_WATCHED_ACTION_CT_1_BY_CONVS:"video_pct_watched_actions_1d_click_by_convs",VIDEO_PCT_WATCHED_ACTION_CT_7_BY_CONVS:"video_pct_watched_actions_7d_click_by_convs",VIDEO_PCT_WATCHED_ACTION_CT_28_BY_CONVS:"video_pct_watched_actions_28d_click_by_convs",VIDEO_PCT_WATCHED_ACTION_VT_1_BY_CONVS:"video_pct_watched_actions_1d_view_by_convs",VIDEO_PCT_WATCHED_ACTION_VT_7_BY_CONVS:"video_pct_watched_actions_7d_view_by_convs",VIDEO_PCT_WATCHED_ACTION_VT_28_BY_CONVS:"video_pct_watched_actions_28d_view_by_convs",VIDEO_PCT_WATCHED_ACTION_TOTAL_BY_CONVS:"video_pct_watched_actions_by_convs",VIDEO_PCT_WATCHED_ACTION_INLINE_BY_CONVS:"video_pct_watched_actions_inline_by_convs",VIDEO_AVG_PCT_WATCHED_ACTION_CT_1_BY_CONVS:"video_avg_pct_watched_actions_1d_click_by_convs",VIDEO_AVG_PCT_WATCHED_ACTION_CT_7_BY_CONVS:"video_avg_pct_watched_actions_7d_click_by_convs",VIDEO_AVG_PCT_WATCHED_ACTION_CT_28_BY_CONVS:"video_avg_pct_watched_actions_28d_click_by_convs",VIDEO_AVG_PCT_WATCHED_ACTION_VT_1_BY_CONVS:"video_avg_pct_watched_actions_1d_view_by_convs",VIDEO_AVG_PCT_WATCHED_ACTION_VT_7_BY_CONVS:"video_avg_pct_watched_actions_7d_view_by_convs",VIDEO_AVG_PCT_WATCHED_ACTION_VT_28_BY_CONVS:"video_avg_pct_watched_actions_28d_view_by_convs",VIDEO_AVG_PCT_WATCHED_ACTION_TOTAL_BY_CONVS:"video_avg_pct_watched_actions_by_convs",VIDEO_AVG_PCT_WATCHED_ACTION_INLINE_BY_CONVS:"video_avg_pct_watched_actions_inline_by_convs",VIDEO_START_ACTION_CT_1:"video_start_actions_1d_click",VIDEO_START_ACTION_CT_7:"video_start_actions_7d_click",VIDEO_START_ACTION_CT_28:"video_start_actions_28d_click",VIDEO_START_ACTION_VT_1:"video_start_actions_1d_view",VIDEO_START_ACTION_VT_7:"video_start_actions_7d_view",VIDEO_START_ACTION_VT_28:"video_start_actions_28d_view",VIDEO_START_ACTION:"video_start_actions",VIDEO_START_ACTION_INLINE:"video_start_actions_inline",VIDEO_START_ACTION_CT_1_BY_CONVS:"video_start_actions_1d_click_by_convs",VIDEO_START_ACTION_CT_7_BY_CONVS:"video_start_actions_7d_click_by_convs",VIDEO_START_ACTION_CT_28_BY_CONVS:"video_start_actions_28d_click_by_convs",VIDEO_START_ACTION_VT_1_BY_CONVS:"video_start_actions_1d_view_by_convs",VIDEO_START_ACTION_VT_7_BY_CONVS:"video_start_actions_7d_view_by_convs",VIDEO_START_ACTION_VT_28_BY_CONVS:"video_start_actions_28d_view_by_convs",VIDEO_START_ACTION_TOTAL_BY_CONVS:"video_start_actions_by_convs",VIDEO_START_ACTION_INLINE_BY_CONVS:"video_start_actions_inline_by_convs",VIDEO_P25_WATCHED_ACTION_CT_1:"video_p25_watched_actions_1d_click",VIDEO_P25_WATCHED_ACTION_CT_7:"video_p25_watched_actions_7d_click",VIDEO_P25_WATCHED_ACTION_CT_28:"video_p25_watched_actions_28d_click",VIDEO_P25_WATCHED_ACTION_VT_1:"video_p25_watched_actions_1d_view",VIDEO_P25_WATCHED_ACTION_VT_7:"video_p25_watched_actions_7d_view",VIDEO_P25_WATCHED_ACTION_VT_28:"video_p25_watched_actions_28d_view",VIDEO_P25_WATCHED_ACTION:"video_p25_watched_actions",VIDEO_P25_WATCHED_ACTION_INLINE:"video_p25_watched_actions_inline",VIDEO_P25_WATCHED_ACTION_CT_1_BY_CONVS:"video_p25_watched_actions_1d_click_by_convs",VIDEO_P25_WATCHED_ACTION_CT_7_BY_CONVS:"video_p25_watched_actions_7d_click_by_convs",VIDEO_P25_WATCHED_ACTION_CT_28_BY_CONVS:"video_p25_watched_actions_28d_click_by_convs",VIDEO_P25_WATCHED_ACTION_VT_1_BY_CONVS:"video_p25_watched_actions_1d_view_by_convs",VIDEO_P25_WATCHED_ACTION_VT_7_BY_CONVS:"video_p25_watched_actions_7d_view_by_convs",VIDEO_P25_WATCHED_ACTION_VT_28_BY_CONVS:"video_p25_watched_actions_28d_view_by_convs",VIDEO_P25_WATCHED_ACTION_TOTAL_BY_CONVS:"video_p25_watched_actions_by_convs",VIDEO_P25_WATCHED_ACTION_INLINE_BY_CONVS:"video_p25_watched_actions_inline_by_convs",VIDEO_P50_WATCHED_ACTION_CT_1:"video_p50_watched_actions_1d_click",VIDEO_P50_WATCHED_ACTION_CT_7:"video_p50_watched_actions_7d_click",VIDEO_P50_WATCHED_ACTION_CT_28:"video_p50_watched_actions_28d_click",VIDEO_P50_WATCHED_ACTION_VT_1:"video_p50_watched_actions_1d_view",VIDEO_P50_WATCHED_ACTION_VT_7:"video_p50_watched_actions_7d_view",VIDEO_P50_WATCHED_ACTION_VT_28:"video_p50_watched_actions_28d_view",VIDEO_P50_WATCHED_ACTION:"video_p50_watched_actions",VIDEO_P50_WATCHED_ACTION_INLINE:"video_p50_watched_actions_inline",VIDEO_P50_WATCHED_ACTION_CT_1_BY_CONVS:"video_p50_watched_actions_1d_click_by_convs",VIDEO_P50_WATCHED_ACTION_CT_7_BY_CONVS:"video_p50_watched_actions_7d_click_by_convs",VIDEO_P50_WATCHED_ACTION_CT_28_BY_CONVS:"video_p50_watched_actions_28d_click_by_convs",VIDEO_P50_WATCHED_ACTION_VT_1_BY_CONVS:"video_p50_watched_actions_1d_view_by_convs",VIDEO_P50_WATCHED_ACTION_VT_7_BY_CONVS:"video_p50_watched_actions_7d_view_by_convs",VIDEO_P50_WATCHED_ACTION_VT_28_BY_CONVS:"video_p50_watched_actions_28d_view_by_convs",VIDEO_P50_WATCHED_ACTION_TOTAL_BY_CONVS:"video_p50_watched_actions_by_convs",VIDEO_P50_WATCHED_ACTION_INLINE_BY_CONVS:"video_p50_watched_actions_inline_by_convs",VIDEO_P75_WATCHED_ACTION_CT_1:"video_p75_watched_actions_1d_click",VIDEO_P75_WATCHED_ACTION_CT_7:"video_p75_watched_actions_7d_click",VIDEO_P75_WATCHED_ACTION_CT_28:"video_p75_watched_actions_28d_click",VIDEO_P75_WATCHED_ACTION_VT_1:"video_p75_watched_actions_1d_view",VIDEO_P75_WATCHED_ACTION_VT_7:"video_p75_watched_actions_7d_view",VIDEO_P75_WATCHED_ACTION_VT_28:"video_p75_watched_actions_28d_view",VIDEO_P75_WATCHED_ACTION:"video_p75_watched_actions",VIDEO_P75_WATCHED_ACTION_INLINE:"video_p75_watched_actions_inline",VIDEO_P75_WATCHED_ACTION_CT_1_BY_CONVS:"video_p75_watched_actions_1d_click_by_convs",VIDEO_P75_WATCHED_ACTION_CT_7_BY_CONVS:"video_p75_watched_actions_7d_click_by_convs",VIDEO_P75_WATCHED_ACTION_CT_28_BY_CONVS:"video_p75_watched_actions_28d_click_by_convs",VIDEO_P75_WATCHED_ACTION_VT_1_BY_CONVS:"video_p75_watched_actions_1d_view_by_convs",VIDEO_P75_WATCHED_ACTION_VT_7_BY_CONVS:"video_p75_watched_actions_7d_view_by_convs",VIDEO_P75_WATCHED_ACTION_VT_28_BY_CONVS:"video_p75_watched_actions_28d_view_by_convs",VIDEO_P75_WATCHED_ACTION_TOTAL_BY_CONVS:"video_p75_watched_actions_by_convs",VIDEO_P75_WATCHED_ACTION_INLINE_BY_CONVS:"video_p75_watched_actions_inline_by_convs",VIDEO_P95_WATCHED_ACTION_CT_1:"video_p95_watched_actions_1d_click",VIDEO_P95_WATCHED_ACTION_CT_7:"video_p95_watched_actions_7d_click",VIDEO_P95_WATCHED_ACTION_CT_28:"video_p95_watched_actions_28d_click",VIDEO_P95_WATCHED_ACTION_VT_1:"video_p95_watched_actions_1d_view",VIDEO_P95_WATCHED_ACTION_VT_7:"video_p95_watched_actions_7d_view",VIDEO_P95_WATCHED_ACTION_VT_28:"video_p95_watched_actions_28d_view",VIDEO_P95_WATCHED_ACTION:"video_p95_watched_actions",VIDEO_P95_WATCHED_ACTION_INLINE:"video_p95_watched_actions_inline",VIDEO_P95_WATCHED_ACTION_CT_1_BY_CONVS:"video_p95_watched_actions_1d_click_by_convs",VIDEO_P95_WATCHED_ACTION_CT_7_BY_CONVS:"video_p95_watched_actions_7d_click_by_convs",VIDEO_P95_WATCHED_ACTION_CT_28_BY_CONVS:"video_p95_watched_actions_28d_click_by_convs",VIDEO_P95_WATCHED_ACTION_VT_1_BY_CONVS:"video_p95_watched_actions_1d_view_by_convs",VIDEO_P95_WATCHED_ACTION_VT_7_BY_CONVS:"video_p95_watched_actions_7d_view_by_convs",VIDEO_P95_WATCHED_ACTION_VT_28_BY_CONVS:"video_p95_watched_actions_28d_view_by_convs",VIDEO_P95_WATCHED_ACTION_TOTAL_BY_CONVS:"video_p95_watched_actions_by_convs",VIDEO_P95_WATCHED_ACTION_INLINE_BY_CONVS:"video_p95_watched_actions_inline_by_convs",VIDEO_P100_WATCHED_ACTION_CT_1:"video_p100_watched_actions_1d_click",VIDEO_P100_WATCHED_ACTION_CT_7:"video_p100_watched_actions_7d_click",VIDEO_P100_WATCHED_ACTION_CT_28:"video_p100_watched_actions_28d_click",VIDEO_P100_WATCHED_ACTION_VT_1:"video_p100_watched_actions_1d_view",VIDEO_P100_WATCHED_ACTION_VT_7:"video_p100_watched_actions_7d_view",VIDEO_P100_WATCHED_ACTION_VT_28:"video_p100_watched_actions_28d_view",VIDEO_P100_WATCHED_ACTION:"video_p100_watched_actions",VIDEO_P100_WATCHED_ACTION_INLINE:"video_p100_watched_actions_inline",VIDEO_P100_WATCHED_ACTION_CT_1_BY_CONVS:"video_p100_watched_actions_1d_click_by_convs",VIDEO_P100_WATCHED_ACTION_CT_7_BY_CONVS:"video_p100_watched_actions_7d_click_by_convs",VIDEO_P100_WATCHED_ACTION_CT_28_BY_CONVS:"video_p100_watched_actions_28d_click_by_convs",VIDEO_P100_WATCHED_ACTION_VT_1_BY_CONVS:"video_p100_watched_actions_1d_view_by_convs",VIDEO_P100_WATCHED_ACTION_VT_7_BY_CONVS:"video_p100_watched_actions_7d_view_by_convs",VIDEO_P100_WATCHED_ACTION_VT_28_BY_CONVS:"video_p100_watched_actions_28d_view_by_convs",VIDEO_P100_WATCHED_ACTION_TOTAL_BY_CONVS:"video_p100_watched_actions_by_convs",VIDEO_P100_WATCHED_ACTION_INLINE_BY_CONVS:"video_p100_watched_actions_inline_by_convs",VIDEO_COMPLETE_WATCHED_ACTION_CT_1:"video_complete_watched_actions_1d_click",VIDEO_COMPLETE_WATCHED_ACTION_CT_7:"video_complete_watched_actions_7d_click",VIDEO_COMPLETE_WATCHED_ACTION_CT_28:"video_complete_watched_actions_28d_click",VIDEO_COMPLETE_WATCHED_ACTION_VT_1:"video_complete_watched_actions_1d_view",VIDEO_COMPLETE_WATCHED_ACTION_VT_7:"video_complete_watched_actions_7d_view",VIDEO_COMPLETE_WATCHED_ACTION_VT_28:"video_complete_watched_actions_28d_view",VIDEO_COMPLETE_WATCHED_ACTION:"video_complete_watched_actions",VIDEO_COMPLETE_WATCHED_ACTION_INLINE:"video_complete_watched_actions_inline",VIDEO_COMPLETE_WATCHED_ACTION_CT_1_BY_CONVS:"video_complete_watched_actions_1d_click_by_convs",VIDEO_COMPLETE_WATCHED_ACTION_CT_7_BY_CONVS:"video_complete_watched_actions_7d_click_by_convs",VIDEO_COMPLETE_WATCHED_ACTION_CT_28_BY_CONVS:"video_complete_watched_actions_28d_click_by_convs",VIDEO_COMPLETE_WATCHED_ACTION_VT_1_BY_CONVS:"video_complete_watched_actions_1d_view_by_convs",VIDEO_COMPLETE_WATCHED_ACTION_VT_7_BY_CONVS:"video_complete_watched_actions_7d_view_by_convs",VIDEO_COMPLETE_WATCHED_ACTION_VT_28_BY_CONVS:"video_complete_watched_actions_28d_view_by_convs",VIDEO_COMPLETE_WATCHED_ACTION_TOTAL_BY_CONVS:"video_complete_watched_actions_by_convs",VIDEO_COMPLETE_WATCHED_ACTION_INLINE_BY_CONVS:"video_complete_watched_actions_inline_by_convs",VIDEO_10_SEC_WATCHED_ACTION_CT_1:"video_10_sec_watched_actions_1d_click",VIDEO_10_SEC_WATCHED_ACTION_CT_7:"video_10_sec_watched_actions_7d_click",VIDEO_10_SEC_WATCHED_ACTION_CT_28:"video_10_sec_watched_actions_28d_click",VIDEO_10_SEC_WATCHED_ACTION_VT_1:"video_10_sec_watched_actions_1d_view",VIDEO_10_SEC_WATCHED_ACTION_VT_7:"video_10_sec_watched_actions_7d_view",VIDEO_10_SEC_WATCHED_ACTION_VT_28:"video_10_sec_watched_actions_28d_view",VIDEO_10_SEC_WATCHED_ACTION:"video_10_sec_watched_actions",VIDEO_10_SEC_WATCHED_ACTION_INLINE:"video_10_sec_watched_actions_inline",VIDEO_10_SEC_WATCHED_ACTION_CT_1_BY_CONVS:"video_10_sec_watched_actions_1d_click_by_convs",VIDEO_10_SEC_WATCHED_ACTION_CT_7_BY_CONVS:"video_10_sec_watched_actions_7d_click_by_convs",VIDEO_10_SEC_WATCHED_ACTION_CT_28_BY_CONVS:"video_10_sec_watched_actions_28d_click_by_convs",VIDEO_10_SEC_WATCHED_ACTION_VT_1_BY_CONVS:"video_10_sec_watched_actions_1d_view_by_convs",VIDEO_10_SEC_WATCHED_ACTION_VT_7_BY_CONVS:"video_10_sec_watched_actions_7d_view_by_convs",VIDEO_10_SEC_WATCHED_ACTION_VT_28_BY_CONVS:"video_10_sec_watched_actions_28d_view_by_convs",VIDEO_10_SEC_WATCHED_ACTION_TOTAL_BY_CONVS:"video_10_sec_watched_actions_by_convs",VIDEO_10_SEC_WATCHED_ACTION_INLINE_BY_CONVS:"video_10_sec_watched_actions_inline_by_convs",VIDEO_15_SEC_WATCHED_ACTION_CT_1:"video_15_sec_watched_actions_1d_click",VIDEO_15_SEC_WATCHED_ACTION_CT_7:"video_15_sec_watched_actions_7d_click",VIDEO_15_SEC_WATCHED_ACTION_CT_28:"video_15_sec_watched_actions_28d_click",VIDEO_15_SEC_WATCHED_ACTION_VT_1:"video_15_sec_watched_actions_1d_view",VIDEO_15_SEC_WATCHED_ACTION_VT_7:"video_15_sec_watched_actions_7d_view",VIDEO_15_SEC_WATCHED_ACTION_VT_28:"video_15_sec_watched_actions_28d_view",VIDEO_15_SEC_WATCHED_ACTION:"video_15_sec_watched_actions",VIDEO_15_SEC_WATCHED_ACTION_INLINE:"video_15_sec_watched_actions_inline",VIDEO_15_SEC_WATCHED_ACTION_CT_1_BY_CONVS:"video_15_sec_watched_actions_1d_click_by_convs",VIDEO_15_SEC_WATCHED_ACTION_CT_7_BY_CONVS:"video_15_sec_watched_actions_7d_click_by_convs",VIDEO_15_SEC_WATCHED_ACTION_CT_28_BY_CONVS:"video_15_sec_watched_actions_28d_click_by_convs",VIDEO_15_SEC_WATCHED_ACTION_VT_1_BY_CONVS:"video_15_sec_watched_actions_1d_view_by_convs",VIDEO_15_SEC_WATCHED_ACTION_VT_7_BY_CONVS:"video_15_sec_watched_actions_7d_view_by_convs",VIDEO_15_SEC_WATCHED_ACTION_VT_28_BY_CONVS:"video_15_sec_watched_actions_28d_view_by_convs",VIDEO_15_SEC_WATCHED_ACTION_TOTAL_BY_CONVS:"video_15_sec_watched_actions_by_convs",VIDEO_15_SEC_WATCHED_ACTION_INLINE_BY_CONVS:"video_15_sec_watched_actions_inline_by_convs",VIDEO_30_SEC_WATCHED_ACTION_CT_1:"video_30_sec_watched_actions_1d_click",VIDEO_30_SEC_WATCHED_ACTION_CT_7:"video_30_sec_watched_actions_7d_click",VIDEO_30_SEC_WATCHED_ACTION_CT_28:"video_30_sec_watched_actions_28d_click",VIDEO_30_SEC_WATCHED_ACTION_VT_1:"video_30_sec_watched_actions_1d_view",VIDEO_30_SEC_WATCHED_ACTION_VT_7:"video_30_sec_watched_actions_7d_view",VIDEO_30_SEC_WATCHED_ACTION_VT_28:"video_30_sec_watched_actions_28d_view",VIDEO_30_SEC_WATCHED_ACTION:"video_30_sec_watched_actions",VIDEO_30_SEC_WATCHED_ACTION_INLINE:"video_30_sec_watched_actions_inline",VIDEO_30_SEC_WATCHED_ACTION_CT_1_BY_CONVS:"video_30_sec_watched_actions_1d_click_by_convs",VIDEO_30_SEC_WATCHED_ACTION_CT_7_BY_CONVS:"video_30_sec_watched_actions_7d_click_by_convs",VIDEO_30_SEC_WATCHED_ACTION_CT_28_BY_CONVS:"video_30_sec_watched_actions_28d_click_by_convs",VIDEO_30_SEC_WATCHED_ACTION_VT_1_BY_CONVS:"video_30_sec_watched_actions_1d_view_by_convs",VIDEO_30_SEC_WATCHED_ACTION_VT_7_BY_CONVS:"video_30_sec_watched_actions_7d_view_by_convs",VIDEO_30_SEC_WATCHED_ACTION_VT_28_BY_CONVS:"video_30_sec_watched_actions_28d_view_by_convs",VIDEO_30_SEC_WATCHED_ACTION_TOTAL_BY_CONVS:"video_30_sec_watched_actions_by_convs",VIDEO_30_SEC_WATCHED_ACTION_INLINE_BY_CONVS:"video_30_sec_watched_actions_inline_by_convs",VIDEO_COMPLETED_VIEW_OR_15S_PASSED_ACTION_CT_1:"video_completed_view_or_15s_passed_actions_1d_click",VIDEO_COMPLETED_VIEW_OR_15S_PASSED_ACTION_CT_7:"video_completed_view_or_15s_passed_actions_7d_click",VIDEO_COMPLETED_VIEW_OR_15S_PASSED_ACTION_CT_28:"video_completed_view_or_15s_passed_actions_28d_click",VIDEO_COMPLETED_VIEW_OR_15S_PASSED_ACTION_VT_1:"video_completed_view_or_15s_passed_actions_1d_view",VIDEO_COMPLETED_VIEW_OR_15S_PASSED_ACTION_VT_7:"video_completed_view_or_15s_passed_actions_7d_view",VIDEO_COMPLETED_VIEW_OR_15S_PASSED_ACTION_VT_28:"video_completed_view_or_15s_passed_actions_28d_view",VIDEO_COMPLETED_VIEW_OR_15S_PASSED_ACTION:"video_completed_view_or_15s_passed_actions",VIDEO_COMPLETED_VIEW_OR_15S_PASSED_ACTION_INLINE:"video_completed_view_or_15s_passed_actions_inline",VIDEO_COMPLETED_VIEW_OR_15S_PASSED_ACTION_CT_1_BY_CONVS:"video_completed_view_or_15s_passed_actions_1d_click_by_convs",VIDEO_COMPLETED_VIEW_OR_15S_PASSED_ACTION_CT_7_BY_CONVS:"video_completed_view_or_15s_passed_actions_7d_click_by_convs",VIDEO_COMPLETED_VIEW_OR_15S_PASSED_ACTION_CT_28_BY_CONVS:"video_completed_view_or_15s_passed_actions_28d_click_by_convs",VIDEO_COMPLETED_VIEW_OR_15S_PASSED_ACTION_VT_1_BY_CONVS:"video_completed_view_or_15s_passed_actions_1d_view_by_convs",VIDEO_COMPLETED_VIEW_OR_15S_PASSED_ACTION_VT_7_BY_CONVS:"video_completed_view_or_15s_passed_actions_7d_view_by_convs",VIDEO_COMPLETED_VIEW_OR_15S_PASSED_ACTION_VT_28_BY_CONVS:"video_completed_view_or_15s_passed_actions_28d_view_by_convs",VIDEO_COMPLETED_VIEW_OR_15S_PASSED_ACTION_TOTAL_BY_CONVS:"video_completed_view_or_15s_passed_actions_by_convs",VIDEO_COMPLETED_VIEW_OR_15S_PASSED_ACTION_INLINE_BY_CONVS:"video_completed_view_or_15s_passed_actions_inline_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_2S_ACTION:"conditional_time_spent_ms_over_2s_actions",CONDITIONAL_TIME_SPENT_MS_OVER_2S_ACTION_CT_1:"conditional_time_spent_ms_over_2s_actions_1d_click",CONDITIONAL_TIME_SPENT_MS_OVER_2S_ACTION_CT_7:"conditional_time_spent_ms_over_2s_actions_7d_click",CONDITIONAL_TIME_SPENT_MS_OVER_2S_ACTION_CT_28:"conditional_time_spent_ms_over_2s_actions_28d_click",CONDITIONAL_TIME_SPENT_MS_OVER_2S_ACTION_VT_1:"conditional_time_spent_ms_over_2s_actions_1d_view",CONDITIONAL_TIME_SPENT_MS_OVER_2S_ACTION_VT_7:"conditional_time_spent_ms_over_2s_actions_7d_view",CONDITIONAL_TIME_SPENT_MS_OVER_2S_ACTION_VT_28:"conditional_time_spent_ms_over_2s_actions_28d_view",CONDITIONAL_TIME_SPENT_MS_OVER_2S_ACTION_INLINE:"conditional_time_spent_ms_over_2s_actions_inline",CONDITIONAL_TIME_SPENT_MS_OVER_3S_ACTION:"conditional_time_spent_ms_over_3s_actions",CONDITIONAL_TIME_SPENT_MS_OVER_3S_ACTION_CT_1:"conditional_time_spent_ms_over_3s_actions_1d_click",CONDITIONAL_TIME_SPENT_MS_OVER_3S_ACTION_CT_7:"conditional_time_spent_ms_over_3s_actions_7d_click",CONDITIONAL_TIME_SPENT_MS_OVER_3S_ACTION_CT_28:"conditional_time_spent_ms_over_3s_actions_28d_click",CONDITIONAL_TIME_SPENT_MS_OVER_3S_ACTION_VT_1:"conditional_time_spent_ms_over_3s_actions_1d_view",CONDITIONAL_TIME_SPENT_MS_OVER_3S_ACTION_VT_7:"conditional_time_spent_ms_over_3s_actions_7d_view",CONDITIONAL_TIME_SPENT_MS_OVER_3S_ACTION_VT_28:"conditional_time_spent_ms_over_3s_actions_28d_view",CONDITIONAL_TIME_SPENT_MS_OVER_3S_ACTION_INLINE:"conditional_time_spent_ms_over_3s_actions_inline",CONDITIONAL_TIME_SPENT_MS_OVER_6S_ACTION:"conditional_time_spent_ms_over_6s_actions",CONDITIONAL_TIME_SPENT_MS_OVER_6S_ACTION_CT_1:"conditional_time_spent_ms_over_6s_actions_1d_click",CONDITIONAL_TIME_SPENT_MS_OVER_6S_ACTION_CT_7:"conditional_time_spent_ms_over_6s_actions_7d_click",CONDITIONAL_TIME_SPENT_MS_OVER_6S_ACTION_CT_28:"conditional_time_spent_ms_over_6s_actions_28d_click",CONDITIONAL_TIME_SPENT_MS_OVER_6S_ACTION_VT_1:"conditional_time_spent_ms_over_6s_actions_1d_view",CONDITIONAL_TIME_SPENT_MS_OVER_6S_ACTION_VT_7:"conditional_time_spent_ms_over_6s_actions_7d_view",CONDITIONAL_TIME_SPENT_MS_OVER_6S_ACTION_VT_28:"conditional_time_spent_ms_over_6s_actions_28d_view",CONDITIONAL_TIME_SPENT_MS_OVER_6S_ACTION_INLINE:"conditional_time_spent_ms_over_6s_actions_inline",CONDITIONAL_TIME_SPENT_MS_OVER_10S_ACTION:"conditional_time_spent_ms_over_10s_actions",CONDITIONAL_TIME_SPENT_MS_OVER_10S_ACTION_CT_1:"conditional_time_spent_ms_over_10s_actions_1d_click",CONDITIONAL_TIME_SPENT_MS_OVER_10S_ACTION_CT_7:"conditional_time_spent_ms_over_10s_actions_7d_click",CONDITIONAL_TIME_SPENT_MS_OVER_10S_ACTION_CT_28:"conditional_time_spent_ms_over_10s_actions_28d_click",CONDITIONAL_TIME_SPENT_MS_OVER_10S_ACTION_VT_1:"conditional_time_spent_ms_over_10s_actions_1d_view",CONDITIONAL_TIME_SPENT_MS_OVER_10S_ACTION_VT_7:"conditional_time_spent_ms_over_10s_actions_7d_view",CONDITIONAL_TIME_SPENT_MS_OVER_10S_ACTION_VT_28:"conditional_time_spent_ms_over_10s_actions_28d_view",CONDITIONAL_TIME_SPENT_MS_OVER_10S_ACTION_INLINE:"conditional_time_spent_ms_over_10s_actions_inline",CONDITIONAL_TIME_SPENT_MS_OVER_15S_ACTION:"conditional_time_spent_ms_over_15s_actions",CONDITIONAL_TIME_SPENT_MS_OVER_15S_ACTION_CT_1:"conditional_time_spent_ms_over_15s_actions_1d_click",CONDITIONAL_TIME_SPENT_MS_OVER_15S_ACTION_CT_7:"conditional_time_spent_ms_over_15s_actions_7d_click",CONDITIONAL_TIME_SPENT_MS_OVER_15S_ACTION_CT_28:"conditional_time_spent_ms_over_15s_actions_28d_click",CONDITIONAL_TIME_SPENT_MS_OVER_15S_ACTION_VT_1:"conditional_time_spent_ms_over_15s_actions_1d_view",CONDITIONAL_TIME_SPENT_MS_OVER_15S_ACTION_VT_7:"conditional_time_spent_ms_over_15s_actions_7d_view",CONDITIONAL_TIME_SPENT_MS_OVER_15S_ACTION_VT_28:"conditional_time_spent_ms_over_15s_actions_28d_view",CONDITIONAL_TIME_SPENT_MS_OVER_15S_ACTION_INLINE:"conditional_time_spent_ms_over_15s_actions_inline",CONDITIONAL_TIME_SPENT_MS_OVER_2S_ACTION_BY_CONVS:"conditional_time_spent_ms_over_2s_actions_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_2S_ACTION_CT_1_BY_CONVS:"conditional_time_spent_ms_over_2s_actions_1d_click_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_2S_ACTION_CT_7_BY_CONVS:"conditional_time_spent_ms_over_2s_actions_7d_click_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_2S_ACTION_CT_28_BY_CONVS:"conditional_time_spent_ms_over_2s_actions_28d_click_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_2S_ACTION_VT_1_BY_CONVS:"conditional_time_spent_ms_over_2s_actions_1d_view_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_2S_ACTION_VT_7_BY_CONVS:"conditional_time_spent_ms_over_2s_actions_7d_view_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_2S_ACTION_VT_28_BY_CONVS:"conditional_time_spent_ms_over_2s_actions_28d_view_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_2S_ACTION_INLINE_BY_CONVS:"conditional_time_spent_ms_over_2s_actions_inline_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_3S_ACTION_BY_CONVS:"conditional_time_spent_ms_over_3s_actions_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_3S_ACTION_CT_1_BY_CONVS:"conditional_time_spent_ms_over_3s_actions_1d_click_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_3S_ACTION_CT_7_BY_CONVS:"conditional_time_spent_ms_over_3s_actions_7d_click_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_3S_ACTION_CT_28_BY_CONVS:"conditional_time_spent_ms_over_3s_actions_28d_click_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_3S_ACTION_VT_1_BY_CONVS:"conditional_time_spent_ms_over_3s_actions_1d_view_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_3S_ACTION_VT_7_BY_CONVS:"conditional_time_spent_ms_over_3s_actions_7d_view_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_3S_ACTION_VT_28_BY_CONVS:"conditional_time_spent_ms_over_3s_actions_28d_view_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_3S_ACTION_INLINE_BY_CONVS:"conditional_time_spent_ms_over_3s_actions_inline_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_6S_ACTION_BY_CONVS:"conditional_time_spent_ms_over_6s_actions_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_6S_ACTION_CT_1_BY_CONVS:"conditional_time_spent_ms_over_6s_actions_1d_click_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_6S_ACTION_CT_7_BY_CONVS:"conditional_time_spent_ms_over_6s_actions_7d_click_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_6S_ACTION_CT_28_BY_CONVS:"conditional_time_spent_ms_over_6s_actions_28d_click_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_6S_ACTION_VT_1_BY_CONVS:"conditional_time_spent_ms_over_6s_actions_1d_view_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_6S_ACTION_VT_7_BY_CONVS:"conditional_time_spent_ms_over_6s_actions_7d_view_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_6S_ACTION_VT_28_BY_CONVS:"conditional_time_spent_ms_over_6s_actions_28d_view_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_6S_ACTION_INLINE_BY_CONVS:"conditional_time_spent_ms_over_6s_actions_inline_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_10S_ACTION_BY_CONVS:"conditional_time_spent_ms_over_10s_actions_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_10S_ACTION_CT_1_BY_CONVS:"conditional_time_spent_ms_over_10s_actions_1d_click_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_10S_ACTION_CT_7_BY_CONVS:"conditional_time_spent_ms_over_10s_actions_7d_click_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_10S_ACTION_CT_28_BY_CONVS:"conditional_time_spent_ms_over_10s_actions_28d_click_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_10S_ACTION_VT_1_BY_CONVS:"conditional_time_spent_ms_over_10s_actions_1d_view_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_10S_ACTION_VT_7_BY_CONVS:"conditional_time_spent_ms_over_10s_actions_7d_view_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_10S_ACTION_VT_28_BY_CONVS:"conditional_time_spent_ms_over_10s_actions_28d_view_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_10S_ACTION_INLINE_BY_CONVS:"conditional_time_spent_ms_over_10s_actions_inline_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_15S_ACTION_BY_CONVS:"conditional_time_spent_ms_over_15s_actions_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_15S_ACTION_CT_1_BY_CONVS:"conditional_time_spent_ms_over_15s_actions_1d_click_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_15S_ACTION_CT_7_BY_CONVS:"conditional_time_spent_ms_over_15s_actions_7d_click_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_15S_ACTION_CT_28_BY_CONVS:"conditional_time_spent_ms_over_15s_actions_28d_click_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_15S_ACTION_VT_1_BY_CONVS:"conditional_time_spent_ms_over_15s_actions_1d_view_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_15S_ACTION_VT_7_BY_CONVS:"conditional_time_spent_ms_over_15s_actions_7d_view_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_15S_ACTION_VT_28_BY_CONVS:"conditional_time_spent_ms_over_15s_actions_28d_view_by_convs",CONDITIONAL_TIME_SPENT_MS_OVER_15S_ACTION_INLINE_BY_CONVS:"conditional_time_spent_ms_over_15s_actions_inline_by_convs",VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_CT_1:"video_continuous_2_sec_watched_actions_1d_click",VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_CT_7:"video_continuous_2_sec_watched_actions_7d_click",VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_CT_28:"video_continuous_2_sec_watched_actions_28d_click",VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_VT_1:"video_continuous_2_sec_watched_actions_1d_view",VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_VT_7:"video_continuous_2_sec_watched_actions_7d_view",VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_VT_28:"video_continuous_2_sec_watched_actions_28d_view",VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION:"video_continuous_2_sec_watched_actions",VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_INLINE:"video_continuous_2_sec_watched_actions_inline",VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_CT_1_BY_CONVS:"video_continuous_2_sec_watched_actions_1d_click_by_convs",VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_CT_7_BY_CONVS:"video_continuous_2_sec_watched_actions_7d_click_by_convs",VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_CT_28_BY_CONVS:"video_continuous_2_sec_watched_actions_28d_click_by_convs",VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_VT_1_BY_CONVS:"video_continuous_2_sec_watched_actions_1d_view_by_convs",VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_VT_7_BY_CONVS:"video_continuous_2_sec_watched_actions_7d_view_by_convs",VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_VT_28_BY_CONVS:"video_continuous_2_sec_watched_actions_28d_view_by_convs",VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_TOTAL_BY_CONVS:"video_continuous_2_sec_watched_actions_by_convs",VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_INLINE_BY_CONVS:"video_continuous_2_sec_watched_actions_inline_by_convs",UNIQUE_VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_CT_1:"unique_video_continuous_2_sec_watched_actions_1d_click",UNIQUE_VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_CT_7:"unique_video_continuous_2_sec_watched_actions_7d_click",UNIQUE_VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_CT_28:"unique_video_continuous_2_sec_watched_actions_28d_click",UNIQUE_VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_VT_1:"unique_video_continuous_2_sec_watched_actions_1d_view",UNIQUE_VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_VT_7:"unique_video_continuous_2_sec_watched_actions_7d_view",UNIQUE_VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_VT_28:"unique_video_continuous_2_sec_watched_actions_28d_view",UNIQUE_VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION:"unique_video_continuous_2_sec_watched_actions",UNIQUE_VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_INLINE:"unique_video_continuous_2_sec_watched_actions_inline",UNIQUE_VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_CT_1_BY_CONVS:"unique_video_continuous_2_sec_watched_actions_1d_click_by_convs",UNIQUE_VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_CT_7_BY_CONVS:"unique_video_continuous_2_sec_watched_actions_7d_click_by_convs",UNIQUE_VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_CT_28_BY_CONVS:"unique_video_continuous_2_sec_watched_actions_28d_click_by_convs",UNIQUE_VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_VT_1_BY_CONVS:"unique_video_continuous_2_sec_watched_actions_1d_view_by_convs",UNIQUE_VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_VT_7_BY_CONVS:"unique_video_continuous_2_sec_watched_actions_7d_view_by_convs",UNIQUE_VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_VT_28_BY_CONVS:"unique_video_continuous_2_sec_watched_actions_28d_view_by_convs",UNIQUE_VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_BY_CONVS:"unique_video_continuous_2_sec_watched_actions_by_convs",UNIQUE_VIDEO_CONTINUOUS_2_SEC_WATCHED_ACTION_INLINE_BY_CONVS:"unique_video_continuous_2_sec_watched_actions_inline_by_convs",VIDEO_PLAY_RETENTION_0_TO_15S_ACTIONS:"video_play_retention_0_to_15s_actions",VIDEO_PLAY_RETENTION_20_TO_60S_ACTIONS:"video_play_retention_20_to_60s_actions",VIDEO_PLAY_RETENTION_GRAPH_ACTIONS:"video_play_retention_graph_actions",VIDEO_PLAY_RETENTION_0_TO_15S_ACTIONS_BY_CONVS:"video_play_retention_0_to_15s_actions_by_convs",VIDEO_PLAY_RETENTION_20_TO_60S_ACTIONS_BY_CONVS:"video_play_retention_20_to_60s_actions_by_convs",VIDEO_PLAY_RETENTION_GRAPH_ACTIONS_BY_CONVS:"video_play_retention_graph_actions_by_convs",VIDEO_VIEW_LIVE_WATCHED_ACTION_CT_1:"video_view_live_watched_actions_1d_click",VIDEO_VIEW_LIVE_WATCHED_ACTION_CT_7:"video_view_live_watched_actions_7d_click",VIDEO_VIEW_LIVE_WATCHED_ACTION_CT_28:"video_view_live_watched_actions_28_click",VIDEO_VIEW_LIVE_WATCHED_ACTION_VT_1:"video_view_live_watched_actions_1d_view",VIDEO_VIEW_LIVE_WATCHED_ACTION_VT_7:"video_view_live_watched_actions_7d_view",VIDEO_VIEW_LIVE_WATCHED_ACTION_VT_28:"video_view_live_watched_actions_28d_view",VIDEO_VIEW_LIVE_WATCHED_ACTION:"video_view_live_watched_actions",VIDEO_VIEW_LIVE_WATCHED_ACTION_INLINE:"video_view_live_watched_actions_inline",VIDEO_VIEW_LIVE_WATCHED_ACTION_CT_1_BY_CONVS:"video_view_live_watched_actions_1d_click_by_convs",VIDEO_VIEW_LIVE_WATCHED_ACTION_CT_7_BY_CONVS:"video_view_live_watched_actions_7d_click_by_convs",VIDEO_VIEW_LIVE_WATCHED_ACTION_CT_28_BY_CONVS:"video_view_live_watched_actions_28_click_by_convs",VIDEO_VIEW_LIVE_WATCHED_ACTION_VT_1_BY_CONVS:"video_view_live_watched_actions_1d_view_by_convs",VIDEO_VIEW_LIVE_WATCHED_ACTION_VT_7_BY_CONVS:"video_view_live_watched_actions_7d_view_by_convs",VIDEO_VIEW_LIVE_WATCHED_ACTION_VT_28_BY_CONVS:"video_view_live_watched_actions_28d_view_by_convs",VIDEO_VIEW_LIVE_WATCHED_ACTION_BY_CONVS:"video_view_live_watched_actions_by_convs_by_convs",VIDEO_VIEW_LIVE_WATCHED_ACTION_INLINE_BY_CONVS:"video_view_live_watched_actions_inline_by_convs",ATTENTION_EVENTS_PER_IMPRESSION:"attention_events_per_impression",ATTENTION_EVENTS_UNQ_PER_REACH:"attention_events_unq_per_reach",DWELL_3_SEC:"dwell_3_sec",DWELL_5_SEC:"dwell_5_sec",DWELL_7_SEC:"dwell_7_sec",COST_PER_DWELL_3_SEC:"cost_per_dwell_3_sec",COST_PER_DWELL_5_SEC:"cost_per_dwell_5_sec",COST_PER_DWELL_7_SEC:"cost_per_dwell_7_sec",THUMB_STOPS:"thumb_stops",COST_PER_DWELL_P50:"cost_per_dwell",DWELL_P50_RATE:"dwell_rate",ESTIMATED_AD_RECALLERS:"estimated_ad_recallers",ESTIMATED_AD_RECALLERS_LOWER_BOUND:"estimated_ad_recallers_lower_bound",ESTIMATED_AD_RECALLERS_UPPER_BOUND:"estimated_ad_recallers_upper_bound",ESTIMATED_AD_RECALL_RATE:"estimated_ad_recall_rate",ESTIMATED_AD_RECALL_RATE_LOWER_BOUND:"estimated_ad_recall_rate_lower_bound",ESTIMATED_AD_RECALL_RATE_UPPER_BOUND:"estimated_ad_recall_rate_upper_bound",COST_PER_ESTIMATED_AD_RECALLERS:"cost_per_estimated_ad_recallers",ESTIMATED_AD_RECALL_LIFT_BY_IMPS:"estimated_ad_recall_lift_by_imps",ESTIMATED_AD_RECALL_LIFT_BY_CONVS:"estimated_ad_recall_lift_by_convs",FULL_VIEW_IMPRESSIONS:"full_view_impressions",FULL_VIEW_REACH:"full_view_reach",ACTION_CANVAS_COMPONENT_ID:"action_canvas_component_id",ACTION_CANVAS_COMPONENT_NAME:"action_canvas_component_name",CANVAS_AVG_VIEW_TIME:"canvas_avg_view_time",CANVAS_AVG_VIEW_PERCENT:"canvas_avg_view_percent",CANVAS_AVG_VIEW_PERCENT_PER_COMPONENT:"canvas_avg_view_percentage_per_component",CANVAS_COMPONENT_AVG_PCT_VIEW:"canvas_component_avg_pct_view",CANVAS_VIEW_TIME:"canvas_view_time",CANVAS_VIEW_PERCENT:"canvas_view_percent",CANVAS_VIEW_PERCENT_PER_COMPONENT:"canvas_view_percentage_per_component",CANVAS_VIEWS:"canvas_views",PLACE_PAGE_ID:"place_page_id",PLACE_PAGE_NAME:"place_page_name",AD_FORMAT_ASSET:"ad_format_asset",BODY_ASSET:"body_asset",CALL_TO_ACTION_ASSET:"call_to_action_asset",DESCRIPTION_ASSET:"description_asset",IMAGE_ASSET:"image_asset",LINK_URL_ASSET:"link_url_asset",TITLE_ASSET:"title_asset",VIDEO_ASSET:"video_asset",AD_BID_TYPE:"ad_bid_type",AD_BID_VALUE:"ad_bid_value",AD_DELIVERY:"ad_delivery",AD_ID:"ad_id",AD_NAME:"ad_name",ADSET_BID_TYPE:"adset_bid_type",ADSET_BID_VALUE:"adset_bid_value",ADSET_BUDGET_TYPE:"adset_budget_type",ADSET_BUDGET_VALUE:"adset_budget_value",ADSET_DELIVERY:"adset_delivery",ADSET_ID:"adset_id",ADSET_NAME:"adset_name",ADSET_START:"adset_start",ADSET_END:"adset_end",VIDEO_PLAY_ACTION:"video_play_actions",VIDEO_PLAY_ACTION_CT_1:"video_play_actions_1d_click",VIDEO_PLAY_ACTION_CT_7:"video_play_actions_7d_click",VIDEO_PLAY_ACTION_CT_28:"video_play_actions_28d_click",VIDEO_PLAY_ACTION_VT_1:"video_play_actions_1d_view",VIDEO_PLAY_ACTION_VT_7:"video_play_actions_7d_view",VIDEO_PLAY_ACTION_VT_28:"video_play_actions_28d_view",VIDEO_PLAY_ACTION_INLINE:"video_play_actions_inline",VIDEO_PLAY_ACTION_BY_CONVS:"video_play_actions_by_convs",VIDEO_PLAY_ACTION_CT_1_BY_CONVS:"video_play_actions_1d_click_by_convs",VIDEO_PLAY_ACTION_CT_7_BY_CONVS:"video_play_actions_7d_click_by_convs",VIDEO_PLAY_ACTION_CT_28_BY_CONVS:"video_play_actions_28d_click_by_convs",VIDEO_PLAY_ACTION_VT_1_BY_CONVS:"video_play_actions_1d_view_by_convs",VIDEO_PLAY_ACTION_VT_7_BY_CONVS:"video_play_actions_7d_view_by_convs",VIDEO_PLAY_ACTION_VT_28_BY_CONVS:"video_play_actions_28d_view_by_convs",VIDEO_PLAY_ACTION_INLINE_BY_CONVS:"video_play_actions_inline_by_convs",NON_LIVE_VIDEO_PLAY_ACTION:"non_live_video_play_actions",NON_LIVE_VIDEO_PLAY_ACTION_CT_1:"non_live_video_play_actions_1d_click",NON_LIVE_VIDEO_PLAY_ACTION_CT_7:"non_live_video_play_actions_7d_click",NON_LIVE_VIDEO_PLAY_ACTION_CT_28:"non_live_video_play_actions_28d_click",NON_LIVE_VIDEO_PLAY_ACTION_VT_1:"non_live_video_play_actions_1d_view",NON_LIVE_VIDEO_PLAY_ACTION_VT_7:"non_live_video_play_actions_7d_view",NON_LIVE_VIDEO_PLAY_ACTION_VT_28:"non_live_video_play_actions_28d_view",NON_LIVE_VIDEO_PLAY_ACTION_INLINE:"non_live_video_play_actions_inline",NON_LIVE_VIDEO_PLAY_ACTION_BY_CONVS:"non_live_video_play_actions_by_convs",NON_LIVE_VIDEO_PLAY_ACTION_CT_1_BY_CONVS:"non_live_video_play_actions_1d_click_by_convs",NON_LIVE_VIDEO_PLAY_ACTION_CT_7_BY_CONVS:"non_live_video_play_actions_7d_click_by_convs",NON_LIVE_VIDEO_PLAY_ACTION_CT_28_BY_CONVS:"non_live_video_play_actions_28d_click_by_convs",NON_LIVE_VIDEO_PLAY_ACTION_VT_1_BY_CONVS:"non_live_video_play_actions_1d_view_by_convs",NON_LIVE_VIDEO_PLAY_ACTION_VT_7_BY_CONVS:"non_live_video_play_actions_7d_view_by_convs",NON_LIVE_VIDEO_PLAY_ACTION_VT_28_BY_CONVS:"non_live_video_play_actions_28d_view_by_convs",NON_LIVE_VIDEO_PLAY_ACTION_INLINE_BY_CONVS:"non_live_video_play_actions_inline_by_convs",VIDEO_AVG_TIME_WATCHED_ACTION:"video_avg_time_watched_actions",VIDEO_AVG_TIME_WATCHED_ACTION_CT_1:"video_avg_time_watched_actions_1d_click",VIDEO_AVG_TIME_WATCHED_ACTION_CT_7:"video_avg_time_watched_actions_7d_click",VIDEO_AVG_TIME_WATCHED_ACTION_CT_28:"video_avg_time_watched_actions_28d_click",VIDEO_AVG_TIME_WATCHED_ACTION_VT_1:"video_avg_time_watched_actions_1d_view",VIDEO_AVG_TIME_WATCHED_ACTION_VT_7:"video_avg_time_watched_actions_7d_view",VIDEO_AVG_TIME_WATCHED_ACTION_VT_28:"video_avg_time_watched_actions_28d_view",VIDEO_AVG_TIME_WATCHED_ACTION_INLINE:"video_avg_time_watched_actions_inline",VIDEO_AVG_TIME_WATCHED_ACTION_BY_CONVS:"video_avg_time_watched_actions_by_convs",VIDEO_AVG_TIME_WATCHED_ACTION_CT_1_BY_CONVS:"video_avg_time_watched_actions_1d_click_by_convs",VIDEO_AVG_TIME_WATCHED_ACTION_CT_7_BY_CONVS:"video_avg_time_watched_actions_7d_click_by_convs",VIDEO_AVG_TIME_WATCHED_ACTION_CT_28_BY_CONVS:"video_avg_time_watched_actions_28d_click_by_convs",VIDEO_AVG_TIME_WATCHED_ACTION_VT_1_BY_CONVS:"video_avg_time_watched_actions_1d_view_by_convs",VIDEO_AVG_TIME_WATCHED_ACTION_VT_7_BY_CONVS:"video_avg_time_watched_actions_7d_view_by_convs",VIDEO_AVG_TIME_WATCHED_ACTION_VT_28_BY_CONVS:"video_avg_time_watched_actions_28d_view_by_convs",VIDEO_AVG_TIME_WATCHED_ACTION_INLINE_BY_CONVS:"video_avg_time_watched_actions_inline_by_convs",VIDEO_TIME_WATCHED_ACTION:"video_time_watched_actions",VIDEO_TIME_WATCHED_ACTION_CT_1:"video_time_watched_actions_1d_click",VIDEO_TIME_WATCHED_ACTION_CT_7:"video_time_watched_actions_7d_click",VIDEO_TIME_WATCHED_ACTION_CT_28:"video_time_watched_actions_28d_click",VIDEO_TIME_WATCHED_ACTION_VT_1:"video_time_watched_actions_1d_view",VIDEO_TIME_WATCHED_ACTION_VT_7:"video_time_watched_actions_7d_view",VIDEO_TIME_WATCHED_ACTION_VT_28:"video_time_watched_actions_28d_view",VIDEO_TIME_WATCHED_ACTION_INLINE:"video_time_watched_actions_inline",VIDEO_TIME_WATCHED_ACTION_BY_CONVS:"video_time_watched_actions_by_convs",VIDEO_TIME_WATCHED_ACTION_CT_1_BY_CONVS:"video_time_watched_actions_1d_click_by_convs",VIDEO_TIME_WATCHED_ACTION_CT_7_BY_CONVS:"video_time_watched_actions_7d_click_by_convs",VIDEO_TIME_WATCHED_ACTION_CT_28_BY_CONVS:"video_time_watched_actions_28d_click_by_convs",VIDEO_TIME_WATCHED_ACTION_VT_1_BY_CONVS:"video_time_watched_actions_1d_view_by_convs",VIDEO_TIME_WATCHED_ACTION_VT_7_BY_CONVS:"video_time_watched_actions_7d_view_by_convs",VIDEO_TIME_WATCHED_ACTION_VT_28_BY_CONVS:"video_time_watched_actions_28d_view_by_convs",VIDEO_TIME_WATCHED_ACTION_INLINE_BY_CONVS:"video_time_watched_actions_inline_by_convs",VIDEO_AVG_PERCENT_WATCHED_ACTION:"video_avg_percent_watched_actions",VIDEO_AVG_PERCENT_WATCHED_ACTION_CT_1:"video_avg_percent_watched_actions_1d_click",VIDEO_AVG_PERCENT_WATCHED_ACTION_CT_7:"video_avg_percent_watched_actions_7d_click",VIDEO_AVG_PERCENT_WATCHED_ACTION_CT_28:"video_avg_percent_watched_actions_28d_click",VIDEO_AVG_PERCENT_WATCHED_ACTION_VT_1:"video_avg_percent_watched_actions_1d_view",VIDEO_AVG_PERCENT_WATCHED_ACTION_VT_7:"video_avg_percent_watched_actions_7d_view",VIDEO_AVG_PERCENT_WATCHED_ACTION_VT_28:"video_avg_percent_watched_actions_28d_view",VIDEO_AVG_PERCENT_WATCHED_ACTION_INLINE:"video_avg_percent_watched_actions_inline",VIDEO_AVG_PERCENT_WATCHED_ACTION_BY_CONVS:"video_avg_percent_watched_actions_by_convs",VIDEO_AVG_PERCENT_WATCHED_ACTION_CT_1_BY_CONVS:"video_avg_percent_watched_actions_1d_click_by_convs",VIDEO_AVG_PERCENT_WATCHED_ACTION_CT_7_BY_CONVS:"video_avg_percent_watched_actions_7d_click_by_convs",VIDEO_AVG_PERCENT_WATCHED_ACTION_CT_28_BY_CONVS:"video_avg_percent_watched_actions_28d_click_by_convs",VIDEO_AVG_PERCENT_WATCHED_ACTION_VT_1_BY_CONVS:"video_avg_percent_watched_actions_1d_view_by_convs",VIDEO_AVG_PERCENT_WATCHED_ACTION_VT_7_BY_CONVS:"video_avg_percent_watched_actions_7d_view_by_convs",VIDEO_AVG_PERCENT_WATCHED_ACTION_VT_28_BY_CONVS:"video_avg_percent_watched_actions_28d_view_by_convs",VIDEO_AVG_PERCENT_WATCHED_ACTION_INLINE_BY_CONVS:"video_avg_percent_watched_actions_inline_by_convs",VIDEO_PERCENT_WATCHED_ACTION:"video_percent_watched_actions",VIDEO_PERCENT_WATCHED_ACTION_CT_1:"video_percent_watched_actions_1d_click",VIDEO_PERCENT_WATCHED_ACTION_CT_7:"video_percent_watched_actions_7d_click",VIDEO_PERCENT_WATCHED_ACTION_CT_28:"video_percent_watched_actions_28d_click",VIDEO_PERCENT_WATCHED_ACTION_VT_1:"video_percent_watched_actions_1d_view",VIDEO_PERCENT_WATCHED_ACTION_VT_7:"video_percent_watched_actions_7d_view",VIDEO_PERCENT_WATCHED_ACTION_VT_28:"video_percent_watched_actions_28d_view",VIDEO_PERCENT_WATCHED_ACTION_INLINE:"video_percent_watched_actions_inline",VIDEO_PERCENT_WATCHED_ACTION_BY_CONVS:"video_percent_watched_actions_by_convs",VIDEO_PERCENT_WATCHED_ACTION_CT_1_BY_CONVS:"video_percent_watched_actions_1d_click_by_convs",VIDEO_PERCENT_WATCHED_ACTION_CT_7_BY_CONVS:"video_percent_watched_actions_7d_click_by_convs",VIDEO_PERCENT_WATCHED_ACTION_CT_28_BY_CONVS:"video_percent_watched_actions_28d_click_by_convs",VIDEO_PERCENT_WATCHED_ACTION_VT_1_BY_CONVS:"video_percent_watched_actions_1d_view_by_convs",VIDEO_PERCENT_WATCHED_ACTION_VT_7_BY_CONVS:"video_percent_watched_actions_7d_view_by_convs",VIDEO_PERCENT_WATCHED_ACTION_VT_28_BY_CONVS:"video_percent_watched_actions_28d_view_by_convs",VIDEO_PERCENT_WATCHED_ACTION_INLINE_BY_CONVS:"video_percent_watched_actions_inline_by_convs",ESTIMATED_HOUSEHOLD_COST:"cost_per_household_result",ESTIMATED_HOUSEHOLD_FREQUENCY:"household_frequency",ESTIMATED_HOUSEHOLD_REACH:"household_reach",ESTIMATED_HOUSEHOLD_RESULTS:"household_results",ESTIMATED_HOUSEHOLD_RESULT_RATE:"household_result_rate",ESTIMATED_HOUSEHOLD_COMPOSITION:"household_composition",ESTIMATED_HOUSEHOLD_INCOME:"household_income",HOUSEHOLD_ACTION_CT_1:"household_actions_1d_click",HOUSEHOLD_ACTION_CT_7:"household_actions_7d_click",HOUSEHOLD_ACTION_CT_28:"household_actions_28d_click",HOUSEHOLD_ACTION_VT_1:"household_actions_1d_view",HOUSEHOLD_ACTION_VT_7:"household_actions_7d_view",HOUSEHOLD_ACTION_VT_28:"household_actions_28d_view",HOUSEHOLD_ACTION_INLINE:"household_actions_inline",HOUSEHOLD_ACTION:"household_actions",HOUSEHOLD_ACTION_BY_CONVS:"household_actions_by_convs",HOUSEHOLD_ACTION_CT_1_BY_CONVS:"household_actions_1d_click_by_convs",HOUSEHOLD_ACTION_CT_7_BY_CONVS:"household_actions_7d_click_by_convs",HOUSEHOLD_ACTION_CT_28_BY_CONVS:"household_actions_28d_click_by_convs",HOUSEHOLD_ACTION_VT_1_BY_CONVS:"household_actions_1d_view_by_convs",HOUSEHOLD_ACTION_VT_7_BY_CONVS:"household_actions_7d_view_by_convs",HOUSEHOLD_ACTION_VT_28_BY_CONVS:"household_actions_28d_view_by_convs",HOUSEHOLD_ACTION_INLINE_BY_CONVS:"household_actions_inline_by_convs",DEBUG_STAGE_TRACE:"stage_trace",COMPARISON_NODE:"comparison_node",DATE_CREATED:"created_time",DATE_UPDATED:"updated_time",GENDER_TARGETING:"gender_targeting",AGE_TARGETING:"age_targeting",LOCATION:"location",LABELS:"labels",IMPRESSIONS_INVALID:"impressions_invalid",MRC_IMPRESSIONS:"mrc_impressions",MRC_LEGAL_IMPRESSIONS:"mrc_legal_impressions",HIGH_CPA_SPEND_ALERT:"high_cpa_spend_alert",CONVERSION_WINDOW:"conversion_window",LAST_SIGNIFICANT_EDIT:"last_significant_edit"})}),null);
__d("LoadObjectMap",["immutable","LoadObject","Set"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(i,j){this.$LoadObjectMap1=c("immutable").Map();this.$LoadObjectMap3=i;this.$LoadObjectMap4=j||function(k){return k.isEmpty()};this.$LoadObjectMap5=new(c("Set"))();this.$LoadObjectMap6=null}h.prototype.get=function(i){__p&&__p();var j=this.$LoadObjectMap1.has(i)?this.$LoadObjectMap1.get(i):c("LoadObject").empty();if(!this.$LoadObjectMap5.has(i)&&this.$LoadObjectMap4(j)){this.$LoadObjectMap5.add(i);if(!this.$LoadObjectMap6)this.$LoadObjectMap6=setTimeout(function(){this.$LoadObjectMap3(this.$LoadObjectMap5);this.$LoadObjectMap5=new(c("Set"))();this.$LoadObjectMap6=null}.bind(this),0)}return j};h.prototype.getData=function(){return this.$LoadObjectMap1};h.prototype.getLoadedMap=function(){__p&&__p();if(!this.$LoadObjectMap2){var i=[];for(var j=this.$LoadObjectMap1,k=Array.isArray(j),l=0,j=k?j:j[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var m;if(k){if(l>=j.length)break;m=j[l++]}else{l=j.next();if(l.done)break;m=l.value}var n=m,o=n[0],p=n[1];if(p.hasValue())i.push([o,p.getValueEnforcing()])}this.$LoadObjectMap2=c("immutable").Map(i)}return this.$LoadObjectMap2};h.prototype.set=function(i,j){return this.$LoadObjectMap7(function(){return this.$LoadObjectMap1.set(i,j)}.bind(this))};h.prototype.update=function(i,j){return this.set(i,j(this.get(i)))};h.prototype["delete"]=function(i){return this.$LoadObjectMap7(function(){return this.$LoadObjectMap1["delete"](i)}.bind(this))};h.prototype.merge=function(i){return this.$LoadObjectMap7(function(){return this.$LoadObjectMap1.merge(i)}.bind(this))};h.prototype.$LoadObjectMap7=function(i){var j=i();if(j===this.$LoadObjectMap1)return this;var k=new h(this.$LoadObjectMap3,this.$LoadObjectMap4);k.$LoadObjectMap1=j;return k};f.exports=h}),null);
__d("XLWIInsightsDataController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/lwi/insights/",{breakdown_by_day:{type:"Bool",defaultValue:false},columns:{type:"EnumVector",enumType:{member:1}},duration_in_days:{type:"Int"},granularity:{type:"String"},object_ids:{type:"FBIDVector",required:true},use_previous_time_range:{type:"Bool",defaultValue:false}})}),null);
__d("AdsLWIInsightsUtils",["AdsInsightsField","AdsLWIInsightsDataRecord","AdsLWIInsightsKeyRecord","AdsLWIInsightsType","AdsLWIUpdateInsightsDataDataAction","AdsReportStatsColumnType","AsyncRequest","BoostedComponentInsightsStoreFields","BoostedComponentInsightsTimeRange","DateTime","immutable","LoadObjectMap","XLWIInsightsDataController","idx"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(z,A,B,C){return new(c("AdsLWIInsightsKeyRecord"))({adObjectID:z,granularity:A,insightsType:B,timeRange:C})}function i(){return new(c("AdsLWIInsightsDataRecord"))({action_values:c("immutable").List(),actions:c("immutable").List(),cost_per_action_type:c("immutable").List(),cpm:0,date_start:c("DateTime").now(1).subtractYears(1).getUnixTimestampSeconds(),date_stop:c("DateTime").now(1).getUnixTimestampSeconds(),impressions:0,reach:0,roas:0,spend:0})}function j(z,A){return c("immutable").fromJS(z.map(function(B){return c("immutable").fromJS({value:B.get(A),time:B.date_start})}).filter(function(B){return B}))}function k(z){return function(A,B){return c("immutable").fromJS(A.map(function(C){var D=C.date_start,E=C.get(z),F=E.find(function(G){return G.get("action_type")===B});return E?c("immutable").fromJS({value:F?F.get("value"):0,time:D}):null}).filter(function(C){return C}))}}var l=k("action_values"),m=k("cost_per_action_type"),n=k("actions");function o(z){return function(A,B){var C=A.get(z);if(!C)return 0;var D=C.find(function(E){return E.get("action_type")===B});return D?D.get("value"):0}}var p=o("action_values"),q=o("cost_per_action_type"),r=o("actions");function s(z){if(!z)return null;switch(z){case c("BoostedComponentInsightsTimeRange").TODAY:return 1;case c("BoostedComponentInsightsTimeRange").LAST_7_DAYS:return 7;case c("BoostedComponentInsightsTimeRange").LAST_30_DAYS:return 30}return null}function t(z){__p&&__p();var A=[c("AdsReportStatsColumnType").ACTION,c("AdsReportStatsColumnType").ACTION_TYPE,c("AdsReportStatsColumnType").SPEND,c("AdsReportStatsColumnType").REACH,c("AdsReportStatsColumnType").CLICKS,c("AdsReportStatsColumnType").COST_PER_ACTION_TYPE,c("AdsReportStatsColumnType").CPM,c("AdsReportStatsColumnType").WEBSITE_PURCHASE_ROAS];switch(z){case c("AdsLWIInsightsType").AGE_GENDER_METRICS:A.push(c("AdsReportStatsColumnType").AGE);A.push(c("AdsReportStatsColumnType").GENDER);break;case c("AdsLWIInsightsType").COUNTRY_METRICS:A.push(c("AdsReportStatsColumnType").COUNTRY);break;case c("AdsLWIInsightsType").PLACEMENT_METRICS:A.push(c("AdsReportStatsColumnType").PLACEMENT);break;case c("AdsLWIInsightsType").REGION_METRICS:A.push(c("AdsReportStatsColumnType").REGION_PREDICTION);A.push(c("AdsReportStatsColumnType").REGION_PREDICTION_ID);break}return A}function u(z,A,B,C){var D=t(z),E=v(z===c("AdsLWIInsightsType").DAILY_METRICS,D,A,B,C,z===c("AdsLWIInsightsType").PREVIOUS_METRICS);return new(c("AsyncRequest"))(E).setMethod("POST").exec()}function v(z,A,B,C,D,E){var F=c("XLWIInsightsDataController").getURIBuilder().setFBIDVector("object_ids",C);if(A)F.setEnumVector("columns",A);var G=s(D);if(G)F.setInt("duration_in_days",G);if(B)F.setString("granularity",B);return F.setBool("breakdown_by_day",z).setBool("use_previous_time_range",E).getURI()}function w(z,A,B){var C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T;z=z.merge({action_values:((C=B)!=null?C.action_values:C)||c("immutable").List(),actions:((D=B)!=null?D.actions:D)||c("immutable").List(),cpm:((E=B)!=null?E.cpm:E)||0,cost_per_action_type:((F=B)!=null?F.cost_per_action_type:F)||c("immutable").List(),date_start:((G=B)!=null?G.date_start:G)||0,date_stop:((H=B)!=null?H.date_stop:H)||0,impressions:((I=B)!=null?I.impressions:I)||0,reach:((J=B)!=null?J.reach:J)||0,roas:((K=B)!=null?K.roas:K)||0,spend:((L=B)!=null?L.spend:L)||0});switch(A){case c("AdsLWIInsightsType").OVERALL_METRICS:return z;case c("AdsLWIInsightsType").AGE_GENDER_METRICS:return z.merge({age:(M=B)!=null?M.age:M,gender:(N=B)!=null?N.gender:N});case c("AdsLWIInsightsType").COUNTRY_METRICS:return z.merge({country:(O=B)!=null?O.country:O,country_name:(P=B)!=null?P.country_name:P});case c("AdsLWIInsightsType").PLACEMENT_METRICS:return z.merge({placement:(Q=B)!=null?Q.placement:Q,placement_name:(R=B)!=null?R.placement_name:R});case c("AdsLWIInsightsType").REGION_METRICS:return z.merge({region:(S=B)!=null?S.region:S,region_name:(T=B)!=null?T.region_name:T});default:return z}}function x(z,A){var B=i();return c("immutable").fromJS(A.map(function(C){return w(B,z,C)}))}function y(){return new(c("LoadObjectMap"))(function(z){var A=new Map();z.forEach(function(B){var C=u(B.get("insightsType"),B.get("granularity"),[B.get("adObjectID")],B.get("timeRange"));A.set(B,C.then(function(D){var E=x(B.get("insightsType"),D.payload[B.get("adObjectID")]);c("AdsLWIUpdateInsightsDataDataAction").dispatch({data:E,key:B})}))})})}f.exports={constructLoadObjectMap:y,getColumnsForInsightsType:t,getConversionMetric:r,getConversionMetricValue:p,getCostPerMetric:q,getDailyActionMetric:n,getDailyCostPerActionMetric:m,getDailyActionMetricValue:l,getDailyTopLevelMetric:j,getDefaultInsightsDataRecord:i,getInsightsControllerPromise:u,getInsightsControllerURI:v,getInsightsKey:h,getTimeRangeInDays:s}}),null);
__d("AdsLWIInsightsStore",["AdsDataAtom","AdsLWIInsightsDataRecord","AdsLWIInsightsKeyRecord","AdsLWIInsightsStoreActionHandlers","AdsLWIInsightsUtils","BoostedComponentV2Utils","FluxReduceStore","immutable","LoadObjectMap","createObjectBy"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentV2Utils").logFluxStoreError,k=c("createObjectBy")([].concat(c("AdsLWIInsightsStoreActionHandlers")),function(m){return m.type});h=babelHelpers.inherits(l,c("FluxReduceStore"));i=h&&h.prototype;l.prototype.getInitialState=function(){return c("AdsLWIInsightsUtils").constructLoadObjectMap()};l.prototype.reduce=function(m,n){__p&&__p();var o=n.action;try{var p=k[o.type];if(p){var q=p.genExtraData&&p.genExtraData(o,m);return p.mutate(o,m,q)}return m}catch(r){j(r,"AdsLWIInsightsStore",o.type);return m}};function l(){h.apply(this,arguments)}f.exports=new l(c("AdsDataAtom"))}),null);
__d("adsLWIInsightsSelectors",["AdproObjectiveType","AdsConversionActionTypes","AdsInsightsField","AdsLWIInsightsDataRecord","AdsLWIInsightsStore","AdsLWIInsightsUtils","AdsStoreUtils","BoostedAutomatedAdsInsightsStoreData","BoostedAutomatedAdsInsightsStoreV2","BoostedComponentInsightsStoreFields","immutable","adsCreateSelector","adsCreateStoreSelector","adsLWIAutomatedAdsProgramObjectiveSelectors","adsLWICreateLegacyKeyedStoreDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("adsLWIAutomatedAdsProgramObjectiveSelectors").adsLWIAutomatedAdsProgramObjectiveSelector;function i(E){return E===c("BoostedComponentInsightsStoreFields").IMPRESSIONS||E===c("BoostedComponentInsightsStoreFields").REACH||E===c("BoostedComponentInsightsStoreFields").SPEND||E===c("BoostedComponentInsightsStoreFields").ROAS}function j(E,F){return E.count(function(G,H){return G&&G.get("action_type")===F&&G.get("value")>0})>0}function k(E,F){if(F===c("BoostedComponentInsightsStoreFields").REACH)return E.reach;else if(F===c("BoostedComponentInsightsStoreFields").IMPRESSIONS||F===c("AdsConversionActionTypes").OTHER)return E.impressions;else if(F===c("BoostedComponentInsightsStoreFields").SPEND)return E.spend;else if(F===c("BoostedComponentInsightsStoreFields").ROAS)return E.roas;else return c("AdsLWIInsightsUtils").getConversionMetric(E,F)}var l=c("AdsStoreUtils").toSelector(c("BoostedAutomatedAdsInsightsStoreV2")),m=c("adsCreateStoreSelector")([c("AdsLWIInsightsStore")],function(E){var F=E.key;return c("AdsLWIInsightsStore").getState().get(F)},f.id+".adsLWIInsightsStoreSelector"),n=c("adsLWICreateLegacyKeyedStoreDataSelector")(l,function(E){return new(c("BoostedAutomatedAdsInsightsStoreData"))(E)}),o=c("adsCreateSelector")([n],function(E){return E.getTimeRange()},f.id+".adsLWITimeRangeSelector"),p=c("adsCreateSelector")([m],function(E){var F=E.getValue();return E.hasValue()&&F&&F.first()||c("AdsLWIInsightsUtils").getDefaultInsightsDataRecord()},f.id+".adsLWIInsightsDataSelector"),q=c("adsCreateSelector")([m],function(E){var F=E.getValue();return E.hasValue()&&F||c("immutable").List()},f.id+".adsLWIInsightsListSelector"),r=c("adsCreateSelector")([p,h],function(E,F){__p&&__p();var G,H=(G={},G[c("AdproObjectiveType").WEBSITE_CONVERSIONS]=[c("AdsConversionActionTypes").OFFSITE_CONVERSION_FB_PIXEL_PURCHASE,c("AdsConversionActionTypes").OFFSITE_CONVERSION_FB_PIXEL_ADD_TO_CART,c("AdsConversionActionTypes").OFFSITE_CONVERSION_FB_PIXEL_VIEW_CONTENT],G[c("AdproObjectiveType").LOCAL_AWARENESS]=[c("AdsConversionActionTypes").OTHER],G[c("AdproObjectiveType").REACH]=[c("AdsConversionActionTypes").OTHER],G[c("AdproObjectiveType").LEAD_GENERATION]=[c("AdsConversionActionTypes").LEADGEN],G[c("AdproObjectiveType").LINK_CLICKS]=[c("AdsConversionActionTypes").LINK_CLICK],G),I=H[F];if(!I)return c("AdsConversionActionTypes").LINK_CLICK;var J=E.actions;for(var K=I,L=Array.isArray(K),M=0,K=L?K:K[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var N;if(L){if(M>=K.length)break;N=K[M++]}else{M=K.next();if(M.done)break;N=M.value}var O=N;if(j(J,O))return O}return I[0]},f.id+".adsLWIConversionTypeSelector"),s=c("adsCreateSelector")([p,r],function(E,F){return F===c("AdsConversionActionTypes").OTHER?E.impressions:c("AdsLWIInsightsUtils").getConversionMetric(E,F)},f.id+".adsLWIConversionsSelector"),t=c("adsCreateStoreSelector")([],function(E){var F=E.key,G=E.metric;return{key:F,metric:G}},f.id+".getMetricSelector"),u=c("adsCreateSelector")([t,p],function(E,F){var G=E.key,H=E.metric;return k(F,H)},f.id+".adsLWIMetricSelector"),v=c("adsCreateSelector")([t,p],function(E,F){var G=E.key,H=E.metric;return c("AdsLWIInsightsUtils").getConversionMetricValue(F,H)},f.id+".adsLWIMetricValueSelector"),w=c("adsCreateSelector")([t,p],function(E,F){var G=E.key,H=E.metric;return H===c("AdsConversionActionTypes").OTHER?F.cpm:c("AdsLWIInsightsUtils").getCostPerMetric(F,H)},f.id+".adsLWICostPerActionSelector"),x=c("adsCreateSelector")([t,p],function(E,F){var G=E.key,H=E.metric;return k(F,H)},f.id+".adsLWIMetricPreviousDataSelector"),y=c("adsCreateSelector")([t,p],function(E,F){var G=E.key,H=E.metric;return c("AdsLWIInsightsUtils").getConversionMetricValue(F,H)},f.id+".adsLWIMetricValuePreviousDataSelector"),z=c("adsCreateSelector")([t,q],function(E,F){var G=E.key,H=E.metric;if(H===c("AdsConversionActionTypes").OTHER)return c("AdsLWIInsightsUtils").getDailyTopLevelMetric(F,c("BoostedComponentInsightsStoreFields").IMPRESSIONS);else if(i(H))return c("AdsLWIInsightsUtils").getDailyTopLevelMetric(F,H);else return c("AdsLWIInsightsUtils").getDailyActionMetric(F,H)},f.id+".adsLWIDailyDataSelector"),A=c("adsCreateSelector")([t,q],function(E,F){var G=E.key,H=E.metric;return H===c("BoostedComponentInsightsStoreFields").IMPRESSIONS||H===c("AdsConversionActionTypes").OTHER?c("AdsLWIInsightsUtils").getDailyTopLevelMetric(F,c("AdsInsightsField").CPM):c("AdsLWIInsightsUtils").getDailyCostPerActionMetric(F,H)},f.id+".adsLWIDailyCostPerDataSelector"),B=c("adsCreateSelector")([t,q],function(E,F){var G=E.key,H=E.metric;return c("AdsLWIInsightsUtils").getDailyActionMetricValue(F,H)},f.id+".adsLWIDailyMetricValueDataSelector"),C=c("immutable").List(),D=c("adsCreateSelector")([q],function(E){var F=E.get(0);return F?F.get("actions"):C},f.id+".adsLWIEngagementDataSelector");f.exports={adsLWIConversionsSelector:s,adsLWIConversionTypeSelector:r,adsLWICostPerActionSelector:w,adsLWIDailyCostPerDataSelector:A,adsLWIDailyDataSelector:z,adsLWIDailyMetricValueDataSelector:B,adsLWIEngagementDataSelector:D,adsLWIInsightsDataSelector:p,adsLWIInsightsListSelector:q,adsLWIMetricSelector:u,adsLWIMetricPreviousDataSelector:x,adsLWIMetricValueSelector:v,adsLWIMetricValuePreviousDataSelector:y,adsLWITimeRangeSelector:o,getMetric:k}}),null);
__d("adsLWISelectedAdgroupSelectors",["AdsAPIAdgroupPaths","AdsAPIAdgroupRecord","AdsLWIAdgroupStore","AdsStoreUtils","BoostedComponentQEs","BoostedComponentQEUtils","immutable","LoadObject","adsChooseSelector","adsCreateSelector","adsLWIAdgroupsSelector","adsLWIAdgroupStoreSelectors","adsLWIAutomatedAdsMultiAdgroupSpecStoreDataSelector","adsLWICreativeStoreDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("adsLWIAdgroupStoreSelectors").adsLWIAdgroupStoreSelector,i=c("adsCreateSelector")([c("adsLWIAutomatedAdsMultiAdgroupSpecStoreDataSelector")],function(n){return n.selected_adgroup_index},f.id+".adsLWISelectedAdgroupIndexSelector"),j=c("adsCreateSelector")([c("adsLWIAdgroupsSelector"),i],function(n,o){if(n.isLoading())return c("LoadObject").loading();if(!n.hasValue())return c("LoadObject").empty();var p=n.getValueEnforcing(),q=p.get(String(o));return c("LoadObject").withValue(q)},f.id+".adsLWILegacySelectedAdgroupSelector"),k=c("adsCreateSelector")([c("adsLWICreativeStoreDataSelector"),h],function(n,o){if(!n)return c("LoadObject").empty();var p=o.get(n.selectedAdgroupID);if(!p)return c("LoadObject").empty();return c("LoadObject").withValue(p.adgroupSpec)},f.id+".adsLWINewSelectedAdgroupSelector"),l=c("adsChooseSelector")(function(){return c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").ADS_LWI_MULTI_ADGROUP_CONSOLIDATION).getParamBool("use_new_stores",false)},j,k,f.id+".adsLWISelectedAdgroupSelector"),m=c("adsCreateSelector")([l],function(n){if(n.isLoading()||!n.hasValue())return false;var o=n.getValueEnforcing().getIn(c("AdsAPIAdgroupPaths").ID,null);return!!o},f.id+".adsLWIIsSelectedAdgroupInEditModeSelector");f.exports={adsLWIIsSelectedAdgroupInEditModeSelector:m,adsLWISelectedAdgroupIndexSelector:i,adsLWISelectedAdgroupSelector:l}}),null);
__d("AdsReportGender",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({GENDER_FEMALE:"female",GENDER_MALE:"male",GENDER_UNKNOWN:"unknown"})}),null);
__d("AdsReportStatsAgeBucketType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({BUCKET_13_17:"13-17",BUCKET_18_24:"18-24",BUCKET_25_34:"25-34",BUCKET_35_44:"35-44",BUCKET_45_54:"45-54",BUCKET_55_64:"55-64",BUCKET_65_PLUS:">64",BUCKET_UNKNOWN:"Unknown"})}),null);
__d("AdsLWIInsightsSelectorUtils",["AdsConversionActionTypes","AdsCurrencyFormatter","AdsInsightsCurrencyUtils","AdsLWIInsightsMetricDeltaRecord","AdsReportGender","AdsReportStatsAgeBucketType","AdsSelectorUtils","BoostedComponentInsightsStoreFields","immutable","TimeInterval","adsLWIInsightsSelectors"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("adsLWIInsightsSelectors").adsLWIInsightsDataSelector,i=c("adsLWIInsightsSelectors").adsLWIConversionTypeSelector,j=c("adsLWIInsightsSelectors").adsLWICostPerActionSelector,k=c("adsLWIInsightsSelectors").adsLWIDailyCostPerDataSelector,l=c("adsLWIInsightsSelectors").adsLWIDailyDataSelector,m=c("adsLWIInsightsSelectors").adsLWIInsightsListSelector,n=c("adsLWIInsightsSelectors").adsLWIMetricPreviousDataSelector,o=c("adsLWIInsightsSelectors").adsLWIMetricSelector,p=c("adsLWIInsightsSelectors").adsLWIMetricValueSelector,q=c("adsLWIInsightsSelectors").adsLWIMetricValuePreviousDataSelector;function r(){return c("AdsSelectorUtils").getStores([p,n,o,q,j,k,l,i])}function s(F,G,H,I){var J=I?p:o,K=I?q:n,L=J({key:G,metric:F}),M=K({key:H,metric:F});return new(c("AdsLWIInsightsMetricDeltaRecord"))({value:M,delta:M?L-M:null})}function t(F,G,H){var I=j({key:G,metric:F}),J=j({key:H,metric:F});return new(c("AdsLWIInsightsMetricDeltaRecord"))({value:J,delta:J?I-J:null})}function u(F,G,H){var I=j({key:G,metric:F});return c("AdsCurrencyFormatter").formatCurrencyFullFormat(H,c("AdsInsightsCurrencyUtils").toAPI(H,I))}function v(F,G,H,I){var J=I({key:G,metric:F});return J.map(function(K){return c("immutable").fromJS({value:c("AdsInsightsCurrencyUtils").toAPI(H,K.get("value")),time:K.get("time")})})}function w(F,G,H){return v(F,G,H,k)}function x(F,G){var H=o({key:F,metric:c("BoostedComponentInsightsStoreFields").SPEND});return c("AdsCurrencyFormatter").formatCurrencyFullFormat(G,c("AdsInsightsCurrencyUtils").toAPI(G,H))}function y(F,G){return v(c("BoostedComponentInsightsStoreFields").SPEND,F,G,l)}function z(F){__p&&__p();var G=arguments.length<=1||arguments[1]===undefined?false:arguments[1],H=m({key:F}),I=i({key:F});if(I===c("AdsConversionActionTypes").OTHER||G)I=c("BoostedComponentInsightsStoreFields").REACH;var J={};H.forEach(function(K){var L=K.get("age")||c("AdsReportStatsAgeBucketType").BUCKET_UNKNOWN,M=K.get("gender")||c("AdsReportGender").GENDER_UNKNOWN,N=c("adsLWIInsightsSelectors").getMetric(K,I);if(!Object.prototype.hasOwnProperty.call(J,M))J[M]=c("immutable").Map();var O={};O[L]=N;J[M]=J[M].merge(O)});return c("immutable").fromJS(J)}function A(F,G){if(G==="placement")return F.get("placement_name");else if(G==="region")return F.get("region_name");else return F.get("country_name")}function B(F,G){var H=arguments.length<=2||arguments[2]===undefined?false:arguments[2],I=m({key:F}),J=i({key:F}),K={},L={};if(J===c("AdsConversionActionTypes").OTHER||H)J=c("BoostedComponentInsightsStoreFields").REACH;I.forEach(function(M){var N=M.get(G)||"";K[N]=c("adsLWIInsightsSelectors").getMetric(M,J);L[N]=A(M,G)||""});return c("immutable").fromJS({data:c("immutable").fromJS(K),names:c("immutable").fromJS(L)})}function C(F,G){var H=i({key:G});return c("immutable").fromJS({conversions:o({key:F,metric:H}),reach:o({key:F,metric:c("BoostedComponentInsightsStoreFields").REACH})})}function D(F){var G=c("adsLWIInsightsSelectors").adsLWIEngagementDataSelector({key:F}),H=c("immutable").Map();G&&G.forEach(function(I){var J=I.get("action_type"),K=I.get("value");H=H.set(J,K)});return H}function E(F,G){var H=h({key:F});return c("TimeInterval").create(H.get("date_start"),H.get("date_stop"),G)}f.exports={getAdgroupInsights:C,getAgeGenderMap:z,getCostPerMetric:u,getCostPerMetricDelta:t,getDailyCostPerMetric:w,getDailySpend:y,getDemographicMap:B,getEngagementMap:D,getMetricDelta:s,getSpend:x,getStores:r,getTimeInterval:E}}),null);
__d("getBoostedItemPickerKey",[],(function a(b,c,d,e,f,g){"use strict";function h(i,j){return i+"::"+j}f.exports=h}),null);
__d("XBoostedComponentFetchAudienceDataController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/boosted_components/fetch_audience_data/",{app_id:{type:"FBID",required:true},page_id:{type:"FBID",required:true},ad_account_id:{type:"Int"},target_id:{type:"FBID"},placement:{type:"String",required:true}})}),null);
__d("BoostedAutomatedAdsObjectiveActionsV2",["AdsBoostedComponentAudienceV2LoadAudiencesDataAction","AdsDataAtom","AsyncRequest","BoostedAutomatedAdsObjectiveActionTypesV2","BoostedComponentAppID","immutable","XBoostedComponentFetchAudienceDataController"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=function h(l,m){c("AdsDataAtom").handleUpdateFromViewAction({appID:c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS,boostID:l,packageObjectives:m,type:c("BoostedAutomatedAdsObjectiveActionTypesV2").UPDATE_PACKAGE_OBJECTIVES})},i=function i(l,m,n,o){c("AdsDataAtom").handleUpdateFromViewAction({appID:c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS,boostID:l,objective:m,programCTALink:n,programCTAType:o,type:c("BoostedAutomatedAdsObjectiveActionTypesV2").UPDATE_PROGRAM_CTA_LINK})},j=function j(l,m,n){c("AdsDataAtom").handleUpdateFromViewAction({appID:c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS,boostID:l,programCTAType:n,programObjective:m,type:c("BoostedAutomatedAdsObjectiveActionTypesV2").UPDATE_PROGRAM_OBJECTIVE_AND_CTA_TYPE})},k=function k(l,m,n,o,p){c("AdsDataAtom").handleUpdateFromViewAction({accountID:l,appID:c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS,boostID:m,objective:n,pageID:o,type:c("BoostedAutomatedAdsObjectiveActionTypesV2").UPDATE_AD_ACCOUNT_INFO_AND_RESET_CONVERSIONS_INFO});var q=c("XBoostedComponentFetchAudienceDataController").getURIBuilder().setFBID("app_id",c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS).setFBID("page_id",o).setFBID("target_id",null).setInt("ad_account_id",l).setString("placement",p).getURI();new(c("AsyncRequest"))().setURI(q).setHandler(function(r){c("AdsBoostedComponentAudienceV2LoadAudiencesDataAction").dispatch({accountID:l,boostID:m,appID:c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS,data:r.payload,targetID:null})}).setErrorHandler(function(r){}).send()};f.exports={onUpdatePackageObjectives:h,onUpdateProgramCTALink:i,onUpdateProgramObjectiveAndCTAType:j,onWebsiteConversionsPixelSelection:k}}),null);
__d("BoostedAutomatedAdsV2Spinner.react",["CenteredContainer.react","React","SUIBusinessTheme","SUISpinner.react"],(function a(b,c,d,e,f,g){"use strict";var h=function h(i){return c("React").createElement(c("CenteredContainer.react"),{horizontal:true,style:{height:i.height},vertical:true},c("React").createElement(c("SUISpinner.react"),{background:"light",size:"large",theme:c("SUIBusinessTheme")}))};f.exports=h}),null);
__d("BoostedAutomatedAdsDialogLoadingIndicator.react",["cx","BoostedAutomatedAdsV2Spinner.react","Grid.react","React","SUIBusinessTheme","SUIText.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.render=function(){var l=this.props.extraMessage===null?null:c("React").createElement("div",{className:"_26d3"},c("React").createElement(c("SUIText.react"),{customColorUseSparingly:"white",theme:c("SUIBusinessTheme")},this.props.extraMessage));return c("React").createElement("div",{className:"_1j_6"},c("React").createElement(c("Grid.react"),{className:"_1j_7",cols:1},c("React").createElement(c("Grid.react"),{cols:1},c("React").createElement("div",null,c("React").createElement(c("BoostedAutomatedAdsV2Spinner.react"),{height:40})),c("React").createElement("div",{className:"_26d3"},c("React").createElement(c("SUIText.react"),{customColorUseSparingly:"white",size:"large_DEPRECATED",theme:c("SUIBusinessTheme")},this.props.message)),l)))};function k(){i.apply(this,arguments)}f.exports=k}),null);
__d("BoostedComponentCouponStrings",["fbt","BoostedComponentAppID","BoostedComponentAvailableGK","BoostedComponentQEs","BoostedComponentQEUtils","CustomCallToActionTypes","React","boostedComponentGKCheck"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=c("BoostedComponentAvailableGK").ADS_GROWTH_COUPON_ENROLL_SUCCESS_BANNER_CONTENT,j=c("CustomCallToActionTypes").LABELS,k=c("CustomCallToActionTypes").TYPES,l=75,m={getCommonTitle:function n(o){return h._("Get {Coupon value} off instantly!",[h.param("Coupon value",o)])},getAdsObjectiveCouponTitle:function n(o){return h._("You Have a {Coupon value} Credit!",[h.param("Coupon value",o)])},getSpendXGetYCouponTitle:function n(o){return h._("Get a {Coupon value} Credit",[h.param("Coupon value",o)])},getSpendXGetYCouponWelcomeBody:function n(o){return h._("You'll get a {Coupon value} credit for your next ad when this boosted post ends.",[h.param("Coupon value",o)])},getSpendXGetYCouponClaimWelcomeBody:function n(){return h._("Your credit will be applied to your ad account when you boost this post.")},getFixedPromotionCouponWelcomeBody:function n(o){return h._("Boost this post now and we'll automatically apply a {Coupon value} coupon to help it reach more people.",[h.param("Coupon value",o)])},getBoostedEventResurrectionWelcomeBody:function n(o){return h._("Boost this event. We'll automatically apply a {Coupon value} coupon when you boost it.",[h.param("Coupon value",o)])},getBoostedPostWithAdIntentWelcomeBody:function n(o){return h._("Boost this post now and we'll automatically apply a {Coupon value} coupon to help it reach more people.",[h.param("Coupon value",o)])},getBoostLastPostCouponSuccessBody:function n(o){return h._("It's been about a week since your last boosted post. To help you keep connecting with your customers, we'll apply a {Coupon value to use} coupon to this boosted post.",[h.param("Coupon value to use",o)])},getBoostWebsiteResurrectionWelcomeBody:function n(o){return h._("We'll automatically apply a {Coupon value} coupon to help you get more website visitors.",[h.param("Coupon value",o)])},getCouponAcquisitionWelcomeBody:function n(o){return h._("Boost this post now and we'll automatically apply a {Coupon value} coupon to help it reach more people.",[h.param("Coupon value",o)])},getCouponEnrollmentConfirmNotice:function n(o,p,q){return h._("Spend {spend requirement} in next {days to complete spending} days and we'll invite you to claim your {Coupon value} coupon.",[h.param("spend requirement",p),h.param("days to complete spending",q),h.param("Coupon value",o)])},getCTATitle:function n(o){return h._("Get {Coupon value} off instantly!",[h.param("Coupon value",o)])},getCTASpecificBody:function n(o,p){var q=j[o]?j[o]:"";switch(o){case k.MESSAGE:return h._("We'll automatically apply a {Coupon value} coupon to this promotion to help you get more people to contact your business on Messenger.",[h.param("Coupon value",p)]);case k.CONTACT_US:return h._("We'll automatically apply a {Coupon value} coupon to this promotion to help you get more people to contact your business.",[h.param("Coupon value",p)]);case k.SHOP_NOW:return h._("We'll automatically apply a {Coupon value} coupon to this promotion to help you get more shoppers to your site.",[h.param("Coupon value",p)]);default:return h._("We'll automatically apply a {Coupon value} coupon to help you get more people to click your Page's {CTA Button Label} button.",[h.param("Coupon value",p),h.param("CTA Button Label",q)])}},getCTASpecificBodyForAdsObjectiveCouponWithExpiryInfo:function n(o,p,q){var r=j[o]?j[o]:"";return h._("Your {Coupon value to use} credit will be applied to your ad account when you run a promotion to promote this Page's {CCTA Type} button. {Offer expiry message}",[h.param("Coupon value to use",p),h.param("CCTA Type",r),h.param("Offer expiry message",q)])},getCTASpecificBodyForAdsObjectiveCoupon:function n(o){var p=j[o]?j[o]:"";return h._("Your credit will be applied to your ad account when you purchase this {CCTA Type} button promotion.",[h.param("CCTA Type",p)])},getEveryLWICouponResurrectionWelcomeBody:function n(o,p,q){switch(o){case c("BoostedComponentAppID").BOOSTED_CCTA:return m.getCTASpecificBody(p,q);case c("BoostedComponentAppID").BOOSTED_POST:return h._("To help you reach more people, we'll automatically apply a {Coupon value to use} coupon when you boost this post.",[h.param("Coupon value to use",q)])}return null},getShouldShowHotnessPercentageInBanner:function n(o){if(o>l)return c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_COMPONENT_COUPON_BANNER_HOTNESS_CONTENT).getParamBool("show_hotness_percentage",false);return false},getAdsObjectiveCouponWelcomeBody:function n(o,p,q,r,s){__p&&__p();var t=c("boostedComponentGKCheck")(i);if(t){var u=r?"The offer expires in "+r+" days.":null;switch(o){case c("BoostedComponentAppID").BOOSTED_PAGE:return m.getCTASpecificBodyForAdsObjectiveCouponWithExpiryInfo(p,q,u);case c("BoostedComponentAppID").BOOSTED_POST:var v=m.getShouldShowHotnessPercentageInBanner(s);if(v)return h._("This post is performing better than {percentage}\u0025 of your other recent posts. Your {Coupon value to use} credit will be applied to your ad account when you boost a post on this Page. {Offer expiry message}",[h.param("percentage",s),h.param("Coupon value to use",q),h.param("Offer expiry message",u)]);else return h._("Your {Coupon value to use} credit will be applied to your ad account when you boost a post on this Page. {Offer expiry message}",[h.param("Coupon value to use",q),h.param("Offer expiry message",u)]);case c("BoostedComponentAppID").BOOSTED_WEBSITE:return h._("Your {Coupon value to use} credit will be applied to your ad account when you run a website promotion for this Page. {Offer expiry message}",[h.param("Coupon value to use",q),h.param("Offer expiry message",u)]);case c("BoostedComponentAppID").BOOSTED_LOCAL_AWARENESS:return h._("Your {Coupon value to use} credit will be applied to your ad account when you run a local business promotion for this Page. {Offer expiry message}",[h.param("Coupon value to use",q),h.param("Offer expiry message",u)]);case c("BoostedComponentAppID").BOOSTED_EVENT:return h._("Your {Coupon value to use} credit will be applied to your ad account when you boost an event on this Page. {Offer expiry message}",[h.param("Coupon value to use",q),h.param("Offer expiry message",u)])}}else switch(o){case c("BoostedComponentAppID").BOOSTED_PAGE:return m.getCTASpecificBodyForAdsObjectiveCoupon(p);case c("BoostedComponentAppID").BOOSTED_POST:var v=m.getShouldShowHotnessPercentageInBanner(s);if(v)return h._("This post is performing better than {percentage}\u0025 of your other recent posts. Your credit will be applied to your ad account when you boost this post.",[h.param("percentage",s)]);else return h._("Your credit will be applied to your ad account when you boost this post.");case c("BoostedComponentAppID").BOOSTED_WEBSITE:return h._("Your credit will be applied to your ad account when you purchase this website promotion.");case c("BoostedComponentAppID").BOOSTED_LOCAL_AWARENESS:return h._("Your credit will be applied to your ad account when you purchase this local business promotion.");case c("BoostedComponentAppID").BOOSTED_EVENT:return h._("Your credit will be applied to your ad account when you purchase this event promotion.")}return null},getAd4AdCouponWelcomeBody:function n(o,p,q){switch(o){case c("BoostedComponentAppID").BOOSTED_PAGE:return m.getCTASpecificBody(p,q);case c("BoostedComponentAppID").BOOSTED_POST:return h._("To help you reach more people, we'll automatically apply a {Coupon value to use} coupon when you boost this post.",[h.param("Coupon value to use",q)]);case c("BoostedComponentAppID").BOOSTED_WEBSITE:return h._("We'll automatically apply a {Coupon value} coupon to help you get more website visitors.",[h.param("Coupon value",q)]);case c("BoostedComponentAppID").BOOSTED_LOCAL_AWARENESS:return h._("We'll automatically apply a {Coupon value} coupon to help you reach more people in your local area.",[h.param("Coupon value",q)]);case c("BoostedComponentAppID").BOOSTED_EVENT:return h._("Boost this event. We'll automatically apply a {Coupon value} coupon when you boost it.",[h.param("Coupon value",q)])}return null},getReferralRecipientAcquisitionWelcomeBody:function n(o,p,q){switch(o){case c("BoostedComponentAppID").BOOSTED_PAGE:return m.getCTASpecificBody(p,q);case c("BoostedComponentAppID").BOOSTED_POST:return h._("To help you reach more people, we'll automatically apply a {Coupon value to use} coupon when you boost this post.",[h.param("Coupon value to use",q)]);case c("BoostedComponentAppID").BOOSTED_PAGELIKE:return h._("We'll automatically apply a {Coupon value} coupon to help you get more Page likes.",[h.param("Coupon value",q)]);case c("BoostedComponentAppID").BOOSTED_WEBSITE:return h._("We'll automatically apply a {Coupon value} coupon to help you get more website visitors.",[h.param("Coupon value",q)]);case c("BoostedComponentAppID").BOOSTED_LOCAL_AWARENESS:return h._("We'll automatically apply a {Coupon value} coupon to help you reach more people in your local area.",[h.param("Coupon value",q)]);default:return h._("To help you reach more people, we'll automatically apply a {Coupon value to use} coupon when you place this ad.",[h.param("Coupon value to use",q)])}},getFutureLocationBody:function n(o){return h._("The number of people who marked themselves as going to events near your business location next week increased by {percentage}\u0025. This ad can reach people nearby.",[h.param("percentage",o)])},getGenericTouchpointSelfServeWelcomeBody:function n(o){return h._("We're giving you {Coupon value} off to boost this post now! The value will be automatically applied when you place the promotion.",[h.param("Coupon value",o)])},getHotPostBody:function n(o){return h._("This post is performing better than {percentage}\u0025 of other posts on your Page. {new_line} Boost it to show it to more people.",[h.param("percentage",o),h.param("new_line",c("React").createElement("br",null))])},getHotPostCouponAcquisitionWelcomeBody:function n(o,p){return h._("This post is performing better than {percentage}\u0025 of other posts on this Page. Boost it now and we'll automatically apply a {Coupon value} coupon.",[h.param("percentage",p),h.param("Coupon value",o)])},getHotPostCouponIGClaimedTitle:function n(o){return h._("Use Your {Coupon value} Coupon",[h.param("Coupon value",o)])},getHotPostCouponIGClaimedBody:function n(o){return h._("You still have a {Coupon value} coupon that will be applied automatically when you boost a post. Use it to keep connecting with customers on Instagram and Facebook.",[h.param("Coupon value",o)])},getHotPostCouponIGSuccessTitle:function n(o){return h._("Boost This Post With a {Coupon value} Coupon",[h.param("Coupon value",o)])},getHotPostCouponIGSuccessBody:function n(o){return h._("Boost this post now and we'll apply a {Coupon value} coupon to help you keep connecting with customers on Instagram and Facebook.",[h.param("Coupon value",o)])},getHotPostCouponSuccessTitle:function n(o){return h._("Use Your {Coupon value} Coupon to Boost This Post",[h.param("Coupon value",o)])},getHotPostCouponSuccessBody:function n(o){return h._("Boosting a high-performing post shows it to more people so you can get even higher engagement. Any amount spent beyond your {Coupon value} coupon will be charged to your primary payment method.",[h.param("Coupon value",o)])},getHotPostCouponResurrectionWelcomeBody:function n(o,p){return h._("This post is performing better than {percentage}\u0025 of other posts on your Page. Boost it now to reach more people and we'll automatically apply {Coupon value}.",[h.param("percentage",p),h.param("Coupon value",o)])},getLastBoostPostWasHotCouponResurrectionWelcomeBody:function n(o,p){return h._("Your last boosted post's cost per engagement was better than {percentage}\u0025 of similar ads. Boost this post now and we'll automatically apply a {Coupon value} coupon.",[h.param("percentage",p),h.param("Coupon value",o)])},getAdsCreditExperienceCouponWelcomeBody:function n(o,p){if(p&&o<100)return h._("[FB-Only] External users will receive a $50 credit, but we encourage you to create this ad using this $0.01 employee credit to help us dogfood.");else return h._("Your credit will be automatically applied when you purchase this promotion.")},getAdvertiserGuidedCourseCouponBannerBody:function n(o,p,q){if(q&&o<100)return h._("[FB-Only] External users will receive a $20 credit, but we encourage you to create this ad using this $0.01 employee credit to help us dogfood.");else return h._("Here's a {Coupon value} credit to create your first ad! Great job completing your quizzes.",[h.param("Coupon value",p)])},getYourLocationIsGoingToBeHotSuccessTitle:function n(o){return h._("Your {Coupon value} Credit Will Be Applied",[h.param("Coupon value",o)])},getYourLocationIsGoingToBeHotSuccessBody:function n(o){return h._("{percentage}\u0025 more people said they're attending events near your business soon. Promote your business locally to reach more people and your credit will be automatically applied.",[h.param("percentage",o)])},getYourVideoPostIsHotWelcomeTitle:function n(o){return h._("Your {Coupon value} Credit Will Be Applied to your ad account when you boost this video.",[h.param("Coupon value",o)])},getYourVideoPostIsHotWelcomeBody:function n(o){return h._("This video post is performing better than {percentage}\u0025 of your other recent posts.",[h.param("percentage",o)])},getAppInstallCouponTitle:function n(o){return h._("Claim your {Coupon value} ad coupon.",[h.param("Coupon value",o)])},getAppInstallCouponBody:function n(o){return h._("You have a {Coupon value} ad coupon available. It will be automatically applied to your ad account once you promote your app.",[h.param("Coupon value",o)])},getPromotePageLikeWelcomeTitle:function n(o){return h._("You have a {Coupon value} Credit.",[h.param("Coupon value",o)])},getPromotePageLikeWelcomeBody:function n(){return h._("Your credit Will Be applied to your ad account when you promote this page.")},ALREADY_CLAIMED:h._("A coupon was previously claimed for this ad account and cannot be combined with this offer. This coupon value will not be applied."),COUPON_CLAIM_AFTER_SUCCESS_NOTICE:h._("Your coupon has been applied to this promotion. Any amount spent beyond the coupon will be charged to your primary payment method."),COUPON_FAILURE:h._("Sorry, something went wrong and we weren't able to add your coupon to your account. Your primary payment method will be charged."),DOGFOODING_BANNER_CONTENT:h._("[FB-Only] Create an ad with this coupon!"),DOGFOODING_BANNER_TITLE:h._("[FB-Only] Create an Ad"),FUTURE_LOCATION_TITLE:h._("Create an Ad for Locals and Nearby Visitors"),HOT_POST_PROMOTION_CLAIM_AFTER_SUCCESS_NOTICE:h._("Your coupon has been applied to this boosted post. Any amount spent beyond the coupon will be charged to your primary payment method."),REFERRAL_RECIPIENT_CLAIM_AFTER_SUCCESS_NOTICE:h._("Your coupon has been applied to this promotion. Any amount spent beyond the coupon will be charged to your primary payment method."),HOT_POST_COUPON_CLAIM_AFTER_SUBMIT_FAIL:h._("Sorry, something went wrong and we weren't able to apply the coupon. Your primary payment method will be charged."),HOT_POST_TITLE:h._("Get More Likes, Comments and Shares")};f.exports=m}),null);
__d("BoostedComponentInsightsConstants",["AdsConversionActionTypes","BoostedComponentStrings"],(function a(b,c,d,e,f,g){"use strict";var h={AGE_COLUMNS:["13-17","18-24","25-34","35-44","45-54","55-64","65+"],CHART_COLORS:["blue","teal","purple","orange","maroon","yellow"],GENDER_MALE:"male",GENDER_FEMALE:"female",HORIZONTAL_CHART_BAR_PADDING:28,HORIZONTAL_CHART_TOP_BOTTOM_PADDING:20,HORIZONTAL_CHART_WIDTH:368,VERTICAL_CHART_HEIGHT:200,VERTICAL_CHART_WIDTH:368,ENGAGEMENT_ACTIONS:[c("AdsConversionActionTypes").OFFSITE_CONVERSION_FB_PIXEL_VIEW_CONTENT,c("AdsConversionActionTypes").OFFSITE_CONVERSION_FB_PIXEL_ADD_TO_CART,c("AdsConversionActionTypes").OFFSITE_CONVERSION_FB_PIXEL_PURCHASE,c("AdsConversionActionTypes").ONSITE_CONVERSION_PURCHASE,c("AdsConversionActionTypes").COMMERCE_EVENT_VIEW_CONTENT,c("AdsConversionActionTypes").COMMERCE_EVENT_ADD_TO_CART,c("AdsConversionActionTypes").COMMERCE_EVENT_PURCHASE,c("AdsConversionActionTypes").RSVP,c("AdsConversionActionTypes").VIDEO_VIEW,c("AdsConversionActionTypes").PHOTO_VIEW,c("AdsConversionActionTypes").LINK_CLICK,c("AdsConversionActionTypes").OFFSITE_CONVERSION,c("AdsConversionActionTypes").LIKE,c("AdsConversionActionTypes").POST_LIKE,c("AdsConversionActionTypes").POST_COMMENT,c("AdsConversionActionTypes").POST],ENGAGEMENT_LABELS:[{single:c("BoostedComponentStrings").PRODUCT_VIEW,plural:c("BoostedComponentStrings").PRODUCT_VIEWS},{single:c("BoostedComponentStrings").ADD_TO_CART,plural:c("BoostedComponentStrings").ADDS_TO_CART},{single:c("BoostedComponentStrings").PURCHASE,plural:c("BoostedComponentStrings").PURCHASES},{single:c("BoostedComponentStrings").PURCHASE,plural:c("BoostedComponentStrings").PURCHASES},{single:c("BoostedComponentStrings").PRODUCT_VIEW,plural:c("BoostedComponentStrings").PRODUCT_VIEWS},{single:c("BoostedComponentStrings").ADD_TO_CART,plural:c("BoostedComponentStrings").ADDS_TO_CART},{single:c("BoostedComponentStrings").PURCHASE,plural:c("BoostedComponentStrings").PURCHASES},{single:c("BoostedComponentStrings").EVENT_RESPONSE,plural:c("BoostedComponentStrings").EVENT_RESPONSES},{single:c("BoostedComponentStrings").VIDEO_VIEW,plural:c("BoostedComponentStrings").VIDEO_VIEWS},{single:c("BoostedComponentStrings").PHOTO_CLICK,plural:c("BoostedComponentStrings").PHOTO_CLICKS},{single:c("BoostedComponentStrings").LINK_CLICK,plural:c("BoostedComponentStrings").LINK_CLICKS},{single:c("BoostedComponentStrings").WEBSITE_CONVERSION,plural:c("BoostedComponentStrings").WEBSITE_CONVERSIONS},{single:c("BoostedComponentStrings").PAGE_LIKE,plural:c("BoostedComponentStrings").PAGE_LIKES},{single:c("BoostedComponentStrings").POST_LIKE,plural:c("BoostedComponentStrings").POST_LIKES},{single:c("BoostedComponentStrings").COMMENT,plural:c("BoostedComponentStrings").COMMENTS},{single:c("BoostedComponentStrings").SHARE,plural:c("BoostedComponentStrings").SHARES}]};f.exports=h}),null);
__d("BoostedComponentReachEstimationOptimizationGoalUtils",["AdsAPIObjectives","BoostedComponentAppID"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(i){__p&&__p();switch(i){case c("BoostedComponentAppID").BOOSTED_POST:return c("AdsAPIObjectives").POST_ENGAGEMENT;case c("BoostedComponentAppID").BOOSTED_DYNAMIC_PRODUCTS:return c("AdsAPIObjectives").LINK_CLICKS;case c("BoostedComponentAppID").BOOSTED_EVENT:return c("AdsAPIObjectives").EVENT_RESPONSES;case c("BoostedComponentAppID").BOOSTED_GROUP:return c("AdsAPIObjectives").POST_ENGAGEMENT;case c("BoostedComponentAppID").BOOSTED_APP_INSTALL:return c("AdsAPIObjectives").LINK_CLICKS;case c("BoostedComponentAppID").BOOSTED_PAGELIKE:return c("AdsAPIObjectives").PAGE_LIKES;case c("BoostedComponentAppID").BOOSTED_LOCAL_AWARENESS:return c("AdsAPIObjectives").LOCAL_AWARENESS;case c("BoostedComponentAppID").BOOSTED_WEBSITE:return c("AdsAPIObjectives").LINK_CLICKS;case c("BoostedComponentAppID").BOOSTED_PAGE:return c("AdsAPIObjectives").BRAND_AWARENESS;case c("BoostedComponentAppID").BOOSTED_CCTA:return c("AdsAPIObjectives").CONVERSIONS;default:return c("AdsAPIObjectives").NONE}}f.exports={getOptimizationGoal:h}}),null);
__d("BoostedComponentSimplifiedSummaryBulletPoint.react",["cx","Grid.react","Image.react","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("Grid.react").GridItem;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;l.prototype.render=function(){var m=this.props,n=m.image,o=m.text;return c("React").createElement(c("Grid.react"),{className:"_3bvt",cols:2},c("React").createElement(k,{className:"_3bvr",key:1},c("React").createElement(c("Image.react"),{src:n})),c("React").createElement(k,{key:2},o))};function l(){i.apply(this,arguments)}f.exports=l}),null);
__d("AdTargetSpec",["invariant","AdsTargetingConstants","AdsUtils","BoostedComponentGeoTargetLevel"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();function i(j){this.$AdTargetSpec1=j}i.prototype.getGender=function(){return Object.prototype.hasOwnProperty.call(this.$AdTargetSpec1,"genders")?this.$AdTargetSpec1.genders[0]:c("AdsTargetingConstants").GENDERS.All};i.prototype.getMinAge=function(){this.$AdTargetSpec1.age_min||h(0);return this.$AdTargetSpec1.age_min};i.prototype.getMaxAge=function(){this.$AdTargetSpec1.age_max||h(0);return this.$AdTargetSpec1.age_max};i.prototype.getInterests=function(){return this.$AdTargetSpec1.interests};i.prototype.getPageTypes=function(){return this.$AdTargetSpec1.page_types};i.prototype.getLocations=function(){__p&&__p();if(!this.$AdTargetSpec1.geo_locations)return null;var j=[],k=this.$AdTargetSpec1.geo_locations.cities,l=this.$AdTargetSpec1.geo_locations.regions,m=this.$AdTargetSpec1.geo_locations.countries;if(k&&k.length)for(var n=0;n<k.length;++n){k[n].type=c("BoostedComponentGeoTargetLevel").CITIES;j.push(k[n])}if(l&&l.length)for(n=0;n<l.length;++n){l[n].type=c("BoostedComponentGeoTargetLevel").REGIONS;j.push(l[n])}if(m&&m.length)for(n=0;n<m.length;++n){if(c("AdsUtils").isObject(m[n]))m[n].type=c("BoostedComponentGeoTargetLevel").COUNTRIES;j.push(m[n])}return j};i.prototype.$AdTargetSpec2=function(j){__p&&__p();if(!j||!j.length)return undefined;var k=[];for(var l=0;l<j.length;l++){var m=j[l];if(m.key)k.push(m.key.toString());else k.push(m.toString())}return k.sort()};i.prototype.$AdTargetSpec3=function(j){if(!this.$AdTargetSpec1.geo_locations)return undefined;return this.$AdTargetSpec2(this.$AdTargetSpec1.geo_locations[j])};i.prototype.getCities=function(){return this.$AdTargetSpec3("cities")};i.prototype.getRegions=function(){return this.$AdTargetSpec3("regions")};i.prototype.getCountries=function(){return this.$AdTargetSpec3("countries")};i.prototype.getCountryGroups=function(){return this.$AdTargetSpec3("country_groups")};i.prototype.getZips=function(){return this.$AdTargetSpec3("zips")};i.prototype.getElectoralDistricts=function(){return this.$AdTargetSpec3("electoral_districts")};i.prototype.getPoliticalDistricts=function(){return this.$AdTargetSpec3("political_districts")};i.prototype.getCustomLocation=function(){var j=this.$AdTargetSpec1;return j.geo_locations&&j.geo_locations.custom_locations&&j.geo_locations.custom_locations.length===1&&j.geo_locations.custom_locations[0]||null};i.prototype.getCountryNum=function(){var j=this.getCountries();return!j?0:j.length};i.prototype.getCountryGroupsNum=function(){var j=this.getCountryGroups();return!j?0:j.length};i.prototype.getRegionNum=function(){var j=this.getRegions();return!j?0:j.length};i.prototype.getCityNum=function(){var j=this.getCities();return!j?0:j.length};i.prototype.getZipNum=function(){var j=this.getZips();return!j?0:j.length};i.prototype.getElectoralDistrictNum=function(){var j=this.getElectoralDistricts();return!j?0:j.length};i.prototype.getPoliticalDistrictNum=function(){var j=this.getPoliticalDistricts();return!j?0:j.length};i.prototype.getCustomLocationNum=function(){var j=this.$AdTargetSpec1;if(!j.geo_locations||!j.geo_locations.custom_locations)return 0;return j.geo_locations.custom_locations.filter(function(k){return k.latitude!=null&&k.longitude!=null}).length};i.prototype.getLocationsNum=function(){return this.getCountryGroupsNum()+this.getCountryNum()+this.getCityNum()+this.getRegionNum()+this.getZipNum()+this.getElectoralDistrictNum()+this.getPoliticalDistrictNum()+this.getCustomLocationNum()};f.exports=i}),null);
__d("AdsLWICheckoutPaymentInfoField",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({AMOUNT:"amount",CHARGE_DATE:"charge_date",ID:"id",PAYMENT_METHOD:"payment_method",PAYMENT_TYPE:"payment_type",TIME_UPDATED:"time_updated",TRANSACTION_ID:"transaction_id"})}),null);
__d("BoostedComponentResultsSectionStrings",["cx","fbt","AccountCheckoutPaymentType","AdsCurrencyFormatter","AdsLWICheckoutPaymentInfoField","AdsTargetingConstants","AdsValidationConsts","AdTargetSpec","BoostedComponentAppIDUtils","BoostedComponentRef","BoostedPostAudienceOptions","Date.react","Link.react","React"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j=18,k=65,l=function l(F,G){switch(F){case c("BoostedPostAudienceOptions").FANS:return i._("people who like your Page");case c("BoostedPostAudienceOptions").GROUPER:return i._("people who like your Page and their friends")}switch(G){case c("AdsTargetingConstants").GENDERS.Men:return i._("men");case c("AdsTargetingConstants").GENDERS.Women:return i._("women");default:return i._("men and women")}},m=function m(F,G){return i._("ages {min_age} - {max_age}",[i.param("min_age",F),i.param("max_age",G===c("AdsValidationConsts").maxAge?G+"+":G)])},n=function n(F){return i._({"*":"{number} locations","_1":"1 location"},[i.plural(F,"number")])},o=function o(F){return i._({"*":"{number} interests","_1":"1 interest"},[i.plural(F,"number")])},p=function p(F,G){return c("AdsCurrencyFormatter").formatCurrencyFullFormat(G,F,false,true)},q=function q(F,G){__p&&__p();var H=arguments.length<=2||arguments[2]===undefined?false:arguments[2],I=F.age_min,J=F.age_max;if(!I)F.age_min=j;if(!J)F.age_max=k;var K=new(c("AdTargetSpec"))(F),L=K.getInterests(),M=F.flexible_spec;if(M)L=M[0].interests;var N=L?L.length:0,O=H?i._("targeted"):i._("are targeting");if(N)return i._("You {Tensed Target. e.g. 'are targeting' or 'targeted'} {Targeting gender. e.g. 'men and women'}, {Targeting age range. e.g. 'ages 18-65+'} who live in {Targeting locations. e.g. '3 locations'}, and have {Text of interests targeting. e.g. 'and have 5 interests'}.",[i.param("Tensed Target. e.g. 'are targeting' or 'targeted'",O),i.param("Targeting gender. e.g. 'men and women'",c("React").createElement("strong",null,l(G,K.getGender()))),i.param("Targeting age range. e.g. 'ages 18-65+'",c("React").createElement("strong",null,m(K.getMinAge(),K.getMaxAge()))),i.param("Targeting locations. e.g. '3 locations'",c("React").createElement("strong",null,n(K.getLocationsNum()))),i.param("Text of interests targeting. e.g. 'and have 5 interests'",c("React").createElement("strong",null,o(N)))]);else return i._("You {Tensed Target. e.g. 'are targeting' or 'targeted'} {Targeting gender. e.g. 'men and women'}, {Targeting age range. e.g. 'ages 18-65+'} who live in {Targeting locations. e.g. '3 locations'}.",[i.param("Tensed Target. e.g. 'are targeting' or 'targeted'",O),i.param("Targeting gender. e.g. 'men and women'",c("React").createElement("strong",null,l(G,K.getGender()))),i.param("Targeting age range. e.g. 'ages 18-65+'",c("React").createElement("strong",null,m(K.getMinAge(),K.getMaxAge()))),i.param("Targeting locations. e.g. '3 locations'",c("React").createElement("strong",null,n(K.getLocationsNum())))])},r=function r(F,G){__p&&__p();var H=arguments.length<=2||arguments[2]===undefined?false:arguments[2];if(F)return i._("This promotion will run {text of campaign running continuously}.",[i.param("text of campaign running continuously",c("React").createElement("span",{className:"_34j1"},i._("continuously")))]);var I=G;I=I<0?-I:I;var J=i._({"*":"{number} days","_1":"1 day"},[i.plural(I,"number")]);if(G<0)return i._("This promotion ended {text of campaign length in days} ago.",[i.param("text of campaign length in days",c("React").createElement("span",{className:"_34j1"},J))]);var K=H?i._("ran"):i._("will run");return i._("This promotion {the verb run with the correct tense} for {text of campaign length in days}.",[i.param("the verb run with the correct tense",K),i.param("text of campaign length in days",c("React").createElement("span",{className:"_34j1"},J))])},s=function s(F){__p&&__p();var G=F.find(function(K){return K[c("AdsLWICheckoutPaymentInfoField").PAYMENT_TYPE]===c("AccountCheckoutPaymentType").CHARGE});if(!G)return null;var H=G,I=H[c("AdsLWICheckoutPaymentInfoField").TIME_UPDATED];F.forEach(function(K){var L=K[c("AdsLWICheckoutPaymentInfoField").PAYMENT_TYPE],M=K[c("AdsLWICheckoutPaymentInfoField").TIME_UPDATED];if(L===c("AccountCheckoutPaymentType").CHARGE&&M>I){H=K;I=M}});var J=H?H[c("AdsLWICheckoutPaymentInfoField").PAYMENT_METHOD]:null;if(!J)return null;return i._("You paid with {text of primary payment method}.",[i.param("text of primary payment method",c("React").createElement("span",{className:"_34j1"},J))])},t=function t(F){if(!F)return null;return i._("We sent a receipt to {text of user email}.",[i.param("text of user email",c("React").createElement("span",{className:"_34j1"},F))])},u=function u(F){return i._("Your promotion will run continuously for a monthly budget of {text of monthly budget}.",[i.param("text of monthly budget",c("React").createElement("span",{className:"_34j1"},F))])},v=function v(F,G){var H=arguments.length<=2||arguments[2]===undefined?false:arguments[2];if(G)return i._("Your daily budget for this promotion is {text of daily budget}.",[i.param("text of daily budget",c("React").createElement("span",{className:"_34j1"},F))]);var I=H?i._("was"):i._("is");return i._("Your total budget for this promotion {be verb with the correct tense} {text of total budget}.",[i.param("be verb with the correct tense",I),i.param("text of total budget",c("React").createElement("span",{className:"_34j1"},F))])},w=function w(F,G){return i._("{text of account name}'s {text of primary payment method} will be billed.",[i.param("text of account name",c("React").createElement("span",{className:"_34j1"},F)),i.param("text of primary payment method",c("React").createElement("span",{className:"_34j1"},G))])},x=function x(F,G,H,I,J,K){return i._("You have added {added_budget} to your budget. Your total budget is now {total_budget} and your estimated reach is now {lower_reach_estimate} - {upper_reach_estimate} people. {Add more budget link}",[i.param("added_budget",p(F,G)),i.param("total_budget",p(I,G)),i.param("lower_reach_estimate",H),i.param("upper_reach_estimate",J),i.param("Add more budget link",c("React").createElement(c("Link.react"),{onClick:K},i._("Add more budget")))])},y=function y(F,G,H,I,J){return i._("You have added {added_budget} to your budget. Your new total budget is {total_budget}. Your promotion will end on {date}. {Add more budget link}",[i.param("added_budget",p(F,H)),i.param("total_budget",p(I,H)),i.param("date",c("React").createElement(c("Date.react"),{date:G,format:"M d, Y"})),i.param("Add more budget link",c("React").createElement(c("Link.react"),{onClick:J},i._("Add more budget")))])},z=function z(F,G,H,I,J){return i._("Adding {selected_budget} to your budget will increase your reach to an estimated {lower_reach_estimate} - {upper_reach_estimate} people. Your new total budget will be {total_budget}",[i.param("selected_budget",p(F,G)),i.param("lower_reach_estimate",H),i.param("upper_reach_estimate",J),i.param("total_budget",p(I,G))])},A=i._("You will be billed at a later date. {billing information link}.",[i.param("billing information link",c("React").createElement(c("Link.react"),{href:"/help/716180208457684/",target:"_blank"},i._("Learn More")))]),B=function B(F){return i._("Your promotion will run on Instagram. {Instagram opt out help link}.",[i.param("Instagram opt out help link",c("React").createElement(c("Link.react"),{href:F,target:"_blank"},i._("Learn More")))])},C=function C(F){return i._("Your promotion will also run on Instagram. {Instagram opt out help link}.",[i.param("Instagram opt out help link",c("React").createElement(c("Link.react"),{href:F,target:"_blank"},i._("Learn More")))])},D=function D(F,G,H){if(c("BoostedComponentAppIDUtils").isBoostedActionBasedAppID(F))return i._("Only the person who created this promotion can edit it.");if(H&&G!==c("BoostedComponentRef").INSIGHTS_POST_DIRECT_BOOST)return i._("This post was boosted by your business partner. Only the person who boosted this post can edit the promotion.");if(!H&&G===c("BoostedComponentRef").INSIGHTS_POST_DIRECT_BOOST)return i._("This post was boosted by the post's creator. Only the person who boosted this post can edit the promotion.");return i._("Only the person who boosted this post can edit it.")},E=i._("You've already paid. If you can fix your ad, it'll go live when approved. If not, you'll receive an ad credit for this amount within 24 hours.");f.exports={getDurationText:r,getTargetingText:q,getBudgetText:v,getMonthlyBudgetText:u,getCheckoutEmailReceiptText:t,getCheckoutPaymentText:s,getPaymentText:w,getBudgetAddedText:x,getBudgetAndDurationAddedText:y,getAddBudgetEstimatesText:z,billingText:A,getInstagramOptOutInfo:B,getInstagramSummaryInfo:C,cannotEditNotice:D,checkoutAdRejectionMessage:E}}),null);
__d("BoostedComponentSimplifiedSummaryInstagramOptOutInfoRow.react",["BoostedComponentResultsSectionStrings","BoostedComponentSimplifiedSummaryBulletPoint.react","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentResultsSectionStrings").getInstagramSummaryInfo;h=babelHelpers.inherits(k,c("React").PureComponent);i=h&&h.prototype;k.prototype.render=function(){var l=this.props,m=l.hasUserRemovedInstagramPlacement,n=l.instagramOptOutHelpURI,o=l.isEligibleForInstagramPlacement;if(m||!o)return null;return c("React").createElement(c("BoostedComponentSimplifiedSummaryBulletPoint.react"),{image:"/images/ads/common/confirmation/instagram.png",text:j(n)})};function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("BoostedComponentDialogSubmissionIndicator.react",["cx","BoostedComponentTestElement","Grid.react","LoadingIndicator.react","React","SUIBusinessTheme","SUIText.react"],(function a(b,c,d,e,f,g,h){"use strict";var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.render=function(){return c("React").createElement("div",{className:"_2_we","data-testid":c("BoostedComponentTestElement").DIALOG_LOADING_INDICATOR},c("React").createElement(c("Grid.react"),{className:"_2_wf",cols:1},c("React").createElement(c("Grid.react"),{className:"_2_wg",cols:2},c("React").createElement("div",{className:"_2pia"},c("React").createElement(c("SUIText.react"),{customColorUseSparingly:"white",size:"large_DEPRECATED",theme:c("SUIBusinessTheme"),weight:"bold"},this.props.message)),c("React").createElement("div",{className:"_2pik _2pi3"},c("React").createElement(c("LoadingIndicator.react"),{color:"black",size:"large"})))))};function k(){i.apply(this,arguments)}f.exports=k}),null);
__d("BoostedComponentDialogSubmissionLoadingIndicator.react",["BoostedAutomatedAdsDialogLoadingIndicator.react","BoostedComponentDialogSubmissionIndicator.react","BoostedComponentStrings","React"],(function a(b,c,d,e,f,g){"use strict";var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;j.prototype.render=function(){return this.props.useNewIndicator?c("React").createElement(c("BoostedAutomatedAdsDialogLoadingIndicator.react"),{extraMessage:this.props.extraMessage,message:c("BoostedComponentStrings").getSubmissionIndicatorString(this.props.actionType)}):c("React").createElement(c("BoostedComponentDialogSubmissionIndicator.react"),{message:c("BoostedComponentStrings").getSubmissionIndicatorString(this.props.actionType)})};function j(){h.apply(this,arguments)}f.exports=j}),null);
__d("BoostedComponentSubmissionOverlay.react",["BoostedComponentActionToClientEventUtils","BoostedComponentDialogSubmissionLoadingIndicator.react","React"],(function a(b,c,d,e,f,g){"use strict";var h=function h(i){var j=i.isSubmitting,k=i.submitAction;if(j&&k){var l=c("BoostedComponentActionToClientEventUtils").getClientEventFromAction(k);return c("React").createElement(c("BoostedComponentDialogSubmissionLoadingIndicator.react"),{actionType:l})}return null};f.exports=h}),null);
__d("BoostedComponentSimplifiedFooterStrings",["fbt","BoostedComponentCreationStep"],(function a(b,c,d,e,f,g,h){"use strict";var i={LANDING_STEP_FOOTER:h._("Set Goal"),CREATIVE_STEP_FOOTER:h._("Create Ad"),FORM_STEP_FOOTER:h._("Create Form"),TARGETING_STEP_FOOTER:h._("Set Audience"),SUMMARY_STEP_FOOTER:h._("Choose Budget"),BACK:h._("Back"),NEXT:h._("Next"),PROMOTE:h._("Promote"),CLOSE:h._("Close"),getPrimaryButtonText:function j(k){switch(k){case c("BoostedComponentCreationStep").LANDING:case c("BoostedComponentCreationStep").CREATIVE:case c("BoostedComponentCreationStep").FORM:case c("BoostedComponentCreationStep").TARGETING:return i.NEXT;case c("BoostedComponentCreationStep").SUMMARY:return i.PROMOTE;default:return""}}};f.exports=i}),null);
__d("BoostedComponentSimplifiedUtils",["AdproObjectiveType","BoostedAutomatedAdsStrings","BoostedComponentAppID","BoostedComponentAvailableGK","BoostedComponentCreationStep","BoostedComponentQEs","BoostedComponentQEUtils","BoostedComponentV2Utils","boostedComponentGKCheck"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("BoostedComponentV2Utils").getTitleFromAppID,i=c("BoostedComponentAvailableGK").BOOSTED_COMPONENT_SIMPLIFIED,j=[c("BoostedComponentCreationStep").LANDING,c("BoostedComponentCreationStep").CREATIVE,c("BoostedComponentCreationStep").TARGETING,c("BoostedComponentCreationStep").SUMMARY,c("BoostedComponentCreationStep").CONFIRMATION],k=[c("BoostedComponentCreationStep").LANDING,c("BoostedComponentCreationStep").TARGETING,c("BoostedComponentCreationStep").CREATIVE,c("BoostedComponentCreationStep").SUMMARY,c("BoostedComponentCreationStep").CONFIRMATION],l=[c("BoostedComponentCreationStep").LANDING,c("BoostedComponentCreationStep").FORM,c("BoostedComponentCreationStep").CREATIVE,c("BoostedComponentCreationStep").TARGETING,c("BoostedComponentCreationStep").SUMMARY,c("BoostedComponentCreationStep").CONFIRMATION],m=[c("BoostedComponentCreationStep").TARGETING,c("BoostedComponentCreationStep").CREATIVE,c("BoostedComponentCreationStep").SUMMARY,c("BoostedComponentCreationStep").CONFIRMATION],n=[c("BoostedComponentCreationStep").CREATIVE,c("BoostedComponentCreationStep").TARGETING,c("BoostedComponentCreationStep").SUMMARY,c("BoostedComponentCreationStep").CONFIRMATION],o=function o(u,v,w){if(u===c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS&&w===c("AdproObjectiveType").LEAD_GENERATION&&v>=l.length||u===c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS&&w!==c("AdproObjectiveType").LEAD_GENERATION&&v>=j.length||u!==c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS&&v>=n.length)return c("BoostedComponentCreationStep").OBJECTIVE;switch(u){case c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS:switch(w){case c("AdproObjectiveType").REACH:return k[v];case c("AdproObjectiveType").LEAD_GENERATION:return l[v];default:return j[v]}case c("BoostedComponentAppID").BOOSTED_LOCAL_AWARENESS:return m[v];default:return n[v]}},p=function p(u){switch(u){case c("BoostedComponentAppID").BOOSTED_PAGELIKE:case c("BoostedComponentAppID").BOOSTED_CCTA:case c("BoostedComponentAppID").BOOSTED_WEBSITE:case c("BoostedComponentAppID").BOOSTED_PAGE:case c("BoostedComponentAppID").BOOSTED_LOCAL_AWARENESS:case c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS:return q();default:return false}},q=function q(){var u=c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_AUTOMATED_ADS_V2).getParamBool("v2_launch",false,true),v=c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_COMPONENT_SIMPLIFIED).getParamBool("show_stepper_flow",false,true);return u&&v},r=function r(u,v){var w=arguments.length<=2||arguments[2]===undefined?null:arguments[2];switch(u){case c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS:return c("BoostedAutomatedAdsStrings").CREATE_DIALOG_TITLE;default:return h(u,false,false,v,w)}},s=function s(){var u=c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_AUTOMATED_ADS_V2).getParamBool("v2_launch",false,true);if(c("boostedComponentGKCheck")(i)&&u)c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_COMPONENT_SIMPLIFIED).logExposure()},t=function t(u){switch(u){case c("BoostedComponentAppID").BOOSTED_PAGELIKE:case c("BoostedComponentAppID").BOOSTED_CCTA:case c("BoostedComponentAppID").BOOSTED_WEBSITE:case c("BoostedComponentAppID").BOOSTED_PAGE:case c("BoostedComponentAppID").BOOSTED_LOCAL_AWARENESS:return c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_COMPONENT_MONTHLY_BUDGET_UNIVERSE).getParamBool("show_monthly_budget",false);default:return false}};f.exports={getCreationStep:o,getDialogTitle:r,logSimplifiedExperimentExposure:s,shouldShowStepperFlow:p,shouldShowStepperFlowFromConsolidatedEntryPoints:q,shouldShowMonthlyBudget:t}}),null);
__d("BoostedPostMultipleBoostsActionTypes",["keyMirrorRecursive"],(function a(b,c,d,e,f,g){"use strict";var h=c("keyMirrorRecursive")({HIDE_SEE_ALL_BOOSTS_DIALOG:"",INIT_STORE:"",SHOW_SEE_ALL_BOOSTS_DIALOG:""},"BoostedPostMultipleBoosts");f.exports=h}),null);
__d("BoostedPostPickerActionTypes",["keyMirrorRecursive"],(function a(b,c,d,e,f,g){"use strict";var h=c("keyMirrorRecursive")({FETCH_INITIAL_POSTS:"",FETCH_MORE_POSTS:"",FETCH_MULTIPLE_BOOST_POSTS:"",LOAD_INITIAL_POSTS:"",LOAD_MORE_POSTS:"",LOAD_MULTIPLE_BOOST_POSTS:""},"BoostedPostPicker");f.exports=h}),null);
__d("AdsBoostedComponentAdPreviewV2PreviewAdLoadFailureDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"BoostedComponentAdPreview.PREVIEW_AD_LOAD_FAILURE");f.exports=h}),null);
__d("BoostedComponentAdPreviewActionsV2",["AdsBoostedComponentAdPreviewV2PreviewAdLoadFailureDataAction","AdsBoostedComponentAdPreviewV2PreviewAdLoadStartDataAction","AdsBoostedComponentAdPreviewV2PreviewAdLoadSuccessDataAction","AdsBoostedComponentAdPreviewV2ToggleInstagramPlacementDataAction","AdsDataAtom","AdsPreviewApiFormats","BoostedComponentAdPreviewActionTypesV2","adsLWICurrentDialogStateSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=function h(n,o,p,q){__p&&__p();var r=undefined;switch(n){case c("AdsPreviewApiFormats").DESKTOP_FEED_STANDARD:r=c("BoostedComponentAdPreviewActionTypesV2").ON_PREVIEW_AD_ON_DESKTOP_CLICK;break;case c("AdsPreviewApiFormats").MOBILE_FEED_STANDARD:r=c("BoostedComponentAdPreviewActionTypesV2").ON_PREVIEW_AD_ON_MOBILE_CLICK;break;case c("AdsPreviewApiFormats").INSTAGRAM_STANDARD:r=c("BoostedComponentAdPreviewActionTypesV2").ON_PREVIEW_AD_ON_INSTAGRAM_CLICK;break;case c("AdsPreviewApiFormats").AUDIENCE_NETWORK_INSTREAM_VIDEO:r=c("BoostedComponentAdPreviewActionTypesV2").PREVIEW_AD_ON_AUDIENCE_NETWORK_INSTREAM_VIDEO;break;case c("AdsPreviewApiFormats").MOBILE_INTERSTITIAL:r=c("BoostedComponentAdPreviewActionTypesV2").PREVIEW_AD_ON_MOBILE_INTERSTITIAL;break;case c("AdsPreviewApiFormats").MOBILE_NATIVE:r=c("BoostedComponentAdPreviewActionTypesV2").PREVIEW_AD_ON_MOBILE_NATIVE;break;default:return}c("AdsDataAtom").handleUpdateFromViewAction({type:r,appID:o,targetID:p,boostID:q})},i=function i(n,o,p,q,r){__p&&__p();var s=undefined;switch(n){case c("AdsPreviewApiFormats").DESKTOP_FEED_STANDARD:s=c("BoostedComponentAdPreviewActionTypesV2").PREVIEW_AD_ON_DESKTOP_FEED;break;case c("AdsPreviewApiFormats").MOBILE_FEED_STANDARD:s=c("BoostedComponentAdPreviewActionTypesV2").PREVIEW_AD_ON_MOBILE_FEED;break;case c("AdsPreviewApiFormats").RIGHT_COLUMN_STANDARD:s=c("BoostedComponentAdPreviewActionTypesV2").PREVIEW_AD_ON_RHC;break;case c("AdsPreviewApiFormats").INSTAGRAM_STANDARD:s=c("BoostedComponentAdPreviewActionTypesV2").PREVIEW_AD_ON_INSTAGRAM;break;case c("AdsPreviewApiFormats").AUDIENCE_NETWORK_INSTREAM_VIDEO:s=c("BoostedComponentAdPreviewActionTypesV2").PREVIEW_AD_ON_AUDIENCE_NETWORK_INSTREAM_VIDEO;break;case c("AdsPreviewApiFormats").MOBILE_INTERSTITIAL:s=c("BoostedComponentAdPreviewActionTypesV2").PREVIEW_AD_ON_MOBILE_INTERSTITIAL;break;case c("AdsPreviewApiFormats").MOBILE_NATIVE:s=c("BoostedComponentAdPreviewActionTypesV2").PREVIEW_AD_ON_MOBILE_NATIVE;break;default:return}c("AdsDataAtom").handleUpdateFromViewAction({type:s,ineligibleMessage:o,appID:p,targetID:q,boostID:r})},j=function j(n,o,p){c("AdsBoostedComponentAdPreviewV2ToggleInstagramPlacementDataAction").dispatch({appID:n,targetID:o,boostID:p})},k=function k(n,o,p,q){if(c("adsLWICurrentDialogStateSelector")().shown)c("AdsBoostedComponentAdPreviewV2PreviewAdLoadStartDataAction").dispatch({appID:n,targetID:o,boostID:p,instanceID:q})},l=function l(n,o,p,q){if(c("adsLWICurrentDialogStateSelector")().shown)c("AdsBoostedComponentAdPreviewV2PreviewAdLoadSuccessDataAction").dispatch({appID:n,targetID:o,boostID:p,instanceID:q})},m=function m(n,o,p,q){if(c("adsLWICurrentDialogStateSelector")().shown)c("AdsBoostedComponentAdPreviewV2PreviewAdLoadFailureDataAction").dispatch({appID:n,targetID:o,boostID:p,instanceID:q})};f.exports={onPreviewLinkClick:h,onAdFormatSelect:i,onToggleInstagramPlacement:j,loadPreviewStart:k,loadPreviewSuccess:l,loadPreviewFailure:m}}),null);
__d("BoostedComponentAdsReviewAPIActionsV2",["AdsDataAtom","BoostedComponentAdsReviewAPIActionTypesV2"],(function a(b,c,d,e,f,g){"use strict";var h=function h(k,l,m,n,o,p){if(p)c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedComponentAdsReviewAPIActionTypesV2").AD_REVIEW_API_REQUEST_COMPLETE,data:k,isCacheHit:l,appID:m,targetID:n,boostID:o,instanceID:p})},i=function i(k,l,m,n,o,p,q){if(q)c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentAdsReviewAPIActionTypesV2").INTEGRITY_BANNER_SHOWN,adAccountID:n,cmsIDs:o,policies:p,appID:k,targetID:l,boostID:m})},j=function j(k,l,m,n,o,p,q){if(q)c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentAdsReviewAPIActionTypesV2").TEXT_INTEGRITY_BANNER_SHOWN,adAccountID:n,cmsIDs:o,policies:p,appID:k,targetID:l,boostID:m})};f.exports={logIntegrityBannerShown:i,logTextIntegrityBannerShown:j,updateReviewFeedbackResults:h}}),null);
__d("AdsBoostedComponentAudienceV2AudienceChangeDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"BoostedComponentAudience.AUDIENCE_CHANGE");f.exports=h}),null);
__d("AdsBoostedComponentAudienceV2GetAudienceSelectionRatingErrorDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"BoostedComponentAudience.GET_AUDIENCE_SELECTION_RATING_ERROR");f.exports=h}),null);
__d("AdsBoostedComponentAudienceV2ResetSelectedCustomAudienceListDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"BoostedComponentAudience.RESET_SELECTED_CUSTOM_AUDIENCE_LIST");f.exports=h}),null);
__d("BoostedComponentGraphAPI",["GraphAPI"],(function a(b,c,d,e,f,g){"use strict";var h=function h(){return"2.10"},i=function i(){return c("GraphAPI")(h())},j=function j(){return"v"+h()};f.exports={get:i,getPageletAPIVersion:j}}),null);
__d("XBoostedComponentAudienceSelectionRatingController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/boosted_components/audience_selection_rating/",{app_id:{type:"Enum",required:true,enumType:0},ad_account_id:{type:"Int",required:true},page_id:{type:"FBID",required:true},page_types:{type:"StringSet",required:true},remove_instagram:{type:"Bool",defaultValue:false},specs:{type:"String",required:true},show_suggestions:{type:"Bool",defaultValue:false},audience_type:{type:"String"}})}),null);
__d("BoostedComponentAudienceActionsV2",["Promise","AdsBoostedComponentAudienceV2AudienceChangeDataAction","AdsBoostedComponentAudienceV2AudienceManagerCloseDataAction","AdsBoostedComponentAudienceV2AudienceManagerOpenDataAction","AdsBoostedComponentAudienceV2CreateAudienceSubmitDataAction","AdsBoostedComponentAudienceV2CreateAudienceSuccessDataAction","AdsBoostedComponentAudienceV2DeleteAudienceSubmitDataAction","AdsBoostedComponentAudienceV2DeleteAudienceSuccessDataAction","AdsBoostedComponentAudienceV2EditAudienceSubmitDataAction","AdsBoostedComponentAudienceV2EditAudienceSuccessDataAction","AdsBoostedComponentAudienceV2EditJobAudienceDataAction","AdsBoostedComponentAudienceV2FetchAudiencesDataAction","AdsBoostedComponentAudienceV2GetAudienceSelectionRatingErrorDataAction","AdsBoostedComponentAudienceV2LoadAudiencesDataAction","AdsBoostedComponentAudienceV2ResetSelectedCustomAudienceListDataAction","AdsBoostedComponentAudienceV2SetAnPlacementEnabledDataAction","AdsBoostedComponentAudienceV2SetAudienceDataAction","AdsBoostedComponentAudienceV2SetCustomAudiencesDataAction","AdsBoostedComponentAudienceV2SetIgPlacementRemovedDataAction","AdsBoostedComponentAudienceV2SetRenderedDataAction","AdsBoostedComponentAudienceV2SetVisitorTargetingDataAction","AdsBoostedComponentAudienceV2ToggleSeeAllDataAction","AdsBoostedComponentAudienceV2UpdateInterestsDataAction","AdsBoostedComponentAudienceV2UpdateTargetSpecDataAction","AdsDataAtom","AsyncRequest","BoostedComponentAudienceActionTypesV2","BoostedComponentClientEvent","BoostedComponentCommonActionsV2","BoostedComponentGraphAPI","XBoostedComponentAudienceSelectionRatingController","XBoostedComponentFetchAudienceDataController"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=function h(j,k,l,m,n,o){if(l==="0")l=null;return new(c("Promise"))(function(p,q){var r=c("XBoostedComponentFetchAudienceDataController").getURIBuilder().setFBID("app_id",j).setFBID("page_id",k).setFBID("target_id",o?l:null).setInt("ad_account_id",n).setString("placement",m).getURI();new(c("AsyncRequest"))().setURI(r).setHandler(function(s){return p(s.payload)}).setErrorHandler(function(s){return q(s)}).send()})},i={fetchAudiences:function j(k,l,m,n,o,p,q){c("AdsBoostedComponentAudienceV2FetchAudiencesDataAction").dispatch({appID:k,targetID:m,boostID:p});h(k,l,m,n,o,q).done(function(r){c("AdsBoostedComponentAudienceV2LoadAudiencesDataAction").dispatch({accountID:o,data:r,appID:k,targetID:m,boostID:p})},function(r){})},createAudience:function j(k,l,m,n,o,p,q,r,s,t){c("AdsBoostedComponentAudienceV2CreateAudienceSubmitDataAction").dispatch({appID:k,targetID:m,boostID:t});var u="";c("BoostedComponentGraphAPI").get().adaccount(o).edge("saved_audiences").post({access_token:q,name:r,targeting:s}).then(function(v){u=String(v.id);return h(k,l,m,n,o,p)}).then(function(v){c("AdsBoostedComponentAudienceV2CreateAudienceSuccessDataAction").dispatch({data:v,newAudienceID:u,appID:k,targetID:m,boostID:t})})["catch"](function(v){}).done()},editAudience:function j(k,l,m,n,o,p,q){c("AdsBoostedComponentAudienceV2EditAudienceSubmitDataAction").dispatch({appID:k,targetID:l,boostID:q});if(m==="0")c("AdsBoostedComponentAudienceV2EditAudienceSuccessDataAction").dispatch({targetingSpec:p,appID:k,targetID:l,boostID:q});else c("BoostedComponentGraphAPI").get().object("saved_audience",m).post({access_token:n,name:o,targeting:p}).done(function(r){c("AdsBoostedComponentAudienceV2EditAudienceSuccessDataAction").dispatch({targetingSpec:p,audienceName:o,appID:k,targetID:l,boostID:q})},function(r){})},logAudienceChange:function j(k,l,m,n){c("AdsBoostedComponentAudienceV2AudienceChangeDataAction").dispatch({targetingSpec:m,appID:k,targetID:l,boostID:n})},editJobAudience:function j(k,l,m,n){c("AdsBoostedComponentAudienceV2EditJobAudienceDataAction").dispatch({jobTargetingSpec:k,appID:l,targetID:m,boostID:n})},deleteAudience:function j(k,l,m,n,o){c("AdsBoostedComponentAudienceV2DeleteAudienceSubmitDataAction").dispatch({appID:m,targetID:n,boostID:o});c("BoostedComponentGraphAPI").get().object("saved_audience",k).remove({access_token:l}).done(function(p){c("AdsBoostedComponentAudienceV2DeleteAudienceSuccessDataAction").dispatch({appID:m,targetID:n,boostID:o})},function(p){})},setAudience:function j(k,l,m,n){c("AdsBoostedComponentAudienceV2SetAudienceDataAction").dispatch({audienceKey:k,appID:l,targetID:m,boostID:n})},toggleSeeAll:function j(k,l,m){c("AdsBoostedComponentAudienceV2ToggleSeeAllDataAction").dispatch({appID:k,targetID:l,boostID:m})},openAudienceManager:function j(k,l,m,n){c("AdsBoostedComponentAudienceV2AudienceManagerOpenDataAction").dispatch({editMode:k,appID:l,targetID:m,boostID:n})},closeAudienceManager:function j(k,l,m){c("AdsBoostedComponentAudienceV2AudienceManagerCloseDataAction").dispatch({appID:k,targetID:l,boostID:m})},setRendered:function j(k,l,m){c("AdsBoostedComponentAudienceV2SetRenderedDataAction").dispatch({appID:k,targetID:l,boostID:m})},setAudienceNetworkPlacementEnabled:function j(k,l,m,n){c("AdsBoostedComponentAudienceV2SetAnPlacementEnabledDataAction").dispatch({enabled:k,appID:l,targetID:m,boostID:n})},setInstagramPlacementRemoved:function j(k,l,m,n){c("AdsBoostedComponentAudienceV2SetIgPlacementRemovedDataAction").dispatch({removed:k,appID:l,targetID:m,boostID:n})},setVisitorTargetingSelected:function j(k,l,m,n){c("AdsBoostedComponentAudienceV2SetVisitorTargetingDataAction").dispatch({selected:k,appID:l,targetID:m,boostID:n})},updateTargetSpec:function j(k,l,m,n,o,p){c("AdsBoostedComponentAudienceV2UpdateTargetSpecDataAction").dispatch({newTargetSpec:m,appID:k,targetID:p,boostID:l});c("BoostedComponentCommonActionsV2").fetchDialogChangeData(c("BoostedComponentClientEvent").UPDATE_TARGETING,o,null,k,p,l,"",n)},updateInterests:function j(k,l,m,n){c("AdsBoostedComponentAudienceV2UpdateInterestsDataAction").dispatch({appID:l,targetID:m,boostID:n,interests:k})},calculateAudienceSelectionRating:function j(k){var l=k.appID,m=k.pageID,n=k.accountID,o=k.targetingSpec,p=k.audienceType,q=k.pageTypes,r=k.forceInstagramRemoval;return new(c("Promise"))(function(s,t){var u=c("XBoostedComponentAudienceSelectionRatingController").getURIBuilder().setEnum("app_id",l).setFBID("page_id",m).setString("specs",JSON.stringify(o)).setInt("ad_account_id",n).setStringSet("page_types",q).setBool("remove_instagram",r);if(p)u.setString("audience_type",p);new(c("AsyncRequest"))().setURI(u.getURI()).setHandler(function(v){return s(v.payload)}).setErrorHandler(function(v){return t(v)}).send()})},getAudienceSelectionRating:function j(k){this.calculateAudienceSelectionRating(k).done(function(l){var m=l?c("BoostedComponentAudienceActionTypesV2").GET_AUDIENCE_SELECTION_RATING_SUCCESS:c("AdsBoostedComponentAudienceV2GetAudienceSelectionRatingErrorDataAction").actionType;c("AdsDataAtom").handleUpdateFromServerResponse({type:m,params:k,data:l})},function(l){c("AdsBoostedComponentAudienceV2GetAudienceSelectionRatingErrorDataAction").dispatch({params:k,error:l})})},setCustomAudiences:function j(k,l,m,n,o){c("AdsBoostedComponentAudienceV2SetCustomAudiencesDataAction").dispatch({appID:k,targetID:l,boostID:m,selected:n,audienceID:o})},resetSelectedCustomAudienceList:function j(k,l,m){c("AdsBoostedComponentAudienceV2ResetSelectedCustomAudienceListDataAction").dispatch({appID:k,boostID:l,targetID:m})}};f.exports=i}),null);
__d("AdsBoostedComponentBillingDateInitDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"ADS_BOOSTED_COMPONENT_BILLING_DATE_INIT");f.exports=h}),null);
__d("AdsBoostedComponentBillingDateLoadedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"ADS_BOOSTED_COMPONENT_BILLING_DATE_LOADED");f.exports=h}),null);
__d("BoostedComponentBillingDateDataLoader",["AdsAPIAdAccountFields","AdsGraphAPI","GraphAPIFieldUtils"],(function a(b,c,d,e,f,g){"use strict";var h=["day_of_month","id","next_bill_date","time_created","time_effective"],i={loadBillingDate:function j(k){return c("AdsGraphAPI").get(f.id).adaccount(k).get({fields:[c("GraphAPIFieldUtils").getFieldWithSubfields(c("AdsAPIAdAccountFields").ACTIVE_BILLING_DATE_PREFERENCE,h),c("AdsAPIAdAccountFields").ADSPAYMENTCYCLE,c("AdsAPIAdAccountFields").CAPABILITIES,c("AdsAPIAdAccountFields").NEXT_BILL_DATE,c("GraphAPIFieldUtils").getFieldWithSubfields(c("AdsAPIAdAccountFields").PENDING_BILLING_DATE_PREFERENCE,h)]})}};f.exports=i}),null);
__d("BoostedComponentBillingDateActions",["AdsAccountCapabilities","AdsAccountUtils","AdsBoostedComponentBillingDateInitDataAction","AdsBoostedComponentBillingDateLoadedDataAction","BoostedComponentBillingDateDataLoader","first"],(function a(b,c,d,e,f,g){"use strict";var h={initBillingDate:function i(j){c("AdsBoostedComponentBillingDateInitDataAction").dispatch({});c("BoostedComponentBillingDateDataLoader").loadBillingDate(j).done(function(k){c("AdsBoostedComponentBillingDateLoadedDataAction").dispatch({activeBillingDatePreference:k.active_billing_date_preference,canChangeBillingDatePreference:c("AdsAccountUtils").hasCapabilityFromList(k.capabilities,c("AdsAccountCapabilities").CAN_CHANGE_PREFERRED_BILLING_DAY),nextBillDate:k.next_bill_date,paymentCycle:k.adspaymentcycle!=null?c("first")(k.adspaymentcycle.data):null,pendingBillingDatePreference:k.pending_billing_date_preference})},function(k){})}};f.exports=h}),null);
__d("BoostedComponentBrandedContentServerActionsV2",["Promise","ActorURI","AdsBoostedComponentCommonV2CreateClickDataAction","AdsBoostedComponentCommonV2CreateFailDataAction","AsyncRequest","BoostedComponentCommonActionsV2","ReactComposerActions","ReactComposerStatusStore","ShareDialogAudienceTypes","XShareDialogSubmitController"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=function h(j,k,l,m,n,o,p,q){var r=c("ReactComposerStatusStore").getMessage(m)||"";i(k,l,n,p,q,r).then(function(s){c("ReactComposerActions").postSucceeded(m);c("BoostedComponentCommonActionsV2").createClickForBrandedContent(k,n,o,p,s,l,j)}).done()},i=function i(j,k,l,m,n,o){__p&&__p();return new(c("Promise"))(function(p,q){__p&&__p();c("AdsBoostedComponentCommonV2CreateClickDataAction").dispatch({appID:j,targetID:m,boostID:k});var r=c("XShareDialogSubmitController").getURIBuilder().setInt("post_id",m).setInt("share_type",n).setString("message",o).setString("audience_type",c("ShareDialogAudienceTypes").PAGE).setBool("is_forced_reshare_of_post",true).setIntVector("audience_targets",[l]).setInt("branded_content_repost_root",m).getURI();r=c("ActorURI").create(r,l);new(c("AsyncRequest"))().setURI(r).setMethod("POST").setReadOnly(true).setAllowCrossPageTransition(true).setHandler(function(s){var t=s.payload;if(t&&t.object_id)p(String(t.object_id));else{c("AdsBoostedComponentCommonV2CreateFailDataAction").dispatch({appID:j,targetID:m,boostID:k});q(new Error("Unable to reshare post"))}}).send()})};f.exports={shareAndBoostPost:h}}),null);
__d("BoostedComponentBudgetAndDurationActionsV2",["AdsDataAtom","BoostedComponentBudgetAndDurationActionTypesV2","BoostedComponentClientEvent","BoostedComponentCommonActionsV2"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h={updateBudget:function i(j,k,l,m){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentBudgetAndDurationActionTypesV2").UPDATE_BUDGET,budget:j,appID:k,targetID:l,boostID:m})},updateAddBudget:function i(j,k,l,m){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentBudgetAndDurationActionTypesV2").UPDATE_ADD_BUDGET,budget:j,appID:k,targetID:l,boostID:m})},updateAddDuration:function i(j,k,l,m){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentBudgetAndDurationActionTypesV2").UPDATE_ADD_DURATION,duration:j,appID:k,targetID:l,boostID:m})},updateAddBudgetAndDurationSelection:function i(j,k,l,m){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentBudgetAndDurationActionTypesV2").UPDATE_ADD_BUDGET_AND_DURATION_SELECTION,selection:j,appID:k,targetID:l,boostID:m})},inputCustomBudget:function i(j,k,l,m){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentBudgetAndDurationActionTypesV2").INPUT_CUSTOM_BUDGET,budget:j,appID:k,targetID:l,boostID:m})},inputCustomAddBudget:function i(j,k,l,m){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentBudgetAndDurationActionTypesV2").INPUT_CUSTOM_ADD_BUDGET,budget:j,appID:k,targetID:l,boostID:m})},updateCampaignLengthInDays:function i(j,k,l,m){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentBudgetAndDurationActionTypesV2").UPDATE_CAMPAIGN_LENGTH_IN_DAYS,days:j,appID:k,targetID:l,boostID:m})},updateRunContinuously:function i(j,k,l,m){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentBudgetAndDurationActionTypesV2").UPDATE_RUN_CONTINUOUSLY,runContinuously:j,appID:k,targetID:l,boostID:m})},addMoreBudget:function i(j,k,l){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentBudgetAndDurationActionTypesV2").ADD_MORE_BUDGET_CLICK,appID:j,targetID:k,boostID:l})},inputCustomMonthlyBudget:function i(j,k,l,m,n,o){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentBudgetAndDurationActionTypesV2").INPUT_CUSTOM_MONTHLY_BUDGET,appID:j,boostID:k,dailyBudget:l,monthlyBudget:m});c("BoostedComponentCommonActionsV2").fetchDialogChangeData(c("BoostedComponentClientEvent").INPUT_CUSTOM_MONTHLY_BUDGET,n,null,j,null,k,"",o)},updateMonthlyBudget:function i(j,k,l,m,n,o){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentBudgetAndDurationActionTypesV2").UPDATE_MONTHLY_BUDGET,appID:j,boostID:k,dailyBudget:l,monthlyBudget:m});c("BoostedComponentCommonActionsV2").fetchDialogChangeData(c("BoostedComponentClientEvent").UPDATE_MONTHLY_BUDGET,n,null,j,null,k,"",o)},showBudgetOptions:function i(j,k){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentBudgetAndDurationActionTypesV2").SHOW_BUDGET_OPTIONS,appID:j,boostID:k})},updateExperimentationOption:function i(j,k,l,m){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentBudgetAndDurationActionTypesV2").UPDATE_EXPERIMENTATION_OPTION,isChecked:j,appID:k,targetID:l,boostID:m})}};f.exports=h}),null);
__d("XBoostedComponentCouponPromotionDataController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/boosted_components/fetch_coupon_data/",{app_id:{type:"Int",required:true},is_boosted:{type:"Bool",defaultValue:false},target_id:{type:"Int"},page_id:{type:"Int",required:true},coupon_offer:{type:"Int"},ad_account_id:{type:"Int"},placement:{type:"String"}})}),null);
__d("BoostedComponentCouponPromotionActionsV2",["AdsDataAtom","AsyncRequest","BoostedComponentCouponPromotionActionTypesV2","XBoostedComponentCouponPromotionDataController","BoostedComponentCouponPromotionStoreV2"],(function a(b,c,d,e,f,g){"use strict";f.exports={fetchCouponPromotionData:function h(i,j,k,l,m,n,o){var p=c("XBoostedComponentCouponPromotionDataController").getURIBuilder().setInt("app_id",i).setInt("target_id",l).setBool("is_boosted",j).setInt("page_id",k).setInt("coupon_offer",m).setInt("ad_account_id",n).setString("placement",o),q=p.getURI();new(c("AsyncRequest"))(q).setHandler(function(r){c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedComponentCouponPromotionActionTypesV2").LOAD_COUPON_PROMOTION_DATA,data:r.payload,appID:i,targetID:l})}).setErrorHandler(function(r){}).send()},loadCouponOffer:function h(i,j,k,l){c("AdsDataAtom").explicitlyRegisterStore(c("BoostedComponentCouponPromotionStoreV2"));c("AdsDataAtom").handleUpdateFromInitialServer({type:c("BoostedComponentCouponPromotionActionTypesV2").LOAD_COUPON_OFFER,couponOffer:l,appID:String(i),targetID:j,boostID:k})},loadEligibleCouponOffer:function h(i){c("AdsDataAtom").explicitlyRegisterStore(c("BoostedComponentCouponPromotionStoreV2"));c("AdsDataAtom").handleUpdateFromInitialServer({type:c("BoostedComponentCouponPromotionActionTypesV2").LOAD_COUPON_OFFER,couponOffer:i.couponOffer,appID:String(i.appID),targetID:i.targetID})}}}),null);
__d("AdsLeadGenDownloadDialogUIActionTypes",["keyMirrorRecursive"],(function a(b,c,d,e,f,g){"use strict";var h=c("keyMirrorRecursive")({DIALOG_OPEN:"",DIALOG_OPEN_DATE_PICKER:"",DIALOG_OPEN_SELECTOR:"",DIALOG_OPEN_PREPARE:"",DIALOG_OPEN_RESULT:"",DIALOG_CLOSE:"",DIALOG_MOUNTED:"",DIALOG_DATE_CHANGED:"",DIALOG_LEADS_COUNT_DOWNLOADED:"",DIALOG_METADATA_DOWNLOADED:"",DIALOG_BACK_FROM_RESULT:"",DOWNLOAD_STARTED:"",DOWNLOAD_ASYNC_PROGRESS:"",DOWNLOAD_ASYNC_COMPLETED:""},"AdsLeadGenUI");f.exports=h}),null);
__d("AdsLeadGenDownloadDialogUiDialogBackFromResultDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"AdsLeadGenUI.DIALOG_BACK_FROM_RESULT");f.exports=h}),null);
__d("AdsLeadGenDownloadDialogUiDialogCloseDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"AdsLeadGenUI.DIALOG_CLOSE");f.exports=h}),null);
__d("AdsLeadGenDownloadDialogUiDialogDateChangedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"AdsLeadGenUI.DIALOG_DATE_CHANGED");f.exports=h}),null);
__d("AdsLeadGenDownloadDialogUiDialogMountedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"AdsLeadGenUI.DIALOG_MOUNTED");f.exports=h}),null);
__d("AdsLeadGenDownloadDialogUiDialogOpenDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"AdsLeadGenUI.DIALOG_OPEN");f.exports=h}),null);
__d("AdsLeadGenDownloadDialogUiDialogOpenDatePickerDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"AdsLeadGenUI.DIALOG_OPEN_DATE_PICKER");f.exports=h}),null);
__d("AdsLeadGenDownloadDialogUiDialogOpenSelectorDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"AdsLeadGenUI.DIALOG_OPEN_SELECTOR");f.exports=h}),null);
__d("AdsLeadGenDownloadDialogUiDownloadStartedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"AdsLeadGenUI.DOWNLOAD_STARTED");f.exports=h}),null);
__d("AdsLeadGenDownloadDialogUIActions",["AdsDataAtom","AdsLeadGenDownloadDialogUIActionTypes","AdsLeadGenDownloadDialogUiDialogBackFromResultDataAction","AdsLeadGenDownloadDialogUiDialogCloseDataAction","AdsLeadGenDownloadDialogUiDialogDateChangedDataAction","AdsLeadGenDownloadDialogUiDialogMountedDataAction","AdsLeadGenDownloadDialogUiDialogOpenDataAction","AdsLeadGenDownloadDialogUiDialogOpenDatePickerDataAction","AdsLeadGenDownloadDialogUiDialogOpenSelectorDataAction","AdsLeadGenDownloadDialogUiDownloadStartedDataAction","Bootloader","LeadGenAsyncDownloadConfig"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(j){c("Bootloader").loadModules(["AdsLeadGenDownloadDialogUIStore","AdsLeadGenDownloadDialogLoggerStore"],j,"AdsLeadGenDownloadDialogUIActions")}var i={openDialog:function j(k,l,m,n,o){h(function(){c("AdsLeadGenDownloadDialogUiDialogOpenDataAction").dispatch({createdTime:k,exportObjectID:l,exportType:m,exportObjectName:n,sourceType:o})})},closeDialog:function j(){h(function(){c("AdsLeadGenDownloadDialogUiDialogCloseDataAction").dispatch({})})},dialogMounted:function j(k,l,m,n,o,p){h(function(){c("AdsLeadGenDownloadDialogUiDialogMountedDataAction").dispatch({exportObjectID:k,exportObjectName:l,exportType:m,sourceType:n,pageID:p,isAsync:i._isAsyncDownload(o)})})},download:function j(k,l,m,n,o,p){h(function(){c("AdsLeadGenDownloadDialogUiDownloadStartedDataAction").dispatch({exportObjectID:k,exportType:l,startDate:m,endDate:n,fileType:p,isAsync:i._isAsyncDownload(o)})})},prepare:function j(k,l,m,n,o,p,q){h(function(){var r=null,s=false;if(i._isAsyncDownload(p)){r=c("AdsLeadGenDownloadDialogUIActionTypes").DIALOG_OPEN_PREPARE;s=true}else r=c("AdsLeadGenDownloadDialogUIActionTypes").DIALOG_OPEN_RESULT;c("AdsDataAtom").handleUpdateFromViewAction({exportObjectID:k,exportType:l,downloadNewLeads:m,startDate:n,endDate:o,type:r,isAsync:s,previousDialogState:q})})},_isAsyncDownload:function j(k){return k>c("LeadGenAsyncDownloadConfig").async_after&&c("LeadGenAsyncDownloadConfig").enabled},dateRangeChanged:function j(k,l){h(function(){c("AdsLeadGenDownloadDialogUiDialogDateChangedDataAction").dispatch({startDate:k,endDate:l})})},openDatePickerDialog:function j(){h(function(){c("AdsLeadGenDownloadDialogUiDialogOpenDatePickerDataAction").dispatch({})})},openSelectorDialog:function j(){h(function(){c("AdsLeadGenDownloadDialogUiDialogOpenSelectorDataAction").dispatch({})})},backButtonPressedFromResultDialog:function j(){h(function(){c("AdsLeadGenDownloadDialogUiDialogBackFromResultDataAction").dispatch({})})}};f.exports=i}),null);
__d("LeadGenExportSource",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({ADS_MANAGER:"ads_manager",GRAPH_API:"graph_api",ADS_MANAGER_LINK_SECTION:"ads_manager_link_section",LEAD_MANAGER:"lead_manager",LWI:"lwi",PAGE_PUBLISHING_TOOLS:"page_publishing_tools",POWER_EDITOR_LINK_SECTION:"power_editor_link_section",POWER_EDITOR_INSIGHTS:"power_editor_insights",AUTOMATED_ADS:"automated_ads"})}),null);
__d("LeadGenLeadsExportType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({AD:"ad",ADGROUP:"adgroup",FORM:"form",REPORT_RUN:"report_run"})}),null);
__d("XBoostedComponentFetchLeadGenDataController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/boosted_components/fetch_lead_gen_data/",{lead_gen_data_id:{type:"FBID",required:true},page_id:{type:"FBID",required:true}})}),null);
__d("BoostedComponentLeadGenActionsV2",["invariant","AdsAPILeadGenDataFields","AdsBoostedComponentLeadGenV2FetchFormDataDataAction","AdsBoostedComponentLeadGenV2FetchLeadGenDataDataAction","AdsBoostedComponentLeadGenV2LeadGenTosDialogCloseDataAction","AdsBoostedComponentLeadGenV2LeadGenTosDialogOpenDataAction","AdsBoostedComponentLeadGenV2LoadFormDataDataAction","AdsBoostedComponentLeadGenV2LoadLeadGenDataDataAction","AdsGraphAPI","AdsLeadGenDownloadDialogUIActions","AsyncRequest","AsyncResponse","BoostedComponentAppID","DateConsts","LeadGenExportSource","LeadGenLeadsExportType","XBoostedComponentFetchLeadGenDataController","parseISODate"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i={fetchLeadGenData:function j(k,l,m,n){m!==""||h(0);c("AdsBoostedComponentLeadGenV2FetchLeadGenDataDataAction").dispatch({appID:k,boostID:l});var o=c("XBoostedComponentFetchLeadGenDataController").getURIBuilder().setFBID("lead_gen_data_id",m).setFBID("page_id",n).getURI();new(c("AsyncRequest"))().setURI(o).setHandler(function(p){c("AdsBoostedComponentLeadGenV2LoadLeadGenDataDataAction").dispatch({appID:k,boostID:l,data:p.payload})}).setErrorHandler(function(p){c("AsyncResponse").defaultErrorHandler(p)}).send()},fetchFormData:function j(k,l,m){c("AdsBoostedComponentLeadGenV2FetchFormDataDataAction").dispatch({appID:k,boostID:l});c("AdsGraphAPI").get(f.id).object("leadgen_form",m).batched().get({fields:[c("AdsAPILeadGenDataFields").CREATED_TIME,c("AdsAPILeadGenDataFields").NAME]}).done(function(n){var o=c("parseISODate")(n.created_time).getTime()/c("DateConsts").MS_PER_SEC;c("AdsBoostedComponentLeadGenV2LoadFormDataDataAction").dispatch({data:{createdTime:o,formName:n.name},appID:k,boostID:l});if(k===c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS||k===c("BoostedComponentAppID").BOOSTED_LEAD_GEN)i.prepareDownloadDialogData(k,o,m,n.name)})},openLeadGenTOSDialog:function j(k,l,m){c("AdsBoostedComponentLeadGenV2LeadGenTosDialogOpenDataAction").dispatch({appID:k,targetID:l,boostID:m})},closeLeadGenTOSDialog:function j(k,l,m){c("AdsBoostedComponentLeadGenV2LeadGenTosDialogCloseDataAction").dispatch({appID:k,targetID:l,boostID:m})},prepareDownloadDialogData:function j(k,l,m,n){var o=k===c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS?c("LeadGenExportSource").AUTOMATED_ADS:c("LeadGenExportSource").LWI;c("AdsLeadGenDownloadDialogUIActions").openDialog(l,m,c("LeadGenLeadsExportType").FORM,n,o)}};f.exports=i}),null);
__d("AdsBoostedComponentPixelV2PixelLoadErrorDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"BoostedComponentPixel.PIXEL_LOAD_ERROR");f.exports=h}),null);
__d("BoostedComponentPixelActionsV2",["AdsBoostedComponentPixelV2DefaultPixelLoadedDataAction","AdsBoostedComponentPixelV2PixelCreatedDataAction","AdsBoostedComponentPixelV2PixelLoadedDataAction","AdsBoostedComponentPixelV2PixelLoadErrorDataAction","AdsBoostedComponentPixelV2ResetPixelSelectionDataAction","AdsBoostedComponentPixelV2SelectPixelDataAction","AdsBoostedComponentPixelV2StartLoadDefaultPixelDataAction","AdsBoostedComponentPixelV2StartLoadPixelDataAction","AdsDataAtom","AdsGraphAPI","AsyncRequest","BoostedComponentPixelActionTypesV2","PixelTrackingEnum","XAdsDefaultPixelController"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=["creation_time","id","last_fired_time","name"],i={fetchPixels:function j(k,l,m,n,o){c("AdsBoostedComponentPixelV2StartLoadPixelDataAction").dispatch({});c("AdsGraphAPI").get(f.id).adaccount(k).edge("adspixels").batched().get({fields:h}).done(function(p){c("AdsBoostedComponentPixelV2PixelLoadedDataAction").dispatch({data:p,appID:l,boostID:m,targetID:n,instanceID:o})},function(p){c("AdsBoostedComponentPixelV2PixelLoadErrorDataAction").dispatch({error:p,appID:l,boostID:m,targetID:n,instanceID:o})})},selectPixel:function j(k,l,m,n){c("AdsBoostedComponentPixelV2SelectPixelDataAction").dispatch({data:{selectedSources:k},appID:l,boostID:m,targetID:n})},resetPixelSelection:function j(k,l,m){c("AdsBoostedComponentPixelV2ResetPixelSelectionDataAction").dispatch({appID:k,boostID:l,targetID:m})},loadDefaultTrackingPixel:function j(k,l,m,n,o){c("AdsBoostedComponentPixelV2StartLoadDefaultPixelDataAction").dispatch({});var p=c("XAdsDefaultPixelController").getURIBuilder().setInt("account_id",k).setStringVector("domains",[c("PixelTrackingEnum").NO_URL]).getURI();new(c("AsyncRequest"))().setURI(p).setHandler(function(q){c("AdsBoostedComponentPixelV2DefaultPixelLoadedDataAction").dispatch({appID:l,boostID:m,data:q.payload,targetID:n,instanceID:o})}).send()},pixelCreated:function j(k,l,m,n){c("AdsBoostedComponentPixelV2PixelCreatedDataAction").dispatch({appID:l,boostID:m,data:k,targetID:n})},toggleCreatePixelCheckbox:function j(k,l,m,n){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentPixelActionTypesV2").TOGGLE_CREATE_PIXEL_CHECKBOX,value:k,appID:l,boostID:n,targetID:m})}};f.exports=i}),null);
__d("AdsBoostedComponentSurveyAndFeedbackV2SaveSurveyFeedbackDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"BoostedComponentSurveyAndFeedback.SAVE_SURVEY_FEEDBACK");f.exports=h}),null);
__d("XBoostedComponentStarRatingController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/boosted_components/insight_survey/star_rating/",{app_id:{type:"String",required:true},page_id:{type:"String",required:true},boost_id:{type:"String"},target_id:{type:"String"},star_rating:{type:"Int",required:true},feedback_message:{type:"String"}})}),null);
__d("BoostedComponentSurveyAndFeedbackActionsV2",["AdsBoostedComponentSurveyAndFeedbackV2SaveSurveyFeedbackDataAction","AsyncRequest","XBoostedComponentStarRatingController"],(function a(b,c,d,e,f,g){"use strict";var h={surveyAndFeedbackSubmit:function i(j,k,l,m,n,o){c("AdsBoostedComponentSurveyAndFeedbackV2SaveSurveyFeedbackDataAction").dispatch({appID:j,targetID:m});var p=c("XBoostedComponentStarRatingController").getURIBuilder().setString("page_id",k).setString("app_id",j).setString("boost_id",l).setString("target_id",m).setInt("star_rating",n).setString("feedback_message",o).getURI();new(c("AsyncRequest"))(p).setMethod("POST").send()}};f.exports=h}),null);
__d("XPagePostPhotoSwapController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/photo_swap/",{post_id:{type:"FBID",required:true},page_id:{type:"FBID",required:true}})}),null);
__d("XPagePostPhotoSwapPersistenceController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/boosted_components/dialog/photo_swap/",{})}),null);
__d("XPagePostPhotoSwapWithURIController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/boosted_components/dialog/photo_swap_with_uri/",{post_id:{type:"FBID",required:true},page_id:{type:"FBID",required:true},new_photo_uri:{type:"String",required:true}})}),null);
__d("BoostedComponentTextPenaltyActionsV2",["Promise","AdsBoostedComponentCommonV2CreateFailDataAction","AdsDataAtom","AsyncRequest","BoostedComponentCommonActionsV2","BoostedComponentCommonActionTypesV2","BoostedComponentSpecUtils","BoostedComponentSubmissionAction","BoostedComponentTextPenaltyActionTypesV2","BoostedComponentTrackingUtils","FileInputUploader","XPagePostPhotoSwapController","XPagePostPhotoSwapPersistenceController","XPagePostPhotoSwapWithURIController","getByPath","uuid"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=function h(l,m,n,o,p){__p&&__p();var q=c("getByPath")(p,["files","0"]);if(!q)return;c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentTextPenaltyActionTypesV2").START_UPLOAD_NEW_PAGE_POST_PHOTO,appID:l,targetID:m,boostID:n});var r=c("XPagePostPhotoSwapController").getURIBuilder().setFBID("post_id",m).setFBID("page_id",o).getURI(),s=new(c("FileInputUploader"))(p).setURI(r).setFiles({file:q});s.subscribe("success",function(t,u){var v=u.response.getPayload(),r=v.uri,w=v.fbid,x=v.text_penalty;c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedComponentTextPenaltyActionTypesV2").FINISH_SUCCESS_UPLOAD_NEW_PAGE_POST_PHOTO,appID:l,targetID:m,boostID:n,uri:r,fbid:w,text_penalty:x})});s.subscribe("failure",function(t,u){c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedComponentTextPenaltyActionTypesV2").FINISH_FAILURE_UPLOAD_NEW_PAGE_POST_PHOTO,appID:l,targetID:m,boostID:n})});s.send()},i=function i(l,m,n,o,p){return new(c("Promise"))(function(q,r){new(c("AsyncRequest"))().setURI(c("XPagePostPhotoSwapPersistenceController").getURIBuilder().getURI()).setHandler(function(s){q(true)}).setErrorHandler(function(s){r(s)}).setData({feed_context:l,new_photo_id:m,page_id:n,placement:o,post_id:p}).send()})},j=function j(l,m,n,o,p,q,r,s,t,u){var v=c("BoostedComponentCommonActionTypesV2").CREATE_CLICK;c("AdsDataAtom").handleUpdateFromViewAction({type:v,appID:m,targetID:p,boostID:q});var w=c("uuid")(),x=c("BoostedComponentTrackingUtils").getFlowID(m,p,q);i(s,l,n,o,p).then(function(y){var z=c("BoostedComponentSpecUtils").getSpecsJSON(m,p,q);c("BoostedComponentCommonActionsV2").boostedComponentValidatePaymentSubmit(v,r,m,n,o,p,z,q,c("BoostedComponentCommonActionsV2")._createSubmit,null,null,t,u)},function(y){var z=c("BoostedComponentSpecUtils").getSpecsJSON(m,p,q);c("BoostedComponentCommonActionsV2").handleErrorOnSubmit(m,q,y,w,x,n,o,c("BoostedComponentSubmissionAction").CREATE,c("AdsBoostedComponentCommonV2CreateFailDataAction").actionType,p,z)}).done()},k=function k(l,m,n,o,p){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentTextPenaltyActionTypesV2").START_UPLOAD_NEW_PAGE_POST_PHOTO,appID:m,targetID:o,boostID:p});var q=c("XPagePostPhotoSwapWithURIController").getURIBuilder().setFBID("post_id",o).setFBID("page_id",n).setString("new_photo_uri",l).getURI();new(c("AsyncRequest"))().setURI(q).setHandler(function(r){var s=r.getPayload(),q=s.uri,t=s.fbid,u=s.text_penalty;c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedComponentTextPenaltyActionTypesV2").FINISH_SUCCESS_UPLOAD_NEW_PAGE_POST_PHOTO,appID:m,targetID:o,boostID:p,uri:q,fbid:t,text_penalty:u})}).setErrorHandler(function(r){c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedComponentTextPenaltyActionTypesV2").FINISH_FAILURE_UPLOAD_NEW_PAGE_POST_PHOTO,appID:m,targetID:o,boostID:p})}).send()};f.exports={swapPhotoAndCreateClick:j,uploadNewPagePostPhotoWithURI:k,uploadNewPagePostPhoto:h}}),null);
__d("XBoostedPostMultipleBoostsDataController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/boosted_components/multiple_boosts/",{page_id:{type:"FBID",required:true},target_id:{type:"FBID",required:true},placement:{type:"String",required:true}})}),null);
__d("XBoostedPostPickerDataController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/boosted_post/fetch_boosted_post_picker_data/",{app_id:{type:"FBID",required:true},page_id:{type:"FBID",required:true},placement:{type:"String"},cursor:{type:"String"}})}),null);
__d("BoostedPostPickerActions",["regeneratorRuntime","AdsDataAtom","AsyncRequest","BoostedComponentAppID","BoostedPostPickerActionTypes","XBoostedPostMultipleBoostsDataController","XBoostedPostPickerDataController"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(k,l,m){__p&&__p();var n,o,p,q,r,s;return c("regeneratorRuntime").async(function t(u){__p&&__p();while(1)switch(u.prev=u.next){case 0:c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedPostPickerActionTypes").FETCH_INITIAL_POSTS,appID:l,pageID:k});n=c("XBoostedPostPickerDataController").getURIBuilder().setFBID("app_id",l).setFBID("page_id",k).setString("placement",m).getURI();u.prev=2;u.next=5;return c("regeneratorRuntime").awrap(new(c("AsyncRequest"))(n).exec());case 5:o=u.sent;p=o.payload;q=p.cursor;r=p.has_next_page;s=p.posts;c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedPostPickerActionTypes").LOAD_INITIAL_POSTS,cursor:q,hasNextPage:r,posts:s,appID:l,pageID:k});u.next=16;break;case 13:u.prev=13;u.t0=u["catch"](2);case 16:case"end":return u.stop()}},null,this,[[2,13]])}function i(k,l,m){c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedPostPickerActionTypes").FETCH_MULTIPLE_BOOST_POSTS});var n=c("XBoostedPostMultipleBoostsDataController").getURIBuilder().setFBID("page_id",k).setFBID("target_id",l).setString("placement",m).getURI();new(c("AsyncRequest"))().setURI(n).setHandler(function(o){c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedPostPickerActionTypes").LOAD_MULTIPLE_BOOST_POSTS,appID:c("BoostedComponentAppID").BOOSTED_POST,promotionsData:o.payload,targetID:l})}).setErrorHandler(function(o){}).send()}function j(k,l,m,n){c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedPostPickerActionTypes").FETCH_MORE_POSTS,appID:l,pageID:k});var o=c("XBoostedPostPickerDataController").getURIBuilder().setFBID("app_id",l).setFBID("page_id",k).setString("cursor",n).setString("placement",m).getURI();new(c("AsyncRequest"))().setURI(o).setHandler(function(p){var q=p.payload,n=q.cursor,r=q.has_next_page,s=q.posts;c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedPostPickerActionTypes").LOAD_MORE_POSTS,cursor:n,hasNextPage:r,posts:s,appID:l,pageID:k})}).setErrorHandler(function(p){}).send()}f.exports={fetchPosts:h,fetchMorePosts:j,fetchMultipleBoostsOfPost:i}}),null);
__d("AdsHscrollAdPreviewsBar.react",["cx","fbt","invariant","AdsPill.react","AdsPreviewApiFormats","BoostedComponentTestElement","immutable","React","TabBar.react","TabBarItem.react","joinClasses"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("React").PropTypes,n=i._("DESKTOP NEWS FEED"),o=i._("MOBILE NEWS FEED"),p=i._("RIGHT COLUMN"),q=i._("INSTAGRAM"),r=i._("IN-STREAM VIDEO"),s=i._("AUDIENCE NETWORK IN-STREAM VIDEO"),t=i._("AUDIENCE NETWORK INTERSTITIAL"),u=i._("AUDIENCE NETWORK NATIVE"),v=c("immutable").Map([[c("AdsPreviewApiFormats").DESKTOP_FEED_STANDARD,c("React").createElement(c("TabBarItem.react"),{className:"_1riu","data-testid":c("BoostedComponentTestElement").DESKTOP_PREVIEW_TAB,key:c("AdsPreviewApiFormats").DESKTOP_FEED_STANDARD},n)],[c("AdsPreviewApiFormats").MOBILE_FEED_STANDARD,c("React").createElement(c("TabBarItem.react"),{className:"_1riu","data-testid":c("BoostedComponentTestElement").MOBILE_PREVIEW_TAB,key:c("AdsPreviewApiFormats").MOBILE_FEED_STANDARD},o)],[c("AdsPreviewApiFormats").INSTREAM_VIDEO_MOBILE,c("React").createElement(c("TabBarItem.react"),{className:"_1riu","data-testid":"instream video data-testid",key:c("AdsPreviewApiFormats").INSTREAM_VIDEO_MOBILE},r)],[c("AdsPreviewApiFormats").RIGHT_COLUMN_STANDARD,c("React").createElement(c("TabBarItem.react"),{className:"_1riu","data-testid":c("BoostedComponentTestElement").RHS_PREVIEW_TAB,key:c("AdsPreviewApiFormats").RIGHT_COLUMN_STANDARD},p)],[c("AdsPreviewApiFormats").AUDIENCE_NETWORK_INSTREAM_VIDEO,c("React").createElement(c("TabBarItem.react"),{className:"_1riu","data-testid":c("BoostedComponentTestElement").AUDIENCE_NETWORK_INSTREAM_VIDEO_PREVIEW_TAB,key:c("AdsPreviewApiFormats").AUDIENCE_NETWORK_INSTREAM_VIDEO},c("React").createElement("div",null,s))],[c("AdsPreviewApiFormats").MOBILE_INTERSTITIAL,c("React").createElement(c("TabBarItem.react"),{className:"_1riu","data-testid":c("BoostedComponentTestElement").AUDIENCE_NETWORK_INTERSTITIAL_PREVIEW_TAB,key:c("AdsPreviewApiFormats").MOBILE_INTERSTITIAL},c("React").createElement("div",null,t))],[c("AdsPreviewApiFormats").MOBILE_NATIVE,c("React").createElement(c("TabBarItem.react"),{className:"_1riu","data-testid":c("BoostedComponentTestElement").AUDIENCE_NETWORK_NATIVE_PREVIEW_TAB,key:c("AdsPreviewApiFormats").MOBILE_NATIVE},c("React").createElement("div",null,u))]]);k=babelHelpers.inherits(w,c("React").Component);l=k&&k.prototype;w.prototype.render=function(){var x=this.props.apiAdFormatList,y=x.count();y>=1||j(0);var z=y<=3?y:2;return c("React").createElement("div",babelHelpers["extends"]({},this.props,{className:c("joinClasses")(this.props.className,"_1riv"+(y===1?" _2x8y":"")+(y===2?" _1rix":"")+(y===3?" _1riy":"")+(y>3?" _4zyd":""))}),c("React").createElement(c("TabBar.react"),{activeTabKey:this.props.selected,alwaysShowActive:true,maxTabsVisible:z,onTabClick:this.props.onSelect},this.$AdsHscrollAdPreviewsBar1()),c("React").createElement("div",{className:"_1riz"+(y===1?" _1ilg":"")+(y===2?" _1ilh":"")+(y===3?" _1ili":"")+(y>3?" _4zyh":"")+(this.props.selected===x.get(0)?" _1ri-":"")+(y<=3&&this.props.selected===x.get(1)?" _1ri_":"")+(y<=3&&this.props.selected===x.get(2)?" _1rj0":"")+(y>3&&this.props.selected!==x.get(0)?" _4zyi":"")}))};w.prototype.$AdsHscrollAdPreviewsBar1=function(){return this.props.apiAdFormatList.map(function(x){if(x===c("AdsPreviewApiFormats").INSTAGRAM_STANDARD)return this.$AdsHscrollAdPreviewsBar2();else return v.get(x)}.bind(this))};w.prototype.$AdsHscrollAdPreviewsBar2=function(){return c("React").createElement(c("TabBarItem.react"),{className:"_1riu","data-testid":c("BoostedComponentTestElement").RHS_PREVIEW_TAB,key:c("AdsPreviewApiFormats").INSTAGRAM_STANDARD},c("React").createElement("div",null,q,this.props.showNew?this.$AdsHscrollAdPreviewsBar3():null))};w.prototype.$AdsHscrollAdPreviewsBar3=function(){return c("React").createElement(c("AdsPill.react"),{className:"_3gr_",display:"inline"},i._("New"))};function w(){k.apply(this,arguments)}w.propTypes={apiAdFormatList:m.instanceOf(c("immutable").List).isRequired,showNew:m.bool,selected:m.string.isRequired,onSelect:m.func};w.defaultProps={showNew:false};f.exports=w}),null);
__d("AdsHscrollAdPreviewsUnitFrame.react",["cx","AdsHscrollAdPreviewsBar.react","AdsPreviewApiFormats","AdsStickyArea.react","BoostedComponentTestElement","immutable","React","XUICard.react","XUICardSection.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes,l=14;i=babelHelpers.inherits(m,c("React").Component);j=i&&i.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=j.constructor).call.apply(n,[this].concat(q)),this.$AdsHscrollAdPreviewsUnitFrame1=function(s){return s.defaultSelectedAdFormat!=null?s.defaultSelectedAdFormat:s.apiAdFormats!=null?s.apiAdFormats.first():c("AdsPreviewApiFormats").DESKTOP_FEED_STANDARD},this.$AdsHscrollAdPreviewsUnitFrame2=function(s){this.setState({selected:s});this.props.onSelect&&this.props.onSelect(s)}.bind(this),this.state={selected:this.$AdsHscrollAdPreviewsUnitFrame1(this.props)},o}m.prototype.componentWillReceiveProps=function(n){if(n.apiAdFormats!=null&&!n.apiAdFormats.has(this.state.selected))this.setState({selected:this.$AdsHscrollAdPreviewsUnitFrame1(n)})};m.prototype.render=function(){var n=this.props.apiAdFormatsList;return c("React").createElement(c("XUICard.react"),{className:"_i40","data-testid":c("BoostedComponentTestElement").PREVIEW_UNIT},c("React").createElement(c("XUICardSection.react"),null,c("React").createElement(c("AdsStickyArea.react"),{topOffset:0,zIndex:l},c("React").createElement(c("AdsHscrollAdPreviewsBar.react"),{apiAdFormatList:n,selected:this.state.selected,onSelect:this.$AdsHscrollAdPreviewsUnitFrame2}))),c("React").createElement(c("XUICardSection.react"),{className:"_i41"},c("React").createElement("div",{className:"_i42",style:{marginLeft:n.indexOf(this.state.selected)*-540}},this.props.children)))};m.propTypes={apiAdFormats:k.instanceOf(c("immutable").Set),apiAdFormatsList:k.instanceOf(c("immutable").List).isRequired,defaultSelectedAdFormat:k.string,onSelect:k.func};f.exports=m}),null);
__d("InstreamVideoLWIDemo.react",["cx","AdsPlacementsFacebookInstreamVideosGroupPlugin","Image.react","React","VideoComponentDebugOverlay.react","VideoComponentWithLoopingPlayback.react","VideoDataContainer.react","VideoPlayer.react"],(function a(b,c,d,e,f,g,h){"use strict";function i(){var j=c("AdsPlacementsFacebookInstreamVideosGroupPlugin").placementPreviewVideo;return j?c("React").createElement("div",{className:"_1efd"},c("React").createElement(c("VideoDataContainer.react"),{renderError:function k(){return c("React").createElement(c("Image.react"),{height:320,src:c("AdsPlacementsFacebookInstreamVideosGroupPlugin").placementPreviewImage,width:246})},renderLoading:function k(){return c("React").createElement(c("Image.react"),{height:320,src:c("AdsPlacementsFacebookInstreamVideosGroupPlugin").placementPreviewImage,width:246})},videoID:j},c("React").createElement(c("VideoPlayer.react"),{autoplay:true,disableClickPlayPause:true,height:320,hideAllOverlays:true,showControls:false,videoData:c("VideoDataContainer.react").VIDEO_DATA_PLACEHOLDER,width:250},c("React").createElement(c("VideoComponentDebugOverlay.react"),null),c("React").createElement(c("VideoComponentWithLoopingPlayback.react"),{infiniteLooping:true})))):null}f.exports=i}),null);
__d("InstreamVideoLWIPreview.react",["cx","fbt","InstreamVideoLWIDemo.react","Link.react","React","URI"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=new(c("URI"))("/business/help/175741192481247");j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=k.constructor).call.apply(n,[this].concat(q)),this.state={shouldShowInstreamDemo:false},this.$InstreamVideoLWIPreview1=function(){this.setState({shouldShowInstreamDemo:true})}.bind(this),this.$InstreamVideoLWIPreview2=function(){this.setState({shouldShowInstreamDemo:false})}.bind(this),o}m.prototype.render=function(){var n=this.state.shouldShowInstreamDemo?c("InstreamVideoLWIDemo.react")():null;return c("React").createElement("div",{className:"_i46",key:this.props.apiFormat},c("React").createElement("div",{className:"_g7j"},this.props.previewHeader),c("React").createElement("div",{className:"_1efc"},this.props.adPreview,n),c("React").createElement("div",{className:"_1efk"},i._("Your promotion will play during eligible Facebook Shows and News Feed videos. To see what your viewers will experience, {instream videos demo} You can use Ads Manager to control where your promotion plays. {instream videos link}",[i.param("instream videos demo",c("React").createElement("a",{onMouseEnter:this.$InstreamVideoLWIPreview1,onMouseLeave:this.$InstreamVideoLWIPreview2},i._("watch this demo video."))),i.param("instream videos link",c("React").createElement(c("Link.react"),{href:l,target:"_blank"},i._("Learn more.")))])))};f.exports=m}),null);
__d("AdsHscrollAdPreviewsUnit.react",["ix","cx","fbt","AdPreview.react","AdsFBIconDownsized.react","AdsGuidanceInlineNux.react","AdsHscrollAdPreviewsUnitFrame.react","AdsInstagramApplicabilityUtils","AdsPreviewApiFormats","BIGAdoptionConfig","BoostedComponentAppID","Image.react","immutable","InstreamVideoLWIPreview.react","Link.react","React","asset","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("React").PropTypes,n=c("immutable").List([c("AdsPreviewApiFormats").DESKTOP_FEED_STANDARD,c("AdsPreviewApiFormats").MOBILE_FEED_STANDARD]),o=n.push(c("AdsPreviewApiFormats").RIGHT_COLUMN_STANDARD),p=c("immutable").List([c("AdsPreviewApiFormats").DESKTOP_FEED_STANDARD,c("AdsPreviewApiFormats").MOBILE_FEED_STANDARD,c("AdsPreviewApiFormats").INSTREAM_VIDEO_MOBILE,c("AdsPreviewApiFormats").RIGHT_COLUMN_STANDARD,c("AdsPreviewApiFormats").INSTAGRAM_STANDARD,c("AdsPreviewApiFormats").AUDIENCE_NETWORK_INSTREAM_VIDEO,c("AdsPreviewApiFormats").MOBILE_INTERSTITIAL,c("AdsPreviewApiFormats").MOBILE_NATIVE]);k=babelHelpers.inherits(q,c("React").Component);l=k&&k.prototype;function q(){__p&&__p();var r,s;for(var t=arguments.length,u=Array(t),v=0;v<t;v++)u[v]=arguments[v];return s=(r=l.constructor).call.apply(r,[this].concat(u)),this.state={shouldShowNux:true,selectedAdFormat:this.props.defaultSelectedAdFormat},this.$AdsHscrollAdPreviewsUnit13=function(){this.setState({shouldShowNux:false})}.bind(this),this.$AdsHscrollAdPreviewsUnit16=function(){this.state.selectedAdFormat&&this.props.onPreviewLinkClick&&this.props.onPreviewLinkClick(this.state.selectedAdFormat)}.bind(this),this.$AdsHscrollAdPreviewsUnit2=function(w){this.setState({selectedAdFormat:w});var x=null;if(w===c("AdsPreviewApiFormats").INSTAGRAM_STANDARD)x=this.props.instagramIneligibleMessage;if(this.props.onAdFormatSelect)this.props.onAdFormatSelect(w,x)}.bind(this),s}q.prototype.$AdsHscrollAdPreviewsUnit1=function(){__p&&__p();var r,s=this;if(this.props.apiAdFormats!=null){var r=function(){var t=[];p.forEach(function(u){if(this.props.apiAdFormats&&this.props.apiAdFormats.has(u))t.push(u)}.bind(s));return{v:c("immutable").List(t)}}();if(typeof r==="object")return r.v}return this.props.hasRHC?o:n};q.prototype.render=function(){var r=this.$AdsHscrollAdPreviewsUnit1();return c("React").createElement(c("AdsHscrollAdPreviewsUnitFrame.react"),{apiAdFormats:this.props.apiAdFormats,apiAdFormatsList:r,defaultSelectedAdFormat:this.props.defaultSelectedAdFormat,onSelect:this.$AdsHscrollAdPreviewsUnit2},this.$AdsHscrollAdPreviewsUnit3(r))};q.prototype.$AdsHscrollAdPreviewsUnit3=function(r){return r.map(function(s){if(this.props.appID===c("BoostedComponentAppID").BOOSTED_POST&&s===c("AdsPreviewApiFormats").INSTREAM_VIDEO_MOBILE)return c("React").createElement(c("InstreamVideoLWIPreview.react"),{adPreview:this.$AdsHscrollAdPreviewsUnit4(s),apiFormat:s,previewHeader:this.$AdsHscrollAdPreviewsUnit5(s)});else if(s===c("AdsPreviewApiFormats").INSTAGRAM_STANDARD)return this.$AdsHscrollAdPreviewsUnit6(s,true);else return this.$AdsHscrollAdPreviewsUnit7(s)}.bind(this))};q.prototype.$AdsHscrollAdPreviewsUnit6=function(r,s){__p&&__p();if(this.props.instagramIneligibleMessage){var t=null;if(s)t=j._("Your promotion can't appear on Instagram because something is incompatible. {ineligible message}. {learn more link}.",[j.param("ineligible message",this.props.instagramIneligibleMessage),j.param("learn more link",c("React").createElement(c("Link.react"),{href:this.props.instagramAdsCreativeHelpLink,target:"_blank"},j._("Learn more")))]);else t=j._("Your promotion will show on Facebook. It won't show on Instagram because the image, video or call-to-action doesn't meet the guidelines. {learn more link}.",[j.param("learn more link",c("React").createElement(c("Link.react"),{href:this.props.instagramAdsCreativeHelpLink,target:"_blank"},j._("Learn more")))]);return this.$AdsHscrollAdPreviewsUnit8(r,t)}else if(this.props.appID!=c("BoostedComponentAppID").BOOSTED_POST&&this.props.instagramOptedOut){var u=j._("Instagram has been disabled for this promotion. {click to enable instagram ads}.",[j.param("click to enable instagram ads",c("React").createElement(c("Link.react"),{onClick:this.props.instagramOptInCallback},j._("Turn Instagram back on")))]);return this.$AdsHscrollAdPreviewsUnit8(r,u)}else if(!c("AdsInstagramApplicabilityUtils").hasInstagramActor({creative:this.props.creative}))return c("React").createElement("div",{key:c("AdsPreviewApiFormats").INSTAGRAM_STANDARD});var v="_3hqd";if(this.props.instagramOptedOut)v="_1p46";return c("React").createElement("div",{className:"_i46",key:c("AdsPreviewApiFormats").INSTAGRAM_STANDARD},this.$AdsHscrollAdPreviewsUnit9(),c("React").createElement("div",{className:v},this.$AdsHscrollAdPreviewsUnit4(c("AdsPreviewApiFormats").INSTAGRAM_STANDARD)),c("React").createElement("div",{className:"_1p47"},this.$AdsHscrollAdPreviewsUnit10()))};q.prototype.$AdsHscrollAdPreviewsUnit11=function(){return j._("Your Instagram account will represent your business in this promotion.")};q.prototype.$AdsHscrollAdPreviewsUnit8=function(r,s){return c("React").createElement("div",{className:"_i46",key:r+".alternate"},c("React").createElement("div",{className:"_1jwm"},s))};q.prototype.$AdsHscrollAdPreviewsUnit7=function(r){return c("React").createElement("div",{className:"_i46",key:r},c("React").createElement("div",{className:"_g7j"},this.$AdsHscrollAdPreviewsUnit5(r)),this.$AdsHscrollAdPreviewsUnit4(r))};q.prototype.$AdsHscrollAdPreviewsUnit10=function(){var r=null;if(!this.props.hasInstagramAccount)r=j._("Your Facebook Page will represent your business in this promotion. {learn more link}",[j.param("learn more link",c("React").createElement(c("Link.react"),{href:this.props.instagramAdsHelpLink,target:"_blank"},j._("Learn more about adding an Instagram account.")))]);else r=this.$AdsHscrollAdPreviewsUnit11();return c("React").createElement("div",null,c("React").createElement("div",{className:"_1p4a"},r))};q.prototype.$AdsHscrollAdPreviewsUnit9=function(){if(this.props.instagramPermalink===null)return null;return c("React").createElement("div",{className:"_g7j"},c("React").createElement("div",{className:"_g7k"},c("React").createElement("div",{className:"_5va8"},c("React").createElement(c("AdsFBIconDownsized.react"),{src:c("BIGAdoptionConfig").ads_fbicon_adoption?h("412464"):h("123165")})),c("React").createElement(c("Link.react"),{className:"_g7l",href:this.props.instagramPermalink,target:"_blank"},j._("View and manage comments on Instagram"))))};q.prototype.$AdsHscrollAdPreviewsUnit12=function(){if(this.state.shouldShowNux&&(this.props.isInstagramCandidatePost||this.props.isUnpublishedSlideshow))return c("React").createElement("div",{className:"_3-9d _3-93"},c("React").createElement(c("AdsGuidanceInlineNux.react"),{title:"",onClose:this.$AdsHscrollAdPreviewsUnit13},this.$AdsHscrollAdPreviewsUnit14()));return null};q.prototype.$AdsHscrollAdPreviewsUnit14=function(){if(this.props.isInstagramCandidatePost)return j._("Boosting this post will also publish it to your Page. The original Instagram post will be unaffected.");if(this.props.isUnpublishedSlideshow)return j._("This slideshow was automatically created from your Page's images. When you run this ad, you'll publish the slideshow on your Page.");return null};q.prototype.$AdsHscrollAdPreviewsUnit5=function(r){__p&&__p();var s=null,t=null,u=null,v=false,w=null;switch(r){case c("AdsPreviewApiFormats").DESKTOP_FEED_STANDARD:t=this.props.desktopPermalinkURI;u=c("BIGAdoptionConfig").ads_fbicon_adoption?h("412464"):h("123165");s=j._("View ad with comments and reactions");break;case c("AdsPreviewApiFormats").MOBILE_FEED_STANDARD:v=true;t=this.props.viewOnMobileAsyncURI;u=c("BIGAdoptionConfig").ads_fbicon_adoption?h("412516"):h("123265");s=j._("View On Mobile");break}if(!t||!s)return null;return c("React").createElement("div",null,c("React").createElement("div",{className:"_g7k"},c("React").createElement("div",{className:"_5va8"},c("React").createElement(c("Image.react"),{src:u})),this.$AdsHscrollAdPreviewsUnit15(t,s,v)),w)};q.prototype.$AdsHscrollAdPreviewsUnit15=function(r,s,t){if(t)return c("React").createElement(c("Link.react"),{ajaxify:r,className:"_g7l",href:"#",rel:"async-post",onClick:this.$AdsHscrollAdPreviewsUnit16},s);else return c("React").createElement(c("Link.react"),{className:"_g7l",href:r,target:"_blank",onClick:this.$AdsHscrollAdPreviewsUnit16},s)};q.prototype.$AdsHscrollAdPreviewsUnit4=function(r){var s=this.props.AdPreviewUnit;return c("React").createElement("div",{className:"_i47"},this.$AdsHscrollAdPreviewsUnit12(),c("React").createElement("div",{className:"_3-9d _3-93"},c("React").createElement(s,{adAccountID:this.props.adAccountID,apiFormat:r,apiVersion:this.props.apiVersion,appID:this.props.appID,creative:this.props.creative,editable:this.props.editable,linkShareData:this.props.linkShareData,objective:this.props.objective,postData:this.props.postData,productItemIDs:this.props.productItemIDs,onPreviewLoadFailure:this.props.onPreviewLoadFailure,onPreviewLoadStart:this.props.onPreviewLoadStart,onPreviewLoadSuccess:this.props.onPreviewLoadSuccess})))};q.propTypes={AdPreviewUnit:m.func,adAccountID:m.string.isRequired,apiAdFormats:m.instanceOf(c("immutable").Set),appID:m.string,creative:m.object.isRequired,defaultSelectedAdFormat:m.string,desktopPermalinkURI:m.string,editable:m.bool,hasInstagramAccount:m.bool,hasRHC:m.bool,height:m.number,instagramAdsCreativeHelpLink:m.string,instagramAdsHelpLink:m.string,instagramIneligibleMessage:m.string,instagramOptInCallback:m.func,instagramOptedOut:m.bool,instagramPermalink:m.string,isInstagramCandidatePost:m.bool,isUnpublishedSlideshow:m.bool,linkShareData:m.object,objective:m.string,postData:m.instanceOf(c("immutable").Map),productItemIDs:m.array,viewOnMobileAsyncURI:m.string,onAdFormatSelect:m.func,onPreviewLinkClick:m.func,onPreviewLoadFailure:m.func,onPreviewLoadStart:m.func,onPreviewLoadSuccess:m.func};q.defaultProps={AdPreviewUnit:c("AdPreview.react"),editable:false,hasInstagramAccount:false,hasRHC:true,height:464,isUnpublishedSlideshow:false,isInstagramCandidatePost:false};f.exports=q}),null);
__d("AdsLeadGenFormPreviewCanvasHeader.react",["cx","AdsCanvasPreviewCanvasContainer.react","AdsLeadGenConstants","Image.react","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.render=function(){if(!this.props.canvasID)return null;return c("React").createElement("div",{className:"_3gw-"},c("React").createElement(c("AdsCanvasPreviewCanvasContainer.react"),{canvasID:this.props.canvasID,disableScrolling:true,shouldHideBackButton:true,showSwipeToOpenPreview:false,width:c("AdsLeadGenConstants").CONTEXT_IMAGE_WIDTH}))};function k(){i.apply(this,arguments)}f.exports=k}),null);
__d("AdsLeadGenFormPreviewFooterButton.react",["cx","React"],(function a(b,c,d,e,f,g,h){"use strict";var i=function i(j){return c("React").createElement("div",{className:"_3gxh _3gwp",onClick:j.onClick},c("React").createElement("div",{className:"_3utj _3gww"},j.buttonText))};f.exports=i}),null);
__d("AdsLeadGenFormPreviewHeader.react",["cx","Image.react","React"],(function a(b,c,d,e,f,g,h){"use strict";var i,j;i=babelHelpers.inherits(k,c("React").PureComponent);j=i&&i.prototype;k.prototype.render=function(){return c("React").createElement("div",{className:"_3gw-"},this.props.headerImage,c("React").createElement("div",{className:"_623k"},this.props.pagePictureURL?c("React").createElement(c("Image.react"),{className:"_2ryc",src:this.props.pagePictureURL}):c("React").createElement("div",{className:"_2ryc"}),c("React").createElement("div",{className:"_3gx3"},this.props.pageName)))};function k(){i.apply(this,arguments)}f.exports=k}),null);
__d("AdsLeadGenFormEditorConditionalQuestionDataManager",["AdsGraphAPI","AdsLeadGenFormConditionalAnswerSet","AdsLeadGenFormEditorActions","immutable"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h={loadConditionalAnswerSet:function i(j,k,l){c("AdsGraphAPI").get(f.id).object("leadgen_conditional_questions_group",l).get().done(function(m){var n=[];if(m.questions)n=m.questions.map(function(o){return{name:o.name,fieldKey:o.field_key,inputType:o.input_type}});c("AdsLeadGenFormEditorActions").conditionalAnswerSetLoadSuccess(j,k,c("immutable").List(n),new(c("AdsLeadGenFormConditionalAnswerSet"))(l,m.choices))},function(m){return c("AdsLeadGenFormEditorActions").conditionalAnswerSetLoadError(j,k,h._getErrorSpec(m))})},uploadConditionalAnswerSet:function i(j,k,l,m){var n=new b.FormData();n.append("conditional_questions_group_csv",m);c("AdsGraphAPI").get(f.id).object("pageID",l).edge("leadgen_conditional_questions_group").post(n).done(function(o){return c("AdsLeadGenFormEditorActions").conditionalAnswerSetUploadSuccess(j,k,o.id)},function(o){return c("AdsLeadGenFormEditorActions").conditionalAnswerSetUploadError(j,k,h._getErrorSpec(o))})},_getErrorSpec:function i(j){return{error_code:j.error_subcode?j.error_subcode:j.code,error_message:j.error_user_msg||j.message,error_type:j.type,fbtrace_id:j.fbtrace_id}}};f.exports=h}),null);
__d("AdsLeadGenFormEditorConditionalQuestionStore",["AdsDataAtom","AdsLeadGenFormConditionalAnswerSet","AdsLeadGenFormEditorApiFormDuplicatedDataAction","AdsLeadGenFormEditorApiFormLoadedDataAction","AdsLeadGenFormEditorConditionalQuestionDataManager","AdsLeadGenFormEditorQuestionsConditionalAnswerSetLoadedDataAction","AdsLeadGenFormEditorQuestionsConditionalAnswerSetLoadingFailedDataAction","AdsLeadGenFormEditorQuestionsConditionalAnswerSetUploadErrorClientSideDataAction","AdsLeadGenFormEditorQuestionsConditionalAnswerSetUploadErrorDataAction","AdsLeadGenFormEditorQuestionsConditionalAnswerSetUploadStartDataAction","AdsLeadGenFormEditorQuestionsConditionalAnswerSetUploadSuccessDataAction","AdsLeadGenFormEditorStore","AdsLeadGenFormFormLoadedDataAction","FluxMapStore","LoadObject"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("FluxMapStore"));i=h&&h.prototype;j.prototype.reduce=function(k,l){__p&&__p();var m=l.action;switch(m.type){case c("AdsLeadGenFormEditorApiFormDuplicatedDataAction").actionType:case c("AdsLeadGenFormEditorApiFormLoadedDataAction").actionType:c("AdsDataAtom").waitFor([c("AdsLeadGenFormEditorStore").getDispatchToken()]);var n=c("AdsLeadGenFormEditorStore").getConditionalQuestion(m.formID);if(n==null)return k;var o=n.get("id");return k.set(o,c("LoadObject").withValue(new(c("AdsLeadGenFormConditionalAnswerSet"))(n.get("conditionalAnswerSetID"),n.get("conditionalAnswerChoices"))));case c("AdsLeadGenFormEditorQuestionsConditionalAnswerSetUploadStartDataAction").actionType:c("AdsLeadGenFormEditorConditionalQuestionDataManager").uploadConditionalAnswerSet(m.formID,m.questionID,m.pageID,m.file);return k.set(m.questionID,c("LoadObject").loading());case c("AdsLeadGenFormEditorQuestionsConditionalAnswerSetUploadSuccessDataAction").actionType:c("AdsLeadGenFormEditorConditionalQuestionDataManager").loadConditionalAnswerSet(m.formID,m.questionID,m.conditionalAnswerSetID);return k;case c("AdsLeadGenFormEditorQuestionsConditionalAnswerSetLoadedDataAction").actionType:return k.set(m.questionID,c("LoadObject").withValue(m.conditionalAnswerSet));case c("AdsLeadGenFormEditorQuestionsConditionalAnswerSetUploadErrorClientSideDataAction").actionType:return k.set(m.questionID,c("LoadObject").withError(m.error));case c("AdsLeadGenFormEditorQuestionsConditionalAnswerSetUploadErrorDataAction").actionType:case c("AdsLeadGenFormEditorQuestionsConditionalAnswerSetLoadingFailedDataAction").actionType:return k.set(m.questionID,c("LoadObject").withError(new Error(m.error.error_message)));case c("AdsLeadGenFormFormLoadedDataAction").actionType:var p=m.form.get("customized_questions"),q=p==null?null:p.find(function(r){return r.get("questionTypeKey")==="conditional"});if(q==null)return k;return k.set(q.id,c("LoadObject").withValue(new(c("AdsLeadGenFormConditionalAnswerSet"))(q.conditionalAnswerSetID,q.conditionalAnswerChoices)));default:return k}};j.prototype.getAnswerSet=function(k){return i.get.call(this,k)||c("LoadObject").empty()};function j(){h.apply(this,arguments)}f.exports=new j(c("AdsDataAtom"))}),null);
__d("AdsLeadGenFormPreviewSelectConditionalAnswerDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"SELECT_CONDITIONAL_ANSWER");f.exports=h}),null);
__d("AdsLeadGenFormEditorConditionalQuestionViewStore",["AdsDataAtom","AdsLeadGenFormEditorQuestionsConditionalAnswerSetLoadedDataAction","AdsLeadGenFormEditorQuestionsSelectConditionalAnswerDataAction","AdsLeadGenFormPreviewSelectConditionalAnswerDataAction","FluxMapStore","immutable"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("FluxMapStore"));i=h&&h.prototype;j.prototype.reduce=function(k,l){var m=l.action;switch(m.type){case c("AdsLeadGenFormEditorQuestionsConditionalAnswerSetLoadedDataAction").actionType:var n=m.questionID,o=k.get(n)?k.get(n).answerCombination.clear():c("immutable").List();return k.set(n,{answerCombination:o});case c("AdsLeadGenFormEditorQuestionsSelectConditionalAnswerDataAction").actionType:case c("AdsLeadGenFormPreviewSelectConditionalAnswerDataAction").actionType:var p=m.questionID,q=k.get(p)?k.get(p).answerCombination:c("immutable").List(),r=q.take(m.conditionalQuestionIndex).push(m.answerValue);return k.set(p,{answerCombination:r});default:return k}};function j(){h.apply(this,arguments)}f.exports=new j(c("AdsDataAtom"))}),null);
__d("AdsLeadGenPreviewConditionalQuestion.react",["cx","fbt","React","SUISelector.react","SUISelectorOption.react","SUISpinner.react","SUIText.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l,m;j=babelHelpers.inherits(n,c("React").PureComponent);k=j&&j.prototype;function n(){var q,r;for(var s=arguments.length,t=Array(s),u=0;u<s;u++)t[u]=arguments[u];return r=(q=k.constructor).call.apply(q,[this].concat(t)),this.$AdsLeadGenPreviewConditionalQuestion1=function(v,w){var x=this.props,y=x.answerCombination,z=x.conditionalAnswerSet,A=w>y.count(),B=A?null:z.getValueEnforcing().getNextAnswerValues(y.take(w).toArray()),C=y.get(w);return c("React").createElement(o,{answers:B,index:w,isSelectorDisabled:A,key:"conditional_question_preview_block_"+w,questionLabel:v.name,selectedAnswer:C,onSelectConditionalAnswer:this.$AdsLeadGenPreviewConditionalQuestion2})}.bind(this),this.$AdsLeadGenPreviewConditionalQuestion2=function(v,w){this.props.onSelectConditionalAnswer(this.props.question.get("id"),v,w)}.bind(this),r}n.prototype.render=function(){var q=this.props.conditionalAnswerSet;if(q.isLoading())return c("React").createElement(c("SUISpinner.react"),null);if(!q.hasValue())return null;return c("React").createElement("div",null,this.props.question.get("conditionalQuestions").map(this.$AdsLeadGenPreviewConditionalQuestion1).toArray())};l=babelHelpers.inherits(o,c("React").PureComponent);m=l&&l.prototype;function o(){var q,r;for(var s=arguments.length,t=Array(s),u=0;u<s;u++)t[u]=arguments[u];return r=(q=m.constructor).call.apply(q,[this].concat(t)),this.$IndividualConditionalQuestionBlock1=function(v){this.props.onSelectConditionalAnswer(this.props.index,v)}.bind(this),r}o.prototype.render=function(){return c("React").createElement("div",{className:"_2pib _58c5"},c("React").createElement("div",{className:"_58c6"},c("React").createElement(c("SUIText.react"),{className:"_58c7",shade:"light",size:"meta1"},this.props.questionLabel||p(this.props.index))),c("React").createElement("div",{className:"_58dh"},c("React").createElement(c("SUISelector.react"),{disabled:this.props.isSelectorDisabled,placeholder:i._("Select"),value:this.props.selectedAnswer,onChange:this.$IndividualConditionalQuestionBlock1},this.props.answers==null?null:this.props.answers.map(function(q){return c("React").createElement(c("SUISelectorOption.react"),{key:q,value:q},q)}))))};var p=function p(q){return i._("Conditional Question {question index counting from 1}",[i.param("question index counting from 1",q+1)])};f.exports=n}),null);
__d("AdsLeadGenPreviewConditionalQuestionContainer.react",["AdsLeadGenFormEditorActions","AdsLeadGenFormEditorConditionalQuestionStore","AdsLeadGenFormEditorConditionalQuestionViewStore","AdsLeadGenPreviewConditionalQuestion.react","FluxContainer","immutable","React","nullthrows"],(function a(b,c,d,e,f,g){"use strict";var h=[c("AdsLeadGenFormEditorConditionalQuestionStore"),c("AdsLeadGenFormEditorConditionalQuestionViewStore")],i=function i(){return h},j=function j(k,l){var m=c("nullthrows")(l),n=m.question,o=n.get("id"),p=c("AdsLeadGenFormEditorConditionalQuestionStore").getAnswerSet(o),q=c("AdsLeadGenFormEditorConditionalQuestionViewStore").get(o),r=q?q.answerCombination:c("immutable").List();return{answerCombination:r,conditionalAnswerSet:p,question:n,onSelectConditionalAnswer:c("AdsLeadGenFormEditorActions").selectConditionalAnswer}};f.exports=c("FluxContainer").createFunctional(function(k){return c("React").createElement(c("AdsLeadGenPreviewConditionalQuestion.react"),k)},i,j,{withProps:true})}),null);
__d("AdsLeadGenPreviewStoreLocationList.react",["cx","React","SUIRadioList.react","SUIText.react","emptyFunction"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k,l,m=c("SUIRadioList.react").Item;i=babelHelpers.inherits(n,c("React").PureComponent);j=i&&i.prototype;n.prototype.render=function(){var p=this.props.storeLocations.map(this.$AdsLeadGenPreviewStoreLocationList1);return c("React").createElement("div",null,c("React").createElement("div",{className:"_2tn4 _2pi8"},c("React").createElement(c("SUIText.react"),{shade:"light"},this.props.questionText)),c("React").createElement("div",{className:"_62zx"},c("React").createElement(c("SUIRadioList.react"),{className:"_2pi8",value:null,onChange:c("emptyFunction")},p)))};n.prototype.$AdsLeadGenPreviewStoreLocationList1=function(p,q){var r="store_location_"+q;return c("React").createElement(o,babelHelpers["extends"]({},p,{key:r,value:r}))};function n(){i.apply(this,arguments)}k=babelHelpers.inherits(o,c("React").PureComponent);l=k&&k.prototype;o.prototype.render=function(){return c("React").createElement(m,{className:"_2o2f _2pi3",radioAlignment:"center",value:this.props.value},c("React").createElement("p",{className:"_2o2g"},this.$AdsLeadGenPreviewStoreLocationListItem1(this.props.storeName),this.$AdsLeadGenPreviewStoreLocationListItem2("\xb7"),this.$AdsLeadGenPreviewStoreLocationListItem2(""+this.props.distance+" "+this.props.distanceUnit)),c("React").createElement("p",{className:"_2o2g"},this.$AdsLeadGenPreviewStoreLocationListItem2(this.props.address+", "),this.$AdsLeadGenPreviewStoreLocationListItem2(this.props.city+", "),this.$AdsLeadGenPreviewStoreLocationListItem2(this.props.zipCode)))};o.prototype.$AdsLeadGenPreviewStoreLocationListItem1=function(p){return c("React").createElement(c("SUIText.react"),{display:"inline",style:{marginRight:4},weight:"bold"},p)};o.prototype.$AdsLeadGenPreviewStoreLocationListItem2=function(p){return c("React").createElement(c("SUIText.react"),{display:"inline",shade:"light",style:{marginRight:4}},p)};function o(){k.apply(this,arguments)}f.exports=n}),null);
__d("AdsLeadGenFormEditorStoreLookupLocationDataManager",["AdsGraphAPI","AdsLeadGenFormEditorActions"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(){this.load=function(i){c("AdsGraphAPI").get(f.id).object("page",i).edge("locations").get({fields:["id","name","location"],summary:true}).done(function(j){this.$AdsLeadGenFormEditorStoreLookupLocationDataManager1(i,j)}.bind(this))}.bind(this)}h.prototype.loadAll=function(i){Array.from(i).forEach(this.load,this)};h.prototype.$AdsLeadGenFormEditorStoreLookupLocationDataManager1=function(i,j){c("AdsLeadGenFormEditorActions").storeLookupLocationLoaded(i,j.data,j.summary.total_count||0)};f.exports=new h()}),null);
__d("AdsLeadGenFormStoreLookupLocationSummary",["immutable"],(function a(b,c,d,e,f,g){"use strict";var h,i,j=c("immutable").Record({locations:undefined,count:undefined});h=babelHelpers.inherits(k,j);i=h&&h.prototype;function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("AdsLeadGenFormEditorStoreLookupLocationStore",["AdsDataAtom","AdsLeadGenFormEditorStoreLookupLocationDataManager","AdsLeadGenFormEditorStoreLookupLocationLoadedDataAction","AdsLeadGenFormStoreLookupLocationSummary","FluxLoadObjectStore","immutable","LoadObject"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("FluxLoadObjectStore"));i=h&&h.prototype;j.prototype.reduce=function(k,l){var m=l.action;switch(m.type){case c("AdsLeadGenFormEditorStoreLookupLocationLoadedDataAction").actionType:return this.__handleOne(k,m.pageID,new(c("AdsLeadGenFormStoreLookupLocationSummary"))({locations:m.storeLookupLocations,count:m.count}));default:return k}};j.prototype.__loadAll=function(k){c("AdsLeadGenFormEditorStoreLookupLocationDataManager").loadAll(k)};function j(){h.apply(this,arguments)}f.exports=new j(c("AdsDataAtom"))}),null);
__d("AdsLeadGenPreviewStoreLocationListContainer.react",["cx","fbt","AdsFluxContainer","AdsLeadGenFormEditorStoreLookupLocationStore","AdsLeadGenPreviewStoreLocationList.react","LoadObject","React","SUISpinner.react","SUIText.react","idx","nullthrows"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k;j=babelHelpers.inherits(l,c("React").PureComponent);k=j&&j.prototype;l.getStores=function(){return[c("AdsLeadGenFormEditorStoreLookupLocationStore")]};l.calculateState=function(m,n){var o=c("AdsLeadGenFormEditorStoreLookupLocationStore").get(c("nullthrows")(n).pageID);return{storeLookupLocationSummaryLoadObject:o}};l.prototype.render=function(){__p&&__p();var m=this.state.storeLookupLocationSummaryLoadObject;if(m.isLoading()&&!m.hasValue())return c("React").createElement("div",{className:"_4bki"},c("React").createElement("span",{className:"_4x6k"},c("React").createElement(c("SUISpinner.react"),null)));if(m.hasError())return c("React").createElement("div",{className:"_4bki"},c("React").createElement(c("SUIText.react"),{display:"inline"},i._("Error: {error_message}.",[i.param("error_message",c("nullthrows")(m.getError()).message)])));if(m.hasValue()){var n=m.getValue();if(!n||n.locations.length===0)return c("React").createElement("div",{className:"_4bki"},c("React").createElement(c("SUIText.react"),{display:"inline"},i._("No store found.")));var o=n.locations.map(this.$AdsLeadGenPreveiwStoreLocationListContainer1);return c("React").createElement("div",{className:"_4bki"},c("React").createElement(c("AdsLeadGenPreviewStoreLocationList.react"),{questionText:this.props.questionText,storeLocations:c("nullthrows")(o)}))}return c("React").createElement("div",null)};l.prototype.$AdsLeadGenPreveiwStoreLocationListContainer1=function(m){var n,o,p,q=m.name||"",r=((n=m)!=null?(n=n.location)!=null?n.street:n:n)||"",s=((o=m)!=null?(o=o.location)!=null?o.city:o:o)||"",t=((p=m)!=null?(p=p.location)!=null?p.zip:p:p)||"";return{storeName:q,distance:0,distanceUnit:"mi",address:r,city:s,zipCode:t}};function l(){j.apply(this,arguments)}f.exports=c("AdsFluxContainer").create(l,{withProps:true,name:f.id})}),null);
__d("AdsLeadGenPreviewStoreLocationQuestion.react",["cx","fbt","AdsLeadGenPreviewStoreLocationList.react","AdsLeadGenPreviewStoreLocationListContainer.react","React","SUINotice.react","SUIText.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l={storeName:"Store Location Name",distance:0,distanceUnit:"mi",address:"Address",city:"City",zipCode:"Zip Code"};j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=k.constructor).call.apply(n,[this].concat(q)),this.state={isAPIStoreLocationWarningOn:this.props.storeLookupType==="API"},this.$AdsLeadGenPreviewStoreLocationQuestion2=function(){this.setState({isAPIStoreLocationWarningOn:false})}.bind(this),o}m.prototype.componentWillReceiveProps=function(n){if(this.props.storeLookupType===n.storeLookupType)return;if(this.state.isAPIStoreLocationWarningOn===false&&n.storeLookupType==="API")this.setState({isAPIStoreLocationWarningOn:true});else if(this.state.isAPIStoreLocationWarningOn===true&&n.storeLookupType!=="API")this.setState({isAPIStoreLocationWarningOn:false})};m.prototype.render=function(){switch(this.props.storeLookupType){case"LOCATION_MANAGER":return c("React").createElement(c("AdsLeadGenPreviewStoreLocationListContainer.react"),{pageID:this.props.pageID,questionText:this.props.questionText});case"API":return this.$AdsLeadGenPreviewStoreLocationQuestion1();default:return c("React").createElement("div",null)}};m.prototype.$AdsLeadGenPreviewStoreLocationQuestion1=function(){var n=this.state.isAPIStoreLocationWarningOn?c("React").createElement("div",{className:"_4bkj"},c("React").createElement(c("SUINotice.react"),{type:"warning",onClose:this.$AdsLeadGenPreviewStoreLocationQuestion2},c("React").createElement(c("SUIText.react"),{display:"block",size:"regularUI_DEPRECATED",style:{marginBottom:"8px"},weight:"bold"},i._("Form Preview not available")),c("React").createElement(c("SUIText.react"),{display:"block"},i._("Desktop previews aren't available for forms created through an API.")))):null;return c("React").createElement("div",null,n,c("React").createElement("div",{className:"_4bki"},c("React").createElement(c("AdsLeadGenPreviewStoreLocationList.react"),{questionText:this.props.questionText,storeLocations:Array(6).fill(l)})))};f.exports=m}),null);
__d("AdsLeadGenPreviewQuestionUnit.react",["fbt","cx","ix","AdsLeadGenPreviewConditionalQuestionContainer.react","AdsLeadGenPreviewConstants","AdsLeadGenPreviewStoreLocationQuestion.react","Image.react","LeadAdsCMSBlock.react","React","SUIBusinessTheme","SUIText.react","XUISingleSelector.react"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("XUISingleSelector.react").Option,n=c("React").PropTypes,o=j("22986");k=babelHelpers.inherits(p,c("React").Component);l=k&&k.prototype;p.prototype.render=function(){__p&&__p();switch(this.props.itemType){case c("AdsLeadGenPreviewConstants").CONDITIONAL_QUESTION:return c("React").createElement(c("AdsLeadGenPreviewConditionalQuestionContainer.react"),{question:this.props.extraData});case c("AdsLeadGenPreviewConstants").STORE_LOCATION:return c("React").createElement(c("AdsLeadGenPreviewStoreLocationQuestion.react"),{pageID:this.props.pageID,questionText:this.props.itemName,storeLookupType:this.props.extraData.storeLookupTypeKey});case c("AdsLeadGenPreviewConstants").SELECT:var q=[c("React").createElement(m,{key:"select",value:"select"},h._("Select"))];q.push(this.props.options.map(function(s){return c("React").createElement(m,{key:s,value:s},s)},this));return c("React").createElement("div",{className:"_2pib _58c5"},c("React").createElement("div",{className:"_58c6"},c("React").createElement(c("SUIText.react"),{className:"_58c7",shade:"light",size:"meta1",theme:c("SUIBusinessTheme")},this.props.itemName)),c("React").createElement("div",{className:"_58dh"},c("React").createElement(c("XUISingleSelector.react"),null,q)));case c("AdsLeadGenPreviewConstants").TEXT:var r=this.props.inlineContext?c("React").createElement("div",{className:"_295x"},this.props.inlineContext):null;return c("React").createElement("div",{className:"_2pib _2zhq"},c("React").createElement("div",{className:"_3-94 _58c7"},this.props.itemName),c("React").createElement("div",{className:"_58dn"},c("React").createElement(c("LeadAdsCMSBlock.react"),{id:"422810074588710",isFbt:true,locale:this.props.locale})),r);case c("AdsLeadGenPreviewConstants").APPOINTMENT_SCHEDULING:return c("React").createElement("div",{className:"_2pib"},c("React").createElement("div",{className:"_3-94 _58c7"},this.props.itemName),c("React").createElement("div",{className:"_h3-"},c("React").createElement(c("LeadAdsCMSBlock.react"),{id:"422810074588710",isFbt:true,locale:this.props.locale})),this.props.extraData&&this.props.extraData.inlineContextEnabled&&this.props.extraData.inlineContext?c("React").createElement("div",{className:"_3-8w _58c7"},this.props.extraData.inlineContext):null,c("React").createElement("div",{className:"_58fm"}));case c("AdsLeadGenPreviewConstants").LANDING_PAGE:return c("React").createElement("div",{className:"_2pib _3gxd"},c("React").createElement("div",{className:"_3-98 _2n0_"},c("React").createElement(c("LeadAdsCMSBlock.react"),{id:295060534166189,isFbt:true,locale:this.props.locale})),c("React").createElement("div",{className:"_2n0_"},c("React").createElement(c("LeadAdsCMSBlock.react"),{id:823821071004521,isFbt:true,locale:this.props.locale,parameters:{page_name:this.props.pageName}})));case c("AdsLeadGenPreviewConstants").MESSENGER_CHECKBOX:return c("React").createElement("div",{className:"_2ph_ _3-9a _3-8-"},c("React").createElement("div",{className:"_58ka"},c("React").createElement("div",{className:"_58kb"},c("React").createElement(c("Image.react"),{src:o})),c("React").createElement("span",{className:"_3-94 _2pis _58c7"},h._("Send to Messenger"))),c("React").createElement("div",{key:this.props.itemName},c("React").createElement("input",{className:"_3-8z",name:"question",type:"checkbox",value:this.props.itemName}),this.props.itemName));default:return null}};function p(){k.apply(this,arguments)}p.propTypes={context:n.object,disclaimerTitle:n.string,extraData:n.object,inlineContext:n.string,itemName:n.string,itemType:n.string.isRequired,linkText:n.string,locale:n.string.isRequired,options:n.array,pageName:n.string};f.exports=p}),null);
__d("AdsLeadGenFormPreviewQuestionsContent.react",["AdsLeadGenFormEditorConstants","AdsLeadGenFormQuestion","AdsLeadGenPreviewConstants","AdsLeadGenPreviewQuestionUnit.react","immutable","React","XUICardSection.react","flattenArray"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").PureComponent);i=h&&h.prototype;j.prototype.$AdsLeadGenFormPreviewQuestionsContent1=function(k){var l=k.get("customized_questions").merge(this.$AdsLeadGenFormPreviewQuestionsContent2(k)),m=l.map(function(n,o){return{extraData:this.$AdsLeadGenFormPreviewQuestionsContent3(n),inlineContext:this.$AdsLeadGenFormPreviewQuestionsContent4(n,o),itemName:n.get("label"),itemType:this.$AdsLeadGenFormPreviewQuestionsContent5(n),options:this.$AdsLeadGenFormPreviewQuestionsContent6(n),questionKey:o}}.bind(this)).toArray();return c("flattenArray")(this.$AdsLeadGenFormPreviewQuestionsContent7(m))};j.prototype.$AdsLeadGenFormPreviewQuestionsContent4=function(k,l){if(!this.props.previewDetails||!this.props.form.get("is_optimized_for_quality"))return null;switch(l){case c("AdsLeadGenFormEditorConstants").CMS_PII_MAP.EMAIL:return this.props.previewDetails.emailInlineContextText;case c("AdsLeadGenFormEditorConstants").CMS_PII_MAP.PHONE:return this.props.previewDetails.phoneNumberInlineContextText}return null};j.prototype.$AdsLeadGenFormPreviewQuestionsContent7=function(k){var l=k.findIndex(function(p){return p.questionKey===c("AdsLeadGenFormEditorConstants").CMS_PII_MAP.ZIP||p.questionKey===c("AdsLeadGenFormEditorConstants").CMS_PII_MAP.POST_CODE||typeof p.itemName==="string"&&p.itemName.trim().toLowerCase()==="zip code"}),m=k.findIndex(function(p){return p.itemType===c("AdsLeadGenPreviewConstants").STORE_LOCATION}),n=l>=0&&m>=0?k.splice(l,1):[],o=m>=0?k.splice(m,1):[];return k.concat(n,o)};j.prototype.$AdsLeadGenFormPreviewQuestionsContent2=function(k){var l=this.props.translatedQuestionsMap;return k.get("user_info_questions").map(function(m,n){var o=l?(l.get(n)||{}).label:"";return m.set("label",o)})};j.prototype.$AdsLeadGenFormPreviewQuestionsContent5=function(k){if(k.get("conditionalAnswerSetID")!=null)return c("AdsLeadGenPreviewConstants").CONDITIONAL_QUESTION;if(k.get("questionTypeKey")==="store-lookup")return c("AdsLeadGenPreviewConstants").STORE_LOCATION;if(k.get("questionTypeKey")==="date-time")return c("AdsLeadGenPreviewConstants").APPOINTMENT_SCHEDULING;var l=k.get("answers"),m=l&&typeof l==="object"&&l.size;return typeof m==="number"&&m>0?c("AdsLeadGenPreviewConstants").SELECT:c("AdsLeadGenPreviewConstants").TEXT};j.prototype.$AdsLeadGenFormPreviewQuestionsContent6=function(k){var l=this.$AdsLeadGenFormPreviewQuestionsContent5(k);if(l!==c("AdsLeadGenPreviewConstants").SELECT)return null;var m=k.get("answers");if(!(m instanceof c("immutable").List))return null;return m.toArray().map(function(n){return(n||{}).answer?String(n.answer):String(n)})};j.prototype.$AdsLeadGenFormPreviewQuestionsContent3=function(k){switch(this.$AdsLeadGenFormPreviewQuestionsContent5(k)){case c("AdsLeadGenPreviewConstants").CONDITIONAL_QUESTION:return new(c("AdsLeadGenFormQuestion"))({conditionalAnswerSetID:k.get("conditionalAnswerSetID"),conditionalQuestions:k.get("conditionalQuestions"),id:k.get("id"),label:k.get("label"),questionTypeKey:"conditional"});case c("AdsLeadGenPreviewConstants").APPOINTMENT_SCHEDULING:return{inlineContextEnabled:k.get("inlineContextEnabled"),inlineContext:k.get("inlineContext")};case c("AdsLeadGenPreviewConstants").STORE_LOCATION:return{storeLookupTypeKey:k.get("storeLookupTypeKey")};default:return null}};j.prototype.render=function(){var k=this.$AdsLeadGenFormPreviewQuestionsContent1(this.props.form);if(!k)return null;var l=k.map(function(m){return c("React").createElement(c("XUICardSection.react"),{key:m.questionKey},c("React").createElement(c("AdsLeadGenPreviewQuestionUnit.react"),{extraData:m.extraData,inlineContext:m.inlineContext,itemName:m.itemName,itemType:m.itemType,linkText:m.linkText,locale:this.props.locale,options:m.options,pageID:this.props.pageID,pageName:this.props.pageName}))}.bind(this),this);return c("React").createElement("div",null,l)};function j(){h.apply(this,arguments)}f.exports=j}),null);
__d("AdsLeadGenFormCreationSource",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({ADS_MANAGER:"ads_manager",AUTOMATED_ADS:"automated_ads",CREATE_FLOW:"create_flow",FMP:"fmp",FMP_LIGHWEIGHT_INTERFACES:"fmp_lightweight_interfaces",LIGHTWEIGHT_INTERFACES:"lightweight_interfaces",POWER_EDITOR:"power_editor",PAGE_PUBLISHING_TOOLS:"page_publishing_tools"})}),null);
__d("AdsLeadGenFormPreviewShareText.react",["cx","AdsLeadGenFormCreationSource","LeadAdsCMSBlock.react","Link.react","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").PureComponent);j=i&&i.prototype;function k(l){j.constructor.call(this,l)}k.prototype.render=function(){var l=null,m={page_name:this.props.pageName},n=null;switch(this.props.creationSource){case c("AdsLeadGenFormCreationSource").AUTOMATED_ADS:case c("AdsLeadGenFormCreationSource").LIGHTWEIGHT_INTERFACES:l="157449054822078";n=c("React").createElement("span",null," ",c("React").createElement(c("Link.react"),null,c("React").createElement(c("LeadAdsCMSBlock.react"),{id:"1854609058189404",isFbt:true,locale:this.props.locale,parameters:m}))," ");break;default:l="797119640397065"}var o=c("React").createElement(c("LeadAdsCMSBlock.react"),{id:l,locale:this.props.locale,parameters:m}),p=this.props.isPrivacyPolicyRequired?this.props.privacyPolicyText?this.props.privacyPolicyText:c("React").createElement(c("LeadAdsCMSBlock.react"),{id:"2061835947379631",isFbt:true,locale:this.props.locale,parameters:m}):null;return c("React").createElement("div",{className:"_3gxf _3gxe _2n0z _3-8l",key:"question_sharetext"},o,c("React").createElement(c("Link.react"),null,c("React").createElement(c("LeadAdsCMSBlock.react"),{id:"1903626473297122",isFbt:true,locale:this.props.locale}))," ",c("React").createElement(c("Link.react"),null,p),n)};f.exports=k}),null);
__d("AdsLeadGenFormPreviewSlideToSubmitButton.react",["cx","fbt","React"],(function a(b,c,d,e,f,g,h,i){"use strict";var j=function j(k){var l=k.buttonText?k.buttonText:i._("Slide to Submit");return c("React").createElement("div",{className:"_3gxh _hub"},c("React").createElement("div",{className:"_huc"},c("React").createElement("div",{className:"_hud"},l)))};f.exports=j}),null);
__d("AdsLeadGenPreviewContextCard.react",["cx","fbt","React"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=i._("Headline Text");j=babelHelpers.inherits(m,c("React").PureComponent);k=j&&j.prototype;m.prototype.render=function(){var n=this.props.form.get("context_card_title")||l;return c("React").createElement("div",{className:"_58j9"},c("React").createElement("div",{className:"_2n0x"},n),c("React").createElement("div",{className:"_3-8v _58k9"},this.$AdsLeadGenPreviewContextCard1()))};m.prototype.$AdsLeadGenPreviewContextCard1=function(){return this.props.form.get("context_card_style")==="LIST_STYLE"?this.$AdsLeadGenPreviewContextCard2():this.$AdsLeadGenPreviewContextCard3()};m.prototype.$AdsLeadGenPreviewContextCard2=function(){var n=this.props.form.get("context_card_content"),o=n.filter(function(p){return p.length>0}).map(function(p,q){return c("React").createElement("li",{key:q},p)}).toArray();return c("React").createElement("ul",null,o)};m.prototype.$AdsLeadGenPreviewContextCard3=function(){var n=this.props.form.get("context_card_content"),o=(n.first()||"").trim();return c("React").createElement("p",{className:"_fgn"},o)};function m(){j.apply(this,arguments)}f.exports=m}),null);
__d("AdsLeadGenFormPreviewContextAndQuestionsScreen.react",["cx","fbt","AdsLeadGenFormEditorConstants","AdsLeadGenFormPreviewCanvasHeader.react","AdsLeadGenFormPreviewFooterButton.react","AdsLeadGenFormPreviewHeader.react","AdsLeadGenFormPreviewQuestionsContent.react","AdsLeadGenFormPreviewShareText.react","AdsLeadGenFormPreviewSlideToSubmitButton.react","AdsLeadGenPreviewContextCard.react","Animation","Ease","immutable","LeadAdsCMSBlock.react","LeadGenDataContextCardFormat","React","ReactDOM","XUICard.react","debounce","nullthrows"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l="257859021248369",m=i._("Next"),n=i._("Submit");j=babelHelpers.inherits(o,c("React").PureComponent);k=j&&j.prototype;function o(){var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=k.constructor).call.apply(p,[this].concat(s)),this.state={isJumpToFormButtonVisible:true,scrollToExpandedFormEditorContentSection:null},this.$AdsLeadGenFormPreviewContextAndQuestionsScreen5=function(u){this.$AdsLeadGenFormPreviewContextAndQuestionsScreen2=u}.bind(this),this.$AdsLeadGenFormPreviewContextAndQuestionsScreen3=function(u){this.$AdsLeadGenFormPreviewContextAndQuestionsScreen1=u}.bind(this),this.$AdsLeadGenFormPreviewContextAndQuestionsScreen6=function(){var u=c("ReactDOM").findDOMNode(this.$AdsLeadGenFormPreviewContextAndQuestionsScreen1).getBoundingClientRect(),v=c("ReactDOM").findDOMNode(this.$AdsLeadGenFormPreviewContextAndQuestionsScreen2).getBoundingClientRect();this.setState({isJumpToFormButtonVisible:u.top>v.bottom})}.bind(this),this.$AdsLeadGenFormPreviewContextAndQuestionsScreen4=function(){this.$AdsLeadGenFormPreviewContextAndQuestionsScreen9(this.$AdsLeadGenFormPreviewContextAndQuestionsScreen1)}.bind(this),q}o.prototype.componentWillReceiveProps=function(p){if(!p.form||!this.props.form)return;var q=this.props.expandedFormEditorContentSection,r=p.expandedFormEditorContentSection,s=c("nullthrows")(this.props.form).get("context_card_is_selected"),t=s?o.nextSection(q,r,s):null;this.setState({scrollToExpandedFormEditorContentSection:t})};o.prototype.questionsContent=function(){var p=this.props.previewDetails,q=this.props.form.get("context_card_is_selected"),r=this.props.form.get("question_page_custom_headline"),s=c("React").createElement(c("LeadAdsCMSBlock.react"),{id:l,isFbt:true,locale:this.props.locale}),t=r?r:p?p.callToActionTitle:s,u=c("React").createElement("div",{className:"_2n0x",key:"title"},t),v=q?"_3hct":"";return c("React").createElement("div",{className:v,key:"questions",ref:this.$AdsLeadGenFormPreviewContextAndQuestionsScreen3},u,c("React").createElement(c("AdsLeadGenFormPreviewQuestionsContent.react"),{creationSource:this.props.creationSource,form:this.props.form,isPrivacyPolicyRequired:this.props.isPrivacyPolicyRequired,locale:this.props.locale,pageID:this.props.pageID,pageName:this.props.pageName,previewDetails:this.props.previewDetails,privacyPolicyText:this.props.privacyPolicyText,translatedQuestionsMap:this.props.translatedQuestionsMap}))};o.prototype.defaultDisclaimer=function(){var p=this.props.form.get("custom_disclaimer_is_selected");if(!p&&!this.props.form.hasReviewScreen())return c("React").createElement("div",{"data-testid":"form_preview_question_page_disclaimer_section"},c("React").createElement(c("AdsLeadGenFormPreviewShareText.react"),{creationSource:this.props.creationSource,isPrivacyPolicyRequired:this.props.isPrivacyPolicyRequired,locale:this.props.locale,pageName:this.props.pageName,privacyPolicyText:this.props.privacyPolicyText}));return null};o.prototype.footerButton=function(){__p&&__p();var p=this.props,q=p.previewDetails,r=p.form,s=r.get("context_card_is_selected"),t=r.get("context_card_format")===c("LeadGenDataContextCardFormat").CANVAS;if(s&&t&&this.state.isJumpToFormButtonVisible){var u=r.get("jump_to_form_button_label");return c("React").createElement(c("AdsLeadGenFormPreviewFooterButton.react"),{buttonText:u,onClick:this.$AdsLeadGenFormPreviewContextAndQuestionsScreen4})}var v=r.get("custom_disclaimer_is_selected")&&!r.hasReviewScreen(),w=q&&q.slideToSubmitText?q.slideToSubmitText:null;if(r.get("is_optimized_for_quality")&&!v&&!r.hasReviewScreen())return c("React").createElement(c("AdsLeadGenFormPreviewSlideToSubmitButton.react"),{buttonText:w});var x=null;if(r.hasReviewScreen()||v)x=q&&q.nextButtonText?q.nextButtonText:m;else x=q&&q.submitButtonText?q.submitButtonText:n;return c("React").createElement(c("AdsLeadGenFormPreviewFooterButton.react"),{buttonText:x})};o.prototype.render=function(){var p=!!this.props.form.get("context_card_is_selected"),q=this.props.form.get("context_card_format")===c("LeadGenDataContextCardFormat").CANVAS,r=p&&!q?c("React").createElement(c("AdsLeadGenPreviewContextCard.react"),{form:this.props.form}):null;return c("React").createElement(c("XUICard.react"),{className:"_3gxg"},c("React").createElement("div",{className:"_2rye _63hc",ref:this.$AdsLeadGenFormPreviewContextAndQuestionsScreen5,onScroll:c("debounce")(this.$AdsLeadGenFormPreviewContextAndQuestionsScreen6,100)},this.$AdsLeadGenFormPreviewContextAndQuestionsScreen7(),c("React").createElement("div",null,r,this.questionsContent(),this.defaultDisclaimer())),this.footerButton())};o.prototype.componentDidUpdate=function(p){if(p.expandedFormEditorContentSection!==this.props.expandedFormEditorContentSection)this.$AdsLeadGenFormPreviewContextAndQuestionsScreen8()};o.prototype.$AdsLeadGenFormPreviewContextAndQuestionsScreen7=function(){var p=this.props.form.get("context_card_is_selected"),q=this.props.form.get("context_card_format");if(p&&q===c("LeadGenDataContextCardFormat").CANVAS){var r=this.props.form.get("canvas"),s=r?r.get("id"):null;return c("React").createElement(c("AdsLeadGenFormPreviewCanvasHeader.react"),{canvasID:s,pageName:this.props.pageName,pagePictureURL:this.props.pagePictureURL})}else return c("React").createElement(c("AdsLeadGenFormPreviewHeader.react"),{headerImage:this.props.headerImage,pageName:this.props.pageName,pagePictureURL:this.props.pagePictureURL})};o.prototype.$AdsLeadGenFormPreviewContextAndQuestionsScreen8=function(){if(this.state.scrollToExpandedFormEditorContentSection===null||!this.$AdsLeadGenFormPreviewContextAndQuestionsScreen2)return;var p=null;if(this.state.scrollToExpandedFormEditorContentSection===c("AdsLeadGenFormEditorConstants").CONTENT_TAB.SECTIONS.QUESTIONS)p=this.$AdsLeadGenFormPreviewContextAndQuestionsScreen1;else p=this.$AdsLeadGenFormPreviewContextAndQuestionsScreen2;if(p)this.$AdsLeadGenFormPreviewContextAndQuestionsScreen9(p)};o.prototype.$AdsLeadGenFormPreviewContextAndQuestionsScreen9=function(p){var q=c("ReactDOM").findDOMNode(p);if(q&&q instanceof HTMLElement)setTimeout(function(){new(c("Animation"))(c("ReactDOM").findDOMNode(this.$AdsLeadGenFormPreviewContextAndQuestionsScreen2)).to("scrollTop",q.offsetTop-4).duration(400).ease(c("Ease").circIn).go()}.bind(this),this.props.waitTimeBeforeScrolling)};o.nextSection=function(p,q,r){if([c("AdsLeadGenFormEditorConstants").CONTENT_TAB.SECTIONS.CONTEXT_CARD,c("AdsLeadGenFormEditorConstants").CONTENT_TAB.SECTIONS.QUESTIONS].indexOf(q)<0)return null;if(q===null||p===q||!r)return null;return q};f.exports=o}),null);
__d("AdsLeadGenFormPreviewCustomDisclaimerContent.react",["cx","AdsLeadGenUtils","DraftEditor.react","EditorState","FBCheckbox.react","LeadAdsCMSBlock.react","React","emptyFunction"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").PureComponent);j=i&&i.prototype;k.prototype.render=function(){var l=c("AdsLeadGenUtils").getNewCustomDisclaimerContents(this.props.form);if(!l)return null;var m=l.options.length>0&&l.options[0]?l.options[0]:c("EditorState").createEmpty(),n=l.disclaimerTitle?String(l.disclaimerTitle):c("React").createElement(c("LeadAdsCMSBlock.react"),{id:"977257985659225",isFbt:true,locale:this.props.locale,parameters:{page_name:this.props.pageName}}),o=c("React").createElement("span",{className:"_2n0v"}," ",c("React").createElement(c("LeadAdsCMSBlock.react"),{id:"229820810698472",isFbt:true,locale:this.props.locale})),p=l.disclaimerConsents?l.disclaimerConsents.map(function(q,r){return c("React").createElement("div",{className:"_58dv",key:q.consent+r},c("React").createElement(c("FBCheckbox.react"),{checked:false,className:"_2n0w"}),c("React").createElement("label",null,c("React").createElement("span",null,q.consent),q.is_required?null:o))}):null;return c("React").createElement("div",{className:"_3-8v"},c("React").createElement("div",{className:"_2n0x"},n),c("React").createElement("div",{className:"_2n0y _3-98"},c("React").createElement(c("DraftEditor.react"),{editorState:m,readOnly:true,onChange:c("emptyFunction")})),c("React").createElement("div",{className:"_3-8z"},p))};function k(){i.apply(this,arguments)}f.exports=k}),null);
__d("AdsLeadGenFormPreviewCustomDisclaimerScreen.react",["cx","fbt","AdsLeadGenFormPreviewCustomDisclaimerContent.react","AdsLeadGenFormPreviewFooterButton.react","AdsLeadGenFormPreviewHeader.react","AdsLeadGenFormPreviewShareText.react","AdsLeadGenFormPreviewSlideToSubmitButton.react","AdsLeadGenUtils","React","XUICard.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=i._("Submit");j=babelHelpers.inherits(m,c("React").PureComponent);k=j&&j.prototype;m.prototype.$AdsLeadGenFormPreviewCustomDisclaimerScreen1=function(){var n=c("AdsLeadGenUtils").getNewCustomDisclaimerContents(this.props.form);if(!n)return null;return c("React").createElement("div",null,c("React").createElement(c("AdsLeadGenFormPreviewCustomDisclaimerContent.react"),{form:this.props.form,locale:this.props.locale,pageName:this.props.pageName}),c("React").createElement("div",null,c("React").createElement("div",{className:"_3-8v"},c("React").createElement("div",{className:"_2n0-"})),c("React").createElement(c("AdsLeadGenFormPreviewShareText.react"),{creationSource:this.props.creationSource,isPrivacyPolicyRequired:this.props.isPrivacyPolicyRequired,key:"question_sharetext",locale:this.props.locale,pageName:this.props.pageName,privacyPolicyText:n.linkText})))};m.prototype.footerButton=function(){var n=this.props.previewDetails,o=n&&n.slideToSubmitText?n.slideToSubmitText:null;if(!this.props.form.hasReviewScreen()&&this.props.form.get("is_optimized_for_quality"))return c("React").createElement(c("AdsLeadGenFormPreviewSlideToSubmitButton.react"),{buttonText:o});var p=n&&n.submitButtonText?n.submitButtonText:l;return c("React").createElement(c("AdsLeadGenFormPreviewFooterButton.react"),{buttonText:p})};m.prototype.render=function(){return c("React").createElement(c("XUICard.react"),{className:"_3gxg"},c("React").createElement("div",{className:"_2rye _63hc"},c("React").createElement(c("AdsLeadGenFormPreviewHeader.react"),{headerImage:this.props.headerImage,pageName:this.props.pageName,pagePictureURL:this.props.pagePictureURL}),this.$AdsLeadGenFormPreviewCustomDisclaimerScreen1()),this.footerButton())};function m(){j.apply(this,arguments)}f.exports=m}),null);
__d("XLeadGenFormPreviewNotificationController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/lead_gen/send_form_preview_notification/",{__asyncDialog:{type:"Int"}})}),null);
__d("AdsLeadGenFormPreviewOnDeviceDataManager",["AsyncDialog","AsyncRequest","XLeadGenFormPreviewNotificationController"],(function a(b,c,d,e,f,g){"use strict";var h={sendNotification:function i(j,k,l){var m=c("XLeadGenFormPreviewNotificationController").getURIBuilder().getURI(),n=new(c("AsyncRequest"))().setURI(m).setData({lead_gen_data_id:j}).setHandler(function(o){return k()}).setErrorHandler(function(o){return l()});c("AsyncDialog").send(n)}};f.exports=h}),null);
__d("AdsLeadGenQEStoreUtils",["AdsQEStore"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(j,k){if(j.hasError())return j.getErrorEnforcing();if(!j.isDone())return"loading";if(j.value&&!j.value.in_experiment)return"not_in_experiment";return j.getValueEnforcing().getParamBool(k)?"on":"off"}var i={getStores:function j(){return[c("AdsQEStore")]},privacyPolicyLinkStatus:function j(k){return h(c("AdsQEStore").get("lead_gen_privacy_policy_link_universe",k),"is_lead_gen_privacy_policy_link_visible")},shouldShowInformationalNux:function j(k){return h(c("AdsQEStore").get("lead_gen_informational_tip_v2",k),"show_tip")},shouldShowInlineCrmUpsellInFormSelector:function j(k){return h(c("AdsQEStore").get("leadgen_crm_upsell_on_cf",k),"can_see_tip")},canCustomizeThankYouPage:function j(k){return h(c("AdsQEStore").get("leadgen_ad_creation_universe",k),"can_customize_thank_you_page")},canSeeHandraiserNux:function j(k){return h(c("AdsQEStore").get("handraiser_upsell_lead_ads_targeting",k),"show_tip")},canSeePreviewSharingMenu:function j(k){return h(c("AdsQEStore").get("show_form_sharing_menu_button_universe",k),"ads_leadgen_form_editor_form_sharing_ui")},canSeeL2L1CopyUpsellNux:function j(k){return h(c("AdsQEStore").get("leadgen_ad_creation_universe",k),"can_see_lead_ad_l1_l2_upsell_nux")},canSeeDraftFormError:function j(k){return h(c("AdsQEStore").get("lead_gen_draft_form_error_ui_account_universe",k),"can_see_new_form_error")},canSeeHighlightedNewFormDesign:function j(k){return h(c("AdsQEStore").get("leadgen_cf_no_form_error_fix",k),"can_see_improved_form_section_to_reduce_no_form_error")},canSeeHighlightedEditDraftButton:function j(k){return h(c("AdsQEStore").get("leadgen_cf_no_form_error_fix_2",k),"can_see_highlight_edit_button")},canSeeCallBusinessInThankYouPage:function j(k){return h(c("AdsQEStore").get("lead_gen_thank_you_page_call_business_universe",k),"can_see_call_business_function")},canCreateDynamicLeadGen:function j(k){return h(c("AdsQEStore").get("ads_cf_dynamic_leadgen",k),"can_create_dynamic_lead_gen")},maybeLogExposure:function j(k){var l=k.getValue();if(l!=null)l.maybeLogExposure()}};f.exports=i}),null);
__d("AdsLeadGenFormPreviewMenuContainer.react",["ix","cx","fbt","AdsAccountStore","AdsFluxContainer","AdsLeadGenFormPreviewOnDeviceDataManager","AdsLeadGenQEStoreUtils","AdsPreviewSharingMenu.react","BIGAdoptionConfig","LeadGenDataStatus","React","SUISpinner.react","asset","emptyFunction","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l;k=babelHelpers.inherits(m,c("React").PureComponent);l=k&&k.prototype;m.getStores=function(){return[c("AdsAccountStore")].concat(c("AdsLeadGenQEStoreUtils").getStores())};m.calculateState=function(n,o){var p=o.form;if(!p)return{disableMenu:true,previewSharingExperimentStatus:"off"};var q=c("AdsAccountStore").getSelectedAccountID(),r=q?c("AdsLeadGenQEStoreUtils").canSeePreviewSharingMenu(q):"off",s=p.get("status")!==c("LeadGenDataStatus").ACTIVE;return{disableMenu:s,previewSharingExperimentStatus:r}};m.prototype.render=function(){var n=null;switch(this.state.previewSharingExperimentStatus){case"loading":n=c("React").createElement(c("SUISpinner.react"),null);break;case"on":n=c("React").createElement(c("AdsPreviewSharingMenu.react"),{disabled:this.state.disableMenu,links:this.$AdsLeadGenFormPreviewMenuContainer1()});break}return c("React").createElement("span",{className:"_1ngt"},n)};m.prototype.$AdsLeadGenFormPreviewMenuContainer1=function(){if(!this.props.form)return[];var n=this.props.form.get("id");return[this.$AdsLeadGenFormPreviewMenuContainer2(n)]};m.prototype.$AdsLeadGenFormPreviewMenuContainer2=function(n){return this.$AdsLeadGenFormPreviewMenuContainer3(c("BIGAdoptionConfig").ads_fbicon_adoption?h("390904"):h("123839"),"AdsLeadGenSendFormPreviewNotification","device",0,j._("Send notification to Facebook"),function(){this.$AdsLeadGenFormPreviewMenuContainer4(n)}.bind(this))};m.prototype.$AdsLeadGenFormPreviewMenuContainer4=function(n){c("AdsLeadGenFormPreviewOnDeviceDataManager").sendNotification(n,c("emptyFunction"),c("emptyFunction"))};m.prototype.$AdsLeadGenFormPreviewMenuContainer3=function(n,o,p,q,r,s){return{icon:n,key:o,section:p,sortPosition:q,title:r,onClick:s}};function m(){k.apply(this,arguments)}f.exports=c("AdsFluxContainer").create(m,{withProps:true,name:f.id})}),null);
__d("AdsLeadGenFormPreviewReviewScreenPersonalInfoContent.react",["cx","fbt","immutable","React"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k;j=babelHelpers.inherits(l,c("React").PureComponent);k=j&&j.prototype;l.prototype.render=function(){__p&&__p();var m=this.props.form.get("user_info_questions");if(!m)return null;var n=this.props.translatedQuestionsMap,o=m.map(function(q,r){var s=n?(n.get(r)||{}).label:"";return c("React").createElement("div",{className:"_1cly",key:"item_"+r},s)}).toArray();if(!o||o.length===0)return null;var p=this.props.previewDetails&&this.props.previewDetails.personalInfoText?this.props.previewDetails.personalInfoText:i._("Personal Info");return c("React").createElement("div",null,c("React").createElement("div",{className:"_1clx _3-95"},p),c("React").createElement("div",null,o))};function l(){j.apply(this,arguments)}f.exports=l}),null);
__d("AdsLeadGenFormPreviewReviewScreen.react",["cx","fbt","AdsLeadGenFormPreviewCustomDisclaimerContent.react","AdsLeadGenFormPreviewHeader.react","AdsLeadGenFormPreviewReviewScreenPersonalInfoContent.react","AdsLeadGenFormPreviewShareText.react","AdsLeadGenFormPreviewSlideToSubmitButton.react","immutable","React","XUICard.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k;j=babelHelpers.inherits(l,c("React").PureComponent);k=j&&j.prototype;l.prototype.render=function(){var m=this.props.form.get("custom_disclaimer_is_selected"),n=m?c("React").createElement("div",null,c("React").createElement("div",{className:"_3-8l"},c("React").createElement("div",{className:"_2n0-"})),c("React").createElement(c("AdsLeadGenFormPreviewCustomDisclaimerContent.react"),{form:this.props.form,locale:this.props.locale,pageName:this.props.pageName})):null,o=this.props.previewDetails&&this.props.previewDetails.editText?this.props.previewDetails.editText:i._("Edit"),p=this.props.previewDetails&&this.props.previewDetails.reviewYourInfoText?this.props.previewDetails.reviewYourInfoText:i._("Review your info"),q=this.props.previewDetails&&this.props.previewDetails.slideToSubmitText?this.props.previewDetails.slideToSubmitText:null;return c("React").createElement(c("XUICard.react"),{className:"_3gxg"},c("React").createElement("div",{className:"_2rye _63hc"},c("React").createElement(c("AdsLeadGenFormPreviewHeader.react"),{headerImage:this.props.headerImage,pageName:this.props.pageName,pagePictureURL:this.props.pagePictureURL}),c("React").createElement("div",{className:"_16lx"}),c("React").createElement("div",{className:"_1clq"},c("React").createElement("div",{className:"_1clv"},o),c("React").createElement("div",{className:"_1clw"},p)),c("React").createElement(c("AdsLeadGenFormPreviewReviewScreenPersonalInfoContent.react"),{form:this.props.form,previewDetails:this.props.previewDetails,translatedQuestionsMap:this.props.translatedQuestionsMap}),n,c("React").createElement("div",{className:"_3-8v _3-8-"},c("React").createElement("div",{className:"_2n0-"})),c("React").createElement(c("AdsLeadGenFormPreviewShareText.react"),{creationSource:this.props.creationSource,isPrivacyPolicyRequired:this.props.isPrivacyPolicyRequired,locale:this.props.locale,pageName:this.props.pageName,privacyPolicyText:this.props.privacyPolicyText})),c("React").createElement(c("AdsLeadGenFormPreviewSlideToSubmitButton.react"),{buttonText:q}))};function l(){j.apply(this,arguments)}f.exports=l}),null);
__d("AdsLeadGenFormPreviewThankYouScreen.react",["ix","cx","AdsApiLeadGenThankYouPageButtonType","AdsFBIconDownsized.react","AdsLeadGenFormPreviewHeader.react","AdsLeadGenFormThankYouPage","AdsLeadGenPreviewConstants","Grid.react","LeadAdsCMSBlock.react","React","XUICard.react","asset"],(function a(b,c,d,e,f,g,h,i){"use strict";var j=c("Grid.react").GridItem,k=function k(o){return c("React").createElement("div",{className:"_3-98 _2n0x"},o.headline?o.headline:c("React").createElement(c("LeadAdsCMSBlock.react"),{id:"295060534166189",isFbt:true,locale:o.locale}))},l=function l(o){return c("React").createElement("div",{className:"_2n0_"},o.body?o.body:c("React").createElement(c("LeadAdsCMSBlock.react"),{id:"823821071004521",isFbt:true,locale:o.locale,parameters:{page_name:o.pageName}}))},m=function m(o){var p=c("React").createElement(c("AdsFBIconDownsized.react"),{className:"_3-91",src:h("413202")}),q=o.buttonType===c("AdsApiLeadGenThankYouPageButtonType").VIEW_WEBSITE||!o.buttonType?c("React").createElement(c("LeadAdsCMSBlock.react"),{id:"876494905781358",isFbt:true,locale:o.locale}):null;return c("React").createElement("div",{className:"_3gxh"},c("React").createElement(c("Grid.react"),{className:"_3gwp",cols:1},c("React").createElement(j,{className:"_3gwq _3gww _3gwv _3gwt"},o.buttonType===c("AdsApiLeadGenThankYouPageButtonType").CALL_BUSINESS?p:null,o.buttonText?o.buttonText:q)))},n=function n(o){return c("React").createElement(c("XUICard.react"),{className:"_3gxg"},c("React").createElement("div",{className:"_2rye",style:{height:c("AdsLeadGenPreviewConstants").HEIGHT_NO_DISCLAIMER+"px"}},c("React").createElement(c("AdsLeadGenFormPreviewHeader.react"),{headerImage:o.headerImage,pageName:o.pageName,pagePictureURL:o.pagePictureURL}),c("React").createElement("div",{className:"_2pib _3gxd"},c("React").createElement(k,{headline:o.thankYouPage&&o.thankYouPage.title,locale:o.locale}),c("React").createElement(l,{body:o.thankYouPage&&o.thankYouPage.body,locale:o.locale,pageName:o.pageName}))),c("React").createElement(m,{buttonText:o.thankYouPage&&o.thankYouPage.button_text,buttonType:o.thankYouPage&&o.thankYouPage.button_type,locale:o.locale}))};f.exports=n}),null);
__d("AdsLeadGenPreviewContent",["ix","fbt","BIGAdoptionConfig","React","SUIGlyphIcon.react","asset","fbglyph"],(function a(b,c,d,e,f,g,h,i){"use strict";var j=c("React").createElement(c("SUIGlyphIcon.react"),{srcDefault:c("BIGAdoptionConfig").ads_fbicon_adoption?h("383771"):h("123710"),srcDisabled:c("BIGAdoptionConfig").ads_fbicon_adoption?h("407692"):h("126914")}),k={contextCard:i._("Welcome Screen"),questions:i._("Form"),customDisclaimer:i._("Custom Disclaimer"),reviewScreen:i._("Review Screen"),thankYouPage:i._("Thank You Screen")},l=c("React").createElement(c("SUIGlyphIcon.react"),{srcDefault:h("123706"),srcDisabled:h("126910")});f.exports={PREVIEW_NEXT_PAGE_ICON:j,PREVIEW_PAGE_TITLES:k,PREVIEW_PREVIOUS_PAGE_ICON:l}}),null);
__d("AdsLeadGenFormPreview.react",["cx","fbt","AdsLeadGenFormPreviewContextAndQuestionsScreen.react","AdsLeadGenFormPreviewCustomDisclaimerScreen.react","AdsLeadGenFormPreviewMenuContainer.react","AdsLeadGenFormPreviewReviewScreen.react","AdsLeadGenFormPreviewThankYouScreen.react","AdsLeadGenPreviewContent","immutable","React","SUIButton.react","SUIButtonGroup.react","SUISpinner.react","joinClasses","nullthrows"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("AdsLeadGenPreviewContent").PREVIEW_PAGE_TITLES,m=c("AdsLeadGenPreviewContent").PREVIEW_NEXT_PAGE_ICON,n=c("AdsLeadGenPreviewContent").PREVIEW_PREVIOUS_PAGE_ICON,o=322,p="_42-r",q="_42-s",r="_4x6k",s=i._("Higher Intent"),t=i._("More Volume"),u=i._("Form Preview");j=babelHelpers.inherits(v,c("React").Component);k=j&&j.prototype;function v(){var w,x;for(var y=arguments.length,z=Array(y),A=0;A<y;A++)z[A]=arguments[A];return x=(w=k.constructor).call.apply(w,[this].concat(z)),this.state={animatePageTransitions:true,previousSelectedPageIndex:0,selectedPageIndex:0},this.$AdsLeadGenFormPreview8=function(){var B=this.state.selectedPageIndex-1;this.setState({animatePageTransitions:true,previousSelectedPageIndex:this.state.selectedPageIndex,selectedPageIndex:B})}.bind(this),this.$AdsLeadGenFormPreview9=function(){var B=this.state.selectedPageIndex+1;this.setState({animatePageTransitions:true,previousSelectedPageIndex:this.state.selectedPageIndex,selectedPageIndex:B})}.bind(this),x}v.prototype.componentWillReceiveProps=function(w){if(!w.form||!this.props.form)return;var x=this.$AdsLeadGenFormPreview1(),y=this.$AdsLeadGenFormPreview1(w),z=c("nullthrows")(x.pages[this.state.selectedPageIndex]),A=w.expandedFormEditorContentSection===this.props.expandedFormEditorContentSection?null:w.expandedFormEditorContentSection,B=v.nextState({currentKeyContent:x,currentPage:z,expandedFormEditorContentSection:A,nextKeyContent:y});this.setState(babelHelpers["extends"]({},B,{previousSelectedPageIndex:this.state.selectedPageIndex}))};v.prototype.render=function(){if(this.props.isLoading)return c("React").createElement("div",{className:p},c("React").createElement("div",{className:q},c("React").createElement("span",{className:r},c("React").createElement(c("SUISpinner.react"),null))));var w=this.$AdsLeadGenFormPreview2(),x=c("nullthrows")(this.props.form),y=c("React").createElement("span",null,x.get("is_optimized_for_quality")?s:t," - ",u),z=null;if(!this.props.expandedFormEditorContentSection)z=c("React").createElement(c("AdsLeadGenFormPreviewMenuContainer.react"),{form:this.props.form});return c("React").createElement("div",{className:"_42-r"},c("React").createElement("div",{className:c("joinClasses")(q,"_5zhg")},c("React").createElement("h3",{className:"_5zhh"},y),z,c("React").createElement("div",{className:"_5zhi"},c("React").createElement("div",{className:"_42-t"},this.$AdsLeadGenFormPreview3())),c("React").createElement("footer",{className:"_42-v _5zhh"},c("React").createElement("label",null,l[w]),this.$AdsLeadGenFormPreview4(),c("React").createElement("nav",null,c("React").createElement(c("SUIButtonGroup.react"),null,this.$AdsLeadGenFormPreview5(),this.$AdsLeadGenFormPreview6())))))};v.prototype.$AdsLeadGenFormPreview4=function(){var w=this.$AdsLeadGenFormPreview7(),x=this.state.selectedPageIndex+1,y=w.length;return c("React").createElement("span",null,i._("{currentPage} of {totalPages}",[i.param("currentPage",x),i.param("totalPages",y)]))};v.prototype.$AdsLeadGenFormPreview3=function(){__p&&__p();var w=c("nullthrows")(this.props.form),x=this.props,y=x.creationSource,z=x.headerImage,A=x.isPrivacyPolicyRequired,B=x.previewDetails,C=this.props.page||{},D=C.pictureURL,E=C.name,F=C.id,G=w.get("privacy_policy_link_text"),H=w.get("locale"),I=o*this.state.selectedPageIndex,J=Math.abs(this.state.previousSelectedPageIndex-this.state.selectedPageIndex),K=J*.25,L=this.state.animatePageTransitions?K+"s":"0s",M=w.get("thank_you_page");return this.$AdsLeadGenFormPreview7().map(function(N,O){__p&&__p();var P=void 0;switch(N){case"customDisclaimer":P=c("React").createElement(c("AdsLeadGenFormPreviewCustomDisclaimerScreen.react"),{creationSource:y,form:w,headerImage:z,isPrivacyPolicyRequired:A,locale:H,pageName:E,pagePictureURL:D,previewDetails:B});break;case"questions":P=c("React").createElement(c("AdsLeadGenFormPreviewContextAndQuestionsScreen.react"),{creationSource:y,expandedFormEditorContentSection:this.props.expandedFormEditorContentSection,form:w,headerImage:z,isPrivacyPolicyRequired:A,key:O,locale:H,pageID:F,pageName:E,pagePictureURL:D,previewDetails:B,privacyPolicyText:G,translatedQuestionsMap:this.props.translatedQuestionsMap,waitTimeBeforeScrolling:K});break;case"reviewScreen":P=c("React").createElement(c("AdsLeadGenFormPreviewReviewScreen.react"),{creationSource:y,form:w,headerImage:z,isPrivacyPolicyRequired:A,key:O,locale:H,pageName:E,pagePictureURL:D,previewDetails:B,privacyPolicyText:G,translatedQuestionsMap:this.props.translatedQuestionsMap});break;case"thankYouPage":P=c("React").createElement(c("AdsLeadGenFormPreviewThankYouScreen.react"),{headerImage:z,locale:H,pageName:E,pagePictureURL:D,thankYouPage:M});break}var Q={transform:"translateX(-"+I+"px)",left:o*O,transition:L};return c("React").createElement("div",{className:"_42-p",key:O,style:Q},c("React").createElement("div",{className:"_4t03"},P))}.bind(this))};v.prototype.$AdsLeadGenFormPreview2=function(){var w=this.$AdsLeadGenFormPreview7();return w[this.state.selectedPageIndex]};v.prototype.$AdsLeadGenFormPreview7=function(w){var x=c("nullthrows")(w&&w.form||this.props.form),y=x.hasReviewScreen(),z=x.get("custom_disclaimer_is_selected")&&!y;return["questions"].concat(z?["customDisclaimer"]:[],y?["reviewScreen"]:[],["thankYouPage"])};v.prototype.$AdsLeadGenFormPreview1=function(w){var x=c("nullthrows")(w&&w.form||this.props.form),y=x.get("custom_disclaimer_is_selected"),z=x.get("context_card_is_selected")!=null?x.get("context_card_is_selected")===true:true;return{hasContextCard:z,hasCustomDisclaimer:y,pages:this.$AdsLeadGenFormPreview7(w)}};v.prototype.$AdsLeadGenFormPreview5=function(){var w=this.state.selectedPageIndex===0;return c("React").createElement(c("SUIButton.react"),{disabled:w,icon:n,label:i._("Previous"),labelIsHidden:true,onClick:this.$AdsLeadGenFormPreview8})};v.prototype.$AdsLeadGenFormPreview6=function(){var w=this.$AdsLeadGenFormPreview7(),x=this.state.selectedPageIndex===w.length-1;return c("React").createElement(c("SUIButton.react"),{disabled:x,icon:m,label:i._("Next"),labelIsHidden:true,onClick:this.$AdsLeadGenFormPreview9})};v.nextState=function(w){__p&&__p();var x=w.currentKeyContent,y=w.currentPage,z=w.expandedFormEditorContentSection,A=w.nextKeyContent,B=x.pages,C=A.pages,D=function D(G){return{animatePageTransitions:y!==G,selectedPageIndex:C.indexOf(G)}};if(!x.hasContextCard&&A.hasContextCard)return D("questions");if(!x.hasCustomDisclaimer&&A.hasCustomDisclaimer)if(C.includes("customDisclaimer"))return D("customDisclaimer");else if(C.includes("reviewScreen"))return D("reviewScreen");if(x.hasContextCard&&!A.hasContextCard)return{animatePageTransitions:false,selectedPageIndex:C.indexOf(y)};if(x.hasCustomDisclaimer&&!A.hasCustomDisclaimer){if(y==="customDisclaimer")return D("questions");return D(y)}if(z==="contextCard"&&A.hasContextCard)return D("questions");if(z==="privacyPolicy")if(C.includes("customDisclaimer"))return D("customDisclaimer");else if(C.includes("reviewScreen"))return D("reviewScreen");else return D("questions");if(z){var E=C.indexOf(z);if(E===-1)return{};return{animatePageTransitions:true,selectedPageIndex:E}}if(B.length>C.length)if(C.indexOf(y)<0){var F=Math.max(B.indexOf(y)-1,0);return{animatePageTransitions:true,selectedPageIndex:F}}else return{animatePageTransitions:false,selectedPageIndex:C.indexOf(y)};return{}};f.exports=v}),null);
__d("AdsLeadGenFormEditorPreviewContainer.react",["AdsFluxContainer","AdsLeadGenFormEditorStore","AdsLeadGenFormEditorUserInfoQuestionStore","AdsLeadGenFormEditorViewStore","AdsLeadGenFormPreview.react","AdsLeadGenFormPreviewDetailsStore","AdsLeadGenUtils","immutable","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;j.getStores=function(){return[c("AdsLeadGenFormEditorStore"),c("AdsLeadGenFormEditorUserInfoQuestionStore"),c("AdsLeadGenFormEditorViewStore"),c("AdsLeadGenFormPreviewDetailsStore")]};j.calculateState=function(k){var l=c("AdsLeadGenFormEditorViewStore").getExpandedContentSection(),m=c("AdsLeadGenFormEditorViewStore").getFormID(),n=m?c("AdsLeadGenFormEditorStore").getForm(m):null,o=!n,p=this.$AdsLeadGenFormEditorPreviewContainer1(n),q=c("AdsLeadGenFormEditorViewStore").getPage(),r=n?n.get("locale"):null,s=c("AdsLeadGenFormEditorViewStore").getCallToActionType(),t=c("AdsLeadGenFormPreviewDetailsStore").getPreviewDetails(s,r,q),u=r?c("AdsLeadGenFormEditorUserInfoQuestionStore").getLookupMap(r):null;return{creationSource:c("AdsLeadGenFormEditorViewStore").getCreationSource(),expandedFormEditorContentSection:l,form:n,headerImage:p,isLoading:o,isPrivacyPolicyRequired:c("AdsLeadGenFormEditorViewStore").getIsPrivacyPolicyRequired(),page:q,previewDetails:t,translatedQuestionsMap:u}};j.prototype.render=function(){return c("React").createElement(c("AdsLeadGenFormPreview.react"),this.state)};j.$AdsLeadGenFormEditorPreviewContainer1=function(k){if(!k)return null;var l=c("AdsLeadGenFormEditorViewStore").getAdImage(),m=c("AdsLeadGenFormEditorViewStore").getIsCarousel(),n=k.get("context_card_is_cover_photo_selected")||!l,o=k.get("context_card_is_selected");return c("AdsLeadGenUtils").getFormPreviewHeaderImg(l,m,o,n,k.get("context_card_cover_photo"))};function j(){h.apply(this,arguments)}f.exports=c("AdsFluxContainer").create(j,{name:f.id})}),null);
__d("BoostedComponentAdsCreationSpec.react",["cx","AdsCFSpecViewerHelper","React","boostedComponentGKCheck"],(function a(b,c,d,e,f,g,h){"use strict";var i=function i(j){var k=j.creativeSpec;if(!c("boostedComponentGKCheck")("ads_editor_debug"))return null;return c("React").createElement("pre",{className:"_s_o"},c("AdsCFSpecViewerHelper").format(k))};f.exports=i}),null);
__d("AdReviewAppealsAction",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({APPEAL_ACKNOWLEDGE_STATUS_CHANGE:"APPEAL_ACKNOWLEDGE_STATUS_CHANGE",APPEAL_ACKNOWLEDGE_POLICY_CONTENT:"APPEAL_ACKNOWLEDGE_POLICY_CONTENT",APPEAL_COMMENT_UPDATE:"APPEAL_COMMENT_UPDATE",APPEAL_DIALOG_OPEN:"APPEAL_DIALOG_OPEN",APPEAL_DIALOG_CLOSE:"APPEAL_DIALOG_CLOSE",APPEAL_SUBMITTED:"APPEAL_SUBMITTED",APPEAL_SUBMITTED_SHOW_POLICY:"APPEAL_SUBMITTED_SHOW_POLICY",APPEAL_CREATED:"APPEAL_CREATED",APPEAL_CREATION_ERROR:"APPEAL_CREATION_ERROR",APPEAL_SET_AD_ACCOUNT_ID:"APPEAL_SET_AD_ACCOUNT_ID",APPEAL_STATUS_FETCH:"APPEAL_STATUS_FETCH",APPEAL_STATUS_FETCH_COMPLETE:"APPEAL_STATUS_FETCH_COMPLETE",MOBILE_FORM_LOADED:"appeal_boosted_post_form_loaded",MOBILE_SUBMIT_BUTTON_PRESSED:"appeal_boosted_post_submit_button_pressed",MOBILE_AGREE_BUTTON_PRESSED:"appeal_boosted_post_agree_button_pressed",MOBILE_DISAGREE_BUTTON_PRESSED:"appeal_boosted_post_disagree_button_pressed",MOBILE_SUBMIT_SUCCESS:"appeal_boosted_post_submit_success",MOBILE_SUBMIT_ERROR:"appeal_boosted_post_submit_error"})}),null);
__d("AdReviewAppealsDataDispatcher",["AdReviewAppealsAction","AdsDataAtom","AdsLoadState_LEGACY"],(function a(b,c,d,e,f,g){"use strict";var h={dispatchAppealsDataFromViewAction:function i(j,k){c("AdsDataAtom").handleUpdateFromViewAction({data:j,type:k})},dispatchAppealCreationSuccess:function i(j,k,l){this.dispatchAppealsDataFromViewAction({adgroupID:j,srtJobID:k,supportCaseFeedbackID:l,loadStateAndStepInfo:{loadState:c("AdsLoadState_LEGACY").LOADED,appealStep:c("AdReviewAppealsAction").APPEAL_CREATED}},c("AdReviewAppealsAction").APPEAL_CREATED)},dispatchAppealCreationFailure:function i(j){var k=j;if(!k)k=0;this.dispatchAppealsDataFromViewAction({adgroupID:j,loadStateAndStepInfo:{loadState:c("AdsLoadState_LEGACY").LOADED,appealStep:c("AdReviewAppealsAction").APPEAL_CREATION_ERROR}},c("AdReviewAppealsAction").APPEAL_CREATION_ERROR)}};f.exports=h}),null);
__d("XBusinessIntegrityAdAppealCreationAsyncController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/integrity/appeals/creation/ajax/",{})}),null);
__d("XBusinessIntegrityAdAppealStatusAsyncController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/integrity/appeals/status/ajax/",{adgroup_id:{type:"FBID",required:true}})}),null);
__d("AdReviewAppealsDataLoader",["AdReviewAppealsAction","AdReviewAppealsDataDispatcher","AsyncRequest","XBusinessIntegrityAdAppealCreationAsyncController","XBusinessIntegrityAdAppealStatusAsyncController"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h={requestAppealCreation:function i(j,k){var l=c("XBusinessIntegrityAdAppealCreationAsyncController").getURIBuilder().getURI();new(c("AsyncRequest"))().setURI(l).setData({adgroup_id:j,advertiser_comment:k}).setMethod("POST").setHandler(function(m){this.handleAppealCreationResponse(j,m.getPayload())}.bind(this)).setErrorHandler(function(m){return c("AdReviewAppealsDataDispatcher").dispatchAppealCreationFailure(j)}).send()},requestAppealStatus:function i(j){var k=c("XBusinessIntegrityAdAppealStatusAsyncController").getURIBuilder().setFBID("adgroup_id",j).getURI();new(c("AsyncRequest"))().setURI(k).setMethod("GET").setReadOnly(true).setHandler(function(l){this.handleAppealStatusResponse(j,l.getPayload())}.bind(this)).send()},handleAppealCreationResponse:function i(j,k){if(!k.appeal_creation_succeeded){c("AdReviewAppealsDataDispatcher").dispatchAppealCreationFailure(j);return}c("AdReviewAppealsDataDispatcher").dispatchAppealCreationSuccess(j,k.srt_job_id,k.support_case_feedback_id)},handleAppealStatusResponse:function i(j,k){c("AdReviewAppealsDataDispatcher").dispatchAppealsDataFromViewAction({adgroupID:j,payload:k},c("AdReviewAppealsAction").APPEAL_STATUS_FETCH_COMPLETE)}};f.exports=h}),null);
__d("BusinessIntegrityAppealTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(){this.clear()}h.prototype.log=function(){c("GeneratedLoggerUtils").log("logger:BusinessIntegrityAppealLoggerConfig",this.$BusinessIntegrityAppealTypedLogger1,c("Banzai").BASIC)};h.prototype.logVital=function(){c("GeneratedLoggerUtils").log("logger:BusinessIntegrityAppealLoggerConfig",this.$BusinessIntegrityAppealTypedLogger1,c("Banzai").VITAL)};h.prototype.clear=function(){this.$BusinessIntegrityAppealTypedLogger1={};return this};h.prototype.updateData=function(j){this.$BusinessIntegrityAppealTypedLogger1=babelHelpers["extends"]({},this.$BusinessIntegrityAppealTypedLogger1,j);return this};h.prototype.setAdAccountID=function(j){this.$BusinessIntegrityAppealTypedLogger1.ad_account_id=j;return this};h.prototype.setAdID=function(j){this.$BusinessIntegrityAppealTypedLogger1.ad_id=j;return this};h.prototype.setAppID=function(j){this.$BusinessIntegrityAppealTypedLogger1.app_id=j;return this};h.prototype.setBotID=function(j){this.$BusinessIntegrityAppealTypedLogger1.bot_id=j;return this};h.prototype.setEvent=function(j){this.$BusinessIntegrityAppealTypedLogger1.event=j;return this};h.prototype.setException=function(j){this.$BusinessIntegrityAppealTypedLogger1.exception=j;return this};h.prototype.setFbtraceID=function(j){this.$BusinessIntegrityAppealTypedLogger1.fbtrace_id=j;return this};h.prototype.setSrtJobID=function(j){this.$BusinessIntegrityAppealTypedLogger1.srt_job_id=j;return this};h.prototype.setVC=function(j){this.$BusinessIntegrityAppealTypedLogger1.vc=j;return this};h.prototype.updateExtraData=function(j){j=c("nullthrows")(c("GeneratedLoggerUtils").serializeMap(j));c("GeneratedLoggerUtils").checkExtraDataFieldNames(j,i);this.$BusinessIntegrityAppealTypedLogger1=babelHelpers["extends"]({},this.$BusinessIntegrityAppealTypedLogger1,j);return this};h.prototype.addToExtraData=function(j,k){var l={};l[j]=k;return this.updateExtraData(l)};var i={ad_account_id:true,ad_id:true,app_id:true,bot_id:true,event:true,exception:true,fbtrace_id:true,srt_job_id:true,vc:true};f.exports=h}),null);
__d("AdsReviewAppealUtils",["BusinessIntegrityAppealTypedLogger","WebApiApplication"],(function a(b,c,d,e,f,g){"use strict";var h={logAppealsAction:function i(j,k,l,event){new(c("BusinessIntegrityAppealTypedLogger"))().setEvent(event).setAdAccountID(j).setAppID(c("WebApiApplication").getClientID()).setFbtraceID(k).setSrtJobID(l).log()}};f.exports=h}),null);
__d("AdReviewAppealsStore",["AdReviewAppealsAction","AdReviewAppealsDataLoader","AdsDataAtom","AdsLoadState_LEGACY","AdsReviewAppealUtils","AdsSelectedAccountIDGetter","FluxStore","Map","Set","adsBaseStoreMixin_DEPRECATED","getByPath"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=new(c("Set"))([c("AdReviewAppealsAction").APPEAL_DIALOG_OPEN,c("AdReviewAppealsAction").APPEAL_DIALOG_CLOSE,c("AdReviewAppealsAction").APPEAL_ACKNOWLEDGE_STATUS_CHANGE,c("AdReviewAppealsAction").APPEAL_SUBMITTED,c("AdReviewAppealsAction").APPEAL_CREATED,c("AdReviewAppealsAction").APPEAL_CREATION_ERROR,c("AdReviewAppealsAction").APPEAL_STATUS_FETCH,c("AdReviewAppealsAction").APPEAL_STATUS_FETCH_COMPLETE]);h=babelHelpers.inherits(k,c("FluxStore"));i=h&&h.prototype;function k(){i.constructor.call(this,c("AdsDataAtom"));c("adsBaseStoreMixin_DEPRECATED")(this);this.$AdReviewAppealsStoreClass1()}k.prototype.getStoreName=function(){return"AdReviewAppealsStore"};k.prototype.$AdReviewAppealsStoreClass1=function(){this.storeState={adAccountID:null,adgroupIDToAppealStatus:new(c("Map"))(),adgroupIDToAppealStepInfo:new(c("Map"))(),advertiserComment:"",appealError:false,appealPostCreationFeedbackID:"",appealSRTJobID:null,appealSuccess:false,policyContentAcknowledged:false,policyContentSubmitted:false,statusChangeAcknowledged:true}};k.prototype.__onDispatch=function(m){__p&&__p();var n=m.action,o=true,p=void 0;switch(n.actionType){case c("AdReviewAppealsAction").APPEAL_STATUS_FETCH:p=n.data.adgroupID;this.submitAppealStatusRequest(p);this.$AdReviewAppealsStoreClass2(p);o=false;break;case c("AdReviewAppealsAction").APPEAL_STATUS_FETCH_COMPLETE:var q=n.data.payload;this.storeState.adgroupIDToAppealStatus.set(n.data.adgroupID,{appealed:q.appeal_created,caseFeedbackID:q.support_case_feedback_id,isAppealAllowed:q.is_appeal_allowed!=false,loadState:c("AdsLoadState_LEGACY").LOADED,shouldFetchStatus:false,viewerIsCreator:q.viewer_is_creator});break;case c("AdReviewAppealsAction").APPEAL_DIALOG_OPEN:this.clearStoreData();this.storeState.policyContentSubmitted=true;this.storeState.adgroupIDToAppealStepInfo.set(n.data.adgroupID,n.data.loadStateAndStepInfo);break;case c("AdReviewAppealsAction").APPEAL_DIALOG_CLOSE:p=n.data.adgroupID;var r=this.getAdgroupAppealStatusPayload(p);if(this.storeState.appealSuccess&&r)this.storeState.adgroupIDToAppealStatus.set(p,{appealed:r.appealed,caseFeedbackID:r.caseFeedbackID,isAppealAllowed:r.isAppealAllowed,loadState:c("AdsLoadState_LEGACY").LOADED,shouldFetchStatus:true,viewerIsCreator:true});this.clearStoreData();break;case c("AdReviewAppealsAction").APPEAL_SUBMITTED:this.storeState.adgroupIDToAppealStepInfo.set(n.data.adgroupID,{loadState:c("AdsLoadState_LEGACY").LOADING,appealStep:c("AdReviewAppealsAction").APPEAL_SUBMITTED});this.submitAppealCreationRequest(n.data);break;case c("AdReviewAppealsAction").APPEAL_ACKNOWLEDGE_STATUS_CHANGE:this.storeState.statusChangeAcknowledged=!this.storeState.statusChangeAcknowledged;break;case c("AdReviewAppealsAction").APPEAL_SET_AD_ACCOUNT_ID:var s=c("getByPath")(n,["data","accountID"]);if(s)this.storeState.adAccountID=s;else this.storeState.adAccountID=c("AdsSelectedAccountIDGetter").get({});break;case c("AdReviewAppealsAction").APPEAL_COMMENT_UPDATE:this.storeState.advertiserComment=n.data.advertiserComment;break;case c("AdReviewAppealsAction").APPEAL_CREATED:if(n.data.supportCaseFeedbackID)this.storeState.appealPostCreationFeedbackID=n.data.supportCaseFeedbackID;this.storeState.adgroupIDToAppealStepInfo.set(n.data.adgroupID,n.data.loadStateAndStepInfo);this.storeState.appealSRTJobID=n.data.srtJobID;this.storeState.appealSuccess=true;break;case c("AdReviewAppealsAction").APPEAL_CREATION_ERROR:this.storeState.adgroupIDToAppealStepInfo.set(n.data.adgroupID,n.data.loadStateAndStepInfo);this.storeState.appealError=true;break;case c("AdReviewAppealsAction").APPEAL_ACKNOWLEDGE_POLICY_CONTENT:this.storeState.policyContentAcknowledged=!this.storeState.policyContentAcknowledged;break;case c("AdReviewAppealsAction").APPEAL_SUBMITTED_SHOW_POLICY:this.storeState.adgroupIDToAppealStepInfo.set(n.data.adgroupID,n.data.loadStateAndStepInfo);break}this.$AdReviewAppealsStoreClass3(o,n.actionType)};k.prototype.$AdReviewAppealsStoreClass2=function(m){this.storeState.adgroupIDToAppealStatus.set(m,{appealed:false,caseFeedbackID:null,isAppealAllowed:true,loadState:c("AdsLoadState_LEGACY").LOADING,shouldFetchStatus:false,viewerIsCreator:false})};k.prototype.clearStoreData=function(){this.storeState.adgroupIDToAppealStepInfo=new(c("Map"))();this.storeState.advertiserComment="";this.storeState.appealError=false;this.storeState.appealSuccess=false;this.storeState.policyContentSubmitted=false;this.storeState.policyContentAcknowledged=false;this.storeState.statusChangeAcknowledged=true};k.prototype.submitAppealCreationRequest=function(m){c("AdReviewAppealsDataLoader").requestAppealCreation(m.adgroupID,this.storeState.advertiserComment)};k.prototype.submitAppealStatusRequest=function(m){c("AdReviewAppealsDataLoader").requestAppealStatus(m)};k.prototype.getAdvertiserComment=function(){return this.storeState.advertiserComment};k.prototype.getAdgroupAppealStatusPayload=function(m){return this.storeState.adgroupIDToAppealStatus.get(m)};k.prototype.getAdgroupPayload=function(m){return this.storeState.adgroupIDToAppealStepInfo.get(m)};k.prototype.getAppealPostCreationFeedbackID=function(){return this.storeState.appealPostCreationFeedbackID};k.prototype.isPolicyContentAcknowledged=function(){return this.storeState.policyContentAcknowledged};k.prototype.isPolicyContentSubmitted=function(){return this.storeState.policyContentSubmitted};k.prototype.isStatusChangeAcknowledged=function(){return this.storeState.statusChangeAcknowledged};k.prototype.isAppealCreationFailed=function(){return this.storeState.appealError};k.prototype.isAppealSucceeded=function(){return this.storeState.appealSuccess};k.prototype.shouldFetchAppealStatus=function(m){var n=this.storeState.adgroupIDToAppealStatus.get(m);if(!n)return true;return n.shouldFetchStatus};k.prototype.$AdReviewAppealsStoreClass3=function(m,event){if(this.storeState.adAccountID&&j.has(event))c("AdsReviewAppealUtils").logAppealsAction(this.storeState.adAccountID,null,this.storeState.appealSRTJobID,event);m&&this.__emitChange()};var l=new k();f.exports=l}),null);
__d("AdsCMsDataCmsContentLoadFailureDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"ADS_CMS_CONTENT_LOAD_FAILURE");f.exports=h}),null);
__d("AdsCMsDataCmsContentLoadedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"ADS_CMS_CONTENT_LOADED");f.exports=h}),null);
__d("AdsCMSDispatcher",["AdsCMsDataCmsContentLoadedDataAction","AdsCMsDataCmsContentLoadFailureDataAction","immutable"],(function a(b,c,d,e,f,g){"use strict";var h={dispatchLoadedCMS:function i(j,k,l){var m=c("immutable").Map().set(j,{cmsID:j,title:k,content:l});c("AdsCMsDataCmsContentLoadedDataAction").dispatch({data:m})},dispatchCMSLoadError:function i(j){var k=c("immutable").Map().set(j,{cmsID:j});c("AdsCMsDataCmsContentLoadFailureDataAction").dispatch({data:k})}};f.exports=h}),null);
__d("XAdsProductCMSContentAsyncController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/ajax/product_cms_content/",{cms_id:{type:"FBID",required:true}})}),null);
__d("AdsCMSDataLoader",["AdsCMSDispatcher","AsyncRequest","XAdsProductCMSContentAsyncController"],(function a(b,c,d,e,f,g){"use strict";var h={requestCMSContent:function i(j){var k=c("XAdsProductCMSContentAsyncController").getURIBuilder().setFBID("cms_id",j).getURI();new(c("AsyncRequest"))().setURI(k).setAllowCrossPageTransition(true).setOption("handleErrorAfterUnload",true).setErrorHandler(function(l){c("AdsCMSDispatcher").dispatchCMSLoadError(j)}).send()}};f.exports=h}),null);
__d("AdsCMSDataManager",["AdsBaseDataManager","AdsCMSDataLoader"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("AdsBaseDataManager"));i=h&&h.prototype;j.prototype.loadAll=function(k){k.forEach(function(l){return this.load(l)}.bind(this))};j.prototype.load=function(k){c("AdsCMSDataLoader").requestCMSContent(k)};function j(){h.apply(this,arguments)}f.exports=new j()}),null);
__d("AdsCMSStore",["fbt","AdsBaseDataStore","AdsCMsDataCmsContentLoadedDataAction","AdsCMsDataCmsContentLoadFailureDataAction","AdsCMSDataManager","AdsLoadState_LEGACY","DOM"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("AdsBaseDataStore"));j=i&&i.prototype;k.prototype.getDataManager=function(){return c("AdsCMSDataManager")};k.prototype.__onDispatch=function(m){var n=m.action;switch(n.actionType){case c("AdsCMsDataCmsContentLoadedDataAction").actionType:this.__handleData(n.data,c("AdsLoadState_LEGACY").LOADED);break;case c("AdsCMsDataCmsContentLoadFailureDataAction").actionType:var o=n.data.map(function(p){return Object.assign({},p,{title:h._("Error loading CMS Text").toString(),content:c("DOM").create("p",{},h._("There was an error loading content text.").toString()),loadError:true})});this.__handleData(o,c("AdsLoadState_LEGACY").LOADED);break}};function k(){i.apply(this,arguments)}var l=new k();f.exports=l}),null);
__d("AdsIntegrityActionType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({DISAPPROVAL_REASONS_LOADED:"ADS_INTEGRITY_DISAPPROVAL_REASONS_LOADED",COMP_DISAPPROVAL_REASONS_LOADED:"ADS_INTEGRITY_COMP_DISAPPROVAL_REASONS_LOADED"})}),null);
__d("XAdsIntegrityComponentDisapprovalReasonAsyncController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/integrity/ajax/comp_disapproval/",{adgroup_id:{type:"String",required:true}})}),null);
__d("XAdsIntegrityDisapprovalReasonAsyncController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/integrity/ajax/disapproval/",{adgroup_id:{type:"String",required:true}})}),null);
__d("AdsIntegrityContentDataLoader",["AsyncRequest","XAdsIntegrityComponentDisapprovalReasonAsyncController","XAdsIntegrityDisapprovalReasonAsyncController"],(function a(b,c,d,e,f,g){"use strict";var h={requestDisapprovalReason:function i(j){var k=c("XAdsIntegrityDisapprovalReasonAsyncController").getURIBuilder().setString("adgroup_id",j).getURI();new(c("AsyncRequest"))().setURI(k).setAllowCrossPageTransition(true).send()},requestCompDisapprovalReason:function i(j){var k=c("XAdsIntegrityComponentDisapprovalReasonAsyncController").getURIBuilder().setString("adgroup_id",j).getURI();new(c("AsyncRequest"))().setURI(k).setAllowCrossPageTransition(true).send()}};f.exports=h}),null);
__d("AdsIntegrityDisapprovalReasonsLoadedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"ADS_INTEGRITY_DISAPPROVAL_REASONS_LOADED");f.exports=h}),null);
__d("AdsIntegrityContentConfigStore",["AdsDataAtom","AdsIntegrityActionType","AdsIntegrityContentDataLoader","AdsIntegrityDisapprovalReasonsLoadedDataAction","AdsLoadState_LEGACY","FluxStore","Map","adsBaseStoreMixin_DEPRECATED"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("FluxStore"));i=h&&h.prototype;function j(){i.constructor.call(this,c("AdsDataAtom"));c("adsBaseStoreMixin_DEPRECATED")(this);this.$AdsIntegrityContentConfigStoreClass1=new(c("Map"))();this.$AdsIntegrityContentConfigStoreClass2=new(c("Map"))()}j.prototype.getStoreName=function(){return"AdsIntegrityContentConfigStore"};j.prototype.getDisapprovalMessage=function(l){var m=this.$AdsIntegrityContentConfigStoreClass1.get(l);if(!m){m={loadState:c("AdsLoadState_LEGACY").LOADING,cmsIDs:null};this.$AdsIntegrityContentConfigStoreClass1.set(l,m);c("AdsIntegrityContentDataLoader").requestDisapprovalReason(l)}return m};j.prototype.getComponentDisapprovalMessage=function(l){var m=this.$AdsIntegrityContentConfigStoreClass2.get(l);if(!m){m={loadState:c("AdsLoadState_LEGACY").LOADING,payload:{}};this.$AdsIntegrityContentConfigStoreClass2.set(l,m);c("AdsIntegrityContentDataLoader").requestCompDisapprovalReason(l)}return m};j.prototype.__onDispatch=function(l){__p&&__p();var m=l.action;switch(m.actionType){case c("AdsIntegrityDisapprovalReasonsLoadedDataAction").actionType:if(m.data.adgroupID)this.$AdsIntegrityContentConfigStoreClass1.set(m.data.adgroupID,m.data);this.__emitChange();break;case c("AdsIntegrityActionType").COMP_DISAPPROVAL_REASONS_LOADED:if(m.data.adgroupID)this.$AdsIntegrityContentConfigStoreClass2.set(m.data.adgroupID,m.data);this.__emitChange();break}};var k=new j();f.exports=k}),null);
__d("DisapprovalMessageKey",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({CONTENT_PAYLOAD:"content_payload",DISAPPROVAL_CODE:"disapproval_code",DISAPPROVAL_PAYLOAD:"disapproval_payload",ORIGINAL:"original",SHORT:"short",DCO_DISAPPROVED_POSTS_PERMALINK:"dco_disapproved_posts_permalink"})}),null);
__d("AdsIntegrityContentStore",["AdsCMSStore","AdsDataAtom","AdsIntegrityContentConfigStore","AdsLoadState_LEGACY","DisapprovalMessageKey","FluxDerivedStore","Map"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("FluxDerivedStore"));i=h&&h.prototype;j.prototype.__getStores=function(){return[c("AdsCMSStore"),c("AdsIntegrityContentConfigStore")]};j.prototype.__getData=function(k){var l=c("AdsIntegrityContentConfigStore").getDisapprovalMessage(k),m=c("AdsIntegrityContentConfigStore").getComponentDisapprovalMessage(k);return{adConfig:l,compConfig:m}};j.prototype.__computeResult=function(k,l){__p&&__p();var m,n=l.adConfig,o=l.compConfig,p=new(c("Map"))();p.set(c("DisapprovalMessageKey").ORIGINAL,{loadState:c("AdsLoadState_LEGACY").LOADING});p.set(c("DisapprovalMessageKey").SHORT,{loadState:c("AdsLoadState_LEGACY").LOADING});if(n.loadState===c("AdsLoadState_LEGACY").LOADED&&n.cmsIDs!=null)(function(){var r=n.cmsIDs.content_payload,s=n.cmsIDs.disapproval_payload;Object.keys(r).forEach(function(k){if(r[k])p.set(k,c("AdsCMSStore").get(r[k].toString()))});p.set(c("DisapprovalMessageKey").DISAPPROVAL_CODE,s.disapproval_code);p.set(c("DisapprovalMessageKey").DCO_DISAPPROVED_POSTS_PERMALINK,n.dcoPostsPermalink)})();var q={loadState:o.loadState};if(o.loadState===c("AdsLoadState_LEGACY").LOADED)Object.keys(o.compLevelDisapprovalCMSMap).forEach(function(r){Object.keys(o.compLevelDisapprovalCMSMap[r]).forEach(function(s){if(!q[r])q[r]={};q[r][s]=c("AdsCMSStore").get(o.compLevelDisapprovalCMSMap[r][s])})});return{adResult:p,compResult:q}};j.prototype.getFromAdgroupID=function(k){return this.get(k)};function j(){h.apply(this,arguments)}f.exports=new j(c("AdsDataAtom"))}),null);
__d("BoostedComponentBaseContainer.react",["BoostedComponentQEs","BoostedComponentQEUtils","React","abstractMethod"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;j.getStores=function(){var k=c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_COMPONENT_SELECTORS_MIGRATION).getParamBool("use_selectors",false);if(!k)return this.getStoresLegacy();else return this.getStoresNew()};j.getStoresLegacy=function(){return c("abstractMethod")("BoostedComponentContainer","getStoresLegacy")};j.getStoresNew=function(){return c("abstractMethod")("BoostedComponentContainer","getStoresNew")};j.calculateState=function(k,l){var m=c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_COMPONENT_SELECTORS_MIGRATION).getParamBool("use_selectors",false);if(!m)return this.calculateStateLegacy(k,l);else return this.calculateStateNew(k,l)};j.calculateStateLegacy=function(k,l){return c("abstractMethod")("BoostedComponentContainer","calculateStateLegacy")};j.calculateStateNew=function(k,l){return c("abstractMethod")("BoostedComponentContainer","calculateStateNew")};j.prototype.render=function(){return c("abstractMethod")("BoostedComponentContainer","render")};function j(){h.apply(this,arguments)}f.exports=j}),null);
__d("PolicyPageData",["PolicyPageConfig"],(function a(b,c,d,e,f,g){"use strict";var h={getConfig:function i(){return c("PolicyPageConfig").config}};f.exports=h}),null);
__d("AdPolicyPageFeedbackTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(){this.clear()}h.prototype.log=function(){c("GeneratedLoggerUtils").log("logger:AdPolicyPageFeedbackLoggerConfig",this.$AdPolicyPageFeedbackTypedLogger1,c("Banzai").BASIC)};h.prototype.logVital=function(){c("GeneratedLoggerUtils").log("logger:AdPolicyPageFeedbackLoggerConfig",this.$AdPolicyPageFeedbackTypedLogger1,c("Banzai").VITAL)};h.prototype.clear=function(){this.$AdPolicyPageFeedbackTypedLogger1={};return this};h.prototype.updateData=function(j){this.$AdPolicyPageFeedbackTypedLogger1=babelHelpers["extends"]({},this.$AdPolicyPageFeedbackTypedLogger1,j);return this};h.prototype.setIsHelpful=function(j){this.$AdPolicyPageFeedbackTypedLogger1.is_helpful=j;return this};h.prototype.setPolicy=function(j){this.$AdPolicyPageFeedbackTypedLogger1.policy=j;return this};h.prototype.setRoute=function(j){this.$AdPolicyPageFeedbackTypedLogger1.route=j;return this};h.prototype.setUserComment=function(j){this.$AdPolicyPageFeedbackTypedLogger1.user_comment=j;return this};h.prototype.setVC=function(j){this.$AdPolicyPageFeedbackTypedLogger1.vc=j;return this};var i={is_helpful:true,policy:true,route:true,user_comment:true,vc:true};f.exports=h}),null);
__d("PolicyPageFeedbackCard.react",["cx","fbt","AdPolicyPageFeedbackTypedLogger","React","TextAreaWithLineLimit.react","XUIButton.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k;j=babelHelpers.inherits(l,c("React").Component);k=j&&j.prototype;function l(m){__p&&__p();k.constructor.call(this,m);this.$PolicyPageFeedbackCard4=function(){new(c("AdPolicyPageFeedbackTypedLogger"))().setIsHelpful(true).setPolicy(this.props.policy).setRoute(this.props.route).setUserComment(this.state.comment).log();this.setState({level:"SUBMITTED"})}.bind(this);this.$PolicyPageFeedbackCard5=function(){this.setState({level:"COMMENT"})}.bind(this);this.$PolicyPageFeedbackCard6=function(n){this.setState({comment:n})}.bind(this);this.$PolicyPageFeedbackCard7=function(){new(c("AdPolicyPageFeedbackTypedLogger"))().setIsHelpful(false).setPolicy(this.props.policy).setUserComment(this.state.comment).log();this.setState({level:"SUBMITTED"})}.bind(this);this.state={level:"INTRO",comment:""}}l.prototype.componentWillReceiveProps=function(m){if(m.policy!=this.props.policy)this.state={level:"INTRO",comment:""}};l.prototype.render=function(){var m=null;switch(this.state.level){case"INTRO":m=this.$PolicyPageFeedbackCard1();break;case"COMMENT":m=this.$PolicyPageFeedbackCard2();break;case"SUBMITTED":m=this.$PolicyPageFeedbackCard3();break}return c("React").createElement("div",{className:"_42mc"},m)};l.prototype.$PolicyPageFeedbackCard1=function(){return c("React").createElement("div",null,c("React").createElement("div",{className:"_42md"},i._("Was this explanation helpful?")),c("React").createElement("div",{className:"_42mh"},c("React").createElement(c("XUIButton.react"),{label:c("React").createElement("fbtc",null,"Yes"),onClick:this.$PolicyPageFeedbackCard4}),c("React").createElement(c("XUIButton.react"),{label:c("React").createElement("fbtc",null,"No"),onClick:this.$PolicyPageFeedbackCard5})))};l.prototype.$PolicyPageFeedbackCard2=function(){return c("React").createElement("div",null,c("React").createElement("div",{className:"_42md"},i._("How can we make it more helpful?")),c("React").createElement("div",{className:"_42mh _42mj"},c("React").createElement(c("TextAreaWithLineLimit.react"),{onChange:this.$PolicyPageFeedbackCard6})),c("React").createElement("div",{className:"_42mh"},c("React").createElement(c("XUIButton.react"),{label:"Submit",use:"confirm",onClick:this.$PolicyPageFeedbackCard7})))};l.prototype.$PolicyPageFeedbackCard3=function(){return c("React").createElement("div",{className:"_42md"},i._("Thanks for your feedback!"))};f.exports=l}),null);
__d("PolicyPageCard.react",["cx","fbt","DOMContainer.react","React","XUISpinner.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k;j=babelHelpers.inherits(l,c("React").Component);k=j&&j.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=k.constructor).call.apply(m,[this].concat(p)),this.$PolicyPageCard1=function(){if(!this.props.onLearnMoreClick||!this.props.subSections)return;this.props.onLearnMoreClick(this.props.top_policy,this.props.sub_policy)}.bind(this),n}l.prototype.render=function(){if(!this.props.contents.header&&!this.props.contents.body)return c("React").createElement("div",null);if(this.props.isLoading)return c("React").createElement(c("XUISpinner.react"),{background:"light",size:"large"});var m=this.props.contents,n=this.props.divStyle==="subpolicy"?c("React").createElement("div",{className:"_3jyw"},i._("Policy")):null,o=!m.header||!m.header.content?null:c("React").createElement("div",{className:(this.props.divStyle!=="subpolicy"?"_4ch6":"")+(this.props.headerType!=="example"?" _7x8":"")+(this.props.headerType==="example"?" _7x9":"")+(this.props.divStyle==="subpolicy"?" _3jyx":"")},c("React").createElement(c("DOMContainer.react"),null,m.header.content.cloneNode(true))),p=!m.body||!m.body.content?null:c("React").createElement("div",{className:"_4ch5"+(this.props.divStyle==="subpolicy"?" _3jyy":"")},n,c("React").createElement(c("DOMContainer.react"),null,m.body.content.cloneNode(true))),q=null;if(this.props.subSections)q=c("React").createElement("div",{className:"_5ds"},i._("Learn more"));return c("React").createElement("div",{className:(this.props.divStyle==="standard"?"_3a9m":"")+(this.props.divStyle==="noVertPad"?" _ccj":"")+(this.props.alwaysGray?" _2g8n":"")+(!this.props.alwaysGray&&this.props.subSections?" _7n5":""),role:"presentation",onClick:this.$PolicyPageCard1},o,p,q)};l.defaultProps={alwaysGray:false,divStyle:"standard"};f.exports=l}),null);
__d("PolicyPagePolicyCardContainer.react",["AdsCMSStore","AdsFluxContainer","AdsLoadState_LEGACY","PolicyPageCard.react","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("React").PropTypes;h=babelHelpers.inherits(k,c("React").Component);i=h&&h.prototype;k.getStores=function(){return[c("AdsCMSStore")]};k.calculateState=function(l,m){__p&&__p();var n=[m.headerID];if(m.bodyID)n.push(m.bodyID);var o=c("AdsCMSStore").getAll(n),p=o.get(m.headerID),q=null;if(m.bodyID)q=o.get(m.bodyID);if(!p)return{header:{},body:{},isLoading:false};var r=true;Array.from(o.keys()).map(function(s,t){var u=o.get(s);if(u)r=r&&u.loadState===c("AdsLoadState_LEGACY").LOADED});return{header:p,body:q,isLoading:!r}};k.prototype.render=function(){return c("React").createElement(c("PolicyPageCard.react"),{contents:{header:this.state.header,body:this.state.body},divStyle:"subpolicy",isLoading:this.state.isLoading})};function k(){h.apply(this,arguments)}k.PropTypes={alwaysGray:j.bool.isRequired,contentID:j.string,headerID:j.string.isRequired};f.exports=c("AdsFluxContainer").create(k,{withProps:true,pure:true,name:f.id})}),null);
__d("PolicyPageBasicExampleItem.react",["cx","DOMContainer.react","Grid.react","Image.react","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("Grid.react").GridItem,l=c("React").PropTypes;i=babelHelpers.inherits(m,c("React").Component);j=i&&i.prototype;m.prototype.render=function(){var n=this.props.content;return c("React").createElement(c("Grid.react"),{alignv:"top",className:"_3-9b",cols:2},c("React").createElement(k,null,c("React").createElement(c("Image.react"),{className:"_3-90 _3-8w _3-9b",src:this.props.imageResource})),c("React").createElement(k,null,c("React").createElement("div",{className:"_3kmg"},c("React").createElement(c("DOMContainer.react"),null,n.content.cloneNode(true)))))};function m(){i.apply(this,arguments)}m.PropTypes={content:l.object.isRequired,imageResource:l.object.isRequired};f.exports=m}),null);
__d("PolicyPageSubpolicyBulletedExample.react",["ix","PolicyPageBasicExampleItem.react","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes,l=h("22715");i=babelHelpers.inherits(m,c("React").Component);j=i&&i.prototype;m.prototype.render=function(){var n=this.props.content;return c("React").createElement(c("PolicyPageBasicExampleItem.react"),{content:n,imageResource:l})};function m(){i.apply(this,arguments)}m.PropTypes={content:k.object.isRequired};f.exports=m}),null);
__d("PolicyPageSubpolicyCaptionedExample.react",["cx","ix","DOMContainer.react","Image.react","React","isEmpty"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes,m=i("22724"),n=i("22727");j=babelHelpers.inherits(o,c("React").Component);k=j&&j.prototype;o.prototype.render=function(){var p=this.props.isPositive?m:n,q=this.props.content;return c("React").createElement("div",null,c("React").createElement("div",{className:"_mi9"},c("React").createElement("div",{className:"_mia"},c("React").createElement("div",{className:"_mib"},c("React").createElement(c("DOMContainer.react"),null,q.content.cloneNode(true)))),c("React").createElement(c("Image.react"),{className:"_mis",src:p})),c("React").createElement("div",{className:"_3-8x _1urq"},this.$PolicyPageSubpolicyCaptionedExample1()))};o.prototype.$PolicyPageSubpolicyCaptionedExample1=function(){if(!this.props.caption||c("isEmpty")(this.props.caption))return null;var p=this.props.caption;return c("React").createElement(c("DOMContainer.react"),null,p.content.cloneNode(true))};function o(){j.apply(this,arguments)}o.PropTypes={caption:l.object,content:l.object.isRequired,isPositive:l.bool.isRequired};f.exports=o}),null);
__d("PolicyPageSubpolicyTextExample.react",["ix","PolicyPageBasicExampleItem.react","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes,l=h("22718"),m=h("22721");i=babelHelpers.inherits(n,c("React").Component);j=i&&i.prototype;n.prototype.render=function(){var o=this.props.isPositive?l:m,p=this.props.content;return c("React").createElement(c("PolicyPageBasicExampleItem.react"),{content:p,imageResource:o})};function n(){i.apply(this,arguments)}n.PropTypes={content:k.object.isRequired,isPositive:k.bool.isRequired};f.exports=n}),null);
__d("PolicyPageSubpolicyExampleBlock.react",["cx","DOMContainer.react","ExampleContentType","ExampleOrientationType","Grid.react","PolicyPageSubpolicyBulletedExample.react","PolicyPageSubpolicyCaptionedExample.react","PolicyPageSubpolicyTextExample.react","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("Grid.react").GridItem,l=c("React").PropTypes,m=1,n=2;i=babelHelpers.inherits(o,c("React").Component);j=i&&i.prototype;o.prototype.render=function(){__p&&__p();var p=this.props.orientation===c("ExampleOrientationType").VERTICAL?m:n,q=function q(){};switch(this.props.exampleType){case c("ExampleContentType").BASIC_TEXT:q=this.$PolicyPageSubpolicyExampleBlock1;break;case c("ExampleContentType").BULLET:q=this.$PolicyPageSubpolicyExampleBlock2;break;case c("ExampleContentType").CAPTION_BLOCK:q=this.$PolicyPageSubpolicyExampleBlock3}var r=null;if(this.props.intro)r=c("React").createElement("div",{className:"_29rt"},c("React").createElement(c("DOMContainer.react"),null,this.props.intro.content.cloneNode(true)));return c("React").createElement("div",null,r,c("React").createElement(c("Grid.react"),{alignv:"top",className:"_13nz",cols:p},this.$PolicyPageSubpolicyExampleBlock4(q)))};o.prototype.$PolicyPageSubpolicyExampleBlock4=function(p){return this.props.examples.map(function(q,r){return c("React").createElement(k,{className:this.$PolicyPageSubpolicyExampleBlock5(),key:r},p(q))}.bind(this))};o.prototype.$PolicyPageSubpolicyExampleBlock1=function(p){return c("React").createElement(c("PolicyPageSubpolicyTextExample.react"),{content:p.content,isPositive:p.isPositive})};o.prototype.$PolicyPageSubpolicyExampleBlock2=function(p){return c("React").createElement(c("PolicyPageSubpolicyBulletedExample.react"),{content:p.content})};o.prototype.$PolicyPageSubpolicyExampleBlock3=function(p){return c("React").createElement(c("PolicyPageSubpolicyCaptionedExample.react"),{caption:p.caption,content:p.content,isPositive:p.isPositive})};o.prototype.$PolicyPageSubpolicyExampleBlock5=function(){if(this.props.orientation===c("ExampleOrientationType").VERTICAL)return"_3rwc";return"_13n-"};function o(){i.apply(this,arguments)}o.PropTypes={examples:l.arrayOf(l.shape({caption:l.object,content:l.object.isRequired,isPositive:l.bool.isRequired})).isRequired,exampleType:l.number.isRequired,orientation:l.string.isRequired};f.exports=o}),null);
__d("PolicyPageSubpolicySectionContainer.react",["AdsCMSStore","AdsFluxContainer","AdsLoadState_LEGACY","ExampleType","PolicyPageCard.react","PolicyPageSubpolicyExampleBlock.react","React","XUISpinner.react"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("React").PropTypes;function k(p,q){var r=null,s=null;if(q.content.body_cms_id)r=p.get(q.content.body_cms_id);if(q.content.header_cms_id)s=p.get(q.content.header_cms_id);return{header:s,body:r}}function l(p,q){if(!q.example_list)return[];var r=q.example_list.examples,s=r.map(function(t,u){var v={caption:{},content:p.get(t.content_cms_id),isPositive:t.type===c("ExampleType").POSITIVE};if(t.caption_cms_id)v.caption=p.get(t.caption_cms_id);return v});return s}function m(p){__p&&__p();var q=[];if(p.content.header_cms_id)q.push(p.content.header_cms_id);if(p.content.body_cms_id)q.push(p.content.body_cms_id);var r=p.example_list;if(!r)return q;if(r.intro_cms_id)q.push(r.intro_cms_id);q.push.apply(q,n(r.examples));return q}function n(p){var q=[];if(!p)return q;p.forEach(function(r){q.push(r.content_cms_id);if(r.caption_cms_id)q.push(r.caption_cms_id)});return q}h=babelHelpers.inherits(o,c("React").Component);i=h&&h.prototype;o.getStores=function(){return[c("AdsCMSStore")]};o.calculateState=function(p,q){__p&&__p();var r=m(q.policySubsection),s=c("AdsCMSStore").getAll(r),t=null,u=q.policySubsection.example_list;if(u&&u.intro_cms_id)t=c("AdsCMSStore").get(u.intro_cms_id);var v=true;Array.from(s.keys()).map(function(w,x){var y=s.get(w);if(y)v=v&&y.loadState===c("AdsLoadState_LEGACY").LOADED});if(t)v=v&&t.loadState===c("AdsLoadState_LEGACY").LOADED;if(!v)return{cmsIDs:r,intro:t,contents:{},examples:[],isLoading:true};return{cmsIDs:r,intro:t,contents:k(c("AdsCMSStore"),q.policySubsection),examples:l(c("AdsCMSStore"),q.policySubsection),isLoading:false}};o.prototype.render=function(){if(this.state.isLoading)return c("React").createElement("div",null,c("React").createElement(c("XUISpinner.react"),{size:"large"}));var p=this.props.policySubsection.example_list;if(!p||!p.content_type||!p.orientation)return c("React").createElement(c("PolicyPageCard.react"),{contents:this.state.contents,divStyle:"noVertPad",isLoading:false});return c("React").createElement("div",null,c("React").createElement(c("PolicyPageCard.react"),{contents:this.state.contents,divStyle:"noVertPad",headerType:"example",isLoading:false}),c("React").createElement(c("PolicyPageSubpolicyExampleBlock.react"),{exampleType:p.content_type,examples:this.state.examples,intro:this.state.intro,orientation:p.orientation}))};function o(){h.apply(this,arguments)}o.PropTypes={policySubsection:j.shape({content:j.shape({header_cms_id:j.string,body_cms_id:j.string}).isRequired,example_list:j.shape({intro_cms_id:j.string,examples:j.arrayOf(j.shape({content_cms_id:j.string.isRequired,caption_cms_id:j.string,type:j.number.isRequired}).isRequired),orientation:j.number.isRequired,content_type:j.number.isRequired})})};f.exports=c("AdsFluxContainer").create(o,{withProps:true,pure:true,name:f.id})}),null);
__d("PolicyPageSubpolicyContent.react",["cx","PolicyPageFeedbackCard.react","PolicyPagePolicyCardContainer.react","PolicyPageSubpolicySectionContainer.react","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.render=function(){var l=this.$PolicyPageSubpolicyContent1(),m=this.$PolicyPageSubpolicyContent2(l.subsections),n=this.$PolicyPageSubpolicyContent3(l.intro),o=this.props.route?c("React").createElement("div",{className:"_5msm"},c("React").createElement(c("PolicyPageFeedbackCard.react"),{policy:this.props.subPolicyURL,route:this.props.route})):null;return c("React").createElement("div",null,n,m,o)};k.prototype.$PolicyPageSubpolicyContent2=function(l){if(!l)return null;return l.map(function(m,n){return c("React").createElement("div",{className:(m.content.header_cms_id!==null?"_7s9":"")+" _sm2",key:"PolicyPageSubpolicySectionContainer"+n},c("React").createElement(c("PolicyPageSubpolicySectionContainer.react"),{key:"PolicyPageSubpolicySectionContainer"+n,policySubsection:m}))})};k.prototype.$PolicyPageSubpolicyContent3=function(l){if(!l)return null;return c("React").createElement(c("PolicyPagePolicyCardContainer.react"),{alwaysGray:true,bodyID:l.content.body_cms_id,headerID:l.content.header_cms_id})};k.prototype.$PolicyPageSubpolicyContent1=function(){var l=this.$PolicyPageSubpolicyContent4(this.$PolicyPageSubpolicyContent5(this.props.config));if(!l)return{intro:null,subsections:null};return{intro:l.intro,subsections:l.policySubSections}};k.prototype.$PolicyPageSubpolicyContent5=function(l){return l.blocks.filter(function(m){return m.url===this.props.topPolicyURL}.bind(this)).pop()};k.prototype.$PolicyPageSubpolicyContent4=function(l){if(!l||!l.policies)return null;return l.policies.filter(function(m){return m.url===this.props.subPolicyURL}.bind(this)).pop()};function k(){i.apply(this,arguments)}f.exports=k}),null);
__d("PolicyPageUtils",["AdsLoadState_LEGACY","CROWAdDisapprovalReasonEnum","CROWDisapprovalReasonMapConfig","PolicyPageData"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=300,i=300;function j(n){return!!n.header&&n.header.loadState===c("AdsLoadState_LEGACY").LOADING||!!n.body&&n.body.loadState===c("AdsLoadState_LEGACY").LOADING}function k(n){return"PolicyPageBlock"+n}function l(n){if(!n)return{};var o=c("CROWAdDisapprovalReasonEnum")[n];return m(o.toString())}function m(n){var o=c("PolicyPageData").getConfig().links.policy_links;if(n&&Object.prototype.hasOwnProperty.call(o,n))return o[n];var p=c("CROWDisapprovalReasonMapConfig").crow_disapproval_config.subpolicyToTopLevel,q=p[n];if(q&&Object.prototype.hasOwnProperty.call(o,q))return o[q];return{}}f.exports={getIdFromPolicyBlockURL:k,getIsContentLoading:j,getPolicyLinkForDisapprovalCode:m,getPolicyLinkForDisapprovalReason:l,SCROLL_DELAY:h,SCROLL_DURATION:i}}),null);
__d("AdsBusinessIntegrityAppealsPolicyPageContent.react",["cx","PolicyPageData","PolicyPageSubpolicyContent.react","PolicyPageUtils","React","ScrollableArea.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.render=function(){var l=void 0;if(this.props.disapprovalCode)l=c("PolicyPageUtils").getPolicyLinkForDisapprovalCode(this.props.disapprovalCode);else l=c("PolicyPageUtils").getPolicyLinkForDisapprovalReason(this.props.disapprovalReason);return c("React").createElement(c("ScrollableArea.react"),{maxHeight:600,width:700},c("React").createElement("div",{className:"_2ph-"},c("React").createElement(c("PolicyPageSubpolicyContent.react"),{config:c("PolicyPageData").getConfig(),subPolicyURL:l.subpolicy,topPolicyURL:l.top_policy})))};function k(){i.apply(this,arguments)}f.exports=k}),null);
__d("AdsSavingIndicator.react",["cx","AdsTestIDs","CenteredContainer.react","React","SUIBusinessTheme","SUISpinner.react","SUIText.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;l.prototype.render=function(){return c("React").createElement(c("CenteredContainer.react"),{className:"_1oiw","data-testid":c("AdsTestIDs").SAVING_INDICATOR,vertical:true},c("React").createElement(c("SUISpinner.react"),{className:"_3-97",size:"large",theme:c("SUIBusinessTheme")}),c("React").createElement("div",null,c("React").createElement(c("SUIText.react"),{display:"block",shade:"medium",textAlign:"center",theme:c("SUIBusinessTheme"),weight:"bold"},this.props.messageTitle),c("React").createElement(c("SUIText.react"),{className:"_3-8x",display:"block",shade:"medium",textAlign:"center",theme:c("SUIBusinessTheme")},this.props.messageSubTitle)))};function l(){i.apply(this,arguments)}l.propTypes={messageSubTitle:k.node,messageTitle:k.node};f.exports=l}),null);
__d("AdsBusinessIntegrityAppealForm.react",["cx","fbt","ix","AdReviewAppealsAction","AdReviewAppealsDataDispatcher","AdsBusinessIntegrityAppealsPolicyPageContent.react","AdsLoadState_LEGACY","AdsSavingIndicator.react","AdsTextInput.react","Grid.react","Image.react","React","SUIBusinessTheme","SUICheckboxInput.react","SUINotice.react","SUIText.react"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("Grid.react").GridItem;function n(t){return t.showPositiveMessaging?i._("Sorry, looks like something went wrong on our end. Please try again."):i._("We're sorry, there was a problem sending your appeal. Please try again.")}function o(t){return t.showPositiveMessaging?i._("Request Sent Successfully"):i._("Appeal Sent Successfully")}function p(t){return t.showPositiveMessaging?i._("We'll respond to your request shortly. In the meantime, you can check the status of your request in your Support Inbox."):i._("We'll respond to your appeal shortly. In the meantime, you can check the status of your appeal in your Support Inbox.")}function q(t){return t.showPositiveMessaging?i._("By checking this box I understand that if my ad is approved upon review, it will be made active and may start delivering right away."):i._("By checking this box I understand that if my ad is approved upon appeal, it will be made active and may start delivering right away.")}function r(t){return t.showPositiveMessaging?i._("Please provide any details you think will help with our review. If approved, your ad will go live. Typically, we can review your ad within 24 hours."):i._("Please give us as much detail as possible to help resolve your problem. If we've made a mistake, we'll approve your ad as soon as we can.")}k=babelHelpers.inherits(s,c("React").PureComponent);l=k&&k.prototype;s.prototype.componentDidMount=function(){this.$AdsBusinessIntegrityAppealForm1()};s.prototype.render=function(){var t=this.$AdsBusinessIntegrityAppealForm2(),u=this.$AdsBusinessIntegrityAppealForm3();return c("React").createElement("div",null,u,t)};s.prototype.$AdsBusinessIntegrityAppealForm2=function(){if(this.props.loadState===c("AdsLoadState_LEGACY").LOADING&&this.props.appealStep===c("AdReviewAppealsAction").APPEAL_SUBMITTED){var t=i._("Please Wait"),u=this.props.showPositiveMessaging?i._("We are processing your request..."):i._("We are processing your appeal...");return c("React").createElement(c("AdsSavingIndicator.react"),{messageSubTitle:u,messageTitle:t})}return null};s.prototype.$AdsBusinessIntegrityAppealForm3=function(){switch(this.props.appealStep){case c("AdReviewAppealsAction").APPEAL_DIALOG_OPEN:case c("AdReviewAppealsAction").APPEAL_SUBMITTED:case c("AdReviewAppealsAction").APPEAL_CREATION_ERROR:return this.$AdsBusinessIntegrityAppealForm4();case c("AdReviewAppealsAction").APPEAL_CREATED:return this.$AdsBusinessIntegrityAppealForm5();case c("AdReviewAppealsAction").APPEAL_SUBMITTED_SHOW_POLICY:return this.$AdsBusinessIntegrityAppealForm6();case c("AdReviewAppealsAction").APPEAL_DIALOG_CLOSE:return null}return null};s.prototype.$AdsBusinessIntegrityAppealForm6=function(){if(!this.props.disapprovalReason&&!this.props.disapprovalCode)return null;return c("React").createElement("div",{className:"_3ai"},c("React").createElement("div",{className:"_2pio"},c("React").createElement(c("AdsBusinessIntegrityAppealsPolicyPageContent.react"),{disapprovalCode:this.props.disapprovalCode,disapprovalReason:this.props.disapprovalReason})),c("React").createElement(c("SUICheckboxInput.react"),{display:"block",label:c("React").createElement("span",{className:"_5kx5"},i._("By checking this box I certify that I have read the policy and my ad does not violate the policy.")),theme:c("SUIBusinessTheme"),value:this.props.policyContentAcknowledged,onChange:this.$AdsBusinessIntegrityAppealForm7}))};s.prototype.$AdsBusinessIntegrityAppealForm4=function(){var t=null;if(this.props.appealError)t=c("React").createElement("div",{className:"_2pie"},c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:"error"},c("React").createElement(n,{showPositiveMessaging:this.props.showPositiveMessaging})));return c("React").createElement("div",{className:"_3ai"},c("React").createElement(c("SUIText.react"),{className:"_5t8y _3-95",display:"block",shade:"medium",size:"medium_DEPRECATED",theme:c("SUIBusinessTheme"),weight:"bold"},i._("Tell us why your ad should be approved")),c("React").createElement(c("SUIText.react"),{className:"_5t8y _3-96",display:"block",shade:"medium",size:"meta1",theme:c("SUIBusinessTheme")},c("React").createElement(r,{showPositiveMessaging:this.props.showPositiveMessaging})),c("React").createElement("div",{className:"_3-96"},c("React").createElement(c("AdsTextInput.react"),{allowNewLines:true,className:"_3aj",multiline:true,value:this.props.advertiserComment,onChange:this.$AdsBusinessIntegrityAppealForm8})),c("React").createElement(c("SUICheckboxInput.react"),{display:"block",label:c("React").createElement("span",{className:"_5kx5"},c("React").createElement(q,{showPositiveMessaging:this.props.showPositiveMessaging})),theme:c("SUIBusinessTheme"),value:this.props.statusChangeAcknowledged,onChange:this.$AdsBusinessIntegrityAppealForm9}),t)};s.prototype.$AdsBusinessIntegrityAppealForm5=function(){return c("React").createElement("div",{className:"_3ai"},c("React").createElement("div",null,c("React").createElement(c("Grid.react"),{cols:2},c("React").createElement(m,{className:"_3ak",valign:"middle"},c("React").createElement(c("Image.react"),{src:j("23744")})),c("React").createElement(m,{valign:"middle"},c("React").createElement(c("SUIText.react"),{className:"_5t8y",display:"block",shade:"medium",size:"medium_DEPRECATED",theme:c("SUIBusinessTheme"),weight:"bold"},c("React").createElement(o,{showPositiveMessaging:this.props.showPositiveMessaging}))))),c("React").createElement("div",{className:"_2pig"},c("React").createElement(c("SUIText.react"),{className:"_5t8y",display:"block",shade:"medium",size:"meta1",theme:c("SUIBusinessTheme")},c("React").createElement(p,{showPositiveMessaging:this.props.showPositiveMessaging}))))};s.prototype.$AdsBusinessIntegrityAppealForm1=function(){c("AdReviewAppealsDataDispatcher").dispatchAppealsDataFromViewAction({accountID:this.props.accountID},c("AdReviewAppealsAction").APPEAL_SET_AD_ACCOUNT_ID)};s.prototype.$AdsBusinessIntegrityAppealForm8=function(t){c("AdReviewAppealsDataDispatcher").dispatchAppealsDataFromViewAction({advertiserComment:t},c("AdReviewAppealsAction").APPEAL_COMMENT_UPDATE)};s.prototype.$AdsBusinessIntegrityAppealForm9=function(){c("AdReviewAppealsDataDispatcher").dispatchAppealsDataFromViewAction({},c("AdReviewAppealsAction").APPEAL_ACKNOWLEDGE_STATUS_CHANGE)};s.prototype.$AdsBusinessIntegrityAppealForm7=function(){c("AdReviewAppealsDataDispatcher").dispatchAppealsDataFromViewAction({},c("AdReviewAppealsAction").APPEAL_ACKNOWLEDGE_POLICY_CONTENT)};function s(){k.apply(this,arguments)}f.exports=s}),null);
__d("AdsBusinessIntegrityAppealFormContainer.react",["AdReviewAppealsAction","AdReviewAppealsStore","AdsBusinessIntegrityAppealForm.react","AdsLoadState_LEGACY","React","ReactComponentWithPureRenderMixin","StoreAndPropBasedStateMixin"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("React").createClass({displayName:"AdsBusinessIntegrityAppealFormContainer",mixins:[c("ReactComponentWithPureRenderMixin"),c("StoreAndPropBasedStateMixin")(c("AdReviewAppealsStore"))],statics:{calculateState:function i(j){var k=c("AdReviewAppealsStore").getAdgroupPayload(j.adgroupID),l=c("AdReviewAppealsAction").APPEAL_DIALOG_OPEN,m=c("AdsLoadState_LEGACY").LOADED;if(k){l=k.appealStep;m=k.loadState}return{advertiserComment:c("AdReviewAppealsStore").getAdvertiserComment(),appealError:c("AdReviewAppealsStore").isAppealCreationFailed(),appealStep:l,loadState:m,policyContentAcknowledged:c("AdReviewAppealsStore").isPolicyContentAcknowledged(),statusChangeAcknowledged:c("AdReviewAppealsStore").isStatusChangeAcknowledged()}},getStores:function i(){return[c("AdReviewAppealsStore")]}},render:function i(){return c("React").createElement(c("AdsBusinessIntegrityAppealForm.react"),{accountID:this.props.accountID,adgroupID:this.props.adgroupID,advertiserComment:this.state.advertiserComment,appealError:this.state.appealError,appealStep:this.state.appealStep,disapprovalCode:this.props.disapprovalCode,disapprovalReason:this.props.disapprovalReason,loadState:this.state.loadState,policyContentAcknowledged:this.state.policyContentAcknowledged,showPositiveMessaging:this.props.showPositiveMessaging,statusChangeAcknowledged:this.state.statusChangeAcknowledged})}});f.exports=h}),null);
__d("AdsControlledDialog_DEPRECATED.react",["React","XUIDialog.react","XUIDialogBody.react","XUIDialogButton.react","XUIDialogFooter.react","XUIDialogTitle.react","emptyFunction"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("React").PropTypes;h=babelHelpers.inherits(k,c("React").Component);i=h&&h.prototype;function k(){__p&&__p();var l,m;for(var n=arguments.length,o=Array(n),p=0;p<n;p++)o[p]=arguments[p];return m=(l=i.constructor).call.apply(l,[this].concat(o)),this.$AdsControlledDialog_DEPRECATED1=false,this.$AdsControlledDialog_DEPRECATED2=function(q){if(q){this.$AdsControlledDialog_DEPRECATED1=false;if(this.props.onShow)this.props.onShow()}else{setTimeout(this.props.onDialogHideCallback,0);if(!this.$AdsControlledDialog_DEPRECATED1&&this.props.onCancel)this.props.onCancel()}}.bind(this),this.$AdsControlledDialog_DEPRECATED3=function(event){this.$AdsControlledDialog_DEPRECATED1=true;if(this.props.onDialogHideCallback)this.props.onDialogHideCallback();if(this.props.onConfirm)this.props.onConfirm(event)}.bind(this),m}k.prototype.render=function(){if(!this.props.renderWhenHidden&&!this.props.dialogShown)return null;return c("React").createElement(c("XUIDialog.react"),babelHelpers["extends"]({},this.props,{behaviors:this.props.behaviors,layerHideOnBlur:this.props.hideOnBlur,shown:this.props.dialogShown||this.props.renderWithDialogInitiallyShown,onToggle:this.$AdsControlledDialog_DEPRECATED2}),c("React").createElement(c("XUIDialogTitle.react"),{showCloseButton:this.props.showCloseButton},this.props.title),c("React").createElement(c("XUIDialogBody.react"),{useCustomPadding:true},this.props.children),this.$AdsControlledDialog_DEPRECATED4())};k.prototype.$AdsControlledDialog_DEPRECATED4=function(){if(!this.props.buttonSpecs||this.props.buttonSpecs.length===0)return null;var l=0,m=this.props.buttonSpecs.map(function(n){if(n.action==="confirm")n.onClick=this.$AdsControlledDialog_DEPRECATED3;n.key=n.key||l++;return c("React").createElement(c("XUIDialogButton.react"),n)}.bind(this));return c("React").createElement(c("XUIDialogFooter.react"),{leftContent:this.props.leftFooter},m)};k.propTypes={behaviors:j.object,buttonSpecs:j.array,dialogShown:j.bool,hideOnBlur:j.bool,leftFooter:j.node,renderWhenHidden:j.bool,renderWithDialogInitiallyShown:j.bool,showCloseButton:j.bool,title:j.node,width:j.number.isRequired,onCancel:j.func,onConfirm:j.func,onDialogHideCallback:j.func,onShow:j.func};k.defaultProps={behaviors:{},buttonSpecs:[],hideOnBlur:true,leftFooter:null,renderWhenHidden:true,renderWithDialogInitiallyShown:false,showCloseButton:true,onShow:c("emptyFunction"),onConfirm:c("emptyFunction"),onCancel:c("emptyFunction"),onDialogHideCallback:c("emptyFunction")};f.exports=k}),null);
__d("AdsDialog_DEPRECATED.react",["invariant","AdsControlledDialog_DEPRECATED.react","React","ReactLayeredComponentMixin_DEPRECATED"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=c("React").PropTypes,j=c("React").createClass({displayName:"AdsDialog_DEPRECATED",mixins:[c("ReactLayeredComponentMixin_DEPRECATED")],propTypes:babelHelpers["extends"]({},c("AdsControlledDialog_DEPRECATED.react").propTypes,{clickableTrigger:i.element.isRequired}),getInitialState:function k(){return{dialogShown:false}},componentWillMount:function k(){this._validateTrigger(this.props.clickableTrigger)},componentWillReceiveProps:function k(l){if(l.clickableTrigger!==this.props.clickableTrigger)this._validateTrigger(l.clickableTrigger)},_validateTrigger:function k(l){!l.props.onClick||h(0)},showDialog:function k(){this.setState({dialogShown:true})},hideDialog:function k(){if(this.isMounted()){this.setState({dialogShown:false});if(this.props.onDialogHideCallback)this.props.onDialogHideCallback()}},render:function k(){return c("React").cloneElement(this.props.clickableTrigger,{onClick:this.showDialog})},renderLayers:function k(){return{dialog:c("React").createElement(c("AdsControlledDialog_DEPRECATED.react"),babelHelpers["extends"]({},this.props,{dialogShown:this.state.dialogShown,onDialogHideCallback:this.hideDialog}),this.props.children)}}});f.exports=j}),null);
__d("XSupportInboxDetailsController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/support/view_details/",{ref_medium:{type:"String"},thanks:{type:"Exists",defaultValue:false},errors:{type:"IntSet"},expand:{type:"Exists",defaultValue:false},expand_form:{type:"Exists",defaultValue:false},ref:{type:"String"},id:{type:"Int"},eid:{type:"String"},fbid:{type:"Int"}})}),null);
__d("AdsBusinessIntegrityAppealDialog.react",["fbt","AdReviewAppealsAction","AdReviewAppealsDataDispatcher","AdsBusinessIntegrityAppealFormContainer.react","AdsDialog_DEPRECATED.react","AdsLoadState_LEGACY","DialogExpansion","React","SUIBusinessTheme","SUIButton.react","SUISpinner.react","XSupportInboxDetailsController"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.$AdsBusinessIntegrityAppealDialog7=function(){this.$AdsBusinessIntegrityAppealDialog9(c("AdReviewAppealsAction").APPEAL_DIALOG_OPEN,c("AdsLoadState_LEGACY").LOADED)}.bind(this),this.$AdsBusinessIntegrityAppealDialog6=function(){this.$AdsBusinessIntegrityAppealDialog9(c("AdReviewAppealsAction").APPEAL_SUBMITTED_SHOW_POLICY,c("AdsLoadState_LEGACY").LOADED)}.bind(this),this.$AdsBusinessIntegrityAppealDialog5=function(){this.$AdsBusinessIntegrityAppealDialog9(c("AdReviewAppealsAction").APPEAL_DIALOG_CLOSE,c("AdsLoadState_LEGACY").LOADED)}.bind(this),this.$AdsBusinessIntegrityAppealDialog8=function(){this.$AdsBusinessIntegrityAppealDialog9(c("AdReviewAppealsAction").APPEAL_SUBMITTED,c("AdsLoadState_LEGACY").LOADING)}.bind(this),n}l.prototype.render=function(){if(this.props.appealStatusLoadState===c("AdsLoadState_LEGACY").LOADING)return c("React").createElement(c("SUISpinner.react"),{size:"small",theme:c("SUIBusinessTheme")});if(this.props.appealAlreadyCreated)return this.$AdsBusinessIntegrityAppealDialog1();return this.$AdsBusinessIntegrityAppealDialog2()};l.prototype.$AdsBusinessIntegrityAppealDialog1=function(){if(!this.props.viewerIsCreator)return null;var m=c("XSupportInboxDetailsController").getURIBuilder().setInt("id",this.props.appealCaseFeedbackID).getURI();return c("React").createElement(c("SUIButton.react"),{href:m,label:this.$AdsBusinessIntegrityAppealDialog3(),target:"_blank",theme:c("SUIBusinessTheme"),use:"default"})};l.prototype.$AdsBusinessIntegrityAppealDialog3=function(){return this.props.showPositiveMessaging?h._("View Request"):h._("View Appeal")};l.prototype.$AdsBusinessIntegrityAppealDialog2=function(){var m=this.props.showPositiveMessaging?h._("Request Review"):h._("Appeal"),n=c("React").createElement(c("SUIButton.react"),{label:m,theme:c("SUIBusinessTheme"),use:"default"}),o=this.props.showPositiveMessaging?h._("Request Review for a Disapproved Ad"):h._("Appeal a Disapproved Ad");return c("React").createElement(c("AdsDialog_DEPRECATED.react"),{behaviors:{DialogExpansion:c("DialogExpansion")},buttonSpecs:this.$AdsBusinessIntegrityAppealDialog4(),clickableTrigger:n,hideOnBlur:false,showCloseButton:true,title:o,width:785,onCancel:this.$AdsBusinessIntegrityAppealDialog5,onShow:this.props.submitShowsPolicy?this.$AdsBusinessIntegrityAppealDialog6:this.$AdsBusinessIntegrityAppealDialog7},c("React").createElement(c("AdsBusinessIntegrityAppealFormContainer.react"),{accountID:this.props.accountID,adgroupID:this.props.adgroupID,disapprovalCode:this.props.disapprovalCode,disapprovalReason:this.props.disapprovalReason,showPositiveMessaging:this.props.showPositiveMessaging}))};l.prototype.$AdsBusinessIntegrityAppealDialog4=function(){if(this.props.submitShowsPolicy)return[{key:"cancelAppeal",action:"cancel",label:h._("Cancel"),use:"default"},{key:"sendAppeal",action:"button",disabled:!this.props.policyContentAcknowledged,label:h._("Next"),use:"confirm",onClick:this.$AdsBusinessIntegrityAppealDialog7}];if(this.props.appealSuccess){var m=c("XSupportInboxDetailsController").getURIBuilder().setInt("id",this.props.appealPostCreationFeedbackID).getURI();return[{key:"appealsRedirect",action:"button",href:m,label:this.$AdsBusinessIntegrityAppealDialog3(),target:"_blank",use:"default"},{key:"done",action:"cancel",label:h._("Done"),use:"confirm"}]}else return[{key:"cancelAppeal",action:"cancel",label:h._("Cancel"),use:"default"},{key:"sendAppeal",action:"button",disabled:!this.props.statusChangeAcknowledged,label:h._("Send"),use:"confirm",onClick:this.$AdsBusinessIntegrityAppealDialog8}]};l.prototype.$AdsBusinessIntegrityAppealDialog9=function(m,n){c("AdReviewAppealsDataDispatcher").dispatchAppealsDataFromViewAction({adgroupID:this.props.adgroupID,advertiserComment:this.props.advertiserComment,loadStateAndStepInfo:{appealStep:m,loadState:n}},m)};l.propTypes={accountID:k.string,adgroupID:k.string.isRequired,advertiserComment:k.string.isRequired,appealAlreadyCreated:k.bool,appealCaseFeedbackID:k.string,appealPostCreationFeedbackID:k.string,appealStatusLoadState:k.string.isRequired,appealSuccess:k.bool.isRequired,disapprovalCode:k.string,disapprovalReason:k.string,policyContentAcknowledged:k.bool.isRequired,showPositiveMessaging:k.bool,statusChangeAcknowledged:k.bool.isRequired,submitShowsPolicy:k.bool.isRequired,viewerIsCreator:k.bool.isRequired};l.defaultProps={appealAlreadyCreated:false,appealCaseFeedbackID:null,showPositiveMessaging:false,viewerIsCreator:true};f.exports=l}),null);
__d("AdsBusinessIntegrityAppealTip.react",["fbt","React","SUIBusinessTheme","SUIText.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;function k(m){if(m.appealAlreadyCreated&&(m.messageType==="positive_message"||m.messageType==="positive_message_with_tat"))return h._("You can check the status of your review in your Support Inbox.");switch(m.messageType){case"positive_message":return h._("If you've read our policies and think that we made a mistake, you can request a second review by our team.");case"positive_message_with_tat":return h._("If you've read our policies and think that we made a mistake, you can request a second review by our team. Typically, you'll hear back from us in less than 24 hours.");default:return h._("If you think your ad follows our Advertising Policies, you can appeal this disapproval.")}}i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;l.prototype.render=function(){return c("React").createElement(c("SUIText.react"),{color:"secondary",size:this.props.size,theme:c("SUIBusinessTheme")},c("React").createElement(k,{appealAlreadyCreated:this.props.appealAlreadyCreated,messageType:this.props.messageType}))};function l(){i.apply(this,arguments)}l.defaultProps={messageType:null,size:"body3"};f.exports=l}),null);
__d("BoostedComponentIntegrityAppealBoxV2.react",["cx","AdsBusinessIntegrityAppealDialog.react","AdsBusinessIntegrityAppealTip.react","DOMContainer.react","React","SUIBusinessTheme","SUINotice.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.render=function(){return c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:"error"},c("React").createElement(c("DOMContainer.react"),null,this.props.disapprovalMessage.content.cloneNode(true)),this.$BoostedComponentIntegrityAppealBoxV21())};k.prototype.$BoostedComponentIntegrityAppealBoxV21=function(){if(!this.props.isAppealAllowed)return null;var l=this.props.messageType==="positive_message"||this.props.messageType==="positive_message_with_tat";return c("React").createElement("div",null,c("React").createElement("div",{className:"_3-8w"},c("React").createElement(c("AdsBusinessIntegrityAppealTip.react"),{appealAlreadyCreated:this.props.appealAlreadyCreated,messageType:this.props.messageType})),c("React").createElement("div",{className:"_3-8w"},c("React").createElement(c("AdsBusinessIntegrityAppealDialog.react"),{accountID:this.props.accountID,adgroupID:this.props.adgroupID,advertiserComment:this.props.advertiserComment,appealAlreadyCreated:this.props.appealAlreadyCreated,appealCaseFeedbackID:this.props.appealCaseFeedbackID,appealStatusLoadState:this.props.appealStatusLoadState,appealSuccess:this.props.appealSuccess,disapprovalCode:this.props.disapprovalCode,disapprovalReason:null,policyContentAcknowledged:this.props.policyContentAcknowledged,showPositiveMessaging:l,statusChangeAcknowledged:this.props.statusChangeAcknowledged,submitShowsPolicy:this.props.submitShowsPolicy})))};function k(){i.apply(this,arguments)}f.exports=k}),null);
__d("BoostedComponentAppealBoxV2Container.react",["AdproRunStatus","AdReviewAppealsAction","AdReviewAppealsDataDispatcher","AdReviewAppealsStore","AdsAPIAdgroupPaths","AdsFluxContainer","AdsIntegrityContentStore","AdsLoadState_LEGACY","AdsLWIInstanceUtils","AdsQEStore","AdsSelectorUtils","BoostedAutomatedAdsMultiAdgroupSpecStoreV2","BoostedComponentAppID","BoostedComponentBaseContainer.react","BoostedComponentContainerUtils","BoostedComponentErrorBoundaryContainer.react","BoostedComponentExistingAdInfoStoreV2","BoostedComponentIntegrityAppealBoxV2.react","BoostedComponentStatus","DisapprovalMessageKey","PolicyPageUtils","React","adsLWIAdgroupsSelector","adsLWICurrentInstanceDataSelector","adsLWISelectedAdgroupSelectors"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded,l=c("adsLWISelectedAdgroupSelectors").adsLWISelectedAdgroupIndexSelector,m=c("adsLWISelectedAdgroupSelectors").adsLWISelectedAdgroupSelector;h=babelHelpers.inherits(n,c("BoostedComponentBaseContainer.react"));i=h&&h.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=i.constructor).call.apply(o,[this].concat(r)),this.state={accountID:"",adgroupID:"",advertiserComment:"",appealAlreadyCreated:false,appealCaseFeedbackID:null,appealPostCreationFeedbackID:"",appealStatusLoadState:"",appealSuccess:false,disapprovalCode:null,disapprovalMessage:{},isAppealAllowed:true,messageType:"control",policyContentAcknowledged:false,shouldShow:false,statusChangeAcknowledged:false,submitShowsPolicy:false},p}n.getStoresLegacy=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("AdsIntegrityContentStore"),c("AdReviewAppealsStore"),c("AdsQEStore"),c("BoostedComponentExistingAdInfoStoreV2"),c("BoostedAutomatedAdsMultiAdgroupSpecStoreV2")])};n.getStoresNew=function(){return[].concat(c("AdsSelectorUtils").getStores([c("adsLWIAdgroupsSelector"),c("adsLWICurrentInstanceDataSelector"),l,m]),[c("AdsIntegrityContentStore"),c("AdReviewAppealsStore"),c("AdsQEStore"),c("BoostedComponentExistingAdInfoStoreV2"),c("BoostedAutomatedAdsMultiAdgroupSpecStoreV2")])};n.calculateStateLegacy=function(o,p){__p&&__p();var q=p.appID,r=p.targetID,s=p.boostID,t=j(q,r,s),u=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(t),v=u.getCampaignAdAccountID(),w=null;if(q===c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS){var x=c("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDataByKey(t),y=k([x]);if(!y)return babelHelpers["extends"]({},o,{dataLoaded:y});var z=x.getSelectedAdgroupIndex(),A=x.getEffectiveStatuses().get(z);if(A!==c("AdproRunStatus").DISABLED)return babelHelpers["extends"]({},o,{shouldShow:false});w=x.getAdgroupIDs().get(z)}else{var B=u.getAdStatus();if(B!==c("BoostedComponentStatus").REJECTED)return babelHelpers["extends"]({},o,{shouldShow:false});w=u.getAdgroupID()}if(!w)return babelHelpers["extends"]({},o,{shouldShow:false});if(c("AdReviewAppealsStore").shouldFetchAppealStatus(w)){c("AdReviewAppealsDataDispatcher").dispatchAppealsDataFromViewAction({adgroupID:w},c("AdReviewAppealsAction").APPEAL_STATUS_FETCH);return babelHelpers["extends"]({},o,{shouldShow:false})}var C=false,D=null,E=c("AdsLoadState_LEGACY").LOADED,F=true,G=v!=null?c("AdsQEStore").get("appeals_policy_content_lwi",v):null,H=c("AdReviewAppealsStore").getAdgroupAppealStatusPayload(w);if(H){C=H.appealed;D=H.caseFeedbackID;E=H.loadState;F=H.isAppealAllowed}var I=c("AdsIntegrityContentStore").getFromAdgroupID(w),J=I.adResult.get(c("DisapprovalMessageKey").ORIGINAL),K=I.adResult.get(c("DisapprovalMessageKey").DISAPPROVAL_CODE),L=c("PolicyPageUtils").getPolicyLinkForDisapprovalCode(K),M=(G!=null&&G.hasValue()?G.getValueEnforcing().getParamBool("show_policy_content"):false)&&!c("AdReviewAppealsStore").isPolicyContentSubmitted()&&Object.prototype.hasOwnProperty.call(L,"top_policy");if(!J||!J.content)return babelHelpers["extends"]({},o,{shouldShow:false});var N=c("AdsQEStore").getForCurrentUser("ad_appeal_positive_messages"),O=N&&N.isDone()&&N.hasValue()?N.getValueEnforcing().getParam("message_type"):"control";return{accountID:v,adgroupID:w,advertiserComment:c("AdReviewAppealsStore").getAdvertiserComment(),appealAlreadyCreated:C,appealCaseFeedbackID:D,appealPostCreationFeedbackID:c("AdReviewAppealsStore").getAppealPostCreationFeedbackID(),appealStatusLoadState:E,appealSuccess:c("AdReviewAppealsStore").isAppealSucceeded(),disapprovalCode:K,disapprovalMessage:J,isAppealAllowed:F,messageType:O,policyContentAcknowledged:c("AdReviewAppealsStore").isPolicyContentAcknowledged(),shouldShow:true,statusChangeAcknowledged:c("AdReviewAppealsStore").isStatusChangeAcknowledged(),submitShowsPolicy:M}};n.calculateStateNew=function(o,p){__p&&__p();var q=p.appID,r=p.targetID,s=p.boostID,t=j(q,r,s),u=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(t),v=u.getCampaignAdAccountID(),w=null;if(q===c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS){var x=c("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDataByKey(t),y=m(),z=k([x])&&!y.isLoading()&&y.hasValue();if(!z)return babelHelpers["extends"]({},o,{dataLoaded:z});var A=l(),B=c("adsLWIAdgroupsSelector")().getValueEnforcing(),C=B.map(function(T){return T.getIn(c("AdsAPIAdgroupPaths").ADGROUP_STATUS)}).toList(),D=C.get(A);if(D!==c("AdproRunStatus").DISABLED)return babelHelpers["extends"]({},o,{shouldShow:false});var E=y.getValueEnforcing();w=E.getIn(c("AdsAPIAdgroupPaths").ID,null)}else{var F=u.getAdStatus();if(F!==c("BoostedComponentStatus").REJECTED)return babelHelpers["extends"]({},o,{shouldShow:false});w=u.getAdgroupID()}if(!w)return babelHelpers["extends"]({},o,{shouldShow:false});if(c("AdReviewAppealsStore").shouldFetchAppealStatus(w)){c("AdReviewAppealsDataDispatcher").dispatchAppealsDataFromViewAction({adgroupID:w},c("AdReviewAppealsAction").APPEAL_STATUS_FETCH);return babelHelpers["extends"]({},o,{shouldShow:false})}var G=false,H=null,I=c("AdsLoadState_LEGACY").LOADED,J=true,K=v!=null?c("AdsQEStore").get("appeals_policy_content_lwi",v):null,L=c("AdReviewAppealsStore").getAdgroupAppealStatusPayload(w);if(L){G=L.appealed;H=L.caseFeedbackID;I=L.loadState;J=L.isAppealAllowed}var M=c("AdsIntegrityContentStore").getFromAdgroupID(w),N=M.adResult.get(c("DisapprovalMessageKey").ORIGINAL),O=M.adResult.get(c("DisapprovalMessageKey").DISAPPROVAL_CODE),P=c("PolicyPageUtils").getPolicyLinkForDisapprovalCode(O),Q=(K!=null&&K.hasValue()?K.getValueEnforcing().getParamBool("show_policy_content"):false)&&!c("AdReviewAppealsStore").isPolicyContentSubmitted()&&Object.prototype.hasOwnProperty.call(P,"top_policy");if(!N||!N.content)return babelHelpers["extends"]({},o,{shouldShow:false});var R=c("AdsQEStore").getForCurrentUser("ad_appeal_positive_messages"),S=R!=null&&R.hasValue()?R.getValueEnforcing().getParam("message_type"):"control";return{accountID:v,adgroupID:w,advertiserComment:c("AdReviewAppealsStore").getAdvertiserComment(),appealAlreadyCreated:G,appealCaseFeedbackID:H,appealPostCreationFeedbackID:c("AdReviewAppealsStore").getAppealPostCreationFeedbackID(),appealStatusLoadState:I,appealSuccess:c("AdReviewAppealsStore").isAppealSucceeded(),disapprovalCode:O,disapprovalMessage:N,isAppealAllowed:J,messageType:S,policyContentAcknowledged:c("AdReviewAppealsStore").isPolicyContentAcknowledged(),shouldShow:true,statusChangeAcknowledged:c("AdReviewAppealsStore").isStatusChangeAcknowledged(),submitShowsPolicy:Q}};n.prototype.render=function(){if(!this.state.shouldShow)return null;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentIntegrityAppealBoxV2"},c("React").createElement(c("BoostedComponentIntegrityAppealBoxV2.react"),{accountID:this.state.accountID,adgroupID:this.state.adgroupID,advertiserComment:this.state.advertiserComment,appealAlreadyCreated:this.state.appealAlreadyCreated,appealCaseFeedbackID:this.state.appealCaseFeedbackID,appealPostCreationFeedbackID:this.state.appealPostCreationFeedbackID,appealStatusLoadState:this.state.appealStatusLoadState,appealSuccess:this.state.appealSuccess,disapprovalCode:this.state.disapprovalCode,disapprovalMessage:this.state.disapprovalMessage,isAppealAllowed:this.state.isAppealAllowed,messageType:this.state.messageType,policyContentAcknowledged:this.state.policyContentAcknowledged,statusChangeAcknowledged:this.state.statusChangeAcknowledged,submitShowsPolicy:this.state.submitShowsPolicy}))};f.exports=c("AdsFluxContainer").create(n,{withProps:true,name:f.id})}),null);
__d("BoostedComponentInstagramAdsDebugDetails.react",["cx","AdsCFSpecViewerHelper","React","boostedComponentGKCheck"],(function a(b,c,d,e,f,g,h){"use strict";var i=function i(j){if(!c("boostedComponentGKCheck")("ads_editor_debug"))return null;return c("React").createElement("pre",{className:"_s_o"},c("AdsCFSpecViewerHelper").format(j))};f.exports=i}),null);
__d("BoostedActionAdPreviewSectionV2.react",["cx","fbt","ix","AdsHscrollAdPreviewsUnit.react","AdsLeadGenFormEditorPreviewContainer.react","AdsPreviewApiFormats","BoostedComponentAdPreviewActionsV2","BoostedComponentAdsCreationSpec.react","BoostedComponentAppealBoxV2Container.react","BoostedComponentAppID","BoostedComponentCreativeCategory","BoostedComponentGraphAPI","BoostedComponentInstagramAdsDebugDetails.react","BoostedComponentLeadGenUtils","BoostedComponentRef","Image.react","React","SUIBusinessTheme","SUIBusinessThemeContainer.react","SUINotice.react"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("BoostedComponentLeadGenUtils").isBoostFormStep,n=i._("You haven't added a video yet.");k=babelHelpers.inherits(o,c("React").Component);l=k&&k.prototype;function o(){__p&&__p();var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=l.constructor).call.apply(p,[this].concat(s)),this.$BoostedActionAdPreviewSectionV21=function(u){c("BoostedComponentAdPreviewActionsV2").onPreviewLinkClick(u,this.props.appID,this.props.targetID,this.props.boostID)}.bind(this),this.$BoostedActionAdPreviewSectionV22=function(u,v){c("BoostedComponentAdPreviewActionsV2").onAdFormatSelect(u,v,this.props.appID,this.props.targetID,this.props.boostID)}.bind(this),this.$BoostedActionAdPreviewSectionV23=function(){c("BoostedComponentAdPreviewActionsV2").onToggleInstagramPlacement(this.props.appID,this.props.targetID,this.props.boostID)}.bind(this),this.$BoostedActionAdPreviewSectionV24=function(){c("BoostedComponentAdPreviewActionsV2").loadPreviewFailure(this.props.appID,this.props.targetID,this.props.boostID,this.props.instanceID)}.bind(this),this.$BoostedActionAdPreviewSectionV25=function(){c("BoostedComponentAdPreviewActionsV2").loadPreviewStart(this.props.appID,this.props.targetID,this.props.boostID,this.props.instanceID)}.bind(this),this.$BoostedActionAdPreviewSectionV26=function(){c("BoostedComponentAdPreviewActionsV2").loadPreviewSuccess(this.props.appID,this.props.targetID,this.props.boostID,this.props.instanceID)}.bind(this),q}o.prototype.$BoostedActionAdPreviewSectionV27=function(){var p=this.$BoostedActionAdPreviewSectionV28(),q=c("AdsPreviewApiFormats").DESKTOP_FEED_STANDARD;if(!p.has(c("AdsPreviewApiFormats").DESKTOP_FEED_STANDARD))q=c("AdsPreviewApiFormats").MOBILE_FEED_STANDARD;return q};o.prototype.$BoostedActionAdPreviewSectionV28=function(){var p=this.props.adPreviewFormats;if(p.size>3)return p.slice(0,3);return p};o.prototype.render=function(){__p&&__p();var p=this.props.placement;if(p===c("BoostedComponentRef").WWW_EVENT_COMPOSER)return c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:"information"},i._("You'll see a preview of your ad here after you post."));if(this.props.creativeCategory===c("BoostedComponentCreativeCategory").VIDEO&&!this.props.videoID)return c("React").createElement("div",{className:"_133l"},c("React").createElement(c("Image.react"),{className:"_133m",src:j("92705")}),c("React").createElement("p",{className:"_133n"},n));var q=this.props,r=q.appID,s=q.creativeSpec,t=q.boostID,u=q.targetID,v=babelHelpers.objectWithoutProperties(q,["appID","creativeSpec","boostID","targetID"]);if(r===c("BoostedComponentAppID").BOOSTED_LEAD_GEN&&!m(u))return c("React").createElement("div",{className:"_3jy-"},c("React").createElement(c("SUIBusinessThemeContainer.react"),null,c("React").createElement(c("AdsLeadGenFormEditorPreviewContainer.react"),null)));var w=s.toJS();return c("React").createElement("div",null,c("React").createElement(c("BoostedComponentAppealBoxV2Container.react"),{appID:r,boostID:t,targetID:u}),c("React").createElement(c("AdsHscrollAdPreviewsUnit.react"),babelHelpers["extends"]({},v,{apiAdFormats:this.$BoostedActionAdPreviewSectionV28(),apiVersion:c("BoostedComponentGraphAPI").getPageletAPIVersion(),appID:String(r),creative:w,defaultSelectedAdFormat:this.$BoostedActionAdPreviewSectionV27(),instagramOptInCallback:this.$BoostedActionAdPreviewSectionV23,onAdFormatSelect:this.$BoostedActionAdPreviewSectionV22,onPreviewLinkClick:this.$BoostedActionAdPreviewSectionV21,onPreviewLoadFailure:this.$BoostedActionAdPreviewSectionV24,onPreviewLoadStart:this.$BoostedActionAdPreviewSectionV25,onPreviewLoadSuccess:this.$BoostedActionAdPreviewSectionV26})),c("React").createElement(c("BoostedComponentAdsCreationSpec.react"),{creativeSpec:w}),c("React").createElement(c("BoostedComponentInstagramAdsDebugDetails.react"),{hasInstagramAccount:v.hasInstagramAccount,instagramIneligibleMessage:v.instagramIneligibleMessage,instagramOptedOut:v.instagramOptedOut,instagramPermalink:v.instagramPermalink}))};f.exports=o}),null);
__d("BoostedActionAdPreviewSectionV2Container.react",["AdsFluxContainer","AdsLWIInstanceUtils","AdsPageTypes","AdsPreviewApiFormats","BoostedActionAdPreviewSectionV2.react","BoostedActionCreativeStoreV2","BoostedComponentAdAccountStoreV2","BoostedComponentAudienceStoreV2","BoostedComponentContainerUtils","BoostedComponentContextStoreV2","BoostedComponentErrorBoundaryContainer.react","BoostedComponentExistingAdInfoStoreV2","BoostedComponentSectionV2Spinner.react","BoostedComponentURIStoreV2","immutable","React","adsLWICurrentInstanceDataSelector","adsLWIDialogStateSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded,l=c("immutable").Map([[c("AdsPageTypes").DESKTOP_FEED,c("AdsPreviewApiFormats").DESKTOP_FEED_STANDARD],[c("AdsPageTypes").MOBILE_FEED,c("AdsPreviewApiFormats").MOBILE_FEED_STANDARD],[c("AdsPageTypes").RIGHT_COLUMN,c("AdsPreviewApiFormats").RIGHT_COLUMN_STANDARD],[c("AdsPageTypes").INSTAGRAM_STREAM,c("AdsPreviewApiFormats").INSTAGRAM_STANDARD]]),m=function m(o){var p=[];o.forEach(function(q){if(l.has(q))p.push(l.get(q))});return c("immutable").Set(p)};h=babelHelpers.inherits(n,c("React").Component);i=h&&h.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=i.constructor).call.apply(o,[this].concat(r)),this.state={adAccountID:"",adPreviewFormats:{},creativeCategory:null,creativeSpec:c("immutable").Map(),dataLoaded:false,desktopPermalinkURI:"",hasInstagramAccount:false,instagramAdsCreativeHelpLink:"",instagramAdsHelpLink:"",instagramIneligibleMessage:null,instagramPermalink:"",instagramOptedOut:true,instanceID:"",isUnpublishedSlideshow:false,videoID:null,viewOnMobileAsyncURI:""},p}n.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedActionCreativeStoreV2"),c("BoostedComponentAdAccountStoreV2"),c("BoostedComponentAudienceStoreV2"),c("BoostedComponentContextStoreV2"),c("BoostedComponentExistingAdInfoStoreV2"),c("BoostedComponentURIStoreV2")])};n.calculateState=function(o,p){var q=p.appID,r=p.targetID,s=p.boostID,t=j(q,r,s),u=c("BoostedComponentAdAccountStoreV2").getState(),v=c("BoostedComponentAudienceStoreV2").getDataByKey(t),w=c("BoostedComponentContextStoreV2").getDataByKey(t),x=c("BoostedActionCreativeStoreV2").getDataByKey(t),y=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(t),z=c("BoostedComponentURIStoreV2").getDataByKey(t),A=k([v,w,x,y,z]),B=y.getIsBoosted();if(!B)A=A&&u.getDataLoaded();if(!A)return babelHelpers["extends"]({},o,{dataLoaded:A});return{adAccountID:B?y.getCampaignAdAccountID():u.getSelectedAccountID(),creativeCategory:x.getCreativeCategory(),creativeSpec:x.getValidatedCreativeSpecForAdPreview(q),dataLoaded:A,desktopPermalinkURI:z.getDesktopPermalinkURI(),hasInstagramAccount:!!w.getNullableInstagramAccountID(),instagramAdsCreativeHelpLink:z.getInstagramAdsCreativeHelpCenterURI(),instagramAdsHelpLink:z.getInstagramAdsHelpCenterURI(),instagramIneligibleMessage:x.getInstagramValidationExceptionMessage(),instagramPermalink:z.getInstagramPermalinkURI(),instagramOptedOut:v.getHasUserRemovedInstagramPlacement(),instanceID:c("adsLWIDialogStateSelector")().instanceID,isUnpublishedSlideshow:w.getIsUnpublishedSlideshow()||x.getIsUnpublishedSlideshow(),videoID:x.getVideoID(),viewOnMobileAsyncURI:z.getViewOnMobileAsyncURI(),adPreviewFormats:m(v.getPlacements())}};n.prototype.render=function(){var o=this.state,p=o.dataLoaded,q=babelHelpers.objectWithoutProperties(o,["dataLoaded"]);if(!p)return c("React").createElement(c("BoostedComponentSectionV2Spinner.react"),{height:600});var r=this.props,s=r.appID,t=r.boostID,u=r.placement,v=r.targetID;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedActionAdPreviewSectionV2"},c("React").createElement(c("BoostedActionAdPreviewSectionV2.react"),babelHelpers["extends"]({},q,{appID:s,boostID:t,placement:u,targetID:v})))};f.exports=c("AdsFluxContainer").create(n,{withProps:true,name:f.id})}),null);
__d("formatCurrency",["AdsCurrencyFormatter"],(function a(b,c,d,e,f,g){"use strict";function h(i,j){if(!i||!j)return null;return c("AdsCurrencyFormatter").formatCurrencyFullFormat(j,i,false,true,!(i>=100||j!=="USD"))}f.exports=h}),null);
__d("BoostedComponentAYMTBannerV2.react",["cx","ix","AdsCouponProducts","AdsCouponPromotionError","BoostedComponentCouponStrings","BoostedComponentRef","BoostedComponentTestElement","Image.react","ImageBlock.react","React","SUIBusinessTheme","SUINotice.react","SUIText.react","formatCurrency"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=i("22869"),m=i("276871"),n=i("22870"),o=i("22871"),p=i("22872"),q=i("22873"),r=i("22874"),s=i("22875"),t=i("22876"),u=i("95161"),v=i("76499"),w=14,x=20;function y(D){__p&&__p();switch(D){case"ARS":return l;case"BRL":return m;case"EUR":return n;case"GBP":return o;case"MXN":return p;case"MYR":return q;case"THB":return r;case"VND":return t;default:return s}}var z=function z(D){var E=D.content,F=D.currency,G=D.title,H=y(F);return c("React").createElement("div",{className:"_2u6_"},c("React").createElement(c("Image.react"),{className:"_2u70",src:H}),c("React").createElement("div",{className:"_2u74",spacing:"small"},c("React").createElement("div",{className:"_4hf-"},c("React").createElement(c("SUIText.react"),{"data-testid":c("BoostedComponentTestElement").AYMT_BANNER_TITLE,display:"block",theme:c("SUIBusinessTheme"),weight:"bold"},G),c("React").createElement(c("SUIText.react"),{"data-testid":c("BoostedComponentTestElement").AYMT_BANNER_BODY,display:"block",theme:c("SUIBusinessTheme")},E))))},A=function A(D){var E=D.content,F=D.icon,G=D.size,H=D.title;return c("React").createElement(c("ImageBlock.react"),{className:"_4a53",spacing:"small"},c("React").createElement(c("Image.react"),{height:G,src:F,width:G}),c("React").createElement("div",null,c("React").createElement(c("SUIText.react"),{className:"_4a54",display:"block",theme:c("SUIBusinessTheme")},H),c("React").createElement(c("SUIText.react"),{className:"_4a55",display:"block",theme:c("SUIBusinessTheme")},E)))},B=function B(D){var E=D.content,F=D.error,G=F?"error":"information";return c("React").createElement("div",{className:"_4a52 _2ph_"},c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:G},E))};j=babelHelpers.inherits(C,c("React").Component);k=j&&j.prototype;C.prototype.validatePlacementType=function(){switch(this.props.placement){case c("BoostedComponentRef").AYMT_HOT_POST_NOTIF:case c("BoostedComponentRef").AYMT_LA_HOT_FUTURE_LOCATION_TIP:return true;default:return false}};C.prototype.mapPlacementToBannerContent=function(){switch(this.props.placement){case c("BoostedComponentRef").AYMT_HOT_POST_NOTIF:return{type:A,title:c("BoostedComponentCouponStrings").HOT_POST_TITLE,content:c("BoostedComponentCouponStrings").getHotPostBody(this.props.hotPostPercentile),icon:u,size:x};case c("BoostedComponentRef").AYMT_LA_HOT_FUTURE_LOCATION_TIP:if(!this.props.localAwarenessPercentInc)return null;return{type:A,title:c("BoostedComponentCouponStrings").FUTURE_LOCATION_TITLE,content:c("BoostedComponentCouponStrings").getFutureLocationBody(this.props.localAwarenessPercentInc),icon:v,size:w};default:return null}};C.prototype.getShouldShowAdsObjectiveBanner=function(){return this.props.couponProduct!==c("AdsCouponProducts").AYMT_COUPON_SPEND_X_GET_Y_RESURRECTION};C.prototype.getClaimSuccessBannerContent=function(){var D=this.props,E=D.couponProduct,F=D.currency,G=D.valueInCents,H=c("formatCurrency")(G,F);if(!H)return null;switch(E){case c("AdsCouponProducts").AD_REFERRAL_RECIPIENT_ACQUISITION:return{type:B,content:c("BoostedComponentCouponStrings").REFERRAL_RECIPIENT_CLAIM_AFTER_SUCCESS_NOTICE,error:false};default:return{type:B,content:c("BoostedComponentCouponStrings").COUPON_CLAIM_AFTER_SUCCESS_NOTICE,error:false}}};C.prototype.getClaimFailureBannerContent=function(){return{type:B,content:c("BoostedComponentCouponStrings").HOT_POST_COUPON_CLAIM_AFTER_SUBMIT_FAIL,error:true}};C.prototype.getAdsObjectiveClaimWelcomeBannerContent=function(){var D=this.props,E=D.appID,F=D.cctaType,G=D.currency,H=D.daysBeforeOfferExpiry,I=D.hotPostPercentile,J=D.valueInCents,K=c("formatCurrency")(J,G);if(!K)return null;var L=c("BoostedComponentCouponStrings").getAdsObjectiveCouponWelcomeBody(E,F,K,H,I);if(!L)return null;return{type:z,title:c("BoostedComponentCouponStrings").getAdsObjectiveCouponTitle(K),content:L,currency:G}};C.prototype.getCouponProductClaimWelcomeBannerContent=function(){__p&&__p();var D=this.props,E=D.appID,F=D.cctaType,G=D.couponProduct,H=D.currency,I=D.hasReachSpendGoal,J=D.hotPostPercentile,K=D.isEmployee,L=D.valueInCents,M=c("formatCurrency")(L,H);if(!M)return null;switch(G){case c("AdsCouponProducts").AD4AD_COUPON_HERES_X_BOOST_EVENT_ACQUISITION:case c("AdsCouponProducts").AD4AD_COUPON_HERES_X_BOOST_EVENT_RESURRECTION:case c("AdsCouponProducts").AD4AD_COUPON_HERES_X_BOOST_POST_ACQUISITION:case c("AdsCouponProducts").AD4AD_COUPON_HERES_X_BOOST_POST_RESURRECTION:case c("AdsCouponProducts").AD4AD_COUPON_HERES_X_LOCAL_AWARENESS_ACQUISITION:case c("AdsCouponProducts").AD4AD_COUPON_HERES_X_LOCAL_AWARENESS_RESURRECTION:case c("AdsCouponProducts").AD4AD_COUPON_HERES_X_PROMOTE_CTA_ACQUISITION:case c("AdsCouponProducts").AD4AD_COUPON_HERES_X_PROMOTE_CTA_RESURRECTION:case c("AdsCouponProducts").AD4AD_COUPON_HERES_X_WEBSITE_CLICK_ACQUISITION:case c("AdsCouponProducts").AD4AD_COUPON_HERES_X_WEBSITE_CLICK_RESURRECTION:var N=c("BoostedComponentCouponStrings").getAd4AdCouponWelcomeBody(E,F,M);if(!N)return null;return{type:z,title:c("BoostedComponentCouponStrings").getCommonTitle(M),content:N,currency:H};case c("AdsCouponProducts").ADS_COUPON_INTERNAL_DOGFOOD:return{type:z,title:c("BoostedComponentCouponStrings").DOGFOODING_BANNER_TITLE,content:c("BoostedComponentCouponStrings").DOGFOODING_BANNER_CONTENT,currency:H};case c("AdsCouponProducts").AYMT_COUPON_ACQUISITION_TIP:case c("AdsCouponProducts").AD_REFERRAL_RECIPIENT_ACQUISITION:return{type:z,title:c("BoostedComponentCouponStrings").getCommonTitle(M),content:c("BoostedComponentCouponStrings").getCouponAcquisitionWelcomeBody(M),currency:H};case c("AdsCouponProducts").AYMT_COUPON_BOOST_EVENT_POST:return{type:z,title:c("BoostedComponentCouponStrings").getCommonTitle(M),content:c("BoostedComponentCouponStrings").getBoostedEventResurrectionWelcomeBody(M),currency:H};case c("AdsCouponProducts").AYMT_COUPON_BOOSTED_CTA:return{type:z,title:c("BoostedComponentCouponStrings").getCTATitle(M),content:c("BoostedComponentCouponStrings").getCTASpecificBody(F,M),currency:H};case c("AdsCouponProducts").AYMT_COUPON_HOT_POST_ACQUISITION:case c("AdsCouponProducts").AYMT_COUPON_HOT_POST_HIGH_FOLLOWER_COUNT_HIGH_VALUE_ACQUISITION:case c("AdsCouponProducts").AYMT_COUPON_HOT_POST_HIGH_FOLLOWER_COUNT_LOW_VALUE_ACQUISITION:return{type:z,title:c("BoostedComponentCouponStrings").getCommonTitle(M),content:c("BoostedComponentCouponStrings").getHotPostCouponAcquisitionWelcomeBody(M,J),currency:H};case c("AdsCouponProducts").AYMT_COUPON_HOT_POST_IG:return{type:z,title:c("BoostedComponentCouponStrings").getCommonTitle(M),content:c("BoostedComponentCouponStrings").getHotPostCouponIGSuccessBody(M),currency:H};case c("AdsCouponProducts").AYMT_COUPON_YOUR_LOCATION_IS_GOING_TO_BE_HOT_ACQUISITION:case c("AdsCouponProducts").AYMT_COUPON_YOUR_LOCATION_IS_GOING_TO_BE_HOT:return{type:z,title:c("BoostedComponentCouponStrings").getYourLocationIsGoingToBeHotSuccessTitle(M),content:c("BoostedComponentCouponStrings").getYourLocationIsGoingToBeHotSuccessBody(this.props.localAwarenessPercentInc),currency:H};case c("AdsCouponProducts").AYMT_COUPON_HOT_POST_RESURRECTION:case c("AdsCouponProducts").AYMT_HIGH_CHURN_LIKELIHOOD_SECOND_COUPON:case c("AdsCouponProducts").AYMT_SECOND_COUPON_RESURRECTION:return{type:z,title:c("BoostedComponentCouponStrings").getCommonTitle(M),content:c("BoostedComponentCouponStrings").getHotPostCouponResurrectionWelcomeBody(M,J),currency:H};case c("AdsCouponProducts").AYMT_COUPON_TOUCHPOINT_SELF_SERVE:return{type:z,title:c("BoostedComponentCouponStrings").getCommonTitle(M),content:c("BoostedComponentCouponStrings").getGenericTouchpointSelfServeWelcomeBody(M),currency:H};case c("AdsCouponProducts").AYMT_COUPON_BOOST_AD_INTENT_POST_RESURRECTION:case c("AdsCouponProducts").AYMT_COUPON_BOOST_AD_INTENT_POST_ACQUISITION:case c("AdsCouponProducts").BOOST_POST_HIGH_PRICE_ACQUISITION:case c("AdsCouponProducts").BOOST_POST_LOW_PRICE_ACQUISITION:case c("AdsCouponProducts").BOOST_POST_HIGH_PRICE_RESURRECTION:case c("AdsCouponProducts").BOOST_POST_LOW_PRICE_RESURRECTION:return{type:z,title:c("BoostedComponentCouponStrings").getCommonTitle(M),content:c("BoostedComponentCouponStrings").getBoostedPostWithAdIntentWelcomeBody(M),currency:H};case c("AdsCouponProducts").AYMT_COUPON_BOOST_WEBSITE_ACQUISITION:return{type:z,title:c("BoostedComponentCouponStrings").getCommonTitle(M),content:c("BoostedComponentCouponStrings").getBoostWebsiteResurrectionWelcomeBody(M),currency:H};case c("AdsCouponProducts").ADS_GUIDED_COURSE_RUN_FIRST_AD_COUPON:return{type:z,title:c("BoostedComponentCouponStrings").getCommonTitle(M),content:c("BoostedComponentCouponStrings").getAdvertiserGuidedCourseCouponBannerBody(L?L:0,M,K),currency:H};case c("AdsCouponProducts").ADS_CREDIT_EXPERIENCE_HERES_X_COUPON:return{type:z,title:c("BoostedComponentCouponStrings").getCommonTitle(M),content:c("BoostedComponentCouponStrings").getAdsCreditExperienceCouponWelcomeBody(L?L:0,K),currency:H};case c("AdsCouponProducts").AYMT_COUPON_BOOSTED_AUTOMATED_ADS_RESURRECTION_LOW_VALUE:case c("AdsCouponProducts").AYMT_COUPON_BOOSTED_AUTOMATED_ADS_RESURRECTION_HIGH_VALUE:return null;case c("AdsCouponProducts").AYMT_COUPON_YOUR_VIDEO_POST_IS_HOT_RESURRECTION:return{type:z,title:c("BoostedComponentCouponStrings").getYourVideoPostIsHotWelcomeTitle(M),content:c("BoostedComponentCouponStrings").getYourVideoPostIsHotWelcomeBody(J),currency:H};case c("AdsCouponProducts").AYMT_COUPON_SPEND_X_GET_Y_RESURRECTION:if(I)return{type:z,title:c("BoostedComponentCouponStrings").getAdsObjectiveCouponTitle(M),content:c("BoostedComponentCouponStrings").getSpendXGetYCouponClaimWelcomeBody(),currency:H};return{type:z,title:c("BoostedComponentCouponStrings").getSpendXGetYCouponTitle(M),content:c("BoostedComponentCouponStrings").getSpendXGetYCouponWelcomeBody(M),currency:H};case c("AdsCouponProducts").AYMT_COUPON_FIXED_PROMOTION_RETENTION:return{type:z,title:c("BoostedComponentCouponStrings").getCommonTitle(M),content:c("BoostedComponentCouponStrings").getFixedPromotionCouponWelcomeBody(M),currency:H};case c("AdsCouponProducts").AYMT_BOOST_POST_ABANDONMENT_ACQUISITION:return{type:z,title:c("BoostedComponentCouponStrings").getCommonTitle(M),content:c("BoostedComponentCouponStrings").getCouponAcquisitionWelcomeBody(M),currency:H};case c("AdsCouponProducts").AYMT_BOOST_POST_ABANDONMENT_RESURRECTION:return{type:z,title:c("BoostedComponentCouponStrings").getCommonTitle(M),content:c("BoostedComponentCouponStrings").getCouponAcquisitionWelcomeBody(M),currency:H};case c("AdsCouponProducts").BOOSTED_APP_INSTALL_RESURRECTION:case c("AdsCouponProducts").BOOSTED_APP_INSTALL_ACQUISITION:return{type:z,title:c("BoostedComponentCouponStrings").getAppInstallCouponTitle(M),content:c("BoostedComponentCouponStrings").getAppInstallCouponBody(M),currency:H};case c("AdsCouponProducts").AYMT_COUPON_PROMOTE_PAGE_LIKE_ACQUISITION:return{type:z,title:c("BoostedComponentCouponStrings").getPromotePageLikeWelcomeTitle(M),content:c("BoostedComponentCouponStrings").getPromotePageLikeWelcomeBody(),currency:H}}return null};C.prototype.mapAdsObjectiveToBannerContent=function(){var D=this.props.success;if(D)return this.getClaimSuccessBannerContent();else if(D===false)return this.getClaimFailureBannerContent();return this.getAdsObjectiveClaimWelcomeBannerContent()};C.prototype.mapCouponProductToBannerContent=function(){var D=this.props.success;if(D)return this.getClaimSuccessBannerContent();else if(D===false)return this.getClaimFailureBannerContent();return this.getCouponProductClaimWelcomeBannerContent()};C.prototype.mapErrorToBannerContent=function(){switch(this.props.error){case c("AdsCouponPromotionError").ALREADY_CLAIMED:return{type:B,content:c("BoostedComponentCouponStrings").ALREADY_CLAIMED,error:true};case c("AdsCouponPromotionError").ENROLL_FAILED:return{type:B,content:c("BoostedComponentCouponStrings").COUPON_FAILURE,error:true}}return null};C.prototype.render=function(){__p&&__p();var D=null;if(this.props.error)D=this.mapErrorToBannerContent();else if(this.props.couponProduct){var E=this.getShouldShowAdsObjectiveBanner();if(E)D=this.mapAdsObjectiveToBannerContent();else D=this.mapCouponProductToBannerContent()}else{if(!this.validatePlacementType())return null;D=this.mapPlacementToBannerContent()}if(!D)return null;var F=D.type;return c("React").createElement("div",{"data-testid":c("BoostedComponentTestElement").AYMT_BANNER},c("React").createElement(F,D))};function C(){j.apply(this,arguments)}f.exports=C}),null);
__d("BoostedComponentAYMTBannerV2Container.react",["AdsFluxContainer","AdsLWIInstanceUtils","BoostedComponentAYMTBannerV2.react","BoostedComponentContainerUtils","BoostedComponentContextStoreV2","BoostedComponentCouponPromotionActionsV2","BoostedComponentCouponPromotionStoreV2","BoostedComponentErrorBoundaryContainer.react","BoostedComponentExistingAdInfoStoreV2","React","URI","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded,l=75;h=babelHelpers.inherits(m,c("React").Component);i=h&&h.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=i.constructor).call.apply(n,[this].concat(q)),this.state={cctaType:null,couponOffer:null,couponProduct:null,currency:null,dataLoaded:false,error:null,hotPostPercentile:l,isEmployee:false,hasReachSpendGoal:false,localAwarenessPercentInc:null,placement:null,success:null,valueInCents:null,spendRequirement:null,daysToCompletePromotion:null,daysBeforeOfferExpiry:null},o}m.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedComponentContextStoreV2"),c("BoostedComponentCouponPromotionStoreV2"),c("BoostedComponentExistingAdInfoStoreV2")])};m.calculateState=function(n,o){__p&&__p();var p=o.appID,q=o.targetID,r=o.boostID,s=j(p,q,r),t=c("BoostedComponentContextStoreV2").getDataByKey(s),u=c("BoostedComponentCouponPromotionStoreV2").getData(p,q),v=u?k([t,u]):false;if(!v)return babelHelpers["extends"]({},n,{dataLoaded:v});var w=l;if(t.getHotnessPercentile()>w)w=t.getHotnessPercentile();var x=null,y=t.getLocalAwareness();if(y&&y.get("percent_inc"))x=y.get("percent_inc");var z=t.getPlacement();return{cctaType:u&&u.get("ccta_type"),couponOffer:u&&u.get("coupon_offer"),couponProduct:u&&u.get("coupon_product"),currency:u&&u.get("currency"),dataLoaded:v,error:u&&u.get("error"),hotPostPercentile:w,isEmployee:u&&u.get("is_employee")||false,hasReachSpendGoal:u&&u.get("has_reach_spend_goal")||false,localAwarenessPercentInc:x,placement:z,success:u&&u.get("success"),valueInCents:u&&u.get("value_in_cents"),spendRequirement:u&&u.get("spend_requirement"),daysToCompletePromotion:u&&u.get("days_to_complete_promotion"),daysBeforeOfferExpiry:u&&u.get("days_before_offer_expiry")}};m.prototype.componentDidMount=function(){var n=this.props,o=n.appID,p=n.boostID,q=n.pageID,r=n.targetID,s=c("BoostedComponentCouponPromotionStoreV2").getData(o,r);if(s&&k([s]))return;var t=new(c("URI"))(window.location.href).getQueryData(),u=t.coupon_offer||t.coupon_promotion_group_id?Number(t.coupon_offer||t.coupon_promotion_group_id):null;if(u===null)u=s&&s.get("coupon_offer");var v=j(o,r,p),w=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(v),x=c("BoostedComponentContextStoreV2").getDataByKey(v);c("BoostedComponentCouponPromotionActionsV2").fetchCouponPromotionData(o,w.getIsBoosted(),q,r,u,null,x.getPlacement())};m.prototype.render=function(){if(!this.state.dataLoaded)return null;var n=this.props.appID;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentAYMTBannerV2"},c("React").createElement(c("BoostedComponentAYMTBannerV2.react"),babelHelpers["extends"]({},this.state,{appID:n})))};f.exports=c("AdsFluxContainer").create(m,{withProps:true,name:f.id})}),null);
__d("BoostedActionRightColumnSectionV2.react",["cx","BoostedActionAdPreviewSectionV2Container.react","BoostedComponentAYMTBannerV2Container.react","React"],(function a(b,c,d,e,f,g,h){"use strict";var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.render=function(){return c("React").createElement("div",{className:"_r-l"},c("React").createElement(c("BoostedComponentAYMTBannerV2Container.react"),this.props),c("React").createElement(c("BoostedActionAdPreviewSectionV2Container.react"),this.props))};function k(){i.apply(this,arguments)}f.exports=k}),null);
__d("AdsAdAccountSelector.react",["fbt","AdsTargetingTogglerSafeMixin","BoostedComponentClientEvent","BUIAdoptionSelector.react","BUIAdoptionSelectorOption.react","BUIAdoptionUtils","React"],(function a(b,c,d,e,f,g,h){__p&&__p();var i=c("React").PropTypes,j=c("React").createClass({displayName:"AdsAdAccountSelector",mixins:[c("AdsTargetingTogglerSafeMixin")],propTypes:{accounts:i.object.isRequired,fontSize:i.number,maxWidth:i.number,onDataUpdate:i.func.isRequired,selectedAccount:i.string.isRequired,size:i.oneOf(["small","medium","large","xlarge","xxlarge"]),width:i.number},getDefaultProps:function k(){return{size:"medium"}},getInitialState:function k(){return{selectedAccount:this.props.selectedAccount}},componentWillReceiveProps:function k(l){this.setStateSafe(l)},_onDataUpdate:function k(l){this.setStateSafe({selectedAccount:l.value});this.props.onDataUpdate(c("BoostedComponentClientEvent").UPDATE_ACCOUNT,l.value)},_getAccountOptions:function k(){var l=[],m=this.props.accounts,n={fontSize:this.props.fontSize,width:this.props.width};for(var o in m)l.push(c("React").createElement(c("BUIAdoptionSelectorOption.react"),{key:o,value:o},c("React").createElement("div",{style:n},h._("{account_name} ({account_id}, {account_currency})",[h.param("account_name",m[o].name),h.param("account_id",o),h.param("account_currency",m[o].currency)]))));return l},render:function k(){return c("React").createElement(c("BUIAdoptionSelector.react"),{maxHeight:200,maxWidth:this.props.maxWidth,width:this.props.width,value:this.state.selectedAccount,onChange:c("BUIAdoptionUtils").convertSelectorXUIOnChangeToSUIOnChange(this._onDataUpdate)},this._getAccountOptions())}});f.exports=j}),null);
__d("AdsCurrencySelector.react",["AdsTargetingTogglerSafeMixin","BoostedComponentClientEvent","BUIAdoptionSelector.react","BUIAdoptionSelectorOption.react","BUIAdoptionUtils","CurrencyConfig","React"],(function a(b,c,d,e,f,g){__p&&__p();var h=c("React").PropTypes,i=c("React").createClass({displayName:"AdsCurrencySelector",mixins:[c("AdsTargetingTogglerSafeMixin")],propTypes:{disabled:h.bool,fontSize:h.number,maxWidth:h.number,onDataUpdate:h.func.isRequired,selectedCurrency:h.string.isRequired,showISOCode:h.bool,size:h.oneOf(["small","medium","large","xlarge","xxlarge"]),width:h.number},getDefaultProps:function j(){return{showISOCode:false,size:"medium"}},getInitialState:function j(){return{selectedCurrency:this.props.selectedCurrency}},componentWillReceiveProps:function j(k){this.setStateSafe(k)},_onDataUpdate:function j(k){this.setStateSafe({selectedCurrency:k.value});this.props.onDataUpdate(c("BoostedComponentClientEvent").UPDATE_CURRENCY,k.value)},_getSortedCurrencies:function j(){return c("CurrencyConfig").adsCurrencyCodes.map(function(k){return c("CurrencyConfig").adsCurrenciesByCode[k]}).sort(function(k,l){return k.name.localeCompare(l.name)})},_getCurrencyString:function j(k,l){if(this.props.showISOCode)return k+" ("+l+") ";return k},render:function j(){var k=this._getSortedCurrencies(),l=k.length,m={fontSize:this.props.fontSize,width:this.props.width},n=[];for(var o=0;o<l;o++)n.push(c("React").createElement(c("BUIAdoptionSelectorOption.react"),{key:k[o].iso,value:k[o].iso},c("React").createElement("div",{style:m},this._getCurrencyString(k[o].name,k[o].iso))));return c("React").createElement("div",null,c("React").createElement(c("BUIAdoptionSelector.react"),{disabled:this.props.disabled,maxHeight:200,maxWidth:this.props.maxWidth,value:this.state.selectedCurrency,onChange:c("BUIAdoptionUtils").convertSelectorXUIOnChangeToSUIOnChange(this._onDataUpdate)},n))}});f.exports=i}),null);
__d("AdsPaymentInfo.react",["fbt","invariant","AdsPaymentName","Link.react","React","URI"],(function a(b,c,d,e,f,g,h,i){__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;function m(){var n,o;"use strict";for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=k.constructor).call.apply(n,[this].concat(q)),this.getPaymentLink=function(){if(this.props.adAccountInfo.isPrepayAccount)return null;var s=new(c("URI"))("/ads/manage/funding.php").addQueryData("act",this.props.adAccountInfo.id);return c("React").createElement(c("Link.react"),{href:s,target:"_blank"},h._("Change"))}.bind(this),o}m.prototype.render=function(){"use strict";return c("React").createElement("div",null,c("AdsPaymentName").getPaymentName(this.props.adAccountInfo,true),c("React").createElement("span",{className:"mls"},this.getPaymentLink()))};m.propTypes={adAccountInfo:l.shape({id:l.string,hasFundingSource:function n(o,p,q){o[p]||i(0)}}).isRequired};f.exports=m}),null);
__d("BoostedComponentSubscribeAYMTMessengerCheckbox.react",["ix","cx","fbt","AdsFBIconDownsized.react","BIGAdoptionConfig","Grid.react","Image.react","React","SUIBusinessTheme","SUIMessageBox.react","XUICheckboxInput.react","asset","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("Grid.react").GridItem;k=babelHelpers.inherits(n,c("React").Component);l=k&&k.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=l.constructor).call.apply(o,[this].concat(r)),this.$BoostedComponentSubscribeAYMTMessengerCheckbox1=function(event){this.props.updateMSGOptIn(event.target.checked)}.bind(this),p}n.prototype.render=function(){return c("React").createElement("div",{className:"_1m3z"},c("React").createElement(c("SUIMessageBox.react"),{hasShadow:false,theme:c("SUIBusinessTheme")},c("React").createElement("div",{className:"_1m3-"},j._(["New! Get Updates in {Messenger Fbglyph Icon} Messenger.","7623dc2d9fdb23ebea301a0dfc9c5620"],[j.param("Messenger Fbglyph Icon",c("React").createElement(c("AdsFBIconDownsized.react"),{className:"_1m3_",src:c("BIGAdoptionConfig").ads_fbicon_adoption?h("406024"):h("138277")}))])),c("React").createElement(c("Grid.react"),{cols:2},c("React").createElement(m,{className:"_1m40"},c("React").createElement(c("XUICheckboxInput.react"),{defaultChecked:true,onClick:this.$BoostedComponentSubscribeAYMTMessengerCheckbox1})),c("React").createElement(m,null,c("React").createElement("div",{className:"_1m41"},j._("Send me updates and tips for ads that are created and managed under this account."))))))};f.exports=n}),null);
__d("CheckoutV2ExperimentGroup",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({CONTROL:"control",INLINE:"inline",BUDGET_SHOWN:"budget_shown",NO_BUDGET_SHOWN:"no_budget_shown"})}),null);
__d("BoostedComponentAdAccountSectionV2.react",["cx","fbt","AdproObjectiveType","AdsAdAccountSelector.react","AdsCurrencySelector.react","AdsPaymentInfo.react","BoostedAutomatedAdsObjectiveActionsV2","BoostedComponentAdAccountActionsV2","BoostedComponentAppIDUtils","BoostedComponentDialogUIActionsV2","BoostedComponentLabeledEditor.react","BoostedComponentPixelActionsV2","BoostedComponentQEs","BoostedComponentQEUtils","BoostedComponentSectionV2.react","BoostedComponentStringsV2","BoostedComponentSubscribeAYMTMessengerCheckbox.react","BootloadedComponent.react","CheckoutV2ExperimentGroup","CurrencyConfig","Image.react","JSResource","LeftRight.react","React","SUIBusinessTheme","SUISpinner.react","SUIText.react","autoFlipStyleProps","keyMirror"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("keyMirror")(c("CurrencyConfig").adsCurrenciesByCode),m=i._("Your primary payment method will be charged for any amount spent beyond the value of your coupon."),n=function n(t){var u=t.canUpdateCurrency,v=t.currency,w=t.onDataUpdate;if(!u)return null;var x=i._("Currency");return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{className:"_2ph_",label:x,shade:"dark"},c("React").createElement(c("AdsCurrencySelector.react"),{selectedCurrency:v,onDataUpdate:w}))},o=function o(t){var u=t.accounts;if(u.size<=1)return null;var v=t.disableAdAccountSelector,w=t.isBoosted,x=t.selectedAccountID,y=t.selectedAccountName,z=t.onDataUpdate;if(w||v)return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{className:"_2ph_",label:c("BoostedComponentStringsV2").ACCOUNT_SECTION,shade:"dark"},c("React").createElement(c("SUIText.react"),{theme:c("SUIBusinessTheme")},y));return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{className:"_2ph_",label:c("BoostedComponentStringsV2").ACCOUNT_SECTION,shade:"dark"},c("React").createElement(c("AdsAdAccountSelector.react"),{accounts:u.toJS(),selectedAccount:x,onDataUpdate:z}))},p=function p(t){var u=t.appID,v=t.boostID,w=t.checkoutV2ExperimentGroup,x=t.isBoosted,y=t.isCheckout,z=t.targetID;if(!y||w!==c("CheckoutV2ExperimentGroup").BUDGET_SHOWN||x)return null;return c("React").createElement(c("BootloadedComponent.react"),{appID:u,boostID:v,bootloadLoader:c("JSResource")("BoostedComponentCheckoutAdCreditSectionV2Container.react").__setRef("BoostedComponentAdAccountSectionV2.react"),bootloadPlaceholder:c("React").createElement(c("SUISpinner.react"),{size:"large",theme:c("SUIBusinessTheme")}),targetID:z})},q=function q(t){__p&&__p();var u=t.appID,v=t.boostID,w=t.currency,x=t.hasCoupon,y=t.isCheckout,z=t.paymentInfo,A=t.targetID;if(!z.get("hasFundingSource"))return null;var B=null;if(x){var C=c("BoostedComponentAppIDUtils").isBoostedAutomatedAds(u)&&w===l.USD,D=C?c("autoFlipStyleProps")({marginTop:"8px",marginLeft:"32px"}):{},E=c("React").createElement(c("SUIText.react"),{display:"block",shade:"light",size:"meta1",style:D,theme:c("SUIBusinessTheme")},m);B=C?c("React").createElement(c("LeftRight.react"),{direction:"left"},c("React").createElement(c("Image.react"),{className:"_3-8w",src:"/images/ads/growth/ads_referral/USD.png"}),E):E}var F=i._("Payment Method"),G=y?c("React").createElement(c("BootloadedComponent.react"),{appID:u,boostID:v,bootloadLoader:c("JSResource")("BoostedComponentPaymentMethodSelectorV2Container.react").__setRef("BoostedComponentAdAccountSectionV2.react"),bootloadPlaceholder:c("React").createElement(c("SUISpinner.react"),{size:"large",theme:c("SUIBusinessTheme")}),targetID:A}):c("React").createElement(c("AdsPaymentInfo.react"),{adAccountInfo:t.paymentInfo.toJS()});return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{className:"_2ph_",label:F,shade:"dark"},G,B)},r=function r(t){var u=t.showMessengerOptIn,v=t.appID,w=t.onDataUpdate;if(!u)return null;if(!c("BoostedComponentAppIDUtils").isBoostedAutomatedAds(v)&&!c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_COMPONENT_AYMT_MESSENGER_OPTIN).getParamBool("show_optin",false))return null;return c("React").createElement("div",{className:"_3-9b"},c("React").createElement(c("BoostedComponentSubscribeAYMTMessengerCheckbox.react"),{updateMSGOptIn:w}))};j=babelHelpers.inherits(s,c("React").Component);k=j&&j.prototype;function s(t){__p&&__p();k.constructor.call(this,t);this.$BoostedComponentAdAccountSectionV21=function(event,x){__p&&__p();var y=this.props,z=y.appID,A=y.targetID,B=y.boostID,C=y.objective,D=y.pageID,E=y.placement,F=y.isStepperFlow,G=y.preventPixelReset;if(c("BoostedComponentAppIDUtils").isBoostedAutomatedAds(z)&&C===c("AdproObjectiveType").WEBSITE_CONVERSIONS){c("BoostedAutomatedAdsObjectiveActionsV2").onWebsiteConversionsPixelSelection(x,B,c("AdproObjectiveType").WEBSITE_CONVERSIONS,D,E);return}c("BoostedComponentAdAccountActionsV2").updateAdAccount(x,D,z,C,A,B);if(!G)c("BoostedComponentPixelActionsV2").resetPixelSelection(z,B,A);if(F)c("BoostedComponentDialogUIActionsV2").openChangeAdAccountConfirmationDialog(z,A,B)}.bind(this);this.$BoostedComponentAdAccountSectionV22=function(event,x){var y=this.props,z=y.appID,A=y.boostID,B=y.objective,C=y.pageID,D=y.targetID;c("BoostedComponentAdAccountActionsV2").updateCurrency(x,z,D,A,B,C)}.bind(this);this.$BoostedComponentAdAccountSectionV23=function(x){var y=this.props,z=y.appID,A=y.targetID,B=y.boostID;c("BoostedComponentDialogUIActionsV2").updateMessengerOptInChoice(z,A,B,!this.props.messengerOptInChoice)}.bind(this);var u=t.campaignAdAccountID,v=t.isBoosted,w=t.selectedAccountID;if(v&&u&&u!==w)this.$BoostedComponentAdAccountSectionV21(null,u)}s.prototype.render=function(){var t=this.props,u=t.appID,v=t.boostID,w=t.accounts,x=t.disableAdAccountSelector,y=t.canUpdateCurrency,z=t.checkoutV2ExperimentGroup,A=t.currency,B=t.hasCoupon,C=t.hideTitleAndBorder,D=t.isBoosted,E=t.isCheckout,F=t.paymentInfo,G=t.selectedAccountID,H=t.selectedAccountName,I=t.showMessengerOptIn,J=t.targetID,K=C?null:c("BoostedComponentStringsV2").PAYMENT_INFO_SECTION;if(E&&z===c("CheckoutV2ExperimentGroup").INLINE)return null;return c("React").createElement(c("BoostedComponentSectionV2.react"),{noBorder:C,title:K},c("React").createElement(n,{canUpdateCurrency:y,currency:A,onDataUpdate:this.$BoostedComponentAdAccountSectionV22}),c("React").createElement(o,{accounts:w,disableAdAccountSelector:x,isBoosted:D,selectedAccountID:G,selectedAccountName:H,onDataUpdate:this.$BoostedComponentAdAccountSectionV21}),c("React").createElement(p,{appID:u,boostID:v,checkoutV2ExperimentGroup:z,isBoosted:D,isCheckout:E,targetID:J}),c("React").createElement(q,{appID:u,boostID:v,currency:A,hasCoupon:B,isCheckout:E,paymentInfo:F,targetID:J}),c("React").createElement(r,{appID:u,showMessengerOptIn:I,onDataUpdate:this.$BoostedComponentAdAccountSectionV23}))};f.exports=s}),null);
__d("AdsCMSpendCapActionType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({DELETE_SPEND_CAP:"delete",RESET_SPEND_CAP:"reset",UPDATE_SPEND_CAP:"update"})}),null);
__d("AdsPayAPISpendLimitFields",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({AMOUNT_SPENT:"amount_spent",GROUP_ID:"group_id",LIMIT_ID:"limit_id",LIMIT_VALUE:"limit_value",TIME_CREATED:"time_created",TIME_START:"time_start",TIME_STOP:"time_stop"})}),null);
__d("AdsCMAccountSpendLimitDataLoader",["AdsAPIAdAccountFields","AdsCMSpendCapActionType","AdsGraphAPI","AdsPayAPISpendLimitFields","GraphAPIFieldUtils"],(function a(b,c,d,e,f,g){"use strict";var h={loadSpendLimitHistoryForAccount:function i(j){return c("AdsGraphAPI").get(f.id).adaccount(j).get({fields:[c("GraphAPIFieldUtils").getFieldWithSubfields(c("AdsAPIAdAccountFields").SPEND_LIMITS,[c("AdsPayAPISpendLimitFields").AMOUNT_SPENT,c("AdsPayAPISpendLimitFields").GROUP_ID,c("AdsPayAPISpendLimitFields").LIMIT_ID,c("AdsPayAPISpendLimitFields").LIMIT_VALUE,c("AdsPayAPISpendLimitFields").TIME_CREATED,c("AdsPayAPISpendLimitFields").TIME_START,c("AdsPayAPISpendLimitFields").TIME_STOP])]})},loadSpendLimitInfoForAccount:function i(j){return c("AdsGraphAPI").get(f.id).adaccount(j).setPriority("HIGH").get({fields:[c("AdsAPIAdAccountFields").SPEND_CAP,c("AdsAPIAdAccountFields").AMOUNT_SPENT]})},updateAccountSpendLimit:function i(j,k,l){var m={spend_cap_action:k,spend_cap:null};if(k===c("AdsCMSpendCapActionType").UPDATE_SPEND_CAP)m.spend_cap=l;return c("AdsGraphAPI").get(f.id).adaccount(j).post(m)}};f.exports=h}),null);
__d("PaymentsWebDriverTestIDs",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({AD_ACCOUNT_PENDING_DEACTIVATION_MSG:"ad_account_pending_deactivation_msg",ADDRESS_CITY:"address_city",ADDRESS_COUNTRY:"address_country",ADDRESS_STATE:"address_state",ADDRESS_STREET1:"address_street1",ADDRESS_STREET_NUMBER:"address_street_number",ADDRESS_ZIP:"address_zip",ADSET_AMOUNT:"adset_amount",ADSET_NAME:"adset_name",ADSET_RESULTS:"adset_results",APP_AMOUNT:"app_amount",ASL_CONFIRMATION_MESSAGE:"asl_confirmation_message",ASL_DIALOG_BODY:"asl_dialog_body",ASL_DIALOG_CONTINUE_BUTTON:"asl_dialog_continue_button",ASL_DIALOG_INPUT:"asl_dialog_input",ASL_SUMMARY_SECTION:"asl_summary_section",BILLING_DATE_CONFIRMATION_MODAL:"billing_date_confirmation_modal",BILLING_DATE_MODAL_OPEN_BUTTON:"billing_date_modal_open_button",BILLING_DATE_MODAL_SAVE_BUTTON:"billing_date_modal_save_button",BILLING_DATE_MODAL_THRESHOLD_TOGGLE:"billing_date_modal_threshold_toggle",BILLING_REASON:"billing_reason",BILLING_THRESHOLD_CURRENCY_INPUT:"billing_threshold_currency_input",BILLING_THRESHOLD_DIALOG_LINK:"billing_threshold_dialog_link",BRAZIL_TAX_ID:"brazil_tax_id",BRAZIL_TAX_ID_CONFIRMATION_IMG:"brazil_tax_id_confirmation_img",BUSINESS_NAME:"business_name",CAMPAIGN_AMOUNT:"campaign_amount",CAMPAIGN_NAME:"campaign_name",CAMPAIGN_RESULTS:"campaign_results",CHANGE_ACCOUNT_SPENDING_LIMIT:"change_account_spending_limit",CHANGE_BILLING_THRESHOLD_BUTTON:"change_billing_threshold_button",CHANGE_BILLING_THRESHOLD_CONFIRMATION:"change_billing_threshold_confirmation",CHANGE_COUNTRY_SELECTOR:"change_country_selector",CHANGE_PRIMARY_CONFIRMATION_MESSAGE:"change_primary_confirmation_message",CM_ADD_PM_BUTTON:"cm_add_pm_button",CM_PAYMENT_METHOD_CONTAINER:"cm_payment_method_container",CM_SETTINGS_PAGE_SAVE_BUTTON:"cm_settings_page_save_button",CM_SETTINGS_PAGE_TABS:"cm_settings_page_tabs",CONFIRM_DEACTIVATE_AD_ACCOUNT_BUTTON:"confirm_deactivate_ad_account_button",CONFIRM_REMOVE_PM_AND_USE_BACKUP:"confirm_remove_pm_and_use_backup",CONFIRM_REMOVE_PM_BUTTON:"confirm_remove_pm_button",COUPON_ADDED_TEXT:"coupon_added_text",COUPON_APPLY_BUTTON:"coupon_apply_button",COUPON_FIELD:"coupon_field",CREDIT_CARD_EXPIRATION_DATE:"credit_card_expiration_date",CREDIT_CARD_MONTH:"credit_card_month",CREDIT_CARD_NUMBER:"credit_card_number",CREDIT_CARD_POSTAL_CODE:"credit_card_postal_code",CREDIT_CARD_SECURITY_CODE:"credit_card_security_code",CREDIT_CARD_YEAR:"credit_card_year",DD_APPROVE_LABEL:"dd_approve_label",DEACTIVATE_AD_ACCOUNT_LINK:"deactivate_ad_account_link",DISCLAIMER_CONFIRM_CHECKBOX_LABEL:"disclaimer_confirm_checkbox_label",FINAL_BALANCE:"final_balance",FLOW_CANCEL_BUTTON:"flow_cancel_button",FLOW_CONTINUE_BUTTON:"flow_continue_button",FLOW_DIALOG:"flow_dialog",INTERN_ADD_PM_BUTTON:"intern_add_pm_button",INTERN_ADD_PM_BUTTON_MSITE:"intern_add_pm_button_msite",INTERN_BRAZIL_TAX_ID_BUTTON:"intern_brazil_tax_id_button",INTERN_BUSINESS_ADD_PM_BUTTON:"intern_business_add_pm_button",INTERN_CHARGE_CREDENTIAL_BUTTON:"intern_charge_credential_button",INTERN_SETTLE_AD_ACCOUNT_BUTTON_MSITE:"intern_settle_ad_account_button_msite",LOADING_INDICATOR:"loading_indicator",MAKE_PRIMARY_BUTTON:"make_primary_button",MAKE_PRIMARY_CONFIRMATION_BUTTON:"make_primary_confirmation_button",PARTIAL_PAY_NOW_CLOSE_BUTTON:"partial_pay_now_close_button",PARTIAL_PAY_NOW_FORM:"partial_pay_now_form",PARTIAL_PAY_NOW_MAKE_PAYMENT_BUTTON:"partial_pay_now_make_payment_button",PARTIAL_PAY_NOW_SUCCESS_MESSAGE:"partial_pay_now_success_message",PAY_NOW_COMPLETE_MESSAGE:"pay_now_complete_message",PAY_NOW_CONTINUE_BUTTON:"pay_now_continue_button",PAY_NOW_LINK:"pay_now_link",PAY_NOW_PREVIEW_MESSAGE:"pay_now_preview_message",PAYMENT_DATE:"payment_date",PAYMENT_METHOD:"payment_method",PAYMENT_OPTION_LIST:"payment_option_list",PAYMENT_PAGE_HEADER:"payment_page_header",PAYMENT_STATUS:"payment_status",PREPAID_AMOUNT_FIELD:"prepaid_amount_field",PREPAID_SUCCESS_IMAGE:"prepaid_success_image",PREPAY_OPTION:"prepay_option",PRODUCT_TYPE:"product_type",REFERENCE_NUMBER:"reference_number",REMOVE_ACCOUNT_SPENDING_LIMIT:"remove_account_spending_limit",REMOVE_ONLY_PM_BUTTON:"remove_only_pm_button",REMOVE_PAYMENT_METHOD_BUTTON:"remove_payment_method_button",REMOVE_PM_CONFIRMATION_MESSAGE:"remove_pm_confirmation_message",RESET_ACCOUNT_SPENDING_LIMIT:"reset_account_spending_limit",SET_ACCOUNT_SPENDING_LIMIT:"set_account_spending_limit",SUBTOTAL:"subtotal",TAX_ID:"tax_id",TOTAL_AMOUNT:"total_amount",TRANSACTION_ID:"transaction_id",VAT_COUNTRY:"vat_country",VAT_NUMBER:"vat_number"})}),null);
__d("BoostedComponentAdAccountSpendLimitWarning.react",["cx","fbt","AdmarketAccountStatusesJS","AdsCMAccountSpendLimitDataLoader","AdsCMSpendCapActionType","AdsCurrencyFormatter","BoostedComponentAdAccountActionsV2","BoostedComponentQEs","BoostedComponentQEUtils","Currency","Link.react","PaymentsWebDriverTestIDs","React","SUIBusinessTheme","SUINotice.react","SUISpinner.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=10,m=function m(o,p,q,r){if(r===0)return 0;var s=o+q-r,t=c("Currency").getOffset(p),u=t*l;return s>0?Math.ceil(s/u)*u:0};j=babelHelpers.inherits(n,c("React").PureComponent);k=j&&j.prototype;function n(){__p&&__p();var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=k.constructor).call.apply(o,[this].concat(r)),this.state={spendCapStatus:"NONE"},this.$BoostedComponentAdAccountSpendLimitWarning1=function(){var t=this.props,u=t.accountID,v=t.amountSpent,w=t.appID,x=t.boostID,y=t.currency,z=t.selectedBudget,A=t.spendCap,B=t.targetID;this.setState({spendCapStatus:"UPDATING"});var C=m(v,y,z,A),D=c("Currency").getOffset(y),E=A+C;c("AdsCMAccountSpendLimitDataLoader").updateAccountSpendLimit(u,c("AdsCMSpendCapActionType").UPDATE_SPEND_CAP,E/D).done(function(F){c("BoostedComponentAdAccountActionsV2").updateSpendCap(E,w,B,x);this.setState({spendCapStatus:"UPDATED"})}.bind(this),function(F){this.setState({spendCapStatus:"NONE"})}.bind(this))}.bind(this),p}n.prototype.componentWillReceiveProps=function(o){var p=o.accountID,q=o.amountSpent,r=o.currency,s=o.selectedBudget,t=o.spendCap,u=m(q,r,s,t);if(u>0||p!==this.props.accountID)this.setState({spendCapStatus:"NONE"})};n.prototype.render=function(){__p&&__p();var o=this.props,p=o.accountStatus,q=o.amountSpent,r=o.currency,s=o.isInCheckout,t=o.selectedBudget,u=o.spendCap,v=o.warningPlacement,w=o.writePermission;if(s||p!==c("AdmarketAccountStatusesJS").values.ADMARKET_ACCOUNT_STATUS_ACTIVE)return null;var x=v==="CREATION"?"_3-8y":"_3-96";if(this.state.spendCapStatus==="UPDATING")return c("React").createElement("div",{className:x,style:{textAlign:"center"}},c("React").createElement(c("SUISpinner.react"),{theme:c("SUIBusinessTheme")}));if(this.state.spendCapStatus==="UPDATED"){var y=c("AdsCurrencyFormatter").formatCurrencyFullFormat(r,u);return c("React").createElement("div",{className:x},c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:"information"},i._("Your ad account spend cap has been updated. The new cap is {spend_cap}.",[i.param("spend_cap",y)])))}var z=m(q,r,t,u);if(z>0){if(v==="SUMMARY"){var A=c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_COMPONENT_SPEND_CAP_OVERDRAFT).getParam("show_warning");if(!A)return null}if(!w)return c("React").createElement("div",{className:x},c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:"warning"},i._("To run this promotion for the full duration, you will need to increase the spend limit on the associated ad account.")));var B=c("AdsCurrencyFormatter").formatCurrencyFullFormat(r,z);return c("React").createElement("div",{className:x},c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:"warning"},i._("Your spend limit is lower than your budget for this promotion. {action link}",[i.param("action link",c("React").createElement(c("Link.react"),{className:"_3-90","data-testid":c("PaymentsWebDriverTestIDs").CHANGE_ACCOUNT_SPENDING_LIMIT,onClick:this.$BoostedComponentAdAccountSpendLimitWarning1},i._("Increase your limit by {spend_cap}.",[i.param("spend_cap",B)])))])))}return null};f.exports=n}),null);
__d("BoostedComponentBudgetAndDurationRadioSelector.react",["cx","fbt","AdsCurrencyFormatter","BoostedComponentBudgetUtils","React","SUIRadioList.react","SUIText.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("BoostedComponentBudgetUtils").isUSLocaleAndUSDUser,m=c("SUIRadioList.react").Item,n=86400,o=function o(r){var s=r.budgetValue,t=r.currency,u=s.get("budget_delta"),v=l(t)?c("AdsCurrencyFormatter").formatCurrencyFullFormat(t,u,true,true):c("AdsCurrencyFormatter").formatCurrencyWithISONoSymbol(t,u),w=Math.floor(s.get("add_campaign_length")/n);return c("React").createElement("div",null,c("React").createElement(c("SUIText.react"),{display:"block",size:"medium_DEPRECATED"},i._({"*":"Add {budget} and {days} more days","_1":"Add {budget} and {days} more day"},[i.param("budget",v),i.param("days",w),i.plural(w)])),c("React").createElement(p,{lower:s.get("estimates_lower"),upper:s.get("estimates_upper")}))},p=function p(r){return c("React").createElement(c("SUIText.react"),{display:"block",shade:"light",size:"meta1"},i._("Total reach increases to {lower_reach} - {upper_reach} people",[i.param("lower_reach",r.lower),i.param("upper_reach",r.upper)]))};j=babelHelpers.inherits(q,c("React").Component);k=j&&j.prototype;q.prototype.render=function(){var r=this.props,s=r.budgetData,t=r.onSelectionChange,u=s.getAddBudgetAndDurationEstOptions().toArray(),v=u.map(function(w){return c("React").createElement(o,{budgetValue:w,currency:this.props.currency})}.bind(this));return c("React").createElement(c("SUIRadioList.react"),{className:"_4xpz",radioAlignment:"center",value:s.getAddBudgetAndDurationEstSelection(),onChange:t},v.map(function(w,x){return c("React").createElement(m,{className:"_4xp-",key:x,value:x},w)}))};function q(){j.apply(this,arguments)}f.exports=q}),null);
__d("BoostedComponentAddBudgetAndDurationEditSection.react",["cx","fbt","AdsCurrencyFormatter","BoostedComponentBudgetAndDurationRadioSelector.react","BoostedComponentBudgetEstimationStoreData","BoostedComponentDialogUIActionsV2","BoostedComponentDialogViewStates","BoostedComponentStringsV2","BoostedComponentTestElement","Date.react","immutable","LeftRight.react","Link.react","React","SUIBusinessThemeContainer.react","SUIButton.react","SUIText.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=function l(o){var p=o.currency,q=o.campaignStopTime,r=o.totalBudget,s=o.hasErrors,t=o.onBudgetAndDurationAdded;return c("React").createElement(c("LeftRight.react"),{className:"_3-8-"},c("React").createElement("div",{className:"_60rd"},c("React").createElement(c("SUIText.react"),{display:"block",shade:"light",size:"meta1",weight:"normal"},i._("New total budget: {total_budget}",[i.param("total_budget",c("AdsCurrencyFormatter").formatCurrencyFullFormat(p,r,false,true))])),c("React").createElement(c("SUIText.react"),{display:"block",shade:"light",size:"meta1",weight:"normal"},i._("Run this ad until: {date}",[i.param("date",c("React").createElement(c("Date.react"),{date:q,format:"M d, Y"}))]))),c("React").createElement(c("SUIButton.react"),{className:"_irh","data-testid":c("BoostedComponentTestElement").ADD_BUDGET_BUTTON,disabled:s,label:c("BoostedComponentStringsV2").ADD_BUDGET,size:"large",use:"confirm",onClick:t}))},m=function m(o){return c("React").createElement("div",{className:"_60rc"},c("React").createElement(c("Link.react"),{onClick:o.onClick},i._("Select custom budget and duration")))};j=babelHelpers.inherits(n,c("React").Component);k=j&&j.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=k.constructor).call.apply(o,[this].concat(r)),this.$BoostedComponentAddBudgetAndDurationEditSection1=function(){var t=this.props,u=t.appID,v=t.targetID,w=t.boostID;c("BoostedComponentDialogUIActionsV2").setActiveDialogTab(c("BoostedComponentDialogViewStates").EDIT,u,v,w)}.bind(this),p}n.prototype.render=function(){var o=this.props,p=o.budgetData,q=o.currency,r=o.campaignStopTime,s=o.errors,t=o.totalBudget,u=o.onBudgetAndDurationAdded,v=o.onSelectionChange;return c("React").createElement(c("SUIBusinessThemeContainer.react"),null,c("React").createElement("div",null,c("React").createElement(c("BoostedComponentBudgetAndDurationRadioSelector.react"),{budgetData:p,currency:q,onSelectionChange:v}),c("React").createElement(m,{onClick:this.$BoostedComponentAddBudgetAndDurationEditSection1}),c("React").createElement(l,{campaignStopTime:r,currency:q,hasErrors:s!=null&&s.size>0,totalBudget:t,onBudgetAndDurationAdded:u})))};f.exports=n}),null);
__d("AdsBudgetDropdownSelector.react",["cx","fbt","AdsCurrencyFormatter","AdsCurrencyInput.react","AdsRichSelector.react","AdsTargetingTogglerSafeMixin","ContextualLayerHideOnScroll","DOM","LoadingIndicator.react","React","ReactDOM","SUIBusinessTheme","SUIText.react"],(function a(b,c,d,e,f,g,h,i){__p&&__p();var j=c("React").PropTypes,k=c("AdsRichSelector.react").Option,l="-1";function m(o){return parseInt(o,10)}var n=c("React").createClass({displayName:"AdsBudgetDropdownSelector",mixins:[c("AdsTargetingTogglerSafeMixin")],propTypes:{budgets:j.object.isRequired,currency:j.string.isRequired,eventType:j.oneOf(["change","blur"]),hideEstimation:j.bool,selectedBudget:j.number.isRequired,showCustomBudgetOption:j.bool.isRequired,showSymbol:j.bool,onBudgetSelected:j.func.isRequired,onBudgetEntered:j.func.isRequired,onDropdown:j.func,showLoadingIndicator:j.bool,updateAllBudgets:j.bool,shouldAddCurrencyCode:j.bool,shouldUseBudgetTypeSelector:j.bool,withDecimals:j.bool,"data-testid":j.string,onUnderlyingValueChange:j.func},getInitialState:function o(){return{customBudget:this.props.selectedBudget,selectedBudget:this.props.selectedBudget}},getDefaultProps:function o(){return{budgets:{},currency:"",eventType:"change",selectedBudget:0,showCustomBudgetOption:false,showSymbol:true}},componentWillReceiveProps:function o(p){this.setState({selectedBudget:p.selectedBudget})},_onTextInputChange:function o(p){var q=p&&Math.floor(p);if(q===this.state.selectedBudget)return;this.props.onBudgetEntered(q);this.setStateSafe({customBudget:p,selectedBudget:p})},_onBudgetChange:function o(p){this.setStateSafe(p);this.props.onBudgetSelected(p.selectedBudget)},_onSelectorChange:function o(p){if(p.value===l){var q=c("DOM").scry(c("ReactDOM").findDOMNode(this.refs.budgetTextInput),"textarea")[0];q.focus();q.select();return}this._onBudgetChange({selectedBudget:m(p.value)})},_getEstimatedReach:function o(p){if(!this.props.budgets[p])return null;var q=this.props.budgets[p].estimates_lower,r=this.props.budgets[p].estimates_upper;if(!q||!r||this.props.hideEstimation)return null;return c("React").createElement(c("SUIText.react"),{className:"_nmo",shade:"light",size:"meta1",theme:c("SUIBusinessTheme"),weight:"normal"},i._("Est. Reach {lower bound} - {upper bound}",[i.param("lower bound",q),i.param("upper bound",r)]))},_getSortedBudgets:function o(p){if(!p)p=this.props.budgets;return Object.keys(p).map(m).sort(function(q,r){return q-r})},_renderDropdown:function o(){__p&&__p();var p=this._getSortedBudgets(),q="_nmp mvs",r="_nmq prl";if(this.props.shouldUseBudgetTypeSelector){q="_1mug mvs";r="_1muj prl"}var s=p.map(function(u){var v="";if(this.props.showSymbol)v=c("AdsCurrencyFormatter").formatCurrencyFullFormat(this.props.currency,u,this.props.shouldAddCurrencyCode,true,this.props.withDecimals);else v=c("AdsCurrencyFormatter").formatCurrencyWithISONoSymbol(this.props.currency,u);return c("React").createElement(k,{key:u,label:v,selected:u===this.state.selectedBudget,value:u.toString()},c("React").createElement("div",{className:q},c("React").createElement(c("SUIText.react"),{className:r,size:"medium_DEPRECATED",theme:c("SUIBusinessTheme")},v),this._getEstimatedReach(u)))},this);if(this.props.showCustomBudgetOption){var t=i._("Choose Your Own");s.push(c("React").createElement(k,{key:l,label:t,value:l},c("React").createElement("div",{className:q},c("React").createElement(c("SUIText.react"),{className:"prl",size:"medium_DEPRECATED",theme:c("SUIBusinessTheme")},t))))}return c("React").createElement(c("AdsRichSelector.react"),{alignment:"right",behaviors:{ContextualLayerHideOnScroll:c("ContextualLayerHideOnScroll")},className:"_5wwb",defaultValue:this.state.selectedBudget.toString(),noLabel:true,requireSelection:false,size:"xlarge",onChange:this._onSelectorChange,onDropdown:this.props.onDropdown},s)},_renderTextInput:function o(){var p="_nmr";if(this.props.shouldUseBudgetTypeSelector)p="_1pqc";return c("React").createElement(c("AdsCurrencyInput.react"),{className:p,currency:this.props.currency,"data-testid":this.props["data-testid"],eventType:this.props.eventType,isAutoSized:true,nonnegative:true,ref:"budgetTextInput",showSymbol:this.props.showSymbol,value:this.state.selectedBudget,withDecimals:this.props.withDecimals,withISO:this.props.shouldAddCurrencyCode,withNumberDelimiters:true,onDataUpdate:this._onTextInputChange,onUnderlyingValueChange:this.props.onUnderlyingValueChange})},_onKeyDown:function o(event){if(event.key==="Enter")event.preventDefault()},render:function o(){if(this.props.showLoadingIndicator)return c("React").createElement(c("LoadingIndicator.react"),{color:"white",size:"small"});return c("React").createElement("div",{className:"_51xa",onKeyDown:this._onKeyDown},this._renderTextInput(),this._renderDropdown())}});f.exports=n}),null);
__d("AYMTClientSideRenderingParam",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({TIP_ACTION_LABEL:"tip_action_label",TIP_ASSET_TYPE:"tip_asset_type",TIP_BODY:"tip_body",TIP_COLLAPSE_TITLE:"tip_collapse_title",TIP_COLLAPSE_BODY:"tip_collapse_body",TIP_HAS_ASYNC_ACTION_LINK:"tip_is_async",TIP_IMAGE:"tip_image",TIP_IMAGE_URI:"tip_image_uri",TIP_JS_ACTION:"tip_js_action",TIP_JS_PARAMS:"tip_js_params",TIP_LEARN_MORE_CMS_ID:"tip_learn_more_cms_id",TIP_LINK:"tip_link",TIP_MESSAGE_SEVERITY:"tip_message_severity",TIP_NATIVE_ACTION_NAME:"tip_native_action_name",TIP_TITLE:"tip_title",CLIENT_SIDE_RENDERING_SPEC:"client_side_rendering_spec",CMS_TIP:"cms-tip"})}),null);
__d("BoostedComponentSectionSubheader.react",["cx","invariant","AYMTClientSideLogging","AYMTClientSideRenderingParam","AYMTTipSettings","DOMContainer.react","React","XUINotice.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;function m(){__p&&__p();var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=k.constructor).call.apply(n,[this].concat(q)),this.state={showTip:true},this.$BoostedComponentSectionSubheader3=function(){this.props.bestTip||i(0);var s=this.props.bestTip[c("AYMTTipSettings").TIP_ID],t=this.props.bestTip[c("AYMTTipSettings").CHANNEL_ID];c("AYMTClientSideLogging").logImpression(s,t)}.bind(this),this.$BoostedComponentSectionSubheader4=function(){this.props.bestTip||i(0);var s=this.props.bestTip[c("AYMTTipSettings").TIP_ID],t=this.props.bestTip[c("AYMTTipSettings").CHANNEL_ID];c("AYMTClientSideLogging").logXout(s,t);this.setState({showTip:false})}.bind(this),this.$BoostedComponentSectionSubheader1=function(){return!!(this.props.errors&&this.props.errors.length>0)}.bind(this),this.$BoostedComponentSectionSubheader2=function(){var s=this.$BoostedComponentSectionSubheader5();if(s.length>1)return c("React").createElement("ul",{className:"_2w97"},s);else if(s.length===1)return s[0];else return c("React").createElement("div",null)}.bind(this),this.$BoostedComponentSectionSubheader5=function(){__p&&__p();if(!this.props.errors)return[];var s=this.props.errors.map(function(t){if(this.props.link)return c("React").createElement("span",null,t," ",this.props.link);return t}.bind(this));if(s.length>1)return s.map(function(t,u){return c("React").createElement("li",{key:"error_"+u},t)});return s.map(function(t,u){return c("React").createElement("div",{key:"error_"+u},t)})}.bind(this),o}m.prototype.render=function(){if(this.$BoostedComponentSectionSubheader1())return c("React").createElement(c("XUINotice.react"),{className:"_2jld",size:"small",use:"warn"},this.$BoostedComponentSectionSubheader2());else if(this.state.showTip&&this.props.bestTip){this.$BoostedComponentSectionSubheader3();var n=this.props.bestTip[c("AYMTClientSideRenderingParam").CLIENT_SIDE_RENDERING_SPEC][c("AYMTClientSideRenderingParam").TIP_BODY];return c("React").createElement(c("XUINotice.react"),{className:"_2jld",size:"small",onDismiss:this.$BoostedComponentSectionSubheader4},c("React").createElement(c("DOMContainer.react"),null,n))}return c("React").createElement("div",null)};m.propTypes={bestTip:l.object,errors:l.array,link:l.object};m.defaultProps={margin:"_3-8u"};f.exports=m}),null);
__d("BoostedComponentAddBudgetEditSection.react",["cx","AdsBudgetDropdownSelector.react","BoostedComponentResultsSectionStrings","BoostedComponentSectionSubheader.react","BoostedComponentStringsV2","BoostedComponentTestElement","immutable","React","SUIBusinessTheme","SUIText.react","XUIButton.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=c("BoostedComponentResultsSectionStrings").getAddBudgetEstimatesText,j=function j(l){var m=l.errors;if(m&&m.size>0)return c("React").createElement(c("BoostedComponentSectionSubheader.react"),{errors:m.toArray()});var n=l.selectedBudget,o=l.currency,p=l.lowerEstimates,q=l.totalBudget,r=l.upperEstimates;return c("React").createElement("div",{className:"_1s0l"},c("React").createElement(c("SUIText.react"),{shade:"light",size:"meta1",theme:c("SUIBusinessTheme"),weight:"normal"},i(n,o,p,q,r)))},k=function k(l){var m=l.budgetData,n=l.currency,o=l.errors,p=l.lowerEstimates,q=l.selectedBudget,r=l.totalBudget,s=l.upperEstimates,t=l.onBudgetAdded,u=l.onBudgetEntered,v=l.onBudgetSelected,w=o&&o.size>0,x=m.getAddBudgetEstOptions();return c("React").createElement("div",null,c("React").createElement(c("AdsBudgetDropdownSelector.react"),{alignh:"right",budgets:x?x.toJS():{},currency:n,selectedBudget:q,shouldAddCurrencyCode:false,shouldUseBudgetTypeSelector:true,showCustomBudgetOption:true,onBudgetEntered:u,onBudgetSelected:v}),c("React").createElement(c("XUIButton.react"),{className:"_irh","data-testid":c("BoostedComponentTestElement").ADD_BUDGET_BUTTON,disabled:w,label:c("BoostedComponentStringsV2").ADD_BUDGET,size:"xlarge",onClick:t}),c("React").createElement(j,{currency:n,errors:o,lowerEstimates:p,selectedBudget:q,totalBudget:r,upperEstimates:s}))};f.exports=k}),null);
__d("BoostedComponentAddBudgetSectionStrings",["fbt"],(function a(b,c,d,e,f,g,h){"use strict";var i={ADD_BUDGET_ONE_DAY:h._("Add budget to boost this post for one more day."),INCREASE_BUDGET_AND_DURATION:h._("Increase budget and duration")};f.exports=i}),null);
__d("BoostedComponentAddBudgetSectionV2.react",["cx","ix","BoostedComponentAddBudgetAndDurationEditSection.react","BoostedComponentAddBudgetEditSection.react","BoostedComponentAddBudgetSectionStrings","BoostedComponentBudgetAndDurationActionsV2","BoostedComponentBudgetType","BoostedComponentCommonActionsV2","BoostedComponentLabeledEditor.react","BoostedComponentQEs","BoostedComponentQEUtils","BoostedComponentResultsSectionStrings","BoostedComponentSectionV2.react","BoostedComponentStatus","DateConsts","Grid.react","Image.react","immutable","React","debounce","getActiveElement"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("Grid.react").GridItem,m=1e3,n=c("BoostedComponentResultsSectionStrings").getBudgetAddedText,o=c("BoostedComponentResultsSectionStrings").getBudgetAndDurationAddedText,p=function p(s){var t=s.addedBudget,u=s.currency,v=s.lowerEstimates,w=s.totalBudget,x=s.upperEstimates,y=s.onAddMoreBudget;return c("React").createElement(c("Grid.react"),{cols:2},c("React").createElement(l,{className:"_1s0e"},c("React").createElement(c("Image.react"),{src:i("22711")})),c("React").createElement(l,null,c("React").createElement("div",{className:"_1s0g"},n(t,u,v,w,x,y))))},q=function q(s){var t=s.addedBudget,u=s.campaignStopTime,v=s.currency,w=s.totalBudget,x=s.onAddMoreBudget;return c("React").createElement(c("Grid.react"),{cols:2},c("React").createElement(l,{className:"_1s0e"},c("React").createElement(c("Image.react"),{src:i("22711")})),c("React").createElement(l,null,c("React").createElement("div",{className:"_1s0g"},o(t,u,v,w,x))))};j=babelHelpers.inherits(r,c("React").Component);k=j&&j.prototype;function r(){__p&&__p();k.constructor.call(this);this.$BoostedComponentAddBudgetSectionV22=function(s){var t=this.props,u=t.appID,v=t.targetID,w=t.boostID;c("BoostedComponentBudgetAndDurationActionsV2").inputCustomAddBudget(s,u,v,w);var x=c("getActiveElement")();if(x.tagName==="INPUT"){x.blur();x.focus()}}.bind(this);this.$BoostedComponentAddBudgetSectionV23=function(s){var t=this.props,u=t.appID,v=t.targetID,w=t.boostID;c("BoostedComponentBudgetAndDurationActionsV2").updateAddBudget(s,u,v,w)}.bind(this);this.$BoostedComponentAddBudgetSectionV24=function(){var s=this.props,t=s.adAccountID,u=s.appID,v=s.boostID,w=s.budgetData,x=s.pageID,y=s.placement,z=s.targetID,A=s.instanceID;c("BoostedComponentCommonActionsV2").addBudgetClick(t,w.getSelectedAddBudgetValue(),u,x,y,z,v,A)}.bind(this);this.$BoostedComponentAddBudgetSectionV25=function(){var s=this.props,t=s.appID,u=s.targetID,v=s.boostID;c("BoostedComponentBudgetAndDurationActionsV2").addMoreBudget(t,u,v)}.bind(this);this.$BoostedComponentAddBudgetSectionV26=function(s){var t=this.props,u=t.appID,v=t.boostID,w=t.targetID,x=t.budgetData;c("BoostedComponentBudgetAndDurationActionsV2").updateAddBudgetAndDurationSelection(s,u,w,v);var y=x.getAddBudgetAndDurationEstOptions().toArray(),z=y[s];c("BoostedComponentBudgetAndDurationActionsV2").updateAddBudget(z.get("budget_delta"),u,w,v);c("BoostedComponentBudgetAndDurationActionsV2").updateAddDuration(z.get("add_campaign_length"),u,w,v)}.bind(this);this.$BoostedComponentAddBudgetSectionV27=function(){var s=this.props,t=s.campaignStopTime,u=s.budgetData,v=u.getSelectedAddDurationValue();if(c("DateConsts").MS_PER_SEC*t<Date.now())return Date.now()/c("DateConsts").MS_PER_SEC+v;return t+v}.bind(this);this.$BoostedComponentAddBudgetSectionV21=c("debounce")(this.$BoostedComponentAddBudgetSectionV22,m)}r.prototype.render=function(){var s=this.props,t=s.adStatus,u=s.appID,v=s.boostID,w=s.budgetData,x=s.budgetType,y=s.campaignStopTime,z=s.canViewerEdit,A=s.currency,B=s.errors,C=s.isBoosted,D=s.targetID,E=s.totalBudget;if(!C||!z||t===c("BoostedComponentStatus").REJECTED||x!==c("BoostedComponentBudgetType").LIFETIME_BUDGET)return null;var F=w.getSelectedAddBudgetValue()+E,G=c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_POST_ADD_BUDGET_AND_DURATION_TEST).getParamBool("new_ui",false),H=null;if(w.getAddBudgetAdded())H=G?c("React").createElement(q,{addedBudget:w.getAddedBudgetValue(),campaignStopTime:y,currency:A,totalBudget:E,onAddMoreBudget:this.$BoostedComponentAddBudgetSectionV25}):c("React").createElement(p,{addedBudget:w.getAddedBudgetValue(),currency:A,lowerEstimates:w.getBudgetLowerEstimates(E),totalBudget:E,upperEstimates:w.getBudgetUpperEstimates(E),onAddMoreBudget:this.$BoostedComponentAddBudgetSectionV25});else H=G?c("React").createElement(c("BoostedComponentAddBudgetAndDurationEditSection.react"),{appID:u,boostID:v,budgetData:w,campaignStopTime:this.$BoostedComponentAddBudgetSectionV27(),currency:A,errors:B,lowerEstimates:w.getSelectedAddBudgetLowerEstimates(),targetID:D,totalBudget:F,upperEstimates:w.getSelectedAddBudgetUpperEstimates(),onBudgetAndDurationAdded:this.$BoostedComponentAddBudgetSectionV24,onSelectionChange:this.$BoostedComponentAddBudgetSectionV26}):c("React").createElement(c("BoostedComponentAddBudgetEditSection.react"),{budgetData:w,currency:A,errors:B,lowerEstimates:w.getSelectedAddBudgetLowerEstimates(),selectedBudget:w.getSelectedAddBudgetValue(),totalBudget:F,upperEstimates:w.getSelectedAddBudgetUpperEstimates(),onBudgetAdded:this.$BoostedComponentAddBudgetSectionV24,onBudgetEntered:this.$BoostedComponentAddBudgetSectionV21,onBudgetSelected:this.$BoostedComponentAddBudgetSectionV23});return c("React").createElement(c("BoostedComponentSectionV2.react"),{className:"_1s0p"},G?c("React").createElement(c("BoostedComponentLabeledEditor.react"),{label:c("BoostedComponentAddBudgetSectionStrings").INCREASE_BUDGET_AND_DURATION,showLoadingIndicator:w.getIsFetching()}):c("React").createElement(c("BoostedComponentLabeledEditor.react"),{label:c("BoostedComponentAddBudgetSectionStrings").ADD_BUDGET_ONE_DAY,showLoadingIndicator:w.getIsFetching()}),H)};f.exports=r}),null);
__d("BoostedComponentAudienceDeleteDialog.react",["cx","fbt","FBConfirmDialog.react","Link.react","React","SUIBusinessTheme","SUIText.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=i._("Delete"),m=i._("Are you sure you want to delete this audience? It will be permanently removed from your audiences list."),n=i._("Delete Audience?");j=babelHelpers.inherits(o,c("React").Component);k=j&&j.prototype;function o(){var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=k.constructor).call.apply(p,[this].concat(s)),this.state={showDialog:false},this.$BoostedComponentAudienceDeleteDialog1=function(){this.setState({showDialog:true})}.bind(this),this.$BoostedComponentAudienceDeleteDialog2=function(){this.setState({showDialog:false})}.bind(this),this.$BoostedComponentAudienceDeleteDialog3=function(){this.setState({showDialog:false});this.props.onConfirm()}.bind(this),q}o.prototype.render=function(){var p=this.state.showDialog?c("React").createElement(c("FBConfirmDialog.react"),{confirmButtonText:l,content:m,shown:true,title:n,onCancel:this.$BoostedComponentAudienceDeleteDialog2,onConfirm:this.$BoostedComponentAudienceDeleteDialog3,onToggle:this.$BoostedComponentAudienceDeleteDialog2}):null;return c("React").createElement("div",{className:"_3-8w"},c("React").createElement(c("Link.react"),{onClick:this.$BoostedComponentAudienceDeleteDialog1},c("React").createElement(c("SUIText.react"),{shade:"light",theme:c("SUIBusinessTheme")},l,p)))};f.exports=o}),null);
__d("BoostedComponentAudienceNetworkPlacementCheckbox.react",["cx","fbt","React","SUIBusinessTheme","SUICheckboxInput.react","SUITooltip.react"],(function a(b,c,d,e,f,g,h,i){"use strict";var j=i._("Run promotion on Audience Network"),k=i._("Reach more people by showing this promotion to your audience on other apps and websites."),l=function l(m){var n=m.checked,o=m.onChange;return c("React").createElement("div",{className:"_3-8w"},c("React").createElement("div",null,c("React").createElement("label",null,i._("Audience Network"))),c("React").createElement(c("SUITooltip.react"),{position:"right",theme:c("SUIBusinessTheme"),tooltip:k},c("React").createElement(c("SUICheckboxInput.react"),{label:j,theme:c("SUIBusinessTheme"),value:n,onChange:o})))};f.exports=l}),null);
__d("AdsTargetingSentenceLinesLoadErrorDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"TARGETING_SENTENCE_LINES.LOAD_ERROR");f.exports=h}),null);
__d("AdsTargetingSentenceLinesLoadSuccessDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"TARGETING_SENTENCE_LINES.LOAD_SUCCESS");f.exports=h}),null);
__d("AdsTargetingSentenceLinesActions",["AdsTargetingSentenceLinesLoadErrorDataAction","AdsTargetingSentenceLinesLoadSuccessDataAction"],(function a(b,c,d,e,f,g){"use strict";var h={updateTargeting:function i(j,k){c("AdsTargetingSentenceLinesLoadSuccessDataAction").dispatch({params:j,sentenceLines:k})},failTargeting:function i(j,k){c("AdsTargetingSentenceLinesLoadErrorDataAction").dispatch({error:k,params:j})}};f.exports=h}),null);
__d("AdsTargetingSentenceLinesDataManager",["AdsBaseDataManager","AdsGraphAPI","AdsTargetingSentenceLinesActions"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("AdsBaseDataManager"));i=h&&h.prototype;j.prototype.loadFor=function(l,m,n){var o=n.discardPlacement,p=Array.prototype.slice.call(arguments);c("AdsGraphAPI").get(f.id).adaccount(l).edge("targetingsentencelines").batched().get({discard_placements:o,targeting_spec:m}).done(function(q){c("AdsTargetingSentenceLinesActions").updateTargeting(p,q.targetingsentencelines)},function(q){c("AdsTargetingSentenceLinesActions").failTargeting(p,q)})};function j(){h.apply(this,arguments)}var k=new j();f.exports=k}),null);
__d("AdsTargetingSentenceLinesStore",["AdsDataAtom","AdsLoadState_LEGACY","AdsParamsToResultCache","AdsTargetingSentenceLinesDataManager","AdsTargetingSentenceLinesLoadErrorDataAction","AdsTargetingSentenceLinesLoadSuccessDataAction","FluxStore","adsBaseStoreMixin_DEPRECATED"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j={loadState:c("AdsLoadState_LEGACY").LOADING};h=babelHelpers.inherits(k,c("FluxStore"));i=h&&h.prototype;function k(){i.constructor.call(this,c("AdsDataAtom"));c("adsBaseStoreMixin_DEPRECATED")(this);this.$AdsTargetingSentenceLinesStoreClass1=new(c("AdsParamsToResultCache"))(20,5e3)}k.prototype.getStoreName=function(){return"AdsTargetingSentenceLinesStore"};k.prototype.getTargeting=function(m,n,o){var p=o.discardPlacement,q=Array.prototype.slice.call(arguments),r=this.$AdsTargetingSentenceLinesStoreClass1.get(q);if(!r){r=j;this.$AdsTargetingSentenceLinesStoreClass1.set(q,r);c("AdsTargetingSentenceLinesDataManager").loadFor(m,n,{discardPlacement:p})}return r};k.prototype.__onDispatch=function(m){var n=m.action;switch(n.actionType){case c("AdsTargetingSentenceLinesLoadSuccessDataAction").actionType:this.$AdsTargetingSentenceLinesStoreClass1.set(n.params,{loadState:c("AdsLoadState_LEGACY").LOADED,sentenceLines:n.sentenceLines});this.__emitChange();break;case c("AdsTargetingSentenceLinesLoadErrorDataAction").actionType:this.$AdsTargetingSentenceLinesStoreClass1.set(n.params,{loadState:c("AdsLoadState_LEGACY").ERROR,error:n.error});this.__emitChange();break}};var l=new k();b.debug_AdsTargetingSentenceLinesStore=l;f.exports=l}),null);
__d("AdsCompactTargetingSentencesContainer.react",["fbt","AdsCommonTargetingSentencesRenderer.react","AdsFluxContainer","AdsLoadState_LEGACY","AdsTargetingSentenceLinesStore","React","SUIBusinessTheme","SUINotice.react","SUISpinner.react","adsFormatErrorMessage","isValidTargetingSpec"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").Component;i=babelHelpers.inherits(l,k);j=i&&i.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.state={error:null,sentences:[],loading:true,isCollapsed:this.props.collapsedByDefault},this.$AdsCompactTargetingSentencesContainer1=function(r){this.setState({isCollapsed:!r})}.bind(this),n}l.getStores=function(){return[c("AdsTargetingSentenceLinesStore")]};l.calculateState=function(m,n){var o={error:null,sentences:[],loading:true},p=n.targetingApiSpec;if(!Object.isFrozen(p))delete p.product_audience_specs;if(!c("isValidTargetingSpec")(p))return babelHelpers["extends"]({},o,{error:new Error(h._("Missing targeting information."))});var q=c("AdsTargetingSentenceLinesStore").getTargeting(n.accountID,p,{discardPlacement:n.hidePlacement});if(q.loadState===c("AdsLoadState_LEGACY").LOADING)return o;return babelHelpers["extends"]({},o,{error:q.error,loading:false,sentences:q.sentenceLines})};l.prototype.render=function(){if(this.state.error)return c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:"error"},h._("Could not retrieve targeting information: {error message}",[h.param("error message",c("adsFormatErrorMessage")(this.state.error))]));if(this.state.loading)return c("React").createElement(c("SUISpinner.react"),{size:"small",theme:c("SUIBusinessTheme")});var m=this.state.sentences.length>this.props.shownSentences?this.state.isCollapsed:null;return c("React").createElement(c("AdsCommonTargetingSentencesRenderer.react"),{isCollapsed:m,numSentencesToShow:m?this.props.shownSentences-1:null,sentences:this.state.sentences,onShowClick:this.$AdsCompactTargetingSentencesContainer1})};l.defaultProps={collapsedByDefault:true,hidePlacement:false,shownSentences:2};f.exports=c("AdsFluxContainer").create(l,{withProps:true,name:f.id})}),null);
__d("AdsTargetingGrayAreaSegmentsNoticeContainer.react",["fbt","AdsFluxContainer","AdsQEStore","React","SUIBusinessTheme","SUINotice.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=h._("Ad sets that use targeting terms related to social, religious or political issues may require additional review before your ads start running. If your ad set contains targeting terms related to these topics, your campaign may take longer to start running, or you can adjust your detailed targeting selections.");i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;l.getStores=function(){return[c("AdsQEStore")]};l.calculateState=function(m,n){var o=c("AdsQEStore").get("can_account_see_gray_area_targeting_notice_experiment",n.adAccountID);if(!o||!o.hasValue())return{showNotice:false};return{showNotice:o.getValueEnforcing().getParamBool("show_notice")}};function l(m){j.constructor.call(this,m);this.state=l.calculateState(null,m)}l.prototype.render=function(){if(!this.state.showNotice)return null;return c("React").createElement("div",{className:this.props.className},c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:"information"},k))};f.exports=c("AdsFluxContainer").create(l,{withProps:true,name:f.id})}),null);
__d("AdsCommonTargetingInterestsEditor",["cx","fbt","AdsCommonTargetingActions","AdsCommonTargetingSectionMixin","AdsDaoGraph","AdsInfoTable.react","AdsInfoTableRow.react","AdsInfoTableSection.react","AdsPopoverLink_DEPRECATED.react","AdsTargetingAlternateAutoTargetingOptionContainer.react","AdsTargetingSectionsLabels","ApiAutoTargetingModes","BoostedComponentV2Utils","Bootloader","React","whitelistObjectKeys"],(function a(b,c,d,e,f,g,h,i){"use strict";var j=16,k=c("React").PropTypes,l=c("React").createClass({displayName:"AdsCommonTargetingInterestsEditor",mixins:[c("AdsCommonTargetingSectionMixin")],statics:{targetingSpecFields:{interests:true}},propTypes:{config:k.object,extraData:k.object,rowRenderer:k.func},getDefaultProps:function m(){return{extraData:{}}},componentDidMount:function m(){c("Bootloader").loadModules(["AdsSearchBrowseInterests.react"],this.updateSectionEditor,"AdsCommonTargetingInterestsEditor")},_getObjective:function m(){return this.getConfigValue(this.getConfigValue(this.props.extraData,"objectiveData",{}),"objective","")},_getDestinationID:function m(){return this.getConfigValue(this.getConfigValue(this.props.extraData,"destinationData",{}),"destinationID","")},renderSectionEditor:function m(){var n=this.getSectionEditor(),o=this.props.interestData||this.getTargetingSpecValue("interests")||[],p=this.getDefaultTooltip()||[i._("Facebook can help you reach specific audiences by looking at their interests, activities, the Pages they have liked and closely related topics."),i._("Combine interests to expand your ad's reach.")],q=this.getConfigValue(this.props.config.customProperties,"showReach",true),r=this.getConfigValue(this.props.config.customProperties,"showWhiteBox",true),s=this.getConfigValue(this.props.config.customProperties,"showSuggestionWhiteBox",true),t=this.getConfigValue(this.props.config.customProperties,"retrievePrefillSuggestions",false),u=c("whitelistObjectKeys")(this.getConfigValue(this.props.config.customProperties,"tooltipOptions",{}),{position:null}),v=this.getConfigValue(this.props.config.customProperties,"width",this.getDefaultWidth()),w=t?this._getDestinationID():"",x=t?this._getObjective():null,y=this.getConfigValue(this.props.config.customProperties,"useAudienceInterests",false),z=this.getConfigValue(this.props.config.customProperties,"accessToken"),A=this.getConfigValue(this.props.config.customProperties,"useContextualLayer",true),B=y,C=B?j:null,D=this.getTargetingSpecValue("alternateAutoTargetingOption"),E=this.getConfigValue(this.props.config.customProperties,"appID"),F=D?c("BoostedComponentV2Utils").getAutoTargetingMode(E):null,G=D!==c("ApiAutoTargetingModes").NONE,H=F===c("ApiAutoTargetingModes").AUTO_TARGETING?c("React").createElement(c("AdsTargetingAlternateAutoTargetingOptionContainer.react"),{autoTargetingEnabled:G,autoTargetingOption:c("ApiAutoTargetingModes").AUTO_TARGETING,className:"_4kbt"}):null;return c("React").createElement("div",{style:{width:v}},c("React").createElement(c("AdsInfoTable.react"),{oneColumn:this.props.extraData.oneColumn,sectionborders:false},c("React").createElement(c("AdsInfoTableSection.react"),{className:"_5w17"},c("React").createElement(c("AdsInfoTableRow.react"),{helpLink:c("React").createElement(c("AdsPopoverLink_DEPRECATED.react"),babelHelpers["extends"]({position:"above",width:300},this.props.extraData.tooltipConfig,{popover:c("React").createElement("div",{className:"_1vor"},p)})),label:c("AdsTargetingSectionsLabels").interests,rowRenderer:this.props.rowRenderer,useColon:false},c("React").createElement(n,{accessToken:z,accountID:this.props.extraData.accountID,dao:this.props.extraData.dao||c("AdsDaoGraph"),destinationID:w,enableExceedMaxInterestsWarning:B,interests:o,maxInterestsCount:C,objective:x,ref:"unifiedInterestsTargetingComponent",retrievePrefillSuggestions:t,showReach:q,showSuggestionWhiteBox:s,showWhiteBox:r,size:this.props.size,tooltipOptions:u,useAudienceInterests:y,useContextualLayer:A,onUpdateInterests:c("AdsCommonTargetingActions").changeInterests})))),H)}});f.exports=l}),null);
__d("BoostedComponentAudienceEditorConfigUtils",["cx","fbt","AdproObjectiveType","BoostedComponentAppID","BoostedComponentQEs","BoostedComponentQEUtils","BoostedPostAudienceOptions","immutable","LocationConstants","AdsCommonTargetingGenderEditor","AdsCommonTargetingAgeEditor","AdsCommonTargetingLocationEditorV2","AdsCommonTargetingInterestsEditor","AdsUnifiedFlexibleTargetingEditor"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j=c("BoostedPostAudienceOptions").NCPP,k=c("immutable").Set,l=k([c("BoostedComponentAppID").BOOSTED_PAGELIKE,c("BoostedComponentAppID").BOOSTED_POST]),m={getConfig:function n(o,p,q,r,s){var t=arguments.length<=5||arguments[5]===undefined?false:arguments[5],u=arguments.length<=6||arguments[6]===undefined?null:arguments[6],v=arguments[7],w=m._getLocationEditorConfig(o,p,q,u);if(r)return[w];if(s||o===c("BoostedComponentAppID").BOOSTED_JOB_POST)return m._getBoostedJobPostAudienceConfig(o,w);return m._getDefaultAudienceConfig(o,q,w,t,v)},_getBoostedJobPostAudienceConfig:function n(o,p){return[p]},_getDefaultAudienceConfig:function n(o,p,q,r,s){var t=r?m._getFlexibleTargetingEditorConfig(o):m._getInterestsConfig(o),u=s===j?"right":"above";return[{component:c("AdsCommonTargetingGenderEditor"),customProperties:{helpLinkPosition:u}},{component:c("AdsCommonTargetingAgeEditor"),customProperties:{ageMinLimit:p.getMinAge()}},q,t]},_getEnableCountryGroupTargeting:function n(o){return l.includes(o)},_getLocationEditorConfig:function n(o,p,q,r){var s=m._getEnableCountryGroupTargeting(o);if(o===c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS){var t=r===c("AdproObjectiveType").LOCAL_AWARENESS;return{component:c("AdsCommonTargetingLocationEditorV2"),customProperties:{allowedCountryList:q.getWhitelistCountries(),disableAddBulkLocations:true,disableScrollWheelZoom:p,disallowCountries:t,disallowDMA:true,disallowElectoralDistricts:t,disallowPoliticalDistricts:t,disallowRegions:t,disallowZips:t,disallowedCountryList:q.getBlacklistCountries(),enableMap:p,hideAdsHelpLink:true,initiallyShowMap:false,onlyInclusion:true,radiusType:t?c("LocationConstants").LA_RADIUS_TYPE:undefined,radiusEditorAlignment:"center",radiusEditorHelpTextAlignment:"right",radiusEditorHelpTextPosition:"below",shouldGetSuggestedRadius:t,showLocationTypeSelector:false}}}else if(o!==c("BoostedComponentAppID").BOOSTED_LOCAL_AWARENESS)return{component:c("AdsCommonTargetingLocationEditorV2"),customProperties:{allowedCountryList:q.getWhitelistCountries(),disableAddBulkLocations:true,disableScrollWheelZoom:true,disallowDMA:true,disallowedCountryList:q.getBlacklistCountries(),enableCountryGroupsTargeting:s,hideAdsHelpLink:true,onlyInclusion:true,radiusEditorAlignment:"center",radiusEditorHelpTextAlignment:"right",radiusEditorHelpTextPosition:"below",showLocationTypeSelector:false}};return{component:c("AdsCommonTargetingLocationEditorV2"),customProperties:{alwaysShowXOut:true,allowedCountryList:q.getWhitelistCountries(),disableAddBulkLocations:true,disableCollapseButton:true,disableScrollWheelZoom:true,disallowCountries:true,disallowRegions:true,disallowDMA:true,disallowCities:true,disallowElectoralDistricts:true,disallowPoliticalDistricts:true,disallowZips:true,initiallyShowMap:true,hideAdsHelpLink:true,hideLocationGroupHeader:true,hideLocationListMenu:true,hideTypeaheadTip:true,maxNumLocations:1,onlyInclusion:true,radiusType:c("LocationConstants").LA_RADIUS_TYPE,shouldGetSuggestedRadius:true,showLocationTypeSelector:false,tooltip:i._("Enter an address to show your ad to people near that location.")}}},_getInterestsConfig:function n(o){return{component:c("AdsCommonTargetingInterestsEditor"),customProperties:{appID:o,showWhiteBox:false,showSuggestionWhiteBox:false,useContextualLayer:false}}},_getFlexibleTargetingEditorConfig:function n(o){return{component:c("AdsUnifiedFlexibleTargetingEditor"),customProperties:{hideAdsHelpLink:true,hideBrowseTreeRoot:true,appID:o,showSuggestionWhiteBox:false,showWhiteBox:false,tooltipOptions:{yOffset:-65,position:"below",alignment:"center",insertParentClass:"_ex0"},useContextualLayer:false}}},AUDIENCE_CENTER_CONFIG:[{component:c("AdsCommonTargetingGenderEditor"),customProperties:{helpLinkPosition:"above"}},{component:c("AdsCommonTargetingAgeEditor")},{component:c("AdsCommonTargetingLocationEditorV2"),customProperties:{disableAddBulkLocations:true,disableScrollWheelZoom:true,disallowDMA:true,hideAdsHelpLink:true,onlyInclusion:true,radiusEditorAlignment:"center",radiusEditorHelpTextAlignment:"right",radiusEditorHelpTextPosition:"below",showLocationTypeSelector:false}},{component:c("AdsUnifiedFlexibleTargetingEditor"),customProperties:{hideAdsHelpLink:true,hideBrowseTreeRoot:true,showSuggestionWhiteBox:false,showWhiteBox:false,tooltipOptions:{yOffset:-65,position:"below",alignment:"center",insertParentClass:"_ex0"},useContextualLayer:false}}]};f.exports=m}),null);
__d("BoostedComponentAudienceNetworkPlacementCheckboxContainer.react",["AdsFluxContainer","AdsLWIInstanceUtils","AdsPageTypes","BoostedComponentAudienceActionsV2","BoostedComponentAudienceNetworkPlacementCheckbox.react","BoostedComponentAudienceStoreV2","BoostedComponentContainerUtils","BoostedComponentErrorBoundaryContainer.react","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded,l={dataLoaded:false,showAudienceNetworkCheckbox:false,audienceNetworkPlacementEnabled:false};h=babelHelpers.inherits(m,c("React").Component);i=h&&h.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=i.constructor).call.apply(n,[this].concat(q)),this.state=l,this.$BoostedComponentAudienceNetworkPlacementCheckboxContainer1=function(s){var t=this.props,u=t.appID,v=t.targetID,w=t.boostID;c("BoostedComponentAudienceActionsV2").setAudienceNetworkPlacementEnabled(s,u,v,w)}.bind(this),o}m.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedComponentAudienceStoreV2")])};m.calculateState=function(n,o){var p=o.appID,q=o.targetID,r=o.boostID,s=j(p,q,r),t=c("BoostedComponentAudienceStoreV2").getDataByKey(s),u=k([t]);if(!u)return l;return{dataLoaded:u,showAudienceNetworkCheckbox:t.getIsAudienceNetworkPlacementEligible(),audienceNetworkPlacementEnabled:t.getPlacements().includes(c("AdsPageTypes").MOBILE_EXTERNAL)}};m.prototype.render=function(){if(this.state.dataLoaded&&this.state.showAudienceNetworkCheckbox)return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentAudienceNetworkPlacementCheckbox"},c("React").createElement(c("BoostedComponentAudienceNetworkPlacementCheckbox.react"),{checked:this.state.audienceNetworkPlacementEnabled,onChange:this.$BoostedComponentAudienceNetworkPlacementCheckboxContainer1}));return null};f.exports=c("AdsFluxContainer").create(m,{withProps:true,name:f.id})}),null);
__d("BoostedComponentAudienceSelectionRatingRecord",["immutable"],(function a(b,c,d,e,f,g){"use strict";var h,i;h=babelHelpers.inherits(j,c("immutable").Record({appID:"",pageID:"",accountID:"",bidValue:0,audienceType:null,creativeActionSpec:null,currency:"",object_store_url:"",optimizeFor:"",targetingSpec:null,pageTypes:[],forceInstagramRemoval:false}));i=h&&h.prototype;function j(){h.apply(this,arguments)}f.exports=j}),null);
__d("BoostedComponentAudienceSelectionRatingStore",["AdsBoostedComponentAudienceV2GetAudienceSelectionRatingErrorDataAction","AdsDataAtom","AdsLoadState_LEGACY","BoostedComponentAudienceActionsV2","BoostedComponentAudienceActionTypesV2","BoostedComponentAudienceSelectionRatingRecord","FluxLoadObjectStore","immutable","LoadObject","adsBaseStoreMixin_DEPRECATED","isValidTargetingSpec"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=Error(c("AdsLoadState_LEGACY").ERROR);h=babelHelpers.inherits(k,c("FluxLoadObjectStore"));i=h&&h.prototype;function k(){i.constructor.call(this,c("AdsDataAtom"));c("adsBaseStoreMixin_DEPRECATED")(this)}k.prototype.getStoreName=function(){return"BoostedComponentAudienceSelectionRatingStore"};k.prototype.getAudienceSelectionRating=function(m,n,o,p,q,r,s,t,u,v,w,x){var y=arguments.length<=12||arguments[12]===undefined?false:arguments[12];if(!c("isValidTargetingSpec")(q))return c("LoadObject").withError(j);var z=new(c("BoostedComponentAudienceSelectionRatingRecord"))({appID:m,pageID:n,accountID:o,currency:p||"",targetingSpec:c("immutable").fromJS(q),audienceType:r||"",creativeActionSpec:c("immutable").fromJS(s||null),optimizeFor:t,object_store_url:u||"",bidValue:v||0,pageTypes:x,forceInstagramRemoval:y}),A=this.get(z);if(A.hasError()&&w){this.__load(z);return c("LoadObject").loading()}return A};k.prototype.reduce=function(m,n){var o=n.action;switch(o.actionType){case c("BoostedComponentAudienceActionTypesV2").GET_AUDIENCE_SELECTION_RATING_SUCCESS:return this.__handleOne(m,o.params,o.data);case c("AdsBoostedComponentAudienceV2GetAudienceSelectionRatingErrorDataAction").actionType:return this.__handleOne(m,o.params,j);case c("BoostedComponentAudienceActionTypesV2").GET_AUDIENCE_SELECTION_RATING:return this.__setLoading(m,c("immutable").List.of(o.params));default:return m}};k.prototype.__handleOne=function(m,n,o){var p=this.getCached(n);if(o instanceof Error)return m.set(n,p.setError(o).removeValue().done());else return m.set(n,p.setValue(o).removeError().done())};k.prototype.__load=function(m){c("BoostedComponentAudienceActionsV2").getAudienceSelectionRating(m)};var l=new k();f.exports=l}),null);
__d("AdsTargetingSpecOverallRating",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({UNAVALIABLE:"UNAVALIABLE",BAD_TOO_BROAD:"BAD_TOO_BROAD",BAD_TOO_SMALL:"BAD_TOO_SMALL",VAGUE:"VAGUE",GOOD:"GOOD"})}),null);
__d("AdsTargetingViewConfig",["AdsTargetingSectionsLabels","ImmutableObject","keyMirror"],(function a(b,c,d,e,f,g){__p&&__p();var h=c("keyMirror")({OFF:null,STRONG:null,WEAK:null,BROADEN:null,DANGEROUS:null}),i=13,j=65,k=["relationshipSingle","relationshipInA","relationshipMarried","relationshipEngaged","relationshipUnspecified"],l="cities",m="zips",n="regions",o=[],p=c("keyMirror")({getFeatureEffect:null}),q=c("keyMirror")({}),r={INTERESTS:{getFeatureEffect:function u(v){var w=v.keywords&&v.keywords.length||v.interests&&v.interests.length;return w?h.STRONG:h.OFF}},CUSTOM_AUDIENCE:{getFeatureEffect:function u(v){return v.customAudiences&&v.customAudiences.length?h.STRONG:h.OFF}},CONNECTIONS:{getFeatureEffect:function u(v){var w=v.connections&&v.connections.length||v.friendsOfConnections&&v.friendsOfConnections.length;return w?h.STRONG:h.OFF}},CATEGORIES:{getFeatureEffect:function u(v){return v.userAdclusters&&v.userAdclusters.length?h.STRONG:h.OFF}},LOCATION:{getFeatureEffect:function u(v){__p&&__p();if(v.geoLocations){var w=v.geoLocations,x=w.cities&&w.cities.length,y=w.zips&&w.zips.length,z=w.regions&&w.regions.length,A=v.excludedGeoLocations||{},B=0;Object.keys(A).forEach(function(E){B+=A[E].length||0});if(x||y)return h.STRONG;else if(z)return B?h.STRONG:h.WEAK;else if(w.countries&&w.countries.length>1)return B?h.WEAK:h.BROADEN;return B?h.WEAK:h.OFF}var C=v.locTargeting===m||v.locTargeting===l,D=v.cities&&v.cities.length||v.zips&&v.zips.length;if(C&&D)return h.STRONG;if(v.locTargeting===n&&v.regions&&v.regions.length)return h.WEAK;if(v.countries&&v.countries.length>1)return h.BROADEN;return h.OFF}},GENDER_AGE:{getFeatureEffect:function u(v){if(v.ageMax&&v.ageMax!==j||v.ageMin&&v.ageMin!==i||v.sex)return h.WEAK;return h.OFF}},SCHOOL:{getFeatureEffect:function u(v){if(!v.educationStatus)return h.OFF;return h.WEAK}},WORK:{getFeatureEffect:function u(v){return h.OFF}},LANGUAGE:{getFeatureEffect:function u(v){return v.locales&&v.locales.length?h.WEAK:h.OFF}},RELATIONSHIP:{getFeatureEffect:function u(v){var w=!!v.interestedIn&&!!v.interestedIn.length,x=false,y=true;k.forEach(function(z){x=x||v[z];y=y&&v[z]});if(y||!x)return w?h.WEAK:h.OFF;return w?h.STRONG:h.WEAK}},DEVICE:{getFeatureEffect:function u(v){__p&&__p();var w=0;if(v.wifiOnly)w++;var x=v.mobileDevices||[];if(x.length&&x.length!==3)w++;if(v.minIosVersion||v.minAndroidVersion)w++;if(w>1)return h.STRONG;else if(w===1)return h.WEAK;return h.OFF}},ADV_DEMO:{getFeatureEffect:function u(v){var w=!!Object.keys(c("AdsTargetingSectionsLabels")).filter(function(x){return o.indexOf(x)==-1&&v[x]&&v[x].length}).length;return w?h.STRONG:h.OFF}}},s={};Object.keys(r).forEach(function(u){r[u].KEY=u;s[u]=u});var t={INTERFACE:p,OPTIONAL_INTERFACE:q,EFFECTS:h,FEATURES:s,getViewNames:function u(){return Object.keys(r)},getAllViewConfigs:function u(){return Object.keys(r).map(function(v){return new(c("ImmutableObject"))(r[v])})},getViewConfigByName:function u(v){return new(c("ImmutableObject"))(r[v])}};f.exports=t}),null);
__d("AdsTargetingRatingUtils",["AdsAPICampaignPaths","AdsTargetingReachBlockerConstant","AdsTargetingSpecOverallRating","AdsTargetingViewConfig","AdsUtils","ImmutableObject","keyMirror"],(function a(b,c,d,e,f,g){__p&&__p();var h=c("AdsTargetingReachBlockerConstant").ERROR_SIZE,i=c("AdsTargetingViewConfig").EFFECTS,j=c("keyMirror")({TOO_SMALL:null,SMALL:null,GOOD:null,TOO_BROAD:null}),k=c("keyMirror")({DANGEROUS:null,VAGUE:null,GOOD:null,GREAT:null,NONE:null}),l=1e3*1e3,m=100*l,n=2500,o=1e4,p=3,q=2,r={SIZE_RATINGS:j,FEATURE_RATINGS:k,OVERALL_RATINGS:c("AdsTargetingSpecOverallRating"),getFeaturesByEffect:function s(t){var u=c("AdsTargetingViewConfig").getAllViewConfigs(),v={};Object.keys(i).forEach(function(w){v[w]=[]});u.forEach(function(w){var x=w.getFeatureEffect(t);v[x].push(w)});return v},getConfigsWithFeature:function s(t){var u=c("AdsTargetingViewConfig").getAllViewConfigs();return u.map(function(v){return new(c("ImmutableObject"))(babelHelpers["extends"]({},v,{EFFECT:v.getFeatureEffect(t)}))})},getAudienceSizeRating:function s(t){var u=j;if(t<=n)return u.TOO_SMALL;else if(t<=o)return u.SMALL;else if(t<m)return u.GOOD;return u.TOO_BROAD},getFeaturesRating:function s(t){__p&&__p();var u=k,v=this.getFeaturesByEffect(t);delete v[i.OFF];if(v[i.DANGEROUS].length)return u.DANGEROUS;var w=v[i.STRONG].length,x=v[i.WEAK].length;w+=Math.floor(x/p);if(w>=q)return u.GREAT;else if(w)return u.GOOD;else if(x)return u.VAGUE;return u.NONE},getOverallRating:function s(t,u){__p&&__p();if(u===h)return c("AdsTargetingSpecOverallRating").UNAVALIABLE;var v=this.getFeaturesRating(t),w=this.getAudienceSizeRating(u),x=j,y=k,z=c("AdsTargetingSpecOverallRating");switch(w){case x.TOO_SMALL:return z.BAD_TOO_SMALL;case x.TOO_BROAD:switch(v){case y.NONE:case y.DANGEROUS:return z.BAD_TOO_BROAD;case y.VAGUE:case y.GOOD:return z.VAGUE;case y.GREAT:return z.GOOD}break;case x.GOOD:switch(v){case y.DANGEROUS:return z.GOOD;case y.NONE:return z.BAD_TOO_BROAD;case y.VAGUE:return z.VAGUE;case y.GOOD:case y.GREAT:return z.GOOD}break;case x.SMALL:switch(v){case y.DANGEROUS:return z.BAD_TOO_SMALL;case y.NONE:case y.VAGUE:return z.VAGUE;case y.GOOD:case y.GREAT:return z.GOOD}}},getOverallRatingFromCampaign:function s(t,u){var v=t.getIn(c("AdsAPICampaignPaths").TARGETING.path),w=c("AdsUtils").underscoreToCamelCaseKeys(v&&v.toJS()||{});return r.getOverallRating(w,u)}};f.exports=r}),null);
__d("BoostedComponentAudienceRatingUtils",["cx","fbt","AdsTargetingDefaultPlacementConstant","AdsTargetingPotentialReachTooltip.react","AdsTargetingRatingUtils","BoostedComponentQEs","BoostedComponentQEUtils","NumberFormat","React"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j=c("AdsTargetingDefaultPlacementConstant").DEFAULT_PLACEMENT_LABELS,k=c("AdsTargetingRatingUtils").OVERALL_RATINGS,l=c("React").createElement(c("AdsTargetingPotentialReachTooltip.react"),{placementLabels:j,position:"above"}),m=20,n=function n(p,q){var r=void 0;if(p<=q)r=i._({"*":"Potential Audience Size: Fewer than {users} people"},[i.param("users",c("NumberFormat").formatInteger(q),[0,q])]);else r=i._({"*":"Potential Audience Size: {users} people"},[i.param("users",c("NumberFormat").formatInteger(p),[0,p])]);return c("React").createElement("div",null,r," ",l)},o=function o(p,q){__p&&__p();var r="_2f-h",s="_2f-g",t=c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_COMPONENT_AUDIENCE_SIZE_BANNER).getParamBool("enabled",false);switch(p){case k.GOOD:if(t)return i._("Your estimated audience size looks {audience selection rating}.",[i.param("audience selection rating",c("React").createElement("span",{className:r},i._("good")))]);return i._("Your audience size is {audience selection rating}. Good job!",[i.param("audience selection rating",c("React").createElement("span",{className:r},i._("defined")))]);case k.VAGUE:return i._("Your audience selection is {audience selection rating}.",[i.param("audience selection rating",c("React").createElement("span",{className:r},i._("fairly broad")))]);case k.BAD_TOO_SMALL:if(t){if(q&&q>=m)return i._("Your estimated audience is {audience selection rating}. Including more people in your audience could help you get better results.",[i.param("audience selection rating",c("React").createElement("span",{className:s},i._("small")))]);return i._("Your estimated audience is {audience selection rating} . Edit your audience to include more people.",[i.param("audience selection rating",c("React").createElement("span",{className:s},i._("too small")))])}return i._(["Your audience selection is {audience selection rating} for your ads to be shown. Try making it broader.","faa68111ea7546d82e8e35812cca1b7b"],[i.param("audience selection rating",c("React").createElement("span",{className:s},i._("too specific")))]);case k.BAD_TOO_BROAD:if(t)return i._("Your estimated audience is {audience selection rating}. You may need a large budget to reach this many people.",[i.param("audience selection rating",c("React").createElement("span",{className:s},i._("broad")))]);return i._("Your audience selection is {audience selection rating}. This requires a large budget.",[i.param("audience selection rating",c("React").createElement("span",{className:s},i._("broad")))]);default:return null}};f.exports={audienceSizeFeedback:n,feedbackTitleForRating:o}}),null);
__d("BoostedComponentAudienceSizeWarning.react",["cx","AdsTargetingRatingUtils","BoostedComponentAudienceRatingUtils","React","SUIBusinessTheme","SUINotice.react"],(function a(b,c,d,e,f,g,h){"use strict";var i=c("AdsTargetingRatingUtils").OVERALL_RATINGS,j=function j(k){var l=k.audienceRating===i.GOOD||k.audienceRating===i.VAGUE?"success":"warning";return c("React").createElement("div",{className:"_3-8m"},c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:l},c("BoostedComponentAudienceRatingUtils").feedbackTitleForRating(k.audienceRating,k.audienceSize)))};f.exports=j}),null);
__d("BoostedComponentAudienceSizeNotificationContainer.react",["AdsFluxContainer","AdsLWIInstanceUtils","BoostedComponentAdAccountStoreV2","BoostedComponentAudienceSelectionRatingStore","BoostedComponentAudienceSizeWarning.react","BoostedComponentAudienceStoreV2","BoostedComponentBudgetEstimationStoreV2","BoostedComponentContainerUtils","BoostedComponentErrorBoundaryContainer.react","BoostedComponentReachEstimationOptimizationGoalUtils","BoostedComponentStoreState","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded,l=c("BoostedComponentStoreState").getKey;h=babelHelpers.inherits(m,c("React").Component);i=h&&h.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=i.constructor).call.apply(n,[this].concat(q)),this.state={audienceSize:null,reachEstimatesFetched:false,selectedAudienceRating:null},o}m.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedComponentAdAccountStoreV2"),c("BoostedComponentAudienceStoreV2"),c("BoostedComponentBudgetEstimationStoreV2"),c("BoostedComponentAudienceSelectionRatingStore")])};m.calculateState=function(n,o){var p=o.appID,q=o.targetID,r=o.boostID,s=o.isV1,t=o.pageID,u=o.audienceType,v=s?l(p,q,r):j(p,q,r),w=c("BoostedComponentAdAccountStoreV2").getState(),x=c("BoostedComponentAudienceStoreV2").getDataByKey(v),y=k([w,x]);if(!y)return babelHelpers["extends"]({},n,{reachEstimatesFetched:y});var z=x.getTargetSpec(),A=c("BoostedComponentReachEstimationOptimizationGoalUtils").getOptimizationGoal(o.appID),B=c("BoostedComponentAudienceSelectionRatingStore").getAudienceSelectionRating(p,t,w.getSelectedAccountID(),w.getCurrency(),z,u,null,A,null,null,null,o.pageTypes,o.removeInstagram),C=B.isLoading(),D=B&&B.getError(),E=B&&B.hasValue()?B.getValueEnforcing().rating:null,F=B&&B.hasValue()?B.getValueEnforcing().audience_size:null;return{audienceSize:F,reachEstimatesFetched:!C&&!D,selectedAudienceRating:E}};m.prototype.render=function(){if(this.state.reachEstimatesFetched&&this.state.selectedAudienceRating)return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentAudienceSizeWarning"},c("React").createElement(c("BoostedComponentAudienceSizeWarning.react"),{audienceRating:this.state.selectedAudienceRating,audienceSize:this.state.audienceSize}));return null};f.exports=c("AdsFluxContainer").create(m,{withProps:true,name:f.id})}),null);
__d("AdsCommonTargetingInvalidInterestsNoticeTexts",["fbt"],(function a(b,c,d,e,f,g,h){"use strict";f.exports={SAVED_AUDIENCE_TEXT:h._("Some of the detailed targeting selections you originally used in your Saved Audience are no longer available. They won't show up in this audience's targeting, but the associated ads will still deliver to the original audience. However, you'll be unable to use these detailed targeting selections if you edit this audience or try running future ads with it."),DUPLICATION_TEXT:h._("Some of the detailed targeting selections you originally used in the targeting of your source ad set(s) are no longer available. They will no longer show up in the targeting of the source ad set(s), but your source ad sets will still deliver to their original audience(s). However, you'll be unable to use these detailed targeting selections if you try creating future copies of the ad sets."),ADSET_TEXT:h._("Some of the detailed targeting selections you originally used in your ad set's targeting are no longer available. They won't show up in the targeting of your ad set, but your ad set will still reach its original audience. However, you'll be unable to use these detailed targeting selections if you edit the targeting or try creating future copies of this ad."),EXPORT_CAMPAIGNS_TEXT:h._("Some of the detailed targeting selections you originally used in your selected campaign(s) are no longer available. They will no longer show up in the targeting of the ad set(s) or in the exported spreadsheet, but your ad set(s) will still deliver to their original audience(s). However, you'll be unable to use these detailed targeting selections if you edit the targeting or try creating future copies of these campaign(s)."),EXPORT_ADSETS_TEXT:h._("Some of the detailed targeting selections you originally used in your selected ad set(s) are no longer available. They will no longer show up in the targeting of the ad set(s) or in the exported spreadsheet, but your ad set(s) will still deliver to their original audience(s). However, you'll be unable to use these detailed targeting selections if you edit the targeting or try creating future copies of these ad set(s)."),EXPORT_TITLE:h._("Some Detailed Targeting Selections are no longer available")}}),null);
__d("AdsForceExpandedTargetingForWhatsAppCTANoticeContainer.react",["cx","fbt","AdsFluxContainer","AdsQEStore","Link.react","React","SUIBusinessTheme","SUINotice.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").createElement("div",null,i._("With the Send WhatsApp Message button, Facebook will expand your targeting if there's a chance to reach more people likely to send you a message. You can turn this off by choosing a different button.")," ",c("React").createElement(c("Link.react"),{href:"https://www.facebook.com/business/help/128066880933676",target:"_blank"},i._("Learn more")));j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;m.getStores=function(){return[c("AdsQEStore")]};m.calculateState=function(n,o){return{showNotice:o.showExpandedTargetingHints}};function m(n){k.constructor.call(this,n);this.state=m.calculateState(null,n)}m.prototype.render=function(){if(!this.state.showNotice)return null;return c("React").createElement("div",{className:this.props.className},c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:"information"},l),c("React").createElement("div",{className:"_2pi2"}))};f.exports=c("AdsFluxContainer").create(m,{withProps:true,name:f.id})}),null);
__d("XInvalidInterestsNoticeController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ajax/targeting/invalid_interests_notice/",{ids:{type:"FBIDVector",required:true}})}),null);
__d("AdsTargetingAudienceInvalidInterestsNoticeContainer.react",["AsyncRequest","React","SUIBusinessTheme","SUINotice.react","XInvalidInterestsNoticeController","gkx","shallowEqual"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;function j(k){i.constructor.call(this,k);this.state={showNotice:false}}j.prototype.componentDidMount=function(){if(c("gkx")("AT4Q0BWIR8BTp2wdWWSIkH8MSVeji3AwgdmfFu1BrLSmNtxzmPUhsdKAGK7OXsR_XxLsEEavNg8MPDnSBQCvKllQUNW1Z2OGWY-QXyMgfFxtUQ"))this.$AdsTargetingAudienceInvalidInterestsNoticeContainer2(this.props.entityIDs)};j.prototype.componentWillReceiveProps=function(k){if(c("gkx")("AT4Q0BWIR8BTp2wdWWSIkH8MSVeji3AwgdmfFu1BrLSmNtxzmPUhsdKAGK7OXsR_XxLsEEavNg8MPDnSBQCvKllQUNW1Z2OGWY-QXyMgfFxtUQ")&&!c("shallowEqual")(this.props.entityIDs,k.entityIDs))this.$AdsTargetingAudienceInvalidInterestsNoticeContainer2(k.entityIDs)};j.prototype.componentWillUnmount=function(){this.$AdsTargetingAudienceInvalidInterestsNoticeContainer1&&this.$AdsTargetingAudienceInvalidInterestsNoticeContainer1.abandon()};j.prototype.$AdsTargetingAudienceInvalidInterestsNoticeContainer2=function(k){if(k.length===0){this.setState({showNotice:false});return}var l=c("XInvalidInterestsNoticeController").getURIBuilder().setFBIDVector("ids",k).getURI();this.$AdsTargetingAudienceInvalidInterestsNoticeContainer1=new(c("AsyncRequest"))().setURI(l).setHandler(function(m){this.setState({showNotice:m.getPayload()})}.bind(this));this.$AdsTargetingAudienceInvalidInterestsNoticeContainer1.send()};j.prototype.render=function(){if(!this.state.showNotice)return null;return c("React").createElement("div",{className:this.props.className},c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme")},this.props.noticeText))};f.exports=j}),null);
__d("AdsTargetingGrayAreaSegmentsMTCNoticeContainer.react",["fbt","AdsFluxContainer","AdsQEStore","React","SUIBusinessTheme","SUINotice.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").createElement("div",null,h._("{=Some detailed targeting selections take longer to review}",[h.param("=Some detailed targeting selections take longer to review",c("React").createElement("b",{style:{color:"black"}},h._("Some detailed targeting selections take longer to review")))]),c("React").createElement("br",null),c("React").createElement("br",null),h._("If your ad set contains detailed targeting terms related to social, religious or political topics, you can try removing them for quicker ad review. Ad sets that use these terms may require additional review time to ensure they comply with our policies."));i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;l.getStores=function(){return[c("AdsQEStore")]};l.calculateState=function(m,n){var o=c("AdsQEStore").get("can_account_see_gray_area_targeting_notice_mtc_experiment",n.adAccountID);if(!o||!o.hasValue())return{showNotice:false};return{showNotice:o.getValueEnforcing().getParamBool("show_notice")}};function l(m){j.constructor.call(this,m);this.state=l.calculateState(null,m)}l.prototype.render=function(){if(!this.state.showNotice)return null;return c("React").createElement("div",{className:this.props.className},c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:"information"},k))};f.exports=c("AdsFluxContainer").create(l,{withProps:true,name:f.id})}),null);
__d("AdsTargetingClearTargetingViewStoreDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"CLEAR_TARGETING_VIEW_STORE");f.exports=h}),null);
__d("AdsTargetingCloseCreateCustomAudienceDialogDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"CLOSE_CREATE_CUSTOM_AUDIENCE_DIALOG");f.exports=h}),null);
__d("AdsTargetingSetAgeErrorDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"undefined");f.exports=h}),null);
__d("AdsTargetingSetPermutableTargetingApiSpecDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"SET_PERMUTABLE_TARGETING_API_SPEC");f.exports=h}),null);
__d("AdsTargetingShowCreateCustomAudienceDialogDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"SHOW_CREATE_CUSTOM_AUDIENCE_DIALOG");f.exports=h}),null);
__d("TargetingActions",["AdsTargetingClearTargetingSpecStoreDataAction","AdsTargetingClearTargetingViewStoreDataAction","AdsTargetingCloseCreateCustomAudienceDialogDataAction","AdsTargetingResetMixStateComponentDataAction","AdsTargetingSetAgeErrorDataAction","AdsTargetingSetPermutableTargetingApiSpecDataAction","AdsTargetingSetTargetingApiSpecDataAction","AdsTargetingSetTargetingBulkApiSpecDataAction","AdsTargetingShowCreateCustomAudienceDialogDataAction","AdsTargetingUpdateTargetingSpecDataAction"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h={clearAllTargetingStore:function i(){h.clearTargetingSpecStore();h.clearTargetingViewStore()},clearTargetingSpecStore:function i(){c("AdsTargetingClearTargetingSpecStoreDataAction").dispatch({})},closeCreateCustomAudienceDialog:function i(){c("AdsTargetingCloseCreateCustomAudienceDialogDataAction").dispatch({})},showCreateCustomAudienceDialog:function i(){c("AdsTargetingShowCreateCustomAudienceDialogDataAction").dispatch({})},updateTargetingSpec:function i(j){c("AdsTargetingUpdateTargetingSpecDataAction").dispatch({spec:j})},setTargetingApiSpec:function i(j,k){c("AdsTargetingSetTargetingApiSpecDataAction").dispatch({spec:j,behaviors:k})},clearTargetingViewStore:function i(){c("AdsTargetingClearTargetingViewStoreDataAction").dispatch({})},resetMixedStateComponent:function i(j){c("AdsTargetingResetMixStateComponentDataAction").dispatch({component:j})},setAgeErrors:function i(j){c("AdsTargetingSetAgeErrorDataAction").dispatch({ageErrors:j})},setBulkApiSpec:function i(j,k){c("AdsTargetingSetTargetingBulkApiSpecDataAction").dispatch({spec:j,behaviors:k})},setPermutableApiSpec:function i(j,k){c("AdsTargetingSetPermutableTargetingApiSpecDataAction").dispatch({spec:j,behaviors:k})}};f.exports=h}),null);
__d("AdsCommonTargetingLoggingConstant",["keyMirrorRecursive"],(function a(b,c,d,e,f,g){"use strict";f.exports=c("keyMirrorRecursive")({ALL_COMPONENTS_BOOTLOADED:"",CONTAINER_IMPRESSION:"",MTC_DID_LOAD:"",SESSION_DURATION:"",UI_SESSION:""},"AdsCommonTargeting")}),null);
__d("AdsLocationBulkInputChangeDefaultCountryDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"BULK_INPUT_CHANGE_DEFAULT_COUNTRY");f.exports=h}),null);
__d("AdsLocationBulkInputChangeDefaultRadiusDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"BULK_INPUT_CHANGE_DEFAULT_RADIUS");f.exports=h}),null);
__d("AdsLocationBulkInputFinishValidationDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"BULK_INPUT_FINISH_VALIDATION");f.exports=h}),null);
__d("AdsLocationBulkInputRemoveRowDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"BULK_INPUT_REMOVE_ROW");f.exports=h}),null);
__d("AdsLocationBulkInputUpdateValidatedLocationDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"BULK_INPUT_UPDATE_VALIDATED_LOCATION");f.exports=h}),null);
__d("AdsLocationInvalidExcludeDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"INVALID_EXCLUDE");f.exports=h}),null);
__d("AdsSavedAudienceViewChangeNavTabDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"VIEW.CHANGE_NAV_TAB");f.exports=h}),null);
__d("AdsSavedAudienceViewUserChangeNavTabDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"VIEW.USER_CHANGE_NAV_TAB");f.exports=h}),null);
__d("AdsTargetingConnectionsLoggingEvents",[],(function a(b,c,d,e,f,g){"use strict";var h=Object.freeze({CHANGE_TARGETING_TYPE:"connections_change_targeting_type",CLEAR_TARGETING:"connections_clear_targeting",CLOSED_VIDEO_NUX:"connections_video_nux_closed",CLOSED_CONNECTIONS_UI_NUX:"connections_ui_nux_closed",PE_TARGETING_DIALOG_CANCELLED:"pe_targeting_dialog_cancelled",PE_TARGETING_DIALOG_CONFIRMED:"pe_targeting_dialog_confirmed",PE_TARGETING_DIALOG_OPENED:"pe_targeting_dialog_opened",SELECT_MENU:"connections_select_menu",UPDATE_ENGAGEMENT_SPECS:"connections_update_engagement_specs",UPDATE_EXCLUDED_CONNECTIONS:"connections_update_excluded_connections",UPDATE_EXCLUDED_ENGAGEMENT_SPECS:"connections_update_excluded_engagement_specs",UPDATE_FRIENDS_OF_CONNECTIONS:"connections_update_friends_of_connections",UPDATE_INCLUDED_CONNECTIONS:"connections_update_included_connections",VIDEO_INFOS_LOAD_TIME:"video_infos_load_time",VIDEOS_LOAD_TIME:"videos_load_time",PAGES_LOAD_TIME:"pages_load_time",VIDEO_LOADING_INFO:"video_loading_info",VIDEOS_FETCHING_ERROR:"video_fetching_error"});f.exports=h}),null);
__d("AdsTargetingLocationLoggingEvents",[],(function a(b,c,d,e,f,g){"use strict";var h=Object.freeze({GEO_LOCATION_SELECT:"select_geo_location",GEO_LOCATION_SELECT_EXCLUDE:"select_exclude_geo_location",GEO_LOCATION_START_TYPING:"geo_location_start_typing",GEO_LOCATION_CLICK_INCLUDE:"geo_location_click_include",GEO_LOCATION_CLICK_EXCLUDE:"geo_location_click_exclude",GEO_LOCATION_USE_EXCLUDE:"geo_location_use_exclude",GEO_LOCATION_CHANGE_RADIUS:"geo_location_change_radius",GEO_LOCATION_CLICK_XOUT:"geo_location_click_xout",GEO_LOCATION_NO_MATCH:"geo_location_no_match",GEO_LOCATION_UNSUPPORTED:"geo_location_unsupported",GEO_LOCATION_EXPLORE_TARGETING_TYPE:"geo_location_explore_targeting_type",GEO_LOCATION_CHANGE_TARGETING_TYPE:"geo_location_change_targeting_type",GEO_LOCATION_COPY_PASTE:"geo_location_copy_paste",GEO_LOCATION_ABANDONED_SEARCH:"abandoned_search",GEO_LOCATION_GEOCODE_FAIL:"geo_location_geocode_fail",GEO_LOCATION_CLOSE_NUX:"geo_location_close_nux",GEO_LOCATION_CLICK_RADIUS_EDITOR:"geo_location_click_radius_editor",GEO_LOCATION_COMPONENT_LOADING_TIME:"geo_location_component_loading_time",GEO_LOCATION_TYPEAHEAD_NO_INTERACTION:"geo_location_typeahead_no_interaction",GEO_LOCATION_CHANGE_TO_WORLDWIDE_ON_MCLAL_CHANGE:"geo_location_change_to_worldwide_on_mclal_change",GEO_LOCATION_DISMISS_CHANGE_TO_WORLDWIDE_NOTICE:"geo_location_dismiss_to_worldwide_notice",GEO_LOCATION_OPEN_MULTICITY_CHEVRON_MENU:"geo_location_multi_city_open_chevron_menu",GEO_LOCATION_INCLUDE_CITIES_ONLY:"geo_location_multi_city_include_cities_only",GEO_LOCATION_EXCLUDE_CITIES_ONLY:"geo_location_multi_city_exclude_cities_only",GEO_LOCATION_INCLUDE_ALL_AREAS:"geo_location_multi_city_include_all_areas",GEO_LOCATION_CHANGE_CITY_POPULATION_FILTER:"geo_location_multi_city_change_population_filter",GEO_LOCATION_MULTICITY_SUGGESTION_TOOLTIP_SURFACED:"geo_location_multi_city_location_suggested_tooltip",GEO_LOCATION_MULTICITY_SUGGESTION_TOOLTIP_CLICKED:"geo_location_multi_city_location_suggested_tooltip_clicked",GEO_LOCATION_COUNTRYGROUP_SUGGESTION_TOOLTIP_SURFACED:"geo_location_country_group_location_suggested_tooltip",GEO_LOCATION_COUNTRYGROUP_SUGGESTION_TOOLTIP_CLICKED:"geo_location_country_group_location_suggested_tooltip_clicked",GEO_LOCATION_BROWSE_LIST_OPEN:"geo_location_browse_list_open",GEO_LOCATION_BROWSE_LIST_REMOVE_ENTRY:"geo_location_browse_list_remove_entry",GEO_LOCATION_BROWSE_LIST_ADD_ENTRY:"geo_location_browse_list_add_entry",GEO_LOCATION_MAP_ADD_LOCATION:"geo_location_map_add_location",GEO_LOCATION_MAP_ZOOM_IN:"geo_location_map_zoom_in",GEO_LOCATION_MAP_ZOOM_OUT:"geo_location_map_zoom_out",GEO_LOCATION_MAP_ZOOM_TO_FIT:"geo_location_map_zoom_to_fit",GEO_LOCATION_MAP_COLLAPSE:"geo_location_map_collapse",GEO_LOCATION_MAP_EXPAND:"geo_location_map_expand",GEO_LOCATION_MAP_INCLUDE:"geo_location_map_include",GEO_LOCATION_MAP_EXCLUDE:"geo_location_map_exclude",GEO_LOCATION_MAP_DELETE:"geo_location_map_delete",GEO_LOCATION_MAP_MOUNTING_TIME:"geo_location_map_mounting_time",GEO_LOCATION_MAP_DATA_LOADING_TIME:"geo_location_map_data_loading_time",GEO_LOCATION_MAP_REPORT_ISSUE:"geo_location_map_report_issue",GEO_LOCATION_BLIP_OPEN_BULK_DIALOG:"geo_location_blip_open_bulk_dialog",GEO_LOCATION_BLIP_ADD_LOCATIONS:"geo_location_blip_add_locations",GEO_LOCATION_BLIP_REMOVE_LOCATION:"geo_location_blip_remove_location",GEO_LOCATION_BLIP_UPDATE_LOCATION:"geo_location_blip_update_location",GEO_LOCATION_BLIP_UPDATE_DEFAULT_RADIUS:"geo_location_blip_update_default_radius",GEO_LOCATION_BLIP_UPDATE_DEFAULT_ZIP_COUNTRY:"geo_location_blip_update_default_zip_country",GEO_LOCATION_BLIP_FINISH_VALIDATION:"geo_location_blip_finish_validation",TARGETING_TYPE_SWITCH:"targeting_type_switch",SAVED_LOCATION_SHOW_SAVE_OPTION:"saved_location_show_save_option",SAVED_LOCATION_DISPLAY_NAME_INPUT_DIALOG:"saved_location_display_name_input_dialog",SAVED_LOCATION_CREATE:"saved_location_create",SAVED_LOCATION_CREATED:"saved_location_created",SAVED_LOCATION_CREATE_ERROR:"saved_location_create_error",SAVED_LOCATION_DISPLAY_DELETE_DIALOG:"saved_location_display_delete_dialog",SAVED_LOCATION_DELETE:"saved_location_delete",SAVED_LOCATION_DELETED:"saved_location_deleted",SAVED_LOCATION_DELETE_ERROR:"saved_location_delete_error",SAVED_LOCATION_DISPLAY_UPDATE_DIALOG:"saved_location_display_update_dialog",SAVED_LOCATION_UPDATE:"saved_location_update",SAVED_LOCATION_UPDATED:"saved_location_updated",SAVED_LOCATION_UPDATE_ERROR:"saved_location_update_error",SAVED_LOCATION_LIST_LOADED:"saved_location_list_loaded",SAVED_LOCATION_LIST_LOAD_ERROR:"saved_location_list_load_error",SAVED_LOCATION_LOADED:"saved_location_loaded",SAVED_LOCATION_LOAD_ERROR:"saved_location_load_error",GEO_LOCATION_POLYGON_DATA_AVAILABLE:"geo_location_polygon_data_available",GEO_LOCATION_POLYGON_DATA_UNAVAILABLE:"geo_location_polygon_data_unavailable"});f.exports=h}),null);
__d("AdsTargetingTExLoggingEvents",["ImmutableObject","keyMirror"],(function a(b,c,d,e,f,g){"use strict";var h=new(c("ImmutableObject"))(c("keyMirror")({TEX_CLICK_ADDITIONAL_TARGETING_LINK:null}));f.exports=h}),null);
__d("TargetingViewLoggingEvents",["keyMirror"],(function a(b,c,d,e,f,g){"use strict";var h=c("keyMirror")({TARGETING_VIEW_DISPLAY_UI_ERROR:null,FLEXIBLE_TARGETING_REMOVE_INVALID:null});f.exports=h}),null);
__d("AdsCommonTargetingLoggerStore",["AdsCommonTargetingLoggingConstant","AdsCommonTargetingViewActionType","AdsDataAtom","AdsInterfacesLogEvents","AdsInterfacesLogger","AdsLocationBulkInputChangeDefaultCountryDataAction","AdsLocationBulkInputChangeDefaultRadiusDataAction","AdsLocationBulkInputFinishValidationDataAction","AdsLocationBulkInputRemoveRowDataAction","AdsLocationBulkInputUpdateValidatedLocationDataAction","AdsLocationInvalidExcludeDataAction","AdsSavedAudienceSavedAudienceBatchCreatedDataAction","AdsSavedAudienceViewChangeNavTabDataAction","AdsSavedAudienceViewUserChangeNavTabDataAction","AdsTargetingConnectionsLoggingEvents","AdsTargetingLocationLoggingEvents","AdsTargetingSetAgeErrorDataAction","AdsTargetingTExHideAdditionalTargetingDataAction","AdsTargetingTExLoggingEvents","AdsTargetingTExShowAdditionalTargetingDataAction","ErrorUtils","FluxStore","Random","TargetingViewLoggingEvents","performanceNow"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsInterfacesLogEvents").EventCategory;h=babelHelpers.inherits(k,c("FluxStore"));i=h&&h.prototype;function k(){i.constructor.call(this,c("AdsDataAtom"));this.$AdsCommonTargetingLoggerStoreClass1=0}k.prototype.__onDispatch=function(l){__p&&__p();var m=l.action,n=m.methodName,o=m.type;switch(o){case c("AdsTargetingConnectionsLoggingEvents").PE_TARGETING_DIALOG_OPENED:this.$AdsCommonTargetingLoggerStoreClass1=c("performanceNow")();break;case c("AdsTargetingConnectionsLoggingEvents").PE_TARGETING_DIALOG_CANCELLED:case c("AdsTargetingConnectionsLoggingEvents").PE_TARGETING_DIALOG_CONFIRMED:c("AdsInterfacesLogger").log({eventName:c("AdsCommonTargetingLoggingConstant").SESSION_DURATION},c("AdsInterfacesLogger").LOG_TYPE_SECONDARY_APP);break;case c("AdsLocationBulkInputChangeDefaultRadiusDataAction").actionType:c("AdsInterfacesLogger").log({eventName:c("AdsTargetingLocationLoggingEvents").GEO_LOCATION_BLIP_UPDATE_DEFAULT_RADIUS},c("AdsInterfacesLogger").LOG_TYPE_SECONDARY_APP);break;case c("AdsLocationBulkInputChangeDefaultCountryDataAction").actionType:c("AdsInterfacesLogger").log({eventName:c("AdsTargetingLocationLoggingEvents").GEO_LOCATION_BLIP_UPDATE_DEFAULT_ZIP_COUNTRY},c("AdsInterfacesLogger").LOG_TYPE_SECONDARY_APP);break;case c("AdsLocationBulkInputFinishValidationDataAction").actionType:c("AdsInterfacesLogger").log({eventName:c("AdsTargetingLocationLoggingEvents").GEO_LOCATION_BLIP_FINISH_VALIDATION},c("AdsInterfacesLogger").LOG_TYPE_SECONDARY_APP);break;case c("AdsLocationBulkInputRemoveRowDataAction").actionType:c("AdsInterfacesLogger").log({eventName:c("AdsTargetingLocationLoggingEvents").GEO_LOCATION_BLIP_REMOVE_LOCATION},c("AdsInterfacesLogger").LOG_TYPE_SECONDARY_APP);break;case c("AdsLocationBulkInputUpdateValidatedLocationDataAction").actionType:c("AdsInterfacesLogger").log({eventName:c("AdsTargetingLocationLoggingEvents").GEO_LOCATION_BLIP_UPDATE_LOCATION},c("AdsInterfacesLogger").LOG_TYPE_SECONDARY_APP);break;case c("AdsTargetingTExShowAdditionalTargetingDataAction").actionType:case c("AdsTargetingTExHideAdditionalTargetingDataAction").actionType:c("AdsInterfacesLogger").log({eventName:c("AdsTargetingTExLoggingEvents").TEX_CLICK_ADDITIONAL_TARGETING_LINK},c("AdsInterfacesLogger").LOG_TYPE_SECONDARY_APP);break;case c("AdsSavedAudienceViewUserChangeNavTabDataAction").actionType:case c("AdsSavedAudienceViewChangeNavTabDataAction").actionType:c("AdsInterfacesLogger").log({eventName:o,eventCategory:j.USER_ACTION,data:{to_tab:m.navTabKey}},c("AdsInterfacesLogger").LOG_TYPE_SECONDARY_APP);break;case c("AdsSavedAudienceSavedAudienceBatchCreatedDataAction").actionType:c("AdsInterfacesLogger").log({eventName:o,eventCategory:j.USER_ACTION,data:{saved_audiences:m.savedAudiences}},c("AdsInterfacesLogger").LOG_TYPE_SECONDARY_APP);break;case c("AdsLocationInvalidExcludeDataAction").actionType:case c("AdsTargetingSetAgeErrorDataAction").actionType:c("AdsInterfacesLogger").log(babelHelpers["extends"]({eventName:c("TargetingViewLoggingEvents").TARGETING_VIEW_DISPLAY_UI_ERROR},m),c("AdsInterfacesLogger").LOG_TYPE_SECONDARY_APP);break;default:break}if(n===c("AdsCommonTargetingViewActionType").changeGeoLocations&&Math.floor(c("Random").random()*1e3)===0)c("AdsInterfacesLogger").log({eventName:n,data:{stack_trace:c("ErrorUtils").normalizeError(new Error()).stack,vital:true}},c("AdsInterfacesLogger").LOG_TYPE_SECONDARY_APP);switch(n){case c("AdsCommonTargetingViewActionType").changeAndroidDeviceGroup:case c("AdsCommonTargetingViewActionType").changeInterestedIn:case c("AdsCommonTargetingViewActionType").changeIOSDevices:case c("AdsCommonTargetingViewActionType").changeRelationshipStatuses:case c("AdsCommonTargetingViewActionType").changeEducationStatuses:case c("AdsCommonTargetingViewActionType").changeGenders:case c("AdsCommonTargetingViewActionType").changeAgeMin:case c("AdsCommonTargetingViewActionType").changeAppInstallState:case c("AdsCommonTargetingViewActionType").changeUserAdclusters:case c("AdsCommonTargetingViewActionType").changeConjunctiveUserAdclusters:case c("AdsCommonTargetingViewActionType").changeAgeMax:case c("AdsCommonTargetingViewActionType").changeAgeMaxAndAgeMin:case c("AdsCommonTargetingViewActionType").changeMinAndroidVersion:case c("AdsCommonTargetingViewActionType").changeMinIOSVersion:case c("AdsCommonTargetingViewActionType").changeMinWindowsVersion:case c("AdsCommonTargetingViewActionType").changeMobileOperatingSystem:case c("AdsCommonTargetingViewActionType").changeWifiOnly:case c("AdsCommonTargetingViewActionType").changeGeoLocations:case c("AdsCommonTargetingViewActionType").changeLanguages:case c("AdsCommonTargetingViewActionType").changeTimezones:case c("AdsCommonTargetingViewActionType").changeConnections:case c("AdsCommonTargetingViewActionType").changeEngagements:case c("AdsCommonTargetingViewActionType").changeEducationStatus:case c("AdsCommonTargetingViewActionType").changeEducationMajors:case c("AdsCommonTargetingViewActionType").changeEducationSchools:case c("AdsCommonTargetingViewActionType").changeMaxGradYear:case c("AdsCommonTargetingViewActionType").changeMinGradYear:case c("AdsCommonTargetingViewActionType").changeTargetAllGraduationYears:case c("AdsCommonTargetingViewActionType").changeWorkEmployers:case c("AdsCommonTargetingViewActionType").changeKeywords:case c("AdsCommonTargetingViewActionType").changeCustomAudiences:case c("AdsCommonTargetingViewActionType").changeExcludedAudiences:case c("AdsCommonTargetingViewActionType").removeAudience:case c("AdsCommonTargetingViewActionType").excludeAudience:case c("AdsCommonTargetingViewActionType").includeAudience:case c("AdsCommonTargetingViewActionType").changeInterests:case c("AdsCommonTargetingViewActionType").changeWorkPositions:case c("AdsCommonTargetingViewActionType").changeFamilyStatuses:case c("AdsCommonTargetingViewActionType").changeIndustries:case c("AdsCommonTargetingViewActionType").changeLifeEvents:case c("AdsCommonTargetingViewActionType").changePolitics:case c("AdsCommonTargetingViewActionType").changeIncome:case c("AdsCommonTargetingViewActionType").changeNetWorth:case c("AdsCommonTargetingViewActionType").changeHomeType:case c("AdsCommonTargetingViewActionType").changeHomeOwnership:case c("AdsCommonTargetingViewActionType").changeHomeValue:case c("AdsCommonTargetingViewActionType").changeEthnicAffinity:case c("AdsCommonTargetingViewActionType").changeGeneration:case c("AdsCommonTargetingViewActionType").changeHouseholdComposition:case c("AdsCommonTargetingViewActionType").changeMoms:case c("AdsCommonTargetingViewActionType").changeOfficeType:case c("AdsCommonTargetingViewActionType").changeBehaviors:case c("AdsCommonTargetingViewActionType").changeFlexibleSpec:case c("AdsCommonTargetingViewActionType").changeContextualTargetingCategories:case c("AdsCommonTargetingViewActionType").changeCustomLocation:case c("AdsCommonTargetingViewActionType").changeCustomLocationCenter:case c("AdsCommonTargetingViewActionType").changeLocalGeoRadius:case c("AdsCommonTargetingViewActionType").fetchSuggestedRadius:case c("AdsCommonTargetingViewActionType").changeTargetingOptimization:case c("AdsCommonTargetingViewActionType").changePlacePageSetIDs:case c("AdsCommonTargetingViewActionType").changeGatekeepers:case c("AdsCommonTargetingViewActionType").changeFollowProfiles:case c("AdsCommonTargetingViewActionType").changeFollowProfilesNegative:case c("AdsCommonTargetingViewActionType").changeAlternateAutoTargeting:c("AdsInterfacesLogger").log({eventName:n},c("AdsInterfacesLogger").LOG_TYPE_SECONDARY_APP);break;default:break}};f.exports=new k()}),null);
__d("AdsDeliveryEstimateLoadSuccessDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"DELIVERY_ESTIMATE.LOAD_SUCCESS");f.exports=h}),null);
__d("AdsDeliveryEstimateStartedLoadDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"DELIVERY_ESTIMATE.STARTED_LOAD");f.exports=h}),null);
__d("AdsTargetingLoadTimeStore",["AdsCommonTargetingLoggingConstant","AdsDataAtom","AdsInterfacesLogger","AdsLoadState_LEGACY","AdsTargetingLoadTimeActionTypes","FluxReduceStore","immutable"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("immutable").Record,k=j({endTime:null,entriesLoadTimeMap:{},loadTimeMap:{},loadStateMap:{},loadState:c("AdsLoadState_LEGACY").NOT_LOADED,objective:null,startTime:null}),l={AdsCommonTargetingAudienceEditor:true,AdsCommonTargetingLocationEditorV2:true,AdsUnifiedFlexibleTargetingEditor:true,AdsCommonTargetingConnectionsEditor:true,AdsTargetingSavedAudienceEditorSearchContainer:true};h=babelHelpers.inherits(m,c("FluxReduceStore"));i=h&&h.prototype;m.prototype.getInitialState=function(){return new k()};m.prototype.getLoadState=function(){return this.getState().get("loadState")};m.prototype.reduce=function(n,o){__p&&__p();var p=o.action;switch(p.type){case c("AdsTargetingLoadTimeActionTypes").INIT_TARGETING_CONTAINER:var q={},r={},s={};p.config.forEach(function(v){if(l[v])q[v]=0;r[v]=p.time;s[v]=c("AdsLoadState_LEGACY").NOT_LOADED});return n.set("startTime",p.time).set("endTime",null).set("entriesLoadTimeMap",q).set("loadState",c("AdsLoadState_LEGACY").LOADING).set("loadTimeMap",r).set("loadStateMap",s).set("objective",p.objective);case c("AdsTargetingLoadTimeActionTypes").COMPONENT_WILL_MOUNT:var t=p.componentName,u=p.time;r=n.get("loadTimeMap");s=n.get("loadStateMap");r[t]=u;s[t]=c("AdsLoadState_LEGACY").LOADING;return n.set("loadTimeMap",r).set("loadStateMap",s);case c("AdsTargetingLoadTimeActionTypes").COMPONENT_DID_MOUNT:case c("AdsTargetingLoadTimeActionTypes").COMPONENT_DID_FINISH_LOADING_ENTRIES:t=p.componentName;u=p.time;q=n.get("entriesLoadTimeMap");r=n.get("loadTimeMap");s=n.get("loadStateMap");if(n.loadState!==c("AdsLoadState_LEGACY").LOADING||s[t]===c("AdsLoadState_LEGACY").LOADED)return n;else if(l[t]&&p.type===c("AdsTargetingLoadTimeActionTypes").COMPONENT_DID_MOUNT){q[t]=u;return n.set("entriesLoadTimeMap",q)}if(l[t])q[t]=u-q[t];r[t]=u-r[t];s[t]=c("AdsLoadState_LEGACY").LOADED;n=n.set("entriesLoadTimeMap",q).set("loadTimeMap",r).set("loadStateMap",s);if(this.$AdsTargetingLoadTimeStore1(s)){c("AdsInterfacesLogger").log({eventName:c("AdsCommonTargetingLoggingConstant").MTC_DID_LOAD},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);n=n.set("endTime",u).set("loadState",c("AdsLoadState_LEGACY").LOADED)}return n;default:return n}};m.prototype.$AdsTargetingLoadTimeStore1=function(n){return Object.keys(n).every(function(o){return n[o]===c("AdsLoadState_LEGACY").LOADED})};function m(){h.apply(this,arguments)}f.exports=new m(c("AdsDataAtom"))}),null);
__d("AdsCommonTargetingScenarioLoggerStore",["AdsBaseScenarioLoggerStore","AdsDataAtom","AdsDeliveryEstimateLoadSuccessDataAction","AdsDeliveryEstimateStartedLoadDataAction","AdsInterfacesLogger","AdsLoadState_LEGACY","AdsScenarios","AdsTargetingLoadTimeActionTypes","AdsTargetingLoadTimeStore","DateConsts"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsScenarios").ActionOr,k=c("AdsScenarios").ActionFunction,l=["AdsCommonTargetingAgeEditor","AdsCommonTargetingAudienceEditor","AdsCommonTargetingGenderEditor","AdsCommonTargetingLanguagesEditor"],m=["AdsCommonTargetingAudienceEditor","AdsCommonTargetingConnectionsEditor","AdsCommonTargetingLocationEditorV2","AdsUnifiedFlexibleTargetingEditor"];h=babelHelpers.inherits(n,c("AdsBaseScenarioLoggerStore"));i=h&&h.prototype;function n(){__p&&__p();i.constructor.call(this);var p=[],q=l.map(function(r){return{name:r+"_did_mount",start:new k(function(s){return s.type===c("AdsTargetingLoadTimeActionTypes").COMPONENT_WILL_MOUNT&&s.componentName===r}),success:new k(function(s){return s.type===c("AdsTargetingLoadTimeActionTypes").COMPONENT_DID_MOUNT&&s.componentName===r}),abandon:new j(p),timeout:c("DateConsts").SEC_PER_MIN}}).concat(m.map(function(r){return{name:r+"_did_finish_loading_entries",start:new k(function(s){return s.type===c("AdsTargetingLoadTimeActionTypes").COMPONENT_WILL_MOUNT&&s.componentName===r}),success:new k(function(s){return s.type===c("AdsTargetingLoadTimeActionTypes").COMPONENT_DID_FINISH_LOADING_ENTRIES&&s.componentName===r}),abandon:new j(p),timeout:c("DateConsts").SEC_PER_MIN}}));this.prepareScenarios([{name:"MTC_did_mount",start:new j([c("AdsTargetingLoadTimeActionTypes").INIT_TARGETING_CONTAINER]),success:new k(function(r){c("AdsDataAtom").waitFor([c("AdsTargetingLoadTimeStore").getDispatchToken()]);var s=c("AdsTargetingLoadTimeStore").getLoadState();return s===c("AdsLoadState_LEGACY").LOADED}),abandon:new j(p),timeout:c("DateConsts").SEC_PER_MIN},{name:"MTC_TTI",start:new j([c("AdsTargetingLoadTimeActionTypes").INIT_TARGETING_CONTAINER]),success:new j([c("AdsTargetingLoadTimeActionTypes").COMPONENT_DID_MOUNT,c("AdsTargetingLoadTimeActionTypes").COMPONENT_DID_FINISH_LOADING_ENTRIES]),abandon:new j(p),timeout:c("DateConsts").SEC_PER_MIN},{name:"reach_estimate_load_time",start:new j([c("AdsDeliveryEstimateStartedLoadDataAction").actionType]),success:new j([c("AdsDeliveryEstimateLoadSuccessDataAction").actionType]),abandon:new j(p),timeout:c("DateConsts").SEC_PER_MIN}].concat(q))}n.prototype.getStateData=function(){return{}};n.prototype.log=function(p,q){c("AdsInterfacesLogger").log({eventName:p,data:q},c("AdsInterfacesLogger").LOG_TYPE_SECONDARY_APP)};var o=new n();f.exports=o}),null);
__d("AdsPerfUtils",[],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(){this.pending=0}h.prototype.registerLoadStart=function(){this.pending+=1};h.prototype.registerLoadEnd=function(j){if(this.pending===1)j();this.pending-=1};var i={LoadCounter:h};f.exports=i}),null);
__d("TargetingViewConfigValidator",["invariant"],(function a(b,c,d,e,f,g,h){"use strict";function i(k){k.forEach(function(l){var m=l.component;m.targetingSpecFields||h(0)})}var j={validate:i};f.exports=j}),null);
__d("TargetingViewRenderer.react",["cx","React","curry","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").Component,l=c("React").PropTypes;i=babelHelpers.inherits(m,k);j=i&&i.prototype;m.prototype.render=function(){var n=[];this.props.config.forEach(function(o,p){var q=o.component,r=c("curry")(this.props.rowRenderer,this.props.targetingSpec,o),s=c("curry")(this.props.rowRenderer.rendersWhatHasBeenPassedIn,this.props.targetingSpec,o),t=c("joinClasses")("_5eb4",o.className);n.push(c("React").createElement("div",{className:t,key:p},c("React").createElement(q,{config:o,extraData:this.context.getExtraData(),rowRenderer:r,rowRendererRendersWhatHasBeenPassedIn:s})))}.bind(this));return c("React").createElement("div",{className:"_4d2m"},n)};function m(){i.apply(this,arguments)}m.contextTypes={getExtraData:l.func.isRequired};f.exports=m}),null);
__d("TargetingContainerFactory",["AdsCommonTargetingLoggerStore","AdsTargetingLoadTimeStore","AdsCommonTargetingScenarioLoggerStore","AdsPerfUtils","AdsTargetingLoadTimeActions","FluxContainer","React","Set","TargetingViewConfigValidator","TargetingViewRenderer.react","getByPath","performanceNow"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();c("AdsCommonTargetingLoggerStore");c("AdsTargetingLoadTimeStore");c("AdsCommonTargetingScenarioLoggerStore");var h=c("React").Component,i=c("React").PropTypes,j=c("AdsPerfUtils").LoadCounter;function k(m){__p&&__p();var n,o,p=m.initializeStore,q=m.onTargetingSpecChange,r=m.rowRenderer,s=m.specUtils,t=m.targetingMode,u=m.targetingSpecStore;n=babelHelpers.inherits(v,h);o=n&&n.prototype;function v(w){"use strict";o.constructor.call(this,w);this.loadCounter=new j();this.$TargetingBaseContainer1=function(){if(this.props.onFinishedLoading)this.loadCounter.registerLoadStart()}.bind(this);this.$TargetingBaseContainer2=function(){if(this.props.onFinishedLoading)this.loadCounter.registerLoadEnd(this.props.onFinishedLoading)}.bind(this)}v.prototype.getChildContext=function(){"use strict";var w=babelHelpers["extends"]({},this.props.extraData,{targetingSpecStore:u});return{getExtraData:function x(){return w},registerLoadEnd:this.$TargetingBaseContainer2,registerLoadStart:this.$TargetingBaseContainer1,targetingMode:t}};v.getStores=function(){"use strict";return[u]};v.calculateState=function(){"use strict";var w=u.getState();return{targetingSpec:w}};v.prototype.componentWillMount=function(){"use strict";c("TargetingViewConfigValidator").validate(this.props.config);var w=this.props.config.map(function(y){return y.component.displayName}).filter(function(y){return y!=="TargetingSectionDivider"}),x=c("getByPath")(this.props.extraData,["objectiveData","objective"]);c("AdsTargetingLoadTimeActions").initTargetingContainer(t,w,c("performanceNow")(),x);if(this.props.defaultSpec)p(this.props)};v.prototype.componentWillReceiveProps=function(w){"use strict";c("TargetingViewConfigValidator").validate(w.config);if(w.defaultSpec){var x=s.getAggregatedSpecFromState(this.state.targetingSpec),y=s.defaultSpecToAggregatedSpec(this.props.defaultSpec,this.props.extraData.apiTransformerBehaviors),z=s.defaultSpecToAggregatedSpec(w.defaultSpec,w.extraData.apiTransformerBehaviors);if(s.hasSpecChanged(x,z,w.extraData.targetingSpecBlacklist)&&s.hasSpecChanged(y,z,w.extraData.targetingSpecBlacklist))p(w)}};v.prototype.componentDidUpdate=function(w,x){"use strict";if(x.targetingSpec.equals(this.state.targetingSpec))return;var y=s.getAggregatedSpecFromState(x.targetingSpec),z=s.getAggregatedSpecFromState(this.state.targetingSpec);if(s.hasSpecChanged(y,z,this.props.extraData.targetingSpecBlacklist))q(this.props,this.state.targetingSpec)};v.prototype.render=function(){"use strict";return c("React").createElement("div",null,c("React").createElement(c("TargetingViewRenderer.react"),{config:this.props.config,defaultWidth:this.props.defaultWidth,mixedStateComponents:new(c("Set"))(),rowRenderer:r,targetingSpec:this.state.targetingSpec}))};v.defaultProps={defaultWidth:680};v.childContextTypes={getExtraData:i.func.isRequired,targetingMode:i.string,registerLoadEnd:i.func,registerLoadStart:i.func};return c("FluxContainer").create(v)}var l={create:k};f.exports=l}),null);
__d("targetingBulkRowRenderer",["cx","fbt","AdObjectLevels","Link.react","React","TargetingActions","TargetingBulkSpecUtils","idx"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").Component;function m(q){var r=q.showEditLink,s=q.onEditMixedState,t=q.onResetMixedState,u=void 0;if(r)u=c("React").createElement(c("Link.react"),{className:"_1hqn",onClick:s},i._("View & Edit"));return c("React").createElement("div",{className:"_bb3"},u,c("React").createElement(c("Link.react"),{onClick:t},i._("Reset")))}j=babelHelpers.inherits(n,l);k=j&&j.prototype;function n(){var q,r;for(var s=arguments.length,t=Array(s),u=0;u<s;u++)t[u]=arguments[u];return r=(q=k.constructor).call.apply(q,[this].concat(t)),this.$MixedStateComponent1=function(){c("TargetingActions").resetMixedStateComponent(this.props.config.component)}.bind(this),this.$MixedStateComponent2=function(){var v=this.props.config.customProperties;if(v&&v.bulkEditAction)v.bulkEditAction(v.bulkEditDialogType,c("AdObjectLevels").CAMPAIGN,v.bulkEditSource)}.bind(this),r}n.prototype.render=function(){var q;return c("React").createElement("div",null,c("React").createElement("span",{className:"_5eb7"},i._("Mixed State")),c("React").createElement(m,{showEditLink:(q=this.props.config)!=null?(q=q.customProperties)!=null?q.mixedStateEditableInDialog:q:q,onEditMixedState:this.$MixedStateComponent2,onResetMixedState:this.$MixedStateComponent1}))};function o(q,r){var s;return c("TargetingBulkSpecUtils").isMixedStateComponent(r.component,q)&&!((s=r)!=null?(s=s.customProperties)!=null?s.mixedStateEditable:s:s)}function p(q,r,s,t,u){if(o(q,r))u=c("React").cloneElement(u,{children:c("React").createElement(n,{config:r})});return c("React").createElement("div",s.props,t,u)}p.rendersWhatHasBeenPassedIn=function(){return!o.apply(undefined,arguments)};f.exports=p}),null);
__d("TargetingBulkContainer.react",["AdsCommonTargetingUtils","TargetingActions","TargetingBulkSpecUtils","TargetingContainerFactory","TargetingContainerMode","TargetingSpecStore","targetingBulkRowRenderer"],(function a(b,c,d,e,f,g){"use strict";var h=c("TargetingBulkSpecUtils").getBulkApiSpecFromState,i=c("TargetingBulkSpecUtils").getTargetingApiSpecFromState,j=c("TargetingBulkSpecUtils").transformSpecToAdsBulkValue,k={hasSpecChanged:c("AdsCommonTargetingUtils").hasBulkSpecChanged,defaultSpecToAggregatedSpec:function m(n,o){return j(n||{})},getAggregatedSpecFromState:h},l=c("TargetingContainerFactory").create({targetingMode:c("TargetingContainerMode").BULK,targetingSpecStore:c("TargetingSpecStore"),initializeStore:function m(n){return c("TargetingActions").setBulkApiSpec(k.defaultSpecToAggregatedSpec(n.defaultSpec||{}),n.extraData.apiTransformerBehaviors)},onTargetingSpecChange:function m(n,o){return n.onTargetingSpecChange(i(o),h(o))},rowRenderer:c("targetingBulkRowRenderer"),specUtils:k});f.exports=l}),null);
__d("TargetingContainer.react",["AdsErrorBoundary.react","AdsTargetingFallbackErrorNotice.react","AdsTargetingWebdriverIDs","React","TargetingBulkContainer.react"],(function a(b,c,d,e,f,g){"use strict";var h,i,j=c("React").Component;h=babelHelpers.inherits(k,j);i=h&&h.prototype;k.prototype.render=function(){return c("React").createElement(c("AdsErrorBoundary.react"),{fallbackComponent:c("React").createElement(c("AdsTargetingFallbackErrorNotice.react"),null),moduleName:c("AdsTargetingWebdriverIDs").TARGETING_CONTAINER},c("React").createElement("div",{"data-testid":c("AdsTargetingWebdriverIDs").TARGETING_CONTAINER},c("React").createElement(c("TargetingBulkContainer.react"),{config:this.props.config,defaultSpec:this.props.defaultApiSpec,defaultWidth:this.props.defaultWidth,extraData:this.props.extraData,onFinishedLoading:this.props.onFinishedLoading,onTargetingSpecChange:this.props.onTargetingSpecChange})))};function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("BoostedComponentAudienceEditor.react",["cx","AdsCurrentUser","AdsDaoGraph","AdsFlexibleTargetingConstants","AdsTextInput.react","BoostedComponentContent.react","BoostedComponentLabeledEditor.react","BoostedComponentStrings","React","TargetingContainer.react","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").Component;i=babelHelpers.inherits(l,k);j=i&&i.prototype;l.prototype.render=function(){return c("React").createElement(c("BoostedComponentContent.react"),{className:c("joinClasses")(this.props.className,"_2l_0")},this.$BoostedComponentAudienceEditor1(),c("React").createElement(c("TargetingContainer.react"),{config:this.props.editorConfig,defaultApiSpec:this.props.targetingSpec,extraData:this.$BoostedComponentAudienceEditor2(),onTargetingSpecChange:this.props.onDataUpdate}))};l.prototype.$BoostedComponentAudienceEditor1=function(){if(!this.props.onAudienceNameChange)return null;var m=this.props,n=m.audienceName,o=m.onAudienceNameChange,p=m.nameError;return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{label:c("BoostedComponentStrings").NAME},c("React").createElement(c("AdsTextInput.react"),{errors:p,id:"audience_name",value:n,onChange:o}))};l.prototype.$BoostedComponentAudienceEditor2=function(){return{accountID:this.props.adAccountID,dao:c("AdsDaoGraph"),defaultCountry:c("AdsCurrentUser").countryCode,oneColumn:true,selectedDepressed:true,selectedUse:"default",size:"xlarge",apiTransformerBehaviors:this.props.showFlexSpecExperimentParam?c("AdsFlexibleTargetingConstants").FLEXIBLE_API_BEHAVIORS:{}}};function l(){i.apply(this,arguments)}f.exports=l}),null);
__d("AdsReachEstimateUtils",["AdsAPIOptimizationGoals","AdsCampaignOptimizationPluginResolver","AdsInterfacesLogEvents","AdsInterfacesLogger","AdsInterfacesLoggerConfigColumns","adsAssertAPIObjective"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("AdsInterfacesLogEvents").Event,i=10,j=1.7;function k(q){return q&&q.hasValue()?q.getValueEnforcing().users||0:0}function l(q,r,s){if(!q||!r||!s)return false;var t=c("AdsCampaignOptimizationPluginResolver").resolve({objective:c("adsAssertAPIObjective")(q),promotedObjectType:s});return t.getCanUseConversionWindow(r)}function m(q,r){return r.spend>0&&r.actions<.5&&r.predicted_errors_conversions<j&&(q==c("AdsAPIOptimizationGoals").OFFSITE_CONVERSIONS||q==c("AdsAPIOptimizationGoals").APP_INSTALLS)}function n(q,r,s){if(q&&q.isDone()&&q.hasValue()){p.logZeroConversionWarningQE(h.OUTCOME_PREDICTION_ZERO_CONVERSION_WARNING_EXPOSURE,r,s);return q.getValueEnforcing().getParamBool("show_zero_conv_warning",false)}return false}function o(q,r,s){var t;c("AdsInterfacesLogger").log({data:(t={},t[c("AdsInterfacesLoggerConfigColumns").CAMPAIGN_ID]=r,t[c("AdsInterfacesLoggerConfigColumns").OPTIMIZATION_GOAL]=s,t),eventName:q},c("AdsInterfacesLogger").LOG_TYPE_SECONDARY_APP)}var p={MIN_ACTIONS:i,getShouldShowZeroConverionWarningFromQE:n,getUsers:k,hasModifiableAttributionWindow:l,logZeroConversionWarningQE:o,showZeroConversionWarning:m};f.exports=p}),null);
__d("AdsTargetingEstimateFeedbackThrottle.react",["cx","fbt","ix","AdsOtherConsts","AdsTargetingPotentialReachTooltip.react","AdsTargetingRatingUtils","AdsTestIDs","BrowserSupport","Image.react","LeftRight.react","LoadingIndicator.react","NumberFormat","React","ReactFragment","SUIBusinessTheme","SUISimplePopover.react","SUIText.react","joinClasses"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("React").Component,n=c("AdsTargetingRatingUtils").OVERALL_RATINGS;function o(s){switch(s){case n.GOOD:return i._("Your audience is defined.");case n.VAGUE:return i._("Your audience selection is fairly broad.");case n.BAD_TOO_SMALL:return i._("Your audience is too specific for your ads to be shown. Try making it broader.");case n.BAD_TOO_BROAD:return i._("Your audience selection is broad. This requires a large budget.");case n.UNAVALIABLE:return i._("Audience definition is unavaliable.")}}function p(s,t,u,v){if(u===n.UNAVALIABLE)return c("React").createElement("div",null,i._("Potential Reach: Unavailable"),c("React").createElement(c("AdsTargetingPotentialReachTooltip.react"),{placementLabels:v,width:240}));if(s<=t)return c("React").createElement("div",null,i._({"*":"Potential Reach: Fewer than {users} people"},[i.param("users",c("NumberFormat").formatInteger(t),[0,t])]),c("React").createElement(c("AdsTargetingPotentialReachTooltip.react"),{placementLabels:v,width:240}));else return c("React").createElement("div",null,i._({"*":"Potential Reach: {users} people"},[i.param("users",c("NumberFormat").formatInteger(s),[0,s])]),c("React").createElement(c("AdsTargetingPotentialReachTooltip.react"),{placementLabels:v,width:240}))}function q(s){switch(s){case n.GOOD:return c("joinClasses")("_1ga0","_4u38");case n.VAGUE:return c("joinClasses")("_1ga0","_4u39");case n.BAD_TOO_BROAD:return c("joinClasses")("_1ga0","_4u3a");case n.BAD_TOO_SMALL:return c("joinClasses")("_1ga0","_4u3b");case n.UNAVALIABLE:return c("joinClasses")("_1ga0","_19kz")}}k=babelHelpers.inherits(r,m);l=k&&k.prototype;r.prototype.render=function(){var s="_4qxz",t=this.props.showNumUsersInFeedbackSection?null:this.renderUsers();return c("React").createElement("div",{className:s,"data-testid":c("AdsTestIDs").ADS_AUDIENCE_SIZE},c("React").createElement("div",{className:this.$AdsTargetingEstimateFeedbackThrottle1()},this.renderFeedbackSection()),this.renderSentences(),t)};r.prototype.renderFeedbackSection=function(){if(this.props.loading)return this.renderSpinner();return c("ReactFragment").create({throttle:this.renderThrottle(),feedback:this.renderFeedback()})};r.prototype.renderThrottle=function(){if(!this.showNeedle())return null;return c("React").createElement("div",{className:"_4fbf lfloat"},c("React").createElement("div",{className:"_4fbg"},c("React").createElement(c("Image.react"),{className:q(this.props.rating),src:j("22556")}),c("React").createElement(c("Image.react"),{className:"_1ga1",src:j("22555")}),c("React").createElement(c("LeftRight.react"),{className:"_1ga2"},this.renderNeedleLabel(i._("Specific")),this.renderNeedleLabel(i._("Broad")))))};r.prototype.renderNeedleLabel=function(s){return c("React").createElement("span",{className:"_1ga3","data-hover":"tooltip","data-tooltip-alignh":"center","data-tooltip-content":s},s)};r.prototype.renderFeedback=function(){var s=this.props.showNumUsersInFeedbackSection?this.renderUsers():null;return c("React").createElement("div",{className:"rfloat fsm _4fbo"+(!this.showNeedle()?" noNeedle":"")},this.props.renderFeedbackTitleForRating(this.props.rating),s)};r.prototype.renderSentence=function(s,t){if(!s.content)return c("React").createElement("li",{key:s+t},s);return c("React").createElement("li",{key:s.content+t},c("React").createElement("div",null,s.content),c("React").createElement("ul",{className:"_1ga5 pll"},(s.children||[]).map(function(u,v){return c("React").createElement("li",{key:u+v},c("React").createElement("div",{className:"_164_"},u))})))};r.prototype.renderSentences=function(){if(this.props.shouldOmitSentences||!this.props.sentences.length)return null;var s=this.props.sentences.map(function(t,u){return this.renderSentence(t,u)}.bind(this));return c("React").createElement("div",{className:"_4qx-","data-testid":"targeting-estimate-feedback"},c("React").createElement("h5",{className:"fwb _164r"},i._("Audience Details:")),c("React").createElement("ul",{className:"_1ga7 pll pts"},s))};r.prototype.renderUsers=function(){if(this.props.loading)return this.renderSpinner();var s=this.props.users,t=this.props.audienceSizeFeedback(s,this.props.minimumReach,this.props.rating,this.props.placementLabels),u=i._("Your detailed targeting criteria is currently set to allow interest expansion."),v=this.props.showInterestExpansionWarning?c("React").createElement("div",{className:"_3og6"},c("React").createElement(c("SUIText.react"),{shade:"light",theme:c("SUIBusinessTheme")},u),c("React").createElement(c("SUISimplePopover.react"),{alignment:"center",content:i._("Interest expansion allows us to show your ad to more people who may convert."),contentWidthUseSparingly:168,position:"above",theme:c("SUIBusinessTheme")})):null;if(!t&&!v)return null;return c("React").createElement("div",{className:"_4fbp"},t,v)};r.prototype.showNeedle=function(){return c("BrowserSupport").hasCSSTransforms()&&c("BrowserSupport").hasCSSTransitions()};r.prototype.renderSpinner=function(){return c("React").createElement("div",{className:"_1ga9"},c("React").createElement(c("LoadingIndicator.react"),{color:c("LoadingIndicator.react").COLORS.blue,size:c("LoadingIndicator.react").SIZES.small}))};r.prototype.$AdsTargetingEstimateFeedbackThrottle1=function(){return c("joinClasses")("clearfix","_4qx_",!this.props.shouldOmitFeedback?"":this.props.rating)};function r(){k.apply(this,arguments)}r.defaultProps={audienceSizeFeedback:p,minimumReach:c("AdsOtherConsts").REACH_TOO_LOW_NUMBER,sentences:[],shouldOmitFeedback:false,shouldOmitSentences:false,showInterestExpansionWarning:false,showProductAudienceWarning:false,showNumUsersInFeedbackSection:false,renderFeedbackTitleForRating:o};f.exports=r}),null);
__d("BoostedComponentTargetingFeedbackThrottleV2Container.react",["cx","AdsFluxContainer","AdsOtherConsts","AdsReachEstimateStore","AdsReachEstimateUtils","AdsTargetingEstimateFeedbackThrottle.react","AdsTargetingRatingUtils","AdsUtils","BoostedComponentAdAccountStoreV2","BoostedComponentAudienceRatingUtils","BoostedComponentAudienceSelectionRatingStore","BoostedComponentContainerUtils","BoostedComponentErrorBoundaryContainer.react","BoostedComponentQEs","BoostedComponentQEUtils","BoostedComponentReachEstimationOptimizationGoalUtils","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("BoostedComponentContainerUtils").isDataLoaded,l=c("React").Component,m=c("AdsTargetingRatingUtils").OVERALL_RATINGS,n=20,o=function o(r,s,t,u,v,w,x,y,z){var A=c("BoostedComponentAudienceSelectionRatingStore").getAudienceSelectionRating(r,u,s,t,v,x,null,w,null,null,null,y,z),B=A.isLoading(),C=A&&A.getError(),D=A&&A.hasValue()?A.getValueEnforcing().audience_size||0:0;if(C)D=n;var E=A&&A.hasValue()?A.getValueEnforcing().rating||m.BAD_TOO_SMALL:m.BAD_TOO_SMALL;return{users:D,rating:E,loading:B}},p=function p(r,s,t,u){var v=c("AdsReachEstimateStore").getReachEstimateForAccount(r,s,t,null,u,null,null,null),w=c("AdsReachEstimateUtils").getUsers(v),x=w>c("AdsOtherConsts").REACH_TOO_LOW_NUMBER?Math.round(w/c("AdsOtherConsts").REACH_TOO_LOW_NUMBER)*c("AdsOtherConsts").REACH_TOO_LOW_NUMBER:w,y=v.isLoading(),z=c("AdsUtils").underscoreToCamelCaseKeys(t||{}),A=c("AdsTargetingRatingUtils").getOverallRating(z,x);return{loading:y,rating:A,users:x}};i=babelHelpers.inherits(q,l);j=i&&i.prototype;q.getStores=function(){return[c("AdsReachEstimateStore"),c("BoostedComponentAdAccountStoreV2"),c("BoostedComponentAudienceSelectionRatingStore")]};q.calculateState=function(r,s){var t=s.accountID,u=s.appID,v=s.audienceType,w=s.forceInstagramRemoval,x=s.pageID,y=s.pageTypes,z=s.targetingSpecs,A=c("BoostedComponentAdAccountStoreV2").getState(),B=k([A]);if(!B)return babelHelpers["extends"]({},r);var C=c("BoostedComponentReachEstimationOptimizationGoalUtils").getOptimizationGoal(s.appID);if(c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_COMPONENT_LWI_AUDIENCE_RATING_ALGO_UNIVERSE).getParamBool("enable",false))return o(u,t,A.getCurrency(),x,z,C,v,y,!!w);else return p(t,A.getCurrency(),z,C)};q.prototype.render=function(){return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"AdsTargetingEstimateFeedbackThrottle"},c("React").createElement("div",{className:"_2f-i"},c("React").createElement(c("AdsTargetingEstimateFeedbackThrottle.react"),{audienceSizeFeedback:c("BoostedComponentAudienceRatingUtils").audienceSizeFeedback,loading:this.state.loading,rating:this.state.rating,renderFeedbackTitleForRating:c("BoostedComponentAudienceRatingUtils").feedbackTitleForRating,showNumUsersInFeedbackSection:true,users:this.state.users})))};function q(){i.apply(this,arguments)}q.defaultProps={useSimplifiedDesign:true};f.exports=c("AdsFluxContainer").create(q,{withProps:true,name:f.id})}),null);
__d("BoostedComponentCreateAudienceDialog.react",["cx","fbt","AdsAPITargetFields","AdsCommonTargetingInvalidInterestsNoticeTexts","AdsForceExpandedTargetingForWhatsAppCTANoticeContainer.react","AdsTargetingAlternateAutoTargetingOptionContainer.react","AdsTargetingAudienceInvalidInterestsNoticeContainer.react","AdsTargetingGrayAreaSegmentsMTCNoticeContainer.react","ApiAutoTargetingModes","BoostedComponentAudienceDeleteDialog.react","BoostedComponentAudienceEditor.react","BoostedComponentQEs","BoostedComponentQEUtils","BoostedComponentTargetingFeedbackThrottleV2Container.react","BoostedComponentV2Utils","BoostedPostAudienceOptions","LayerFadeOnHide","LayerHideOnEscape","LoadingIndicator.react","React","SUIBusinessTheme","SUIText.react","XUIDialog.react","XUIDialogBody.react","XUIDialogCancelButton.react","XUIDialogFooter.react","XUIDialogSaveButton.react","XUIDialogTitle.react","XUINotice.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("AdsAPITargetFields").CUSTOM_AUDIENCES,m=c("AdsAPITargetFields").GEO_LOCATIONS,n=i._("Create Audience"),o=i._("Select the location, age, gender and interests of people you want to reach with your ad."),p=i._("Make sure to save your edits once you're done."),q=i._("You must enter a location for your audience"),r=i._("You must enter a name for your audience"),s=i._("You must enter a shorter name for your audience"),t=function t(w){var x=w.count,y=w.editMode;if(!x||!y)return null;return c("React").createElement(c("XUINotice.react"),{className:"_3-95"},i._("You have {number of ads in numerals} other {ads} using this audience. Updating this audience will update all ads associated with it.",[i.param("number of ads in numerals",x),i.param("ads",x===1?i._("ad"):i._("ads"))]))};j=babelHelpers.inherits(u,c("React").Component);k=j&&j.prototype;function u(w){k.constructor.call(this,w);v.call(this);var x=w.audienceName,y=w.editMode,z=w.targetingSpec,A=JSON.parse(JSON.stringify(z));if(!y&&A[c("AdsAPITargetFields").ALTERNATE_AUTO_TARGETING_OPTION])delete A[c("AdsAPITargetFields").ALTERNATE_AUTO_TARGETING_OPTION];var B=A.flexible_spec||[{}];this.state={audienceName:y?x:"",showDeleteDialog:false,targetingSpec:A,flexibleSpec:B}}u.prototype.$BoostedComponentCreateAudienceDialog5=function(){var w=this.state.targetingSpec.custom_audiences;if(this.props.audienceType===c("BoostedPostAudienceOptions").GROUPER||this.props.audienceType===c("BoostedPostAudienceOptions").FANS||w)return false;return c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_POST_AUDIENCE_SELECTION_FEEDBACK_UNIVERSE).getParamBool("enable_feedback_section",false)};u.prototype.render=function(){var w=this.props,x=w.accountID,y=w.adgroupID,z=w.appID,A=w.associatedAdsCount,B=w.audienceType,C=w.editorConfig,D=w.editMode,E=w.isUpdating,F=w.showExpandedTargetingHints,G=w.onToggle,H=w.useName,I=this.state,J=I.audienceName,K=I.targetingSpec,L=null;if(!K[l]&&!K[m])L=c("React").createElement(c("XUINotice.react"),{className:"_3-95",use:"warn"},q);var M=/\S/.test(J)?J.length>400?{error:s}:null:{error:r},N=D&&B===c("BoostedPostAudienceOptions").SAVED_AUDIENCE?c("React").createElement(c("BoostedComponentAudienceDeleteDialog.react"),{onConfirm:this.$BoostedComponentCreateAudienceDialog4}):null,O=(B===c("BoostedPostAudienceOptions").FANS||B===c("BoostedPostAudienceOptions").GROUPER)&&D,P=E?c("React").createElement(c("LoadingIndicator.react"),{className:"_46c_",color:"white",size:"small"}):null,Q=z&&this.$BoostedComponentCreateAudienceDialog5()?c("React").createElement(c("BoostedComponentTargetingFeedbackThrottleV2Container.react"),{accountID:x,appID:this.props.appID,audienceType:B,forceInstagramRemoval:this.props.forceInstagramRemoval,pageID:this.props.pageID,pageTypes:this.props.pageTypes,targetingSpecs:K}):null,R=K[c("AdsAPITargetFields").ALTERNATE_AUTO_TARGETING_OPTION],S=z&&R?c("BoostedComponentV2Utils").getAutoTargetingMode(z):null,T=R!==c("ApiAutoTargetingModes").NONE,U=S===c("ApiAutoTargetingModes").MULTI_CAMPAIGN?c("React").createElement(c("AdsTargetingAlternateAutoTargetingOptionContainer.react"),{autoTargetingEnabled:T,autoTargetingOption:c("ApiAutoTargetingModes").MULTI_CAMPAIGN,className:"_fsc"}):null,V=y?c("React").createElement(c("AdsTargetingAudienceInvalidInterestsNoticeContainer.react"),{className:"_3-95",entityIDs:[y],noticeText:c("AdsCommonTargetingInvalidInterestsNoticeTexts").ADSET_TEXT}):null;return c("React").createElement(c("XUIDialog.react"),{behaviors:{LayerFadeOnHide:c("LayerFadeOnHide"),LayerHideOnEscape:c("LayerHideOnEscape")},className:"_ex0",shown:true,width:600,onToggle:G},c("React").createElement(c("XUIDialogTitle.react"),{className:"_46cv"},D?i._("Edit {audience name} Audience",[i.param("audience name",'"'+this.props.audienceName+'"')]):n),c("React").createElement(c("XUIDialogBody.react"),{useCustomPadding:true},c("React").createElement("div",{className:"_46cx"+(O?" _46cz":"")},c("React").createElement(t,{count:A,editMode:D}),V,c("React").createElement(c("AdsForceExpandedTargetingForWhatsAppCTANoticeContainer.react"),{showExpandedTargetingHints:F}),c("React").createElement(c("AdsTargetingGrayAreaSegmentsMTCNoticeContainer.react"),{adAccountID:x}),L,c("React").createElement("div",null,c("React").createElement(c("SUIText.react"),{shade:"light",theme:c("SUIBusinessTheme")},D?p:o)),U,c("React").createElement(c("BoostedComponentAudienceEditor.react"),{adAccountID:x,audienceName:J,editorConfig:C,nameError:M,showFlexSpecExperimentParam:true,targetingSpec:K,onAudienceNameChange:H?this.$BoostedComponentCreateAudienceDialog1:null,onDataUpdate:this.$BoostedComponentCreateAudienceDialog2}),!O&&c("React").createElement("div",{className:"_2pi5"}))),Q,c("React").createElement(c("XUIDialogFooter.react"),{className:"_46c-",leftContent:N},P,c("React").createElement(c("XUIDialogCancelButton.react"),null),c("React").createElement(c("XUIDialogSaveButton.react"),{disabled:E||L||M,use:"confirm",onClick:this.$BoostedComponentCreateAudienceDialog3})))};var v=function v(){__p&&__p();this.$BoostedComponentCreateAudienceDialog1=function(w){this.setState({audienceName:w})}.bind(this);this.$BoostedComponentCreateAudienceDialog2=function(w){this.setState({targetingSpec:w});this.props.onTargetingSpecUpdate(w)}.bind(this);this.$BoostedComponentCreateAudienceDialog3=function(){var w=this.state.targetingSpec,x=this.state,y=x.audienceName,z=x.flexibleSpec;if(this.props.editMode)this.props.onEditAudience(y,w);else this.props.onCreateNewAudience(y,w)}.bind(this);this.$BoostedComponentCreateAudienceDialog4=function(){this.props.onDeleteAudience()}.bind(this)};f.exports=u}),null);
__d("BoostedComponentInstagramNux.react",["cx","fbt","BoostedComponentInstagramNuxTypes","React","SUIBusinessTheme","SUINotice.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j=function j(k){if(!k.nuxType)return null;var l=k.nuxType,m=k.nuxExtraData;switch(l){case c("BoostedComponentInstagramNuxTypes").CONNECT_TO_BUSINESS_PROFILE:return c("React").createElement("div",{className:"_3-8x"},c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:"information"},i._("Your Instagram account {Instagram username connected to the page} is now connected to this Page so you can show ads on both platforms. Go to Page Settings to edit.",[i.param("Instagram username connected to the page",c("React").createElement("strong",null,m&&m.get("instagramAccountUsername")))])));default:break}return null};f.exports=j}),null);
__d("BoostedComponentInstagramPlacementCheckbox.react",["cx","fbt","React","SUIBusinessTheme","SUICheckboxInput.react"],(function a(b,c,d,e,f,g,h,i){"use strict";var j=i._("Run promotion on Instagram"),k=function k(l){var m=l.checked,n=l.disabled,o=l.onChange;return c("React").createElement("div",{className:"_3-8w"},c("React").createElement("div",null,c("React").createElement("label",null,i._("Instagram"))),c("React").createElement(c("SUICheckboxInput.react"),{disabled:n,label:j,theme:c("SUIBusinessTheme"),value:m,onChange:o}))};f.exports=k}),null);
__d("BoostedComponentInstagramPlacementCheckboxContainer.react",["AdsCallToActionTypes","AdsFluxContainer","AdsLWIInstanceUtils","BoostedActionCreativeStoreV2","BoostedComponentAppID","BoostedComponentAudienceActionsV2","BoostedComponentAudienceStoreV2","BoostedComponentContainerUtils","BoostedComponentContextStoreV2","BoostedComponentInstagramPlacementCheckbox.react","BoostedPostCreativeStoreV2","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded,l={dataLoaded:false,disableInstagramCheckbox:false,instagramPlacementRemoved:false,showInstagramCheckbox:false};h=babelHelpers.inherits(m,c("React").Component);i=h&&h.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=i.constructor).call.apply(n,[this].concat(q)),this.state=l,this.$BoostedComponentInstagramPlacementCheckboxContainer1=function(s){var t=this.props,u=t.appID,v=t.targetID,w=t.boostID;c("BoostedComponentAudienceActionsV2").setInstagramPlacementRemoved(!s,u,v,w)}.bind(this),o}m.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedActionCreativeStoreV2"),c("BoostedComponentAudienceStoreV2"),c("BoostedComponentContextStoreV2"),c("BoostedPostCreativeStoreV2")])};m.calculateState=function(n,o){var p=o.appID,q=o.targetID,r=o.boostID,s=j(p,q,r),t=c("BoostedComponentAudienceStoreV2").getDataByKey(s),u=c("BoostedComponentContextStoreV2").getDataByKey(s),v=p===c("BoostedComponentAppID").BOOSTED_POST?c("BoostedPostCreativeStoreV2").getState().getDataByKey(s):c("BoostedActionCreativeStoreV2").getState().getDataByKey(s),w=k([t,u,v]);if(!w)return l;var x=t.get("instagramPlacementEligible")&&(p===c("BoostedComponentAppID").BOOSTED_POST&&!!u.get("page_connected_instagram_account_id")||p===c("BoostedComponentAppID").BOOSTED_WEBSITE||p===c("BoostedComponentAppID").BOOSTED_PAGE||p===c("BoostedComponentAppID").BOOSTED_CCTA||p===c("BoostedComponentAppID").BOOSTED_LOCAL_AWARENESS),y=o.forceInstagramRemoval||o.instagramValidationException||!!v.getInstagramValidationExceptionMessage();return{dataLoaded:w,disableInstagramCheckbox:y,instagramPlacementRemoved:t.get("instagramPlacementRemoved"),showInstagramCheckbox:x}};m.prototype.componentWillUpdate=function(n,o){var p=n.appID,q=n.boostID,r=n.targetID,s=o.disableInstagramCheckbox;if(s!==this.state.disableInstagramCheckbox)c("BoostedComponentAudienceActionsV2").setInstagramPlacementRemoved(s,p,r,q)};m.prototype.render=function(){if(this.state.dataLoaded&&this.state.showInstagramCheckbox)return c("React").createElement(c("BoostedComponentInstagramPlacementCheckbox.react"),{checked:!this.state.instagramPlacementRemoved,disabled:this.state.disableInstagramCheckbox,onChange:this.$BoostedComponentInstagramPlacementCheckboxContainer1});return null};f.exports=c("AdsFluxContainer").create(m,{withProps:true,name:f.id})}),null);
__d("BoostedPostAudienceSelectorConstants",["fbt","BoostedPostAudienceOptions"],(function a(b,c,d,e,f,g,h){"use strict";var i=function i(k,l){switch(k){case c("BoostedPostAudienceOptions").FANS:case c("BoostedPostAudienceOptions").GROUPER:return h._("Edit this audience's location");default:return l?h._("Edit this audience's interests, location, ages and gender"):h._("Targeting for this post has already been specified.")}},j={SPECIAL_AUDIENCES_FANS:h._("People who like your Page"),SPECIAL_AUDIENCES_GROUPER:h._("People who like your Page and their friends"),SPECIAL_AUDIENCES_NCPP:h._("People you choose through targeting"),SPECIAL_AUDIENCES_DISTRICT:h._("People who live in your district"),CREATE_NEW_AUDIENCE_LABEL:h._("Create New Audience"),EDIT_AUDIENCE_LABEL:h._("Edit"),SEE_LESS_LABEL:h._("See Less")};f.exports=babelHelpers["extends"]({getAudienceSectionEditLinkTooltip:i},j)}),null);
__d("BoostedComponentSeeAudiencesToggle.react",["cx","fbt","BoostedPostAudienceSelectorConstants","Link.react","React"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k;j=babelHelpers.inherits(l,c("React").Component);k=j&&j.prototype;l.prototype.render=function(){var m=this.props,n=m.className,o=m.numAudiences,p=m.seeAll,q=m.shown,r=m.onClick;if(!q)return null;var s=i._("See All ({number of audiences})",[i.param("number of audiences",o)]),t=p?c("BoostedPostAudienceSelectorConstants").SEE_LESS_LABEL:s;return c("React").createElement("span",null,c("React").createElement(c("Link.react"),{onClick:r},t),c("React").createElement("span",{className:n},"|"))};function l(){j.apply(this,arguments)}l.defaultProps={className:"_9i9"};f.exports=l}),null);
__d("BoostedComponentAudienceSectionV2.react",["cx","fbt","AdsCompactTargetingSentencesContainer.react","AdsLWICustomAudiencesCheckboxList.react","AdsTargetingGrayAreaSegmentsNoticeContainer.react","BoostedComponentAppID","BoostedComponentAudienceActionsV2","BoostedComponentAudienceEditorConfigUtils","BoostedComponentAudienceNetworkPlacementCheckboxContainer.react","BoostedComponentAudienceSizeNotificationContainer.react","BoostedComponentCreateAudienceDialog.react","BoostedComponentInstagramNux.react","BoostedComponentInstagramPlacementCheckboxContainer.react","BoostedComponentQEs","BoostedComponentQEUtils","BoostedComponentRef","BoostedComponentSectionSubheader.react","BoostedComponentSectionV2.react","BoostedComponentSectionV2Spinner.react","BoostedComponentSeeAudiencesToggle.react","BoostedComponentStringsV2","BoostedPostAudienceOptions","BoostedPostAudienceSelectorConstants","Link.react","React","SUIBusinessTheme","SUIText.react","TooltipLink.react","XUINotice.react","XUIRadioList.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("BoostedPostAudienceSelectorConstants").getAudienceSectionEditLinkTooltip,m=c("XUIRadioList.react").Item,n=function n(q){__p&&__p();var r=q.accountID,s=q.appID,t=q.boostID,u=q.pageID,v=q.targetID,w=q.audienceList,x=q.selectedAudienceID,y=q.onValueChange,z=q.customAudiences.size?c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").ADS_LWI_MULTIPLE_CUSTOM_AUDIENCES).getParamString("group","control"):"control",A=w.map(function(B){__p&&__p();var C=B.audienceType,D=B.id,E=B.isClientEditable,F=B.name,G=B.targetSpec,H=B.tag,I="_9i2",J=null;if(C!==c("BoostedPostAudienceOptions").CUSTOM_AUDIENCE&&C!==c("BoostedPostAudienceOptions").SMART_AUDIENCE){var K=l(C,E);J=c("React").createElement(c("SUIText.react"),{theme:c("SUIBusinessTheme"),weight:"normal"},c("React").createElement(c("TooltipLink.react"),{alignH:"right",tooltip:K,onClick:E?q.onEditAudienceClick:null},c("BoostedPostAudienceSelectorConstants").EDIT_AUDIENCE_LABEL))}var L=void 0;if(H)L=c("React").createElement(c("SUIText.react"),{display:"block",shade:"light",size:"meta1",style:{paddingTop:4},theme:c("SUIBusinessTheme"),weight:"normal"},H);if(D===x){var M=c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_COMPONENT_EXPAND_AUDIENCE_UNIVERSE).getParamBool("expand_by_default",false),N=null;if(J&&E&&C!==c("BoostedPostAudienceOptions").GROUPER&&C!==c("BoostedPostAudienceOptions").FANS&&C!==c("BoostedPostAudienceOptions").SMART_AUDIENCE&&c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_COMPONENT_LWI_AUDIENCE_RATING_ALGO_UNIVERSE).getParamBool("enable",false)&&s!==c("BoostedComponentAppID").BOOSTED_APP_INSTALL)N=c("React").createElement(c("BoostedComponentAudienceSizeNotificationContainer.react"),{accountID:r,appID:s,audienceType:C,boostID:t,isV1:q.isV1,pageID:u,pageTypes:q.pageTypes,removeInstagram:q.removeInstagram,targetID:v});var O=C===c("BoostedPostAudienceOptions").NCPP&&z==="ncpp"||C===c("BoostedPostAudienceOptions").MULT_CUSTOM_AUDIENCES&&z==="custom_audiences_option";return c("React").createElement("div",{key:D},c("React").createElement(m,{className:I,key:D,selectedValue:x,value:D},c("React").createElement("div",{className:"_9i3"},F,J),L),c("React").createElement("div",{className:"_9i5"},N,O&&c("React").createElement("div",{className:"_2pi5"},c("React").createElement(c("AdsLWICustomAudiencesCheckboxList.react"),{appID:s,boostID:t,customAudiences:q.customAudiences,targetID:v,targetSpec:G})),c("React").createElement(c("AdsCompactTargetingSentencesContainer.react"),{accountID:r,collapsedByDefault:!M,hidePlacement:true,targetingApiSpec:G})))}return c("React").createElement(m,{className:I,key:D,selectedValue:x,value:D},c("React").createElement("div",{className:"_9i8"},F,L))});return c("React").createElement(c("XUIRadioList.react"),{selectedValue:x,onValueChange:y},A)};j=babelHelpers.inherits(o,c("React").Component);k=j&&j.prototype;function o(q){__p&&__p();k.constructor.call(this,q);p.call(this);var r=q.appID,s=q.boostID,t=q.dataLoaded,u=q.targetID;c("BoostedComponentAudienceActionsV2").setRendered(r,u,s);if(t){var v=q.accountID,w=q.audienceData,x=q.isV1,y=q.reachEstimatesFetched;if(v&&v!==w.accountID&&!w.isFetching)this.$BoostedComponentAudienceSectionV21(q);else if(x||!y)c("BoostedComponentAudienceActionsV2").setAudience(w.selectedAudienceID,r,u,s)}}o.prototype.componentWillReceiveProps=function(q){var r=this.props.accountID,s=q.accountID,t=q.audienceData,u=q.isV1;if(r&&s!==t.accountID&&!t.isFetching)this.$BoostedComponentAudienceSectionV21(q);if((u||!q.reachEstimatesFetched)&&q.dataLoaded&&q.dataLoaded!==this.props.dataLoaded){var v=q.appID,w=q.audienceData,x=q.boostID,y=q.targetID,z=w.selectedAudienceID;c("BoostedComponentAudienceActionsV2").setAudience(z,v,y,x)}};o.prototype.$BoostedComponentAudienceSectionV21=function(q){var r=q.accountID,s=q.appID,t=q.boostID,u=q.pageID,v=q.placement,w=q.targetID;if(r)c("BoostedComponentAudienceActionsV2").fetchAudiences(s,u,w,v,r,t,true)};o.prototype.$BoostedComponentAudienceSectionV211=function(){if(!this.props.showAudienceManager)return null;var q=this.props,r=q.appID,s=q.accountID,t=q.adgroupID,u=q.audienceData,v=q.constraintData,w=q.instanceID,x=q.isBoosted,y=q.isUpdating,z=q.pageID,A=q.showExpandedTargetingHints,B=q.pageTypes,C=q.forceInstagramRemoval,D=String(u.getAudienceType()),E=u.get("editMode"),F=E?u.getTargetSpec():u.getDefaultSpec(),G=!E||D===c("BoostedPostAudienceOptions").SAVED_AUDIENCE,H=(D===c("BoostedPostAudienceOptions").FANS||D===c("BoostedPostAudienceOptions").GROUPER)&&E,I=c("BoostedComponentAudienceEditorConfigUtils").getConfig(r,x,v,H,false,true,null,D);return c("React").createElement(c("BoostedComponentCreateAudienceDialog.react"),{accountID:s,adgroupID:t,appID:r,associatedAdsCount:u.getAssociatedAdsCount(),audienceName:u.getSelectedAudienceName(),audienceType:D,editMode:E,editorConfig:I,forceInstagramRemoval:C,instanceID:w,isUpdating:y,pageID:z,pageTypes:B,showExpandedTargetingHints:A,targetingSpec:F,useFlexibleTargeting:true,useName:G,onCreateNewAudience:this.$BoostedComponentAudienceSectionV23,onDeleteAudience:this.$BoostedComponentAudienceSectionV24,onEditAudience:this.$BoostedComponentAudienceSectionV25,onTargetingSpecUpdate:this.$BoostedComponentAudienceSectionV26,onToggle:this.$BoostedComponentAudienceSectionV29})};o.prototype.render=function(){var q=this.props,r=q.accountID,s=q.appID,t=q.pageID,u=q.targetID,v=q.boostID,w=q.audienceData,x=q.dataLoaded;if(!x||w.get("isFetching")||!r)return c("React").createElement(c("BoostedComponentSectionV2Spinner.react"),{height:200,title:c("BoostedComponentStringsV2").AUDIENCE_SECTION});var y=this.props,z=y.errors,A=y.placement,B=y.instagramData,C=y.noInstagramCheckbox,D=w.audiences,E=w.seeAll,F=w.selectedAudienceID,G=B.nuxType,H=B.nuxExtraData,I=w.getAudienceList(),J=w.getSelectedAudience(),K=!J.isClientEditable?null:c("React").createElement("div",{className:"_9ie"},c("React").createElement(c("SUIText.react"),{theme:c("SUIBusinessTheme")},c("React").createElement(c("BoostedComponentSeeAudiencesToggle.react"),{numAudiences:D.size,seeAll:E,shown:w.shouldShowSeeAllToggle(),onClick:this.$BoostedComponentAudienceSectionV210}),c("React").createElement(c("Link.react"),{"data-testid":"create-audience-link",onClick:this.$BoostedComponentAudienceSectionV27},c("BoostedPostAudienceSelectorConstants").CREATE_NEW_AUDIENCE_LABEL)),this.$BoostedComponentAudienceSectionV211()),L=C||s===c("BoostedComponentAppID").BOOSTED_PAGELIKE||s===c("BoostedComponentAppID").BOOSTED_EVENT||A===c("BoostedComponentRef").INSIGHTS_POST_DIRECT_BOOST?null:c("React").createElement("div",null,c("React").createElement(c("BoostedComponentInstagramPlacementCheckboxContainer.react"),{appID:this.props.appID,boostID:this.props.boostID,forceInstagramRemoval:this.props.forceInstagramRemoval,instagramValidationException:this.props.instagramValidationException,instanceID:this.props.instanceID,targetID:this.props.targetID}),c("React").createElement(c("BoostedComponentInstagramNux.react"),{nuxExtraData:H,nuxType:G}));return c("React").createElement(c("BoostedComponentSectionV2.react"),{title:c("BoostedComponentStringsV2").AUDIENCE_SECTION},c("React").createElement(c("AdsTargetingGrayAreaSegmentsNoticeContainer.react"),{adAccountID:r,className:"_2pit _2pij _2pid _2pin"}),c("React").createElement("div",{className:"_9ib"},c("React").createElement(c("BoostedComponentSectionSubheader.react"),{errors:z}),c("React").createElement(n,{accountID:r,appID:s,audienceList:I,boostID:v,customAudiences:w.customAudiences,isV1:this.props.isV1,pageID:t,pageTypes:this.props.pageTypes,removeInstagram:!!this.props.forceInstagramRemoval,selectedAudienceID:F,targetID:u,onEditAudienceClick:this.$BoostedComponentAudienceSectionV28,onValueChange:this.$BoostedComponentAudienceSectionV22}),K,L,s===c("BoostedComponentAppID").BOOSTED_POST&&c("React").createElement(c("BoostedComponentAudienceNetworkPlacementCheckboxContainer.react"),{appID:s,boostID:v,instanceID:this.props.instanceID,targetID:u})))};var p=function p(){__p&&__p();this.$BoostedComponentAudienceSectionV22=function(q){var r=this.props,s=r.appID,t=r.targetID,u=r.boostID;c("BoostedComponentAudienceActionsV2").setAudience(q,s,t,u)}.bind(this);this.$BoostedComponentAudienceSectionV23=function(q,r){var s=this.props,t=s.accessToken,u=s.accountID,v=s.appID,w=s.boostID,x=s.pageID,y=s.placement,z=s.targetID;c("BoostedComponentAudienceActionsV2").createAudience(v,x,z,y,u,true,t,q,r,w)}.bind(this);this.$BoostedComponentAudienceSectionV24=function(){var q=this.props,r=q.accessToken,s=q.appID,t=q.audienceData,u=q.boostID,v=q.targetID;c("BoostedComponentAudienceActionsV2").deleteAudience(t.getSavedAudienceID(),r,s,v,u)}.bind(this);this.$BoostedComponentAudienceSectionV25=function(q,r){var s=this.props,t=s.accessToken,u=s.appID,v=s.audienceData,w=s.boostID,x=s.targetID;c("BoostedComponentAudienceActionsV2").editAudience(u,x,v.getSavedAudienceID(),t,q,r,w)}.bind(this);this.$BoostedComponentAudienceSectionV26=function(q){var r=this.props,s=r.appID,t=r.boostID,u=r.targetID;c("BoostedComponentAudienceActionsV2").logAudienceChange(s,u,q,t)}.bind(this);this.$BoostedComponentAudienceSectionV27=function(){var q=this.props,r=q.appID,s=q.targetID,t=q.boostID;c("BoostedComponentAudienceActionsV2").openAudienceManager(false,r,s,t)}.bind(this);this.$BoostedComponentAudienceSectionV28=function(){var q=this.props,r=q.appID,s=q.targetID,t=q.boostID;c("BoostedComponentAudienceActionsV2").openAudienceManager(true,r,s,t)}.bind(this);this.$BoostedComponentAudienceSectionV29=function(q){if(!q){var r=this.props,s=r.appID,t=r.targetID,u=r.boostID;c("BoostedComponentAudienceActionsV2").closeAudienceManager(s,t,u)}}.bind(this);this.$BoostedComponentAudienceSectionV210=function(){var q=this.props,r=q.appID,s=q.targetID,t=q.boostID;c("BoostedComponentAudienceActionsV2").toggleSeeAll(r,s,t)}.bind(this)};f.exports=o}),null);
__d("AdsBillingDatePreferencesConfirmationModal.react",["cx","fbt","AdsCurrencyFormatter","DateStrings","DateTime","PaymentsWebDriverTestIDs","React","SUIBusinessTheme","SUILink.react","SUIModal.react","SUIModalHeader.react","SUIText.react","URI","nullthrows"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k;j=babelHelpers.inherits(l,c("React").Component);k=j&&j.prototype;l.prototype.render=function(){var m=this.$AdsBillingDatePreferencesConfirmationModal1();return c("React").createElement(c("SUIModal.react"),{"data-testid":c("PaymentsWebDriverTestIDs").BILLING_DATE_CONFIRMATION_MODAL,footer:null,header:c("React").createElement(c("SUIModalHeader.react"),{title:m}),isShown:true,label:m,theme:c("SUIBusinessTheme"),width:480,onHide:this.props.onCancel},this.$AdsBillingDatePreferencesConfirmationModal2())};l.prototype.$AdsBillingDatePreferencesConfirmationModal1=function(){return this.props.isOnAdsManager?i._("Billing Preferences Updated"):i._("Bill Date Updated")};l.prototype.$AdsBillingDatePreferencesConfirmationModal2=function(){__p&&__p();var m=[];if(this.props.newBillingDatePreference!=null)m.push(c("React").createElement(c("SUIText.react"),{className:"_634q",display:"block",key:"new_billing_date",size:"regular_DEPRECATED",textAlign:"center",theme:c("SUIBusinessTheme")},this.$AdsBillingDatePreferencesConfirmationModal3()));var n=this.props.newBillingThreshold;if(n!=null)m.push(c("React").createElement(c("SUIText.react"),{className:"_634q",display:"block",key:"new_billing_threshold",size:"regular_DEPRECATED",textAlign:"center",theme:c("SUIBusinessTheme")},i._("You've updated your billing threshold to {threshold amount}.",[i.param("threshold amount",c("AdsCurrencyFormatter").formatCurrencyWithNumberDelimiters(this.props.currency,n))])));var o=[],p=this.props.paymentCycle;if(p!=null){if(n!=null){if(n>p.threshold_amount)o.push(c("React").createElement(c("SUIText.react"),{className:"_634q",display:"block",key:"old_billing_threshold",size:"meta1",textAlign:"center",theme:c("SUIBusinessTheme")},i._("You may receive a bill when you spend your first {current billing threshold} before your new threshold takes effect.",[i.param("current billing threshold",c("AdsCurrencyFormatter").formatCurrencyWithNumberDelimiters(this.props.currency,p.threshold_amount))])))}else if(this.props.newBillingDatePreference!=null)o.push(c("React").createElement(c("SUIText.react"),{className:"_634q",display:"block",key:"current_billing_threshold",size:"meta1",textAlign:"center",theme:c("SUIBusinessTheme")},i._("Your billing threshold is {threshold amount}, so you'll also get a bill when you spend {threshold amount}.",[i.param("threshold amount",c("AdsCurrencyFormatter").formatCurrencyWithNumberDelimiters(this.props.currency,p.threshold_amount))])))}else if(!this.props.isOnAdsManager){var q=new(c("URI"))("/ads/manager/account_settings/account_billing/").addQueryData({act:this.props.adAccountID});o.push(c("React").createElement(c("SUIText.react"),{className:"_634q",display:"block",key:"ads_manager",size:"meta1",textAlign:"center",theme:c("SUIBusinessTheme")},i._("You can update this in your {=Payment Settings}.",[i.param("=Payment Settings",c("React").createElement(c("SUILink.react"),{href:q.toString(),target:"_blank",theme:c("SUIBusinessTheme")},i._("Payment Settings")))])))}return c("React").createElement("div",{className:"_634p"},m,o.length>0?c("React").createElement("div",{className:"_634q _634r"}):null,o)};l.prototype.$AdsBillingDatePreferencesConfirmationModal3=function(){var m=c("nullthrows")(this.props.newBillingDatePreference);if(this.props.hasCoupon)return i._("You've updated your bill date to the {day of the month, e.g. '31st'} of every month. Your ad credit is applied daily until it expires or the value is gone.",[i.param("day of the month, e.g. '31st'",c("DateStrings").getDayOfMonth(m.day_of_month))]);return i._("You'll receive your next bill on {next billing date}. After that, you'll be billed on the {day of the month, e.g. '31st'} of every month.",[i.param("next billing date",this.$AdsBillingDatePreferencesConfirmationModal4(this.props.nextBillDate)),i.param("day of the month, e.g. '31st'",c("DateStrings").getDayOfMonth(m.day_of_month))])};l.prototype.$AdsBillingDatePreferencesConfirmationModal4=function(m){return c("DateTime").fromISOString(m,this.props.timeZoneID).format("M j")};function l(){j.apply(this,arguments)}f.exports=l}),null);
__d("AdAccountBillingDatePreferenceLoggerEvent",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({CLIENT_CHANGE_DAY_SELECTOR:"client_change_day_selector",CLIENT_FAILURE_RESPONSE:"client_failure_response",CLIENT_OPEN_MODAL:"client_open_modal",CLIENT_SUBMIT_MODAL:"client_submit_modal",CLIENT_SUCCESS_RESPONSE:"client_success_response",SERVER_ENT_MUTATION:"server_ent_mutation"})}),null);
__d("AdAccountBillingDatePreferenceTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(){this.clear()}h.prototype.log=function(){c("GeneratedLoggerUtils").log("logger:AdAccountBillingDatePreferenceLoggerConfig",this.$AdAccountBillingDatePreferenceTypedLogger1,c("Banzai").BASIC)};h.prototype.logVital=function(){c("GeneratedLoggerUtils").log("logger:AdAccountBillingDatePreferenceLoggerConfig",this.$AdAccountBillingDatePreferenceTypedLogger1,c("Banzai").VITAL)};h.prototype.clear=function(){this.$AdAccountBillingDatePreferenceTypedLogger1={};return this};h.prototype.updateData=function(j){this.$AdAccountBillingDatePreferenceTypedLogger1=babelHelpers["extends"]({},this.$AdAccountBillingDatePreferenceTypedLogger1,j);return this};h.prototype.setAdAccountID=function(j){this.$AdAccountBillingDatePreferenceTypedLogger1.ad_account_id=j;return this};h.prototype.setDayOfMonth=function(j){this.$AdAccountBillingDatePreferenceTypedLogger1.day_of_month=j;return this};h.prototype.setEvent=function(j){this.$AdAccountBillingDatePreferenceTypedLogger1.event=j;return this};h.prototype.setReason=function(j){this.$AdAccountBillingDatePreferenceTypedLogger1.reason=j;return this};h.prototype.setTimeCreated=function(j){this.$AdAccountBillingDatePreferenceTypedLogger1.time_created=j;return this};h.prototype.setTimeEffective=function(j){this.$AdAccountBillingDatePreferenceTypedLogger1.time_effective=j;return this};h.prototype.setVC=function(j){this.$AdAccountBillingDatePreferenceTypedLogger1.vc=j;return this};var i={ad_account_id:true,day_of_month:true,event:true,reason:true,time_created:true,time_effective:true,vc:true};f.exports=h}),null);
__d("AdsBillingDatePreferencesModal.react",["ix","cx","fbt","AdAccountBillingDatePreferenceLoggerEvent","AdAccountBillingDatePreferenceTypedLogger","AdsCurrencyFormatter","AdsCurrencyInput.react","DateStrings","DateTime","FlexLayout.react","Image.react","Keys","PaymentsWebDriverTestIDs","React","SUIBusinessTheme","SUIBusinessThemeContainer.react","SUIButton.react","SUIModal.react","SUIModalCancelButton.react","SUIModalFooter.react","SUIModalHeader.react","SUINotice.react","SUISelector.react","SUISelectorOption.react","SUIText.react","asset","idx","nullthrows"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m,n;k=babelHelpers.inherits(o,c("React").PureComponent);l=k&&k.prototype;function o(){__p&&__p();var q,r;for(var s=arguments.length,t=Array(s),u=0;u<s;u++)t[u]=arguments[u];return r=(q=l.constructor).call.apply(q,[this].concat(t)),this.state={selectedBillingThreshold:null,selectedDayOfMonth:null},this.$AdsBillingDatePreferencesModal10=function(v){this.setState({selectedBillingThreshold:v})}.bind(this),this.$AdsBillingDatePreferencesModal15=function(v){this.setState({selectedDayOfMonth:v});new(c("AdAccountBillingDatePreferenceTypedLogger"))().setAdAccountID(this.props.adAccountID).setDayOfMonth(v).setEvent(c("AdAccountBillingDatePreferenceLoggerEvent").CLIENT_CHANGE_DAY_SELECTOR).log()}.bind(this),this.$AdsBillingDatePreferencesModal19=function(){var v=this.$AdsBillingDatePreferencesModal17()?this.state.selectedDayOfMonth:null;new(c("AdAccountBillingDatePreferenceTypedLogger"))().setAdAccountID(this.props.adAccountID).setDayOfMonth(v).setEvent(c("AdAccountBillingDatePreferenceLoggerEvent").CLIENT_SUBMIT_MODAL).log();this.props.onSubmit(v,this.$AdsBillingDatePreferencesModal16()?this.state.selectedBillingThreshold:null)}.bind(this),r}o.prototype.render=function(){var q=this.$AdsBillingDatePreferencesModal1();return c("React").createElement(c("SUIModal.react"),{footer:this.$AdsBillingDatePreferencesModal2(),header:c("React").createElement(c("SUIModalHeader.react"),{title:q}),isShown:true,label:q,theme:c("SUIBusinessTheme"),width:480,onHide:this.props.onCancel},this.$AdsBillingDatePreferencesModal3())};o.prototype.$AdsBillingDatePreferencesModal1=function(){return this.props.isOnAdsManager?j._("Manage Billing Preferences"):j._("Change Bill Date")};o.prototype.$AdsBillingDatePreferencesModal3=function(){return c("React").createElement(c("SUIBusinessThemeContainer.react"),null,c("React").createElement("div",null,this.props.errorMessage!=null?c("React").createElement(c("SUINotice.react"),{style:{marginBottom:"12px"},type:"error"},this.props.errorMessage):null,c("React").createElement(c("SUIText.react"),{className:"_3-94",display:"block",size:"regular_DEPRECATED",weight:"bold"},j._("You're in control of your bill date.")),c("React").createElement(c("SUIText.react"),{className:"_3-96",display:"block"},this.$AdsBillingDatePreferencesModal4()),c("React").createElement(c("SUIText.react"),{className:"_3-94",display:"block",weight:"bold"},j._("Select a new bill date:")),this.$AdsBillingDatePreferencesModal5(),this.$AdsBillingDatePreferencesModal6(),this.$AdsBillingDatePreferencesModal7(),this.$AdsBillingDatePreferencesModal8()))};o.prototype.$AdsBillingDatePreferencesModal7=function(){var q=this.props.paymentCycle;if(q==null||this.props.maxBillingThreshold==null||this.props.minBillingThreshold==null)return null;var r=this.state.selectedBillingThreshold!=null?this.state.selectedBillingThreshold:q.threshold_amount;return c("React").createElement(p,{label:j._("Update billing threshold"),style:{marginTop:12},toggleTestID:c("PaymentsWebDriverTestIDs").BILLING_DATE_MODAL_THRESHOLD_TOGGLE},c("React").createElement(c("AdsCurrencyInput.react"),{currency:this.props.currency,"data-testid":c("PaymentsWebDriverTestIDs").BILLING_THRESHOLD_CURRENCY_INPUT,errorMessage:this.$AdsBillingDatePreferencesModal9(),eventType:"change",height:"medium",nonnegative:true,value:r,withDecimals:true,withISO:false,withNumberDelimiters:true,onDataUpdate:this.$AdsBillingDatePreferencesModal10}),c("React").createElement(c("SUIText.react"),{display:"block",shade:"light",size:"meta1",style:{marginTop:4},theme:c("SUIBusinessTheme")},j._("If you increase your threshold, you may receive a bill when you spend your first {current billing threshold} before your new threshold takes effect.",[j.param("current billing threshold",c("AdsCurrencyFormatter").formatCurrencyWithNumberDelimiters(this.props.currency,q.threshold_amount))])))};o.prototype.$AdsBillingDatePreferencesModal9=function(){if(!this.$AdsBillingDatePreferencesModal11()){var q=c("nullthrows")(this.props.minBillingThreshold),r=c("nullthrows")(this.props.maxBillingThreshold);return j._("Enter a number between {min_threshold} and {max_threshold}.",[j.param("min_threshold",c("AdsCurrencyFormatter").formatCurrencyWithNumberDelimiters(q.currency,this.$AdsBillingDatePreferencesModal12(q))),j.param("max_threshold",c("AdsCurrencyFormatter").formatCurrencyWithNumberDelimiters(r.currency,this.$AdsBillingDatePreferencesModal12(r)))])}return null};o.prototype.$AdsBillingDatePreferencesModal11=function(){var q=this.state.selectedBillingThreshold;if(q==null)return true;var r=this.$AdsBillingDatePreferencesModal12(c("nullthrows")(this.props.minBillingThreshold)),s=this.$AdsBillingDatePreferencesModal12(c("nullthrows")(this.props.maxBillingThreshold));return q>=r&&q<=s};o.prototype.$AdsBillingDatePreferencesModal4=function(){var q=this.props.pendingBillingDatePreference;if(this.props.hasCoupon){if(q!=null)return j._("Your ad credit is applied daily until it expires or the value is gone. You've updated your bill date to the {day of the month, e.g. '31st'} of every month. This will begin {effective date}.",[j.param("day of the month, e.g. '31st'",c("DateStrings").getDayOfMonth(q.day_of_month)),j.param("effective date",this.$AdsBillingDatePreferencesModal13(q.next_bill_date))]);return j._("Your ad credit is applied daily until it expires or the value is gone. After that, you'll be billed every month on the date you choose.")}if(q!=null)return j._("Your next bill date is {next billing date}. You've updated your bill date to the {day of the month, e.g. '31st'} of every month. This will begin {effective date}.",[j.param("next billing date",c("React").createElement("strong",null,this.$AdsBillingDatePreferencesModal13(this.props.nextBillDate))),j.param("day of the month, e.g. '31st'",c("DateStrings").getDayOfMonth(q.day_of_month)),j.param("effective date",this.$AdsBillingDatePreferencesModal13(q.next_bill_date))]);return j._("Your next bill date is {next billing date}. After that, you'll be billed every month on the date you choose.",[j.param("next billing date",c("React").createElement("strong",null,this.$AdsBillingDatePreferencesModal13(this.props.nextBillDate)))])};o.prototype.$AdsBillingDatePreferencesModal5=function(){var q=Array.from({length:31},function(r,s){return s+1});return c("React").createElement(c("SUISelector.react"),{placeholder:"\u2013",theme:c("SUIBusinessTheme"),value:this.state.selectedDayOfMonth||this.$AdsBillingDatePreferencesModal14(),width:"100%",onChange:this.$AdsBillingDatePreferencesModal15},q.map(function(r){return c("React").createElement(c("SUISelectorOption.react"),{key:r,value:r},c("DateStrings").getDayOfMonth(r))}))};o.prototype.$AdsBillingDatePreferencesModal6=function(){if(this.state.selectedDayOfMonth==null||this.state.selectedDayOfMonth<29)return null;return c("React").createElement(c("SUIText.react"),{display:"block",shade:"light",size:"meta1",style:{marginTop:4},theme:c("SUIBusinessTheme")},j._("For shorter months, you'll be charged on the last day of the month."))};o.prototype.$AdsBillingDatePreferencesModal8=function(){if(this.props.isOnAdsManager)return null;return c("React").createElement(c("SUIText.react"),{display:"block",shade:"light",size:"meta1",style:{marginTop:12},theme:c("SUIBusinessTheme")},j._("You can update this when you manage your Payment Settings in Ads Manager."))};o.prototype.$AdsBillingDatePreferencesModal2=function(){var q=void 0;if(this.props.paymentCycle!=null)q=this.$AdsBillingDatePreferencesModal11()&&(this.$AdsBillingDatePreferencesModal16()||this.$AdsBillingDatePreferencesModal17());else q=this.$AdsBillingDatePreferencesModal17();return c("React").createElement(c("SUIModalFooter.react"),{primaryButton:c("React").createElement(c("SUIButton.react"),{"data-testid":c("PaymentsWebDriverTestIDs").BILLING_DATE_MODAL_SAVE_BUTTON,disabled:!q,label:this.$AdsBillingDatePreferencesModal18(),layerAction:"button",use:"confirm",onClick:this.$AdsBillingDatePreferencesModal19}),secondaryButton:c("React").createElement(c("SUIModalCancelButton.react"),null),theme:c("SUIBusinessTheme")})};o.prototype.$AdsBillingDatePreferencesModal16=function(){return this.state.selectedBillingThreshold!=null&&this.props.paymentCycle!=null&&this.state.selectedBillingThreshold!=this.props.paymentCycle.threshold_amount};o.prototype.$AdsBillingDatePreferencesModal17=function(){return this.state.selectedDayOfMonth!=null&&this.state.selectedDayOfMonth!==this.$AdsBillingDatePreferencesModal14()};o.prototype.$AdsBillingDatePreferencesModal18=function(){if(this.props.paymentCycle!=null)return j._("Save Changes");return j._("Save Date")};o.prototype.$AdsBillingDatePreferencesModal20=function(){return this.props.pendingBillingDatePreference||this.props.activeBillingDatePreference};o.prototype.$AdsBillingDatePreferencesModal14=function(){var q;return(q=this.$AdsBillingDatePreferencesModal20())!=null?q.day_of_month:q};o.prototype.$AdsBillingDatePreferencesModal13=function(q){return c("DateTime").fromISOString(q,this.props.timeZoneID).format("F j, Y")};o.prototype.$AdsBillingDatePreferencesModal12=function(q){return c("AdsCurrencyFormatter").parseCurrency(q.currency,q.amount)};m=babelHelpers.inherits(p,c("React").PureComponent);n=m&&m.prototype;function p(){var q,r;for(var s=arguments.length,t=Array(s),u=0;u<s;u++)t[u]=arguments[u];return r=(q=n.constructor).call.apply(q,[this].concat(t)),this.state={showChildren:false},this.$ToggleText1=function(){this.setState({showChildren:!this.state.showChildren})}.bind(this),this.$ToggleText2=function(event){if(event.keyCode===c("Keys").SPACE)this.$ToggleText1()}.bind(this),r}p.prototype.render=function(){var q=this.props,r=q.children,s=q.label,t=q.toggleTestID,u=babelHelpers.objectWithoutProperties(q,["children","label","toggleTestID"]);return c("React").createElement("div",u,c("React").createElement("div",{"aria-checked":this.state.showChildren,"data-testid":t,role:"switch",tabIndex:0,onClick:this.$ToggleText1,onKeyDown:this.$ToggleText2},c("React").createElement(c("FlexLayout.react"),{align:"center",direction:"horizontal"},c("React").createElement(c("SUIText.react"),{shade:"light",size:"meta1",theme:c("SUIBusinessTheme")},s),c("React").createElement(c("Image.react"),{src:this.$ToggleText3(),style:{marginLeft:4}}))),this.state.showChildren?c("React").createElement("div",{style:{marginTop:8}},r):null)};p.prototype.$ToggleText3=function(){return this.state.showChildren?h("382800"):h("382798")};f.exports=o}),null);
__d("AdsBillingDatePreferencesModalStep",["keyMirror"],(function a(b,c,d,e,f,g){"use strict";var h=c("keyMirror")({CLOSED:null,SELECTING:null,SUBMITTING:null,CONFIRMATION:null});f.exports=h}),null);
__d("AdsBillingDatePreferenceModalStepChangeDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"ADS_BILLING_DATE_PREFERENCE_MODAL_STEP_CHANGE");f.exports=h}),null);
__d("AdsBillingDatePreferenceModalSubmitFailureDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"ADS_BILLING_DATE_PREFERENCE_MODAL_SUBMIT_FAILURE");f.exports=h}),null);
__d("AdsBillingDatePreferenceModalSubmitSuccessDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"ADS_BILLING_DATE_PREFERENCE_MODAL_SUBMIT_SUCCESS");f.exports=h}),null);
__d("AdsBillingDatePreferencesDataLoader",["AdsGraphAPI"],(function a(b,c,d,e,f,g){"use strict";var h={updateBillingDatePreferences:function i(j,k){return c("AdsGraphAPI").get(f.id).adaccount(j).edge("billing_date_preferences").post({day_of_month:k})}};f.exports=h}),null);
__d("AdsAPIAdAccountCheckoutPaymentFields",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({ID:"id",AD_ACCOUNT:"ad_account",AMOUNT:"amount",CAMPAIGN:"campaign",PAYMENT_ID:"payment_id",PAYMENT_TYPE:"payment_type",STATE:"state",TIME_CREATED:"time_created",TIME_UPDATED:"time_updated"})}),null);
__d("XAdsPaymentChangeBillingThresholdController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/manage/jitthreshold/update/",{})}),null);
__d("AdsCMBillingTransactionsDataLoader",["Promise","AdsAPIAdAccountCheckoutPaymentFields","AdsAPIAdAccountFields","AdsGraphAPI","AsyncRequest","XAdsPaymentChangeBillingThresholdController"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(m,n,o){return c("AdsGraphAPI").get(f.id).adaccount(m).edge(c("AdsAPIAdAccountFields").TRANSACTIONS).get({time_start:n,time_stop:o})}function i(m){return c("AdsGraphAPI").get(f.id).adaccount(m).edge(c("AdsAPIAdAccountFields").CHECKOUT_PAYMENTS).get({fields:[c("AdsAPIAdAccountCheckoutPaymentFields").ID,c("AdsAPIAdAccountCheckoutPaymentFields").AMOUNT,c("AdsAPIAdAccountCheckoutPaymentFields").PAYMENT_ID,c("AdsAPIAdAccountCheckoutPaymentFields").PAYMENT_TYPE,c("AdsAPIAdAccountCheckoutPaymentFields").TIME_CREATED,c("AdsAPIAdAccountCheckoutPaymentFields").TIME_UPDATED]})}function j(m){return c("AdsGraphAPI").get(f.id).adaccount(m).edge(c("AdsAPIAdAccountFields").ADSPAYMENTCYCLE).get()}function k(m,n){return new(c("Promise"))(function(o,p){var q=c("XAdsPaymentChangeBillingThresholdController").getURIBuilder().getURI();new(c("AsyncRequest"))().setMethod("POST").setURI(q).setData({ad_account_id:m,threshold:n}).setHandler(function(r){o(r.payload)}).setErrorHandler(function(r){p(r)}).send()})}var l={loadBillingTransactionsByTimeRange:h,loadCheckoutPayments:i,loadPaymentCycleForAccount:j,updateBillingThresholdAmount:k};f.exports=l}),null);
__d("AdsBillingDatePreferencesDataDispatcher",["fbt","Promise","AdAccountBillingDatePreferenceLoggerEvent","AdAccountBillingDatePreferenceTypedLogger","AdsBillingDatePreferenceModalSubmitFailureDataAction","AdsBillingDatePreferenceModalSubmitSuccessDataAction","AdsBillingDatePreferencesDataLoader","AdsCMBillingTransactionsDataLoader"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i={updateBillingDateOrThreshold:function j(k,l,m){__p&&__p();var n=[l!=null?c("AdsBillingDatePreferencesDataLoader").updateBillingDatePreferences(k,l):null,m!=null?c("AdsCMBillingTransactionsDataLoader").updateBillingThresholdAmount(k,m):null];c("Promise").all(n).done(function(o){var p=o[0],q=o[1];if(l!=null)new(c("AdAccountBillingDatePreferenceTypedLogger"))().setAdAccountID(k).setDayOfMonth(l).setEvent(c("AdAccountBillingDatePreferenceLoggerEvent").CLIENT_SUCCESS_RESPONSE).log();if(q===false){c("AdsBillingDatePreferenceModalSubmitFailureDataAction").dispatch({message:h._("Your preferences weren't saved. Please try again.")});return}c("AdsBillingDatePreferenceModalSubmitSuccessDataAction").dispatch({adAccountID:k,newBillingDatePreference:p,newBillingThreshold:q?m:null})},function(o){if(l!=null)new(c("AdAccountBillingDatePreferenceTypedLogger"))().setAdAccountID(k).setDayOfMonth(l).setEvent(c("AdAccountBillingDatePreferenceLoggerEvent").CLIENT_FAILURE_RESPONSE).log();c("AdsBillingDatePreferenceModalSubmitFailureDataAction").dispatch({message:o.error_user_msg||o.errorDescription||h._("Your preferences weren't saved. Please try again.")})})}};f.exports=i}),null);
__d("AdsBillingDatePreferencesViewActions",["AdsBillingDatePreferenceModalStepChangeDataAction","AdsBillingDatePreferencesDataDispatcher","AdsBillingDatePreferencesModalStep"],(function a(b,c,d,e,f,g){"use strict";f.exports={openModal:function h(){c("AdsBillingDatePreferenceModalStepChangeDataAction").dispatch({modalStep:c("AdsBillingDatePreferencesModalStep").SELECTING})},cancelModal:function h(){c("AdsBillingDatePreferenceModalStepChangeDataAction").dispatch({modalStep:c("AdsBillingDatePreferencesModalStep").CLOSED})},submitModal:function h(i,j,k){c("AdsBillingDatePreferenceModalStepChangeDataAction").dispatch({modalStep:c("AdsBillingDatePreferencesModalStep").SUBMITTING});c("AdsBillingDatePreferencesDataDispatcher").updateBillingDateOrThreshold(i,j,k)}}}),null);
__d("BoostedComponentBillingDateRow.react",["cx","fbt","AdsBillingDatePreferencesConfirmationModal.react","AdsBillingDatePreferencesModal.react","AdsBillingDatePreferencesModalStep","AdsBillingDatePreferencesViewActions","AdsCurrencyFormatter","BoostedComponentSimplifiedSummaryBulletPoint.react","DateTime","React","SUIBusinessTheme","SUILink.react","SUILoadingModalOverlay.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("AdsCurrencyFormatter").formatCurrencyWithOptionalDecimals;j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=k.constructor).call.apply(n,[this].concat(q)),this.$BoostedComponentBillingDateRow4=function(s,t){c("AdsBillingDatePreferencesViewActions").submitModal(this.props.adAccountID,s,t)}.bind(this),o}m.prototype.render=function(){return c("React").createElement("div",null,c("React").createElement(c("BoostedComponentSimplifiedSummaryBulletPoint.react"),{image:"/images/ads/common/confirmation/datenew.png",text:this.$BoostedComponentBillingDateRow1()}),this.$BoostedComponentBillingDateRow2())};m.prototype.$BoostedComponentBillingDateRow1=function(){var n=this.props.canChangeBillingDatePreference&&this.props.newBillingDatePreference==null;if(this.props.paymentCycle!=null)return c("React").createElement("div",null,i._("Your next bill will arrive when:"),c("React").createElement("ul",{className:"_1ejd"},c("React").createElement("li",{className:"_1eje"},c("React").createElement("span",{className:"_1ejg"},i._("You spend {billing threshold} of your budget {=Learn More}",[i.param("billing threshold",c("React").createElement("strong",null,l(this.props.currency,this.props.paymentCycle.threshold_amount))),i.param("=Learn More",c("React").createElement(c("SUILink.react"),{href:"/help/716180208457684/",target:"_blank",theme:c("SUIBusinessTheme")},i._("Learn More")))]))),c("React").createElement("li",{className:"_1eje"},c("React").createElement("span",{className:"_1ejg"},n?i._("Or on {next monthly bill date} {=Change}",[i.param("next monthly bill date",c("React").createElement("strong",null,this.$BoostedComponentBillingDateRow3())),i.param("=Change",c("React").createElement(c("SUILink.react"),{theme:c("SUIBusinessTheme"),onClick:c("AdsBillingDatePreferencesViewActions").openModal},i._("Change")))]):i._("Or on {next monthly bill date}",[i.param("next monthly bill date",c("React").createElement("strong",null,this.$BoostedComponentBillingDateRow3()))])))));if(n)return i._("You'll be billed on {next bill date}. {=Change}",[i.param("next bill date",this.$BoostedComponentBillingDateRow3()),i.param("=Change",c("React").createElement(c("SUILink.react"),{theme:c("SUIBusinessTheme"),onClick:c("AdsBillingDatePreferencesViewActions").openModal},i._("Change")))]);return i._("You'll be billed on {next bill date}.",[i.param("next bill date",this.$BoostedComponentBillingDateRow3())])};m.prototype.$BoostedComponentBillingDateRow3=function(){return c("DateTime").fromISOString(this.props.nextBillDate,this.props.timeZoneID).format("F j, Y")};m.prototype.$BoostedComponentBillingDateRow2=function(){switch(this.props.modalStep){case c("AdsBillingDatePreferencesModalStep").SELECTING:return c("React").createElement(c("AdsBillingDatePreferencesModal.react"),{activeBillingDatePreference:this.props.activeBillingDatePreference,adAccountID:this.props.adAccountID,currency:this.props.currency,errorMessage:this.props.modalErrorMessage,hasCoupon:this.props.hasCoupon,isOnAdsManager:false,maxBillingThreshold:null,minBillingThreshold:null,nextBillDate:this.props.nextBillDate,paymentCycle:null,pendingBillingDatePreference:this.props.pendingBillingDatePreference,timeZoneID:this.props.timeZoneID,onCancel:c("AdsBillingDatePreferencesViewActions").cancelModal,onSubmit:this.$BoostedComponentBillingDateRow4});case c("AdsBillingDatePreferencesModalStep").SUBMITTING:return c("React").createElement(c("SUILoadingModalOverlay.react"),{theme:c("SUIBusinessTheme")});case c("AdsBillingDatePreferencesModalStep").CONFIRMATION:return c("React").createElement(c("AdsBillingDatePreferencesConfirmationModal.react"),{adAccountID:this.props.adAccountID,currency:this.props.currency,hasCoupon:this.props.hasCoupon,isOnAdsManager:false,newBillingDatePreference:this.props.newBillingDatePreference,newBillingThreshold:null,nextBillDate:this.props.nextBillDate,paymentCycle:null,timeZoneID:this.props.timeZoneID,onCancel:c("AdsBillingDatePreferencesViewActions").cancelModal});default:return null}};f.exports=m}),null);
__d("BoostedComponentSentenceAndTooltip.react",["cx","React","SUIBusinessTheme","SUISimplePopover.react","SUIText.react"],(function a(b,c,d,e,f,g,h){"use strict";var i=268,j=function j(k){return c("React").createElement("div",{className:k.className},c("React").createElement(c("SUIText.react"),{className:"_3-8_",display:"inline",size:"meta1",theme:c("SUIBusinessTheme")},k.sentence),c("React").createElement(c("SUISimplePopover.react"),{content:k.tooltip,contentWidthUseSparingly:i,theme:c("SUIBusinessTheme")}))};f.exports=j}),null);
__d("BoostedComponentBudgetSubsection.react",["cx","fbt","AdsBudgetDropdownSelector.react","AdsCurrencyFormatter","BoostedComponentBudgetType","BoostedComponentBudgetUtils","BoostedComponentLabeledEditor.react","BoostedComponentSentenceAndTooltip.react","BoostedComponentTestElement","Link.react","React","XUINotice.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j=c("BoostedComponentBudgetUtils").isUSLocaleAndUSDUser,k=i._("The maximum you'll spend on your promotion until you stop your ad"),l=i._("The average amount you'll spend on your promotion each day until you stop your ad"),m=i._("Actual amount spent daily may vary"),n=function n(q){var r=q.highBudgetThreshold,s=q.selectedBudget;if(r>0&&s>r)return c("React").createElement("div",{className:"_3-8y"},c("React").createElement(c("XUINotice.react"),{className:"_5rdc",use:"notify"},i._("Your budget is much higher than usual.")));return null},o=function o(q,r){var s=c("AdsCurrencyFormatter").formatCurrencyFullFormat(q,r,false,true),t=c("AdsCurrencyFormatter").formatCurrencyFullFormat(q,r*1.25,false,true);return i._("When your ads have more opportunities to get results, you may spend more than your daily budget. You'll spend up to {budget_per_day_amount_max} on some days, and less on others to maintain an average daily budget of {budget_per_day_amount}. {learn more}",[i.param("budget_per_day_amount_max",t),i.param("budget_per_day_amount",s),i.param("learn more",c("React").createElement("div",{className:"_3-8w"},c("React").createElement(c("Link.react"),{href:"/business/help/190490051321426",target:"_blank"},c("React").createElement("b",null,i._("Learn More")))))])},p=function p(q){var r=q.budgetData,s=q.currency,t=q.existingAdInfoData,u=q.newBudgetData,v=q.onBudgetEntered,w=q.onBudgetSelected,x=q.onBudgetChange,y=r.getSelectedBudgetValue(),z=t.getIsBoosted()?t.getBudgetType():r.getBudgetType(),A=i._("Total budget"),B=k,C=null;if(z===c("BoostedComponentBudgetType").DAILY_BUDGET){A=i._("Daily Budget");B=l;C=c("React").createElement(c("BoostedComponentSentenceAndTooltip.react"),{className:"_3-8w",sentence:m,tooltip:o(s,y)})}var D=u.budgetOptions;return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{className:"_2ph_",label:A,showLoadingIndicator:r.get("isFetching"),tooltip:B},c("React").createElement(c("AdsBudgetDropdownSelector.react"),{alignh:"right",budgets:D?D.toJS():{},currency:s,"data-testid":c("BoostedComponentTestElement").BUDGET_SELECTOR,eventType:"blur",selectedBudget:y,shouldAddCurrencyCode:true,showCustomBudgetOption:true,showSymbol:j(s),onBudgetEntered:v,onBudgetSelected:w,onUnderlyingValueChange:x}),C,c("React").createElement(n,{currency:s,highBudgetThreshold:r.getHighBudgetThreshold(),selectedBudget:y}))};f.exports=p}),null);
__d("BoostedComponentEndDateSelector.react",["cx","fbt","BoostedComponentStrings","BoostedComponentTestElement","BUIDatePicker.react","DateConsts","DateTime","LocalDate","React","SUIBusinessTheme","SUIText.react","UTCUtils","XUIButton.react","XUICalendar.react","XUIRadioButtonGroup.react","Timezone"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes,m=c("Timezone").UTC,n=c("DateTime").fromLegacyArgs(c("UTCUtils").dateToUTC(new Date()),m).startOfDay();j=babelHelpers.inherits(o,c("React").Component);k=j&&j.prototype;function o(){__p&&__p();var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=k.constructor).call.apply(p,[this].concat(s)),this.state={selectedCampaignLength:this.props.selectedCampaignLengthInDays},this.$BoostedComponentEndDateSelector1=function(u){if(u){var v=c("DateTime").fromLegacyArgs(c("XUICalendar.react").normalizeDate(u.toUTCDate()),m).startOfDay();this.$BoostedComponentEndDateSelector2(this.getStartOfDay().secondsUntil(v)/c("DateConsts").SEC_PER_DAY)}}.bind(this),this.$BoostedComponentEndDateSelector2=function(u){this.setState({selectedCampaignLength:u});this.props.onDataUpdate(u)}.bind(this),q}o.prototype.getStartOfDay=function(){if(!this.props.campaignStartTime)return n;return c("DateTime").localCreate(this.props.campaignStartTime).getParallelInUTC().startOfDay()};o.prototype.$BoostedComponentEndDateSelector3=function(){__p&&__p();if(!this.props.campaignLengthOptions)return null;var p=this.props.campaignLengthOptions.map(function(q,r){__p&&__p();var s=q.duration,t=q.title;if(!t)if(s===1)t=i._("1 day");else if(s>1)t=i._({"*":"{number} days"},[i.param("number",s,[0])]);var u=null;if(r===0)u=c("BoostedComponentTestElement").DURATION_END_DATE_FIRST_BUTTON;return c("React").createElement(c("XUIButton.react"),{"data-testid":u,key:s,label:t,size:"xlarge",type:"button",value:s})});return c("React").createElement(c("XUIRadioButtonGroup.react"),{className:"_3-96",selectedDepressed:true,selectedValue:this.state.selectedCampaignLength,onValueChange:this.$BoostedComponentEndDateSelector2},p)};o.prototype.getEarliestTime=function(){var p=this.getStartOfDay();if(p.secondsUntil(n)<=0)return p.addDays(1).getUnixTimestampSeconds();return n.addDays(1).getUnixTimestampSeconds()};o.prototype.render=function(){__p&&__p();var p,q=null,r=this.props.maxAllowedCampaignLengthInDays;if(r)q=this.getStartOfDay().addDays(r).getUnixTimestampSeconds();if(this.props.latestAllowedCampaignEndTimestampSeconds)q=q?Math.min(q,this.props.latestAllowedCampaignEndTimestampSeconds):this.props.latestAllowedCampaignEndTimestampSeconds;var s=this.getStartOfDay().addDays(Math.floor(c("DateConsts").AVG_DAYS_PER_YEAR)).getUnixTimestampSeconds();q=q?Math.min(q,s):s;var t=this.getEarliestTime(),u=[];if(t)u.push(function(w){return w.isAfterOrEqual(c("LocalDate").fromInstant(t,m))});if(q)(function(){var w=c("LocalDate").fromInstant(q,m);u.push(function(x){return x.isBeforeOrEqual(w)})})();var v=c("LocalDate").fromFBDate(this.getStartOfDay().addDays(this.state.selectedCampaignLength));return c("React").createElement("div",null,this.$BoostedComponentEndDateSelector3(),c("React").createElement("div",null,c("React").createElement(c("SUIText.react"),{size:"meta1",theme:c("SUIBusinessTheme")},c("BoostedComponentStrings").DATE_PICKER_PREPEND_TEXT),c("React").createElement("span",{className:"plm"},c("React").createElement(c("BUIDatePicker.react"),{className:"inlineBlock",dateRestraints:u,value:v,onChange:this.$BoostedComponentEndDateSelector1}))))};o.propTypes={campaignLengthOptions:l.arrayOf(l.shape({duration:l.number.isRequired,title:l.string})),campaignStartTime:l.number,latestAllowedCampaignEndTimestampSeconds:l.number,maxAllowedCampaignLengthInDays:l.number,selectedCampaignLengthInDays:l.number.isRequired,onDataUpdate:l.func.isRequired};f.exports=o}),null);
__d("BoostedComponentDurationSelector.react",["cx","BoostedComponentEndDateSelector.react","BoostedComponentStrings","InputLabel_DEPRECATED.react","InputLabelLabel_DEPRECATED.react","React","XUIRadioInput.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.state={selectedCampaignLength:this.props.selectedCampaignLengthInDays,runContinuously:this.props.runContinuously},this.$BoostedComponentDurationSelector1=function(r){this.setState({selectedCampaignLength:r});this.props.onEndDateSelectorUpdate(r)}.bind(this),n}l.prototype.$BoostedComponentDurationSelector2=function(m){this.setState({runContinuously:m});this.props.onDurationTypeUpdate(m)};l.prototype.$BoostedComponentDurationSelector3=function(){return c("React").createElement("div",{className:"_2pin"},c("React").createElement(c("InputLabel_DEPRECATED.react"),null,c("React").createElement(c("XUIRadioInput.react"),{checked:!this.state.runContinuously,onChange:this.$BoostedComponentDurationSelector2.bind(this,false)}),c("React").createElement(c("InputLabelLabel_DEPRECATED.react"),{className:"_2pir"},c("BoostedComponentStrings").RUN_WITH_END_DATE_LABEL)),this.$BoostedComponentDurationSelector4())};l.prototype.$BoostedComponentDurationSelector5=function(){return c("React").createElement("div",{className:"_2pin"},c("React").createElement(c("InputLabel_DEPRECATED.react"),null,c("React").createElement(c("XUIRadioInput.react"),{checked:this.state.runContinuously,onChange:this.$BoostedComponentDurationSelector2.bind(this,true)}),c("React").createElement(c("InputLabelLabel_DEPRECATED.react"),{className:"_2pir"},c("BoostedComponentStrings").RUN_CONTINUOUSLY_LABEL)),this.$BoostedComponentDurationSelector6())};l.prototype.render=function(){if(this.props.hideRunContinuously&&!this.state.runContinuously)return this.$BoostedComponentDurationSelector4();return c("React").createElement("form",null,this.$BoostedComponentDurationSelector5(),this.$BoostedComponentDurationSelector3())};l.prototype.$BoostedComponentDurationSelector6=function(){if(!this.state.runContinuously)return null;return c("React").createElement("div",{className:"_2piv _3-8x _3-9a"},c("BoostedComponentStrings").RUN_CONTINUOUSLY_DESCRIPTION)};l.prototype.$BoostedComponentDurationSelector4=function(){if(this.state.runContinuously)return null;return c("React").createElement("div",{className:(!this.props.hideRunContinuously?"_2piv":"")+(!this.props.hideRunContinuously?" _3-9a":"")},c("React").createElement(c("BoostedComponentEndDateSelector.react"),{campaignLengthOptions:this.props.campaignLengthOptions,campaignStartTime:this.props.campaignStartTime,latestAllowedCampaignEndTimestampSeconds:this.props.latestAllowedCampaignEndTimestampSeconds,selectedCampaignLengthInDays:this.state.selectedCampaignLength,onDataUpdate:this.$BoostedComponentDurationSelector1}))};l.propTypes={campaignLengthOptions:k.arrayOf(k.shape({duration:k.number.isRequired,title:k.string})),campaignStartTime:k.number,hideRunContinuously:k.bool.isRequired,latestAllowedCampaignEndTimestampSeconds:k.number,runContinuously:k.bool.isRequired,selectedCampaignLengthInDays:k.number,onDurationTypeUpdate:k.func.isRequired,onEndDateSelectorUpdate:k.func.isRequired};l.defaultProps={selectedCampaignLengthInDays:1,runContinuously:false};f.exports=l}),null);
__d("BoostedComponentDurationSubsection.react",["cx","AdsCurrencyFormatter","BoostedComponentBudgetType","BoostedComponentDurationSelector.react","BoostedComponentLabeledEditor.react","BoostedComponentStrings","DateTime","React","Timezone","formatDate"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=c("Timezone").UTC,j=function j(l){__p&&__p();var m=l.budgetData,n=l.currency,o=l.durationData,p=l.isBoosted,q=o.getCampaignLengthInDays(),r=o.getCampaignEndTimestamp(),s=o.getRunContinuously(),t=o.getIsScheduledPost(),u=o.getScheduledPostStartTime(),v=m.getBudgetType(),w=m.getSelectedBudgetValue(),x=Math.floor(w/q),y=c("AdsCurrencyFormatter").formatCurrencyFullFormat(n,x,false,true);if(q<=1||p)return null;var z=void 0;if(t&&u&&u>c("DateTime").now(i).getUnixTimestampSeconds())z=c("BoostedComponentStrings").getCampaignDurationForScheduledPostString(q,c("formatDate")(u,"M j, Y"),c("formatDate")(r,"M j, Y"));else z=c("BoostedComponentStrings").getCampaignDurationString(q,c("formatDate")(r,"M j, Y"));var A=null;if(v===c("BoostedComponentBudgetType").LIFETIME_BUDGET)A=c("BoostedComponentStrings").getAverageSpendPerDayString(y);else if(v===c("BoostedComponentBudgetType").DAILY_BUDGET&&!s){var B=c("AdsCurrencyFormatter").formatCurrencyFullFormat(n,w*q,false,true);A=c("BoostedComponentStrings").getTotalSpendPerDayString(B)}if(A===null)return null;return c("React").createElement("div",{className:"_5wpr _3-8y"},A," ",z)},k=function k(l){var m=l.budgetData,n=l.currency,o=l.durationData,p=l.isBoosted,q=o.getIsScheduledPost()?o.getScheduledPostStartTime():o.getCampaignStartTime(),r=p?null:o.getCampaignLengthOptions().toArray();return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{className:"_2ph_",label:c("BoostedComponentStrings").DURATION_LABEL,tooltip:c("BoostedComponentStrings").DURATION_TOOLTIP},c("React").createElement(c("BoostedComponentDurationSelector.react"),{campaignLengthOptions:r,campaignStartTime:q,hideRunContinuously:o.getHideRunContinuously(),latestAllowedCampaignEndTimestampSeconds:o.getLatestAllowedCampaignEndTimestamp(),runContinuously:o.getRunContinuously(),selectedCampaignLengthInDays:o.getCampaignLengthInDays(),onDurationTypeUpdate:l.onDurationTypeUpdate,onEndDateSelectorUpdate:l.onEndDateSelectorUpdate}),c("React").createElement(j,{budgetData:m,currency:n,durationData:o,isBoosted:p}))};f.exports=k}),null);
__d("AdsReachEstimatePlatformConstant",[],(function a(b,c,d,e,f,g){"use strict";var h=Object.freeze({NONE:0,FACEBOOK:1,INSTAGRAM:2});f.exports=h}),null);
__d("AdsReachEstimateBar.react",["ix","cx","fbt","AdsEstimatesValidator","AdsFBIconDownsized.react","AdsReachEstimatePlatformConstant","BIGAdoptionConfig","Image.react","LeftRight.react","React","SUIBusinessTheme","SUINotice.react","SUISimplePopover.react","ads-lib-formatters","asset","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("React").PropTypes,n=c("ads-lib-formatters").createLimitedSigFigNumberFormatter(0,2),o=100;k=babelHelpers.inherits(p,c("React").Component);l=k&&k.prototype;function p(){__p&&__p();var q,r;for(var s=arguments.length,t=Array(s),u=0;u<s;u++)t[u]=arguments[u];return r=(q=l.constructor).call.apply(q,[this].concat(t)),this.renderBar=function(){var v=(this.props.fillStyle==="fixed"?"_3o8h":"")+(this.props.fillStyle==="stretch"?" _26hs":"")+" clearfix",w=(this.props.fillStyle==="fixed"?"_3o8i":"")+(this.props.fillStyle==="stretch"?" _26ht":""),x={};if(this.props.fillStyle==="stretch")x.width=10+this.getCenterPercent()+"%";else x.marginLeft=this.getCenterPercent()+"%";return c("React").createElement("div",{className:v},c("React").createElement("div",{className:w,style:x}))}.bind(this),this.getCenterPercent=function(){__p&&__p();var v=(this.props.reachBounds.min+this.props.reachBounds.max)/2;if(v>0)v=Math.sqrt(v)*Math.log(v);var w=this.props.estimateDAU;if(w>0)w=Math.sqrt(w)*Math.log(w);var x=10,y=Math.min(v/w*100,98-x*.5);y-=x*.5;if(y<0)y=0;return Math.round(y)}.bind(this),this.renderPlatformGlyph=function(){switch(this.props.platform){case c("AdsReachEstimatePlatformConstant").FACEBOOK:return c("React").createElement(c("AdsFBIconDownsized.react"),{className:"_3-90 _5lhp",src:c("BIGAdoptionConfig").ads_fbicon_adoption?h("390900"):h("141460")});case c("AdsReachEstimatePlatformConstant").INSTAGRAM:return c("React").createElement(c("AdsFBIconDownsized.react"),{className:"_3-90 _5lhp",src:c("BIGAdoptionConfig").ads_fbicon_adoption?h("395475"):h("141473")});default:return null}}.bind(this),this.renderFooter=function(){if(this.props.platform===c("AdsReachEstimatePlatformConstant").NONE)return c("React").createElement("div",null);return c("React").createElement(c("LeftRight.react"),null,c("React").createElement("span",{className:"_3o8k"},j._("0")),this.$AdsReachEstimateBar2())}.bind(this),this.$AdsReachEstimateBar2=function(){var v=this.props.explanationMessage,w=void 0;if(v)w=c("React").createElement(c("SUISimplePopover.react"),{content:v,contentWidthUseSparingly:268,position:"left",theme:c("SUIBusinessTheme")});return c("React").createElement("span",{className:"_3o8l"},j._("of {audience size}",[j.param("audience size",n(Math.max(this.props.estimateDAU,o)))]),w)}.bind(this),this.$AdsReachEstimateBar3=function(){switch(this.props.platform){case c("AdsReachEstimatePlatformConstant").FACEBOOK:return j._("on Facebook");case c("AdsReachEstimatePlatformConstant").INSTAGRAM:return j._("on Instagram");case c("AdsReachEstimatePlatformConstant").NONE:default:return null}}.bind(this),r}p.prototype.render=function(){if(!c("AdsEstimatesValidator").areEstimatesAndDAUValid(this.props.reachBounds.min,this.props.reachBounds.max,this.props.estimateDAU))return this.$AdsReachEstimateBar1();return c("React").createElement("div",null,c("React").createElement("div",{className:"clearfix"},c("React").createElement(c("LeftRight.react"),null,this.renderReachEstimate(),this.props.platform===c("AdsReachEstimatePlatformConstant").NONE?this.$AdsReachEstimateBar2():c("React").createElement("div",null))),this.renderBar(),this.renderFooter())};p.prototype.getReachEstimateRangeString=function(q,r){return j._({"*":{"*":"{min reach} - {max reach} people {on platform}"}},[j.param("min reach",n(q),[0,q]),j.param("max reach",n(r),[0,r]),j.param("on platform",this.$AdsReachEstimateBar3())])};p.prototype.getReachEstimatesPerDayRangeString=function(q,r){return j._({"*":{"*":"{min reach} - {max reach} people {on platform} per day"}},[j.param("min reach",n(q),[0,q]),j.param("max reach",n(r),[0,r]),j.param("on platform",this.$AdsReachEstimateBar3())])};p.prototype.renderReachEstimate=function(){if(this.props.estimateDAU<o)return c("React").createElement("span",{className:"_kn_"},this.renderPlatformGlyph(),j._({"*":"Fewer than {a round number (currently 100)} people {on platform}"},[j.param("a round number (currently 100)",n(o),[0,o]),j.param("on platform",this.$AdsReachEstimateBar3())]));return c("React").createElement("span",{className:"_kn_"},this.renderPlatformGlyph(),this.props.usePerDayString?this.getReachEstimatesPerDayRangeString(this.props.reachBounds.min,this.props.reachBounds.max):this.getReachEstimateRangeString(this.props.reachBounds.min,this.props.reachBounds.max))};p.prototype.$AdsReachEstimateBar1=function(){return c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:"information"},j._("Estimated reach is unavailable."))};p.propTypes={estimateDAU:m.number.isRequired,explanationMessage:m.string,fillStyle:m.oneOf(["fixed","stretch"]),glyphName:m.string,platform:m.number,reachBounds:m.shape({max:m.number.isRequired,min:m.number.isRequired}).isRequired,usePerDayString:m.bool};p.defaultProps={fillStyle:"fixed",platform:c("AdsReachEstimatePlatformConstant").FACEBOOK};f.exports=p}),null);
__d("BoostedComponentEstimatesSubsection.react",["cx","fbt","AdsReachEstimateBar.react","AdsReachEstimatePlatformConstant","BoostedComponentBudgetUtils","BoostedComponentEstimateType","BoostedComponentLabeledEditor.react","BoostedComponentQEs","BoostedComponentQEUtils","React","SUIBusinessTheme","SUISimplePopover.react","SUIText.react","XUIGrayText.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j=c("BoostedComponentBudgetUtils").showEstimateReachBar,k=c("BoostedComponentBudgetUtils").getEstimationLabel,l=i._("This is the estimated number of people you'll reach daily out of your total audience. This is only an estimate. Numbers shown are based on the average performance of ads targeted to your selected audience."),m=i._("This is the estimated number of people you'll reach out of your total audience. This is only an estimate. Numbers shown are based on the average performance of ads targeted to your selected audience."),n=i._("Estimated People Reached"),o=function o(p){var q=p.appID,r=p.budgetData,s=p.callToActionType,t=p.hideRefineText,u=p.newBudgetData,v=p.objective,w=c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_COMPONENT_NEW_BUDGET_ESTIMATE).getParamBool("new_estimation",false,true);if(j(q,s)||r.get("budget_est_type")===c("BoostedComponentEstimateType").REACH){var x=t?null:c("React").createElement(c("XUIGrayText.react"),{className:"_3-8y",display:"block",size:"meta1"},i._("Refine your audience or add budget to reach more of the people that matter to you."));return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{className:"_30uk",label:n,tooltip:w?l:m},c("React").createElement(c("AdsReachEstimateBar.react"),{estimateDAU:u.estimateDAU,fillStyle:"stretch",platform:c("AdsReachEstimatePlatformConstant").NONE,reachBounds:{min:u.selectedBudgetLowerEstimates,max:u.selectedBudgetUpperEstimates},usePerDayString:w}),x)}var y=k(q,u.selectedBudgetLowerEstimates,u.selectedBudgetUpperEstimates,r.getBudgetType(),v);return c("React").createElement("div",{className:"_60bj"},c("React").createElement(c("SUIText.react"),{className:"_3-8_",display:"inline",size:"meta1",theme:c("SUIBusinessTheme")},y),c("React").createElement(c("SUISimplePopover.react"),{content:w?l:m,contentWidthUseSparingly:268,theme:c("SUIBusinessTheme")}))};f.exports=o}),null);
__d("BoostedComponentBudgetAndDurationSectionV2.react",["cx","fbt","BoostedComponentAdAccountSpendLimitWarning.react","BoostedComponentAppID","BoostedComponentAvailableGK","BoostedComponentBudgetAndDurationActionsV2","BoostedComponentBudgetSubsection.react","BoostedComponentDurationSubsection.react","BoostedComponentEstimatesSubsection.react","BoostedComponentQEs","BoostedComponentQEUtils","BoostedComponentSectionSubheaderV2.react","BoostedComponentSectionV2.react","BoostedComponentStringsV2","BootloadedComponent.react","JSResource","React","SUIBusinessTheme","SUINotice.react","SUISpinner.react","boostedComponentGKCheck","debounce","getActiveElement"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("BoostedComponentAvailableGK").BOOSTED_COMPONENT_CONTINUOUS_ADS_GK,m=500,n=function n(){return c("React").createElement(c("SUINotice.react"),{style:{marginLeft:"12px",marginRight:"12px",marginBottom:"12px"},theme:c("SUIBusinessTheme"),type:"information"},i._("Refine your audience or add budget to reach more of the people that matter to you. Once you hit \"Promote\", you cannot adjust your budget or duration for this type of ad."))};j=babelHelpers.inherits(o,c("React").Component);k=j&&j.prototype;function o(){__p&&__p();k.constructor.call(this);this.$BoostedComponentBudgetAndDurationSectionV23=function(p){var q=this.props,r=q.appID,s=q.targetID,t=q.boostID;c("BoostedComponentBudgetAndDurationActionsV2").updateCampaignLengthInDays(p,r,s,t)}.bind(this);this.$BoostedComponentBudgetAndDurationSectionV24=function(p){var q=this.props,r=q.appID,s=q.targetID,t=q.boostID;c("BoostedComponentBudgetAndDurationActionsV2").updateRunContinuously(p,r,s,t)}.bind(this);this.$BoostedComponentBudgetAndDurationSectionV22=function(p){var q=this.props,r=q.appID,s=q.targetID,t=q.boostID;c("BoostedComponentBudgetAndDurationActionsV2").inputCustomBudget(p,r,s,t)}.bind(this);this.$BoostedComponentBudgetAndDurationSectionV26=function(p){var q=this.props,r=q.appID,s=q.targetID,t=q.boostID;c("BoostedComponentBudgetAndDurationActionsV2").updateBudget(p,r,s,t)}.bind(this);this.$BoostedComponentBudgetAndDurationSectionV21=c("debounce")(this.$BoostedComponentBudgetAndDurationSectionV22,m)}o.prototype.$BoostedComponentBudgetAndDurationSectionV25=function(){var p=c("getActiveElement")();if(p.tagName==="INPUT"){p.blur();p.focus()}};o.prototype.componentDidMount=function(){var p=this.props.budgetData,q=p.get("experiment_exposures");if(!q)return;if(q.get(c("BoostedComponentQEs").BOOSTED_SEND_MESSAGE_OLD_ENTRY_MIN_DEFAULT_BUDGET_UNIVERSE))c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_SEND_MESSAGE_OLD_ENTRY_MIN_DEFAULT_BUDGET_UNIVERSE).logExposure()};o.prototype.render=function(){var p=this.props,q=p.adAccountData,r=p.appID,s=p.boostID,t=p.budgetData,u=p.budgetErrors,v=p.budgetWarnings,w=p.callToActionType,x=p.durationData,y=p.existingAdInfoData,z=p.isBoosted,A=p.targetID,B=p.objective,C=p.experimentationData,D=q.getCurrency(),E=u&&u.size>0||v&&v.size>0?c("React").createElement(c("BoostedComponentSectionSubheaderV2.react"),{errors:u,warnings:v}):c("React").createElement(c("BoostedComponentAdAccountSpendLimitWarning.react"),{accountID:q.getSelectedAccountID(),accountStatus:q.getSelectedAccountStatus(),amountSpent:q.getSelectedAccountAmountSpent(),appID:r,boostID:s,currency:D,isInCheckout:q.getIsAccountInCheckout(),selectedBudget:t.getSelectedBudgetValue(),spendCap:q.getSelectedAccountSpendCap(),targetID:A,warningPlacement:"CREATION",writePermission:q.getSelectedAccountHasBillingWritePermission()}),F=null;if(C.is_eligible){var G=c("React").createElement(c("SUISpinner.react"),{size:"small",theme:c("SUIBusinessTheme")});F=c("React").createElement(c("BootloadedComponent.react"),{appID:r,boostID:s,bootloadLoader:c("JSResource")("BoostedComponentExperimentationSection.react").__setRef("BoostedComponentBudgetAndDurationSectionV2.react"),bootloadPlaceholder:G,checked:C.is_checked,isEligible:C.is_eligible,targetID:A})}var H=c("React").createElement("div",null,c("React").createElement(c("BoostedComponentBudgetSubsection.react"),{budgetData:t,currency:D,existingAdInfoData:y,newBudgetData:this.props.newBudgetData,onBudgetChange:this.$BoostedComponentBudgetAndDurationSectionV21,onBudgetEntered:this.$BoostedComponentBudgetAndDurationSectionV22,onBudgetSelected:this.$BoostedComponentBudgetAndDurationSectionV26}),c("React").createElement(c("BoostedComponentEstimatesSubsection.react"),{appID:r,budgetData:t,callToActionType:w,hideRefineText:r===c("BoostedComponentAppID").BOOSTED_LEAD_GEN||r===c("BoostedComponentAppID").BOOSTED_APP_INSTALL,newBudgetData:this.props.newBudgetData,objective:B}),c("React").createElement(c("BoostedComponentDurationSubsection.react"),{budgetData:t,currency:D,durationData:x,isBoosted:z,onDurationTypeUpdate:this.$BoostedComponentBudgetAndDurationSectionV24,onEndDateSelectorUpdate:this.$BoostedComponentBudgetAndDurationSectionV23}),F,r===c("BoostedComponentAppID").BOOSTED_LEAD_GEN?c("React").createElement(n,null):null);if(c("boostedComponentGKCheck")(l))return null;else return c("React").createElement(c("BoostedComponentSectionV2.react"),{title:c("BoostedComponentStringsV2").BUDGET_DURATION_SECTION},c("React").createElement("div",{className:"_2pi9"},E),H)};f.exports=o}),null);
__d("AdsTargetingSentences.react",["cx","React","intlList"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.$AdsTargetingSentences1=function(){switch(this.props.display){case"compact":return{root:"",row:"",content:"_4usk",value:"_4usl"};default:return{root:"_4usm",row:"_4usn",content:"_3dco _4uso",value:"_4usp"}}}.bind(this),n}l.prototype.render=function(){if(!this.props.sentences.length)return c("React").createElement("div",null);var m=this.$AdsTargetingSentences1();return c("React").createElement("div",{className:m.root},this.props.sentences.map(function(n,o){if(!n.content)return c("React").createElement("div",{className:m.row,key:o},n);else return c("React").createElement("div",{className:m.row,key:o},c("React").createElement("div",{className:m.content},n.content),c("React").createElement("div",{className:m.value},c("intlList")(n.children)))}))};l.propTypes={display:k.oneOf(["standard","compact"]).isRequired,sentences:k.arrayOf(k.object).isRequired};f.exports=l}),null);
__d("AdsTargetingSentencesContainer.react",["fbt","AdsFluxContainer","AdsLoadState_LEGACY","AdsTargetingSentenceLinesStore","AdsTargetingSentences.react","React","SUIBusinessTheme","SUINotice.react","adsFormatErrorMessage","isValidTargetingSpec"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.getStores=function(){return[c("AdsTargetingSentenceLinesStore")]};k.calculateState=function(l,m){var n={error:null,sentences:[]},o=m.targetingApiSpec;delete o.product_audience_specs;if(!c("isValidTargetingSpec")(o))return n;var p=c("AdsTargetingSentenceLinesStore").getTargeting(m.accountID,o,{discardPlacement:m.hidePlacement});if(p.loadState===c("AdsLoadState_LEGACY").LOADING)return n;return{error:p.error,sentences:p.sentenceLines}};k.prototype.render=function(){if(this.state.error)return c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:"error"},h._("Could not retrieve targeting information: {error message}",[h.param("error message",c("adsFormatErrorMessage")(this.state.error))]));return c("React").createElement(c("AdsTargetingSentences.react"),{display:this.props.display,sentences:this.state.sentences})};function k(){i.apply(this,arguments)}k.defaultProps={display:"standard",hidePlacement:false};f.exports=c("AdsFluxContainer").create(k,{withProps:true,name:f.id})}),null);
__d("BoostedComponentTargetingSummarySectionV2.react",["cx","fbt","AdsTargetingSentencesContainer.react","Link.react","React"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k;j=babelHelpers.inherits(l,c("React").Component);k=j&&j.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=k.constructor).call.apply(m,[this].concat(p)),this.state={showTargetingSummary:false},this.$BoostedComponentTargetingSummarySectionV21=function(){this.setState({showTargetingSummary:!this.state.showTargetingSummary})}.bind(this),n}l.prototype.render=function(){var m=this.props,n=m.className,o=m.targetingSpec,p=m.viewerAdAccountID,q=this.state.showTargetingSummary?c("React").createElement("div",{className:"_366m"},c("React").createElement(c("AdsTargetingSentencesContainer.react"),{accountID:p,display:"compact",hidePlacement:true,targetingApiSpec:o})):null;return c("React").createElement("div",{className:n},q,c("React").createElement("div",null,c("React").createElement(c("Link.react"),{onClick:this.$BoostedComponentTargetingSummarySectionV21},this.state.showTargetingSummary?i._("Hide full summary"):i._("Show full summary"))))};f.exports=l}),null);
__d("BoostedComponentCondensedOrderSummarySectionV2.react",["cx","ix","BoostedComponentAdAccountSpendLimitWarning.react","BoostedComponentRef","BoostedComponentResultsSectionStrings","BoostedComponentStatus","BoostedComponentTargetingSummarySectionV2.react","Grid.react","Image.react","React","SUIBusinessTheme","SUINotice.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("Grid.react").GridItem,m=c("BoostedComponentResultsSectionStrings").getTargetingText,n=c("BoostedComponentResultsSectionStrings").getDurationText,o=c("BoostedComponentResultsSectionStrings").getBudgetText,p=c("BoostedComponentResultsSectionStrings").cannotEditNotice,q=c("BoostedComponentResultsSectionStrings").checkoutAdRejectionMessage;j=babelHelpers.inherits(r,c("React").Component);k=j&&j.prototype;r.prototype.render=function(){__p&&__p();var s=this.props,t=s.accountID,u=s.accountStatus,v=s.adStatus,w=s.amountSpent,x=s.appID,y=s.audienceType,z=s.boostID,A=s.campaignLength,B=s.campaignStopTimePassed,C=s.canViewerEdit,D=s.currency,E=s.isBrandedContentSponsorBoost,F=s.isCheckout,G=s.placement,H=s.runContinuously,I=s.selectedBudget,J=s.showCheckoutAdRejectionMessage,K=s.spendCap,L=s.targetID,M=s.targetingSpec,N=s.totalBudget,O=s.totalSpent,P=s.writePermission,Q=s.onMessageDismiss,R=s.viewerAdAccountID,S=0,T=null;if(J&&F&&O===0&&v===c("BoostedComponentStatus").REJECTED)T=c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:"warning",onClose:Q},q);var U=false;if(E&&G!==c("BoostedComponentRef").INSIGHTS_POST_DIRECT_BOOST||!E&&G===c("BoostedComponentRef").INSIGHTS_POST_DIRECT_BOOST)U=true;var V=[c("React").createElement(l,{className:"_3bvq",key:S++},c("React").createElement(c("Image.react"),{src:i("22102")})),c("React").createElement(l,{key:S++},m(M,y,B))];if(!U)V.push([c("React").createElement(l,{key:S++}),c("React").createElement(l,{key:S++},c("React").createElement(c("BoostedComponentTargetingSummarySectionV2.react"),{targetingSpec:M,viewerAdAccountID:R}))]);V.push([c("React").createElement(l,{className:"_3bvq",key:S++},c("React").createElement(c("Image.react"),{src:i("22108")})),c("React").createElement(l,{key:S++},n(H,A,B)),c("React").createElement(l,{className:"_3bvq",key:S++},c("React").createElement(c("Image.react"),{src:i("22104")})),c("React").createElement(l,{key:S++},o(N,H,B),T)]);if(!C)V.push([c("React").createElement(l,{className:"_3bvr",key:S++},c("React").createElement(c("Image.react"),{src:i("22110")})),c("React").createElement(l,{key:S++},p(x,G,E))]);return c("React").createElement("div",{className:"_3bvs"},c("React").createElement(c("BoostedComponentAdAccountSpendLimitWarning.react"),{accountID:t.toString(),accountStatus:u,amountSpent:w,appID:x,boostID:z,currency:D,isInCheckout:F,selectedBudget:I,spendCap:K,targetID:L,warningPlacement:"SUMMARY",writePermission:P}),c("React").createElement(c("Grid.react"),{className:"_3bvt",cols:2,spacing:"pvs phs"},V))};function r(){j.apply(this,arguments)}f.exports=r}),null);
__d("BoostedComponentConfirmationDialogStrings",["fbt","React"],(function a(b,c,d,e,f,g,h){"use strict";var i={DELETE_DIALOG_BODY:h._("Are you sure you want to delete your promotion?"),DELETE_DIALOG_TITLE:h._("Delete Ad"),DELETE_SUCCESS_DIALOG_TITLE:h._("Delete Ad"),DELETE_SUCCESS_DIALOG_BODY:h._("Your ad has been deleted."),DELETE_SUCCESS_CHECKOUT_DIALOG_BODY:h._("Your ad has been deleted. You'll receive an ad credit within 24 hours."),PAUSE_DIALOG_TITLE:h._("Pause Ad"),PAUSE_SUCCESS_DIALOG_TITLE:h._("Pause Ad"),PAUSE_DIALOG_BODY:h._("Are you sure you want to pause your promotion?"),PAUSE_SUCCESS_DIALOG_BODY:h._("Your ad has been paused."),RESUME_SUCCESS_DIALOG_BODY:h._("Your ad has been resumed."),RESUME_SUCCESS_DIALOG_TITLE:h._("Resume Ad"),CANCEL_DIALOG_BODY:h._("Your changes will be lost if you exit now. Are you sure you want to leave?"),CANCEL_DIALOG_BODY_FOR_BOOSTED_POST:h._("Are you sure you want to exit? When you finish boosting this post, more people will see it and the post can get more likes, comments and shares."),CANCEL_DIALOG_TITLE:h._("Cancel Promotion"),CANCEL_DIALOG_TITLE_FOR_BOOSTED_POST:h._("You're Almost Done"),CANCEL_DIALOG_CONFIRM_BUTTON:h._("Cancel Promotion"),EXIT:h._("Exit"),FINISH_BOOST:h._("Finish Boost"),CANCEL_DIALOG_BODY_COUPON:h._("Your credit will not be applied to your account if you cancel this promotion."),EXTEND_PROMOTION_DIALOG_TITLE:h._("Extend the Duration of Your Boosted Post"),EXTEND_PROMOTION_DIALOG_BODY:h._("Extend the duration of this boosted post to 7 days and you could get better results for the same price."),EXTEND_PROMOTION_CONFIRM_BUTTON:h._("Extend Duration")};f.exports=i}),null);
__d("XBusinessIntegrityLWICancelSurveyDialogController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/integrity/lwi_dropoff_survey/",{__asyncDialog:{type:"Int"}})}),null);
__d("BoostedComponentConfirmationDialogV2.react",["cx","fbt","ix","AdsBoostedComponentCommonV2CreateSuccessDataAction","AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction","AdsBoostedComponentCommonV2DeleteClickDataAction","AdsBoostedComponentCommonV2PauseClickDataAction","AdsBoostedComponentDialogUiv2BackLinkClickDataAction","AdsBoostedComponentDialogUiv2CloseDialogClickDataAction","AdsDataAtom","AsyncRequest","BoostedComponentAppID","BoostedComponentBudgetAndDurationActionsV2","BoostedComponentCommonActionsV2","BoostedComponentCommonActionTypesV2","BoostedComponentConfirmationDialogStrings","BoostedComponentDialogUIActionsV2","BoostedComponentLeadGenUtils","BoostedComponentPromotePanelActionTypes","BoostedComponentQEs","BoostedComponentQEUtils","BoostedComponentSimplifiedUtils","DialogExpansion","Image.react","ImageBlock.react","React","SUIBusinessTheme","SUIText.react","XBusinessIntegrityLWICancelSurveyDialogController","XUIDialog.react","XUIDialogBody.react","XUIDialogButton.react","XUIDialogCancelButton.react","XUIDialogCloseButton.react","XUIDialogFooter.react","XUIDialogOkayButton.react","XUIDialogTitle.react"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("BoostedComponentLeadGenUtils").isConsolidatedBoostFormStep,n=c("BoostedComponentSimplifiedUtils").shouldShowStepperFlow,o=i._("OK"),p=1,q=3,r=7,s=function s(u,v,w){__p&&__p();var x=arguments.length<=3||arguments[3]===undefined?false:arguments[3],y=arguments.length<=4||arguments[4]===undefined?false:arguments[4],z=arguments[5];switch(u){case c("AdsBoostedComponentCommonV2DeleteClickDataAction").actionType:return{body:c("BoostedComponentConfirmationDialogStrings").DELETE_DIALOG_BODY,title:c("BoostedComponentConfirmationDialogStrings").DELETE_DIALOG_TITLE,cancelButton:c("React").createElement(c("XUIDialogCancelButton.react"),null),confirmButton:c("React").createElement(c("XUIDialogButton.react"),{label:o,use:"confirm",onClick:w})};case c("BoostedComponentCommonActionTypesV2").DELETE_SUCCESS:var A=c("BoostedComponentConfirmationDialogStrings").DELETE_SUCCESS_DIALOG_BODY;if(x)A=c("BoostedComponentConfirmationDialogStrings").DELETE_SUCCESS_CHECKOUT_DIALOG_BODY;return{body:A,title:c("BoostedComponentConfirmationDialogStrings").DELETE_SUCCESS_DIALOG_TITLE,cancelButton:null,confirmButton:c("React").createElement(c("XUIDialogOkayButton.react"),{action:"cancel",use:"confirm"})};case c("AdsBoostedComponentCommonV2PauseClickDataAction").actionType:return{body:c("BoostedComponentConfirmationDialogStrings").PAUSE_DIALOG_BODY,title:c("BoostedComponentConfirmationDialogStrings").PAUSE_DIALOG_TITLE,cancelButton:c("React").createElement(c("XUIDialogCancelButton.react"),null),confirmButton:c("React").createElement(c("XUIDialogButton.react"),{label:o,use:"confirm",onClick:w})};case c("BoostedComponentCommonActionTypesV2").PAUSE_SUCCESS:return{body:c("BoostedComponentConfirmationDialogStrings").PAUSE_SUCCESS_DIALOG_BODY,title:c("BoostedComponentConfirmationDialogStrings").PAUSE_SUCCESS_DIALOG_TITLE,cancelButton:null,confirmButton:c("React").createElement(c("XUIDialogOkayButton.react"),{action:"confirm",use:"confirm",onClick:w})};case c("BoostedComponentCommonActionTypesV2").RESUME_SUCCESS:return{body:c("BoostedComponentConfirmationDialogStrings").RESUME_SUCCESS_DIALOG_BODY,title:c("BoostedComponentConfirmationDialogStrings").RESUME_SUCCESS_DIALOG_TITLE,cancelButton:null,confirmButton:c("React").createElement(c("XUIDialogOkayButton.react"),{action:"cancel",use:"confirm"})};case c("AdsBoostedComponentDialogUiv2CloseDialogClickDataAction").actionType:case c("AdsBoostedComponentDialogUiv2BackLinkClickDataAction").actionType:var B=c("BoostedComponentConfirmationDialogStrings").CANCEL_DIALOG_BODY,C=c("BoostedComponentConfirmationDialogStrings").CANCEL_DIALOG_TITLE,D=c("React").createElement(c("XUIDialogCloseButton.react"),null),E=c("React").createElement(c("XUIDialogButton.react"),{label:c("BoostedComponentConfirmationDialogStrings").CANCEL_DIALOG_CONFIRM_BUTTON,use:"confirm",onClick:w});if(y)B=c("React").createElement(c("ImageBlock.react"),null,c("React").createElement(c("Image.react"),{src:j("361437")}),c("React").createElement(c("SUIText.react"),{className:"_3-8y",display:"block",theme:c("SUIBusinessTheme"),weight:"bold"},c("BoostedComponentConfirmationDialogStrings").CANCEL_DIALOG_BODY_COUPON));else if(v===c("BoostedComponentAppID").BOOSTED_POST&&c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_POST_CANCEL_FLOW_CONFIRMATION_DIALOG_CONTENT_TEST).getParamBool("new_content",false)){B=c("BoostedComponentConfirmationDialogStrings").CANCEL_DIALOG_BODY_FOR_BOOSTED_POST;C=c("BoostedComponentConfirmationDialogStrings").CANCEL_DIALOG_TITLE_FOR_BOOSTED_POST;D=c("React").createElement(c("XUIDialogButton.react"),{action:"cancel",label:c("BoostedComponentConfirmationDialogStrings").FINISH_BOOST});E=c("React").createElement(c("XUIDialogButton.react"),{label:c("BoostedComponentConfirmationDialogStrings").EXIT,use:"confirm",onClick:w})}return{body:B,title:C,cancelButton:D,confirmButton:E};case c("AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction").actionType:case c("AdsBoostedComponentCommonV2CreateSuccessDataAction").actionType:if(z())return{body:c("BoostedComponentConfirmationDialogStrings").EXTEND_PROMOTION_DIALOG_BODY,title:c("BoostedComponentConfirmationDialogStrings").EXTEND_PROMOTION_DIALOG_TITLE,cancelButton:c("React").createElement(c("XUIDialogCloseButton.react"),null),confirmButton:c("React").createElement(c("XUIDialogButton.react"),{label:c("BoostedComponentConfirmationDialogStrings").EXTEND_PROMOTION_CONFIRM_BUTTON,use:"confirm",onClick:w})};break}return{body:null,title:null,cancelButton:null,confirmButton:null}};k=babelHelpers.inherits(t,c("React").Component);l=k&&k.prototype;function t(){__p&&__p();var u,v;for(var w=arguments.length,x=Array(w),y=0;y<w;y++)x[y]=arguments[y];return v=(u=l.constructor).call.apply(u,[this].concat(x)),this.$BoostedComponentConfirmationDialogV21=function(){__p&&__p();var z=this.props,A=z.adAccountID,B=z.submitAction,C=z.appID,D=z.boostID,E=z.imageReviewRequested,F=z.isBoosted,G=z.pageID,H=z.placement,I=z.targetID,J=z.instanceID;switch(B){case c("AdsBoostedComponentCommonV2DeleteClickDataAction").actionType:c("BoostedComponentCommonActionsV2").deleteSubmit(C,G,H,I,D,J);break;case c("AdsBoostedComponentCommonV2PauseClickDataAction").actionType:c("BoostedComponentCommonActionsV2").pauseSubmit(C,G,H,I,D,J);break;case c("AdsBoostedComponentDialogUiv2CloseDialogClickDataAction").actionType:if(n(C))c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentPromotePanelActionTypes").CLOSE_STEPPER_FLOW_DIALOG,pageID:G});if(C===c("BoostedComponentAppID").BOOSTED_LEAD_GEN&&m(H,I))c("BoostedComponentDialogUIActionsV2").closeDialog(C,"0",D,false,G);c("BoostedComponentDialogUIActionsV2").closeDialog(C,I,D,false,G);var K=this.props.cancelFlowSurveyURI;if(!F)if(E)new(c("AsyncRequest"))(c("XBusinessIntegrityLWICancelSurveyDialogController").getURIBuilder().getURI()).send();else if(K)new(c("AsyncRequest"))(K).send();break;case c("AdsBoostedComponentDialogUiv2BackLinkClickDataAction").actionType:if(C===c("BoostedComponentAppID").BOOSTED_LEAD_GEN&&m(H,I))c("BoostedComponentDialogUIActionsV2").closeDialogFromBackLink(C,"0",D,false);c("BoostedComponentDialogUIActionsV2").closeDialogFromBackLink(C,I,D,false);break;case c("BoostedComponentCommonActionTypesV2").PAUSE_SUCCESS:var L=this.props.pauseSurveyURI;if(L)new(c("AsyncRequest"))(L).send();c("BoostedComponentDialogUIActionsV2").closeConfirmationDialog(C,I,D);break;case c("AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction").actionType:case c("AdsBoostedComponentCommonV2CreateSuccessDataAction").actionType:c("BoostedComponentBudgetAndDurationActionsV2").updateCampaignLengthInDays(r,C,I,D);c("BoostedComponentCommonActionsV2").editClick(A,C,G,H,I,D,J);break}}.bind(this),this.$BoostedComponentConfirmationDialogV22=function(z){if(!z){var A=this.props,B=A.appID,C=A.targetID,D=A.boostID;c("BoostedComponentDialogUIActionsV2").closeConfirmationDialog(B,C,D)}}.bind(this),this.$BoostedComponentConfirmationDialogV23=function(){var z=this.props,A=z.appID,B=z.campaignLength,C=z.campaignBudget,D=z.minDailyBudget;if(A!==c("BoostedComponentAppID").BOOSTED_POST||B<p||B>q||C<D*r)return false;return c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_POST_EXTEND_DURATION_SUGGESTION_UNIVERSE).getParamBool("show_suggestion",false)}.bind(this),v}t.prototype.render=function(){var u=this.props,v=u.submitAction,w=u.appID,x=u.isCheckout,y=u.shouldShowCouponConfirmationDialogue,z=s(v,w,this.$BoostedComponentConfirmationDialogV21,x,y,this.$BoostedComponentConfirmationDialogV23);if(!z.title)return null;return c("React").createElement(c("XUIDialog.react"),{behaviors:{DialogExpansion:c("DialogExpansion")},layerHideOnBlur:false,shown:true,width:450,onToggle:this.$BoostedComponentConfirmationDialogV22},c("React").createElement(c("XUIDialogTitle.react"),null,z.title),c("React").createElement(c("XUIDialogBody.react"),{className:"_2ph_"},z.body),c("React").createElement(c("XUIDialogFooter.react"),null,z.cancelButton,z.confirmButton))};f.exports=t}),null);
__d("BoostedComponentDialogFooterActionMenu.react",["ix","cx","fbt","BIGAdoptionConfig","BoostedComponentAdPreviewActionsV2","BoostedComponentCommonActionsV2","BoostedComponentEmbeddedUtils","BoostedComponentRef","BoostedComponentStrings","BusinessConf","ContextualDialogArrow","Image.react","PopoverMenu.react","React","ReactXUIMenu","URI","XAdsManagerCampaignGroupPageController","XUIButton.react","XUIMenuSeparator.react","asset","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("ReactXUIMenu").Item,n=c("BIGAdoptionConfig").ads_fbicon_adoption?h("378244"):h("124630");k=babelHelpers.inherits(o,c("React").Component);l=k&&k.prototype;function o(){var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=l.constructor).call.apply(p,[this].concat(s)),this.$BoostedComponentDialogFooterActionMenu6=function(){var u=this.props,v=u.appID,w=u.targetID,x=u.boostID;c("BoostedComponentAdPreviewActionsV2").onToggleInstagramPlacement(v,w,x)}.bind(this),this.$BoostedComponentDialogFooterActionMenu8=function(){var u=this.props,v=u.appID,w=u.targetID,x=u.boostID;c("BoostedComponentCommonActionsV2").deleteClick(v,w,x)}.bind(this),q}o.prototype.$BoostedComponentDialogFooterActionMenu1=function(){var p=this.props.sendFeedbackURI;if(!p)return null;return c("React").createElement(m,{href:p,key:"sendFeedback",target:"_blank"},j._("Send Feedback"))};o.prototype.$BoostedComponentDialogFooterActionMenu2=function(){var p=this.props.contactSupportURI;if(!p)return null;return c("React").createElement(m,{className:c("BusinessConf").WHITELISTED_URI_CLASS,href:new(c("URI"))(p),key:"contactForm",target:"_blank"},c("BoostedComponentStrings").CONTACT_SUPPORT_LABEL)};o.prototype.$BoostedComponentDialogFooterActionMenu3=function(){var p=this.props,q=p.bugReportURI,r=p.dialogDivID;if(!q)return null;var s=new(c("URI"))(q).addQueryData({screenshot_container_id:r});return c("React").createElement(m,{ajaxify:s,href:"#",key:"reportBug",rel:"dialog"},j._("Report a problem"))};o.prototype.$BoostedComponentDialogFooterActionMenu4=function(){var p=this.props.campaignGroupID;if(!p)return null;var q=c("XAdsManagerCampaignGroupPageController").getURIBuilder().setInt("campaign_id",p).getURI();return c("React").createElement(m,{href:q,key:"adsManagerCompaignGroupPage",target:"_blank"},j._("View in Ads Manager"))};o.prototype.$BoostedComponentDialogFooterActionMenu5=function(){var p=this.props,q=p.isBoosted,r=p.instagramActorID,s=p.instagramPlacementEligible,t=p.instagramPlacementRemoved;if(q||!s||!r||t)return null;return c("React").createElement(m,{key:"instagram",onclick:this.$BoostedComponentDialogFooterActionMenu6},j._("Remove Instagram"))};o.prototype.$BoostedComponentDialogFooterActionMenu7=function(){return c("React").createElement(m,{key:"deleteAd",onclick:this.$BoostedComponentDialogFooterActionMenu8},j._("Delete Ad"))};o.prototype.$BoostedComponentDialogFooterActionMenu9=function(p){if(c("BoostedComponentEmbeddedUtils").isEmbeddedBoostDialog())p.preventDefault()};o.prototype.$BoostedComponentDialogFooterActionMenu10=function(){var p=this.props,q=p.isBoosted,r=p.canViewerEditAd,s=[];if(q&&r)s.push(this.$BoostedComponentDialogFooterActionMenu7(),this.$BoostedComponentDialogFooterActionMenu4(),c("React").createElement(c("XUIMenuSeparator.react"),{key:"separator"}));s.push(this.$BoostedComponentDialogFooterActionMenu1(),this.$BoostedComponentDialogFooterActionMenu2(),this.$BoostedComponentDialogFooterActionMenu3(),this.$BoostedComponentDialogFooterActionMenu5());return s};o.prototype.render=function(){var p=c("React").createElement(c("ReactXUIMenu"),null,this.$BoostedComponentDialogFooterActionMenu10());return c("React").createElement(c("PopoverMenu.react"),{alignv:"baseline",layerBehaviors:[c("ContextualDialogArrow")],menu:p,position:this.props.placement===c("BoostedComponentRef").WWW_THIRD_PARTY_EMBEDDED_FLOW?"above":"below"},c("React").createElement(c("XUIButton.react"),{className:"_1tma",image:c("React").createElement(c("Image.react"),{src:n}),label:c("BoostedComponentStrings").SETTINGS,labelIsHidden:true,size:"xlarge",onClick:this.$BoostedComponentDialogFooterActionMenu9}))};f.exports=o}),null);
__d("BoostedComponentAdStatusSubsection.react",["cx","fbt","ix","BoostedComponentStatus","Grid.react","Image.react","Link.react","React"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k=c("Grid.react").GridItem,l=function l(m){__p&&__p();var n=m.adStatus,o=null,p=null,q=null;switch(n){case c("BoostedComponentStatus").REJECTED:o=i._("Ad Not Approved");p=i._("Your post is still published on your Page, but it is no longer boosted because it doesn't follow Facebook's {Ad Guidelines hyperlink}.",[i.param("Ad Guidelines hyperlink",c("React").createElement(c("Link.react"),{href:"/ad_guidelines.php",target:"_blank"},i._("Advertising Policies")))]);q=c("React").createElement(c("Image.react"),{src:j("22115")});break;case c("BoostedComponentStatus").PENDING:o=i._("We've Received Your Order");p=i._("We're reviewing your ad to make sure it meets our {Ad Guidelines hyperlink}. This usually takes less than 15 minutes.",[i.param("Ad Guidelines hyperlink",c("React").createElement(c("Link.react"),{href:"/ad_guidelines.php",target:"_blank"},i._("Advertising Policies")))]);q=c("React").createElement(c("Image.react"),{src:"/images/ads/common/confirmation/received.png"});break;case c("BoostedComponentStatus").ACTIVE:case c("BoostedComponentStatus").PAUSED:o=i._("Your Ad is Approved");p=i._("Your ad just started running, so you don't have any results yet. When you do, you'll see them here.");q=c("React").createElement(c("Image.react"),{src:"/images/ads/common/confirmation/approved.png"});break;default:return null}return c("React").createElement("div",{className:"_4vxt"},c("React").createElement("div",{className:"_i2y"},c("React").createElement(c("Grid.react"),{className:"_4vxq",cols:2},c("React").createElement(k,null,q),c("React").createElement(k,null,c("React").createElement("div",{className:"_1dme"},o),c("React").createElement("div",{className:"_i2z"},p)))))};f.exports=l}),null);
__d("AdsBillingDatePreferencesModalStore",["AdsBillingDatePreferenceModalStepChangeDataAction","AdsBillingDatePreferenceModalSubmitFailureDataAction","AdsBillingDatePreferenceModalSubmitSuccessDataAction","AdsBillingDatePreferencesModalStep","AdsDataAtom","FluxReduceStore","immutable"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j,k,l={modalErrorMessage:null,modalStep:c("AdsBillingDatePreferencesModalStep").CLOSED,newBillingDatePreference:null,newBillingThreshold:null};h=babelHelpers.inherits(m,c("immutable").Record(l));i=h&&h.prototype;function m(){h.apply(this,arguments)}j=babelHelpers.inherits(n,c("FluxReduceStore"));k=j&&j.prototype;function n(){k.constructor.call(this,c("AdsDataAtom"))}n.prototype.getInitialState=function(){return new m()};n.prototype.getModalErrorMessage=function(){return this.getState().modalErrorMessage};n.prototype.getModalStep=function(){return this.getState().modalStep};n.prototype.getNewBillingDatePreference=function(){return this.getState().newBillingDatePreference};n.prototype.getNewBillingThreshold=function(){return this.getState().newBillingThreshold};n.prototype.reduce=function(o,p){var q=p.action;switch(q.type){case c("AdsBillingDatePreferenceModalStepChangeDataAction").actionType:var r=o.set("modalStep",q.modalStep);if(q.modalStep===c("AdsBillingDatePreferencesModalStep").CLOSED)r=r.set("modalErrorMessage",null);return r;case c("AdsBillingDatePreferenceModalSubmitSuccessDataAction").actionType:return o.set("modalStep",c("AdsBillingDatePreferencesModalStep").CONFIRMATION).set("newBillingDatePreference",q.newBillingDatePreference).set("newBillingThreshold",q.newBillingThreshold);case c("AdsBillingDatePreferenceModalSubmitFailureDataAction").actionType:return o.set("modalErrorMessage",q.message).set("modalStep",c("AdsBillingDatePreferencesModalStep").SELECTING);default:return o}};f.exports=new n()}),null);
__d("BoostedComponentBillingDateStoreData",["BoostedComponentBaseStoreData"],(function a(b,c,d,e,f,g){"use strict";var h,i,j={activeBillingDatePreference:null,canChangeBillingDatePreference:false,nextBillDate:"",paymentCycle:null,pendingBillingDatePreference:null};h=babelHelpers.inherits(k,c("BoostedComponentBaseStoreData")(j));i=h&&h.prototype;function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("BoostedComponentBillingDateStore",["AdsBoostedComponentBillingDateInitDataAction","AdsBoostedComponentBillingDateLoadedDataAction","AdsDataAtom","BoostedComponentBillingDateStoreData","BoostedComponentFluxReduceStore"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("BoostedComponentFluxReduceStore"));i=h&&h.prototype;function j(){var k,l;for(var m=arguments.length,n=Array(m),o=0;o<m;o++)n[o]=arguments[o];return l=(k=i.constructor).call.apply(k,[this].concat(n)),this.storeName="BoostedComponentBillingDateStore",l}j.prototype.getInitialState=function(){return new(c("BoostedComponentBillingDateStoreData"))()};j.prototype.reduce=function(k,l){var m=l.action;switch(m.type){case c("AdsBoostedComponentBillingDateInitDataAction").actionType:return k.set("dataLoaded",false).set("isFetching",true);case c("AdsBoostedComponentBillingDateLoadedDataAction").actionType:var n=m.activeBillingDatePreference,o=m.canChangeBillingDatePreference,p=m.nextBillDate,q=m.paymentCycle,r=m.pendingBillingDatePreference;return k.set("activeBillingDatePreference",n).set("canChangeBillingDatePreference",o).set("nextBillDate",p).set("paymentCycle",q).set("pendingBillingDatePreference",r).set("dataLoaded",true).set("isFetching",false);default:return k}};f.exports=new j(c("AdsDataAtom"))}),null);
__d("BoostedComponentBillingDateRowContainer.react",["AdsBillingDatePreferencesModalStore","BoostedComponentBillingDateActions","BoostedComponentBillingDateRow.react","BoostedComponentBillingDateStore","FlexLayout.react","FluxContainer","React","SUIBusinessTheme","SUISpinner.react"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").PureComponent);i=h&&h.prototype;j.getStores=function(){return[c("AdsBillingDatePreferencesModalStore"),c("BoostedComponentBillingDateStore")]};j.calculateState=function(k,l){var m=c("BoostedComponentBillingDateStore").getState();return{activeBillingDatePreference:m.activeBillingDatePreference,canChangeBillingDatePreference:m.canChangeBillingDatePreference,isFetching:m.isFetching,isLoaded:m.dataLoaded,modalErrorMessage:c("AdsBillingDatePreferencesModalStore").getModalErrorMessage(),modalStep:c("AdsBillingDatePreferencesModalStore").getModalStep(),newBillingDatePreference:c("AdsBillingDatePreferencesModalStore").getNewBillingDatePreference(),nextBillDate:m.nextBillDate,paymentCycle:m.paymentCycle,pendingBillingDatePreference:m.pendingBillingDatePreference}};j.prototype.componentWillMount=function(){if(!this.state.isFetching&&!this.state.isLoaded)c("BoostedComponentBillingDateActions").initBillingDate(this.props.adAccountID)};j.prototype.render=function(){if(!this.state.isLoaded)return c("React").createElement(c("FlexLayout.react"),{justify:"center"},c("React").createElement(c("SUISpinner.react"),{size:"small",theme:c("SUIBusinessTheme")}));return c("React").createElement(c("BoostedComponentBillingDateRow.react"),{activeBillingDatePreference:this.state.activeBillingDatePreference,adAccountID:this.props.adAccountID,canChangeBillingDatePreference:this.state.canChangeBillingDatePreference,currency:this.props.currency,hasCoupon:this.props.hasCoupon,modalErrorMessage:this.state.modalErrorMessage,modalStep:this.state.modalStep,newBillingDatePreference:this.state.newBillingDatePreference,nextBillDate:this.state.nextBillDate,paymentCycle:this.state.paymentCycle,pendingBillingDatePreference:this.state.pendingBillingDatePreference,timeZoneID:this.props.timeZoneID})};function j(){h.apply(this,arguments)}f.exports=c("FluxContainer").create(j,{withProps:true})}),null);
__d("BoostedComponentExpandedOrderSummarySectionV2.react",["cx","fbt","AdsPaymentName","BoostedComponentAdAccountSpendLimitWarning.react","BoostedComponentAdStatusSubsection.react","BoostedComponentBillingDateRowContainer.react","BoostedComponentRef","BoostedComponentResultsSectionStrings","BoostedComponentSimplifiedSummaryBulletPoint.react","BoostedComponentSimplifiedSummaryInstagramOptOutInfoRow.react","BoostedComponentStatus","BoostedComponentTargetingSummarySectionV2.react","CheckoutV2ExperimentGroup","React","SUIBusinessTheme","SUINotice.react"],(function a(aa,b,ba,ca,c,da,ea,d){"use strict";__p&&__p();var e,f,g=b("BoostedComponentResultsSectionStrings").getTargetingText,h=b("BoostedComponentResultsSectionStrings").getDurationText,i=b("BoostedComponentResultsSectionStrings").getBudgetText,j=b("BoostedComponentResultsSectionStrings").getCheckoutPaymentText,k=b("BoostedComponentResultsSectionStrings").getCheckoutEmailReceiptText,l=b("BoostedComponentResultsSectionStrings").getPaymentText,m=b("BoostedComponentResultsSectionStrings").cannotEditNotice,n=b("BoostedComponentResultsSectionStrings").checkoutAdRejectionMessage,o=function o(r){var s=r.adStatus,t=r.showCheckoutAdRejectionMessage,u=r.totalSpent,v=r.onMessageDismiss;return t&&u===0&&s===b("BoostedComponentStatus").REJECTED?b("React").createElement(b("SUINotice.react"),{theme:b("SUIBusinessTheme"),type:"warning",onClose:v},n):null},p=function p(r){var s=r.canViewerEdit,t=r.checkoutPayments,u=r.checkoutV2ExperimentGroup,v=r.userEmail;if(!s)return null;var w=j(t),x=k(v),y=d._("{payment method} {user email}",[d.param("payment method",w),d.param("user email",x)]);return u!==b("CheckoutV2ExperimentGroup").INLINE&&(w||x)?b("React").createElement(b("BoostedComponentSimplifiedSummaryBulletPoint.react"),{image:"/images/ads/common/confirmation/paymentnew.png",text:y}):null};e=babelHelpers.inherits(q,b("React").Component);f=e&&e.prototype;q.prototype.render=function(){var r=this.props,s=r.accountID,t=r.accountStatus,u=r.adAccountName,v=r.adStatus,w=r.amountSpent,x=r.appID,y=r.audienceType,z=r.boostID,A=r.campaignLength,B=r.campaignStopTimePassed,C=r.canViewerEdit,D=r.checkoutPayments,E=r.checkoutV2ExperimentGroup,F=r.currency,G=r.hasUserRemovedInstagramPlacement,H=r.instagramOptOutHelpURI,I=r.isBrandedContentSponsorBoost,J=r.isCheckout,K=r.isEligibleForInstagramPlacement,L=r.paymentInfo,M=r.placement,N=r.runContinuously,O=r.selectedBudget,P=r.showCheckoutAdRejectionMessage,Q=r.spendCap,R=r.targetID,S=r.targetingSpec,T=r.timeZoneID,U=r.totalBudget,V=r.totalSpent,W=r.userEmail,X=r.writePermission,Y=r.onMessageDismiss,Z=r.viewerAdAccountID,$=false;if(I&&M!==b("BoostedComponentRef").INSIGHTS_POST_DIRECT_BOOST||!I&&M===b("BoostedComponentRef").INSIGHTS_POST_DIRECT_BOOST)$=true;return b("React").createElement("div",{className:"_37fk"},b("React").createElement(b("BoostedComponentAdStatusSubsection.react"),{adStatus:v}),b("React").createElement("div",{className:"_37fl"},d._("Order Summary")),b("React").createElement(b("BoostedComponentAdAccountSpendLimitWarning.react"),{accountID:s.toString(),accountStatus:t,amountSpent:w,appID:x,boostID:z,currency:F,isInCheckout:J,selectedBudget:O,spendCap:Q,targetID:R,warningPlacement:"SUMMARY",writePermission:X}),b("React").createElement(b("BoostedComponentSimplifiedSummaryBulletPoint.react"),{image:"/images/ads/common/confirmation/audiencenew.png",text:g(S,y,B)}),!$&&b("React").createElement(b("BoostedComponentTargetingSummarySectionV2.react"),{className:"_37fo",targetingSpec:S,viewerAdAccountID:Z}),b("React").createElement(b("BoostedComponentSimplifiedSummaryBulletPoint.react"),{image:"/images/ads/common/confirmation/durationnew.png",text:h(N,A,B)}),b("React").createElement(b("BoostedComponentSimplifiedSummaryBulletPoint.react"),{image:"/images/ads/common/confirmation/budgetnew.png",text:i(U,N,B)}),$&&b("React").createElement(b("BoostedComponentSimplifiedSummaryBulletPoint.react"),{image:"/images/ads/common/confirmation/lock.png",text:m(x,M,I)}),C&&!J&&b("React").createElement("div",null,b("React").createElement(b("BoostedComponentSimplifiedSummaryBulletPoint.react"),{image:"/images/ads/common/confirmation/paymentnew.png",text:l(u,b("AdsPaymentName").getPaymentName(L,false))}),b("React").createElement(b("BoostedComponentBillingDateRowContainer.react"),{adAccountID:s,currency:F,hasCoupon:!!L.adCoupon,timeZoneID:T})),J&&b("React").createElement("div",null,b("React").createElement(o,{adStatus:v,showCheckoutAdRejectionMessage:P,totalSpent:V,onMessageDismiss:Y}),b("React").createElement(p,{canViewerEdit:C,checkoutPayments:D,checkoutV2ExperimentGroup:E,userEmail:W})),b("React").createElement(b("BoostedComponentSimplifiedSummaryInstagramOptOutInfoRow.react"),{hasUserRemovedInstagramPlacement:G,instagramOptOutHelpURI:H,isEligibleForInstagramPlacement:K}))};function q(){e.apply(this,arguments)}c.exports=q}),null);
__d("BoostedComponentButtonLabels",["fbt"],(function a(b,c,d,e,f,g,h){"use strict";var i={COMPOSER_CANCEL:h._("Clear"),COMPOSER_CONFIRM:h._("Set Budget"),EDIT_SUBMISSION_BUTTON_LABEL:h._("Save Changes"),SHARE_AND_BOOST_BUTTON_LABEL:h._("Share & Boost"),DIRECT_BOOST_BUTTON_LABEL:h._("Boost Post"),PROMOTE:h._("Promote"),RESUME:h._("Resume"),SAVE_FORM_BUTTON_LABEL:h._("Save Form")};f.exports=i}),null);
__d("BoostedComponentFooterV2.react",["cx","fbt","AdsCurrencyFormatter","AdsLWIDialogFooter.react","AsyncRequest","BoostedComponentActionToClientEventUtils","BoostedComponentAppID","BoostedComponentAppIDUtils","BoostedComponentBrandedContentServerActionsV2","BoostedComponentBudgetType","BoostedComponentButtonLabels","BoostedComponentCommonActionsV2","BoostedComponentDialogFooterActionMenu.react","BoostedComponentDialogUIActionsV2","BoostedComponentDialogViewStates","BoostedComponentEmbeddedUtils","BoostedComponentLeadGenActionsV2","BoostedComponentLeadGenUtils","BoostedComponentQEs","BoostedComponentQEUtils","BoostedComponentRef","BoostedComponentStatus","BoostedComponentStringsV2","BoostedComponentTerms.react","BoostedComponentTestElement","BoostedComponentTextPenaltyActionsV2","BoostedComponentTextPenaltyPhotoSwapState","BoostedPostPickerButton.react","CheckoutV2ExperimentGroup","ContentTranslationStrings","Link.react","PECurrency","React","SUIBusinessTheme","SUISpinner.react","URI","XUIDialogButton.react","nullthrows"],(function a(aa,b,ba,ca,c,da,ea,d){"use strict";__p&&__p();var e,f,g=b("BoostedComponentActionToClientEventUtils").getClientEventFromAction,h=b("BoostedComponentBrandedContentServerActionsV2").shareAndBoostPost,i=b("BoostedComponentLeadGenUtils").isBoostFormStep,j=b("BoostedComponentLeadGenUtils").isOnFacebookLeadGenPlacement,k=b("AdsCurrencyFormatter").formatCurrencyWithNumberDelimiters,l=new(b("URI"))("/help/www/547448218658012/"),m=new(b("URI"))("/business/help/118622672156992/"),n=function n(v,w,x,y,z,A,B,C,D,E){__p&&__p();if(A)if(E===b("BoostedComponentBudgetType").LIFETIME_BUDGET)return d._("Add Budget");else return b("BoostedComponentButtonLabels").EDIT_SUBMISSION_BUTTON_LABEL;if(b("BoostedComponentAppIDUtils").isBoostedPostFamily(w))switch(C){case b("BoostedComponentRef").COMPOSER:case b("BoostedComponentRef").WWW_EVENT_COMPOSER:case b("BoostedComponentRef").WWW_JOB_POST_COMPOSER:return b("BoostedComponentButtonLabels").COMPOSER_CONFIRM;case b("BoostedComponentRef").INSIGHTS_POST_SPONSORED_TABLE:return b("BoostedComponentButtonLabels").SHARE_AND_BOOST_BUTTON_LABEL;case b("BoostedComponentRef").INSIGHTS_POST_DIRECT_BOOST:return b("BoostedComponentButtonLabels").DIRECT_BOOST_BUTTON_LABEL;default:if(B&&y===b("CheckoutV2ExperimentGroup").BUDGET_SHOWN&&v<=0){var F=k(z,x);return d._("Boost for {boost_budget}",[d.param("boost_budget",F)])}return b("BoostedComponentStringsV2").BOOST}else{if(B&&y===b("CheckoutV2ExperimentGroup").BUDGET_SHOWN&&v<=0){var G=b("PECurrency").formatAmount(z,x,true,false,true);return d._("Promote for {promote_budget}",[d.param("promote_budget",G)])}else if(w===b("BoostedComponentAppID").BOOSTED_LEAD_GEN&&!i(D))return b("BoostedComponentButtonLabels").SAVE_FORM_BUTTON_LABEL;return b("BoostedComponentButtonLabels").PROMOTE}},o=function o(v){var w=v.adCredit,x=v.activeDialogTab,y=v.appID,z=v.budgetAmount,A=v.checkoutV2ExperimentGroup,B=v.currency,C=v.hasErrors,D=v.isBoosted,E=v.isCheckout,F=v.isReady,G=v.placement,H=v.targetID,I=v.onClick;if(D&&x!==b("BoostedComponentDialogViewStates").EDIT)return null;return b("React").createElement(b("XUIDialogButton.react"),{"data-testid":b("BoostedComponentTestElement").PRIMARY_BUTTON,disabled:C||!F,label:n(w,y,z,A,B,D,E,G,H),size:"xlarge",use:"confirm",onClick:I})},p=function p(v){var w=v.activeDialogTab,x=v.hide,y=v.isBoosted,z=v.placement,A=v.onClick;if(x)return null;var B=y&&w!==b("BoostedComponentDialogViewStates").EDIT?b("ContentTranslationStrings").CLOSE:b("ContentTranslationStrings").CANCEL;if(z===b("BoostedComponentRef").COMPOSER||z===b("BoostedComponentRef").WWW_EVENT_COMPOSER||z===b("BoostedComponentRef").WWW_JOB_POST_COMPOSER)B=b("BoostedComponentButtonLabels").COMPOSER_CANCEL;return b("React").createElement(b("XUIDialogButton.react"),{label:B,size:"xlarge",onClick:A})},q=function q(v){var w=v.shown,x=v.onClick;if(!w)return null;return b("React").createElement(b("XUIDialogButton.react"),{"data-testid":b("BoostedComponentTestElement").PRIMARY_BUTTON,label:b("BoostedComponentButtonLabels").RESUME,size:"xlarge",use:"confirm",onClick:x})},r=d._("Boost Another Post"),s=function s(v){var w=v.shown,x=v.onClick;if(!w)return null;return b("React").createElement("div",{className:"_3-8_"},b("React").createElement(b("BoostedPostPickerButton.react"),{appID:v.appID,buttonLabel:r,fetchInitialPosts:true,pageID:v.pageID,placement:b("BoostedComponentRef").WWW_BOOSTED_POST_PICKER,size:"xlarge",use:"default",onClick:x}))},t=function t(v){__p&&__p();var w=v.activeDialogTab,x=v.adCredit,y=v.appID,z=v.boostID,A=v.budgetAmount,B=v.checkoutV2ExperimentGroup,C=v.currency,D=v.helpCenterURI,E=v.isBoosted,F=v.isCheckout,G=v.placement,H=v.targetID,I=v.budgetType,J=y===b("BoostedComponentAppID").BOOSTED_LEAD_GEN&&E&&j(G)?m:D||l,K=function K(){b("BoostedComponentDialogUIActionsV2").clickHelpCenterLink(y,H,z);window.open(J)};if(E&&w===b("BoostedComponentDialogViewStates").RESULTS){var L=I===b("BoostedComponentBudgetType").LIFETIME_BUDGET&&v.adStatus!==b("BoostedComponentStatus").REJECTED&&v.canViewerEdit&&!(y===b("BoostedComponentAppID").BOOSTED_LEAD_GEN&&j(G));if(!L)return b("React").createElement("div",{className:"_2ph-"},b("React").createElement(b("Link.react"),{key:"helpCenter",target:"_blank",onClick:K},b("BoostedComponentStringsV2").HELP_CENTER))}var M=n(x,y,A,B,C,E,F,G,H,I);if(E&&w===b("BoostedComponentDialogViewStates").EDIT)M=b("BoostedComponentButtonLabels").EDIT_SUBMISSION_BUTTON_LABEL;var N=y===b("BoostedComponentAppID").BOOSTED_LEAD_GEN&&!E&&j(G);return b("React").createElement("div",{className:"_2ph-"},b("React").createElement(b("BoostedComponentTerms.react"),{alignment:"left",buttonLabel:M,hasLeadAdsTermsLink:N,isLongContentVersion:true,key:"terms"}),b("React").createElement("span",{className:"_3-9a",key:"line_separator"},"|"),b("React").createElement(b("Link.react"),{className:"_3-9a",key:"helpCenter",target:"_blank",onClick:K},b("BoostedComponentStringsV2").HELP_CENTER))};e=babelHelpers.inherits(u,b("React").Component);f=e&&e.prototype;function u(v){__p&&__p();f.constructor.call(this,v);this.$BoostedComponentFooterV22=function(w){__p&&__p();if(b("BoostedComponentEmbeddedUtils").isEmbeddedBoostDialog())w.preventDefault();var x=this.props,y=x.adAccountID,z=x.appID,A=x.boostID,B=x.composerID,C=x.feedContext,D=x.isBoosted,E=x.pageID,F=x.placement,G=x.shareType,H=x.targetID,I=x.instanceID,J=x.leadGenTOSAccepted,K=x.newPhotoID,L=x.pagesAdminDataFetched,M=x.textPenaltyPhotoSwapState;switch(F){case b("BoostedComponentRef").COMPOSER:case b("BoostedComponentRef").WWW_EVENT_COMPOSER:case b("BoostedComponentRef").WWW_JOB_POST_COMPOSER:b("BoostedComponentCommonActionsV2").composerCreateClick(y,E,F,z,H,A,I);return;case b("BoostedComponentRef").INSIGHTS_POST_SPONSORED_TABLE:h(y,z,A,b("nullthrows")(B),E,F,b("nullthrows")(H),b("nullthrows")(G));return;default:if(D)b("BoostedComponentCommonActionsV2").editClick(y,z,E,F,H,A,I);else if(z===b("BoostedComponentAppID").BOOSTED_LEAD_GEN&&!j(F)&&(!J||!L))b("BoostedComponentLeadGenActionsV2").openLeadGenTOSDialog(z,H,A);else if(z===b("BoostedComponentAppID").BOOSTED_POST&&M===b("BoostedComponentTextPenaltyPhotoSwapState").CHANGED&&K!=null&&H!=null)b("BoostedComponentTextPenaltyActionsV2").swapPhotoAndCreateClick(K,z,E,F,H,A,y,C,I);else b("BoostedComponentCommonActionsV2").createClick(z,E,F,H,A,y,I)}}.bind(this);this.$BoostedComponentFooterV23=function(){var w=this.props,x=w.appID,y=w.boostID,z=w.isBoosted,A=w.targetID;b("BoostedComponentDialogUIActionsV2").closeDialog(x,A,y,z)}.bind(this);this.$BoostedComponentFooterV24=function(w){__p&&__p();if(b("BoostedComponentEmbeddedUtils").isEmbeddedBoostDialog())w.preventDefault();var x=this.props,y=x.adStatus,z=x.appID,A=x.creationFlowSurveyURI,B=x.isBoosted,C=x.targetID,D=x.boostID,E=x.placement,F=x.resultsFlowSurvey;if(E===b("BoostedComponentRef").COMPOSER||E===b("BoostedComponentRef").WWW_EVENT_COMPOSER||E===b("BoostedComponentRef").WWW_JOB_POST_COMPOSER){b("BoostedComponentCommonActionsV2").composerClearBoost(z,C,D);return}if(B){if(A)new(b("AsyncRequest"))(A).send();else if(y===b("BoostedComponentStatus").FINISHED&&F)new(b("AsyncRequest"))(F).send();b("BoostedComponentDialogUIActionsV2").closeDialog(z,C,D,B)}else b("BoostedComponentDialogUIActionsV2").closeDialogClick(z,C,D)}.bind(this);this.$BoostedComponentFooterV25=function(w){if(b("BoostedComponentEmbeddedUtils").isEmbeddedBoostDialog())w&&w.preventDefault();this.$BoostedComponentFooterV23()}.bind(this);this.$BoostedComponentFooterV26=function(w){if(b("BoostedComponentEmbeddedUtils").isEmbeddedBoostDialog())w.preventDefault();var x=this.props,y=x.adAccountID,z=x.appID,A=x.boostID,B=x.pageID,C=x.placement,D=x.targetID,E=x.instanceID;b("BoostedComponentCommonActionsV2").resumeClick(y,z,B,C,D,A,E)}.bind(this);this.$BoostedComponentFooterV21(v)}u.prototype.componentWillReceiveProps=function(v){this.$BoostedComponentFooterV21(v)};u.prototype.shouldComponentUpdate=function(v){var w=this.props,x=v.submissionStatusData,y=w.submissionStatusData;if(y.isReady!==x.isReady||v.activeDialogTab!==w.activeDialogTab||v.isBoosted!==w.isBoosted||v.hasErrors!==w.hasErrors||v.budgetAmount!==w.budgetAmount||v.adStatus!==w.adStatus)return true;return false};u.prototype.$BoostedComponentFooterV21=function(v){var w=v.appID,x=v.boostID,y=v.dialogShown,z=v.instagramActorID,A=v.instanceID,B=v.pageID,C=v.submissionStatusData,D=v.targetID,E=C.actionType,F=C.fetchEstimates;if(y&&(F||w!==b("BoostedComponentAppID").BOOSTED_POST&&v.creativeSpec!==this.props.creativeSpec)){var G=g(E);b("BoostedComponentCommonActionsV2").fetchDialogChangeData(G,B,z,w,D,x,A)}};u.prototype.render=function(){var v=this.props,w=v.adCredit,x=v.adStatus,y=v.appID,z=v.activeDialogTab,A=v.boostID,B=v.budgetAmount,C=v.bugReportURI,D=v.campaignGroupID,E=v.canViewerEditAd,F=v.checkoutV2ExperimentGroup,G=v.contactSupportURI,H=v.currency,I=v.dialogDivID,J=v.hasErrors,K=v.helpCenterURI,L=v.hideCancelButton,M=v.instanceID,N=v.isBoosted,O=v.isCheckout,P=v.instagramActorID,Q=v.instagramPlacementEligible,R=v.instagramPlacementRemoved,S=v.pageID,T=v.placement,U=v.sendFeedbackURI,V=v.submissionStatusData,W=v.targetID,X=V.isReady,Y=b("React").createElement("span",{className:"_4od6"},T===b("BoostedComponentRef").WWW_BOOSTED_POST_PICKER&&b("React").createElement(b("XUIDialogButton.react"),{className:"_3-90",label:"Back",size:"xlarge",use:"default",onClick:this.$BoostedComponentFooterV23}),b("React").createElement(b("BoostedComponentDialogFooterActionMenu.react"),{appID:y,boostID:A,bugReportURI:C,campaignGroupID:D,canViewerEditAd:E,contactSupportURI:G,dialogDivID:I,helpCenterURI:K,instagramActorID:P,instagramPlacementEligible:Q,instagramPlacementRemoved:R,instanceID:M,isBoosted:N,pageID:S,placement:T,sendFeedbackURI:U,targetID:W}),b("React").createElement(t,{activeDialogTab:z,adCredit:w,adStatus:x,appID:y,boostID:A,budgetAmount:B,budgetType:this.props.budgetType,canViewerEdit:E,checkoutV2ExperimentGroup:F,currency:H,helpCenterURI:K,isBoosted:N,isCheckout:O,isReady:X&&!J,placement:T,targetID:W})),Z=false,$=false;if(x===b("BoostedComponentStatus").PAUSED)$=b("BoostedComponentQEUtils").getQE(b("BoostedComponentQEs").BOOSTED_COMPONENT_PAUSED_CAMPAIGN_TIP_UNIVERSE).getParamBool("show_tip",false);if(y===b("BoostedComponentAppID").BOOSTED_POST&&N&&!$&&T!==b("BoostedComponentRef").WWW_BOOSTED_POST_PICKER)Z=true;return b("React").createElement(b("AdsLWIDialogFooter.react"),{leftContent:Y},b("React").createElement(s,{appID:y,pageID:S,shown:Z,onClick:this.$BoostedComponentFooterV25}),b("React").createElement(p,{activeDialogTab:z,hide:L,isBoosted:N,placement:T,onClick:this.$BoostedComponentFooterV24}),b("React").createElement(q,{shown:$,onClick:this.$BoostedComponentFooterV26}),b("React").createElement(o,{activeDialogTab:z,adCredit:w,appID:y,budgetAmount:B,checkoutV2ExperimentGroup:F,currency:H,hasErrors:J,isBoosted:N,isCheckout:O,isReady:X,placement:T,targetID:W,onClick:this.$BoostedComponentFooterV22}),X||N?null:b("React").createElement(b("SUISpinner.react"),{className:"_h5u",size:"small",theme:b("SUIBusinessTheme")}))};c.exports=u}),null);
__d("BoostedPostDialogButtonV2.react",["ix","cx","fbt","AdsFBIconDownsized.react","AdsLWIDialogCloseDataAction","BIGAdoptionConfig","BoostedComponentCommonActionsV2","BoostedComponentDialogUIActionsV2","BoostedComponentErrorBoundaryContainer.react","BoostedComponentInitUtils","BoostedComponentRef","BoostedComponentStatus","BoostedComponentV2Utils","BoostedPostMainDialogV2Container.react","BoostedPostTestElements","Image.react","React","ShimButton.react","Tooltip","XUIAmbientNUX.react","XUIButton.react","asset","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("BoostedComponentV2Utils").throttle,n=18e4;k=babelHelpers.inherits(o,c("React").Component);l=k&&k.prototype;function o(p){__p&&__p();l.constructor.call(this,p);this.state={dialogShown:false,nuxClosed:false};this.$BoostedPostDialogButtonV23=function(event){__p&&__p();var q=this.props,r=q.appID,s=q.targetID,t=q.boostID,u=q.instanceID,v=q.isBoosted,w=q.pageConnectedInstagramAccountID,x=q.pageID,y=q.placement,z=q.onClick;if(event){event.preventDefault();if(this.props.stopPropagation)event.stopPropagation()}c("BoostedComponentDialogUIActionsV2").openDialogClick(r,s,t,v,y,x,u);if(!w&&!v)c("BoostedComponentInitUtils").connectInstagramBusinessAccount(r,s,x);this.setState({dialogShown:true});if(z)z()}.bind(this);this.$BoostedPostDialogButtonV22=function(){if(!this.props.dialogShown&&!this.props.disableFetchOnHover){var q=this.props,r=q.appID,s=q.pageID,t=q.targetID,u=q.boostID,v=q.placement,w=q.selectedAccountID,x=q.instanceID,y=q.couponOffer,z=q.permanentCreateMode;c("BoostedComponentInitUtils").bootloadCreativeSectionContainer(r);c("BoostedComponentCommonActionsV2").fetchBoostedComponentDialogData(s,r,t,u,v,w,undefined,x,y,z)}}.bind(this);this.$BoostedPostDialogButtonV24=function(q){if(!q){this.setState({dialogShown:false});setTimeout(function(){c("AdsLWIDialogCloseDataAction").dispatch({})},0)}}.bind(this);this.$BoostedPostDialogButtonV25=function(){this.setState({nuxClosed:true})}.bind(this);this.$BoostedPostDialogButtonV26=function(){return this.refs.button}.bind(this);this.$BoostedPostDialogButtonV21=m(this.$BoostedPostDialogButtonV22,n,{trailing:false});c("BoostedComponentInitUtils").registerBoostedComponentDialogStores()}o.prototype.componentDidMount=function(){__p&&__p();if(this.props.autoOpenDialog){this.$BoostedPostDialogButtonV22();if(this.props.placement!==c("BoostedComponentRef").NEW_TIMELINE&&this.props.adStatus===c("BoostedComponentStatus").INACTIVE){var p=this.props,q=p.appID,r=p.targetID,s=p.boostID,t=p.isBoosted,u=p.placement,v=p.instanceID;this.setState({dialogShown:true});c("BoostedComponentDialogUIActionsV2").autoOpenDialog(t,q,r,s,u,v)}else this.$BoostedPostDialogButtonV23()}else{var w=this.props,x=w.appID,y=w.pageID;c("BoostedComponentInitUtils").fetchAdAccountData(x,y)}};o.prototype.$BoostedPostDialogButtonV27=function(){if(!this.props.showNux)return null;return c("React").createElement(c("XUIAmbientNUX.react"),{alignment:"right",contextRef:this.$BoostedPostDialogButtonV26,position:"above",shown:!this.state.nuxClosed,onCloseButtonClick:this.$BoostedPostDialogButtonV25},j._("Boost your post to reach more of the people who matter to you. Click here to get started."))};o.prototype.render=function(){var p=this.props,q=p.appID,r=p.buttonLabel,s=p.iconURL,t=p.isConfirmButton,u=p.size,v=p.tooltip,w=this.props,x=w.adStatus,y=w.boostID,z=w.customComponent,A=w.isEligible,B=w.pageID,C=w.permanentCreateMode,D=w.placement,E=w.targetID,F=w.instanceID,G=this.state.dialogShown?c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedPostMainDialogV2Container"},c("React").createElement(c("BoostedPostMainDialogV2Container.react"),{appID:q,boostID:y,instanceID:F,pageID:B,permanentCreateMode:C,placement:D,targetID:E,useWithoutButton:false,onToggle:this.$BoostedPostDialogButtonV24})):null,H=s?c("React").createElement(c("Image.react"),{src:s}):null;if(x===c("BoostedComponentStatus").INACTIVE&&D===c("BoostedComponentRef").WWW_GROUPS_ACTION_HEADER)H=c("React").createElement(c("AdsFBIconDownsized.react"),{src:c("BIGAdoptionConfig").ads_fbicon_adoption?h("412499"):h("123237")});return c("React").createElement("span",null,z?c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"ShimButton"},c("React").createElement(c("ShimButton.react"),{inline:this.props.inline,onClick:this.props.disableCustomComponentClick?null:this.$BoostedPostDialogButtonV23,onFocus:this.$BoostedPostDialogButtonV21,onMouseEnter:this.$BoostedPostDialogButtonV21},z)):c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedPostDialogButton"},c("React").createElement(c("XUIButton.react"),babelHelpers["extends"]({className:"_4dyi","data-testid":c("BoostedPostTestElements").BOOSTED_POST_BUTTON_ID,disabled:!A,image:H,label:c("React").createElement("span",{className:"_4m40"},r),ref:"button",size:u,use:t?"confirm":"default",onClick:this.$BoostedPostDialogButtonV23,onFocus:this.$BoostedPostDialogButtonV21,onMouseEnter:this.$BoostedPostDialogButtonV21},c("Tooltip").propsFor(v)))),G,this.$BoostedPostDialogButtonV27())};f.exports=o}),null);
__d("BoostedPostDialogRow.react",["ix","cx","fbt","BoostedComponentQEs","BoostedComponentQEUtils","BoostedComponentRef","BoostedPostDialogButtonV2Container.react","BoostedPostPickerDialogMultipleBoostTable.react","FBToggle.react","Grid.react","Image.react","ImageBlock.react","immutable","InlineBlock.react","LeftRight.react","LineClamp.react","React","SUIBusinessTheme","SUICard.react","SUIText.react","UFIReactionsBlingTokens.react","asset","formatDate"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("Grid.react").GridItem,n=c("immutable").List,o="m/d/Y",p=80,q=j._("Show other promotions"),r=j._("Hide other promotions"),s={1:{reduced:"1","default":1},2:{reduced:"1","default":1},3:{reduced:"1","default":1}},t={reactioncountmap:s,reactioncount:0,reactioncountreduced:""};k=babelHelpers.inherits(u,c("React").Component);l=k&&k.prototype;function u(){var v,w;for(var x=arguments.length,y=Array(x),z=0;z<x;z++)y[z]=arguments[z];return w=(v=l.constructor).call.apply(v,[this].concat(y)),this.state={webkitLineClamp:0},w}u.prototype.componentDidMount=function(){this.setState({webkitLineClamp:2})};u.prototype.componentWillUnmount=function(){this.setState({webkitLineClamp:3})};u.prototype.render=function(){var v=c("formatDate")(this.props.creationTime,o),w=this.props,x=w.name,y=w.promotionsData,z=void 0;if(x)z=j._("Published by {author} on {date}",[j.param("author",x),j.param("date",v)]);else z=j._("Published on {date}",[j.param("date",v)]);var A=c("React").createElement("div",{className:"_62k6"},c("React").createElement(c("Image.react"),{className:"_62k7",src:this.props.picture})),B=c("React").createElement("div",null,c("React").createElement(c("InlineBlock.react"),{alignv:"middle",height:p},c("React").createElement("div",{className:"_62k8"},c("React").createElement(c("LineClamp.react"),{disableNative:false,lineHeight:20,lines:2},c("React").createElement("div",{style:{WebkitLineClamp:this.state.webkitLineClamp}},this.props.message))),c("React").createElement("div",{className:"_62k9"},z)),c("React").createElement(c("InlineBlock.react"),{alignv:"middle",height:p},c("React").createElement(c("Grid.react"),{className:"_62ka",cols:3},c("React").createElement(m,null,c("React").createElement("div",{className:"_62kb _4ar-"},c("React").createElement(c("UFIReactionsBlingTokens.react"),{feedback:t,max:3,noLinks:true}),c("React").createElement("span",{className:"_62kc"},this.props.reactionCount))),c("React").createElement(m,null,c("React").createElement("div",{className:"_62kd"},c("React").createElement("div",{className:"_62ke _62kf"}),c("React").createElement("span",{className:"_62kc"},this.props.commentCount))),c("React").createElement(m,null,c("React").createElement("div",{className:"_62kg"},c("React").createElement("div",{className:"_62kh _62kf"}),c("React").createElement("span",{className:"_62kc"},this.props.shareCount)))))),C=this.props.buttonData,D=c("React").createElement(c("InlineBlock.react"),{alignv:"middle",className:"_62ki",height:p},c("React").createElement(c("BoostedPostDialogButtonV2Container.react"),{appID:this.props.appID,boostID:C.instanceData.boostID,configData:C.configData,instanceData:C.instanceData,instanceID:C.instanceID,pageID:this.props.pageID,permanentCreateMode:this.props.permanentCreateMode,placement:c("BoostedComponentRef").WWW_BOOSTED_POST_PICKER,targetID:this.props.targetID}));return c("React").createElement("div",{className:"_62kj"},c("React").createElement(c("SUICard.react"),{theme:c("SUIBusinessTheme")},c("React").createElement(c("ImageBlock.react"),{className:"_62kk",height:p,spacing:"medium"},A,B,D),y&&y.size>0&&c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_POST_PICKER_MULTIPLE_BOOST_UNIVERSE).getParamBool("should_show_multiple_boost",false)&&c("React").createElement(c("FBToggle.react"),{animate:true,className:"_2pit _2pij _2pio",startOpen:false},c("React").createElement(c("LeftRight.react"),{className:"_oje"},c("React").createElement(c("Image.react"),{src:h("394899")}),c("React").createElement(c("SUIText.react"),null,q)),c("React").createElement(c("LeftRight.react"),{className:"_oje"},c("React").createElement(c("Image.react"),{src:h("364970")}),c("React").createElement(c("SUIText.react"),null,r)),c("React").createElement(c("BoostedPostPickerDialogMultipleBoostTable.react"),{pageID:this.props.pageID,placement:c("BoostedComponentRef").WWW_BOOSTED_POST_PICKER,promotionsData:y,targetID:this.props.targetID}))))};f.exports=u}),null);
__d("BoostedComponentConfirmationDialogV2Container.react",["AdsFluxContainer","AdsLWIInstanceUtils","BoostedComponentAdAccountStoreV2","BoostedComponentConfirmationDialogV2.react","BoostedComponentConstraintStoreV2","BoostedComponentContainerUtils","BoostedComponentCouponPromotionStoreV2","BoostedComponentDialogUIStoreV2","BoostedComponentErrorBoundaryContainer.react","BoostedComponentExistingAdInfoStoreV2","BoostedComponentSurveyAndFeedbackStoreV2","ImageReviewRequestStore","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded;h=babelHelpers.inherits(l,c("React").Component);i=h&&h.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=i.constructor).call.apply(m,[this].concat(p)),this.state={specs:"",cancelFlowSurveyURI:null,confirmationDialogShown:false,imageReviewRequested:false,isBoosted:false,isCheckout:false,pauseSurveyURI:null,submitAction:"",shouldShowCouponConfirmationDialogue:false,campaignLength:0,campaignBudget:0,minDailyBudget:1,adAccountID:""},n}l.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedComponentAdAccountStoreV2"),c("BoostedComponentDialogUIStoreV2"),c("BoostedComponentExistingAdInfoStoreV2"),c("BoostedComponentSurveyAndFeedbackStoreV2"),c("BoostedComponentCouponPromotionStoreV2"),c("BoostedComponentConstraintStoreV2"),c("ImageReviewRequestStore")])};l.calculateState=function(m,n){var o=n.appID,p=n.targetID,q=n.boostID,r=j(o,p,q),s=c("BoostedComponentAdAccountStoreV2").getState(),t=c("BoostedComponentDialogUIStoreV2").getDataByKey(r),u=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(r),v=c("BoostedComponentSurveyAndFeedbackStoreV2").getDataByKey(r),w=c("BoostedComponentCouponPromotionStoreV2").getData(o,p),x=c("BoostedComponentConstraintStoreV2").getDataByKey(r),y=k([s,t,u,v,x]);if(!y)return babelHelpers["extends"]({},m,{confirmationDialogShown:t.get("confirmationDialogShown"),submitAction:t.get("submitAction")});return{cancelFlowSurveyURI:v.get("cancel_flow_survey_uri"),confirmationDialogShown:t.getConfirmationDialogShown(),imageReviewRequested:c("ImageReviewRequestStore").getImageReviewRequested(),isBoosted:u.getIsBoosted(),isCheckout:s.getIsAccountInCheckout(),pauseSurveyURI:v.size?v.getPauseSurveyURI():null,submitAction:t.getSubmitAction()||"",shouldShowCouponConfirmationDialogue:w?w.get("coupon_offer")&&!w.get("error")&&!w.get("success"):false,campaignLength:u.getCampaignLengthInDays(),campaignBudget:u.getBudget(),minDailyBudget:x.getMinDailyBudget(),adAccountID:u.getCampaignAdAccountID()}};l.prototype.render=function(){if(!this.state.confirmationDialogShown)return null;var m=this.props,n=m.appID,o=m.boostID,p=m.instanceID,q=m.placement,r=m.pageID,s=m.targetID;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentConfirmationDialogV2"},c("React").createElement(c("BoostedComponentConfirmationDialogV2.react"),babelHelpers["extends"]({},this.state,{appID:n,boostID:o,instanceID:p,pageID:r,placement:q,targetID:s})))};f.exports=c("AdsFluxContainer").create(l,{withProps:true,name:f.id})}),null);
__d("BoostedComponentDialogPhotoUploadingIndicator.react",["fbt","BoostedComponentDialogSubmissionIndicator.react","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.render=function(){if(this.props.showIndicator)return c("React").createElement(c("BoostedComponentDialogSubmissionIndicator.react"),{message:h._("Uploading Photo")});return null};function k(){i.apply(this,arguments)}f.exports=k}),null);
__d("BoostedComponentAdActiveOrPausedStatusBarSubsection.react",["cx","fbt","BoostedComponentStringsV2","BoostedComponentTestElement","FBToggleSwitch.react","Layout.react","Link.react","React"],(function a(b,c,d,e,f,g,h,i){"use strict";var j=c("Layout.react").Column,k=c("Layout.react").FillColumn,l=function l(m){var n=m.isActive,o=c("React").createElement("div",{className:"_1ul_"},c("React").createElement(c("Link.react"),{"data-testid":"delete-ad-section",onClick:m.onDeleteAdClick},c("React").createElement("div",{className:"_1um0"},c("BoostedComponentStringsV2").DELETE_PROMOTION_TITLE))),p=i._("Active"),q=i._("Inactive");return c("React").createElement(c("Layout.react"),{className:(n?"_304x":"")+(!n?" _304y":"")},c("React").createElement(j,null,c("React").createElement(c("FBToggleSwitch.react"),{animate:true,checked:n,onToggle:m.onDataUpdate})),c("React").createElement(j,{className:"_1ume","data-testid":c("BoostedComponentTestElement").DIALOG_HEADER_STATUS_TEXT},n?p:q),c("React").createElement(j,null,n?null:c("React").createElement("div",{className:"_1umg"})),c("React").createElement(j,null,n?null:o),c("React").createElement(k,null))};f.exports=l}),null);
__d("BoostedComponentAdPendingOrRejectedStatusBarSubsection.react",["cx","fbt","BoostedComponentStringsV2","BoostedComponentTestElement","Layout.react","Link.react","React"],(function a(b,c,d,e,f,g,h,i){"use strict";var j=c("Layout.react").Column,k=c("Layout.react").FillColumn,l=function l(m){var n=m.isPending,o=c("React").createElement("div",{className:"_1ul_"},c("React").createElement(c("Link.react"),{"data-testid":"delete-ad-section",onClick:m.onDeleteAdClick},c("React").createElement("div",{className:"_1um0"},c("BoostedComponentStringsV2").DELETE_PROMOTION_TITLE))),p=i._("In Review"),q=i._("Not Approved");return c("React").createElement(c("Layout.react"),{className:(n?"_1um2":"")+(!n?" _1umb":"")},c("React").createElement(j,null,c("React").createElement("div",{className:"_1umc"})),c("React").createElement(j,{className:"_1ume","data-testid":c("BoostedComponentTestElement").DIALOG_HEADER_STATUS_TEXT},n?p:q),c("React").createElement(j,null,n?null:c("React").createElement("div",{className:"_1umg"})),c("React").createElement(j,null,n?null:o),c("React").createElement(k,null))};f.exports=l}),null);
__d("BoostedComponentHeaderAdStatusBarV2.react",["BoostedComponentAdActiveOrPausedStatusBarSubsection.react","BoostedComponentAdPendingOrRejectedStatusBarSubsection.react","BoostedComponentCommonActionsV2","BoostedComponentStatus","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;function j(){__p&&__p();var k,l;for(var m=arguments.length,n=Array(m),o=0;o<m;o++)n[o]=arguments[o];return l=(k=i.constructor).call.apply(k,[this].concat(n)),this.$BoostedComponentHeaderAdStatusBarV21=function(){var p=this.props,q=p.appID,r=p.targetID,s=p.boostID;c("BoostedComponentCommonActionsV2").deleteClick(q,r,s)}.bind(this),this.$BoostedComponentHeaderAdStatusBarV22=function(p){var q=this.props,r=q.adAccountID,s=q.appID,t=q.boostID,u=q.pageID,v=q.placement,w=q.targetID,x=q.instanceID;if(p)c("BoostedComponentCommonActionsV2").resumeClick(r,s,u,v,w,t,x);else c("BoostedComponentCommonActionsV2").pauseClick(s,w,t)}.bind(this),l}j.prototype.render=function(){var k=this.props,l=k.canViewerEditAd,m=k.isAdModifiedInAdsManager,n=k.adStatus,o=k.submissionStatusData;if(!l||m||!o.get("dataLoaded"))return null;switch(n){case c("BoostedComponentStatus").PENDING:case c("BoostedComponentStatus").REJECTED:var p=n===c("BoostedComponentStatus").PENDING;return c("React").createElement(c("BoostedComponentAdPendingOrRejectedStatusBarSubsection.react"),{isPending:p,onDeleteAdClick:this.$BoostedComponentHeaderAdStatusBarV21});case c("BoostedComponentStatus").ACTIVE:case c("BoostedComponentStatus").PAUSED:var q=n===c("BoostedComponentStatus").ACTIVE;return c("React").createElement(c("BoostedComponentAdActiveOrPausedStatusBarSubsection.react"),{isActive:q,onDataUpdate:this.$BoostedComponentHeaderAdStatusBarV22,onDeleteAdClick:this.$BoostedComponentHeaderAdStatusBarV21});default:return null}};f.exports=j}),null);
__d("AdAccountSelfCertificationDataActionType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({SELF_CERTIFICATION_FAILURE:"self_certification_failure",SELF_CERTIFICATION_FETCH_COMPLETE:"self_certification_fetch_complete",SELF_CERTIFICATION_SUCCESS:"self_certification_success"})}),null);
__d("AdsAdAccountSelfCertificationDataSelfCertificationFetchCompleteDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"self_certification_fetch_complete");f.exports=h}),null);
__d("XBusinessIntegrityAdAccountSelfCertificationAsyncController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/integrity/account/self_cert/ajax/",{})}),null);
__d("AdAccountSelfCertificationDataLoader",["AdAccountSelfCertificationDataActionType","AdsAdAccountSelfCertificationDataSelfCertificationFetchCompleteDataAction","AdsDataAtom","AsyncRequest","immutable","XBusinessIntegrityAdAccountSelfCertificationAsyncController"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h={type:c("AdAccountSelfCertificationDataActionType").SELF_CERTIFICATION_FAILURE},i={type:c("AdAccountSelfCertificationDataActionType").SELF_CERTIFICATION_SUCCESS};j.prototype.certifyAccount=function(k,l){var m=c("XBusinessIntegrityAdAccountSelfCertificationAsyncController").getURIBuilder().getURI();new(c("AsyncRequest"))().setURI(m).setData({account_id:k,get_mode:false,process_ads:l}).setMethod("POST").setAllowCrossPageTransition(true).setHandler(function(n){var o=n.payload;if(!o)c("AdsDataAtom").handleUpdateFromServerResponse(h);c("AdsDataAtom").handleUpdateFromServerResponse(i)}).send()};j.prototype.fetchAccountCertification=function(k){var l=c("XBusinessIntegrityAdAccountSelfCertificationAsyncController").getURIBuilder().getURI();new(c("AsyncRequest"))().setURI(l).setData({account_id:k,get_mode:true}).setMethod("POST").setAllowCrossPageTransition(true).setHandler(function(m){var n=m.payload,o=c("immutable").Map().set("isAccountCertified",n);c("AdsDataAtom").handleUpdateFromServerResponse({type:c("AdsAdAccountSelfCertificationDataSelfCertificationFetchCompleteDataAction").actionType,data:o})}).send()};function j(){}f.exports=new j()}),null);
__d("AdAccountSelfCertificationUIActionType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({CLOSE_SELF_CERTIFICATION_DIALOG:"close_self_certification_dialog",OPEN_SELF_CERTIFICATION_DIALOG:"open_self_certification_dialog",REQUEST_MANUAL_REVIEW:"request_manual_review",SUBMIT_SELF_CERTIFICATION_REQUEST:"submit_self_certification_request",USER_AGREE_TO_TERMS:"user_agree_to_terms"})}),null);
__d("AdsAdAccountSelfCertificationUiRequestManualReviewDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"request_manual_review");f.exports=h}),null);
__d("AdAccountSelfCertificationStore",["AdAccountSelfCertificationDataActionType","AdAccountSelfCertificationDataLoader","AdAccountSelfCertificationUIActionType","AdsAdAccountSelfCertificationDataSelfCertificationFetchCompleteDataAction","AdsAdAccountSelfCertificationUiRequestManualReviewDataAction","AdsDataAtom","AdsLoadState_LEGACY","FluxReduceStore"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("FluxReduceStore"));i=h&&h.prototype;j.prototype.getInitialState=function(){return{confirmTermsAcceptance:false,loadState:c("AdsLoadState_LEGACY").LOADED,manualReviewRequested:false,selfCertificationSuccess:false,shouldFetchSelfCertification:true,shouldHideBanner:false}};j.prototype.reduce=function(k,l){__p&&__p();var m=l.action;switch(m.type){case c("AdAccountSelfCertificationUIActionType").OPEN_SELF_CERTIFICATION_DIALOG:case c("AdAccountSelfCertificationUIActionType").CLOSE_SELF_CERTIFICATION_DIALOG:return babelHelpers["extends"]({},k,{confirmTermsAcceptance:false});case c("AdAccountSelfCertificationUIActionType").USER_AGREE_TO_TERMS:return this.$AdAccountSelfCertificationStore1(k);case c("AdAccountSelfCertificationUIActionType").SUBMIT_SELF_CERTIFICATION_REQUEST:return this.$AdAccountSelfCertificationStore2(k,m.data.get("accountID"),m.data.get("shouldReprocessAds"));case c("AdsAdAccountSelfCertificationUiRequestManualReviewDataAction").actionType:return this.$AdAccountSelfCertificationStore3(k);case c("AdAccountSelfCertificationDataActionType").SELF_CERTIFICATION_SUCCESS:return this.$AdAccountSelfCertificationStore4(k,true);case c("AdAccountSelfCertificationDataActionType").SELF_CERTIFICATION_FAILURE:return this.$AdAccountSelfCertificationStore4(k,false);case c("AdsAdAccountSelfCertificationDataSelfCertificationFetchCompleteDataAction").actionType:return babelHelpers["extends"]({},k,{shouldFetchSelfCertification:false,shouldHideBanner:m.data.get("isAccountCertified")})}return k};j.prototype.getTermsAccepted=function(){return this.getState().confirmTermsAcceptance};j.prototype.getSelfCertificationSuccess=function(){return this.getState().selfCertificationSuccess};j.prototype.getLoadState=function(){return this.getState().loadState};j.prototype.getManualReviewRequested=function(){return this.getState().manualReviewRequested};j.prototype.getShouldHideBanner=function(k){var l=this.getState().shouldHideBanner;if(this.getState().shouldFetchSelfCertification){c("AdAccountSelfCertificationDataLoader").fetchAccountCertification(k);return true}return l};j.prototype.$AdAccountSelfCertificationStore2=function(k,l,m){c("AdAccountSelfCertificationDataLoader").certifyAccount(l,m);return babelHelpers["extends"]({},k,{loadState:c("AdsLoadState_LEGACY").LOADING})};j.prototype.$AdAccountSelfCertificationStore3=function(k){return babelHelpers["extends"]({},k,{manualReviewRequested:!this.getState().manualReviewRequested})};j.prototype.$AdAccountSelfCertificationStore1=function(k){return babelHelpers["extends"]({},k,{confirmTermsAcceptance:!this.getState().confirmTermsAcceptance})};j.prototype.$AdAccountSelfCertificationStore4=function(k,l){return babelHelpers["extends"]({},k,{loadState:c("AdsLoadState_LEGACY").LOADED,selfCertificationSuccess:l})};function j(){h.apply(this,arguments)}f.exports=new j(c("AdsDataAtom"))}),null);
__d("AudienceInsightsEthnicAffinity",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({ETHNIC_AFFINITY_AFRICAN_AMERICAN:"african_american",ETHNIC_AFFINITY_ASIAN_AMERICAN:"asian_american",ETHNIC_AFFINITY_HISPANIC:"hispanic",ETHNIC_AFFINITY_HISPANIC_BILINGUAL:"hispanic_bilingual",ETHNIC_AFFINITY_HISPANIC_EN_DOMINANT:"hispanic_en_dominant",ETHNIC_AFFINITY_HISPANIC_ES_DOMINANT:"hispanic_es_dominant"})}),null);
__d("BoostedComponentIntegrityUtils",["AdsAPIAdCampaignFields","AdsAPIAdgroupFields","AdsRunStatus"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsAPIAdCampaignFields").TARGETING,i=c("AdsAPIAdgroupFields").STATUS,j=c("AdsAPIAdgroupFields").CREATIVE,k=c("AdsAPIAdgroupFields").NAME,l=c("AdsRunStatus").PAUSED,m=function m(o){var p;return p={},p[i]=l,p[j]=o,p[k]="LWI Ad",p},n=function n(o,p,q,r,s){var t,u=m(p||{}),v=(t={},t[h]=r,t);return q.maybeValidateAd(o,u,v,s)};f.exports={getIntegrityAdgroupSpec:m,validateAd:n}}),null);
__d("AdAccountSelfCertificationDialog.react",["cx","fbt","AdAccountSelfCertificationUIActionType","AdsDataAtom","AdsDialog_DEPRECATED.react","AdsLoadState_LEGACY","AdsReviewIPCUtils","CROWAdDisapprovalReasons","DialogExpansion","DOMContainer.react","immutable","IPCEventName","Layout.react","React","Set","SUIBusinessTheme","SUIButton.react","SUICheckboxInput.react","SUISpinner.react","SUIText.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("Layout.react").FillColumn;j=babelHelpers.inherits(m,c("React").PureComponent);k=j&&j.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=k.constructor).call.apply(n,[this].concat(q)),this.$AdAccountSelfCertificationDialog6=function(){this.$AdAccountSelfCertificationDialog9(c("AdAccountSelfCertificationUIActionType").OPEN_SELF_CERTIFICATION_DIALOG)}.bind(this),this.$AdAccountSelfCertificationDialog5=function(){this.$AdAccountSelfCertificationDialog9(c("AdAccountSelfCertificationUIActionType").CLOSE_SELF_CERTIFICATION_DIALOG)}.bind(this),this.$AdAccountSelfCertificationDialog2=function(){c("AdsReviewIPCUtils").logIPCInteractionEvent(this.props.accountID,new(c("Set"))([c("CROWAdDisapprovalReasons").HOUSING_OR_CREDIT]),c("IPCEventName").UI_ETHNIC_AFFINITY_CERTIFY_CLICK,true,this.props.targetID,this.props.adsCreationFlow);this.$AdAccountSelfCertificationDialog9(c("AdAccountSelfCertificationUIActionType").SUBMIT_SELF_CERTIFICATION_REQUEST)}.bind(this),this.$AdAccountSelfCertificationDialog8=function(){this.$AdAccountSelfCertificationDialog9(c("AdAccountSelfCertificationUIActionType").USER_AGREE_TO_TERMS)}.bind(this),o}m.prototype.render=function(){if(this.props.loadState===c("AdsLoadState_LEGACY").LOADING)return c("React").createElement(c("SUISpinner.react"),{size:"small",theme:c("SUIBusinessTheme")});return this.$AdAccountSelfCertificationDialog1()};m.prototype.$AdAccountSelfCertificationDialog1=function(){if(this.props.hasNewButtons)return c("React").createElement(c("SUIButton.react"),{label:i._("I Agree"),theme:c("SUIBusinessTheme"),use:"confirm",onClick:this.props.hasNewButtons?this.$AdAccountSelfCertificationDialog2:null});var n=c("React").createElement(c("SUIButton.react"),{label:i._("Certify Compliance"),theme:c("SUIBusinessTheme"),use:"confirm"});return c("React").createElement(c("AdsDialog_DEPRECATED.react"),{behaviors:{DialogExpansion:c("DialogExpansion")},buttonSpecs:this.$AdAccountSelfCertificationDialog3(),clickableTrigger:n,hideOnBlur:false,leftFooter:this.$AdAccountSelfCertificationDialog4(),showCloseButton:true,title:i._("Your Certification"),width:850,onCancel:this.$AdAccountSelfCertificationDialog5,onShow:this.$AdAccountSelfCertificationDialog6},this.$AdAccountSelfCertificationDialog7())};m.prototype.$AdAccountSelfCertificationDialog7=function(){if(this.props.content.loadState!==c("AdsLoadState_LEGACY").LOADED)return c("React").createElement(c("SUISpinner.react"),{size:"large",theme:c("SUIBusinessTheme")});var n=this.props.content.content.cloneNode(true);return c("React").createElement("div",null,c("React").createElement(c("Layout.react"),null,c("React").createElement(l,{className:"_1-q9"},c("React").createElement(c("SUIText.react"),{size:"xlarge_DEPRECATED"},i._("Your Certification")))),c("React").createElement("div",{className:"_2pi0"},c("React").createElement(c("DOMContainer.react"),null,n)))};m.prototype.$AdAccountSelfCertificationDialog4=function(){return c("React").createElement(c("SUICheckboxInput.react"),{display:"block",label:i._("I acknowledge that I've read Facebook's policies and will comply with Facebook's policies and applicable laws"),theme:c("SUIBusinessTheme"),value:this.props.confirmTermsAcceptance,onChange:this.$AdAccountSelfCertificationDialog8})};m.prototype.$AdAccountSelfCertificationDialog3=function(){return[{key:"cancelAcceptance",action:"cancel",label:i._("Cancel"),use:"default"},{key:"submitAcceptance",action:"button",disabled:!this.props.confirmTermsAcceptance,label:i._("Confirm"),use:"confirm",onClick:this.$AdAccountSelfCertificationDialog2}]};m.prototype.$AdAccountSelfCertificationDialog9=function(n){var o=c("immutable").Map().set("accountID",this.props.accountID).set("shouldReprocessAds",this.props.shouldReprocessAds);c("AdsDataAtom").handleUpdateFromViewAction({type:n,data:o})};f.exports=m}),null);
__d("AdAccountSelfCertificationDialogContainer.react",["AdAccountSelfCertificationDialog.react","AdAccountSelfCertificationStore","AdsCMSStore","AdsFluxContainer","AdsQEStore","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j="1251196624992263";h=babelHelpers.inherits(k,c("React").Component);i=h&&h.prototype;function k(l){i.constructor.call(this,l)}k.calculateState=function(l,m){var n=m.accountID,o=false;if(n){var p=c("AdsQEStore").get("ethnic_affinity_v2",n);o=p!=null&&p.hasValue()?p.getValueEnforcing().getParamBool("has_new_buttons"):false}return{confirmTermsAcceptance:c("AdAccountSelfCertificationStore").getTermsAccepted(),content:c("AdsCMSStore").get(j),loadState:c("AdAccountSelfCertificationStore").getLoadState(),hasNewButtons:o,selfCertificationSuccess:c("AdAccountSelfCertificationStore").getSelfCertificationSuccess()}};k.getStores=function(){return[c("AdAccountSelfCertificationStore"),c("AdsCMSStore"),c("AdsQEStore")]};k.prototype.render=function(){var l=babelHelpers["extends"]({},this.state,this.props);return c("React").createElement(c("AdAccountSelfCertificationDialog.react"),l)};f.exports=c("AdsFluxContainer").create(k,{pure:true,withProps:true,name:f.id})}),null);
__d("AdsReviewAPIFeedbackRenderingUtils",["cx","DOMContainer.react","List.react","React","isNode"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i={constructUnorderedCMSList:function j(k){var l=[];k.forEach(function(m,n){if(m.content!==undefined){var o=m.content;if(c("isNode")(o))o=c("React").createElement(c("DOMContainer.react"),null,m.content.cloneNode(true));l.push(c("React").createElement("li",{key:n},o))}});return c("React").createElement(c("List.react"),{border:"none",className:(l.length>1?"_5606":"")+" _3-8m",spacing:"small"},l)}};f.exports=i}),null);
__d("AdsReviewAPIBannerBody.react",["AdsHelpTraySpinner.react","AdsLoadState_LEGACY","AdsReviewAPIFeedbackRenderingUtils","Layout.react","Map","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("Layout.react").Column,k=c("Layout.react").FillColumn;h=babelHelpers.inherits(l,c("React").PureComponent);i=h&&h.prototype;l.prototype.render=function(){if(this.props.loadState===c("AdsLoadState_LEGACY").LOADING)return c("React").createElement(c("AdsHelpTraySpinner.react"),null);return c("React").createElement(c("Layout.react"),null,c("React").createElement(k,null,c("React").createElement("div",null,c("AdsReviewAPIFeedbackRenderingUtils").constructUnorderedCMSList(this.props.content))),c("React").createElement(j,null,this.props.children))};function l(){h.apply(this,arguments)}f.exports=l}),null);
__d("BoostedComponentReviewAPIBannerV2.react",["cx","fbt","AdAccountSelfCertificationDialogContainer.react","AdsAdAccountSelfCertificationUiRequestManualReviewDataAction","AdsLoadState_LEGACY","AdsReviewAPIBannerBody.react","AdsReviewAPIUtils","AdsReviewIPCUtils","BoostedComponentAdsReviewAPIActionsV2","BoostedComponentAppID","BUIAdoptionHorizontalLayout.react","CROWAdDisapprovalReasons","IPCEventName","Link.react","React","SUIBusinessTheme","SUIButton.react","SUINotice.react","SUIText.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=function l(n){switch(n){case c("BoostedComponentAppID").BOOSTED_EVENT:return i._("Consider boosting a different event");case c("BoostedComponentAppID").BOOSTED_GROUP:return i._("Consider boosting a different group");case c("BoostedComponentAppID").BOOSTED_PAGELIKE:return i._("Consider promoting a different page");case c("BoostedComponentAppID").BOOSTED_WEBSITE:return i._("Consider promoting a different website");case c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS:return i._("Consider editing this ad");default:return i._("Consider boosting a different post")}};j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;function m(){var n;(n=k.constructor).call.apply(n,[this].concat(Array.prototype.slice.call(arguments)));this.$BoostedComponentReviewAPIBannerV21=function(){c("AdsReviewIPCUtils").logIPCInteractionEvent(this.props.adAccountID,this.props.policies,this.props.manualReviewRequested?c("IPCEventName").UI_ETHNIC_AFFINITY_UNDO_RMR_CLICK:c("IPCEventName").UI_ETHNIC_AFFINITY_RMR_CLICK,true,this.props.targetID);c("AdsAdAccountSelfCertificationUiRequestManualReviewDataAction").dispatch({})}.bind(this);this.$BoostedComponentReviewAPIBannerV21=this.$BoostedComponentReviewAPIBannerV21.bind(this)}m.prototype.componentDidMount=function(){c("BoostedComponentAdsReviewAPIActionsV2").logIntegrityBannerShown(this.props.appID,this.props.targetID,this.props.boostID,this.props.adAccountID,this.props.reviewFeedbackCMS.keys(),this.props.policies,this.props.instanceID)};m.prototype.render=function(){__p&&__p();var n=this.props.reviewFeedbackCMS,o=c("AdsReviewAPIUtils").getLoadState(n);if(o===c("AdsLoadState_LEGACY").ERROR||n.size===0||this.props.hideBanner)return null;var p=void 0;if(this.props.manualReviewRequested)p=this.$BoostedComponentReviewAPIBannerV22();else if(this.props.selfCertificationSuccess)p=this.$BoostedComponentReviewAPIBannerV23();else p=c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:this.$BoostedComponentReviewAPIBannerV24()},c("React").createElement(c("SUIText.react"),{size:"header4",weight:"bold"},this.props.policyTitle),c("React").createElement(c("AdsReviewAPIBannerBody.react"),{content:n,loadState:o}),this.$BoostedComponentReviewAPIBannerV25());return c("React").createElement("div",{className:"_2phz"},p)};m.prototype.$BoostedComponentReviewAPIBannerV24=function(){if(this.props.policies.has(c("CROWAdDisapprovalReasons").HOUSING_OR_CREDIT)){var n=this.props.ethnicAffinityExperimentData;if(!n)return"warning";return n.noTargetingBannerColor==="warning"?"warning":"error"}return"warning"};m.prototype.$BoostedComponentReviewAPIBannerV26=function(){return this.props.policies.has(c("CROWAdDisapprovalReasons").AFFILIATE_PENALTY_LOW)||this.props.policies.has(c("CROWAdDisapprovalReasons").AFFILIATE_PENALTY_MEDIUM)||this.props.policies.has(c("CROWAdDisapprovalReasons").AFFILIATE_PENALTY_HIGH)};m.prototype.$BoostedComponentReviewAPIBannerV27=function(n,o){return c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:o},n)};m.prototype.$BoostedComponentReviewAPIBannerV22=function(){var n=c("React").createElement("div",null,i._("Thanks for letting us know. We'll review your ad after you place your order. {link to undo the manual review request}",[i.param("link to undo the manual review request",c("React").createElement(c("Link.react"),{onClick:this.$BoostedComponentReviewAPIBannerV21},i._("Undo")))]));return this.$BoostedComponentReviewAPIBannerV27(n,"warning")};m.prototype.$BoostedComponentReviewAPIBannerV23=function(){var n=c("React").createElement("div",null,i._("Thanks for confirming that you will comply with {link to see targeting policy}",[i.param("link to see targeting policy",c("React").createElement(c("Link.react"),{href:"https://www.facebook.com/policies/ads/targeting",target:"_blank"},i._("our policy.")))]));return this.$BoostedComponentReviewAPIBannerV27(n,"information")};m.prototype.$BoostedComponentReviewAPIBannerV25=function(){if(!this.props.showSelfCertification&&!this.props.showRequestManualReview)return null;var n=this.props.showSelfCertification?c("React").createElement(c("AdAccountSelfCertificationDialogContainer.react"),{accountID:this.props.adAccountID,targetID:this.props.targetID}):null,o=this.props.ethnicAffinityExperimentData&&this.props.ethnicAffinityExperimentData.hasNewButtons?i._("Not my category"):i._("Request Manual Review"),p=this.props.showRequestManualReview?c("React").createElement(c("SUIButton.react"),{label:o,theme:c("SUIBusinessTheme"),use:"default",onClick:this.$BoostedComponentReviewAPIBannerV21}):null;return c("React").createElement(c("BUIAdoptionHorizontalLayout.react"),null,n,p)};f.exports=m}),null);
__d("PhotoInpaintingLoggingActionTypes",["keyMirrorRecursive"],(function a(b,c,d,e,f,g){"use strict";var h=c("keyMirrorRecursive")({INITIALIZE_LOGGING_SESSION:""},"PhotoInpaintingLoggingActionTypes");f.exports=h}),null);
__d("PhotoInpaintingLoggingEvent",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({INPAINTING_DIALOG_BUTTON_SHOWN:"INPAINTING_DIALOG_BUTTON_SHOWN",INPAINTING_DIALOG_LAUNCHED:"INPAINTING_DIALOG_LAUNCHED",INPAINTING_DIALOG_CLOSED:"INPAINTING_DIALOG_CLOSED",PHOTO_INPAINTING_START:"PHOTO_INPAINTING_START",PHOTO_INPAINTING_END:"PHOTO_INPAINTING_END",USER_SAVED_UPDATED_PHOTO:"USER_SAVED_UPDATED_PHOTO",USER_ABANDONED_UPDATED_PHOTO:"USER_ABANDONED_UPDATED_PHOTO",USER_BOOSTED_POST:"USER_BOOSTED_POST",USER_UPLOADED_PHOTO:"USER_UPLOADED_PHOTO"})}),null);
__d("PhotoTextPenaltyTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(){this.clear()}h.prototype.log=function(){c("GeneratedLoggerUtils").log("logger:PhotoTextPenaltyLoggerConfig",this.$PhotoTextPenaltyTypedLogger1,c("Banzai").BASIC)};h.prototype.logVital=function(){c("GeneratedLoggerUtils").log("logger:PhotoTextPenaltyLoggerConfig",this.$PhotoTextPenaltyTypedLogger1,c("Banzai").VITAL)};h.prototype.clear=function(){this.$PhotoTextPenaltyTypedLogger1={};return this};h.prototype.updateData=function(j){this.$PhotoTextPenaltyTypedLogger1=babelHelpers["extends"]({},this.$PhotoTextPenaltyTypedLogger1,j);return this};h.prototype.setEvent=function(j){this.$PhotoTextPenaltyTypedLogger1.event=j;return this};h.prototype.setInpaintingElapsedMs=function(j){this.$PhotoTextPenaltyTypedLogger1.inpainting_elapsed_ms=j;return this};h.prototype.setPhotoFbid=function(j){this.$PhotoTextPenaltyTypedLogger1.photo_fbid=j;return this};h.prototype.setPhotoTextPenaltyScore=function(j){this.$PhotoTextPenaltyTypedLogger1.photo_text_penalty_score=j;return this};h.prototype.setPhotoURL=function(j){this.$PhotoTextPenaltyTypedLogger1.photo_url=j;return this};h.prototype.setSessionID=function(j){this.$PhotoTextPenaltyTypedLogger1.session_id=j;return this};h.prototype.setVC=function(j){this.$PhotoTextPenaltyTypedLogger1.vc=j;return this};var i={event:true,inpainting_elapsed_ms:true,photo_fbid:true,photo_text_penalty_score:true,photo_url:true,session_id:true,vc:true};f.exports=h}),null);
__d("PhotoInpaintingLoggingStore",["AdsDataAtom","FluxReduceStore","immutable","PhotoInpaintingLoggingActionTypes","PhotoInpaintingLoggingEvent","PhotoTextPenaltyTypedLogger","uuid"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j,k;h=babelHelpers.inherits(l,c("immutable").Record({inpaintingStartTime:null,isInitialized:false,sessionUUID:null}));i=h&&h.prototype;function l(){h.apply(this,arguments)}j=babelHelpers.inherits(m,c("FluxReduceStore"));k=j&&j.prototype;m.prototype.getInitialState=function(){return new l()};m.prototype.reduce=function(n,o){__p&&__p();var p=o.action;switch(p.type){case c("PhotoInpaintingLoggingActionTypes").INITIALIZE_LOGGING_SESSION:return new l({sessionUUID:c("uuid")(),isInitialized:true});case c("PhotoInpaintingLoggingEvent").INPAINTING_DIALOG_BUTTON_SHOWN:new(c("PhotoTextPenaltyTypedLogger"))().setSessionID(n.sessionUUID).setEvent(c("PhotoInpaintingLoggingEvent").INPAINTING_DIALOG_BUTTON_SHOWN).log();break;case c("PhotoInpaintingLoggingEvent").INPAINTING_DIALOG_LAUNCHED:var q=p.textPenaltyScore;new(c("PhotoTextPenaltyTypedLogger"))().setSessionID(n.sessionUUID).setEvent(c("PhotoInpaintingLoggingEvent").INPAINTING_DIALOG_LAUNCHED).setPhotoTextPenaltyScore(q).log();break;case c("PhotoInpaintingLoggingEvent").INPAINTING_DIALOG_CLOSED:new(c("PhotoTextPenaltyTypedLogger"))().setSessionID(n.sessionUUID).setEvent(c("PhotoInpaintingLoggingEvent").INPAINTING_DIALOG_CLOSED).log();return n.set("sessionUUID",c("uuid")());case c("PhotoInpaintingLoggingEvent").PHOTO_INPAINTING_START:new(c("PhotoTextPenaltyTypedLogger"))().setSessionID(n.sessionUUID).setEvent(c("PhotoInpaintingLoggingEvent").PHOTO_INPAINTING_START).log();return n.set("inpaintingStartTime",Date.now());case c("PhotoInpaintingLoggingEvent").PHOTO_INPAINTING_END:var r=p.photoURL,s=p.photoFBID,t=p.textPenaltyScore,u=Date.now(),v=n.inpaintingStartTime!=null?u-n.inpaintingStartTime:null;new(c("PhotoTextPenaltyTypedLogger"))().setSessionID(n.sessionUUID).setEvent(c("PhotoInpaintingLoggingEvent").PHOTO_INPAINTING_END).setInpaintingElapsedMs(v).setPhotoURL(r).setPhotoFbid(s).setPhotoTextPenaltyScore(t).log();break;case c("PhotoInpaintingLoggingEvent").USER_SAVED_UPDATED_PHOTO:new(c("PhotoTextPenaltyTypedLogger"))().setSessionID(n.sessionUUID).setEvent(c("PhotoInpaintingLoggingEvent").USER_SAVED_UPDATED_PHOTO).log();break;case c("PhotoInpaintingLoggingEvent").USER_ABANDONED_UPDATED_PHOTO:new(c("PhotoTextPenaltyTypedLogger"))().setSessionID(n.sessionUUID).setEvent(c("PhotoInpaintingLoggingEvent").USER_ABANDONED_UPDATED_PHOTO).log();break}return n};function m(){j.apply(this,arguments)}f.exports=new m(c("AdsDataAtom"))}),null);
__d("PhotoInpaintingLoggingActions",["AdsDataAtom","PhotoInpaintingLoggingActionTypes","PhotoInpaintingLoggingEvent","PhotoInpaintingLoggingStore"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=false,i=function i(){if(!h){c("PhotoInpaintingLoggingStore");h=true}c("AdsDataAtom").handleUpdateFromViewAction({type:c("PhotoInpaintingLoggingActionTypes").INITIALIZE_LOGGING_SESSION})},j=function j(){c("AdsDataAtom").handleUpdateFromViewAction({type:c("PhotoInpaintingLoggingEvent").INPAINTING_DIALOG_BUTTON_SHOWN})},k=function k(s){c("AdsDataAtom").handleUpdateFromViewAction({type:c("PhotoInpaintingLoggingEvent").INPAINTING_DIALOG_LAUNCHED,textPenaltyScore:s})},l=function l(){c("AdsDataAtom").handleUpdateFromViewAction({type:c("PhotoInpaintingLoggingEvent").INPAINTING_DIALOG_CLOSED})},m=function m(){c("AdsDataAtom").handleUpdateFromViewAction({type:c("PhotoInpaintingLoggingEvent").PHOTO_INPAINTING_START})},n=function n(s,t,u){c("AdsDataAtom").handleUpdateFromViewAction({type:c("PhotoInpaintingLoggingEvent").PHOTO_INPAINTING_END,photoURL:s,photoFBID:t,textPenaltyScore:u})},o=function o(){c("AdsDataAtom").handleUpdateFromViewAction({type:c("PhotoInpaintingLoggingEvent").USER_SAVED_UPDATED_PHOTO})},p=function p(){c("AdsDataAtom").handleUpdateFromViewAction({type:c("PhotoInpaintingLoggingEvent").USER_ABANDONED_UPDATED_PHOTO})},q=function q(){c("AdsDataAtom").handleUpdateFromViewAction({type:c("PhotoInpaintingLoggingEvent").USER_BOOSTED_POST})},r=function r(){c("AdsDataAtom").handleUpdateFromViewAction({type:c("PhotoInpaintingLoggingEvent").USER_UPLOADED_PHOTO})};f.exports={initializeLoggingSession:i,logDialogButtonShown:j,logDialogLaunched:k,logDialogClosed:l,logPhotoInpaintingStart:m,logPhotoInpaintingEnd:n,logUserSavedUpdatedPhoto:o,logUserAbandonedUpdatedPhoto:p,logUserBoostedPost:q,logUserUploadedPhoto:r}}),null);
__d("AdsReviewAPITextOverlayNoticeTextPenaltyButton.react",["ix","fbt","AdsFBIconDownsized.react","BIGAdoptionConfig","BoostedComponentTextPenaltyPhotoSwapState","FileInput.react","Image.react","PhotoInpaintingLoggingActions","React","SUIBusinessTheme","SUIButton.react","asset","fbglyph"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PureComponent,m=h("113756"),n=i._("Upload New Photo");j=babelHelpers.inherits(o,l);k=j&&j.prototype;function o(p){k.constructor.call(this,p);c("PhotoInpaintingLoggingActions").initializeLoggingSession()}o.prototype.componentDidMount=function(){if(this.props.buttonMode==="ALLOW_INPAINTING_DIALOG")c("PhotoInpaintingLoggingActions").logDialogButtonShown()};o.prototype.render=function(){var p=this.props.isEntPost&&this.props.onPhotoUploadCallback;if(!p)return null;if(this.props.buttonMode==="UPLOAD_PHOTO_ONLY")return c("React").createElement(c("FileInput.react"),{onChange:this.props.onPhotoUploadCallback},c("React").createElement(c("SUIButton.react"),{disabled:this.props.textPenaltyPhotoSwapState===c("BoostedComponentTextPenaltyPhotoSwapState").UPLOADING,href:"#",icon:c("React").createElement(c("Image.react"),{src:m}),label:n,theme:c("SUIBusinessTheme")}));else if(this.props.buttonMode==="ALLOW_INPAINTING_DIALOG")return c("React").createElement(c("SUIButton.react"),{href:{url:"#"},icon:c("React").createElement(c("AdsFBIconDownsized.react"),{src:c("BIGAdoptionConfig").ads_fbicon_adoption?h("363753"):h("113739")}),label:i._("Edit Photo"),theme:c("SUIBusinessTheme"),onClick:this.props.onTextInpaintingDialogButtonClick});return null};f.exports=o}),null);
__d("AdsTabbedHoverCard.react",["ix","cx","invariant","AdsFBIconDownsized.react","BIGAdoptionConfig","ContextualLayerAutoFlip","DOM","Image.react","Link.react","React","ReactDOM","ResponsiveBlock.react","ScrollableArea.react","SUIBusinessTheme","SUIText.react","WheelEventContain.react","XUICard.react","XUIContextualDialog.react","XUIPageNavigation.react","asset","expectationViolation","fbglyph","joinClasses"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m,n,o,p,q=c("React").Children,r=c("React").PureComponent,s=c("XUIPageNavigation.react").Group,t=c("XUIPageNavigation.react").Item,u=function u(y){return y.children};k=babelHelpers.inherits(v,r);l=k&&k.prototype;v.prototype.render=function(){var y=this.props,z=y.children,A=y.className,B=babelHelpers.objectWithoutProperties(y,["children","className"]);return c("React").createElement(c("SUIText.react"),babelHelpers["extends"]({},B,{className:c("joinClasses")("_131q",A),display:"truncate",theme:c("SUIBusinessTheme")}),z)};function v(){k.apply(this,arguments)}v.defaultProps=babelHelpers["extends"]({},c("SUIText.react").defaultProps,{shade:"light",size:"meta1"});m=babelHelpers.inherits(w,r);n=m&&m.prototype;w.prototype.render=function(){var y=this.props,z=y.children,A=y.className,B=babelHelpers.objectWithoutProperties(y,["children","className"]);return c("React").createElement(c("SUIText.react"),babelHelpers["extends"]({},B,{className:c("joinClasses")("_131r",A),theme:c("SUIBusinessTheme")}),z)};function w(){m.apply(this,arguments)}w.defaultProps=babelHelpers["extends"]({},c("SUIText.react").defaultProps,{display:"truncate",size:"medium_DEPRECATED",weight:"bold"});o=babelHelpers.inherits(x,r);p=o&&o.prototype;function x(){__p&&__p();var y,z;for(var A=arguments.length,B=Array(A),C=0;C<A;C++)B[C]=arguments[C];return z=(y=p.constructor).call.apply(y,[this].concat(B)),this.state={activeTab:"0"},this.$AdsTabbedHoverCard6=function(){var D=this.contentComponent.getArea();if(D==null||this.rootElement==null)return;var E=this.rootElement.getBoundingClientRect();if(!E.height)return;var F=c("DOM").find(D.getElement(),"div.uiScrollableAreaContent"),G=F.getBoundingClientRect(),H=Math.min(G.bottom-E.top,this.props.maxHeight);this.setState({height:H})}.bind(this),this.$AdsTabbedHoverCard8=function(D){var E=this.contentComponent.getArea();E&&E.scrollToTop();this.setState({activeTab:D});this.props.onTabClick&&this.props.onTabClick(D)}.bind(this),this.$AdsTabbedHoverCard4=function(D){if(D&&this.state.height==null)this.$AdsTabbedHoverCard1();this.props.onToggle&&this.props.onToggle(D)}.bind(this),this.$AdsTabbedHoverCard7=function(D){this.contentComponent=D;var E=c("ReactDOM").findDOMNode(D);if(E instanceof HTMLElement)this.contentElement=E}.bind(this),this.$AdsTabbedHoverCard5=function(D){var E=c("ReactDOM").findDOMNode(D);if(E instanceof HTMLElement)this.rootElement=E}.bind(this),z}x.prototype.componentDidMount=function(){this.$AdsTabbedHoverCard1()};x.prototype.componentWillReceiveProps=function(y){if(this.props.shown!==y.shown)this.$AdsTabbedHoverCard2()};x.prototype.render=function(){var y=this.props,z=y.className,A=y.maxHeight,B=y.onClick,C=y.onMouseEnter,D=y.onMouseLeave,E=y.sticky,F=babelHelpers.objectWithoutProperties(y,["className","maxHeight","onClick","onMouseEnter","onMouseLeave","sticky"]),G=this.state,H=G.contentMaxHeight,I=G.height,J=this.$AdsTabbedHoverCard3(),K=J.content,L=J.header,M=J.navigation,N=E?c("React").createElement(c("Link.react"),{className:"_131s",onClick:this.props.onHide},c("React").createElement(c("AdsFBIconDownsized.react"),{src:c("BIGAdoptionConfig").ads_fbicon_adoption?h("363583"):h("113105")})):null;if(!K)return null;return c("React").createElement(c("XUIContextualDialog.react"),babelHelpers["extends"]({},F,{onToggle:this.$AdsTabbedHoverCard4}),c("React").createElement(c("XUICard.react"),{className:c("joinClasses")("_131t"+(E?" _131u":"")+" _5vx1",z),ref:this.$AdsTabbedHoverCard5,style:{height:I,maxHeight:A},onClick:B,onMouseEnter:C,onMouseLeave:D},c("React").createElement(c("WheelEventContain.react"),null,c("React").createElement("div",{className:"_131v"},L,N),M,c("React").createElement(c("ResponsiveBlock.react"),{onResize:this.$AdsTabbedHoverCard6},c("React").createElement(c("ScrollableArea.react"),{maxHeight:H,ref:this.$AdsTabbedHoverCard7,shadow:false},c("React").createElement("div",{className:"_5_hl"},K))))))};x.prototype.$AdsTabbedHoverCard3=function(){__p&&__p();var y=[],z=[],A=[];q.forEach(this.props.children,function(B){__p&&__p();if(!B)return;switch(B.type){case u:y.push(B);break;case v:z.length<1||j(0);z.push(B);break;case w:A.length<2||j(0);A.push(B);break;default:c("expectationViolation")("Invalid child of type %s",B.type)}});return{content:y[Number(this.state.activeTab)],header:A.concat(z),navigation:this.$AdsTabbedHoverCard9(y)}};x.prototype.$AdsTabbedHoverCard9=function(y){if(y.length===1)return null;var z=this.props,A=z.minNavItemWidth,B=z.width,C=B-(y.length-1)*A,D=y.map(function(E,F){var G=c("React").createElement("span",null,E.props.title);return c("React").createElement(t,{className:"_131x",key:String(F),style:{maxWidth:C}},G)});return c("React").createElement(c("XUIPageNavigation.react"),{className:"_131y",defaultActiveTabKey:this.state.activeTab,size:"small",onTabClick:this.$AdsTabbedHoverCard8},c("React").createElement(s,{className:"_1323",shouldCalculateVisibleTabs:false},D))};x.prototype.$AdsTabbedHoverCard2=function(){this.setState({activeTab:"0"})};x.prototype.$AdsTabbedHoverCard1=function(){if(this.rootElement==null)return;var y=this.rootElement.getBoundingClientRect();if(!y.height)return;if(this.contentElement==null)return;var z=this.contentElement.getBoundingClientRect(),A=this.props.maxHeight,B=A-(z.top-y.top);this.setState({contentMaxHeight:B,height:y.height})};x.defaultProps={alignment:"right",behaviors:{ContextualLayerAutoFlip:c("ContextualLayerAutoFlip")},maxHeight:290,minNavItemWidth:70,offsetY:-4,position:"below",shown:false,width:320};x.Content=u;x.Subtitle=v;x.Title=w;f.exports=x}),null);
__d("AdsTextPenaltyRequestManualReviewConfirmation.react",["cx","fbt","BUIAdoptionUtils","DOMContainer.react","React","SUIBusinessTheme","SUINotice.react","SUIText.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k;j=babelHelpers.inherits(l,c("React").PureComponent);k=j&&j.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=k.constructor).call.apply(m,[this].concat(p)),this.state={},n}l.prototype.render=function(){if(!this.props.imageReviewRequested)return null;var m=this.$AdsTextPenaltyRequestManualReviewConfirmation1();return c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:c("BUIAdoptionUtils").convertUseToType(m.bannerUse)},m.bannerTitle,m.bannerContent)};l.prototype.$AdsTextPenaltyRequestManualReviewConfirmation1=function(){var m="recommend",n=this.$AdsTextPenaltyRequestManualReviewConfirmation2(),o=this.$AdsTextPenaltyRequestManualReviewConfirmation3();return{bannerContent:n,bannerTitle:o,bannerUse:m}};l.prototype.$AdsTextPenaltyRequestManualReviewConfirmation2=function(){if(!this.props.exceptionCMSContent||!this.props.exceptionCMSContent.content)return c("React").createElement("div",{className:"_3-8m"},this.$AdsTextPenaltyRequestManualReviewConfirmation4());return c("React").createElement("div",null,c("React").createElement(c("DOMContainer.react"),null,this.props.exceptionCMSContent.content.cloneNode(true)))};l.prototype.$AdsTextPenaltyRequestManualReviewConfirmation4=function(){return i._("You've requested a review of your boosted post's image text. We'll update you within 24 hours if we think your image has too much text. If your image text is fine, you won't be notified and your boosted post will keep running.")};l.prototype.$AdsTextPenaltyRequestManualReviewConfirmation3=function(){if(!this.props.exceptionTitleCMSContent)return null;return c("React").createElement(c("SUIText.react"),{className:"_3-8m",size:"medium_DEPRECATED",theme:c("SUIBusinessTheme"),weight:"bold"},c("React").createElement("div",null,c("React").createElement(c("DOMContainer.react"),null,this.props.exceptionTitleCMSContent.content.cloneNode(true))))};f.exports=l}),null);
__d("PhotoInpaintingActionTypes",["keyMirrorRecursive"],(function a(b,c,d,e,f,g){"use strict";var h=c("keyMirrorRecursive")({BEGIN_DIALOG_LOAD:"",FINISH_DIALOG_LOAD:"",BEGIN_UPLOAD_IMAGE:"",FINISH_UPLOAD_IMAGE:"",FINISH_UPLOAD_IMAGE_FAILURE:"",BEGIN_SELECT_BOUNDING_BOX:"",FINISH_SELECT_BOUNDING_BOX:"",BEGIN_INPAINTING:"",FINISH_INPAINTING:"",BEGIN_COMMIT_CHANGES:"",FINISH_COMMIT_CHANGES:"",BEGIN_REVERT_ALL_CHANGES:"",FINISH_REVERT_ALL_CHANGES:""},"PhotoInpaintingActionTypes");f.exports=h}),null);
__d("XPageInpaintingPhotoUploadController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/photo_inpainting/photo_upload/",{})}),null);
__d("XPagePostPhotoInpaintingController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/photo_inpainting/",{})}),null);
__d("PhotoInpaintingActions",["Promise","AdsDataAtom","AsyncRequest","FileInputUploader","immutable","PhotoInpaintingActionTypes","PhotoInpaintingLoggingActions","XPageInpaintingPhotoUploadController","XPagePostPhotoInpaintingController","idx"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=function h(o){c("AdsDataAtom").handleUpdateFromUnknownSource({type:c("PhotoInpaintingActionTypes").FINISH_DIALOG_LOAD,textStatus:o})},i=function i(o){c("AdsDataAtom").handleUpdateFromViewAction({type:c("PhotoInpaintingActionTypes").FINISH_SELECT_BOUNDING_BOX,boundingBox:o})},j=function j(o,p,q,r,s,t){return new(c("Promise"))(function(u,v){new(c("AsyncRequest"))().setURI(c("XPagePostPhotoInpaintingController").getURIBuilder().getURI()).setHandler(function(w){var x=w.payload,y=x.uri,z=x.everstoreID,A=x.textStatus,B=x.textPenaltyScore;u({uri:y,everstoreID:z,textStatus:A,textPenaltyScore:B})}).setErrorHandler(function(w){v(w)}).setData({image_display_height:o,image_display_width:p,image_original_height:q,image_original_width:r,url:s,bounding_boxes:JSON.stringify(t)}).send()})},k=function k(o,p,q,r,s,t){c("AdsDataAtom").handleUpdateFromViewAction({type:c("PhotoInpaintingActionTypes").BEGIN_INPAINTING});c("PhotoInpaintingLoggingActions").logPhotoInpaintingStart();j(o,p,q,r,s,t).then(function(u){var v=u.uri,w=u.everstoreID,x=u.textStatus,y=u.textPenaltyScore;c("PhotoInpaintingLoggingActions").logPhotoInpaintingEnd(v,null,y);c("AdsDataAtom").handleUpdateFromServerResponse({type:c("PhotoInpaintingActionTypes").FINISH_INPAINTING,uri:v,everstoreID:w,textStatus:x})},function(u){throw u}).done()},l=function l(){c("AdsDataAtom").handleUpdateFromViewAction({type:c("PhotoInpaintingActionTypes").FINISH_REVERT_ALL_CHANGES})},m=function m(){c("AdsDataAtom").handleUpdateFromViewAction({type:c("PhotoInpaintingActionTypes").BEGIN_DIALOG_LOAD})},n=function n(o){__p&&__p();var p,q=(p=o)!=null?(p=p.files)!=null?p[0]:p:p;if(!q)return;c("AdsDataAtom").handleUpdateFromViewAction({type:c("PhotoInpaintingActionTypes").BEGIN_UPLOAD_IMAGE});var r=c("XPageInpaintingPhotoUploadController").getURIBuilder().getURI(),s=new(c("FileInputUploader"))(o).setURI(r).setFiles({file:q});s.subscribe("success",function(t,u){var v=u.response.getPayload(),r=v.uri;c("AdsDataAtom").handleUpdateFromViewAction({type:c("PhotoInpaintingActionTypes").FINISH_UPLOAD_IMAGE,uploadedImageURI:r})});s.subscribe("failure",function(t,u){c("AdsDataAtom").handleUpdateFromViewAction({type:c("PhotoInpaintingActionTypes").FINISH_UPLOAD_IMAGE_FAILURE})});s.send()};f.exports={addBoundingBox:i,beginDialogLoad:m,finishDialogLoad:h,inpaintImage:k,undoInpainting:l,uploadImage:n}}),null);
__d("PhotoInpaintingCanvas.react",["ix","cssVar","cx","DOM","DOMContainer.react","DOMDimensions","Event","Image.react","immutable","PhotoInpaintingActions","React","Vector","asset","ge","nullthrows","uuid"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("React").PureComponent,n=function n(u){var v=u.enableUndoButton?u.onClick:function(x){},w=u.enableUndoButton?h("396732"):h("396731");return c("React").createElement("div",{className:(u.enableUndoButton?"_4jll":"")+" _4jlm",onClick:v},c("React").createElement("div",{className:"_4jln"},c("React").createElement("svg",{className:"_4jlo",height:"32",width:"32"},c("React").createElement("circle",{cx:"16",cy:"16",fill:"#000000",opacity:"0.75",r:"16"})),c("React").createElement(c("Image.react"),{className:"_4jlp",src:w})))},o=function o(u,v,w){var x=c("nullthrows")(u.getContext&&u.getContext("2d"));x.globalAlpha=.6;x.fillStyle=w;x.fillRect(v.pointOne.x,v.pointOne.y,v.pointTwo.x-v.pointOne.x,v.pointTwo.y-v.pointOne.y);x.stroke();x.globalAlpha=1},p=function p(u,v,w){o(u,v,w);var x=c("nullthrows")(u.getContext&&u.getContext("2d"));x.strokeStyle=w;x.lineWidth="2";x.strokeRect(v.pointOne.x,v.pointOne.y,v.pointTwo.x-v.pointOne.x,v.pointTwo.y-v.pointOne.y);x.stroke()},q=function q(u){if(!u.enable)return null;var v=c("DOM").create("canvas",{height:u.renderedImageHeight,width:u.renderedImageWidth});o(v,{pointOne:{x:0,y:0},pointTwo:{x:u.renderedImageWidth,y:u.renderedImageHeight}},"#000000");return c("React").createElement("div",{className:"_63an _63ao"},c("React").createElement(c("DOMContainer.react"),null,v))},r=function r(u){var v=c("DOM").create("canvas",{height:u.renderedImageHeight,width:u.renderedImageWidth});u.boundingBoxes.forEach(function(w){p(v,w,"#FA3E3E")});return c("React").createElement("div",{className:"_63an _63ao"},c("React").createElement(c("DOMContainer.react"),null,v))},s=function s(u){__p&&__p();if(!u.enableDrawingBoxes)return null;var v=c("DOM").create("canvas",{height:u.renderedImageHeight,width:u.renderedImageWidth}),w=false,x={x:-1,y:-1};c("Event").listen(v,"mousedown",function(event){w=true;event.preventDefault();var z=c("Vector").getEventPosition(event).sub(c("Vector").getElementPosition(v));x={x:z.x,y:z.y}});c("Event").listen(v,"mousemove",function(event){if(w){event.preventDefault();var z=c("Vector").getEventPosition(event).sub(c("Vector").getElementPosition(v)),A=c("nullthrows")(v.getContext&&v.getContext("2d"));A.clearRect(0,0,u.renderedImageWidth,u.renderedImageHeight);p(v,{pointOne:x,pointTwo:{x:z.x,y:z.y}},"#FA3E3E")}});var y=function y(event){__p&&__p();if(w){w=false;event.preventDefault();event.stopPropagation();var z=c("Vector").getEventPosition(event).sub(c("Vector").getElementPosition(v));if(x.x!==-1&&x.y!==-1)u.onBoundingBoxCommit({pointOne:x,pointTwo:{x:Math.min(z.x,u.renderedImageWidth),y:Math.min(z.y,u.renderedImageHeight)}});var A=c("nullthrows")(v.getContext&&v.getContext("2d"));A.clearRect(0,0,u.renderedImageWidth,u.renderedImageHeight);x={x:-1,y:-1}}};c("Event").listen(v,"mouseup",function(event){y(event)});u.mouseUpNotifier(function(event){y(event)});return c("React").createElement("div",{className:"_63an _63ap"},c("React").createElement(c("DOMContainer.react"),null,v))};k=babelHelpers.inherits(t,m);l=k&&k.prototype;function t(u){l.constructor.call(this,u);this.$PhotoInpaintingCanvas1=c("uuid")();this.$PhotoInpaintingCanvas2=function(){var v=c("ge")(this.$PhotoInpaintingCanvas1),w=c("DOMDimensions").getElementDimensions(v);this.setState({renderedImageHeight:w.height,renderedImageWidth:w.width});this.props.onImageDimensionsSet(w.height,w.width)}.bind(this);this.state={renderedImageHeight:-1,renderedImageWidth:-1}}t.prototype.$PhotoInpaintingCanvas3=function(u){c("PhotoInpaintingActions").addBoundingBox(u)};t.prototype.$PhotoInpaintingCanvas4=function(event){c("PhotoInpaintingActions").undoInpainting()};t.prototype.render=function(){return c("React").createElement("div",{className:"_63aq"},c("React").createElement(n,{enableUndoButton:this.props.enableUndoButton,onClick:this.$PhotoInpaintingCanvas4}),c("React").createElement(c("Image.react"),{id:this.$PhotoInpaintingCanvas1,onLoad:this.$PhotoInpaintingCanvas2,src:this.props.imageURI.toString(),width:this.props.width}),c("React").createElement(r,{boundingBoxes:this.props.boundingBoxes,renderedImageHeight:this.state.renderedImageHeight,renderedImageWidth:this.state.renderedImageWidth}),c("React").createElement(s,{enableDrawingBoxes:this.props.enableDrawingBoxes,mouseUpNotifier:this.props.mouseUpNotifier,onBoundingBoxCommit:this.$PhotoInpaintingCanvas3,renderedImageHeight:this.state.renderedImageHeight,renderedImageWidth:this.state.renderedImageWidth}),c("React").createElement(q,{enable:this.props.enableDarkenMask,renderedImageHeight:this.state.renderedImageHeight,renderedImageWidth:this.state.renderedImageWidth}))};f.exports=t}),null);
__d("PhotoInpaintingStatus",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({TOO_MUCH_TEXT:"TOO_MUCH_TEXT",REMOVING_TEXT:"REMOVING_TEXT",TEXT_OK:"TEXT_OK",UPLOADING_IMAGE:"UPLOADING_IMAGE",UPLOAD_IMAGE_ERROR:"UPLOAD_IMAGE_ERROR",USING_UPLOADED_IMAGE:"USING_UPLOADED_IMAGE"})}),null);
__d("PhotoInpaintingBody.react",["ix","cx","fbt","Event","Image.react","immutable","LeftRight.react","PhotoInpaintingActions","PhotoInpaintingCanvas.react","PhotoInpaintingStatus","React","ReactDOM","SUIBusinessTheme","SUISpinner.react","XUIButton.react","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("React").PureComponent,n=h("117904"),o=h("123367"),p=j._("Uploaded new image."),q=j._("Use your cursor to select text and automatically remove it."),r=j._("Erase Text From Your Image"),s=j._("You need to remove more text."),t=j._("Removing text..."),u=h("119366"),v=j._("Looks good! You're ready to boost."),w=j._("Uploading image."),x=j._("Remove Text"),y=function y(){return c("React").createElement("div",{className:"_3xxr"},q)},z=function z(){return c("React").createElement("div",{className:"_3xxs"},r)},A=function A(D){var E=D.photoInpaintingStatus===c("PhotoInpaintingStatus").TOO_MUCH_TEXT?c("React").createElement("div",null,c("React").createElement(c("Image.react"),{className:"_3xxu",src:n}),c("React").createElement("div",{className:"_3phh _2pir"},s)):D.photoInpaintingStatus===c("PhotoInpaintingStatus").REMOVING_TEXT?c("React").createElement("div",null,c("React").createElement(c("SUISpinner.react"),{size:"small",theme:c("SUIBusinessTheme")}),c("React").createElement("div",{className:"_3xzf _2pir"},t)):D.photoInpaintingStatus===c("PhotoInpaintingStatus").TEXT_OK?c("React").createElement("div",null,c("React").createElement(c("Image.react"),{className:"_3xxu",src:u}),c("React").createElement("div",{className:"_3xzg _2pir"},v)):D.photoInpaintingStatus===c("PhotoInpaintingStatus").UPLOADING_IMAGE?c("React").createElement("div",null,c("React").createElement(c("SUISpinner.react"),{size:"small",theme:c("SUIBusinessTheme")}),c("React").createElement("div",{className:"_29cv _2pir"},w)):D.photoInpaintingStatus===c("PhotoInpaintingStatus").USING_UPLOADED_IMAGE?c("React").createElement("div",null,c("React").createElement(c("Image.react"),{className:"_3xxu",src:o}),c("React").createElement("div",{className:"_29cv _2pir"},p)):D.photoInpaintingStatus===c("PhotoInpaintingStatus").UPLOAD_IMAGE_ERROR?c("React").createElement("div",null,c("React").createElement(c("Image.react"),{className:"_3xxu",src:h("117904")}),c("React").createElement("div",{className:"_3phh _2pir"},j._("There was an issue uploading your image."))):null;return E},B=function B(D){return c("React").createElement("div",{className:"_3xzh"},c("React").createElement(c("LeftRight.react"),null,c("React").createElement(A,{photoInpaintingStatus:D.photoInpaintingStatus}),c("React").createElement(c("XUIButton.react"),{disabled:D.previewButtonDisabled,label:x,onClick:D.onRemoveText})))};k=babelHelpers.inherits(C,m);l=k&&k.prototype;function C(D){__p&&__p();l.constructor.call(this,D);this.$PhotoInpaintingBody1=null;this.$PhotoInpaintingBody2=function(E){this.$PhotoInpaintingBody1=E}.bind(this);this.$PhotoInpaintingBody3=function(E,F){this.setState({imageDisplayDimensionsKnown:true,imageDisplayHeight:E,imageDisplayWidth:F})}.bind(this);this.$PhotoInpaintingBody4=function(){if(this.state.imageHeight!==-1&&this.state.imageWidth!==-1)c("PhotoInpaintingActions").inpaintImage(this.state.imageDisplayHeight,this.state.imageDisplayWidth,this.props.imageOriginalHeight,this.props.imageOriginalWidth,this.props.imageURI,this.props.boundingBoxes)}.bind(this);this.state={imageDisplayDimensionsKnown:false,imageDisplayHeight:-1,imageDisplayWidth:-1}}C.prototype.componentDidMount=function(){var D=c("ReactDOM").findDOMNode(this);if(D)c("Event").listen(D,"mouseup",function(event){this.$PhotoInpaintingBody1&&this.$PhotoInpaintingBody1(event)}.bind(this))};C.prototype.$PhotoInpaintingBody5=function(){return(this.props.boundingBoxes.size>0||this.props.useOverrideImage)&&this.$PhotoInpaintingBody6()||this.props.textStatus===c("PhotoInpaintingStatus").USING_UPLOADED_IMAGE};C.prototype.$PhotoInpaintingBody6=function(){return this.props.textStatus===c("PhotoInpaintingStatus").TOO_MUCH_TEXT||this.props.textStatus===c("PhotoInpaintingStatus").TEXT_OK};C.prototype.$PhotoInpaintingBody7=function(){return!this.state.imageDisplayDimensionsKnown||this.props.boundingBoxes.size===0||this.props.textStatus===c("PhotoInpaintingStatus").REMOVING_TEXT||this.props.textStatus===c("PhotoInpaintingStatus").UPLOADING_IMAGE||this.props.textStatus===c("PhotoInpaintingStatus").USING_UPLOADED_IMAGE};C.prototype.$PhotoInpaintingBody8=function(){return this.props.textStatus===c("PhotoInpaintingStatus").REMOVING_TEXT||this.props.textStatus===c("PhotoInpaintingStatus").UPLOADING_IMAGE};C.prototype.render=function(){return c("React").createElement("div",{className:"_3xzi"},c("React").createElement(z,null),c("React").createElement(y,null),c("React").createElement(c("PhotoInpaintingCanvas.react"),{boundingBoxes:this.props.boundingBoxes,enableDarkenMask:this.$PhotoInpaintingBody8(),enableDrawingBoxes:this.$PhotoInpaintingBody6(),enableUndoButton:this.$PhotoInpaintingBody5(),imageURI:this.props.imageURI,mouseUpNotifier:this.$PhotoInpaintingBody2,onImageDimensionsSet:this.$PhotoInpaintingBody3,width:476}),c("React").createElement(B,{onRemoveText:this.$PhotoInpaintingBody4,photoInpaintingStatus:this.props.textStatus,previewButtonDisabled:this.$PhotoInpaintingBody7()}))};f.exports=C}),null);
__d("PhotoInpaintingFluxStore",["AdsDataAtom","FluxReduceStore","immutable","PhotoInpaintingActionTypes","PhotoInpaintingStatus"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j,k;h=babelHelpers.inherits(l,c("immutable").Record({boundingBoxes:c("immutable").List(),everstoreID:null,overrideImageURI:null,textStatus:null,useOverrideImage:false}));i=h&&h.prototype;function l(){h.apply(this,arguments)}j=babelHelpers.inherits(m,c("FluxReduceStore"));k=j&&j.prototype;m.prototype.getInitialState=function(){return new l()};m.prototype.reduce=function(n,o){__p&&__p();var p,q=o.action;switch(q.type){case c("PhotoInpaintingActionTypes").BEGIN_DIALOG_LOAD:return new l();case c("PhotoInpaintingActionTypes").FINISH_DIALOG_LOAD:var r=q.textStatus;return n.set("textStatus",r);case c("PhotoInpaintingActionTypes").BEGIN_UPLOAD_IMAGE:return n.set("textStatus",c("PhotoInpaintingStatus").UPLOADING_IMAGE);case c("PhotoInpaintingActionTypes").FINISH_UPLOAD_IMAGE:var s=q.uploadedImageURI;return n.withMutations(function(v){v.set("useOverrideImage",true).set("textStatus",c("PhotoInpaintingStatus").USING_UPLOADED_IMAGE).set("overrideImageURI",s)});case c("PhotoInpaintingActionTypes").FINISH_UPLOAD_IMAGE_FAILURE:return n.withMutations(function(v){v.set("useOverrideImage",false).set("textStatus",c("PhotoInpaintingStatus").UPLOAD_IMAGE_ERROR)});case c("PhotoInpaintingActionTypes").BEGIN_SELECT_BOUNDING_BOX:break;case c("PhotoInpaintingActionTypes").FINISH_SELECT_BOUNDING_BOX:var t=q.boundingBox,u=n.get("boundingBoxes");return n.set("boundingBoxes",u.push(t));case c("PhotoInpaintingActionTypes").BEGIN_INPAINTING:return n.set("textStatus",c("PhotoInpaintingStatus").REMOVING_TEXT);case c("PhotoInpaintingActionTypes").FINISH_INPAINTING:var p=function(){var v=q.uri,w=q.everstoreID,r=q.textStatus;return{v:n.withMutations(function(x){x.set("boundingBoxes",c("immutable").List()).set("everstoreID",w).set("overrideImageURI",v).set("useOverrideImage",true).set("textStatus",r)})}}();if(typeof p==="object")return p.v;case c("PhotoInpaintingActionTypes").BEGIN_COMMIT_CHANGES:case c("PhotoInpaintingActionTypes").FINISH_COMMIT_CHANGES:case c("PhotoInpaintingActionTypes").BEGIN_REVERT_ALL_CHANGES:break;case c("PhotoInpaintingActionTypes").FINISH_REVERT_ALL_CHANGES:return n.withMutations(function(v){v.set("boundingBoxes",c("immutable").List()).set("useOverrideImage",false).set("textStatus",c("PhotoInpaintingStatus").TOO_MUCH_TEXT)});default:return n}return n};function m(){j.apply(this,arguments)}f.exports=new m(c("AdsDataAtom"))}),null);
__d("PhotoInpaintingBodyContainer.react",["FluxContainer","immutable","PhotoInpaintingBody.react","PhotoInpaintingFluxStore","React","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("React").PropTypes;h=babelHelpers.inherits(k,c("React").PureComponent);i=h&&h.prototype;k.getStores=function(){return[c("PhotoInpaintingFluxStore")]};k.calculateState=function(){var l=c("PhotoInpaintingFluxStore").getState();return{boundingBoxes:l.get("boundingBoxes"),overrideImageURI:l.get("overrideImageURI"),textStatus:l.get("textStatus"),useOverrideImage:l.get("useOverrideImage")}};k.prototype.render=function(){var l=this.state.useOverrideImage?this.state.overrideImageURI:this.props.imageURI;return c("React").createElement(c("PhotoInpaintingBody.react"),{boundingBoxes:this.state.boundingBoxes,imageOriginalHeight:this.props.imageOriginalHeight,imageOriginalWidth:this.props.imageOriginalWidth,imageURI:c("nullthrows")(l),textStatus:this.state.textStatus,useOverrideImage:this.state.useOverrideImage})};function k(){h.apply(this,arguments)}k.propTypes={imageOriginalHeight:j.number,imageURI:j.string,imageOriginalWidth:j.number};f.exports=c("FluxContainer").create(k)}),null);
__d("PhotoInpaintingFooter.react",["ix","cx","fbt","FileInput.react","Image.react","PhotoInpaintingActions","PhotoInpaintingLoggingActions","React","XUIButton.react","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("React").PropTypes,n=c("React").PureComponent,o=function o(q){c("PhotoInpaintingLoggingActions").logUserUploadedPhoto();c("PhotoInpaintingActions").uploadImage(q.target)};k=babelHelpers.inherits(p,n);l=k&&k.prototype;p.prototype.render=function(){return c("React").createElement("div",{className:"_wak"},c("React").createElement("div",{className:"_wal"},c("React").createElement(c("FileInput.react"),{onChange:o},c("React").createElement(c("XUIButton.react"),{disabled:this.props.disableButtons,href:"#",image:c("React").createElement(c("Image.react"),{src:h("113757")}),label:j._("Upload New Image"),size:"xxlarge"}))),c("React").createElement(c("XUIButton.react"),{disabled:this.props.disableButtons,label:j._("Save"),onClick:this.props.onSave,size:"xxlarge",use:"confirm"}))};function p(){k.apply(this,arguments)}p.propTypes={disableButtons:m.bool,onSave:m.func};f.exports=p}),null);
__d("PhotoInpaintingHeader.react",["cx","fbt","LeftRight.react","React","XUICloseButton.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes,m=c("React").PureComponent;j=babelHelpers.inherits(n,m);k=j&&j.prototype;n.prototype.render=function(){return c("React").createElement("div",{className:"_29uy _2pi0"},c("React").createElement(c("LeftRight.react"),null,c("React").createElement("div",{className:"_29uz"},i._("Edit Image")),c("React").createElement("div",{className:"_29ux"},c("React").createElement(c("XUICloseButton.react"),{onClick:this.props.onXOut,small:"medium"}))))};function n(){j.apply(this,arguments)}n.propTypes={onXOut:l.func};f.exports=n}),null);
__d("PhotoInpaintingDialog.react",["LayerFadeOnHide","LayerFadeOnShow","PhotoInpaintingBodyContainer.react","PhotoInpaintingFooter.react","PhotoInpaintingHeader.react","React","XUICard.react","XUICardSection.react","XUIDialog.react","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("React").PropTypes;h=babelHelpers.inherits(k,c("React").PureComponent);i=h&&h.prototype;k.prototype.render=function(){if(!this.props.isShown||!this.props.imageOriginalHeight||!this.props.imageOriginalWidth||!this.props.imageURI)return null;return c("React").createElement(c("XUIDialog.react"),{behaviors:{LayerFadeOnHide:c("LayerFadeOnHide"),LayerFadeOnShow:c("LayerFadeOnShow")},isStrictlyControlled:true,label:"Dialog that contains the photo inpainting container",onHide:this.props.onXOut,shown:this.props.isShown,width:636},c("React").createElement(c("XUICard.react"),null,c("React").createElement(c("XUICardSection.react"),null,c("React").createElement(c("PhotoInpaintingHeader.react"),{onXOut:this.props.onXOut})),c("React").createElement(c("XUICardSection.react"),null,c("React").createElement(c("PhotoInpaintingBodyContainer.react"),{imageOriginalHeight:c("nullthrows")(this.props.imageOriginalHeight),imageOriginalWidth:c("nullthrows")(this.props.imageOriginalWidth),imageURI:c("nullthrows")(this.props.imageURI)})),c("React").createElement(c("XUICardSection.react"),null,c("React").createElement(c("PhotoInpaintingFooter.react"),{disableButtons:this.props.disableFooterButtons,onSave:this.props.onSave}))))};function k(){h.apply(this,arguments)}k.propTypes={disableFooterButtons:j.bool,imageOriginalHeight:j.number,imageOriginalWidth:j.number,imageURI:j.string,isShown:j.bool,onSave:j.func,onXOut:j.func};f.exports=k}),null);
__d("PhotoInpaintingDialogContainer.react",["FluxContainer","PhotoInpaintingDialog.react","PhotoInpaintingFluxStore","PhotoInpaintingLoggingActions","PhotoInpaintingStatus","React","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("React").PropTypes;h=babelHelpers.inherits(k,c("React").PureComponent);i=h&&h.prototype;function k(){__p&&__p();var l,m;for(var n=arguments.length,o=Array(n),p=0;p<n;p++)o[p]=arguments[p];return m=(l=i.constructor).call.apply(l,[this].concat(o)),this.$PhotoInpaintingDialogContainer1=function(){if(this.state.useOverrideImage){c("PhotoInpaintingLoggingActions").logUserSavedUpdatedPhoto();this.props.onSave(c("nullthrows")(this.state.overrideImageURI))}}.bind(this),this.$PhotoInpaintingDialogContainer2=function(){if(this.state.useOverrideImage)c("PhotoInpaintingLoggingActions").logUserAbandonedUpdatedPhoto();this.props.onXOut()}.bind(this),m}k.getStores=function(){return[c("PhotoInpaintingFluxStore")]};k.calculateState=function(){var l=c("PhotoInpaintingFluxStore").getState(),m=l.get("textStatus"),n=m===c("PhotoInpaintingStatus").REMOVING_TEXT||m===c("PhotoInpaintingStatus").UPLOADING_IMAGE;return{disableFooterButtons:n,overrideImageURI:l.get("overrideImageURI"),useOverrideImage:l.get("useOverrideImage")}};k.prototype.componentDidMount=function(){if(this.props.isShown)c("PhotoInpaintingLoggingActions").logDialogLaunched(this.props.initialTextPenaltyScore)};k.prototype.componentWillUnmount=function(){c("PhotoInpaintingLoggingActions").logDialogClosed()};k.prototype.render=function(){return c("React").createElement(c("PhotoInpaintingDialog.react"),{disableFooterButtons:this.state.disableFooterButtons,imageOriginalHeight:this.props.imageOriginalHeight,imageOriginalWidth:this.props.imageOriginalWidth,imageURI:this.props.imageURI,isShown:this.props.isShown,onSave:this.$PhotoInpaintingDialogContainer1,onXOut:this.$PhotoInpaintingDialogContainer2})};k.propTypes={imageOriginalHeight:j.number,imageOriginalWidth:j.number,imageURI:j.string,initialTextPenaltyScore:j.number,isShown:j.bool,onSave:j.func,onXOut:j.func};f.exports=c("FluxContainer").create(k)}),null);
__d("BoostedComponentTextInpaintingDialogV2Container.react",["AdsDataAtom","AdsFluxContainer","AdsLWIInstanceUtils","BoostedComponentContainerUtils","BoostedComponentContextStoreV2","BoostedComponentStoreState","BoostedComponentTextPenaltyActionsV2","FluxContainer","PhotoInpaintingActions","PhotoInpaintingDialogContainer.react","PhotoInpaintingFluxStore","PhotoInpaintingStatus","React","adsLWICurrentInstanceDataSelector","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded,l=c("BoostedComponentStoreState").getKey,m=c("React").PureComponent;h=babelHelpers.inherits(n,m);i=h&&h.prototype;n.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedComponentContextStoreV2")])};n.calculateState=function(o,p){var q=p.appID,r=p.targetID,s=p.boostID,t=j(q,r,s),u=c("BoostedComponentContextStoreV2").getDataByKey(t),v=k([u]);if(!v)return babelHelpers["extends"]({},o,{dataLoaded:v});var w=u.getAttachmentsInfo();if(!u.getIsEntPost()||w.size!==1)return babelHelpers["extends"]({},o,{dataLoaded:true,imageURI:null,imageOriginalHeight:null,imageOriginalWidth:null,isEntPost:false});var x=w.first();return{dataLoaded:true,imageURI:x.get("url"),imageOriginalHeight:x.get("height"),imageOriginalWidth:x.get("width"),initialTextPenaltyScore:x.get("textPenaltyScore"),isEntPost:u.getIsEntPost(),pageID:u.getPageID()}};function n(o){i.constructor.call(this,o);this.$BoostedComponentTextInpaintingDialogV2Container1=function(p){c("BoostedComponentTextPenaltyActionsV2").uploadNewPagePostPhotoWithURI(p,this.props.appID,c("nullthrows")(this.state.pageID),c("nullthrows")(this.props.targetID),this.props.boostID);this.props.onXOut()}.bind(this);c("AdsDataAtom").explicitlyRegisterStore(c("PhotoInpaintingFluxStore"));c("PhotoInpaintingActions").beginDialogLoad();c("PhotoInpaintingActions").finishDialogLoad(c("PhotoInpaintingStatus").TOO_MUCH_TEXT)}n.prototype.render=function(){if(!this.state.dataLoaded)return null;var o=this.state,p=o.imageURI,q=o.imageOriginalHeight,r=o.imageOriginalWidth,s=o.initialTextPenaltyScore,t=o.isEntPost;if(!t)return null;return c("React").createElement(c("PhotoInpaintingDialogContainer.react"),{imageOriginalHeight:q,imageOriginalWidth:r,imageURI:p,initialTextPenaltyScore:s,isShown:this.props.shown,onSave:this.$BoostedComponentTextInpaintingDialogV2Container1,onXOut:this.props.onXOut})};f.exports=c("AdsFluxContainer").create(n,{withProps:true,name:f.id})}),null);
__d("BoostedComponentTextPenaltyConstantsV2",[],(function a(b,c,d,e,f,g){"use strict";var h=Object.freeze({DEFAULT_TEXT_PENALTY_THRESHOLD:.2});f.exports=h}),null);
__d("AdsReviewAPITextOverlayNotice.react",["cx","ix","fbt","AdsReviewAPIBannerBody.react","AdsReviewAPITextOverlayNoticeTextPenaltyButton.react","AdsReviewIPCUtils","AdsTabbedHoverCard.react","AdsTextPenaltyRequestManualReviewConfirmation.react","BoostedComponentQEs","BoostedComponentQEUtils","BoostedComponentStatus","BoostedComponentTextInpaintingDialogV2Container.react","BoostedComponentTextPenaltyConstantsV2","BoostedComponentTextPenaltyPhotoSwapState","BUIAdoptionHorizontalLayout.react","BUIAdoptionUtils","CROWAdDisapprovalReasons","DOMContainer.react","Image.react","IPCEventName","React","SUIBusinessTheme","SUIButton.react","SUINotice.react","SUIText.react","nullthrows"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("AdsTabbedHoverCard.react").Content,n=function n(){if(c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_POST_TEXT_PENALTY).getParamBool("allow_photo_swap",false,false))return"UPLOAD_PHOTO_ONLY";if(c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_POST_TEXT_PENALTY).getParamBool("allow_inpainting",false,false))return"ALLOW_INPAINTING_DIALOG";return"NONE"},o=function o(q){if(!q.allowManualReviewRequest)return null;return c("React").createElement("div",{className:"_2pic"},c("React").createElement(c("BUIAdoptionHorizontalLayout.react"),null,c("React").createElement(c("SUIButton.react"),{disabled:q.textPenaltyPhotoSwapState===c("BoostedComponentTextPenaltyPhotoSwapState").UPLOADING,label:j._("Request Manual Review"),theme:c("SUIBusinessTheme"),onClick:q.markException})))};k=babelHelpers.inherits(p,c("React").PureComponent);l=k&&k.prototype;function p(){var q,r;for(var s=arguments.length,t=Array(s),u=0;u<s;u++)t[u]=arguments[u];return r=(q=l.constructor).call.apply(q,[this].concat(t)),this.state={tooltipVisible:false,showInpaintingDialog:false},this.$AdsReviewAPITextOverlayNotice4=function(){this.setState({showInpaintingDialog:false})}.bind(this),this.$AdsReviewAPITextOverlayNotice3=function(){this.setState({showInpaintingDialog:true})}.bind(this),this.$AdsReviewAPITextOverlayNotice6=function(v){this.$AdsReviewAPITextOverlayNotice1=v}.bind(this),this.$AdsReviewAPITextOverlayNotice7=function(){return c("nullthrows")(this.$AdsReviewAPITextOverlayNotice1)}.bind(this),this.onToggle=function(v){this.setState({tooltipVisible:v})}.bind(this),r}p.prototype.componentDidMount=function(){c("AdsReviewIPCUtils").logTPCRenderStatus(this.props.accountID,this.props.crowReason?this.props.crowReason:c("CROWAdDisapprovalReasons").UNKNOWN,c("IPCEventName").UI_TEXT_PENALTY_WARNING_BANNER_RENDER,true,this.props.targetID,this.props.adsCreationFlow)};p.prototype.render=function(){var q=this.$AdsReviewAPITextOverlayNotice2();return this.props.imageReviewRequested?c("React").createElement(c("AdsTextPenaltyRequestManualReviewConfirmation.react"),{exceptionCMSContent:this.props.exceptionCMSContent,exceptionTitleCMSContent:this.props.exceptionTitleCMSContent,imageReviewRequested:this.props.imageReviewRequested,objectName:this.props.objectName,title:this.props.title}):c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:c("BUIAdoptionUtils").convertUseToType(q.bannerUse)},q.bannerTitle,q.bannerContent,c("React").createElement(o,{allowManualReviewRequest:this.props.allowManualReviewRequest,imageReviewRequested:this.props.imageReviewRequested,isEntPost:this.props.isEntPost,markException:this.props.imageReviewCallback,textPenaltyPhotoSwapState:this.props.textPenaltyPhotoSwapState,onPhotoUploadCallback:this.props.photoUploadCallback,onTextInpaintingDialogButtonClick:this.$AdsReviewAPITextOverlayNotice3}),this.props.appID!=null&&this.props.boostID!=null&&this.state.showInpaintingDialog?c("React").createElement(c("BoostedComponentTextInpaintingDialogV2Container.react"),{appID:c("nullthrows")(this.props.appID),boostID:c("nullthrows")(this.props.boostID),shown:this.state.showInpaintingDialog,targetID:this.props.targetID,onXOut:this.$AdsReviewAPITextOverlayNotice4}):null)};p.prototype.$AdsReviewAPITextOverlayNotice5=function(){var q=this.state.tooltipVisible,r=this.props.toolTip;if(!r||!r.content)return null;return c("React").createElement("div",null,c("React").createElement(c("Image.react"),{className:"_nq7"+(q?" _nq9":""),ref:this.$AdsReviewAPITextOverlayNotice6,src:i("28631")}),c("React").createElement(c("AdsTabbedHoverCard.react"),{alignment:"left",contextRef:this.$AdsReviewAPITextOverlayNotice7,hoverContextRef:this.$AdsReviewAPITextOverlayNotice7,position:"below",shown:q,onToggle:this.onToggle},c("React").createElement(m,{title:"content"},c("React").createElement(c("DOMContainer.react"),null,r.content))))};p.prototype.$AdsReviewAPITextOverlayNotice2=function(){var q="recommend",r=this.$AdsReviewAPITextOverlayNotice8(),s=this.$AdsReviewAPITextOverlayNotice9();return{bannerContent:r,bannerTitle:s,bannerUse:q}};p.prototype.$AdsReviewAPITextOverlayNotice8=function(){return c("React").createElement(c("AdsReviewAPIBannerBody.react"),this.props,this.$AdsReviewAPITextOverlayNotice5())};p.prototype.$AdsReviewAPITextOverlayNotice9=function(){if(!this.props.imageReviewRequested)return c("React").createElement(c("SUIText.react"),{className:"_3-8m",size:"medium_DEPRECATED",theme:c("SUIBusinessTheme"),weight:"bold"},this.$AdsReviewAPITextOverlayNotice10());else if(!this.props.exceptionTitleCMSContent)return null;return c("React").createElement(c("SUIText.react"),{className:"_3-8m",size:"medium_DEPRECATED",theme:c("SUIBusinessTheme"),weight:"bold"},c("React").createElement("div",null,c("React").createElement(c("DOMContainer.react"),null,this.props.exceptionTitleCMSContent.content.cloneNode(true))))};p.prototype.$AdsReviewAPITextOverlayNotice10=function(){if(this.props.title)return this.props.title;switch(this.props.objectName){case"ad":return this.$AdsReviewAPITextOverlayNotice11();case"post":return this.$AdsReviewAPITextOverlayNotice12();default:return this.$AdsReviewAPITextOverlayNotice13()}};p.prototype.$AdsReviewAPITextOverlayNotice11=function(){switch(this.props.crowReason){case c("CROWAdDisapprovalReasons").TEXT_PENALTY_HIGH:return j._("Your Ad May Not Run");case c("CROWAdDisapprovalReasons").TEXT_PENALTY_MEDIUM:return j._("Your Ad's Reach May Be Lower");default:return j._("Your Ad's Reach May Be Slightly Lower")}};p.prototype.$AdsReviewAPITextOverlayNotice12=function(){switch(this.props.crowReason){case c("CROWAdDisapprovalReasons").TEXT_PENALTY_HIGH:return j._("Your Boosted Post May Not Run");case c("CROWAdDisapprovalReasons").TEXT_PENALTY_MEDIUM:return j._("Your Boosted Post's Reach May Be Lower");default:return j._("Your Boosted Post's Reach May Be Slightly Lower")}};p.prototype.$AdsReviewAPITextOverlayNotice13=function(){switch(this.props.crowReason){case c("CROWAdDisapprovalReasons").TEXT_PENALTY_HIGH:return j._("Your Promotion May Not Run");case c("CROWAdDisapprovalReasons").TEXT_PENALTY_MEDIUM:return j._("Your Promotion's Reach May Be Lower");default:return j._("Your Promotion's Reach May Be Slightly Lower")}};f.exports=p}),null);
__d("BoostedComponentTextOverlayNoticeV2.react",["cx","AdsImageReviewRequestUiActionRealReviewRequestDataAction","AdsReviewAPITextOverlayNotice.react","AdsReviewAPIUtils","AdsReviewIPCUtils","BoostedComponentAdsReviewAPIActionsV2","BoostedComponentAppID","BoostedComponentTextPenaltyActionsV2","CROWAdDisapprovalReasons","IPCEventName","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;function k(){var l,m;for(var n=arguments.length,o=Array(n),p=0;p<n;p++)o[p]=arguments[p];return m=(l=j.constructor).call.apply(l,[this].concat(o)),this.$BoostedComponentTextOverlayNoticeV21=function(){c("AdsImageReviewRequestUiActionRealReviewRequestDataAction").dispatch({isRequested:!this.props.imageReviewRequested});var event=this.props.imageReviewRequested?c("IPCEventName").UI_TEXT_PENALTY_UNDO_MARK_EXCEPTION_CLICK:c("IPCEventName").UI_TEXT_PENALTY_MARK_EXCEPTION_CLICK;this.$BoostedComponentTextOverlayNoticeV23(event)}.bind(this),this.$BoostedComponentTextOverlayNoticeV22=function(q){if(this.props.pageID!=null)c("BoostedComponentTextPenaltyActionsV2").uploadNewPagePostPhoto(this.props.appID,this.props.targetID,this.props.boostID,this.props.pageID,q.target)}.bind(this),m}k.prototype.componentDidMount=function(){c("BoostedComponentAdsReviewAPIActionsV2").logTextIntegrityBannerShown(this.props.appID,this.props.targetID,this.props.boostID,this.props.adAccountID,this.props.reviewFeedbackCMS.keys(),this.props.policies,this.props.instanceID)};k.prototype.render=function(){var l="promotion";if(this.props.appID===c("BoostedComponentAppID").BOOSTED_POST)l="post";var m=this.props,n=m.adAccountID,o=m.adStatus,p=m.crowReason,q=m.imageReviewRequested,r=m.isEntPost,s=m.reviewFeedbackCMS,t=m.textOverlayExceptionCMS,u=m.textOverlayExceptionTitleCMS,v=m.textPenaltyPhotoSwapState,w=m.textPenaltyScore,x=m.title;return c("React").createElement("div",{className:"_2phz"},c("React").createElement(c("AdsReviewAPITextOverlayNotice.react"),{accountID:n,adStatus:o,allowManualReviewRequest:true,appID:this.props.appID,boostID:this.props.boostID,content:s,crowReason:p,exceptionCMSContent:t,exceptionTitleCMSContent:u,imageReviewCallback:this.$BoostedComponentTextOverlayNoticeV21,imageReviewRequested:q,isEntPost:r,loadState:c("AdsReviewAPIUtils").getLoadState(s),objectName:l,photoUploadCallback:this.$BoostedComponentTextOverlayNoticeV22,targetID:this.props.targetID,textPenaltyPhotoSwapState:v,textPenaltyScore:w,title:x}))};k.prototype.$BoostedComponentTextOverlayNoticeV23=function(event){c("AdsReviewIPCUtils").logTPCRenderStatus(this.props.adAccountID,this.props.crowReason?this.props.crowReason:c("CROWAdDisapprovalReasons").UNKNOWN,event,true,this.props.targetID)};f.exports=k}),null);
__d("BoostedComponentIntegrityWarningBoxV2.react",["BoostedComponentIntegrityUtils","BoostedComponentReviewAPIBannerV2.react","BoostedComponentTextOverlayNoticeV2.react","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;function j(k){i.constructor.call(this,k);c("BoostedComponentIntegrityUtils").validateAd(k.adAccountID,k.creativeSpec,k.feedbackHelper,k.targetSpec,k.validateAdCallback)}j.prototype.componentWillReceiveProps=function(k){if(k.targetSpec!==this.props.targetSpec||JSON.stringify(k.creativeSpec)!==JSON.stringify(this.props.creativeSpec))c("BoostedComponentIntegrityUtils").validateAd(k.adAccountID,k.creativeSpec,k.feedbackHelper,k.targetSpec,k.validateAdCallback)};j.prototype.render=function(){if(this.props.isShownReviewFeedback)return c("React").createElement(c("BoostedComponentReviewAPIBannerV2.react"),{adAccountID:this.props.adAccountID,appID:this.props.appID,boostID:this.props.boostID,ethnicAffinityExperimentData:this.props.ethnicAffinityExperimentData,hideBanner:this.props.hideBanner,instanceID:this.props.instanceID,manualReviewRequested:this.props.manualReviewRequested,policies:this.props.policies,policyTitle:this.props.policyTitle,reviewFeedbackCMS:this.props.reviewFeedbackCMS,selfCertificationSuccess:this.props.selfCertificationSuccess,showRequestManualReview:this.props.showRequestManualReview,showSelfCertification:this.props.showSelfCertification,targetID:this.props.targetID});if(this.props.isShownTextOverlayNotice)return c("React").createElement(c("BoostedComponentTextOverlayNoticeV2.react"),{adAccountID:this.props.adAccountID,adStatus:this.props.adStatus,appID:this.props.appID,boostID:this.props.boostID,crowReason:this.props.crowReason,imageReviewRequested:this.props.imageReviewRequested,instanceID:this.props.instanceID,isEntPost:this.props.isEntPost,pageID:this.props.pageID,policies:this.props.policies,reviewFeedbackCMS:this.props.textOverlayReviewFeedbackCMS,targetID:this.props.targetID,textOverlayExceptionCMS:this.props.textOverlayExceptionCMS,textOverlayExceptionTitleCMS:this.props.textOverlayExceptionTitleCMS,textPenaltyPhotoSwapState:this.props.textPenaltyPhotoSwapState,textPenaltyScore:this.props.textPenaltyScore,title:this.props.textOverlayNoticeTitle||undefined});return null};f.exports=j}),null);
__d("EthnicAffinityValidator",[],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=new Set(["6018745176183","6021722613183","6003133212372","6009609054383","6009609045383","6009609033583"]),i={usingTargetingCMSID:"162832424215667",specHasAffinityTargeting:function j(k){__p&&__p();if(!k)return false;var l=k.exclusions,m=[];if(l){var n=l.behaviors;if(n)m=n.filter(function(q){return h.has(String(q.id))})}var o=k.flexible_spec,p=[];if(o){p=o.map(function(q){if(!q.behaviors)return[];return q.behaviors.filter(function(r){return h.has(String(r.id))})});p=[].concat.apply([],p)}return p.length>0||m.length>0}};f.exports=i}),null);
__d("KeplerConstants",["fbt","KeplerConstantsJS","KeplerVariables","createObjectFrom","keyMirror"],(function a(b,c,d,e,f,g,h){var i={key:"Page",name:h._("Page")},j={key:"Place",name:h._("Place")};f.exports=babelHelpers["extends"]({},c("KeplerConstantsJS"),c("KeplerVariables"),{ActionType:c("keyMirror")({CREATE:null,DELETE:null,UPDATE:null}),BlacklistedBehaviorCategories:c("createObjectFrom")(c("KeplerVariables").BlacklistedBehaviorCategoriesArray),PageTokenizerDescription:i,PlaceTokenizerDescription:j,ConnectionType:{1:i,6:j},CategoryValues:{6006371273532:"summit_estates",6006371276132:"established_elite",6006371278332:"corporate_connected",6006371280932:"top_professionals",6006371283732:"active_&_involved",6006371324532:"casual_comfort",6006371325332:"active_lifestyles",6006371325532:"solid_surroundings",6006371325732:"busy_schedules",6006371260332:"careers_&_travel",6006371260532:"schools_&_shopping",6006371260932:"on_the_go",6006371262132:"work_&_play",6006371262332:"career_centered",6006371272532:"country_ways",6006371272732:"country_enthusiasts",6006371272932:"firmly_established",6006371273132:"climbing_the_ladder",6006371273332:"country_comfort",6006371273732:"carving_out_time",6006371273932:"children_first",6006371274132:"comfortable_cornerstones",6006371274332:"good_neighbors",6006371274532:"career_building",6006371274732:"clubs_&_causes",6006371275132:"getting_established",6006371275332:"tenured_proprietors",6006371275532:"community_pillars",6006371275932:"city_mixers",6006371276332:"out_&_about",6006371276532:"mid-americana",6006371276732:"metro_mix",6006371276932:"urban_diversity",6006371277132:"outward_bound",6006371277332:"working_&_active",6006371277532:"persistent_&_productive",6006371277732:"firm_foundations",6006371278732:"rural_adventure",6006371280132:"rural_parents"},CategoryDescriptions:{6006371277132:h._("People with middle-income, rural households, most without children, but a few with some toddlers, preschool and grade school children. Home ownerships dominates this cluster, along with their tendency to drive compact or full-size pickup trucks. Source: Acxiom"),6006521001625:h._("Interest and purchase towards value priced domestics and housewares, children's toys and apparel. Source: Datalogix"),6006520977625:h._("Interests and purchases include services, products and activities that promote a healthy lifestyle. Source: Datalogix"),6006520979425:h._("Interests include working hard and smart financial planning. Focused on second careers, family, travel, hobbies and retirement. Source: Datalogix"),6006520991825:h._("Interests and purchases include high-end retailers and the hottest designers. Source: Datalogix"),6006520999225:h._("Interests and purchases include outdoor activities. Source: Datalogix"),6006371350532:h._("People who have indicated they work in the professional\/technical job category. Includes accountants, architects, engineers, geologists and CEOs. Source: Acxiom"),6006371350732:h._("People who have indicated they work in the administration\/managerial job category. Includes executives, directors, assistant managers, office managers, project managers and supervisors."),6006371350932:null,6006371351132:null,6006371351332:null,6006371351532:h._("People who have indicated they are students. Source: Acxiom"),6006371351732:h._("People who have indicated they are homemakers. Source: Acxiom"),6006371351932:h._("People who have indicated they are retired. Source: Acxiom"),6006371352132:h._("People who have indicated they are a farmer. Source: Acxiom"),6006371352532:null,6006371352732:null,6006371352932:h._("People who have indicated they are self-employed. Source: Acxiom"),6006371353132:h._("People who have indicated they are in the educator job category. Includes librarians, principals, deans, teachers, coaches, trainers, counselors and professors. Source: Acxiom"),6006371353332:h._("People who have indicated they are in the financial job category. Includes treasurers, bankers, loan processors, brokers and traders. Source: Acxiom"),6006371353532:null,6006371353732:h._("People who have indicated they are in the medical job category. Includes physicians, chiropractors, dentists, optometrists, pharmacists, therapists and nurses. Source: Acxiom"),6006371349332:h._("People who have indicated they have a bank card, such as Visa or Mastercard. Source: Acxiom"),6006371349532:h._("People who have indicated they have a credit card, but the type is unknown. Source: Acxiom"),6006371349732:h._("People who have indicated they have an upscale department store card. Includes high-end stores like Nieman Marcus. Source: Acxiom"),6006371349932:h._("People who have indicated they have a gas card, department store card and\/or retail store card. Includes Exxon, Conoco, Shell or BP cards; JCPenny, Sears or Montgomery Ward cards; and Home Depot, Victoria's Secret or Best Buy cards, among other from gas, retail and department stores. Source: Acxiom"),6006371350132:h._("People who have indicated they have a gold card or platinum card, which generally has a larger credit limit. Source: Acxiom"),6006371350332:h._("People who have indicated they have a travel and entertainment card such as Diner's Club card. Source: Acxiom"),6006371379132:h._("People who are likely to use cash and have no formal banking relationships. Source: Acxiom"),6006371381932:h._("People who are likely to use a credit card 20+ times a month. Source: Acxiom"),6006371274332:h._("Acred Couples households are comfortable and well-established couples in their late 50s and early 60s. These upper-middle income empty nesters enjoy a wide range of social activities in the outer suburban areas."),6006371272932:h._("Apple Pie Families are upper-middle class couples with school-age children. They are homeowners, often minivan drivers and avid radio listeners."),6006371274532:h._("Career Building is made up of young, childless singles. They are a mix of mobile renters and first-time homeowners, living in condos and single-family houses."),6006371262332:h._("Career Centered Singles are affluent, single professionals. They are well educated, dedicated to their careers and long-term homeowners in their communities."),6006371277732:h._("Cartoons and Carpools are solidly middle-income married couples with children of all ages. These homeowners are blue-collar and white-collar workers, supporting their families while establishing roots in their communities."),6006371273932:h._("Children First are generally young families. At a mean age of 25, all are currently raising children. Evenly split between married couples and singles, these renters are four times more likely to be students. They earn upper-middle incomes and live in suburban areas."),6006371275932:h._("City Mixers households are single urbanites. At a mean age of 41, there are no children in the home, and they work in a broad spectrum of white-collar jobs."),6006371274732:h._("Clubs & Causes is dominated by upper-middle income, retired singles and couples in their late 60s and early 70s. These long-time homeowners live comfortably in outer suburbs and towns."),6006371282932:h._("Collegiate Crowd, with a mean age of 21, represents the youngest of households. The cluster has a high concentration of students, a correlating low net worth and high mobility, but interestingly they fall right in the middle for income."),6006371278332:h._("Corporate Clout contains well-educated and well-compensated singles and couples in their 40s and 50s. These corporate executives and professionals are serious travelers, whether for work or pleasure, and intelligent investors."),6006371273332:h._("Country Comfort is a combination of rural white-collar and blue-collar families, some self-employed, with mixed-age children. There is a relatively high percentage of working women."),6006371272732:h._("Country Single is a group of successful singles who are firmly entrenched in their rural communities. Upper-middle incomes and no children enable his group to save and spend on their personal interests."),6006371272532:h._("Country Ways are country empty nesters. They are an interesting mix of technicians, entrepreneurs and blue-collar workers. With average educational attainment levels, they enjoy upper incomes and middle-to-upper net worth."),6006371273732:h._("Dynamic Duos are upper-middle income couples with no kids. They are well-educated and well-compensated. They are homeowners in mostly upscale neighborhoods."),6006371276132:h._("Established Elite represents America's elite couples and singles. With no school-age children at home and the second highest income in the country, these households have enormous disposable incomes and pursue correlating luxuries and activities."),6006371325532:h._("Full Steaming is a mix of affluent, well-educated couples and singles that have a net worth tending to fall between $500,000 and $1,000,000 and are an entrepreneurial bunch."),6006371274132:h._("Fun & Games includes a mix of couples in their late 40s and early 50s, living in outer suburbs and towns. Married and childless, these upper-middle-income homeowners work in a mix of white-collar and blue-collar fields."),6006371260332:h._("Hard Chargers is dominated by well-educated and professionally successful singles. They are almost all homeowners in a mix of houses and condominiums."),6006371260532:h._("Kids & Clout is comprised of affluent couples with school-age children. Their activities tend to be geared toward work, home or kids."),6006371325332:h._("Lavish Lifestyles contains established couples with teenage kids, minivans and mortgages. Luckily, with a rank of fifth in the country, they have the high incomes to support them."),6006371273132:h._("Married Sophisticates is made up of recently married young couples who enjoy healthy upper-middle range incomes. They are almost all homeowners with above average net worth, living in upscale suburban neighborhoods."),6006371276732:h._("Metro Mix households live in the nation's mega markets. In their mid-40s to mid-60s, and with middle incomes, this group of diverse urbanites resides in expensive multi-family dwellings."),6006371276532:h._("Mid Americana are married suburbanites. They are middle of the road in terms of education and income, although long tenure and high equity versus home values result in above average net worth."),6006371325732:h._("Platinum Oldies are well-heeled retirees and soon-to-be retirees living in the outer edges of the city who are enjoying the fruits of their lifetime labor. They are active pillars of their communities and dedicated grandparents."),6006371277532:h._("Raisin' Grandkids are older singles and couples notable for their active grandparent status. Every household shows the presence of children."),6006371280132:h._("Rural Parents are single parents who live in some of the most rural parts of the country. They rank high for working women and most have started to accrue some net worth, predominantly through the homes they own."),6006371275132:h._("Savvy Singles households are reasonably well educated and enjoy upper-middle incomes. Despite solid incomes, their residence in metropolitan areas often requires renting in multiple-family dwellings."),6006371324532:h._("Shooting Stars is made up of childless couples in their 30s and early 40s. These home owning households often include professionals with graduate degrees."),6006371283732:h._("Sitting Pretty represents financially secure couples nearing retirement. They are empty nester homeowners, living in outer suburbs and towns, enjoying a luxurious lifestyle."),6006371280932:h._("Skyboxes & Suburbans is one of the best-educated of all the clusters. These families shop at upscale stores, spend time feathering their nest and adhere to regular fitness programs."),6006371275332:h._("Soccer & SUVs households are large, upper-middle income families. Located in the cities and surrounding areas, they typically have accrued a net worth of $500,000 or less."),6006371262132:h._("Solid Single Parents contains affluent single parents. These predominantly white-collar, professional metrocentrics enjoy comfortable incomes and are a mix of homeowners and renters."),6006371277332:h._("Solo and Stable are singles and homeowners who work in mainly white-collar professional, administrative and managerial jobs. Their education and income place them about average in the middle class."),6006371276332:h._("Spouses & Houses is dominated by middle-income, childless couples in their mid-20s. This group of mainly high school grads owns their homes and tends to live in suburbs and towns around the country."),6006371275532:h._("Suburban Seniors are mostly retired octogenarians who are community activists and devoted grandparents. With upper-middle incomes and net worth, they are very comfortable in their advancing age."),6006371273532:h._("Summit Estates families are enjoying the good life - luxury travel, entertainment and consumption of every kind are within easy reach."),6006371260932:h._("Tots & Toys is dominated by affluent and well-educated working couples with preschool-age children. They are homeowners, mainly in single-family houses."),6006371278732:h._("Truckin' & Stylin' households are in their mid- to late 30s and live in rural towns. Though, on average, they earn middle incomes, they rank below average for income when compared to the nation and have a very low net worth."),6006371276932:h._("Urban Tenants households are predominantly singles in their early 50s. These middle-income, white-collar professionals take advantage of urban life, enjoying the income and time that they have to the fullest.")},Payload:c("keyMirror")({ACCOUNT:null,ACTIVE_FILTER_SET:null,AD_ACCOUNTS_TO_FILTER_SETS:null,BUSINESS:null,DISPLAY:null,FILTER:null,FILTER_SETS:null,HIGHLIGHTED_FIELDSET:null,METADATA:null,METRIC:null,NUMBERS:null,PAGE:null,SECTION:null,TOAST:null}),PayloadSource:c("keyMirror")({SERVER:null,VIEW:null}),Numbers:c("keyMirror")({RATIO:null,TOTAL:null}),Start:c("keyMirror")({CONNECTIONS:null,CUSTOM_AUDIENCE:null,LOCATIONS:null}),SPEC_KEY:"kepler_temp_spec",getMatchingPrefix:function k(l){l=l.toUpperCase();if(l.substr(-1)!=="_")l+="_";return Object.keys(this).filter(function(m){return m.indexOf(l)===0})},isLocationParam:function k(l){return[c("KeplerConstantsJS").PARAM_CITY,c("KeplerConstantsJS").PARAM_COUNTRY,c("KeplerConstantsJS").PARAM_NOT_CITY,c("KeplerConstantsJS").PARAM_NOT_COUNTRY].indexOf(l)>-1}})}),null);
__d("BoostedComponentIntegrityWarningBoxV2Container.react",["AdAccountSelfCertificationStore","AdsAPIAdgroupFields","AdsCMSStore","AdsFluxContainer","AdsLWIInstanceUtils","AdsQEStore","AdsReviewAPIBatchingQueue","AdsReviewAPIFeedbackHelper","AdsReviewAPIUtils","AudienceInsightsEthnicAffinity","BoostedActionCreativeStoreV2","BoostedComponentAdAccountStoreV2","BoostedComponentAdsReviewAPIActionsV2","BoostedComponentAppID","BoostedComponentAudienceActionsV2","BoostedComponentAudienceStoreData","BoostedComponentAudienceStoreV2","BoostedComponentContainerUtils","BoostedComponentContextStoreV2","BoostedComponentErrorBoundaryContainer.react","BoostedComponentExistingAdInfoStoreV2","BoostedComponentIntegrityWarningBoxV2.react","BoostedComponentReviewAPIStoreV2","BoostedComponentStatus","BoostedComponentSubmisionStatusStoreV2","BoostedComponentTextPenaltyPhotoSwapState","BoostedComponentTextPenaltyStoreV2","BoostedPostCreativeStoreV2","CROWAdDisapprovalReasons","EthnicAffinityValidator","ImageReviewRequestStore","immutable","IntegrityAPIConversionsConstants","KeplerConstants","Map","React","Set","adsLWICurrentInstanceDataSelector","adsLWIDialogStateSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded,l=c("IntegrityAPIConversionsConstants").TEXT_OVERLAY_REASONS;h=babelHelpers.inherits(m,c("React").Component);i=h&&h.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=i.constructor).call.apply(n,[this].concat(q)),this.state={accessToken:"",adAccountID:"0",adStatus:"",audienceData:new(c("BoostedComponentAudienceStoreData"))(),cache:c("immutable").Map(),creativeSpec:c("immutable").Map(),dataLoaded:false,ethnicAffinityExperimentData:{hasNewButtons:false,noTargetingBannerColor:"error"},feedbackHelper:new(c("AdsReviewAPIFeedbackHelper"))(),hideBanner:false,imageReviewRequested:false,instanceID:"",isEntPost:false,isViolatingReview:false,manualReviewRequested:false,pageID:null,policies:new(c("Set"))(),policyTitle:c("React").createElement("div",null),reviewFeedbackCMS:new(c("Map"))(),selfCertificationSuccess:false,shouldShow:false,textOverlayExceptionCMS:null,textOverlayExceptionTitleCMS:null,textOverlayFeedbackCMS:new(c("Map"))(),textOverlayTitle:null,textOverlayViolation:null,textPenaltyPhotoSwapState:c("BoostedComponentTextPenaltyPhotoSwapState").NEUTRAL,textPenaltyScore:null},this.$BoostedComponentIntegrityWarningBoxV2Container4=function(s,t,u,v){var w,x=babelHelpers["extends"]({},t,(w={},w[c("AdsAPIAdgroupFields").ADSET_SPEC]=u,w)),y=this.state.cache,z=y.get(v),A=this.props,B=A.appID,C=A.targetID,D=A.boostID;if(z)c("BoostedComponentAdsReviewAPIActionsV2").updateReviewFeedbackResults(z,true,B,C,D,this.state.instanceID);else c("AdsReviewAPIBatchingQueue").addAdgroupCreateItem(s,x,v).done(function(E){c("BoostedComponentAdsReviewAPIActionsV2").updateReviewFeedbackResults(E,false,B,C,D,this.state.instanceID)}.bind(this))}.bind(this),o}m.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("AdAccountSelfCertificationStore"),c("AdsCMSStore"),c("AdsQEStore"),c("BoostedActionCreativeStoreV2"),c("BoostedComponentAdAccountStoreV2"),c("BoostedComponentAudienceStoreV2"),c("BoostedComponentContextStoreV2"),c("BoostedPostCreativeStoreV2"),c("BoostedComponentExistingAdInfoStoreV2"),c("BoostedComponentReviewAPIStoreV2"),c("BoostedComponentSubmisionStatusStoreV2"),c("BoostedComponentTextPenaltyStoreV2"),c("ImageReviewRequestStore")])};m.calculateState=function(n,o){__p&&__p();var p=o.appID,q=o.targetID,r=o.boostID,s=j(p,q,r),t=c("BoostedComponentAdAccountStoreV2").getState(),u=c("BoostedComponentAudienceStoreV2").getDataByKey(s),v=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(s),w=c("BoostedComponentTextPenaltyStoreV2").getDataByKey(s),x=void 0;if(p===c("BoostedComponentAppID").BOOSTED_POST||p===c("BoostedComponentAppID").BOOSTED_JOB_POST||p===c("BoostedComponentAppID").BOOSTED_GROUP)x=c("BoostedPostCreativeStoreV2").getDataByKey(s);else x=c("BoostedActionCreativeStoreV2").getDataByKey(s);var y=c("BoostedComponentContextStoreV2").getDataByKey(s),z=k([t,u,y,x,v,w]);if(!z)return babelHelpers["extends"]({},n,{dataLoaded:z,shouldShow:false});var A=v.getAdStatus();if(A===c("BoostedComponentStatus").REJECTED||A===c("BoostedComponentStatus").PENDING||A===c("BoostedComponentStatus").ACTIVE)return babelHelpers["extends"]({},n,{shouldShow:false});var B=c("BoostedComponentReviewAPIStoreV2").getDataByKey(s),C=t.getSelectedAccountID(),D=c("AdsQEStore").get("ethnic_affinity_v2",C),E={hasNewButtons:D!=null&&D.hasValue()?D.getValueEnforcing().getParamBool("has_new_buttons"):false,noTargetingBannerColor:D!=null&&D.hasValue()?D.getValueEnforcing().getParam("no_target_banner_color"):"error"},F=B.getReviewFeedback(),G=c("AdsReviewAPIUtils").getDataForTextOverlayViolationBanner(F),H=G[0],I=G[1],J=G[2],K=c("AdsReviewAPIUtils").getCMSContentAndStatusForTextOverlay([I],c("AdsCMSStore")),L=K[0],M=K[1],N=J?c("AdsCMSStore").get(J):null,O=N?c("AdsCMSStore").get(c("AdsReviewAPIUtils").getTextOverlayExceptionTitleCMSIDForLWI()):null,P=c("AdsReviewAPIUtils").getPolicyBannerTitleForLWI(F,p),Q=x.getCreativeSpec(),R=c("adsLWIDialogStateSelector")(),S=R.instanceID,T=B.getIsAdRejected(),U=B.getPolicies(),V=c("AdsCMSStore").getAll(c("AdsReviewAPIUtils").getPolicyBannerCMSIDs(F)),W=!T&&c("EthnicAffinityValidator").specHasAffinityTargeting(u.getTargetSpec());if(W){V=c("AdsCMSStore").getAll([c("EthnicAffinityValidator").usingTargetingCMSID]);T=true;U=new(c("Set"))([c("CROWAdDisapprovalReasons").HOUSING_OR_CREDIT])}return{accessToken:y.get("access_token"),adAccountID:C,adStatus:A,audienceData:u,cache:B.getCache(),creativeSpec:Q,dataLoaded:z,ethnicAffinityExperimentData:E,feedbackHelper:B.getFeedbackHelper(),hideBanner:U.has(c("CROWAdDisapprovalReasons").HOUSING_OR_CREDIT)?c("AdAccountSelfCertificationStore").getShouldHideBanner(C):false,imageReviewRequested:c("ImageReviewRequestStore").getImageReviewRequested(),instanceID:S,isEntPost:y.getIsEntPost(),isViolatingReview:T,manualReviewRequested:c("AdAccountSelfCertificationStore").getManualReviewRequested(),reviewFeedbackCMS:V,pageID:y.getPageID(),policies:U,policyTitle:P,selfCertificationSuccess:c("AdAccountSelfCertificationStore").getSelfCertificationSuccess(),shouldShow:true,textOverlayExceptionCMS:N,textOverlayExceptionTitleCMS:O,textOverlayFeedbackCMS:L,textOverlayTitle:H,textOverlayViolation:B.getMaybeTextOverlayViolation(),textPenaltyPhotoSwapState:w.getTextPenaltyPhotoSwapState(),textPenaltyScore:w.getTextPenaltyScore()}};m.prototype.$BoostedComponentIntegrityWarningBoxV2Container1=function(){var n=this.state,o=n.textOverlayViolation,p=n.adStatus;if(!o||!l.has(o))return false;if(p===c("BoostedComponentStatus").PAUSED)return false;switch(o){case c("CROWAdDisapprovalReasons").TEXT_PENALTY_HIGH:case c("CROWAdDisapprovalReasons").TEXT_PENALTY_MEDIUM:return true;default:return false}};m.prototype.$BoostedComponentIntegrityWarningBoxV2Container2=function(){return this.state.policies.has(c("CROWAdDisapprovalReasons").HOUSING_OR_CREDIT)||this.state.policies.has(c("CROWAdDisapprovalReasons").HOUSING_OR_CREDIT_WITH_AFFINITY)};m.prototype.$BoostedComponentIntegrityWarningBoxV2Container3=function(){return this.state.policies.has(c("CROWAdDisapprovalReasons").HOUSING_OR_CREDIT)};m.prototype.render=function(){if(!this.state.dataLoaded||!this.state.shouldShow)return null;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentIntegrityWarningBoxV2"},c("React").createElement(c("BoostedComponentIntegrityWarningBoxV2.react"),{adAccountID:this.state.adAccountID,adStatus:this.state.adStatus,appID:this.props.appID,boostID:this.props.boostID,creativeSpec:this.state.creativeSpec.toObject(),crowReason:this.state.textOverlayViolation,ethnicAffinityExperimentData:this.state.ethnicAffinityExperimentData,feedbackHelper:this.state.feedbackHelper,hideBanner:this.state.hideBanner,imageReviewRequested:this.state.imageReviewRequested,instanceID:this.state.instanceID,isEntPost:this.state.isEntPost,isShownReviewFeedback:this.state.isViolatingReview,isShownTextOverlayNotice:this.$BoostedComponentIntegrityWarningBoxV2Container1(),manualReviewRequested:this.state.manualReviewRequested,pageID:this.state.pageID,policies:this.state.policies,policyTitle:this.state.policyTitle,reviewFeedbackCMS:this.state.reviewFeedbackCMS,selfCertificationSuccess:this.state.selfCertificationSuccess,showRequestManualReview:this.$BoostedComponentIntegrityWarningBoxV2Container2(),showSelfCertification:this.$BoostedComponentIntegrityWarningBoxV2Container3(),targetID:this.props.targetID,targetSpec:this.state.audienceData.getTargetSpec(),textOverlayExceptionCMS:this.state.textOverlayExceptionCMS,textOverlayExceptionTitleCMS:this.state.textOverlayExceptionTitleCMS,textOverlayNoticeTitle:this.state.textOverlayTitle,textOverlayReviewFeedbackCMS:this.state.textOverlayFeedbackCMS,textPenaltyPhotoSwapState:this.state.textPenaltyPhotoSwapState,textPenaltyScore:this.state.textPenaltyScore,validateAdCallback:this.$BoostedComponentIntegrityWarningBoxV2Container4}))};m.prototype.$BoostedComponentIntegrityWarningBoxV2Container5=function(){__p&&__p();var n=this.props,o=n.appID,p=n.boostID,q=n.targetID,r=this.state,s=r.accessToken,t=r.audienceData,u=t.getTargetSpec(),v=new(c("Set"))(Object.keys(c("AudienceInsightsEthnicAffinity")).map(function(z){return c("KeplerConstants")[z]})),w=u.flexible_spec;if(w){w.forEach(function(z){return z.behaviors=z.behaviors.filter(function(A){return!v.has(String(A.id))})});u.flexible_spec=w}var x=u.exclusions;if(x&&x.behaviors){var y=x.behaviors.filter(function(z){return!v.has(String(z.id))});x.behaviors=y;u.exclusions=x}c("BoostedComponentAudienceActionsV2").editAudience(o,q,t.getSavedAudienceID(),s,t.getSelectedAudienceName(),u,p)};f.exports=c("AdsFluxContainer").create(m,{withProps:true,name:f.id})}),null);
__d("BoostedComponentHeaderV2.react",["ix","cx","AdsAdblockWarning.react","AdsLWIDialogHeader.react","AsyncRequest","BIGAdoptionConfig","BoostedComponentAppID","BoostedComponentCommonActionsV2","BoostedComponentDialogPhotoUploadingIndicator.react","BoostedComponentDialogUIActionsV2","BoostedComponentHeaderAdStatusBarV2.react","BoostedComponentIntegrityWarningBoxV2Container.react","BoostedComponentLeadGenUtils","BoostedComponentPromoteTypeSelectorDialogConstants","BoostedComponentRef","BoostedComponentSimplifiedUtils","BoostedComponentStatus","BoostedComponentStringsV2","BoostedComponentSubmissionOverlay.react","BUIAdoptionCloseButton.react","Image.react","Layout.react","React","asset","fbglyph","BoostedComponentV2Utils"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("BoostedComponentLeadGenUtils").isBoostFormStep,m=c("BoostedComponentSimplifiedUtils").shouldShowStepperFlowFromConsolidatedEntryPoints,n=c("Layout.react").Column,o=c("Layout.react").FillColumn,p=c("BoostedComponentV2Utils").getTitleFromAppID,q=c("BIGAdoptionConfig").ads_fbicon_adoption?h("363531"):h("124210"),r=function r(t){__p&&__p();var u=void 0;switch(t.appID){case c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS:u=c("BoostedComponentPromoteTypeSelectorDialogConstants").BOOSTED_AUTOMATED_ADS.title;break;case c("BoostedComponentAppID").BOOSTED_WEBSITE:u=c("BoostedComponentPromoteTypeSelectorDialogConstants").BOOSTED_WEBSITE.title;break;case c("BoostedComponentAppID").BOOSTED_LOCAL_AWARENESS:u=c("BoostedComponentPromoteTypeSelectorDialogConstants").BOOSTED_LOCALAWARENESS.title;break;case c("BoostedComponentAppID").BOOSTED_PAGELIKE:u=c("BoostedComponentPromoteTypeSelectorDialogConstants").BOOSTED_PAGELIKE.title;break;case c("BoostedComponentAppID").BOOSTED_APP_INSTALL:u=c("BoostedComponentPromoteTypeSelectorDialogConstants").BOOSTED_APP_INSTALL.title;break;case c("BoostedComponentAppID").BOOSTED_PAGE:case c("BoostedComponentAppID").BOOSTED_CCTA:u=p(t.appID,false,false,null,t.ctaType);break;case c("BoostedComponentAppID").BOOSTED_LEAD_GEN:if(!t.isLeadGenFormBoostStep)u=m()?c("BoostedComponentStringsV2").BOOSTED_LEADGEN_SIMPLIFIED_CREATE_FORM_DIALOG_TITLE:c("BoostedComponentStringsV2").BOOSTED_LEADGEN_CREATE_FORM_DIALOG_TITLE;else u=m()?c("BoostedComponentStringsV2").BOOSTED_LEADGEN_SIMPLIFIED_DIALOG_TITLE:c("BoostedComponentStringsV2").BOOSTED_LEADGEN_DIALOG_TITLE;break;default:u=c("BoostedComponentStringsV2").BOOST}var v=c("React").createElement("span",{className:"_3kim",role:"button",onClick:t.onClick},c("BoostedComponentStringsV2").CREATE_PROMOTION);if(t.appID===c("BoostedComponentAppID").BOOSTED_LEAD_GEN)if(m())return c("React").createElement("span",null,u);else if(t.isLeadGenFormBoostStep){var w=c("React").createElement("span",null,c("BoostedComponentStringsV2").BOOSTED_LEADGEN_CREATE_FORM_DIALOG_TITLE);return c("React").createElement("div",null,v,c("React").createElement(c("Image.react"),{className:"_3kiu",src:q}),w,c("React").createElement(c("Image.react"),{className:"_3kiu",src:q}),c("React").createElement("span",null,u))}return c("React").createElement("div",null,v,c("React").createElement(c("Image.react"),{className:"_3kiu",src:q}),c("React").createElement("span",null,u))};j=babelHelpers.inherits(s,c("React").Component);k=j&&j.prototype;function s(){__p&&__p();var t,u;for(var v=arguments.length,w=Array(v),x=0;x<v;x++)w[x]=arguments[x];return u=(t=k.constructor).call.apply(t,[this].concat(w)),this.$BoostedComponentHeaderV21=function(){if(this.props.dialogShown){var y=this.props,z=y.appID,A=y.pageID,B=y.targetID,C=y.boostID,D=y.placement,E=y.selectedAccountID,F=y.instanceID;c("BoostedComponentCommonActionsV2").fetchBoostedComponentDialogData(A,z,B,C,D,E,undefined,F)}}.bind(this),this.$BoostedComponentHeaderV22=function(){var y=this.props,z=y.adStatus,A=y.appID,B=y.creationFlowSurvey,C=y.isBoosted,D=y.resultsFlowSurvey,E=y.targetID,F=y.boostID,G=y.pageID;if(C){if(B)new(c("AsyncRequest"))(B).send();else if(z===c("BoostedComponentStatus").FINISHED&&D)new(c("AsyncRequest"))(D).send();c("BoostedComponentDialogUIActionsV2").closeDialog(A,E,F,C,G)}else c("BoostedComponentDialogUIActionsV2").closeDialogClick(A,E,F)}.bind(this),this.$BoostedComponentHeaderV23=function(){var y=this.props,z=y.appID,A=y.isBoosted,B=y.targetID,C=y.boostID;if(A)c("BoostedComponentDialogUIActionsV2").closeDialogFromBackLink(z,B,C,A);else c("BoostedComponentDialogUIActionsV2").backLinkClick(z,B,C)}.bind(this),u}s.prototype.componentDidMount=function(){var t=this.props.submissionStatusData;if(!t.get("isFetching")&&!t.get("dataLoaded"))this.$BoostedComponentHeaderV21()};s.prototype.render=function(){var t=this.props,u=t.adStatus,v=t.appID,w=t.boostID,x=t.callToActionType,y=t.canViewerEditAd,z=t.hideCloseButton,A=t.instanceID,B=t.isAdModifiedInAdsManager,C=t.isBoosted,D=t.isJobOpening,E=t.isSubmitting,F=t.isUploadingPhoto,G=t.submitAction,H=t.pageID,I=t.placement,J=t.selectedAccountID,K=t.submissionStatusData,L=t.targetID;return c("React").createElement("div",null,c("React").createElement(c("BoostedComponentSubmissionOverlay.react"),{isSubmitting:E,submitAction:G}),c("React").createElement(c("BoostedComponentDialogPhotoUploadingIndicator.react"),{showIndicator:F}),c("React").createElement(c("AdsLWIDialogHeader.react"),{closeButton:!z?c("React").createElement(c("BUIAdoptionCloseButton.react"),{onClick:this.$BoostedComponentHeaderV22}):null},c("React").createElement(c("Layout.react"),{className:"_zl5"},c("React").createElement(n,null,I===c("BoostedComponentRef").WWW_CONSOLIDATED_PROMOTE_BUTTON?c("React").createElement(r,{appID:v,ctaType:x,isLeadGenFormBoostStep:l(L),onClick:this.$BoostedComponentHeaderV23}):p(v,C,D,I,x)),c("React").createElement(n,{className:"_2piv"},c("React").createElement(c("BoostedComponentHeaderAdStatusBarV2.react"),{adAccountID:J,adStatus:u,appID:v,boostID:w,canViewerEditAd:y,"data-testid":"header-ad-status",instanceID:A,isAdModifiedInAdsManager:B,pageID:H,placement:I,submissionStatusData:K,targetID:L})),c("React").createElement(o,null))),c("React").createElement(c("AdsAdblockWarning.react"),{margin:"0"}),c("React").createElement(c("BoostedComponentIntegrityWarningBoxV2Container.react"),{appID:v,boostID:w,instanceID:A,targetID:L}))};f.exports=s}),null);
__d("BoostedComponentHeaderV2Container.react",["AdsFluxContainer","AdsLWIInstanceUtils","BoostedActionCreativeStoreV2","BoostedComponentAdAccountStoreV2","BoostedComponentAppID","BoostedComponentContainerUtils","BoostedComponentContextStoreV2","BoostedComponentDialogUIStoreV2","BoostedComponentErrorBoundaryContainer.react","BoostedComponentExistingAdInfoStoreV2","BoostedComponentHeaderV2.react","BoostedComponentSubmisionStatusStoreV2","BoostedComponentSubmissionStatusStoreData","BoostedComponentSurveyAndFeedbackStoreV2","BoostedComponentTextPenaltyStoreV2","React","adsLWICurrentInstanceDataSelector","adsLWIDialogStateSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded;h=babelHelpers.inherits(l,c("React").Component);i=h&&h.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=i.constructor).call.apply(m,[this].concat(p)),this.state={adStatus:"",callToActionType:null,campaignAdditionalSettings:null,canViewerEditAd:false,creationFlowSurvey:null,dialogShown:false,hideCloseButton:true,instanceID:"",isAdModifiedInAdsManager:false,isJobOpening:false,isSubmitting:false,isUploadingPhoto:false,resultsFlowSurvey:null,selectedAccountID:"",submitAction:null,submissionStatusData:new(c("BoostedComponentSubmissionStatusStoreData"))()},n}l.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedActionCreativeStoreV2"),c("BoostedComponentAdAccountStoreV2"),c("BoostedComponentContextStoreV2"),c("BoostedComponentDialogUIStoreV2"),c("BoostedComponentExistingAdInfoStoreV2"),c("BoostedComponentSubmisionStatusStoreV2"),c("BoostedComponentSurveyAndFeedbackStoreV2"),c("BoostedComponentTextPenaltyStoreV2")])};l.calculateState=function(m,n){__p&&__p();var o=n.appID,p=n.targetID,q=n.boostID,r=j(o,p,q),s=c("BoostedComponentAdAccountStoreV2").getState(),t=c("BoostedComponentContextStoreV2").getDataByKey(r),u=c("BoostedComponentDialogUIStoreV2").getDataByKey(r),v=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(r),w=c("BoostedComponentSurveyAndFeedbackStoreV2").getDataByKey(r),x=k([s,t,v,w]),y=void 0;if(o===c("BoostedComponentAppID").BOOSTED_PAGE){y=c("BoostedActionCreativeStoreV2").getDataByKey(r);x=x&&k([y])}var z=c("adsLWIDialogStateSelector")(),A=z.instanceID;if(!x)return babelHelpers["extends"]({},m,{adStatus:v.get("ad_status"),campaignAdditionalSettings:t.get("campaign_additional_settings"),canViewerEditAd:t.get("can_viewer_edit"),dialogShown:u.get("dialogShown"),instanceID:A,isAdModifiedInAdsManager:v.get("is_modified_in_ads_manager"),isJobOpening:t.getIsJobOpening(),isSubmitting:u.get("isSubmitting"),selectedAccountID:s.getSelectedAccountID(),submitAction:u.get("submitAction"),submissionStatusData:c("BoostedComponentSubmisionStatusStoreV2").getDataByKey(r)});var B=c("BoostedComponentTextPenaltyStoreV2").getDataByKey(r),C=B.get("dataLoaded")?B.get("textPenaltyPhotoSwapState")==="Uploading":false;return{adStatus:v.get("ad_status"),callToActionType:y?y.getCallToActionType():null,campaignAdditionalSettings:t.get("campaign_additional_settings"),canViewerEditAd:t.get("can_viewer_edit"),dialogShown:u.get("dialogShown"),hideCloseButton:u.getDialogStyle()==="window",instanceID:A,isAdModifiedInAdsManager:v.get("is_modified_in_ads_manager"),isJobOpening:t.getIsJobOpening(),isSubmitting:u.get("isSubmitting"),isUploadingPhoto:C,resultsFlowSurvey:w.getResultsFlowSurveyURI(),selectedAccountID:s.getSelectedAccountID(),creationFlowSurvey:u.getShowCreationSurvey()?w.getCreationFlowSurveyURI():null,submitAction:u.get("submitAction"),submissionStatusData:c("BoostedComponentSubmisionStatusStoreV2").getDataByKey(r)}};l.prototype.render=function(){var m=this.props,n=m.appID,o=m.boostID,p=m.isBoosted,q=m.pageID,r=m.placement,s=m.targetID;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentHeaderV2"},c("React").createElement(c("BoostedComponentHeaderV2.react"),babelHelpers["extends"]({appID:n,boostID:o,instanceID:this.state.instanceID,isBoosted:p,pageID:q,placement:r,targetID:s},this.state)))};f.exports=c("AdsFluxContainer").create(l,{withProps:true,name:f.id})}),null);
__d("BoostedComponentAdAccountSectionV2Container.react",["AdsFluxContainer","AdsLWIInstanceUtils","BoostedComponentAdAccountSectionV2.react","BoostedComponentAdAccountStoreV2","BoostedComponentAudienceStoreV2","BoostedComponentContainerUtils","BoostedComponentCouponPromotionStoreV2","BoostedComponentDialogUIStoreV2","BoostedComponentErrorBoundaryContainer.react","BoostedComponentExistingAdInfoStoreV2","BoostedComponentSectionV2Spinner.react","BoostedComponentStringsV2","immutable","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded;h=babelHelpers.inherits(l,c("React").Component);i=h&&h.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=i.constructor).call.apply(m,[this].concat(p)),this.state={accounts:c("immutable").Map(),checkoutV2ExperimentGroup:null,currency:"",campaignAdAccountID:"",canUpdateCurrency:false,dataLoaded:false,disableAdAccountSelector:false,hasCoupon:false,isBoosted:true,isCheckout:false,messengerOptInChoice:false,paymentInfo:c("immutable").Map(),selectedAccountID:"",selectedAccountName:"",showMessengerOptIn:false},n}l.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedComponentAdAccountStoreV2"),c("BoostedComponentAudienceStoreV2"),c("BoostedComponentCouponPromotionStoreV2"),c("BoostedComponentExistingAdInfoStoreV2"),c("BoostedComponentDialogUIStoreV2")])};l.calculateState=function(m,n){var o=n.appID,p=n.targetID,q=n.boostID,r=j(o,p,q),s=c("BoostedComponentAdAccountStoreV2").getState(),t=c("BoostedComponentAudienceStoreV2").getDataByKey(r),u=c("BoostedComponentCouponPromotionStoreV2").getData(o,p),v=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(r),w=c("BoostedComponentDialogUIStoreV2").getDataByKey(r),x=k([s,t,v]);if(!x)return babelHelpers["extends"]({},m,{dataLoaded:x});var y=s.getPaymentInfo(),z=u&&u.get("coupon_product")!=null||false,A=y.get("adCoupon")||z;return{accounts:s.getAccounts(),canUpdateCurrency:s.canUpdateCurrency(),campaignAdAccountID:v.getCampaignAdAccountID(),checkoutV2ExperimentGroup:s.getCheckoutV2ExperiementGroup(),currency:s.getCurrency(),disableAdAccountSelector:s.isAdAccountSelectorDisabled(),hasCoupon:A,isBoosted:v.getIsBoosted(),isCheckout:s.getIsAccountInCheckout(),messengerOptInChoice:w.getMSGOptIn(),paymentInfo:y,selectedAccountID:s.getSelectedAccountID(),selectedAccountName:s.getSelectedAccountName(),showMessengerOptIn:w.getShowMSGEntrypoint(),dataLoaded:x,adAccountStoreData:s}};l.prototype.render=function(){if(!this.state.dataLoaded)return c("React").createElement(c("BoostedComponentSectionV2Spinner.react"),{height:200,title:c("BoostedComponentStringsV2").PAYMENT_INFO_SECTION});var m=this.props,n=m.appID,o=m.targetID,p=m.boostID,q=m.instanceID,r=m.isStepperFlow,s=m.hideTitleAndBorder,t=m.pageID,u=m.placement;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentAdAccountSectionV2"},c("React").createElement(c("BoostedComponentAdAccountSectionV2.react"),babelHelpers["extends"]({appID:n,boostID:p,hideTitleAndBorder:s,instanceID:q,isStepperFlow:r,pageID:t,placement:u,targetID:o},this.state)))};f.exports=c("AdsFluxContainer").create(l,{withProps:true,name:f.id})}),null);
__d("BoostedComponentUnifiedAudienceSectionV2.react",["cx","fbt","BoostedComponentAudienceActionsV2","BoostedComponentAudienceEditor.react","BoostedComponentAudienceEditorConfigUtils","BoostedComponentSectionSubheader.react","BoostedComponentSectionV2.react","BoostedComponentSectionV2Spinner.react","BoostedComponentStringsV2","React","SUIBusinessTheme","SUINotice.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=i._("POTENTIAL APPLICANTS (AUDIENCE)");j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;function m(o){k.constructor.call(this,o);n.call(this);var p=o.appID,q=o.audienceData,r=o.boostID,s=o.dataLoaded,t=o.targetID;c("BoostedComponentAudienceActionsV2").setRendered(p,t,r);if(s)this.$BoostedComponentUnifiedAudienceSectionV21(q.getTargetSpec())}m.prototype.componentDidUpdate=function(o){var p=this.props,q=p.audienceData,r=p.dataLoaded;if(r&&r!==o.dataLoaded)this.$BoostedComponentUnifiedAudienceSectionV21(q.getTargetSpec())};m.prototype.render=function(){var o=this.props,p=o.accountID,q=o.dataLoaded;if(!q||!p)return c("React").createElement(c("BoostedComponentSectionV2Spinner.react"),{height:200,title:c("BoostedComponentStringsV2").AUDIENCE_SECTION});var r=this.props,s=r.appID,t=r.audienceData,u=r.constraintData,v=r.errors,w=r.isBoosted,x=c("BoostedComponentAudienceEditorConfigUtils").getConfig(s,w,u,false,true);return c("React").createElement(c("BoostedComponentSectionV2.react"),{title:l},c("React").createElement("div",{className:(!t.getAudienceTag()?"_9ib":"")+(t.getAudienceTag()?" _14s3":"")},c("React").createElement(c("BoostedComponentSectionSubheader.react"),{errors:v}),c("React").createElement(c("BoostedComponentAudienceEditor.react"),{adAccountID:p,editorConfig:x,showFlexSpecExperimentParam:true,targetingSpec:t.getTargetSpec(),onDataUpdate:this.$BoostedComponentUnifiedAudienceSectionV21})),t.getAudienceTag()&&c("React").createElement("div",{className:"_14s4"},c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:"information"},t.getAudienceTag())))};var n=function n(){this.$BoostedComponentUnifiedAudienceSectionV21=function(o){var p=this.props,q=p.appID,r=p.targetID,s=p.boostID;c("BoostedComponentAudienceActionsV2").editJobAudience(o,q,r,s)}.bind(this)};f.exports=m}),null);
__d("BoostedComponentAudienceSectionV2Container.react",["AdsCallToActionTypes","AdsFluxContainer","AdsLWIInstanceUtils","BoostedComponentAdAccountStoreV2","BoostedComponentAppID","BoostedComponentAudienceSectionV2.react","BoostedComponentAudienceStoreData","BoostedComponentAudienceStoreV2","BoostedComponentBudgetEstimationStoreV2","BoostedComponentConstraintStoreData","BoostedComponentConstraintStoreV2","BoostedComponentContainerUtils","BoostedComponentContextStoreV2","BoostedComponentCreativeUtils","BoostedComponentErrorBoundaryContainer.react","BoostedComponentExistingAdInfoStoreV2","BoostedComponentInstagramStoreData","BoostedComponentInstagramStoreV2","BoostedComponentStoreState","BoostedComponentUnifiedAudienceSectionV2.react","BoostedPostCreativeStoreV2","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded,l=c("BoostedComponentCreativeUtils").useBoostedActionCreativeStore,m=c("BoostedComponentStoreState").getKey;h=babelHelpers.inherits(n,c("React").Component);i=h&&h.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=i.constructor).call.apply(o,[this].concat(r)),this.state={accessToken:"",accountID:"",adgroupID:null,audienceData:new(c("BoostedComponentAudienceStoreData"))(),constraintData:new(c("BoostedComponentConstraintStoreData"))(),dataLoaded:false,instagramData:new(c("BoostedComponentInstagramStoreData"))(),isBoosted:false,isJobPost:false,isUpdating:false,pageTypes:[],reachEstimatesFetched:false,selectedAudienceSize:0,showAudienceManager:false,showExpandedTargetingHints:false},p}n.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedComponentAdAccountStoreV2"),c("BoostedComponentAudienceStoreV2"),c("BoostedComponentBudgetEstimationStoreV2"),c("BoostedComponentConstraintStoreV2"),c("BoostedComponentContextStoreV2"),c("BoostedComponentExistingAdInfoStoreV2"),c("BoostedComponentInstagramStoreV2"),c("BoostedPostCreativeStoreV2")])};n.calculateState=function(o,p){__p&&__p();var q=p.accountID,r=p.appID,s=p.targetID,t=p.boostID,u=p.isV1,v=u?m(r,s,t):j(r,s,t),w=c("BoostedComponentAdAccountStoreV2").getState(),x=c("BoostedComponentAudienceStoreV2").getDataByKey(v),y=c("BoostedComponentInstagramStoreV2").getDataByKey(v),z=void 0,A=void 0;if(!l(r)){z=c("BoostedPostCreativeStoreV2").getDataByKey(v);A=k([w,x,z])}else A=k([w,x]);if(!A)return babelHelpers["extends"]({},o,{dataLoaded:A});var B=c("BoostedComponentBudgetEstimationStoreV2").getDataByKey(v),C=c("BoostedComponentConstraintStoreV2").getDataByKey(v),D=c("BoostedComponentContextStoreV2").getDataByKey(v),E=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(v),F=p.audienceSize,G=F!==undefined?F:B.getAudienceSize(),H=z?z.getCallToActionType():null;return{accessToken:D.get("access_token"),accountID:q||w.getSelectedAccountID(),adgroupID:E.get("adgroup_id"),audienceData:x,constraintData:C,dataLoaded:A,instagramData:y,instagramPlacementRemoved:x.get("instagramPlacementRemoved"),isBoosted:E.get("is_boosted"),isJobPost:D.isJobPost(),isUpdating:x.get("isUpdating"),pageTypes:x.placements,reachEstimatesFetched:B.getReachEstimatesFetched(),selectedAudienceSize:G,showAudienceManager:x.get("showAudienceManager"),showExpandedTargetingHints:H===c("AdsCallToActionTypes").TYPES.WHATSAPP_MESSAGE.name}};n.prototype.render=function(){var o=this.props,p=o.appID,q=o.boostID,r=o.errors,s=o.forceInstagramRemoval,t=o.instanceID,u=o.instagramValidationException,v=o.isV1,w=o.noInstagramCheckbox,x=o.pageID,y=o.placement,z=o.targetID;if(this.state.isJobPost||p===c("BoostedComponentAppID").BOOSTED_JOB_POST)return c("React").createElement(c("BoostedComponentUnifiedAudienceSectionV2.react"),babelHelpers["extends"]({},this.state,{appID:p,boostID:q,errors:r,instanceID:t,pageID:x,placement:y,targetID:z}));return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentAudienceSectionV2"},c("React").createElement(c("BoostedComponentAudienceSectionV2.react"),babelHelpers["extends"]({},this.state,{appID:p,boostID:q,errors:r,forceInstagramRemoval:s,instagramValidationException:u,instanceID:t,isV1:!!v,noInstagramCheckbox:w,pageID:x,placement:y,targetID:z})))};f.exports=c("AdsFluxContainer").create(n,{withProps:true,name:f.id})}),null);
__d("BoostedComponentBudgetAndDurationSectionV2Container.react",["AdsFluxContainer","AdsLWIDeliveryEstimateStore","AdsLWIEstimateUtils","AdsLWINewBudgetDataRecord","BoostedActionCreativeStoreV2","BoostedComponentAdAccountStoreData","BoostedComponentAdAccountStoreV2","BoostedComponentAppID","BoostedComponentBudgetAndDurationSectionV2.react","BoostedComponentBudgetEstimationStoreData","BoostedComponentBudgetEstimationStoreV2","BoostedComponentDurationStoreData","BoostedComponentDurationStoreV2","BoostedComponentErrorBoundaryContainer.react","BoostedComponentExistingAdInfoStoreData","BoostedComponentExistingAdInfoStoreV2","BoostedComponentExperimentationStoreData","BoostedComponentExperimentationStoreV2","BoostedComponentSectionV2Spinner.react","BoostedComponentStringsV2","BoostedComponentValidationStoreV2","BoostedPostCreativeStoreV2","immutable","React","adsLWICurrentInstanceDataSelector","AdsLWIInstanceUtils","BoostedComponentContainerUtils"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("React").Component,k=c("AdsLWIInstanceUtils").getKeyFromInstanceData,l=c("BoostedComponentContainerUtils").isDataLoaded;h=babelHelpers.inherits(m,j);i=h&&h.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=i.constructor).call.apply(n,[this].concat(q)),this.state={adAccountData:new(c("BoostedComponentAdAccountStoreData"))(),budgetData:new(c("BoostedComponentBudgetEstimationStoreData"))(),budgetErrors:c("immutable").List(),existingAdInfoData:new(c("BoostedComponentExistingAdInfoStoreData"))(),newBudgetData:new(c("AdsLWINewBudgetDataRecord"))(),budgetWarnings:c("immutable").List(),callToActionType:null,durationData:new(c("BoostedComponentDurationStoreData"))(),dataLoaded:false,experimentationData:new(c("BoostedComponentExperimentationStoreData"))(),objective:null},o}m.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedActionCreativeStoreV2"),c("BoostedComponentAdAccountStoreV2"),c("BoostedComponentBudgetEstimationStoreV2"),c("BoostedComponentDurationStoreV2"),c("BoostedComponentValidationStoreV2"),c("BoostedComponentExistingAdInfoStoreV2"),c("BoostedPostCreativeStoreV2"),c("BoostedComponentExperimentationStoreV2"),c("AdsLWIDeliveryEstimateStore")])};m.calculateState=function(n,o){var p=o.appID,q=o.targetID,r=o.boostID,s=k(p,q,r),t=c("BoostedComponentAdAccountStoreV2").getState(),u=c("BoostedComponentBudgetEstimationStoreV2").getDataByKey(s),v=c("BoostedComponentDurationStoreV2").getDataByKey(s),w=c("BoostedComponentValidationStoreV2").getDataByKey(s),x=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(s),y=c("BoostedComponentExperimentationStoreV2").getDataByKey(s),z=void 0;if(p===c("BoostedComponentAppID").BOOSTED_POST||p===c("BoostedComponentAppID").BOOSTED_JOB_POST)z=c("BoostedPostCreativeStoreV2").getDataByKey(s);else z=c("BoostedActionCreativeStoreV2").getDataByKey(s);var A=l([t,u,z,v,x,y]);if(!A)return babelHelpers["extends"]({},n,{dataLoaded:A});var B=c("AdsLWIDeliveryEstimateStore").getDataByKey(s);return{adAccountData:t,budgetData:u,newBudgetData:c("AdsLWIEstimateUtils").getNewBudgetDataRecord(u,B,v,p),callToActionType:z.getCallToActionType(),durationData:v,dataLoaded:A,budgetErrors:w.getBudgetErrors(),budgetWarnings:w.getBudgetWarnings(),objective:x.getObjective(),experimentationData:y,existingAdInfoData:x}};m.prototype.render=function(){if(!this.state.dataLoaded)return c("React").createElement(c("BoostedComponentSectionV2Spinner.react"),{height:200,title:c("BoostedComponentStringsV2").BUDGET_DURATION_SECTION});if(!this.state.newBudgetData)return null;var n=this.props,o=n.appID,p=n.boostID,q=n.instanceID,r=n.isBoosted,s=n.targetID;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentBudgetAndDurationSectionV2"},c("React").createElement(c("BoostedComponentBudgetAndDurationSectionV2.react"),babelHelpers["extends"]({},this.state,{appID:o,boostID:p,instanceID:q,isBoosted:r,targetID:s})))};f.exports=c("AdsFluxContainer").create(m,{withProps:true,name:f.id})}),null);
__d("AdsPixelLoggingConstant",["keyMirror"],(function a(b,c,d,e,f,g){"use strict";f.exports=c("keyMirror")({ADS_PIXEL_PIXEL_CREATION_DIALOG_OPEN:null,ADS_PIXEL_PIXEL_CREATION_LEARN_MORE:null,ADS_PIXEL_ACTIVE_PIXEL_NUDGE_CONVERSION_INFOBOX:null,ADS_PIXEL_ACTIVE_PIXEL_NUDGE_CONVERSION_CLICK:null})}),null);
__d("AdsGoalServerCreatedGoalDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"GOAL_SERVER_ACTION.CREATED_GOAL");f.exports=h}),null);
__d("AdsGoalServerEditedGoalDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"GOAL_SERVER_ACTION.EDITED_GOAL");f.exports=h}),null);
__d("BoostedComponentPixelCreationCheckbox.react",["cx","fbt","React","SUIBusinessTheme","SUICheckboxInput.react","SUILink.react","SUIMessageBox.react","SUIText.react"],(function a(b,c,d,e,f,g,h,i){"use strict";function j(k){return c("React").createElement(c("SUIMessageBox.react"),{hasShadow:false,theme:c("SUIBusinessTheme")},c("React").createElement("div",{className:"_272s"},c("React").createElement("span",null,c("React").createElement(c("SUICheckboxInput.react"),{theme:c("SUIBusinessTheme"),value:k.value,onChange:k.onChange})),c("React").createElement("span",{className:"_272t"},c("React").createElement(c("SUIText.react"),{weight:"bold"},i._("Create Facebook Pixel (recommended)")),c("React").createElement("span",{className:"_3-8r"},"|"),c("React").createElement(c("SUIText.react"),null,c("React").createElement(c("SUILink.react"),{href:"/business/help/742478679120153",target:"_blank"},i._("Learn More"))),c("React").createElement("div",null,c("React").createElement(c("SUIText.react"),{color:"secondary"},i._("By creating a Facebook Pixel, you agree to the Facebook Pixel {Terms of Service}",[i.param("Terms of Service",c("React").createElement(c("SUILink.react"),{href:"https://business.facebook.com/pixels/tos/",target:"_blank"},i._("Terms of Service")))]))))))}f.exports=j}),null);
__d("BoostedComponentSuccessPixelUpsell.react",["cx","fbt","ix","AdsInterfacesLogger","AdsInterfacesLoggerConfigColumns","AdsPixelHelpCenter","AdsPixelLoggingConstant","AdsPixelUIEnvironments","Grid.react","Image.react","Link.react","React"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("Grid.react").GridItem,n=c("React").PropTypes;k=babelHelpers.inherits(o,c("React").Component);l=k&&k.prototype;o.prototype.$BoostedComponentSuccessPixelUpsell1=function(){var p;c("AdsInterfacesLogger").log({eventName:c("AdsPixelLoggingConstant").ADS_PIXEL_PIXEL_CREATION_LEARN_MORE,data:(p={},p[c("AdsInterfacesLoggerConfigColumns").SIGNALS_UI_COMPONENT_ENVIRONMENT]=JSON.stringify({environment:c("AdsPixelUIEnvironments").LWI}),p)},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)};o.prototype.$BoostedComponentSuccessPixelUpsell2=function(){return this.props.showInstallUpsell||!this.props.createdPixelID&&!this.props.hasFBPixel};o.prototype.render=function(){if(!this.$BoostedComponentSuccessPixelUpsell2())return null;return c("React").createElement("div",null,c("React").createElement(c("Grid.react"),{className:this.props.className,cols:2},c("React").createElement(m,{className:"_4qm0"},c("React").createElement(c("Image.react"),{src:j("22113")})),c("React").createElement(m,null,c("React").createElement("div",{className:"_4qm2"},this.$BoostedComponentSuccessPixelUpsell3()))))};o.prototype.$BoostedComponentSuccessPixelUpsell3=function(){return this.props.showInstallUpsell?i._("We haven't seen any activity from your pixel '{pixel name}'. Download the {Pixel Helper Tool} tool to make sure your code is installed properly, and access the {Pixel install guidance} for troubleshooting tips.",[i.param("pixel name",this.props.selectedPixelName),i.param("Pixel Helper Tool",c("React").createElement(c("Link.react"),{href:c("AdsPixelHelpCenter").PIXEL_HELPER,target:"_blank"},i._("pixel helper"))),i.param("Pixel install guidance",c("React").createElement(c("Link.react"),{href:c("AdsPixelHelpCenter").INSTALL.uri,target:"_blank"},"installation guide"))]):i._("You can install a Facebook pixel to measure how people who see your Page promotion interact with your website. {help link} or {create pixel link}",[i.param("help link",c("React").createElement(c("Link.react"),{href:c("AdsPixelHelpCenter").GENERAL.uri,target:"_blank",onClick:this.$BoostedComponentSuccessPixelUpsell1},i._("Learn more"))),i.param("create pixel link",c("React").createElement(c("Link.react"),{onClick:this.props.onCreatePixelClick},i._("create a pixel.")))])};function o(){k.apply(this,arguments)}f.exports=o}),null);
__d("SignalsTrackingCard.react",["cx","fbt","AdsPixelStatusUtils","React","SUILink.react","SUIText.react","SUITooltip.react","URI"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PureComponent,m=i._("AUTO"),n=i._("OPTIMIZED"),o=i._("ID:");j=babelHelpers.inherits(p,l);k=j&&j.prototype;p.prototype.render=function(){var q=this.props,r=q.autoTracked,s=q.autoTrackingHelpLink,t=q.idLabel,u=q.name,v=q.nameWeight,w=q.optimized,x=q.sourceFbt,y=q.status,z=q.value,A=q.withBorder;return c("React").createElement("div",{className:"_1ku_"+(A?" _25dw":"")},c("React").createElement("div",{className:"_5zgj"},y!=null?c("React").createElement("div",{className:"_5zgk"},c("AdsPixelStatusUtils").getIcon(y)):null,c("React").createElement("div",{className:"_3ftv"},c("React").createElement(c("SUIText.react"),{display:"truncate",shade:"medium",weight:v||"bold"},u),c("React").createElement("div",{className:"_3ftw"},c("React").createElement(c("SUIText.react"),{display:"block",shade:"light",size:"xsmall_DEPRECATED"},t===undefined?o:t,z),r?c("React").createElement(c("SUITooltip.react"),{position:"below",tooltip:i._("Auto-tracking by this {event source name, such as offline event set} is enabled for all ads created by this ad account. {optional learn-more link}",[i.param("event source name, such as offline event set",x),i.param("optional learn-more link",s?c("React").createElement(c("SUILink.react"),{href:s.toString(),target:"_blank"},i._("Learn more about auto-tracking.")):null)])},c("React").createElement("div",{className:"_3ftx _3fty"},m)):null,w!=="none"?c("React").createElement(c("SUITooltip.react"),{position:"below",tooltip:w==="all"?i._("Ad delivery will be optimized for conversions tracked by this {event source name, such as pixel}.",[i.param("event source name, such as pixel",x)]):i._("Ad delivery for some of your ad sets will be optimized for conversions tracked by this {event source name, such as pixel}.",[i.param("event source name, such as pixel",x)])},c("React").createElement("div",{className:"_3ftx"+(w==="all"?" _3ftz":"")+(w==="some"?" _f0i":"")},n)):null))))};function p(){j.apply(this,arguments)}p.defaultProps={optimized:"none"};p.SOURCES={PIXEL:i._("pixel"),OFFLINE_EVENT_SET:i._("offline event set"),APP:i._("app")};p.AUTO_TRACKING_HELP_LINKS={OFFLINE_EVENT_SET:new(c("URI"))("https://www.facebook.com/business/help/1480558938621580")};f.exports=p}),null);
__d("SignalsTrackingUtil",["SignalsStatusEnum"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h={getSourceByID:function i(j,k){return k.find(function(l){return l.id===j})},getUnSelectedDataSource:function i(j,k,l){return k.filterNot(function(m){return j.includes(m.id)||m.autoTracked||l.getValues().indexOf(m.id)>=0})},sortSignalsList:function i(j){return j.sort(function(k,l){if(k.status===l.status)return k.name===l.name?0:k.name<l.name?-1:1;return this._getStatusWeight(k.status)-this._getStatusWeight(l.status)}.bind(this))},_getStatusWeight:function i(j){if(j===c("SignalsStatusEnum").ACTIVE)return 0;else if(j===c("SignalsStatusEnum").INACTIVE)return 1;else if(j===c("SignalsStatusEnum").NEVER_ACTIVE)return 2;else return 3}};f.exports=h}),null);
__d("SignalsTrackingSelector.react",["cx","React","SignalsTrackingCard.react","SignalsTrackingUtil","SUISelector.react","SUISelectorOption.react","URI"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PureComponent;i=babelHelpers.inherits(l,k);j=i&&i.prototype;l.prototype.render=function(){var m=this.props,n=m.autoTrackingHelpLink,o=m.disabled,p=m.placeholder,q=m.selectedID,r=m.signalsObjects,s=m.sourceFbt,t=m.idLabel,u=m.inheritTheme,v=m.width,w=m.onSelectSource,x=[],y=c("SignalsTrackingUtil").sortSignalsList(r);y.forEach(function(z){x.push(c("React").createElement(c("SUISelectorOption.react"),{key:z.id,value:z.id},c("React").createElement(c("SignalsTrackingCard.react"),{autoTrackingHelpLink:n,idLabel:t,name:z.name,sourceFbt:s,status:z.status,value:z.id})))});return c("React").createElement("div",null,c("React").createElement(c("SUISelector.react"),{className_DEPRECATED:"_63nz"+(!u?" _hce":""),disabled:o,placeholder:p,value:q,width:v||"100%",onChange:w},x))};function l(){i.apply(this,arguments)}f.exports=l}),null);
__d("SignalsTrackingRowItems.react",["cx","fbt","AdsEmptyValue","AdsMixedValue","immutable","React","SignalsTrackingCard.react","SignalsTrackingSelector.react","SignalsTrackingUtil","SUICloseButton.react","SUILink.react","URI"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l,m,n=c("React").PureComponent,o=c("immutable").List,p=i._("Add another source...");j=babelHelpers.inherits(q,n);k=j&&j.prototype;function q(){__p&&__p();var s,t;for(var u=arguments.length,v=Array(u),w=0;w<u;w++)v[w]=arguments[w];return t=(s=k.constructor).call.apply(s,[this].concat(v)),this.$SignalsTrackingRowItem1=function(){__p&&__p();var x=this.props,y=x.children,z=x.onRemove;if(y!=null&&z!=null){var A=null;if(y.props.value!=null)A=y.props.value;else if(y.props.selectedID!=null)A=y.props.selectedID;if(typeof A==="string")z(A)}}.bind(this),t}q.prototype.render=function(){var s=this.props,t=s.children,u=s.onRemove;return c("React").createElement("div",{className:"_y62"},c("React").createElement("div",{className:"_y64"},t),c("React").createElement("div",{className:"_ed0"},u!=null?c("React").createElement(c("SUICloseButton.react"),{shade:"dark",size:"small",onClick:this.$SignalsTrackingRowItem1}):null))};l=babelHelpers.inherits(r,n);m=l&&l.prototype;function r(){var s,t;for(var u=arguments.length,v=Array(u),w=0;w<u;w++)v[w]=arguments[w];return t=(s=m.constructor).call.apply(s,[this].concat(v)),this.$SignalsTrackingRowItems1=function(){var x=this.props,y=x.onAddSource,z=x.promotedSourceIDs,A=x.selectedSources,B=x.sources,C=c("SignalsTrackingUtil").getUnSelectedDataSource(A,B,z);C.size>0?y&&y(C.first().id):null}.bind(this),t}r.prototype.$SignalsTrackingRowItems2=function(s){return this.props.promotedSourceIDs.getValues().indexOf(s)>=0};r.prototype.$SignalsTrackingRowItems3=function(s){return this.$SignalsTrackingRowItems2(s)?this.props.promotedSourceIDs instanceof c("AdsMixedValue")?"some":"all":"none"};r.prototype.render=function(){__p&&__p();var s,t=this,u=this.props,v=u.addButtonLabel,w=u.autoTrackingHelpLink,x=u.isDisableEditing,y=u.isMixedValue,z=u.isSingleSourceTracking,A=u.promotedSourceIDs,B=u.readOnly,C=u.selectedSources,D=u.sourceFbt,E=u.sources,F=u.trackingSourceIDLabel,G=u.onRemoveSource,H=u.onSelectSource,I=!(A instanceof c("AdsEmptyValue")),J=E.filter(function(N){return N.autoTracked||this.$SignalsTrackingRowItems2(N.id)}.bind(this)).sort(function(N,O){var P=this.$SignalsTrackingRowItems2(N.id)?1:0,Q=this.$SignalsTrackingRowItems2(O.id)?1:0;return P-Q}.bind(this)).reverse();if(J.size===0&&E.size===0)return null;var K=J.map(function(N){return c("React").createElement(q,{key:N.id},c("React").createElement(c("SignalsTrackingCard.react"),{autoTracked:N.autoTracked,autoTrackingHelpLink:w,idLabel:F,name:N.name,optimized:this.$SignalsTrackingRowItems3(N.id),sourceFbt:D,status:N.status,value:N.id,withBorder:true}))}.bind(this)),L=null,M=false;if(!y)(function(){__p&&__p();var N=c("SignalsTrackingUtil").getUnSelectedDataSource(C,E,A),O=[],P=C.map(function(Q){return c("SignalsTrackingUtil").getSourceByID(Q,E)}).filter(function(Q){return Q&&!Q.autoTrack&&!this.$SignalsTrackingRowItems2(Q.id)}.bind(t));P.forEach(function(Q,R){if(Q==null)return;if(R<P.size-1)O.push(c("React").createElement(q,{key:Q.id,onRemove:!B&&I?G:null},c("React").createElement(c("SignalsTrackingCard.react"),{autoTrackingHelpLink:w,idLabel:F,name:Q.name,optimized:this.$SignalsTrackingRowItems3(Q.id),sourceFbt:D,status:Q.status,value:Q.id,withBorder:true})));else if(I||x)O.push(c("React").createElement(q,{key:Q.id,onRemove:null},c("React").createElement(c("SignalsTrackingCard.react"),{autoTracked:Q.autoTracked,autoTrackingHelpLink:w,idLabel:F,name:Q.name,optimized:this.$SignalsTrackingRowItems3(Q.id),sourceFbt:D,status:Q.status,value:Q.id,withBorder:true})));else if(N.size>0)O.push(c("React").createElement(q,{key:Q.id,onRemove:!B&&(K.size>0||C.size>1)?G:null},c("React").createElement(c("SignalsTrackingSelector.react"),{autoTrackingHelpLink:w,disabled:B,idLabel:F,selectedID:Q.id,signalsObjects:N.push(Q),sourceFbt:D,onSelectSource:H})));else O.push(c("React").createElement(q,{key:Q.id,onRemove:!B&&E.size>1?G:null},c("React").createElement(c("SignalsTrackingCard.react"),{autoTracked:Q.autoTracked,autoTrackingHelpLink:w,idLabel:F,name:Q.name,optimized:this.$SignalsTrackingRowItems3(Q.id),sourceFbt:D,status:Q.status,value:Q.id,withBorder:true})))}.bind(t));L=O;M=!B&&!y&&N.size>0&&(C.size===0||!z)&&A instanceof c("AdsEmptyValue")})();return c("React").createElement("div",null,K,L,M?c("React").createElement("div",{className:"_3-8x"},c("React").createElement(c("SUILink.react"),{onClick:this.$SignalsTrackingRowItems1},v||p)):null)};f.exports=r}),null);
__d("SignalsTrackingRow.react",["cssVar","cx","fbt","AdsEmptyValue","AdsMixedValue","BUISwitch.react","React","SignalsTrackingRowItems.react","SUIBusinessThemeContainer.react","SUIButton.react","SUIHelpMessage.react","SUILink.react","SUISpinner.react","SUIText.react","SUITooltip.react","Tooltip","URI","WaitTimeArea.react"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("React").PureComponent,n=j._("Set Up"),o=j._("Mixed State"),p=j._("Reset"),q=j._("The current tracking selections are based on your conversion objective settings, and can't be changed at this time."),r=j._("Tracking is required based on your conversion and auto-tracking settings, and can't be disabled at this time.");k=babelHelpers.inherits(s,m);l=k&&k.prototype;s.prototype.render=function(){var t=this.props,u=t.bottomContent,v=t.helpLinkText,w=t.toggleTooltipLabel,x=t.isDisableEditing,y=t.isLoading,z=t.isMixedValue,A=t.label,B=t.promotedSourceIDs,C=t.readOnly,D=t.onResetMixed,E=t.onSetup,F=t.onToggleSelect,G=t.selected,H=t.sources,I=t.topContent,J=H.size>0,K=J&&!z,L=!J,M=H.some(function(S){return S.autoTracked}),N=!(B instanceof c("AdsEmptyValue")),O=B instanceof c("AdsMixedValue"),P=G||M||N,Q=M||N||x,R=w?w:r;return y===true?c("React").createElement(c("SUIBusinessThemeContainer.react"),null,c("React").createElement("div",{className:"_dz9 _2pic"},c("React").createElement(c("WaitTimeArea.react"),{name:"SignalsTrackingRow",owner:"ads_signals"},c("React").createElement(c("SUISpinner.react"),{size:"small"})))):c("React").createElement(c("SUIBusinessThemeContainer.react"),null,c("React").createElement("div",{className:"_dz9"},c("React").createElement("div",{className:"_1xuv"},!C&&K?c("React").createElement(c("BUISwitch.react"),babelHelpers["extends"]({},Q?c("Tooltip").propsFor(R):null,{className:"_1xuw",disabled:Q,value:P,onToggle:F})):null,c("React").createElement("div",{className:"_1xux"},c("React").createElement(c("SUIText.react"),{customColorUseSparingly:"#929598",shade:"light",size:"meta1",weight:"bold"},A),c("React").createElement(c("SUIHelpMessage.react"),{value:v})),!C&&L?c("React").createElement(c("SUIButton.react"),{label:n,size:"small",use:"confirm",onClick:E}):null,z||O?c("React").createElement("div",null,c("React").createElement(c("SUIText.react"),{shade:"light",size:"meta1"},o),C?null:N?c("React").createElement(c("SUITooltip.react"),{tooltip:q},c("React").createElement(c("SUIText.react"),{shade:"light",style:{marginLeft:4}},p)):c("React").createElement(c("SUILink.react"),{className:"_1xuy",onClick:D},p)):null),I!=null?c("React").createElement("div",{className:"_1xuz"},I):null,P?c("React").createElement(c("SignalsTrackingRowItems.react"),this.props):null,u!=null?c("React").createElement("div",{className:"_1xu-"},u):null))};function s(){k.apply(this,arguments)}s.defaultProps={promotedSourceIDs:c("AdsEmptyValue").instance(),readOnly:false};f.exports=s}),null);
__d("FacebookPixelTrackingRow.react",["cx","fbt","AdsPixelHelpCenter","AdsWebsiteOptimizationContextUtils","React","SignalsStatusEnum","SignalsTrackingCard.react","SignalsTrackingRow.react","SignalsTrackingUtil","SUINotice.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PureComponent,m=i._("Facebook Pixel"),n=i._("Add another pixel..."),o=i._("To edit this setting, first choose a website conversion event in the Conversion section of the ad set.");j=babelHelpers.inherits(p,l);k=j&&j.prototype;p.prototype.render=function(){var q=this.props,r=q.pixelTrackingRowConfig,s=q.onSetup,t=r.get("selectedSources"),u=r.get("isMixedValue"),v=r.get("sources"),w=r.get("isLoading"),x=r.get("isDisableEditing");return c("React").createElement("div",{className:"_1lbw"},c("React").createElement(c("SignalsTrackingRow.react"),babelHelpers["extends"]({addButtonLabel:n,bottomContent:this.$FacebookPixelTrackingRow1(),helpLinkText:i._(["Add pixel code to your website to report conversions, see website activity and build audiences for ad targeting. {=Learn More}","1f11b4742781770b42f6ce4bbd085621"],[i.param("=Learn More",c("React").createElement("span",null," ",this.context.getHelpLink(c("AdsPixelHelpCenter").GENERAL,this.context.isCampaignManager(),i._("Learn More"))))]),isDisableEditing:x,isLoading:w,isMixedValue:u,isSingleSourceTracking:true,label:m,selected:t.size>0,selectedSources:t,sourceFbt:c("SignalsTrackingCard.react").SOURCES.PIXEL,sources:v,toggleTooltipLabel:o,onSetup:s},this.props)))};p.prototype.$FacebookPixelTrackingRow1=function(){__p&&__p();var q=this.props.pixelTrackingRowConfig,r=q.get("sources"),s=q.get("selectedSources");if(s.size===0)return null;var t=c("SignalsTrackingUtil").getSourceByID(s.first(),r);if(!t||t.status===c("SignalsStatusEnum").ACTIVE)return null;else if(t.status===c("SignalsStatusEnum").NEVER_ACTIVE)return c("React").createElement(c("SUINotice.react"),{style:{marginBottom:16},type:"information"},i._("Your Facebook pixel is not active at this time. Please {=Learn More}",[i.param("=Learn More",c("React").createElement("span",null," ",this.context.getHelpLink(c("AdsPixelHelpCenter").INSTALL,this.context.isCampaignManager(),i._("check your pixel installation"))))]));else if(t.status===c("SignalsStatusEnum").INACTIVE)return c("React").createElement(c("SUINotice.react"),{style:{marginBottom:16},type:"information"},i._("Your Facebook pixel has not logged events in 7 days. Please {=Learn More}",[i.param("=Learn More",c("React").createElement("span",null," ",this.context.getHelpLink(c("AdsPixelHelpCenter").INSTALL,this.context.isCampaignManager(),i._("double-check your pixel configuration"))))]));return null};function p(){j.apply(this,arguments)}p.contextTypes=c("AdsWebsiteOptimizationContextUtils").getContextTypes();f.exports=p}),null);
__d("PixelTrackingRowConfig",["AdsPixelConversionStatusUtils","AdsPixelStore","immutable"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("immutable").List,k=c("immutable").Record,l={accountID:null,businessID:null,isDisableEditing:false,isLoading:false,isMixedValue:false,selectedSources:j(),sources:j()};h=babelHelpers.inherits(m,k(l));i=h&&h.prototype;function m(n){var o=arguments.length<=1||arguments[1]===undefined?null:arguments[1];i.constructor.call(this,{accountID:n,businessID:o})}m.prototype.updateSelectableSources=function(n){var o=[];Object.keys(n).forEach(function(p){var q=n[p],r={id:q.id,name:q.name,status:c("AdsPixelConversionStatusUtils").getStatusFromConversion(q)};o.push(r)});return c("AdsPixelStore").isListLoaded()?this.set("isLoading",true).set("sources",j(o)):this.set("isLoading",false).set("sources",j(o))};m.prototype.updateSelectableSourcesWithList=function(n){return this.set("sources",n)};m.prototype.updateSelectedSourcesFromTrackingSpecsValue=function(n){return this.set("selectedSources",j(n.fb_pixel))};m.prototype.updateIsMixedValue=function(n){return this.set("isMixedValue",n)};m.prototype.updateDisableEditing=function(n){return this.set("isDisableEditing",n)};m.prototype.updatePixelLoadingState=function(n){return this.set("isLoading",n)};f.exports=m}),null);
__d("BoostedComponentPixelSectionV2.react",["cx","AdsPixelDialogLazy.react","BoostedComponentLabeledEditor.react","BoostedComponentPixelCreationCheckbox.react","BoostedComponentSectionV2.react","BoostedComponentStringsV2","BoostedComponentSuccessPixelUpsell.react","FacebookPixelTrackingRow.react","PixelTrackingRowConfig","React","emptyFunction"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=100;function l(n){var o=n.accountID,p=n.isDisableEditing,q=n.pixelStoreData,r=n.onSelectSource,s=n.onSetup,t=n.onToggleSelect,u=new(c("PixelTrackingRowConfig"))(o).set("sources",q.get("sources")).set("selectedSources",q.get("selectedSources")).set("isDisableEditing",p).set("isLoading",q.get("isFetching"));return c("React").createElement(c("FacebookPixelTrackingRow.react"),{pixelTrackingRowConfig:u,onAddSource:c("emptyFunction"),onRemoveSource:c("emptyFunction"),onSelectSource:r,onSetup:s,onToggleSelect:t})}i=babelHelpers.inherits(m,c("React").Component);j=i&&i.prototype;m.prototype.componentDidMount=function(){var n=this.props,o=n.enablePixelByDefault,p=n.pixelStoreData;if(o&&p.sources.size&&!p.selectedSources.size)this.props.onToggleSelect()};m.prototype.render=function(){var n=this.props,o=n.accountID,p=n.pixelStoreData,q=p.get("sources").size,r=null;if(q)r=c("React").createElement(l,{accountID:o,isDisableEditing:this.props.isDisableEditing,pixelStoreData:p,onSelectSource:this.props.onSelectSource,onSetup:this.props.onSetup,onToggleSelect:this.props.onToggleSelect});else r=this.props.offFacebookPromotion?c("React").createElement(c("BoostedComponentPixelCreationCheckbox.react"),{value:p.createPixel,onChange:this.props.onToggleCreatePixelCheckbox}):c("React").createElement(c("BoostedComponentSuccessPixelUpsell.react"),{className:"",createdPixelID:"",hasFBPixel:false,selectedPixelName:"",showInstallUpsell:false,onCreatePixelClick:this.props.onSetup});return c("React").createElement(c("BoostedComponentSectionV2.react"),{height:k,title:this.props.title||c("BoostedComponentStringsV2").CONVERSION_TRACKING_SECTION},c("React").createElement(c("BoostedComponentLabeledEditor.react"),{className:"_2ph_ _1wy3",label:""},r),c("React").createElement(c("AdsPixelDialogLazy.react"),{accountID:o}))};function m(){i.apply(this,arguments)}m.defaultProps={enablePixelByDefault:false};f.exports=m}),null);
__d("BoostedComponentPixelSectionV2Container.react",["AdsAccountStore","AdsAccountStoreWrapper_DEPRECATED","AdsApplicationUtils","AdsFluxContainer","AdsInterfacesLogger","AdsInterfacesLoggerConfigColumns","AdsLWIInstanceUtils","AdsPixelCreateStore","AdsPixelDialogTypes","AdsPixelLoggingConstant","AdsPixelUIEnvironments","AdsPixelViewActions","AdsWebsiteOptimizationContextUtils","BoostedComponentAdAccountStoreV2","BoostedComponentContainerUtils","BoostedComponentErrorBoundaryContainer.react","BoostedComponentExistingAdInfoStoreV2","BoostedComponentPixelActionsV2","BoostedComponentPixelSectionV2.react","BoostedComponentPixelStoreData","BoostedComponentPixelStoreV2","BoostedComponentSectionV2Spinner.react","BoostedComponentStringsV2","immutable","React","adsLWICurrentInstanceDataSelector","adsLWIDialogStateSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded,l=c("React").Component,m=c("immutable").List;h=babelHelpers.inherits(n,l);i=h&&h.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=i.constructor).call.apply(o,[this].concat(r)),this.state={accountID:"",createdPixelID:"",createdPixelName:"",dataLoaded:false,instanceID:"",isBoosted:false,pixelStoreData:new(c("BoostedComponentPixelStoreData"))()},this.$BoostedComponentPixelSectionV2Container2=function(){var t=this.props,u=t.appID,v=t.boostID,w=t.targetID,x=this.state.pixelStoreData,y=x.get("sources"),z=x&&x.get("selectedSources").size>0?m():y.size>0?m([y.first().id]):m();c("BoostedComponentPixelActionsV2").selectPixel(z,u,v,w)}.bind(this),this.$BoostedComponentPixelSectionV2Container3=function(t){var u=this.props,v=u.appID,w=u.boostID,x=u.targetID,y=m([t]);c("BoostedComponentPixelActionsV2").selectPixel(y,v,w,x)}.bind(this),this.$BoostedComponentPixelSectionV2Container4=function(t){c("BoostedComponentPixelActionsV2").toggleCreatePixelCheckbox(t,this.props.appID,this.props.targetID,this.props.boostID)}.bind(this),p}n.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("AdsPixelCreateStore"),c("BoostedComponentAdAccountStoreV2"),c("BoostedComponentExistingAdInfoStoreV2"),c("BoostedComponentPixelStoreV2")])};n.prototype.getChildContext=function(){var o=babelHelpers["extends"]({},c("AdsWebsiteOptimizationContextUtils").getDefaultContext(),{isCampaignManager:c("AdsApplicationUtils").isCampaignManager});return o};n.calculateState=function(o,p){var q=p.accountID,r=p.appID,s=p.targetID,t=p.boostID,u=j(r,s,t),v=c("BoostedComponentPixelStoreV2").getState(),w=c("BoostedComponentAdAccountStoreV2").getState(),x=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(u),y=k([w,x,v]),z=q?q:w.getSelectedAccountID(),A=x.get("is_boosted"),B=c("adsLWIDialogStateSelector")(),C=B.instanceID;return{accountID:z,createdPixelID:c("AdsPixelCreateStore").getCreatedPixelID(),createdPixelName:c("AdsPixelCreateStore").getCreatedPixelName(),dataLoaded:y,instanceID:C,isBoosted:A,pixelStoreData:v}};n.prototype.componentWillMount=function(){var o=this.props,p=o.appID,q=o.targetID,r=o.boostID,s=this.state,t=s.accountID,u=s.pixelStoreData;if(!t||t===u.accountID&&u.dataLoaded)return;c("AdsAccountStoreWrapper_DEPRECATED").setEnvironment(c("AdsPixelUIEnvironments").LWI,c("AdsAccountStore"));c("AdsAccountStoreWrapper_DEPRECATED").setAccountID(t);c("BoostedComponentPixelActionsV2").fetchPixels(t,p,r,q,this.state.instanceID);c("BoostedComponentPixelActionsV2").loadDefaultTrackingPixel(t,p,r,q,this.state.instanceID)};n.prototype.componentWillUpdate=function(o,p){__p&&__p();var q=o.appID,r=o.targetID,s=o.boostID,t=this.state.accountID,u=p.accountID,v=p.instanceID;if(!!u&&t!==u){c("BoostedComponentPixelActionsV2").fetchPixels(u,q,s,r,v);c("BoostedComponentPixelActionsV2").loadDefaultTrackingPixel(u,q,s,r,v);c("AdsAccountStoreWrapper_DEPRECATED").setAccountID(u)}if(this.state.createdPixelID===""&&p.createdPixelID&&p.createdPixelName){var w={id:p.createdPixelID,name:p.createdPixelName};c("BoostedComponentPixelActionsV2").pixelCreated(w,q,s,r);var x=p.createdPixelID?m([p.createdPixelID]):m();c("BoostedComponentPixelActionsV2").selectPixel(x,q,s,r)}};n.prototype.$BoostedComponentPixelSectionV2Container1=function(){var o;c("AdsInterfacesLogger").log({eventName:c("AdsPixelLoggingConstant").ADS_PIXEL_PIXEL_CREATION_DIALOG_OPEN,data:(o={},o[c("AdsInterfacesLoggerConfigColumns").SIGNALS_UI_COMPONENT_ENVIRONMENT]=JSON.stringify({environment:c("AdsPixelUIEnvironments").LWI}),o)},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);c("AdsPixelViewActions").dialogTypeChange(c("AdsPixelDialogTypes").CREATE_PIXEL)};n.prototype.render=function(){var o=this.props,p=o.appID,q=o.boostID,r=o.instanceID,s=o.offFacebookPromotion,t=o.targetID,u=this.state,v=u.accountID,w=u.dataLoaded,x=u.isBoosted,y=u.pixelStoreData,z=y.get("sources")||m(),A=x&&y&&z.size===0,B=!x&&y&&z.size>0,C=y&&y.get("isFetching");if(C)c("React").createElement(c("BoostedComponentSectionV2Spinner.react"),{height:200,title:c("BoostedComponentStringsV2").PIXEL_SECTION});if(v!=null&&w&&(s||A||B))return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentPixelSectionV2"},c("React").createElement(c("BoostedComponentPixelSectionV2.react"),{accountID:v,appID:p,boostID:q,enablePixelByDefault:this.props.enablePixelByDefault,instanceID:r,isDisableEditing:x,offFacebookPromotion:s,pixelStoreData:y,targetID:t,title:s?c("BoostedComponentStringsV2").PIXEL_SECTION:null,onSelectSource:this.$BoostedComponentPixelSectionV2Container3,onSetup:this.$BoostedComponentPixelSectionV2Container1,onToggleCreatePixelCheckbox:this.$BoostedComponentPixelSectionV2Container4,onToggleSelect:this.$BoostedComponentPixelSectionV2Container2}));return null};n.childContextTypes=c("AdsWebsiteOptimizationContextUtils").getContextTypes();f.exports=c("AdsFluxContainer").create(n,{withProps:true,name:f.id})}),null);
__d("BoostedComponentAddBudgetSectionV2Container.react",["AdsFluxContainer","AdsLWIInstanceUtils","BoostedComponentAddBudgetSectionV2.react","BoostedComponentBudgetEstimationStoreData","BoostedComponentBudgetEstimationStoreV2","BoostedComponentContainerUtils","BoostedComponentContextStoreV2","BoostedComponentDialogUIStoreV2","BoostedComponentErrorBoundaryContainer.react","BoostedComponentExistingAdInfoStoreV2","BoostedComponentSectionV2Spinner.react","BoostedComponentValidationStoreV2","immutable","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded;h=babelHelpers.inherits(l,c("React").Component);i=h&&h.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=i.constructor).call.apply(m,[this].concat(p)),this.state={adAccountID:"",adStatus:"",boostID:"",budgetData:new(c("BoostedComponentBudgetEstimationStoreData"))(),budgetType:null,campaignStopTime:Date.now(),canViewerEdit:true,currency:"",dataLoaded:false,errors:null,isBoosted:false,totalBudget:0},n}l.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedComponentBudgetEstimationStoreV2"),c("BoostedComponentContextStoreV2"),c("BoostedComponentDialogUIStoreV2"),c("BoostedComponentExistingAdInfoStoreV2"),c("BoostedComponentValidationStoreV2")])};l.calculateState=function(m,n){var o=n.appID,p=n.targetID,q=n.boostID,r=j(o,p,q),s=c("BoostedComponentBudgetEstimationStoreV2").getDataByKey(r),t=c("BoostedComponentContextStoreV2").getDataByKey(r),u=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(r),v=c("BoostedComponentValidationStoreV2").getDataByKey(r),w=k([s,t,u]);if(!w)return babelHelpers["extends"]({},m,{dataLoaded:w});return{adAccountID:u.getCampaignAdAccountID(),adStatus:u.getAdStatus(),boostID:t.getBoostID(),budgetData:s,budgetType:u.getBudgetType(),dataLoaded:w,campaignStopTime:u.getCampaignStopTime(),canViewerEdit:t.getCanViewerEdit(),currency:u.getCurrency(),errors:v.getAddBudgetErrors(),isBoosted:u.getIsBoosted(),totalBudget:u.getRawTotalBudget()}};l.prototype.render=function(){var m=this.props,n=m.appID,o=m.boostID,p=m.instanceID,q=m.pageID,r=m.placement,s=m.targetID;if(!this.state.dataLoaded)return c("React").createElement(c("BoostedComponentSectionV2Spinner.react"),{height:100});if(!this.state.budgetData.add_budget_est_options)return null;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentAddBudgetSectionV2"},c("React").createElement(c("BoostedComponentAddBudgetSectionV2.react"),babelHelpers["extends"]({},this.state,{appID:n,boostID:o,instanceID:p,pageID:q,placement:r,targetID:s})))};f.exports=c("AdsFluxContainer").create(l,{withProps:true,name:f.id})}),null);
__d("InsightsSectionUtils",[],(function a(b,c,d,e,f,g){var h={areSectionsEqual:function i(j,k){return j.type.getKey(j.props)===k.type.getKey(k.props)},getSectionByKey:function i(j,k){for(var l=k.length-1;l>=0;--l){var m=k[l];if(m.type.getKey(m.props)===j)return m}}};f.exports=h}),null);
__d("XReactComposerRestrictionTabNuxController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/react_composer/edit/restriction_tab_nux/",{})}),null);
__d("InsightsTabbedSectionsMixin",["fbt","ix","cx","AsyncRequest","Image.react","InsightsSectionUtils","Link.react","React","ReactLayeredComponentMixin_DEPRECATED","XReactComposerRestrictionTabNuxController","XUIAmbientNUX.react","XUIText.react","XUICard.react","XUIPageNavigation.react","joinClasses","PagesComposerAudiencesConstants"],(function a(b,c,d,e,f,g,h,i,j){__p&&__p();var k=c("XUIPageNavigation.react").Group,l=c("XUIPageNavigation.react").Item,m=c("PagesComposerAudiencesConstants").TABS,n=-22,o=50,p=220,q={mixins:[c("ReactLayeredComponentMixin_DEPRECATED")],getActiveSection:function r(){var s=null,t=c("React").Children.toArray(this.props.children);if(this.props.activeKey){s=c("InsightsSectionUtils").getSectionByKey(this.props.activeKey,t);if(!s)s=t[0]}else s=t[0];return s},onTabClick:function r(s){__p&&__p();var t=this.getActiveSection();if(!c("InsightsSectionUtils").areSectionsEqual(s,t)){this.props.onTabClick&&this.props.onTabClick(s);if(s.type.getKey(s.props)===m.GATING&&this.state&&this.state.showRestrictionTabNux)this._onRestrictionTabNuxClose();if(s.type.getKey(s.props)==="videoPostDrillDownTopShares"&&this.state&&this.state.showTopSharesTabNux)this._onTopSharesTabNuxClose();var u=s.props.nuxProp;if(u&&this.state.nuxShownStates[u.name])this._closeSectionNUX(u)}},getTabContent:function r(s){var t=s.type.getSubtitle(s.props);if(t)return c("React").createElement("div",{className:this.theme.subtitledBlockClass},c("React").createElement("div",null,s.type.getTitle(s.props)),c("React").createElement("div",{className:this.theme.subtitleClass},t));else return c("React").createElement("span",{className:s.props.showBetaLogo?"_6351":""},s.type.getTitle(s.props),s.props.showBetaLogo?c("React").createElement(c("Image.react"),{className:"_3-9a",src:i("356069")}):null)},componentWillMount:function r(){if(this.props.showTopSharesNUX)this.setState({showTopSharesTabNux:this.props.showTopSharesNUX})},componentDidMount:function r(){if(this.state&&this.state.showRestrictionTabNux){var s=c("XReactComposerRestrictionTabNuxController").getURIBuilder().getURI();new(c("AsyncRequest"))().setURI(s).setMethod("POST").setData({impression:true}).send()}},componentWillUnmount:function r(){if(this.state&&this.state.showRestrictionTabNux)this.setState({showRestrictionTabNux:false})},_onRestrictionTabNuxClose:function r(){this.setState({showRestrictionTabNux:false});var s=c("XReactComposerRestrictionTabNuxController").getURIBuilder().getURI();new(c("AsyncRequest"))().setURI(s).setMethod("POST").setData({acked:true}).send()},_onTopSharesTabNuxClose:function r(){this.setState({showTopSharesTabNux:false})},_renderRedirectLink:function r(){if(this.props.redirectURI&&this.props.redirectText){var s=this.props.redirectInCurrentTab?"_self":"_blank";return c("React").createElement(c("Link.react"),{className:"_2li7",href:this.props.redirectURI,target:s},this.props.redirectText)}return null},_renderRestrictionTabNux:function r(){return c("React").createElement(c("XUIAmbientNUX.react"),{contextRef:function(){return this.refs.restrictionTab}.bind(this),onCloseButtonClick:this._onRestrictionTabNuxClose,offsetY:n,offsetX:o,position:"below",shown:true,width:"custom",customwidth:p},c("React").createElement("div",null,c("React").createElement(c("XUIText.react"),null,h._("Limit who can see this post."))))},_renderTopSharesTabNux:function r(){return c("React").createElement(c("XUIAmbientNUX.react"),{contextRef:function(){return this.refs.videoPostDrillDownTopShares}.bind(this),onCloseButtonClick:this._onTopSharesTabNuxClose,position:"above",shown:true,width:"auto"},c("React").createElement("div",null,c("React").createElement("span",null,c("React").createElement("span",{className:"_-hg"},h._("Your videos are being shared")),h._("See which Pages are sharing them."))))},renderLayers:function r(){if(this.state)if(this.state.showRestrictionTabNux)return this._renderRestrictionTabNux();else if(this.state.showTopSharesTabNux&&this.refs.videoPostDrillDownTopShares)return this._renderTopSharesTabNux();return{}},render:function r(){__p&&__p();var s=this.getActiveSection(),t=c("React").Children.toArray(this.props.children),u=t.map(function(v,w){__p&&__p();var x=c("InsightsSectionUtils").areSectionsEqual(v,s),y=this.props.smallTitle?this.theme.smallNavLinkClass:this.theme.navLinkClass;if(x)y=c("joinClasses")(y,this.theme.activeNavLinkClass);var z=null;if(x){var A=null;if(v.props.nubSource)A=v.props.nubSource;else A=this.theme.nubSrc;z=c("React").createElement("noscript",null);if(A)z=c("React").createElement(c("Image.react"),{className:this.theme.nubClass,src:A})}if(A===undefined&&this.theme.activeSelector)z=c("React").createElement("span",{className:this.theme.activeSelector});var B=this.getTabContent(v),C=null;if(v.type.getKey(v.props)===m.GATING)C="restrictionTab";if(this.props.useCenteredTabsStyle){var D="_fjc"+(v.props.showBetaLogo?" _6352":"");return c("React").createElement(l,{href:v.type.getTabHref(v.props),key:"section"+v.type.getKey(v.props)},c("React").createElement("span",{className:D,onClick:this.onTabClick.bind(this,v),role:"presentation",ref:v.type.getKey(v.props)},B))}else return c("React").createElement("a",{className:y,href:v.type.getTabHref(v.props),key:"section"+v.type.getKey(v.props),title:v.type.getTitle(v.props),onClick:this.onTabClick.bind(this,v),ref:C},z,B)},this);if(this.props.useCenteredTabsStyle)return c("React").createElement("div",null,c("React").createElement(c("XUICard.react"),{className:"_fjd"},c("React").createElement("div",{className:"_fje _5vx1"},c("React").createElement(c("XUIPageNavigation.react"),{activeTabKey:"section"+s.type.getKey(s.props)},c("React").createElement(k,null,u))),this._renderRedirectLink()),c("React").createElement("div",{className:"_2pie _2pio"},s));else return c("React").createElement("div",{className:this.props.className},c("React").createElement("div",{className:this.props.longNav?this.theme.longNavClass:this.theme.navClass},u,this._renderRedirectLink()),s)},_closeSectionNUX:function r(s){this.state.nuxShownStates[s.name]=false;this.forceUpdate();s.onCloseButtonClick()}};f.exports=q}),null);
__d("BoostedActionInsightsTabbedSections.react",["cx","ix","InsightsTabbedSectionsMixin","React"],(function a(b,c,d,e,f,g,h,i){var j=c("React").createClass({displayName:"BoostedActionInsightsTabbedSections",mixins:[c("InsightsTabbedSectionsMixin")],theme:{activeNavLinkClass:"_1cqo",navClass:"_5cmi",navLinkClass:"_1cqp",nubClass:"_1cqq",nubSrc:i("28639")}});f.exports=j}),null);
__d("BUIInsightsTheme",["cssVar","CandelaTheme"],(function a(b,c,d,e,f,g,h){"use strict";f.exports=c("CandelaTheme").fromJS({colors:[["blue","#3d6ad6"],["aqua","#13bda6"],["purple","#905ac7"],["orange","#ff8051"],["fuchsia","#ac2888"],["yellow","#ffcc00"]],styleSheet:{annotationanchor:{fill:"rgba(0,0,0,0)",radius:9,stroke:"#bec2c9",strokeLinecap:"square",strokeWidth:2},"annotationanchor:active":{cursor:"pointer",stroke:"blue"},"annotationanchor:active:hover":{cursor:"pointer",stroke:"blue"},"annotationanchor:drag":{opacity:.5},"annotationanchor:hover":{cursor:"pointer",stroke:"#4e5665"},annotationline:{stroke:"#bec2c9",strokeWidth:1},"annotationline:active":{stroke:"blue"},"annotationline:active:hover":{stroke:"blue"},"annotationline:drag":{opacity:.5},"annotationline:hover":{stroke:"#4e5665"},'annotationline[draggable="true"]:hover':{cursor:"move"},annotationmarker:{fill:"auto",radius:4},area:{fill:"auto",opacity:.08},"area:muted":{opacity:.06},"area.interval":{opacity:.2},"line.interval":{visibility:"hidden"},"guide>point.interval":{visibility:"hidden"},'axis[orientation="horizontal"]':{height:40},'axis[orientation="horizontal"]>axisbucketmark':{textAlign:"center"},'axis[orientation="horizontal"]>axismark':{textAlign:"center"},'axis[orientation="horizontal"]>axistitle':{padding:40},'axis[orientation="horizontal"][alignment="top"]>axisbucketmark':{padding:29},'axis[orientation="horizontal"][alignment="top"]>axismark':{padding:29},'axis[orientation="horizontal"][alignment="top"]>axismark:secondary':{padding:45},'axis[orientation="vertical"]':{width:40},'axis[orientation="vertical"]>axisbucketmark':{paddingTop:13},'axis[orientation="vertical"]>axismark':{paddingTop:13},'axis[orientation="vertical"]>axistitle':{padding:65},'axis[orientation="vertical"][alignment="left"]>axisbucketmark':{textAlign:"right"},'axis[orientation="vertical"][alignment="left"]>axismark':{textAlign:"right"},'axis[orientation="vertical"][alignment="left"]>axistitle':{transform:"rotate(-90)"},'axis[orientation="vertical"][alignment="right"]>axistitle':{transform:"rotate(90)"},axisbucketmark:{color:"#485665",fontSize:11,padding:18},axismark:{color:"#485665",fontSize:11,padding:18},"axismark:secondary":{color:"#bec2c9",fontSize:10,padding:34},axistitle:{color:"#485665",fontSize:13,height:13,fontWeight:"bold",textAlign:"center",visibility:"hidden"},axisrule:{visibility:"hidden"},bar:{fill:"auto",margin:1,padding:5},"bar:muted":{opacity:.15},"bar:muted>barlabel":{opacity:.15},"bar:secondary":{fill:"#dddfe2"},"bar:secondary>barlabel":{visibility:"hidden"},"bargroup:hover":{fill:"#eee",opacity:.5},barlabel:{color:"auto",fontWeight:"bold"},'bar[alignment="bottom"]':{minHeight:1},'bar[alignment="left"]':{minWidth:1},'bar[alignment="right"]':{minWidth:1},'bar[alignment="top"]':{minHeight:1},'bar[alignment="bottom"]>barlabel':{textAlign:"center"},'bar[alignment="top"]>barlabel':{textAlign:"center"},sankeynode:{borderColor:"#eee",borderWidth:1,fill:"#bec2c9",marginBottom:10,marginTop:10,opacity:.75,width:30},"sankeynode:hover":{opacity:1},sankeylink:{fill:"auto",opacity:.5},"sankeylink:hover":{opacity:.75},chart:{backgroundColor:"#FFF",padding:10},controlline:{stroke:"#bec2c9",strokeDasharray:null,strokeWidth:1},gap:{fill:"#eee",opacity:.5},"gap:point":{margin:4},gridline:{stroke:"#eee",strokeWidth:1},guide:{fill:"#fff",opacity:0},'guide[placement="center"]:hover':{opacity:.5},"guide>line":{stroke:"#90949c",strokeWidth:1},"guide>point":{fill:"auto",radius:4,stroke:"auto",strokeWidth:2,visibility:"visible"},line:{stroke:"auto",strokeWidth:2},"line:muted":{opacity:.5},point:{fill:"#fff",radius:3,stroke:"auto",strokeWidth:2,visibility:"hidden"},"point:muted":{opacity:.5},"point:hover":{opacity:.5},"reference>referencelabel":{color:"#90949c",fontSize:11,fontWeight:"bold"},'reference[alignment="bottom"]>referencelabel':{paddingBottom:15},'reference[alignment="left"]>referencelabel':{paddingLeft:3},'reference[alignment="right"]>referencelabel':{paddingLeft:3},'reference[alignment="top"]>referencelabel':{paddingBottom:15},"reference>referenceline":{stroke:"#90949c",strokeDasharray:"8 4",strokeWidth:1},"area.baseline:greater-than":{fill:"#42b72a"},"area.baseline:less-than":{fill:"#fa3e3e"},"bar.baseline:greater-than":{fill:"#42b72a"},"bar.baseline:equal-to":{fill:"#42b72a"},"bar.baseline:less-than":{fill:"#fa3e3e"},"bar.baseline:greater-than>barlabel":{color:"#42b72a"},"bar.baseline:equal-to>barlabel":{color:"#42b72a"},"bar.baseline:less-than>barlabel":{color:"#fa3e3e"},"guide>point.baseline:greater-than":{fill:"#42b72a",stroke:"#42b72a"},"guide>point.baseline:equal-to":{fill:"#42b72a",stroke:"#42b72a"},"guide>point.baseline:less-than":{fill:"#fa3e3e",stroke:"#fa3e3e"},"line.baseline:greater-than":{stroke:"#42b72a"},"line.baseline:less-than":{stroke:"#fa3e3e"},"point.baseline:greater-than":{fill:"#42b72a",stroke:"#42b72a"},"point.baseline:equal-to":{fill:"#42b72a",stroke:"#42b72a"},"point.baseline:less-than":{fill:"#fa3e3e",stroke:"#fa3e3e"},"bar.benchmark":{fill:"auto",opacity:.4},"bar.benchmark:secondary":{fill:"auto"},"guide>point.benchmark":{visibility:"hidden"},"line.benchmark":{opacity:.4},"reference.benchmark>referenceline":{opacity:.4,stroke:"auto",strokeDasharray:undefined,strokeWidth:2},"reference.benchmark>referencezone":{visibility:"hidden"},"area.minimum-limit:less-than":{visibility:"hidden"},"bar.minimum-limit:less-than":{fill:"#bec2c9",opacity:.2},"bar.minimum-limit:less-than>barlabel":{visibility:"hidden"},"guide>line.minimum-limit:less-than":{visibility:"visible"},"guide>point.minimum-limit:less-than":{visibility:"hidden"},"line.minimum-limit:less-than":{visibility:"hidden"},"reference.minimum-limit>referencezone:less-than":{fill:"#f6f7f9",opacity:.5},"area.target:greater-than":{fill:"#42b72a"},"area.target:less-than":{fill:"#bec2c9"},"bar.target:greater-than":{fill:"#42b72a"},"bar.target:greater-than>barlabel":{color:"#42b72a"},"bar.target:equal-to":{fill:"#42b72a"},"bar.target:equal-to>barlabel":{color:"#42b72a"},"bar.target:less-than":{fill:"#bec2c9"},"bar.target:less-than>barlabel":{color:"#bec2c9"},"guide>point.target:greater-than":{fill:"#42b72a",stroke:"#42b72a"},"guide>point.target:equal-to":{fill:"#bec2c9",stroke:"#bec2c9"},"guide>point.target:less-than":{fill:"#bec2c9",stroke:"#bec2c9"},"line.target:greater-than":{stroke:"#42b72a"},"line.target:less-than":{stroke:"#bec2c9"},"reference.target>referencezone":{visibility:"hidden"},"bar:unavailable":{fill:"#bec2c9",strokeWidth:1}}})}),null);
__d("CandelaImmutableObject",["immutable"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("immutable").Map;function i(j){this.$ImmutableObject1=h(j)}i.prototype.merge=function(j){j=this.$ImmutableObject1.merge(j);return j===this.$ImmutableObject1?this:new this.constructor(j.toObject())};i.prototype.set=function(j,k){var l={};l[j]=k;return this.merge(l)};f.exports=i}),null);
__d("InsightsItems",["cx","invariant","CandelaImmutableObject","CandelaUtils","InsightsFormatterFactories","immutable","filterObject"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l,m,n,o,p,q,r,s,t,u,v,w,x=c("CandelaUtils").data.getSeriesValue,y=c("immutable").Record,z=c("immutable").Set;function A(J,K){return function(L,M,N,O){L instanceof K||i(0);return J(L,M,N,O)}}j=babelHelpers.inherits(B,y({classNames:z(),labelColor:"auto",labelElement:null,labelText:"",valueColor:null,valueText:""}));k=j&&j.prototype;function B(J){k.constructor.call(this,J)}l=babelHelpers.inherits(C,c("CandelaImmutableObject"));m=l&&l.prototype;function C(J){m.constructor.call(this,J);Object.assign(this,J)}C.prototype.getItemDescriptor=function(J,K,L){throw new Error("Not implemented")};n=babelHelpers.inherits(D,C);o=n&&n.prototype;function D(J){o.constructor.call(this,babelHelpers["extends"]({disabled:false,key:J.defaultDescriptor.labelText+"-static",toggleable:false},c("filterObject")(J,function(K){return K!==undefined})))}D.prototype.getItemDescriptor=function(){return this.defaultDescriptor};p=babelHelpers.inherits(E,C);q=p&&p.prototype;function E(J){q.constructor.call(this,babelHelpers["extends"]({disabled:false,key:J.seriesName+"-dynamic",toggleable:false},c("filterObject")(J,function(K){return K!==undefined})))}E.prototype.getItemDescriptor=function(J,K,L){var M=void 0;if(this.defaultDescriptor.labelColor==="auto")M=this.labelColorSeriesName?K.get(this.labelColorSeriesName):null;else M=this.defaultDescriptor.labelColor;var N=this.classNameGetter&&this.classNameGetter(this,J,K,L),O=N?this.defaultDescriptor.classNames.union(N):this.defaultDescriptor.classNames,P=this.labelTextGetter?this.labelTextGetter(this,J,K,L):this.defaultDescriptor.labelText,Q=this.valueTextGetter?this.valueTextGetter(this,J,K,L):this.defaultDescriptor.valueText,R=this.defaultDescriptor,S=R.labelElement,T=R.valueColor;return new B({classNames:O,labelColor:M,labelElement:S,labelText:P,valueColor:T,valueText:Q})};r=babelHelpers.inherits(F,E);s=r&&r.prototype;F.getKeyForSeriesName=function(J){return J+"-series"};function F(J){var K=function K(N,O){var M=N.seriesName,P=N.valueFormatter,Q=x(O,M);if(Q==null)return N.defaultDescriptor.valueText;var R=P||c("InsightsFormatterFactories").legendFormatterFactory(O[M].scale);return R(Q)},L=J.comparisonForSeriesName,M=J.seriesName;s.constructor.call(this,babelHelpers["extends"]({key:F.getKeyForSeriesName(M),labelColorSeriesName:L||M,toggleable:true,valueTextGetter:A(K,F)},c("filterObject")(J,function(N){return N!==undefined})))}t=babelHelpers.inherits(G,E);u=t&&t.prototype;function G(J){__p&&__p();var K=function K(O,P){var Q=O.comparisonValue,N=O.seriesName,R=x(P,N);if(R==null)return z();if(R>Q)return z(["_4hg1"]);else if(R===Q)return z(["_4hg2"]);else return z(["_4hg3"])},L=function L(O,P){var Q=O.comparisonValue,N=O.seriesName,R=O.valueFormatter,S=x(P,N);if(S==null)return O.defaultDescriptor.valueText;var T=R||c("InsightsFormatterFactories").legendFormatterFactory(P[N].scale);return T(Math.abs(S-Q))},M=J.labelTextGetter,N=J.seriesName;u.constructor.call(this,babelHelpers["extends"]({classNameGetter:A(K,G),key:N+"-value-compare",labelColorSeriesName:null,labelTextGetter:M&&A(M,G),valueTextGetter:A(L,G)},c("filterObject")(J,function(O){return O!==undefined})))}v=babelHelpers.inherits(H,E);w=v&&v.prototype;function H(J){__p&&__p();var K=function K(P,Q){var M=P.comparisonSeriesName,O=P.seriesName,R=x(Q,O),S=x(Q,M);if(R==null||S==null)return z();if(R>S)return z(["_4hg1"]);else if(R===S)return z(["_4hg2"]);else return z(["_4hg3"])},L=function L(P,Q){var M=P.comparisonSeriesName,O=P.seriesName,R=P.valueFormatter,S=x(Q,O),T=x(Q,M);if(S==null||T==null)return P.defaultDescriptor.valueText;var U=R||c("InsightsFormatterFactories").legendFormatterFactory(Q[O].scale);return U(Math.abs(S-T))},M=J.comparisonSeriesName,N=J.labelTextGetter,O=J.seriesName;w.constructor.call(this,babelHelpers["extends"]({classNameGetter:A(K,H),key:O+"-"+M+"-compare",labelColorSeriesName:null,labelTextGetter:N&&A(N,H),valueTextGetter:A(L,H)},c("filterObject")(J,function(P){return P!==undefined})))}var I=function I(J){return!(J instanceof C)};f.exports={BaseItem:C,DynamicItem:E,isLegacyItem:I,ItemDescriptor:B,SeriesComparisonItem:H,SeriesDataItem:F,StaticItem:D,ValueComparisonItem:G}}),null);
__d("InsightsChartWithLegend.react",["cx","CandelaConstants","CandelaStructs","immutable","InsightsFormatterFactories","InsightsItems","React","Set","debounceCore","isEmpty","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("InsightsItems").BaseItem,l=c("InsightsItems").isLegacyItem,m=c("InsightsItems").SeriesDataItem,n=c("CandelaStructs").Highlight,o=c("immutable").Map,p=c("immutable").OrderedSet,q=c("immutable").Set,r=c("React").PropTypes,s=c("CandelaConstants").ShapeType,t=8,u=function u(w){if(w instanceof m)return w.seriesName;else if(l(w))return w.key;else return null};i=babelHelpers.inherits(v,c("React").PureComponent);j=i&&i.prototype;function v(){__p&&__p();var w,x;for(var y=arguments.length,z=Array(y),A=0;A<y;A++)z[A]=arguments[A];return x=(w=j.constructor).call.apply(w,[this].concat(z)),this.$ChartWithLegend1=function(){},this.$ChartWithLegend2=q(),this.$ChartWithLegend3=new(c("Set"))(),this.state={data:{},highlightedKeys:q(),isHovering:false,items:this.props.items,legendHeightDelta:0,preventDisplayChange:false,target:null,title:this.props.title},this.$ChartWithLegend7=function(B){var C=u(B);if(C){this.$ChartWithLegend2=this.$ChartWithLegend2.add(new n({dependentSeriesName:C}));this.forceUpdate()}}.bind(this),this.$ChartWithLegend8=function(B){var C=u(B);if(C){this.$ChartWithLegend2=this.$ChartWithLegend2.remove(new n({dependentSeriesName:C}));this.forceUpdate()}}.bind(this),this.$ChartWithLegend9=function(B,C){var D=this.state.legendHeightDelta,E=Math.ceil(B.bottom-B.top),F=Math.ceil(C.bottom-C.top);D+=F-E;this.setState({legendHeightDelta:D})}.bind(this),this.$ChartWithLegend10=function(event){__p&&__p();if(!c("isEmpty")(event.data)){Object.keys(event.data).forEach(function(C){if(event.target.shapeType!==s.BAR_GROUP)this.$ChartWithLegend3.add(C)}.bind(this));this.$ChartWithLegend1()}this.setState({preventDisplayChange:true,isHovering:true});var B=void 0;B=this.props.onMouseEnter;B&&B(event);B=this.props.chart.props.onMouseEnter;B&&B(event)}.bind(this),this.$ChartWithLegend11=function(event){__p&&__p();if(event.target.shapeType===s.CHART)this.setState({data:{},isHovering:false,items:this.props.items,preventDisplayChange:false,target:null,title:this.props.title});else{this.$ChartWithLegend1.reset();if(event.target.shapeType!==s.BAR_GROUP){var B=Object.keys(event.data);B.forEach(function(D){return this.$ChartWithLegend3["delete"](D)}.bind(this));this.setState({highlightedKeys:this.state.highlightedKeys.subtract(B)})}}var C=void 0;C=this.props.onMouseLeave;C&&C(event);C=this.props.chart.props.onMouseLeave;C&&C(event)}.bind(this),this.$ChartWithLegend12=function(event){__p&&__p();var B,C=this;if(!c("isEmpty")(event.data))(function(){__p&&__p();var E=C.props,F=E.formatterFactory,G=E.shouldFormatNullValue,H=E.title,I=E.titleKey,J=C.state,K=J.data,L=J.items,M=Object.keys(event.data).some(function(T){return K[T]&&event.data[T]?K[T].value!==event.data[T].value:K[T]!==event.data[T]});if(M&&!!L){var N=L.map(function(T){if(!(T instanceof k)&&!T.constant&&T.key in event.data){var U=event.data[T.key].scale,R=event.data[T.key].value;if(R!==undefined||R===null&&G){var S=F&&F(U,T.key,event.data);R=S?S(R):R}return babelHelpers["extends"]({},T,{value:R})}return T}),O=void 0;if(I!=null&&I in event.data){var P=event.data[I],Q=P.scale,R=P.value;if(R!==undefined||R===null&&G){var S=F&&F(Q);O=S?S(R):H}}else O=H;C.setState({data:event.data,items:N,target:event.target,title:O})}})();this.$ChartWithLegend1();var D=void 0;D=this.props.onMouseMove;D&&D(event);D=this.props.chart.props.onMouseMove;D&&D(event)}.bind(this),this.$ChartWithLegend4=function(){var B=q(this.$ChartWithLegend3);if(!this.state.highlightedKeys.equals(B))this.setState({highlightedKeys:B})}.bind(this),x}v.prototype.componentWillMount=function(){this.$ChartWithLegend1=c("debounceCore")(this.$ChartWithLegend4,this.props.dwellTimeOverShapeBeforeHighlight)};v.prototype.$ChartWithLegend5=function(w){return w.map(function(x){return x instanceof k?x:o(x)})};v.prototype.$ChartWithLegend6=function(w,x){return this.$ChartWithLegend5(w).equals(this.$ChartWithLegend5(x))};v.prototype.componentWillReceiveProps=function(w){var x=w.items,y=w.title,z={};if(!this.$ChartWithLegend6(x,this.props.items))z.items=x;if(y!==this.props.title)z.title=y;this.setState(z)};v.prototype.render=function(){__p&&__p();var w=this.props,x=w.anchorRect,y=w.children,z=w.listLayout,A=w.shouldFormatNullValue,B=w.verticalLegendWidth,C=w.width,D=this.state,E=D.data,F=D.highlightedKeys,G=D.items,H=D.legendHeightDelta,I=D.preventDisplayChange,J=D.target,K=D.title;if(y==null)return null;var L=c("joinClasses")(this.state.isHovering?"hover":"",y.props.className),M=z==="vertical",N=c("React").cloneElement(y,{className:L,data:E,target:J,highlightedKeys:F,items:G,onMouseEnter:this.$ChartWithLegend7,onMouseLeave:this.$ChartWithLegend8,onRectChange:this.$ChartWithLegend9,preventDisplayChange:I,title:K}),O=this.props.chart.props,P=O.height,Q=O.highlights,R=O.width,S=Q?this.$ChartWithLegend2.union(Q):this.$ChartWithLegend2,T=P,U=R;if(!isNaN(C))U=Number(C);if(M)U-=B+t;else T+=H;var V=c("React").cloneElement(this.props.chart,{anchorRect:x,height:T,highlights:S,includeNullValueInEvent:A,onMouseEnter:this.$ChartWithLegend10,onMouseLeave:this.$ChartWithLegend11,onMouseMove:this.$ChartWithLegend12,width:U}),W=M?"_2ef-":"",X=void 0;if(M)X={width:B,height:P};return c("React").createElement("div",{className:"clearfix",style:{width:R}},c("React").createElement("div",{className:W,style:X},N),V)};v.defaultProps={dwellTimeOverShapeBeforeHighlight:300,formatterFactory:c("InsightsFormatterFactories").legendFormatterFactory,listLayout:"horizontal",verticalLegendWidth:170};v.propTypes={chart:r.element.isRequired,children:r.element.isRequired,dwellTimeOverShapeBeforeHighlight:r.number,formatterFactory:r.func,items:r.instanceOf(p).isRequired,listLayout:r.oneOf(["horizontal","vertical"]),title:r.any,titleKey:r.string,verticalLegendWidth:r.number,width:r.number,anchorRect:r.object,onMouseEnter:r.func,onMouseLeave:r.func,shouldFormatNullValue:r.bool};f.exports=v}),null);
__d("BUIInsightsBaseLegend.react",["cx","React","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;l.prototype.render=function(){var m=this.props,n=m.children,o=m.size,p=m.title,q=m.titleSize,r=c("joinClasses")("_5av0",this.props.className,o);if(p){var s=c("joinClasses")("_5av1",q);p=c("React").createElement("div",{className:s},p)}return c("React").cloneElement(c("React").Children.only(n),{className:r,title:p})};function l(){i.apply(this,arguments)}l.propTypes={children:k.element,className:k.string,listLayout:k.oneOf(["horizontal","vertical"]),size:k.oneOf(["normal","large"]),title:k.any,titleSize:k.oneOf(["small","normal","large"])};l.defaultProps={size:"normal",titleSize:"small"};f.exports=l}),null);
__d("CandelaLegend.react",["cx","invariant","CandelaUtils","immutable","Locale","React","ReactComponentWithPureRenderMixin","ReactDOM","Set","getObjectValues","isEmpty","joinClasses","nullthrows"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("immutable").Map,m=c("React").PropTypes,n=c("ReactDOM").findDOMNode,o=c("CandelaUtils").functions.throttle,p={AUTO:"auto",INLINE:"inline",STACKED:"stacked"},q={HORIZONTAL:"horizontal",VERTICAL:"vertical"},r=function r(t,u){return t.bottom===u.bottom&&t.left===u.left&&t.right===u.right&&t.top===u.top},s=c("React").createClass({displayName:"CandelaLegend",_needsLayout:true,_rootRect:{},_throttledLayout:function t(){},_truncatedItemIndices:new(c("Set"))(),mixins:[c("ReactComponentWithPureRenderMixin")],propTypes:{children:m.node,className:m.string,display:m.oneOf(c("getObjectValues")(p)),listLayout:m.oneOf(c("getObjectValues")(q)),layoutInterval:m.number.isRequired,minItemWidthPercentage:m.number.isRequired,onRectChange:m.func,preventDisplayChange:m.bool,title:m.any,width:m.number},getDefaultProps:function t(){return{display:p.AUTO,layoutInterval:200,minItemWidthPercentage:.67,listLayout:q.HORIZONTAL}},getInitialState:function t(){return{display:this.props.display,itemWidths:l()}},componentWillMount:function t(){this._throttledLayout=o(this._layout,this.props.layoutInterval)},componentWillReceiveProps:function t(u){this._needsLayout=true},componentDidMount:function t(){var u=n(this.refs.root);this._rootRect=u.getBoundingClientRect();this._needsLayout&&this._throttledLayout()},componentDidUpdate:function t(u,v){var w=this._rootRect,x=n(this.refs.root),y=this._rootRect=x.getBoundingClientRect();if(this.props.onRectChange&&!c("isEmpty")(w)&&!r(y,w))this.props.onRectChange(y,w);if(this.props.children!==u.children)this._needsLayout&&this._layout();this._needsLayout&&this._throttledLayout()},componentWillUnmount:function t(){this._throttledLayout.reset()},_layout:function t(){var u=this.props,v=u.children,w=u.listLayout;this._truncatedItemIndices.clear();var x=[];c("React").Children.forEach(v,function(y,z){y&&x.push(z)});if(w===q.VERTICAL)this._layoutVertical(x);else this._layoutHorizontal(x);this._needsLayout=false},_layoutVertical:function t(u){__p&&__p();var v=this.props.display;v===p.INLINE||v===p.STACKED||i(0);var w=this._rootRect,x=w.width,y=this.state.itemWidths.withMutations(function(z){u.forEach(function(A){var B=n(this.refs[c("nullthrows")(v)+A.toString()]),C=B.getBoundingClientRect(),D=Math.ceil(C.right-C.left);if(D>x){D=x;this._truncatedItemIndices.add(A)}z.set(A,D)}.bind(this))}.bind(this));this.setState({itemWidths:y})},_layoutHorizontal:function t(u){__p&&__p();var v=this.props,w=v.minItemWidthPercentage,x=v.preventDisplayChange,y=this._rootRect,z=this.state.display,A=void 0,B=void 0;if(!x&&this.props.display===p.AUTO)if(u.length===0)z=p.INLINE;else{var C=u[u.length-1];A=n(this.refs[p.INLINE+String(C)]);B=A.getBoundingClientRect();var D=void 0;if(c("Locale").isRTL())D=B.left<y.left;else D=B.right>y.right;z=D?p.STACKED:p.INLINE}var E=this.state.itemWidths.withMutations(function(G){u.forEach(function(H){A=n(this.refs[z+String(H)]);B=A.getBoundingClientRect();G.set(H,Math.ceil(B.right-B.left))}.bind(this))}.bind(this)),F=void 0;if(B===undefined)F=0;else F=c("Locale").isRTL()?Math.max(Math.round(y.left)-Math.round(B.left),0):Math.max(Math.round(B.right)-Math.round(y.right),0);if(F)E=this.state.itemWidths.withMutations(function(G){u.reverse().forEach(function(H){if(F){var I=E.get(H),J=Math.min(I-Math.ceil(I*w),F);G.set(H,I-J);F-=J;this._truncatedItemIndices.add(H)}else G.set(H,E.get(H))}.bind(this))}.bind(this));this.setState({display:z,itemWidths:E})},_renderItem:function t(u,v,w){v.className=(w?"_28iw":"")+" _34pe";return c("React").createElement("li",v,u)},_renderItems:function t(){var u=this.state,v=u.display,w=u.itemWidths,x=c("React").Children.map(this.props.children,function(z,A){if(!z)return z;var B={};if(w.has(A))B={width:w.get(A)};var C=this._truncatedItemIndices.has(A);return this._renderItem(z,{style:B},C)}.bind(this)),y="_34pd"+(v===p.STACKED?" _34pc":"");return c("React").createElement("ul",{className:y},x)},_renderItemsForLayout:function t(u){var v=c("React").Children.map(this.props.children,function(x,y){if(!x)return x;return this._renderItem(x,{ref:u+y})}.bind(this)),w="_34pd"+(u===p.STACKED?" _34pc":"");return c("React").createElement("ul",{className:w,style:{position:"absolute",visibility:"hidden"}},v)},render:function t(){var u=this.props,v=u.display,w=u.width,x=u.listLayout,y=this.props.title,z=c("joinClasses")("_34pb"+(x===q.VERTICAL?" _4d43":""),this.props.className),A=void 0,B=void 0;if(this._needsLayout){A=v!==p.STACKED?this._renderItemsForLayout(p.INLINE):null;B=v!==p.INLINE?this._renderItemsForLayout(p.STACKED):null}if(y)y=c("React").createElement("div",{className:"_2g3k"},y);return c("React").createElement("div",{className:z,ref:"root",style:{width:w}},y,A,B,this._renderItems())}});s.CandelaLegendItem=(k=j=function(){__p&&__p();var t,u;t=babelHelpers.inherits(v,c("React").PureComponent);u=t&&t.prototype;v.prototype.render=function(){"use strict";var w=this.props,x=w.label,y=w.labelStyle,z=w.labelWithTooltip,A=w.richLabel,B=w.value,C=w.valueStyle,D=babelHelpers.objectWithoutProperties(w,["label","labelStyle","labelWithTooltip","richLabel","value","valueStyle"]);if(z){x=c("React").createElement("div",{className:"_34pg",style:y},A||x);z=c("React").createElement("div",{className:"_28ix _34pg",style:y},z)}else x=c("React").createElement("div",{className:"_28ix _34pg",style:y},A||x);B=c("React").createElement("div",{className:"_34pf"+(B==null?" _1ae1":""),style:C},B);return c("React").createElement("div",D,B,x,z)};function v(){"use strict";t.apply(this,arguments)}return v}(),j.propTypes={className:m.string,label:m.any.isRequired,labelStyle:m.object,labelWithTooltip:m.any,onMouseEnter:m.func,onMouseLeave:m.func,richLabel:m.any,value:m.any,valueStyle:m.object},k);f.exports=s}),null);
__d("InsightsBaseLegend.react",["cx","CandelaLegend.react","immutable","InsightsItems","React","Tooltip.react","emptyFunction","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("InsightsItems").isLegacyItem,l=c("InsightsItems").SeriesDataItem,m=c("CandelaLegend.react").CandelaLegendItem,n=c("immutable").Map,o=c("immutable").OrderedSet,p=c("immutable").Set,q=c("React").PropTypes,r=c("CandelaLegend.react").propTypes,s=r.children,t=babelHelpers.objectWithoutProperties(r,["children"]);i=babelHelpers.inherits(u,c("React").Component);j=i&&i.prototype;function u(){__p&&__p();var v,w;for(var x=arguments.length,y=Array(x),z=0;z<x;z++)y[z]=arguments[z];return w=(v=j.constructor).call.apply(v,[this].concat(y)),this.$BaseLegend1=function(A){var B=this.props,C=B.auxiliaryItemRenderer,D=B.highlightedKeys,E=A.constant,F="auxiliary"+(E?" constant":"")+(D&&D.size?" muted":"")+" _8dl",G=c("React").createElement(c("Tooltip.react"),{tooltip:A.label},A.richLabel||A.label),H=babelHelpers["extends"]({},A,{className:F,labelWithTooltip:G});return C(H,A)}.bind(this),this.$BaseLegend2=function(A){__p&&__p();var B=this.props,C=B.autoColors,D=B.data,E=B.highlightedKeys,F=B.itemRenderer,G=B.target,H=B.onMouseEnter,I=B.onMouseLeave,J=void 0;if(!E)J=false;else if(A instanceof l)J=E.has(A.seriesName);else if(k(A))J=E.has(A.key);var K="clearfix"+(J?" highlighted":"")+(E&&E.size&&!J?" muted":"")+" _8dl";if(!C||!D)return null;var L=void 0;if(k(A)){var M=A.key,N=A.label,O=A.richLabel,P=c("React").createElement(c("Tooltip.react"),{tooltip:N},O||N),Q={color:C.get(M)};L=babelHelpers["extends"]({},A,{className:K,labelStyle:Q,labelWithTooltip:P})}else{var R=A.getItemDescriptor(D,C,G),S=R.classNames,T=R.labelColor,U=R.labelElement,V=R.labelText,W=R.valueColor,X=R.valueText,Y=c("React").createElement(c("Tooltip.react"),{tooltip:V},U||V),Z=T?{color:T}:null,$=W?{color:W}:null;L={className:c("joinClasses").apply(undefined,S.toArray().concat([K])),key:A.key,label:V,labelStyle:Z,labelWithTooltip:Y,richLabel:U,value:X,valueStyle:$}}return F(babelHelpers["extends"]({},L,{onMouseEnter:H&&function(){return H(A)},onMouseLeave:I&&function(){return I(A)}}),A)}.bind(this),w}u.prototype.render=function(){var v=this.props,w=v.auxiliaryItems,x=v.auxiliaryItemsPosition,y=v.items,z=babelHelpers.objectWithoutProperties(v,["auxiliaryItems","auxiliaryItemsPosition","items"]),A=c("joinClasses")("_24q8",this.props.className),B=[y.map(this.$BaseLegend2),w&&w.map(this.$BaseLegend1)];if(x==="left")B.reverse();return c("React").createElement(c("CandelaLegend.react"),babelHelpers["extends"]({},z,{className:A}),B)};u.propTypes=babelHelpers["extends"]({},t,{layoutInterval:q.number,minItemWidthPercentage:q.number,autoColors:q.instanceOf(n),auxiliaryItemRenderer:q.func.isRequired,auxiliaryItems:q.instanceOf(o),auxiliaryItemsPosition:q.oneOf(["left","right"]),data:q.object,highlightedKeys:q.instanceOf(p),itemRenderer:q.func.isRequired,items:q.instanceOf(o).isRequired,onMouseEnter:q.func,onMouseLeave:q.func,target:q.object});u.defaultProps={autoColors:n(),auxiliaryItemRenderer:c("emptyFunction"),auxiliaryItemsPosition:"right",data:{},highlightedKeys:p(),itemRenderer:c("emptyFunction"),onMouseEnter:c("emptyFunction"),onMouseLeave:c("emptyFunction")};f.exports=u}),null);
__d("InsightsLegend.react",["cx","InsightsBaseLegend.react","CandelaLegend.react","React","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("CandelaLegend.react").CandelaLegendItem,l=c("InsightsBaseLegend.react").propTypes,m=l.auxiliaryItemRenderer,n=l.itemRenderer,o=babelHelpers.objectWithoutProperties(l,["auxiliaryItemRenderer","itemRenderer"]);i=babelHelpers.inherits(p,c("React").PureComponent);j=i&&i.prototype;p.prototype.$Legend1=function(q,r){return c("React").createElement(k,babelHelpers["extends"]({},q,{className:c("joinClasses")(q.className,"_120o")}))};p.prototype.render=function(){return c("React").createElement(c("InsightsBaseLegend.react"),babelHelpers["extends"]({},this.props,{auxiliaryItemRenderer:this.$Legend1,className:c("joinClasses")("_5g0o",this.props.className),itemRenderer:this.$Legend1,items:this.props.items}))};function p(){i.apply(this,arguments)}p.propTypes=babelHelpers["extends"]({},o);f.exports=p}),null);
__d("BUIInsightsLegend.react",["cx","BUIInsightsBaseLegend.react","InsightsLegend.react","React","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("BUIInsightsBaseLegend.react").propTypes,l=k.children,m=babelHelpers.objectWithoutProperties(k,["children"]);i=babelHelpers.inherits(n,c("React").Component);j=i&&i.prototype;n.prototype.render=function(){var o=this.props,p=o.size,q=o.title,r=o.titleSize,s=babelHelpers.objectWithoutProperties(o,["size","title","titleSize"]),t=c("joinClasses")("_3t76",this.props.className);return c("React").createElement(c("BUIInsightsBaseLegend.react"),{className:t,size:p,title:q,titleSize:r},c("React").createElement(c("InsightsLegend.react"),s))};function n(){i.apply(this,arguments)}n.propTypes=babelHelpers["extends"]({},m,c("InsightsLegend.react").propTypes);f.exports=n}),null);
__d("InsightsThemeableChartMixin",["invariant","CandelaStyleSheet","CandelaTheme","immutable","React","isEmpty"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=c("immutable").Map,j=c("immutable").OrderedMap,k=c("React").PropTypes;function l(n,o){__p&&__p();var p=o.autoColors,q=o.colors,r=o.elements,s=o.styleSheet,t=o.styles,u={};if(p!=null)u.autoColors=p;if(q!=null)u.colors=q;if(r!=null)u.elements=r;if(s!=null)u.styleSheet=s;if(t!=null){!u.styleSheet||h(0);u.styleSheet=c("CandelaStyleSheet").fromJS(t)}if(!c("isEmpty")(u))n=n.mergeDeep(u);return n}var m=function(n){__p&&__p();typeof n==="function"||h(0);return{propTypes:{autoColors:k.instanceOf(i),colors:k.instanceOf(j),elements:k.instanceOf(i),styleSheet:k.instanceOf(c("CandelaStyleSheet")),styles:k.object},getInitialState:function o(){var p=n();if(this.constructor.getComponentTheming)p=p.mergeDeep(c("CandelaTheme").fromJS(this.constructor.getComponentTheming()));p=l(p,this.props);return{theme:p}},componentWillReceiveProps:function o(p){var q=l(this.state.theme,p);if(q!==this.state.theme)this.setState({theme:q})}}}.bind(this);f.exports=m}),null);
__d("InsightsVerticalBarChartV2Proxy.react",["CandelaMigration"],(function a(b,c,d,e,f,g){"use strict";f.exports=c("CandelaMigration").InsightsVerticalBarChart}),null);
__d("BUIInsightsVerticalBarChart.react",["InsightsVerticalBarChartV2Proxy.react","InsightsThemeableChartMixin","React","ReactComponentWithPureRenderMixin","CandelaConstants","BUIInsightsTheme"],(function a(b,c,d,e,f,g){"use strict";var h=c("CandelaConstants").Alignment,i=c("React").createClass({displayName:"BUIInsightsVerticalBarChart",mixins:[c("InsightsThemeableChartMixin")(function(){return c("BUIInsightsTheme")}),c("ReactComponentWithPureRenderMixin")],defaultProps:{alignment:h.BOTTOM},statics:{getComponentTheming:function j(){return{styleSheet:{'axis[alignment="right"]':{visibility:"hidden"},'axis[alignment="top"]':{visibility:"hidden"},"gridline[orientation=vertical]":{visibility:"hidden"},bargroup:{margin:15},barlabel:{padding:"5 15 15"}}}}},render:function j(){return c("React").createElement(c("InsightsVerticalBarChartV2Proxy.react"),babelHelpers["extends"]({},this.props,{theme:this.state.theme}))}});f.exports=i}),null);
__d("BoostedActionInsightsConstants",[],(function a(b,c,d,e,f,g){var h=Object.freeze({TAB_ENGAGEMENT:"tabEngagement",TAB_AGE_GENDER:"tabAgeGender",TAB_COUNTRY:"tabCountry",TAB_LEAD_GEN_MANAGEMENT:"tabLeadGenManagement",TAB_MESSAGE_REPLY:"tabMessageReply",ENGAGEMENT_BARS_SHOWN:3,AGE_GENDER_CHART_HEIGHT:92,AGE_GENDER_CHART_WIDTH:320,LEAD_GEN_AGE_GENDER_BREAKDOWN_THRESHOLD:20});f.exports=h}),null);
__d("BoostedComponentInsightsChartStyles",[],(function a(b,c,d,e,f,g){"use strict";var h={HorizontalBarStyle:{'axis[orientation="horizontal"]':{visibility:"hidden"},'axis[orientation="vertical"]':{paddingLeft:0,paddingRight:16,width:110},'axis[orientation="vertical"]>axisbucketmark':{fontWeight:"bold"},bar:{height:12,paddingTop:8,paddingBottom:8},"bar.blue":{fill:"blue"},"bar.teal":{fill:"aqua"},"bar.purple":{fill:"purple"},"bar.orange":{fill:"orange"},"bar.maroon":{fill:"fuchsia"},"bar.yellow":{fill:"yellow"},"bar.blue>barlabel":{color:"blue"},"bar.teal>barlabel":{color:"aqua"},"bar.purple>barlabel":{color:"purple"},"bar.orange>barlabel":{color:"orange"},"bar.maroon>barlabel":{color:"fuchsia"},"bar.yellow>barlabel":{color:"yellow"}},VerticalBarStyle:{'axis[orientation="vertical"]':{paddingLeft:0},barlabel:{visibility:"hidden"},'bar[series="women"]':{fill:"aqua"},'bar[series="men"]':{fill:"blue"},bar:{margin:2,width:12},bargroup:{margin:10},chart:{paddingLeft:0,paddingRight:0}}};f.exports=h}),null);
__d("BoostedComponentInsightsAgeGenderSection.react",["cx","fbt","AdproObjectiveType","BoostedActionInsightsConstants","BoostedComponentInsightsChartStyles","BoostedComponentInsightsConstants","BoostedComponentStrings","BUIInsightsLegendChart.react","BUIInsightsVerticalBarChart.react","CandelaConstants","CandelaGroupScaleBuilder","immutable","InsightsFormatters","React"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("CandelaConstants").Alignment,m=c("immutable").Map,n=c("immutable").OrderedSet,o=c("CandelaGroupScaleBuilder").group,p={ageBucket:{type:"category"},female:{type:"percentage"},male:{type:"percentage"}},q=function q(x){var y=0;if(x)for(var z=0;z<c("BoostedComponentInsightsConstants").AGE_COLUMNS.length;z++)y+=x[c("BoostedComponentInsightsConstants").AGE_COLUMNS[z]];return y},r=function r(x){__p&&__p();var y=0;if(x)for(var z=x.values(),A=Array.isArray(z),B=0,z=A?z:z[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var C;if(A){if(B>=z.length)break;C=z[B++]}else{B=z.next();if(B.done)break;C=B.value}var D=C;y+=D}return y},s=function s(x){if(x===undefined||!x)return null;var y=x;for(var z=0;z<c("BoostedComponentInsightsConstants").AGE_COLUMNS.length;z++)if(!Object.prototype.hasOwnProperty.call(y,c("BoostedComponentInsightsConstants").AGE_COLUMNS[z]))y[c("BoostedComponentInsightsConstants").AGE_COLUMNS[z]]=0;return y},t=function t(x,y,z){return n([{key:c("BoostedComponentInsightsConstants").GENDER_FEMALE,label:c("BoostedComponentStrings").GENDER_WOMEN,value:c("InsightsFormatters").percentageFormatter(x/z)},{key:c("BoostedComponentInsightsConstants").GENDER_MALE,label:c("BoostedComponentStrings").GENDER_MEN,value:c("InsightsFormatters").percentageFormatter(y/z)}])},u=function u(x,y,z){__p&&__p();var A=[];for(var B=0;B<c("BoostedComponentInsightsConstants").AGE_COLUMNS.length;B++){var C=0;if(x)C=Number((x[c("BoostedComponentInsightsConstants").AGE_COLUMNS[B]]/z).toFixed(2));var D=0;if(y)D=Number((y[c("BoostedComponentInsightsConstants").AGE_COLUMNS[B]]/z).toFixed(2));A.push({ageBucket:c("BoostedComponentInsightsConstants").AGE_COLUMNS[B],female:C,male:D})}return A},v=function v(x,y,z){__p&&__p();var A=[];for(var B=0;B<c("BoostedComponentInsightsConstants").AGE_COLUMNS.length;B++){var C=0;if(x&&x.has(c("BoostedComponentInsightsConstants").AGE_COLUMNS[B]))C=Number((x.get(c("BoostedComponentInsightsConstants").AGE_COLUMNS[B])/z).toFixed(2));var D=0;if(y&&y.has(c("BoostedComponentInsightsConstants").AGE_COLUMNS[B]))D=Number((y.get(c("BoostedComponentInsightsConstants").AGE_COLUMNS[B])/z).toFixed(2));A.push({ageBucket:c("BoostedComponentInsightsConstants").AGE_COLUMNS[B],female:C,male:D})}return A};j=babelHelpers.inherits(w,c("React").Component);k=j&&j.prototype;w.getName=function(){return c("BoostedActionInsightsConstants").TAB_AGE_GENDER};w.getTitle=function(){return i._("People")};w.prototype.render=function(){__p&&__p();var x=this.props,y=x.objective,z=x.values,A=null,B=null,C=0,D=0;if(m.isMap(z)){A=z.get(c("BoostedComponentInsightsConstants").GENDER_MALE);B=z.get(c("BoostedComponentInsightsConstants").GENDER_FEMALE);C=r(A);D=r(B)}else{A=s(z[c("BoostedComponentInsightsConstants").GENDER_MALE]);B=s(z[c("BoostedComponentInsightsConstants").GENDER_FEMALE]);C=q(A);D=q(B)}var E=D+C;if(!E||E<c("BoostedActionInsightsConstants").LEAD_GEN_AGE_GENDER_BREAKDOWN_THRESHOLD&&y===c("AdproObjectiveType").LEAD_GENERATION)return c("React").createElement("div",{className:"_203o"},c("React").createElement("div",{className:"_203p"},i._("No age\/gender data to display.")),c("React").createElement("div",{className:"_203q"}));else return c("React").createElement(c("BUIInsightsLegendChart.react"),{items:t(D,C,E),layoutInterval:0,minItemWidthPercentage:2},c("React").createElement(c("BUIInsightsVerticalBarChart.react"),{alignment:l.BOTTOM,data:m.isMap(z)?v(B,A,E):u(B,A,E),height:c("BoostedComponentInsightsConstants").VERTICAL_CHART_HEIGHT,plotX:o("ageBucket"),plotY:[o(c("BoostedComponentInsightsConstants").GENDER_FEMALE,c("BoostedComponentInsightsConstants").GENDER_MALE).from(0).stepCountHint(4).roundInput()],schema:p,styles:c("BoostedComponentInsightsChartStyles").VerticalBarStyle,width:c("BoostedComponentInsightsConstants").VERTICAL_CHART_WIDTH}))};function w(){j.apply(this,arguments)}f.exports=w}),null);
__d("InsightsHorizontalBarChartV2Proxy.react",["CandelaMigration"],(function a(b,c,d,e,f,g){"use strict";f.exports=c("CandelaMigration").InsightsHorizontalBarChart}),null);
__d("BUIInsightsHorizontalBarChart.react",["InsightsHorizontalBarChartV2Proxy.react","InsightsThemeableChartMixin","React","ReactComponentWithPureRenderMixin","BUIInsightsTheme"],(function a(b,c,d,e,f,g){"use strict";var h=c("React").createClass({displayName:"BUIInsightsHorizontalBarChart",mixins:[c("InsightsThemeableChartMixin")(function(){return c("BUIInsightsTheme")}),c("ReactComponentWithPureRenderMixin")],statics:{getComponentTheming:function i(){return{styleSheet:{'axis[alignment="top"]':{visibility:"hidden"},bargroup:{margin:5},barlabel:{padding:"0 5 5"}}}}},render:function i(){return c("React").createElement(c("InsightsHorizontalBarChartV2Proxy.react"),babelHelpers["extends"]({},this.props,{theme:this.state.theme}))}});f.exports=h}),null);
__d("BoostedComponentInsightsHelper",["BoostedComponentInsightsConstants"],(function a(b,c,d,e,f,g){"use strict";var h={getHorizontalChartHeight:function i(j){return c("BoostedComponentInsightsConstants").HORIZONTAL_CHART_BAR_PADDING*j+c("BoostedComponentInsightsConstants").HORIZONTAL_CHART_TOP_BOTTOM_PADDING}};f.exports=h}),null);
__d("BoostedComponentInsightsCountrySection.react",["cx","fbt","BoostedActionInsightsConstants","BoostedComponentInsightsChartStyles","BoostedComponentInsightsConstants","BoostedComponentInsightsHelper","BUIInsightsHorizontalBarChart.react","CandelaConstants","CandelaGroupScaleBuilder","immutable","React"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("immutable").Map,m=c("CandelaConstants").Alignment,n=c("CandelaGroupScaleBuilder").group,o={countryName:{type:"category"},countryValue:{type:"number"}},p=function p(v){return function(){return function(w,x){return w+" ("+(w/v*100).toFixed(1)+"%)"}}},q=function q(v){var w=0;for(var x=0;x<v.length;x++)w+=v[x].data;return w},r=function r(v){var w=[];for(var x=0;x<v.length;x++)w.push({countryName:v[x].name,countryValue:v[x].data,$meta:{className:c("BoostedComponentInsightsConstants").CHART_COLORS[x%c("BoostedComponentInsightsConstants").CHART_COLORS.length]}});return w},s=function s(v){var w=v.data,x=v.names,y=[];for(var z in w)if(w[z]>0)y.push({name:x[z],data:w[z]});y.sort(function(A,B){return B.data-A.data});return y},t=function t(v){__p&&__p();var w=v.get("data"),x=v.get("names"),y=[];for(var z=w.keys(),A=Array.isArray(z),B=0,z=A?z:z[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var C;if(A){if(B>=z.length)break;C=z[B++]}else{B=z.next();if(B.done)break;C=B.value}var D=C;if(w.get(D)>0)y.push({name:x.get(D),data:w.get(D)})}y.sort(function(E,F){return F.data-E.data});return y};j=babelHelpers.inherits(u,c("React").Component);k=j&&j.prototype;u.getName=function(){return c("BoostedActionInsightsConstants").TAB_COUNTRY};u.getTitle=function(){return i._("Countries")};u.prototype.render=function(){var v=this.props.values,w=l.isMap(v)?t(v):s(v),x=babelHelpers["extends"]({},c("BoostedComponentInsightsChartStyles").HorizontalBarStyle,this.props.styles);if(!w.length)return c("React").createElement("div",{className:"_203o"},c("React").createElement("div",{className:"_203p"},i._("No Country data to display")),c("React").createElement("div",{className:"_203q"}));else return c("React").createElement(c("BUIInsightsHorizontalBarChart.react"),{alignment:m.LEFT,barLabelFormatterFactory:p(q(w)),data:r(w),height:c("BoostedComponentInsightsHelper").getHorizontalChartHeight(w.length),plotX:[n("countryValue").from(0).extendInput(0,1).roundInput()],plotY:n("countryName"),schema:o,styles:x,width:c("BoostedComponentInsightsConstants").HORIZONTAL_CHART_WIDTH})};function u(){j.apply(this,arguments)}f.exports=u}),null);
__d("BoostedComponentInsightsEngagementSection.react",["cx","fbt","BoostedActionInsightsConstants","BoostedComponentInsightsChartStyles","BoostedComponentInsightsConstants","BoostedComponentInsightsHelper","BUIInsightsHorizontalBarChart.react","CandelaConstants","CandelaGroupScaleBuilder","immutable","React"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("immutable").Map,m=c("CandelaConstants").Alignment,n=c("CandelaGroupScaleBuilder").group,o={actionName:{type:"category"},actionValue:{type:"number"}},p=function p(t,u){return u==1?c("BoostedComponentInsightsConstants").ENGAGEMENT_LABELS[t].single:c("BoostedComponentInsightsConstants").ENGAGEMENT_LABELS[t].plural},q=function q(t){var u=[],v=0;for(var w=0;w<c("BoostedComponentInsightsConstants").ENGAGEMENT_ACTIONS.length;w++)if(Object.prototype.hasOwnProperty.call(t,c("BoostedComponentInsightsConstants").ENGAGEMENT_ACTIONS[w])&&t[c("BoostedComponentInsightsConstants").ENGAGEMENT_ACTIONS[w]]!=0){u.push({actionName:p(w,t[c("BoostedComponentInsightsConstants").ENGAGEMENT_ACTIONS[w]]),actionValue:t[c("BoostedComponentInsightsConstants").ENGAGEMENT_ACTIONS[w]],$meta:{className:c("BoostedComponentInsightsConstants").CHART_COLORS[v%c("BoostedComponentInsightsConstants").CHART_COLORS.length]}});v++}return u},r=function r(t){var u=[],v=0;for(var w=0;w<c("BoostedComponentInsightsConstants").ENGAGEMENT_ACTIONS.length;w++)if(t.has(c("BoostedComponentInsightsConstants").ENGAGEMENT_ACTIONS[w])&&t.get(c("BoostedComponentInsightsConstants").ENGAGEMENT_ACTIONS[w])!=0){u.push({actionName:p(w,t.get(c("BoostedComponentInsightsConstants").ENGAGEMENT_ACTIONS[w])),actionValue:t.get(c("BoostedComponentInsightsConstants").ENGAGEMENT_ACTIONS[w]),$meta:{className:c("BoostedComponentInsightsConstants").CHART_COLORS[v%c("BoostedComponentInsightsConstants").CHART_COLORS.length]}});v++}return u};j=babelHelpers.inherits(s,c("React").Component);k=j&&j.prototype;s.getName=function(){return c("BoostedActionInsightsConstants").TAB_ENGAGEMENT};s.getTitle=function(){return i._("Actions")};s.prototype.render=function(){var t=this.props.values,u=l.isMap(t)?r(t):q(t);if(!u.length)return c("React").createElement("div",{className:"_203o"},c("React").createElement("div",{className:"_203p"},i._("No one has engaged with your page yet.")),c("React").createElement("div",{className:"_203q"}));else return c("React").createElement(c("BUIInsightsHorizontalBarChart.react"),{alignment:m.LEFT,data:u,height:c("BoostedComponentInsightsHelper").getHorizontalChartHeight(u.length),plotX:[n("actionValue").from(0).extendInput(0,1).roundInput()],plotY:n("actionName"),schema:o,styles:c("BoostedComponentInsightsChartStyles").HorizontalBarStyle,width:c("BoostedComponentInsightsConstants").HORIZONTAL_CHART_WIDTH})};function s(){j.apply(this,arguments)}f.exports=s}),null);
__d("BoostedComponentInsightsHeadlineV2.react",["cx","fbt","BoostedActionStatsCategory","BoostedComponentInsightsSectionStrings","HelpLink.react","Number.react","React","SUIBusinessTheme","SUIText.react","joinClasses"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("BoostedComponentInsightsSectionStrings").getReachTooltipWithInstagram,m=c("BoostedComponentInsightsSectionStrings").getConversionsTooltipWithInstagram,n=c("BoostedComponentInsightsSectionStrings").getConversionsTooltip,o=c("BoostedComponentInsightsSectionStrings").getConversionsLabel,p=function p(u){var v=null;if(u.tooltip)v=c("React").createElement(c("HelpLink.react"),{className:"_3-99",tooltip:u.tooltip});return c("React").createElement("div",{className:c("joinClasses")("_1ze-",u.className)},c("React").createElement("div",{className:"_1zfd"},u.value),c("React").createElement("div",{className:"_1zff"},u.label,v))},q=function q(u){var v=u.value;return c("React").createElement(c("Number.react"),{className:"_1zfd",value:v})},r=function r(u){var v=u.appID,w=u.isDeliveredToInstagram,x=u.reach,y=w?l(v):i._("The number of people who have seen your ad.");return c("React").createElement(p,{className:"_1zfg",label:i._("People Reached"),tooltip:y,value:c("React").createElement(q,{value:x})})},s=function s(u){var v=u.appID,w=u.isDeliveredToInstagram,x=u.conversions,y=u.conversionType,z=u.objective;if(!x||!y)return null;var A=w?m(v,y,z):n(v,y,z);return c("React").createElement(p,{className:"_1zfg",label:o(v,y,z),tooltip:A,value:c("React").createElement(q,{value:x})})};j=babelHelpers.inherits(t,c("React").Component);k=j&&j.prototype;t.prototype.render=function(){var u=this.props,v=u.appID,w=u.conversionType,x=u.impressions,y=u.isDeliveredToInstagram,z=u.reach,A=u.showConversionHeader,B=u.spend,C=u.objective,D=this.props.conversions;if(w===c("BoostedActionStatsCategory").REACH)D=x!==null?x:undefined;return c("React").createElement("div",{className:"_1zfh"},c("React").createElement("div",{className:"_1zfi"},c("React").createElement(r,{appID:v,isDeliveredToInstagram:y?y:false,reach:z}),A?c("React").createElement(s,{appID:v,conversionType:w,conversions:D,isDeliveredToInstagram:y?y:false,objective:C}):null,c("React").createElement(p,{className:"_1zfj",label:i._("Total Spend"),tooltip:i._("The total amount you've spent on the ad for your Page"),value:c("React").createElement(c("SUIText.react"),{className:"_1zfd",shade:"medium",size:"xxlarge_DEPRECATED",textAlign:"right",theme:c("SUIBusinessTheme")},B)})))};function t(){j.apply(this,arguments)}f.exports=t}),null);
__d("BoostedComponentLeadGenInfoFields",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({CREATED_TIME:"created_time",FORM_ID:"form_id",LEAD_ID:"lead_id",PROFILE_PIC_URI:"profile_pic_uri",QUESTION_ANSWERS:"question_answers",FIELD_DATA:"field_data",FULL_NAME:"full_name",EMAIL:"email",PHONE_NUMBER:"phone_number",FIRST_NAME:"first_name",LAST_NAME:"last_name",STREET_ADDRESS:"street_address",CITY:"city",STATE:"state",PROVINCE:"province",COUNTRY:"country",POST_CODE:"post_code",ZIP:"zip",DOB:"dob",GENDER:"gender",MARITIAL_STATUS:"maritial_status",RELATIONSHIP_STATUS:"relationship_status",MILITARY_STATUS:"military_status",JOB_TITLE:"job_title",COMPANY_NAME:"company_name",WORK_EMAIL:"work_email",WORK_PHONE_NUMBER:"work_phone_number"})}),null);
__d("BoostedComponentLeadGenManagementUtils",["BoostedComponentLeadGenInfoFields","immutable"],(function a(b,c,d,e,f,g){"use strict";var h={BASIC_INFO_FIELDS:c("immutable").List([c("BoostedComponentLeadGenInfoFields").FULL_NAME,c("BoostedComponentLeadGenInfoFields").EMAIL,c("BoostedComponentLeadGenInfoFields").PHONE_NUMBER,c("BoostedComponentLeadGenInfoFields").FIRST_NAME,c("BoostedComponentLeadGenInfoFields").LAST_NAME]),CONTACT_INFO_FIELDS:c("immutable").List([c("BoostedComponentLeadGenInfoFields").STREET_ADDRESS,c("BoostedComponentLeadGenInfoFields").CITY,c("BoostedComponentLeadGenInfoFields").STATE,c("BoostedComponentLeadGenInfoFields").PROVINCE,c("BoostedComponentLeadGenInfoFields").ZIP,c("BoostedComponentLeadGenInfoFields").POST_CODE,c("BoostedComponentLeadGenInfoFields").COUNTRY]),DEMOGRAPHIC_INFO_FIELDS:c("immutable").List([c("BoostedComponentLeadGenInfoFields").DOB,c("BoostedComponentLeadGenInfoFields").GENDER,c("BoostedComponentLeadGenInfoFields").MARITIAL_STATUS,c("BoostedComponentLeadGenInfoFields").RELATIONSHIP_STATUS,c("BoostedComponentLeadGenInfoFields").MILITARY_STATUS]),WORK_INFO_FIELDS:c("immutable").List([c("BoostedComponentLeadGenInfoFields").JOB_TITLE,c("BoostedComponentLeadGenInfoFields").COMPANY_NAME])},i=function i(j){var k=h.BASIC_INFO_FIELDS.concat(h.CONTACT_INFO_FIELDS,h.DEMOGRAPHIC_INFO_FIELDS,h.WORK_INFO_FIELDS);return!k.includes(j)};f.exports={BoostedComponentLeadGenManagementConstants:h,isCustomQuestionField:i}}),null);
__d("BoostedComponentTimeUtils",["fbt","DateConsts"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=function i(j,k){__p&&__p();var l=k-j,m=void 0;if(l<c("DateConsts").SEC_PER_MIN)return h._("now");else if(l<c("DateConsts").SEC_PER_HOUR){m=Math.floor(l/c("DateConsts").SEC_PER_MIN);return h._({"*":"{time count} minutes ago","_1":"{time count} minute ago"},[h.param("time count",m),h.plural(m)])}else if(l<c("DateConsts").SEC_PER_DAY){m=Math.floor(l/c("DateConsts").SEC_PER_HOUR);return h._({"*":"{time count} hours ago","_1":"{time count} hour ago"},[h.param("time count",m),h.plural(m)])}else if(l<c("DateConsts").SEC_PER_WEEK){m=Math.floor(l/c("DateConsts").SEC_PER_DAY);return h._({"*":"{time count} days ago","_1":"{time count} day ago"},[h.param("time count",m),h.plural(m)])}else{m=Math.floor(l/c("DateConsts").SEC_PER_WEEK);return h._({"*":"{time count} weeks ago","_1":"{time count} week ago"},[h.param("time count",m),h.plural(m)])}};f.exports={getTimeAgo:i}}),null);
__d("BoostedComponentInsightsLeadGenManagementRow.react",["cx","fbt","BoostedComponentLeadGenInfoFields","BoostedComponentLeadGenManagementUtils","BoostedComponentTimeUtils","DateTime","Image.react","ImageBlock.react","immutable","Link.react","React","Timezone","joinClasses"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("BoostedComponentLeadGenManagementUtils").BoostedComponentLeadGenManagementConstants,m=c("BoostedComponentLeadGenManagementUtils").isCustomQuestionField,n=c("BoostedComponentTimeUtils").getTimeAgo,o=function o(z){var A=z.isWorkInfo,B=z.leadData,C=A?B.get(c("BoostedComponentLeadGenInfoFields").WORK_EMAIL):B.get(c("BoostedComponentLeadGenInfoFields").EMAIL);return C?c("React").createElement(c("Link.react"),{href:"mailto:"+C,target:"_blank"},C):null},p=function p(z){var A=z.isWorkInfo,B=z.leadData,C=A?B.get(c("BoostedComponentLeadGenInfoFields").WORK_EMAIL):B.get(c("BoostedComponentLeadGenInfoFields").EMAIL),D=A?B.get(c("BoostedComponentLeadGenInfoFields").WORK_PHONE_NUMBER):B.get(c("BoostedComponentLeadGenInfoFields").PHONE_NUMBER);if(!C)return D?D:null;return D?c("React").createElement("span",null," \xb7 ",D):null},q=function q(z){var A=z.detailsShown,B=z.onToggleDetailsLinkClick,C=A?i._("Hide details"):i._("Show more details");return c("React").createElement(c("Link.react"),{className:"_1scx",onClick:B},C)},r=function r(z){var A=z.value,B=A.get(c("BoostedComponentLeadGenInfoFields").CREATED_TIME),C=c("DateTime").now(c("Timezone").PST8PDT).getUnixTimestampSeconds(),D=n(B,C);return c("React").createElement("span",{className:"_1scy"}," ","\xb7 ",D)},s=function s(z){__p&&__p();var A=z.leadData,B=l.CONTACT_INFO_FIELDS,C=c("immutable").Set();B.forEach(function(D,E){__p&&__p();var F=A.get(D);if(!F)return;var G=null;if(!C.size)G=null;else if(D===c("BoostedComponentLeadGenInfoFields").ZIP||D===c("BoostedComponentLeadGenInfoFields").POST_CODE)G=" ";else G=", ";var H=c("React").createElement("span",{key:E},G,F);C=C.add(H)});if(!C.size)return null;return c("React").createElement("div",{className:c("joinClasses")("_622h","_1scy")},C)},t=function t(z){__p&&__p();var A=z.leadData,B=l.DEMOGRAPHIC_INFO_FIELDS,C=c("immutable").Set(),D=0;B.forEach(function(E){var F=A.get(E);if(!F)return;if(C.size>0)C=C.add(c("React").createElement("span",{key:D++}," \xb7 "));C=C.add(c("React").createElement("span",{key:D++},F))});if(!C.size)return null;return c("React").createElement("div",{className:c("joinClasses")("_622h","_1scy")},C)},u=function u(z){__p&&__p();var A=z.leadData,B=l.WORK_INFO_FIELDS,C=c("immutable").Set(),D=0;B.forEach(function(E){var F=A.get(E);if(!F)return;if(C.size>0)C=C.add(c("React").createElement("span",{className:"_1scy",key:D++}," ","\xb7"," "));C=C.add(c("React").createElement("span",{className:"_1scy",key:D++},F))});if(!C.size&&!x(true,A))return null;return c("React").createElement("div",null,c("React").createElement("div",{className:c("joinClasses")("_628g","_6284")},i._("Work Info")),c("React").createElement("div",{className:"_622h"},C,c("React").createElement("div",null,c("React").createElement(o,{isWorkInfo:true,leadData:A}),c("React").createElement("span",{className:"_1scy"},c("React").createElement(p,{isWorkInfo:true,leadData:A})))))},v=function v(z){var A=z.leadData,B=A.filter(function(E,F){return m(F)}),C=c("immutable").Set(),D=0;B.forEach(function(E,F){var G=E.first(),H=c("React").createElement("div",{className:"_6284",key:D++},c("React").createElement("div",{className:"_2pic"},F),c("React").createElement("div",{className:"_1scy"},G));C=C.add(H)});if(!C.size)return null;return c("React").createElement("div",null,c("React").createElement("div",{className:c("joinClasses")("_628g","_6284")},i._("Answers")),c("React").createElement("div",{className:"_622h"},C))},w=function w(z){var A=z.get(c("BoostedComponentLeadGenInfoFields").FULL_NAME);if(A)return A.first();var B=z.get(c("BoostedComponentLeadGenInfoFields").FIRST_NAME),C=z.get(c("BoostedComponentLeadGenInfoFields").LAST_NAME);A=B.first()+" "+C.first();return A},x=function x(z,A){var B=z?A.get(c("BoostedComponentLeadGenInfoFields").WORK_EMAIL):A.get(c("BoostedComponentLeadGenInfoFields").EMAIL),C=z?A.get(c("BoostedComponentLeadGenInfoFields").WORK_PHONE_NUMBER):A.get(c("BoostedComponentLeadGenInfoFields").PHONE_NUMBER);return!!B||!!C};j=babelHelpers.inherits(y,c("React").PureComponent);k=j&&j.prototype;function y(){var z,A;for(var B=arguments.length,C=Array(B),D=0;D<B;D++)C[D]=arguments[D];return A=(z=k.constructor).call.apply(z,[this].concat(C)),this.state={detailsShown:false},this.$BoostedComponentInsightsLeadGenManagementRow1=function(){this.setState({detailsShown:!this.state.detailsShown})}.bind(this),A}y.prototype.render=function(){var z=this.props.value,A=this.state.detailsShown,B=z.get(c("BoostedComponentLeadGenInfoFields").PROFILE_PIC_URI),C=z.get(c("BoostedComponentLeadGenInfoFields").QUESTION_ANSWERS),D=x(false,C)?c("React").createElement("div",{className:"_622h"},c("React").createElement(o,{isWorkInfo:false,leadData:C}),c("React").createElement(p,{isWorkInfo:false,leadData:C})):null,E=A?c("React").createElement("div",{className:"_2pin"},c("React").createElement(s,{leadData:C}),c("React").createElement(t,{leadData:C}),c("React").createElement(u,{leadData:C}),c("React").createElement(v,{leadData:C})):null;return c("React").createElement("div",{className:"_3a-r"},c("React").createElement(c("ImageBlock.react"),null,c("React").createElement("div",null,c("React").createElement(c("Image.react"),{height:"40px",src:B,width:"40px"})),c("React").createElement("div",{className:"_3a-s"},c("React").createElement("div",{className:"_3a-t"},w(C)),D,c("React").createElement("div",null,E),c("React").createElement("div",{className:"_6284"},c("React").createElement(q,{detailsShown:A,onToggleDetailsLinkClick:this.$BoostedComponentInsightsLeadGenManagementRow1}),c("React").createElement(r,{value:z})))))};f.exports=y}),null);
__d("AdsLeadGenDownloadDialogUiDialogLeadsCountDownloadedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"AdsLeadGenUI.DIALOG_LEADS_COUNT_DOWNLOADED");f.exports=h}),null);
__d("AdsLeadGenDownloadDialogUiDialogMetadataDownloadedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"AdsLeadGenUI.DIALOG_METADATA_DOWNLOADED");f.exports=h}),null);
__d("XAdsLeadGenLeadDownloadDataGenController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/lead_gen/lead_download_dialog_data/",{})}),null);
__d("AdsLeadGenDownloadDialogDataManager",["AdsDataAtom","AdsLeadGenDownloadDialogUiDialogLeadsCountDownloadedDataAction","AdsLeadGenDownloadDialogUiDialogMetadataDownloadedDataAction","AsyncRequest","XAdsLeadGenLeadDownloadDataGenController"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();h.prototype.fetchMetadata=function(i,j,k,l,m,n){__p&&__p();var o={object_id:i,type:j,start_date:k.getUnixTimestampSeconds(),end_date:l.getUnixTimestampSeconds(),session_id:n};if(!m)o.fields=["has_permission","last_download","page_id"];new(c("AsyncRequest"))().setURI(c("XAdsLeadGenLeadDownloadDataGenController").getURIBuilder().getURI()).setData(o).setHandler(function(p){__p&&__p();var q=0,r="";if(p.payload.last_download){q=p.payload.last_download[0];r=p.payload.last_download[1]}if(!q&&p.payload.form_created_date)q=p.payload.form_created_date;var s=void 0;if(m)s=c("AdsLeadGenDownloadDialogUiDialogLeadsCountDownloadedDataAction").actionType;else s=c("AdsLeadGenDownloadDialogUiDialogMetadataDownloadedDataAction").actionType;var t=p.payload,u=t.allow_organic_lead_retrieval,v=t.error_message,w=t.has_permission,x=t.page_id,y=t.leads_count,z=t.has_leads_count_discrepancy,A=t.organic_leads_count,B=t.show_leads_setup_notice;c("AdsDataAtom").handleUpdateFromServerResponse({allowOrganicLeadRetrieval:u,errorMessage:v,hasPermission:w,hasLeadsCountDiscrepancy:z,lastDownloadTime:q,lastDownloadUser:r,pageID:x,leadsCount:y,organicLeadsCount:A,showLeadsSetupNotice:B,type:s})}).send()};function h(){}f.exports=new h()}),null);
__d("AdsLeadGenDownloadDialogUiDownloadAsyncCompletedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"AdsLeadGenUI.DOWNLOAD_ASYNC_COMPLETED");f.exports=h}),null);
__d("LeadGenExportDomain",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({DIALOG:"dialog",GRAPH_API:"graph_api",ASYNC_TIER:"async_tier",XCONTROLLER:"xcontroller"})}),null);
__d("LeadGenExportEvent",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({ASYNC_EXPORT_JOB_STARTED:"async_export_job_started",ASYNC_EXPORT_JOB_ENDED:"async_export_job_ended",ASYNC_EXPORT_JOB_ERROR:"async_export_job_error",XCONTROLLER_DOWNLOAD_STARTED:"xcontroller_download_started",XCONTROLLER_DOWNLOAD_ERROR:"xcontroller_download_error",XCONTROLLER_DOWNLOAD_ENDED:"xcontroller_download_ended",XCONTROLLER_METADATA_REQUESTED:"xcontroller_metadata_requested",XCONTROLLER_METADATA_ERROR:"xcontroller_metadata_error",XCONTROLLER_METADATA_PASSED:"xcontroller_metadata_passed",DIALOG_OPEN:"dialog_open",DIALOG_DOWNLOAD_STARTED:"dialog_download_started",DIALOG_OPEN_RESULT:"dialog_open_result",DIALOG_ASYNC_DOWNLOAD_REQUESTED:"dialog_async_download_requested",GRAPH_API_EXPORT_JOB_STARTED:"graph_api_async_export_job_started",GRAPH_API_EXPORT_JOB_POSTED:"graph_api_async_export_job_posted",GRAPH_API_EXPORT_JOB_ERROR:"graph_api_async_export_job_error"})}),null);
__d("LeadGenExportTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(){this.clear()}h.prototype.log=function(){c("GeneratedLoggerUtils").log("logger:LeadGenExportLoggerConfig",this.$LeadGenExportTypedLogger1,c("Banzai").BASIC)};h.prototype.logVital=function(){c("GeneratedLoggerUtils").log("logger:LeadGenExportLoggerConfig",this.$LeadGenExportTypedLogger1,c("Banzai").VITAL)};h.prototype.clear=function(){this.$LeadGenExportTypedLogger1={};return this};h.prototype.getData=function(){return babelHelpers["extends"]({},this.$LeadGenExportTypedLogger1)};h.prototype.updateData=function(j){this.$LeadGenExportTypedLogger1=babelHelpers["extends"]({},this.$LeadGenExportTypedLogger1,j);return this};h.prototype.setActualLeadsCount=function(j){this.$LeadGenExportTypedLogger1.actual_leads_count=j;return this};h.prototype.setAdID=function(j){this.$LeadGenExportTypedLogger1.ad_id=j;return this};h.prototype.setAsyncContext=function(j){this.$LeadGenExportTypedLogger1.async_context=j;return this};h.prototype.setDomain=function(j){this.$LeadGenExportTypedLogger1.domain=j;return this};h.prototype.setErrorCode=function(j){this.$LeadGenExportTypedLogger1.error_code=j;return this};h.prototype.setErrorMessage=function(j){this.$LeadGenExportTypedLogger1.error_message=j;return this};h.prototype.setEvent=function(j){this.$LeadGenExportTypedLogger1.event=j;return this};h.prototype.setExpiredLeadsCount=function(j){this.$LeadGenExportTypedLogger1.expired_leads_count=j;return this};h.prototype.setExplicitAsyncJobID=function(j){this.$LeadGenExportTypedLogger1.explicit_async_job_id=j;return this};h.prototype.setExportDuration=function(j){this.$LeadGenExportTypedLogger1.export_duration=j;return this};h.prototype.setExportID=function(j){this.$LeadGenExportTypedLogger1.export_id=j;return this};h.prototype.setFileType=function(j){this.$LeadGenExportTypedLogger1.file_type=j;return this};h.prototype.setFilterEndDate=function(j){this.$LeadGenExportTypedLogger1.filter_end_date=j;return this};h.prototype.setFilterStartDate=function(j){this.$LeadGenExportTypedLogger1.filter_start_date=j;return this};h.prototype.setHasCountsInconsistency=function(j){this.$LeadGenExportTypedLogger1.has_counts_inconsistency=j;return this};h.prototype.setIsAsync=function(j){this.$LeadGenExportTypedLogger1.is_async=j;return this};h.prototype.setIsDownloadingNewLeads=function(j){this.$LeadGenExportTypedLogger1.is_downloading_new_leads=j;return this};h.prototype.setLeadFormsCount=function(j){this.$LeadGenExportTypedLogger1.lead_forms_count=j;return this};h.prototype.setLeadReportRunID=function(j){this.$LeadGenExportTypedLogger1.lead_report_run_id=j;return this};h.prototype.setLeadgenDataID=function(j){this.$LeadGenExportTypedLogger1.leadgen_data_id=j;return this};h.prototype.setLeadsCountInAdsInsightsTable=function(j){this.$LeadGenExportTypedLogger1.leads_count_in_ads_insights_table=j;return this};h.prototype.setLeadsExportType=function(j){this.$LeadGenExportTypedLogger1.leads_export_type=j;return this};h.prototype.setLeadsInDownload=function(j){this.$LeadGenExportTypedLogger1.leads_in_download=j;return this};h.prototype.setPageID=function(j){this.$LeadGenExportTypedLogger1.page_id=j;return this};h.prototype.setSessionID=function(j){this.$LeadGenExportTypedLogger1.session_id=j;return this};h.prototype.setSource=function(j){this.$LeadGenExportTypedLogger1.source=j;return this};h.prototype.setVC=function(j){this.$LeadGenExportTypedLogger1.vc=j;return this};h.prototype.updateExtraData=function(j){j=c("nullthrows")(c("GeneratedLoggerUtils").serializeMap(j));c("GeneratedLoggerUtils").checkExtraDataFieldNames(j,i);this.$LeadGenExportTypedLogger1=babelHelpers["extends"]({},this.$LeadGenExportTypedLogger1,j);return this};h.prototype.addToExtraData=function(j,k){var l={};l[j]=k;return this.updateExtraData(l)};var i={actual_leads_count:true,ad_id:true,async_context:true,domain:true,error_code:true,error_message:true,event:true,expired_leads_count:true,explicit_async_job_id:true,export_duration:true,export_id:true,file_type:true,filter_end_date:true,filter_start_date:true,has_counts_inconsistency:true,is_async:true,is_downloading_new_leads:true,lead_forms_count:true,lead_report_run_id:true,leadgen_data_id:true,leads_count_in_ads_insights_table:true,leads_export_type:true,leads_in_download:true,page_id:true,session_id:true,source:true,vc:true};f.exports=h}),null);
__d("AdsLeadGenDownloadDialogLoggerStore",["AdsDataAtom","AdsLeadGenDownloadDialogUIActionTypes","AdsLeadGenDownloadDialogUiDialogMountedDataAction","AdsLeadGenDownloadDialogUiDialogOpenDataAction","AdsLeadGenDownloadDialogUiDownloadAsyncCompletedDataAction","AdsLeadGenDownloadDialogUiDownloadStartedDataAction","FluxStore","LeadGenExportDomain","LeadGenExportEvent","LeadGenExportSource","LeadGenExportTypedLogger","LeadGenLeadsExportType","PageContentTabConstants","PageContentTabLogger","PageContentTabLoggingEvents","guid"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("PageContentTabConstants").TABS;h=babelHelpers.inherits(k,c("FluxStore"));i=h&&h.prototype;function k(){i.constructor.call(this,c("AdsDataAtom"));this.$AdsLeadGenDownloadDialogLoggerStore3="";this.$AdsLeadGenDownloadDialogLoggerStore2="";this.$AdsLeadGenDownloadDialogLoggerStore5="";this.$AdsLeadGenDownloadDialogLoggerStore8=false;this.$AdsLeadGenDownloadDialogLoggerStore9=false;this.$AdsLeadGenDownloadDialogLoggerStore10=true;this.$AdsLeadGenDownloadDialogLoggerStore11=""}k.prototype.__onDispatch=function(l){__p&&__p();var m=l.action;switch(m.type){case c("AdsLeadGenDownloadDialogUiDialogOpenDataAction").actionType:this.$AdsLeadGenDownloadDialogLoggerStore5=this.$AdsLeadGenDownloadDialogLoggerStore12();this.__emitChange();break;case c("AdsLeadGenDownloadDialogUiDialogMountedDataAction").actionType:this.$AdsLeadGenDownloadDialogLoggerStore2=m.exportObjectID;this.$AdsLeadGenDownloadDialogLoggerStore3=m.exportObjectName;this.$AdsLeadGenDownloadDialogLoggerStore4=m.exportType;this.$AdsLeadGenDownloadDialogLoggerStore6=m.sourceType;this.$AdsLeadGenDownloadDialogLoggerStore8=m.isAsync;this.$AdsLeadGenDownloadDialogLoggerStore11=m.pageID;this.$AdsLeadGenDownloadDialogLoggerStore13();this.__emitChange();break;case c("AdsLeadGenDownloadDialogUiDownloadStartedDataAction").actionType:this.$AdsLeadGenDownloadDialogLoggerStore1=m.endDate;this.$AdsLeadGenDownloadDialogLoggerStore7=m.startDate;this.$AdsLeadGenDownloadDialogLoggerStore8=m.isAsync;this.$AdsLeadGenDownloadDialogLoggerStore14();this.__emitChange();break;case c("AdsLeadGenDownloadDialogUIActionTypes").DIALOG_OPEN_PREPARE:this.$AdsLeadGenDownloadDialogLoggerStore9=m.downloadNewLeads!==null?m.downloadNewLeads:false;this.$AdsLeadGenDownloadDialogLoggerStore1=m.endDate;this.$AdsLeadGenDownloadDialogLoggerStore7=m.startDate;this.$AdsLeadGenDownloadDialogLoggerStore8=true;this.$AdsLeadGenDownloadDialogLoggerStore15();this.__emitChange();break;case c("AdsLeadGenDownloadDialogUiDownloadAsyncCompletedDataAction").actionType:case c("AdsLeadGenDownloadDialogUIActionTypes").DIALOG_OPEN_RESULT:this.$AdsLeadGenDownloadDialogLoggerStore9=m.downloadNewLeads!==null?m.downloadNewLeads:false;this.$AdsLeadGenDownloadDialogLoggerStore8=true;this.$AdsLeadGenDownloadDialogLoggerStore7=m.startDate;this.$AdsLeadGenDownloadDialogLoggerStore1=m.endDate;this.$AdsLeadGenDownloadDialogLoggerStore16();this.__emitChange();break}};k.prototype.getSessionID=function(){return this.$AdsLeadGenDownloadDialogLoggerStore5};k.prototype.$AdsLeadGenDownloadDialogLoggerStore12=function(){return c("guid")()+"_"+Date.now()};k.prototype.$AdsLeadGenDownloadDialogLoggerStore13=function(){this.$AdsLeadGenDownloadDialogLoggerStore17(c("LeadGenExportEvent").DIALOG_OPEN);if(this.$AdsLeadGenDownloadDialogLoggerStore6===c("LeadGenExportSource").PAGE_PUBLISHING_TOOLS)c("PageContentTabLogger").log(c("PageContentTabLoggingEvents").LEADS_DOWNLOAD_DIALOG_OPENED,j.LEAD_ADS_FORMS,{lead_ad_form_id:this.$AdsLeadGenDownloadDialogLoggerStore2,page_id:this.$AdsLeadGenDownloadDialogLoggerStore11})};k.prototype.$AdsLeadGenDownloadDialogLoggerStore14=function(){this.$AdsLeadGenDownloadDialogLoggerStore17(c("LeadGenExportEvent").DIALOG_DOWNLOAD_STARTED,this.$AdsLeadGenDownloadDialogLoggerStore9,this.$AdsLeadGenDownloadDialogLoggerStore7,this.$AdsLeadGenDownloadDialogLoggerStore1);if(this.$AdsLeadGenDownloadDialogLoggerStore6===c("LeadGenExportSource").PAGE_PUBLISHING_TOOLS)c("PageContentTabLogger").log(c("PageContentTabLoggingEvents").LEADS_DOWNLOAD_DIALOG_BUTTON_CLICKED,j.LEAD_ADS_FORMS,{lead_ad_form_id:this.$AdsLeadGenDownloadDialogLoggerStore2,page_id:this.$AdsLeadGenDownloadDialogLoggerStore11,lead_ad_min_date:this.$AdsLeadGenDownloadDialogLoggerStore7.getUnixTimestampSeconds(),lead_ad_max_date:this.$AdsLeadGenDownloadDialogLoggerStore1.getUnixTimestampSeconds()})};k.prototype.$AdsLeadGenDownloadDialogLoggerStore15=function(){this.$AdsLeadGenDownloadDialogLoggerStore17(c("LeadGenExportEvent").DIALOG_ASYNC_DOWNLOAD_REQUESTED,this.$AdsLeadGenDownloadDialogLoggerStore9,this.$AdsLeadGenDownloadDialogLoggerStore7,this.$AdsLeadGenDownloadDialogLoggerStore1)};k.prototype.$AdsLeadGenDownloadDialogLoggerStore16=function(){this.$AdsLeadGenDownloadDialogLoggerStore17(c("LeadGenExportEvent").DIALOG_OPEN_RESULT,this.$AdsLeadGenDownloadDialogLoggerStore9,this.$AdsLeadGenDownloadDialogLoggerStore7,this.$AdsLeadGenDownloadDialogLoggerStore1)};k.prototype.$AdsLeadGenDownloadDialogLoggerStore17=function(event,l,m,n){__p&&__p();var o=new(c("LeadGenExportTypedLogger"))().setSessionID(this.$AdsLeadGenDownloadDialogLoggerStore5).setSource(this.$AdsLeadGenDownloadDialogLoggerStore6).setLeadsExportType(this.$AdsLeadGenDownloadDialogLoggerStore4).setIsAsync(true).setExportID(this.$AdsLeadGenDownloadDialogLoggerStore2).setPageID(this.$AdsLeadGenDownloadDialogLoggerStore11).setDomain(c("LeadGenExportDomain").DIALOG).setEvent(event);switch(this.$AdsLeadGenDownloadDialogLoggerStore4){case c("LeadGenLeadsExportType").ADGROUP:o.setAdID(this.$AdsLeadGenDownloadDialogLoggerStore2);break;case c("LeadGenLeadsExportType").FORM:o.setLeadgenDataID(this.$AdsLeadGenDownloadDialogLoggerStore2);break}if(m)o.setFilterStartDate(m.getUnixTimestampSeconds());if(n)o.setFilterEndDate(n.getUnixTimestampSeconds());if(l!=null)o.setIsDownloadingNewLeads(l);o.log()};f.exports=new k()}),null);
__d("AdsLeadGenDownloadDialogUiDownloadAsyncProgressDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"AdsLeadGenUI.DOWNLOAD_ASYNC_PROGRESS");f.exports=h}),null);
__d("LeadGenReportRunAsyncStatus",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({NOT_STARTED:"Job Not Started",STARTED:"Job Started",RUNNING:"Job Running",COMPLETED:"Job Completed",FAILED:"Job Failed",UNKNOWN:""})}),null);
__d("AdsLeadGenReportRunDataManager",["Promise","AdsGraphAPI","AdsLeadGenDownloadDialogUiDownloadAsyncCompletedDataAction","AdsLeadGenDownloadDialogUiDownloadAsyncProgressDataAction","DateConsts","GraphAPIPolling","LeadGenAsyncDownloadConfig","LeadGenReportRunAsyncStatus"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("LeadGenAsyncDownloadConfig").timeout_in_minutes||5,i=h*c("DateConsts").SEC_PER_MIN*c("DateConsts").MS_PER_SEC;j.prototype.startAsyncJob=function(k,l,m,n,o,p){var q={start_time:m.getUnixTimestampSeconds(),end_time:n.getUnixTimestampSeconds(),session_id:p},r=void 0;c("AdsGraphAPI").get(f.id).object(l,k).edge("leads").post(q).then(function(s){r=s.report_run_id;return c("Promise").resolve()}).then(c("GraphAPIPolling").poll(function(){return this.$AdsLeadGenReportRunDataManager1(r)}.bind(this),function(s){c("AdsLeadGenDownloadDialogUiDownloadAsyncProgressDataAction").dispatch({progress:s.async_percent_completion});return s.async_status===c("LeadGenReportRunAsyncStatus").COMPLETED||s.async_status===c("LeadGenReportRunAsyncStatus").FAILED},i)).done(function(){return c("AdsLeadGenDownloadDialogUiDownloadAsyncCompletedDataAction").dispatch({reportRunID:r,startDate:m,endDate:n,downloadNewLeads:o})})};j.prototype.$AdsLeadGenReportRunDataManager1=function(k){return c("AdsGraphAPI").get(f.id).object("report_run",k).get({fields:["async_percent_completion","async_status"]})};function j(){}f.exports=new j()}),null);
__d("LeadDownloadDialogState",["keyMirror"],(function a(b,c,d,e,f,g){"use strict";f.exports=c("keyMirror")({DATE_PICKER_SHOWN:null,HIDDEN:null,PREPARE_DIALOG_SHOWN:null,RESULT_SHOWN:null,SELECTOR_SHOWN:null})}),null);
__d("LeadGenLeadsFileType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({CSV:"csv",XLS:"xls"})}),null);
__d("XAdsLeadGenPOSTLeadsExportController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/lead_gen/export_csv_post/",{})}),null);
__d("AdsLeadGenDownloadDialogUIStore",["AdsDataAtom","AdsLeadGenDownloadDialogDataManager","AdsLeadGenDownloadDialogLoggerStore","AdsLeadGenDownloadDialogUIActionTypes","AdsLeadGenDownloadDialogUiDialogBackFromResultDataAction","AdsLeadGenDownloadDialogUiDialogCloseDataAction","AdsLeadGenDownloadDialogUiDialogDateChangedDataAction","AdsLeadGenDownloadDialogUiDialogLeadsCountDownloadedDataAction","AdsLeadGenDownloadDialogUiDialogMetadataDownloadedDataAction","AdsLeadGenDownloadDialogUiDialogOpenDataAction","AdsLeadGenDownloadDialogUiDialogOpenDatePickerDataAction","AdsLeadGenDownloadDialogUiDialogOpenSelectorDataAction","AdsLeadGenDownloadDialogUiDownloadAsyncCompletedDataAction","AdsLeadGenDownloadDialogUiDownloadAsyncProgressDataAction","AdsLeadGenDownloadDialogUiDownloadStartedDataAction","AdsLeadGenReportRunDataManager","AdsLoadState_LEGACY","DateTime","FluxReduceStore","Form","immutable","LeadDownloadDialogState","LeadGenExportSource","LeadGenLeadsExportType","LeadGenLeadsFileType","Timezone","XAdsLeadGenPOSTLeadsExportController"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j,k,l=c("Timezone").getEnvironmentTimezoneID()||c("Timezone").UTC;h=babelHelpers.inherits(m,c("immutable").Record({allowOrganicLeadRetrieval:false,asyncProgress:0,createdTime:c("DateTime").now(l),dialogOpenTime:c("DateTime").now(l),dialogState:c("LeadDownloadDialogState").HIDDEN,dialogStateBeforeResult:c("LeadDownloadDialogState").HIDDEN,downloadResults:[],endDate:c("DateTime").now(l),errorMessage:"",exportObjectID:"",exportObjectName:"",exportType:c("LeadGenLeadsExportType").FORM,hasLeadsCountDiscrepancy:false,hasPermission:false,isDownloadingNewLeads:false,lastDownloadTime:c("DateTime").now(l),lastDownloadUser:"",leadsCount:0,metadataLoadState:c("AdsLoadState_LEGACY").NOT_LOADED,organicLeadsCount:0,pageID:"",showLeadsSetupNotice:false,sourceType:c("LeadGenExportSource").PAGE_PUBLISHING_TOOLS,startDate:c("DateTime").now(l),timezoneID:l}));i=h&&h.prototype;function m(){h.apply(this,arguments)}j=babelHelpers.inherits(n,c("FluxReduceStore"));k=j&&j.prototype;n.prototype.getInitialState=function(){return new m()};n.prototype.reduce=function(o,p){__p&&__p();var q=p.action,r=q.downloadNewLeads!==null?q.downloadNewLeads:false,s=void 0,t=void 0;switch(q.type){case c("AdsLeadGenDownloadDialogUiDialogOpenDataAction").actionType:c("AdsDataAtom").waitFor([c("AdsLeadGenDownloadDialogLoggerStore").getDispatchToken()]);var u=new(c("DateTime"))(q.createdTime,o.timezoneID),v=c("DateTime").now(o.timezoneID),w=u.startOfDay(),x=v.startOfDay().addDays(1);this.$AdsLeadGenDownloadDialogUIStore1(q.exportObjectID,q.exportType,w,x,false);return o.merge({createdTime:u,dialogOpenTime:v,dialogStateBeforeResult:c("LeadDownloadDialogState").HIDDEN,downloadResults:[],endDate:x,exportObjectID:q.exportObjectID,exportObjectName:q.exportObjectName,exportType:q.exportType,metadataLoadState:c("AdsLoadState_LEGACY").LOADING,sourceType:q.sourceType,startDate:w});case c("AdsLeadGenDownloadDialogUiDialogDateChangedDataAction").actionType:this.$AdsLeadGenDownloadDialogUIStore1(o.exportObjectID,o.exportType,q.startDate,q.endDate,true);return o.merge({startDate:q.startDate,endDate:q.endDate,metadataLoadState:c("AdsLoadState_LEGACY").LOADING});case c("AdsLeadGenDownloadDialogUiDialogOpenDatePickerDataAction").actionType:this.$AdsLeadGenDownloadDialogUIStore1(o.exportObjectID,o.exportType,o.startDate,o.endDate,true);return o.merge({dialogState:c("LeadDownloadDialogState").DATE_PICKER_SHOWN,metadataLoadState:c("AdsLoadState_LEGACY").LOADING});case c("AdsLeadGenDownloadDialogUiDialogOpenSelectorDataAction").actionType:this.$AdsLeadGenDownloadDialogUIStore1(o.exportObjectID,o.exportType,o.lastDownloadTime,o.dialogOpenTime.startOfDay().addDays(1),true);return o.merge({dialogState:c("LeadDownloadDialogState").SELECTOR_SHOWN,metadataLoadState:c("AdsLoadState_LEGACY").LOADING});case c("AdsLeadGenDownloadDialogUIActionTypes").DIALOG_OPEN_PREPARE:this.$AdsLeadGenDownloadDialogUIStore2(q.exportObjectID,q.exportType,q.startDate,q.endDate,r);return o.merge({asyncProgress:0,dialogState:c("LeadDownloadDialogState").PREPARE_DIALOG_SHOWN,dialogStateBeforeResult:q.previousDialogState,exportObjectID:q.exportObjectID,exportType:q.exportType,isDownloadingNewLeads:r});case c("AdsLeadGenDownloadDialogUIActionTypes").DIALOG_OPEN_RESULT:c("AdsDataAtom").waitFor([c("AdsLeadGenDownloadDialogLoggerStore").getDispatchToken()]);t=[{exportObjectID:q.exportObjectID,exportType:q.exportType,formName:o.exportObjectName,leadsCount:o.leadsCount}];o=o.set("downloadResults",t);return o.merge({asyncProgress:0,dialogState:c("LeadDownloadDialogState").RESULT_SHOWN,dialogStateBeforeResult:q.previousDialogState,endDate:q.endDate,exportObjectID:q.exportObjectID,exportType:q.exportType,isDownloadingNewLeads:r,startDate:q.startDate});case c("AdsLeadGenDownloadDialogUiDialogMetadataDownloadedDataAction").actionType:s=new(c("DateTime"))(q.lastDownloadTime,o.timezoneID);o=o.merge({hasPermission:q.hasPermission,lastDownloadTime:s,lastDownloadUser:q.lastDownloadUser,metadataLoadState:c("AdsLoadState_LEGACY").LOADED,pageID:q.pageID,showLeadsSetupNotice:q.showLeadsSetupNotice});o=o.set("errorMessage",q.errorMessage);if(o.sourceType===c("LeadGenExportSource").PAGE_PUBLISHING_TOOLS||o.sourceType===c("LeadGenExportSource").AUTOMATED_ADS||o.sourceType===c("LeadGenExportSource").LWI){if(q.hasPermission){this.$AdsLeadGenDownloadDialogUIStore1(o.exportObjectID,o.exportType,o.lastDownloadTime,o.dialogOpenTime,true);o=o.merge({metadataLoadState:c("AdsLoadState_LEGACY").LOADING})}o=o.merge({dialogState:c("LeadDownloadDialogState").SELECTOR_SHOWN})}else o=o.merge({dialogState:c("LeadDownloadDialogState").DATE_PICKER_SHOWN});return o;case c("AdsLeadGenDownloadDialogUiDialogLeadsCountDownloadedDataAction").actionType:s=new(c("DateTime"))(q.lastDownloadTime,o.timezoneID);o=o.set("errorMessage",q.errorMessage);return o.merge({allowOrganicLeadRetrieval:q.allowOrganicLeadRetrieval,hasLeadsCountDiscrepancy:q.hasLeadsCountDiscrepancy,hasPermission:q.hasPermission,lastDownloadTime:s,lastDownloadUser:q.lastDownloadUser,leadsCount:q.leadsCount,metadataLoadState:c("AdsLoadState_LEGACY").LOADED,organicLeadsCount:q.organicLeadsCount,pageID:q.pageID,showLeadsSetupNotice:q.showLeadsSetupNotice});case c("AdsLeadGenDownloadDialogUiDialogCloseDataAction").actionType:return o.set("dialogState",c("LeadDownloadDialogState").HIDDEN);case c("AdsLeadGenDownloadDialogUiDialogBackFromResultDataAction").actionType:return o.merge({asyncProgress:0,dialogState:o.dialogStateBeforeResult,dialogStateBeforeResult:c("LeadDownloadDialogState").HIDDEN,downloadResults:[],isDownloadingNewLeads:false});case c("AdsLeadGenDownloadDialogUiDownloadStartedDataAction").actionType:c("AdsDataAtom").waitFor([c("AdsLeadGenDownloadDialogLoggerStore").getDispatchToken()]);this.$AdsLeadGenDownloadDialogUIStore3(o.sourceType,q.exportObjectID,q.exportType,q.startDate,q.endDate,o.dialogOpenTime,o.isDownloadingNewLeads,c("AdsLeadGenDownloadDialogLoggerStore").getSessionID(),q.fileType);return o.set("asyncProgress",0);case c("AdsLeadGenDownloadDialogUiDownloadAsyncProgressDataAction").actionType:return o.set("asyncProgress",q.progress);case c("AdsLeadGenDownloadDialogUiDownloadAsyncCompletedDataAction").actionType:c("AdsDataAtom").waitFor([c("AdsLeadGenDownloadDialogLoggerStore").getDispatchToken()]);if(o.dialogState!==c("LeadDownloadDialogState").HIDDEN){t=[{exportObjectID:q.reportRunID,exportType:c("LeadGenLeadsExportType").REPORT_RUN,formName:o.exportObjectName,leadsCount:o.leadsCount}];o=o.set("dialogState",c("LeadDownloadDialogState").RESULT_SHOWN).set("downloadResults",t)}return o;default:return o}};n.prototype.$AdsLeadGenDownloadDialogUIStore3=function(o,p,q,r,s,t,u,v){var w=arguments.length<=8||arguments[8]===undefined?c("LeadGenLeadsFileType").CSV:arguments[8],x={from_date:r.getUnixTimestampSeconds(),to_date:s.getUnixTimestampSeconds(),id:p,dialog_open_time:t.getUnixTimestampSeconds(),type:q,source_type:o,session_id:v,is_downloading_new_leads:u,file_type:w},y=c("XAdsLeadGenPOSTLeadsExportController").getURIBuilder().getURI();c("Form").post(y,x)};n.prototype.$AdsLeadGenDownloadDialogUIStore2=function(o,p,q,r,s){c("AdsLeadGenReportRunDataManager").startAsyncJob(o,p,q,r,s,c("AdsLeadGenDownloadDialogLoggerStore").getSessionID())};n.prototype.$AdsLeadGenDownloadDialogUIStore1=function(o,p,q,r,s){c("AdsLeadGenDownloadDialogDataManager").fetchMetadata(o,p,q,r,s,c("AdsLeadGenDownloadDialogLoggerStore").getSessionID())};function n(){j.apply(this,arguments)}f.exports=new n(c("AdsDataAtom"))}),null);
__d("LeadGenInlineCRMSource",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({CREATE_FLOW:"create_flow",ORDER_CONFIRMATION:"order_confirmation",PUBLISHING_TOOL:"publishing_tool"})}),null);
__d("AdsLeadGenLeadsRetrievalUiCrmStatusLoadedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"CRM_STATUS_LOADED");f.exports=h}),null);
__d("AdsLeadGenLeadsRetrievalUiDirectCrmIntegrationOauthTokenRetrievedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"DIRECT_CRM_INTEGRATION_OAUTH_TOKEN_RETRIEVED");f.exports=h}),null);
__d("AdsLeadGenLeadsRetrievalUiDisplayNoPermNoticeDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"DISPLAY_NO_PERM_NOTICE");f.exports=h}),null);
__d("AdsLeadGenLeadsRetrievalUiFeedbackSubmittedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"FEEDBACK_SUBMITTED");f.exports=h}),null);
__d("AdsLeadGenLeadsRetrievalUiIntegrationErrorDetectedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"INTEGRATION_ERROR_DETECTED");f.exports=h}),null);
__d("AdsLeadGenLeadsRetrievalUiIntegrationExistingDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"INTEGRATION_EXISTING");f.exports=h}),null);
__d("AdsLeadGenLeadsRetrievalUiIntegratorsDisplayedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"INTEGRATORS_DISPLAYED");f.exports=h}),null);
__d("AdsLeadGenLeadsRetrievalUiRequestedSupportClickedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"REQUESTED_SUPPORT_CLICKED");f.exports=h}),null);
__d("XAdsLeadGenInlineCRMDataGenController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/lead_gen/inline_crm_data/",{})}),null);
__d("XAdsLeadGenInlineCRMUserFeedbackPostController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/lead_gen/inline_crm_user_feedback/",{})}),null);
__d("XAdsLeadGenPageCRMIntegrationDataGenController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/lead_gen/page_crm_integration/",{page_id:{type:"FBID",required:true}})}),null);
__d("XAdsLeadGenPageCRMIntegrationPostController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/lead_gen/page_crm_integration_update/",{})}),null);
__d("XLeadGenDirectCRMIntegrationAuthController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/lead_gen/direct_crm_integration/auth/",{})}),null);
__d("LeadGenLeadsRetrievalDataManager",["AdsLeadGenLeadsRetrievalUiCrmStatusLoadedDataAction","AdsLeadGenLeadsRetrievalUiDirectCrmIntegrationOauthTokenRetrievedDataAction","AdsLeadGenLeadsRetrievalUiDisplayNoPermNoticeDataAction","AdsLeadGenLeadsRetrievalUiFeedbackSubmittedDataAction","AdsLeadGenLeadsRetrievalUiIntegrationErrorDetectedDataAction","AdsLeadGenLeadsRetrievalUiIntegrationExistingDataAction","AdsLeadGenLeadsRetrievalUiIntegratorsDisplayedDataAction","AdsLeadGenLeadsRetrievalUiRequestedSupportClickedDataAction","AsyncRequest","XAdsLeadGenInlineCRMDataGenController","XAdsLeadGenInlineCRMUserFeedbackPostController","XAdsLeadGenPageCRMIntegrationDataGenController","XAdsLeadGenPageCRMIntegrationPostController","XLeadGenDirectCRMIntegrationAuthController"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();h.prototype.fetchSupportingIntegrators=function(i,j,k,l){var m=c("XAdsLeadGenInlineCRMDataGenController").getURIBuilder().getURI(),n={crm_id:k,page_id:l};new(c("AsyncRequest"))().setURI(m).setData(n).setHandler(function(o){var p=o.payload,q=p.integrators,r=p.hasViaIntegrator,s=p.hasDirectCRM,t=p.hasDirectDeeplink,u=p.hasDirectIframe;c("AdsLeadGenLeadsRetrievalUiIntegratorsDisplayedDataAction").dispatch({crmName:i,crmLogo:j,crmID:k,hasDirectDeeplink:t,hasDirectCRM:s,hasDirectIframe:u,hasViaIntegrator:r,integrators:q})}).send()};h.prototype.fetchPageCRMIntegrationActivity=function(i,j){__p&&__p();var k=c("XAdsLeadGenPageCRMIntegrationDataGenController").getURIBuilder().setFBID("page_id",j).getURI();new(c("AsyncRequest"))().setURI(k).setHandler(function(l){__p&&__p();var m=l.payload,n=m.CRMActivities,o=m.integrationDetails,p=m.isPageAdmin,q=m.directCRMIntegrationAuths;if(!p)c("AdsLeadGenLeadsRetrievalUiDisplayNoPermNoticeDataAction").dispatch({adaccountID:i,pageID:j});else if(o.length!==0)c("AdsLeadGenLeadsRetrievalUiIntegrationExistingDataAction").dispatch({adaccountID:i,crmIntegrationActivity:n,pageID:j,existingIntegrations:o});else if(q&&q.length!==0){var r=m.directCRMIntegrationAuths[0];c("AdsLeadGenLeadsRetrievalUiDirectCrmIntegrationOauthTokenRetrievedDataAction").dispatch({pageID:j,authID:r.authID,crmProviderID:r.crmProviderID,crmProviderName:r.crmProviderName,crmProviderLogo:r.crmProviderLogo,thirdPartyAppID:String(r.thirdPartyAppID)})}else c("AdsLeadGenLeadsRetrievalUiCrmStatusLoadedDataAction").dispatch({adaccountID:i,pageID:j,crmIntegrationActivity:n})}).send()};h.prototype.updatePageCRMIntegrationStatus=function(i,j,k,l,m){var n={page_id:i,crm_provider_id:j,support_requested:k,direct_integrated:l,integrated_through:l?null:m},o=c("XAdsLeadGenPageCRMIntegrationPostController").getURIBuilder().getURI();new(c("AsyncRequest"))().setURI(o).setData(n).setHandler(function(p){var q=p.payload;if(q.success===true){if(k===true)c("AdsLeadGenLeadsRetrievalUiRequestedSupportClickedDataAction").dispatch({})}else if(q.success===false)c("AdsLeadGenLeadsRetrievalUiIntegrationErrorDetectedDataAction").dispatch({})}).send()};h.prototype.directCRMOAuthCodeReceived=function(i,j,k){new(c("AsyncRequest"))().setURI(c("XLeadGenDirectCRMIntegrationAuthController").getURIBuilder().getURI()).setData({app_id:i.app_id,code:i.code,page_id:j}).setHandler(function(l){var m=l.payload;if(m.success===true)k(m.authID,j,i.app_id)}).send()};h.prototype.createUserFeedbackEnt=function(i,j,k,l,m,n,o,p,q){var r={adaccount_id:i,page_id:j,form_id:k,crm_provider_id:l,cancel_reason_option:m.cancelReasonOption,cancel_reason_text:m.cancelReasonText,feedback_text:m.text,integration_state:n,integration_method:o,integrator_id:p},s=c("XAdsLeadGenInlineCRMUserFeedbackPostController").getURIBuilder().getURI();new(c("AsyncRequest"))().setURI(s).setData(r).setHandler(function(t){c("AdsLeadGenLeadsRetrievalUiFeedbackSubmittedDataAction").dispatch({isDirectIntegration:q})}).send()};function h(){}f.exports=new h()}),null);
__d("AdsLeadGenLeadsRetrievalUiContinueButtonClickedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"CONTINUE_BUTTON_CLICKED");f.exports=h}),null);
__d("AdsLeadGenLeadsRetrievalUiCrmSearchChangedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"CRM_SEARCH_CHANGED");f.exports=h}),null);
__d("AdsLeadGenLeadsRetrievalUiCrmSelectAttempedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"CRM_SELECT_ATTEMPED");f.exports=h}),null);
__d("AdsLeadGenLeadsRetrievalUiCrmStatusStartLoadingDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"CRM_STATUS_START_LOADING");f.exports=h}),null);
__d("AdsLeadGenLeadsRetrievalUiDirectCrmIntegrationAttemptedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"DIRECT_CRM_INTEGRATION_ATTEMPTED");f.exports=h}),null);
__d("AdsLeadGenLeadsRetrievalUiDirectIframeIntegrationAttemptedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"DIRECT_IFRAME_INTEGRATION_ATTEMPTED");f.exports=h}),null);
__d("AdsLeadGenLeadsRetrievalUiDirectIntegrationLinkClickedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"DIRECT_INTEGRATION_LINK_CLICKED");f.exports=h}),null);
__d("AdsLeadGenLeadsRetrievalUiFeedbackClickedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"FEEDBACK_CLICKED");f.exports=h}),null);
__d("AdsLeadGenLeadsRetrievalUiFeedbackDialogDismissedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"FEEDBACK_DIALOG_DISMISSED");f.exports=h}),null);
__d("AdsLeadGenLeadsRetrievalUiIntegrationCanceledDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"INTEGRATION_CANCELED");f.exports=h}),null);
__d("AdsLeadGenLeadsRetrievalUiIntegrationDetectedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"INTEGRATION_DETECTED");f.exports=h}),null);
__d("AdsLeadGenLeadsRetrievalUiIntegrationFinishedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"INTEGRATION_FINISHED");f.exports=h}),null);
__d("AdsLeadGenLeadsRetrievalUiIntegrationPausedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"INTEGRATION_PAUSED");f.exports=h}),null);
__d("AdsLeadGenLeadsRetrievalUiNoticeXoutedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"NOTICE_XOUTED");f.exports=h}),null);
__d("AdsLeadGenLeadsRetrievalUiThirdPartyIntegrationAttemptedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"THIRD_PARTY_INTEGRATION_ATTEMPTED");f.exports=h}),null);
__d("AdsLeadGenLeadsRetrievalUiXoutClickedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"XOUT_CLICKED");f.exports=h}),null);
__d("LeadGenLeadsRetrievalUIActions",["AdsLeadGenLeadsRetrievalUiContinueButtonClickedDataAction","AdsLeadGenLeadsRetrievalUiCrmSearchChangedDataAction","AdsLeadGenLeadsRetrievalUiCrmSelectAttempedDataAction","AdsLeadGenLeadsRetrievalUiCrmStatusStartLoadingDataAction","AdsLeadGenLeadsRetrievalUiDirectCrmIntegrationAttemptedDataAction","AdsLeadGenLeadsRetrievalUiDirectCrmIntegrationOauthTokenRetrievedDataAction","AdsLeadGenLeadsRetrievalUiDirectIframeIntegrationAttemptedDataAction","AdsLeadGenLeadsRetrievalUiDirectIntegrationLinkClickedDataAction","AdsLeadGenLeadsRetrievalUiFeedbackClickedDataAction","AdsLeadGenLeadsRetrievalUiFeedbackDialogDismissedDataAction","AdsLeadGenLeadsRetrievalUiIntegrationCanceledDataAction","AdsLeadGenLeadsRetrievalUiIntegrationDetectedDataAction","AdsLeadGenLeadsRetrievalUiIntegrationFinishedDataAction","AdsLeadGenLeadsRetrievalUiIntegrationPausedDataAction","AdsLeadGenLeadsRetrievalUiNoticeXoutedDataAction","AdsLeadGenLeadsRetrievalUiThirdPartyIntegrationAttemptedDataAction","AdsLeadGenLeadsRetrievalUiXoutClickedDataAction","LeadGenLeadsRetrievalDataManager"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h={attempCRMIntegration:function i(j){c("AdsLeadGenLeadsRetrievalUiThirdPartyIntegrationAttemptedDataAction").dispatch({attempttedIntegratorIndex:j})},attemptCRMProviderSelect:function i(j,k,l){c("AdsLeadGenLeadsRetrievalUiCrmSelectAttempedDataAction").dispatch({crmProviderName:j,crmProviderID:k,crmProviderLogo:l})},changeCRMProviderSearch:function i(j){c("AdsLeadGenLeadsRetrievalUiCrmSearchChangedDataAction").dispatch({crmProviderName:j})},clearCRMProviderSearch:function i(){c("AdsLeadGenLeadsRetrievalUiXoutClickedDataAction").dispatch({})},clickConnectButtonForPremiumIntegration:function i(j){c("AdsLeadGenLeadsRetrievalUiThirdPartyIntegrationAttemptedDataAction").dispatch({integrator:j})},clickConnectButtonForDirectIframeIntegration:function i(j){c("AdsLeadGenLeadsRetrievalUiDirectIframeIntegrationAttemptedDataAction").dispatch({integrator:j})},clickConnectButtonForDirectCRMIntegration:function i(j,k){c("AdsLeadGenLeadsRetrievalUiDirectCrmIntegrationAttemptedDataAction").dispatch({thirdPartyAppID:j,integratorName:k})},clickRequestSupport:function i(j,k){c("LeadGenLeadsRetrievalDataManager").updatePageCRMIntegrationStatus(j,k,true,false,null)},clickDirectDeepLinkIntegration:function i(j,k,l){c("AdsLeadGenLeadsRetrievalUiDirectIntegrationLinkClickedDataAction").dispatch({integratorID:j,directURL:l,integratorName:k})},clickFeedbackLink:function i(j){c("AdsLeadGenLeadsRetrievalUiFeedbackClickedDataAction").dispatch({isDirectIntegration:j})},closeFeedbackDialog:function i(j){c("AdsLeadGenLeadsRetrievalUiFeedbackDialogDismissedDataAction").dispatch({isDirectIntegration:j})},submitFeedback:function i(j,k,l,m,n,o,p,q,r){if(k&&k.isValid())c("LeadGenLeadsRetrievalDataManager").createUserFeedbackEnt(j,m,null,n,k,o,p,q,r);else c("AdsLeadGenLeadsRetrievalUiFeedbackDialogDismissedDataAction").dispatch({isDirectIntegration:r})},confirmCRMIntegration:function i(j,k,l,m){c("LeadGenLeadsRetrievalDataManager").updatePageCRMIntegrationStatus(j,k,false,m,l);c("AdsLeadGenLeadsRetrievalUiIntegrationFinishedDataAction").dispatch({})},detectedCRMIntegrationFromIframe:function i(){c("AdsLeadGenLeadsRetrievalUiIntegrationDetectedDataAction").dispatch({})},detectedIntegrationPauseFromIframe:function i(){c("AdsLeadGenLeadsRetrievalUiIntegrationPausedDataAction").dispatch({})},oAuthTokenRetrieved:function i(j,k,l){c("AdsLeadGenLeadsRetrievalUiDirectCrmIntegrationOauthTokenRetrievedDataAction").dispatch({authID:j,pageID:k,thirdPartyAppID:l})},cancelIframeCRMIntegration:function i(){c("AdsLeadGenLeadsRetrievalUiIntegrationCanceledDataAction").dispatch({isDirectIntegration:false})},directCRMOAuthCodeReceived:function i(j,k){c("LeadGenLeadsRetrievalDataManager").directCRMOAuthCodeReceived(j,k,h.oAuthTokenRetrieved)},cancelDirectCRMIntegration:function i(){c("AdsLeadGenLeadsRetrievalUiIntegrationCanceledDataAction").dispatch({isDirectIntegration:true})},showCRMIntegrationReminderDialog:function i(j){c("AdsLeadGenLeadsRetrievalUiContinueButtonClickedDataAction").dispatch({postCreationCallback:j})},startLoadingCRMIntegrationActivity:function i(j,k,l,m){c("AdsLeadGenLeadsRetrievalUiCrmStatusStartLoadingDataAction").dispatch({adaccountID:j,pageID:k,source:l,referrer:m})},xoutNotice:function i(){c("AdsLeadGenLeadsRetrievalUiNoticeXoutedDataAction").dispatch({})}};f.exports=h}),null);
__d("XAdsLeadGenInlineCRMTypeaheadController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/lead_gen/inline_crm_typeahead/",{})}),null);
__d("XLeadGenCRMInstructionEmailSharingTypeaheadController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/lead_gen/crm_setup_email/typeahead/",{page_id:{type:"String",required:true},value:{type:"String",defaultValue:""}})}),null);
__d("LeadGenInlineCRMUtils",["LeadGenInlineCRMSource","LeadGenLeadsRetrievalDataManager","LeadGenLeadsRetrievalUIActions","PageContentTabTabs","TokenizeUtil","WebAsyncSearchSource","XAdsLeadGenInlineCRMTypeaheadController","XLeadGenCRMInstructionEmailSharingTypeaheadController","XPagesManagerPublishingToolsController"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(){var l=c("XAdsLeadGenInlineCRMTypeaheadController").getURIBuilder().getURI();return new(c("WebAsyncSearchSource"))({queryRequests:[{uri:l}],matchFn:c("TokenizeUtil").isPrefixMatch})}function i(l,m){var n=c("XPagesManagerPublishingToolsController").getURIBuilder().setString("page_token",l).setString("section",c("PageContentTabTabs").LEAD_ADS_CRM_SETUP).setEnum("refSource",m).getURI();return n}function j(l,m){c("LeadGenLeadsRetrievalUIActions").startLoadingCRMIntegrationActivity(null,l,c("LeadGenInlineCRMSource").PUBLISHING_TOOL,m);c("LeadGenLeadsRetrievalDataManager").fetchPageCRMIntegrationActivity(null,l)}function k(l){var m=c("XLeadGenCRMInstructionEmailSharingTypeaheadController").getURIBuilder().setString("page_id",l);return new(c("WebAsyncSearchSource"))({queryRequests:[{uri:m.getURI()}]})}f.exports={constructLeadsSetupPermaLink:i,createPageAdminSearchSource:k,getCRMSearchSource:h,logInitialLoadInPublishingTool:j}}),null);
__d("BUIDateRangeComparePresets",["fbt","LocalDateInterval","PeriodUnit"],(function a(b,c,d,e,f,g,h){"use strict";var i={CUSTOM:{calculateInterval:function j(k){return k},text:h._("Custom"),value:"CUSTOM"},PREVIOUS_PERIOD:{calculateInterval:function j(k){var l=k.measure(c("PeriodUnit").day);return new(c("LocalDateInterval"))(k.start.subtractDays(l),k.start)},text:h._("Previous period"),value:"PREVIOUS_PERIOD"},PREVIOUS_MONTH:{calculateInterval:function j(k){return new(c("LocalDateInterval"))(k.start.subtractMonths(1),k.end.subtractMonths(1))},text:h._("Previous month"),value:"PREVIOUS_MONTH"},PREVIOUS_YEAR:{calculateInterval:function j(k){return new(c("LocalDateInterval"))(k.start.subtractYears(1),k.end.subtractYears(1))},text:h._("Previous year"),value:"PREVIOUS_YEAR"}};f.exports=i}),null);
__d("BUIDateRangeConsts",["keyMirrorRecursive"],(function a(b,c,d,e,f,g){"use strict";var h=c("keyMirrorRecursive")({INTERVAL:"INTERVAL",COMPARE_INTERVAL:"COMPARE_INTERVAL"}),i=c("keyMirrorRecursive")({START:"START",END:"END"});f.exports={BUIDateRangeIntervalType:h,BUIDateRangeIntervalPositionType:i}}),null);
__d("BUIDateRangeUtils",["fbt","invariant","LocalDate","LocalDateInterval"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j={text:h._("Custom"),value:"CUSTOM"},k={includeToday:false,interval:null,option:null},l=h._("Select Dates"),m={CUSTOM:j,calculateDefaultSelection:function o(p){__p&&__p();var q=p.value||p.defaultValue;if(!q)return k;var r=p.options,s=q.compareInterval,t=q.comparePreset,u=q.interval,v=q.preset,w=v&&r.find(function(y){return y.value===v});!v||w||v===j.value||i(0);if(w){var x=!!q.includeToday;return{includeToday:x,interval:m.calculateOptionInterval({includeToday:x,option:w,timezoneID:p.timezoneID}),option:w,compareInterval:s,comparePreset:t}}return u?m.calculateSelectedOption({dateRestraints:p.dateRestraints,defaultIncludeToday:p.defaultIncludeToday,options:p.options,timezoneID:p.timezoneID,value:u,compareInterval:s,comparePreset:t}):k},verbose:function o(p,q){if(!p)return l;var r=n(p.start,q),s=n(p.end.subtractDays(1),q);if(r===s)return h._("{date}",[h.param("date",r)]);return h._("{startDate} \u2013 {endDate}",[h.param("startDate",r),h.param("endDate",s)])},friendly:function o(p){var q=p.option;return q?q.text:l},getValidOptions:function o(p){var q=p.dateRestraints,r=p.options,s=p.timezoneID;if(!q)return r;var t=c("LocalDate").today(s);return r.filter(function(u){var v=u.calculateInterval(t);return m.isValidDate(v.start,q)&&m.isValidDate(v.end.subtractDays(1),q)})},isValidDate:function o(p,q){return!q||q.every(function(r){return r(p)})},getValidSelectionOption:function o(p,q){var r=p&&p.option;if(!r)return null;return q.find(function(s){return s.value===r.value})?r:j},calculateOptionInterval:function o(p){var q=p.includeToday,r=p.option,s=p.timezoneID,t=p.compareInterval,u=p.value;if(r.value===j.value)return t&&u?u:null;var v=c("LocalDate").today(s);return q&&r.calculateIntervalIncludingToday?r.calculateIntervalIncludingToday(v):r.calculateInterval(v)},calculateSelectedOption:function o(p){__p&&__p();var q,r=p.defaultIncludeToday,s=p.options,t=p.timezoneID,u=p.value;if(!u)return k;var v=s&&m.getValidOptions(p),w=false,x=void 0;if(v)(function(){var y=c("LocalDate").today(t),z=v.find(function(x){return x.calculateInterval(y).equals(u)}),A=v.find(function(x){return x.calculateIntervalIncludingToday&&x.calculateIntervalIncludingToday(y).equals(u)});if((r||!z)&&A){x=A;w=true}else x=z})();return{compareInterval:p.compareInterval,comparePreset:p.comparePreset,includeToday:w,interval:u,option:x||j}},rangeSelectionToValue:function o(p){return{includeToday:p.includeToday,interval:p.interval?p.interval:undefined,preset:p.option?p.option.value:undefined,compareInterval:p.compareInterval,comparePreset:p.comparePreset}},isSameInterval:function o(p,q){if(p===q)return true;if(!p||!q)return false;return p.equals(q)},isSameSelection:function o(p,q){return p.option===q.option&&p.includeToday===q.includeToday&&m.isSameInterval(p.interval,q.interval)&&m.isSameInterval(p.compareInterval,q.compareInterval)},expandInterval:function o(p,q){return new(c("LocalDateInterval"))(p.start.min(q),p.end.max(q.addDays(1)))},setIntervalStart:function o(p,q){if(q.isBefore(p.end))return c("LocalDateInterval").create(q,p.end);return m.createSingleDayInterval(q)},setIntervalEnd:function o(p,q){var r=q.addDays(1);if(r.isAfter(p.start))return c("LocalDateInterval").create(p.start,r);return m.expandInterval(p,q)},createInterval:function o(p,q){if(p.equals(q))return new(c("LocalDateInterval"))(p,p.addDays(1));return new(c("LocalDateInterval"))(p.min(q),p.max(q))},createSingleDayInterval:function o(p){return new(c("LocalDateInterval"))(p,p.addDays(1))},createCombinedLabel:function o(p,q){return h._("{preset}: {dateRange}",[h.param("preset",p),h.param("dateRange",q)])}};function n(o,p){return o.format(p||"M j, Y")}f.exports=m}),null);
__d("BUIDateRangeCompareUtils",["invariant","BUIDateRangeComparePresets","BUIDateRangeUtils","Locale","BUIDateRangeConsts"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=c("BUIDateRangeUtils").setIntervalStart,j=c("BUIDateRangeUtils").setIntervalEnd,k=c("BUIDateRangeUtils").CUSTOM,l=100,m=c("BUIDateRangeConsts").BUIDateRangeIntervalType,n=m.INTERVAL,o=m.COMPARE_INTERVAL,p=c("BUIDateRangeConsts").BUIDateRangeIntervalPositionType,q=p.START,r=p.END,s={COMPARE_LABEL_SINGLE_DAY_WIDTH:l,calculateDateRangeOnClick:function t(u){__p&&__p();var v=u.date,w=u.selection,x=u.flags,y=x.isOddClick,z=x.shouldSetCompareInterval,A=w.interval,B=w.compareInterval,C=w.comparePreset;A&&B||h(0);if(!z){A=y?i(A,v):j(A,v);z=!y;if(!y&&C&&C!==k.value)z=false}else{B=y?i(B,v):j(B,v);z=y;C=k.value}if(C&&C!==k.value){var D=c("BUIDateRangeComparePresets")[C];if(A)B=D.calculateInterval(A)}return{compareInterval:B,comparePreset:C,interval:A,shouldSetCompareInterval:z}},getCompareInterval:function t(u,v){var w=c("BUIDateRangeComparePresets")[v];if(w)return w.calculateInterval(u);return null},getOverlap:function t(u,v){if(!u||!v||u.start.isAfterOrEqual(v.end.subtractDays(1))||u.end.subtractDays(1).isBeforeOrEqual(v.start))return null;if(u.start.isBefore(v.start))return c("BUIDateRangeUtils").createInterval(v.start,v.end.min(u.end).subtractDays(1));else return c("BUIDateRangeUtils").createInterval(u.start,u.end.min(v.end).subtractDays(1))},getBorderRadius:function t(u){var v=u.getDayOfWeek();if(v===0)return c("Locale").isRTL()?"0 3px 3px 0":"3px 0 0 3px";else if(v===6)return c("Locale").isRTL()?"3px 0 0 3px":"0 3px 3px 0";return null},getCompareHeaderHighlightState:function t(u,v,w){if(!w&&!v&&u)return null;return{intervalType:v?o:n,position:u?q:r}}};f.exports=s}),null);
__d("BUIDateRangeMenuOption.react",["cx","BUIComponent","Focus","React","ReactDOM","RTLKeys"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("BUIComponent"));j=i&&i.prototype;function l(){__p&&__p();var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.$BUIDateRangeMenuOption2=function(r){r.preventDefault();c("Focus").setWithoutOutline(c("ReactDOM").findDOMNode(this));this.$BUIDateRangeMenuOption1()}.bind(this),this.$BUIDateRangeMenuOption3=function(r){__p&&__p();switch(r.keyCode){case c("RTLKeys").RETURN:case c("RTLKeys").SPACE:r.preventDefault();this.$BUIDateRangeMenuOption1();break;case c("RTLKeys").UP:case c("RTLKeys").getLeft():r.preventDefault();this.props.onMove&&this.props.onMove(this.props.index-1);break;case c("RTLKeys").DOWN:case c("RTLKeys").getRight():r.preventDefault();this.props.onMove&&this.props.onMove(this.props.index+1);break}}.bind(this),n}l.prototype.$BUIDateRangeMenuOption1=function(){if(this.props.onToggle&&!this.props.disabled)this.props.onToggle(this.props.selected?null:this.props.value)};l.prototype.render=function(){__p&&__p();var m=Object.assign({},this.props);delete m.index;delete m.onMove;delete m.onToggle;delete m.selected;delete m.tabIndex;delete m.text;delete m.value;delete m.disabled;return c("React").createElement("li",babelHelpers["extends"]({},m,{"aria-checked":this.props.selected,"aria-disabled":this.props.disabled,className:(this.props.disabled?"_3b65":"")+(!this.props.disabled?" _rce":"")+" _2pi9 _2pi2",onKeyDown:this.$BUIDateRangeMenuOption3,onMouseDown:this.$BUIDateRangeMenuOption2,role:"menuitemradio",tabIndex:this.props.tabIndex}),this.props.text)};l.propTypes={disabled:k.bool,index:k.number.isRequired,selected:k.bool,tabIndex:k.number,text:k.string.isRequired,value:k.string.isRequired,onMove:k.func,onToggle:k.func};f.exports=l}),null);
__d("BUIDateRangeMenu.react",["cx","fbt","invariant","BUIComponent","BUIDateRangeMenuOption.react","Focus","Map","React","ReactDOM"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("React").PropTypes;k=babelHelpers.inherits(n,c("BUIComponent"));l=k&&k.prototype;function n(o){l.constructor.call(this,o);this.$BUIDateRangeMenu5=function(p){p=n.$BUIDateRangeMenu3(p,0,this.props.options.length-1);var q=c("ReactDOM").findDOMNode(this.$BUIDateRangeMenu1.get(p));q&&c("Focus").set(q)}.bind(this);n.$BUIDateRangeMenu2(o);this.$BUIDateRangeMenu1=new(c("Map"))()}n.prototype.componentWillReceiveProps=function(o){n.$BUIDateRangeMenu2(o)};n.$BUIDateRangeMenu2=function(o){!o.value||o.options.find(function(p){return p.value===o.value})||j(0)};n.$BUIDateRangeMenu3=function(o,p,q){return o>q?p:o<p?q:o};n.prototype.$BUIDateRangeMenu4=function(o,p,q){this.$BUIDateRangeMenu1.set(o,p);if(!this.props.setupFocusRef)return;if(q)this.props.setupFocusRef(p);else if(!this.props.value&&o===0)this.props.setupFocusRef(p)};n.prototype.render=function(){var o=(this.props.disabledOptions||[]).reduce(function(p,q){p[q.value]=true;return p},{});return c("React").createElement("ul",{"aria-label":i._("Date range selection menu"),"aria-orientation":"vertical",className:"_rcb",role:"menu"},this.props.options.map(function(p,q){var r=p.value===this.props.value,s=r&&this.props.selectedProps||{};return c("React").createElement(c("BUIDateRangeMenuOption.react"),babelHelpers["extends"]({},s,{index:q,key:p.value,disabled:!!o[p.value],onMove:this.$BUIDateRangeMenu5,onToggle:this.props.onChange,ref:function(t){this.$BUIDateRangeMenu4(q,t,r)}.bind(this),selected:r,tabIndex:r||!this.props.value&&q===0?0:-1,text:p.text,value:p.value}))}.bind(this)))};n.propTypes={disabledOptions:m.arrayOf(m.shape({text:m.string.isRequired,value:m.string.isRequired})),options:m.arrayOf(m.shape({text:m.string.isRequired,value:m.string.isRequired})).isRequired,selectedProps:m.object,setupFocusRef:m.func,value:m.string,onChange:m.func};f.exports=n}),null);
__d("BUITimezoneLabel.react",["cx","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;l.prototype.render=function(){if(!this.props.value)return null;return c("React").createElement("div",{className:"_5wr"},this.props.value)};function l(){i.apply(this,arguments)}l.propTypes={value:k.string};f.exports=l}),null);
__d("BUIDateRangeLayer.react",["cx","cssVar","fbt","BUICalendarPager.react","BUIComponent","BUIDateRangeMenu.react","BUIDateRangePresets","BUIDateRangeUtils","BUIDateRangeCompareUtils","BUITimezoneLabel.react","BootloadOnRender.react","emptyFunction","getByPath","InputLabel_DEPRECATED.react","InputLabelLabel_DEPRECATED.react","JSResource","LazyComponent.react","LocalDate","LocalDateInterval","React","SUIBusinessTheme","SUIButton.react","SUIHorizontalLayout.react","SUISimplePopover.react","SUIText.react","XUICheckboxInput.react","gkx","joinClasses","uniqueID","BUIDateRangeConsts"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("BUIDateRangeConsts").BUIDateRangeIntervalType,n=m.INTERVAL,o=m.COMPARE_INTERVAL,p=c("BUIDateRangeConsts").BUIDateRangeIntervalPositionType,q=p.START,r=p.END,s=c("React").PropTypes,t=c("BUIDateRangeUtils").CUSTOM,u={focusDate:null,isOddClick:true,selection:null,shouldSetCompareInterval:false,compareHeaderHighlightState:null,hoveredDate:null},v=c("gkx")("AT6MLqTalXmoYRasRtUE2_qWpjX-0haKPHmwIPKlWoEvXMpTce2lbCBrOlLT8HDC4GdG6yTY3R3VdOReR9oADhQD");k=babelHelpers.inherits(w,c("BUIComponent"));l=k&&k.prototype;function w(D){__p&&__p();l.constructor.call(this,D);this.$BUIDateRangeLayer3=function(E){__p&&__p();var F=E!==t.value?this.props.options.find(function(M){return M.value===E}):babelHelpers["extends"]({calculateInterval:function M(N){return c("emptyFunction").thatReturnsNull}},t),G=F&&"calculateIntervalIncludingToday"in F?this.props.defaultIncludeToday:false,H=F?c("BUIDateRangeUtils").calculateOptionInterval({compareInterval:c("getByPath")(this.state,["selection","compareInterval"],undefined),includeToday:G,option:F,timezoneID:this.props.timezoneID,value:c("getByPath")(this.state,["selection","interval"],undefined)}):null,I={includeToday:G,interval:H,option:E&&(F||t)},J=this.$BUIDateRangeLayer4(this.state),K=J.compareInterval,L=J.comparePreset;if(H&&this.props.enableComparison&&L){K=c("BUIDateRangeCompareUtils").getCompareInterval(H,L);if(K&&H.start.isAfterOrEqual(K.end))I=babelHelpers["extends"]({},I,{compareInterval:K,comparePreset:L})}this.setState(function(M){return{focusDate:H?H.start:M.focusDate,isOddClick:true,selection:I,compareHeaderHighlightState:E===t.value?{intervalType:n,position:q}:null}},function(){var M=v&&!K&&E&&E!==t.value;if(this.props.hideCalendar||M)this.$BUIDateRangeLayer5();this.props.onUnconfirmedRangeSelection&&this.props.onUnconfirmedRangeSelection(I)}.bind(this))}.bind(this);this.$BUIDateRangeLayer8=function(E){this.setState({focusDate:E})}.bind(this);this.$BUIDateRangeLayer9=function(E){__p&&__p();this.setState(function(F){__p&&__p();var G=this.$BUIDateRangeLayer4(F),H=G.interval,I=G.compareInterval,J=G.comparePreset,K=F.isOddClick,L=F.shouldSetCompareInterval;if(H&&I){var M=c("BUIDateRangeCompareUtils").calculateDateRangeOnClick({date:E,selection:G,flags:{isOddClick:K,shouldSetCompareInterval:L}});L=M.shouldSetCompareInterval;I=M.compareInterval;J=M.comparePreset;H=M.interval}else if(H&&H.start.equals(E)&&H.end.equals(E.addDays(1)))H=null;else if(!H||F.isOddClick)H=c("BUIDateRangeUtils").createSingleDayInterval(E);else H=c("BUIDateRangeUtils").expandInterval(H,E);var N=c("BUIDateRangeUtils").calculateSelectedOption(babelHelpers["extends"]({},this.props,{value:H,compareInterval:I,comparePreset:J}));if(this.props.onUnconfirmedRangeSelection)this.props.onUnconfirmedRangeSelection(N);K=!H||!F.isOddClick;return{focusDate:this.$BUIDateRangeLayer6(F),isOddClick:K,selection:N,shouldSetCompareInterval:L,compareHeaderHighlightState:c("BUIDateRangeCompareUtils").getCompareHeaderHighlightState(K,L)}}.bind(this))}.bind(this);this.$BUIDateRangeLayer5=function(){__p&&__p();var E=this.state.selection,F=c("BUIDateRangeUtils").calculateDefaultSelection(this.props);this.$BUIDateRangeLayer2();if(this.props.onChange&&E&&!c("BUIDateRangeUtils").isSameSelection(E,F)){var G=E.includeToday,H=E.interval,I=E.option,J=void 0;if(I&&I!==t)J={includeToday:G&&"calculateIntervalIncludingToday"in I,interval:H,preset:I.value};else J={interval:H};if(E.comparePreset||E.compareInterval)J=babelHelpers["extends"]({},J,{comparePreset:E.comparePreset,compareInterval:E.compareInterval});this.props.onChange(J)}this.props.onConfirm&&this.props.onConfirm()}.bind(this);this.$BUIDateRangeLayer10=function(){this.$BUIDateRangeLayer2();this.props.onCancel&&this.props.onCancel()}.bind(this);this.$BUIDateRangeLayer11=function(E){this.setState(function(F){var G=this.$BUIDateRangeLayer4(F);if(!G.option||!G.option.calculateIntervalIncludingToday)return null;var H=G.comparePreset,I=G.compareInterval,J=G.option,K=!G.includeToday,L=c("BUIDateRangeUtils").calculateOptionInterval({includeToday:K,option:J,timezoneID:this.props.timezoneID});I=H&&L?c("BUIDateRangeCompareUtils").getCompareInterval(L,H):I;return{selection:{comparePreset:H,compareInterval:I,includeToday:K,interval:L,option:J}}}.bind(this))}.bind(this);this.$BUIDateRangeLayer12=function(E,F,G,H){var I=E.compareInterval,J=E.comparePreset,K=E.interval,L=this.$BUIDateRangeLayer4(this.state);if(J&&J!==t.value&&K)I=c("BUIDateRangeCompareUtils").getCompareInterval(K,J);var M=c("BUIDateRangeUtils").calculateSelectedOption(babelHelpers["extends"]({},this.props,{compareInterval:I||undefined,comparePreset:E.comparePreset,value:E.interval})),N=J===t.value&&G===n&&H===r||F&&G===o&&H===q||L.comparePreset!==t.value&&J===t.value,O=F?!this.state.isOddClick:this.state.isOddClick;if(L.comparePreset!==t.value&&J===t.value)O=true;this.setState({focusDate:E.interval?E.interval.start:this.state.focusDate,isOddClick:O,selection:M,shouldSetCompareInterval:N,compareHeaderHighlightState:c("BUIDateRangeCompareUtils").getCompareHeaderHighlightState(O,N)})}.bind(this);this.$BUIDateRangeLayer13=function(E){this.setState({shouldSetCompareInterval:E.intervalType===o,isOddClick:E.position===q,compareHeaderHighlightState:c("BUIDateRangeCompareUtils").getCompareHeaderHighlightState(E.position===q,E.intervalType===o,true)})}.bind(this);this.$BUIDateRangeLayer15=function(E){this.setState({hoveredDate:E})}.bind(this);this.$BUIDateRangeLayer16=function(E){this.setState({hoveredDate:null})}.bind(this);this.state=u;this.$BUIDateRangeLayer1=c("uniqueID")()}w.prototype.componentWillReceiveProps=function(D){if(this.props.shown&&!D.shown)this.$BUIDateRangeLayer2()};w.prototype.$BUIDateRangeLayer6=function(D){if(D.focusDate)return D.focusDate;var E=this.$BUIDateRangeLayer4(D),F=E.interval;return F?F.start:this.$BUIDateRangeLayer7()};w.prototype.$BUIDateRangeLayer2=function(){this.setState(u)};w.prototype.$BUIDateRangeLayer7=function(){return c("LocalDate").today(this.props.timezoneID)};w.prototype.$BUIDateRangeLayer4=function(D){return D.selection||c("BUIDateRangeUtils").calculateDefaultSelection(this.props)};w.prototype.$BUIDateRangeLayer14=function(){__p&&__p();var D=[];if(this.state.selection&&this.state.selection.interval&&this.state.hoveredDate&&!this.props.enableComparison&&!this.state.isOddClick){var E=this.state.selection.interval.start,F=this.state.hoveredDate,G=E,H=F;if(G.isAfter(F)){G=F;H=E}for(var I=G.addDays(1);I.isBefore(H);I=I.addDays(1))D.push(I)}return D};w.prototype.render=function(){var D=this.$BUIDateRangeLayer4(this.state),E=this.$BUIDateRangeLayer1+"-selectedLabel",F=c("BUIDateRangeUtils").getValidOptions(this.props),G=D.compareInterval?F.filter(function(H){return H.disabledInCompareMode}):[],H=c("BUIDateRangeUtils").getValidSelectionOption(D,F),I=!!(H&&H.disabledInCompareMode);return c("React").createElement("div",{"aria-label":j._("Date range selection dialog"),className:c("joinClasses")("_4iqg",this.props.className),role:"dialog"},c("React").createElement("div",{className:"_4iqr"+(v?" _665i":"")},c("React").createElement(x,{disabledOptions:G,hideCalendar:this.props.hideCalendar,onChange:this.$BUIDateRangeLayer3,options:F,selectedProps:{"aria-describedby":E},setupFocusRef:this.props.setupFocusRef,timezoneID:this.props.timezoneID,value:H&&H.value}),c("React").createElement(B,{compareDisabled:I,dateRestraints:this.props.dateRestraints,enableComparison:this.props.enableComparison,focusDate:this.$BUIDateRangeLayer6(this.state),hide:this.props.hideCalendar,highlightedDates:this.props.highlightedDates,hoveredDates:this.$BUIDateRangeLayer14(),inlineNux:this.props.inlineNux,limitPagerToRestraints:this.props.limitPagerToRestraints,selection:D,timezoneID:this.props.timezoneID,compareHeaderHighlightState:this.state.compareHeaderHighlightState,onCompareHeaderDateChange:this.$BUIDateRangeLayer12,onCompareHeaderDateFocus:this.$BUIDateRangeLayer13,onFocusDateChange:this.$BUIDateRangeLayer8,onMouseOverDay:this.$BUIDateRangeLayer15,onMouseOutDay:this.$BUIDateRangeLayer16,onSelectDateChange:this.$BUIDateRangeLayer9})),c("React").createElement(y,{enableComparison:this.props.enableComparison,hide:this.props.hideCalendar,hideIncludeToday:!F.length||!H||!("calculateIntervalIncludingToday"in H),selection:D,selectedLabelID:E,timezoneLabel:this.props.timezoneLabel,updateButtonLabel:this.props.updateButtonLabel,onCancel:this.$BUIDateRangeLayer10,onConfirm:this.$BUIDateRangeLayer5,onIncludeTodayToggle:this.$BUIDateRangeLayer11}))};w.propTypes={dateRestraints:s.arrayOf(s.func),defaultIncludeToday:s.bool.isRequired,defaultValue:s.shape({compareInterval:s.instanceOf(c("LocalDateInterval")),includeToday:s.bool,interval:s.instanceOf(c("LocalDateInterval")),preset:s.string}),enableComparison:s.bool,hideCalendar:s.bool,inlineNux:s.node,limitPagerToRestraints:s.bool,onCancel:s.func,onChange:s.func,onConfirm:s.func,onUnconfirmedRangeSelection:s.func,options:s.arrayOf(s.shape({calculateInterval:s.func.isRequired,calculateIntervalIncludingToday:s.func,text:s.any.isRequired,value:s.string.isRequired,disabledInCompareMode:s.bool})).isRequired,setupFocusRef:s.func,shown:s.bool,timezoneID:s.number.isRequired,timezoneLabel:s.string};w.defaultProps={defaultIncludeToday:false,enableComparison:false,hideCalendar:false,highlightedDates:[],options:[c("BUIDateRangePresets").TODAY,c("BUIDateRangePresets").YESTERDAY,c("BUIDateRangePresets").LAST_7_DAYS,c("BUIDateRangePresets").LAST_14_DAYS,c("BUIDateRangePresets").LAST_28_DAYS,c("BUIDateRangePresets").THIS_MONTH,c("BUIDateRangePresets").THIS_QUARTER]};function x(D){if(!D.options.length)return null;return c("React").createElement("div",{className:(!D.hideCalendar?"_2pi5":"")+" _4iqs"},c("React").createElement(c("BUIDateRangeMenu.react"),{disabledOptions:D.disabledOptions,onChange:D.onChange,options:D.hideCalendar?D.options:D.options.concat(t),selectedProps:D.selectedProps,setupFocusRef:D.setupFocusRef,value:D.value}))}function y(D){if(D.hide)return null;var E=D.updateButtonLabel||j._("Update");return c("React").createElement("div",{className:"_4iqv clearfix _2pi9 _2pi3"},c("React").createElement(A,D),c("React").createElement("div",{className:"_4iqw"},c("React").createElement(c("SUIHorizontalLayout.react"),{theme:c("SUIBusinessTheme")},c("React").createElement(z,D),c("React").createElement(c("SUIButton.react"),{height:"short",label:j._("Cancel"),onClick:D.onCancel,theme:c("SUIBusinessTheme"),type:"button"}),c("React").createElement(c("SUIButton.react"),{height:"short",label:E,theme:c("SUIBusinessTheme"),type:"button",use:"confirm",onClick:D.onConfirm}))))}function z(D){var E=D.selectedLabelID,F=D.selection,G=F.interval,H=F.compareInterval,I=D.timezoneLabel,J=D.enableComparison&&H?c("React").createElement("div",{className:"_4p43"},I):c("React").createElement("div",null,c("BUIDateRangeUtils").verbose(G),c("React").createElement(c("BUITimezoneLabel.react"),{value:I}));return c("React").createElement("div",{"aria-atomic":true,"aria-live":"polite","aria-readonly":true,className:(!G?"_4iqy":"")+" _4iqx",id:E,role:"textbox"},J)}function A(D){if(D.hideIncludeToday)return null;return c("React").createElement("div",{className:"_4pxh"},c("React").createElement(c("InputLabel_DEPRECATED.react"),null,c("React").createElement(c("XUICheckboxInput.react"),{checked:D.selection.includeToday,onChange:D.onIncludeTodayToggle}),c("React").createElement(c("InputLabelLabel_DEPRECATED.react"),{className:"_4pxi"},j._("Start with today"))),c("React").createElement(c("SUISimplePopover.react"),{alignment:"center",content:c("React").createElement("div",null,c("React").createElement(c("SUIText.react"),{display:"block",size:"medium_DEPRECATED",theme:c("SUIBusinessTheme"),weight:"bold"},j._("Data may be incomplete")),c("React").createElement(c("SUIText.react"),{color:"secondary",display:"block",style:{marginTop:"8px"},theme:c("SUIBusinessTheme")},j._("If you start with today as part of your date selection, your comparison may be based on incomplete results."))),contentWidthUseSparingly:288,position:"above",theme:c("SUIBusinessTheme")}))}function B(D){__p&&__p();var E=D.hide,F=D.enableComparison,G=D.selection,H=G.interval,I=G.compareInterval;if(E)return null;var J=c("BUIDateRangeCompareUtils").getOverlap(H,I),K=void 0;if(I&&F)K=function K(L,M){__p&&__p();if(J&&J.start.isBeforeOrEqual(L)&&J.end.isAfterOrEqual(L)){if(I.start.equals(L)||I.end.subtractDays(1).equals(L))return{backgroundColor:"#929598",borderRadius:"2px",color:"#ffffff"};return{background:"#80B8F0",borderRadius:c("BUIDateRangeCompareUtils").getBorderRadius(L)}}if(I.contains(L)){if(I.start.equals(L)||I.end.subtractDays(1).equals(L))return{backgroundColor:"#929598",borderRadius:"2px",color:"#ffffff"};return{background:"#E9EAEB",borderRadius:c("BUIDateRangeCompareUtils").getBorderRadius(L)}}else if(H&&H.contains(L))return{background:"#CBE2F9"};return{}};return c("React").createElement("div",{className:(F?"_2pi3":"")+(!F?" _2pi5":"")+" _4iqu"},c("React").createElement(C,{disabled:D.compareDisabled,enableComparison:F,timezoneID:D.timezoneID,inlineNux:D.inlineNux,value:D.selection,onChange:D.onCompareHeaderDateChange,onDateFocus:D.onCompareHeaderDateFocus,highlightState:D.compareHeaderHighlightState}),c("React").createElement("div",{className:"_2pib"},c("React").createElement(c("BUICalendarPager.react"),babelHelpers["extends"]({},D,{dayInnerFormatter:K,allowDuplicateSelection:true,allowVariableRowCount:false,onMouseOverDay:D.onMouseOverDay,count:2,rangeSelectDate:H?H.end.subtractDays(1):undefined,selectDate:H?H.start:undefined}))))}function C(D){if(!D.enableComparison)return null;return c("React").createElement("div",{className:"_2pib _3-95 _4p44"},c("React").createElement(c("BootloadOnRender.react"),{component:c("React").createElement(c("LazyComponent.react"),D),loader:c("JSResource")("BUIDateRangeCompareHeader.react").__setRef("BUIDateRangeLayer.react"),placeholder:c("React").createElement("span",null)}))}f.exports=w}),null);
__d("LeadDownloadDialogNotice.react",["cx","fbt","LeadAdsFrontendConfig","LeadGenExportSource","LeadGenInlineCRMUtils","Link.react","PublishingToolsSource","React","ServerHTML.react","SUIBusinessTheme","SUINotice.react","SUIText.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").Component;j=babelHelpers.inherits(m,l);k=j&&j.prototype;m.prototype.render=function(){if(this.props.showLeadsSetupNotice&&this.props.hasPermission){var n=c("LeadGenInlineCRMUtils").constructLeadsSetupPermaLink(this.props.pageID,this.$LeadDownloadDialogNotice1(this.props.sourceType));return c("React").createElement("div",{className:"_3-96"},c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:"information"},c("React").createElement(c("SUIText.react"),{weight:"bold"},i._("Automatically retrieve your leads")),c("React").createElement("div",null,i._("Connect to a CRM to access your leads instantly, making it easier for you to contact potential customers quickly.")," ",c("React").createElement(c("Link.react"),{href:n,target:"_blank"},i._("Connect your CRM.")))))}else if(!this.props.hasPermission){var o=c("LeadAdsFrontendConfig").leadDownloadHelpCenterLink,p=this.props.errorMessage instanceof Object?c("React").createElement(c("ServerHTML.react"),{blob:this.props.errorMessage}):c("React").createElement(c("SUIText.react"),{display:"block",weight:"bold"},this.props.errorMessage.toString());return c("React").createElement("div",{className:"_3-96"},c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:"error"},p,c("React").createElement(c("SUIText.react"),{display:"block"},i._("You can find more help on help center.")," ",c("React").createElement(c("Link.react"),{href:o,target:"_blank"},i._("Learn more.")))))}return null};m.prototype.$LeadDownloadDialogNotice1=function(n){switch(n){case c("LeadGenExportSource").ADS_MANAGER:return c("PublishingToolsSource").LEAD_GEN_DOWNLOAD_DIALOG_NAM;case c("LeadGenExportSource").ADS_MANAGER_LINK_SECTION:return c("PublishingToolsSource").LEAD_GEN_DOWNLOAD_DIALOG_NAM_LINK;case c("LeadGenExportSource").PAGE_PUBLISHING_TOOLS:return c("PublishingToolsSource").LEAD_GEN_DOWNLOAD_DIALOG_FORMS_LIB;case c("LeadGenExportSource").POWER_EDITOR_LINK_SECTION:return c("PublishingToolsSource").LEAD_GEN_DOWNLOAD_DIALOG_PE_LINK;case c("LeadGenExportSource").POWER_EDITOR_INSIGHTS:return c("PublishingToolsSource").LEAD_GEN_DOWNLOAD_DIALOG_PE;default:return c("PublishingToolsSource").LEAD_GEN_DOWNLOAD_DIALOG_OTHER}};function m(){j.apply(this,arguments)}f.exports=m}),null);
__d("LeadDownloadDialogSessionInfo.react",["cx","fbt","React"],(function a(b,c,d,e,f,g,h,i){"use strict";var j,k;j=babelHelpers.inherits(l,c("React").PureComponent);k=j&&j.prototype;l.prototype.render=function(){return c("React").createElement("div",{className:"_b9z"},i._("Session ID: {session ID value}",[i.param("session ID value",this.props.sessionID)]))};function l(){j.apply(this,arguments)}f.exports=l}),null);
__d("LeadDownloadLeadsBreakdown.react",["cx","fbt","ads-lib-formatters","React"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PureComponent,m=c("ads-lib-formatters").createIntlNumberFormatter();j=babelHelpers.inherits(n,l);k=j&&j.prototype;n.prototype.render=function(){var o=this.props.allowOrganicLeadRetrieval?i._("Yes"):i._("No"),p=[{label:i._("Allow retrieval of untargeted lead"),value:o},{label:i._("Targeted"),value:m(this.props.targeted)},{label:i._("Untargeted"),value:m(this.props.untargeted)},{label:i._("Downloading"),value:m(this.props.downloading)}],q=p.map(function(r,s){return c("React").createElement("div",{className:"_5jo3",key:s},c("React").createElement("div",{className:"_5jo4"},r.label),c("React").createElement("div",{className:"_5jo5"},r.value))});return c("React").createElement("div",{className:"_5jo6"},c("React").createElement("div",{className:"_5jo7"},i._("LEADS BREAKDOWN")),q)};function n(){j.apply(this,arguments)}f.exports=n}),null);
__d("LeadGenDatePickerDefaultPresetList",["BUIDateRangePresets"],(function a(b,c,d,e,f,g){"use strict";var h=[c("BUIDateRangePresets").TODAY,c("BUIDateRangePresets").YESTERDAY,c("BUIDateRangePresets").LAST_7D,c("BUIDateRangePresets").LAST_14D,c("BUIDateRangePresets").LAST_30D,c("BUIDateRangePresets").THIS_MONTH,c("BUIDateRangePresets").THIS_QUARTER];f.exports=h}),null);
__d("LeadDownloadDatePickerDialog.react",["cx","fbt","AdsLeadGenDownloadDialogUIActions","AdsLoadState_LEGACY","AdsReportDatePresetType","BUIDateRangePicker.react","LeadDownloadDialogNotice.react","LeadDownloadDialogSessionInfo.react","LeadDownloadDialogState","LeadDownloadLeadsBreakdown.react","LeadGenAsyncDownloadConfig","LeadGenDatePickerDefaultPresetList","LocalDate","LocalDateInterval","React","SUIBusinessTheme","SUISpinner.react","Timezone","XUIDialog.react","XUIDialogBody.react","XUIDialogButton.react","XUIDialogCancelButton.react","XUIDialogFooter.react","ads-lib-formatters"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").Component,m=c("ads-lib-formatters").createIntlNumberFormatter();j=babelHelpers.inherits(n,l);k=j&&j.prototype;function n(){__p&&__p();var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=k.constructor).call.apply(o,[this].concat(r)),this.$LeadDownloadDatePickerDialog5=function(t){if(t.interval){var u=t.interval;c("AdsLeadGenDownloadDialogUIActions").dateRangeChanged(u.start.toDateTime(this.props.timezoneID),u.end.toDateTime(this.props.timezoneID))}}.bind(this),this.$LeadDownloadDatePickerDialog6=function(){this.props.onToggle(false)}.bind(this),this.$LeadDownloadDatePickerDialog2=function(){this.$LeadDownloadDatePickerDialog6();c("AdsLeadGenDownloadDialogUIActions").prepare(this.props.exportObjectID,this.props.exportType,false,this.props.startDate,this.props.endDate,this.props.leadsCount,c("LeadDownloadDialogState").DATE_PICKER_SHOWN)}.bind(this),p}n.prototype.componentWillMount=function(){if(this.props.initialTimeRange)c("AdsLeadGenDownloadDialogUIActions").dateRangeChanged(this.props.initialTimeRange.start,this.props.initialTimeRange.end)};n.prototype.render=function(){var o=this.props.shouldRenderBackButton?c("React").createElement(c("XUIDialogButton.react"),{label:i._("Back"),onClick:this.$LeadDownloadDatePickerDialog1}):null,p=this.props.hasPermission?c("React").createElement(c("XUIDialogButton.react"),{label:i._("Download"),use:"confirm",onClick:this.$LeadDownloadDatePickerDialog2}):null,q={interval:new(c("LocalDateInterval"))(c("LocalDate").fromDateTime(this.props.startDate),c("LocalDate").fromDateTime(this.props.endDate))},r=c("React").createElement(c("LeadDownloadDialogNotice.react"),{errorMessage:this.props.errorMessage,hasPermission:this.props.hasPermission,pageID:this.props.pageID,showLeadsSetupNotice:this.props.showLeadsSetupNotice,sourceType:this.props.sourceType}),s=this.props.startDate.format("M d, Y"),t=this.props.endDate.subtractDays(1).format("M d, Y"),u=c("React").createElement("span",null,s," - ",t),v=this.props.allowOrganicLeadRetrieval?Math.max(0,this.props.leadsCount-this.props.organicLeadsCount):this.props.leadsCount,w=void 0;if(this.props.metadataLoadState===c("AdsLoadState_LEGACY").LOADING)w=c("React").createElement("div",{className:"_4zsm"},c("React").createElement(c("SUISpinner.react"),{size:"small",theme:c("SUIBusinessTheme")}));else{var x=m(this.props.leadsCount);if(this.props.leadsCount>=c("LeadGenAsyncDownloadConfig").omitted_leads_count)x=m(c("LeadGenAsyncDownloadConfig").omitted_leads_count)+"+";w=c("React").createElement("div",{className:"_4zsm"},c("React").createElement("div",{className:"_4zsn"},i._({"*":"{The actual number of leads} leads are available","_1":"{The actual number of leads} lead is available"},[i.param("The actual number of leads",x),i.plural(this.props.leadsCount)]))," ",i._("for {Formatted date range}",[i.param("Formatted date range",u)]),c("React").createElement(c("LeadDownloadLeadsBreakdown.react"),{allowOrganicLeadRetrieval:this.props.allowOrganicLeadRetrieval,downloading:this.props.leadsCount,targeted:v,untargeted:this.props.organicLeadsCount}))}return c("React").createElement(c("XUIDialog.react"),{shown:true,width:this.props.width,onToggle:this.props.onToggle},this.props.dialogTitle,c("React").createElement(c("XUIDialogBody.react"),null,c("React").createElement("div",{className:"_3gnq"},r,c("React").createElement("div",{className:"_3gnr"},i._("Downloading leads for")," ",c("React").createElement("div",{className:"_4xg1"},i._("{Object name}",[i.param("Object name",this.props.exportObjectName)]))," ",i._("by date range.")),c("React").createElement("div",null,c("React").createElement("div",{className:"_3gnx _2pii"},i._("Date Range")),c("React").createElement("div",{className:"_3gny"},c("React").createElement(c("BUIDateRangePicker.react"),{dateRestraints:this.$LeadDownloadDatePickerDialog3(),defaultIncludeToday:true,options:this.$LeadDownloadDatePickerDialog4(),timezoneID:this.props.timezoneID,timezoneLabel:c("Timezone").getName(this.props.timezoneID),value:q,verbose:"custom",onChange:this.$LeadDownloadDatePickerDialog5}),w)),c("React").createElement(c("LeadDownloadDialogSessionInfo.react"),{sessionID:this.props.sessionID}))),c("React").createElement(c("XUIDialogFooter.react"),{leftContent:o},c("React").createElement(c("XUIDialogCancelButton.react"),{onClick:this.$LeadDownloadDatePickerDialog6}),p))};n.prototype.$LeadDownloadDatePickerDialog3=function(){var o=c("LocalDate").today(this.props.timezoneID),p=c("LocalDate").fromDateTime(this.props.objectCreationTime);return[function(q){return q.isBeforeOrEqual(o)},function(q){return q.isAfterOrEqual(p)}]};n.prototype.$LeadDownloadDatePickerDialog4=function(){return[{calculateInterval:function(o){return new(c("LocalDateInterval"))(c("LocalDate").fromDateTime(this.props.objectCreationTime),o.addDays(1))}.bind(this),text:i._("Lifetime"),value:c("AdsReportDatePresetType").LIFETIME}].concat(c("LeadGenDatePickerDefaultPresetList"))};n.prototype.$LeadDownloadDatePickerDialog1=function(){c("AdsLeadGenDownloadDialogUIActions").openSelectorDialog()};f.exports=n}),null);
__d("LeadDownloadProgressDialog.react",["cx","fbt","BUIProgressBar.react","LeadDownloadDialogSessionInfo.react","React","XUIDialog.react","XUIDialogBody.react","XUIDialogCancelButton.react","XUIDialogFooter.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").Component;j=babelHelpers.inherits(m,l);k=j&&j.prototype;function m(n){k.constructor.call(this,n);this.$LeadDownloadProgressDialog1=this.props.onToggle.bind(null,false)}m.prototype.render=function(){var n=this.props.percentage||0,o=i._("Preparing your download...");return c("React").createElement(c("XUIDialog.react"),{shown:true,width:this.props.width,onToggle:this.props.onToggle},this.props.dialogTitle,c("React").createElement(c("XUIDialogBody.react"),null,c("React").createElement("div",{className:"_3gnq"},c("React").createElement("div",null,c("React").createElement("div",{className:"_1dmk"},c("React").createElement(c("BUIProgressBar.react"),{flexibleWidth:true,height:"small",message:o,percentage:n})),c("React").createElement("div",{className:"_1dml"},i._("{Download progress percentage number}\u0025",[i.param("Download progress percentage number",n)]))),c("React").createElement(c("LeadDownloadDialogSessionInfo.react"),{sessionID:this.props.sessionID}))),c("React").createElement(c("XUIDialogFooter.react"),null,c("React").createElement(c("XUIDialogCancelButton.react"),{onClick:this.$LeadDownloadProgressDialog1})))};f.exports=m}),null);
__d("LeadDownloadResultDialogNotice.react",["cx","fbt","Link.react","React","SUIBusinessTheme","SUINotice.react","SUIText.react"],(function a(b,c,d,e,f,g,h,i){"use strict";var j,k,l=c("React").PureComponent,m="https://www.facebook.com/business/help/1526849577619206";j=babelHelpers.inherits(n,l);k=j&&j.prototype;n.prototype.render=function(){return c("React").createElement("div",{className:"_3-96"},c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:"information"},c("React").createElement(c("SUIText.react"),{weight:"bold"},i._("Lead Download Warning:")),c("React").createElement("div",null,i._("The number of leads available to download won't always match the count you see in Ads Manager. You are still receiving all of your leads. Visit the Advertiser Help Center to {Help Center link to Leads Count Discrepancy}.",[i.param("Help Center link to Leads Count Discrepancy",c("React").createElement(c("Link.react"),{href:m,target:"_blank"},"learn more"))]))))};function n(){j.apply(this,arguments)}f.exports=n}),null);
__d("LeadDownloadResultDialog.react",["cx","fbt","AccessibleTableParts.react","AdsLeadGenDownloadDialogUIActions","LeadDownloadDialogSessionInfo.react","LeadDownloadResultDialogNotice.react","LeadGenExportSource","LeadGenLeadsExportType","LeadGenLeadsFileType","Link.react","React","XUIDialog.react","XUIDialogBody.react","XUIDialogButton.react","XUIDialogCloseButton.react","XUIDialogFooter.react","XUITable.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l,m,n=c("AccessibleTableParts.react").HeadRow,o=c("AccessibleTableParts.react").BodyRow,p=c("React").PureComponent;j=babelHelpers.inherits(q,p);k=j&&j.prototype;function q(){var s,t;for(var u=arguments.length,v=Array(u),w=0;w<u;w++)v[w]=arguments[w];return t=(s=k.constructor).call.apply(s,[this].concat(v)),this.$LeadDownloadResultDialog2=function(){this.props.onToggle(false)}.bind(this),t}q.prototype.render=function(){var s=this.props.downloadResults.map(function(z,A){return c("React").createElement(r,{endDate:this.props.endDate,key:A,result:z,startDate:this.props.startDate})}.bind(this)),t=c("React").createElement(c("XUIDialogButton.react"),{label:i._("Back"),onClick:this.$LeadDownloadResultDialog1}),u=void 0;if(this.props.exportType===c("LeadGenLeadsExportType").FORM)u=i._("Form");else if(this.props.exportType===c("LeadGenLeadsExportType").AD||this.props.exportType===c("LeadGenLeadsExportType").ADGROUP)u=i._("Ad");var v=this.props.hasLeadsCountDiscrepancy?c("React").createElement(c("LeadDownloadResultDialogNotice.react"),null):null,w=i._("Your file for {Object name} is ready. Please click the link(s) below to download it.",[i.param("Object name",c("React").createElement("div",{className:"_4xg1"},this.props.exportObjectName))]),x=this.props.sourceType===c("LeadGenExportSource").LWI?null:c("React").createElement(c("XUIDialogFooter.react"),{leftContent:t},c("React").createElement(c("XUIDialogCloseButton.react"),{onClick:this.$LeadDownloadResultDialog2})),y=this.props.sourceType===c("LeadGenExportSource").LWI;return c("React").createElement(c("XUIDialog.react"),{shown:true,width:this.props.width,onToggle:this.props.onToggle},this.props.dialogTitle,c("React").createElement(c("XUIDialogBody.react"),null,c("React").createElement("div",{className:"_3gnq"+(y?" _62he":"")},v,c("React").createElement("div",{className:"_3gnr"},w),c("React").createElement(c("XUITable.react"),{outerBorder:true},c("React").createElement("thead",null,c("React").createElement(n,null,c("React").createElement("th",null,u),c("React").createElement("th",null,i._("Leads Count")),c("React").createElement("th",{colSpan:2},i._("Download Link")))),c("React").createElement("tbody",null,s)),c("React").createElement(c("LeadDownloadDialogSessionInfo.react"),{sessionID:this.props.sessionID}))),x)};q.prototype.$LeadDownloadResultDialog1=function(){c("AdsLeadGenDownloadDialogUIActions").backButtonPressedFromResultDialog()};l=babelHelpers.inherits(r,p);m=l&&l.prototype;function r(){var s,t;for(var u=arguments.length,v=Array(u),w=0;w<u;w++)v[w]=arguments[w];return t=(s=m.constructor).call.apply(s,[this].concat(v)),this.$LeadDownloadResultItem1=function(){this.$LeadDownloadResultItem3(c("LeadGenLeadsFileType").CSV)}.bind(this),this.$LeadDownloadResultItem2=function(){this.$LeadDownloadResultItem3(c("LeadGenLeadsFileType").XLS)}.bind(this),t}r.prototype.render=function(){var s=this.props.result;return c("React").createElement(o,null,c("React").createElement("td",{className:"_3lyr"},s.formName),c("React").createElement("td",null,s.leadsCount),c("React").createElement("td",null,c("React").createElement(c("Link.react"),{href:"#",onClick:this.$LeadDownloadResultItem1},i._("CSV"))),c("React").createElement("td",null,c("React").createElement(c("Link.react"),{href:"#",onClick:this.$LeadDownloadResultItem2},i._("XLS"))))};r.prototype.$LeadDownloadResultItem3=function(s){var t=this.props.result;c("AdsLeadGenDownloadDialogUIActions").download(t.exportObjectID,t.exportType,this.props.startDate,this.props.endDate,t.leadsCount,s)};f.exports=q}),null);
__d("LeadDownloadSelectorDialog.react",["ix","cx","fbt","AdsFBIconDownsized.react","AdsLeadGenDownloadDialogUIActions","AdsLeadGenWebdriverIDs","AdsLoadState_LEGACY","BIGAdoptionConfig","DateTime","Image.react","LeadDownloadDialogNotice.react","LeadDownloadDialogSessionInfo.react","LeadDownloadDialogState","LeadGenAsyncDownloadConfig","LeadGenExportSource","React","ShimButton.react","SUIBusinessTheme","SUISpinner.react","XUIDialog.react","XUIDialogBody.react","XUIDialogCancelButton.react","XUIDialogFooter.react","ads-lib-formatters","asset","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("React").Component,n=c("ads-lib-formatters").createIntlNumberFormatter();k=babelHelpers.inherits(o,m);l=k&&k.prototype;function o(){var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=l.constructor).call.apply(p,[this].concat(s)),this.$LeadDownloadSelectorDialog1=function(){c("AdsLeadGenDownloadDialogUIActions").prepare(this.props.exportObjectID,this.props.exportType,true,this.props.lastDownloadTime,c("DateTime").now(this.props.timezoneID),this.props.newLeadsCount,c("LeadDownloadDialogState").SELECTOR_SHOWN)}.bind(this),this.$LeadDownloadSelectorDialog3=function(){this.props.onToggle(false)}.bind(this),q}o.prototype.render=function(){__p&&__p();if(this.props.sourceType===c("LeadGenExportSource").LWI)return null;var p=this.props.lastDownloadTime.getUnixTimestampSeconds()<=0?"-":this.props.lastDownloadTime.format("M d, Y g:ia"),q=c("React").createElement(c("LeadDownloadDialogNotice.react"),{errorMessage:this.props.errorMessage,hasPermission:this.props.hasPermission,pageID:this.props.pageID,showLeadsSetupNotice:this.props.showLeadsSetupNotice,sourceType:this.props.sourceType}),r=void 0;if(this.props.metadataLoadState===c("AdsLoadState_LEGACY").LOADING)r=c("React").createElement("div",{className:"_4rn3"},c("React").createElement(c("SUISpinner.react"),{size:"small",theme:c("SUIBusinessTheme")}));else{var s=this.props.newLeadsCount===1?this.props.newLeadsCount:n(this.props.newLeadsCount);if(this.props.newLeadsCount>=c("LeadGenAsyncDownloadConfig").omitted_leads_count)s=n(c("LeadGenAsyncDownloadConfig").omitted_leads_count)+"+";r=c("React").createElement("div",{className:"_4rn3"},c("React").createElement("span",{className:"_4rn4"},j._({"*":"{The actual number of leads} new leads","_1":"{The actual number of leads} new lead"},[j.param("The actual number of leads",s),j.plural(this.props.newLeadsCount)]))," ",j._("since the last download on {Formatted date}",[j.param("Formatted date",p)]))}var t=this.props.sourceType===c("LeadGenExportSource").AUTOMATED_ADS,u=c("React").createElement("div",{className:t?"_4fsb":""},c("React").createElement(c("ShimButton.react"),{className:"_4rm-"+(!this.props.hasPermission?" _4rm_":"")+(!t?" _4fsc":"")+(t?" _4fsd":""),onClick:this.$LeadDownloadSelectorDialog1},c("React").createElement("div",{className:"_4rn0"},c("React").createElement(c("AdsFBIconDownsized.react"),{"aria-label":j._("Download New Leads"),src:c("BIGAdoptionConfig").ads_fbicon_adoption?h("406499"):h("123913")})),c("React").createElement("div",{className:"_4rn1"},c("React").createElement("div",{className:"_4rn2"},j._("Download New Leads")),r)),c("React").createElement(c("ShimButton.react"),{className:"_4rm-"+(!this.props.hasPermission?" _4rm_":"")+(!t?" _4fsc":"")+(t?" _4fsd":""),onClick:this.$LeadDownloadSelectorDialog2},c("React").createElement("div",{className:"_4rn0"},c("React").createElement(c("AdsFBIconDownsized.react"),{"aria-label":j._("Download by Date Range"),src:c("BIGAdoptionConfig").ads_fbicon_adoption?h("368714"):h("124120")})),c("React").createElement("div",{className:"_4rn1"},c("React").createElement("div",{className:"_4rn2"},j._("Download by Date Range")),c("React").createElement("div",{className:"_4rn3"},j._("Only download leads for a specific date range")))));if(this.props.sourceType===c("LeadGenExportSource").AUTOMATED_ADS)return u;return c("React").createElement(c("XUIDialog.react"),{shown:true,width:this.props.width,onToggle:this.props.onToggle},this.props.dialogTitle,c("React").createElement(c("XUIDialogBody.react"),null,c("React").createElement("div",{className:"_3gnq","data-testid":c("AdsLeadGenWebdriverIDs").ADS_LEADGEN_LEAD_DOWNLOAD_DIALOG_SELECTOR},q,c("React").createElement("div",{className:"_3gnr"},j._("Choose how you want to download your leads.")),u,c("React").createElement(c("LeadDownloadDialogSessionInfo.react"),{sessionID:this.props.sessionID}))),c("React").createElement(c("XUIDialogFooter.react"),null,c("React").createElement(c("XUIDialogCancelButton.react"),{onClick:this.$LeadDownloadSelectorDialog3})))};o.prototype.$LeadDownloadSelectorDialog2=function(){c("AdsLeadGenDownloadDialogUIActions").openDatePickerDialog()};f.exports=o}),null);
__d("LeadDownloadDialog.react",["fbt","AdsLeadGenDownloadDialogUIActions","LeadDownloadDatePickerDialog.react","LeadDownloadDialogState","LeadDownloadProgressDialog.react","LeadDownloadResultDialog.react","LeadDownloadSelectorDialog.react","LeadGenExportSource","React","Timezone","XUIDialogTitle.react","TimezoneNamesData","RulesTimezoneTransitionProvider","TimezoneRulesFrom2009"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;c("Timezone").registerNamesModule(c("TimezoneNamesData"));c("Timezone").registerRulesModule(c("RulesTimezoneTransitionProvider"),c("TimezoneRulesFrom2009"));var k=c("React").Component,l=600;i=babelHelpers.inherits(m,k);j=i&&i.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=j.constructor).call.apply(n,[this].concat(q)),this.$LeadDownloadDialog1=function(s){if(!s)if(this.props.sourceType===c("LeadGenExportSource").AUTOMATED_ADS)c("AdsLeadGenDownloadDialogUIActions").openSelectorDialog();else c("AdsLeadGenDownloadDialogUIActions").closeDialog()}.bind(this),o}m.prototype.componentWillReceiveProps=function(n){if(this.props.dialogState!==n.dialogState&&this.props.dialogState===c("LeadDownloadDialogState").HIDDEN)c("AdsLeadGenDownloadDialogUIActions").dialogMounted(n.exportObjectID,n.exportObjectName,n.exportType,n.sourceType,n.leadsCount,n.pageID)};m.prototype.render=function(){__p&&__p();var n=null,o=c("React").createElement(c("XUIDialogTitle.react"),null,c("React").createElement("div",null,h._("Download Leads")));switch(this.props.dialogState){case c("LeadDownloadDialogState").DATE_PICKER_SHOWN:var p=this.props.sourceType===c("LeadGenExportSource").PAGE_PUBLISHING_TOOLS;n=c("React").createElement(c("LeadDownloadDatePickerDialog.react"),{allowOrganicLeadRetrieval:this.props.allowOrganicLeadRetrieval,dialogTitle:o,endDate:this.props.endDate,errorMessage:this.props.errorMessage,exportObjectID:this.props.exportObjectID,exportObjectName:this.props.exportObjectName,exportType:this.props.exportType,hasPermission:this.props.hasPermission,initialTimeRange:this.props.initialTimeRange,leadsCount:this.props.leadsCount,metadataLoadState:this.props.metadataLoadState,objectCreationTime:this.props.createdTime,organicLeadsCount:this.props.organicLeadsCount,pageID:this.props.pageID,sessionID:this.props.sessionID,shouldRenderBackButton:p,showLeadsSetupNotice:this.props.showLeadsSetupNotice,sourceType:this.props.sourceType,startDate:this.props.startDate,timezoneID:this.props.timezoneID,width:l,onToggle:this.$LeadDownloadDialog1});break;case c("LeadDownloadDialogState").PREPARE_DIALOG_SHOWN:n=c("React").createElement(c("LeadDownloadProgressDialog.react"),{dialogTitle:o,percentage:this.props.asyncProgress,sessionID:this.props.sessionID,width:l,onToggle:this.$LeadDownloadDialog1});break;case c("LeadDownloadDialogState").RESULT_SHOWN:n=c("React").createElement(c("LeadDownloadResultDialog.react"),{dialogTitle:o,downloadResults:this.props.downloadResults,endDate:this.props.endDate,exportObjectName:this.props.exportObjectName,exportType:this.props.exportType,hasLeadsCountDiscrepancy:this.props.hasLeadsCountDiscrepancy,sessionID:this.props.sessionID,sourceType:this.props.sourceType,startDate:this.props.startDate,width:l,onToggle:this.$LeadDownloadDialog1});break;case c("LeadDownloadDialogState").SELECTOR_SHOWN:n=null;break;case c("LeadDownloadDialogState").HIDDEN:default:return null}var q=this.props.sourceType===c("LeadGenExportSource").AUTOMATED_ADS||this.props.dialogState===c("LeadDownloadDialogState").SELECTOR_SHOWN;return c("React").createElement("div",null,n,q?c("React").createElement(c("LeadDownloadSelectorDialog.react"),{dialogTitle:o,errorMessage:this.props.errorMessage,exportObjectID:this.props.exportObjectID,exportType:this.props.exportType,hasPermission:this.props.hasPermission,lastDownloadTime:this.props.lastDownloadTime,lastDownloadUser:this.props.lastDownloadUser,metadataLoadState:this.props.metadataLoadState,newLeadsCount:this.props.leadsCount,pageID:this.props.pageID,sessionID:this.props.sessionID,showLeadsSetupNotice:this.props.showLeadsSetupNotice,sourceType:this.props.sourceType,timezoneID:this.props.timezoneID,width:l,onToggle:this.$LeadDownloadDialog1}):null)};f.exports=m}),null);
__d("LeadsCSVDownloadFilterDialogContainer.react",["AdsDataAtom","AdsFluxContainer","AdsLeadGenDownloadDialogLoggerStore","AdsLeadGenDownloadDialogUIStore","LeadDownloadDialog.react","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("React").Component;h=babelHelpers.inherits(k,j);i=h&&h.prototype;k.prototype.componentWillMount=function(){c("AdsDataAtom").explicitlyRegisterStores(k.getStores())};k.getStores=function(){return[c("AdsLeadGenDownloadDialogUIStore")]};k.calculateState=function(l){var m=c("AdsLeadGenDownloadDialogUIStore").getState();return{allowOrganicLeadRetrieval:m.allowOrganicLeadRetrieval,asyncProgress:m.asyncProgress,createdTime:m.createdTime,dialogState:m.dialogState,downloadResults:m.downloadResults,endDate:m.endDate,errorMessage:m.errorMessage,exportObjectID:m.exportObjectID,exportObjectName:m.exportObjectName,exportType:m.exportType,hasPermission:m.hasPermission,hasLeadsCountDiscrepancy:m.hasLeadsCountDiscrepancy,lastDownloadTime:m.lastDownloadTime,lastDownloadUser:m.lastDownloadUser,leadsCount:m.leadsCount,metadataLoadState:m.metadataLoadState,organicLeadsCount:m.organicLeadsCount,pageID:m.pageID,sessionID:c("AdsLeadGenDownloadDialogLoggerStore").getSessionID(),showLeadsSetupNotice:m.showLeadsSetupNotice,sourceType:m.sourceType,startDate:m.startDate,timezoneID:m.timezoneID}};k.prototype.render=function(){return c("React").createElement(c("LeadDownloadDialog.react"),this.state)};function k(){h.apply(this,arguments)}f.exports={LeadsCSVDownloadFilterDialogContainerClass:k,LeadsCSVDownloadFilterDialogContainer:c("AdsFluxContainer").create(k,{name:f.id})}}),null);
__d("BoostedLeadGenInsightsManagementHeadline.react",["ix","cx","fbt","AdsFBIconDownsized.react","AdsLoadState_LEGACY","BIGAdoptionConfig","DateTime","Image.react","LeadGenAsyncDownloadConfig","LeadGenInlineCRMUtils","LeadsCSVDownloadFilterDialogContainer.react","LeftRight.react","MenuSeparator.react","React","ReactXUIMenu","asset","ShimButton.react","SUIBusinessTheme","SUISpinner.react","PopoverMenu.react","PublishingToolsSource","XUIPopoverButton.react","emptyFunction","fbglyph","ads-lib-formatters"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("LeadsCSVDownloadFilterDialogContainer.react").LeadsCSVDownloadFilterDialogContainer,n=c("ReactXUIMenu").Item,o=c("ads-lib-formatters").createIntlNumberFormatter(),p=function p(u){var v=u.lastDownloadTime,w=u.metadataLoadState,x=u.newLeadsCount,y=u.onDownloadNewLeadClick,z=void 0;if(w===c("AdsLoadState_LEGACY").LOADING)z=c("React").createElement("div",{className:"_g8r"},c("React").createElement(c("SUISpinner.react"),{size:"small",theme:c("SUIBusinessTheme")}));else{var A=v.getUnixTimestampSeconds()<=0?"-":v.format("M d, Y g:ia"),B=x===1?x:o(x);if(x>=c("LeadGenAsyncDownloadConfig").omitted_leads_count)B=o(c("LeadGenAsyncDownloadConfig").omitted_leads_count)+"+";z=c("React").createElement("div",{className:"_g8r"},j._({"*":"{The actual number of leads} new leads","_1":"{The actual number of leads} new lead"},[j.param("The actual number of leads",B),j.plural(x)])," ",j._("since the last download on"),c("React").createElement("div",null,j._("{Formatted date}",[j.param("Formatted date",A)])))}return c("React").createElement("div",{className:"_1mgn"},c("React").createElement(c("ShimButton.react"),{onClick:y},c("React").createElement("div",{className:"_3bpt"},c("React").createElement(c("AdsFBIconDownsized.react"),{"aria-label":j._("Download New Leads"),src:c("BIGAdoptionConfig").ads_fbicon_adoption?h("406499"):h("123913")})),c("React").createElement("div",{className:"_3bpy"},c("React").createElement("div",{className:"_3bpz"},j._("Download New Leads")),z)))},q=function q(u){var v=u.onDownloadByDateRangeClick;return c("React").createElement("div",{className:"_1mgn"},c("React").createElement(c("ShimButton.react"),{onClick:v},c("React").createElement("div",{className:"_3bpt"},c("React").createElement(c("AdsFBIconDownsized.react"),{"aria-label":j._("Download by Date Range"),src:c("BIGAdoptionConfig").ads_fbicon_adoption?h("368714"):h("124120")})),c("React").createElement("div",{className:"_3bpy"},c("React").createElement("div",{className:"_3bpz"},j._("Download by Date Range")),c("React").createElement("div",{className:"_g8r"},j._("Only download leads for a specific date range")))))},r=c("React").createElement("div",{className:"_1mgn"},c("React").createElement(c("ShimButton.react"),{onClick:c("emptyFunction")},c("React").createElement("div",{className:"_1sn6"},c("React").createElement(c("AdsFBIconDownsized.react"),{"aria-label":j._("Connect Your CRM"),src:c("BIGAdoptionConfig").ads_fbicon_adoption?h("406524"):h("123971")})),c("React").createElement("div",{className:"_1sn7"},c("React").createElement("div",{className:"_3bpz"},j._("Connect Your CRM")),c("React").createElement("div",{className:"_g8r"},j._("Automatically retrieve your leads"))))),s=function s(u,v,w,x,y,z){var A=c("LeadGenInlineCRMUtils").constructLeadsSetupPermaLink(x,c("PublishingToolsSource").LEAD_GEN_DOWNLOAD_DIALOG_FORMS_LIB);return c("React").createElement(c("ReactXUIMenu"),null,c("React").createElement(n,null,c("React").createElement(m,null)),c("React").createElement(n,null,c("React").createElement(p,{lastDownloadTime:u,metadataLoadState:v,newLeadsCount:w,onDownloadNewLeadClick:z})),c("React").createElement(n,null,c("React").createElement(q,{onDownloadByDateRangeClick:y})),c("React").createElement(c("MenuSeparator.react"),null),c("React").createElement(n,{href:A,target:"_blank"},r))};k=babelHelpers.inherits(t,c("React").PureComponent);l=k&&k.prototype;t.prototype.render=function(){var u=this.props,v=u.isDownloadDataLoaded,w=u.lastDownloadTime,x=u.leadsCount,y=u.metadataLoadState,z=u.newLeadsCount,A=u.pageID,B=u.onDownloadByDateRangeClick,C=u.onDownloadNewLeadClick,D=s(w,y,z,A,B,C),E=j._("Download Leads"),F=v?c("React").createElement("div",{className:"_61_x"},c("React").createElement(c("PopoverMenu.react"),{alignh:"right",menu:D,position:"below"},c("React").createElement(c("XUIPopoverButton.react"),{label:E,suppressed:true}))):c("React").createElement("div",{className:"_62fs"},c("React").createElement(c("SUISpinner.react"),{size:"small",theme:c("SUIBusinessTheme")}));return c("React").createElement(c("LeftRight.react"),null,c("React").createElement("div",{className:"_61_w"},j._("Your Leads")," ","\xb7"," ",j._("{leads_count}",[j.param("leads_count",x)])),F)};function t(){k.apply(this,arguments)}f.exports=t}),null);
__d("BoostedLeadGenInsightsManagementHeadlineContainer.react",["AdsDataAtom","AdsFluxContainer","AdsLeadGenDownloadDialogUIActions","AdsLeadGenDownloadDialogUIStore","AdsLoadState_LEGACY","AdsLWIInstanceUtils","BoostedComponentAppID","BoostedComponentContainerUtils","BoostedComponentContextStoreV2","BoostedComponentLeadGenActionsV2","BoostedComponentLeadGenInfoFields","BoostedComponentLeadGenStoreV2","BoostedLeadGenInsightsManagementHeadline.react","DateTime","LeadDownloadDialogState","LeadGenLeadsExportType","React","Timezone","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded,l=c("Timezone").getEnvironmentTimezoneID()||c("Timezone").UTC;h=babelHelpers.inherits(m,c("React").Component);i=h&&h.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=i.constructor).call.apply(n,[this].concat(q)),this.state={dataLoaded:false,exportObjectID:"",exportType:c("LeadGenLeadsExportType").FORM,isLeadsDownloadDataLoaded:false,lastDownloadTime:c("DateTime").now(l),metadataLoadState:c("AdsLoadState_LEGACY").NOT_LOADED,newLeadsCount:0,timezoneID:l},this.$BoostedLeadGenInsightsManagementHeadlineContainer2=function(){var s=this.state,t=s.exportObjectID,u=s.exportType,v=s.lastDownloadTime,w=s.timezoneID,x=s.newLeadsCount;c("AdsLeadGenDownloadDialogUIActions").prepare(t,u,true,v,c("DateTime").now(w),x,c("LeadDownloadDialogState").SELECTOR_SHOWN)}.bind(this),o}m.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("AdsLeadGenDownloadDialogUIStore"),c("BoostedComponentContextStoreV2"),c("BoostedComponentLeadGenStoreV2")])};m.calculateState=function(n,o){var p=o.appID,q=o.targetID,r=o.boostID,s=j(p,q,r),t=j(p,null,r),u=c("BoostedComponentContextStoreV2").getDataByKey(s),v=c("BoostedComponentLeadGenStoreV2").getDataByKey(t),w=k([u,v]);if(!w)return babelHelpers["extends"]({},n,{dataLoaded:w});var x=c("AdsLeadGenDownloadDialogUIStore").getState();return{dataLoaded:w,exportObjectID:x.exportObjectID,exportType:x.exportType,isLeadsDownloadDataLoaded:v.getFormDataLoaded(),lastDownloadTime:x.lastDownloadTime,metadataLoadState:x.metadataLoadState,newLeadsCount:x.leadsCount,timezoneID:x.timezoneID}};m.prototype.componentWillMount=function(){this.$BoostedLeadGenInsightsManagementHeadlineContainer1();c("AdsDataAtom").explicitlyRegisterStores([c("AdsLeadGenDownloadDialogUIStore")])};m.prototype.$BoostedLeadGenInsightsManagementHeadlineContainer1=function(){var n=this.props,o=n.boostID,p=n.leadsData,q=n.targetID,r=p.first(),s=r.get(c("BoostedComponentLeadGenInfoFields").FORM_ID).toString(),t=q?q:s;c("BoostedComponentLeadGenActionsV2").fetchFormData(c("BoostedComponentAppID").BOOSTED_LEAD_GEN,o,t)};m.prototype.$BoostedLeadGenInsightsManagementHeadlineContainer3=function(){c("AdsLeadGenDownloadDialogUIActions").openDatePickerDialog()};m.prototype.render=function(){var n=this.state.dataLoaded;if(!n)return null;var o=this.props,p=o.leadsData,q=o.pageID,r=this.state,s=r.isLeadsDownloadDataLoaded,t=r.lastDownloadTime,u=r.metadataLoadState,v=r.newLeadsCount;return c("React").createElement(c("BoostedLeadGenInsightsManagementHeadline.react"),{isDownloadDataLoaded:s,lastDownloadTime:t,leadsCount:p.size,metadataLoadState:u,newLeadsCount:v,pageID:q,onDownloadByDateRangeClick:this.$BoostedLeadGenInsightsManagementHeadlineContainer3,onDownloadNewLeadClick:this.$BoostedLeadGenInsightsManagementHeadlineContainer2})};f.exports=c("AdsFluxContainer").create(m,{withProps:true,name:f.id})}),null);
__d("BoostedComponentInsightsLeadGenManagementSection.react",["cx","fbt","BoostedActionInsightsConstants","BoostedComponentInsightsLeadGenManagementRow.react","BoostedLeadGenInsightsManagementHeadlineContainer.react","immutable","React"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k;j=babelHelpers.inherits(l,c("React").PureComponent);k=j&&j.prototype;l.getName=function(){return c("BoostedActionInsightsConstants").TAB_LEAD_GEN_MANAGEMENT};l.getTitle=function(){return i._("Leads")};l.prototype.render=function(){var m=this.props,n=m.appID,o=m.boostID,p=m.pageID,q=m.targetID,r=m.values,s=r.map(function(t,u){return c("React").createElement(c("BoostedComponentInsightsLeadGenManagementRow.react"),{key:u,value:t})});if(!r.size)return c("React").createElement("div",{className:"_203o"},c("React").createElement("div",{className:"_203p"},i._("No one has submitted the form yet.")),c("React").createElement("div",{className:"_203q"}));else return c("React").createElement("div",null,c("React").createElement("div",{className:"_61_y"},c("React").createElement(c("BoostedLeadGenInsightsManagementHeadlineContainer.react"),{appID:n,boostID:o,leadsData:r,pageID:p,targetID:q})),c("React").createElement("div",null,s))};function l(){j.apply(this,arguments)}f.exports=l}),null);
__d("MercuryPresenceIndicator.react",["cx","fbt","Arbiter","AvailableListConstants","MercuryIDs","PresenceStatus","React","SubscriptionsHandler"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").PureComponent);k=j&&j.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=k.constructor).call.apply(n,[this].concat(q)),this.$MercuryPresenceIndicator2=function(){if(!c("MercuryIDs").isCanonical(this.props.threadID))return null;else{var s=c("MercuryIDs").getUserIDFromThreadID(this.props.threadID);return c("PresenceStatus").get(s)}}.bind(this),o}m.prototype.componentDidMount=function(){this.$MercuryPresenceIndicator1=new(c("SubscriptionsHandler"))();this.$MercuryPresenceIndicator1.addSubscriptions(c("Arbiter").subscribe(c("AvailableListConstants").ON_AVAILABILITY_CHANGED,function(){return this.forceUpdate()}.bind(this)))};m.prototype.componentWillUnmount=function(){this.$MercuryPresenceIndicator1&&this.$MercuryPresenceIndicator1.release()};m.prototype.render=function(){var n=this.$MercuryPresenceIndicator2();return c("React").createElement("span",{className:this.$MercuryPresenceIndicator3(n)},c("React").createElement("span",{className:"accessible_elem"},this.$MercuryPresenceIndicator4(n)))};m.prototype.$MercuryPresenceIndicator3=function(n){return"presenceIndicator"+(c("MercuryIDs").isGroupChat(this.props.threadID)?" groupThread":"")+(n==c("AvailableListConstants").ACTIVE?" presenceActive":"")};m.prototype.$MercuryPresenceIndicator4=function(n){switch(n){case c("AvailableListConstants").ACTIVE:return i._("Active");default:return null}};m.propTypes={threadID:l.string.isRequired};f.exports=m}),null);
__d("MercuryThreadPermalink.react",["CurrentUser","Link.react","React","WebMessengerThreadPermalinks"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("React").PropTypes;h=babelHelpers.inherits(k,c("React").PureComponent);i=h&&h.prototype;function k(){var l,m;for(var n=arguments.length,o=Array(n),p=0;p<n;p++)o[p]=arguments[p];return m=(l=i.constructor).call.apply(l,[this].concat(o)),this.state={permalinkURI:"#"},m}k.prototype.componentDidMount=function(){this.$MercuryThreadPermalink1(this.props)};k.prototype.componentWillReceiveProps=function(l){if(l.threadID!==this.props.threadID||l.folder!==this.props.folder)this.$MercuryThreadPermalink1(l)};k.prototype.render=function(){return c("React").createElement(c("Link.react"),{className:this.props.className,href:this.state.permalinkURI,onClick:this.props.onClick,role:"button"},this.props.children)};k.prototype.$MercuryThreadPermalink1=function(l){this.setState({permalinkURI:"#"});c("WebMessengerThreadPermalinks").getThreadURI(l.threadID,function(m){return this.setState({permalinkURI:m})}.bind(this),l.folder)};k.propTypes={className:j.string,children:j.any,threadID:j.string.isRequired,viewer:j.string.isRequired,folder:j.string,onClick:j.func};f.exports=k}),null);
__d("MercuryThreadReadToggle.react",["fbt","invariant","MercuryThreadActions","React","ReadToggle.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").PureComponent);k=j&&j.prototype;function m(){__p&&__p();var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=k.constructor).call.apply(n,[this].concat(q)),this.$MercuryThreadReadToggle1=function(s){if(s){s.preventDefault();s.stopPropagation()}var t=c("MercuryThreadActions").getForFBID(this.props.viewer);this.props.unreadCount>0?t.markRead(this.props.threadID):t.markUnread(this.props.threadID)}.bind(this),o}m.prototype.render=function(){this.props.unreadCount>=0||i(0);return c("React").createElement(c("ReadToggle.react"),{isRead:this.props.unreadCount===0,onClick:this.$MercuryThreadReadToggle1,readLabel:h._("Mark as Unread"),unreadLabel:h._("Mark as Read")})};m.propTypes={threadID:l.string.isRequired,viewer:l.string.isRequired,unreadCount:l.number.isRequired};f.exports=m}),null);
__d("MessagesJewelInlineThumbnail.react",["cx","MercuryAttachmentType","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;l.prototype.render=function(){__p&&__p();var m=this.$MessagesJewelInlineThumbnail1();if(m.length===0)return c("React").createElement("span",null);var n=m[0].thumbnail_url;if(!n)return c("React").createElement("span",null);var o=c("React").createElement("span",{className:"_56hv"},c("React").createElement("i",{style:{backgroundImage:"url("+n+")"}}));if(m.length>1)o=c("React").createElement("span",null,c("React").createElement("span",{className:"_56hy"}),o);return o};l.prototype.$MessagesJewelInlineThumbnail1=function(){var m=this.props.thread;if(!m.snippet_attachments)return[];return m.snippet_attachments.filter(function(n){return n.attach_type===c("MercuryAttachmentType").PHOTO})};function l(){i.apply(this,arguments)}l.propTypes={thread:k.object.isRequired};f.exports=l}),null);
__d("WebMessengerConfirmBlockDialog",["fbt","React","SimpleXUIDialog","XUIDialogButton.react"],(function a(b,c,d,e,f,g,h){"use strict";var i={show:function j(k){var l=k&&k.length>0?h._("You have blocked {name}",[h.param("name",k)]):h._("You have blocked the sender"),m=h._("You can access messages you've blocked by going to the filtered requests list."),n=c("React").createElement("div",null,c("React").createElement(c("XUIDialogButton.react"),{action:"cancel",label:h._("OK"),use:"confirm"}));c("SimpleXUIDialog").showEx(m,l,n)}};f.exports=i}),null);
__d("WebMessengerDeclineMRDialog",["fbt","React","SimpleXUIDialog","MercuryThreadActions","XUIDialogButton.react","XUIDialogCancelButton.react","MercuryIDs","MercuryConfig","MessengerMessageRequestsTypedLogger","WebMessengerConfirmBlockDialog","FantaTabActions","MessagingTag","ImmutableObject","gkx","CurrentUser"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=c("MercuryThreadActions").get(),j={show:function k(l,m,n,o,p){__p&&__p();var q=function q(y){c("WebMessengerConfirmBlockDialog").show(y);var v=c("MercuryIDs").getThreadKeyfromThreadIDUserID(m,c("CurrentUser").getID());c("FantaTabActions").closeTab(m);i.changeFolder(l.thread_id,c("MessagingTag").OTHER);new(c("MessengerMessageRequestsTypedLogger"))().setAction("message_requests_block_request").setThreadID(c("MercuryIDs").getThreadFBIDFromThreadID(m)).setSurface("thread").setFolderType(c("MessagingTag").PENDING).setThreadKey(v).setEntryPoint(null).log()},r=o?c("React").createElement(c("XUIDialogButton.react"),{action:"cancel",label:h._("Ignore"),use:"confirm",onClick:function y(z){if(l.folder===c("MessagingTag").PENDING||l.folder===c("MessagingTag").OTHER){i["delete"](m);c("FantaTabActions").closeTab(m)}else i.ignoreMessages(c("MercuryIDs").getThreadFBIDFromThreadID(m))}}):c("React").createElement(c("XUIDialogButton.react"),{action:"cancel",label:h._("Block"),use:"confirm",onClick:function y(){i.blockMessages(m,q)}}),s=h._("Decline Conversation"),t=c("MercuryConfig").WMBF?c("MercuryConfig").RTCR?h._("Connection request will be declined. Would you like to block this person on Facebook or delete these messages?"):h._("Message request will be declined. Would you like to block this person on Facebook or delete these messages?"):h._("This will delete these messages, but won't show that you've seen or deleted them."),u=c("CurrentUser").getID(),v=c("MercuryIDs").getThreadKeyfromThreadIDUserID(m,u),w=function w(y){if(y==="hide")new(c("MessengerMessageRequestsTypedLogger"))().setAction("message_requests_decline_cancel").setThreadID(c("MercuryIDs").getThreadFBIDFromThreadID(m)).setSurface("thread").setFolderType(c("MessagingTag").PENDING).setThreadKey(v).setEntryPoint(null).log()},x=c("MercuryConfig").WMBF?c("React").createElement("div",null,c("React").createElement(c("XUIDialogCancelButton.react"),null),c("React").createElement(c("XUIDialogButton.react"),{action:"cancel",label:h._("Delete"),use:"confirm",onClick:function y(){i["delete"](m);n&&n();new(c("MessengerMessageRequestsTypedLogger"))().setAction("message_requests_delete_request").setThreadID(c("MercuryIDs").getThreadFBIDFromThreadID(m)).setSurface("thread").setFolderType(c("MessagingTag").PENDING).setThreadKey(v).setEntryPoint(null).log()}}),r):c("React").createElement("div",null,c("React").createElement(c("XUIDialogCancelButton.react"),null),c("React").createElement(c("XUIDialogButton.react"),{action:"cancel",label:h._("Delete"),use:"confirm",onClick:function y(){i["delete"](m);n&&n();new(c("MessengerMessageRequestsTypedLogger"))().setAction("message_requests_delete_request").setThreadID(c("MercuryIDs").getThreadFBIDFromThreadID(m)).setSurface("thread").setFolderType(c("MessagingTag").PENDING).setThreadKey(v).setEntryPoint(null).log()}}));c("SimpleXUIDialog").showEx(t,s,x,w,{causalElement:p})}};f.exports=j}),null);
__d("MessagesJewelThreadListRow.react",["cx","fbt","Promise","Bootloader","CurrentUser","FBRTCCore","ImageBlock.react","immutable","ImmutableObject","MercuryConfig","MercuryIDs","MercuryThreadActions","MercuryPresenceIndicator.react","MercurySeenIndicator.react","MercuryThreadImage.react","MercuryThreadPermalink.react","MercuryThreadReadToggle.react","MercuryThreadSnippet.react","MercuryThreadTimestampReact.bs","MercuryThreadTitle.react","MercuryTimestamp","MessagesJewelInlineThumbnail.react","MNAdsMessageUtils","React","RTCCallState","RTCConfig","FBRTCLogger","UserAgent","XUIButton.react","MessagingTag","WebMessengerDeclineMRDialog","idx"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("MercuryThreadTimestampReact.bs").jsComponent,m=c("FBRTCLogger").Trigger,n=c("React").PropTypes;j=babelHelpers.inherits(o,c("React").PureComponent);k=j&&j.prototype;function o(){__p&&__p();var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=k.constructor).call.apply(p,[this].concat(s)),this.$MessagesJewelThreadListRow12=function(){c("MercuryThreadActions").get()["delete"](this.props.thread.thread_id)}.bind(this),this.$MessagesJewelThreadListRow13=function(){c("MercuryThreadActions").get().archive(this.props.thread.thread_id)}.bind(this),this.$MessagesJewelThreadListRow14=function(u){u.preventDefault();u.stopPropagation();var v=window.callWindow&&!window.callWindow.closed&&window.callWindow.focus;if(v)window.callWindow.focus();else{var w=this.props.thread,x=w.rtc_call_data,y=w.thread_fbid;c("FBRTCCore").startGroupCall({conferenceName:"GROUP:"+y,hasVideo:true,serverInfoData:x.server_info_data,trigger:m.MULTIWAY_THREAD_LIST_JOIN_CALL_BUTTON})}}.bind(this),q}o.prototype.render=function(){var p=c("UserAgent").isBrowser("Chrome")&&!c("UserAgent").isPlatform("Windows")?c("React").createElement("div",{className:"author fixemoji"},this.$MessagesJewelThreadListRow2(),this.$MessagesJewelThreadListRow3()):c("React").createElement("div",{className:"author"},c("React").createElement("strong",null,this.$MessagesJewelThreadListRow2()),this.$MessagesJewelThreadListRow3()),q=c("React").createElement(c("ImageBlock.react"),{spacing:"medium"},c("React").createElement("div",{className:"MercuryThreadImage _4qeb"},this.$MessagesJewelThreadListRow4()),c("React").createElement("div",{className:"content"},p,c("React").createElement("div",{className:"_1iji"},c("React").createElement("div",{className:"_1ijj"},this.$MessagesJewelThreadListRow5(),this.$MessagesJewelThreadListRow6()),c("React").createElement("div",null,this.$MessagesJewelThreadListRow7())),c("React").createElement("div",{className:"time"},c("MNAdsMessageUtils").isAdsMessageRequest(this.props.thread)?c("MNAdsMessageUtils").renderAdsMessageRequestStatus():this.$MessagesJewelThreadListRow8()),this.$MessagesJewelThreadListRow9()),c("React").createElement("div",null,c("React").createElement(c("MessagesJewelInlineThumbnail.react"),{thread:this.props.thread}),c("React").createElement("div",{className:"x_div"},this.$MessagesJewelThreadListRow10())));return c("React").createElement("li",{className:this.props.thread.unread_count>0?"jewelItemNew":""},c("React").createElement(c("MercuryThreadPermalink.react"),{className:"messagesContent",threadID:this.props.thread.thread_id,viewer:this.props.viewer,folder:this.props.thread.folder,onClick:this.props.onClick},q))};o.prototype.$MessagesJewelThreadListRow7=function(){__p&&__p();if(this.props.thread.folder!==c("MessagingTag").PENDING||!c("MercuryConfig").EPB)return null;var p=c("CurrentUser").getID(),q=c("MercuryIDs").getThreadKeyfromThreadIDUserID(this.props.thread.thread_id,p);return c("React").createElement("div",{className:"_zjy"},c("React").createElement(c("XUIButton.react"),{use:"confirm",onClick:function(r){r.preventDefault();c("MercuryThreadActions").get().changeFolder(this.props.thread.thread_id,c("MessagingTag").INBOX);this.$MessagesJewelThreadListRow11().done(function(s){s.setAction("message_requests_accept_request").setThreadID(c("MercuryIDs").getThreadFBIDFromThreadID(this.props.thread.thread_id)).setThreadKey(q).log()}.bind(this))}.bind(this),label:i._("Accept")}),c("React").createElement(c("XUIButton.react"),{onClick:function(r){r.preventDefault();var s=c("MercuryIDs").isGroupChat(this.props.thread.thread_id);c("WebMessengerDeclineMRDialog").show(this.props.thread,this.props.thread.thread_id,this.$MessagesJewelThreadListRow12,s);r.stopPropagation();this.$MessagesJewelThreadListRow11().done(function(t){t.setAction("message_requests_decline_attempt").setThreadID(c("MercuryIDs").getThreadFBIDFromThreadID(this.props.thread.thread_id)).setThreadKey(q).log()}.bind(this))}.bind(this),use:"default",label:i._("Decline")}))};o.prototype.$MessagesJewelThreadListRow3=function(){if(!this.props.showPresence)return null;return c("React").createElement(c("MercuryPresenceIndicator.react"),{threadID:this.props.thread.thread_id})};o.prototype.$MessagesJewelThreadListRow4=function(p){return c("React").createElement(c("MercuryThreadImage.react"),{size:p,thread:this.props.thread,useBackground:true,viewer:this.props.viewer})};o.prototype.$MessagesJewelThreadListRow2=function(){return c("React").createElement(c("MercuryThreadTitle.react"),{thread:this.props.thread,viewer:this.props.viewer,showUnreadCount:true})};o.prototype.$MessagesJewelThreadListRow6=function(){return c("React").createElement(c("MercuryThreadSnippet.react"),{participants:this.props.participants,thread:this.props.thread,viewer:this.props.viewer})};o.prototype.$MessagesJewelThreadListRow8=function(){return c("React").createElement(l,{time:this.props.thread.timestamp,title:c("MercuryTimestamp").getAbsoluteTimestamp(this.props.thread.timestamp),text:c("MercuryTimestamp").getRelativeTimestamp(this.props.thread.timestamp)})};o.prototype.$MessagesJewelThreadListRow5=function(){return c("React").createElement(c("MercurySeenIndicator.react"),{thread:this.props.thread,viewer:this.props.viewer})};o.prototype.$MessagesJewelThreadListRow10=function(){return c("React").createElement(c("MercuryThreadReadToggle.react"),{threadID:this.props.thread.thread_id,viewer:this.props.viewer,unreadCount:this.props.thread.unread_count})};o.prototype.$MessagesJewelThreadListRow9=function(){if(!c("RTCConfig").RtcConferencingGK||!this.props.thread.rtc_call_data||this.props.thread.rtc_call_data.call_state===c("RTCCallState").NO_ONGOING_CALL)return null;var p=window.callWindow&&!window.callWindow.closed?i._("Return to Call"):i._("Join Call");return c("React").createElement(c("XUIButton.react"),{className:"_4oci",label:p,onClick:this.$MessagesJewelThreadListRow14})};o.prototype.$MessagesJewelThreadListRow11=function(){if(!this.$MessagesJewelThreadListRow1)this.$MessagesJewelThreadListRow1=new(c("Promise"))(function(p,q){c("Bootloader").loadModules(["MessengerMessageRequestsTypedLogger"],function(r){var s=new r();s.setSurface("inbox").setFolderType("pending").setEntryPoint("inbox_banner");p(s)},"MessagesJewelThreadListRow.react")});return this.$MessagesJewelThreadListRow1};o.propTypes={onClick:n.func,participants:n.instanceOf(c("immutable").Map).isRequired,showPresence:n.bool,thread:n.instanceOf(c("ImmutableObject")).isRequired,viewer:n.string.isRequired,wasSeenByAll:n.bool};f.exports=o}),null);
__d("BoostedComponentInsightsMessageReplySection.react",["cx","fbt","BoostedActionInsightsConstants","immutable","MercuryIDs","MercuryThreadInformer","MercuryThreadlistRowContainer.react","MercuryThreads","MessagesJewelThreadListRow.react","React","SubscriptionsHandler","SUIBusinessTheme","SUILink.react","XPagesManagerMessagesController"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=function l(o){return c("React").createElement("div",{className:"_u6b"},i._("Your Message Replies")," ","\xb7"," ",i._("{message_reply_count}",[i.param("message_reply_count",o.adsMessageRelyNumber)]))},m=function m(o){var p=c("XPagesManagerMessagesController").getURIBuilder().setString("page_token",o.pageID).getURI();return c("React").createElement("div",{className:"_46dw"},c("React").createElement(c("SUILink.react"),{href:p,target:"_blank",theme:c("SUIBusinessTheme")},i._("View More Message Replies")))};j=babelHelpers.inherits(n,c("React").Component);k=j&&j.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=k.constructor).call.apply(o,[this].concat(r)),this.state={threadDataList:null},this.$BoostedComponentInsightsMessageReplySection1=null,p}n.getName=function(){return c("BoostedActionInsightsConstants").TAB_MESSAGE_REPLY};n.getTitle=function(){return i._("Messaging Replies")};n.prototype.componentDidMount=function(){var o=this.props.pageID;this.$BoostedComponentInsightsMessageReplySection1=new(c("SubscriptionsHandler"))();var p=c("MercuryThreadInformer").getForFBID(o);this.$BoostedComponentInsightsMessageReplySection1&&this.$BoostedComponentInsightsMessageReplySection1.addSubscriptions(p.subscribe("threads-updated",function(q,r){this.$BoostedComponentInsightsMessageReplySection2()}.bind(this)));this.$BoostedComponentInsightsMessageReplySection2()};n.prototype.componentWillUnmount=function(){this.$BoostedComponentInsightsMessageReplySection1&&this.$BoostedComponentInsightsMessageReplySection1.release()};n.prototype.$BoostedComponentInsightsMessageReplySection2=function(){var o=this.props,p=o.pageID,q=o.threadUserIds,r=c("MercuryThreads").getForFBID(p),s=q.map(function(t){return c("MercuryIDs").getThreadIDFromUserID(t)});r.getMultiThreadMeta(s.toJS(),function(t){this.setState({threadDataList:t&&c("immutable").fromJS(Object.values(t))})}.bind(this))};n.prototype.render=function(){var o=this.state.threadDataList,p=this.props,q=p.adsMessageRelyNumber,r=p.pageID,s=o&&o.map(function(t){return c("React").createElement(c("MercuryThreadlistRowContainer.react"),{ChildClass:c("MessagesJewelThreadListRow.react"),key:t.thread_id,showPresence:false,thread:t,viewer:r,wasSeenByAll:true})});return c("React").createElement("div",null,c("React").createElement(l,{adsMessageRelyNumber:q}),c("React").createElement("div",{className:"_rus _1y2l _4kgv _3v_l"},c("React").createElement("ul",{className:"jewelContent"},s)),c("React").createElement(m,{pageID:r}))};f.exports=n}),null);
__d("InsightsTabbedSection.react",["React"],(function a(b,c,d,e,f,g){__p&&__p();var h,i,j=c("React").PropTypes;h=babelHelpers.inherits(k,c("React").Component);i=h&&h.prototype;k.getTabHref=function(l){"use strict";return l.tabHref};k.getKey=function(l){"use strict";return l.sectionKey};k.getTitle=function(l){"use strict";return l.title};k.getSubtitle=function(l){"use strict";return l.subtitle};k.prototype.render=function(){"use strict";return c("React").createElement("div",{className:this.props.className},this.props.children)};function k(){"use strict";h.apply(this,arguments)}k.propTypes={className:j.string,tabHref:j.string,sectionKey:j.string.isRequired,title:j.string.isRequired,subtitle:j.string};f.exports=k}),null);
__d("BoostedComponentInsightsSectionV2.react",["cx","AdsPageTypes","AdsPlacementAPIMigrationUtils","BoostedActionInsightsTabbedSections.react","BoostedActionStatsCategory","BoostedComponentAppID","BoostedComponentInsightsAgeGenderSection.react","BoostedComponentInsightsCountrySection.react","BoostedComponentInsightsEngagementSection.react","BoostedComponentInsightsHeadlineV2.react","BoostedComponentInsightsLeadGenManagementSection.react","BoostedComponentInsightsMessageReplySection.react","BoostedComponentQEs","BoostedComponentQEUtils","BoostedComponentSectionV2.react","BootloadedComponent.react","immutable","InsightsTabbedSection.react","JSResource","React","SUIBusinessTheme","SUISpinner.react","gkx"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("AdsPlacementAPIMigrationUtils").deprecate,l=function l(p,q,r){switch(p){case c("BoostedActionStatsCategory").CTA_MESSAGE_PAGE_CLICK:return!r;case c("BoostedActionStatsCategory").LEAD:return q!==c("BoostedComponentAppID").BOOSTED_LEAD_GEN;default:return true}},m=function m(p,q){var r=q.get("message_data");if(r&&r.size>0)return true;return false},n=function n(p,q,r,s,t,u,v,w,x,y){__p&&__p();var z=[],A=u.get("message_data"),B=c("gkx")("AT6CNbEtDZYAESwb2pVMUxMJ_bk9l9DfbtGNFmM9bhhPQKfcBb6aeisaUaz0XPYyL3TlFfhgCfpFnXUeSjkdU0Ds");if(w)z.push(c("React").createElement(c("BoostedComponentInsightsMessageReplySection.react"),{adsMessageRelyNumber:u.getConversions(),pageID:v,threadUserIds:A}));else if(q===c("BoostedComponentAppID").BOOSTED_LEAD_GEN)z.push(c("React").createElement(c("BoostedComponentInsightsLeadGenManagementSection.react"),{appID:q,boostID:r,pageID:v,targetID:x,values:u.getLeadData()}));else if(c("gkx")("AT59vScTheEwfzOGaOLtS_lV3V2sqsKZOurfnspj59f8XSIRmrA51gRG1H8CyaFAts0Kcb0AnDmOEZrkXa9KxR77FLNMU5xKF6IdNjpdSYoJKA"))z.push(c("React").createElement(c("BoostedComponentInsightsEngagementSection.react"),{values:t}));else z.push(c("React").createElement(c("BoostedComponentInsightsEngagementSection.react"),{values:u.getEngagementData()}));if(B)z.push(c("React").createElement(c("BoostedComponentInsightsAgeGenderSection.react"),{objective:y,values:p}));else z.push(c("React").createElement(c("BoostedComponentInsightsAgeGenderSection.react"),{objective:y,values:u.getAgeGenderData()}));if(q!==c("BoostedComponentAppID").BOOSTED_LOCAL_AWARENESS)if(B)z.push(c("React").createElement(c("BoostedComponentInsightsCountrySection.react"),{values:s}));else z.push(c("React").createElement(c("BoostedComponentInsightsCountrySection.react"),{values:u.getCountryData()}));return z.map(function(C){var D=C.type.getName();return c("React").createElement(c("InsightsTabbedSection.react"),{key:D,sectionKey:D,title:C.type.getTitle()},C)})};i=babelHelpers.inherits(o,c("React").Component);j=i&&i.prototype;function o(){var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=j.constructor).call.apply(p,[this].concat(s)),this.state={activeKey:null},this.$BoostedComponentInsightsSectionV21=function(u){this.setState({activeKey:u.type.getKey(u.props)})}.bind(this),q}o.prototype.$BoostedComponentInsightsSectionV22=function(){var p=this.props,q=p.isBoosted,r=p.pageTypes;if(!q||!r)return false;return r&&r.indexOf(k(c("AdsPageTypes").INSTAGRAM_STREAM))>=0};o.prototype.render=function(){var p=this.props,q=p.ageGenderData,r=p.appID,s=p.boostID,t=p.countryData,u=p.engagementData,v=p.insightsStoreData,w=p.pageID,x=p.targetID,y=p.objective;if(!v.canShowInsights())return null;var z=m(r,v);return c("React").createElement(c("BoostedComponentSectionV2.react"),{className:"_3-8j"},c("React").createElement(c("BoostedComponentInsightsHeadlineV2.react"),{appID:r,conversionType:v.getConversionType(),conversions:v.getConversions(),impressions:v.getImpressions(),isDeliveredToInstagram:this.$BoostedComponentInsightsSectionV22(),objective:this.props.objective,reach:v.getReach(),showConversionHeader:l(v.getConversionType(),r,z),spend:v.getSpend()}),c("React").createElement(c("BootloadedComponent.react"),{appID:r,boostID:s,bootloadLoader:c("JSResource")("BoostedComponentCheckoutPaymentsResultsSectionContainer.react").__setRef("BoostedComponentInsightsSectionV2.react"),bootloadPlaceholder:c("React").createElement(c("SUISpinner.react"),{size:"large",theme:c("SUIBusinessTheme")}),targetID:x}),c("React").createElement(c("BoostedActionInsightsTabbedSections.react"),{activeKey:this.state.activeKey,onTabClick:this.$BoostedComponentInsightsSectionV21},n(q,r,s,t,u,v,w,z,x,y)))};f.exports=o}),null);
__d("BoostedComponentInsightsSectionV2Container.react",["AdsFluxContainer","AdsLWIInsightsSelectorUtils","AdsLWIInsightsType","AdsLWIInsightsUtils","AdsLWIInstanceUtils","BoostedComponentAudienceStoreV2","BoostedComponentContainerUtils","BoostedComponentErrorBoundaryContainer.react","BoostedComponentExistingAdInfoStoreV2","BoostedComponentInsightsSectionV2.react","BoostedComponentInsightsStoreData","BoostedComponentInsightsStoreV2","BoostedComponentInsightsTimeRange","BoostedComponentSectionV2Spinner.react","immutable","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded;h=babelHelpers.inherits(l,c("React").Component);i=h&&h.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=i.constructor).call.apply(m,[this].concat(p)),this.state={ageGenderData:c("immutable").Map(),countryData:c("immutable").Map(),engagementData:c("immutable").Map(),dataLoaded:false,insightsStoreData:new(c("BoostedComponentInsightsStoreData"))(),isBoosted:false,objective:null,pageTypes:null},n}l.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),c("AdsLWIInsightsSelectorUtils").getStores(),[c("BoostedComponentAudienceStoreV2"),c("BoostedComponentInsightsStoreV2"),c("BoostedComponentExistingAdInfoStoreV2")])};l.calculateState=function(m,n){var o=n.appID,p=n.targetID,q=n.boostID,r=j(o,p,q),s=c("BoostedComponentInsightsStoreV2").getDataByKey(r),t=c("BoostedComponentAudienceStoreV2").getDataByKey(r),u=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(r),v=u.campaign_group_id,w=c("AdsLWIInsightsUtils").getInsightsKey(v,null,c("AdsLWIInsightsType").COUNTRY_METRICS,c("BoostedComponentInsightsTimeRange").LIFE_TIME),x=c("AdsLWIInsightsSelectorUtils").getDemographicMap(w,"country",true),y=k([t,s]);if(!y)return babelHelpers["extends"]({},m,{dataLoaded:y});var z=c("AdsLWIInsightsUtils").getInsightsKey(u.campaign_group_id,null,c("AdsLWIInsightsType").AGE_GENDER_METRICS,c("BoostedComponentInsightsTimeRange").LIFE_TIME),A=c("AdsLWIInsightsSelectorUtils").getAgeGenderMap(z,true),B=c("AdsLWIInsightsUtils").getInsightsKey(u.campaign_group_id,null,c("AdsLWIInsightsType").OVERALL_METRICS,c("BoostedComponentInsightsTimeRange").LIFE_TIME),C=c("AdsLWIInsightsSelectorUtils").getEngagementMap(B);return{ageGenderData:A,countryData:x,engagementData:C,dataLoaded:y,insightsStoreData:s,isBoosted:u.getIsBoosted(),objective:u.getObjective(),pageTypes:u.getPageTypes()}};l.prototype.render=function(){var m=this.props,n=m.appID,o=m.boostID,p=m.pageID,q=m.targetID;if(!this.state.dataLoaded)return c("React").createElement(c("BoostedComponentSectionV2Spinner.react"),{height:200});return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentInsightsSectionV2"},c("React").createElement(c("BoostedComponentInsightsSectionV2.react"),babelHelpers["extends"]({appID:n,boostID:o,pageID:p,targetID:q},this.state)))};f.exports=c("AdsFluxContainer").create(l,{withProps:true,name:f.id})}),null);
__d("BoostedComponentOrderSummarySectionV2Container.react",["AdsFluxContainer","AdsLWIInstanceUtils","BoostedComponentAdAccountStoreV2","BoostedComponentAppID","BoostedComponentAudienceStoreV2","BoostedComponentCondensedOrderSummarySectionV2.react","BoostedComponentContainerUtils","BoostedComponentDialogUIStoreV2","BoostedComponentErrorBoundaryContainer.react","BoostedComponentExistingAdInfoStoreV2","BoostedComponentExpandedOrderSummarySectionV2.react","BoostedComponentPaymentActionsV2","BoostedComponentSectionV2Spinner.react","BoostedComponentStatus","BoostedComponentURIStoreV2","BoostedPostCreativeStoreV2","immutable","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded;h=babelHelpers.inherits(l,c("React").Component);i=h&&h.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=i.constructor).call.apply(m,[this].concat(p)),this.state={accountID:"",accountStatus:0,adAccountName:"",adStatus:c("BoostedComponentStatus").INACTIVE,amountSpent:0,audienceType:null,campaignLength:1,campaignStopTimePassed:true,checkoutPayments:c("immutable").List(),checkoutV2ExperimentGroup:null,currency:"",dataLoaded:false,hasUserRemovedInstagramPlacement:false,instagramOptOutHelpURI:"",isBrandedContentSponsorBoost:false,isCheckout:false,isEligibleForInstagramPlacement:false,paymentInfo:{},runContinuously:false,selectedBudget:0,showCheckoutAdRejectionMessage:false,spendCap:0,targetingSpec:{},timeZoneID:0,totalBudget:"",totalSpent:0,userEmail:null,viewerAdAccountID:"",writePermission:false},this.handleMessageDismiss=function(){var r=this.props,s=r.appID,t=r.targetID,u=r.boostID;c("BoostedComponentPaymentActionsV2").checkoutAdRejectionMessageDismiss(s,t,u)}.bind(this),n}l.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedComponentAdAccountStoreV2"),c("BoostedComponentAudienceStoreV2"),c("BoostedComponentDialogUIStoreV2"),c("BoostedComponentExistingAdInfoStoreV2"),c("BoostedComponentURIStoreV2"),c("BoostedPostCreativeStoreV2")])};l.calculateState=function(m,n){__p&&__p();var o=n.appID,p=n.targetID,q=n.boostID,r=j(o,p,q),s=c("BoostedComponentAdAccountStoreV2").getState(),t=c("BoostedComponentDialogUIStoreV2").getDataByKey(r),u=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(r),v=c("BoostedComponentAudienceStoreV2").getDataByKey(r),w=c("BoostedComponentURIStoreV2").getDataByKey(r),x=c("BoostedPostCreativeStoreV2").getDataByKey(r),y=[v,w];if(o===c("BoostedComponentAppID").BOOSTED_POST)y.push(x);var z=k(y);if(!z)return babelHelpers["extends"]({},m,{dataLoaded:z});var A=false;if(o===c("BoostedComponentAppID").BOOSTED_POST)A=!!x.getCreativeSpec().get("branded_content_sponsor_page_id");var B=Date.now()/1e3>u.getCampaignStopTime();return{accountID:u.getCampaignAdAccountID(),accountStatus:s.getSelectedAccountStatus(),adAccountName:u.getAdAccountName(),adStatus:u.getAdStatus(),amountSpent:s.getSelectedAccountAmountSpent(),audienceType:u.getAudienceType(),campaignLength:u.getCampaignLength(),campaignStopTimePassed:B,checkoutPayments:u.getCheckoutPayments(),checkoutV2ExperimentGroup:s.getCheckoutV2ExperiementGroup(),currency:s.getCurrency(),dataLoaded:z,hasUserRemovedInstagramPlacement:v.getHasUserRemovedInstagramPlacement(),instagramOptOutHelpURI:w.getInstagramAdsOptOutHelpURI(),isBrandedContentSponsorBoost:A,isCheckout:s.getIsAccountInCheckout(),isEligibleForInstagramPlacement:v.getIsInstagramPlacementEligible(),paymentInfo:u.getPaymentInfo(),runContinuously:u.getRunContinuously(),selectedBudget:u.getRawTotalBudget(),showCheckoutAdRejectionMessage:t.getShowCheckoutAdRejectionMessage(),spendCap:s.getSelectedAccountSpendCap(),targetingSpec:u.getTargetingSpec(),totalBudget:u.getTotalBudgetISOFormat(),timeZoneID:s.getSelectedAccountTimezoneID(),totalSpent:u.getSpent(),userEmail:s.getAccountEmail(),viewerAdAccountID:s.getSelectedAccountID(),writePermission:s.getSelectedAccountHasBillingWritePermission()}};l.prototype.render=function(){if(!this.state.dataLoaded)return c("React").createElement(c("BoostedComponentSectionV2Spinner.react"),{height:600});var m=this.props,n=m.appID,o=m.boostID,p=m.canShowInsights,q=m.canViewerEdit,r=m.placement,s=m.targetID;if(!p)return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentExpandedOrderSummarySectionV2"},c("React").createElement(c("BoostedComponentExpandedOrderSummarySectionV2.react"),babelHelpers["extends"]({},this.state,{appID:n,boostID:o,canViewerEdit:q,placement:r,targetID:s,warningPlacement:"SUMMARY",onMessageDismiss:this.handleMessageDismiss})));else return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentCondensedOrderSummarySectionV2"},c("React").createElement(c("BoostedComponentCondensedOrderSummarySectionV2.react"),babelHelpers["extends"]({},this.state,{appID:n,boostID:o,canViewerEdit:q,placement:r,targetID:s,warningPlacement:"SUMMARY",onMessageDismiss:this.handleMessageDismiss})))};f.exports=c("AdsFluxContainer").create(l,{withProps:true,name:f.id})}),null);
__d("BoostedComponentPromotionRating.react",["ix","cssVar","cx","fbt","AdsTextInput.react","Image.react","React","ShimButton.react","SUIBusinessTheme","SUIButton.react","SUIText.react","SUIThemeContainer.react","asset"],(function a(b,c,d,e,f,g,h,i,j,k){"use strict";__p&&__p();var l,m,n,o;l=babelHelpers.inherits(p,c("React").PureComponent);m=l&&l.prototype;function p(){var C,D;for(var E=arguments.length,F=Array(E),G=0;G<E;G++)F[G]=arguments[G];return D=(C=m.constructor).call.apply(C,[this].concat(F)),this.state={isMouseOver:false},this.$BottomButton1=function(){this.setState({isMouseOver:true})}.bind(this),this.$BottomButton2=function(){this.setState({isMouseOver:false})}.bind(this),D}p.prototype.render=function(){return c("React").createElement(c("ShimButton.react"),{width:"100%",onClick:this.props.onClick,onMouseEnter:this.$BottomButton1,onMouseLeave:this.$BottomButton2},c("React").createElement("div",{className:"_3xzm"},c("React").createElement(c("SUIText.react"),{className:"_3xzq",customColorUseSparingly:this.state.isMouseOver?"#ffffff":"#4267b2",display:"block",size:"medium_DEPRECATED",textAlign:"center"},this.props.label)))};var q=k._("Yes"),r=k._("No"),s=k._("Are you satisfied with this promotion?");function t(C){return c("React").createElement(c("SUIThemeContainer.react"),{theme:c("SUIBusinessTheme")},c("React").createElement("div",null,c("React").createElement("div",{className:"_64rr"},c("React").createElement(c("SUIText.react"),{size:"regular_DEPRECATED"},s)),c("React").createElement("div",{className:"_64rs"},c("React").createElement("div",{className:"_3xzr lfloat"},c("React").createElement(p,{label:r,onClick:C.onRateUnsatisfied})),c("React").createElement("div",{className:"_3xzr rfloat"},c("React").createElement(p,{label:q,onClick:C.onRateSatisfied})))))}function u(){var C=k._("Thanks for helping us improve!");return c("React").createElement("div",null,c("React").createElement("div",{className:"_64rr _3xzs"},c("React").createElement(c("SUIText.react"),{size:"medium_DEPRECATED",theme:c("SUIBusinessTheme")},C)),c("React").createElement("div",{className:"_3xzt"},c("React").createElement(c("Image.react"),{className:"_3xzu",src:h("375542")})))}var v=k._("Submit"),w=k._("Skip"),x=k._("How can we improve? (Optional)"),y=k._("What went well? (Optional)"),z=k._("Provide your feedback here...");function A(C){return c("React").createElement(c("SUIThemeContainer.react"),{theme:c("SUIBusinessTheme")},c("React").createElement("div",{className:"_3xzw"},c("React").createElement("div",{className:"_64rr"},c("React").createElement(c("SUIText.react"),{size:"medium_DEPRECATED"},C.promotionRating?y:x)),c("React").createElement("div",{className:"_3-96"},c("React").createElement(c("AdsTextInput.react"),{multiline:true,placeholder:z,value:C.improvementMessage,onChange:C.onImprovementMessageChange})),c("React").createElement("div",{className:"rfloat"},c("React").createElement(c("SUIButton.react"),{label:w,use:"default",onClick:C.onSkipImprovementMessage}),c("React").createElement(c("SUIButton.react"),{disabled:C.improvementMessage==="",label:v,style:{marginLeft:8},use:"confirm",onClick:C.onSubmitImprovementMessage}))))}n=babelHelpers.inherits(B,c("React").PureComponent);o=n&&n.prototype;function B(){__p&&__p();var C,D;for(var E=arguments.length,F=Array(E),G=0;G<E;G++)F[G]=arguments[G];return D=(C=o.constructor).call.apply(C,[this].concat(F)),this.state={feedbackStage:"RATING_STAGE",feedbackMessage:"",promotionRating:false},this.$BoostedComponentPromotionRating1=function(){this.setState({feedbackStage:"IMPROVEMENT_INPUT_STAGE",promotionRating:true})}.bind(this),this.$BoostedComponentPromotionRating2=function(){this.setState({feedbackStage:"IMPROVEMENT_INPUT_STAGE",promotionRating:false})}.bind(this),this.$BoostedComponentPromotionRating3=function(H){this.setState({feedbackMessage:H})}.bind(this),this.$BoostedComponentPromotionRating4=function(){this.props.onSaveFeedback(this.state.promotionRating,"");this.setState({feedbackStage:"THANK_YOU_STAGE"})}.bind(this),this.$BoostedComponentPromotionRating5=function(){this.props.onSaveFeedback(this.state.promotionRating,this.state.feedbackMessage);this.setState({feedbackStage:"THANK_YOU_STAGE"})}.bind(this),D}B.prototype.render=function(){__p&&__p();if(!this.props.shouldShowPromotionRating)return null;var C=null;switch(this.state.feedbackStage){case"RATING_STAGE":C=c("React").createElement(t,{onRateSatisfied:this.$BoostedComponentPromotionRating1,onRateUnsatisfied:this.$BoostedComponentPromotionRating2});break;case"IMPROVEMENT_INPUT_STAGE":C=c("React").createElement(A,{improvementMessage:this.state.feedbackMessage,promotionRating:this.state.promotionRating,onImprovementMessageChange:this.$BoostedComponentPromotionRating3,onSkipImprovementMessage:this.$BoostedComponentPromotionRating4,onSubmitImprovementMessage:this.$BoostedComponentPromotionRating5});break;case"THANK_YOU_STAGE":C=c("React").createElement(u,null);break;default:return null}return c("React").createElement("div",{className:"_3xzx"},C)};f.exports=B}),null);
__d("BoostedComponentPromotionRatingValues",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({SATISFIED:10,UNSATISFIED:0})}),null);
__d("BoostedComponentStarRating.react",["cx","fbt","AdsTextInput.react","React","StarsInput.react","SUIBusinessTheme","SUIText.react","XUIButton.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").Component,m=Object.freeze({ENTER_STARS_FEEDBACK:0,ENTER_TEXT_FEEDBACK:1,FINISHED:2});j=babelHelpers.inherits(n,l);k=j&&j.prototype;function n(o,p){__p&&__p();k.constructor.call(this,o,p);this.$BoostedComponentStarRating2=function(q){this.setState({stage:m.ENTER_TEXT_FEEDBACK,starRating:q})}.bind(this);this.$BoostedComponentStarRating1=function(q){this.setState({feedbackMessage:q})}.bind(this);this.$BoostedComponentStarRating4=function(){this.$BoostedComponentStarRating5({starRating:this.state.starRating,feedbackMessage:null})}.bind(this);this.$BoostedComponentStarRating6=function(){this.$BoostedComponentStarRating5({starRating:this.state.starRating,feedbackMessage:this.state.feedbackMessage})}.bind(this);this.$BoostedComponentStarRating1=this.$BoostedComponentStarRating1.bind(this);this.state={stage:m.ENTER_STARS_FEEDBACK,starRating:0,feedbackMessage:""}}n.prototype.$BoostedComponentStarRating3=function(){return c("React").createElement("div",null,c("React").createElement("div",{className:"pas"},i._("Please rate the effectiveness of this promotion.")),c("React").createElement(c("StarsInput.react"),{allowMultipleSubmissions:false,large:true,onClick:this.$BoostedComponentStarRating2}))};n.prototype.$BoostedComponentStarRating5=function(o){this.setState({stage:m.FINISHED});this.props.onSaveFeedback(o)};n.prototype.$BoostedComponentStarRating7=function(){var o=i._("Submit"),p=i._("Skip");return c("React").createElement("div",null,c("React").createElement("div",{className:"mbs"},i._("How can we improve your experience?")),c("React").createElement(c("AdsTextInput.react"),{allowNewLines:true,multiline:true,value:this.state.feedbackMessage,onChange:this.$BoostedComponentStarRating1}),c("React").createElement("div",{className:"_5lvw mts"},c("React").createElement(c("XUIButton.react"),{label:p,use:"default",onClick:this.$BoostedComponentStarRating4}),c("React").createElement(c("XUIButton.react"),{disabled:!this.state.feedbackMessage,label:o,use:"confirm",onClick:this.$BoostedComponentStarRating6})))};n.prototype.$BoostedComponentStarRating8=function(){return c("React").createElement("div",null,c("React").createElement(c("SUIText.react"),{display:"block",theme:c("SUIBusinessTheme"),weight:"bold"},i._("Thank you for your feedback!")),i._("We are continuously working to make Facebook better and your input is invaluable in our mission to make the world more open and connected."))};n.prototype.render=function(){__p&&__p();if(!this.props.shouldShowStarRating)return null;var o=null;switch(this.state.stage){case m.ENTER_STARS_FEEDBACK:o=this.$BoostedComponentStarRating3();break;case m.ENTER_TEXT_FEEDBACK:o=this.$BoostedComponentStarRating7();break;case m.FINISHED:o=this.$BoostedComponentStarRating8();break}return c("React").createElement("div",{className:"_jkp"},o)};f.exports=n}),null);
__d("BoostedComponentStarRatingSectionV2.react",["cx","BoostedComponentPromotionRating.react","BoostedComponentPromotionRatingValues","BoostedComponentQEs","BoostedComponentQEUtils","BoostedComponentStarRating.react","BoostedComponentSurveyAndFeedbackActionsV2","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;function k(){var l,m;for(var n=arguments.length,o=Array(n),p=0;p<n;p++)o[p]=arguments[p];return m=(l=j.constructor).call.apply(l,[this].concat(o)),this.$BoostedComponentStarRatingSectionV21=function(q){var r=this.props,s=r.appID,t=r.pageID,u=r.targetID,v=r.boostID;c("BoostedComponentSurveyAndFeedbackActionsV2").surveyAndFeedbackSubmit(s,t,v,u,q.starRating,q.feedbackMessage)}.bind(this),this.$BoostedComponentStarRatingSectionV22=function(q){var r=arguments.length<=1||arguments[1]===undefined?"":arguments[1],s=this.props,t=s.appID,u=s.pageID,v=s.targetID,w=s.boostID;c("BoostedComponentSurveyAndFeedbackActionsV2").surveyAndFeedbackSubmit(t,u,w,v,q?c("BoostedComponentPromotionRatingValues").SATISFIED:c("BoostedComponentPromotionRatingValues").UNSATISFIED,r)}.bind(this),m}k.prototype.render=function(){var l=this.props,m=l.canViewerEdit,n=l.canShowInsights,o=l.shouldShowStarRating;if(!m)return null;var p=null;if(c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_COMPONENT_PROMOTION_RATING_UNIVERSE).getParamBool("should_show_promotion_rating",false))p=c("React").createElement(c("BoostedComponentPromotionRating.react"),{shouldShowPromotionRating:n&&o,onSaveFeedback:this.$BoostedComponentStarRatingSectionV22});else p=c("React").createElement(c("BoostedComponentStarRating.react"),{shouldShowStarRating:n&&o,onSaveFeedback:this.$BoostedComponentStarRatingSectionV21});return c("React").createElement("div",{className:"_3-8t"},p)};f.exports=k}),null);
__d("XBoostedComponentAccountManagerController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/boosted_component/account/manager/",{client_app_id:{type:"FBID"}})}),null);
__d("BoostedComponentResultsSectionV2.react",["cx","fbt","BoostedComponentAddBudgetSectionV2Container.react","BoostedComponentAppID","BoostedComponentDialogUIActionsV2","BoostedComponentDialogViewStates","BoostedComponentErrorBoundaryContainer.react","BoostedComponentInsightsSectionV2Container.react","BoostedComponentOrderSummarySectionV2Container.react","BoostedComponentRef","BoostedComponentStarRatingSectionV2.react","BootloadedComponent.react","JSResource","Link.react","React","SUIBusinessTheme","SUISpinner.react","XBoostedComponentAccountManagerController"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=function l(o){var p=o.canShowInsights,q=o.canViewerEdit,r=o.onEditClick;if(p||!q)return null;return c("React").createElement("div",{className:"_3stx"},i._("Want to make a change? {edit promotion link}",[i.param("edit promotion link",c("React").createElement(c("Link.react"),{onClick:r},i._("Edit Promotion")))]))},m=function m(o){if(!o.canViewerEdit||o.placement!==c("BoostedComponentRef").WWW_THIRD_PARTY_EMBEDDED_FLOW)return null;var p=c("XBoostedComponentAccountManagerController").getURIBuilder().getURI();return c("React").createElement("div",{className:"_3-8j"},c("React").createElement(c("Link.react"),{href:p,target:"_blank"},i._("Add colleagues as advertisers to your account")))};j=babelHelpers.inherits(n,c("React").Component);k=j&&j.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=k.constructor).call.apply(o,[this].concat(r)),this.$BoostedComponentResultsSectionV21=function(){var t=this.props,u=t.appID,v=t.targetID,w=t.boostID;c("BoostedComponentDialogUIActionsV2").setActiveDialogTab(c("BoostedComponentDialogViewStates").EDIT,u,v,w)}.bind(this),p}n.prototype.render=function(){var o=this.props,p=o.appID,q=o.boostID,r=o.canShowInsights,s=o.canViewerEdit,t=o.placement,u=o.targetID,v=p===c("BoostedComponentAppID").BOOSTED_LEAD_GEN?null:c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentAddBudgetSectionV2Container"},c("React").createElement(c("BoostedComponentAddBudgetSectionV2Container.react"),this.props));return c("React").createElement("div",null,c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentStarRatingSectionV2"},c("React").createElement(c("BoostedComponentStarRatingSectionV2.react"),this.props)),c("React").createElement(m,{canViewerEdit:s,placement:t}),c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentOrderSummarySectionV2Container"},c("React").createElement(c("BoostedComponentOrderSummarySectionV2Container.react"),babelHelpers["extends"]({},this.props,{canViewerEdit:s}))),c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentInsightsSectionV2Container"},c("React").createElement(c("BoostedComponentInsightsSectionV2Container.react"),this.props)),v,c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentExperimentationNoticeSectionV2Container"},c("React").createElement(c("BootloadedComponent.react"),{appID:p,boostID:q,bootloadLoader:c("JSResource")("BoostedComponentExperimentationNoticeSectionV2Container.react").__setRef("BoostedComponentResultsSectionV2.react"),bootloadPlaceholder:c("React").createElement(c("SUISpinner.react"),{size:"small",theme:c("SUIBusinessTheme")}),targetID:u})),c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"EditMessage"},c("React").createElement(l,{canShowInsights:r,canViewerEdit:s,onEditClick:this.$BoostedComponentResultsSectionV21})))};f.exports=n}),null);
__d("BoostedComponentResultsSectionV2Container.react",["AdsFluxContainer","AdsLWIInstanceUtils","BoostedComponentContainerUtils","BoostedComponentContextStoreV2","BoostedComponentErrorBoundaryContainer.react","BoostedComponentInsightsStoreV2","BoostedComponentResultsSectionV2.react","BoostedComponentSurveyAndFeedbackStoreV2","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded;h=babelHelpers.inherits(l,c("React").Component);i=h&&h.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=i.constructor).call.apply(m,[this].concat(p)),this.state={canShowInsights:false,canViewerEdit:false,dataLoaded:false,shouldShowStarRating:false},n}l.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedComponentContextStoreV2"),c("BoostedComponentInsightsStoreV2"),c("BoostedComponentSurveyAndFeedbackStoreV2")])};l.calculateState=function(m,n){var o=n.appID,p=n.targetID,q=n.boostID,r=j(o,p,q),s=c("BoostedComponentContextStoreV2").getDataByKey(r),t=c("BoostedComponentInsightsStoreV2").getDataByKey(r),u=c("BoostedComponentSurveyAndFeedbackStoreV2").getDataByKey(r),v=k([t,u]);if(!v)return babelHelpers["extends"]({},m,{dataLoaded:v});return{canShowInsights:t.canShowInsights(),canViewerEdit:s.getCanViewerEdit(),dataLoaded:v,shouldShowStarRating:u.getShouldShowStarRating()}};l.prototype.render=function(){var m=this.props,n=m.appID,o=m.boostID,p=m.instanceID,q=m.pageID,r=m.placement,s=m.targetID;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentResultsSectionV2"},c("React").createElement(c("BoostedComponentResultsSectionV2.react"),babelHelpers["extends"]({},this.state,{appID:n,boostID:o,instanceID:p,pageID:q,placement:r,targetID:s})))};f.exports=c("AdsFluxContainer").create(l,{withProps:true,name:f.id})}),null);
__d("BoostedComponentSimilarPromotionsNotice.react",["ix","cx","fbt","AdsFBIconDownsized.react","BIGAdoptionConfig","BoostedComponentAppID","BoostedComponentSectionV2.react","CustomCTAUtils","Image.react","ImageBlock.react","Link.react","React","Text","asset","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k=function k(m,n){__p&&__p();switch(m){case c("BoostedComponentAppID").BOOSTED_POST:return j._("You're currently running a boost for this post.");case c("BoostedComponentAppID").BOOSTED_LOCAL_AWARENESS:return j._("You're currently running a promotion to Promote Your Business Locally.");case c("BoostedComponentAppID").BOOSTED_PAGELIKE:return j._("You're currently running a promotion to get more Page Likes.");case c("BoostedComponentAppID").BOOSTED_WEBSITE:return j._("You're currently running a promotion to get more Website Visits.");case c("BoostedComponentAppID").BOOSTED_CCTA:case c("BoostedComponentAppID").BOOSTED_PAGE:if(n){var o=c("CustomCTAUtils").getCallToActionLabel(n);if(o)return j._("You're currently running a promotion to get more {Call To Action button label} clicks.",[j.param("Call To Action button label",o)]);return j._("You're currently running a promotion to get more Button Clicks.")}default:return j._("You're currently running a similar promotion.")}},l=function l(m){return c("React").createElement(c("BoostedComponentSectionV2.react"),null,c("React").createElement(c("ImageBlock.react"),{className:"_2pi4 _2pia",spacing:"medium"},c("React").createElement(c("AdsFBIconDownsized.react"),{src:c("BIGAdoptionConfig").ads_fbicon_adoption?h("407095"):h("134352")}),c("React").createElement(c("Text"),null,k(m.appID,m.callToActionType)," ",c("React").createElement(c("Link.react"),{href:m.promotionsManagerLink,target:"_blank"},j._("Review your active promotions.")))))};f.exports=l}),null);
__d("BoostedComponentSimilarPromotionsNoticeContainer.react",["AdsFluxContainer","AdsLWIInstanceUtils","BoostedActionCreativeStoreV2","BoostedComponentAppIDUtils","BoostedComponentContainerUtils","BoostedComponentDialogUIStoreV2","BoostedComponentErrorBoundaryContainer.react","BoostedComponentSimilarPromotionsNotice.react","BoostedComponentStoreState","BoostedComponentURIStoreV2","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded,l=c("BoostedComponentStoreState").getKey;h=babelHelpers.inherits(m,c("React").Component);i=h&&h.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=i.constructor).call.apply(n,[this].concat(q)),this.state={callToActionType:null,dataLoaded:false,promotionsManagerLink:"",similarPromotionsExist:false},o}m.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedActionCreativeStoreV2"),c("BoostedComponentDialogUIStoreV2"),c("BoostedComponentURIStoreV2")])};m.calculateState=function(n,o){var p=o.appID,q=o.targetID,r=o.boostID,s=j(p,q,r),t=c("BoostedActionCreativeStoreV2").getDataByKey(s),u=c("BoostedComponentDialogUIStoreV2").getDataByKey(s),v=c("BoostedComponentURIStoreV2").getDataByKey(s),w=[u,v],x=c("BoostedComponentAppIDUtils").isBoostedPage(p);if(x)w.push(t);var y=k(w);if(!y)return babelHelpers["extends"]({},n);return{callToActionType:x?t.getCallToActionType():null,dataLoaded:y,promotionsManagerLink:v.getPromotionsManagerLink(),similarPromotionsExist:u.get("similar_promotions_exist")}};m.prototype.render=function(){if(!this.state.dataLoaded||!this.state.similarPromotionsExist)return null;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentSimilarPromotionsNotice"},c("React").createElement(c("BoostedComponentSimilarPromotionsNotice.react"),{appID:this.props.appID,callToActionType:this.state.callToActionType,promotionsManagerLink:this.state.promotionsManagerLink}))};f.exports=c("AdsFluxContainer").create(m,{withProps:true,name:f.id})}),null);
__d("BoostedPostDialogLeftColumnSectionV2.react",["cx","fbt","BoostedComponentAdAccountSectionV2Container.react","BoostedComponentAppID","BoostedComponentAudienceSectionV2Container.react","BoostedComponentBudgetAndDurationSectionV2Container.react","BoostedComponentDialogUIActionsV2","BoostedComponentDialogViewStates","BoostedComponentErrorBoundaryContainer.react","BoostedComponentPixelSectionV2Container.react","BoostedComponentQEs","BoostedComponentQEUtils","BoostedComponentRef","BoostedComponentResultsSectionV2Container.react","BoostedComponentSimilarPromotionsNoticeContainer.react","BoostedComponentTestElement","BoostedPostCreativeSectionContainer.react","BootloadedComponent.react","JSResource","React","XUICard.react","XUICardHeader.react","XUICardHeaderTitle.react","boostedComponentGKCheck"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=function l(o){__p&&__p();var p=o.activeDialogTab,q=o.appID,r=o.boostID,s=o.canViewerEdit,t=o.eligibleObjectives,u=o.eventInfo,v=o.instanceID,w=o.isBoosted,x=o.pageID,y=o.placement,z=o.targetID;if(w&&(!s||p!==c("BoostedComponentDialogViewStates").EDIT))return null;var A=false;if(!w)switch(q){case c("BoostedComponentAppID").BOOSTED_EVENT:A=u?u.get("canPromoteOnFBTicket")&&c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_EVENT_ON_FB_TICKET_WWW).getParamBool("can_promote",false,true)||u.get("canPromoteTicket"):false;break;case c("BoostedComponentAppID").BOOSTED_POST:A=true;break;default:A=false}var B=A?c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentObjectiveSectionV2Container"},c("React").createElement(c("BootloadedComponent.react"),{appID:q,boostID:r,bootloadLoader:c("JSResource")("BoostedComponentObjectiveSectionV2Container.react").__setRef("BoostedPostDialogLeftColumnSectionV2.react"),bootloadPlaceholder:c("React").createElement("div",null),isBoosted:w,pageID:x,targetID:z})):null,C=null;if(!w)switch(q){case c("BoostedComponentAppID").BOOSTED_EVENT:if(y!==c("BoostedComponentRef").WWW_EVENT_COMPOSER)C=c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedEventCreativeSectionContainer"},c("React").createElement(c("BootloadedComponent.react"),{appID:q,boostID:r,bootloadLoader:c("JSResource")("BoostedEventCreativeSectionContainer.react").__setRef("BoostedPostDialogLeftColumnSectionV2.react"),bootloadPlaceholder:c("React").createElement("div",null),isBoosted:w,pageID:x,targetID:z}));break;case c("BoostedComponentAppID").BOOSTED_JOB_POST:C=null;break;default:var D=!A||t.size===0;C=c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedPostCreativeSectionContainer"},c("React").createElement(c("BoostedPostCreativeSectionContainer.react"),babelHelpers["extends"]({isFirstSection:D},o)));break}return c("React").createElement("div",null,!w?c("React").createElement(c("BoostedComponentSimilarPromotionsNoticeContainer.react"),{appID:q,boostID:r,pageID:x,targetID:z}):null,B,C,c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentAudienceSectionV2Container"},c("React").createElement(c("BoostedComponentAudienceSectionV2Container.react"),{appID:q,boostID:r,instanceID:v,pageID:x,placement:y,targetID:z})),c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentBudgetAndDurationSectionV2Container"},c("React").createElement(c("BoostedComponentBudgetAndDurationSectionV2Container.react"),{appID:q,boostID:r,instanceID:v,isBoosted:w,pageID:x,targetID:z})),q===c("BoostedComponentAppID").BOOSTED_POST&&c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentPixelSectionV2Container"},c("React").createElement(c("BoostedComponentPixelSectionV2Container.react"),{appID:q,boostID:r,instanceID:v,pageID:x,targetID:z})),c("boostedComponentGKCheck")("lwi_delivery_section_v2")?c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentDeliverySectionV2Container"},c("React").createElement(c("BootloadedComponent.react"),babelHelpers["extends"]({bootloadLoader:c("JSResource")("BoostedComponentDeliverySectionV2Container.react").__setRef("BoostedPostDialogLeftColumnSectionV2.react"),bootloadPlaceholder:c("React").createElement("div",null)},o))):null,c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentAdAccountSectionV2Container"},c("React").createElement(c("BoostedComponentAdAccountSectionV2Container.react"),{appID:q,boostID:r,instanceID:v,pageID:x,placement:y,targetID:z})))},m=function m(o){var p=o.activeDialogTab,q=o.isBoosted;if(!q||p===c("BoostedComponentDialogViewStates").EDIT)return null;var r=o.appID,s=o.boostID,t=o.instanceID,u=o.pageID,v=o.placement,w=o.targetID;return c("React").createElement(c("BoostedComponentResultsSectionV2Container.react"),{appID:r,boostID:s,instanceID:t,pageID:u,placement:v,targetID:w})};j=babelHelpers.inherits(n,c("React").Component);k=j&&j.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=k.constructor).call.apply(o,[this].concat(r)),this.$BoostedPostDialogLeftColumnSectionV21=function(t){var u=this.props,v=u.appID,w=u.targetID,x=u.boostID;c("BoostedComponentDialogUIActionsV2").setActiveDialogTab(t,v,w,x)}.bind(this),p}n.prototype.render=function(){var o=this.props,p=o.activeDialogTab,q=o.boostID,r=o.appID,s=o.canViewerEdit,t=o.eligibleObjectives,u=o.eventInfo,v=o.instanceID,w=o.isBoosted,x=o.pageID,y=o.placement,z=o.targetID;if(r===c("BoostedComponentAppID").BOOSTED_EVENT&&u&&u.get("canPromoteOnFBTicket"))c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_EVENT_ON_FB_TICKET_WWW).logExposure();var A=w&&s?c("React").createElement(c("XUICardHeader.react"),{activeTabKey:p||c("BoostedComponentDialogViewStates").RESULTS,className:"_1-1q",defaultActiveTabKey:c("BoostedComponentDialogViewStates").RESULTS,onTabClick:this.$BoostedPostDialogLeftColumnSectionV21},c("React").createElement(c("XUICardHeaderTitle.react"),{className:"_1-1r",href:"#",key:c("BoostedComponentDialogViewStates").RESULTS},i._("OVERVIEW")),c("React").createElement(c("XUICardHeaderTitle.react"),{className:"_1-1r","data-testid":c("BoostedComponentTestElement").EDIT_TAB,href:"#",key:c("BoostedComponentDialogViewStates").EDIT},i._("EDIT PROMOTION"))):null;return c("React").createElement(c("XUICard.react"),null,A,c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"EditSection"},c("React").createElement(l,{activeDialogTab:p,appID:r,boostID:q,canViewerEdit:s,eligibleObjectives:t,eventInfo:u,instanceID:v,isBoosted:w,pageID:x,placement:y,targetID:z})),c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"ResultsSection"},c("React").createElement(m,{activeDialogTab:p,appID:r,boostID:q,instanceID:v,isBoosted:w,pageID:x,placement:y,targetID:z})))};f.exports=n}),null);
__d("BoostedPostDialogLeftColumnSectionContainerV2.react",["AdsLWIInstanceUtils","BoostedComponentContainerUtils","BoostedComponentContextStoreV2","BoostedComponentDialogUIStoreV2","BoostedComponentErrorBoundaryContainer.react","BoostedComponentExistingAdInfoStoreV2","BoostedComponentNewAdInfoStoreV2","BoostedPostDialogLeftColumnSectionV2.react","FluxContainer","immutable","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded,l=c("immutable").Map;h=babelHelpers.inherits(m,c("React").Component);i=h&&h.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=i.constructor).call.apply(n,[this].concat(q)),this.state={activeDialogTab:null,canViewerEdit:false,eligibleObjectives:c("immutable").List(),eventInfo:l(),isBoosted:false,isModifiedInAdsMangager:false},o}m.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedComponentDialogUIStoreV2"),c("BoostedComponentExistingAdInfoStoreV2"),c("BoostedComponentNewAdInfoStoreV2")])};m.calculateState=function(n,o){var p=o.appID,q=o.targetID,r=o.boostID,s=j(p,q,r),t=c("BoostedComponentContextStoreV2").getDataByKey(s),u=c("BoostedComponentDialogUIStoreV2").getDataByKey(s),v=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(s),w=c("BoostedComponentNewAdInfoStoreV2").getDataByKey(s),x=k([t,v,w]);if(!x)return babelHelpers["extends"]({},n,{dataLoaded:x});return{activeDialogTab:u.get("active_dialog_tab"),canViewerEdit:t.get("can_viewer_edit"),eligibleObjectives:w.getEligibleObjectives(),eventInfo:t.getEventPostInfo(),isBoosted:v.get("is_boosted"),isModifiedInAdsMangager:v.get("is_modified_in_ads_manager")}};m.prototype.render=function(){var n=this.props,o=n.appID,p=n.boostID,q=n.instanceID,r=n.pageID,s=n.placement,t=n.targetID;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedPostDialogLeftColumnSectionV2"},c("React").createElement(c("BoostedPostDialogLeftColumnSectionV2.react"),babelHelpers["extends"]({appID:o,boostID:p,instance:q,pageID:r,placement:s,targetID:t},this.state)))};f.exports=c("FluxContainer").create(m,{withProps:true})}),null);
__d("BoostedPostConstants",["fbt","Link.react","React"],(function a(b,c,d,e,f,g,h){"use strict";var i={APP_ID:"205000946197077",FBTYPE_PHOTO_ALBUM:25,FBTYPE_EVENT:844,DIALOG_MIN_HEIGHT:300,DIALOG_MAX_HEIGHT:525,MAX_DURATION_IN_DAYS:7,TARGET_GROUP_FANS:"fans",TARGET_GROUP_FANS_TEXT:h._("People who like your Page"),TARGET_GROUP_FRIENDS:"fans_and_friends",TARGET_GROUP_FRIENDS_TEXT:h._("People who like your Page and their friends"),GENDER_MALE:"male",GENDER_MALE_TEXT:h._("Male"),GENDER_FEMALE:"female",GENDER_FEMALE_TEXT:h._("Female"),GENDER_BOTH:"male_and_female",GENDER_BOTH_TEXT:h._("Male and Female"),PAYMENT_LABELS:[h._("Current Budget"),h._("Payment"),h._("Account")],ADS_GUIDELINE:c("React").createElement(c("Link.react"),{href:"/help/380502768670092/",target:"_blank"},h._("Ad Guidelines")),ADS_STATUS_LABEL:{PLACED:h._("Order placed"),REVIEW:h._("In Review"),APPROVED:h._("Approved")},BUDGET_KEY:"budgets",PIXEL_LABELS:[h._("Pixel Name"),h._("Category"),h._("Status")]};f.exports=i}),null);
__d("BoostedPostAdPreviewSectionV2.react",["fbt","AdsHscrollAdPreviewsUnit.react","AdsPreviewApiFormats","BoostedComponentAdPreviewActionsV2","BoostedComponentAdsCreationSpec.react","BoostedComponentAppealBoxV2Container.react","BoostedComponentAppID","BoostedComponentGraphAPI","BoostedComponentInstagramAdsDebugDetails.react","BoostedComponentRef","BoostedPostConstants","Link.react","PYMABoostedComponentUtils","React","URI","XUINotice.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=function k(m){if(m.postType===c("BoostedPostConstants").FBTYPE_PHOTO_ALBUM)return c("React").createElement(c("XUINotice.react"),{className:"mbs"},h._({"*":"You are about to boost the most recent {number} photos you have uploaded. The whole album can't be boosted. {Boost album in Help Center}.","_1":"You are about to boost the most recent 1 photo you have uploaded. The whole album can't be boosted. {Boost album in Help Center}."},[h.plural(m.photoCount,"number"),h.param("Boost album in Help Center",c("React").createElement(c("Link.react"),{href:new(c("URI"))("/business/help/956172684432270"),target:"_blank"},"Find out more"))]));var n=m.isBrandedContentSponsorBoost,o=m.placement,p=m.shareOwnerName;if(p&&o===c("BoostedComponentRef").INSIGHTS_POST_SPONSORED_TABLE)return c("React").createElement(c("XUINotice.react"),{className:"mbs"},h._("You're boosting this post as an ad from {Page Name of the branded content post}. It will appear as a sponsored post in News Feed for people in your target audience. You can track results for this ad in Page Insights. You can also share the post without creating an ad.",[h.param("Page Name of the branded content post",p)]));else if(n&&o===c("BoostedComponentRef").INSIGHTS_POST_DIRECT_BOOST)return c("React").createElement(c("XUINotice.react"),{className:"mbs"},h._("Boosting a branded content post allows the post's creator to see how long the promotion runs, your targeting settings, budget, spend and CPM in their Page Insights."));return null};i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;function l(){__p&&__p();var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.$BoostedPostAdPreviewSectionV21=function(r){c("BoostedComponentAdPreviewActionsV2").onPreviewLinkClick(r,this.props.appID,this.props.targetID,this.props.boostID)}.bind(this),this.$BoostedPostAdPreviewSectionV22=function(r,s){c("BoostedComponentAdPreviewActionsV2").onAdFormatSelect(r,s,this.props.appID,this.props.targetID,this.props.boostID)}.bind(this),this.$BoostedPostAdPreviewSectionV23=function(){c("BoostedComponentAdPreviewActionsV2").onToggleInstagramPlacement(this.props.appID,this.props.targetID,this.props.boostID)}.bind(this),this.$BoostedPostAdPreviewSectionV25=function(){c("BoostedComponentAdPreviewActionsV2").loadPreviewFailure(this.props.appID,this.props.targetID,this.props.boostID,this.props.instanceID)}.bind(this),this.$BoostedPostAdPreviewSectionV26=function(){c("BoostedComponentAdPreviewActionsV2").loadPreviewStart(this.props.appID,this.props.targetID,this.props.boostID,this.props.instanceID)}.bind(this),this.$BoostedPostAdPreviewSectionV27=function(){c("BoostedComponentAdPreviewActionsV2").loadPreviewSuccess(this.props.appID,this.props.targetID,this.props.boostID,this.props.instanceID)}.bind(this),n}l.prototype.$BoostedPostAdPreviewSectionV24=function(){var m=this.props.appID;if(m===c("BoostedComponentAppID").BOOSTED_LOCAL_AWARENESS||m===c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS)return c("AdsPreviewApiFormats").MOBILE_FEED_STANDARD;var n=this.props.adPreviewFormats,o=n.includes(c("AdsPreviewApiFormats").DESKTOP_FEED_STANDARD)?c("AdsPreviewApiFormats").DESKTOP_FEED_STANDARD:c("AdsPreviewApiFormats").MOBILE_FEED_STANDARD;return o};l.prototype.render=function(){var m=this.props.placement;if(m===c("BoostedComponentRef").COMPOSER||m===c("BoostedComponentRef").WWW_JOB_POST_COMPOSER)return c("React").createElement(c("XUINotice.react"),{className:"mbs"},h._("You'll see a preview of your ad here after you post."));var n=this.props,o=n.appID,p=n.boostID,q=n.creativeSpec,r=n.instanceID,s=n.photoCount,t=n.postData,u=n.postType,v=n.shareOwnerName,w=n.targetID,x=babelHelpers.objectWithoutProperties(n,["appID","boostID","creativeSpec","instanceID","photoCount","postData","postType","shareOwnerName","targetID"]),y=q.toJS();return c("React").createElement("div",null,c("React").createElement(c("BoostedComponentAppealBoxV2Container.react"),{appID:o,boostID:p,instanceID:r,targetID:w}),c("React").createElement(k,{isBrandedContentSponsorBoost:!!y.branded_content_sponsor_page_id,photoCount:s,placement:m,postType:u,shareOwnerName:v}),c("React").createElement(c("AdsHscrollAdPreviewsUnit.react"),babelHelpers["extends"]({},x,{apiAdFormats:this.props.adPreviewFormats,apiVersion:c("BoostedComponentGraphAPI").getPageletAPIVersion(),appID:o.toString(),creative:y,defaultSelectedAdFormat:this.$BoostedPostAdPreviewSectionV24(),isInstagramCandidatePost:c("PYMABoostedComponentUtils").isInstagramCandidatePost(w),instagramOptInCallback:this.$BoostedPostAdPreviewSectionV23,onAdFormatSelect:this.$BoostedPostAdPreviewSectionV22,onPreviewLinkClick:this.$BoostedPostAdPreviewSectionV21,onPreviewLoadFailure:this.$BoostedPostAdPreviewSectionV25,onPreviewLoadStart:this.$BoostedPostAdPreviewSectionV26,onPreviewLoadSuccess:this.$BoostedPostAdPreviewSectionV27,postData:t})),c("React").createElement(c("BoostedComponentAdsCreationSpec.react"),{creativeSpec:y}),c("React").createElement(c("BoostedComponentInstagramAdsDebugDetails.react"),{hasInstagramAccount:x.hasInstagramAccount,instagramIneligibleMessage:x.instagramIneligibleMessage,instagramOptedOut:x.instagramOptedOut,instagramPermalink:x.instagramPermalink}))};f.exports=l}),null);
__d("BoostedPostAdPreviewSectionV2Container.react",["AdsCallToActionTypes","AdsFluxContainer","AdsLWIInstanceUtils","AdsPageTypes","AdsPreviewApiFormats","ApiAdCreativeFields","ApiCallToActionFields","ApiObjectStorySpecLinkFields","BoostedComponentAdAccountStoreV2","BoostedComponentAudienceStoreV2","BoostedComponentContainerUtils","BoostedComponentContextStoreV2","BoostedComponentDialogUIStoreV2","BoostedComponentErrorBoundaryContainer.react","BoostedComponentExistingAdInfoStoreV2","BoostedComponentSectionV2Spinner.react","BoostedComponentTextPenaltyStoreV2","BoostedComponentURIStoreV2","BoostedPostAdPreviewSectionV2.react","BoostedPostCreativeStoreV2","CallToActionValueFields","immutable","React","adsLWICurrentInstanceDataSelector","adsLWIDialogStateSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded,l="16505555555",m=c("immutable").Map([[c("AdsPageTypes").DESKTOP_FEED,[c("AdsPreviewApiFormats").DESKTOP_FEED_STANDARD]],[c("AdsPageTypes").MOBILE_FEED,[c("AdsPreviewApiFormats").MOBILE_FEED_STANDARD]],[c("AdsPageTypes").MOBILE_INSTREAM_VIDEO,[c("AdsPreviewApiFormats").INSTREAM_VIDEO_MOBILE]],[c("AdsPageTypes").RIGHT_COLUMN,[c("AdsPreviewApiFormats").RIGHT_COLUMN_STANDARD]],[c("AdsPageTypes").INSTAGRAM_STREAM,[c("AdsPreviewApiFormats").INSTAGRAM_STANDARD]],[c("AdsPageTypes").MOBILE_EXTERNAL,[c("AdsPreviewApiFormats").AUDIENCE_NETWORK_INSTREAM_VIDEO,c("AdsPreviewApiFormats").MOBILE_INTERSTITIAL,c("AdsPreviewApiFormats").MOBILE_NATIVE]]]),n=function n(p){__p&&__p();var q=[];for(var r=p,s=Array.isArray(r),t=0,r=s?r:r[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var u;if(s){if(t>=r.length)break;u=r[t++]}else{t=r.next();if(t.done)break;u=t.value}var v=u;q.push.apply(q,m.get(v,[]))}return c("immutable").Set(q)};h=babelHelpers.inherits(o,c("React").Component);i=h&&h.prototype;function o(){var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=i.constructor).call.apply(p,[this].concat(s)),this.state={adAccountID:"",callToAction:c("immutable").Map(),creativeSpec:c("immutable").Map(),creativeSpecForAdPreview:c("immutable").Map(),dataLoaded:false,desktopPermalinkURI:"",hasInstagramAccount:false,instagramAdsCreativeHelpLink:"",instagramAdsHelpLink:"",instagramIneligibleMessage:null,instagramPermalink:"",instagramOptedOut:true,instanceID:"",isEligibleForCTA:false,isUnpublishedSlideshow:false,objectStorySpecDataType:"",photoCount:null,postData:null,postType:null,placement:"",shareOwnerName:null,shown:true,viewOnMobileAsyncURI:"",adPreviewFormats:c("immutable").Set()},q}o.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedComponentAdAccountStoreV2"),c("BoostedComponentAudienceStoreV2"),c("BoostedComponentContextStoreV2"),c("BoostedComponentDialogUIStoreV2"),c("BoostedComponentExistingAdInfoStoreV2"),c("BoostedComponentTextPenaltyStoreV2"),c("BoostedComponentURIStoreV2"),c("BoostedPostCreativeStoreV2")])};o.calculateState=function(p,q){__p&&__p();var r=q.appID,s=q.targetID,t=q.boostID,u=j(r,s,t),v=c("BoostedComponentAdAccountStoreV2").getState(),w=c("BoostedComponentAudienceStoreV2").getDataByKey(u),x=c("BoostedComponentContextStoreV2").getDataByKey(u),y=c("BoostedPostCreativeStoreV2").getDataByKey(u),z=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(u),A=c("BoostedComponentURIStoreV2").getDataByKey(u),B=k([w,x,y,z,A]),C=z.getIsBoosted();if(!C)B=B&&v.getDataLoaded();if(!B)return babelHelpers["extends"]({},p,{dataLoaded:B});var D=c("BoostedComponentTextPenaltyStoreV2").getDataByKey(u),E=null;if(D.get("dataLoaded")){var F=D.getNewPhotoFBID();E=D.getTextPenaltyPhotoSwapState()==="Neutral"||F==null?null:c("immutable").Map([["link",x.getPageURI()],["photo_replacement_preview_fbid",F]])}return{adAccountID:C?z.getCampaignAdAccountID():v.getSelectedAccountID(),callToAction:y.getCallToAction(),creativeSpec:y.getCreativeSpec(),creativeSpecForAdPreview:y.getValidatedCreativeSpecForAdPreview(),dataLoaded:B,desktopPermalinkURI:A.getDesktopPermalinkURI(),hasInstagramAccount:!!x.getNullableInstagramAccountID(),instagramAdsCreativeHelpLink:A.getInstagramAdsCreativeHelpCenterURI(),instagramAdsHelpLink:A.getInstagramAdsHelpCenterURI(),instagramIneligibleMessage:y.getInstagramValidationExceptionMessage(),instagramPermalink:A.getInstagramPermalinkURI(),instagramOptedOut:w.getHasUserRemovedInstagramPlacement(),instanceID:c("adsLWIDialogStateSelector")().instanceID,isEligibleForCTA:y.getIsEligibleForCTA(),isUnpublishedSlideshow:x.getIsUnpublishedSlideshow()||y.getIsUnpublishedSlideshow(),objectStorySpecDataType:y.getObjectStorySpecDataType(),photoCount:x.getPhotoCount(),postData:E,postType:x.getPostType(),placement:x.getPlacement(),shareOwnerName:y.getShareOwnerName(),viewOnMobileAsyncURI:A.getViewOnMobileAsyncURI(),adPreviewFormats:n(w.getPlacements())}};o.prototype.getCreativeSpec=function(){var p=this.state,q=p.callToAction,r=p.isEligibleForCTA,s=p.objectStorySpecDataType;if(r&&q&&q.get(c("ApiCallToActionFields").TYPE)!==c("AdsCallToActionTypes").TYPES.NO_BUTTON.name){if(q.get(c("ApiCallToActionFields").TYPE)===c("AdsCallToActionTypes").TYPES.WHATSAPP_MESSAGE.name&&!q.getIn([c("ApiCallToActionFields").VALUE,c("CallToActionValueFields").WHATSAPP_NUMBER])){var t=this.state.creativeSpecForAdPreview,u=t.setIn([c("ApiAdCreativeFields").OBJECT_STORY_SPEC,s,c("ApiObjectStorySpecLinkFields").CALL_TO_ACTION,c("ApiCallToActionFields").VALUE,c("CallToActionValueFields").WHATSAPP_NUMBER],l);return u}return this.state.creativeSpecForAdPreview}else return this.state.creativeSpec};o.prototype.render=function(){var p=this.state,q=p.dataLoaded,r=babelHelpers.objectWithoutProperties(p,["dataLoaded"]);if(!q)return c("React").createElement(c("BoostedComponentSectionV2Spinner.react"),{height:600});var s=this.props,t=s.appID,u=s.boostID,v=s.targetID;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedPostAdPreviewSectionV2"},c("React").createElement(c("BoostedPostAdPreviewSectionV2.react"),babelHelpers["extends"]({},r,{appID:t,boostID:u,creativeSpec:this.getCreativeSpec(),postData:this.state.postData,targetID:v})))};f.exports=c("AdsFluxContainer").create(o,{withProps:true,name:f.id})}),null);
__d("BoostedPostRightColumnSectionV2.react",["cx","BoostedComponentAYMTBannerV2Container.react","BoostedComponentErrorBoundaryContainer.react","BoostedComponentRef","BoostedPostAdPreviewSectionV2Container.react","BootloadedComponent.react","JSResource","React","nullthrows"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.render=function(){var l=this.props,m=l.appID,n=l.boostID,o=l.instanceID,p=l.pageID,q=l.placement,r=l.targetID;if(q===c("BoostedComponentRef").INSIGHTS_POST_SPONSORED_TABLE)return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentShareAndBoostPreviewV2Container"},c("React").createElement(c("BootloadedComponent.react"),{appID:m,boostID:n,bootloadLoader:c("JSResource")("BoostedComponentShareAndBoostPreviewV2Container.react").__setRef("BoostedPostRightColumnSectionV2.react"),bootloadPlaceholder:c("React").createElement("div",null),instanceID:o,pageID:p,targetID:c("nullthrows")(r)}));else return c("React").createElement("div",{className:"_r-l"},c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentAYMTBannerV2Container"},c("React").createElement(c("BoostedComponentAYMTBannerV2Container.react"),this.props)),c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedPostAdPreviewSectionV2Container"},c("React").createElement(c("BoostedPostAdPreviewSectionV2Container.react"),this.props)))};function k(){i.apply(this,arguments)}f.exports=k}),null);
__d("BoostedPostMainDialogV2.react",["cx","AdsLWIDialogTwoColumnBody.react","BoostedActionRightColumnSectionV2.react","BoostedComponentAppID","BoostedComponentConfirmationDialogV2Container.react","BoostedComponentConstants","BoostedComponentDialogUIActionsV2","BoostedComponentErrorBoundaryContainer.react","BoostedComponentFooterV2Container.react","BoostedComponentHeaderV2Container.react","BoostedComponentInitUtils","BoostedComponentRef","BoostedComponentTestElement","BoostedComponentV2Utils","BoostedPostDialogLeftColumnSectionContainerV2.react","BoostedPostRightColumnSectionV2.react","DialogExpansion","LayerSlowlyFadeOnHide","LayerSlowlyFadeOnShow","React","XUIDialog.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("BoostedComponentV2Utils").logUnexpectedVersionError,l=c("BoostedComponentV2Utils").logV2ExperimentExposure,m=c("BoostedComponentV2Utils").shouldUseV2BoostedPostButton,n=c("BoostedComponentConstants").DIALOG_WIDTH,o=c("BoostedComponentConstants").DIALOG_MAX_HEIGHT,p=c("BoostedComponentConstants").DIALOG_MIN_HEIGHT,q=c("BoostedComponentConstants").DIALOG_MARGIN,r={LayerSlowlyFadeOnHide:c("LayerSlowlyFadeOnHide"),LayerSlowlyFadeOnShow:c("LayerSlowlyFadeOnShow")},s={DialogExpansion:c("DialogExpansion"),LayerSlowlyFadeOnHide:c("LayerSlowlyFadeOnHide"),LayerSlowlyFadeOnShow:c("LayerSlowlyFadeOnShow")};i=babelHelpers.inherits(t,c("React").Component);j=i&&i.prototype;function t(u){j.constructor.call(this,u);var v=u.accessToken,w=u.appID;if(v)c("BoostedComponentInitUtils").initBoostedComponentApp(w,v)}t.prototype.componentDidMount=function(){var u=this.props,v=u.appID,w=u.targetID,x=u.boostID,y=u.isBoosted,z=u.pageID,A=u.placement;if(v===c("BoostedComponentAppID").BOOSTED_EVENT)l(v,A);c("BoostedComponentDialogUIActionsV2").openDialog(v,w,x,y,A);if(!m(v))k(v,"BoostedPostMainDialogV2","Rendered BoostedPostMainDialogV2 when user is not in V2 test group",z,A)};t.prototype.componentWillReceiveProps=function(u){var v=u.accessToken,w=u.appID;if(v&&(!this.props.accessToken||u.shown&&!this.props.shown))c("BoostedComponentInitUtils").initBoostedComponentApp(w,v)};t.prototype.render=function(){var u=this.props,v=u.appID,w=u.boostID,x=u.checkoutDialogShown,y=u.composerID,z=u.embedded,A=u.instanceID,B=u.isBoosted,C=u.pageID,D=u.placement,E=u.shown,F=u.targetID,G=u.onToggle,H=v===c("BoostedComponentAppID").BOOSTED_EVENT?c("React").createElement(c("BoostedActionRightColumnSectionV2.react"),{appID:v,boostID:w,pageID:C,placement:D,targetID:F}):c("React").createElement(c("BoostedPostRightColumnSectionV2.react"),{appID:v,boostID:w,instanceID:A,pageID:C,placement:D,targetID:F}),I=v===c("BoostedComponentAppID").BOOSTED_EVENT?"BoostedActionRightColumnSectionV2":"BoostedPostRightColumnSectionV2",J=c("React").createElement("div",{className:x?"_35d7":"","data-testid":c("BoostedComponentTestElement").MAIN_DIALOG},c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentHeaderV2Container"},c("React").createElement(c("BoostedComponentHeaderV2Container.react"),{appID:v,boostID:w,instanceID:A,isBoosted:B,pageID:C,placement:D,targetID:F})),c("React").createElement(c("AdsLWIDialogTwoColumnBody.react"),{"data-testid":c("BoostedComponentTestElement").DIALOG_BODY,leftColumn:c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedPostDialogLeftColumnSectionContainerV2"},c("React").createElement(c("BoostedPostDialogLeftColumnSectionContainerV2.react"),{appID:v,boostID:w,instanceID:A,pageID:C,placement:D,targetID:F})),rightColumn:c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:I},H)}),c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentFooterV2Container"},c("React").createElement(c("BoostedComponentFooterV2Container.react"),{appID:v,boostID:w,composerID:y,instanceID:A,pageID:C,placement:D,targetID:F})),c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentConfirmationDialogV2Container"},c("React").createElement(c("BoostedComponentConfirmationDialogV2Container.react"),{appID:v,boostID:w,instanceID:A,pageID:C,placement:D,targetID:F})));if(z)return c("React").createElement("div",{className:"_5-m7 _li"},J);var K=D===c("BoostedComponentRef").WWW_BOOSTED_POST_PICKER?r:s;return c("React").createElement(c("XUIDialog.react"),{behaviors:K,layerHideOnBlur:false,shown:E,width:n,onToggle:G},J)};f.exports=t}),null);
__d("BoostedPostPickerStoreDataRecord",["immutable"],(function a(b,c,d,e,f,g){"use strict";var h,i,j=c("immutable").Record({dataLoaded:undefined,isFetching:undefined,posts:undefined,cursor:undefined,hasNextPage:undefined});h=babelHelpers.inherits(k,j);i=h&&h.prototype;function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("BoostedPostPickerStoreData",["BoostedPostPickerStoreDataRecord","immutable"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("immutable").List();h=babelHelpers.inherits(k,c("BoostedPostPickerStoreDataRecord"));i=h&&h.prototype;function k(){i.constructor.call(this,{dataLoaded:false,isFetching:false,posts:j,cursor:null,hasNextPage:false})}k.prototype.loadData=function(l,m,n){var o=arguments.length<=3||arguments[3]===undefined?false:arguments[3],p=o?this.get("posts").concat(l):c("immutable").List(l);return this.withMutations(function(q){q.set("isFetching",false).set("dataLoaded",true).set("posts",p).set("hasNextPage",m).set("cursor",n)})};f.exports=k}),null);
__d("BoostedPostPickerStore",["AdsDataAtom","BoostedComponentFluxReduceStore","BoostedPostPickerActionTypes","BoostedPostPickerStoreData","immutable","getBoostedItemPickerKey"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j="BoostedPostPickerStore";h=babelHelpers.inherits(k,c("BoostedComponentFluxReduceStore"));i=h&&h.prototype;function k(){var l,m;for(var n=arguments.length,o=Array(n),p=0;p<n;p++)o[p]=arguments[p];return m=(l=i.constructor).call.apply(l,[this].concat(o)),this.storeName=j,m}k.prototype.getInitialState=function(){return c("immutable").Map()};k.prototype.getData=function(l,m){var n=c("getBoostedItemPickerKey")(l,m);return this.getState().get(n)};k.prototype.reduce=function(l,m){var n=m.action;switch(n.type){case c("BoostedPostPickerActionTypes").FETCH_INITIAL_POSTS:case c("BoostedPostPickerActionTypes").FETCH_MORE_POSTS:var o=n.appID,p=n.pageID,q=c("getBoostedItemPickerKey")(p,o),r=l.get(q)||new(c("BoostedPostPickerStoreData"))();r=r.set("isFetching",true);return l.set(q,r);case c("BoostedPostPickerActionTypes").LOAD_INITIAL_POSTS:case c("BoostedPostPickerActionTypes").LOAD_MORE_POSTS:var s=n.type===c("BoostedPostPickerActionTypes").LOAD_MORE_POSTS,t=n.appID,u=n.cursor,v=n.hasNextPage,w=n.pageID,x=n.posts,y=c("getBoostedItemPickerKey")(w,t),z=l.get(y)||new(c("BoostedPostPickerStoreData"))();z=z.loadData(x,v,u,s);return l.set(y,z);default:return l}};f.exports=new k(c("AdsDataAtom"))}),null);
__d("BoostedPostPickerStrings",["fbt"],(function a(b,c,d,e,f,g,h){"use strict";f.exports={DESCRIPTION:h._("Get more people to see and engage with your Page posts"),TITLE:h._("Boost A Post")}}),null);
__d("BoostedPostPickerButton.react",["cx","AdsDataAtom","BoostedComponentErrorBoundaryContainer.react","BoostedComponentV2Utils","BoostedPostPickerActions","BoostedPostPickerDialog.react","BoostedPostPickerStore","BoostedPostPickerStrings","React","ReactDOM","ShimButton.react","XUIButton.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("BoostedComponentV2Utils").BOOSTED_COMPONENT_DIALOG_MOUNT,l=c("BoostedPostPickerStrings").TITLE;i=babelHelpers.inherits(m,c("React").PureComponent);j=i&&i.prototype;function m(n){__p&&__p();j.constructor.call(this,n);this.$BoostedPostPickerButton1=function(){this.props.onClick&&this.props.onClick();c("ReactDOM").render(c("React").createElement(c("BoostedPostPickerDialog.react"),{appID:this.props.appID,hideBackButton:!!this.props.directOpen,pageID:this.props.pageID,placement:this.props.placement,onBackButtonClick:this.$BoostedPostPickerButton2,onToggle:this.$BoostedPostPickerButton3}),k)}.bind(this);this.$BoostedPostPickerButton3=function(o){if(!o)this.$BoostedPostPickerButton2()}.bind(this);if(n.fetchInitialPosts){c("AdsDataAtom").explicitlyRegisterStore(c("BoostedPostPickerStore"));c("BoostedPostPickerActions").fetchPosts(n.pageID,n.appID,n.placement)}}m.prototype.$BoostedPostPickerButton2=function(){c("ReactDOM").unmountComponentAtNode(k)};m.prototype.render=function(){var n=this.props.customComponent,o=n?c("React").createElement(c("ShimButton.react"),{onClick:this.$BoostedPostPickerButton1},n):c("React").createElement(c("XUIButton.react"),{className:"_4dyi",label:this.props.buttonLabel,ref:"button",size:this.props.size,use:this.props.use,onClick:this.$BoostedPostPickerButton1});return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedPostPickerDialog"},c("React").createElement("span",null,o))};m.defaultProps={buttonLabel:l,size:"large",use:"confirm"};f.exports=m}),null);
__d("BoostedPostPickerDialog.react",["cx","fbt","AdsLWIDialogFooter.react","AdsLWIDialogHeader.react","AdsLWIDialogSingleColumnBody.react","BoostedComponentConstants","BoostedComponentSimplifiedFooterStrings","BoostedPostPickerDialogBodyContentContainer.react","React","XUICloseButton.react","XUIDialog.react","XUIDialogButton.react"],(function a(b,c,d,e,f,g,h,i){"use strict";var j,k,l=c("BoostedComponentConstants").DIALOG_WIDTH,m=i._("Select a Post to Boost"),n=c("React").createElement(c("XUICloseButton.react"),{className:"layerCancel _51-t"});j=babelHelpers.inherits(o,c("React").PureComponent);k=j&&j.prototype;function o(p){k.constructor.call(this,p)}o.prototype.render=function(){return c("React").createElement(c("XUIDialog.react"),{layerHideOnBlur:false,shown:true,width:l,onToggle:this.props.onToggle},c("React").createElement(c("AdsLWIDialogHeader.react"),{closeButton:n},m),c("React").createElement(c("AdsLWIDialogSingleColumnBody.react"),null,c("React").createElement(c("BoostedPostPickerDialogBodyContentContainer.react"),{appID:this.props.appID,pageID:this.props.pageID,placement:this.props.placement})),this.props.hideBackButton===true?null:c("React").createElement(c("AdsLWIDialogFooter.react"),{leftContent:c("React").createElement(c("XUIDialogButton.react"),{label:c("BoostedComponentSimplifiedFooterStrings").BACK,size:"xlarge",use:"default",onClick:this.props.onBackButtonClick})}))};f.exports=o}),null);
__d("BoostedPostPickerDialogBodyContent.react",["cx","fbt","BoostedComponentQEs","BoostedComponentQEUtils","BoostedPostDialogRow.react","BoostedPostDialogRowContainer.react","Link.react","React","SUIBusinessTheme","SUISpinner.react","XUICard.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=i._("See More"),m=function m(o){return c("React").createElement(c("XUICard.react"),{className:"_4k4o"},o.isFetching?c("React").createElement(c("SUISpinner.react"),{theme:c("SUIBusinessTheme")}):c("React").createElement(c("Link.react"),{onClick:o.onClick},l))};j=babelHelpers.inherits(n,c("React").PureComponent);k=j&&j.prototype;n.prototype.render=function(){var o=this.props,p=o.pageID,q=o.onSeeMoreClick,r=c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_POST_PICKER_MULTIPLE_BOOST_UNIVERSE).getParamBool("should_show_multiple_boost",false,true),s=null;if(r)s=this.props.posts.map(function(t,u){return c("React").createElement(c("BoostedPostDialogRowContainer.react"),{key:u,pageID:p,permanentCreateMode:true,post:t})});else s=this.props.posts.map(function(t){return c("React").createElement(c("BoostedPostDialogRow.react"),{appID:t.appID,buttonData:t.buttonData,commentCount:t.commentCount,creationTime:t.creationTime,key:t.targetID,message:t.message,name:t.name,pageID:p,permanentCreateMode:false,picture:t.picture,reactionCount:t.reactionCount,shareCount:t.shareCount,targetID:t.targetID})});return c("React").createElement("div",{className:"_4s4v"},s,q&&c("React").createElement(m,{isFetching:this.props.isFetching,onClick:q}))};function n(){j.apply(this,arguments)}f.exports=n}),null);
__d("BoostedPostPickerDialogMultipleBoostTable.react",["fbt","BoostedComponentAppID","BoostedPostDialogButtonV2Container.react","immutable","Link.react","React","SUIAudiencePlatformTheme","SUITable.react","formatDate"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("immutable").List;function l(n){var o=n.boostID,p=n.buttonData,q=n.pageID,r=n.placement,s=n.targetID,t=c("React").createElement(c("Link.react"),null,h._("View Results"));return c("React").createElement("div",null,c("React").createElement(c("BoostedPostDialogButtonV2Container.react"),{appID:c("BoostedComponentAppID").BOOSTED_POST,boostID:o,configData:p.configData,customComponent:t,instanceData:p.instanceData,instanceID:p.instanceID,pageID:q,placement:r,targetID:s}))}i=babelHelpers.inherits(m,c("React").PureComponent);j=i&&i.prototype;m.prototype.render=function(){__p&&__p();var n=this.props,o=n.pageID,p=n.placement,q=n.targetID,r=[{getTitle:function t(u){return c("formatDate")(u.startTime,"m/d")},id:"date",label:"Date",renderItem:function t(u){return c("formatDate")(u.startTime,"m/d")},widthWeight:.6},{getTitle:function t(u){return u.creator},id:"creator",label:"Boosted by",renderItem:function t(u){return u.creator},widthWeight:1},{getTitle:function t(u){return u.audienceName},id:"audience",label:"Audience",renderItem:function t(u){return u.audienceName},widthWeight:1},{id:"viewResult",label:"",renderItem:function t(u){return c("React").createElement(l,{boostID:u.boostID,buttonData:u.buttonData,pageID:o,placement:p,targetID:q})},widthWeight:.5}],s=k(this.props.promotionsData.toJS().map(function(t){t.id=t.boostID;return t}));return c("React").createElement(c("SUITable.react"),{columns:r,items:s,noItemsMessage:"",theme:c("SUIAudiencePlatformTheme"),totalItemCount:this.props.promotionsData.size})};function m(){i.apply(this,arguments)}f.exports=m}),null);
__d("AdsBoostedComponentPagesAdminV2LoadPagesAdminDataErrorDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"BoostedComponentPagesAdmin.LOAD_PAGES_ADMIN_DATA_ERROR");f.exports=h}),null);
__d("AdsBoostedComponentPagesAdminV2LoadPagesAdminDataSuccessDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"BoostedComponentPagesAdmin.LOAD_PAGES_ADMIN_DATA_SUCCESS");f.exports=h}),null);
__d("XBoostedComponentFetchPagesAdminDataController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/boosted_components/fetch_pages_admin_data/",{page_id:{type:"Int",required:true}})}),null);
__d("BoostedComponentPagesAdminDataLoader",["AdsBoostedComponentPagesAdminV2LoadPagesAdminDataErrorDataAction","AdsBoostedComponentPagesAdminV2LoadPagesAdminDataSuccessDataAction","AsyncRequest","AsyncResponse","XBoostedComponentFetchPagesAdminDataController"],(function a(b,c,d,e,f,g){"use strict";var h=function h(i){var j=c("XBoostedComponentFetchPagesAdminDataController").getURIBuilder().setInt("page_id",i).getURI();new(c("AsyncRequest"))(j).setHandler(function(k){c("AdsBoostedComponentPagesAdminV2LoadPagesAdminDataSuccessDataAction").dispatch({data:k.payload,pageID:i})}).setErrorHandler(function(k){c("AdsBoostedComponentPagesAdminV2LoadPagesAdminDataErrorDataAction").dispatch({error:k,pageID:i})}).send()};f.exports={loadPagesAdminData:h}}),null);
__d("BoostedComponentPagesAdminStoreData",["immutable"],(function a(b,c,d,e,f,g){"use strict";var h,i;h=babelHelpers.inherits(j,c("immutable").Record({leadGenTOSAccepted:false,id:"",name:null,shortName:null,uri:null}));i=h&&h.prototype;function j(){h.apply(this,arguments)}f.exports=j}),null);
__d("BoostedComponentPagesAdminStoreV2",["AdsBoostedComponentPagesAdminV2LoadPagesAdminDataErrorDataAction","AdsBoostedComponentPagesAdminV2LoadPagesAdminDataSuccessDataAction","AdsDataAtom","BoostedComponentPagesAdminDataLoader","BoostedComponentPagesAdminStoreData","FluxLoadObjectStore"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("FluxLoadObjectStore"));i=h&&h.prototype;j.prototype.reduce=function(k,l){var m=l.action;switch(m.type){case c("AdsBoostedComponentPagesAdminV2LoadPagesAdminDataSuccessDataAction").actionType:return this.__handleOne(k,m.pageID,m.data);case c("AdsBoostedComponentPagesAdminV2LoadPagesAdminDataErrorDataAction").actionType:return this.__handleOne(k,m.pageID,m.error);default:return k}};j.prototype.__load=function(k){c("BoostedComponentPagesAdminDataLoader").loadPagesAdminData(k)};j.prototype.getPagesAdminData=function(k){return this.get(k)};function j(){h.apply(this,arguments)}f.exports=new j(c("AdsDataAtom"))}),null);
__d("BoostedComponentFooterV2Container.react",["AdsFluxContainer","AdsLWIInstanceUtils","BoostedActionCreativeStoreV2","BoostedComponentAdAccountStoreV2","BoostedComponentAppID","BoostedComponentAudienceStoreV2","BoostedComponentBudgetEstimationStoreV2","BoostedComponentBudgetType","BoostedComponentContainerUtils","BoostedComponentContextStoreV2","BoostedComponentDialogUIStoreV2","BoostedComponentDurationStoreV2","BoostedComponentErrorBoundaryContainer.react","BoostedComponentExistingAdInfoStoreV2","BoostedComponentFooterV2.react","BoostedComponentPagesAdminStoreV2","BoostedComponentSubmisionStatusStoreV2","BoostedComponentSubmissionStatusStoreData","BoostedComponentSurveyAndFeedbackStoreV2","BoostedComponentTextPenaltyPhotoSwapState","BoostedComponentTextPenaltyStoreV2","BoostedComponentURIStoreV2","BoostedComponentValidationStoreV2","BoostedPostCreativeStoreV2","immutable","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded;h=babelHelpers.inherits(l,c("React").Component);i=h&&h.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=i.constructor).call.apply(m,[this].concat(p)),this.state={activeDialogTab:null,adAccountID:"",adCredit:0,adStatus:"",bugReportURI:"",budgetAmount:0,budgetType:null,campaingnAdAccountID:"",campaignGroupID:"",canViewerEditAd:false,checkoutV2ExperimentGroup:null,contactSupportURI:"",creationFlowSurveyURI:null,creativeSpec:c("immutable").Map(),currency:"",dataLoaded:false,dialogDivID:"",dialogShown:false,feedContext:null,hideCancelButton:true,isBoosted:false,isCheckout:false,instagramActorID:null,instagramPlacementEligible:false,instagramPlacementRemoved:false,hasErrors:false,helpCenterURI:"",leadGenTOSAccepted:false,newPhotoID:null,pagesAdminDataFetched:false,resultsFlowSurvey:null,sendFeedbackURI:"",shareType:null,submissionStatusData:new(c("BoostedComponentSubmissionStatusStoreData"))(),textPenaltyPhotoSwapState:c("BoostedComponentTextPenaltyPhotoSwapState").NEUTRAL},n}l.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedComponentAdAccountStoreV2"),c("BoostedComponentAudienceStoreV2"),c("BoostedComponentBudgetEstimationStoreV2"),c("BoostedComponentDialogUIStoreV2"),c("BoostedComponentDurationStoreV2"),c("BoostedComponentExistingAdInfoStoreV2"),c("BoostedComponentSubmisionStatusStoreV2"),c("BoostedComponentSurveyAndFeedbackStoreV2"),c("BoostedComponentTextPenaltyStoreV2"),c("BoostedComponentURIStoreV2"),c("BoostedComponentValidationStoreV2"),c("BoostedActionCreativeStoreV2"),c("BoostedPostCreativeStoreV2")])};l.calculateState=function(m,n){__p&&__p();var o=n.appID,p=n.targetID,q=n.boostID,r=n.pageID,s=j(o,p,q),t=c("BoostedComponentAdAccountStoreV2").getState(),u=c("BoostedComponentAudienceStoreV2").getDataByKey(s),v=c("BoostedComponentBudgetEstimationStoreV2").getDataByKey(s),w=c("BoostedComponentContextStoreV2").getDataByKey(s),x=void 0;if(o===c("BoostedComponentAppID").BOOSTED_POST||o===c("BoostedComponentAppID").BOOSTED_JOB_POST)x=c("BoostedPostCreativeStoreV2").getDataByKey(s);else x=c("BoostedActionCreativeStoreV2").getDataByKey(s);var y=c("BoostedComponentDialogUIStoreV2").getDataByKey(s),z=c("BoostedComponentDurationStoreV2").getDataByKey(s),A=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(s),B=c("BoostedComponentSurveyAndFeedbackStoreV2").getDataByKey(s),C=c("BoostedComponentURIStoreV2").getDataByKey(s),D=c("BoostedComponentValidationStoreV2").getDataByKey(s),E=k([t,u,y,C,x,v,z,B]);if(!E)return babelHelpers["extends"]({},m,{adStatus:A.getAdStatus(),activeDialogTab:y.get("active_dialog_tab"),campaingnAdAccountID:A.getCampaignAdAccountID(),campaignGroupID:A.getCampaignGroupID(),canViewerEditAd:w.getCanViewerEdit(),dataLoaded:E,dialogDivID:y.getDialogDivID(),hideCancelButton:y.getDialogStyle()==="window",isBoosted:A.getIsBoosted(),submissionStatusData:c("BoostedComponentSubmisionStatusStoreV2").getDataByKey(s)});var F=v.getBudgetType(),G=v.getSelectedBudgetValue();if(F===c("BoostedComponentBudgetType").DAILY_BUDGET)G*=z.getCampaignLengthInDays();var H=c("BoostedComponentPagesAdminStoreV2").getPagesAdminData(r),I=H.isLoading(),J=H&&H.hasValue()?H.getValueEnforcing().leadGenTOSAccepted:null,K=c("BoostedComponentTextPenaltyStoreV2").getDataByKey(s),L=K.get("textPenaltyPhotoSwapState"),M=K.get("newPhotoFBID");return{activeDialogTab:y.getActiveDialogTab(),adCredit:t.getCheckoutAdCredit(),adStatus:A.getAdStatus(),adAccountID:t.getSelectedAccountID(),bugReportURI:C.getBugReportURI(),budgetAmount:G,budgetType:F,campaingnAdAccountID:A.getCampaignAdAccountID(),campaignGroupID:A.getCampaignGroupID(),canViewerEditAd:w.getCanViewerEdit(),checkoutV2ExperimentGroup:t.getCheckoutV2ExperiementGroup(),contactSupportURI:C.getContactSupportURI(),creationFlowSurveyURI:y.getShowCreationSurvey()?B.getCreationFlowSurveyURI():null,creativeSpec:x.getCreativeSpec(),currency:t.getCurrency(),dataLoaded:E,dialogDivID:y.getDialogDivID(),dialogShown:y.getDialogShown(),feedContext:w.getFeedContext(),hideCancelButton:y.getDialogStyle()==="window",isBoosted:A.getIsBoosted(),isCheckout:t.getIsAccountInCheckout(),instagramActorID:x.getInstagramActorID(),instagramPlacementEligible:u.getIsInstagramPlacementEligible(),instagramPlacementRemoved:u.getHasUserRemovedInstagramPlacement(),hasErrors:D.getHasErrors(),helpCenterURI:C.getHelpCenterURI(),leadGenTOSAccepted:J,newPhotoID:M,pagesAdminDataFetched:!I,resultsFlowSurvey:B.getResultsFlowSurveyURI(),sendFeedbackURI:C.getSendFeedbackURI(),shareType:o===c("BoostedComponentAppID").BOOSTED_POST?x.getShareType():null,submissionStatusData:c("BoostedComponentSubmisionStatusStoreV2").getDataByKey(s),textPenaltyPhotoSwapState:L}};l.prototype.render=function(){var m=this.props,n=m.appID,o=m.boostID,p=m.composerID,q=m.instanceID,r=m.pageID,s=m.placement,t=m.targetID;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentFooterV2"},c("React").createElement(c("BoostedComponentFooterV2.react"),babelHelpers["extends"]({appID:n,boostID:o,composerID:p,instanceID:q,pageID:r,placement:s,targetID:t},this.state)))};f.exports=c("AdsFluxContainer").create(l,{withProps:true,name:f.id})}),null);
__d("BoostedPostDialogButtonV2Container.react",["AdsFluxContainer","BoostedComponentAdAccountStoreV2","BoostedComponentClientExceptionsTypedLogger","BoostedComponentCommonActionsV2","BoostedComponentConstantsV2","BoostedComponentContainerUtils","BoostedComponentContextStoreV2","BoostedComponentDialogUIStoreV2","BoostedComponentErrorBoundaryContainer.react","BoostedComponentExistingAdInfoStoreV2","BoostedComponentInitUtils","BoostedComponentStoreState","BoostedComponentV2Utils","BoostedPostButtonUtilsV2","BoostedPostDialogButtonV2.react","ErrorUtils","React","adsLWICurrentDialogStateSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentConstantsV2").NEW_BOOST_ID,k=c("BoostedComponentContainerUtils").isDataLoaded,l=c("BoostedComponentStoreState").getKey,m=c("BoostedComponentV2Utils").logNoInstanceIDError;h=babelHelpers.inherits(n,c("React").Component);i=h&&h.prototype;function n(o){__p&&__p();i.constructor.call(this,o);this.state={adStatus:null,autoOpenDialog:false,boostID:null,buttonLabel:"",campaignAdditionalSettings:null,dataLoaded:false,dialogShown:false,iconURL:null,isBoosted:false,isEligible:true,isConfirmButton:true,pageConnectedInstagramAccountID:null,showNux:false,selectedAccountID:null,tooltip:null};var p=o.configData;c("BoostedComponentInitUtils").registerBoostedComponentButtonStores();var q=o.appID,r=o.targetID,s=o.reactComposerID,t=o.instanceID,u=o.instanceData,v=o.permanentCreateMode,w=v?j:o.boostID;if(!t||!u){var x="No instanceID/instanceData\n        instanceID: "+t+"\n        instanceData: "+JSON.stringify(u);m("BoostedPostDialogButtonV2Container",x,q,o.pageID,o.placement,o.boostID,r)}else{u.permanentCreateMode=!!o.permanentCreateMode;u.boostID=w}if(p!==null)c("BoostedComponentCommonActionsV2").loadInitialData(p,q,r,w,t,u,s);else c("BoostedComponentCommonActionsV2").loadInstanceData(t,u)}n.getStores=function(){return[c("BoostedComponentAdAccountStoreV2"),c("BoostedComponentContextStoreV2"),c("BoostedComponentDialogUIStoreV2"),c("BoostedComponentExistingAdInfoStoreV2")]};n.calculateState=function(o,p){__p&&__p();try{var q=p.appID,r=p.placement,s=p.showTooltip,t=p.permanentCreateMode,u=p.targetID,v=t?j:p.boostID,w=l(q,u,v),x=c("BoostedComponentAdAccountStoreV2").getState(),y=x.getSelectedAccountID();if(w!==c("BoostedComponentContextStoreV2").getLastUsedKey()&&o&&o.selectedAccountID===y)return o;var z=c("BoostedComponentContextStoreV2").getDataByKey(w),A=c("BoostedComponentDialogUIStoreV2").getDataByKey(w),B=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(w),C=k([z,A,B]);if(!C)return babelHelpers["extends"]({},o,{dataLoaded:C});var D=A.getButtonLabel(),E=A.get("upsell_icon_url");if(p.buttonLabel){D=p.buttonLabel;E=null}var F=B.get("ad_status"),G=z.getIsEligible(),H=s?c("BoostedPostButtonUtilsV2").getBoostedPostTooltipText(F,r,G,z.getIsUnpublishedSlideshow(),q):null,I=c("adsLWICurrentDialogStateSelector")().dialogState.instanceID,J=I?false:p.autoOpenDialog||A.getAutoOpenDialog();return{adStatus:F,autoOpenDialog:J,boostID:z.get("boost_id"),buttonLabel:D,campaignAdditionalSettings:z.get("campaign_additional_settings"),dataLoaded:C,dialogShown:A.get("dialogShown"),iconURL:E,isBoosted:B.getIsBoosted(),isConfirmButton:c("BoostedPostButtonUtilsV2").isConfirmButton(F,r),isEligible:G,pageConnectedInstagramAccountID:z.get("page_connected_instagram_account_id"),selectedAccountID:y,showNux:A.getShowNUX(),tooltip:H}}catch(K){var L=c("ErrorUtils").normalizeError(K),M=new(c("BoostedComponentClientExceptionsTypedLogger"))().setEvent("container_error").setExceptionMessage(L.message).setExceptionTrace(L.stack).setModuleName(this.name).setEntryPoint(p.placement).setPageID(p.pageID).setSourceAppID(p.appID).setTargetID(p.targetID||null);M.log();throw K}};n.prototype.componentWillReceiveProps=function(o){if(o.instanceID!==this.props.instanceID){var p=o.instanceData,q=o.permanentCreateMode;p.permanentCreateMode=q;p.boostID=q?j:o.boostID;c("BoostedComponentCommonActionsV2").loadInstanceData(o.instanceID,p)}};n.prototype.render=function(){var o=this.props,p=o.appID,q=o.feedContext,r=o.instanceID,s=o.placement,t=o.pageID,u=o.permanentCreateMode,v=o.targetID,w=o.size,x=u?j:this.props.boostID;if(!this.state.dataLoaded){var y=new(c("BoostedComponentClientExceptionsTypedLogger"))().setEvent("render_error").setExceptionMessage("Button Not Rendered").setModuleName("BoostedPostDialogButtonV2Container").setEntryPoint(s).setPageID(t).setSourceAppID(p).setTargetID(v||null);y.log();return null}return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedPostDialogButtonV2"},c("React").createElement(c("BoostedPostDialogButtonV2.react"),babelHelpers["extends"]({},this.state,{appID:p,boostID:x,couponOffer:this.props.couponOffer,customComponent:this.props.customComponent,disableCustomComponentClick:this.props.disableCustomComponentClick,disableFetchOnHover:this.props.disableFetchOnHover,feedContext:q,inline:this.props.inline,instanceID:r,pageID:t,permanentCreateMode:u,placement:s,size:w,stopPropagation:this.props.stopPropagation,targetID:v,onClick:this.props.onClick})))};n.defaultProps={showTooltip:true};f.exports=c("AdsFluxContainer").create(n,{withProps:true,name:f.id})}),null);
__d("BoostedPostMultipleBoostsStoreData",["BoostedComponentAppID","BoostedComponentBaseStoreData","immutable"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j={appID:c("BoostedComponentAppID").BOOSTED_POST,promotionsData:c("immutable").List(),seeAllBoostsDialogShown:false,targetID:null};h=babelHelpers.inherits(k,c("BoostedComponentBaseStoreData")(j));i=h&&h.prototype;k.prototype.getAppID=function(){return this.appID};k.prototype.getPromotionsData=function(){return this.promotionsData};k.prototype.getTargetID=function(){return this.targetID};k.prototype.getSeeAllBoostsDialogShown=function(){return this.seeAllBoostsDialogShown};k.prototype.$BoostedPostMultipleBoostsStoreData1=function(l){return this.promotionsData.findEntry(function(m){return m.boostID===l})};k.prototype.$BoostedPostMultipleBoostsStoreData2=function(l){return this.promotionsData.findIndex(function(m){return m.boostID===l})};k.prototype.setBudgetTotal=function(l,m){var n=this.$BoostedPostMultipleBoostsStoreData1(l),o=n[0],p=n[1];if(o>=0){p=babelHelpers["extends"]({},p,{budgetTotal:m});var q=this.promotionsData.set(o,p);return this.set("promotionsData",q)}return this};k.prototype.deletePromotionData=function(l){var m=this.$BoostedPostMultipleBoostsStoreData2(l);if(m>=0){var n=this.promotionsData["delete"](m);return this.set("promotionsData",n)}return this};k.prototype.editPromotionData=function(l,m,n,o){var p=this.$BoostedPostMultipleBoostsStoreData1(m),q=p[0],r=p[1];if(q>=0){r=babelHelpers["extends"]({},r,{audienceName:l,budgetTotal:n,stopTime:o});var s=this.promotionsData.set(q,r);return this.set("promotionsData",s)}return this};k.prototype.addPromotionData=function(l){var m=this.promotionsData.unshift(l);return this.set("promotionsData",m)};function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("BoostedPostMultipleBoostsStore",["AdsBoostedComponentCommonV2CreateSuccessDataAction","AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction","AdsDataAtom","AdsLWIInstanceUtils","AdsSelectorUtils","BoostedAutomatedAdsCommonActionTypesV2","BoostedComponentAppID","BoostedComponentAppStateStore","BoostedComponentCommonActionTypesV2","BoostedComponentFluxReduceStore","BoostedComponentQEs","BoostedComponentQEUtils","BoostedComponentStoreState","BoostedComponentV2Utils","BoostedPostMultipleBoostsActionTypes","BoostedPostMultipleBoostsStoreData","BoostedPostPickerActionTypes","immutable","adsLWICurrentInstanceDataSelector","isEmpty"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").createRandomInstanceID,k=c("BoostedComponentStoreState").getKey,l=c("BoostedComponentStoreState").BoostedComponentState,m=c("BoostedComponentV2Utils").getKeyData,n=[].concat(c("AdsSelectorUtils").getStoreDispatchTokens([c("adsLWICurrentInstanceDataSelector")]),[c("BoostedComponentAppStateStore").getDispatchToken()]),o="BoostedPostMultipleBoostsStore";h=babelHelpers.inherits(p,c("BoostedComponentFluxReduceStore"));i=h&&h.prototype;function p(){var q,r;for(var s=arguments.length,t=Array(s),u=0;u<s;u++)t[u]=arguments[u];return r=(q=i.constructor).call.apply(q,[this].concat(t)),this.storeName=o,r}p.prototype.getInitialState=function(){return new l({storeName:o})};p.prototype.getDataByKey=function(q){return this.getState().getDataByKey(q)};p.prototype.reduce=function(q,r){__p&&__p();var s=r.action;if(!c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_POST_MULTIPLE_BOOSTS).getParamBool("enabled",false,true))return q;var t=m(s),u=t.appID,v=t.boostID,w=t.targetID,x=s.data;if(u!==c("BoostedComponentAppID").BOOSTED_POST)return q;var y=k(u,w,null);switch(s.type){case c("BoostedPostMultipleBoostsActionTypes").INIT_STORE:case c("BoostedPostPickerActionTypes").LOAD_MULTIPLE_BOOST_POSTS:var z=s.promotionsData,A=new(c("BoostedPostMultipleBoostsStoreData"))({dataLoaded:true,appID:u,promotionsData:c("immutable").List(z),targetID:w});return q.setDataByKey(y,A);case c("BoostedComponentCommonActionTypesV2").DELETE_SUCCESS:var B=q.getDataByKey(y);if(B){B=B.deletePromotionData(v);return q.setDataByKey(y,B)}return q;case c("BoostedComponentCommonActionTypesV2").ADD_BUDGET_SUCCESS:case c("BoostedComponentCommonActionTypesV2").EDIT_SUCCESS:var C=x.existing_ad_info_store_data,D=q.getDataByKey(y);if(!c("isEmpty")(C)&&D instanceof c("BoostedPostMultipleBoostsStoreData")){var E=C.audience_name,F=C.budget,G=C.selected_campaign_stop_time;D=D.editPromotionData(E,v,F,G);return q.setDataByKey(y,D)}return q;case c("BoostedAutomatedAdsCommonActionTypesV2").CONVERSION_UPSELL_CREATE_SUCCESS:case c("AdsBoostedComponentCommonV2CreateSuccessDataAction").actionType:case c("AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction").actionType:c("AdsDataAtom").waitFor(n);var H=c("adsLWICurrentInstanceDataSelector")(),I=j(),J=H?babelHelpers["extends"]({},H.toJS(),{boostID:v}):{boostID:v},K=x.context_store_data,L=x.existing_ad_info_store_data,M=x.duration_store_data;if(!c("isEmpty")(L)&&!c("isEmpty")(K)&&!c("isEmpty")(M)){var N=L.ad_status,O=L.audience_name,P=L.budget,Q=L.creator_name,R=L.currency,S=L.spent,T=L.selected_campaign_stop_time,U=K.can_viewer_edit,V=M.campaign_start_time,W={adStatus:N,audienceName:O,boostID:v,budgetSpent:S,budgetTotal:P,buttonData:{configData:null,instanceData:J,instanceID:I},creator:Q,currency:R,performanceIndicator:"",performanceIndicatorValue:0,reach:0,canPromotionsBedEdited:U,startTime:V,stopTime:T},X=q.getDataByKey(y);if(!(X instanceof c("BoostedPostMultipleBoostsStoreData")))X=new(c("BoostedPostMultipleBoostsStoreData"))({dataLoaded:true,appID:u,targetID:w});X=X.addPromotionData(W);return q.setDataByKey(y,X)}return q;case c("BoostedPostMultipleBoostsActionTypes").SHOW_SEE_ALL_BOOSTS_DIALOG:var Y=q.getDataByKey(y);if(Y){Y=Y.set("seeAllBoostsDialogShown",true);return q.setDataByKey(y,Y)}return q;case c("BoostedPostMultipleBoostsActionTypes").HIDE_SEE_ALL_BOOSTS_DIALOG:var Z=q.getDataByKey(y);if(Z){Z=Z.set("seeAllBoostsDialogShown",false);return q.setDataByKey(y,Z)}return q;default:return q}};f.exports=new p(c("AdsDataAtom"))}),null);
__d("BoostedPostDialogRowContainer.react",["AdsFluxContainer","BoostedComponentErrorBoundaryContainer.react","BoostedComponentRef","BoostedComponentStoreState","BoostedPostDialogRow.react","BoostedPostMultipleBoostsStore","BoostedPostPickerActions","immutable","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentStoreState").getKey,k=c("immutable").List;h=babelHelpers.inherits(l,c("React").Component);i=h&&h.prototype;function l(m){i.constructor.call(this,m);this.state={promotionsData:k()};c("BoostedPostPickerActions").fetchMultipleBoostsOfPost(this.props.pageID,this.props.post.targetID,c("BoostedComponentRef").WWW_CONSOLIDATE_ENTRY_POINT)}l.getStores=function(){return[c("BoostedPostMultipleBoostsStore")]};l.calculateState=function(m,n){var o=n.post,p=o.appID,q=o.targetID,r=j(p,q,null),s=c("BoostedPostMultipleBoostsStore").getDataByKey(r);if(s.size===0)return{promotionsData:k()};return{promotionsData:s.getPromotionsData()}};l.prototype.render=function(){var m=this.props.post;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),null,c("React").createElement(c("BoostedPostDialogRow.react"),{appID:m.appID,buttonData:m.buttonData,commentCount:m.commentCount,creationTime:m.creationTime,key:m.targetID,message:m.message,name:m.name,pageID:this.props.pageID,permanentCreateMode:this.props.permanentCreateMode,picture:m.picture,promotionsData:this.state.promotionsData,reactionCount:m.reactionCount,shareCount:m.shareCount,targetID:m.targetID}))};f.exports=c("AdsFluxContainer").create(l,{withProps:true,name:f.id})}),null);
__d("BoostedPostMainDialogV2Container.react",["AdsFluxContainer","AdsLWIInstanceUtils","AdsLWIProductUtils","AdsSelectorUtils","BoostedComponentCommonActionsV2","BoostedComponentContainerUtils","BoostedComponentContextStoreV2","BoostedComponentDialogUIActionsV2","BoostedComponentDialogUIStoreV2","BoostedComponentErrorBoundaryContainer.react","BoostedComponentExistingAdInfoStoreV2","BoostedComponentInitUtils","BoostedPostMainDialogV2.react","React","adsLWICurrentInstanceDataSelector","adsLWIDefaultKeySelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("AdsLWIProductUtils").convertAppIDToProduct,l=c("BoostedComponentContainerUtils").isDataLoaded;h=babelHelpers.inherits(m,c("React").Component);i=h&&h.prototype;function m(n){__p&&__p();i.constructor.call(this,n);this.state={accessToken:null,boostID:"",checkoutDialogShown:false,composerID:null,isBoosted:false,shown:false};if(n.useWithoutButton){var o=n.appID,p=n.targetID,q=n.boostID,r=n.instanceID,s=n.pageID,t=n.placement,u=n.permanentCreateMode;c("BoostedComponentInitUtils").registerBoostedComponentButtonStores();c("BoostedComponentInitUtils").registerBoostedComponentDialogStores();var v={appID:o,boostID:q,pageID:s,placement:t,product:k(o),targetID:p};c("BoostedComponentDialogUIActionsV2").openStandaloneDialog(r,s,o,p,q,t,v);if(!n.buttonDataLoaded)c("BoostedComponentCommonActionsV2").fetchAllBoostedComponentData(o,p,q,s,t,n.embedded?"window":"dialog",r,u)}}m.getStores=function(){return[].concat(c("AdsSelectorUtils").getStores([c("adsLWIDefaultKeySelector"),c("adsLWICurrentInstanceDataSelector")]),[c("BoostedComponentContextStoreV2"),c("BoostedComponentDialogUIStoreV2"),c("BoostedComponentExistingAdInfoStoreV2")])};m.calculateState=function(n,o){__p&&__p();var p=o.appID,q=o.targetID,r=o.boostID,s=void 0;if(o.permanentCreateMode){var t=c("adsLWICurrentInstanceDataSelector")();s=c("adsLWIDefaultKeySelector")()||j(p,q,r);r=t&&t.boostID||r}else s=j(p,q,r);var u=c("BoostedComponentContextStoreV2").getDataByKey(s),v=c("BoostedComponentDialogUIStoreV2").getDataByKey(s),w=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(s),x=l([u,v,w]);if(!x)return babelHelpers["extends"]({},n,{dataLoaded:x,shown:v.get("dialogShown")});return{accessToken:u.get("access_token"),boostID:r,checkoutDialogShown:v.getCheckoutDialogShown(),composerID:u.getComposerID(),isBoosted:w.getIsBoosted(),shown:v.getDialogShown()}};m.prototype.render=function(){var n=this.props,o=n.appID,p=n.embedded,q=n.instanceID,r=n.pageID,s=n.placement,t=n.targetID,u=n.useWithoutButton,v=n.onToggle,w=this.state.boostID||this.props.boostID;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedPostMainDialogV2"},c("React").createElement(c("BoostedPostMainDialogV2.react"),{accessToken:this.state.accessToken,appID:o,boostID:w,checkoutDialogShown:this.state.checkoutDialogShown,composerID:this.state.composerID,embedded:!!p,instanceID:q,isBoosted:this.state.isBoosted,pageID:r,placement:s,shown:this.state.shown,targetID:t,useWithoutButton:u,onToggle:v}))};f.exports=c("AdsFluxContainer").create(m,{withProps:true,name:f.id})}),null);
__d("BoostedPostPickerDialogBodyContentContainer.react",["AdsFluxContainer","BoostedComponentErrorBoundaryContainer.react","BoostedPostPickerActions","BoostedPostPickerDialogBodyContent.react","BoostedPostPickerStore","immutable","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j={cursor:null,hasNextPage:false,isFetching:false,posts:c("immutable").List()};h=babelHelpers.inherits(k,c("React").Component);i=h&&h.prototype;function k(){var l,m;for(var n=arguments.length,o=Array(n),p=0;p<n;p++)o[p]=arguments[p];return m=(l=i.constructor).call.apply(l,[this].concat(o)),this.$BoostedPostPickerDialogBodyContentContainer1=function(){c("BoostedPostPickerActions").fetchMorePosts(this.props.pageID,this.props.appID,this.props.placement,this.state.cursor)}.bind(this),m}k.getStores=function(){return[c("BoostedPostPickerStore")]};k.calculateState=function(l,m){var n=m.appID,o=m.pageID,p=c("BoostedPostPickerStore").getData(o,n);if(!p)return j;return{cursor:p.cursor,hasNextPage:p.hasNextPage,isFetching:p.isFetching,posts:p.posts}};k.prototype.render=function(){return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentSimilarPromotionsNotice"},c("React").createElement(c("BoostedPostPickerDialogBodyContent.react"),{appID:this.props.appID,isFetching:this.state.isFetching,pageID:this.props.pageID,posts:this.state.posts,onSeeMoreClick:this.state.hasNextPage?this.$BoostedPostPickerDialogBodyContentContainer1:null}))};f.exports=c("AdsFluxContainer").create(k,{withProps:true,name:f.id})}),null);
__d("InsightsLineAreaChartProxy.react",["CandelaMigration"],(function a(b,c,d,e,f,g){"use strict";f.exports=c("CandelaMigration").InsightsLineAreaChart}),null);
__d("BUIInsightsLineAreaChart.react",["InsightsLineAreaChartProxy.react","InsightsThemeableChartMixin","React","ReactComponentWithPureRenderMixin","BUIInsightsTheme"],(function a(b,c,d,e,f,g){"use strict";var h=c("React").createClass({displayName:"BUIInsightsLineAreaChart",mixins:[c("InsightsThemeableChartMixin")(function(){return c("BUIInsightsTheme")}),c("ReactComponentWithPureRenderMixin")],statics:{getComponentTheming:function i(){return{styleSheet:{'gridline[orientation="horizontal"]:last-child':{visibility:"hidden"},'gridline[orientation="horizontal"]:last-child:only-child':{visibility:"visible"}}}}},render:function i(){return c("React").createElement(c("InsightsLineAreaChartProxy.react"),babelHelpers["extends"]({},this.props,{theme:this.state.theme}))}});f.exports=h}),null);
__d("FixedDataTableCellDefault.react",["cx","React","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;l.prototype.render=function(){__p&&__p();var m=this.props,n=m.height,o=m.width,p=m.style,q=m.className,r=m.children,s=m.columnKey,t=m.useDefaultCellLayout,u=babelHelpers.objectWithoutProperties(m,["height","width","style","className","children","columnKey","useDefaultCellLayout"]);void s;void t;var v=babelHelpers["extends"]({height:n,width:o},p);if(t===false){if(!q&&c("React").isValidElement(r))return r;return c("React").createElement("div",{className:q},r)}else return c("React").createElement("div",babelHelpers["extends"]({},u,{className:c("joinClasses")("_4lgc","_4h2u",q),style:v}),c("React").createElement("div",{className:c("joinClasses")("_4lgd","_4h2w")},c("React").createElement("div",{className:c("joinClasses")("_4lge","_4h2x")},c("React").createElement("div",{className:"_4h2r"},r))))};function l(){i.apply(this,arguments)}l.propTypes={height:k.number,width:k.number,columnKey:k.oneOfType([k.string,k.number]),useDefaultCellLayout:k.bool};f.exports=l}),null);
__d("FixedDataTableColumn.react",["React"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;j.prototype.render=function(){"use strict";return null};function j(){"use strict";h.apply(this,arguments)}j.__TableColumn__=true;f.exports=j}),null);
__d("FixedDataTableColumnGroup.react",["React"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;j.prototype.render=function(){"use strict";return null};function j(){"use strict";h.apply(this,arguments)}j.__TableColumnGroup__=true;f.exports=j}),null);
__d("FixedDataTableHelper",["Locale","React","FixedDataTableColumnGroup.react","FixedDataTableColumn.react"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("Locale").isRTL()?-1:+1,i=5;function j(n){if(n===null||n===undefined)return"";else return String(n)}function k(n,o){c("React").Children.forEach(n,function(p){if(p.type===c("FixedDataTableColumnGroup.react"))k(p.props.children,o);else if(p.type===c("FixedDataTableColumn.react"))o(p)})}function l(n,o){__p&&__p();var p=[];c("React").Children.forEach(n,function(q){__p&&__p();var r,s=q;if(q.type===c("FixedDataTableColumnGroup.react"))(function(){var t=false,u=[];k(q.props.children,function(v){var w=o(v);if(w!==v)t=true;u.push(w)});if(t)s=c("React").cloneElement(q,{children:u})})();else if(q.type===c("FixedDataTableColumn.react"))s=o(q);p.push(s)});return p}var m={DIR_SIGN:h,CELL_VISIBILITY_TOLERANCE:i,renderToString:j,forEachColumn:k,mapColumns:l};f.exports=m}),null);
__d("FixedDataTableCell.react",["cx","invariant","FixedDataTableCellDefault.react","FixedDataTableHelper","LogicalGridCell.react","LogicalGridCellFocusStrategy","React","joinClasses"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("FixedDataTableHelper").DIR_SIGN,m=c("React").PropTypes;j=babelHelpers.inherits(n,c("React").Component);k=j&&j.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=k.constructor).call.apply(o,[this].concat(r)),this.$FixedDataTableCell1=function(event){this.props.onColumnResize||i(0);this.props.onColumnResize(this.props.left,this.props.width,this.props.minWidth,this.props.maxWidth,this.props.columnKey,event)}.bind(this),p}n.prototype.shouldComponentUpdate=function(o){return!o.isScrolling||this.props.rowIndex!==o.rowIndex};n.prototype.render=function(){__p&&__p();var o=this.props,p=o.height,q=o.width,r=o.columnIndex,s=o.columnKey,t=o.isColumnHeader,u=o.isRowHovered,v=o.useDefaultCellLayout,w=babelHelpers.objectWithoutProperties(o,["height","width","columnIndex","columnKey","isColumnHeader","isRowHovered","useDefaultCellLayout"]),x=babelHelpers["extends"]({},w.style,{height:p,width:q});if(l===1)x.left=w.left;else x.right=w.left;var y=c("joinClasses")("_4lg0"+(w.lastChild?" _4lg2":"")+(w.align==="right"?" _4lg5":"")+(w.align==="center"?" _4lg6":"")+(w.align==="right"?" _4h2p":"")+(w.align==="center"?" _4h2q":"")+(w.highlighted?" _4h2n":"")+" _4h2m",w.className),z=void 0;if(w.onColumnResize){var A={height:p};z=c("React").createElement("div",{className:"_4lg9",style:A,onMouseDown:this.$FixedDataTableCell1},c("React").createElement("div",{className:c("joinClasses")("_4lga","_4lgb"),style:A}))}var B={columnKey:s,height:p,width:q,isRowHovered:u,useDefaultCellLayout:v};if(w.rowIndex>=0)B.rowIndex=w.rowIndex;var C=void 0;if(c("React").isValidElement(w.cell))C=c("React").cloneElement(w.cell,B);else if(typeof w.cell==="function")C=w.cell(B);else C=c("React").createElement(c("FixedDataTableCellDefault.react"),B,w.cell);return c("React").createElement(c("LogicalGridCell.react"),{columnIndex:r,component:c("React").createElement("div",{className:y,style:x}),focusStrategy:c("LogicalGridCellFocusStrategy"),disableFocusRecovery:t},z,C)};n.defaultProps={align:"left",highlighted:false,useDefaultCellLayout:true};n.propTypes_DISABLED_FOR_PERFORMANCE={isColumnHeader:m.bool,isRowHovered:m.bool,isScrolling:m.bool,align:m.oneOf(["left","center","right"]),className:m.string,highlighted:m.bool,width:m.number.isRequired,minWidth:m.number,maxWidth:m.number,height:m.number.isRequired,style:m.object,useDefaultCellLayout:m.bool,cell:m.oneOfType([m.string,m.element,m.func]),columnIndex:m.number,columnKey:m.oneOfType([m.string,m.number]),rowIndex:m.number.isRequired,onColumnResize:m.func,left:m.number.isRequired};f.exports=n}),null);
__d("FixedDataTableCellGroupImpl.react",["cx","FixedDataTableCell.react","FixedDataTableHelper","React","emptyFunction","joinClasses","translateDOMPositionXY"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes,l=c("FixedDataTableHelper").DIR_SIGN;i=babelHelpers.inherits(m,c("React").Component);j=i&&i.prototype;m.prototype.render=function(){__p&&__p();var n=this.props,o=n.columns,p=new Array(o.length),q=0;for(var r=0,s=o.length;r<s;r++){var t=o[r].props;if(!t.allowCellsRecycling||q-n.left<=n.width&&q-n.left+t.width>=0){var u="cell_"+r;p[r]=this.$FixedDataTableCellGroupImpl1(n.rowIndex,n.rowHeight,t,q,u,n.useDefaultCellLayout)}q+=t.width}var v=this.$FixedDataTableCellGroupImpl2(o),w={height:n.height,position:"absolute",width:v,zIndex:n.zIndex};c("translateDOMPositionXY")(w,-1*l*n.left,0);return c("React").createElement("div",{className:"_3pzj",style:w},p)};m.prototype.$FixedDataTableCellGroupImpl1=function(n,o,p,q,r,s){var t=p.isResizable&&this.props.onColumnResize,u=t?this.props.onColumnResize:undefined,v=p.cellClassNameGetter||c("emptyFunction"),w=c("joinClasses")(p.cellClassName,v(n)),x=p.canHover||false;return c("React").createElement(c("FixedDataTableCell.react"),{isRowHovered:x?this.props.isRowHovered:undefined,isScrolling:this.props.isScrolling,align:p.align,className:w,height:o,isColumnHeader:this.props.isColumnHeader,key:r,maxWidth:p.maxWidth,minWidth:p.minWidth,onColumnResize:u,rowIndex:n,columnIndex:p.columnIndex,columnKey:p.columnKey,width:p.width,left:q,cell:p.cell,style:this.props.cellStyle,useDefaultCellLayout:s})};m.prototype.$FixedDataTableCellGroupImpl2=function(n){var o=0;for(var p=0;p<n.length;++p)o+=n[p].props.width;return o};function m(){i.apply(this,arguments)}m.propTypes_DISABLED_FOR_PERFORMANCE={cellStyle:k.object,columns:k.array.isRequired,isColumnHeader:k.bool,isRowHovered:k.bool.isRequired,isScrolling:k.bool,left:k.number,onColumnResize:k.func,rowHeight:k.number.isRequired,rowIndex:k.number.isRequired,useDefaultCellLayout:k.bool,width:k.number.isRequired,zIndex:k.number.isRequired};f.exports=m}),null);
__d("FixedDataTableCellGroup.react",["cx","FixedDataTableHelper","React","FixedDataTableCellGroupImpl.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes,l=c("FixedDataTableHelper").DIR_SIGN;i=babelHelpers.inherits(m,c("React").Component);j=i&&i.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=j.constructor).call.apply(n,[this].concat(q)),this.$FixedDataTableCellGroup1=function(s,t,u,v,w,event){this.props.onColumnResize&&this.props.onColumnResize(this.props.offsetLeft,s-this.props.left+t,t,u,v,w,event)}.bind(this),o}m.prototype.shouldComponentUpdate=function(n){return!n.isScrolling||this.props.rowIndex!==n.rowIndex||this.props.left!==n.left};m.prototype.render=function(){var n=this.props,o=n.offsetLeft,p=babelHelpers.objectWithoutProperties(n,["offsetLeft"]),q={height:p.height};if(l===1)q.left=o;else q.right=o;var r=p.onColumnResize?this.$FixedDataTableCellGroup1:undefined;return c("React").createElement("div",{className:"_3pzk",style:q},c("React").createElement(c("FixedDataTableCellGroupImpl.react"),babelHelpers["extends"]({},p,{onColumnResize:r})))};m.defaultProps={offsetLeft:0};m.propTypes_DISABLED_FOR_PERFORMANCE={isScrolling:k.bool,height:k.number.isRequired,isColumnHeader:k.bool,offsetLeft:k.number,left:k.number,useDefaultCellLayout:k.bool,zIndex:k.number.isRequired};f.exports=m}),null);
__d("FixedDataTableRowImpl.react",["cx","React","FixedDataTableCellGroup.react","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;function l(){__p&&__p();var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.state={isHovered:false},this.$FixedDataTableRowImpl3=function(event){if(this.props.onClick)this.props.onClick(event,this.props.index)}.bind(this),this.$FixedDataTableRowImpl4=function(event){if(this.props.onDoubleClick)this.props.onDoubleClick(event,this.props.index)}.bind(this),this.$FixedDataTableRowImpl5=function(event){if(this.props.onMouseDown)this.props.onMouseDown(event,this.props.index)}.bind(this),this.$FixedDataTableRowImpl6=function(event){if(this.props.canHover)this.setState({isHovered:true});if(this.props.onMouseEnter)this.props.onMouseEnter(event,this.props.index)}.bind(this),this.$FixedDataTableRowImpl7=function(event){if(this.props.canHover)this.setState({isHovered:false});if(this.props.onMouseLeave)this.props.onMouseLeave(event,this.props.index)}.bind(this),n}l.prototype.render=function(){var m={width:this.props.width,height:this.props.height},n="_1gd4 _4li"+(this.props.index%2===1?" _4lo":"")+(this.props.index%2===1?" _52nn":"")+(this.props.index%2===0?" _52no":""),o=this.state.isHovered,p=this.$FixedDataTableRowImpl1(this.props.fixedColumns),q=c("React").createElement(c("FixedDataTableCellGroup.react"),{key:"fixed_cells",isScrolling:this.props.isScrolling,height:this.props.height,isColumnHeader:this.props.isColumnHeader,isRowHovered:o,left:0,width:p,zIndex:2,columns:this.props.fixedColumns,onColumnResize:this.props.onColumnResize,rowHeight:this.props.height,rowIndex:this.props.index,cellStyle:this.props.cellStyle,useDefaultCellLayout:this.props.useDefaultCellLayout}),r=this.$FixedDataTableRowImpl2(p),s=c("React").createElement(c("FixedDataTableCellGroup.react"),{key:"scrollable_cells",isScrolling:this.props.isScrolling,height:this.props.height,isColumnHeader:this.props.isColumnHeader,isRowHovered:o,left:this.props.scrollLeft,offsetLeft:p,width:this.props.width-p,zIndex:0,columns:this.props.scrollableColumns,onColumnResize:this.props.onColumnResize,rowHeight:this.props.height,rowIndex:this.props.index,cellStyle:this.props.cellStyle,useDefaultCellLayout:this.props.useDefaultCellLayout});return c("React").createElement("div",{className:c("joinClasses")(n,this.props.className),"data-testid":this.props["data-testid"],onClick:this.props.onClick?this.$FixedDataTableRowImpl3:null,onDoubleClick:this.props.onDoubleClick?this.$FixedDataTableRowImpl4:null,onMouseDown:this.props.onMouseDown?this.$FixedDataTableRowImpl5:null,onMouseEnter:this.$FixedDataTableRowImpl6,onMouseLeave:this.$FixedDataTableRowImpl7,role:"presentation",style:m},c("React").createElement("div",{className:"_1gd5"},q,s,r))};l.prototype.$FixedDataTableRowImpl1=function(m){var n=0;for(var o=0;o<m.length;++o)n+=m[o].props.width;return n};l.prototype.$FixedDataTableRowImpl2=function(m){if(m>0){var n="_1gd6"+(this.props.scrollLeft>0?" _1gd7":"")+" _1gd8"+(this.props.scrollLeft>0?" _1gd9":""),o={left:m,height:this.props.height};return c("React").createElement("div",{className:n,style:o})}else return undefined};l.propTypes={cellStyle:k.object,canHover:k.bool,"data-testid":k.string,isColumnHeader:k.bool,isScrolling:k.bool,fixedColumns:k.array.isRequired,height:k.number.isRequired,index:k.number.isRequired,scrollableColumns:k.array.isRequired,scrollLeft:k.number.isRequired,useDefaultCellLayout:k.bool,width:k.number.isRequired,onClick:k.func,onDoubleClick:k.func,onColumnResize:k.func};f.exports=l}),null);
__d("FixedDataTableRow.react",["cx","React","FixedDataTableRowImpl.react","LogicalGridRow.react","translateDOMPositionXY"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;l.prototype.render=function(){var m=this.props,n=m.offsetTop,o=m.zIndex,p=m.rowIndex,q=babelHelpers.objectWithoutProperties(m,["offsetTop","zIndex","rowIndex"]),r={width:this.props.width,height:this.props.height,zIndex:o?o:0};c("translateDOMPositionXY")(r,0,n);var s=c("React").createElement("div",{style:r,className:"_1gda _2djg"});return c("React").createElement(c("LogicalGridRow.react"),{component:s,isColumnHeader:this.props.isColumnHeader,rowIndex:p},c("React").createElement(c("FixedDataTableRowImpl.react"),q))};function l(){i.apply(this,arguments)}l.propTypes={"data-testid":k.string,isColumnHeader:k.bool,isScrolling:k.bool,height:k.number.isRequired,rowIndex:k.number,zIndex:k.number,offsetTop:k.number.isRequired,useDefaultCellLayout:k.bool,width:k.number.isRequired};l.defaultProps={isColumnHeader:false};f.exports=l}),null);
__d("FixedDataTableRowBuffer",["invariant","IntegerBufferSet","clamp"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=3,j=6;function k(l,m,n,o,p){__p&&__p();this.getRowsWithUpdatedBuffer=function(){__p&&__p();var q=2*this.$FixedDataTableRowBuffer6,r=Math.max(this.$FixedDataTableRowBuffer3-this.$FixedDataTableRowBuffer6,0);while(r<this.$FixedDataTableRowBuffer3){this.$FixedDataTableRowBuffer11(r,this.$FixedDataTableRowBuffer3,this.$FixedDataTableRowBuffer4-1);r++;q--}r=this.$FixedDataTableRowBuffer4;while(r<this.$FixedDataTableRowBuffer7&&q>0){this.$FixedDataTableRowBuffer11(r,this.$FixedDataTableRowBuffer3,this.$FixedDataTableRowBuffer4-1);r++;q--}return this.$FixedDataTableRowBuffer9}.bind(this);this.getRows=function(q,r){var s=r,t=s,u=q,v=Math.min(q+this.$FixedDataTableRowBuffer5,this.$FixedDataTableRowBuffer7);this.$FixedDataTableRowBuffer3=q;while(u<v||t<this.$FixedDataTableRowBuffer10&&u<this.$FixedDataTableRowBuffer7){this.$FixedDataTableRowBuffer11(u,q,v-1);t+=this.$FixedDataTableRowBuffer8(u);++u;this.$FixedDataTableRowBuffer4=u}return this.$FixedDataTableRowBuffer9}.bind(this);m!==0||h(0);this.$FixedDataTableRowBuffer1=new(c("IntegerBufferSet"))();this.$FixedDataTableRowBuffer2=m;this.$FixedDataTableRowBuffer3=0;this.$FixedDataTableRowBuffer4=0;this.$FixedDataTableRowBuffer5=Math.ceil(n/m)+1;this.$FixedDataTableRowBuffer6=p!=null?p:c("clamp")(Math.floor(this.$FixedDataTableRowBuffer5/2),i,j);this.$FixedDataTableRowBuffer7=l;this.$FixedDataTableRowBuffer8=o;this.$FixedDataTableRowBuffer9=[];this.$FixedDataTableRowBuffer10=n}k.prototype.$FixedDataTableRowBuffer11=function(l,m,n){var o=this.$FixedDataTableRowBuffer1.getValuePosition(l),p=n-m+1,q=p+this.$FixedDataTableRowBuffer6*2;if(o===null&&this.$FixedDataTableRowBuffer1.getSize()>=q)o=this.$FixedDataTableRowBuffer1.replaceFurthestValuePosition(m,n,l);if(o===null){o=this.$FixedDataTableRowBuffer1.getNewPositionForValue(l);this.$FixedDataTableRowBuffer9[o]=l}else this.$FixedDataTableRowBuffer9[o]=l};f.exports=k}),null);
__d("FixedDataTableBufferedRows.react",["cx","React","FixedDataTableRowBuffer","FixedDataTableRow.react","emptyFunction","joinClasses","translateDOMPositionXY"],(function a(b,c,d,e,f,g,h){__p&&__p();var i=c("React").PropTypes,j=c("React").createClass({displayName:"FixedDataTableBufferedRows",propTypes:{bufferRowCount:i.number,canHover:i.bool,defaultRowHeight:i.number.isRequired,firstRowIndex:i.number.isRequired,firstRowOffset:i.number.isRequired,fixedColumns:i.array.isRequired,height:i.number.isRequired,isScrolling:i.bool,offsetTop:i.number.isRequired,onRowClick:i.func,onRowDoubleClick:i.func,onRowMouseDown:i.func,onRowMouseEnter:i.func,onRowMouseLeave:i.func,rowClassNameGetter:i.func,rowStyleGetter:i.func,rowHeightGetter:i.func,rowPositionGetter:i.func.isRequired,rowsCount:i.number.isRequired,scrollableColumns:i.array.isRequired,scrollLeft:i.number.isRequired,showLastRowBorder:i.bool,useDefaultCellLayout:i.bool,width:i.number.isRequired},getInitialState:function k(){this._rowBuffer=new(c("FixedDataTableRowBuffer"))(this.props.rowsCount,this.props.defaultRowHeight,this.props.height,this._getRowHeight,this.props.bufferRowCount);return{rowsToRender:this._rowBuffer.getRows(this.props.firstRowIndex,this.props.firstRowOffset)}},componentWillMount:function k(){this._staticRowArray=[]},componentDidMount:function k(){setTimeout(this._updateBuffer,1e3)},componentWillReceiveProps:function k(l){if(l.rowsCount!==this.props.rowsCount||l.defaultRowHeight!==this.props.defaultRowHeight||l.height!==this.props.height||l.bufferRowCount!==this.props.bufferRowCount)this._rowBuffer=new(c("FixedDataTableRowBuffer"))(l.rowsCount,l.defaultRowHeight,l.height,this._getRowHeight,l.bufferRowCount);if(this.props.isScrolling&&!l.isScrolling)this._updateBuffer();else this.setState({rowsToRender:this._rowBuffer.getRows(l.firstRowIndex,l.firstRowOffset)})},_updateBuffer:function k(){if(this.isMounted())this.setState({rowsToRender:this._rowBuffer.getRowsWithUpdatedBuffer()})},shouldComponentUpdate:function k(){return true},componentWillUnmount:function k(){this._staticRowArray.length=0},render:function k(){var l=this.props,m=l.rowClassNameGetter||c("emptyFunction"),n=l.rowStyleGetter||c("emptyFunction"),o=l.rowPositionGetter,p=this.state.rowsToRender;this._staticRowArray.length=p.length;for(var q=0;q<p.length;++q){var r=p[q],s=this._getRowHeight(r),t=o(r),u=r===l.rowsCount-1&&l.showLastRowBorder;this._staticRowArray[q]=c("React").createElement(c("FixedDataTableRow.react"),{key:q,cellStyle:n(r),canHover:this.props.canHover,"data-testid":"FixedDataTableRow",isScrolling:l.isScrolling,index:r,rowIndex:r,width:l.width,height:s,scrollLeft:Math.round(l.scrollLeft),offsetTop:Math.round(t),fixedColumns:l.fixedColumns,scrollableColumns:l.scrollableColumns,useDefaultCellLayout:l.useDefaultCellLayout,onClick:l.onRowClick,onDoubleClick:l.onRowDoubleClick,onMouseDown:l.onRowMouseDown,onMouseEnter:l.onRowMouseEnter,onMouseLeave:l.onRowMouseLeave,className:c("joinClasses")(m(r),"_3c7k",(u?"_4efq":"")+(u?" _4efs":""))})}var v=l.rowPositionGetter(l.firstRowIndex),w={position:"absolute",pointerEvents:l.isScrolling?"none":"auto"};c("translateDOMPositionXY")(w,0,l.firstRowOffset-v+l.offsetTop);return c("React").createElement("div",{className:"_219p",style:w},this._staticRowArray)},_getRowHeight:function k(l){return this.props.rowHeightGetter?this.props.rowHeightGetter(l):this.props.defaultRowHeight}});f.exports=j}),null);
__d("FixedDataTableColumnResizeHandle.react",["cx","DOMMouseMoveTracker","Locale","React","clamp"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.state={width:0,cursorDelta:0},this.$FixedDataTableColumnResizeHandle2=function(r){if(c("Locale").isRTL())r=-r;var s=this.state.cursorDelta+r,t=c("clamp")(s,this.props.minWidth||0,this.props.maxWidth||Infinity);this.setState({width:t,cursorDelta:s})}.bind(this),this.$FixedDataTableColumnResizeHandle3=function(){this.props.onColumnResizeEnd(this.state.width,this.props.columnKey)}.bind(this),n}l.prototype.componentWillReceiveProps=function(m){if(m.initialEvent&&!this.$FixedDataTableColumnResizeHandle1.isDragging()){this.$FixedDataTableColumnResizeHandle1.captureMouseMoves(m.initialEvent);this.setState({width:m.initialWidth,cursorDelta:m.initialWidth})}if(!m.visible)this.$FixedDataTableColumnResizeHandle1.releaseMouseMoves()};l.prototype.componentDidMount=function(){this.$FixedDataTableColumnResizeHandle1=new(c("DOMMouseMoveTracker"))(this.$FixedDataTableColumnResizeHandle2,this.$FixedDataTableColumnResizeHandle3,document.body)};l.prototype.componentWillUnmount=function(){this.$FixedDataTableColumnResizeHandle1.releaseMouseMoves();this.$FixedDataTableColumnResizeHandle1=null};l.prototype.render=function(){var m={width:this.state.width,height:this.props.height};if(c("Locale").isRTL())m.right=this.props.leftOffset;else m.left=this.props.leftOffset;var n=!this.props.visible;return c("React").createElement("div",{className:"_3487"+(n?" _3488":"")+" _3489",style:m},c("React").createElement("div",{className:"_348a",style:{height:this.props.height}}))};l.propTypes={visible:k.bool.isRequired,height:k.number.isRequired,leftOffset:k.number.isRequired,knobHeight:k.number.isRequired,initialWidth:k.number,minWidth:k.number,maxWidth:k.number,initialEvent:k.object,onColumnResizeEnd:k.func,columnKey:k.oneOfType([k.string,k.number])};f.exports=l}),null);
__d("FixedDataTableHeader.react",["cx","FixedDataTableCellGroup.react","FixedDataTableHelper","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("FixedDataTableHelper").DIR_SIGN;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.$FixedDataTableHeader1=function(r,s,t,u,v,w,event){this.props.onColumnResize(r+this.props.left,s,t,u,v,w,event)}.bind(this),n}l.prototype.render=function(){var m={cellStyle:this.props.cellStyle,left:0,isColumnHeader:true,isRowHovered:false,isScrolling:this.props.isScrolling,offsetLeft:0,useDefaultCellLayout:this.props.useDefaultCellLayout,width:this.props.width,zIndex:0,onColumnResize:this.$FixedDataTableHeader1},n=c("React").createElement("div",{className:"_1eyb _3h1a _1mib _e-x",style:{width:this.props.width,height:this.props.mainHeaderHeight,top:0}},c("React").createElement(c("FixedDataTableCellGroup.react"),babelHelpers["extends"]({},m,{key:"main_header_cell",columns:[this.props.mainHeaderColumn],height:this.props.mainHeaderHeight,rowHeight:this.props.mainHeaderHeight,rowIndex:0}))),o=this.props.childrenHeaderColumns?c("React").createElement("div",{className:"_1eyb _3h1a _1mib",style:{width:this.props.width,height:this.props.childrenHeaderHeight,top:this.props.mainHeaderHeight}},c("React").createElement(c("FixedDataTableCellGroup.react"),babelHelpers["extends"]({},m,{key:"children_header_cells",columns:this.props.childrenHeaderColumns,height:this.props.childrenHeaderHeight,rowHeight:this.props.childrenHeaderHeight,rowIndex:-1}))):null,p={height:this.props.mainHeaderHeight+this.props.childrenHeaderHeight,width:this.props.width};if(k===1)p.left=this.props.left;else p.right=this.props.left;return c("React").createElement("div",{className:"_1eyh _1eyi",style:p},n,o)};f.exports=l}),null);
__d("FixedDataTableHeaderGroupImpl.react",["cx","FixedDataTableHeader.react","FixedDataTableHelper","React","translateDOMPositionXY"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("FixedDataTableHelper").DIR_SIGN;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;l.prototype.render=function(){__p&&__p();var m=this.props.headers.reduce(function(q,r){return q+r.width},0),n=0,o=this.props.headers.map(function(q,r){var s=q.mainHeaderColumn,t=q.mainHeaderHeight,u=q.childrenHeaderColumns,v=q.childrenHeaderHeight,w=q.width,x=s.props.allowCellsRecycling&&(!u||u.every(function(z){return z.props.allowCellsRecycling})),y=void 0;if(!x||n-this.props.left<=this.props.width&&n-this.props.left+w>=0)y=c("React").createElement(c("FixedDataTableHeader.react"),{key:"header_"+r,cellStyle:this.props.cellStyle,mainHeaderColumn:s,mainHeaderHeight:t,childrenHeaderColumns:u,childrenHeaderHeight:v,isScrolling:this.props.isScrolling,left:n,useDefaultCellLayout:this.props.useDefaultCellLayout,width:w,onColumnResize:this.props.onColumnResize});n+=w;return y}.bind(this)),p={height:this.props.height,width:m};c("translateDOMPositionXY")(p,-1*k*this.props.left,0);return c("React").createElement("div",{className:"_63jp",style:p},o)};function l(){i.apply(this,arguments)}f.exports=l}),null);
__d("FixedDataTableHeaderGroup.react",["cx","FixedDataTableHeaderGroupImpl.react","FixedDataTableHelper","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("FixedDataTableHelper").DIR_SIGN;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.$FixedDataTableHeaderGroup1=function(r,s,t,u,v,w,event){this.props.onColumnResize(r+this.props.offsetLeft,s-this.props.left,t,u,v,w,event)}.bind(this),n}l.prototype.render=function(){var m=this.props,n=m.offsetLeft,o=m.zIndex,p=babelHelpers.objectWithoutProperties(m,["offsetLeft","zIndex"]),q={height:this.props.height,width:this.props.width,zIndex:o};if(k===1)q.left=n;else q.right=n;return c("React").createElement("div",{className:"_182x",style:q},c("React").createElement(c("FixedDataTableHeaderGroupImpl.react"),babelHelpers["extends"]({},p,{onColumnResize:this.$FixedDataTableHeaderGroup1})))};f.exports=l}),null);
__d("FixedDataTableUtils",["React","shallowEqual"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h="header",i="footer",j={populateBodyAndFooterColumnInfo:function k(l,m){__p&&__p();var n={};if(m&&j._areColumnSettingsIdentical(l,m.columns)){n.bodyFixedColumns=m.bodyFixedColumns;n.bodyScrollableColumns=m.bodyScrollableColumns;n.footerFixedColumns=m.footerFixedColumns;n.footerScrollableColumns=m.footerScrollableColumns}else{var o=j._splitColumnTypes(l);n.bodyFixedColumns=o.fixed;n.bodyScrollableColumns=o.scrollable;var p=j._splitColumnTypes(j._selectColumnElement(i,l));n.footerFixedColumns=p.fixed;n.footerScrollableColumns=p.scrollable}return n},populateHeaderInfo:function k(l,m,n,o){__p&&__p();var p={};if(o&&o.columns&&j._areColumnSettingsIdentical(l,o.columns)){p.fixedHeaders=o.fixedHeaders;p.scrollableHeaders=o.scrollableHeaders}else{var q=j._splitColumnTypes(l);p.fixedHeaders=j._organizeColumnsIntoHeaders(q.fixed,m,n);p.scrollableHeaders=j._organizeColumnsIntoHeaders(q.scrollable,m,n)}return p},_areColumnSettingsIdentical:function k(l,m){if(l.length!==m.length)return false;return l.every(function(n,o){var p=m[o];return c("shallowEqual")(n.props,p.props)})},_splitColumnTypes:function k(l){__p&&__p();var m=l.filter(function(s){return s.props.fixed}),n=l.filter(function(s){return!s.props.fixed}),o=0,p=0,q=m.map(function(s){var t=c("React").Children.map(s.props.children,function(u){return c("React").cloneElement(u,{columnIndex:p++})});return c("React").cloneElement(s,{columnIndex:o++},t)}),r=n.map(function(s){var t=c("React").Children.map(s.props.children,function(u){return c("React").cloneElement(u,{columnIndex:p++})});return c("React").cloneElement(s,{columnIndex:o++},t)});return{fixed:q,scrollable:r}},_selectColumnElement:function k(l,m){return m.map(function(n){return c("React").cloneElement(n,{cell:n.props[l]})})},_organizeColumnsIntoHeaders:function k(l,m,n){return l.map(function(o){var p=c("React").cloneElement(o,{cell:o.props[h]}),q=o.props,r=q.children,s=q.width,t=q.hideHeaders,u=!!r&&!t,v=u?j._selectColumnElement(h,r):null,w=u?m:m+n,x=u?n:0;return{mainHeaderColumn:p,mainHeaderHeight:w,childrenHeaderColumns:v,childrenHeaderHeight:x,width:s}})}};f.exports=j}),null);
__d("FixedDataTableHeaderRows.react",["cx","FixedDataTableHeaderGroup.react","FixedDataTableUtils","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;function k(l){j.constructor.call(this,l);this.state=this.$FixedDataTableHeaderRows1(l)}k.prototype.componentWillReceiveProps=function(l){this.setState(this.$FixedDataTableHeaderRows1(l,this.state))};k.prototype.render=function(){var l=this.props.groupHeaderHeight+this.props.headerHeight,m=this.state.fixedHeaders.reduce(function(r,s){return r+s.width},0),n={cellStyle:this.props.headerStyle||{},height:l,isScrolling:this.props.isScrolling,useDefaultCellLayout:this.props.useDefaultCellLayout,onColumnResize:this.props.onColumnResize},o=c("React").createElement(c("FixedDataTableHeaderGroup.react"),babelHelpers["extends"]({},n,{key:"fixed_headers",headers:this.state.fixedHeaders,left:0,offsetLeft:0,width:m,zIndex:2})),p=c("React").createElement(c("FixedDataTableHeaderGroup.react"),babelHelpers["extends"]({},n,{key:"scrollable_headers",headers:this.state.scrollableHeaders,left:this.props.scrollX,offsetLeft:m,width:this.props.width-m,zIndex:0})),q=this.$FixedDataTableHeaderRows2(m,l);return c("React").createElement("div",{className:"_1mmd _1mme",style:{zIndex:1,width:this.props.width,height:l}},o,p,q)};k.prototype.$FixedDataTableHeaderRows1=function(l,m){var n=c("FixedDataTableUtils").populateHeaderInfo(l.columns,l.groupHeaderHeight,l.headerHeight,m);return babelHelpers["extends"]({},n,{columns:l.columns})};k.prototype.$FixedDataTableHeaderRows2=function(l,m){if(l>0){var n="_1gd6"+(this.props.scrollX>0?" _1gd7":"")+" _1gd8"+(this.props.scrollX>0?" _1gd9":""),o={left:l,height:m};return c("React").createElement("div",{className:n,style:o})}else return undefined};f.exports=k}),null);
__d("FixedDataTableScrollHelper",["PrefixIntervalTree","clamp"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=5,i={index:0,offset:0,position:0,contentHeight:0};function j(l,m,n,o){__p&&__p();k.call(this);this.$FixedDataTableScrollHelper1=c("PrefixIntervalTree").uniform(l,m);this.$FixedDataTableScrollHelper2=new Array(l);for(var p=0;p<l;++p)this.$FixedDataTableScrollHelper2[p]=m;this.$FixedDataTableScrollHelper3=l;this.$FixedDataTableScrollHelper4=0;this.$FixedDataTableScrollHelper5=l*m;this.$FixedDataTableScrollHelper6=m;this.$FixedDataTableScrollHelper7=o?o:function(){return m};this.$FixedDataTableScrollHelper8=n;this.$FixedDataTableScrollHelper9(0,0)}j.prototype.$FixedDataTableScrollHelper9=function(l,m){var n=m,o=l;while(n<=this.$FixedDataTableScrollHelper8&&o<this.$FixedDataTableScrollHelper3){this.$FixedDataTableScrollHelper10(o);n+=this.$FixedDataTableScrollHelper2[o];o++}};j.prototype.$FixedDataTableScrollHelper11=function(l){var m=l-1;while(m>=0&&m>=l-h){var n=this.$FixedDataTableScrollHelper10(m);this.$FixedDataTableScrollHelper4+=n;m--}};j.prototype.$FixedDataTableScrollHelper10=function(l){__p&&__p();if(l<0||l>=this.$FixedDataTableScrollHelper3)return 0;var m=this.$FixedDataTableScrollHelper7(l);if(m!==this.$FixedDataTableScrollHelper2[l]){var n=m-this.$FixedDataTableScrollHelper2[l];this.$FixedDataTableScrollHelper1.set(l,m);this.$FixedDataTableScrollHelper2[l]=m;this.$FixedDataTableScrollHelper5+=n;return n}return 0};j.prototype.$FixedDataTableScrollHelper12=function(l){__p&&__p();this.$FixedDataTableScrollHelper10(l);var m=l,n=this.$FixedDataTableScrollHelper2[m];while(n<this.$FixedDataTableScrollHelper8&&m>=0){m--;if(m>=0){this.$FixedDataTableScrollHelper10(m);n+=this.$FixedDataTableScrollHelper2[m]}}var o=this.$FixedDataTableScrollHelper1.sumTo(l)-this.$FixedDataTableScrollHelper8;if(o<0)o=0;return o};j.prototype.getLastRowIndex=function(l,m,n){var o=this.$FixedDataTableScrollHelper1.sumUntil(l)-m,p=o+n;return this.$FixedDataTableScrollHelper1.leastUpperBound(p)};j.prototype.getViewportHeight=function(){return this.$FixedDataTableScrollHelper8};var k=function k(){__p&&__p();this.setRowHeightGetter=function(l){this.$FixedDataTableScrollHelper7=l}.bind(this);this.setViewportHeight=function(l){this.$FixedDataTableScrollHelper8=l}.bind(this);this.getContentHeight=function(){return this.$FixedDataTableScrollHelper5}.bind(this);this.getRowPosition=function(l){this.$FixedDataTableScrollHelper10(l);return this.$FixedDataTableScrollHelper1.sumUntil(l)}.bind(this);this.scrollBy=function(l){__p&&__p();if(this.$FixedDataTableScrollHelper3===0)return i;var m=this.$FixedDataTableScrollHelper1.greatestLowerBound(this.$FixedDataTableScrollHelper4);m=c("clamp")(m,0,Math.max(this.$FixedDataTableScrollHelper3-1,0));var n=this.$FixedDataTableScrollHelper1.sumUntil(m),o=m,p=this.$FixedDataTableScrollHelper4,q=this.$FixedDataTableScrollHelper10(o);if(n!==0)p+=q;var r=this.$FixedDataTableScrollHelper2[o]-(p-n);if(l>=0)while(l>0&&o<this.$FixedDataTableScrollHelper3){if(l<r){p+=l;l=0}else{l-=r;p+=r;o++}if(o<this.$FixedDataTableScrollHelper3){this.$FixedDataTableScrollHelper10(o);r=this.$FixedDataTableScrollHelper2[o]}}else if(l<0){l=-l;var s=this.$FixedDataTableScrollHelper2[o]-r;while(l>0&&o>=0){if(l<s){p-=l;l=0}else{p-=s;l-=s;o--}if(o>=0){var t=this.$FixedDataTableScrollHelper10(o);s=this.$FixedDataTableScrollHelper2[o];p+=t}}}var u=this.$FixedDataTableScrollHelper5-this.$FixedDataTableScrollHelper8;p=c("clamp")(p,0,u);this.$FixedDataTableScrollHelper4=p;var v=this.$FixedDataTableScrollHelper1.greatestLowerBound(p);v=c("clamp")(v,0,Math.max(this.$FixedDataTableScrollHelper3-1,0));n=this.$FixedDataTableScrollHelper1.sumUntil(v);var w=n-p;this.$FixedDataTableScrollHelper9(v,w);this.$FixedDataTableScrollHelper11(v);return{index:v,offset:w,position:this.$FixedDataTableScrollHelper4,contentHeight:this.$FixedDataTableScrollHelper5}}.bind(this);this.scrollTo=function(l){__p&&__p();if(this.$FixedDataTableScrollHelper3===0)return i;if(l<=0){this.$FixedDataTableScrollHelper4=0;this.$FixedDataTableScrollHelper9(0,0);return{index:0,offset:0,position:this.$FixedDataTableScrollHelper4,contentHeight:this.$FixedDataTableScrollHelper5}}else if(l>=this.$FixedDataTableScrollHelper5-this.$FixedDataTableScrollHelper8){var m=this.$FixedDataTableScrollHelper3-1;l=this.$FixedDataTableScrollHelper12(m)}this.$FixedDataTableScrollHelper4=l;var n=this.$FixedDataTableScrollHelper1.greatestLowerBound(l);n=c("clamp")(n,0,Math.max(this.$FixedDataTableScrollHelper3-1,0));var o=this.$FixedDataTableScrollHelper1.sumUntil(n),p=o-l;this.$FixedDataTableScrollHelper9(n,p);this.$FixedDataTableScrollHelper11(n);return{index:n,offset:p,position:this.$FixedDataTableScrollHelper4,contentHeight:this.$FixedDataTableScrollHelper5}}.bind(this);this.scrollToRow=function(l,m){l=c("clamp")(l,0,Math.max(this.$FixedDataTableScrollHelper3-1,0));m=c("clamp")(m,-this.$FixedDataTableScrollHelper2[l],0);var n=this.$FixedDataTableScrollHelper1.sumUntil(l);return this.scrollTo(n-m)}.bind(this);this.scrollRowIntoView=function(l){l=c("clamp")(l,0,Math.max(this.$FixedDataTableScrollHelper3-1,0));var m=this.$FixedDataTableScrollHelper1.sumUntil(l),n=m+this.$FixedDataTableScrollHelper2[l];if(m<this.$FixedDataTableScrollHelper4)return this.scrollTo(m);else if(this.$FixedDataTableScrollHelper4+this.$FixedDataTableScrollHelper8<n){var o=this.$FixedDataTableScrollHelper12(l);return this.scrollTo(o)}return this.scrollTo(this.$FixedDataTableScrollHelper4)}.bind(this)};f.exports=j}),null);
__d("FixedDataTableWidthHelper",["React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(o){var p=o.props.width||0;c("React").Children.forEach(o.props.children,function(q){p+=q.props.width});return p}function i(o){return o.reduce(function(p,q){return p+h(q)},0)}function j(o){var p=o.props.flexGrow||0;c("React").Children.forEach(o.props.children,function(q){p+=q.props.flexGrow||0});return p}function k(o){return o.reduce(function(p,q){return p+j(q)},0)}function l(o,p){__p&&__p();var q=k(o);if(p<=0||q<=0)return o.map(function(r){return c("React").cloneElement(r,{width:h(r)})});return o.map(function(r){var s=h(r),t=j(r),u=Math.floor(t/q*p),v=[];c("React").Children.forEach(r.props.children,function(x){return v.push(x)});if(v.length>0){var w=l(v,u);return c("React").cloneElement(r,{width:s+u},w)}else return c("React").cloneElement(r,{width:s+u})})}function m(o,p){var q=[];o.forEach(function(v){if(v.props.children)c("React").Children.forEach(v.props.children,function(w){q.push(w)});else q.push(v)});var r=i(q),s=Math.max(p-r,0),t=l(q,s),u=l(o,s);return{flattenedColumns:t,groupedColumns:u}}var n={getWidth:h,getTotalWidth:i,getFlexGrow:j,getTotalFlexGrow:k,distributeFlexWidth:l,adjustColumnWidths:m};f.exports=n}),null);
__d("FixedDataTableNew.react",["cx","invariant","FixedDataTableBufferedRows.react","FixedDataTableColumnResizeHandle.react","FixedDataTableHeaderRows.react","FixedDataTableRow.react","FixedDataTableScrollHelper","FixedDataTableUtils","FixedDataTableWidthHelper","LogicalGrid.react","React","ReactDOM","ReactWheelHandler","Scrollbar.react","areEqual","debounceCore","emptyFunction","joinClasses","nullthrows","translateDOMPositionXY"],(function aa(ba,a,ca,da,b,ea,fa,c){"use strict";__p&&__p();var d,e,f,g,h=a("React").PropTypes,i={};d=babelHelpers.inherits(j,a("React").Component);e=d&&d.prototype;function j(l){__p&&__p();e.constructor.call(this,l);this.$FixedDataTable5=false;this.$FixedDataTable8=true;this.$FixedDataTable13=function(n){if(this.props.overflowX==="hidden")return false;n=Math.round(n);if(n===0)return false;if(this.props.isRTL)return n>0&&this.state.scrollX>0||n<=0&&this.state.scrollX<this.state.maxScrollX;else return n<0&&this.state.scrollX>0||n>=0&&this.state.scrollX<this.state.maxScrollX}.bind(this);this.$FixedDataTable14=function(n){if(this.props.overflowY==="hidden"||n===0)return false;n=Math.round(n);if(n===0)return false;return n<0&&this.state.scrollY>0||n>=0&&this.state.scrollY<this.state.maxScrollY}.bind(this);this.$FixedDataTable25=function(n){__p&&__p();var o=this.getViewportRange(),p=o.column,q=o.row,r=n[0],s=n[1];if(r<=q[0]||r>=q[1])this.$FixedDataTable2=r;if(s>this.state.bodyFixedColumns.length-1&&(s<=p[0]||s>=p[1]))this.$FixedDataTable3=s;if(this.$FixedDataTable2||this.$FixedDataTable3){this.setState(babelHelpers["extends"]({},this.$FixedDataTable11(this.props,this.state)));this.$FixedDataTable10();this.$FixedDataTable18("keyboard")}}.bind(this);this.$FixedDataTable23=function(n,o,p,q,r,s,event){this.setState({isColumnResizing:true,columnResizingData:{left:o+n-p,width:p,minWidth:q,maxWidth:r,initialEvent:{clientX:event.clientX,clientY:event.clientY,preventDefault:a("emptyFunction")},key:s}})}.bind(this);this.$FixedDataTable21=function(n,o){this.setState({isColumnResizing:false});!!this.props.onColumnResizeEndCallback||c(0);this.props.onColumnResizeEndCallback(n,o)}.bind(this);this.$FixedDataTable24=function(){if(!this.$FixedDataTable5){this.$FixedDataTable5=true;var n=a("ReactDOM").findDOMNode(this);n&&n.addEventListener("wheel",this.$FixedDataTable4.onWheel)}}.bind(this);this.$FixedDataTable16=function(){this.$FixedDataTable5=false;var n=a("ReactDOM").findDOMNode(this);n&&n.removeEventListener("wheel",this.$FixedDataTable4.onWheel)}.bind(this);this.$FixedDataTable12=function(n,o){__p&&__p();if(this.$FixedDataTable8){if(!this.$FixedDataTable6)this.$FixedDataTable17();var p=this.state.scrollX;if(Math.abs(o)>Math.abs(n)&&this.props.overflowY!=="hidden"){var q=this.$FixedDataTable1.scrollBy(Math.round(o)),r=Math.max(0,q.contentHeight-this.state.bodyHeight);this.setState({firstRowIndex:q.index,firstRowOffset:q.offset,scrollY:q.position,scrollContentHeight:q.contentHeight,maxScrollY:r})}else if(n&&this.props.overflowX!=="hidden"){p+=n*(this.props.isRTL?-1:1);p=p<0?0:p;p=p>this.state.maxScrollX?this.state.maxScrollX:p;this.setState({scrollX:p})}this.$FixedDataTable10();this.$FixedDataTable18("wheel")}}.bind(this);this.$FixedDataTable20=function(n){if(this.$FixedDataTable8&&n!==this.state.scrollX){if(!this.$FixedDataTable6)this.$FixedDataTable17();this.setState({scrollX:n});this.$FixedDataTable10();this.$FixedDataTable18("scrollbar")}}.bind(this);this.$FixedDataTable19=function(n){if(this.$FixedDataTable8&&n!==this.state.scrollY){if(!this.$FixedDataTable6)this.$FixedDataTable17();var o=this.$FixedDataTable1.scrollTo(Math.round(n));this.setState({firstRowIndex:o.index,firstRowOffset:o.offset,scrollY:o.position,scrollContentHeight:o.contentHeight});this.$FixedDataTable10();this.$FixedDataTable18("scrollbar")}}.bind(this);this.$FixedDataTable10=function(){if(this.$FixedDataTable8&&this.$FixedDataTable6){this.$FixedDataTable6=false;this.setState({redraw:true});if(this.props.onScrollEnd)this.props.onScrollEnd(this.state.scrollX,this.state.scrollY)}}.bind(this);var m=(l.height===undefined?l.maxHeight:l.height)-(l.headerHeight||0)-(l.footerHeight||0)-(l.groupHeaderHeight||0);this.$FixedDataTable1=new(a("FixedDataTableScrollHelper"))(l.rowsCount,l.rowHeight,m,l.rowHeightGetter);if(l.scrollTop)this.$FixedDataTable1.scrollTo(l.scrollTop);this.$FixedDataTable10=a("debounceCore")(this.$FixedDataTable10,200,this);this.state=this.$FixedDataTable11(l)}j.prototype.componentWillMount=function(){var l=this.props.scrollToRow;if(l!==undefined&&l!==null)this.$FixedDataTable2=l;var m=this.props.scrollToColumn;if(m!==undefined&&m!==null)this.$FixedDataTable3=m;this.$FixedDataTable4=new(a("ReactWheelHandler"))(this.$FixedDataTable12,this.$FixedDataTable13,this.$FixedDataTable14)};j.prototype.$FixedDataTable15=function(){var l=this.state.scrollContentHeight,m=this.state.reservedHeight,n=l+m,o=void 0,p=this.props.height===undefined;if(p&&this.props.maxHeight>n)o=n;else if(this.state.height>n&&this.props.ownerHeight)o=Math.max(n,this.props.ownerHeight);else o=this.state.height+this.state.maxScrollY;if(o!==this.$FixedDataTable9&&this.props.onContentHeightChange)this.props.onContentHeightChange(o);this.$FixedDataTable9=o};j.prototype.componentDidMount=function(){this.$FixedDataTable15()};j.prototype.componentWillUnmount=function(){this.$FixedDataTable16();this.$FixedDataTable8=false};j.prototype.componentWillReceiveProps=function(l){__p&&__p();var m=l.scrollToRow;if(m!==undefined&&m!==null)this.$FixedDataTable2=m;var n=l.scrollToColumn;if(n!==undefined&&n!==null)this.$FixedDataTable3=n;if(this.props.ownerHeight!==l.ownerHeight||this.props.scrollTop!==l.scrollTop)this.$FixedDataTable17();this.$FixedDataTable10();this.$FixedDataTable18("props");this.setState(this.$FixedDataTable11(l,this.state,this.props))};j.prototype.componentDidUpdate=function(){this.$FixedDataTable15()};j.prototype.render=function(){__p&&__p();var l=this.state,m=this.props,n=l.maxScrollY,o=l.maxScrollX>0&&m.overflowX!=="hidden",p=n>0&&m.overflowY!=="hidden",q=o?a("Scrollbar.react").SIZE:0,r=l.height-q-2*m.borderHeight-m.footerHeight,s=l.useGroupHeader?l.groupHeaderHeight:0,t=s+m.headerHeight;r-=t;var u=0,v=m.maxHeight!=null?t+l.bodyHeight:t+r,w=v+m.footerHeight;if(m.ownerHeight!==undefined&&m.ownerHeight<l.height){u=m.ownerHeight-l.height;v=Math.min(v,m.ownerHeight-m.footerHeight-q);r=Math.max(0,v-t)}var x=void 0;if(p)x=a("React").createElement(a("Scrollbar.react"),{size:r,contentSize:r+n,onScroll:this.$FixedDataTable19,verticalTop:t,position:l.scrollY});var y=void 0;if(o){var z=m.width;y=a("React").createElement(k,{contentSize:z+l.maxScrollX,offset:u,onScroll:this.$FixedDataTable20,position:l.scrollX,size:z,isRTL:m.isRTL})}var A=a("React").createElement(a("FixedDataTableColumnResizeHandle.react"),{height:l.height,initialWidth:l.columnResizingData.width||0,minWidth:l.columnResizingData.minWidth||0,maxWidth:l.columnResizingData.maxWidth||Number.MAX_VALUE,visible:!!l.isColumnResizing,leftOffset:l.columnResizingData.left||0,knobHeight:m.headerHeight,initialEvent:l.columnResizingData.initialEvent,onColumnResizeEnd:this.$FixedDataTable21,columnKey:l.columnResizingData.key||0}),B=void 0;if(m.footerHeight)B=a("React").createElement(a("FixedDataTableRow.react"),{key:"footer",isScrolling:this.$FixedDataTable6,className:a("joinClasses")("_3h1b","_1mic"),width:m.width,height:m.footerHeight,index:-1,rowIndex:m.rowsCount,zIndex:1,offsetTop:v,fixedColumns:l.footerFixedColumns,scrollableColumns:l.footerScrollableColumns,scrollLeft:l.scrollX});var C=this.$FixedDataTable22(t),D=a("React").createElement(a("FixedDataTableHeaderRows.react"),{columns:l.groupedColumns,isScrolling:this.$FixedDataTable6,headerHeight:m.headerHeight,headerStyle:m.headerStyle,groupHeaderHeight:l.groupHeaderHeight,scrollX:l.scrollX,useDefaultCellLayout:m.useDefaultCellLayout,width:m.width,onColumnResize:this.$FixedDataTable23}),E=void 0,F=void 0;if(l.scrollY)E=a("React").createElement("div",{className:a("joinClasses")("_3h1c","_3h1d"),style:{top:t}});if(m.ownerHeight!=null&&m.ownerHeight<l.height&&l.scrollContentHeight+l.reservedHeight>m.ownerHeight||l.scrollY<n)F=a("React").createElement("div",{className:a("joinClasses")("_3h1e","_3h1h"),style:{top:v}});var G={};if(this.props["data-testid"])G["data-testid"]=this.props["data-testid"];var H=a("React").createElement("div",{className:"_3h1j",style:{height:w,width:m.width}});return a("React").createElement("div",babelHelpers["extends"]({},G,{className:a("joinClasses")(m.className,"_3h1i","_1mie"),onMouseEnter:this.$FixedDataTable24,onMouseLeave:this.$FixedDataTable16,style:{height:l.height,width:m.width}}),a("React").createElement(a("LogicalGrid.react"),{component:H,isCompositeWidget:true,onCellFocus:this.$FixedDataTable25,onRowKeyPress:this.props.onRowKeyPress,rowCount:this.props.rowsCount},A,D,C,B,E,F),x,y)};j.prototype.$FixedDataTable22=function(l){var m=this.state;return a("React").createElement(a("FixedDataTableBufferedRows.react"),{bufferRowCount:this.props.bufferRowCount,canHover:this.state.canHoverRows,defaultRowHeight:this.props.rowHeight,firstRowIndex:m.firstRowIndex,firstRowOffset:m.firstRowOffset,fixedColumns:m.bodyFixedColumns,height:m.bodyHeight,isScrolling:this.$FixedDataTable6,offsetTop:l,onRowClick:this.props.onRowClick,onRowDoubleClick:this.props.onRowDoubleClick,onRowMouseDown:this.props.onRowMouseDown,onRowMouseEnter:this.props.onRowMouseEnter,onRowMouseLeave:this.props.onRowMouseLeave,rowClassNameGetter:this.props.rowClassNameGetter,rowStyleGetter:this.props.rowStyleGetter,rowHeightGetter:this.props.rowHeightGetter,rowPositionGetter:this.$FixedDataTable1.getRowPosition,rowsCount:this.props.rowsCount,scrollableColumns:m.bodyScrollableColumns,scrollLeft:m.scrollX,showLastRowBorder:!this.props.footerHeight,useDefaultCellLayout:this.props.useDefaultCellLayout,width:this.props.width})};j.prototype.$FixedDataTable11=function(l,m,n){__p&&__p();l.height!==undefined||l.maxHeight!==undefined||c(0);var o=[];if(l.children)a("React").Children.forEach(l.children,function($,ja){if($==null)return;$.type.__TableColumnGroup__||$.type.__TableColumn__||c(0);o.push($)});var p=o.some(function($){return $.type.__TableColumnGroup__}),q=m&&m.firstRowIndex||0,r=m&&m.firstRowOffset||0,s=void 0,t=void 0;if(m&&l.overflowX!=="hidden")s=m.scrollX;else s=l.scrollLeft;if(m&&l.overflowY!=="hidden")t=m.scrollY;else{var u=this.$FixedDataTable1.scrollTo(l.scrollTop);q=u.index;r=u.offset;t=u.position}if(this.$FixedDataTable2!==undefined){var v=this.props.scrollToRowBehavior,w=v==="intoView"?this.$FixedDataTable1.scrollRowIntoView(this.$FixedDataTable2):this.$FixedDataTable1.scrollToRow(this.$FixedDataTable2,v.offsetTop);q=w.index;r=w.offset;t=w.position;delete this.$FixedDataTable2}var x=p?l.groupHeaderHeight:0;if(m&&n&&l.rowsCount!==n.rowsCount){var y=(l.height===undefined?l.maxHeight:l.height)-(l.headerHeight||0)-(l.footerHeight||0)-(l.groupHeaderHeight||0);this.$FixedDataTable1=new(a("FixedDataTableScrollHelper"))(l.rowsCount,l.rowHeight,y,l.rowHeightGetter);var z=this.$FixedDataTable1.scrollToRow(q,r);q=z.index;r=z.offset;t=z.position}else if(m&&n&&l.rowHeightGetter!==n.rowHeightGetter)this.$FixedDataTable1.setRowHeightGetter(l.rowHeightGetter);var A=l.isColumnResizing&&m?m.columnResizingData:i,B=a("FixedDataTableWidthHelper").adjustColumnWidths(o,l.width),C=B.flattenedColumns,D=B.groupedColumns,E=a("FixedDataTableUtils").populateBodyAndFooterColumnInfo(C,m);if(this.$FixedDataTable3!=null){var F=E.bodyFixedColumns.length;if(this.$FixedDataTable3>=F){var G=0,H=void 0,I=void 0;for(H=0;H<E.bodyFixedColumns.length;++H){I=E.bodyFixedColumns[H];G+=I.props.width}var J=Math.min(this.$FixedDataTable3-F,E.bodyScrollableColumns.length-1),K=0;for(H=0;H<J;++H){I=E.bodyScrollableColumns[H];K+=I.props.width}var L=l.width-G,M=E.bodyScrollableColumns[J].props.width,N=K+M-L;if(s==null||s<N)s=N;if(s>K)s=K}delete this.$FixedDataTable3}var O=a("FixedDataTableWidthHelper").getTotalWidth(C),P=O>l.width&&l.overflowX!=="hidden",Q=(m&&m.horizontalScrollbarVisible)!==P;if(l.onChangeHorizontalScrollbarVisibility&&Q)l.onChangeHorizontalScrollbarVisibility(P);var R=l.height===undefined,S=Math.round(R?l.maxHeight:l.height),T=l.footerHeight+l.headerHeight+x+2*l.borderHeight+(P?a("Scrollbar.react").SIZE:0),U=this.$FixedDataTable1.getContentHeight(),V=U+T,W=S-T,X=Math.max(0,O-l.width),Y=Math.max(0,U-W);s=Math.min(s||0,X);t=Math.min(t,Y);if(!Y){if(R)S=V;W=V-T}var ga=this.$FixedDataTable1.getViewportHeight();this.$FixedDataTable1.setViewportHeight(W);if(t>0&&W>ga){var Z=this.$FixedDataTable1.scrollBy(0);q=Z.index;r=Z.offset;t=Z.position}var ha=C.some(function($){return!!$.props.canHover}),ia=babelHelpers["extends"]({isColumnResizing:!!m&&m.isColumnResizing},E,l,{canHoverRows:ha,columns:C,groupedColumns:D,columnResizingData:A,firstRowIndex:q,firstRowOffset:r,horizontalScrollbarVisible:P,maxScrollX:X,maxScrollY:Y,redraw:true,reservedHeight:T,scrollContentHeight:U,scrollX:s,scrollY:t,bodyHeight:W,height:S,groupHeaderHeight:x,useGroupHeader:p});return ia};j.prototype.$FixedDataTable17=function(){if(this.$FixedDataTable8&&!this.$FixedDataTable6){this.$FixedDataTable6=true;if(this.props.onScrollStart)this.props.onScrollStart(this.state.scrollX,this.state.scrollY)}};j.prototype.$FixedDataTable18=function(l){var m=this.props.onRangeChange;if(m){var n=this.getViewportRange();if(!a("areEqual")(n,this.$FixedDataTable7)){this.$FixedDataTable7=n;m(n,{sourceEventType:l})}}else this.$FixedDataTable7=undefined};j.prototype.getViewportRange=function(){return{row:this.$FixedDataTable26(),column:this.$FixedDataTable27()}};j.prototype.$FixedDataTable26=function(){var l=this.$FixedDataTable1.getViewportHeight()+(this.props.ownerHeight||this.props.height||this.props.maxHeight)-this.state.height,m=this.$FixedDataTable1.getLastRowIndex(this.state.firstRowIndex,this.state.firstRowOffset,l);return[this.state.firstRowIndex,Math.min(m,this.props.rowsCount)]};j.prototype.$FixedDataTable27=function(){var l=this.state,m=l.bodyFixedColumns,n=l.bodyScrollableColumns,o=l.scrollX,p=0;for(var q=0;q<m.length;q++)p+=m[q].props.width;var r=this.props.width-p;return this.$FixedDataTable28(n,o,r).map(function(s){return s+m.length})};j.prototype.$FixedDataTable28=function(l,m,n){__p&&__p();var o=undefined,p=undefined,q=-m;for(var r=0;r<l.length;r++){var s=l[r].props,t=0<=q+s.width&&q<n;if(t&&o==null)o=r;if(!t&&o!=null&&p==null){p=r;break}q+=s.width}return[o!=null?o:0,p!=null?p:l.length]};j.prototype.getScrollHelper=function(){return this.$FixedDataTable1};j.propTypes={width:h.number.isRequired,height:h.number,borderHeight:h.number,maxHeight:h.number,ownerHeight:h.number,overflowX:h.oneOf(["hidden","auto"]),overflowY:h.oneOf(["hidden","auto"]),rowsCount:h.number.isRequired,rowHeight:h.number.isRequired,rowHeightGetter:h.func,rowClassNameGetter:h.func,rowStyleGetter:h.func,groupHeaderHeight:h.number,headerHeight:h.number.isRequired,headerStyle:h.object,footerHeight:h.number,scrollLeft:h.number,scrollToColumn:h.number,scrollTop:h.number,scrollToRow:h.number,scrollToRowBehavior:h.oneOfType([h.objectOf(h.number),h.string]),useDefaultCellLayout:h.bool,onScrollStart:h.func,onScrollEnd:h.func,onRangeChange:h.func,onContentHeightChange:h.func,onRowClick:h.func,onRowDoubleClick:h.func,onRowKeyPress:h.func,onRowMouseDown:h.func,onRowMouseEnter:h.func,onRowMouseLeave:h.func,onColumnResizeEndCallback:h.func,isColumnResizing:h.bool,isRTL:h.bool,bufferRowCount:h.number};j.defaultProps={borderHeight:1,footerHeight:0,groupHeaderHeight:0,headerHeight:0,overflowX:"auto",overflowY:"auto",scrollLeft:0,scrollTop:0,scrollToRowBehavior:"intoView",useDefaultCellLayout:true};f=babelHelpers.inherits(k,a("React").PureComponent);g=f&&f.prototype;k.prototype.render=function(){var l={height:a("Scrollbar.react").SIZE,width:this.props.size},m={height:a("Scrollbar.react").SIZE,position:"absolute",overflow:"hidden",width:this.props.size};a("translateDOMPositionXY")(m,0,this.props.offset);return a("React").createElement("div",{className:a("joinClasses")("_3h1k","_3h1m"),style:l},a("React").createElement("div",{style:m},a("React").createElement(a("Scrollbar.react"),babelHelpers["extends"]({},this.props,{isOpaque:true,orientation:"horizontal",offset:undefined}))))};function k(){f.apply(this,arguments)}k.propTypes={contentSize:h.number.isRequired,offset:h.number.isRequired,onScroll:h.func.isRequired,position:h.number.isRequired,size:h.number.isRequired,isRTL:h.bool};b.exports=j}),null);