/*!CK:270269675!*//*1444427124,*/

if (self.CavalryLogger) { CavalryLogger.start_js(["JoeV\/"]); }

__d("AdBudgetType",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={DAILY:"daily_budget",LIFETIME:"lifetime_budget"};},null,{});
__d("AdContentFeedbackTypes",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={APPROVE:1,NEED_MANUAL_REVIEW:2,REJECT:3};},null,{});
__d("AdmgrUserSettings",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={HAS_SEEN_ACTIONS_CALLOUT:"has_see_actions_callout",HAS_SEEN_OBJECTIVES_NUX:"has_seen_objectives_nux",HAS_SEEN_AUDIENCE_MANAGER_CALLOUT:"has_seen_audience_manage_callout",HAS_SEEN_INTERESTS_CALLOUT:"has_seen_interests_callout",HAS_SEEN_ADVANCED_DEMO_CALLOUT:"has_seen_advanced_demo_callout",HAS_SEEN_NEW_PC_WHEN_CREATE_CALLOUT:"has_seen_new_pc_when_create_ad",HAS_SEEN_NEW_PC_WHEN_EDIT_CALLOUT:"has_seen_new_pc_when_edit_ad",HAS_SEEN_PC_DEPRECATED_CALLOUT:"has_seen_pc_deprecated_callout",PARTNER_PORTAL_TABLE_SETTING:"partner_portal_table_setting",PC_INTERNAL_TOOL_TABLE_SETTING:"pc_internal_tool_table_setting",HAS_SEEN_L3_NUX:"has_seen_l3_nux",NOT_NOW_L3_NUX:"not_now_l3_nux",HAS_SEEN_HISTORY_NUX:"has_seen_history_nux",NOT_NOW_HISTORY_NUX:"not_now_history_nux",HAS_DISMISSED_HISTORY_DELAY_NOTICE:"has_dismissed_history_delay_noti",HAS_SEEN_CAMPAIGN_NUX:"has_seen_campaign_nux",NOT_NOW_CAMPAIGN_NUX:"not_now_campaign_nux",HAS_SEEN_TB_CALLOUT:"has_seen_tb_callout",HAS_EXPANDED_BIDDING_SECTION:"has_expanded_bidding_section",HAS_SEEN_QUALITY_SCORE_NUX:"has_seen_quality_score_nux",HAS_SEEN_L2_TARGETING_NUX:"has_seen_l2_targeting_nux",AUDIENCE_MANAGER_COLUMN_SHOWN:"audience_manager_column_shown",LAST_USED_PAGE:"last_used_page",LAST_USED_POST_FORMAT:"last_used_post_format"};},null,{});
__d("AdObjectLevels",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ADGROUP:"ad",CAMPAIGN:"ad_set",CAMPAIGN_GROUP:"campaign",TOPLINE:"topline",AD_ACCOUNT:"ad_account"};},null,{});
__d("AdproAccountCreditStatus",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={NONE:0,ELIGIBLE:1,APPLIED:2,APPROVED:3,REJECTED:4};},null,{});
__d("AdproObjectiveType",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={NONE:0,OFFER_CLAIMS:6,PAGE_LIKES:8,CANVAS_APP_INSTALLS:11,EVENT_RESPONSES:12,CANVAS_APP_ENGAGEMENT:13,POST_ENGAGEMENT:14,WEBSITE_CONVERSIONS:15,MOBILE_APP_INSTALLS:17,WEBSITE_CLICKS:19,MOBILE_APP_ENGAGEMENT:20,VIDEO_VIEWS:24,MEDIA_DOWNLOADS:25,LOCAL_AWARENESS:26,INSTAGRAM_BRAND_AWARENESS:27,PRODUCT_CATALOG_SALES:29,XPLATFORM_SALES:30,LEAD_GENERATION:31,BRAND_AWARENESS:32,RESEARCH_POLL:33,EXTERNAL:34,IMPRESSIONS:21,MILLE:23,LOCAL_IMPRESSIONS:28,MULTIPLE:999,DEPRECATED_CLICKS:2,INCOMPATIBLE_OFFER_CLAIMS:106,INCOMPATIBLE_PAGE_LIKES:108,INCOMPATIBLE_CANVAS_APP_INSTALLS:111,INCOMPATIBLE_EVENT_RESPONSES:112,INCOMPATIBLE_CANVAS_APP_ENGAGEMENT:113,INCOMPATIBLE_POST_ENGAGEMENT:114,INCOMPATIBLE_WEBSITE_CONVERSIONS:115,INCOMPATIBLE_MOBILE_APP_INSTALLS:117,INCOMPATIBLE_WEBSITE_CLICKS:119,INCOMPATIBLE_PAGE_ENGAGEMENT:120};},null,{});
__d("AdsAltpayPaymentMetadataKeys",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={AMOUNT:"amount",BOLETO_NUMBER:"boleto_number",CREDENTIAL_ID:"credential_id",DOWNLOAD_LINK:"download_link",DUE_DATE:"due_date",TIME_CREATED:"time_created"};},null,{});
__d("AdsAPIAdCampaignGroupFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ACCOUNT_ID:"account_id",AD_LABELS:"adlabels",AD_LABEL_IDS:"adlabel_ids",AD_RULES:"adrules",AFTER_RENAMING_CAMPAIGN_STATUS:"status",BUYING_TYPE:"buying_type",CAMPAIGN_GROUP_STATUS:"campaign_group_status",CAN_USE_SPEND_CAP:"can_use_spend_cap",CONFIGURED_STATUS:"configured_status",CREATED_TIME:"created_time",DELIVERY_INFO:"delivery_info",EFFECTIVE_STATUS:"effective_status",EXECUTION_OPTIONS:"execution_options",FULLTEXT_SEARCH:"fulltext_search",ID:"id",IS_DRAFT_ONLY:"is_draft_only",DRAFT_ACTION:"draft_action",NAME:"name",OBJECTIVE:"objective",OBJECTIVE_FOR_COST:"objective_for_cost",OBJECTIVE_FOR_RESULTS:"objective_for_results",PROMOTED_OBJECT:"promoted_object",SPEND_CAP:"spend_cap",START_TIME:"start_time",STOP_TIME:"stop_time",TAG_IDS:"tag_ids",TOPLINE_ID:"topline_id",UPDATED_TIME:"updated_time",UPSTREAM_EVENTS:"upstream_events"};},null,{});
__d("AdsAPIAdgroupFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ACCOUNT_ID:"account_id",ADGROUP_REVIEW_FEEDBACK:"adgroup_review_feedback",ADGROUP_SPEC:"adgroup_spec",ADGROUP_STATUS:"adgroup_status",AD_CAMPAIGN:"adcampaign",ADSET:"adset",AD_CAMPAIGN_GROUP:"adcampaign_group",CAMPAIGN:"campaign",AD_LABELS:"adlabels",AD_LABEL_IDS:"adlabel_ids",AD_REVIEW_FEEDBACK:"ad_review_feedback",AD_RULES:"adrules",AD_STATUS:"ad_status",AFTER_RENAMING_AD_STATUS:"status",CONFIGURED_STATUS:"configured_status",AUDIENCE_ID:"audience_id",BID_AMOUNT:"bid_amount",BID_INFO:"bid_info",BID_TYPE:"bid_type",CAMPAIGN_GROUP_ID:"campaign_group_id",CAMPAIGN_GROUP_ID_AFTER_RENAME:"campaign_id",CAMPAIGN_GROUP_NAME:"campaign_group_name",CAMPAIGN_ID:"campaign_id",ADSET_ID:"adset_id",CAMPAIGN_NAME:"campaign_name",CAMPAIGN_SPEC:"campaign_spec",CONVERSION_SPECS:"conversion_specs",CREATED_TIME:"created_time",CREATIVE:"creative",CREATIVE_IDS:"creative_ids",DATE_FORMAT:"date_format",DELIVERY_INFO:"delivery_info",DEMOLINK_HASH:"demolink_hash",DISPLAY_SEQUENCE:"display_sequence",DRAFT_ADGROUP_ID:"draft_adgroup_id",EFFECTIVE_STATUS:"effective_status",END_TIME:"end_time",ENGAGEMENT_AUDIENCE:"engagement_audience",EXECUTION_OPTIONS:"execution_options",FAILED_DELIVERY_CHECKS:"failed_delivery_checks",FULLTEXT_SEARCH:"fulltext_search",HOLDOUT_END:"holdout_end",HOLDOUT_HASH:"holdout_hash",HOLDOUT_START:"holdout_start",HOLDOUT_VIEW_TAGS:"holdout_view_tags",ID:"id",IMPRESSION_CONTROL:"impression_control",IMPRESSION_CONTROL_MAP:"impression_control_map",INCLUDE_DEMOLINK_HASHES:"include_demolink_hashes",IS_AUTOBID:"is_autobid",IS_DRAFT_ONLY:"is_draft_only",DRAFT_ACTION:"draft_action",LAST_UPDATED_BY_APP_ID:"last_updated_by_app_id",LEADS:"leads",LOCATIONS:"locations",MAX_BID:"max_bid",NAME:"name",NO_SHOW_OFFSET:"no_show_offset",NO_SHOW_PERCENTAGE:"no_show_percentage",OBJECTIVE:"objective",OBJECTIVE_FOR_COST:"objective_for_cost",OBJECTIVE_FOR_RESULTS:"objective_for_results",OBJECTIVE_SOURCE:"objective_source",PLACEMENT:"name",PRIORITY:"priority",REDOWNLOAD:"redownload",RTB_FLAG:"rtb_flag",SHOW_END:"show_end",SHOW_START:"show_start",SOCIAL_PREFS:"social_prefs",SOCIAL_REQUIRED:"social_required",START_TIME:"start_time",TAG_IDS:"tag_ids",TARGETING:"targeting",TRACKING_AND_CONVERSION_WITH_DEFAULTS:"tracking_and_conversion_with_defaults",TRACKING_SPECS:"tracking_specs",UPDATED_TIME:"updated_time",URL_OVERRIDE:"url_override",VALIDATE_ONLY:"validate_only",VIEW_TAGS:"view_tags"};},null,{});
__d("AdsAPIBidAdjustmentsFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={RETENTION:"RETENTION",LONG_TERM_VALUE:"LONG_TERM_VALUE"};},null,{});
__d("AdsAPIBidInfoFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={CLICKS:"CLICKS",REACH:"REACH",SOCIAL:"SOCIAL",IMPRESSIONS:"IMPRESSIONS",CAMPAIGN_MONTHLY_REACH:"CAMPAIGN_MONTHLY_REACH",ACTIONS:"ACTIONS",CONVERSION_VALUE:"CONVERSION_VALUE",EXPLORE_DEMO_SEGMENT:"EXPLORE_DEMO_SEGMENT",MONTHLY_REACH:"MONTHLY_REACH"};},null,{});
__d("AdsAPIBidType",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={CPC:"CPC",CPM:"CPM",FIXED_CPM:"FIXED_CPM",FIXED_PRICING:"FIXED_PRICING",MULTI_PREMIUM:"MULTI_PREMIUM",RELATIVE_OCPM:"RELATIVE_OCPM",ABSOLUTE_OCPM:"ABSOLUTE_OCPM",RTB:"RTB",CPA:"CPA"};},null,{});
__d("AdsAPIBillingEvents",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={APP_INSTALLS:"APP_INSTALLS",CLICKS:"CLICKS",IMPRESSIONS:"IMPRESSIONS",LINK_CLICKS:"LINK_CLICKS",NONE:"NONE",OFFER_CLAIMS:"OFFER_CLAIMS",PAGE_LIKES:"PAGE_LIKES",POST_ENGAGEMENT:"POST_ENGAGEMENT",VIDEO_VIEWS:"VIDEO_VIEWS"};},null,{});
__d("AdsAPICreativeRotationTypes",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={STANDARD:"standard",IMPRESSION_LIMIT:"impression_limit",TIME_LIMIT:"time_limit"};},null,{});
__d("AdsAPIDeliveryInfoFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ACTIVE_ACCELERATED_CAMPAIGN_COUNT:"active_accelerated_campaign_count",ACTIVE_DAY_PARTED_CAMPAIGN_COUNT:"active_day_parted_campaign_count",ACTIVE_ROTATED_CAMPAIGN_COUNT:"active_rotated_campaign_count",ARE_ALL_DAILY_BUDGETS_SPENT:"are_all_daily_budgets_spent",COMPLETED_CAMPAIGN_COUNT:"completed_campaign_count",CREDIT_NEEDED_ADS_COUNT:"credit_needed_ads_count",DELIVERY_INSIGHT:"delivery_insight",END_TIME:"end_time",HAS_ACCOUNT_HIT_SPEND_LIMIT:"has_account_hit_spend_limit",HAS_CAMPAIGN_GROUP_HIT_SPEND_LIMIT:"has_campaign_group_hit_spend_limit",HAS_NO_ACTIVE_ADS:"has_no_active_ads",HAS_NO_ADS:"has_no_ads",INACTIVE_ADS_COUNT:"inactive_ads_count",INACTIVE_CAMPAIGN_COUNT:"inactive_campaign_count",IS_ADGROUP_PARTIALLY_REJECTED:"is_adgroup_partially_rejected",IS_CAMPAIGN_ACCELERATED:"is_campaign_accelerated",IS_CAMPAIGN_COMPLETED:"is_campaign_completed",IS_CAMPAIGN_DAY_PARTED:"is_campaign_day_parted",IS_CAMPAIGN_DISABLED:"is_campaign_disabled",IS_CAMPAIGN_GROUP_DISABLED:"is_campaign_group_disabled",IS_CAMPAIGN_ROTATED:"is_campaign_rotated",IS_CAMPAIGN_SCHEDULED:"is_campaign_scheduled",IS_DAILY_BUDGET_SPENT:"is_daily_budget_spent",IS_ACCOUNT_CLOSED:"is_account_closed",IS_ACCOUNT_DISABLED:"is_account_disabled",IS_REACH_AND_FREQUENCY_MISCONFIGURED:"is_reach_and_frequency_misconfigured",LIMITED_CAMPAIGN_COUNT:"limited_campaign_count",NEEDS_CREDIT:"needs_credit",NEEDS_TAX_NUMBER:"needs_tax_number",NOT_DELIVERING_CAMPAIGN_COUNT:"not_delivering_campaign_count",PENDING_ADS_COUNT:"pending_ads_count",REJECTED_ADS_COUNT:"rejected_ads_count",SCHEDULED_CAMPAIGN_COUNT:"scheduled_campaign_count",START_TIME:"start_time",STATUS:"status"};},null,{});
__d("AdsAPIExtendedCreditInfoFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={CREDIT_USED:"credit_used",CREDIT_LEFT:"credit_left"};},null,{});
__d("AdsAPIImageFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ID:"id",ACCOUNT_ID:"account_id",CREATED_TIME:"created_time",CREATIVES:"creatives",HASH:"hash",HEIGHT:"height",NAME:"name",ORIGINAL_WIDTH:"original_width",ORIGINAL_HEIGHT:"original_height",PERMALINK_URL:"permalink_url",STATUS:"status",UPDATED_TIME:"updated_time",URL:"url",URL_128:"url_128",WIDTH:"width"};},null,{});
__d("AdsAPIObjectiveOptimizationGoals",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={NONE:{DEFAULT:"NONE",VALID:{NONE:"NONE",APP_INSTALLS:"APP_INSTALLS",BRAND_AWARENESS:"BRAND_AWARENESS",CLICKS:"CLICKS",ENGAGED_USERS:"ENGAGED_USERS",EXTERNAL:"EXTERNAL",DWELLS:"DWELLS",EVENT_RESPONSES:"EVENT_RESPONSES",IMPRESSIONS:"IMPRESSIONS",LEAD_GENERATION:"LEAD_GENERATION",LINK_CLICKS:"LINK_CLICKS",MEDIA_DOWNLOADS:"MEDIA_DOWNLOADS",OFFER_CLAIMS:"OFFER_CLAIMS",OFFSITE_CONVERSIONS:"OFFSITE_CONVERSIONS",PAGE_ENGAGEMENT:"PAGE_ENGAGEMENT",PAGE_LIKES:"PAGE_LIKES",POST_ENGAGEMENT:"POST_ENGAGEMENT",REACH:"REACH",RESEARCH_POLL_RESPONSES:"RESEARCH_POLL_RESPONSES",RETENTION:"RETENTION",SOCIAL_IMPRESSIONS:"SOCIAL_IMPRESSIONS",VIDEO_VIEWS:"VIDEO_VIEWS"}},OFFER_CLAIMS:{DEFAULT:"OFFER_CLAIMS",VALID:{IMPRESSIONS:"IMPRESSIONS",OFFER_CLAIMS:"OFFER_CLAIMS",POST_ENGAGEMENT:"POST_ENGAGEMENT"}},PAGE_LIKES:{DEFAULT:"PAGE_LIKES",VALID:{IMPRESSIONS:"IMPRESSIONS",PAGE_ENGAGEMENT:"PAGE_ENGAGEMENT",PAGE_LIKES:"PAGE_LIKES",POST_ENGAGEMENT:"POST_ENGAGEMENT",REACH:"REACH"}},CANVAS_APP_INSTALLS:{DEFAULT:"APP_INSTALLS",VALID:{APP_INSTALLS:"APP_INSTALLS",IMPRESSIONS:"IMPRESSIONS",POST_ENGAGEMENT:"POST_ENGAGEMENT"}},EVENT_RESPONSES:{DEFAULT:"EVENT_RESPONSES",VALID:{EVENT_RESPONSES:"EVENT_RESPONSES",IMPRESSIONS:"IMPRESSIONS",POST_ENGAGEMENT:"POST_ENGAGEMENT",REACH:"REACH"}},EXTERNAL:{DEFAULT:"EXTERNAL",VALID:{EXTERNAL:"EXTERNAL"}},CANVAS_APP_ENGAGEMENT:{DEFAULT:"ENGAGED_USERS",VALID:{APP_INSTALLS:"APP_INSTALLS",ENGAGED_USERS:"ENGAGED_USERS",IMPRESSIONS:"IMPRESSIONS",POST_ENGAGEMENT:"POST_ENGAGEMENT",REACH:"REACH"}},POST_ENGAGEMENT:{DEFAULT:"POST_ENGAGEMENT",VALID:{DWELLS:"DWELLS",EXTERNAL:"EXTERNAL",IMPRESSIONS:"IMPRESSIONS",LINK_CLICKS:"LINK_CLICKS",PAGE_ENGAGEMENT:"PAGE_ENGAGEMENT",POST_ENGAGEMENT:"POST_ENGAGEMENT",REACH:"REACH",VIDEO_VIEWS:"VIDEO_VIEWS"}},WEBSITE_CONVERSIONS:{DEFAULT:"OFFSITE_CONVERSIONS",VALID:{EXTERNAL:"EXTERNAL",IMPRESSIONS:"IMPRESSIONS",LINK_CLICKS:"LINK_CLICKS",OFFSITE_CONVERSIONS:"OFFSITE_CONVERSIONS",POST_ENGAGEMENT:"POST_ENGAGEMENT",REACH:"REACH",SOCIAL_IMPRESSIONS:"SOCIAL_IMPRESSIONS"}},MOBILE_APP_INSTALLS:{DEFAULT:"APP_INSTALLS",VALID:{APP_INSTALLS:"APP_INSTALLS",CLICKS:"CLICKS",IMPRESSIONS:"IMPRESSIONS",REACH:"REACH",RETENTION:"RETENTION"}},WEBSITE_CLICKS:{DEFAULT:"LINK_CLICKS",VALID:{EXTERNAL:"EXTERNAL",IMPRESSIONS:"IMPRESSIONS",LINK_CLICKS:"LINK_CLICKS",PAGE_ENGAGEMENT:"PAGE_ENGAGEMENT",POST_ENGAGEMENT:"POST_ENGAGEMENT",REACH:"REACH"}},MOBILE_APP_ENGAGEMENT:{DEFAULT:"CLICKS",VALID:{CLICKS:"CLICKS",LINK_CLICKS:"LINK_CLICKS",IMPRESSIONS:"IMPRESSIONS",OFFSITE_CONVERSIONS:"OFFSITE_CONVERSIONS",REACH:"REACH"}},VIDEO_VIEWS:{DEFAULT:"VIDEO_VIEWS",VALID:{PAGE_ENGAGEMENT:"PAGE_ENGAGEMENT",POST_ENGAGEMENT:"POST_ENGAGEMENT",REACH:"REACH",VIDEO_VIEWS:"VIDEO_VIEWS"}},MEDIA_DOWNLOADS:{DEFAULT:"MEDIA_DOWNLOADS",VALID:{MEDIA_DOWNLOADS:"MEDIA_DOWNLOADS"}},LOCAL_AWARENESS:{DEFAULT:"REACH",VALID:{REACH:"REACH"}},INSTAGRAM_BRAND_AWARENESS:{DEFAULT:"POST_ENGAGEMENT",VALID:{CLICKS:"CLICKS",IMPRESSIONS:"IMPRESSIONS",POST_ENGAGEMENT:"POST_ENGAGEMENT"}},PRODUCT_CATALOG_SALES:{DEFAULT:"LINK_CLICKS",VALID:{IMPRESSIONS:"IMPRESSIONS",LINK_CLICKS:"LINK_CLICKS",POST_ENGAGEMENT:"POST_ENGAGEMENT",OFFSITE_CONVERSIONS:"OFFSITE_CONVERSIONS",REACH:"REACH"}},XPLATFORM_SALES:{DEFAULT:"OFFSITE_CONVERSIONS",VALID:{OFFSITE_CONVERSIONS:"OFFSITE_CONVERSIONS"}},LEAD_GENERATION:{DEFAULT:"LEAD_GENERATION",VALID:{LEAD_GENERATION:"LEAD_GENERATION"}},BRAND_AWARENESS:{DEFAULT:"BRAND_AWARENESS",VALID:{BRAND_AWARENESS:"BRAND_AWARENESS",REACH:"REACH"}},RESEARCH_POLL:{DEFAULT:"RESEARCH_POLL_RESPONSES",VALID:{RESEARCH_POLL_RESPONSES:"RESEARCH_POLL_RESPONSES"}}};},null,{});
__d("AdsAPIOptimizationGoalBillingEvents",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={APP_INSTALLS:{APP_INSTALLS:"APP_INSTALLS",IMPRESSIONS:"IMPRESSIONS"},CLICKS:{CLICKS:"CLICKS",IMPRESSIONS:"IMPRESSIONS"},ENGAGED_USERS:{IMPRESSIONS:"IMPRESSIONS"},EXTERNAL:{IMPRESSIONS:"IMPRESSIONS"},EVENT_RESPONSES:{IMPRESSIONS:"IMPRESSIONS"},IMPRESSIONS:{IMPRESSIONS:"IMPRESSIONS"},LINK_CLICKS:{IMPRESSIONS:"IMPRESSIONS",LINK_CLICKS:"LINK_CLICKS"},OFFER_CLAIMS:{IMPRESSIONS:"IMPRESSIONS",OFFER_CLAIMS:"OFFER_CLAIMS"},OFFSITE_CONVERSIONS:{IMPRESSIONS:"IMPRESSIONS"},PAGE_ENGAGEMENT:{IMPRESSIONS:"IMPRESSIONS"},PAGE_LIKES:{IMPRESSIONS:"IMPRESSIONS",PAGE_LIKES:"PAGE_LIKES"},POST_ENGAGEMENT:{IMPRESSIONS:"IMPRESSIONS",POST_ENGAGEMENT:"POST_ENGAGEMENT"},REACH:{IMPRESSIONS:"IMPRESSIONS"},SOCIAL_IMPRESSIONS:{IMPRESSIONS:"IMPRESSIONS"},VIDEO_VIEWS:{VIDEO_VIEWS:"VIDEO_VIEWS",IMPRESSIONS:"IMPRESSIONS"}};},null,{});
__d("AdsAPIOptimizationGoals",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={NONE:"NONE",APP_INSTALLS:"APP_INSTALLS",BRAND_AWARENESS:"BRAND_AWARENESS",CLICKS:"CLICKS",ENGAGED_USERS:"ENGAGED_USERS",EXTERNAL:"EXTERNAL",DWELLS:"DWELLS",EVENT_RESPONSES:"EVENT_RESPONSES",IMPRESSIONS:"IMPRESSIONS",LEAD_GENERATION:"LEAD_GENERATION",LINK_CLICKS:"LINK_CLICKS",MEDIA_DOWNLOADS:"MEDIA_DOWNLOADS",OFFER_CLAIMS:"OFFER_CLAIMS",OFFSITE_CONVERSIONS:"OFFSITE_CONVERSIONS",PAGE_ENGAGEMENT:"PAGE_ENGAGEMENT",PAGE_LIKES:"PAGE_LIKES",POST_ENGAGEMENT:"POST_ENGAGEMENT",REACH:"REACH",RESEARCH_POLL_RESPONSES:"RESEARCH_POLL_RESPONSES",RETENTION:"RETENTION",SOCIAL_IMPRESSIONS:"SOCIAL_IMPRESSIONS",VIDEO_VIEWS:"VIDEO_VIEWS"};},null,{});
__d("AdsAPIPacingType",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={STANDARD:"standard",DISABLED:"disabled",DAY_PARTING:"day_parting",NO_PACING:"no_pacing",PROBABILISTIC_PACING:"probabilistic_pacing"};},null,{});
__d("AdsAPIPromotedObjectFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={APPLICATION_ID:"application_id",PIXEL_ID:"pixel_id",CUSTOM_EVENT_TYPE:"custom_event_type",OBJECT_STORE_URL:"object_store_url",OFFER_ID:"offer_id",PAGE_ID:"page_id",PRODUCT_CATALOG_ID:"product_catalog_id",PRODUCT_SET_ID:"product_set_id",PIXEL_RULE:"pixel_rule",PLACE_PAGE_SET_ID:"place_page_set_id",RESEARCH_POLL_ID:"research_poll_id"};},null,{});
__d("AdsAPIReachEstimateBidFor",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={CLICK:"click",IMPRESSION:"impression",CONVERSION:"conversion",MOBILE_APP_INSTALL:"mobile_app_install",LINK_CLICK:"link_click",OFFSITE_CONVERSION:"offsite_conversion"};},null,{});
__d("AdsAPISavedAudienceFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ACCOUNT:"account",ADCAMPAIGNS:"adcampaigns",ADSETS:"adsets",APPROXIMATE_COUNT:"approximate_count",DESCRIPTION:"description",ID:"id",NAME:"name",RUN_STATUS:"run_status",SENTENCE_LINES:"sentence_lines",TARGETING:"targeting",TIME_CREATED:"time_created",TIME_UPDATED:"time_updated"};},null,{});
__d("AdsAPIShutterstockImageFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ID:"id",PREVIEW:"preview",PREVIEW_URL:"preview_url",THUMBNAIL:"thumbnail"};},null,{});
__d("AdsAPITargetGeoLocationFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={COUNTRIES:"countries",REGIONS:"regions",CITIES:"cities",ZIPS:"zips",PLACES:"places",CUSTOM:"custom_locations",MARKET:"geo_markets",TYPES:"location_types"};},null,{});
__d("AdsAPIToplineProductTypes",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={AF_FCPM:"AF-FCPM",AF_FCPM_RB:"AF-FCPM-RB",AF_FCPM_TB:"AF-FCPM-TB",DF_FCPM_RB:"DF-FCPM-RB",AF_FCPM_RF:"AF_FCPM_RF",DF_FCPM_TB:"DF-FCPM-TB",PM_FCPM_HP:"PM-FCPM-HP",PM_FCPM_LOG_OUT:"PM-FCPM-LOG-OUT",MF_FCPM_RB:"MF-FCPM-RB",MF_FCPM_TB:"MF-FCPM-TB",IG_FCPM_TB:"IG-FCPM-TB",IG_FCPM_IMAGE:"IG-FCPM-IMAGE",IG_FCPM_VIDEO:"IG-FCPM-VIDEO",IG_FCPM_CAROUSEL:"IG-FCPM-CAROUSEL",IG_FCPM_MQ_IMG:"IG-FCPM-MQ-IMG",IG_FCPM_MQ_VID:"IG-FCPM-MQ-VID",IG_FCPM_MQ_CAR:"IG-FCPM-MQ-CAR",IG_FCPM_MQ_VIDLNK:"IG-FCPM-MQ-VIDLNK",IG_FCPM_MQ_IMGLNK:"IG-FCPM-MQ-IMGLNK",AF_FCPM_VIDEO:"AF-FCPM-VIDEO",AF_FCPM_IMPVIDEO:"AF-FCPM-IMPVIDEO",RH_FCPM_RB:"RH-FCPM-RB",RH_FCPM_TB:"RH-FCPM-TB",AF_BCPM:"AF-BCPM",AF_BCPC:"AF-BCPC"};},null,{});
__d("AdsApplicationIDs",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ADS_CREATOR:"209787012415271",ADS_MANAGER:"484843564880080",ADS_PAYMENT:"123097351040126",ADS_AND_PAGES_MANAGER__DEPRECATED:"6802152230",ADS_CAMPAIGN_MANAGER:"624541620938530",ADS_POWER_EDITOR:"119211728144504"};},null,{});
__d("AdsBootloadDebugConfig",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={LOG_BOOTLOAD:true};},null,{});
__d("AdsBuyingTypes",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={AUCTION:"AUCTION",FIXED_CPM:"FIXED_CPM",RESERVED:"RESERVED",REACHBLOCK:"REACHBLOCK",DEPRECATED_REACH_BLOCK:"DEPRECATED_REACH_BLOCK",RESEARCH_POLL:"RESEARCH_POLL",MIXED:"MIXED"};},null,{});
__d("AdsCFImageTypes",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={"image\/gif":"image\/gif","image\/jpeg":"image\/jpeg","image\/pjpeg":"image\/pjpeg","image\/png":"image\/png","image\/x-png":"image\/x-png","image\/psd":"image\/psd","image\/bmp":"image\/bmp","image\/x-ms-bmp":"image\/x-ms-bmp","image\/tiff":"image\/tiff","image\/jp2":"image\/jp2","image\/iff":"image\/iff","image\/vnd.wap.wbmp":"image\/vnd.wap.wbmp","image\/x-xbitmap":"image\/x-xbitmap"};},null,{});
__d("AdsCMActionTypes",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ACCOUNT_DATA_LOADED:"ADS_CM_ACCOUNT_DATA_LOADED",ACCOUNT_EMAIL_NOTIF_PREF_LOAD_ERROR:"ADS_CM_ACCOUNT_EMAIL_NOTIF_PREF_LOAD_ERROR",ACCOUNT_EMAIL_NOTIF_PREF_LOAD_SUCCESS:"ADS_CM_ACCOUNT_EMAIL_NOTIF_PREF_LOAD_SUCCESS",ACCOUNT_EMAIL_NOTIF_PREF_UPDATE_ERROR:"ADS_CM_ACCOUNT_EMAIL_NOTIF_PREF_UPDATE_ERROR",ACCOUNT_EMAIL_NOTIF_PREF_UPDATE_START:"ADS_CM_ACCOUNT_EMAIL_NOTIF_PREF_UPDATE_START",ACCOUNT_EMAIL_NOTIF_PREF_UPDATE_SUCCESS:"ADS_CM_ACCOUNT_EMAIL_NOTIF_PREF_UPDATE_SUCCESS",ACCOUNT_INIT:"ADS_CM_ACCOUNT_INIT",ACCOUNT_LIST_LOADED:"ADS_CM_ACCOUNT_LIST_LOADED",ACCOUNT_NOTIFICATION_STATUS_UPDATE_ERROR:"ADS_CM_ACCOUNT_NOTIFICATION_STATUS_UPDATE_ERROR",ACCOUNT_NOTIFICATION_STATUS_UPDATE_START:"ADS_CM_ACCOUNT_NOTIFICATION_STATUS_UPDATE_START",ACCOUNT_NOTIFICATION_STATUS_UPDATE_SUCCESS:"ADS_CM_ACCOUNT_NOTIFICATION_STATUS_UPDATE_SUCCESS",ACCOUNT_ONSITE_NOTIF_PREF_LOAD_ERROR:"ADS_CM_ACCOUNT_ONSITE_NOTIF_PREF_LOAD_ERROR",ACCOUNT_ONSITE_NOTIF_PREF_LOAD_SUCCESS:"ADS_CM_ACCOUNT_ONSITE_NOTIF_PREF_LOAD_SUCCESS",ACCOUNT_ONSITE_NOTIF_PREF_UPDATE_ERROR:"ADS_CM_ACCOUNT_ONSITE_NOTIF_PREF_UPDATE_ERROR",ACCOUNT_ONSITE_NOTIF_PREF_UPDATE_START:"ADS_CM_ACCOUNT_ONSITE_NOTIF_PREF_UPDATE_START",ACCOUNT_ONSITE_NOTIF_PREF_UPDATE_SUCCESS:"ADS_CM_ACCOUNT_ONSITE_NOTIF_PREF_UPDATE_SUCCESS",ACCOUNT_SETTINGS_CLEAR_NOTIFICATIONS:"ADS_CM_ACCOUNT_SETTINGS_CLEAR_NOTIFICATIONS",ACCOUNT_SETTINGS_LOAD_ERROR:"ADS_CM_ACCOUNT_SETTINGS_LOAD_ERROR",ACCOUNT_SETTINGS_LOAD_SUCCESS:"ADS_CM_ACCOUNT_SETTINGS_LOAD_SUCCESS",ACCOUNT_SETTINGS_PAGE_UPDATE_BLOCKER_STATUS:"ADS_CM_ACCOUNT_SETTINGS_PAGE_UPDATE_BLOCKER_STATUS",ACCOUNT_SETTINGS_PAGE_UDPATE_MODAL_VISIBILITY:"ADS_CM_ACCOUNT_SETTINGS_PAGE_UPDATE_MODAL_VISIBILITY",ACCOUNT_SETTINGS_UPDATE_ERROR:"ADS_CM_ACCOUNT_UPDATE_ERROR",ACCOUNT_SETTINGS_UPDATE_START:"ADS_CM_ACCOUNT_UPDATE_START",ACCOUNT_SETTINGS_UPDATE_SUCCESS:"ADS_CM_ACCOUNT_UPDATE_SUCCESS",ACCOUNT_VIDEOS_LOADED:"ADS_CM_ACCOUNT_VIDEOS_LOADED",ACTIVE_ROW_INDEX:"ACTIVE_ROW_INDEX",ACTIVITY_LOG_CATEGORY_CHANGE:"ADS_CM_ACTIVITY_LOG_CATEGORY_CHANGE",ACTIVITY_LOG_LOAD_FAILURE:"ADS_CM_ACTIVITY_LOG_LOAD_FAILURE",ACTIVITY_LOG_LOAD_SUCCESS:"ADS_CM_ACTIVITY_LOG_LOAD_SUCCESS",ACTIVITY_LOG_SET_LOAD_FAIL:"ADS_CM_ACTIVITY_LOG_SET_LOAD_FAIL",ACTIVITY_LOG_USER_CHANGE:"ADS_CM_ACTIVITY_LOG_USER_CHANGE",ADD_BILLING_MESSAGE:"ADS_CM_ADD_BILLING_MESSAGE",ADD_MESSAGE:"ADS_CM_ADD_MESSAGE",ADD_TIPS_LOADED_CALLBACK:"ADS_CM_ADD_TIPS_LOADED_CALLBACK",ADGROUP_ASYNC_VALIDATION_LOADED:"ADS_CM_ADGROUP_ASYNC_VALIDATION_LOADED",ADGROUP_CREATE_ERROR:"ADS_CM_ADGROUP_CREATE_ERROR",ADGROUP_CREATE_START:"ADS_CM_ADGROUP_CREATE_START",ADGROUP_CREATE_SUCCESS:"ADS_CM_ADGROUP_CREATE_SUCCESS",ADGROUP_DRAFT_SAVE:"ADS_CM_ADGROUP_DRAFT_SAVE",ADGROUP_LIST_LOAD_ERROR:"ADS_CM_ADGROUP_LIST_LOAD_ERROR",ADGROUP_LIST_LOADED:"ADS_CM_ADGROUP_LIST_LOADED",ADGROUPS_LOAD_ERROR:"ADS_CM_ADGROUPS_LOAD_ERROR",ADGROUPS_LOADED:"ADS_CM_ADGROUPS_LOADED",ADGROUP_SAVE_ERROR:"ADS_CM_ADGROUP_SAVE_ERROR",ADGROUP_SAVE_START:"ADS_CM_ADGROUP_SAVE_START",ADGROUP_SAVE_SUCCESS:"ADS_CM_ADGROUP_SAVE_SUCCESS",API_CALL:"ADS_CM_API_CALL",APPLICATION_READY:"ADS_CM_APPLICATION_READY",BACK_FORWARD_PRESSED:"ADS_CM_BACK_FORWARD_PRESSED",BUSINESS_VIEWER_LOADED:"ADS_CM_BUSINESS_VIEWER_LOADED",BUSINESS_VIEWER_ERROR:"ADS_CM_BUSINESS_VIEWER_ERROR",BREADCRUMB_ITEM_CLICKED:"ADS_CM_BREADCRUMB_ITEM_CLICKED",BREAKDOWN_CHANGE:"ADS_CM_BREAKDOWN_CHANGE",CAMPAIGN_CREATE_ERROR:"ADS_CM_CAMPAIGN_CREATE_ERROR",CAMPAIGN_CREATE_START:"ADS_CM_CAMPAIGN_CREATE_START",CAMPAIGN_CREATE_SUCCESS:"ADS_CM_CAMPAIGN_CREATE_SUCCESS",CAMPAIGN_DRAFT_SAVE:"ADS_CM_CAMPAIGN_DRAFT_SAVE",CAMPAIGN_DRAFT_SAVE_PREPROCESS:"ADS_CM_CAMPAIGN_DRAFT_SAVE_PREPROCESS",CAMPAIGN_GROUP_CREATE_ERROR:"ADS_CM_CAMPAIGN_GROUP_CREATE_ERROR",CAMPAIGN_GROUP_CREATE_START:"ADS_CM_CAMPAIGN_GROUP_CREATE_START",CAMPAIGN_GROUP_CREATE_SUCCESS:"ADS_CM_CAMPAIGN_GROUP_CREATE_SUCCESS",CAMPAIGN_GROUP_DRAFT_SAVE:"ADS_CM_CAMPAIGN_GROUP_DRAFT_SAVE",CAMPAIGN_GROUP_LIST_LOAD_ERROR:"ADS_CM_CAMPAIGN_GROUP_LIST_LOAD_ERROR",CAMPAIGN_GROUP_LIST_LOADED:"ADS_CM_CAMPAIGN_GROUP_LIST_LOADED",CAMPAIGN_GROUPS_LOAD_ERROR:"ADS_CM_CAMPAIGN_GROUPS_LOAD_ERROR",CAMPAIGN_GROUPS_LOADED:"ADS_CM_CAMPAIGN_GROUPS_LOADED",CAMPAIGN_GROUP_SAVE_ERROR:"ADS_CM_CAMPAIGN_GROUP_SAVE_ERROR",CAMPAIGN_GROUP_SAVE_START:"ADS_CM_CAMPAIGN_GROUP_SAVE_START",CAMPAIGN_GROUP_SAVE_SUCCESS:"ADS_CM_CAMPAIGN_GROUP_SAVE_SUCCESS",CAMPAIGN_LIST_LOAD_ERROR:"ADS_CM_CAMPAIGN_LIST_LOAD_ERROR",CAMPAIGN_LIST_LOADED:"ADS_CM_CAMPAIGN_LIST_LOADED",CAMPAIGNS_LOAD_ERROR:"ADS_CM_CAMPAIGNS_LOAD_ERROR",CAMPAIGNS_LOADED:"ADS_CM_CAMPAIGNS_LOADED",CAMPAIGN_SAVE_ERROR:"ADS_CM_CAMPAIGN_SAVE_ERROR",CAMPAIGN_SAVE_PREPROCESS:"ADS_CM_CAMPAIGN_SAVE_PREPROCESS",CAMPAIGN_SAVE_PREPROCESS_FAILURE:"ADS_CM_CAMPAIGN_SAVE_PREPROCESS_FAILURE",CAMPAIGN_SAVE_PREPROCESS_SUCCESS:"ADS_CM_CAMPAIGN_SAVE_PREPROCESS_SUCCESS",CAMPAIGN_SAVE_START:"ADS_CM_CAMPAIGN_SAVE_START",CAMPAIGN_SAVE_SUCCESS:"ADS_CM_CAMPAIGN_SAVE_SUCCESS",CARD_STACK_ANIMATION:"ADS_CM_CARD_STACK_ANIMATION",CHANGE_SUBVIEW:"ADS_CM_CHANGE_SUBVIEW",CHROME_LOADED:"ADS_CM_CHROME_LOADED",CLEANUP_PAGES:"ADS_CM_CLEANUP_PAGES",COLUMN_SET_CHANGE:"ADS_CM_COLUMN_SET_CHANGE",COLUMN_SET_LOAD:"ADS_CM_COLUMN_SET_LOAD",CONNECTION_STATUS_CONNECTED:"ADS_CM_CONNECTION_STATUS_CONNECTED",CONNECTION_STATUS_DISCONNECTED:"ADS_CM_CONNECTION_STATUS_DISCONNECTED",CREATIVE_CHANGE:"ADS_CM_CREATIVE_CHANGE",CURRENT_IDS_LOADED:"ADS_CM_CURRENT_IDS_LOADED",CURVE_DATA_MISSING:"ADS_CM_CURVE_DATA_MISSING",DATE_RANGE_BUTTON_CLICKED:"ADS_CM_DATE_RANGE_BUTTON_CLICKED",DESELECT_ALL_COLUMNS:"ADS_CM_DESELECT_ALL_COLUMNS",DESELECT_ALL_SELECTED_ROWS:"ADS_CM_DESELECT_ALL_SELECTED_ROWS",DESELECTED_INDICES_RANGE:"ADS_CM_DESELECTED_INDICES_RANGE",DISMISS_MESSAGE:"ADS_CM_DISMISS_MESSAGE",DRAFT_CLEAR_LOADED:"ADS_CM_DRAFT_CLEAR_LOADED",DRAFT_CLOSE:"ADS_CM_DRAFT_CLOSE",DRAFT_CLOSE_SUCCESS:"ADS_CM_DRAFT_CLOSE_SUCCESS",DRAFT_CONFLICTS_ERROR:"ADS_CM_DRAFT_CONFLICTS_ERROR",DRAFT_CREATE:"ADS_CM_DRAFT_CREATE",DRAFT_CREATE_ERROR:"ADS_CM_DRAFT_CREATE_ERROR",DRAFT_CREATE_OBJECTS:"ADS_CM_DRAFT_CREATE_OBJECTS",DRAFT_CREATE_SUCCESS:"ADS_CM_DRAFT_CREATE_SUCCESS",DRAFT_DELETE:"ADS_CM_DRAFT_DELETE",DRAFT_DELETE_COMPLETE:"ADS_CM_DRAFT_DELETE_COMPLETE",DRAFT_DELETE_ERROR:"ADS_CM_DRAFT_DELETE_ERROR",DRAFT_FRAGMENT_DELETE_ALL:"ADS_CM_DRAFT_FRAGMENT_DELETE_ALL",DRAFT_FRAGMENT_DELETE_ALL_COMPLETE:"ADS_CM_DRAFT_FRAGMENT_DELETE_ALL_COMPLETE",DRAFT_FRAGMENT_DELETE_ALL_ERROR:"ADS_CM_DRAFT_FRAGMENT_DELETE_ALL_ERROR",DRAFT_FRAGMENT_DELETE:"ADS_CM_DRAFT_FRAGMENT_DELETE",DRAFT_FRAGMENT_DELETE_COMPLETE:"ADS_CM_DRAFT_FRAGMENT_DELETE_COMPLETE",DRAFT_FRAGMENT_DELETE_ERROR:"ADS_CM_DRAFT_FRAGMENT_DELETE_ERROR",DRAFT_FRAGMENT_DELETE_START:"ADS_CM_DRAFT_FRAGMENT_DELETE_START",DRAFT_FRAGMENT_MAP_SAVE:"ADS_CM_DRAFT_FRAGMENT_MAP_SAVE",DRAFT_FRAGMENT_SAVE_ERROR:"ADS_CM_DRAFT_FRAGMENT_SAVE_ERROR",DRAFT_FRAGMENT_SAVE_SUCCESS:"ADS_CM_DRAFT_FRAGMENT_SAVE_SUCCESS",DRAFT_FRAGMENT_UPDATE:"ADS_CM_DRAFT_FRAGMENT_UPDATE",DRAFT_FRAGMENTS_LOAD:"ADS_CM_DRAFT_FRAGMENTS_LOAD",DRAFT_FRAGMENTS_LOAD_SUCCESS:"ADS_CM_DRAFT_FRAGMENTS_LOAD_SUCCESS",DRAFT_FRAGMENTS_LOAD_ERROR:"ADS_CM_DRAFT_FRAGMENTS_LOAD_ERROR",DRAFT_FULL_LOADED:"ADS_CM_DRAFT_FULL_LOADED",DRAFT_LOADED:"ADS_CM_DRAFT_LOADED",DRAFT_LOAD_ERROR:"ADS_CM_DRAFT_LOAD_ERROR",DRAFT_PUBLISH:"ADS_CM_DRAFT_PUBLISH",DRAFT_PUBLISH_FAILED:"ADS_CM_DRAFT_PUBLISH_FAILED",DRAFT_PUBLISH_IN_PROGRESS:"ADS_CM_DRAFT_PUBLISH_IN_PROGRESS",DRAFT_PUBLISH_SUCCESS:"ADS_CM_DRAFT_PUBLISH_SUCCESS",DRAFT_SELECT:"ADS_CM_DRAFT_SELECT",DRAFT_UPDATE_OWNERSHIP:"ADS_CM_DRAFT_UPDATE_OWNERSHIP",DRAFT_UPDATE_OWNERSHIP_ERROR:"ADS_CM_DRAFT_UPDATE_OWNERSHIP_ERROR",DRAFT_USERS_LOADED:"ADS_CM_DRAFT_USERS_LOADED",DRAFTS_LOADED:"ADS_CM_DRAFTS_LOADED",DUPLICATE_CREATE_FRAGMENTS_ERROR:"ADS_CM_DUPLICATE_CREATE_FRAGMENTS_ERROR",DUPLICATE_CREATE_FRAGMENTS_SUCCESS:"ADS_CM_DUPLICATE_CREATE_FRAGMENTS_SUCCESS",DUPLICATE_EXISTING_TO_NEW:"ADS_CM_DUPLICATE_EXISTING_TO_NEW",DUPLICATE_EXISTING_TO_NEW_SUCCESS:"ADS_CM_DUPLICATE_EXISTING_TO_NEW_SUCCESS",DUPLICATE_EXISTING_TO_NEW_FAILURE:"ADS_CM_DUPLICATE_EXISTING_TO_NEW_FAILURE",DUPLICATE_FRAGMENT_ANCESTORS_LOAD_SUCCESS:"ADS_CM_DUPLICATE_FRAGMENT_ANCESTORS_LOAD_SUCCESS",DUPLICATE_FRAGMENT_ANCESTORS_LOAD_ERROR:"ADS_CM_DUPLICATE_FRAGMENT_ANCESTORS_LOAD_ERROR",DUPLICATE_HAS_SEEN_SURVEY_CAKE_LOAD_SUCCESS:"ADS_CM_DUPLICATE_HAS_SEEN_SURVEY_CAKE_LOAD_SUCCESS",DUPLICATE_HIDE_STATUS_NUX:"ADS_CM_DUPLICATE_HIDE_STATUS_NUX",DUPLICATE_HIDE_UNSUPPORTED_NOTICE:"ADS_CM_DUPLICATE_HIDE_UNSUPPORTED_NOTICE",DUPLICATE_LOAD_OBJECTS_SUCCESS:"ADS_CM_DUPLICATE_LOAD_OBJECTS_SUCCESS",DUPLICATE_LOAD_PAYMENT_INFO:"ADS_CM_DUPLICATE_LOAD_PAYMENT_INFO",DUPLICATE_NEW_TO_EXISTING:"ADS_CM_DUPLICATE_NEW_TO_EXISTING",DUPLICATE_NEW_TO_EXISTING_SUCCESS:"ADS_CM_DUPLICATE_NEW_TO_EXISTING_SUCCESS",DUPLICATE_NEW_TO_EXISTING_FAILURE:"ADS_CM_DUPLICATE_NEW_TO_EXISTING_FAILURE",DUPLICATE_PUBLISH_START:"ADS_CM_DUPLICATE_PUBLISH_START",DUPLICATE_REMOVE_OBJECT:"ADS_CM_DUPLICATE_REMOVE_OBJECT",DUPLICATE_SET_CURRENT_DRAFT:"ADS_CM_DUPLICATE_SET_CURRENT_DRAFT",DUPLICATE_SET_HIDE_STATUS_NUX:"ADS_CM_DUPLICATE_SET_HIDE_STATUS_NUX",DUPLICATE_SESSION_END:"ADS_CM_DUPLICATE_SESSION_END",DUPLICATE_SHOULD_SEE_STATUS_NUX_LOAD_SUCCESS:"ADS_CM_DUPLICATE_SHOULD_SEE_STATUS_NUX_LOAD_SUCCESS",DUPLICATE_SHOW_STATUS_NUX:"ADS_CM_DUPLICATE_SHOW_STATUS_NUX",EDITOR_ACTION_CANCELED:"ADS_CM_EDITOR_ACTION_CANCELED",EDITOR_CLEAR_BLOCKERS:"ADS_CM_EDITOR_CLEAR_BLOCKERS",EDITOR_HIDE_MODAL:"ADS_CM_EDITOR_HIDE_MODAL",EDITOR_HISTORY_HIDE_MODAL:"ADS_CM_EDITOR_HISTORY_HIDE_MODAL",EDITOR_HISTORY_NAVIGATE_BACK:"ADS_CM_EDITOR_HISTORY_NAVIGATE_BACK",EDITOR_HISTORY_NAVIGATE_TO:"ADS_CM_EDITOR_HISTORY_NAVIGATE_TO",EDITOR_MODAL_MOUNTED:"ADS_CM_EDITOR_MODAL_MOUNTED",EDITOR_NAVIGATE_BACK:"ADS_CM_EDITOR_NAVIGATE_BACK",EDITOR_NAVIGATE_TO:"ADS_CM_EDITOR_NAVIGATE_TO",EDITOR_SET_BLOCKING_FUNCTION:"ADS_CM_EDITOR_SET_BLOCKING_FUNCTION",EDITOR_SET_SAVE_CALLBACKS:"ADS_CM_EDITOR_SET_SAVE_CALLBACKS",EDITOR_SHOW_MODAL:"ADS_CM_EDITOR_SHOW_MODAL",EDITOR_UPDATE_BLOCKER:"ADS_CM_EDITOR_UPDATE_BLOCKER",FB_OWNED_PAGES_LOAD_ERROR:"ADS_CM_FB_OWNED_PAGES_LOAD_ERROR",FB_OWNED_PAGES_LOAD_SUCCESS:"ADS_CM_FB_OWNED_PAGES_LOAD_SUCCESS",FB_OWNED_PAGES_PARTIAL_LOAD_SUCCESS:"ADS_CM_FB_OWNED_PAGES_PARTIAL_LOAD_SUCESS",FB_PAGE_LOAD_ERROR:"ADS_CM_FB_PAGE_LOAD_ERROR",FB_PAGE_LOAD_SUCCESS:"ADS_CM_FB_PAGE_LOAD_SUCCESS",FEEDBACK_MODULE_NOT_GENERATED:"FEEDBACK_MODULE_NOT_GENERATED",FILTER_BAR_SIZE_CHANGE:"FILTER_BAR_SIZE_CHANGE",FILTER_PANEL_TOGGLE:"ADS_CM_FILTER_PANEL_TOGGLE",FILTER_SET_CHANGE:"ADS_CM_FILTER_SET_CHANGE",HEARTBEAT:"ADS_CM_HEARTBEAT",HELP_TRAY_CLICK_LINK:"ADS_CM_HELP_TRAY_CLICK_LINK",HELP_TRAY_SET_TAG:"ADS_CM_HELP_TRAY_SET_TAG",HELP_TRAY_SUPPORT_BUTTON_CLICK:"ADS_CM_HELP_TRAY_SUPPORT_BUTTON_CLICK",HELP_TRAY_VIEW_ARTICLE:"ADS_CM_HELP_TRAY_VIEW_ARTICLE",HISTORY_JUMP:"ADS_CM_HISTORY_JUMP",IN_REVIEW_NOTICE_DISMISS:"ADS_CM_IN_REVIEW_NOTICE_DISMISS",INIT_DUPLICATES:"ADS_CM_INIT_DUPLICATES",INIT_FROM_URL:"ADS_CM_INIT_FROM_URL",INITIAL_COMPONENT_BOOTLOADED:"ADS_CM_INITIAL_COMPONENT_BOOTLOADED",INITIAL_PAGE_STATE:"ADS_CM_INITIAL_PAGE_STATE",INITIATE_CREATION:"ADS_CM_INITIATE_CREATION",INSIGHT_SECTION_CHANGE:"ADS_CM_INSIGHT_SECTION_CHANGE",INSIGHTS_CHROME_INIT:"ADS_CM_INSIGHTS_CHROME_INIT",INSIGHTS_DATA_LOADED:"ADS_CM_INSIGHTS_DATA_LOADED",INSIGHTS_METRICS_CHANGE:"INSIGHTS_METRICS_CHANGE",INSIGHTS_SUBSECTION_CHANGE:"ADS_CM_INSIGHTS_SUBSECTION_CHANGE",LAST_THIRTY_DAYS_SPEND_LOAD_ERROR:"ADS_CM_LAST_THIRTY_DAYS_SPEND_LOAD_ERROR",LAST_THIRTY_DAYS_SPEND_LOADED:"ADS_CM_LAST_THIRTY_DAYS_SPEND_LOADED",LIVE_SYNC_NEW_STALENESS_VALUE:"ADS_CM_LIVE_SYNC_NEW_STALENESS_VALUE",LIVE_SYNC_TIME_TO_POLL:"ADS_CM_LIVE_SYNC_TIME_TO_POLL",LOAD_CHILD_OBJECTS_ERROR:"ADS_CM_LOAD_CHILD_OBJECTS_ERROR",LOAD_CHILD_OBJECTS_SUCCESS:"ADS_CM_LOAD_CHILD_OBJECTS_SUCCESS",MAIN_CONTROLLER_SETUP:"ADS_CM_MAIN_CONTROLLER_SETUP",MESSAGE_BAR_HEIGHT_CHANGE:"ADS_CM_MESSAGE_BAR_HEIGHT_CHANGE",METRICS_TOUR_COMPLETED:"ADS_CM_METRICS_TOUR_COMPLETED",MULTI_PRODUCT_TAB_SELECT:"MULTI_PRODUCT_TAB_SELECT",MULTIPLE_OBJECTIVE_BOX_CLICK:"ADS_CM_MULTIPLE_OBJECTIVE_BOX_CLICK",NEW_OBJECTS_CREATED:"ADS_CM_NEW_OBJECTS_CREATED",CLASSIFIED_NEW_USER_FULL_LAUNCH:"ADS_CM_CLASSIFIED_NEW_USER_FULL_LAUNCH",CLASSIFIED_SMALL_OPT_IN_BUSINESS_USER:"ADS_CM_CLASSIFIED_SMALL_OPT_IN_BUSINESS_USER",OBJECT_LEVEL_SELECTOR_CLICKED:"ADS_CM_OBJECT_LEVEL_SELECTOR_CLICKED",OVERVIEW_CARD_HEADER_CLICK:"ADS_CM_OVERVIEW_CARD_HEADER_CLICK",OVERVIEW_CARD_MOUNTED:"ADS_CM_OVERVIEW_CARD_MOUNTED",PAGE_CHANGE:"ADS_CM_PAGE_CHANGE",PAGE_CONTENT_MOUNTED:"ADS_CM_PAGE_CONTENT_MOUNTED",PAGE_ICON_MOUNTED:"ADS_CM_PAGE_ICON_MOUNTED",PAGE_LOADED:"ADS_CM_PAGE_LOADED",PAGE_POST_LOADED:"ADS_CM_PAGE_POST_LOADED",PAGE_POST_LOAD_FAILURE:"ADS_CM_PAGE_POST_LOAD_FAILURE",PAGE_READY:"ADS_CM_PAGE_READY",PAGE_REQUEST:"ADS_CM_PAGE_REQUEST",PAGE_REQUEST_WILL_LOAD_CM:"ADS_CM_PAGE_REQUEST_WILL_LOAD_CM",PAYMENTS_ACCOUNT_INITED:"ADS_CM_PAYMENTS_ACCOUNT_INITED",PERFORMANCE_HIGHLIGHT_ACTION:"ADS_CM_PERFORMANCE_HIGHLIGHT_ACTION",PERFORMANCE_HIGHLIGHT_ELIGIBILITY:"ADS_CM_PERFORMANCE_HIGHLIGHT_ELIGIBILITY",PERFORMANCE_HIGHLIGHT_SHOW_MARKER:"ADS_CM_PERFORMANCE_HIGHLIGHT_SHOW_MARKER",PERFORMANCE_HIGHLIGHT_SHOW_TIP:"ADS_CM_PERFORMANCE_HIGHLIGHT_SHOW_TIP",PREFETCH_LOADED:"ADS_CM_PREFETCH_LOADED",PREPAY_BALANCE_LOADED:"ADS_CM_PREPAY_BALANCE_LOADED",PREPAY_BALANCE_LOADING_ERROR:"ADS_CM_PREPAY_BALANCE_LOADING_ERROR",PROMOTABLE_POSTS_LOAD_SUCCESS:"ADS_CM_PROMOTABLE_POSTS_LOAD_SUCCESS",PROMOTABLE_POSTS_LOAD_ERROR:"ADS_CM_PROMOTABLE_POSTS_LOAD_ERROR",REFRESH_VIEW_REQUESTED:"ADS_CM_REFRESH_VIEW_REQUESTED",RENDER_INIT_CHROME:"ADS_CM_RENDER_INIT_CHROME",REPORT_STATS_LOAD_ERROR:"ADS_CM_REPORT_STATS_LOAD_ERROR",REPORT_STATS_LOAD_SUCCESS:"ADS_CM_REPORT_STATS_LOAD_SUCCESS",REPORTING_SCHEDULE_CREATE:"ADS_CM_REPORTING_SCHEDULE_CREATE",REPORTING_SCHEDULE_CREATE_ERROR:"ADS_CM_REPORTING_SCHEDULE_CREATE_ERROR",REPORTING_SCHEDULE_CREATE_SUCCESS:"ADS_CM_REPORTING_SCHEDULE_CREATE_SUCCESS",REPORTING_SCHEDULE_FETCH:"ADS_CM_REPORTING_SCHEDULE_FETCH",REPORTING_SCHEDULE_FETCH_ERROR:"ADS_CM_REPORTING_SCHEDULE_FETCH_ERROR",REPORTING_SCHEDULE_FETCH_SUCCESS:"ADS_CM_REPORTING_SCHEDULE_FETCH_SUCCESS",REPORTING_SCHEDULE_REMOVE:"ADS_CM_REPORTING_SCHEDULE_REMOVE",REPORTING_SCHEDULE_REMOVE_ERROR:"ADS_CM_REPORTING_SCHEDULE_REMOVE_ERROR",REPORTING_SCHEDULE_UPDATE:"ADS_CM_REPORTING_SCHEDULE_UPDATE",REPORTING_SCHEDULE_UPDATE_ERROR:"ADS_CM_REPORTING_SCHEDULE_UPDATE_ERROR",REPORTING_SHARE:"ADS_CM_REPORTING_SHARE",REPORTS_MENU_BUTTON_CLICKED:"ADS_CM_REPORTS_MENU_BUTTON_CLICKED",RESET_ADGROUP_EDIT:"ADS_CM_RESET_ADGROUP_EDIT",RESIZE_CHROME:"ADS_CM_RESIZE_CHROME",ROUTE_URI_MATCH_FAILED:"ADS_CM_ROUTE_URI_MATCH_FAILED",ROUTE_LOAD_SUCCESS:"ADS_CM_ROUTE_LOAD_SUCCESS",SAVED_FILTER_SET_CREATE:"ADS_CM_SAVED_FILTER_SET_CREATE",SAVED_FILTER_SET_DELETE:"ADS_CM_SAVED_FILTER_SET_DELETE",SAVED_FILTER_SET_INSERT_LOCALLY:"ADS_CM_SAVED_FILTER_SET_INSERT_LOCALLY",SAVED_FILTER_SET_SELECTED:"ADS_CM_SAVED_FILTER_SET_SELECTED",SAVED_FILTER_SET_UPDATE_ID:"ADS_CM_SAVED_FILTER_SET_UPDATE_ID",SAVED_FILTER_SET_UPDATE_TIME:"ADS_CM_SAVED_FILTER_SET_UPDATE_TIME",SELECT_ALL_COLUMNS:"ADS_CM_SELECT_ALL_COLUMNS",SELECT_ALL_ROWS:"ADS_CM_SELECT_ALL_ROWS",SELECTED_INDICES_RANGE:"ADS_CM_SELECTED_INDICES_RANGE",SET_CURRENT_DRAFT_ERROR:"ADS_CM_SET_CURRENT_DRAFT_ERROR",SET_CURRENT_DRAFT_SUCCESS:"ADS_CM_SET_CURRENT_DRAFT_SUCCESS",SET_DRAFT_MODE:"ADS_CM_SET_DRAFT_MODE",SETTINGS_CANCEL_EDIT:"ADS_CM_SETTINGS_CANCEL_EDIT",SETTINGS_EDITOR_ERROR:"ADS_CM_SETTINGS_EDITOR_ERROR",SHOW_DUPLICATE_MODAL:"ADS_CM_SHOW_DUPLICATE_MODAL",SHOW_OBJECTIVE_TIP:"ADS_CM_SHOW_OBJECTIVE_TIP",SLOW_LOAD_DETECTED:"ADS_CM_SLOW_LOAD_DETECTED",SLOW_LOAD_FINISHED:"ADS_CM_SLOW_LOAD_FINISHED",SORT_FORCE_SIMPLE:"ADS_CM_SORT_FORCE_SIMPLE",SORT_TOGGLED:"ADS_CM_SORT_TOGGLED",SPEND_LIMIT_HISTORY_LOADED:"ADS_CM_SPEND_LIMIT_HISTORY_LOADED",SPEND_LIMIT_HISTORY_LOADING_ERROR:"ADS_CM_SPEND_LIMIT_HISTORY_LOADING_ERROR",SPEND_LIMIT_INFO_LOADED:"ADS_CM_SPEND_LIMIT_INFO_LOADED",SPEND_LIMIT_INFO_LOADING_ERROR:"ADS_CM_SPEND_LIMIT_INFO_LOADING_ERROR",STORE_LOADED_OBJECTS:"ADS_CM_STORE_LOADED_OBJECTS",STORES_LOADED:"ADS_CM_STORES_LOADED",TAB_SELECTED:"ADS_CM_TAB_SELECTED",TABLE_DISABLE_HOVER:"ADS_CM_TABLE_DISABLE_HOVER",TABLE_ENABLE_HOVER:"ADS_CM_TABLE_ENABLE_HOVER",TABLE_INIT:"ADS_CM_TABLE_INIT",TABLE_ROW_HOVERED_OFF:"ADS_CM_TABLE_ROW_HOVERED_OFF",TABLE_ROW_HOVERED_ON:"ADS_CM_TABLE_ROW_HOVERED_ON",TIME_RANGE_CHANGE:"ADS_CM_TIME_RANGE_CHANGE",TIME_SERIES_STATS_LOAD_ERROR:"ADS_CM_TIME_SERIES_STATS_LOAD_ERROR",TIME_SERIES_STATS_LOAD_SUCCESS:"ADS_CM_TIME_SERIES_STATS_LOAD_SUCCESS",TIP_CLOSED:"ADS_CM_TIP_CLOSED",TIPS_LOADED:"ADS_CM_TIPS_LOADED",TIPS_PANEL_RELOAD:"ADS_CM_TIPS_PANEL_RELOAD",TOASTS_ADD:"ADS_CM_TOASTS_ADD",TOASTS_CLEAR:"ADS_CM_TOASTS_CLEAR",TOASTS_HIDE:"ADS_CM_TOASTS_HIDE",TODAY_SPEND_LOAD_ERROR:"ADS_CM_TODAY_SPEND_LOAD_ERROR",TODAY_SPEND_LOADED:"ADS_CM_TODAY_SPEND_LOADED",TOGGLE_NAM_PERFORMANCE_HIGHLIGHT:"TOGGLE_NAM_PERFORMANCE_HIGHLIGHT",TOGGLE_SELECTION_ID:"ADS_CM_TOGGLE_SELECTION_ID",UNDER_DELIVERY_LOAD_CAMPAIGN_COUNT_ERROR:"ADS_CM_UNDER_DELIVERY_LOAD_CAMPAIGN_COUNT_ERROR",UNDER_DELIVERY_LOAD_CAMPAIGN_COUNT_SUCCESS:"ADS_CM_UNDER_DELIVERY_LOAD_CAMPAIGN_COUNT_SUCCESS",UNDER_DELIVERY_CATEGORY_COUNTS_LOAD_ERROR:"ADS_CM_UNDER_DELIVERY_CATEGORY_COUNTS_LOAD_ERROR",UNDER_DELIVERY_CATEGORY_COUNTS_LOAD_SUCCESS:"ADS_CM_UNDER_DELIVERY_CATEGORY_COUNTS_LOAD_SUCCESS",UNDER_DELIVERY_LOAD_ERROR:"ADS_CM_UNDER_DELIVERY_LOAD_ERROR",UNDER_DELIVERY_LOAD_ERROR_CAMPAIGN:"ADS_CM_UNDER_DELIVERY_LOAD_ERROR_CAMPAIGN",UNDER_DELIVERY_LOAD_SUCCESS:"ADS_CM_UNDER_DELIVERY_LOAD_SUCCESS",UNDER_DELIVERY_LOAD_SUCCESS_CAMPAIGN:"ADS_CM_UNDER_DELIVERY_LOAD_SUCCESS_CAMPAIGN",UNDER_DELIVERY_ON_CLICK_CATEGORY_CARD:"ADS_CM_UNDER_DELIVERY_ON_CLICK_CATEGORY_CARD",UNKNOWN_CREATIVE_EDITOR:"ADS_CM_UNKNOWN_CREATIVE_EDITOR",UPDATE_ADGROUP_EDIT:"ADS_CM_UPDATE_ADGROUP_EDIT",UPDATE_ADGROUP_EDITING_IMAGE:"ADS_CM_UPDATE_ADGROUP_EDITING_IMAGE",UPDATE_OPT_IN_PREF:"ADS_CM_UPDATE_OPT_IN_PREF",UPDATE_SPEND_LIMIT_FAIL:"ADS_CM_UPDATE_SPEND_LIMIT_FAIL",UPDATE_SPEND_LIMIT_INIT:"ADS_CM_UPDATE_SPEND_LIMIT_INIT",UPDATE_SPEND_LIMIT_SUCCESS:"ADS_CM_UPDATE_SPEND_LIMIT_SUCCESS",USER_ACCEPTED_SAM:"ADS_CM_USER_ACCEPTED_SAM",USER_INFO_LOAD_SUCCESS:"ADS_CM_USER_INFO_LOAD_SUCCESS",USER_INFO_LOAD_ERROR:"ADS_CM_USER_INFO_LOAD_ERROR",VIEWER_INFO_LOAD_ERROR:"ADS_CM_VIEWER_INFO_LOAD_ERROR",VIEWER_INFO_LOAD_SUCCESS:"ADS_CM_VIEWER_INFO_LOAD_SUCCESS",VIDEO_ENCODING_SUCCESS:"ADS_CM_VIDEO_ENCODING_SUCCESS",VIDEO_UPLOAD_CANCEL:"ADS_CM_VIDEO_UPLOAD_CANCEL",VIDEO_UPLOAD_ERROR:"ADS_CM_VIDEO_UPLOAD_ERROR",VIDEO_UPLOAD_PROGRESS:"ADS_CM_VIDEO_UPLOAD_PROGRESS",VIDEO_UPLOAD_START:"ADS_CM_VIDEO_UPLOAD_START",VIDEO_UPLOAD_SUCCESS:"ADS_CM_VIDEO_UPLOAD_SUCCESS",XCONTROLLER_SUCCESS:"ADS_CM_XCONTROLLER_SUCCESS"};},null,{});
__d("AdsCMErrorTypes",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={FATAL:"ADS_CM_ERROR_FATAL",EXCEPTION:"ADS_CM_ERROR_EXCEPTION",USER_ERROR:"ADS_CM_ERROR_USER",API_ERROR:"ADS_CM_API_ERROR",XCONTROLLER_FATAL:"ADS_CM_XCONTROLLER_FATAL",XCONTROLLER_TIMEOUT:"ADS_CM_XCONTROLLER_TIMEOUT",XCONTROLLER_MEMORY_LIMIT:"ADS_CM_XCONTROLLER_MEMORY_LIMIT",XCONTROLLER_USER_ERROR:"ADS_CM_XCONTROLLER_USER_ERROR"};},null,{});
__d("AdsCMTabUserFacingValues",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ACCOUNT_INFORMATION_TAB:"information",ACCOUNT_NOTIFICATIONS_TAB:"notifications",ACCOUNT_ROLES_TAB:"roles",ACCOUNT_TARGETING_TAB:"targeting",ACCOUNT_TAB:"accounts",ADGROUP_TAB:"ads",AUDIENCES_TAB:"manage",MEDIA_LIBRARY_TAB:"library",CAMPAIGN_GROUP_TAB:"campaigns",CAMPAIGN_TAB:"adsets",CONVERSION_PIXEL_TAB:"conversion_pixel",CREATION_TAB:"creation",DETAIL_TAB:"detail",HISTORY_TAB:"history",LIST_TAB:"list",OVERVIEW_TAB:"overview",PAYMENT_METHOD_TAB:"payment_methods",PIXEL_LIST_TAB:"pixels",LIFT_UPLOAD_TAB:"lift_upload",LIFT_STUDY_TAB:"lift_study",SETTINGS_TAB:"settings",SPEND_LIMIT_TAB:"spend_limit",TRANSACTION_DETAIL_TAB:"transaction_details",TRANSACTION_TAB:"transactions",TRANSACTIONS_BY_PAGE_TAB:"transactions_by_page",TABLE_OVERVIEW_TAB:"table_overview",UNIFIED_PIXEL_TAB:"custom_audience_pixel",CUSTOM_CONVERSIONS_TAB:"list"};},null,{});
__d("AdsConversionActionTypes",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={APP_CUSTOM_EVENT:"app_custom_event",APP_CUSTOM_EVENT_FB_MOBILE_ACHIEVEMENT_UNLOCKED:"app_custom_event.fb_mobile_achievement_unlocked",APP_CUSTOM_EVENT_FB_MOBILE_ACTIVATE_APP:"app_custom_event.fb_mobile_activate_app",APP_CUSTOM_EVENT_FB_MOBILE_ADD_PAYMENT_INFO:"app_custom_event.fb_mobile_add_payment_info",APP_CUSTOM_EVENT_FB_MOBILE_ADD_TO_CART:"app_custom_event.fb_mobile_add_to_cart",APP_CUSTOM_EVENT_FB_MOBILE_ADD_TO_WISHLIST:"app_custom_event.fb_mobile_add_to_wishlist",APP_CUSTOM_EVENT_FB_MOBILE_COMPLETE_REGISTRATION:"app_custom_event.fb_mobile_complete_registration",APP_CUSTOM_EVENT_FB_MOBILE_CONTENT_VIEW:"app_custom_event.fb_mobile_content_view",APP_CUSTOM_EVENT_FB_MOBILE_INITIATED_CHECKOUT:"app_custom_event.fb_mobile_initiated_checkout",APP_CUSTOM_EVENT_FB_MOBILE_LEVEL_ACHIEVED:"app_custom_event.fb_mobile_level_achieved",APP_CUSTOM_EVENT_FB_MOBILE_PURCHASE:"app_custom_event.fb_mobile_purchase",APP_CUSTOM_EVENT_FB_MOBILE_RATE:"app_custom_event.fb_mobile_rate",APP_CUSTOM_EVENT_FB_MOBILE_SEARCH:"app_custom_event.fb_mobile_search",APP_CUSTOM_EVENT_FB_MOBILE_SPENT_CREDITS:"app_custom_event.fb_mobile_spent_credits",APP_CUSTOM_EVENT_FB_MOBILE_TUTORIAL_COMPLETION:"app_custom_event.fb_mobile_tutorial_completion",APP_CUSTOM_EVENT_OTHER:"app_custom_event.other",APP_ENGAGEMENT:"app_engagement",APP_INSTALL:"app_install",APP_STORY:"app_story",APP_USE:"app_use",CHECKIN:"checkin",COMMERCE_EVENT:"commerce_event",COMMERCE_EVENT_ADD_TO_CART:"commerce_event.add_to_cart",COMMERCE_EVENT_OTHER:"commerce_event.other",COMMERCE_EVENT_PURCHASE:"commerce_event.purchase",COMMERCE_EVENT_VIEW_CONTENT:"commerce_event.view_content",COUPON_CLAIM:"receive_offer",CREDIT_SPENT:"credit_spent",DWELL:"dwell",FOLLOW:"follow",FULL_VIEW:"full_view",GAME_PLAYS:"games.plays",GIFT_SALE:"gift_sale",LEADGEN:"leadgen.other",LIKE:"like",LINK_CLICK:"link_click",MENTION:"mention",MOBILE_APP_INSTALL:"mobile_app_install",MOBILE_APP_RETENTION:"mobile_app_retention",MOBILE_APP_EVENT_CONVERSION:"offsite_mobile_app_conversion",NEW_MOBILE:"new_mobile",OFFSITE_CONVERSION:"offsite_conversion",OFFSITE_CONVERSION_ADD_TO_CART:"offsite_conversion.add_to_cart",OFFSITE_CONVERSION_CHECKOUT:"offsite_conversion.checkout",OFFSITE_CONVERSION_FB_PIXEL_ADD_PAYMENT_INFO:"offsite_conversion.fb_pixel_add_payment_info",OFFSITE_CONVERSION_FB_PIXEL_ADD_TO_CART:"offsite_conversion.fb_pixel_add_to_cart",OFFSITE_CONVERSION_FB_PIXEL_ADD_TO_WISHLIST:"offsite_conversion.fb_pixel_add_to_wishlist",OFFSITE_CONVERSION_FB_PIXEL_COMPLETE_REGISTRATION:"offsite_conversion.fb_pixel_complete_registration",OFFSITE_CONVERSION_FB_PIXEL_INITIATE_CHECKOUT:"offsite_conversion.fb_pixel_initiate_checkout",OFFSITE_CONVERSION_FB_PIXEL_LEAD:"offsite_conversion.fb_pixel_lead",OFFSITE_CONVERSION_FB_PIXEL_PURCHASE:"offsite_conversion.fb_pixel_purchase",OFFSITE_CONVERSION_FB_PIXEL_SEARCH:"offsite_conversion.fb_pixel_search",OFFSITE_CONVERSION_FB_PIXEL_VIEW_CONTENT:"offsite_conversion.fb_pixel_view_content",OFFSITE_CONVERSION_KEY_PAGE_VIEW:"offsite_conversion.key_page_view",OFFSITE_CONVERSION_LEAD:"offsite_conversion.lead",OFFSITE_CONVERSION_OTHER:"offsite_conversion.other",OFFSITE_CONVERSION_REGISTRATION:"offsite_conversion.registration",OTHER:"other",PAGE_ENGAGEMENT:"page_engagement",PAGE_STORY:"page_story",PHOTO_VIEW:"photo_view",POST:"post",POST_COMMENT:"comment",POST_ENGAGEMENT:"post_engagement",POST_LIKE:"post_like",POST_STORY:"post_story",RSVP:"rsvp",TAB_VIEW:"tab_view",TOTAL_ACTIONS:"total_actions",VIDEO_PLAY:"video_play",VIDEO_VIEW:"video_view",VOTE:"vote"};},null,{});
__d("AdsGetDirectionsActionLink",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={LINK_START:"fbgeo:\/\/",URI_REGEX:"^fbgeo:\\\/\\\/(-?\\d+(?:\\.\\d+)?),\\s*(-?\\d+(?:\\.\\d+)?)(?:,\\s*\"([^\"]+)\")?$"};},null,{});
__d("AdsImageUploadConstants",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={maxWidth:2048,maxHeight:2048};},null,{});
__d("AdsInstagramImageSpecs",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ASPECT_RATIO_TOLERANCE:.03,MIN_ASPECT_RATIO:1,MAX_ASPECT_RATIO:1.91};},null,{});
__d("AdsInterfacesLoggerConfigColumns",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ACCOUNTID:"accountid",ACCOUNT_28DAY_CF_SPEND_IN_USD_CENTS:"account_28day_cf_spend_in_usd_cents",ACCOUNT_28DAY_PE_SPEND_IN_USD_CENTS:"account_28day_pe_spend_in_usd_cents",ACCOUNT_28DAY_SPEND_IN_USD_CENTS:"account_28day_spend_in_usd_cents",ACTIVITY_LEVEL:"activity_level",ADMARKET_ID:"admarket_id",AD_ACCOUNT_ID:"ad_account_id",API_FBTRACE_ID:"api_fbtrace_id",BUSINESS_ID:"business_id",BUSINESS_ID_EXPLICIT:"business_id_explicit",CLUSTER_ID:"cluster_id",COHORT:"cohort",EVENT_NAME:"event_name",EXPORTED_MODULE_COUNT:"exported_module_count",FBTRACE_ID:"fbtrace_id",GK_FAIL:"gk_fail",GK_PASS:"gk_pass",IS_EMPLOYEE:"is_employee",IS_EVENT_FIRST_OF_TYPE_IN_SESSION:"is_event_first_of_type_in_session",LOADED_MODULE_COUNT:"loaded_module_count",LOADED_PACKAGES:"loaded_packages",LOADED_PACKAGE_COUNT:"loaded_package_count",REQUIRE_FACTORY_TIME:"require_factory_time",SESSION_ID:"session_id",STACK_TRACE:"stack_trace",STACK_TRACE_BASE:"stack_trace_base",STACK_TRACE_SOURCE:"stack_trace_source",TIME_SINCE_LOAD:"time_since_load",TIME_SINCE_NAVIGATION_START:"time_since_navigation_start",WINDOW_HEIGHT:"window_height",WINDOW_WIDTH:"window_width"};},null,{});
__d("AdsMultiAbsoluteDefaults",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={WEBSITE_CONVERSIONS:{ACTIONS:30},MOBILE_APP_INSTALLS:{ACTIONS:10},LOCAL_AWARENESS:{REACH:15},WEBSITE_CLICKS:{ACTIONS:5},MOBILE_APP_ENGAGEMENT:{ACTIONS:5},POST_ENGAGEMENT:{ACTIONS:5},OFFER_CLAIMS:{ACTIONS:5},PAGE_LIKES:{ACTIONS:5},CANVAS_APP_INSTALLS:{ACTIONS:5},EVENT_RESPONSES:{ACTIONS:5},CANVAS_APP_ENGAGEMENT:{ACTIONS:5},VIDEO_VIEWS:{ACTIONS:5},LEAD_GENERATION:{ACTIONS:5},PRODUCT_CATALOG_SALES:{ACTIONS:30},BRAND_AWARENESS:{ACTIONS:5}};},null,{});
__d("AdsOffsiteConversionConstants",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={pixelTOS:"\/customaudiences\/app\/tos",pixelNameMaxLength:100,statuses:{UNVERIFIED:"Unverified",ACTIVE:"Active",INACTIVE:"Inactive",DELETED:"Deleted"},statusOrdering:{Active:0,Inactive:1,Unverified:2},tags:["checkout","registration","lead","key_page_view","add_to_cart","other"],tagOrdering:{checkout:0,registration:1,lead:2,key_page_view:3,add_to_cart:4,other:5},tosProjectName:"offsite_conversion",emailSources:{ADS_MANAGER:"ads_manager",AYMT:"aymt",CREATE_FLOW:"create_flow",POWER_EDITOR:"power_editor"},uris:{HELP_PAGE_URL:"\/help\/435189689870514"},jsPixelFields:{PIXEL_ID:"id",NAME:"name",TAG:"tag",CREATED_BY:"created_by",CREATE_TIME:"create_time",STATUS:"status",OWNER_ADMARKET_ID:"owner_admarket_id",OWNER_ADACCOUNT_ID:"owner_adaccount_id",CREATOR_NAME:"creator_name",SHARERS_NAMES:"sharers_names",HAS_WRITE_PERMISSION:"has_write_permission",LAST_FIRING_TIME:"last_firing_time"}};},null,{});
__d("AdsOtherConsts",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={REACH_TOO_LOW_NUMBER:1000};},null,{});
__d("AdsPayAPIAllPaymentMethodsFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ALTPAYS:"payment_method_altpays",CREDIT_CARDS:"pm_credit_card",DIRECT_DEBITS:"payment_method_direct_debits",EXTENDED_CREDITS:"payment_method_extended_credits",PAYPALS:"payment_method_paypal",TOKENS:"payment_method_tokens"};},null,{});
__d("AdsPayAPICreditCardAddressFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={STREET:"street",STREET2:"street2",CITY:"city",STATE:"state",ZIP:"zip",COUNTRY_CODE:"country_code"};},null,{});
__d("AdsPayAPIPaymentMethodAltpayFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ACCOUNT_ID:"account_id",COUNTRY:"country",CREDENTIAL_ID:"credential_id",DISPLAY_NAME:"display_name",IMAGE_URL:"image_url",INSTRUMENT_TYPE:"instrument_type",NETWORK_ID:"network_id",PAYMENT_PROVIDER:"payment_provider",TITLE:"title"};},null,{});
__d("AdsPayAPIPaymentMethodCreditCardFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ACCOUNT_ID:"account_id",CREDENTIAL_ID:"credential_id",CREDIT_CARD_ADDRESS:"credit_card_address",CREDIT_CARD_TYPE:"credit_card_type",DISPLAY_STRING:"display_string",EXP_MONTH:"exp_month",EXP_YEAR:"exp_year",FIRST_NAME:"first_name",IS_VERIFIED:"is_verified",LAST_NAME:"last_name",MIDDLE_NAME:"middle_name",TIME_CREATED:"time_created",TIME_UPDATED:"time_updated"};},null,{});
__d("AdsPayAPIPaymentMethodDirectDebitFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ACCOUNT_ID:"account_id",ADDRESS:"address",CAN_VERIFY:"can_verify",CREDENTIAL_ID:"credential_id",DISPLAY_STRING:"display_string",FIRST_NAME:"first_name",IS_PENDING:"is_pending",LAST_NAME:"last_name",MIDDLE_NAME:"middle_name",STATUS:"status",TIME_CREATED:"time_created",TIME_UPDATED:"time_updated"};},null,{});
__d("AdsPayAPIPaymentMethodExtendedCreditFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ACCOUNT_ID:"account_id",BALANCE:"balance",CREDENTIAL_ID:"credential_id",MAX_BALANCE:"max_balance",SEQUENTIAL_LIABILITY_AMOUNT:"sequential_liability_amount",PARTITIONED_FROM:"partitioned_from",TYPE:"type"};},null,{});
__d("AdsPayAPIPaymentMethodTokenFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ACCOUNT_ID:"account_id",CREDENTIAL_ID:"credential_id",CURRENT_BALANCE:"current_balance",ORIGINAL_BALANCE:"original_balance",TIME_CREATED:"time_created",TIME_EXPIRE:"time_expire",TYPE:"type"};},null,{});
__d("AdsPaymentsFlowPlacement",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={UNSETTLED:"unsettled",FUNDING_PAGE:"funding_page",CREATE_FLOW:"create_flow",PAGE_NAX:"page_nax",CF_COUPON_MEGAPHONE:"cf_coupon_megaphone",BOOSTED_POST:"boosted_post",BOOSTED_APP:"boosted_app",BOOSTED_PAGE_LIKE:"boosted_page_like",BOOSTED_PAGE_LIKE_PAGE_NAX:"boosted_page_like_page_nax",BOOSTED_CCTA:"boosted_ccta",BOOSTED_WEBSITE:"boosted_website",BOOSTED_LOCALAWARENESS:"boosted_localawareness",GRACE_PERIOD:"grace_period",MARKETING_PAYMENT_METHOD:"marketing_payment_method",BRAZIL_PRIMARY_AMEX_MEGAPHONE:"brazil_primary_amex_megaphone",CM_PAYMENT_METHODS_TAB:"cm_payment_methods_tab",MIGRATE_TO_POSTPAY:"migrate_to_postpay"};},null,{});
__d("AdsPixelNotifFieldEnum",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={PERSONAL_MESSAGE_LABEL:"personal_message_label",INSTRUCTION_LABEL:"instruction_label",INSTRUCTION:"instruction",NEW_INSTRUCTION:"new_instruction",STANDARD_EVENT_INSTRUCTION:"standard_event_instruction",STANDARD_EVENTS_CODE:"standard_events_code"};},null,{});
__d("AdsPixelNotifParamsEnum",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={PERSONAL_MESSAGE:"personal_message",PIXEL_ID:"pixel_id",RECIPIENTS:"recipients"};},null,{});
__d("AdsPreviewApiFormats",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={RIGHT_COLUMN_STANDARD:"RIGHT_COLUMN_STANDARD",DESKTOP_FEED_STANDARD:"DESKTOP_FEED_STANDARD",MOBILE_FEED_STANDARD:"MOBILE_FEED_STANDARD",MOBILE_FEED_BASIC:"MOBILE_FEED_BASIC",MOBILE_INTERSTITIAL:"MOBILE_INTERSTITIAL",MOBILE_BANNER:"MOBILE_BANNER",MOBILE_NATIVE:"MOBILE_NATIVE",INSTAGRAM_STANDARD:"INSTAGRAM_STANDARD"};},null,{});
__d("AdsReportStatsColumnType",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={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",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_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",ACTION_CAROUSEL_CARD_ID:"action_carousel_card_id",ACTION_DESTINATION:"action_destination",ACTION_DEVICE:"action_device",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_TYPE:"action_video_type",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_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:"actions",ACTION_UNQ:"unique_actions",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_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_TOTAL_BY_CONVS:"total_actions_by_convs",ACTION_TOTAL_UNQ_BY_CONVS:"total_unique_actions_by_convs",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_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:"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",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:"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",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",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",ACTION_INLINE:"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",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",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",LEGAL_IMPRESSIONS:"legal_impressions",LEGAL_CLICKS:"legal_clicks",LEGAL_SPEND:"legal_spent",LEGAL_ACTION:"legal_actions",LEGAL_CONVERSION:"legal_conversions",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",PLACEMENT_MERGE_RHC:"placement_merge_rhc",IMPRESSION_DEVICE:"impression_device",PRODUCT_ID:"product_id",REACH:"reach",SOCIAL_REACH:"social_reach",CTR:"ctr",UNIQUE_CTR:"unique_ctr",UNIQUE_LINK_CLICKS_CTR:"unique_link_clicks_ctr",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_10_SEC_VIDEO_VIEW:"cost_per_10_sec_video_view",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_UNIQUE_ACTION_TYPE:"cost_per_unique_action_type",ROAS:"roas",ACTIONS_PER_IMPRESSION:"actions_per_impression",RESULT_RATE:"result_rate",COST_PER_ACTION_RESULT:"cost_per_action_result",COST_PER_RESULT:"cost_per_result",RESULTS:"results",PERFORMANCE_INDICATOR:"performance_indicator",CARD_VIEWS:"card_views",RELEVANCE_SCORE:"relevance_score",RELEVANCE_SCORE_VALUE:"score",RELEVANCE_SCORE_POSITIVE_FEEDBACK:"positive_feedback",RELEVANCE_SCORE_NEGATIVE_FEEDBACK:"negative_feedback",RELEVANCE_SCORE_STATUS:"status",MPA_IMPRESSIONS:"mpa_impressions",WEBSITE_CTR:"website_ctr",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_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_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:"total_video_sec_watched_actions_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:"total_video_avg_sec_watched_actions_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_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_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_total_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_total_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_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_total_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_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_total_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_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_total_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_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_total_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_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_total_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_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_total_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_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_total_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_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_total_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_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_total_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_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_total_by_convs",ATTENTION_SCORE:"attention_score",DWELL_3_SEC:"dwell_3_sec",DWELL_5_SEC:"dwell_5_sec",DWELL_7_SEC:"dwell_7_sec",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",FULL_VIEW_IMPRESSIONS:"full_view_impressions",FULL_VIEW_REACH:"full_view_reach",PLACE_PAGE_ID:"place_page_id"};},null,{});
__d("AdsRunStatus",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={PENDING:"PENDING",ACTIVE:"ACTIVE",PAUSED:"PAUSED",DELETED:"DELETED",PENDING_REVIEW:"PENDING_REVIEW",DISAPPROVED:"DISAPPROVED",PREAPPROVED:"PREAPPROVED",PENDING_BILLING_INFO:"PENDING_BILLING_INFO",CAMPAIGN_PAUSED:"CAMPAIGN_PAUSED",ADGROUP_PAUSED:"ADGROUP_PAUSED",CAMPAIGN_GROUP_PAUSED:"CAMPAIGN_GROUP_PAUSED",ARCHIVED:"ARCHIVED",INVALID_STATUS:"INVALID_STATUS",ARCHIVED_IN_DRAFT:"ARCHIVED_IN_DRAFT"};},null,{});
__d("AdsShortURLConstants",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={HASH_PARTS_SEPARATOR:":",IDS_SEPARATOR:",",HASH_INDICATOR:"h"};},null,{});
__d("AdsTargetingAdmarketKeywordCategory",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={KEYWORD_CATEGORY_RAW:0,KEYWORD_CATEGORY_WIKI:1};},null,{});
__d("AdsTargetingSpecOverallRating",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={BAD_TOO_BROAD:"BAD_TOO_BROAD",BAD_TOO_SMALL:"BAD_TOO_SMALL",VAGUE:"VAGUE",GOOD:"GOOD"};},null,{});
__d("AdsToplineProductSettings",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={buyingTypes:{"AF-FCPM":{FIXED_CPM:"FIXED_CPM"},"AF-FCPM-RB":{REACHBLOCK:"REACHBLOCK"},AF_FCPM_RF:{RESERVED:"RESERVED"},"AF-FCPM-TB":{FIXED_CPM:"FIXED_CPM",AUCTION:"AUCTION"},"DF-FCPM-RB":{REACHBLOCK:"REACHBLOCK"},"DF-FCPM-TB":{FIXED_CPM:"FIXED_CPM",AUCTION:"AUCTION"},"PM-FCPM-HP":{FIXED_CPM:"FIXED_CPM"},"PM-FCPM-LOG-OUT":{DEPRECATED_REACH_BLOCK:"DEPRECATED_REACH_BLOCK"},"MF-FCPM-RB":{REACHBLOCK:"REACHBLOCK"},"MF-FCPM-TB":{FIXED_CPM:"FIXED_CPM",AUCTION:"AUCTION"},"IG-FCPM-TB":{FIXED_CPM:"FIXED_CPM",DEPRECATED_REACH_BLOCK:"DEPRECATED_REACH_BLOCK"},"IG-FCPM-CAROUSEL":{FIXED_CPM:"FIXED_CPM",DEPRECATED_REACH_BLOCK:"DEPRECATED_REACH_BLOCK"},"IG-FCPM-IMAGE":{FIXED_CPM:"FIXED_CPM",DEPRECATED_REACH_BLOCK:"DEPRECATED_REACH_BLOCK"},"IG-FCPM-VIDEO":{FIXED_CPM:"FIXED_CPM",DEPRECATED_REACH_BLOCK:"DEPRECATED_REACH_BLOCK"},"IG-FCPM-MQ-IMG":{FIXED_CPM:"FIXED_CPM"},"IG-FCPM-MQ-VID":{FIXED_CPM:"FIXED_CPM"},"IG-FCPM-MQ-CAR":{FIXED_CPM:"FIXED_CPM"},"IG-FCPM-MQ-VIDLNK":{FIXED_CPM:"FIXED_CPM"},"IG-FCPM-MQ-IMGLNK":{FIXED_CPM:"FIXED_CPM"},"AF-FCPM-VIDEO":{REACHBLOCK:"REACHBLOCK"},"AF-FCPM-IMPVIDEO":{REACHBLOCK:"REACHBLOCK"}},bidTypes:{"AF-FCPM":{MULTI_PREMIUM:"MULTI_PREMIUM"},"AF-FCPM-RB":{MULTI_PREMIUM:"MULTI_PREMIUM"},"AF-FCPM-TB":{MULTI_PREMIUM:"MULTI_PREMIUM"},"DF-FCPM-RB":{MULTI_PREMIUM:"MULTI_PREMIUM"},AF_FCPM_RF:{MULTI_PREMIUM:"MULTI_PREMIUM"},"DF-FCPM-TB":{MULTI_PREMIUM:"MULTI_PREMIUM"},"PM-FCPM-HP":{MULTI_PREMIUM:"MULTI_PREMIUM"},"PM-FCPM-LOG-OUT":{FIXED_CPM:"FIXED_CPM"},"MF-FCPM-RB":{MULTI_PREMIUM:"MULTI_PREMIUM"},"MF-FCPM-TB":{MULTI_PREMIUM:"MULTI_PREMIUM"},"IG-FCPM-TB":{FIXED_CPM:"FIXED_CPM",MULTI_PREMIUM:"MULTI_PREMIUM"},"IG-FCPM-CAROUSEL":{FIXED_CPM:"FIXED_CPM",MULTI_PREMIUM:"MULTI_PREMIUM"},"IG-FCPM-IMAGE":{FIXED_CPM:"FIXED_CPM",MULTI_PREMIUM:"MULTI_PREMIUM"},"IG-FCPM-VIDEO":{FIXED_CPM:"FIXED_CPM",MULTI_PREMIUM:"MULTI_PREMIUM"},"IG-FCPM-MQ-IMG":{FIXED_CPM:"FIXED_CPM"},"IG-FCPM-MQ-VID":{FIXED_CPM:"FIXED_CPM"},"IG-FCPM-MQ-CAR":{FIXED_CPM:"FIXED_CPM"},"IG-FCPM-MQ-VIDLNK":{FIXED_CPM:"FIXED_CPM"},"IG-FCPM-MQ-IMGLNK":{FIXED_CPM:"FIXED_CPM"},"AF-FCPM-VIDEO":{MULTI_PREMIUM:"MULTI_PREMIUM"},"AF-FCPM-IMPVIDEO":{MULTI_PREMIUM:"MULTI_PREMIUM"}},auctionBidTypes:{"AF-FCPM-TB":{FIXED_CPM:"FIXED_CPM"},"DF-FCPM-TB":{FIXED_CPM:"FIXED_CPM"},"MF-FCPM-TB":{FIXED_CPM:"FIXED_CPM"}},objectives:{"AF-FCPM":{WEBSITE_CLICKS:"WEBSITE_CLICKS",WEBSITE_CONVERSIONS:"WEBSITE_CONVERSIONS",POST_ENGAGEMENT:"POST_ENGAGEMENT",VIDEO_VIEWS:"VIDEO_VIEWS"},"AF-FCPM-RB":{WEBSITE_CLICKS:"WEBSITE_CLICKS",WEBSITE_CONVERSIONS:"WEBSITE_CONVERSIONS",POST_ENGAGEMENT:"POST_ENGAGEMENT",VIDEO_VIEWS:"VIDEO_VIEWS"},AF_FCPM_RF:{WEBSITE_CLICKS:"WEBSITE_CLICKS",POST_ENGAGEMENT:"POST_ENGAGEMENT",MOBILE_APP_INSTALLS:"MOBILE_APP_INSTALLS",VIDEO_VIEWS:"VIDEO_VIEWS"},"AF-FCPM-TB":{WEBSITE_CLICKS:"WEBSITE_CLICKS",WEBSITE_CONVERSIONS:"WEBSITE_CONVERSIONS",POST_ENGAGEMENT:"POST_ENGAGEMENT",VIDEO_VIEWS:"VIDEO_VIEWS"},"DF-FCPM-RB":{WEBSITE_CLICKS:"WEBSITE_CLICKS",WEBSITE_CONVERSIONS:"WEBSITE_CONVERSIONS",POST_ENGAGEMENT:"POST_ENGAGEMENT",VIDEO_VIEWS:"VIDEO_VIEWS"},"DF-FCPM-TB":{WEBSITE_CLICKS:"WEBSITE_CLICKS",WEBSITE_CONVERSIONS:"WEBSITE_CONVERSIONS",POST_ENGAGEMENT:"POST_ENGAGEMENT",VIDEO_VIEWS:"VIDEO_VIEWS"},"PM-FCPM-HP":{WEBSITE_CLICKS:"WEBSITE_CLICKS",WEBSITE_CONVERSIONS:"WEBSITE_CONVERSIONS",POST_ENGAGEMENT:"POST_ENGAGEMENT",VIDEO_VIEWS:"VIDEO_VIEWS"},"PM-FCPM-LOG-OUT":{WEBSITE_CLICKS:"WEBSITE_CLICKS",WEBSITE_CONVERSIONS:"WEBSITE_CONVERSIONS",POST_ENGAGEMENT:"POST_ENGAGEMENT"},"MF-FCPM-RB":{WEBSITE_CLICKS:"WEBSITE_CLICKS",WEBSITE_CONVERSIONS:"WEBSITE_CONVERSIONS",POST_ENGAGEMENT:"POST_ENGAGEMENT",VIDEO_VIEWS:"VIDEO_VIEWS"},"MF-FCPM-TB":{WEBSITE_CLICKS:"WEBSITE_CLICKS",WEBSITE_CONVERSIONS:"WEBSITE_CONVERSIONS",POST_ENGAGEMENT:"POST_ENGAGEMENT",VIDEO_VIEWS:"VIDEO_VIEWS"},"IG-FCPM-TB":{INSTAGRAM_BRAND_AWARENESS:"INSTAGRAM_BRAND_AWARENESS"},"IG-FCPM-CAROUSEL":{INSTAGRAM_BRAND_AWARENESS:"INSTAGRAM_BRAND_AWARENESS"},"IG-FCPM-IMAGE":{INSTAGRAM_BRAND_AWARENESS:"INSTAGRAM_BRAND_AWARENESS"},"IG-FCPM-VIDEO":{INSTAGRAM_BRAND_AWARENESS:"INSTAGRAM_BRAND_AWARENESS"},"IG-FCPM-MQ-IMG":{INSTAGRAM_BRAND_AWARENESS:"INSTAGRAM_BRAND_AWARENESS"},"IG-FCPM-MQ-VID":{INSTAGRAM_BRAND_AWARENESS:"INSTAGRAM_BRAND_AWARENESS"},"IG-FCPM-MQ-CAR":{INSTAGRAM_BRAND_AWARENESS:"INSTAGRAM_BRAND_AWARENESS"},"IG-FCPM-MQ-VIDLNK":{INSTAGRAM_BRAND_AWARENESS:"INSTAGRAM_BRAND_AWARENESS"},"IG-FCPM-MQ-IMGLNK":{INSTAGRAM_BRAND_AWARENESS:"INSTAGRAM_BRAND_AWARENESS"},"AF-FCPM-VIDEO":{VIDEO_VIEWS:"VIDEO_VIEWS"},"AF-FCPM-IMPVIDEO":{VIDEO_VIEWS:"VIDEO_VIEWS"}},auctionObjectives:{"AF-FCPM-TB":{MOBILE_APP_INSTALLS:"MOBILE_APP_INSTALLS",MOBILE_APP_ENGAGEMENT:"MOBILE_APP_ENGAGEMENT",CANVAS_APP_INSTALLS:"CANVAS_APP_INSTALLS",CANVAS_APP_ENGAGEMENT:"CANVAS_APP_ENGAGEMENT"},"DF-FCPM-TB":{CANVAS_APP_INSTALLS:"CANVAS_APP_INSTALLS",CANVAS_APP_ENGAGEMENT:"CANVAS_APP_ENGAGEMENT"},"MF-FCPM-TB":{MOBILE_APP_INSTALLS:"MOBILE_APP_INSTALLS",MOBILE_APP_ENGAGEMENT:"MOBILE_APP_ENGAGEMENT"}},instagramTypes:{"IG-FCPM-TB":"IG-FCPM-TB","IG-FCPM-IMAGE":"IG-FCPM-IMAGE","IG-FCPM-VIDEO":"IG-FCPM-VIDEO","IG-FCPM-CAROUSEL":"IG-FCPM-CAROUSEL","IG-FCPM-MQ-IMG":"IG-FCPM-MQ-IMG","IG-FCPM-MQ-VID":"IG-FCPM-MQ-VID","IG-FCPM-MQ-CAR":"IG-FCPM-MQ-CAR","IG-FCPM-MQ-VIDLNK":"IG-FCPM-MQ-VIDLNK","IG-FCPM-MQ-IMGLNK":"IG-FCPM-MQ-IMGLNK"},premiumTypes:{"PM-FCPM-HP":"PM-FCPM-HP","PM-FCPM-LOG-OUT":"PM-FCPM-LOG-OUT","AF-FCPM-IMPVIDEO":"AF-FCPM-IMPVIDEO","AF-FCPM-VIDEO":"AF-FCPM-VIDEO","RH-FCPM-RB":"RH-FCPM-RB","RH-FCPM-TB":"RH-FCPM-TB","IG-FCPM-TB":"IG-FCPM-TB","IG-FCPM-VIDEO":"IG-FCPM-VIDEO","IG-FCPM-IMAGE":"IG-FCPM-IMAGE","IG-FCPM-CAROUSEL":"IG-FCPM-CAROUSEL","IG-FCPM-MQ-IMG":"IG-FCPM-MQ-IMG","IG-FCPM-MQ-VID":"IG-FCPM-MQ-VID","IG-FCPM-MQ-CAR":"IG-FCPM-MQ-CAR","IG-FCPM-MQ-VIDLNK":"IG-FCPM-MQ-VIDLNK","IG-FCPM-MQ-IMGLNK":"IG-FCPM-MQ-IMGLNK"}};},null,{});
__d("ApiAdCreativeFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ID:"id",NAME:"name",TYPE:"type",TITLE:"title",BODY:"body",IMAGE_HASH:"image_hash",URL_TAGS:"url_tags",LINK_URL:"link_url",LINK_DESTINATION_DISPLAY_URL:"link_destination_display_url",OBJECT_ID:"object_id",CREATIVE_ID:"creative_id",IMAGE_URL:"image_url",IMAGE_FILE:"image_file",IMAGE_CROPS:"image_crops",THUMBNAIL_URL:"thumbnail_url",THUMBNAIL_HEIGHT:"thumbnail_height",THUMBNAIL_WIDTH:"thumbnail_width",PREVIEWS:"previews",CREATIVE_OPTIONAL:"creative_optional",OBJECT_TYPE:"object_type",LINK_OG_ID:"link_og_id",RELATED_FAN_PAGE:"related_fan_page",ICON_IMAGE_HASH:"icon_image_hash",ICON_IMAGE_URL:"icon_image_url",AUTO_UPDATE:"auto_update",LINK_TYPE:"link_type",LINK_TARGET:"link_target",VIDEO_ID:"video_id",VIDEO_HD:"video_hd",QUESTION_ID:"question_id",STORY_ID:"story_id",CLUSTER_ID:"cluster_id",IMAGE_PATH:"image_path",RUN_STATUS:"run_status",ACTION_SPEC:"action_spec",DISABLE_PROFILE_PIC:"disable_profile_pic",COVER_PHOTO_ID:"cover_photo_id",FOLLOW_REDIRECT:"follow_redirect",APPLICATION_ID:"application_id",VIDEO_LIST:"video_list",VIDEO_PIVOT_BEHAVIOR:"video_pivot_behavior",MOBILE_STORE_CONTENT_ID:"mobile_store_content_id",MOBILE_APPLINK_SPEC:"mobile_applink_spec",MOBILE_PRODUCT_NAME:"mobile_product_name",CALL_TO_ACTION_TYPE:"call_to_action_type",APP_STORE_TYPE:"app_store_type",MOVIE_TICKET_URL:"movie_ticket_url",ACTOR_ID:"actor_id",ACTOR_NAME:"actor_name",ACTOR_IMAGE_HASH:"actor_image_hash",ACTOR_IMAGE_URL:"actor_image_url",OBJECT_STORY_ID:"object_story_id",OBJECT_URL:"object_url",OBJECT_STORE_URL:"object_store_url",OBJECT_INSTAGRAM_ID:"object_instagram_id",LINK_DEEP_LINK_URL:"link_deep_link_url",OBJECT_STORY_SPEC:"object_story_spec",PRODUCT_SET_ID:"product_set_id",TEMPLATE_URL:"template_url",DYNAMIC_AD_VOICE:"dynamic_ad_voice",PLACE_PAGE_SET_ID:"place_page_set_id",SUPPLEMENTAL_MEDIA_ID:"supplemental_media_id",USE_PAGE_ACTOR_OVERRIDE:"use_page_actor_override",APPLINK_TREATMENT:"applink_treatment",INSTAGRAM_ACTOR_ID:"instagram_actor_id",INSTAGRAM_STORY_ID:"instagram_story_id",INSTAGRAM_PERMALINK_URL:"instagram_permalink_url",AD_LABELS:"adlabels",PLATFORM_CUSTOMIZATIONS:"platform_customizations",ASSET_FEED_ID:"asset_feed_id"};},null,{});
__d("ApiAdCreativeStorySpecFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={PAGE_ID:"page_id",PHOTO_DATA:"photo_data",VIDEO_DATA:"video_data",CINEMAGRAPH_DATA:"cinemagraph_data",OFFER_DATA:"offer_data",TEXT_DATA:"text_data",LINK_DATA:"link_data",TEMPLATE_DATA:"template_data",SLIDESHOW_DATA:"slideshow_data",INSTAGRAM_ACTOR_ID:"instagram_actor_id"};},null,{});
__d("ApiAdObjectTypes",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={APPLICATION:"APPLICATION",DOMAIN:"DOMAIN",EVENT:"EVENT",OFFER:"OFFER",PAGE:"PAGE",PHOTO:"PHOTO",SHARE:"SHARE",STATUS:"STATUS",STORE_ITEM:"STORE_ITEM",VIDEO:"VIDEO",INVALID:"INVALID",ACTION_SPEC:"ACTION_SPEC",INSTAGRAM_MEDIA:"INSTAGRAM_MEDIA"};},null,{});
__d("ApiCallToActionFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={TYPE:"type",VALUE:"value"};},null,{});
__d("ApiObjectStorySpecLinkChildFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={PICTURE:"picture",LINK:"link",NAME:"name",DESCRIPTION:"description",IMAGE_HASH:"image_hash",IMAGE_CROPS:"image_crops",CALL_TO_ACTION:"call_to_action",VIDEO_ID:"video_id"};},null,{});
__d("ApiObjectStorySpecLinkFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ASSOCIATED_ID:"associated_id",EVENT_ID:"event_id",PICTURE:"picture",CALL_TO_ACTION:"call_to_action",LINK:"link",MESSAGE:"message",NAME:"name",CAPTION:"caption",ATTACHMENT_STYLE:"attachment_style",DESCRIPTION:"description",IMAGE_HASH:"image_hash",IMAGE_CROPS:"image_crops",CHILD_ATTACHMENTS:"child_attachments",MULTI_SHARE_OPTIMIZED:"multi_share_optimized",MULTI_SHARE_END_CARD:"multi_share_end_card",MAX_PRODUCT_COUNT:"max_product_count",PUBLISHED:"published",APP_LINK_SPEC:"app_link_spec"};},null,{});
__d("ApiObjectStorySpecOfferFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={TITLE:"title",MESSAGE:"message",IMAGE_URL:"image_url",COUPON_TYPE:"coupon_type",EXPIRATION_TIME:"expiration_time",REMINDER_TIME:"reminder_time",CLAIM_LIMIT:"claim_limit",REDEMPTION_LINK:"redemption_link",REDEMPTION_CODE:"redemption_code",BARCODE_TYPE:"barcode_type",BARCODE:"barcode",PUBLISHED:"published"};},null,{});
__d("ApiObjectStorySpecPhotoFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={URL:"url",CAPTION:"caption",IMAGE_HASH:"image_hash",PUBLISHED:"published"};},null,{});
__d("ApiObjectStorySpecStatusFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={MESSAGE:"message",PUBLISHED:"published"};},null,{});
__d("ApiObjectStorySpecVideoFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={VIDEO_ID:"video_id",TITLE:"title",DESCRIPTION:"description",CALL_TO_ACTION:"call_to_action",IMAGE_URL:"image_url",IMAGE_HASH:"image_hash",TARGETING:"targeting"};},null,{});
__d("ApiVideoStatuses",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={READY:"ready",PROCESSING:"processing",ERROR:"error",EXPIRED:"expired"};},null,{});
__d("AYMTClientSideChannelNames",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={AYMT_ADS_CF_TARGETING_CHANNEL:"AYMTAdsCFTargetingChannel",AYMT_BOOSTED_COMPONENT_TARGETING_CHANNEL:"AYMTBoostedComponentTargetingChannel",AYMT_BOOSTED_COMPONENT_BUDGET_AND_DURATION_CHANNEL:"AYMTBoostedComponentBudgetAndDurationChannel",AYMT_BOOSTED_COMPONENT_PAYMENTS_SECTION_CHANNEL:"AYMTBoostedComponentPaymentsSectionChannel",AYMT_FLASH_INSIGHTS_CHANNEL:"AYMTFlashInsightsChannel",AYMT_PAGES_INSIGHTS_POST_DETAILS_CHANNEL:"AYMTPagesInsightsPostDetailsChannel",AYMT_ADS_INSIGHTS_NAM_PERFORMANCE_CHANNEL:"AYMTAdsInsightsNAMPerformanceChannel",AYMT_CAMPAIGN_MANAGER_HOME_CHANNEL:"AYMTCampaignManagerHomeChannel",AYMT_CAMPAIGN_MANAGER_MEGAPHONE_CHANNEL:"AYMTCampaignManagerMegaphoneChannel",AYMT_POWER_EDITOR_CREATION_MEGAPHONE_CHANNEL:"AYMTPowerEditorCreationMegaphoneChannel"};},null,{});
__d("AYMTClientSideParam",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={AD_ACCOUNT_ID:"ad_account_id",APP_ID:"app_id",CAMPAIGN_GROUP_ID:"campaign_group_id",ESTIMATED_AUDIENCE_SIZE:"estimated_audience_size",INSIGHTS_METRIC:"insights_metric",PAGE_ID:"page_id",POST_ID:"post_id",TARGETING_GENDER:"targeting_gender",CHANNEL:"channel",CACHE:"cache",TIP:"tip",VALIDATE:"validate",INVALIDATE:"invalidate"};},null,{});
__d("AYMTClientSideRenderingParam",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={TIP_ACTION_LABEL:"tip_action_label",TIP_BODY:"tip_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_LINK:"tip_link",TIP_MESSAGE_SEVERITY:"tip_message_severity",TIP_TITLE:"tip_title",CLIENT_SIDE_RENDERING_SPEC:"client_side_rendering_spec",CMS_TIP:"cms-tip"};},null,{});
__d("AYMTTipEventType",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ELIGIBILITY:"eligibility",INVALIDATED:"invalidated",IMPRESSION:"impression",CLICK:"click",XOUT:"xout",CONVERSION:"conversion",DELIVERY:"delivery"};},null,{});
__d("AYMTTipSettings",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={CHANNEL_ID:"channel_id",CLICK_EXPIRES_AFTER:"click_expires_after",CLIENT_SIDE_RULES:"client_side_rules",CLIENT_SIDE_RULE_CLASS:"client_side_rule_class",CLIENT_SIDE_RULE_PARAMS:"client_side_rule_params",CLIENT_SIDE_IMPRESSIONS_COUNT:"client_side_impressions_count",CLIENT_SIDE_RENDERER:"client_side_renderer",CLIENT_SIDE_RENDERING_SPEC:"client_side_rendering_spec",CLIENT_SIDE_RENDERING_CLASS:"client_side_rendering_class",CLIENT_SIDE_RENDERING_PARAMS:"client_side_rendering_params",CMS_ID:"cms_id",CONVERSION_EXPIRES_AFTER:"conversion_expires_after",ELIGIBILITY_GK:"eligibility_gk",ENT_TIP_CONFIG_ID:"ent_tip_config_id",EMAIL_CMS_ID:"email_cms_id",IMPRESSION_CAP:"impression_cap",IMPRESSION_CAP_RESET_PERIOD:"impression_cap_reset_period",INVALID_REASON_SAMPLE_RATE:"invalid_reason_sample_rate",IS_HIGHLIGHTED_IN_MOBILE_ADS_MANAGER:"is_highlighted_in_mobile_ads_manager",LAUNCH_GK:"launch_gk",LEGACY_SERVICE_CLASS:"legacy_service_class",LEGACY_TIP_CLASS:"legacy_tip_class",NAME:"name",OWNER:"owner",SIGNATURE_PARAMS:"signature_params",TASK_NUMBER:"task_number",TIP_DELIVERY_CAP:"tip_delivery_cap",TIP_DELIVERY_CAP_RESET_PERIOD:"tip_delivery_cap_reset_period",TIP_ID:"tip_id",TIP_CLASS:"tip_class",TIP_NAME_IMPRESSION_CAP:"tip_name_impression_cap",TIP_NAME_IMPRESSION_CAP_RESET_PERIOD:"tip_name_impression_cap_reset_period",TIP_NAME_DELIVERY_CAP:"tip_name_delivery_cap",TIP_NAME_DELIVERY_CAP_RESET_PERIOD:"tip_name_delivery_cap_reset_period",TIP_PRIORITY:"tip_priority",UNSAMPLED_SCUBA:"unsampled_scuba",VALIDATE_ONLY_ESSENTIAL:"validate_only_essential",VALIDATION_CACHE_TIMEOUT:"validation_cache_timeout",VISIBILITY_PARAM:"visibility_param",VISIBILITY_QE:"visibility_qe",XOUT_EXPIRES_AFTER:"xout_expires_after",HIDE_IF_CONVERTED:"hide_if_converted",HAS_GLOBAL_HOLDOUT:"has_global_holdout",DEPENDS_ON_OTHER_TIP_EVENT:"depends_on_other_tip_event",PIXEL_HELP_LINK:"pixel_help_link",PIXEL_LAST_FIRING_DAYS_BACK:"pixel_last_firing_days_back",ALERT_BLACKLISTED:"alert_blacklisted"};},null,{});
__d("BoostedActionStatus",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={INACTIVE:"inactive",ACTIVE:"active",PAUSED:"paused",FINISHED:"finished",REJECTED:"rejected",PENDING:"pending",CREATING:"creating",ERROR:"error"};},null,{});
__d("BoostedComponentAccountInfoFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ID:"accountID",NAME:"name",CURRENCY:"currency",CAPABILITIES:"capabilities",HAS_BILLING_WRITE_PERMISSION:"hasBillingWritePermission",HAS_CREATED_ADS_BEFORE:"hasCreatedAdsBefore",PAYMENT_INFO:"paymentInfo",CAN_UPDATE_CURRENCY:"canUpdateCurrency",TOS_ACCEPTED:"tos_accepted",OFFSITE_PIXELS_TOS_ACCEPTED:"offsitePixelsTOSAccepted",STATUS:"status",BALANCE:"balance"};},null,{});
__d("BoostedComponentAdStatusStoreFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={AD_STATUS:"ad_status",CAMPAIGN_ID:"campaign_id",IS_CREATOR_DEPRECATED:"is_creator",IS_ELIGIBLE:"is_eligible",IS_VIEWER_CREATOR:"is_viewer_creator"};},null,{});
__d("BoostedComponentAppID",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={BOOSTED_CCTA:"1458876464372956",BOOSTED_CCTA_MOBILE:"457271257782595",BOOSTED_EVENT:"820618717973249",BOOSTED_EVENT_MOBILE:"1125848774099301",BOOSTED_LOCAL_AWARENESS:"816624838417560",BOOSTED_LOCAL_AWARENESS_MOBILE:"832588546789224",BOOSTED_PAGELIKE:"317954918290638",BOOSTED_PAGELIKE_MOBILE:"566331623413113",BOOSTED_POST:"205000946197077",BOOSTED_POST_MOBILE:"302649456508105",BOOSTED_PRODUCT:"663080140459190",BOOSTED_WEBSITE:"543312395742355",BOOSTED_WEBSITE_MOBILE:"757371790995289"};},null,{});
__d("BoostedComponentBudgetEstimationStoreFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={AUDIENCE_SIZE:"audience_size",BUDGET_EST_OPTIONS:"budget_est_options",BUDGET_TYPE:"budget_type",HIGH_BUDGET_THRESHOLD:"high_budget_threshold",SELECTED_BUDGET_VALUE:"selected_budget_value"};},null,{});
__d("BoostedComponentBudgetType",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={DAILY_BUDGET:"daily",LIFETIME_BUDGET:"lifetime",MIXED_BUDGET:"mixed_budget"};},null,{});
__d("BoostedComponentClientEvent",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={CREATE_DIALOG_CLOSE:"create_dialog_close",CREATE_DIALOG_OPEN:"create_dialog_open",EDIT_DIALOG_CLOSE:"edit_dialog_close",EDIT_DIALOG_OPEN:"edit_dialog_open",DATA_LOADED:"data_loaded",FETCH_CONFIG_DATA_FAILED:"fetch_config_data_failed",INIT_DATA_LOADED:"init_data_loaded",RELOAD_DATA:"reload_data",LOAD_FAIL:"client_loading_failure",ON_AUTO_OPEN:"on_auto_open",ON_DIALOG_CANCEL_BUTTON_CLICK:"on_dialog_cancel_button_click",ON_MOUSE_ENTER:"on_mouse_enter",ON_UPSELL_BUTTON_CLICK:"on_upsell_button_click",ON_DIALOG_REQUEST_REVIEW_CLICK:"on_dialog_request_review_click",ON_DIALOG_REQUEST_REVIEW_CONFIRM:"on_dialog_request_review_confirm",TOGGLE_CREATIVE_CATEGORY:"toggle_creative_category",ON_EDIT_CAMPAIGN_CLICK:"on_edit_campaign_click",SEE_BOOST_POST:"see_boost_post",INPUT_CUSTOM_BUDGET:"input_custom_budget",UPDATE_BUDGET:"update_budget",BUDGET_LOAD_FAIL:"client_budget_request_failure",UPDATE_BUDGET_INFO:"update_budget_info",UPDATE_BUDGET_RESTRICTION:"update_budget_restriction",UPDATE_AGE:"update_age",UPDATE_AUDIENCE:"update_audience",UPDATE_AUDIENCE_ID:"update_audience_id",UPDATE_BROAD_GEO_LOCATIONS:"update_broad_geo_locations",UPDATE_CITIES:"update_cities",UPDATE_COUNTRIES:"update_countries",UPDATE_CUSTOM_LOCATION:"update_custom_location",UPDATE_GENDER:"update_gender",UPDATE_GEO_LOCATION_TYPE:"update_geo_location_type",UPDATE_LANGUAGES:"update_languages",UPDATE_INTERESTS:"update_interests",UPDATE_LOOKALIKE_COUNTRY:"update_lookalike_country",UPDATE_MIN_AGE:"update_min_age",UPDATE_MAX_AGE:"update_max_age",UPDATE_PRIVACY_GATING:"update_privacy_gating",UPDATE_RADIUS:"update_radius",UPDATE_REGIONS:"update_regions",UPDATE_TARGETING:"update_targeting",UPDATE_CALL_TO_ACTION:"update_call_to_action",UPDATE_CALL_TO_ACTION_ERROR:"update_call_to_action_error",UPDATE_CREATIVE:"update_creative",UPDATE_IMAGE:"update_image",UPDATE_IMAGE_CROPS:"update_image_crops",UPDATE_LINK_DATA_FIELDS:"update_link_data_fields",LINK_DATA_INFO_FETCHED:"link_data_info_fetched",PAGE_MESSAGING_ENABLE_REQUEST:"page_messaging_enable_request",UPDATE_VIDEO_DESCRIPTION:"update_video_description",UPDATE_VIDEO_LIBRARY:"update_video_library",UPDATE_VIDEO_THUMBNAIL:"update_video_thumbnail",FETCH_DEFAULT_CITY:"fetch_default_city",SKIP_DEFAULT_CITY:"skip_default_city",UPDATE_DEFAULT_CITY:"update_default_city",CLEAR_VIDEO_CREATIVE:"clear_video_creative",VIDEO_ENCODING_SUCCESS:"video_encoding_success",VIDEO_UPLOAD_CANCEL:"video_upload_cancel",VIDEO_UPLOAD_ERROR:"video_upload_error",VIDEO_UPLOAD_PROGRESS:"video_upload_progress",VIDEO_UPLOAD_START:"video_upload_start",VIDEO_UPLOAD_SUCCESS:"video_upload_success",UPDATE_ACCOUNT:"update_account",UPDATE_AD_ACCOUNT_ID:"update_ad_account_id",UPDATE_AD_STATUS:"update_ad_status",UPDATE_AUDIENCE_SIZE:"update_audience_size",UPDATE_CAMPAIGN_LENGTH_IN_DAYS:"update_campaign_length_in_days",UPDATE_CURRENCY:"update_currency",UPDATE_CURRENCY_FAIL:"update_currency_fail",UPDATE_DURATION:"update_duration",UPDATE_NAME:"update_name",UPDATE_PIXEL:"update_pixel",UPDATE_RUN_CONTINUOUSLY:"update_run_continuously",BOOST_WITHOUT_PAYMENT_METHOD:"boost_without_payment_method",CLIENT_UPDATE_PRIMARY:"client_update_primary",CURRENCY_SERVER_UDPATE_FAIL:"currency_server_update_fail",CURRENCY_SERVER_UPDATE_SUCCESS:"currency_server_update_success",PAYMENT_METHODS_LOADED:"payment_methods_loaded",PAYMENT_METHODS_LOAD_ERROR:"payment_methods_load_error",PAYMENT_METHOD_ADDED:"payment_method_added",PRIMARY_PM_UPDATE_FAILURE:"primary_pm_update_failure",PRIMARY_PM_UPDATE_SUCCESS:"primary_pm_update_success",RELOAD_PAYMENT_DATA_FAIL:"reload_payment_data_fail",RELOAD_PAYMENT_DATA_SUCCESS:"reload_payment_data_success",OPEN_PAYMENTS_FLOW:"open_payments_flow",PAYMENTS_FLOW_CLOSED:"payments_flow_closed",DIALOG_CHANGE_SUCCESS:"client_dialog_change_success",DIALOG_CHANGE_FAIL:"client_dialog_change_fail",UPDATE_CLICK:"client_update_click",UPDATE_CANCEL:"client_update_cancel",UPDATE_SUBMIT:"client_update_submit",UPDATE_SUCCESS:"client_update_success",UPDATE_FAIL:"client_update_fail",CREATE_CLICK:"client_create_click",CREATE_CANCEL:"client_create_cancel",CREATE_SUBMIT:"client_create_submit",CREATE_SUCCESS:"client_create_success",CREATE_FAIL:"client_create_fail",PAUSE_CLICK:"client_pause_click",PAUSE_CANCEL:"client_pause_cancel",PAUSE_SUBMIT:"client_pause_submit",PAUSE_SUCCESS:"client_pause_success",PAUSE_FAIL:"client_pause_fail",RESUME_CLICK:"client_resume_click",RESUME_CANCEL:"client_resume_cancel",RESUME_SUBMIT:"client_resume_submit",RESUME_SUCCESS:"client_resume_success",RESUME_FAIL:"client_resume_fail",DELETE_CLICK:"client_delete_click",DELETE_CANCEL:"client_delete_cancel",DELETE_SUBMIT:"client_delete_submit",DELETE_SUCCESS:"client_delete_success",DELETE_FAIL:"client_delete_fail",COMPOSER_CREATE_CLICK:"client_composer_create_click",COMPOSER_CREATE_SUBMIT:"client_composer_create_submit",CLEAR_COMPOSER_BOOST:"client_clear_composer_boost",TEXT_POLICY_WARNING_SHOWN_AGAIN:"text_policy_warning_shown_again",ADS_INTEGRITY_API_WARNING_SHOWN_AGAIN:"ads_integrity_api_warning_shown_again",CLIENT_CANCEL_ON_API_WARNING:"client_cancel_on_api_warning",CLIENT_CANCEL_ON_TEXT_POLICY_WARNING:"client_cancel_on_text_policy_warning",ENTER_INTEGRITY_FLOW:"enter_integrity_flow",INTEGRITY_REJECTED_DIALOG_CANCEL:"integrity_rejected_dialog_cancel",INTEGRITY_REJECTED_DIALOG_CONFIRM:"integrity_rejected_dialog_confirm",SUBMIT_SUCCESS:"submission_success",TARGETING_CONFLICTION:"targeting_confliction"};},null,{});
__d("BoostedComponentConfigPayload",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={AD_ACCOUNT_STORE_DATA:"ad_account_store_data",AD_STATUS_STORE_DATA:"ad_status_store_data",BUDGET_ESTIMATION_STORE_DATA:"budget_estimation_store_data",CONTEXT_STORE_DATA:"context_store_data",CONSTRAINT_STORE_DATA:"constraint_store_data",CONVERSION_PIXEL_STORE_DATA:"conversion_pixel_store_data",CREATIVE_STORE_DATA:"creative_store_data",DIALOG_UI_STORE_DATA:"dialog_ui_store_data",DURATION_STORE_DATA:"duration_store_data",EXPERIMENT_STORE_DATA:"experiment_store_data",EXTERNAL_ACTIONS_STORE:"external_actions_store",INSIGHTS_STORE_DATA:"insights_store_data",PRIVACY_GATING_STORE_DATA:"privacy_gating_store_data",TARGETING_STORE_DATA:"targeting_store_data",URI_STORE_DATA:"uri_store_data",DATA_OPTIONS:"data_options"};},null,{});
__d("BoostedComponentConstraintStoreFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={MAX_COUNTRY_NUM:"max_country_num",MAX_REGION_NUM:"max_region_num",MAX_CITY_NUM:"max_city_num",MIN_AGE:"min_age",MAX_AGE:"max_age",MIN_CALL_NOW_AGE:"min_call_now_age",MIN_LIFETIME_BUDGET_PER_DAY:"min_lifetime_budget_per_day",MAX_LIFETIME_BUDGET_PER_DAY:"max_lifetime_budget_per_day",MIN_DAILY_BUDGET:"min_daily_budget",MAX_DAILY_BUDGET:"max_daily_budget",BLACKLIST_COUNTRIES:"blacklist_countries",WHITELIST_COUNTRIES:"whitelist_countries"};},null,{});
__d("BoostedComponentContextStoreFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ACCESS_TOKEN:"access_token",CLIENT_ID:"client_id",FLOW_ID:"flow_id",PAGE_ACCESS_TOKEN:"page_access_token",PAGE_ID:"page_id",PLACEMENT:"placement",POST_INFO:"post_info",SOURCE_APP_ID:"source_app_id",UPSELL_TYPE:"upsell_type",USER_ID:"user_id",USER_HASH:"user_hash"};},null,{});
__d("BoostedComponentConversionPixelStoreFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={CONVERSION_PIXELS:"conversion_pixels",DEFAULT_PIXEL_IDS:"default_pixel_ids",SELECTED_PIXEL_ID:"selected_pixel_id",WEBSITE_DOMAINS:"website_domains"};},null,{});
__d("BoostedComponentCreativeCategory",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={VIDEO:"video",IMAGE:"image"};},null,{});
__d("BoostedComponentCreativeEditingElement",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={CREATIVE_LINK_DATA_URL:"creative_link_data_url",CREATIVE_LINK_DATA_HEADLINE:"creative_link_data_headline",CREATIVE_LINK_DATA_TEXT:"creative_link_data_text",CREATIVE_BODY:"creative_body",CREATIVE_LINK_DATA:"creative_link_data",CREATIVE_MULTI_PRODUCTS:"creative_multi_products",CREATIVE_IMAGE_SELECTOR:"creative_image_selector",CREATIVE_CTA:"creative_cta"};},null,{});
__d("BoostedComponentCreativeStoreFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={DEFAULT_CREATIVE_SPEC:"default_creative_spec",DEFAULT_IMAGE_CREATIVE_SPEC:"default_image_creative_spec",DEFAULT_VIDEO_CREATIVE_SPEC:"default_video_creative_spec",CTA_OPTIONS_SPECS:"cta_options_specs",VIDEO_DETAILS:"video_details"};},null,{});
__d("BoostedComponentDialogUIStoreFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={AUTO_OPEN_DIALOG:"auto_open_dialog",DIALOG_DIV_ID:"dialog_div_id",DISABLE_DATA_PREFETCH:"disable_data_prefetch",INFORMATIONAL_HEADER_CATEGORY:"informational_header_category",SHOW_NUX:"show_nux",UPSELL_DIV_ID:"upsell_div_id",UPSELL_ICON_URL:"upsell_icon_url",UPSELL_LABEL:"upsell_label",UPSELL_LOG_DATA:"upsell_log_data"};},null,{});
__d("BoostedComponentDurationStoreFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={CAMPAIGN_LENGTH_OPTIONS:"campaign_length_options",HIDE_RUN_CONTINUOUSLY:"can_run_continuously",RUN_CONTINUOUSLY:"run_continuously",SELECTED_CAMPAIGN_LENGTH:"selected_campaign_length"};},null,{});
__d("BoostedComponentExperiment",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={BOOSTED_COMPONENT_ALTERNATIVE_GEO_LOCATION:"boosted_component_alternative_geo_location",BOOSTED_COMPONENT_BOOTLOAD_REACT_BUTTON_JS:"boosted_component_bootload_react_button_js",BOOSTED_COMPONENT_CONFIRMATION_SECTION:"boosted_component_confirm_section",BOOSTED_COMPONENT_LIVE_INTEGRITY_V2:"boosted_component_live_integrity_v2",BOOSTED_COMPONENT_LIFETIME_BUDGET:"boosted_component_lifetime_budget",BOOSTED_COMPONENT_SWITCH_CREATIVE:"boosted_component_switch_creative",BOOSTED_COMPONENT_TABBED_DIALOG_COLUMN:"boosted_component_tabbed_dialog_column",BOOSTED_COMPONENT_PAYMENTS_SECTION_REDESIGN:"boosted_component_payments_section_redesign",BOOSTED_COMPONENT_VIDEO:"boosted_component_video",BOOSTED_CTA_ENTRYPOINT_QE:"boosted_cta_native_ios_universe",BOOSTED_CTA_ANDROID_ENTRYPOINT_QE:"adinterfaces_promote_cta_android",BOOSTED_EVENT_DEFAULT_LOCATION_QE:"boosted_event_default_location_qe",BOOSTED_EVENT_DEFAULT_DURATION_QE:"boosted_event_default_duration_qe",BOOSTED_EVENT_LWI_QE:"boosted_event_lwi_qe",BOOSTED_LOCAL_AWARENESS_CATEGORY_UNI:"boosted_local_awareness_category_uni",BOOSTED_LOCALAWARENESS_DEFAULT_DURATION:"boosted_localawareness_default_duration",BOOSTED_LOCAL_AWARENESS_MOBILE_ROLLOUT:"boosted_local_awareness_mobile_rollout",BOOSTED_LOCALAWARENESS_UPSELL_RESULTS:"boosted_localawareness_upsell_results",BOOSTED_PAGELIKE_IOS_NATIVE:"boosted_pagelike_ios_native",BOOSTED_PAGELIKE_AD_PREVIEW_EDITABLE:"boosted_pagelike_ad_preview_editable",BOOSTED_POST_ADALERT_REDIRECT:"boosted_post_adalert_redirect",BOOSTED_POST_ANDROID_PHOTO_NOTIF:"boosted_post_android_photo_notifs",BOOSTED_POST_API_STORE:"boosted_post_api_store",BOOSTED_POST_AUDIENCE_DROPDWN:"boosted_post_audience_dropdown",BOOSTED_POST_DEFAULT_DURATION_ANDROID:"default_duration_boost_post_android",BOOSTED_POST_DEFAULT_DURATION_IOS:"default_duration_for_boosted_post_experiment",BOOSTED_POST_DISABLE_RETARGETING:"boosted_post_disable_retargeting",BOOSTED_POST_DONT_REPLACE:"boosted_post_dont_replace",BOOSTED_POST_EDIT_BOOST:"boosted_post_edit_boost",BOOSTED_POST_ENGAGED_PEOPLE:"boosted_post_engaged_people",BOOSTED_POST_EVENT_OPTIMIZATION:"boosted_post_event_optimization",BOOSTED_POST_INSTANT_APPEAL:"boosted_post_instant_appeal",BOOSTED_POST_NATIVE_SCHEDULED_POST:"boosted_post_ios_native_scheduled_posts_from_webface",BOOSTED_POST_PROFILE_PICTURES:"boosted_post_profile_pictures",BOOSTED_POST_REACH_OPTIMIZATION:"boosted_post_reach_optimization",BOOSTED_POST_RECENT_CAMPAIGN_TIP:"boosted_post_recent_campaign_tip_link",BOOSTED_POST_SAVED_AUDIENCE:"boosted_post_ios_saved_audience_v1",BOOSTED_POST_TESTING_BUDGET_FOOTER:"boosted_post_testing_budget_footer",BOOSTED_POST_LANGUAGE_TARGETING:"boosted_post_language_targeting",BOOSTED_PRODUCT_PID:"boosted_product_pid",BOOSTED_PRODUCT_UID:"boosted_product_uid",BOOSTED_WEBSITE_IOS_NATIVE:"boosted_website_native_iOS_universe",BOOSTED_WEBSITE_ANDROID_NATIVE:"boosted_website_android_native_interface",BOOSTED_WEBSITE_VIDEO:"boosted_website_video",LWI_AD_PREVIEW_IOS:"lwi_ad_preview_ios",MSITE_BOOST_EVENT_MORE_FLYOUT:"msite_boost_event_more_flyout",AD_API_REVIEW_REQUEST_OPTION:"ad_api_review_request_option",BOOSTED_LOCAL_AWARENESS_CTA_ADDRESS_EDITOR:"boosted_local_awareness_cta_address_editor",BOOSTED_POST_SAVED_AUDIENCES:"boosted_post_saved_audiences"};},null,{});
__d("BoostedComponentGeoLocationType",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={BROAD_GEO_LOCATION:"broad_geo_location",LOCAL_GEO_LOCATION:"local_geo_location"};},null,{});
__d("BoostedComponentGeoTargetLevel",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ANY:"any",COUNTRY:"country",COUNTRIES:"countries",REGION:"region",REGIONS:"regions",CITY:"city",CITIES:"cities"};},null,{});
__d("BoostedComponentPaymentInfoFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={AD_COUPON:"adCoupon",BUSINESS_INFO:"businessInfo",EXTENDED_CREDIT_INFO:"extendedCreditInfo",EXTENDED_CREDIT_STATUS:"extendedCreditStatus",FUNDING_SOURCE_STRING:"fundingSourceString",HAS_CREDIT:"hasCredit",HAS_FUNDING_SOURCE:"hasFundingSource",ID:"id",IS_CORPORATE_ACCOUNT:"isCorporateAccount",IS_PREPAY_ACCOUNT:"isPrepayAccount",PAYMENT_METHODS:"paymentMethods",PENDING_PAYMENTS:"pendingPayments",PREPAY_BALANCE:"prepayBalance",PRIMARY_PAYMENT_METHOD:"primaryPaymentMethod"};},null,{});
__d("BoostedComponentSpecFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={AD_ACCOUNT_ID:"account_id",CURRENCY:"currency",DAILY_BUDGET:"daily_budget",LIFETIME_BUDGET:"lifetime_budget",CREATIVE_SPEC:"creative",CONVERSION_PIXEL_ID:"conversion_pixel_id",CAMPAIGN_LENGTH:"campaign_length",START_TIME:"start_time",END_TIME:"end_time",AUDIENCE:"name",SAVED_AUDIENCE_ID:"saved_audience_id",PRIVACY_SPEC:"privacy_spec",TARGET_SPEC:"targeting",BISON_ESTIMATE:"bison_estimate",ESTIMATES_LOWER:"estimates_lower",ESTIMATES_UPPER:"estimates_upper",ENTRY_POINT:"entry_point",FLOW_ID:"flow_id",UPDATE_STICKY_SETTINGS:"update_sticky_settings",IS_STICKY:"is_sticky"};},null,{});
__d("BoostedComponentSubmissionAction",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={CREATE:"create",EDIT:"edit",PAUSE:"pause",RESUME:"resume",DELETE:"delete"};},null,{});
__d("BoostedComponentTargetingStoreFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={AUDIENCE:"audience",AUDIENCE_ID:"audience_id",CURRENT_BROAD_GEO_LOCATION:"current_broad_geo_location",CURRENT_LOCAL_GEO_LOCATION:"current_local_geo_location",CUSTOM_LOCATION_COUNTRY:"custom_location_country",DEFAULT_LOCATIONS:"default_locations",DEFAULT_TARGETING_SPEC:"default_targeting_spec",ERRORS:"errors",IS_SUGGESTED_AUDIENCE:"is_suggested_audience",LOOKALIKE_COUNTRY:"lookalike_country",PRIVACY_GATING_SPEC:"privacy_gating_spec",TARGETING_SPEC_FOF:"targeting_spec_fof"};},null,{});
__d("BoostedComponentTestElement",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={DIALOG_BODY:"boosted_component_dialog_body",CREATE_DIALOG_RHS:"create_dialog_rhs",PREVIEW_UNIT:"preview_unit",DESKTOP_PREVIEW_TAB:"desktop_preview_tab",MOBILE_PREVIEW_TAB:"mobile_preview_tab",RHS_PREVIEW_TAB:"rhs_preview_tab",ACTION_MENU_BUTTON:"action_menu_button",HELP_CENTER_BUTTON:"help_center_button",TERMS:"terms",TERMS_DIALOG_CLOSE_BUTTON:"terms_dialog_close_button",AUDIENCE_SECTION:"audience_section",AGE_SELECTOR:"age_selector",GENDER_SELECTOR:"gender_selector",BUDGET_SELECTOR:"budget_selector",REACH_ESTIMATES:"reach_estimates",CURRENCY_SELECTOR:"currency_selector",DURATION_SELECTOR:"duration_selector",MORE_OPTIONS:"more_options",ACCOUNT_SELECTOR:"account_selector",PAYMENT_METHOD:"payment_method"};},null,{});
__d("BoostedComponentUnit",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={AUDIENCE_MANAGER:"audience_manager",LOCATIONS:"locations"};},null,{});
__d("BoostedComponentURIStoreFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={HELP_CENTER_URI:"help_center_uri",BILLING_INFO_URI:"billing_info_uri",CONTACT_SUPPORT_URI:"contact_support_uri",SEND_FEEDBACK_URI:"send_feedback_uri",BUG_REPORT_URI:"bug_report_uri",PAGE_ICON_URI:"page_icon_uri"};},null,{});
__d("BoostedComponentVideoElements",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={VIDEO_NAME:"video_name",VIDEO_SOURCE:"video_source",VIDEO_THUMBNAILS:"video_thumbnails"};},null,{});
__d("BoostedComponentVideoSource",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={UPLOAD:"upload",BROWSE_LIBRARY:"browse_library"};},null,{});
__d("BoostedPostAudienceConstants",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={GROUPER:1,NCPP:2,CUSTOM_AUDIENCE:3,LOOKALIKE:4,ENGAGED:5,FANS:6};},null,{});
__d("BoostedPostCustomTargetingTypes",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={AGE_MIN:"age_min",AGE_MAX:"age_max",GENDERS:"genders",GEO_LOCATIONS:"geo_locations",INTERESTS:"interests",KEYWORDS:"keywords",LOCALES:"locales",LOCATIONS:"locations",CUSTOM_AUDIENCE:"custom_audiences",RADIUS:"radius"};},null,{});
__d("BoostedPostEventType",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={INITIALIZE:"initialize",FIRST_INITIALIZE:"first_initialize",EXTEND:"extend",DELETE:"delete",ACTIVATE:"activate",PAUSE:"pause",ADD_BUDGET:"add_budget",EDIT_TARGETING:"edit_targeting",ADGROUP_CREATE_FAIL:"adgroup_create_fail",ASYNC_DELETE_FAIL:"async_delete_fail",REVIEWED:"reviewed",CREATE_DIALOG_CLOSE:"create_dialog_close",CREATE_DIALOG_OPEN:"create_dialog_open",EDIT_DIALOG_CLOSE:"edit_dialog_close",EDIT_DIALOG_OPEN:"edit_dialog_open",ACTION_MENU_OPEN:"action_menu_open",ACTION_MENU_CLOSE:"action_menu_close",ADD_PAYMENT_HEADER_EDIT_CLICKED:"add_payment_header_edit_clicked",ADD_PAYMENT_HEADER_EDIT_COMPLETED:"add_payment_header_edit_completed",ADD_PAYMENT_HEADER_EDIT_NOT_COMPLETED:"add_payment_header_edit_not_completed",ADS_CREATION_PERMISSION_CHECK_FAILED:"ads_creation_permission_check_failed",ADS_INTEGRITY_CHECK_FAILED:"ads_integrity_check_failed",BAD_ADD_BUDGET:"bad_add_budget",BOOST_BUTTON_RENDERED:"boost_button_rendered",BUDGET_CHANGED:"budget_changed",BUDGET_SELECTOR_EDIT_BUTTON:"budget_selector_edit_button",BUDGET_TEXT_CHANGED:"budget_text_changed",BUDGET_TEXT_TOO_LOW:"budget_text_too_low",CAMPAIGN_FINISHED:"campaign_finished",CLICKED_AFTER_BUDGET_NOTIFICATION:"clicked_after_budget_notification",CODED_EXCEPTION:"coded_exception",COMPOSER_CREATE_CANCEL:"composer_create_cancel",COMPOSER_CREATE_SAVE:"composer_create_save",COMPOSER_FLYOUT_OPEN:"composer_flyout_open",CREATE_MORE_OPTIONS:"create_more_options",CREATIVE_INVALID:"creative_invalid",CREATIVE_INVALID_CHECK_FAILED:"creative_invalid_check_failed",DURATION_CHANGED:"duration_changed",EDIT_BUDGET_BUTTON:"edit_budget_button",EDIT_BUDGET_SAVE:"edit_budget_save",ERROR_BOX_RENDER:"error_box_render",FEEDBACK_TARGET_ID_DIFFERENT:"feedback_target_id_different",FETCH_CONFIG_DATA:"fetch_config_data",FUNDING_SOURCE_CHECKED:"funding_source_checked",PAYMENT_FLOW_CANCELED:"payment_flow_canceled",PAYMENT_FLOW_COMPLETE:"payment_flow_complete",PAYMENT_FLOW_START:"payment_flow_start",RENDER_FAILED:"render_failed",RETARGET_BUTTON_RENDER:"retarget_button_render",RETARGET_ATTEMPT:"retarget_attempt",TIMELINE_CREATE_FLYOUT_OPEN:"timeline_create_flyout_open",TIMELINE_EDIT_FLYOUT_OPEN:"timeline_edit_flyout_open",TIMELINE_RESUME_BOOSTING:"timeline_resume_boosting",TIMELINE_STOP_BOOSTING:"timeline_stop_boosting",SNOWLIFT_FLYOUT_OPEN:"snowlift_flyout_open",PHOTO_PERMALINK_FLYOUT_OPEN:"photo_permalink_flyout_open",MONITOR_SCHEDULE:"monitor_schedule",MONITOR_HEARTBEAT:"monitor_heartbeat",NCPP_SELECTED:"ncpp_selected",GROUPER_SELECTED:"grouper_selected",SURVEY_STAR_RATING:"survey_star_rating",SURVEY_TEXT_FEEDBACK:"survey_text_feedback",SCHEDULE_CHANGED:"schedule_changed",TARGETING_CHANGED:"targeting_changed",ADGROUP_CREATE:"adgroup_create",TARGETING_WARNING_SHOWN:"targeting_warning_shown",OBJECTIVE_CHANGED:"objective_changed",UNKNOWN:"unknown",CAMPAIGN_UPDATE_FAILED:"campaign_update_failed",DELETE_ADGROUP_FAILED:"delete_adgroup_failed",DEBUG:"debug",USER_SAW_NAX:"user_saw_nax",HOT_POST_HEADER_RENDERED:"hot_post_header_rendered",AM_LAST_USED_AUDIENCE_SHOWN:"am_last_used_audience_shown",AM_LAST_USED_AUDIENCE_EDITED:"am_last_used_audience_edited",AM_FIRST_AUDIENCE_SHOWN:"am_first_audience_shown",AM_DEFAULT_AUDIENCE_SHOWN:"am_default_audience_shown",AM_DEFAULT_AUDIENCE_EDITED:"am_default_audience_edited",AM_AUDIENCE_CREATED:"am_audience_created",AM_AUDIENCE_EDITED:"am_audience_edited",AM_AUDIENCE_DELETED:"am_audience_deleted",AM_AUDIENCE_CHANGED:"am_audience_changed",CLIENT_AD_ACCOUNT_SELECTOR_CLICK:"client_ad_account_selector_click",CLIENT_AD_ACCOUNT_SELECTOR_SUBMIT:"client_ad_account_selector_submit",CLIENT_AD_ACCOUNT_SELECTOR_SUCCESS:"client_ad_account_selector_success",CLIENT_AD_ACCOUNT_SELECTOR_FAIL:"client_ad_account_selector_fail",CLIENT_ADD_BUDGET_CLICK:"client_add_budget_click",CLIENT_ADD_BUDGET_SUBMIT:"client_add_budget_submit",CLIENT_ADD_BUDGET_SUCCESS:"client_add_budget_success",CLIENT_ADD_BUDGET_FAIL:"client_add_budget_fail",CLIENT_ADD_PENDING_FUNDING_SOURCE_CLICK:"client_add_pending_funding_source_click",CLIENT_ADD_PENDING_FUNDING_SOURCE_SUBMIT:"client_add_pending_funding_source_submit",CLIENT_ADD_PENDING_FUNDING_SOURCE_SUCCESS:"client_add_pending_funding_source_success",CLIENT_ADD_PENDING_FUNDING_SOURCE_FAIL:"client_add_pending_funding_source_fail",CLIENT_CLEAR_BUDGET_CLICK:"client_clear_budget_click",CLIENT_CLEAR_BUDGET_SUCCESS:"client_clear_budget_success",CLIENT_CREATE_CLICK:"client_create_click",CLIENT_CREATE_SUBMIT:"client_create_submit",CLIENT_CREATE_SUCCESS:"client_create_success",CLIENT_CREATE_FAIL:"client_create_fail",CLIENT_CUSTOM_BUDGET_BUTTON_CLICK:"client_custom_budget_button_click",CLIENT_DELETE_CLICK:"client_delete_click",CLIENT_DELETE_CONFIRM:"client_delete_confirm",CLIENT_DELETE_CANCEL:"client_delete_cancel",CLIENT_DELETE_SUBMIT:"client_delete_submit",CLIENT_DELETE_SUCCESS:"client_delete_success",CLIENT_DELETE_FAIL:"client_delete_fail",CLIENT_DIALOG_TTI:"client_dialog_tti",CLIENT_HIDE_CLICK:"client_hide_click",CLIENT_INITIAL_RENDER_START:"client_initial_render_start",CLIENT_INITIAL_RENDER_SUCCESS:"client_initial_render_success",CLIENT_REQUEST_APPEAL:"client_request_appeal",CLIENT_REACH_ESTIMATE_UNAVAILABLE:"client_reach_estimate_unavailable",CLIENT_RESUME_CLICK:"client_resume_click",CLIENT_RESUME_SUBMIT:"client_resume_submit",CLIENT_RESUME_SUCCESS:"client_resume_success",CLIENT_RESUME_FAIL:"client_resume_fail",CLIENT_RETARGET_CLICK:"client_retarget_click",CLIENT_RETARGET_SUBMIT:"client_retarget_submit",CLIENT_RETARGET_SUCCESS:"client_retarget_success",CLIENT_RETARGET_FAIL:"client_retarget_fail",CLIENT_SET_BUDGET_CLICK:"client_set_budget_click",CLIENT_SET_BUDGET_SUCCESS:"client_set_budget_success",CLIENT_STOP_CLICK:"client_stop_click",CLIENT_STOP_CONFIRM:"client_stop_confirm",CLIENT_STOP_CANCEL:"client_stop_cancel",CLIENT_STOP_SUBMIT:"client_stop_submit",CLIENT_STOP_SUCCESS:"client_stop_success",CLIENT_STOP_FAIL:"client_stop_fail"};},null,{});
__d("BoostedPostPlacementOptions",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ADALERT_NOTIF:"adalert_notif",API:"api",COMPOSER:"composer",CONTEXT_ROW:"context_row",COUPON_SUMMARY:"coupon_summary",EVENT_UPSELL:"event_upsell",EVENT_UPSELL_MENU:"event_upsell_menu",INSIGHTS_POST_TABLE:"insights_post_table",JEWEL_NOTIF:"jewel_notif",MSITE:"msite",MSITE_ADS_MANAGER:"m_ads_manager",NEW_TIMELINE:"new_timeline",NONE:"",OTHER:"other",PAGES_CONTENT_TAB_INSIGHTS:"pages_content_tab_insights",PAGES_CONTENT_TAB_PREVIEW:"pages_content_tab_preview",PAGE_INSIGHTS:"page_insights",PAGES_MANAGER_CREATE_AD:"pages_manager_create_ad",PERMALINK:"permalink",PHOTO_PERMALINK:"photo_permalink",PLAY_GROUND:"play_ground",POSTS_TABLE:"posts_table",PRODUCT_DIALOG:"product_dialog",PRODUCT_UPSELL:"product_upsell",RECENT_POST_TABLE:"recent_post_table",REJECTION_NOTIF:"rejection_notif",SCHEDULED_POST_UNIT:"scheduled_post_unit",SNOWLIFT:"snowlift",SPRING_BOARD:"spring_board",STORY:"story",TIMELINE:"timeline",UNKNOWN:"unknown",AYMT_ABANDONMENT_TIP:"aymt_abandonment_tip",AYMT_CAMPAIGN_END_NOTIF:"aymt_campaign_end_notif",AYMT_CREATE_NEW_INTEREST_TARGET_AD:"aymt_create_new_interest_target_ad",AYMT_EXTEND_CAMPAIGN_TIP:"aymt_extend_campaign_tip",AYMT_HOMEPAGE_PANEL:"aymt_homepage_panel",AYMT_HOT_POST_AFTER_PARTY:"aymt_hot_post_afterparty",AYMT_HOT_POST_TIP:"aymt_hot_post_tip",AYMT_HOT_POST_NOTIF:"aymt_hot_post_notif",AYMT_HOT_POST_CONTEXT_ROW:"aymt_hot_post_context_row",AYMT_HOT_POST_SMS:"aymt_hot_post_sms",AYMT_RECENT_CAMPAIGN_TIP:"aymt_recent_campaign_tip",AYMT_UNKNOWN:"aymt_unknown",AYMT_WOMENS_WORLD_CUP_TIP:"aymt_womens_world_cup_tip",MOBILE_PAGE_ADMIN_PANEL:"mobile_page_admin_panel",PYMA_BOOST_POST:"pyma_boost_post",PYMA_BOOST_EVENT:"pyma_boost_event",FROM_COMPOSER:"from_composer"};},null,{});
__d("BoostedPostStatusConfig",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={DRAFT:"draft",INACTIVE:"inactive",ACTIVE:"active",PAUSED:"paused",EXTENDABLE:"extendable",FINISHED:"finished",REJECTED:"rejected",PENDING:"pending",ERROR:"error",PENDING_FUNDING_SOURCE:"pending_funding_source",INSIGHTS:"insights",EDITING:"editing",NO_CTA:"no_cta"};},null,{});
__d("CallToActionValueFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={LINK:"link",APP_LINK:"app_link",PAGE:"page",APPLICATION:"application",DIGITAL_GOOD:"digital_good",LINK_TITLE:"link_title",LINK_DESCRIPTION:"link_description",CAPTION:"link_caption",PRODUCT_LINK:"product_link",APP_LINKS_DATA:"app_links_data",GET_MOVIE_SHOWTIMES:"get_movie_showtimes",METADATA:"metadata",SPONSORSHIP:"sponsorship",LEADGEN:"leadgen",ADVANCED_DATA:"advanced_data",OFFER_ID:"offer_id",LEAD_GEN_FORM_ID:"lead_gen_form_id",IS_CINEMAGRAPH:"is_cinemagraph",FUNDRAISER_CAMPAIGN_ID:"fundraiser_campaign_id",VIDEO_ANNOTATION:"video_annotation"};},null,{});
__d("CommerceUSAStates",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={STATE_AL:"Alabama",STATE_AK:"Alaska",STATE_AZ:"Arizona",STATE_AR:"Arkansas",STATE_CA:"California",STATE_CO:"Colorado",STATE_CT:"Connecticut",STATE_DE:"Delaware",STATE_DC:"District of Columbia",STATE_FL:"Florida",STATE_GA:"Georgia",STATE_HI:"Hawaii",STATE_ID:"Idaho",STATE_IL:"Illinois",STATE_IN:"Indiana",STATE_IA:"Iowa",STATE_KS:"Kansas",STATE_KY:"Kentucky",STATE_LA:"Louisiana",STATE_ME:"Maine",STATE_MD:"Maryland",STATE_MA:"Massachusetts",STATE_MI:"Michigan",STATE_MN:"Minnesota",STATE_MS:"Mississippi",STATE_MO:"Missouri",STATE_MT:"Montana",STATE_NE:"Nebraska",STATE_NV:"Nevada",STATE_NH:"New Hampshire",STATE_NJ:"New Jersey",STATE_NM:"New Mexico",STATE_NY:"New York",STATE_NC:"North Carolina",STATE_ND:"North Dakota",STATE_OH:"Ohio",STATE_OK:"Oklahoma",STATE_OR:"Oregon",STATE_PA:"Pennsylvania",STATE_RI:"Rhode Island",STATE_SC:"South Carolina",STATE_SD:"South Dakota",STATE_TN:"Tennessee",STATE_TX:"Texas",STATE_UT:"Utah",STATE_VT:"Vermont",STATE_VA:"Virginia",STATE_WA:"Washington",STATE_WV:"West Virginia",STATE_WI:"Wisconsin",STATE_WY:"Wyoming"};},null,{});
__d("CROWAdDisapprovalReasons",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={UNKNOWN:"UNKNOWN",IRREGULAR_APP_INSTALL:"IRREGULAR_APP_INSTALL",TEXT_OVERLAY:"TEXT_OVERLAY",ADULT_CONTENT:"ADULT_CONTENT",ADULT_HEALTH:"ADULT_HEALTH",ALCOHOL:"ALCOHOL",ANIMATED_IMAGE:"ANIMATED_IMAGE",BEFORE_AND_AFTER:"BEFORE_AND_AFTER",CASUAL_DATING:"CASUAL_DATING",DATING:"DATING",FACEBOOK_REFERENCE:"FACEBOOK_REFERENCE",FINANCIAL:"FINANCIAL",GAMBLING:"GAMBLING",IDEALIZED_BODY:"IDEALIZED_BODY",LANGUAGE:"LANGUAGE",LANDING_PAGE_FAIL:"LANDING_PAGE_FAIL",SEXUAL:"SEXUAL",TEST:"TEST",TOBACCO_SALE:"TOBACCO_SALE",TRAPPING:"TRAPPING",UNSUBSTANTIATED_CLAIM:"UNSUBSTANTIATED_CLAIM",OTHER:"OTHER",WEAPON_SALE:"WEAPON_SALE",WORK_FROM_HOME:"WORK_FROM_HOME",CASH_ADVANCE:"CASH_ADVANCE",SHOCK_AND_SCARE:"SHOCK_AND_SCARE",SPY_CAMERA:"SPY_CAMERA",BAD_HEALTH_PRODUCT:"BAD_HEALTH_PRODUCT",GRAMMAR:"GRAMMAR",ILLEGAL:"ILLEGAL",MISUSE_OF_LIKE:"MISUSE_OF_LIKE",NON_EXISTENT_FUNCTIONALITY:"NON_EXISTENT_FUNCTIONALITY",ONLINE_PHARMACY:"ONLINE_PHARMACY",PENNY_AUCTION:"PENNY_AUCTION",PORN:"PORN",COPYRIGHT:"COPYRIGHT",TRADEMARK:"TRADEMARK",COUNTERFEIT:"COUNTERFEIT",SYSTEM_ISSUE:"SYSTEM_ISSUE",Q_BLURRY_PIXELATED:"Q_BLURRY_PIXELATED",Q_BORDERLINE_SEXUAL:"Q_BORDERLINE_SEXUAL",Q_BORDER_BACKGROUND:"Q_BORDER_BACKGROUND",Q_GRAMMAR_CAPITALIZATION:"Q_GRAMMAR_CAPITALIZATION",Q_IRRELEVANT_IMAGE_COPY:"Q_IRRELEVANT_IMAGE_COPY",Q_MISLEADING:"Q_MISLEADING",Q_MULTIPLE_IMAGES:"Q_MULTIPLE_IMAGES",Q_HOT_BUTTON:"Q_HOT_BUTTON",Q_ZOOM_IN_BODY_PARTS:"Q_ZOOM_IN_BODY_PARTS",Q_ZOOM_IN_FOOD:"Q_ZOOM_IN_FOOD",QUALITY_LOW:"QUALITY_LOW",FACEBOOK_WORD_MANIPULATED:"FACEBOOK_WORD_MANIPULATED",FACEBOOK_ICONS:"FACEBOOK_ICONS",FACEBOOK_PAGE_LOOKALIKE:"FACEBOOK_PAGE_LOOKALIKE",FACEBOOK_LOGO_FOCUS:"FACEBOOK_LOGO_FOCUS",FACEBOOK_LOGO_OVERLAP:"FACEBOOK_LOGO_OVERLAP",FACEBOOK_LOGO:"FACEBOOK_LOGO",FACEBOOK_LOGO_THUMBS_UP:"FACEBOOK_LOGO_THUMBS_UP",FACEBOOK_SCREENSHOT_PROD:"FACEBOOK_SCREENSHOT_PROD",FACEBOOK_WORDMARK:"FACEBOOK_WORDMARK",FACEBOOK_ZUCKPIC:"FACEBOOK_ZUCKPIC",HIGHLIGHTED_PAIN_POINTS:"HIGHLIGHTED_PAIN_POINTS",PERFECT_BODY:"PERFECT_BODY",SCALES:"SCALES",TAPE_MEASURE:"TAPE_MEASURE",UNDESIRABLE_BODY:"UNDESIRABLE_BODY",ZOOM_BODY_PART:"ZOOM_BODY_PART",HARRASSMENT:"HARRASSMENT",USER_ATTRIBUTES_CALLOUT:"USER_ATTRIBUTES_CALLOUT",USER_FINANICAL_CALLOUT:"USER_FINANICAL_CALLOUT",USER_HEALTH_ATTRIBUTES:"USER_HEALTH_ATTRIBUTES",USER_WEIGHT_ATTRIBUTES:"USER_WEIGHT_ATTRIBUTES",PROFANITY:"PROFANITY",FAKE_FORM_ELEMENTS:"FAKE_FORM_ELEMENTS",FAKE_NOTIFICATIONS:"FAKE_NOTIFICATIONS",MOUSE_CURSOR:"MOUSE_CURSOR",PLAY_BUTTON:"PLAY_BUTTON",QR_CODES:"QR_CODES",EXCESSIVE_SKIN:"EXCESSIVE_SKIN",INDIRECT_NUDITY:"INDIRECT_NUDITY",INDIRECT_SEXUAL_ACT:"INDIRECT_SEXUAL_ACT",SEXUAL_OTHER:"SEXUAL_OTHER",ZOOM_SEXUAL_IMAGE:"ZOOM_SEXUAL_IMAGE"};},null,{});
__d("CROWCompsType",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={UNKNOWN:0,PROACTIVE_AD:1,PROACTIVE_AD_ACCOUNT:2,PROACTIVE_AD_BODY_TEXT:3,PROACTIVE_AD_CAMPAIGN:4,PROACTIVE_AD_IMAGE:5,PROACTIVE_AD_LANDING_PAGE:6,PROACTIVE_AD_TITLE_TEXT:7,PROACTIVE_AD_TARGET_SPEC:8,AD_IMAGE_FUZZY_HASH:9,PROACTIVE_COUPON:10,INITIAL_APP_CENTER_DEPRECATED:11,INITIAL_APP_CENTER_DEVELOPER_DEPRECATED:12,INITIAL_APP_CENTER_SUBTITLE:13,INITIAL_APP_CENTER_DESCRIPTION:14,INITIAL_APP_CENTER_DETAILED_DESCRIPTION:15,INITIAL_APP_CENTER_ICONS_DEPRECATED:16,INITIAL_APP_CENTER_SCREENSHOTS:17,INITIAL_APP_CENTER_BANNERS:18,INITIAL_APP_CENTER_COVER_IMAGE:19,INITIAL_APP_CENTER_APP_DEPRECATED:20,PROACTIVE_PAGE:21,PROACTIVE_PAGE_COVER_PHOTO:22,PROACTIVE_PAGE_TITLE:23,AD_ACCOUNT_MANAGER:24,AD_ACCOUNT_PHONE:25,AD_ACCOUNT_BILLING_ADDRESS:26,AD_ACCOUNT_FUZZY_EMAIL:27,APP_OVERVIEW:28,APP_PLATFORM_IPHONE:29,APP_PLATFORM_ANDROID:30,APP_PLATFORM_CANVAS:31,APP_PLATFORM_MOBILE_WEB:32,APP_PLATFORM_PAGE_TAB:33,APP_PLATFORM_WEB:34,APP_SUBMISSION:35,AD_ACCOUNT_BRAND:36,AD_ACCOUNT_PAYMENT_METHOD:37,AD_ACCOUNT_DATR:38,AD_ACCOUNT_IP:39,APP_ICON:40,APP_LOGO:41,AD_ACCOUNT_USER_ADMIN:42,BRAND_SAFETY_GROUP:43,APP_PLATFORM_IPAD:44,AD_PHOTODNA_HASH:45,APP_OG_ACTION_TYPE:46,PAGE_COMMERCIAL_CONTENT:47,AD_ACCOUNT_COMPS_COLLECTION:48,VIDEO:49,APP_PLATFORM_WINDOWS:50,APP_PLATFORM_XBOX:51,APP_PLATFORM_PLAYSTATION:52,APP_DEMO_VIDEO:54,AD_LANDING_PAGE_MD5_FETCH_SOURCE:55,PAGE_POST:56,VIDEODNA_HASH:57,MERCHANT:58,PRODUCT:59,MERCHANT_APPLICATION:60,POST_BODY_TEXT:61,PRODUCT_TITLE_TEXT:62,PRODUCT_BODY_TEXT:63,PRODUCT_IMAGE:64,MESSENGER_FEATURED_BANNER:65,PAGE_NAME_CHANGE:66,INSTAGRAM_STAGED_AD:67,ATLAS_CLICK_THROUGH:69,PROACTIVE_PAGE_RATING:70,PROACTIVE_AD_DOM_PARSER_IMAGE:71,LIVERAIL_SUPPLY:72,PROACTIVE_AD_DOM_PARSER_LINK:73,PROACTIVE_AD_DOM_PARSER_TEXT:74,PAGE_MERGE:75,AD_METADATA:77,API_AD:78,AD_XRAY_HASH:79,LEAD_GEN_AD_QUESTION:80,AD_IMAGE_FILE_HASH:81,BUSINESS:84,LIVERAIL_APP:85};},null,{});
__d("CustomAudienceDeliveryStatus",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ACTIVE:200,INACTIVE:300,INVALID:400,INVALID_FOR_SAME_FIRST_OR_LAST_NAME:401};},null,{});
__d("DirectDebitFormParam",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ACCOUNT_ID:"account_id",ACCOUNT_COUNTRY_CODE:"account_country_code",ACCOUNT_HOLDER_NAME:"account_holder_name",APPROVAL:"approval",BANK_ACCOUNT_NUMBER:"bankAccountNumber",BANK_ROUTING_NUMBER:"bank_routing_number",MANDATE_GEO_TYPE:"mandate_geo_type",DIRECT_DEBIT_FBID:"dd_fbid",CITY:"city",CONTEXT_ID:"context_id",STREET:"street",ZIP:"zip",BANK_ACCOUNT_NUMBER_TOKEN:"bankAccountNumber_token",BANK_ACCOUNT_NUMBER_LAST_4:"bankAccountNumber_last4"};},null,{});
__d("DirectDebitMandateGeoType",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={MANDATE_GEO_TYPE_BACS:66,MANDATE_GEO_TYPE_SEPA:83,MANDATE_GEO_TYPE_US:85};},null,{});
__d("FundingSourceType",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={FUNDING_TYPE_UNSET:0,FUNDING_TYPE_CREDIT_CARD:1,FUNDING_TYPE_FACEBOOK_WALLET:2,FUNDING_TYPE_FACEBOOK_PAID_CREDIT:3,FUNDING_TYPE_FACEBOOK_EXTENDED_CREDIT:4,FUNDING_TYPE_ORDER:5,FUNDING_TYPE_INVOICE:6,FUNDING_TYPE_FACEBOOK_TOKEN:7,FUNDING_TYPE_EXTERNAL_FUNDING:8,FUNDING_TYPE_FEE:9,FUNDING_TYPE_FX:10,FUNDING_TYPE_DISCOUNT:11,FUNDING_TYPE_PAYPAL_TOKEN:12,FUNDING_TYPE_PAYPAL_BILLING_AGREEMENT:13,FUNDING_TYPE_NULL:14,FUNDING_TYPE_EXTERNAL_DEPOSIT:15,FUNDING_TYPE_TAX:16,FUNDING_TYPE_DIRECT_DEBIT:17,FUNDING_TYPE_DUMMY:18,FUNDING_TYPE_ALTPAY:19,FUNDING_TYPE_STORED_BALANCE:20};},null,{});
__d("GraphAdCreativeLinkDataNode",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={graphDefaultFields:["link","message","name","caption","attachment_style","description","image_hash","call_to_action","image_crops","picture","child_attachments","multi_share_end_card","multi_share_optimized","max_product_count"]};},null,{});
__d("GraphAdCreativeObjectStorySpecNode",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={graphDefaultFields:["page_id","instagram_actor_id","photo_data","text_data","link_data","template_data","offer_data","video_data","cinemagraph_data"]};},null,{});
__d("GraphEdgeName",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ACCESS_TOKENS:"access_tokens",ACCOUNTS:"accounts",ACHIEVEMENTS:"achievements",ACTION_TAGS:"action_tags",ACTIVE_FUNDRAISERS:"active_fundraisers",ACTIVITIES:"activities",AD_EVENTS:"ad_events",AD_EXPORT_PRESETS:"ad_export_presets",AD_PLACE_PAGE_SETS:"ad_place_page_sets",AD_SAVED_TARGET_SPECS:"ad_saved_target_specs",AD_SET_ADS:"ad_set_ads",AD_SETS:"ad_sets",AD_STAGING_AREAS:"ad_staging_areas",AD_STUDIES:"ad_studies",AD_SUPPLEMENTAL_MEDIA:"ad_supplemental_media",ADACCOUNT:"adaccount",ADACCOUNTGROUPS:"adaccountgroups",ADACCOUNTROLES:"adaccountroles",ADACCOUNTS:"adaccounts",ADAPPLICATIONDATA:"adapplicationdata",ADASSET_FEED:"adasset_feed",ADCAMPAIGN_GROUPS:"adcampaign_groups",ADCAMPAIGNCONVERSIONS:"adcampaignconversions",ADCAMPAIGNGROUPSBYLABELS:"adcampaigngroupsbylabels",ADCAMPAIGNS:"adcampaigns",ADCAMPAIGNSBYLABELS:"adcampaignsbylabels",ADCAMPAIGNSTATS:"adcampaignstats",ADCONNECTEDAPP:"adconnectedapp",ADCONTRACTS:"adcontracts",ADCREATIVES:"adcreatives",ADCREATIVESBYLABELS:"adcreativesbylabels",ADCREDITLINE:"adcreditline",ADD_SHARED_LOGIN:"add_shared_login",ADD_SHARED_LOGIN_ADACCOUNT:"add_shared_login_adaccount",ADD_SHARED_LOGIN_PAGE:"add_shared_login_page",ADDRAFT_FRAGMENTS:"addraft_fragments",ADDRAFT_PUBLISH:"addraft_publish",ADDRAFT_SUBSCRIBERS:"addraft_subscribers",ADDRAFTS:"addrafts",ADGROUPAPPLICATIONDATA:"adgroupapplicationdata",ADGROUPCONVERSIONS:"adgroupconversions",ADGROUPS:"adgroups",ADGROUPSBYLABELS:"adgroupsbylabels",ADGROUPSTATS:"adgroupstats",ADIMAGES:"adimages",ADLABELS:"adlabels",ADLOG:"adlog",ADMIN_SETTINGS:"admin_settings",ADMIN_STICKY_SETTINGS:"admin_sticky_settings",ADMIN_TEXT_MESSAGES:"admin_text_messages",ADMINED_GROUPS:"admined_groups",ADMINS:"admins",ADNETWORKANALYTICS:"adnetworkanalytics",ADNOTIFICATIONSETTINGS:"adnotificationsettings",ADPREVIEWSCSS:"adpreviewscss",ADRELATEDINTERESTSSEARCH:"adrelatedinterestssearch",ADREPORTRUNS:"adreportruns",ADREPORTSCHEDULES:"adreportschedules",ADREPORTSPECS:"adreportspecs",ADRULES:"adrules",ADRULES_LIBRARY:"adrules_library",ADS:"ads",ADS_ACCESS_TOKEN:"ads_access_token",ADS_COUNTRY_BOUNDING_BOX:"ads_country_bounding_box",ADS_CREATION_SAVED_STATE:"ads_creation_saved_state",ADS_GEO_CODING:"ads_geo_coding",ADS_POSTS:"ads_posts",ADS_USER_SETTINGS:"ads_user_settings",ADS_VIEW_TAG_VALIDATION:"ads_view_tag_validation",ADSBYLABELS:"adsbylabels",ADSETS:"adsets",ADSETSBYLABELS:"adsetsbylabels",ADSPAYMENTCYCLE:"adspaymentcycle",ADSPIXELS:"adspixels",ADSTOCKIMAGESEARCH:"adstockimagesearch",ADTAGS:"adtags",ADTOPLINES:"adtoplines",ADTOPLINESTATS:"adtoplinestats",ADVERTISABLE_APPLICATIONS:"advertisable_applications",ADVERTISER_PROFILES:"advertiser_profiles",ADVERTISERS:"advertisers",ADVIDEOCLONE:"advideoclone",ADVIDEOS:"advideos",AGENCIES:"agencies",ALBUMS:"albums",ALIASES:"aliases",ALL_MUTUAL_FRIENDS:"all_mutual_friends",ALLROLES:"allroles",ANALYTICS:"analytics",ANALYTICS_COHORTS:"analytics_cohorts",ANALYTICS_EVENT_TYPES:"analytics_event_types",ANALYTICS_FUNNELS:"analytics_funnels",ANALYTICS_SEGMENTS:"analytics_segments",ANDROID_DIALOG_CONFIGS:"android_dialog_configs",APP_EVENT_TYPES:"app_event_types",APP_INSIGHTS:"app_insights",APP_LINK_HOSTS:"app_link_hosts",APPINVITES:"appinvites",APPLICATIONS:"applications",APPRECOMMENDATIONS:"apprecommendations",APPREQUESTFORMERRECIPIENTS:"apprequestformerrecipients",APPREQUESTS:"apprequests",APPS:"apps",APPS_USES:"apps.uses",ASSETS:"assets",ASSIGNED_AD_ACCOUNTS:"assigned_ad_accounts",ASSIGNED_PAGES:"assigned_pages",ASSIGNED_PRODUCT_CATALOGS:"assigned_product_catalogs",ASYNCADCOPIES:"asyncadcopies",ASYNCADGROUPREQUESTS:"asyncadgrouprequests",ASYNCADGROUPREQUESTSETS:"asyncadgrouprequestsets",ASYNCADREQUESTS:"asyncadrequests",ASYNCADREQUESTSETS:"asyncadrequestsets",ATLAS_NOTIFICATIONS:"atlas_notifications",ATLAS_PERMISSIONS:"atlas_permissions",ATLAS_ROLES:"atlas_roles",ATLAS_USERS:"atlas_users",ATLASACTIONTAGS:"atlasactiontags",ATLASADEVENTS:"atlasadevents",ATLASADS:"atlasads",ATLASADSETADS:"atlasadsetads",ATLASADSETS:"atlasadsets",ATLASADVERTISERS:"atlasadvertisers",ATLASADVERTISERSEARCHSETTINGS:"atlasadvertisersearchsettings",ATLASASSETS:"atlasassets",ATLASASSIGNMENTS:"atlasassignments",ATLASAUDIENCES:"atlasaudiences",ATLASAUDITLOGS:"atlasauditlogs",ATLASBRANCHES:"atlasbranches",ATLASCAMPAIGNS:"atlascampaigns",ATLASCARRIERGROUPS:"atlascarriergroups",ATLASCLICKTHROUGHS:"atlasclickthroughs",ATLASCLIENTS:"atlasclients",ATLASCOMPANIES:"atlascompanies",ATLASCOSTPACKAGES:"atlascostpackages",ATLASCREATIVES:"atlascreatives",ATLASCREATIVESETS:"atlascreativesets",ATLASCUSTOMDIMENSIONS:"atlascustomdimensions",ATLASMIXINS:"atlasmixins",ATLASNOTIFICATIONS:"atlasnotifications",ATLASPLACEMENTADOVERRIDES:"atlasplacementadoverrides",ATLASPLACEMENTADS:"atlasplacementads",ATLASPLACEMENTADSETRTBCONFIGS:"atlasplacementadsetrtbconfigs",ATLASPLACEMENTS:"atlasplacements",ATLASPUBLISHERS:"atlaspublishers",ATLASREPORTRUNS:"atlasreportruns",ATLASREPORTS:"atlasreports",ATLASREPORTSCHEDULES:"atlasreportschedules",ATLASRTBAPPLICATIONS:"atlasrtbapplications",ATLASRTBEXCHANGES:"atlasrtbexchanges",ATLASRTBINVENTORYSOURCES:"atlasrtbinventorysources",ATLASRTBPUBLISHERS:"atlasrtbpublishers",ATLASSEGMENTS:"atlassegments",ATLASSITES:"atlassites",ATLASUSERS:"atlasusers",ATLASYTAGS:"atlasytags",ATTACHMENTS:"attachments",ATTENDING:"attending",ATTRIBUTES:"attributes",ATTRIBUTIONS:"attributions",AUDIENCE_ALIGNMENT_INFO:"audience_alignment_info",AUDIENCEINTERESTSEARCH:"audienceinterestsearch",AUDIENCEINTERESTSUGGESTIONSEARCH:"audienceinterestsuggestionsearch",AUDIENCEINTERESTVALIDATIONSEARCH:"audienceinterestvalidationsearch",AUDIENCEOVERLAP:"audienceoverlap",AUDIENCES:"audiences",AUTHORIZED_ADACCOUNTS:"authorized_adaccounts",AUTOTAGGING:"autotagging",AVAILABILITY_STATE_NOTIFICATIONS:"availability_state_notifications",BANNED:"banned",BATCH:"batch",BATCHREPLACE:"batchreplace",BATCHUPLOAD:"batchupload",BILLING_ENTITIES:"billing_entities",BILLINGOBJECTS:"billingobjects",BLACKLISTED_GYSJ_GROUPS:"blacklisted_gysj_groups",BLACKLISTED_PYMK_USERS:"blacklisted_pymk_users",BLACKLISTEDSOURCES:"blacklistedsources",BLOCKED:"blocked",BLOCKEDURLS:"blockedurls",BODIES:"bodies",BOOKS:"books",BRAINTREE_CLIENT_TOKENS:"braintree_client_tokens",BRANCHES:"branches",BRAND_TEAMS:"brand_teams",BRANDLIFT_STUDIES:"brandlift_studies",BRANDS:"brands",BROADCASTS:"broadcasts",BROADTARGETINGCATEGORIES:"broadtargetingcategories",BROWSER_NOTIFICATIONS:"browser_notifications",BUDGET_RECS:"budget_recs",BUDGETRECS:"budgetrecs",BUGS:"bugs",BULKCONTACTS:"bulkcontacts",BUSINESS_AD_ACCOUNT_REQUESTS:"business_ad_account_requests",BUSINESS_PERSONA:"business_persona",BUSINESS_REQUESTS:"business_requests",BUSINESSES:"businesses",BUSINESSPROJECTS:"businessprojects",BUSINESSSETTINGLOGS:"businesssettinglogs",CALL_TO_ACTION_TYPES:"call_to_action_types",CALL_TO_ACTIONS:"call_to_actions",CAMPAIGNS:"campaigns",CAMPAIGNSBYLABELS:"campaignsbylabels",CANCEL_MESSENGER_COMMERCE_ORDERS:"cancel_messenger_commerce_orders",CANCELS:"cancels",CANONICAL_THREADS:"canonical_threads",CAPABILITIES:"capabilities",CAPTIONS:"captions",CAPTURES:"captures",CARDLINK:"cardlink",CARDS:"cards",CARRIER_COMPLETED_PURCHASES:"carrier_completed_purchases",CARRIER_GROUPS:"carrier_groups",CARRIER_PHONE_STATUS:"carrier_phone_status",CARRIER_WALLET_PROVISION:"carrier_wallet_provision",CELLS:"cells",CHALLENGES:"challenges",CHARGEBACKS:"chargebacks",CHECK_APPROVED_MACHINE:"check_approved_machine",CHECKINS:"checkins",CHILDREN:"children",CHUNKED_UPLOAD_SESSIONS:"chunked_upload_sessions",CHUNKS:"chunks",CLAIM:"claim",CLICK_THROUGHS:"click_throughs",CLIENT_AD_ACCOUNT_REQUESTS:"client_ad_account_requests",CLIENT_AD_ACCOUNTS:"client_ad_accounts",CLIENT_PAGE_REQUESTS:"client_page_requests",CLIENT_PAGES:"client_pages",CLIENT_PRODUCT_CATALOGS:"client_product_catalogs",CLIENTS:"clients",COLUMN_PRESETS:"column_presets",COMMENTS:"comments",COMMERCE_CART_ITEMS:"commerce_cart_items",COMMERCE_MERCHANT_APPLICATIONS:"commerce_merchant_applications",COMMERCE_MERCHANT_SETTINGS:"commerce_merchant_settings",COMMERCE_MERCHANT_SUBSCRIPTIONS:"commerce_merchant_subscriptions",COMMERCE_SETTINGS:"commerce_settings",COMMERCE_SHIPPING_ADDRESS_SELECTIONS:"commerce_shipping_address_selections",COMMERCE_STORE_COLLECTIONS:"commerce_store_collections",COMMISSION_SPLITS:"commission_splits",COMPANIES:"companies",COMPOSERPROMPTS:"composerprompts",CONNECTED_FB_ACCOUNTS:"connected_fb_accounts",CONNECTIONOBJECTS:"connectionobjects",CONNECTIONS:"connections",CONTACT:"contact",CONTACTFIELDS:"contactfields",CONTACTIMPORTER:"contactimporter",CONTACTPOINTS:"contactpoints",CONTACTS:"contacts",CONTACTS_PHOTOS:"contacts_photos",CONTACTSAPPBULK:"contactsappbulk",CONTACTSMESSENGERSYNC:"contactsmessengersync",CONTENT_CLASSIFIER:"content_classifier",CONTENTS:"contents",CONTRIBUTORS:"contributors",CONVERSATIONS:"conversations",CONVERSION_PIXELS:"conversion_pixels",CONVERSIONS:"conversions",CONVERSIONSEEDESTIMATE:"conversionseedestimate",COST_PACKAGES:"cost_packages",COST_PERIODS:"cost_periods",COUPONS:"coupons",COVER:"cover",CREATIONOPPORTUNITIES:"creationopportunities",CREATIVE_SETS:"creative_sets",CREATIVES:"creatives",CREDIT_CARDS:"credit_cards",CREDITCARDS:"creditcards",CURRENT_ADDRAFTS:"current_addrafts",CURRENT_FX_RATES:"current_fx_rates",CUSTOM_AUDIENCE_THIRD_PARTY_ID:"custom_audience_third_party_id",CUSTOM_DIMENSIONS:"custom_dimensions",CUSTOM_VOICEMAILS:"custom_voicemails",CUSTOMAUDIENCES:"customaudiences",CUSTOMAUDIENCESTOS:"customaudiencestos",CUSTOMCONVERSIONS:"customconversions",CUSTOMDATAPROPERTIES:"customdataproperties",CUSTOMER_LIST_FILES:"customer_list_files",CUSTOMER_LISTS:"customer_lists",DATA:"data",DAYAPP:"dayapp",DBLCHANGENONCE:"dblchangenonce",DBLCHECKNONCE:"dblchecknonce",DBLCHECKPASSWORD:"dblcheckpassword",DBLPASSWORDSETNONCE:"dblpasswordsetnonce",DBLPLATFORMTESTUSERSETNONCE:"dblplatformtestusersetnonce",DBLREMOVENONCE:"dblremovenonce",DBLSETNONCE:"dblsetnonce",DEALPURCHASES:"dealpurchases",DEALS:"deals",DEBUG_TOKEN:"debug_token",DECLINED:"declined",DEFAULT_ORDERING_ITEMS:"default_ordering_items",DEFAULT_PRIVACY_EDUCATION_EVENTS:"default_privacy_education_events",DELIVERYOPPORTUNITIES:"deliveryopportunities",DEMOGRAPHICS:"demographics",DESCRIPTIONS:"descriptions",DESCRIPTORS:"descriptors",DEVICE_NOTIFICATIONS:"device_notifications",DEVICES:"devices",DISCUSSION_COMMENTS:"discussion_comments",DISMISSTAGSUGGESTION:"dismisstagsuggestion",DISPUTE:"dispute",DOCS:"docs",DOCUMENT_ASSETS:"document_assets",DOCUMENT_FONTS:"document_fonts",DOCUMENT_STYLES:"document_styles",DOMAIN_INSIGHTS:"domain_insights",DOMAINS:"domains",DRAFT_FUNDRAISERS:"draft_fundraisers",DRAFT_POSTS:"draft_posts",DROPPED:"dropped",DROPPED_BY:"dropped_by",ECHO_PROMPT_REJECT:"echo_prompt_reject",EDIT_ACTIONS:"edit_actions",EDUCATION_CONNECTIONS:"education_connections",EMAIL_INVITES:"email_invites",EMAILIMPORT:"emailimport",EMPLOYEES:"employees",ENCRYPTEDCHANNELS:"encryptedchannels",ENDED_FUNDRAISERS:"ended_fundraisers",ENGAGEMENTINSIGHTSRULES:"engagementinsightsrules",ERRORS:"errors",EVENT_SAMPLES:"event_samples",EVENT_STATS:"event_stats",EVENTS:"events",EXPERIMENTS:"experiments",EXPIRED_POSTS:"expired_posts",EXPIRING_POSTS:"expiring_posts",EXTENDED_DATA_COLUMNS:"extended_data_columns",EXTENDEDCREDITS:"extendedcredits",EXTERNAL_EVENT_SOURCES:"external_event_sources",EXTERNAL_TAGS:"external_tags",FACECAST_LIVE_COMMENT_DELAY_LOGGING_EVENTS:"facecast_live_comment_delay_logging_events",FACECAST_VIDEO_INGESTION_UPDATES:"facecast_video_ingestion_updates",FACES:"faces",FAMILIES:"families",FAMILY:"family",FAVORITE_REQUESTS:"favorite_requests",FAVORITEATLASAUDIENCES:"favoriteatlasaudiences",FAVORITEATLASCAMPAIGNS:"favoriteatlascampaigns",FAVORITEATLASREPORTS:"favoriteatlasreports",FAVORITEATLASSEGMENTS:"favoriteatlassegments",FB4A_MALWARE_CONFIG:"fb4a_malware_config",FB4A_MALWARE_LOGGING:"fb4a_malware_logging",FBURLS:"fburls",FEATURED_VIDEOS_COLLECTION:"featured_videos_collection",FEED:"feed",FEEDBACK_REVIEWS:"feedback_reviews",FEEDSECTIONS:"feedsections",FILE_CHUNKS:"file_chunks",FILES:"files",FILTERS:"filters",FINANCIAL_ENTITIES:"financial_entities",FLAGS:"flags",FLATBUFFERS:"flatbuffers",FOLLOWABLE_PROFILES:"followable_profiles",FOREIGN_EXCHANGES:"foreign_exchanges",FORMER_PARTICIPANTS:"former_participants",FQL:"fql",FRAGMENT_STATUSES:"fragment_statuses",FRIENDCODE:"friendcode",FRIENDCODESEARCH:"friendcodesearch",FRIENDINGRADAR:"friendingradar",FRIENDLISTS:"friendlists",FRIENDREQUESTS:"friendrequests",FRIENDS:"friends",FRIENDS_TAGGED_AT:"friends_tagged_at",FRIENDS_USING_APP:"friends_using_app",FRIENDS_WHO_LIKE:"friends_who_like",FULFILL:"fulfill",GAMEFRIENDS:"gamefriends",GAMES:"games",GAMES_ACHIEVES:"games.achieves",GAMES_SCORES:"games.scores",GENERATEPREVIEWS:"generatepreviews",GEOCODER:"geocoder",GEOTARGETSPECMIGRATIONS:"geotargetspecmigrations",GIFT_CARTS:"gift_carts",GIFT_ITUNES_SEARCH:"gift_itunes_search",GIFT_ITUNES_TOP_CONTENT:"gift_itunes_top_content",GIFT_OUTBOUND_SHIPMENTS:"gift_outbound_shipments",GIFT_PRODUCT_SKUS:"gift_product_skus",GIFT_PRODUCTS:"gift_products",GIFT_REQUESTS:"gift_requests",GIFTCARD_REDEMPTIONS:"giftcard_redemptions",GIFTCARDS:"giftcards",GIFTS:"gifts",GLOBAL_BRAND_CHILDREN:"global_brand_children",GRAFFITI_NOTES:"graffiti_notes",GRAPHQL:"graphql",GRAPHQLBATCH:"graphqlbatch",GROUP_THREADS:"group_threads",GROUPROLES:"grouproles",GROUPS:"groups",GRP_PLANS:"grp_plans",HASHED_EMAILS:"hashed_emails",HASHED_FRIENDS:"hashed_friends",HASHTAG_COUNTS:"hashtag_counts",HASHTAG_VOTES:"hashtag_votes",HEADPUBLISHERCANLOGIN:"headpublishercanlogin",HEADPUBLISHERCHANGEPASSWORD:"headpublisherchangepassword",HEADPUBLISHERGETARTICLEFEEDSETTING:"headpublishergetarticlefeedsetting",HEADPUBLISHERISCODEVALID:"headpublisheriscodevalid",HEADPUBLISHERISEMAILVALID:"headpublisherisemailvalid",HEADPUBLISHERSTORYEXPORTINSTAGRAM:"headpublisherstoryexportinstagram",HEADPUBLISHERSTORYEXPORTTWITTER:"headpublisherstoryexporttwitter",HELLO_INVITES:"hello_invites",HHVM_OSS_TESTS:"hhvm_oss_tests",HIDDEN_FEED_AUTHORS:"hidden_feed_authors",HIDDEN_PHOTOS:"hidden_photos",HIDDENSUGGESTIONS:"hiddensuggestions",HOME:"home",HPROF:"hprof",IDS_FOR_BUSINESS:"ids_for_business",IMAGES:"images",IMPORTCONTACTS:"importcontacts",IMPORTED_EVENTS:"imported_events",IMPORTED_PAGES:"imported_pages",IMPORTTEMPLATE:"importtemplate",IMPRESSIONS:"impressions",INBOX:"inbox",INFO_REQUESTS:"info_requests",INLINE_PRIVACY_SURVEY_EVENTS:"inline_privacy_survey_events",INSIGHTS:"insights",INSIGHTS_EVENT_LABELS:"insights_event_labels",INSTAGRAM_ACCOUNTS:"instagram_accounts",INSTAGRAM_AD_ACCOUNT_GROUPS:"instagram_ad_account_groups",INSTAGRAM_AD_STAGING_AREAS:"instagram_ad_staging_areas",INSTAGRAM_BUSINESSES:"instagram_businesses",INSTAGRAM_COMMENTS:"instagram_comments",INSTAGRAM_MEDIA:"instagram_media",INSTAGRAM_USERS:"instagram_users",INSTAGRAM_USERTAGS:"instagram_usertags",INSTANT_ARTICLES:"instant_articles",INSTANT_ARTICLES_CMS_SEARCH:"instant_articles_cms_search",INSTANT_SHOPPING:"instant_shopping",INTEGRATED_PLUGIN_APPREQUESTS:"integrated_plugin_apprequests",INTEGRATED_PLUGIN_FEED:"integrated_plugin_feed",INTEGRATED_PLUGIN_PRIVACYOPTIONS:"integrated_plugin_privacyoptions",INTERESTS:"interests",INTERSTITIALS:"interstitials",INTL_TASKS_FEED:"intl_tasks_feed",INVALIDATE_ARTICLE_AUTHOR:"invalidate_article_author",INVENTORY:"inventory",INVITABLE_FRIENDS:"invitable_friends",INVITED:"invited",INVITES:"invites",INVOICES:"invoices",IOS_DIALOG_CONFIGS:"ios_dialog_configs",ITEMS:"items",JOB_OFFERS:"job_offers",KEPLERBEHAVIORCATEGORIES:"keplerbehaviorcategories",KEYWORDSTATS:"keywordstats",LANGUAGE_PACKS:"language_packs",LEADGEN_FORMS:"leadgen_forms",LEADGEN_QUALIFIERS:"leadgen_qualifiers",LEADS:"leads",LIFE_EVENTS:"life_events",LIKES:"likes",LINK_URLS:"link_urls",LINKED_MESSENGER_COMMERCE_BUSINESSES:"linked_messenger_commerce_businesses",LINKS:"links",LIVE_VIDEOS_WATCHING_EVENTS:"live_videos_watching_events",LIVE_VIDEO_SUBSCRIPTIONS:"live_video_subscriptions",LIVECHAT_COUNTERS:"livechat_counters",LIVECHAT_LOGS:"livechat_logs",LIVECHAT_MESSAGES:"livechat_messages",LIVERAILENTITIES:"liverailentities",LOCATION_PRIVACY:"location_privacy",LOCATION_TRACKING:"location_tracking",LOCATIONPING:"locationping",LOCATIONPING_REQUESTREFRESH:"locationping_requestrefresh",LOCATIONS:"locations",LOCATIONUPDATES:"locationupdates",LOCKED_FEED_APPS:"locked_feed_apps",LOGGING_CLIENT_EVENTS:"logging_client_events",LOGIN:"login",LOGINAPPROVALSKEYS:"loginapprovalskeys",MACHINE_LOGS:"machine_logs",MACHINES:"machines",MACROS:"macros",MAILING_ADDRESSES:"mailing_addresses",MALWARE_ANALYSES:"malware_analyses",MALWARE_FAMILIES:"malware_families",MALWARE_SCANNER:"malware_scanner",MALWARE_SIGNATURES:"malware_signatures",MANAGEABLE_USERS:"manageable_users",MAPS_CONFIGS:"maps_configs",MAYBE:"maybe",MEASUREMENT_REQUESTS:"measurement_requests",MEGAPHONE_TOP_STORIES:"megaphone_top_stories",MEGAPHONES:"megaphones",MEMBERS:"members",MENTIONS_ANDROID_UPDATER_LOGGING_EVENTS:"mentions_android_updater_logging_events",MESSAGE_ACCEPT_REQUESTS:"message_accept_requests",MESSAGE_ANIMATED_IMAGES:"message_animated_images",MESSAGE_AUDIOS:"message_audios",MESSAGE_FILES:"message_files",MESSAGE_GIFS:"message_gifs",MESSAGE_IGNORE_REQUESTS:"message_ignore_requests",MESSAGE_IMAGES:"message_images",MESSAGE_POSTCARDS:"message_postcards",MESSAGE_THREADS:"message_threads",MESSAGES:"messages",MESSAGEVIDEOATTACHMENT:"messagevideoattachment",MESSAGINGFAVORITES:"messagingfavorites",MESSENGER_ACTIONS:"messenger_actions",MESSENGER_INSTALLS:"messenger_installs",MESSENGER_SUBSCRIBERS:"messenger_subscribers",METRICS:"metrics",MILESTONES:"milestones",MINIMUM_BUDGETS:"minimum_budgets",MIXINS:"mixins",MM_AD_SETS:"mm_ad_sets",MM_ADS:"mm_ads",MM_ADVERTISERS:"mm_advertisers",MM_APP_AD_NETWORKS:"mm_app_ad_networks",MM_APPS:"mm_apps",MM_CAMPAIGNS:"mm_campaigns",MM_COMPANY:"mm_company",MM_REPORTS:"mm_reports",MOBILE_CLIENT_EVENTS:"mobile_client_events",MOBILE_CONFIGS:"mobile_configs",MOBILE_MEASUREMENT_APP_PARAMETERS_FOR_AD_NETWORK:"mobile_measurement_app_parameters_for_ad_network",MOBILE_PERFTRACES:"mobile_perftraces",MOBILE_PIN_BOOKMARKS:"mobile_pin_bookmarks",MOBILECONFIG:"mobileconfig",MOBILECONFIGSESSIONLESS:"mobileconfigsessionless",MONEYPENNY_PAYMENTS:"moneypenny_payments",MONSTERS:"monsters",MONTAGE_THREAD_MESSAGES:"montage_thread_messages",MONTAGE_THREAD_VIEWERS:"montage_thread_viewers",MOVEMENT:"movement",MOVIES:"movies",MULTI_ACTION_TAG_TRAFFICKING_DATA:"multi_action_tag_trafficking_data",MULTI_ACTION_TAGS:"multi_action_tags",MULTIFEED_AFRO_ACTIONS:"multifeed_afro_actions",MULTIFEED_REPORTS:"multifeed_reports",MUSIC:"music",MUSIC_LISTEN_FRIENDS:"music_listen_friends",MUTE:"mute",MUTUAL_FRIENDS:"mutual_friends",MUTUAL_LIKES:"mutual_likes",MUTUALFRIENDS:"mutualfriends",NATIVE_APPS:"native_apps",NEARBY_CHAT:"nearby_chat",NEARBY_CONTACTS:"nearby_contacts",NEARBYANDROIDLAYOUTS:"nearbyandroidlayouts",NEGATIVE_FEEDBACK_ACTIONS:"negative_feedback_actions",NEGATIVE_FEEDBACK_MESSAGE_ACTIONS:"negative_feedback_message_actions",NETWORK_ADS:"network_ads",NETWORK_ADS_COMMON:"network_ads_common",NETWORK_ADS_NATIVE:"network_ads_native",NETWORK_ADS_SEARCH:"network_ads_search",NEW_LIKES:"new_likes",NEWCOMER_AUDIENCE:"newcomer_audience",NONUSERPUSHTOKENS:"nonuserpushtokens",NOREPLY:"noreply",NOTES:"notes",NOTIFICATION_SEEN_STATES:"notification_seen_states",NOTIFICATIONS:"notifications",NOTIFICATIONSSETTINGS:"notificationssettings",NOTIFY_ME:"notify_me",NOTIFY_NOTIFICATIONS:"notify_notifications",NOTIFY_STATIONS:"notify_stations",NUX_WIZARD_USER_STATE:"nux_wizard_user_state",OBJECT_TYPES:"object_types",OBJECTIVES:"objectives",OBJECTS:"objects",OCCLUDESPOPUPS:"occludespopups",ODS_METRICS:"ods_metrics",OFFERS:"offers",OFFICIAL_EVENTS:"official_events",OFFLINE_ACTION_BATCHES:"offline_action_batches",OFFLINECONVERSIONS:"offlineconversions",OFFLINEFEEDS:"offlinefeeds",OFFSITEPIXELS:"offsitepixels",OFFSITEPIXELSTOS:"offsitepixelstos",OG_COMPOSER_ACTION_TYPES:"og_composer_action_types",ONAVO_STATS:"onavo_stats",OPEN_GRAPH_RATINGS:"open_graph_ratings",OPEN_GRAPH_RATINGS_PRIVACY:"open_graph_ratings_privacy",OPENIDCONNECT_EMAIL_CONFIRMATION:"openidconnect_email_confirmation",OPTIONS:"options",ORDEREDFRIENDS:"orderedfriends",ORDERS:"orders",ORGANIZATIONS:"organizations",OUTBOX:"outbox",OWNED_AD_ACCOUNT_REQUESTS:"owned_ad_account_requests",OWNED_AD_ACCOUNTS:"owned_ad_accounts",OWNED_INSTAGRAM_ACCOUNTS:"owned_instagram_accounts",OWNED_PAGE_REQUESTS:"owned_page_requests",OWNED_PAGES:"owned_pages",OWNED_PIXELS:"owned_pixels",OWNED_PRODUCT_CATALOGS:"owned_product_catalogs",OWNERAPPS:"ownerapps",OWNERS:"owners",OWNERSHIPREQUESTS:"ownershiprequests",OZONE_ORDERS:"ozone_orders",P2P_ACCEPTED_PAYMENT_REQUESTS:"p2p_accepted_payment_requests",P2P_CAMPAIGN_TRANSFERS:"p2p_campaign_transfers",P2P_CANCELED_TRANSFERS:"p2p_canceled_transfers",P2P_CREDIT_CARDS:"p2p_credit_cards",P2P_DECLINED_PAYMENT_REQUESTS:"p2p_declined_payment_requests",P2P_DECLINED_TRANSFERS:"p2p_declined_transfers",P2P_DISABLE_TOUCH_ID_NONCES:"p2p_disable_touch_id_nonces",P2P_GEN_TOUCH_ID_NONCES:"p2p_gen_touch_id_nonces",P2P_PAYMENT_PINS:"p2p_payment_pins",P2P_PAYMENT_REQUESTS:"p2p_payment_requests",P2P_PLATFORM_BANNER_DISMISSAL:"p2p_platform_banner_dismissal",P2P_PLATFORM_BANNER_MARK_AS_SOLD:"p2p_platform_banner_mark_as_sold",P2P_SETTINGS:"p2p_settings",P2P_TRANSFERS:"p2p_transfers",P2P_VERIFICATION_FLOWS:"p2p_verification_flows",P2P_VERIFY_TOUCH_ID_NONCES:"p2p_verify_touch_id_nonces",PAGE_BACKED_INSTAGRAM_ACCOUNTS:"page_backed_instagram_accounts",PAGE_INVITE_RESPONSES:"page_invite_responses",PAGE_KEYWORD_SUBSCRIPTIONS:"page_keyword_subscriptions",PAGE_NOTIFICATION_SETTINGS:"page_notification_settings",PAGE_NUX_EXPOSURES:"page_nux_exposures",PAGE_PHOTO_MENU_PHOTOS:"page_photo_menu_photos",PAGE_TOPIC_SUBSCRIPTIONS:"page_topic_subscriptions",PAGES:"pages",PAGES_CREATION_FLOW:"pages_creation_flow",PARENT:"parent",PARSE_ANALYTICS:"parse_analytics",PARSE_ANDROID_CRASH_REPORTS:"parse_android_crash_reports",PARSE_CRASH_INCIDENTS:"parse_crash_incidents",PARSE_CRASH_REPORTING:"parse_crash_reporting",PARSE_CRASH_RESOLVED_REPORTS:"parse_crash_resolved_reports",PARSE_DEBUG_SYMBOLS:"parse_debug_symbols",PARSE_EMAILS:"parse_emails",PARSE_IOS_CRASH_REPORTS:"parse_ios_crash_reports",PARTICIPANTS:"participants",PARTNERADACCOUNT:"partneradaccount",PARTNERCATEGORIES:"partnercategories",PARTNERDATA:"partnerdata",PARTNERREQUESTS:"partnerrequests",PARTNERS:"partners",PARTNERSTUDIES:"partnerstudies",PASSBACKREPORTRUN:"passbackreportrun",PASTEBINS:"pastebins",PAY_WITH_FACEBOOK_CLIENT_CONFIG:"pay_with_facebook_client_config",PAY_WITH_FACEBOOK_INFORMATION:"pay_with_facebook_information",PAY_WITH_FACEBOOK_PAYMENTS:"pay_with_facebook_payments",PAY_WITH_FACEBOOK_SETTINGS:"pay_with_facebook_settings",PAY_WITH_FACEBOOK_USER_ENGAGEMENT:"pay_with_facebook_user_engagement",PAYMENT_SUBSCRIPTIONS:"payment.subscriptions",PAYMENT_ACCOUNTS:"payment_accounts",PAYMENT_CURRENCIES:"payment_currencies",PAYMENT_METHOD_ALTPAYS:"payment_method_altpays",PAYMENT_METHOD_DIRECT_DEBITS:"payment_method_direct_debits",PAYMENT_METHOD_EXTENDED_CREDITS:"payment_method_extended_credits",PAYMENT_METHOD_PAYPAL:"payment_method_paypal",PAYMENT_METHOD_TOKENS:"payment_method_tokens",PAYMENT_TRANSACTIONS:"payment_transactions",PAYMENTS:"payments",PAYMENTS_TEST_USERS:"payments_test_users",PAYOUTS:"payouts",PAYPAL_BRAINTREE_TOKENS:"paypal_braintree_tokens",PEOPLE_ACTIONS:"people_actions",PEOPLESETS:"peoplesets",PERMISSIONS:"permissions",PHONE_NUMBER:"phone_number",PHOTOS:"photos",PHYSICALAUTHTOKENS:"physicalauthtokens",PICTURE:"picture",PIN:"pin",PINNED_THREADS:"pinned_threads",PIXELS:"pixels",PLACE_DUPLICATE_SUGGESTION:"place_duplicate_suggestion",PLACE_PHOTOS:"place_photos",PLACE_TOPICS:"place_topics",PLACEMENT_AD_OVERRIDES:"placement_ad_overrides",PLACEMENT_AD_SETS:"placement_ad_sets",PLACEMENT_ADS:"placement_ads",PLACEMENT_MIXINS:"placement_mixins",PLACEMENTS:"placements",PLACES:"places",PLATFORMREQUESTS:"platformrequests",PM_CREDIT_CARD:"pm_credit_card",PMA_BETA_PROGRAM_REGISTERS:"pma_beta_program_registers",POKEMESSAGES:"pokemessages",POKES:"pokes",POSTS:"posts",POSTS_INSIGHTS:"posts_insights",PREFILLS:"prefills",PRESENCE_UPDATES:"presence_updates",PREVIEWS:"previews",PRIVACY:"privacy",PRIVACY_CHECKUP_MOBILE_EVENTS:"privacy_checkup_mobile_events",PRIVACY_EDITS:"privacy_edits",PRIVACY_EDUCATION:"privacy_education",PRIVACY_OPTIONS:"privacy_options",PRIVACY_SETTING:"privacy_setting",PRIVATE_REPLIES:"private_replies",PRODUCT_ADS_STATUS_CHECKS:"product_ads_status_checks",PRODUCT_AUDIENCES:"product_audiences",PRODUCT_CATALOG_TOS:"product_catalog_tos",PRODUCT_CATALOGS:"product_catalogs",PRODUCT_FEEDS:"product_feeds",PRODUCT_GROUPS:"product_groups",PRODUCT_RECOMMENDATIONS:"product_recommendations",PRODUCT_SETS:"product_sets",PRODUCTREMARKETINGAUDIENCES:"productremarketingaudiences",PRODUCTS:"products",PROFILE_VIDEOS:"profile_videos",PROMOTABLE_APPLICATIONS:"promotable_applications",PROMOTABLE_DOMAINS:"promotable_domains",PROMOTABLE_EVENTS:"promotable_events",PROMOTABLE_POSTS:"promotable_posts",PROMOTIONS:"promotions",PROXY_DEVICE:"proxy_device",PUBLIC_FIGURES:"public_figures",PUBLISHERS:"publishers",PUMA_ROWS:"puma_rows",PURCHASES:"purchases",PUSH_CHECKIN_SUGGESTION_EVENTS:"push_checkin_suggestion_events",PUSH_NOTIFICATION_PERMISSIONS:"push_notification_permissions",QRCODELOGIN:"qrcodelogin",QRCODES:"qrcodes",QUARTZ_POMONA_ACTIONS:"quartz_pomona_actions",QUESTIONS:"questions",RANKED_POSTS:"ranked_posts",RAPIDO_TIMESERIES:"rapido_timeseries",RATECARD:"ratecard",RATING_SUGGESTION_BLACKLIST:"rating_suggestion_blacklist",RATINGS:"ratings",REACH_FREQUENCY_PREDICTION_CHANGES:"reach_frequency_prediction_changes",REACHESTIMATE:"reachestimate",REACHFREQUENCYESTIMATES:"reachfrequencyestimates",REACHFREQUENCYINVENTORYBOOKTIMES:"reachfrequencyinventorybooktimes",REACHFREQUENCYINVENTORYINSIGHTS:"reachfrequencyinventoryinsights",REACHFREQUENCYINVENTORYORDERS:"reachfrequencyinventoryorders",REACHFREQUENCYPREDICTIONS:"reachfrequencypredictions",REACHFREQUENCYRESERVATIONS:"reachfrequencyreservations",REACTIONS:"reactions",READY_FUNDRAISERS:"ready_fundraisers",REALTIME_SUBSCRIPTIONS:"realtime_subscriptions",RECEIVED_REQUESTS:"received_requests",RECENT_NOTIFICATIONS:"recent_notifications",RECENT_VIDEO_BROADCASTS:"recent_video_broadcasts",RECOGNIZE_FACES:"recognize_faces",RECOGNIZE_TEXT:"recognize_text",RECOMMENDATIONS:"recommendations",RECOVER_ACCOUNTS:"recover_accounts",RECOVERY_CODES:"recovery_codes",REFUNDS:"refunds",RELATED:"related",REMARKETINGPIXELCODE:"remarketingpixelcode",REPORT_COLUMNS:"report_columns",REPORT_RUNS:"report_runs",REPORT_SCHEDULES:"report_schedules",REPORTABLE_ENT_NFX_ACTIONS:"reportable_ent_nfx_actions",REPORTS:"reports",REPORTSTATS:"reportstats",REPORTSTATSMETADATA:"reportstatsmetadata",REQUEST_HISTORY:"request_history",REQUESTORS:"requestors",REQUESTS:"requests",RESEARCHPOLLS:"researchpolls",RESEND:"resend",RESPONSES:"responses",RESULTS:"results",RETRY:"retry",REVISIONS:"revisions",REWARDS:"rewards",RIFF_VIDEOS:"riff_videos",ROAS:"roas",ROAS_COHORTS:"roas_cohorts",ROLES:"roles",ROOMS_FILES:"rooms_files",ROOT_DISCUSSION_COMMENTS:"root_discussion_comments",RTB_APPLICATIONS:"rtb_applications",RTB_BLOCK_LISTS:"rtb_block_lists",RTB_CONFIGS:"rtb_configs",RTB_DYNAMIC_POSTS:"rtb_dynamic_posts",RTB_EXCHANGES:"rtb_exchanges",RTB_INVENTORY_SOURCE_EXCHANGES:"rtb_inventory_source_exchanges",RTB_INVENTORY_SOURCES:"rtb_inventory_sources",RTB_PUBLISHERS:"rtb_publishers",RTCS_COUNTS:"rtcs_counts",SALES:"sales",SAMPLES:"samples",SAVED:"saved",SAVED_AUDIENCES:"saved_audiences",SAVED_MESSAGE_RESPONSES:"saved_message_responses",SAVES:"saves",SCHEDULED_POSTS:"scheduled_posts",SCHEMA:"schema",SCIM:"scim",SCORE:"score",SCORES:"scores",SCREENNAMES:"screennames",SCRIBE_LOGS:"scribe_logs",SEARCH:"search",SEARCH_CONFIGS:"search_configs",SEEN_NUXES:"seen_nuxes",SEGMENTS:"segments",SELF_INVITE:"self_invite",SEND:"send",SENDERS:"senders",SENT_REQUESTS:"sent_requests",SESSIONLESS_TEST_EXPERIMENT_MEMBERS:"sessionless_test_experiment_members",SESSIONS:"sessions",SETTINGS:"settings",SETTOPBOXES:"settopboxes",SHARED_ACCOUNTS:"shared_accounts",SHARED_ACTION_TAGS:"shared_action_tags",SHARED_AGENCIES:"shared_agencies",SHARED_LOGINS:"shared_logins",SHARED_TO_ADVERTISERS:"shared_to_advertisers",SHAREDALBUMS:"sharedalbums",SHAREDPOSTS:"sharedposts",SHARES:"shares",SHIPMENTS:"shipments",SHORT_URLS:"short_urls",SITES:"sites",SLINGSHOT_PHONELOGIN:"slingshot_phonelogin",SLINGSHOT_STARTPHONEAUTH:"slingshot_startphoneauth",SMS:"sms",SNAPTU_PAGES_BADGE:"snaptu_pages_badge",SNIPPETS:"snippets",SOCIAL_CONNECTIONS:"social_connections",SOCIALTV_PROGRAMS:"socialtv_programs",SOCIALTV_WANTED_AIRINGS:"socialtv_wanted_airings",SOCIALTV_WANTED_SERIES:"socialtv_wanted_series",SOUVENIR_DEMO_SURVEY_LOGGING_EVENTS:"souvenir_demo_survey_logging_events",SOUVENIRS_DEMO:"souvenirs_demo",SOUVENIRS_PHOTO_ANALYSIS:"souvenirs_photo_analysis",SPAMREPORTS:"spamreports",SPENDLIMITS:"spendlimits",STAGED_ADS:"staged_ads",STAGING_RESOURCES:"staging_resources",STATICRESOURCES:"staticresources",STATS:"stats",STATUSES:"statuses",STICKER_TRAY_PACKS:"sticker_tray_packs",STICKERPACKS:"stickerpacks",STICKY_GUARDRAIL_EVENTS:"sticky_guardrail_events",STICKY_UPSELL_EVENTS:"sticky_upsell_events",STORY_GALLERY_SURVEY_ACTIONS:"story_gallery_survey_actions",STORYLINE_SHAREOUTS:"storyline_shareouts",STREAM_FILTERS:"stream_filters",SUBMITTERS:"submitters",SUBSCRIBED:"subscribed",SUBSCRIBED_APPS:"subscribed_apps",SUBSCRIBEDTO:"subscribedto",SUBSCRIBEES:"subscribees",SUBSCRIBERS:"subscribers",SUBSCRIPTIONS:"subscriptions",SUBSCRIPTIONS_SAMPLE:"subscriptions_sample",SUGGESTED_FRIENDS:"suggested_friends",SUGGESTED_THREADS:"suggested_threads",SUGGESTIONS:"suggestions",SYSTEM_USERS:"system_users",TABS:"tabs",TAG_SUGGEST_SETTINGS:"tag_suggest_settings",TAGGABLE_FRIENDS:"taggable_friends",TAGGED:"tagged",TAGGED_PLACES:"tagged_places",TAGS:"tags",TAGSEARCH:"tagsearch",TARGETING_ESTIMATION:"targeting_estimation",TARGETINGBROWSE:"targetingbrowse",TARGETINGRECOMMENDATIONS:"targetingrecommendations",TARGETINGSEARCH:"targetingsearch",TARGETINGSENTENCELINES:"targetingsentencelines",TARGETINGSUGGESTIONS:"targetingsuggestions",TASK_PROGRESS:"task_progress",TELCO_TARGETS:"telco_targets",TELEVISION:"television",TEST_EXPERIMENT_MEMBERS:"test_experiment_members",TEST_EXPERIMENTS:"test_experiments",THING_MESSAGES:"thing_messages",THREADCUSTOMIZATION:"threadcustomization",THREADMESSAGES:"threadmessages",THREADNAME:"threadname",THREADS:"threads",THREAT_DESCRIPTORS:"threat_descriptors",THREAT_EXCHANGE_MEMBERS:"threat_exchange_members",THREAT_INDICATORS:"threat_indicators",THREE_DEGREE_MUTUAL_FRIENDS:"three_degree_mutual_friends",THUMBNAILS:"thumbnails",TIMEZONEOFFSETS:"timezoneoffsets",TITLES:"titles",TO:"to",TOPIC_INSIGHTS:"topic_insights",TOTPKEYS:"totpkeys",TRACES:"traces",TRACK:"track",TRACKINGTAG:"trackingtag",TRAFFICKING_DATA:"trafficking_data",TRAFFICKINGDATA:"traffickingdata",TRANSACTIONS:"transactions",TRANSLATION_BATCHES:"translation_batches",TRANSLATIONS:"translations",TRAVEL_SAFE_JOURNEYS:"travel_safe_journeys",TRENDS:"trends",TYPEAHEAD_LOGS:"typeahead_logs",UNLISTED_VIDEOS:"unlisted_videos",UNSHAREAUDIENCE:"unshareaudience",UPDATED_BY:"updated_by",UPDATES:"updates",UPLOAD:"upload",UPLOADS:"uploads",URL_INSIGHTS:"url_insights",USAGE_HISTORY:"usage_history",USEFUL_REVIEWS:"useful_reviews",USER_EXTERNAL_SERVICES:"user_external_services",USER_SETTINGS:"user_settings",USER_UPLOAD:"user_upload",USERPERMISSIONS:"userpermissions",USERS:"users",USERSNAMED:"usersnamed",USERSOFANYAUDIENCE:"usersofanyaudience",VALIDATIONS:"validations",VARIANTS:"variants",VAULTDELETEDIMAGES:"vaultdeletedimages",VAULTDEVICES:"vaultdevices",VAULTIMAGES:"vaultimages",VAULTLOCALIMAGES:"vaultlocalimages",VIDEO_BROADCASTS:"video_broadcasts",VIDEO_CHAT_MEMBERS:"video_chat_members",VIDEO_CHUNKED_UPLOAD_SESSIONS:"video_chunked_upload_sessions",VIDEO_CHUNKS:"video_chunks",VIDEO_COPYRIGHT_MATCHES:"video_copyright_matches",VIDEO_LISTS:"video_lists",VIDEO_TRENDS:"video_trends",VIDEO_WATCH_FRIENDS:"video_watch_friends",VIDEOENGAGEMENTPROPERTY:"videoengagementproperty",VIDEOS:"videos",VIEWERS:"viewers",VOIP_CALLS:"voip_calls",VOTES:"votes",WALLPAPER:"wallpaper",WATCH:"watch",WEB_FORM_PAGES:"web_form_pages",WEBCAL:"webcal",WIFIAUTH:"wifiauth",WIFIAUTH_RULES:"wifiauth_rules",WILDE_AUDIENCE_PICKER_EDUCATION_EVENTS:"wilde_audience_picker_education_events",WITH_TAGS:"with_tags",WORK_CONNECTIONS:"work_connections",Y_TAG_TRAFFICKING_DATA:"y_tag_trafficking_data",Y_TAGS:"y_tags",YEAR_OVERVIEWS:"year_overviews"};},null,{});
__d("GraphInstagramUserFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={FOLLOW_COUNT:"follow_count",FOLLOWED_BY_COUNT:"followed_by_count",ID:"id",INSIGHTS:"insights",INSTAGRAM_MEDIA:"instagram_media",LOGGING_START_DATE:"logging_start_date",MEDIA_COUNT:"media_count",PROFILE_PIC:"profile_pic",USERNAME:"username"};},null,{});
__d("OcpmAdConfig",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={actionsMultiplier:.5,clicksMultiplier:.5,mobileInstallMultiplier:1,offsiteMultiplier:3,reachMultiplier:1.5};},null,{});
__d("PageAdminTypes",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={MANAGER:"MANAGER",CONTENT_CREATOR:"CONTENT_CREATOR",MODERATOR:"MODERATOR",ADVERTISER:"ADVERTISER",INSIGHTS_ANALYST:"INSIGHTS_ANALYST"};},null,{});
__d("PaymentCouponToken",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={AD_CREDIT:1000,VIRTUAL_GIFT:1001,AD_SB_REFUND:1003};},null,{});
__d("PaymentItemType",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={NONE:0,GRAPH_NODE:1,INVOICE:2,BILL:3,FBOBJ:4,GIFTS:5,BOOST:6,AIRMAIL:7,REPAYMENT:8,THIRD_PARTY_BUNDLE:9,REG_ALT_PAY_REPAYMENT:10,P2P:11,STORED_BALANCE:12,ADS_ALT_PAY_REPAYMENT:13,WITHDRAW:14,ATLAS_NRTB:17,ATLAS_RTB:18,OCULUS_LAUNCH_V1:19,MESSENGER_COMMERCE:20,OCULUS_CV1:21,OCULUS_LAUNCH_V2:22,OZONE:23,DONATIONS:24,DUMMY_FIRST_PARTY:101,DUMMY_THIRD_PARTY:102,DUMMY_FIRST_PARTY_TAXABLE:103,DUMMY_THIRD_PARTY_TAXABLE:104};},null,{});
__d("PaypalFormParam",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={COUNTRY:"country",EMAIL:"email",PASSWORD:"password"};},null,{});
__d("PhoneNumberCategory",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={UNKNOWN:"UNKNOWN",FIXED_LINE:"FIXED_LINE",MOBILE:"MOBILE",FIXED_LINE_OR_MOBILE:"FIXED_LINE_OR_MOBILE",TOLL_FREE:"TOLL_FREE",PREMIUM_RATE:"PREMIUM_RATE",SHARED_COST:"SHARED_COST",VOIP:"VOIP",PERSONAL_NUMBER:"PERSONAL_NUMBER",PAGER:"PAGER",UAN:"UAN"};},null,{});
__d("PixelConversionEventSubtype",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ViewContent:"fb_pixel_view_content",Search:"fb_pixel_search",AddToCart:"fb_pixel_add_to_cart",AddToWishlist:"fb_pixel_add_to_wishlist",InitiateCheckout:"fb_pixel_initiate_checkout",AddPaymentInfo:"fb_pixel_add_payment_info",Purchase:"fb_pixel_purchase",Lead:"fb_pixel_lead",CompleteRegistration:"fb_pixel_complete_registration",CustomConversion:"custom"};},null,{});
__d("VideoUploadTargetTypes",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={EVENT:"event",SELF:"self",GROUP:"group",PAGE:"page",FRIEND:"friend",PAYMENT_ACCOUNT:"payment_account",ADMARKET_ACCOUNT:"admarket_account",ATLAS_CREATIVE_SET:"atlas_creative_set",APPLICATION:"application",QUICK_PROMOTION:"quick_promotion",FUNDRAISER:"fundraiser",MARKETPLACE:"marketplace"};},null,{});
__d("WebsiteCustomAudienceTrafficType",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ALL_WEBSITE_VISITORS:1,SPECIFIC_PAGE_VISITORS:2,SPECIFIC_PAGE_VISITORS_WITH_EXCLUSION:3,CHURNED_VISITORS:4,CUSTOM:5};},null,{});
__d("XCommerceCheckoutParam",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ADDRESS_ID:"address_id",ADDRESS_NAME:"name",ADDRESS_STREET_1:"address1",ADDRESS_STREET_2:"address2",ADDRESS_CITY:"city",ADDRESS_STATE:"state",ADDRESS_ZIP:"zip",ADDRESS_SAVE:"save",SHIPPING_OPTION_ID:"shipping_option_id",SHIPPING_OPTIONS:"shipping_options",DISCOUNT_CODE:"discount_code",CONFIRMED:"confirmed",CC_ID:"cc_fbid",CC_SAVE:"cc_save",CONTACT_EMAIL:"co_email",CONTACT_PHONE:"co_phone",EMAIL_REMARKETING_ALLOWED:"co_email_remark",ORDER_ID:"order_id",SELLER_ID:"seller_id",CART_HASH:"chash",PRODUCT_ITEM_ID:"product_item_id",QUANTITY:"qty",REF_ID:"rid",REF_TYPE:"rt",ADDRESSES:"addresses",CART:"cart",CCS:"ccs",SOURCE_SHARE_ID:"source_share_id"};},null,{});
__d("XPaymentsDirectDebitMutatorParam",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={DIRECT_DEBIT_FBID:"dd_fbid",ERRORS:"errors",GENERAL_ERROR:"general",FIELD_ERRORS:"fields",ERROR_CODE:"code",ERROR_MSG:"message",ERROR_TITLE:"title"};},null,{});
/**
 * @providesModule IBAN_JS
 * @preserve-header
 *
 * IBAN v0.0.5 | https://github.com/arhs/iban.js
 *
 * The MIT License (MIT)
 *
 * Copyright (c) 2013-2014 ARHS Developments SA
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 * the Software, and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.*
 */__d("IBAN_JS",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();(function(h){if(!Array.prototype.map)Array.prototype.map=function(t){"use strict";if(this===void 0||this===null)throw new TypeError();var u=Object(this),v=u.length>>>0;if(typeof t!=="function")throw new TypeError();var w=new Array(v),x=arguments.length>=2?arguments[1]:void 0;for(var y=0;y<v;y++)if(y in u)w[y]=t.call(x,u[y],y,u);return w;};var i='A'.charCodeAt(0),j='Z'.charCodeAt(0);function k(t){t=t.toUpperCase();t=t.substr(4)+t.substr(0,4);return t.split('').map(function(u){var v=u.charCodeAt(0);if(v>=i&&v<=j){return v-i+10;}else return u;}).join('');}function l(t){var u=t,v;while(u.length>2){v=u.slice(0,9);u=parseInt(v,10)%97+u.slice(v.length);}return parseInt(u,10)%97;}function m(t){var u=t.match(/(.{3})/g).map(function(v){var w,x=v.slice(0,1),y=parseInt(v.slice(1),10);switch(x){case "A":w="0-9A-Za-z";break;case "B":w="0-9A-Z";break;case "C":w="A-Za-z";break;case "F":w="0-9";break;case "L":w="a-z";break;case "U":w="A-Z";break;case "W":w="0-9a-z";break;}return '(['+w+']{'+y+'})';});return new RegExp('^'+u.join('')+'$');}function n(t,u,v,w){this.countryCode=t;this.length=u;this.structure=v;this.example=w;}n.prototype._regex=function(){return this._cachedRegex||(this._cachedRegex=m(this.structure));};n.prototype.isValid=function(t){return this.length==t.length&&this.countryCode===t.slice(0,2)&&this._regex().test(t.slice(4))&&l(k(t))==1;};n.prototype.toBBAN=function(t,u){return this._regex().exec(t.slice(4)).slice(1).join(u);};n.prototype.fromBBAN=function(t){if(!this.isValidBBAN(t))throw new Error('Invalid BBAN');var u=l(k(this.countryCode+'00'+t)),v=('0'+(98-u)).slice(-2);return this.countryCode+v+t;};n.prototype.isValidBBAN=function(t){return this.length-4==t.length&&this._regex().test(t);};var o={};function p(t){o[t.countryCode]=t;}p(new n("AD",24,"F04F04A12","AD1200012030200359100100"));p(new n("AE",23,"F03F16","AE070331234567890123456"));p(new n("AL",28,"F08A16","AL47212110090000000235698741"));p(new n("AT",20,"F05F11","AT611904300234573201"));p(new n("AZ",28,"U04A20","AZ21NABZ00000000137010001944"));p(new n("BA",20,"F03F03F08F02","BA391290079401028494"));p(new n("BE",16,"F03F07F02","BE68539007547034"));p(new n("BG",22,"U04F04F02A08","BG80BNBG96611020345678"));p(new n("BH",22,"U04A14","BH67BMAG00001299123456"));p(new n("BR",29,"F08F05F10U01A01","BR9700360305000010009795493P1"));p(new n("CH",21,"F05A12","CH9300762011623852957"));p(new n("CR",21,"F03F14","CR0515202001026284066"));p(new n("CY",28,"F03F05A16","CY17002001280000001200527600"));p(new n("CZ",24,"F04F06F10","CZ6508000000192000145399"));p(new n("DE",22,"F08F10","DE89370400440532013000"));p(new n("DK",18,"F04F09F01","DK5000400440116243"));p(new n("DO",28,"U04F20","DO28BAGR00000001212453611324"));p(new n("EE",20,"F02F02F11F01","EE382200221020145685"));p(new n("ES",24,"F04F04F01F01F10","ES9121000418450200051332"));p(new n("FI",18,"F06F07F01","FI2112345600000785"));p(new n("FO",18,"F04F09F01","FO6264600001631634"));p(new n("FR",27,"F05F05A11F02","FR1420041010050500013M02606"));p(new n("GB",22,"U04F06F08","GB29NWBK60161331926819"));p(new n("GE",22,"U02F16","GE29NB0000000101904917"));p(new n("GI",23,"U04A15","GI75NWBK000000007099453"));p(new n("GL",18,"F04F09F01","GL8964710001000206"));p(new n("GR",27,"F03F04A16","GR1601101250000000012300695"));p(new n("GT",28,"A04A20","GT82TRAJ01020000001210029690"));p(new n("HR",21,"F07F10","HR1210010051863000160"));p(new n("HU",28,"F03F04F01F15F01","HU42117730161111101800000000"));p(new n("IE",22,"U04F06F08","IE29AIBK93115212345678"));p(new n("IL",23,"F03F03F13","IL620108000000099999999"));p(new n("IS",26,"F04F02F06F10","IS140159260076545510730339"));p(new n("IT",27,"U01F05F05A12","IT60X0542811101000000123456"));p(new n("KW",30,"U04A22","KW81CBKU0000000000001234560101"));p(new n("KZ",20,"F03A13","KZ86125KZT5004100100"));p(new n("LB",28,"F04A20","LB62099900000001001901229114"));p(new n("LI",21,"F05A12","LI21088100002324013AA"));p(new n("LT",20,"F05F11","LT121000011101001000"));p(new n("LU",20,"F03A13","LU280019400644750000"));p(new n("LV",21,"U04A13","LV80BANK0000435195001"));p(new n("MC",27,"F05F05A11F02","MC5811222000010123456789030"));p(new n("MD",24,"U02F18","MD24AG000225100013104168"));p(new n("ME",22,"F03F13F02","ME25505000012345678951"));p(new n("MK",19,"F03A10F02","MK07250120000058984"));p(new n("MR",27,"F05F05F11F02","MR1300020001010000123456753"));p(new n("MT",31,"U04F05A18","MT84MALT011000012345MTLCAST001S"));p(new n("MU",30,"U04F02F02F12F03U03","MU17BOMM0101101030300200000MUR"));p(new n("NL",18,"U04F10","NL91ABNA0417164300"));p(new n("NO",15,"F04F06F01","NO9386011117947"));p(new n("PK",24,"U04A16","PK36SCBL0000001123456702"));p(new n("PL",28,"F08F16","PL61109010140000071219812874"));p(new n("PS",29,"U04A21","PS92PALS000000000400123456702"));p(new n("PT",25,"F04F04F11F02","PT50000201231234567890154"));p(new n("RO",24,"U04A16","RO49AAAA1B31007593840000"));p(new n("RS",22,"F03F13F02","RS35260005601001611379"));p(new n("SA",24,"F02A18","SA0380000000608010167519"));p(new n("SE",24,"F03F16F01","SE4550000000058398257466"));p(new n("SI",19,"F05F08F02","SI56263300012039086"));p(new n("SK",24,"F04F06F10","SK3112000000198742637541"));p(new n("SM",27,"U01F05F05A12","SM86U0322509800000000270100"));p(new n("TN",24,"F02F03F13F02","TN5910006035183598478831"));p(new n("TR",26,"F05A01A16","TR330006100519786457841326"));p(new n("VG",24,"U04F16","VG96VPVG0000012345678901"));p(new n("AO",25,"F21","AO69123456789012345678901"));p(new n("BF",27,"F23","BF2312345678901234567890123"));p(new n("BI",16,"F12","BI41123456789012"));p(new n("BJ",28,"F24","BJ39123456789012345678901234"));p(new n("CI",28,"U01F23","CI17A12345678901234567890123"));p(new n("CM",27,"F23","CM9012345678901234567890123"));p(new n("CV",25,"F21","CV30123456789012345678901"));p(new n("DZ",24,"F20","DZ8612345678901234567890"));p(new n("IR",26,"F22","IR861234568790123456789012"));p(new n("JO",30,"A04F22","JO15AAAA1234567890123456789012"));p(new n("MG",27,"F23","MG1812345678901234567890123"));p(new n("ML",28,"U01F23","ML15A12345678901234567890123"));p(new n("MZ",25,"F21","MZ25123456789012345678901"));p(new n("QA",29,"U04A21","QA30AAAA123456789012345678901"));p(new n("SN",28,"U01F23","SN52A12345678901234567890123"));p(new n("UA",29,"F25","UA511234567890123456789012345"));var q=/[^a-zA-Z0-9]/g,r=/(.{4})(?!$)/g;function s(t){return (typeof t=='string'||t instanceof String);}h.isValid=function(t){if(!s(t))return false;t=this.electronicFormat(t);var u=o[t.slice(0,2)];return !!u&&u.isValid(t);};h.toBBAN=function(t,u){if(typeof u=='undefined')u=' ';t=this.electronicFormat(t);var v=o[t.slice(0,2)];if(!v)throw new Error('No country with code '+t.slice(0,2));return v.toBBAN(t,u);};h.fromBBAN=function(t,u){var v=o[t];if(!v)throw new Error('No country with code '+t);return v.fromBBAN(this.electronicFormat(u));};h.isValidBBAN=function(t,u){if(!s(u))return false;var v=o[t];return v&&v.isValidBBAN(this.electronicFormat(u));};h.printFormat=function(t,u){if(typeof u=='undefined')u=' ';return this.electronicFormat(t).replace(r,"$1"+u);};h.electronicFormat=function(t){return t.replace(q,'').toUpperCase();};h.countries=o;})(typeof g=='undefined'?this.IBAN_JS={}:g);},null,{});
__d("XPaymentsDirectDebitMutatorController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/payments\/direct_debit\/mutator\/",{});},null,{});
__d('PaymentsAPI',['AsyncRequest','CreditCardFormParam','PaymentTokenProxyUtils','URI','XPaymentsCreditCardMutationType','XPaymentsCreditCardMutatorController','XPaymentsCreditCardMutatorParam','XPaymentsDirectDebitMutatorController'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){if(c.__markCompiled)c.__markCompiled();var p={createPayment:function(q,r){var s=m.getURIBuilder().setEnum(n.MUTATION_TYPE,l.CREATE).getURI().getPath(),t=j.getURI({tpe:s});if(!k.getRequestURI().isSecure())throw new Error('Operation must be performed via HTTPS');if(q[i.CARD_NUMBER])q[i.CARD_NUMBER]=q[i.CARD_NUMBER].replace(/[\D]/g,'');var u=q[i.CARD_EXPIRATION];if(u&&u.indexOf('/')>-1){delete q[i.CARD_EXPIRATION];q[i.CARD_EXPIRATION+'['+i.MONTH+']']=Number(u.substr(0,2));q[i.CARD_EXPIRATION+'['+i.YEAR+']']=Number(u.substr(3,2));}new h().setAllowCrossOrigin(true).setURI(t).setData(q||{}).setHandler(r).send();},createDirectDebit:function(q,r){var s=o.getURIBuilder().getURI().getPath(),t=j.getURI({tpe:s});new h().setAllowCrossOrigin(true).setURI(t).setData(q).setHandler(r).send();}};f.exports=p;},null);
__d('XCommerceResponse',['XCommerceErrorParam'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();function i(j){'use strict';this.$XCommerceResponse1=j;}i.prototype.hasErrors=function(){'use strict';var j=this.getErrors();return !this.$XCommerceResponse2(j);};i.prototype.hasGeneralError=function(){'use strict';var j=this.getGeneralError();return !this.$XCommerceResponse2(j);};i.prototype.hasFieldErrors=function(){'use strict';var j=this.getFieldErrors();return !this.$XCommerceResponse2(j);};i.prototype.getErrors=function(){'use strict';return this.getPayload()[h.ERRORS];};i.prototype.getGeneralError=function(){'use strict';var j=this.getErrors();return j?j[h.GENERAL_ERROR]:null;};i.prototype.getFieldErrors=function(){'use strict';var j=this.getErrors();return j?j[h.FIELD_ERRORS]:null;};i.prototype.getFieldErrorCodes=function(){'use strict';var j=this.getFieldErrors();if(!j)return {};var k={};for(var l in j){if(!j.hasOwnProperty(l))continue;k[l]=j[l][h.ERROR_CODE];}return k;};i.prototype.getGeneralErrorMessage=function(){'use strict';var j=this.getGeneralError();return j?j[h.ERROR_MSG]:null;};i.prototype.getGeneralErrorCode=function(){'use strict';var j=this.getGeneralError();return j?j[h.ERROR_CODE]:null;};i.prototype.getPayload=function(){'use strict';return this.$XCommerceResponse1;};i.prototype.getAllErrorCodes=function(){'use strict';var j=[];if(this.getGeneralError())j.push(this.getGeneralErrorCode());var k=this.getFieldErrorCodes();if(k)for(var l in k){if(!k.hasOwnProperty(l))continue;j.push(k[l]);}return j;};i.prototype.$XCommerceResponse2=function(j){'use strict';if(!j)return true;for(var k in j)if(j.hasOwnProperty(k))return false;return true;};f.exports=i;},null);
__d('AdsPaymentsFlowAPI',['AsyncRequest','CSS','DOM','DirectDebitMandateGeoType','DirectDebitFormParam','IBAN_JS','PaymentsAPI','React','ReactDOM','XAdsPaymentDialogActionController','XCommerceResponse','XPaymentsCreditCardMutatorParam','XPaymentsDirectDebitMutatorParam','XUINotice.react','cx','fbt','$'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x){if(c.__markCompiled)c.__markCompiled();var y=true,z={saveCreditCard:function(aa){var ba=function(ca){var da=new r(ca.payload);if(da.getPayload()[s.CARD_FBID]){aa.success&&aa.success(da);}else aa.error&&aa.error(da);};n.createPayment(aa.data,ba);},handleCreateDirectDebitSaveSuccess:function(aa,ba){var ca=q.getURIBuilder().setInt('context_id',aa).setInt('payment_method_id',ba).getURI();new h().setURI(ca).send();},showAccountNumberError:function(){var aa=x('XPaymentDialogBody'),ba=w._("We couldn't verify this account number. Please check the number and try again.");this.showFieldError(aa,l.BANK_ACCOUNT_NUMBER,ba);},showFieldError:function(aa,ba,ca){var da=j.find(aa,'input[name="'+ba+'"]');j.setAttributes(da,{'data-xui-error':ca,'data-xui-error-position':'above'});i.addClass(da,"_1tp7");},handleCreateDirectDebitSaveError:function(aa){var ba=x('XPaymentDialogBody');if(aa.hasGeneralError()){var ca=x('AdsPaymentsDirectDebitGeneralError');p.render(o.createElement(u,{use:'warn'},aa.getGeneralError().message),ca);}if(aa.hasFieldErrors()){var da=aa.getFieldErrors();for(var ea in da)if(da.hasOwnProperty(ea)){var fa=da[ea].message;this.showFieldError(ba,ea,fa);}}},validateIBAN:function(aa){if(this.isValidAccountNumber(Number(this._getMandateGeoType()),aa)){y=true;}else{y=false;this.showAccountNumberError();}},_getMandateGeoType:function(){var aa=j.scry(x('XPaymentDialog'),'input');for(var ba=0,ca=aa.length;ba<ca;ba++){var da=aa[ba];if(da.name===l.MANDATE_GEO_TYPE)return da.value;}},isValidAccountNumber:function(aa,ba){if(aa===k.MANDATE_GEO_TYPE_SEPA){return m.isValid(ba);}else if(aa===k.MANDATE_GEO_TYPE_BACS){return ba.match(/^(\d){7,8}$/)!==null;}else return true;},clearGeneralErrorDirectDebit:function(){var aa=x('AdsPaymentsDirectDebitGeneralError');j.empty(aa);},saveDirectDebit:function(aa){var ba=parseInt(aa.data[l.MANDATE_GEO_TYPE],10),ca=aa.data[l.BANK_ACCOUNT_NUMBER];if(y){if(ba===k.MANDATE_GEO_TYPE_SEPA)aa.data[l.BANK_ACCOUNT_NUMBER]=m.electronicFormat(ca);n.createDirectDebit(aa.data,(function(da){var ea=new r(da.payload),fa=ea.getPayload();if(fa&&fa[t.DIRECT_DEBIT_FBID]){this.handleCreateDirectDebitSaveSuccess(aa.data.context_id,fa[t.DIRECT_DEBIT_FBID]);}else this.handleCreateDirectDebitSaveError(ea);}).bind(this));}}};f.exports=z;},null);
__d("DamerauLevenshtein",[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={DamerauLevenshteinDistance:function(i,j){if(i.length===0)return j.length;if(j.length===0)return i.length;if(i===j)return 0;var k,l,m=[];m[0]=[];m[1]=[];m[2]=[];for(l=0;l<=j.length;l++)m[0][l]=l;for(k=1;k<=i.length;k++)for(l=1;l<=j.length;l++){m[k%3][0]=k;var n=i.charAt(k-1)===j.charAt(l-1)?0:1;m[k%3][l]=Math.min(m[(k-1)%3][l]+1,m[k%3][l-1]+1,m[(k-1)%3][l-1]+n);if(k>1&&l>1&&i.charAt(k-1)==j.charAt(l-2)&&i.charAt(k-2)==j.charAt(l-1))m[k%3][l]=Math.min(m[k%3][l],m[(k-2)%3][l-2]+n);}return m[i.length%3][j.length];}};f.exports=h;},null);
__d('CommerceInputNormalizer',['CommerceUSAStates','DamerauLevenshtein','PaymentMethodUtils'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k={numericize:function(){return function(l){return l.replace(/[\D]/g,'');};},trim:function(){return function(l){return l.trim();};},USAState:function(){return function(l){var m=l;if(m.length>2){m=m.toLowerCase().replace(/^columbia/,'district of columbia').replace(/^n\.?\s+/,'north ').replace(/^s\.?\s+/,'south ');var n=1000,o=null;for(var p in h){if(!h.hasOwnProperty(p))continue;var q=h[p].toLowerCase(),r=i.DamerauLevenshteinDistance(m,q);if(m.charAt(0)!==q.charAt(0))r++;if(r===0){n=r;o=p;break;}else if(r<n){n=r;o=p;}}if(n<5)m=o.replace('STATE_','');}return m.replace(/[^a-zA-Z]/,'').substr(0,2).toUpperCase();};},USAZipCode:function(){return function(l){if(l.length>5)return l.substr(0,5)+'-'+l.substr(5);return l;};},email:function(){return function(l){return l.toLowerCase().replace(/[\s]/g,'');};},creditCardNumber:function(){return function(l){var m=j.getCardType(l);if('amex'===m.name)return (l.substr(0,4)+' '+l.substr(4,6)+' '+l.substr(10)).trim();return (l.substr(0,4)+' '+l.substr(4,4)+' '+l.substr(8,4)+' '+l.substr(12)).trim();};},expirationYear:function(){return function(l){return l.length>0?(parseInt(l,10)%100).toString():'';};},expirationSingleField:function(){return function(l){var m=l.substr(0,2).replace(/[\D]/g,''),n=l.substr(2,3).replace(/[\D]/g,'');if(m.length===0)return '';return (m.length===1?'0':'')+m+'/'+n;};}};f.exports=k;},null);
__d('CommerceInputValidator',['CommerceUSAStates','CreditCardFormParam','PaymentMethodUtils'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k={or:function(l,m){return function(n){return l(n)||m(n);};},notEmpty:function(){return function(l){return !!l.trim();};},lengthEquals:function(l){return function(m){return m.length===l;};},numberBetween:function(l,m){return function(n){return Number(n)>=l&&Number(n)<=m;};},USAState:function(){return function(l){return h.hasOwnProperty('STATE_'+l);};},cardNumber:function(){return function(l,m){return j.isValidCCNumber(l);};},cardLength:function(){return function(l,m){var n=j.getCardType(l);return l.replace(/\D+/g,'').length==n.digits;};},CSC:function(){return function(l,m){var n=j.getCardType(m[i.CARD_NUMBER]);return l.length==n.cscDigits;};},expiration:function(){return function(l,m){var n=i.CARD_EXPIRATION+'['+i.MONTH+']',o=i.CARD_EXPIRATION+'['+i.YEAR+']',p=m[n],q=m[o];if(!p||!q)return true;if(p==='12'){p='1';q=(parseInt(q,10)+1).toString();}else p=(parseInt(p,10)+1).toString();var r=new Date().getFullYear().toString().substring(0,2);q=2===q.length?r+q:q;var s=new Date(q,Math.max(p-1,0));return s.getTime()>Date.now();};},expirationSingleField:function(){return function(l){var m=Number(l.substr(0,2)),n=Number(l.substr(3,2));if(m<1||m>12)return false;if(m==12){m=1;n++;}else m++;var o=new Date(2000+n,Math.max(m-1,0));return o.getTime()>Date.now();};},email:function(){return function(l){var m=l.indexOf('@'),n=l.lastIndexOf('.');return m>0&&n>m;};}};f.exports=k;},null);
__d('AdsPaymentsFormConfig',['AdsPaymentsFormInputSpec','CommerceErrorCode','CommerceInputNormalizer','CommerceInputValidator','CreditCardFormParam','PaypalFormParam','PaymentMethodUtils'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o=function(r){var s={},t=function(w){return h.creditCard[w]||{};},u=l.CARD_EXPIRATION+'['+l.MONTH+']',v=l.CARD_EXPIRATION+'['+l.YEAR+']';s[l.CARD_NUMBER]={attributes:t(l.CARD_NUMBER),normalizers:[j.numericize()],autotabbers:{cardLength:k.cardLength()},validators:{cardNumber:k.cardNumber(),cardType:function(w){var x=n.getCardType(w);return x!=null&&r.indexOf(x.code)!==-1;}},errors:{cardNumber:i.COMMERCE__INVALID_CREDIT_CARD_NUMBER,cardType:i.COMMERCE__UNSUPPORTED_CARD_TYPE}};s[u]={attributes:t(u),normalizers:[j.numericize()],autotabbers:{expLength:k.lengthEquals(2)},validators:{numberBetween:k.numberBetween(1,12)},errors:{numberBetween:i.COMMERCE__INVALID_CREDIT_CARD_EXPIRATION}};s[v]={attributes:t(v),normalizers:[j.numericize(),j.expirationYear()],autotabbers:{expLength:k.lengthEquals(2)},validators:{numberBetween:k.numberBetween(new Date().getFullYear()%100,99),expiration:k.expiration()},errors:{numberBetween:i.COMMERCE__INVALID_CREDIT_CARD_EXPIRATION,expiration:i.COMMERCE__INVALID_CREDIT_CARD_EXPIRATION}};s[l.CSC]={attributes:t(l.CSC),normalizers:[j.numericize()],autotabbers:{CSC:k.CSC()},validators:{CSC:k.CSC()},errors:{CSC:i.COMMERCE__INVALID_CREDIT_CARD_SECURITY_CODE}};s[l.ZIP]={attributes:t(l.ZIP),normalizers:[j.trim()],validators:{},errors:{}};return s;},p=function(){var r={},s=function(t){return h.paypal[t]||{};};r[m.EMAIL]={attributes:s(m.EMAIL),normalizers:[j.email()],validators:{email:k.email()},errors:{email:i.COMMERCE__INVALID_EMAIL}};r[m.PASSWORD]={attributes:s(m.PASSWORD),normalizers:[],validators:{notEmpty:k.notEmpty()},errors:{notEmpty:i.COMMERCE__FIELD_EMPTY}};return r;},q={creditCard:o,paypal:p};f.exports=q;},null);
__d('AdsPaymentsFormEvents',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={SAVE_CREDIT_CARD:'AdsPaymentsCreditCard_SaveCreditCard',SAVE_PAYPAL_CREDENTIALS:'AdsPaymentsPaypal_SavePaypalCredentials'};f.exports=h;},null);
__d('CommerceAbstractFormMixin.react',['DOM','React','ReactDOM','emptyFunction','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m=i.PropTypes,n={autocomplete:'autoComplete',maxlength:'maxLength',tabindex:'tabIndex'},o={ERROR_PREFIX:'3rr0r_',propTypes:{onDataChange:m.func},getDefaultProps:function(){return {onDataChange:k};},getFormData:function(){var p={};for(var q in this.state)if(this.state.hasOwnProperty(q)&&!this.getNonFormData().hasOwnProperty(q)&&q.substring(0,this.ERROR_PREFIX.length)!==this.ERROR_PREFIX)p[q]=this.state[q];return p;},componentWillMount:function(){this.props.setIsReadyToSubmit&&this.props.setIsReadyToSubmit(this._checkAllInputs(this.getFormData()));},_onChangeSetValue:function(p,q){!(this.getConfig&&this.getFormData)?l(0):undefined;var r=q.value;if(!r&&q.target)if('checkbox'===q.target.type){r=q.target.checked;}else r=q.target.value;var s=this.getFormData();s[p]=r;var t=this.getConfig();if(t&&t[p]&&t[p].normalizeOnChange){this._normalizeInput(p,s);}else{var u={};u[p]=r;this.setState(u);this.props.onDataChange(u);}if(t&&t[p]&&t[p].autotabbers){var v=t[p].autotabbers;for(var w in v)if(v[w](r,s)){var x=h.scry(j.findDOMNode(this),'[tabIndex="'+(Number(q.target.tabIndex)+1)+'"]');if(x.length){x[0].focus();break;}}}if(this.props.setIsReadyToSubmit)this.props.setIsReadyToSubmit(this._checkAllInputs(s));},_onBlurProcessValue:function(p,q){!this.getFormData?l(0):undefined;var r=this.getFormData();r[p]='checkbox'===q.target.type?q.target.checked:q.target.value;this._processInput(p,r);},_onFocusClearError:function(p,q){var r={};r[this.ERROR_PREFIX+p]={show:false,msg:(this.state[this.ERROR_PREFIX+p]||{}).msg};this.setState(r);},_validateAllInputs:function(){!this.getConfig?l(0):undefined;!this.getFormData?l(0):undefined;var p=true;for(var q in this.getConfig()){if(!this.getConfig().hasOwnProperty(q))continue;var r=this._processInput(q,this.getFormData());if(!r)p=false;}return p;},_checkAllInputs:function(p){!this.getConfig?l(0):undefined;for(var q in this.getConfig()){if(!this.getConfig().hasOwnProperty(q))continue;if(!this._validateInput(q,p).success)return false;}return true;},_processInput:function(p,q){q[p]=this._normalizeInput(p,q);var r=this._validateInput(p,q),s={},t=true;if(r.success){s[this.ERROR_PREFIX+p]={show:false,msg:null};}else{t=false;s[this.ERROR_PREFIX+p]={show:true,msg:r.message||''};}this.setState(s);return t;},_normalizeInput:function(p,q){!this.getConfig?l(0):undefined;var r=this.getConfig()[p];if(!r||!r.normalizers)return;var s=q[p];for(var t in r.normalizers){if(!r.normalizers.hasOwnProperty(t))continue;s=r.normalizers[t](s,q);q[p]=s;}var u={};u[p]=s;this.setState(u);this.props.onDataChange(u);return s;},_validateInput:function(p,q){!this.getConfig?l(0):undefined;var r=this.getConfig()[p];if(!r||!r.validators)return {success:true,message:null};var s=true,t=null;for(var u in r.validators){if(!r.validators.hasOwnProperty(u))continue;s=s&&r.validators[u](q[p],q);if(!s){t=r.errors[u];break;}}return {success:s,message:t};},_errorAllInputs:function(p,q){!this.getConfig?l(0):undefined;var r={},s=this.getConfig();for(var t in s){if(!s.hasOwnProperty(t))continue;var u=s[t].errorKey||t;if(p&&p.hasOwnProperty(u)){r[this.ERROR_PREFIX+t]={show:true,msg:p[u][q]};}else r[this.ERROR_PREFIX+t]={show:false,msg:null};}this.setState(r);},_getReactAttributes:function(p){var q={};for(var r in p){if(!p.hasOwnProperty(r))continue;q[n[r]||r]=p[r];}return q;}};f.exports=o;},null);
__d('CreditCardCVVTooltip.react',['React','ReactLayeredComponentMixin','Grid.react','Image.react','XUIContextualDialog.react','XUIContextualDialogBody.react','cx','fbt','ix','xuiglyph'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){if(c.__markCompiled)c.__markCompiled();var r=j.GridItem,s=h.createClass({displayName:'CreditCardCVVTooltip',mixins:[i],getInitialState:function(){return {show:false};},render:function(){return (h.createElement(k,{className:"_1bya",onMouseEnter:this._onMouseEnter,onMouseLeave:this._onMouseLeave,ref:'CVVHelpImg',src:q({name:'info-solid',size:'small'})}));},renderLayers:function(){var t=h.createElement(j,{alignh:'center',className:"_16fl",cols:2},h.createElement(r,null,h.createElement(k,{src:p('/images/cvv2_types/backofcard.gif')})),h.createElement(r,null,h.createElement(k,{src:p('/images/cvv2_types/amex_csc.gif')})),h.createElement(r,null,o._("Visa, MasterCard, and Discover")),h.createElement(r,null,o._("American Express")));return (h.createElement(l,{alignment:'center',contextRef:(function(){return this.refs.CVVHelpImg;}).bind(this),position:'below',shown:this.state.show},h.createElement(m,null,t)));},_onMouseEnter:function(){this.setState({show:true});},_onMouseLeave:function(){this.setState({show:false});}});f.exports=s;},null);
__d('SettingsCardTypes',['CSS','DOM'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j={},k=[{name:'mc',pattern:/^5[1-5]/,ccn_length:16,csc_length:3},{name:'visa',pattern:/^4/,ccn_length:16,csc_length:3},{name:'amex',pattern:/^3[47]/,ccn_length:15,csc_length:4},{name:'jcb',pattern:/^35(2[8-9]|[3-8])/,ccn_length:16,csc_length:3},{name:'disc',pattern:/^(6011|65|64[4-9]|622([2-8]|1[3-9]|12[6-9]|9[0-1]|92[0-5]))/,ccn_length:16,csc_length:3},{name:'diners',pattern:/^30[0-5]/,ccn_length:14,csc_length:3}];function l(m){j[m.id]=this;this.container=m;}l.getInstance=function(m){return j[m];};Object.assign(l.prototype,{getCCType:function(m){var n=(''+m).substr(0,6);for(var o=0;o<k.length;o++){var p=k[o];if(p.pattern&&p.pattern.test(n))return p.name;}return null;},getPropertyFromTypeName:function(m,n){for(var o=0;o<k.length;o++){var p=k[o];if(p.name===m)return p[n];}return null;},getPropertyFromPartialNumber:function(m,n){var o=this.getCCType(m);return o&&this.getPropertyFromTypeName(o,n);},getTargetType:function(m){return m&&i.scry(this.container,'.fbCardType.'+m)[0];},highlightNumber:function(m){this.highlight(m&&this.getCCType(m));},highlight:function(m){var n=this.getTargetType(m);if(n){i.scry(this.container,'.fbCardType').forEach(function(o){h.conditionClass(o,'blur',o!==n);});}else i.scry(this.container,'.fbCardType').forEach(function(o){h.removeClass(o,'blur');});}});f.exports=l;},null);
__d('AdsPaymentsCreditCardForm.react',['AdsApplicationIDs','AdsPaymentsFlowAPI','AdsPaymentsFormConfig','AdsPaymentsFormEvents','Base64','CommerceAbstractFormMixin.react','CreditCardCVVTooltip.react','CreditCardFormParam','EventEmitter','Layout.react','LeftRight.react','React','PaymentItemType','SettingsCardTypes','XCommerceCheckoutParam','XCommerceErrorParam','XPaymentsCreditCardMutatorParam','XUIGrayText.react','XUINotice.react','XUIText.react','XUITextInput.react','$','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea){if(c.__markCompiled)c.__markCompiled();var fa=q.Column,ga=s.PropTypes,ha=s.createClass({displayName:'AdsPaymentsCreditCardForm',mixins:[m],propTypes:{pubSub:ga.instanceOf(p).isRequired,accountID:ga.string,defaultCountry:ga.string,trackingID:ga.string,showZip:ga.bool,parentID:ga.string.isRequired,currency:ga.string,isStoredBalance:ga.bool,onSubmit:ga.func,onSubmitFailure:ga.func,validatorChecks:ga.arrayOf(ga.string).isRequired,supportedTypes:ga.arrayOf(ga.number).isRequired},getDefaultProps:function(){return {showZip:true,currency:'USD',isStoredBalance:false};},componentDidUpdate:function(ia,ja){if(this.state.creditCardNumber!=null)this.state.ccTypeChecker.highlightNumber(this.state.creditCardNumber);},getInitialState:function(){var ia=this.getNonFormData();ia[o.KEYPRESS_TIMES]='';ia[o.ACCOUNT_ID]=this.props.accountID;ia[o.APP_ID]=h.ADS_PAYMENT;ia[o.COUNTRY]=this.props.defaultCountry;ia[o.TRACKING_ID]=this.props.trackingID;ia[o.PAYMENT_ITEM_TYPE]=t.INVOICE;ia[o.AUTH_CURRENCY]=this.props.currency;ia[o.IS_STORED_BALANCE]=this.props.isStoredBalance;this.props.validatorChecks.forEach(function(ja){ia[o.VALIDATOR_CHECKS+'['+ja+']']=true;});ia[v.CC_SAVE]=true;ia[o.CARD_NUMBER]='';ia[o.CARD_EXPIRATION+'['+o.MONTH+']']='';ia[o.CARD_EXPIRATION+'['+o.YEAR+']']='';ia[o.CSC]='';ia[o.ZIP]='';return ia;},render:function(){var ia=[];this.props.validatorChecks.forEach(function(la){ia.push(o.VALIDATOR_CHECKS+'['+la+']');});var ja='['+o.MONTH+']',ka='['+o.YEAR+']';return (s.createElement('div',{ref:'inlineForm',className:"_4r9n"},this._renderError(),this._renderHiddenInput(o.KEYPRESS_TIMES),this._renderHiddenInput(o.COUNTRY),ia.map(this._renderHiddenInput),s.createElement(q,null,s.createElement(fa,{className:"_2_w8"},s.createElement(y,{size:'small',weight:'bold',shade:'medium'},ea._("Card Number"))),s.createElement(fa,null,s.createElement(y,{size:'small',weight:'bold',shade:'medium'},ea._("Expiration")))),s.createElement(q,{className:"_3-8x"},s.createElement(fa,{className:"_2_w8"},this._renderTextInput(o.CARD_NUMBER,{tabIndex:'1'})),s.createElement(fa,{className:"_2_w9"},this._renderTextInput(o.CARD_EXPIRATION+ja,{tabIndex:'2'})),s.createElement(fa,{className:"_2_w9"},this._renderTextInput(o.CARD_EXPIRATION+ka,{tabIndex:'3'}))),s.createElement(q,null,s.createElement(fa,{className:"_2_wa"},s.createElement(r,{direction:'right'},s.createElement(y,{size:'small',weight:'bold',shade:'medium'},ea._("Security Code")),s.createElement(n,null))),this._renderZipCodeField()),s.createElement(q,null,s.createElement(fa,{className:"_2_wa"},this._renderTextInput(o.CSC,{tabIndex:'4'})),this._renderZipCodeTextInput())));},componentDidMount:function(){this.props.onDataChange(this.getFormData());this.props.pubSub.removeAllListeners(k.SAVE_CREDIT_CARD);this.props.pubSub.addListener(k.SAVE_CREDIT_CARD,(function(){this._submitForm();}).bind(this));this.setState({ccTypeChecker:new u(ca(this.props.parentID))});},getConfig:function(){return j.creditCard(this.props.supportedTypes);},getNonFormData:function(){return {errors:null,submitting:false,ccTypeChecker:null,supportedTypes:[]};},_renderError:function(){if(!this.state.errors)return null;var ia;if(this.state.errors.__html){ia=s.createElement('div',{dangerouslySetInnerHTML:this.state.errors});}else ia=this.state.errors;return (s.createElement(z,{use:'warn',className:"_3-96"},s.createElement(aa,{size:'small',display:'block'},ia)));},_renderHiddenInput:function(ia){return (s.createElement('input',{key:ia,type:'hidden',autoComplete:'off',name:ia,value:this.state[ia]}));},_renderTextInput:function(ia,ja){var ka=this.state[this.ERROR_PREFIX+ia],la=ka&&ka.show,ma=this._getReactAttributes((this.getConfig()[ia]||{}).attributes||{});Object.assign(ma,ja);return (s.createElement(ba,babelHelpers._extends({},ma,{className:"_53sm"+(la?' '+"_1tp7":''),height:'tall',value:this.state[ia],onChange:this._onChangeSetValue.bind(this,ia),onBlur:this._onBlurProcessValue.bind(this,ia),onFocus:this._onFocusClearError.bind(this,ia),xuiError:la&&ka.msg.description?ka.msg.description:null})));},_renderZipCodeField:function(){if(!this.props.showZip)return null;return (s.createElement(fa,{className:"_2_wb"},s.createElement(y,{size:'small',weight:'bold',shade:'medium'},ea._(["Billing Zip Code","a1edc95031c72290612e117918c5da9b"]))));},_renderZipCodeTextInput:function(){if(!this.props.showZip)return null;return (s.createElement(fa,{className:"_2_wb"},this._renderTextInput(o.ZIP,{tabIndex:'5'})));},_onKeyUpLog:function(ia){var ja=JSON.parse(l.decode(this.state[o.KEYPRESS_TIMES])||'[]'),ka=this.state[o.CARD_NUMBER].replace(/\D/g,'')||'';if(ka.length<ja.length)ja=ja.slice(0,ka.length);var la=Date.now();while(ja.length<ka.length)ja[ja.length]=la;var ma={};ma[o.KEYPRESS_TIMES]=l.encode(JSON.stringify(ja));this.setState(ma);},_submitForm:function(){if(this.state.submitting){this.props.onSubmitFailure&&this.props.onSubmitFailure();return false;}if(this._validateAllInputs()){this.setState({errors:null});}else{this.setState({errors:ea._("Please verify that all card information you've provided is accurate and try again.")});this.props.onSubmitFailure&&this.props.onSubmitFailure();return false;}this.setState({submitting:true});i.saveCreditCard({data:this.getFormData(),error:(function(ia){this.setState({submitting:false});if(ia.hasGeneralError()){this.setState({errors:ia.getGeneralErrorMessage()});}else if(ia.hasFieldErrors()){this._errorAllInputs(ia.getFieldErrors(),w.ERROR_MSG);}else this.setState({errors:ea._("Unexpected error occurred")});this.props.onSubmitFailure&&this.props.onSubmitFailure();}).bind(this),success:(function(ia){var ja=ia.getPayload(),ka=ja[x.CARD_FBID],la=ja[x.CACHE_TOKEN];this.props.onSubmit&&this.props.onSubmit(ka,la);}).bind(this)});}});f.exports=ha;},null);
__d('AdsPaymentsLoadingIndicator',['AsyncRequest','CSS','csx','DOM','Event','ge','XAdsPaymentDialogActionController'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o={conditionShow:function(p){var q=m('XPaymentDialog');if(q){var r=k.scry(q,"._3hja");if(r.length)i.conditionShow(r[0],p);}},show:function(){this.conditionShow(true);},hide:function(){this.conditionShow(false);},onClick:function(p,q,r){var s=n.getURIBuilder().setInt('context_id',q);if(r)s=s.setBool(r,true);s=s.getURI();l.listen(p,'click',(function(t){this.show();new h().setURI(s).send();}).bind(this));}};f.exports=o;},null);
__d('AdsPaymentsPaypalForm.react',['AdsPaymentsFormConfig','AdsPaymentsFormEvents','CommerceAbstractFormMixin.react','EventEmitter','Layout.react','Link.react','PaypalFormParam','React','URI','XUINotice.react','XUIGrayText.react','XUIText.react','XUITextInput.react','cx','fbt','getSafeBodyFromHTML'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w){if(c.__markCompiled)c.__markCompiled();var x=l.Column,y=o.PropTypes,z='https://www.paypal.com/webapps/accountrecovery/passwordrecovery',aa=o.createClass({displayName:'AdsPaymentsPaypalForm',mixins:[j],propTypes:{pubSub:y.instanceOf(k).isRequired,accountCountry:y.string,emailID:y.string,onSubmit:y.func.isRequired,onSubmitFailure:y.func.isRequired},getInitialState:function(){var ba=this.getNonFormData();ba[n.COUNTRY]=this.props.accountCountry;ba[n.EMAIL]=this.props.emailID;ba[n.PASSWORD]='';return ba;},render:function(){var ba=[];return (o.createElement('div',{className:"_4r9n"},this._renderError(),this._renderHiddenInput(n.COUNTRY),ba.map(this._renderHiddenInput),o.createElement(l,null,o.createElement(x,{className:"_34y6"},o.createElement(r,{size:'small',weight:'bold',shade:'medium'},v._("PayPal Email Address"))),o.createElement(x,{className:"_34y7"},o.createElement(r,{size:'small',weight:'bold',shade:'medium'},v._("PayPal Password")))),o.createElement(l,null,o.createElement(x,{className:"_34y6"},this._renderTextInput(n.EMAIL,{tabIndex:'1'})),o.createElement(x,{className:"_34y7"},this._renderTextInput(n.PASSWORD,{tabIndex:'2'}))),o.createElement('div',{className:"_34y8"},o.createElement(m,{href:new p(z)},v._("Forgot your email or password?")))));},componentDidMount:function(){this.props.onDataChange(this.getFormData());this.props.pubSub.addListener(i.SAVE_PAYPAL_CREDENTIALS,(function(){this._submitForm();}).bind(this));},componentWillUnmount:function(){this.props.pubSub.removeAllListeners(i.SAVE_PAYPAL_CREDENTIALS);},getConfig:function(){return h.paypal();},getNonFormData:function(){return {errors:null,submitting:false};},_renderError:function(){if(!this.state.errors)return null;var ba=w(this.state.errors);if(!ba)return null;return (o.createElement(q,{use:'warn',className:"_3-8o"},o.createElement(s,{size:'small',display:'block'},ba.innerText||ba.textContent)));},_renderHiddenInput:function(ba){return (o.createElement('input',{key:ba,type:'hidden',autoComplete:'off',name:ba,value:this.state[ba]}));},_renderTextInput:function(ba,ca){var da=this.state[this.ERROR_PREFIX+ba],ea=da&&da.show,fa=this._getReactAttributes((this.getConfig()[ba]||{}).attributes||{});Object.assign(fa,ca);return (o.createElement(t,babelHelpers._extends({},fa,{className:"_53sm",height:'tall',value:this.state[ba],onChange:this._onChangeSetValue.bind(this,ba),onBlur:this._onBlurProcessValue.bind(this,ba),onFocus:this._onFocusClearError.bind(this,ba),xuiError:ea&&da.msg.description?da.msg.description:null})));},_submitForm:function(){if(this.state.submitting){this.props.onSubmitFailure();return false;}if(this._validateAllInputs()){this.setState({errors:null});}else{this.setState({errors:v._("Please fill out all the information")});this.props.onSubmitFailure();return false;}this.setState({submitting:true});}});f.exports=aa;},null);
__d('AdsPaymentFlowBanzaiEventTypes',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={FACEBOOK:'facebook',PROVIDER:'provider',USER:'user'};f.exports=h;},null);
__d('AdsPaymentFlowBanzaiEvents',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={AGENCY_REPRESENTING_CLIENT_CHANGED:'agency_representing_client_changed',CANCEL_PWMB_IFRAME:'cancel_pwmb_iframe',COUPON_CHECKBOX_CHANGED:'coupon_checkbox_changed',DISCLAIMER_CHECKBOX_CHANGED:'disclaimer_checkbox_changed',FLOW_CANCELLED:'flow_cancelled',FLOW_COUNTRY_CHANGED:'flow_country_changed',IFRAME_SET_SIZE:'iframe_set_size',INIT_COUNTRY_DROPDOWN:'init_country_dropdown',INIT_COUPON_CHECKBOX:'init_coupon_checkbok',INIT_DIRECT_DEBIT_FORM:'init_direct_debit_form',INIT_SELECT_PM_BUTTON:'init_select_pm_button',INIT_SELECT_PM_FORM:'init_select_pm_form',OPEN_PAYMENT_METHOD_POPUP:'open_payment_method_popup',PAYMENT_METHOD_CHANGED:'payment_method_changed',PROCESS_ALTPAY_IFRAME_RESPONSE:'process_altpay_iframe_response',PROCESS_POPUP_RESPONSE:'process_popup_response',RENDER_CREDIT_CARD_FORM:'render_credit_card_form',SUBMIT_BUSINESS_INFO_FORM:'submit_business_info_form',SUBMIT_CALCULATE_ALTPAY_FEE:'submit_calculate_altpay_fee',SUBMIT_CLIENT_BUSINESS_INFO_FORM:'submit_client_business_info_form',SUBMIT_CREDIT_CARD_FORM:'submit_credit_card_form',SUBMIT_CREDIT_CARD_FORM_STATE:'submit_credit_card_form_state',SUBMIT_DEFERRED_CREDENTIAL_FORM:'submit_deferred_credential_form',SUBMIT_DIRECT_DEBIT_FORM:'submit_direct_debit_form',SUBMIT_DISCLAIMER_STATE:'submit_disclaimer_state',SUBMIT_NEW_MOBILE_FORM:'submit_new_mobile_form',SUBMIT_PREPAID_AMOUNT_FORM:'submit_prepaid_amount_form',SUBMIT_PWMB_IFRAME_RESPONSE:'submit_pwmb_iframe_response',SUBMIT_SELECT_STATE:'submit_select_state',SUBMIT_TAX_ADDRESS_FORM:'submit_tax_address_form',SUBMIT_TAX_ID_FORM:'submit_tax_id_form'};f.exports=h;},null);
__d("XAdsPaymentDialogCancelController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/fbpayments\/flows\/payment\/dialog_cancel\/",{context_id:{type:"Int",required:true}});},null,{});
__d("XPaymentsMobilePhoneValidateController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/payment\/mobile_phone_validate\/",{});},null,{});
__d('PaymentsFlow',['AdsPaymentFlowBanzaiLogger','AdsPaymentsCreditCardForm.react','AdsPaymentsFlowAPI','AdsPaymentsFormEvents','AdsPaymentsLoadingIndicator','AdsPaymentsPaypalForm.react','AsyncRequest','Button','CSS','DOM','DOMEventListener','DialogExpansion','DirectDebitFormParam','Event','EventEmitter','AdsPaymentFlowBanzaiEventTypes','AdsPaymentFlowBanzaiEvents','Form','FullScreen','React','ReactDOM','URI','Vector','XAdsPaymentDialogActionController','XAdsPaymentDialogCancelController','XPaymentsMobilePhoneValidateController','XUIError','$','csx','cx','ge'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la){if(c.__markCompiled)c.__markCompiled();var ma="#141823",na="#B9BDC5",oa={_dialog:null,_callback:null,_cancelSurveyDialog:null,_contextID:null,_currency:null,_eventEmitter:null,_form:null,_paymentMethodsConfig:null,_selectedMethod:null,_button:null,_popup:null,_popupSubmitted:false,_submitting:false,_formInputValuesMap:{},_separateCCFormStep:false,getContextID:function(){return this._contextID;},getSelectedPaymentMethod:function(){return this._selectedMethod;},_pollPopup:function(){if(this._popupSubmitted)return;if(!this._popup||this._popup.closed){this._setSubmitting(false);}else setTimeout(this._pollPopup.bind(this),100);},_setSubmitting:function(pa){o.setEnabled(this._button,!pa);this._submitting=pa;l.conditionShow(pa);},_openPopup:function(pa){h.log(x.OPEN_PAYMENT_METHOD_POPUP,w.FACEBOOK,this._contextID,this._selectedMethod);var qa=this._selectedMethod=='paypal',ra=qa?420:800,sa=550,ta=Number(!qa),ua=Number(!qa),va=Number(!qa),wa='';if(!z.isFullScreen()){var xa=0,ya=0;if(window.screenLeft){xa=window.screenLeft;ya=window.screenTop;}else if(window.screenX){xa=window.screenX;ya=window.screenY;}var za=da.getViewportDimensions().x,ab=da.getViewportDimensions().y;xa=xa+(za-ra)/2;ya=ya+(ab-sa)/2;wa='top='+ya+','+'left='+xa+','+'width='+ra+','+'height='+sa+',';}wa=wa+'location=yes,'+'resizable='+ta+','+'toolbar='+ua+','+'menubar='+va+','+'scrollbars=yes';this._popup=window.open(pa.toString(),'FBPaymentsFlowPopupWindow',wa);},_updateSelectedPaymentMethod:function(){var pa=q.scry(ia('payment_options'),"._3s1x");pa.forEach(function(qa){p.removeClass(qa,"_3s1y");var ra=q.find(qa,'input[type="radio"]');if(ra.checked){this._selectedMethod=ra.value;p.addClass(qa,"_3s1y");}},this);h.log(x.PAYMENT_METHOD_CHANGED,w.USER,this._contextID,this._selectedMethod);},onSubmit:function(pa){if(pa.preventDefault){pa.preventDefault();}else pa.returnValue=false;if(pa.stopPropagation)pa.stopPropagation();if(this._submitting)return;this._setSubmitting(true);this._updateSelectedPaymentMethod();if(!this._selectedMethod){this._setSubmitting(false);return;}var qa=this._paymentMethodsConfig[this._selectedMethod];if(qa&&qa.open_popup){this._openPopup(qa.popup_url);this._pollPopup();}else if(this._selectedMethod=='new_cc'||this._selectedMethod=='new_dc'){if(this._separateCCFormStep){this._submitSelectState();}else this.submitCreditCardForm();}else if(this._selectedMethod=='mobile'){this.submitNewMobileForm();}else this._submitSelectState();},setCurrency:function(pa){this._currency=pa;},initCountryCode:function(pa){this._selectedCountry=pa;},initPhoneNumberInputField:function(pa){u.listen(pa,'keydown',this.clearNumberInputError.bind(this));},clearNumberInputError:function(){ha.clear(ia('AdsPaymentsMSISDN'));},submitNewMobileForm:function(){var pa=ga.getURIBuilder().getURI(),qa={context_id:this._contextID,msisdn:ia('AdsPaymentsMSISDN').value,user_selected_country:this._selectedCountry};new n(pa).setData(qa).setMethod('POST').setHandler(this.afterValidateMobilePhone.bind(this)).send();h.log(x.SUBMIT_NEW_MOBILE_FORM,w.USER,this._contextID,this._selectedMethod,{msisdn:ia('AdsPaymentsMSISDN').value,selected_country:this._selectedCountry});},afterValidateMobilePhone:function(pa){var qa=pa.payload;if(qa.error_code){ha.set({target:ia('AdsPaymentsMSISDN'),message:q.create('div',{},qa.error_message)});this._setSubmitting(false);return;}this._submitSelectState();},submitPrepaidAmount:function(pa){l.show();o.setEnabled(ia('AdsPaymentsPrepaidAmountButton'),false);var qa=ia('amount-entered'),ra=ea.getURIBuilder().setInt('context_id',this._contextID).setBool('amount_decision',true).setString('prepaid_amount',qa.value).getURI();new n().setURI(ra).send();h.log(x.SUBMIT_PREPAID_AMOUNT_FORM,w.USER,this._contextID,this._selectedMethod,{prepaid_amount:qa.value});},submitClientBusinessInfo:function(){o.setEnabled(ia('AdsPaymentsSubmitClientBusinessInfoButton'),false);var pa=document.getElementsByName('who_pays_facebook'),qa=y.getRadioValue(pa),ra=q.find(ia('AdsPaymentClientBusinessCountryDropdown'),'input[type="hidden"]').value,sa=ea.getURIBuilder().setInt('context_id',this._contextID).setString('business_who_pays_facebook',qa).setString('business_client_company_name',ia('client_company_name').value).setString('business_client_email_address',ia('client_email_address').value).setString('address_street1',ia('address_street1').value).setString('address_street2',ia('address_street2').value).setString('address_city',ia('address_city').value).setString('address_postal_code',ia('address_postal_code').value).setString('address_state',ia('address_state').value).setString('address_country',ra).setBool('business_mandate_received',ia('mandate_declaration').checked).getURI();new n().setURI(sa).send();h.log(x.SUBMIT_CLIENT_BUSINESS_INFO_FORM,w.USER,this._contextID,this._selectedMethod,{business_who_pays_facebook:qa,business_client_company_name:ia('client_company_name').value,business_client_email_address:ia('client_email_address').value,address_street1:ia('address_street1').value,address_street2:ia('address_street2').value,address_city:ia('address_city').value,address_postal_code:ia('address_postal_code').value,address_state:ia('address_state').value,address_country:ra,business_mandate_received:ia('mandate_declaration').checked});},submitBusinessInfo:function(pa){o.setEnabled(ia('AdsPaymentsSubmitBusinessInfoButton'),false);var qa=q.find(ia('AdsPaymentsVATCountryDropdown'),'input[type="hidden"]').value,ra=document.getElementsByName('ads_for_client'),sa=y.getRadioValue(ra),ta=document.getElementsByName('target_france'),ua=y.getRadioValue(ta),va=ea.getURIBuilder().setInt('context_id',this._contextID).setString('business_name',ia('business_name').value).setString('address_street1',ia('address_street1').value).setString('address_street2',ia('address_street2').value).setString('address_city',ia('address_city').value).setString('address_postal_code',ia('address_postal_code').value).setString('address_state',ia('address_state').value).setString('eu_vat_country',qa).setString('eu_vat_number',ia('eu_vat_number').value).setBool('business_ads_for_client',sa=='yes').setBool('business_target_france',ua=='yes').getURI();new n().setURI(va).send();h.log(x.SUBMIT_BUSINESS_INFO_FORM,w.USER,this._contextID,this._selectedMethod,{business_name:ia('business_name').value,address_street1:ia('address_street1').value,address_street2:ia('address_street2').value,address_city:ia('address_city').value,address_postal_code:ia('address_postal_code').value,address_state:ia('address_state').value,eu_vat_country:qa,eu_vat_number:ia('eu_vat_number').value,business_ads_for_client:sa=='yes',business_target_france:ua=='yes'});},initAgencyRepresentingClientRadio:function(){var pa=document.getElementsByName('ads_for_client');for(var qa=0;qa<pa.length;qa++)u.listen(pa[qa],'change',this.agencyRepresentingClientChanged.bind(this));},agencyRepresentingClientChanged:function(){var pa=document.getElementsByName('ads_for_client'),qa=y.getRadioValue(pa),ra=document.getElementsByName('target_france'),sa=ia('target_france_text'),ta=ia('france_yes'),ua=ia('france_no');if(qa=='yes'){for(var va=0;va<ra.length;va++)ra[va].disabled=false;sa.style.color=ma;ta.style.color=ma;ua.style.color=ma;}else{for(va=0;va<ra.length;va++)ra[va].disabled=true;sa.style.color=na;ta.style.color=na;ua.style.color=na;}h.log(x.AGENCY_REPRESENTING_CLIENT_CHANGED,w.USER,this._contextID,this._selectedMethod,{business_ads_for_client:qa=='yes'});},submitTaxIDForm:function(pa){o.setEnabled(ia('AdsPaymentsBrazilTaxIDButton'),false);var qa=ea.getURIBuilder().setInt('context_id',this._contextID).setString('selected_country',this._selectedCountry).setString('brazil_tax_id',ia('AdsPaymentsBrazilTaxID').value).getURI();new n().setURI(qa).send();h.log(x.SUBMIT_TAX_ID_FORM,w.USER,this._contextID,this._selectedMethod,{selected_country:this._selectedCountry,brazil_tax_id:ia('AdsPaymentsBrazilTaxID').value});},submitDirectDebitForm:function(pa){var qa=ia('XPaymentDialog'),ra={data:{context_id:this._contextID}},sa=q.scry(qa,'input');o.setEnabled(ia('AdsPaymentsDirectDebitButton'),false);for(var ta=0,ua=sa.length;ta<ua;ta++)ra.data[sa[ta].name]=sa[ta].value;j.saveDirectDebit(ra);h.log(x.SUBMIT_DIRECT_DEBIT_FORM,w.USER,this._contextID,this._selectedMethod);},_shouldEnable:function(){for(var pa in this._formInputValuesMap)if(this._formInputValuesMap.hasOwnProperty(pa))if(!this._formInputValuesMap[pa])return false;return true;},initDirectDebitForm:function(pa){this._button=ia('AdsPaymentsDirectDebitButton');var qa=ia('XPaymentDialog'),ra=q.scry(qa,'input');for(var sa=0,ta=ra.length;sa<ta;sa++){var ua=ra[sa];if(!pa&&ua.name==='account_country_code')continue;if(ua.type!=='hidden')this._formInputValuesMap[ua.name]=false;u.listen(ua,'change',this._onInputChanged.bind(this));u.listen(ua,'keyup',this._onInputChanged.bind(this));u.listen(ua,'blur',this._onInputBlur.bind(this));}h.log(x.INIT_DIRECT_DEBIT_FORM,w.FACEBOOK,this._contextID,this._selectedMethod);},_onInputChanged:function(event){j.clearGeneralErrorDirectDebit();var pa=event.target;p.removeClass(pa,"_1tp7");var qa=pa.type==='checkbox'?pa.checked:pa.value.trim()!=='';this._formInputValuesMap[pa.name]=qa;if(pa.type==='checkbox')pa.value=pa.checked?'true':'false';o.setEnabled(this._button,this._shouldEnable());},_onInputBlur:function(event){var pa=event.target;pa.value=pa.value.trim();if(pa.name===t.BANK_ACCOUNT_NUMBER)j.validateIBAN(pa.value);},initDirectDebitCountryDropdown:function(pa){pa.subscribe('change',(function(){j.clearGeneralErrorDirectDebit();o.setEnabled(this._button,this._shouldEnable());}).bind(this));},submitTaxAddressForm:function(pa){o.setEnabled(ia('AdsPaymentsBrazilTaxAddressButton'),false);var qa=q.find(ia('address_state'),'input[type="hidden"]'),ra=ea.getURIBuilder().setInt('context_id',this._contextID).setString('brazil_street1',ia('address_street1').value).setString('brazil_street2',ia('address_street2').value).setString('brazil_city',ia('address_city').value).setString('brazil_state',qa.value).setString('brazil_postal_code',ia('address_postal_code').value).getURI();new n().setURI(ra).send();h.log(x.SUBMIT_TAX_ADDRESS_FORM,w.USER,this._contextID,this._selectedMethod,{address_street1:ia('address_street1').value,address_street2:ia('address_street2').value,address_city:ia('address_city').value,address_state:qa.value,address_postal_code:ia('address_postal_code').value});},submitDeferredCredentialContinue:function(pa){if(o.isEnabled(ia('AdsPaymentsDCNContinueButton')))this._submitDeferredCredentialForm(true);},submitDeferredCredentialBack:function(pa){this._submitDeferredCredentialForm(false);},_submitDeferredCredentialForm:function(pa){o.setEnabled(ia('AdsPaymentsDCNContinueButton'),false);o.setEnabled(ia('AdsPaymentsDCNBackButton'),false);var qa=ea.getURIBuilder().setInt('context_id',this._contextID).setBool('activate_dcn',pa).getURI();new n().setURI(qa).send();h.log(x.SUBMIT_DEFERRED_CREDENTIAL_FORM,w.USER,this._contextID,this._selectedMethod,{activate_dcn:pa});},_submitSelectState:function(pa){var qa=q.scry(ia('XPaymentDialogFooter'),'#AdsPaymentsCouponCheckbox'),ra=q.scry(ia('XPaymentDialogBody'),'#AdsPaymentsMSISDN'),sa=qa.length?qa[0].checked:false,ta=ra.length?ra[0].value:null,ua=ea.getURIBuilder().setInt('context_id',this._contextID).setString('selected_payment_method',this._selectedMethod).setInt('payment_method_id',pa).setBool('coupon_checkbox',sa).setString('msisdn',ta).getURI();new n().setURI(ua).send();h.log(x.SUBMIT_SELECT_STATE,w.USER,this._contextID,this._selectedMethod,{payment_method_id:pa,coupon_checkbox:sa,msisdn:ta});},setDialog:function(pa){this._dialog=pa;},setDialogWidth:function(pa){if(this._dialog){this._dialog.setWidth(pa);var qa=new s(this._dialog);qa.setTargetWidth(pa);qa._onAfterShow();}},initSelectPaymentMethodButton:function(pa){this._button=pa;this._setSubmitting(false);u.listen(pa,'click',this.onSubmit.bind(this));h.log(x.INIT_SELECT_PM_BUTTON,w.FACEBOOK,this._contextID,this._selectedMethod);},setContextID:function(pa){this._contextID=pa;},initSelectPaymentMethodForm:function(pa,qa,ra,sa){this._contextID=pa;this._paymentMethodsConfig=ra;this._separateCCFormStep=sa;u.listen(qa._root,'submit',this.onSubmit.bind(this));h.log(x.INIT_SELECT_PM_FORM,w.FACEBOOK,this._contextID,this._selectedMethod,{separate_cc_form_state:sa});},initIFrame:function(pa){this._iframe=pa;},setSize:function(pa){if(pa.frame!='partner_iframe')return;var qa=Number(pa.width),ra=Number(pa.height);this._iframe.style.overflowY='hidden';if(ra&&!isNaN(ra)){var sa=ra;this._iframe.style.height=sa+'px';}if(qa&&!isNaN(qa)){var ta=qa-24,ua=ta+'px';this._iframe.style.width=qa+'px';ia('XPaymentDialogBody').style.width=ua;ia('XPaymentDialogTitle').style.width=ua;ia('XPaymentDialogFooter').style.width=ua;}h.log(x.IFRAME_SET_SIZE,w.PROVIDER,this._contextID,this._selectedMethod,{width:qa,height:ra});},handleProviderIframeResponse:function(pa){var qa=!!(pa.hasOwnProperty('cancel')&&pa.cancel||pa.hasOwnProperty('cancel_dialog')&&pa.cancel_dialog);if(qa){this.onCancel();return;}var ra=!!(pa.hasOwnProperty('confirm')&&pa.confirm),sa=!!(pa.hasOwnProperty('back')&&pa.back),ta=!!(pa.hasOwnProperty('payment_provider_error')&&pa.payment_provider_error),ua=pa.hasOwnProperty('payment_provider_ec')?pa.payment_provider_ec:0,va=pa.hasOwnProperty('payment_provider_msg')?pa.payment_provider_msg:'',wa=!!(pa.hasOwnProperty('payment_provider_pending')&&pa.payment_provider_pending);this.processIFrame(sa,ta,ua,va,wa,ra);},processIFrame:function(pa,qa,ra,sa,ta,ua){var va=ea.getURIBuilder().setInt('context_id',this._contextID).setBool('provider_cancel',pa).setBool('provider_error',qa).setInt('provider_error_code',ra).setString('provider_error_message',sa).setBool('provider_pending',ta).setBool('back_press',pa).setBool('provider_success',ua);new n().setURI(va.getURI()).send();h.log(x.PROCESS_ALTPAY_IFRAME_RESPONSE,w.PROVIDER,this._contextID,this._selectedMethod,{provider_error:qa,provider_error_code:ra,provider_pending:ta,back_press:pa,provider_success:ua});},processPopup:function(pa){if(!pa.cancel&&pa.context_id!=this._contextID)return;this._popupSubmitted=true;if(this._popup){this._popup.close();if(!this._popup.closed){var qa=new ca('/payments/message.php');if(pa.cancel)qa.addQueryData('cancel',1);this._popup.location=qa.toString();}this._popup=null;}if(pa.cancel){this._setSubmitting(false);return;}var ra=q.scry(ia('XPaymentDialogFooter'),'#AdsPaymentsCouponCheckbox'),sa=ra.length?ra[0].checked:false,ta=ea.getURIBuilder().setInt('context_id',this._contextID).setString('selected_payment_method',this._selectedMethod).setBool('coupon_checkbox',sa),ua={coupon_checkbox:sa};if((this._selectedMethod=='new_cc'||this._selectedMethod=='new_dc')&&pa.success=='true'&&pa.credit_card_added=='true'){ta.setInt('payment_method_id',parseInt(pa.cc_cred_id,10));var va=q.scry(ia('XPaymentDialogBody'),'#AdsPaymentsCreditCardBankDropdown input');if(va.length>0)ta.setString('selected_credit_card_bank',va[0].value);ua.payment_method_id=parseInt(pa.cc_cred_id,10);}else if(this._selectedMethod=='paypal'&&pa.success=='1'&&pa.paypal_added=='1'){ta.setString('paypal_token',pa.token).setString('paypal_fb_entity',pa.fbent);ua.paypal_token=pa.token;ua.paypal_fb_entity=pa.fbent;}else{this._setSubmitting(false);return;}new n().setURI(ta.getURI()).send();h.log(x.PROCESS_POPUP_RESPONSE,w.FACEBOOK,this._contextID,this._selectedMethod,ua);},onCancel:function(pa){var qa=fa.getURIBuilder().setInt('context_id',this._contextID).getURI();new n().setURI(qa).send();this.onErrorOrCancel();h.log(x.FLOW_CANCELLED,w.USER,this._contextID,this._selectedMethod);if(this._cancelSurveyDialog)this._cancelSurveyDialog.show();},onErrorOrCancel:function(){this.doCallback({});this._dialog=null;},initRadioInput:function(pa,qa){r.add(pa,'change',this.onChange.bind(this,qa));},initCouponCheckbox:function(pa){r.add(pa,'change',this.onCouponChange.bind(this));h.log(x.INIT_COUPON_CHECKBOX,w.FACEBOOK,this._contextID,this._selectedMethod);},initDCNCheckbox:function(pa){r.add(pa,'change',this.onToggleDCNCheckbox.bind(this));},initCountryDropdown:function(pa){pa.subscribe('change',this.onCountryChange.bind(this));this._selectedCountry=pa._input.value;h.log(x.INIT_COUNTRY_DROPDOWN,w.FACEBOOK,this._contextID,this._selectedMethod,{selected_country:this._selectedCountry});},onChange:function(pa){this._updateSelectedPaymentMethod();var qa=q.scry(ia('XPaymentDialogBody'),'#AdsPaymentsInlineDebitCard');if(qa.length)p.conditionShow(qa[0],this._selectedMethod==='new_dc');var ra=q.scry(ia('XPaymentDialogBody'),'#AdsPaymentsInlineCreditCard');if(ra.length)if(this._selectedMethod=='new_cc'){p.show(ra[0]);}else p.hide(ra[0]);var sa=q.scry(ia('XPaymentDialogBody'),'#AdsPaymentsInlinePaypal');if(sa.length)if(this._selectedMethod=='paypal'){p.show(sa[0]);}else p.hide(sa[0]);var ta=q.scry(ia('XPaymentDialogBody'),'#AdsPaymentsInlineMobile');if(ta.length)if(this._selectedMethod=='mobile'){p.show(ta[0]);}else p.hide(ta[0]);var ua=q.scry(ia('XPaymentDialogFooter'),'#AdsPaymentsCouponCheckbox');if(ua.length)if(pa){p.hide('AdsPaymentsCouponMessage');p.hide('AdsCouponCheckboxLabel');if(ua[0].checked){ua[0].checked=false;p.show('AdsPaymentsCouponUnsupportedMessage');}}else{p.hide('AdsPaymentsCouponUnsupportedMessage');p.show('AdsCouponCheckboxLabel');this.onCouponChange();}},onCouponChange:function(){var pa=ia('AdsPaymentsCouponCheckbox'),qa=ia('AdsPaymentsCouponMessage');p.conditionClass(qa,'hidden_elem',!pa.checked);this._setDCNEnabledEnabledState(!pa.checked);h.log(x.COUPON_CHECKBOX_CHANGED,w.USER,this._contextID,this._selectedMethod,{coupon_checkbox:pa.checked});},onToggleDCNCheckbox:function(){var pa=ia('AdsPaymentsDCNCheckbox'),qa=ia('AdsPaymentsDCNContinueButton');o.setEnabled(qa,pa.checked);},onCountryChange:function(pa,qa){this._selectedCountry=qa.value;this._setSubmitting(true);var ra=ea.getURIBuilder().setInt('context_id',this._contextID).setString('selected_country',qa.value).getURI();new n().setURI(ra).send();h.log(x.FLOW_COUNTRY_CHANGED,w.USER,this._contextID,this._selectedMethod,{selected_country:qa.value});},_setDCNEnabledEnabledState:function(pa){var qa=q.scry(ia('XPaymentDialogBody'),'#deferred_credential_element');if(qa.length)qa[0].style.borderStyle=pa?'solid':'dashed';var ra=q.scry(ia('XPaymentDialogBody'),'#deferred_credential_input');if(ra.length)ra[0].disabled=!pa;var sa=q.scry(ia('XPaymentDialogBody'),'#deferred_credential_title');if(sa.length)sa[0].style.color=pa?'black':'grey';var ta=q.scry(ia('XPaymentDialogBody'),'#deferred_credential_logos');if(ta.length){var ua=q.scry(ia('deferred_credential_logos'),"._3s1_");if(ua.length)ua[0].src=pa?'/images/payments/icons/deferred_credential.png':'/images/payments/icons/deferred_credential_disabled.png';}if(!pa&&ra.length&&ra[0].checked){if(qa.length)p.removeClass(qa[0],"_3s1y");p.addClass(ia('new_cc_element'),"_3s1y");ra[0].checked=false;ia('new_cc_input').checked=true;}},enableCouponButton:function(){o.setEnabled(ia('coupon_submit_button'),true);},setCallback:function(pa){this._callback=pa;},doCallback:function(pa){this._callback(pa);this._dialog.hide();},renderInlineCreditCardForm:function(pa,qa,ra,sa,ta,ua,va,wa,xa){var ya={pubSub:this._getEventEmitter(),accountID:ra,defaultCountry:sa,trackingID:ta,showZip:va,parentID:pa,currency:wa,onSubmit:(function(za){this._submitSelectState(za);}).bind(this),onSubmitFailure:(function(){this._setSubmitting(false);}).bind(this),validatorChecks:ua,supportedTypes:xa};ba.render(aa.createElement(i,ya),qa);},processPWMBCancelIFrame:function(pa){this.onCancel();h.log(x.CANCEL_PWMB_IFRAME,w.PROVIDER,this._contextID,this._selectedMethod);},processPWMBReturnIFrame:function(pa){pa.payment_account_verified=pa.payment_account_verified=='true';pa.pwmb_notification_success=pa.notification!='failed';var qa=ea.getURIBuilder().setInt('context_id',this._contextID).setBool('payment_account_verified',pa.payment_account_verified).setBool('pwmb_notification_success',pa.pwmb_notification_success).setString('redirect_url_type',pa.type).setString('pwmb_transaction_id',pa.transactionId).setString('pwmb_transaction_type',pa.transactionType).setString('pwmb_redirection_type',pa.type).setString('merchant_reference',pa.merchantReference).setString('pwmb_retrieval_status',pa.status).setString('request_signature',pa.requestSignature).setString('pwmb_redirect_url',pa.redirect_url).setString('pwmb_entry_method',pa.entry_method).getURI();new n().setURI(qa).send();h.log(x.SUBMIT_PWMB_IFRAME_RESPONSE,w.PROVIDER,this._contextID,this._selectedMethod,{payment_account_verified:pa.payment_account_verified,pwmb_notification_success:pa.pwmb_notification_success,redirect_url_type:pa.type,pwmb_transaction_id:pa.transactionId,pwmb_transaction_type:pa.transactionType,pwmb_redirection_type:pa.type,merchant_reference:pa.merchantReference,pwmb_retrieval_status:pa.status,request_signature:pa.requestSignature,pwmb_redirect_url:pa.redirect_url,pwmb_entry_method:pa.entry_method});},renderInlinePaypalForm:function(pa,qa){var ra={pubSub:this._getEventEmitter(),defaultCountry:qa,onSubmit:(function(sa){this._submitSelectState(sa);}).bind(this),onSubmitFailure:(function(){this._setSubmitting(false);}).bind(this)};ba.render(aa.createElement(m,ra),pa);},_getEventEmitter:function(){if(this._eventEmitter===null)this._eventEmitter=new v();return this._eventEmitter;},submitCreditCardForm:function(){this._getEventEmitter().emit(k.SAVE_CREDIT_CARD);h.log(x.SUBMIT_CREDIT_CARD_FORM,w.USER,this._contextID,this._selectedMethod);},post3DSIFrame:function(pa,qa){this._contextID=qa;pa.submit();},process3DSIFrame:function(pa,qa){l.show();var ra=ea.getURIBuilder().setInt('context_id',this._contextID).setString('iframe_3ds_payload',pa).setString('iframe_3ds_token',qa).getURI();new n().setURI(ra).send();},setCancelSurveyDialog:function(pa){this._cancelSurveyDialog=pa;}};b.PaymentsFlow=f.exports=oa;},null);
__d("XAdsPaymentDialogController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/fbpayments\/flows\/payment\/dialog\/",{altpay_method_name:{type:"String"},prepay_shortcut_flow:{type:"Bool",defaultValue:false},is_shortcut:{type:"Bool",defaultValue:false},campaign_budget_amount:{type:"Int"},campaign_budget_currency:{type:"String"},campaign_budget_type:{type:"String"},campaign_end_time:{type:"String"},campaign_start_time:{type:"String"},credential_id:{type:"Int"},show_existing_coupon:{type:"Bool",defaultValue:false},coupon_code:{type:"String"},product_name:{type:"String",defaultValue:""},pending_ad_id:{type:"Int"},shortcut_charge_flow:{type:"Bool",defaultValue:false},funding_id:{type:"Int"},payment_method_type:{type:"String",defaultValue:""},country_code:{type:"String"},account_id:{type:"Int",required:true},placement:{type:"String",required:true},__asyncDialog:{type:"Int"}});},null,{});
__d('AdManagerFunding',['AdsCFLoggerInternal','AsyncRequest','AsyncDialog','GiftCredits','PaymentsFlow','URI','XAdsPaymentDialogController','AdsPaymentsFlowPlacement','Event','goURI','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){if(c.__markCompiled)c.__markCompiled();var s=function(u,v,w,x){h.log(h.CATEGORIES.PAYMENT,u,{account_id:v,ncf:new m(window.location.href).getQueryData().ncf,source:w,url_user:x?x:'No url user'});},t={ADS_PAYMENT_APP_ID:'123097351040126',CAMPAIGN_DATE_FORMAT:'m/d/Y',POWER_EDITOR_APP_ID:'119211728144504',_business_id:null,_flowLock:false,bindPaymentMethodClickEvent:function(u,v,w,x,y){p.listen(v,'click',(function(){if(u)t.setBusinessID(u);t.addCredential(w,x,y);}).bind(this));},addCredentialCallbackFromFunding:function(u,v){if(v.credential_state){var w=new m('/ads/manage/funding.php').addQueryData({credential_state:v.credential_state,has_hit_asl:v.has_hit_asl,act:u});if(t.getBusinessID())w.addQueryData({business_id:t.getBusinessID()});q(w);}},addCredentialCallbackFromFundingInPE:function(u){if(u){var v=new m('/ads/manage/powereditor/funding').addQueryData({host:t.POWER_EDITOR_APP_ID}).addQueryData({account:u});if(t.getBusinessID())v.addQueryData({business_id:t.getBusinessID()});q(v);}},addCredentialCallbackFromUnsettled:function(u,v){if(v.credential_state||v.redirect_to_unsettled_page){var w=new m('/ads/manage/unsettled.php').addQueryData({primary:1}).addQueryData({act:u}).addQueryData({redirect:v.redirect});if(t.getBusinessID())w.addQueryData({business_id:t.getBusinessID()});q(w);}},addCredentialCallbackFromPageNAX:function(u){if(u.credential_state){var v=new m(window.location.href).addQueryData({success:true});if(t.getBusinessID())v.addQueryData({business_id:t.getBusinessID()});q(v);}},addCredential:function(u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la){if(this._flowLock)return;this.setFlowLock(true);if(!ba)ba=0;s('payment_initiated',w,u,ca);if(!y)switch(u){case 'funding_page':case o.MIGRATE_TO_POSTPAY:case o.BRAZIL_PRIMARY_AMEX_MEGAPHONE:if(aa==t.POWER_EDITOR_APP_ID){y=function(){t.addCredentialCallbackFromFundingInPE(w);};}else y=function(pa){t.addCredentialCallbackFromFunding(w,pa);};break;case 'unsettled':case 'grace_period':y=function(pa){t.addCredentialCallbackFromUnsettled(w,pa);};break;case 'create_flow':case o.CM_PAYMENT_METHODS_TAB:r(0);break;case 'page_nax':y=t.addCredentialCallbackFromPageNAX;break;case o.BOOSTED_PAGE_LIKE:case o.BOOSTED_WEBSITE:case o.BOOSTED_PAGE_LIKE_PAGE_NAX:case o.BOOSTED_LOCALAWARENESS:y=function(pa){};break;default:return;}var ma=function(pa){s(pa&&pa.credential_state?'payment_completed':'payment_cancelled',w,u,ca);y(pa);};if(!fa)fa=[];var na=n.getURIBuilder().setInt('account_id',w).setString('altpay_method_name',fa.altpay_method_name).setBool('prepay_shortcut_flow',fa.prepay_shortcut_flow).setString('placement',u).setBool('is_shortcut',fa.shortcut).setInt('credential_id',fa.credential_id).setBool('show_existing_coupon',ea).setString('coupon_code',x).setString('product_name',z).setInt('pending_ad_id',ba).setBool('shortcut_charge_flow',fa.shortcut_charge_flow).setInt('funding_id',fa.funding_id).setString('payment_method_type',fa.payment_method_type).setInt('campaign_budget_amount',ha).setString('campaign_budget_currency',ia).setString('campaign_budget_type',ga).setString('campaign_end_time',ja).setString('campaign_start_time',ka).setString('country_code',la).getURI();l.setCallback(ma);var oa=new i().setURI(na).setFinallyHandler(this.setFlowLock.bind(this,false));j.send(oa,function(pa){l.setDialog(pa);});},setFlowLock:function(u){this._flowLock=u;},setBusinessID:function(u){t._business_id=u;},getBusinessID:function(){return t._business_id;},verifyCredential:function(u,v,w,x,y,z){if(!z)z=t.addCredentialCallbackFromFunding;var aa={shortcut:u,credential_id:v,account_id:x};k.getPrompt(w,null,{},null,z,'admanager',null,null,'ads',aa,{placement:y});},chargeCredential:function(u,v,w,x,y,z){var aa={funding_id:x,payment_method:y,payment_method_type:y,shortcut_charge_flow:true};t.addCredential(u,v,w,null,z,null,null,null,null,null,null,aa);}};f.exports=t;},null);
__d('AdsImageUploadErrorActions',['AdsDispatcher','AdsActionTypes'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={setUploadFormatError:function(k){h.handleUpdateFromViewAction({message:k,type:i.IMAGE_UPLOAD.FORMAT_ERROR});},setUploadSizeError:function(k){h.handleUpdateFromViewAction({message:k,type:i.IMAGE_UPLOAD.SIZE_ERROR});},removeErrors:function(){h.handleUpdateFromViewAction({type:i.IMAGE_UPLOAD.REMOVE_ERRORS});}};f.exports=j;},null);
__d('AdsImageValidationActionTypes',['AdsDispatchActionTypeUtils'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={AD_IMAGE_VALIDATION_API_INIT:null,AD_IMAGE_VALIDATION_API_COMPLETE:null,AD_IMAGE_VALIDATION_CACHE_COMPLETE:null,AD_IMAGE_VALIDATION_NOTICE_SHOWN:null,AD_IMAGE_VALIDATION_TOOL_USE:null},j=h.createActionTypeMap('ADS_IMAGE_VALIDATION_',i);f.exports=j;},null);
__d('AdsInstagramAccountActionSources',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={PE_REACH_FREQUENCY:'pe_reach_frequency',PE_AUCTION:'pe_auction',CF_AUCTION:'cf_auction'};f.exports=h;},null);
__d('AdsReviewAPIActionTypes',['AdsDispatchActionTypeUtils'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i={AD_REVIEW_API_REQUEST_INIT:null,AD_REVIEW_API_REQUEST_COMPLETE:null,AD_REVIEW_API_WARNING_SHOW:null,AD_REVIEW_API_WARNING_CLICK:null,AD_REVIEW_API_APPEAL_DIALOG_SHOW:null,AD_REVIEW_API_APPEAL_CLICK:null},j=h.createActionTypeMap('AD_VALIDATION_',i);f.exports=j;},null);
__d('AdsReviewAPIStoreActions',['AdsReviewAPIActionTypes','AdsDispatcher'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={updateValidationResults:function(k){i.handleUpdateFromServerResponse({data:{adFeedback:k},type:h.AD_REVIEW_API_REQUEST_COMPLETE});}};f.exports=j;},null);
__d('AdsShutterstockSearchActions',['AdsActionTypes','AdsDispatcher'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={searchResultsLoaded:function(k,l){i.handleUpdateFromServerResponse({data:{query:k,results:l},type:h.SHUTTERSTOCK.SEARCH_RESULTS_LOADED});}};f.exports=j;},null);
__d('AdsShutterstockViewActions',['AdsActionTypes','AdsDispatcher'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={searchTextChanged:function(k){i.handleUpdateFromViewAction({data:{searchText:k},type:h.SHUTTERSTOCK.SEARCH_TEXT_CHANGED});},searchDone:function(k){i.handleUpdateFromViewAction({data:{searchText:k},type:h.SHUTTERSTOCK.SEARCH_DONE});},endReached:function(k){i.handleUpdateFromViewAction({data:{searchText:k},type:h.SHUTTERSTOCK.END_REACHED});}};f.exports=j;},null);
__d('AdsAMActionTypes',['keyMirror'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=h({ACCOUNT_INIT:null,AUDIENCE_CHANGE:null,AUDIENCE_INIT:null,AUDIENCE_ADD:null,AUDIENCE_BULK_ADD:null,AUDIENCE_DELETE:null,AUDIENCE_BULK_DELETE:null,AUDIENCE_SORT:null,AUDIENCE_SAVE_TO_CA_BUFFER:null,AUDIENCE_SAVE_TO_STS_BUFFER:null,AUDIENCE_GET_OVERLAP:null,AUDIENCE_LOAD_OVERLAP:null,AUDIENCE_DETAILS_DELETE_AUDIENCE_ERROR:null,AUDIENCE_DETAILS_DELETE_AUDIENCE:null,AUDIENCE_DETAILS_DELETE_AUDIENCE_DONE:null,AUDIENCE_DETAILS_APPEND_LOOKALIKE_NAME:null,AUDIENCE_DETAILS_GET_AUDIENCE_ACTIVITIES_ERROR:null,AUDIENCE_DETAILS_GET_AUDIENCE_ACTIVITIES:null,AUDIENCE_DETAILS_GET_AUDIENCE_ERROR:null,AUDIENCE_DETAILS_GET_AUDIENCE_LOOKALIKE_NAMES:null,AUDIENCE_DETAILS_GET_AUDIENCE_APP:null,AUDIENCE_DETAILS_GET_AUDIENCE_SHARED_WTIH_ACCOUNTS:null,AUDIENCE_DETAILS_GET_AUDIENCE_SHARED_BY_ACCOUNT:null,AUDIENCE_DETAILS_INIT_AUDIENCE:null,AUDIENCE_DETAILS_LOAD_AUDIENCE_APP:null,AUDIENCE_DETAILS_LOAD_AUDIENCE_SHARING_INFO:null,AUDIENCE_DETAILS_LOAD_AUDIENCE_ACTIVITIES:null,AUDIENCE_DETAILS_LOAD_AUDIENCE_LOOKALIKE_NAMES:null,AUDIENCE_DETAILS_UPDATE_AUDIENCE_ERROR:null,AUDIENCE_DETAILS_UPDATE_AUDIENCE:null,ERROR:null,VIEW_CLEAR_ERRORS:null,VIEW_SHOW_SAVED_AUDIENCE_EDIT_DIALOG:null,VIEW_CLOSE_SAVED_AUDIENCE_EDIT_DIALOG:null,VIEW_SHOW_SAVED_AUDIENCE_CREATE_DIALOG:null,VIEW_CLOSE_SAVED_AUDIENCE_CREATE_DIALOG:null,VIEW_SHOW_CREATE_CA_DIALOG:null,VIEW_CLOSE_CREATE_CA_DIALOG:null,VIEW_SHOW_DELETE_AUDIENCE_DIALOG:null,VIEW_CLOSE_DELETE_AUDIENCE_DIALOG:null,VIEW_SHOW_PIXEL_DIALOG:null,VIEW_CLOSE_PIXEL_DIALOG:null,VIEW_SHOW_REGULAR_EDIT_DIALOG:null,VIEW_CLOSE_REGULAR_EDIT_DIALOG:null,VIEW_SHOW_WCA_DIALOG:null,VIEW_CLOSE_WCA_DIALOG:null,VIEW_SHOW_MACA_DIALOG:null,VIEW_CLOSE_MACA_DIALOG:null,VIEW_SHOW_SHARE_AUDIENCE_DIALOG:null,VIEW_CLOSE_SHARE_AUDIENCE_DIALOG:null,VIEW_SHOW_LOOKALIKE_DIALOG:null,VIEW_CLOSE_LOOKALIKE_DIALOG:null,VIEW_SHOW_SAVED_TARGET_SPEC_DIALOG:null,VIEW_CLOSE_SAVED_TARGET_SPEC_DIALOG:null,VIEW_SHOW_BULK_DELETE_DIALOG:null,VIEW_CLOSE_BULK_DELETE_DIALOG:null,VIEW_SHOW_OPT_OUT_DIALOG:null,VIEW_CLOSE_OPT_OUT_DIALOG:null,VIEW_CUSTOM_AUDIENCE_CURSOR_CHANGE:null,VIEW_SAVED_TARGET_SPEC_CURSOR_CHANGE:null,VIEW_COLUMN_DISPLAY_CHANGE:null,VIEW_INIT_COLUMN_DISPLAY:null,VIEW_SHOW_FILTER_PANE:null,VIEW_HIDE_FILTER_PANE:null,VIEW_UPDATE_FILTER_SET:null,VIEW_UPDATE_FILTERING_STATE:null,VIEW_UPDATE_LOADING_MORE_AUDIENCES:null,VIEW_CLICK_AUDIENCE_CHECKBOX:null,VIEW_CLEAR_AUDIENCE_SELECTION:null,CREATE_AUDIENCE_RESET:null,CREATE_AUDIENCE_SET_VIEW_STAGE:null,CREATE_AUDIENCE_SET_VIEW_DIALOG_TYPE:null,CREATE_AUDIENCE_SHOW_MACA_DIALOG:null,UPDATE_AUDIENCE_ERROR:null,UPDATE_NAME_DESCRIPTION_COMPLETE:null,FILE_IMPORT_CHECK_FILE:null,FILE_IMPORT_START_UPLOAD:null,FILE_IMPORT_CREATE_AUDIENCE_COMPLETE:null,FILE_IMPORT_UPLOAD_COMPLETE:null,FILE_IMPORT_UPLOAD_PROGRESS:null,FILE_IMPORT_ERROR:null,COPY_PASTE_START_UPLOAD:null,COPY_PASTE_UPLOAD_PROGRESS:null,COPY_PASTE_CREATE_AUDIENCE_COMPLETE:null,COPY_PASTE_UPLOAD_COMPLETE:null,COPY_PASTE_ERROR:null,MAIL_CHIMP_FETCH_COMPLETE:null,MAIL_CHIMP_START_UPLOAD:null,MAIL_CHIMP_UPLOAD_PROGRESS:null,MAIL_CHIMP_UPLOAD_COMPLETE:null,MAIL_CHIMP_ERROR:null,RECEIVE_AD_ACCOUNT_APPS:null,UPDATE_CUSTOM_AUDIENCES:null,RECEIVED_ALL_CUSTOM_AUDIENCES:null,UPDATE_SAVED_AUDIENCES:null,RECEIVED_ALL_SAVED_AUDIENCES:null,FETCH_AUDIENCE_HISTORY_SIZE:null,FETCH_AUDIENCE_HISTORY_SIZE_ERROR:null});f.exports=i;},null);
__d('AdsAMViewActions',['AdsAMActionTypes','AdsDispatcher'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={showCreateCustomAudienceDialog:function(){i.handleUpdateFromViewAction({type:h.VIEW_SHOW_CREATE_CA_DIALOG});},closeCreateCustomAudienceDialog:function(){i.handleUpdateFromViewAction({type:h.VIEW_CLOSE_CREATE_CA_DIALOG});},showDeleteAudienceDialog:function(k){i.handleUpdateFromViewAction({audienceId:k,type:h.VIEW_SHOW_DELETE_AUDIENCE_DIALOG});},closeDeleteAudienceDialog:function(){i.handleUpdateFromViewAction({type:h.VIEW_CLOSE_DELETE_AUDIENCE_DIALOG});},showPixelDialog:function(k){i.handleUpdateFromViewAction({audienceId:k,type:h.VIEW_SHOW_PIXEL_DIALOG});},closePixelDialog:function(){i.handleUpdateFromViewAction({type:h.VIEW_CLOSE_PIXEL_DIALOG});},showRegularEditDialog:function(k){i.handleUpdateFromViewAction({audienceId:k,type:h.VIEW_SHOW_REGULAR_EDIT_DIALOG});},closeRegularEditDialog:function(){i.handleUpdateFromViewAction({type:h.VIEW_CLOSE_REGULAR_EDIT_DIALOG});},showWCADialog:function(k){i.handleUpdateFromViewAction({audienceId:k,type:h.VIEW_SHOW_WCA_DIALOG});},closeWCADialog:function(){i.handleUpdateFromViewAction({type:h.VIEW_CLOSE_WCA_DIALOG});},showMACADialog:function(){i.handleUpdateFromViewAction({type:h.VIEW_SHOW_MACA_DIALOG});},closeMACADialog:function(){i.handleUpdateFromViewAction({type:h.VIEW_CLOSE_MACA_DIALOG});},showShareAudienceDialog:function(k){i.handleUpdateFromViewAction({audienceId:k,type:h.VIEW_SHOW_SHARE_AUDIENCE_DIALOG});},closeShareAudienceDialog:function(){i.handleUpdateFromViewAction({type:h.VIEW_CLOSE_SHARE_AUDIENCE_DIALOG});},showLookalikeDialog:function(k){i.handleUpdateFromViewAction({audienceId:k,type:h.VIEW_SHOW_LOOKALIKE_DIALOG});},closeLookalikeDialog:function(){i.handleUpdateFromViewAction({type:h.VIEW_CLOSE_LOOKALIKE_DIALOG});},showSavedAudienceEditDialog:function(k){i.handleUpdateFromViewAction({audienceId:k,type:h.VIEW_SHOW_SAVED_AUDIENCE_EDIT_DIALOG});},closeSavedAudienceEditDialog:function(){i.handleUpdateFromViewAction({type:h.VIEW_CLOSE_SAVED_AUDIENCE_EDIT_DIALOG});},showSavedAudienceCreateDialog:function(){i.handleUpdateFromViewAction({type:h.VIEW_SHOW_SAVED_AUDIENCE_CREATE_DIALOG});},closeSavedAudienceCreateDialog:function(){i.handleUpdateFromViewAction({type:h.VIEW_CLOSE_SAVED_AUDIENCE_CREATE_DIALOG});},showSavedTargetSpecDialog:function(k){i.handleUpdateFromViewAction({audienceId:k,type:h.VIEW_SHOW_SAVED_TARGET_SPEC_DIALOG});},closeSavedTargetSpecDialog:function(){i.handleUpdateFromViewAction({type:h.VIEW_CLOSE_SAVED_TARGET_SPEC_DIALOG});},showBulkDeleteDialog:function(){i.handleUpdateFromViewAction({type:h.VIEW_SHOW_BULK_DELETE_DIALOG});},closeBulkDeleteDialog:function(){i.handleUpdateFromViewAction({type:h.VIEW_CLOSE_BULK_DELETE_DIALOG});},showOptOutDialog:function(k){i.handleUpdateFromViewAction({audienceId:k,type:h.VIEW_SHOW_OPT_OUT_DIALOG});},closeOptOutDialog:function(){i.handleUpdateFromViewAction({type:h.VIEW_CLOSE_OPT_OUT_DIALOG});},updateCustomAudienceAfterCursor:function(k){i.handleUpdateFromViewAction({paging:k,type:h.VIEW_CUSTOM_AUDIENCE_CURSOR_CHANGE});},updateSavedTargetSpecAfterCursor:function(k){i.handleUpdateFromViewAction({paging:k,type:h.VIEW_SAVED_TARGET_SPEC_CURSOR_CHANGE});},initializeColumnsShown:function(k){i.handleUpdateFromInitialServer({columnsShown:k,type:h.VIEW_INIT_COLUMN_DISPLAY});},updateColumnShown:function(k,l){i.handleUpdateFromViewAction({column:k,show:l,type:h.VIEW_COLUMN_DISPLAY_CHANGE});},showFilterPane:function(){i.handleUpdateFromViewAction({type:h.VIEW_SHOW_FILTER_PANE});},hideFilterPane:function(){i.handleUpdateFromViewAction({type:h.VIEW_HIDE_FILTER_PANE});},updateFilterSet:function(k){i.handleUpdateFromViewAction({filterSet:k,type:h.VIEW_UPDATE_FILTER_SET});},updateFilteringState:function(k){i.handleUpdateFromViewAction({isFiltering:k,type:h.VIEW_UPDATE_FILTERING_STATE});},updateLoadingMoreAudiencesState:function(k){i.handleUpdateFromViewAction({isLoadingMoreAudiences:k,type:h.VIEW_UPDATE_LOADING_MORE_AUDIENCES});},clickAudienceCheckbox:function(k,l){i.handleUpdateFromViewAction({audienceID:k,selected:l,type:h.VIEW_CLICK_AUDIENCE_CHECKBOX});},clearAudienceSelection:function(){i.handleUpdateFromViewAction({type:h.VIEW_CLEAR_AUDIENCE_SELECTION});}};f.exports=j;},null);
__d('AudienceManagerURLConstants',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();f.exports={CUSTOM_AUDIENCE_TOS:'/ads/manage/customaudiences/tos.php',MACA_LEARN_MORE:'https://developers.facebook.com/docs/ads-for-apps/mobile-app-custom-audiences',MACA_LEARN_MORE_MULTIKEY:'https://facebook.com',MACA_ANDROID_SDK:'https://developers.facebook.com/docs/android/app-events/',MACA_IOS_SDK:'https://developers.facebook.com/docs/ios/app-events/',MACA_ANDROID_ACTIVATE_APP:'https://developers.facebook.com/docs/android/app-events#appActivation',MACA_IOS_ACTIVATE_APP:'https://developers.facebook.com/docs/ios/app-events/#appActivation',MACA_CANVAS_SDK:'https://developers.facebook.com/docs/canvas/appevents',WCA_GETTING_STARTED:'https://www.facebook.com/business/a/online-sales/custom-audiences-website',WCA_TECHNICAL_DOC:'https://developers.facebook.com/docs/ads-for-websites/website-custom-audiences/getting-started',WCA_CONFIGURE_RULES_DOC:'https://developers.facebook.com/docs/ads-for-websites/website-custom-audiences/getting-started#configure-rules',WCA_INSTALL_PIXEL_DOC:'https://developers.facebook.com/docs/ads-for-websites/website-custom-audiences/getting-started#install-the-pixel',WCA_TARGET_IN_AD:'https://developers.facebook.com/docs/ads-for-websites/website-custom-audiences/getting-started#target-your-audience',WCA_FEEDBACK:'https://www.facebook.com/help/contact/237474373109946',MOBILE_ADVERTISING_IDS_DOC:'https://developers.facebook.com/docs/ads-for-apps/custom-audiences-for-mobile-apps/'};},null);
__d('WebRemarketingDialogGear.react',['AudienceManagerURLConstants','ContextualDialogArrow','ContextualLayerAutoFlip','Image.react','PopoverMenu.react','React','XUIButton.react','ReactXUIMenu','XUIMenuSeparator.react','fbt','ix'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){'use strict';if(c.__markCompiled)c.__markCompiled();var s=o.Item,t=m.PropTypes,u="pixel",v=m.createClass({displayName:'WebRemarketingDialogGear',propTypes:{learnMoreURL:t.string,onViewPixelCode:t.func},render:function(){return (m.createElement(l,{menu:m.createElement(o,{onItemClick:this._handleItemClick},this._getMenuItems()),layerBehaviors:[j,i]},m.createElement(n,{image:m.createElement(k,{src:r('/images/ui/x/image/gear.png')})})));},_getMenuItems:function(){var w=[];if(this.props.onViewPixelCode)w.push(this._getViewPixelCodeMenuItem());if(this.props.learnMoreURL)w.push(this._getlearnMoreMenuItem());if(w.length)w.push(m.createElement(p,{key:'separator'}));w.push(this._getFeedbackMenuItem());return w;},_getViewPixelCodeMenuItem:function(){return (m.createElement(s,{value:u,key:u},q._("View Pixel Code")));},_getlearnMoreMenuItem:function(){return (m.createElement(s,{href:this.props.learnMoreURL,target:'_blank',key:'learnMore'},q._("Learn More")));},_getFeedbackMenuItem:function(){return (m.createElement(s,{href:h.WCA_FEEDBACK,target:'_blank',key:'feedback'},q._("Send Feedback")));},_handleItemClick:function(w,x){switch(x.item.getValue()){case u:this.props.onViewPixelCode();break;}}});f.exports=v;},null);
__d('AudienceManagerTextInput',['React','XUITextInput.react','cx','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l=h.PropTypes,m=h.createClass({displayName:'AudienceManagerTextInput',propTypes:{value:l.string,onChange:l.func.isRequired,className:l.string,isTextArea:l.bool,placehodler:l.string},getInitialState:function(){return {value:this.props.value};},componentWillReceiveProps:function(n){this.setState({value:n.value});},render:function(){if(this.props.isTextArea){return (h.createElement('textarea',babelHelpers._extends({},this.props,{className:k(this.props.className,"_5oum"+(!this.state.value?' '+"_5p0t":'')),value:this.state.value,onChange:this._onChange})));}else return (h.createElement(i,babelHelpers._extends({},this.props,{value:this.state.value,onChange:this._onChange,className:k(this.props.className,"_5rkv")})));},_onChange:function(n){this.setState({value:n.target.value});this.props.onChange(n.target.value);}});f.exports=m;},null);
__d('AdsFlexibleTargetingQETestConstant',['AdsCreationExperimentStore'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=h.getExperiment('flexible_targeting_typeahead');f.exports={NEW_SELECTION_STYLE:i.getParam('new_selection_style')==='1',NEW_DROPDOWN_HEIGHT:i.getParam('new_drop_down_height')==='1'};},null);
__d('AdsAccountDataManager',['AdsAccountActions','AdsAPIAdAccountFields','AdsBaseDataManager','AdsGraphAPI','CurrentUser','GraphAPIFieldUtils','adsGKCheck','fbt','memoize'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){if(c.__markCompiled)c.__markCompiled();var q,r;'use strict';var s=p(function(){var v=[i.ACCOUNT_ID,i.CAPABILITIES,i.CURRENCY,i.FUNDING_SOURCE,i.ID,i.IO_NUMBER,i.NAME,i.TIMEZONE_ID,i.TIMEZONE_OFFSETS,i.BUSINESS,i.USERPERMISSIONS+'.fields(business, role)\n      .user('+l.getID()+')',m.getFieldWithSubfields(i.BUSINESSLABELS,['business','name']),i.USERS];if(n('ads_pe_integrated_reporting_v1'))v.push(i.CREATED_TIME);if(n('ads_pe_account_friendly_name'))v.push(i.FRIENDLY_NAME);return v;});q=babelHelpers.inherits(t,j);r=q&&q.prototype;t.prototype.loadAll=function(v){v.forEach((function(w){return this.load(w);}).bind(this));};t.prototype.load=function(v){k.getWithGeneralMigration().adaccount(v).batched().get({fields:s()}).done(this.__handleSuccess.bind(this,['load'],v,null),this.__handleError.bind(this,['load'],v,null));};t.prototype.__onBatchLoaded=function(v){h.accountBatchLoaded(v);};t.prototype.__onBatchLoadError=function(v){h.accountBatchLoadError(v);};t.prototype.__getObjectTypeLabel=function(){return o._("Ad Account");};function t(){q.apply(this,arguments);}var u=new t();f.exports=u;},null);
__d('AdsPixelUIEnvironments',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={AM:null,CF:null,CM:null,LWI:null,PE:null,SAM:null},i={};Object.keys(h).forEach(function(j){return i[j]=j;});f.exports=i;},null);
__d('AdsAccountStoreWrapper',['AdInterfacesUiLogger','AdsAccountCapabilities','AdsAccountStore','AdsPixelUIEnvironments','CustomAudienceTosUtils','AdsAPIAdAccountFields','arrayContains','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){'use strict';if(c.__markCompiled)c.__markCompiled();p.prototype.getAccountID=function(){return this.$AdsAccountStoreWrapperClass1||this.$AdsAccountStoreWrapperClass2().account_id||this.$AdsAccountStoreWrapperClass2().accountID||'';};p.prototype.getAccountName=function(){return this.$AdsAccountStoreWrapperClass2().name||'';};p.prototype.getCurrency=function(){var r=this.$AdsAccountStoreWrapperClass2()[m.CURRENCY];!r?o(0):undefined;return r;};p.prototype.getTimezoneID=function(){var r=this.$AdsAccountStoreWrapperClass2()[m.TIMEZONE_ID];!(r!=null)?o(0):undefined;return r;};p.prototype.getUserSettings=function(){var r=this.$AdsAccountStoreWrapperClass2()[m.USER_SETTINGS];!(r!=null)?o(0):undefined;return r;};p.prototype.getEnvironment=function(){return this.$AdsAccountStoreWrapperClass3;};p.prototype.setTosAccepted=function(){this.$AdsAccountStoreWrapperClass4=true;};p.prototype.isTosAccepted=function(){if(this.$AdsAccountStoreWrapperClass4)return true;var r=this.$AdsAccountStoreWrapperClass2().tos_accepted||{},s=l.getTosRequirements().website_custom_audience;return r[s]?true:false;};p.prototype.canSeeUnifiedPixel=function(){return n(this.$AdsAccountStoreWrapperClass2().capabilities||[],i.CAN_USE_UNIFIED_PIXEL);};p.prototype.canSeeCustomConversion=function(){return n(this.$AdsAccountStoreWrapperClass2().capabilities||[],i.CAN_USE_CUSTOM_CONVERSION);};p.prototype.$AdsAccountStoreWrapperClass2=function(){if(!this.$AdsAccountStoreWrapperClass5){!this.$AdsAccountStoreWrapperClass1;return j.get(this.$AdsAccountStoreWrapperClass1);}return this.$AdsAccountStoreWrapperClass5.getSelectedAccount?this.$AdsAccountStoreWrapperClass5.getSelectedAccount():this.$AdsAccountStoreWrapperClass5.getAccount_DO_NOT_USE();};p.prototype.setAccountID=function(r){this.$AdsAccountStoreWrapperClass1=r;j.get(this.$AdsAccountStoreWrapperClass1);};p.prototype.setEnvironment=function(r,s){!(r in k)?o(0):undefined;this.$AdsAccountStoreWrapperClass3=r;this.$AdsAccountStoreWrapperClass5=s;this.$AdsAccountStoreWrapperClass6();};p.prototype.$AdsAccountStoreWrapperClass6=function(){h.setAccountID(this.getAccountID());h.setAppName(this.$AdsAccountStoreWrapperClass3);};function p(){}var q=new p();f.exports=q;},null);
__d('AdsSearchHostTokenizerListItem.react',['AdsSBTokenizerConstants','AdsSBTokenizerWhiteBoxLayer.react','React','XUICloseButton.react','cx'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m=j.PropTypes,n=j.createClass({displayName:'AdsSearchHostTokenizerListItem',propTypes:{entry:m.object.isRequired,onRemoveEntry:m.func.isRequired,uniqueID:m.string.isRequired},getInitialState:function(){return {highlighted:false};},render:function(){return (j.createElement(i,{info:this.props.entry,type:h.ACTIVE_STATES.BROWSE,shown:this.state.highlighted,onMouseEnterBox:this._onMouseEnterBox,onMouseLeaveBox:this._onMouseLeaveBox,uniqueID:this.props.uniqueID},j.createElement('li',{className:"_5w24 _5ahx",onMouseEnter:this._onMouseEnter,onMouseLeave:this._onMouseLeave,key:this.props.entry.getUniqueID()},this.props.entry.getTitle(),j.createElement(k,{size:'small',className:"_5w28 _5ah_",onClick:this.props.onRemoveEntry}))));},_onMouseEnter:function(){this.setState({highlighted:true});},_onMouseLeave:function(){this.setState({highlighted:false});},_onMouseEnterBox:function(){this.setState({highlighted:true});},_onMouseLeaveBox:function(){this.setState({highlighted:false});}});f.exports=n;},null);
__d('AdsSearchHostTokenizerList.react',['AdsSearchHostTokenizerListItem.react','React','cx'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=i.PropTypes,l=i.createClass({displayName:'AdsSearchHostTokenizerList',propTypes:{entries:k.array.isRequired,onRemoveEntry:k.func.isRequired,uniqueID:k.string.isRequired},render:function(){return (i.createElement('div',{className:"_5w21"},this.props.entries.map(this._toListItem)));},_toListItem:function(m){return (i.createElement(h,{entry:m,onRemoveEntry:(function(){return this.props.onRemoveEntry(m);}).bind(this),uniqueID:this.props.uniqueID,key:m.getUniqueID()}));}});f.exports=l;},null);
__d('AdsSBTokenizerCheckBox.react',['React','cx'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=h.PropTypes,k=h.createClass({displayName:'AdsSBTokenizerCheckBox',propTypes:{hovered:j.bool,checked:j.bool,onMouseEnter:j.func,onMouseLeave:j.func,onMouseDown:j.func},render:function(){var l=this.props.hovered,m=this.props.checked,n=(!l&&m?"_2ut4":'')+(!l&&!m?' '+"_2ut5":'')+(l&&m?' '+"_2ut6":'')+(l&&!m?' '+"_2ut7":'')+(' '+"_2ut8")+(' '+"_4b91");return (h.createElement('div',{className:n,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onMouseDown:this.props.onMouseDown},h.createElement('span',{className:"_2_2o"})));}});f.exports=k;},null);
__d('AdsSB2TypeaheadEntriesView.react',['AdsSBAreaClicked','AdsSBTokenizerConstants','AdsSBTokenizerPlusIcon.react','AdsSBTokenizerCheckBox.react','AdsSBTokenizerWhiteBox.react','ScrollableArea.react','React','cx'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){if(c.__markCompiled)c.__markCompiled();var p=n.PropTypes,q=i.ROW.HEIGHT,r=i.TYPEAHEAD.HEIGHT,s=i.WHITE_BOX.WIDTH,t=n.createClass({displayName:'AdsSB2TypeaheadEntriesView',propTypes:{highlightedEntry:p.object,entries:p.array.isRequired,onSelect:p.func.isRequired,onHighlight:p.func,width:p.number.isRequired,uniqueID:p.string.isRequired,showWhiteBox:p.bool,showPlusIcon:p.bool,reportedInterests:p.object,addReportedInterest:p.func,deleteReportedInterest:p.func,showCheckIcon:p.bool},getInitialState:function(){return {};},getDefaultProps:function(){return {showWhiteBox:true,showPlusIcon:true};},componentDidUpdate:function(){this._setScrollTop();},render:function(){var v=this.props.entries;if(v&&v.length){var w=v.map(this._renderRow,this),x,y=this.props.width;if(this.props.highlightedEntry&&Object.keys(this.props.highlightedEntry).length>0&&this.props.showWhiteBox){x=n.createElement('div',{className:"_hpi"},n.createElement(l,babelHelpers._extends({},this.props,{info:this.props.highlightedEntry,type:i.ACTIVE_STATES.SEARCH,uniqueID:this.props.uniqueID})));y=this.props.width+s;}var z="_1y42"+(this.props.showWhiteBox?' '+"_2ui8":'');return (n.createElement('div',{className:z,onMouseLeave:this._onMouseLeave,onMouseDown:this._onMouseDown},n.createElement('ul',{className:"_hpl clearfix",style:{width:y}},n.createElement('div',{className:"_hpp _hpj",style:{width:this.props.width}},n.createElement(m,{ref:'scrollArea',width:this.props.width,height:r},n.createElement('div',{className:"_hpt",style:{width:this.props.width-1,minHeight:r}},w)),x))));}return n.createElement('ul',{className:"_hpn"});},_renderRow:function(v,w){return (n.createElement(u,{key:v.getUniqueID(),onSelect:this.props.onSelect,onHighlight:this.props.onHighlight,onUnhlight:this.props.onHighlight,index:w,highlighted:v===this.props.highlightedEntry,entry:v,showCheckIcon:this.props.showCheckIcon}));},_onMouseLeave:function(){this.props.onHighlight&&this.props.onHighlight();},_onMouseDown:function(){h.setAreaClicked(this.props.uniqueID,true);},_setScrollTop:function(){var v=this.props.highlightedEntry;if(!this.refs||!this.refs.scrollArea||!v||!v.name)return;var w=this.props.entries.indexOf(v)*q,x=this.refs.scrollArea.getArea(),y=x.getScrollTop(),z;if(y+r<w+q){z=q*(parseInt(y/q,10)+2);x.setScrollTop(z);}else if(y>w){z=q*(parseInt(y/q,10)-1);x.setScrollTop(z);}}}),u=n.createClass({displayName:'EntryRowView',propTypes:{entry:p.object.isRequired,onHighlight:p.func,showCheckIcon:p.bool},render:function(){var v="_hpf"+(this.props.highlighted?' '+"_hpr":''),w=this.props.entry,x;if(w.numLeafCategories&&w.numLeafCategories>0)x=n.createElement('div',{className:"_hpg"},w.numLeafCategories);return (n.createElement('li',{className:v},n.createElement('div',{className:"_hpw",onMouseDown:this._onMouseDown,onMouseEnter:this._onMouseEnter},n.createElement('div',{className:"_17_t"},n.createElement('div',{className:"_hpq"},n.createElement('div',{className:"_hps"},this._getEntryTitleBolded(w)),x),this.props.showCheckIcon?n.createElement(k,{hovered:this.props.highlighted}):null,this.props.showPlusIcon?n.createElement(j,{hovered:this.props.highlighted}):'')),n.createElement('div',{className:"_hpo"}),n.createElement('div',{className:"_5oe8"})));},_getEntryTitleBolded:function(v){var w=v.getTitle(),x=w.split(' '),y=v.matchArray,z=v.disambiguationCategory,aa=[];for(var ba=0;ba<x.length;ba++)if(!y||!y[ba]){aa.push(n.createElement('span',null,x[ba]+' '));}else aa.push(n.createElement('span',null,x[ba].substring(0,y[ba].start),n.createElement('span',{className:"_hpm"},x[ba].substring(y[ba].start,y[ba].end)),x[ba].substring(y[ba].end)+' '));var ca=null;if(z)ca=n.createElement('span',{className:"_5ovq"},' '+z);aa.push(ca);return aa;},_onMouseDown:function(v){this.props.onSelect(this.props.entry,v);},_onMouseEnter:function(){this.props.onHighlight&&this.props.onHighlight(this.props.entry);}});f.exports=t;},null);
__d('AdsSearchHostTokenizer.react',['AbstractTypeahead.react','AdsSearchHostTokenizerList.react','React','SearchableEntry','AdsSB2TypeaheadEntriesView.react','fbt','cx'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=j.PropTypes,p=450,q='AdsSearchHostTokenizer',r=j.createClass({displayName:'AdsSearchHostTokenizer',propTypes:{onUpdate:o.func.isRequired,tokens:o.array.isRequired,dataSource:o.object.isRequired},getInitialState:function(){return {queryString:''};},render:function(){return (j.createElement('div',{className:"_4g1r"},this._getTokenList(),this._getTypeahead()));},_getTokenList:function(){if(this.props.tokens.length===0)return null;var s=this._hideTypeahead()?"_1-my":'';return (j.createElement('div',{className:s},j.createElement(i,{entries:this._getEntries(),onRemoveEntry:this._onRemoveEntry,uniqueID:q})));},_getTypeahead:function(){if(this._hideTypeahead())return null;return (j.createElement('div',null,j.createElement(h,{className:"_1qju",queryString:this.state.queryString,showEntriesOnFocus:true,excludedEntries:this._getExcludedEntries(),onSelectAttempt:this._onAddEntry,onChange:this._onInputChange,onBlur:this._onBlur,searchSource:this.props.dataSource,presenter:this._getPresenter(),placeholder:m._("Choose a website domain"),ref:'typeahead'}),this._getBrowseButton()));},_getBrowseButton:function(){return (j.createElement('div',{onMouseDown:this._onBrowse,key:'browse',className:"_49v2 _4-97 _xkk"},m._("Browse"),j.createElement('div',{className:"_ekn _xkl"})));},_hideTypeahead:function(){if(this.props.dataSource&&this.props.dataSource.getHostNumber()===this.props.tokens.length)return true;return false;},_onBrowse:function(){setTimeout((function(){this.setState({queryString:''});this.refs.typeahead.focusInput();}).bind(this),0);},_getEntries:function(){var s=[];this.props.tokens.forEach(function(t){if(t)s.push(new k({uniqueID:t,title:t}));});return s;},_getExcludedEntries:function(){var s={};this.props.tokens.forEach(function(t){s[t]=new k({uniqueID:t,title:t});});return s;},_onRemoveEntry:function(s){var t=this._getEntries().slice(),u=this.props.tokens.indexOf(s.getTitle());if(u!==false){t.splice(u,1);this.props.onUpdate(t);}},_onAddEntry:function(s){this.props.onUpdate(this._getEntries().concat([s]));},_getPresenter:function(){return {ViewRenderer:l,useLayer:true,extraRendererProps:{width:p,uniqueID:q,showWhiteBox:false,excludedEntries:this._getExcludedEntries()}};},_onBlur:function(){this.setState({queryString:''});},_onInputChange:function(event){this.setState({queryString:event.target.value});}});f.exports=r;},null);
__d('AdsPixelAudienceDialogTypes',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={INTRODUCTION_DIALOG:null,VIEW_REMARKETING_PIXEL_DIALOG:null,CREATE_AUDIENCE_DIALOG:null,CREATE_AUDIENCE_REQUEST_SENT:null,CREATE_AUDIENCE_REQUEST_COMPLETE:null,CREATING_PIXEL:null,EDIT_AUDIENCE_DIALOG:null,LOADING_PIXEL:null,SEND_PIXEL_EMAIL_DIALOG:null,NO_DIALOG:null},i={};Object.keys(h).forEach(function(j){return i[j]=j;});f.exports=i;},null);
__d('AdsCMActionCategories',['AdsDispatchActionTypeUtils'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i='ADS_CM_CATEGORY_',j={API_CALL:null,CLEANUP:null,EDIT:null,EDIT_DRAFT:null,ERROR:null,HELP:null,INITIAL_LOAD:null,LOAD_DATA:null,STATE_CHANGE:null,VIEW_PERSIST:null},k=h.createActionTypeMap(i,j);f.exports=k;},null);
__d('AdsPixelViewActions',['AdInterfacesUiLogger','AdsCMActionCategories','AdsDispatcher','AdsPixelViewActionTypes'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l={updateSortSetting:function(m,n,o){j.handleUpdateFromViewAction({data:{tableName:m,dataKey:n,sortStatus:o},type:k.UPDATE_SORT_SETTING});h.log(k.UPDATE_SORT_SETTING,{tableName:m,dataKey:n,sortStatus:o});},resetPixelList:function(){j.handleUpdateFromViewAction({type:k.RESET_PIXEL_LIST});h.log(k.RESET_PIXEL_LIST);},updatePixelTableSelection:function(m){j.handleUpdateFromViewAction({data:{selectedID:m},type:k.UPDATE_TABLE_SELECTION});h.log(k.UPDATE_TABLE_SELECTION,{selectedID:m});},updateViewPixelCodeSelection:function(m){j.handleUpdateFromViewAction({data:{viewPixelCodeSelectedID:m},type:k.UPDATE_VIEW_PIXEL_CODE_SELECTION});h.log(k.UPDATE_VIEW_PIXEL_CODE_SELECTION,{viewPixelCodeSelectedID:m});},updateDatePickerSetting:function(m){j.handleUpdateFromViewAction({category:i.STATE_CHANGE,data:{choice:m,replaceURL:true},type:k.UPDATE_DATE_PICKER_SETTING});h.log(k.UPDATE_DATE_PICKER_SETTING,{choice:m});},updateConversionChoice:function(m){h.log(k.UPDATE_CONVERSION_CHOICE,{conversion:m});j.handleUpdateFromViewAction({data:{conversion:m},type:k.UPDATE_CONVERSION_CHOICE});},updateInsightTypeSetting:function(m){j.handleUpdateFromViewAction({data:{insightType:m},type:k.UPDATE_INSIGHT_SETTING});h.log(k.UPDATE_INSIGHT_SETTING,{insightType:m});},showCreateDialog:function(){j.handleUpdateFromViewAction({type:k.VIEW_SHOW_PIXEL_CREATE_DIALOG});h.log(k.VIEW_SHOW_PIXEL_CREATE_DIALOG);},closeCreateDialog:function(){j.handleUpdateFromViewAction({type:k.VIEW_CLOSE_PIXEL_CREATE_DIALOG});h.log(k.VIEW_CLOSE_PIXEL_CREATE_DIALOG);},startPixelNUX:function(){j.handleUpdateFromViewAction({type:k.VIEW_PIXEL_NUX_START});h.log(k.VIEW_PIXEL_NUX_START);},endPixelNUX:function(){j.handleUpdateFromViewAction({type:k.VIEW_PIXEL_NUX_END});h.log(k.VIEW_PIXEL_NUX_END);},dialogTypeChange:function(m){j.handleUpdateFromViewAction({data:{dialogType:m},type:k.DIALOG_TYPE_CHANGE});h.log(k.DIALOG_TYPE_CHANGE,{dialogType:m});},trackingSpecChange:function(m){j.addPostDispatchCallback(function(){j.handleUpdateFromViewAction({data:{trackingSpec:m},type:k.TRACKING_SPEC_CHANGE});});},refreshPixelStatus:function(m){j.handleUpdateFromViewAction({data:{pixelID:m},type:k.REFRESH_PIXEL_CODE_STATUS});},refreshConversionPixelStatus:function(m){j.handleUpdateFromViewAction({data:{pixelID:m},type:k.REFRESH_CONVERSION_CODE_STATUS});},resizePage:function(){j.handleUpdateFromViewAction({type:k.RESIZE_PAGE});},setDisplayPixel:function(m){j.handleUpdateFromViewAction({data:{pixelID:m},type:k.DISPLAY_CHANGE});h.log(k.DISPLAY_CHANGE,{pixelID:m});},updateShouldShowIntroDialog:function(m,n){j.handleUpdateFromViewAction({data:{shouldShow:n,pixelID:m},type:k.VIEW_SHOW_PIXEL_INTRO_DIALOG});h.log(k.VIEW_SHOW_PIXEL_INTRO_DIALOG,{shouldShow:n});}};f.exports=l;},null);
__d('WebsiteCustomAudienceContentContainer.react',['React','ReactComponentWithPureRenderMixin'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=h.PropTypes,k=h.createClass({displayName:'WebsiteCustomAudienceContentContainer',mixins:[i],propTypes:{dao:j.object.isRequired,accountID:j.string.isRequired,audience:j.object,embedded:j.bool,onAudienceUpdated:j.func,onAudienceAdded:j.func,pixel:j.object},render:function(){return h.createElement('div',null,'To be implement');}});f.exports=k;},null);
__d('WebsiteCustomAudienceNew.react',['AdsAMViewActions','AdsPixelAudienceDialogTypes','AdsPixelViewActions','LayerHideOnEscape','React','ReactComponentWithPureRenderMixin','ReactLayeredComponentMixin','WebsiteCustomAudienceContentContainer.react','XUIDialog.react'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();var q=l.PropTypes,r=640,s=l.createClass({displayName:'WebsiteCustomAudienceNew',mixins:[n,m],propTypes:{dao:q.object.isRequired,accountID:q.string.isRequired,audience:q.object,onAudienceUpdated:q.func,onAudienceAdded:q.func,pixel:q.object},render:function(){return null;},renderLayers:function(){return {dialog:l.createElement(p,{layerHideOnBlur:false,shown:true,behaviors:{LayerHideOnEscape:k},width:r,onToggle:this._onToggle},this._renderDialogBody())};},_renderDialogBody:function(){return (l.createElement(o,{dao:this.props.dao,accountID:this.props.accountID,audience:this.props.audience,onAudienceUpdated:this.props.onAudienceUpdated,onAudienceAdded:this.props.onAudienceAdded,pixel:this.props.pixel}));},_onToggle:function(){h.closeWCADialog();j.dialogTypeChange(i.NO_DIALOG);}});f.exports=s;},null);
__d('AdsPixelServerActionTypes',['AdsDispatchActionTypeUtils'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i={PIXEL_ATTACHED:null,PIXEL_CREATED:null,RECEIVE_ACCOUNT_BUSINESS:null,RECEIVE_AUDIENCE:null,RECEIVE_BUSINESS_USERS:null,RECEIVE_ERROR:null,RECEIVE_DEFAULT_PIXEL:null,RECEIVE_PIXELS:null,RECEIVE_PIXEL_ACCOUNTS:null,RECEIVE_PIXEL_AUDIENCE:null,RECEIVE_PIXEL_PARAMETERS:null,RECEIVE_PIXEL_STATS:null,RECEIVE_PIXEL_UNIQUE_USER_STATS:null,WAIT_FOR_SERVER_RESPONSE:null},j=h.createActionTypeMap('PIXEL_SERVER_ACTION',i);f.exports=j;},null);
__d('AdsPixelServerActions',['AdsDispatcher','AdsPixelServerActionTypes'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={updatePixels:function(k){h.handleUpdateFromServerResponse({feedback:{pixelList:k},type:i.RECEIVE_PIXELS});},updateDefaultPixelID:function(k){h.handleUpdateFromServerResponse({data:k,type:i.RECEIVE_DEFAULT_PIXEL});},createPixel:function(k){h.handleUpdateFromServerResponse({pixel:k,type:i.PIXEL_CREATED});},attachPixel:function(){h.handleUpdateFromServerResponse({type:i.PIXEL_ATTACHED});},updatePixelAudiences:function(k,l,m){h.handleUpdateFromServerResponse({feedback:{pixelID:k,audiences:l,hasLoadAll:m},type:i.RECEIVE_PIXEL_AUDIENCE});},updateAudiences:function(k,l){h.handleUpdateFromServerResponse({feedback:{audienceID:k,audience:l},type:i.RECEIVE_AUDIENCE});},updatePixelAccounts:function(k,l){h.handleUpdateFromServerResponse({actionType:i.RECEIVE_PIXEL_ACCOUNTS,feedback:{pixelID:k,accounts:l}});},updatePixelStats:function(k,l,m){h.handleUpdateFromServerResponse({feedback:{pixelID:l,stats:m},statsType:k,type:i.RECEIVE_PIXEL_STATS});},updatePixelParameters:function(k,event,l){h.handleUpdateFromServerResponse({feedback:{pixelID:k,event:event,stats:l},type:i.RECEIVE_PIXEL_PARAMETERS});},updateUsersForBusiness:function(k,l){h.handleUpdateFromServerResponse({feedback:{businessID:k,users:l},type:i.RECEIVE_BUSINESS_USERS});},updateAccountBusiness:function(k){h.handleUpdateFromServerResponse({feedback:{business:k},type:i.RECEIVE_ACCOUNT_BUSINESS});},updateUniqueUser:function(k,l){h.handleUpdateFromServerResponse({feedback:{pixelID:k,uniqueUserData:l},type:i.RECEIVE_PIXEL_UNIQUE_USER_STATS});},receiveError:function(k){h.handleUpdateFromServerResponse({feedback:{error:k},type:i.RECEIVE_ERROR});},waitForServerResponse:function(){h.handleUpdateFromServerResponse({type:i.WAIT_FOR_SERVER_RESPONSE});}};f.exports=j;},null);
__d('AdsPixelConstants',['AdsOffsiteConversionConstants','Link.react','React','fbt','ix'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m={UNVERIFIED:h.statuses.UNVERIFIED,ACTIVE:h.statuses.ACTIVE,INACTIVE:h.statuses.INACTIVE,DELETED:h.statuses.DELETED},n=[j.createElement('span',null,k._("Copy and paste the following code between {=\u003Chead>} and {=\u003C\/head>} on the page of your website you want to track actions. For example, to track registrations, place the code on your 'registration completed' web page.",[k.param('=<head>','<head>'),k.param('=</head>','</head>')])),j.createElement('span',null,k._("To include a monetary value for each conversion, edit the code to assign a conversion value using the 'value' and 'currency' fields. You'll also need to modify the JavaScript code and image URL within {noscript}. {Learn more}.",[k.param('noscript','<noscript>'),k.param('Learn more',j.createElement(i,{href:'https://www.facebook.com/help/www/464828030234857',target:'_blank'},k._("Learn more")))])),j.createElement('span',null,k._("To verify that the pixel is working correctly, test it by navigating to the web page you put the pixel on. If it's working, the pixel will send that information back to Facebook.")),j.createElement('span',null,k._("Come back to Facebook to start using your website conversion-tracking pixel in your campaigns."))];f.exports={categoryLabels:{checkout:k._("Checkouts"),registration:k._("Registrations"),lead:k._("Leads"),key_page_view:k._("Key Page Views"),add_to_cart:k._("Adds to Cart"),other:k._("Other Website Conversions")},statuses:m,pixelVerificationSteps:n};},null);
__d('AdsPixelStatusEnum',['keyMirror'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=h({ACTIVE:null,INACTIVE:null,NEVER_ACTIVE:null});f.exports=i;},null);
__d('AdsPixelStatusUtils',['AdsPixelConstants','AdsPixelStatusEnum','Image.react','React','cx','ex','fbt','invariant','ix'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();var q=h.statuses,r={getUserFacingStatus:function(s){switch(s){case i.ACTIVE:return n._("Active");case i.INACTIVE:return n._("No Recent Activity");case i.NEVER_ACTIVE:return n._("No Activity Yet");default:o(0);}},getStatsStartTime:function(){return '-14 days';},getIcon:function(s){return (k.createElement(j,{src:this._getIconSrc(s),className:"_3-8_"}));},_getIconSrc:function(s){switch(s){case i.ACTIVE:return p('/images/ads/pixel/util/status/status_green.png');case i.INACTIVE:return p('/images/ads/pixel/util/status/status_gray.png');case i.NEVER_ACTIVE:return p('/images/ads/pixel/util/status/status_red.png');default:o(0);}},convertLegacyPixelStatus:function(s){switch(s){case q.ACTIVE:return i.ACTIVE;case q.INACTIVE:return i.INACTIVE;case q.UNVERIFIED:case q.DELETED:return i.NEVER_ACTIVE;default:throw new Error(m('Invalid legacy pixel status %s',s));}}};f.exports=r;},null);
__d('AdsPixelStatsTypes',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={DEVICE:null,DOMAIN:null,EVENT:null,TRAFFIC:null,URL:null},i={};Object.keys(h).forEach(function(j){return i[j]=j.toLowerCase();});f.exports=i;},null);
__d('StatsTypeToAggregationType',['AdsPixelStatsTypes'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i={};i[h.DOMAIN]='host';i[h.EVENT]='event';i[h.TRAFFIC]='pixel_fire';i[h.URL]='url';i[h.DEVICE]='device_type';f.exports=i;},null);
__d("XAdsDefaultPixelController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/pixel\/default_pixel\/",{account_id:{type:"Int",required:true},domains:{type:"StringVector",required:true}});},null,{});
__d("XAdsPixelDialogStatusController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/pixel\/dialogstatus\/",{pixel_id:{type:"String",required:true}});},null,{});
__d("XAdsPixelUniqueUserController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/pixels\/unique_user\/",{pixel_id:{type:"Int",required:true}});},null,{});
__d('AdsPixelGraphAPI',['AdInterfacesUiLogger','AdsAccountStoreWrapper','AdsPixelServerActions','AdsPixelStatusUtils','AdsPixelViewActions','AppConstants.brands','AsyncRequest','CustomAudienceTosUtils','AdsGraphAPI','StatsTypeToAggregationType','XAdsDefaultPixelController','XAdsPixelDialogStatusController','XAdsPixelUniqueUserController','dotAccess','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){'use strict';if(c.__markCompiled)c.__markCompiled();var w=m.DEFAULT_API_LIMIT,x=['external_event_source'],y=['account_id','name'],z=['id','name'],aa=['code','creation_time','last_fired_time','name','owner_business','owner_ad_account','shared_agencies'],ba={loadPixels:function(){p.getGeneralMigrationVersion().adaccount(i.getAccountID()).edge('adspixels').get({fields:aa}).done(function(ca){return j.updatePixels(ca.data);},function(ca){return j.receiveError(ca);});},loadPixel:function(ca){p.getGeneralMigrationVersion().object('adspixel',ca).get({fields:aa}).done(function(da){return j.updatePixels([da]);},function(da){return j.receiveError(da);});},acceptTOS:function(){var ca=o.getTosRequirements().website_custom_audience;p.getGeneralMigrationVersion().adaccount(i.getAccountID()).edge('customaudiencestos').post({accountId:i.getAccountID(),tos_id:ca}).done(function(da){i.setTosAccepted();},function(da){return j.receiveError(da);});},createPixel:function(ca,da){h.log('unified_pixel_create_pixel_attempt');j.waitForServerResponse();p.getGeneralMigrationVersion().adaccount(i.getAccountID()).edge('adspixels').post({name:ca}).done(function(ea){p.getGeneralMigrationVersion().object('adspixels',ea.id).get({fields:aa}).done(function(fa){j.createPixel(fa);j.updatePixels([fa]);h.log('unified_pixel_create_pixel_success');if(da)da();},function(fa){j.receiveError(fa);h.log('unified_pixel_create_pixel_fail');});});},editPixel:function(ca,da,ea){p.getGeneralMigrationVersion().object('adspixel',ca).post(da).done(function(fa){ea&&ea(fa);if(fa.success)j.updatePixels([Object.assign({id:ca},da)]);},function(fa){return j.receiveError(fa);});},loadAudiences:function(ca){p.getGeneralMigrationVersion().adaccount(i.getAccountID()).edge('customaudiences').get({pixel_id:ca,fields:z}).done(function(da){j.updatePixelAudiences(ca,da.data,u(da,'paging.next')?false:true);},function(da){return j.receiveError(da);});},loadAudience:function(ca){p.getGeneralMigrationVersion().object('customaudience',ca).get({fields:x}).done(function(da){j.updateAudiences(ca,da);},function(da){return j.receiveError(da);});},loadPixelAccounts:function(ca,da){p.getGeneralMigrationVersion().object('adspixel',ca).edge('shared_accounts').get({business:da,fields:y}).done(function(ea){j.updatePixelAccounts(ca,ea.data);},function(ea){return j.receiveError(ea);});},loadStats:function(ca,da){!(ca in q)?v(0):undefined;p.getGeneralMigrationVersion().object('adspixel',da).edge('stats').get({aggregation:q[ca],start_time:k.getStatsStartTime()}).done(function(ea){j.updatePixelStats(ca,da,ea.data);},function(ea){return j.receiveError(ea);});},loadEventParameters:function(event,ca){if(!event)return;p.getGeneralMigrationVersion().object('adspixel',ca).edge('stats').get({event:event,aggregation:'custom_data_field',start_time:k.getStatsStartTime()}).done(function(da){j.updatePixelParameters(ca,event,da.data);},function(da){return j.receiveError(da);});},loadAccountBusiness:function(){p.getGeneralMigrationVersion().adaccount(i.getAccountID()).get({fields:['business']}).done(function(ca){j.updateAccountBusiness(u(ca,'business.id'));},function(ca){return j.receiveError(ca);});},loadUsersForBusiness:function(ca){p.getGeneralMigrationVersion().object('business',ca).edge('userpermissions').get({limit:w}).done(function(da){j.updateUsersForBusiness(ca,da.data);},function(da){return j.receiveError(da);});},loadUniqueUser:function(ca){var da=t.getURIBuilder().setInt('pixel_id',ca).getURI();new n().setURI(da).setHandler(function(ea){j.updateUniqueUser(ca,ea.payload);}).setErrorHandler(function(ea,fa){return j.receiveError(fa);}).send();},loadDefaultPixelID:function(ca){var da=r.getURIBuilder().setInt('account_id',i.getAccountID()).setStringVector('domains',ca).getURI();new n().setURI(da).setHandler(function(ea){j.updateDefaultPixelID(ea.payload);}).setErrorHandler(function(ea,fa){return j.receiveError(fa);}).send();},loadDialogState:function(ca){var da=s.getURIBuilder().setString('pixel_id',ca).getURI();new n().setURI(da).setHandler(function(ea){l.updateShouldShowIntroDialog(ca,ea.payload.shouldShowPixelDialog);}).send();}};f.exports=ba;},null);
__d('AdsPixelAudienceCreateStore',['AdsBaseStore','AdsPixelAudienceDialogTypes','AdsPixelGraphAPI','AdsPixelServerActionTypes','AdsPixelViewActionTypes','dotAccess'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n,o;'use strict';n=babelHelpers.inherits(p,h);o=n&&n.prototype;function p(){o.constructor.call(this);this.$AdsPixelAudienceCreateStoreClass1=i.NO_DIALOG;this.$AdsPixelAudienceCreateStoreClass2={};}p.prototype.getStoreName=function(){return 'AdsPixelAudienceCreateStore';};p.prototype.onDispatchToken=function(r){var s=r.action;switch(s.actionType){case l.DIALOG_TYPE_CHANGE:if(s.data.dialogType in i){this.$AdsPixelAudienceCreateStoreClass1=s.data.dialogType;this.inform('change');}break;case k.RECEIVE_AUDIENCE:this.$AdsPixelAudienceCreateStoreClass2[s.feedback.audienceID]=m(s.feedback,'audience.external_event_source.id');this.inform('change');break;}};p.prototype.getAudiencePixelID=function(r){if(!(r in this.$AdsPixelAudienceCreateStoreClass2)){this.$AdsPixelAudienceCreateStoreClass2[r]=undefined;j.loadAudience(r);}return this.$AdsPixelAudienceCreateStoreClass2[r];};p.prototype.getCurrentDialogType=function(){return this.$AdsPixelAudienceCreateStoreClass1;};var q=new p();f.exports=q;},null);
__d('AudienceManagerLoggingEvents',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();f.exports={AM_CREATE_MACA_ICON_CLICK:'am_create_maca_icon_click',AM_MACA_NUX_SHOWN:'am_maca_nux_shown',AM_MACA_NUX_CREATE_AUDIENCE:'am_maca_nux_create_audience',AM_MACA_EDITOR_APP_NO_EVENTS:'am_maca_editor_app_no_events',AM_MACA_EDITOR_APP_SELECTED:'am_maca_editor_app_selected',AM_MACA_EDITOR_VALIDATION_FAILURE:'am_maca_editor_validation_failure',AM_MACA_EDITOR_CREATE_AUDIENCE:'am_maca_editor_create_audience',AM_MACA_EDITOR_CREATE_SUCCESS:'am_maca_editor_create_success',AM_MACA_EDITOR_INCLUSIVE_EVENT_SELECTED:'am_maca_editor_event_selected',AM_MACA_EDITOR_EXCLUSIVE_EVENT_SELECTED:'am_maca_editor_exclusive_event_selected',AM_MACA_EDITOR_ACTION_TAKEN_ACTIVITY_SELECTED:'am_maca_editor_action_taken_activity_selected',AM_MACA_EDITOR_ACTION_NOT_TAKEN_ACTIVITY_SELECTED:'am_maca_editor_action_not_taken_activity_selected',AM_MACA_EDITOR_COMBINATION_ACTION_ACTIVITY_SELECTED:'am_maca_editor_combination_action_activity_selected',AM_MACA_EDITOR_INCLUDE_MOST_ACTIVE:'am_maca_editor_include_most_active',AM_MACA_EDITOR_INCLUDE_HIGHEST_VALUE:'am_maca_editor_include_highest_value',AM_MACA_EDITOR_SHOW_PERCENTILE_CHART:'am_maca_editor_show_percentile_chart',AM_MACA_EDITOR_NO_PERCENTILE_DATA:'am_maca_editor_no_percentile_data',AM_MACA_EDITOR_CREATE_WHALE_AUDIENCE_ATTEMPT:'am_maca_editor_create_whale_audience_attempt',AM_MACA_ACTIVATE_APP_UPSELL_SHOWN:'am_maca_editor_activate_app_upsell_shown',AM_CREATE_WCA_ICON_CLICK:'am_create_wca_icon_click',AM_WCA_NUX_CREATE_AUDIENCE:'am_wca_nux_create_audience',AM_WCA_VIEW_PIXEL_CREATE_AUDIENCE:'am_wca_view_pixel_create_audience',AM_WCA_NUX_VIEW_PIXEL:'am_wca_nux_view_pixel',AM_WCA_NUX_CREATE_PIXEL:'am_wca_nux_create_pixel',AM_WCA_NUX_CREATE_PIXEL_SUCCESS:'am_wca_nux_create_pixel_success',AM_WCA_EDITOR_VALIDATION_FAILURE:'am_wca_editor_validation_failure',AM_WCA_EDITOR_CREATE_AUDIENCE:'am_wca_editor_create_audience',AM_WCA_EDITOR_CREATE_FAIL:'am_wca_editor_create_fail',AM_WCA_EDITOR_CREATE_SUCCESS:'am_wca_editor_create_success',AM_WCA_EDITOR_ADD_RULE:'am_wca_editor_add_rule',AM_WCA_EDITOR_ADD_TOKEN:'am_wca_editor_add_token',AM_WCA_TOS_ACCEPT_FAILURE:'am_wca_tos_accept_failure',AM_WCA_TOS_ACCEPT_SUCCESS:'am_wca_tos_accept_success',AM_WCA_EDITOR_AUDIENCE_TYPE_ALL_WEBSITE_VISITORS:'am_wca_editor_audience_type_all_website_visitors',AM_WCA_EDITOR_AUDIENCE_TYPE_ALL_WEBSITE_VISITORS_WITH_DOMAIN:'am_wca_editor_audience_type_all_website_visitors_with_domain',AM_WCA_EDITOR_DOMAIN_SELECTOR_SHOWN:'am_wca_editor_audience_domain_selector_shown',AM_WCA_EDITOR_AUDIENCE_TYPE_RULES:'am_wca_editor_audience_type_rules',AM_WCA_EDITOR_AUDIENCE_TYPE_SPECIFIC_PAGES:'am_wca_editor_audience_type_specific_pages',AM_WCA_EDITOR_AUDIENCE_TYPE_INC_EXC:'am_wca_editor_audience_type_inc_exc',AM_WCA_EDITOR_AUDIENCE_TYPE_CHURNED:'am_wca_editor_audience_type_churned',WCA_NUX_CONFIRM:'wca_nux_confirm',WCA_EMAIL_PIXEL:'am_wca_email_pixel',WCA_EMAIL_PIXEL_SUCCESS:'am_wca_email_pixel_success',WCA_EMAIL_PIXEL_FAILURE:'am_wca_email_pixel_failure',AM_CA_NUX_CREATE_AUDIENCE:'am_ca_nux_create_audience',AM_CA_CREATE_AUDIENCE_CLICK:'am_ca_create_audience_click',AM_LAL_NUX_CREATE_AUDIENCE:'am_lal_nux_create_audience',AM_LAL_CREATE_AUDIENCE_CLICK:'am_lal_create_audience_click',AM_LAL_DIALOG_CLOSE_SUCCESS:'am_lal_dialog_close_success',AM_LAL_DIALOG_CLOSE_CANCEL:'am_lal_dialog_close_cancel',AM_LAL_DIALOG_ERROR:'am_lal_dialog_error',AM_CA_CREATE_DIALOG_LOAD:'am_ca_create_dialog_load',AM_CA_CREATE_CUSTOMER_LIST_CLICK:'am_ca_create_customer_list_click',AM_CA_CREATE_WCA_CLICK:'am_ca_create_wca_click',AM_CA_CREATE_MACA_CLICK:'am_ca_create_maca_click',AM_CA_CREATE_FILE_IMPORT_CLICK:'am_ca_create_file_import_click',AM_CA_CREATE_COPY_PASTE_CLICK:'am_ca_create_copy_paste_click',AM_CA_CREATE_MAIL_CHIMP_CLICK:'am_ca_create_mail_chimp_click',AM_CA_CREATE_CUSTOMER_LIST_BACK_CLICK:'am_ca_create_customer_list_back_click',AM_CA_CREATE_BACK_TO_CUSTOMER_LIST_CLICK:'am_ca_create_back_to_customer_list_click',AM_CA_CREATE_FILE_IMPORT_CREATE_AUDIENCE_CLICK:'am_ca_create_file_import_create_audience_click',AM_CA_CREATE_FILE_IMPORT_CONTINUE_CREATE_AUDIENCE_CLICK:'am_ca_create_file_import_continue_create_audience_click',AM_CA_CREATE_FILE_IMPORT_CHOOSE_ANOTHER_FILE_CLICK:'am_ca_create_file_import_choose_another_file_click',AM_CA_CREATE_COPY_PASTE_CREATE_AUDIENCE_CLICK:'am_ca_create_copy_paste_create_audience_click',AM_CA_CREATE_LOG_INTO_MAIL_CHIMP_CLICK:'am_ca_create_log_into_mail_chimp_click',AM_CA_CREATE_MAIL_CHIMP_CREATE_AUDIENCE_CLICK:'am_ca_create_mail_chimp_create_audience_click',AM_CA_CREATE_UPLOAD_COMPLETE_CLICK:'am_ca_create_upload_complete_click',AM_CA_CREATE_UPLOAD_COMPLETE_NEXT_CLICK:'am_ca_create_upload_complete_next_click',AM_CA_CREATE_CREATE_AD_CLICK:'am_ca_create_create_ad_click',AM_CA_CREATE_CREATE_LAL_CLICK:'am_ca_create_create_lal_click',AM_CA_CREATE_FINISH_CREATION_SUCCESS:'am_ca_create_finish_creation_success',AM_CA_CREATE_CLOSE_DIALOG:'am_ca_create_close_dialog',AM_CA_CREATE_VIEW_EXAMPLE_CLICK:'am_ca_create_view_example_click',AM_CA_CREATE_UPLOAD_FILE:'am_ca_create_upload_file',AM_CA_CREATE_VIEW_ERROR_REPORT:'am_ca_create_view_error_report',AM_CA_CREATE_UPLOAD_FILE_ERROR:'am_ca_create_upload_file_error',AM_CA_EDIT_UPDATE_META_DATA:'am_ca_edit_update_meta_data',AM_CA_EDIT_UPDATE_META_DATA_ONLY:'am_ca_edit_update_meta_data_only',AM_CA_EDIT_FILE_IMPORT_ADD_USERS:'am_ca_edit_file_import_add_users',AM_CA_EDIT_FILE_IMPORT_REMOVE_USERS:'am_ca_edit_file_import_remove_users',AM_CA_EDIT_COPY_PASTE_ADD_USERS:'am_ca_edit_copy_paste_add_users',AM_CA_EDIT_COPY_PASTE_REMOVE_USERS:'am_ca_edit_copy_paste_remove_users',AM_CA_EDIT_FILE_IMPORT_CHOOSE_ANOTHER_FILE_CLICK:'am_ca_edit_file_import_choose_another_file_click',AM_CA_EDIT_FILE_IMPORT_CONTINUE_EDIT_AUDIENCE_CLICK:'am_ca_edit_file_import_continue_edit_audience_click',AM_CA_EDIT_FINISH_SUCCESS:'am_ca_edit_finish_success',AM_CA_EDIT_CLOSE_DIALOG:'am_ca_edit_close_dialog',AM_CA_OPT_OUT_USER_FINISH_SUCCESS:'am_ca_opt_out_user_finish_success',AM_CA_OPT_OUT_USER_CLOSE_DIALOG:'am_ca_opt_out_user_close_dialog',AM_CA_OPT_OUT_USER_CONTINUE_EDIT_AUDIENCE_CLICK:'am_ca_opt_out_user_continue_edit_audience_click',AM_CA_OPT_OUT_USER_CHOOSE_ANOTHER_FILE_CLICK:'am_ca_opt_out_user_choose_another_file_click',AM_AUDIENCE_MANAGER_VIEW:'am_audience_manager_view',AM_FILTER_BUTTON_CLICKED:'am_filter_button_clicked',AM_FILTER_LEFT_PRESET_CHANGED:'am_filter_left_preset_changed',AM_FILTER_TOKENIZER_CHANGED:'am_filter_tokenizer_changed',AM_FILTER_NAME_SEARCH:'am_filter_name_search',AM_HELP_FLYOUT_SHOW:'am_help_flyout_show',AM_HELP_FLYOUT_CLICKED:'am_help_flyout_clicked',AM_HELP_BLANK_STATE_CLICKED:'am_help_blank_state_clicked',AM_TABLE_ACTION_CREATE_AD_CLICKED:'am_table_action_create_ad_clicked',AM_TABLE_COLUMN_CUSTOMIZE:'am_table_column_customize',AM_TABLE_ACTION_BULK_DELETE_CLICKED:'am_table_action_bulk_delete_clicked',AM_TABLE_ACTION_CREATE_LAL_CLICKED:'am_table_action_create_lal_clicked',AM_TABLE_ACTION_DELETE_CLICKED:'am_table_action_delete_clicked',AM_TABLE_ACTION_EDIT_CLICKED:'am_table_action_edit_clicked',AM_TABLE_ACTION_VIEW_PIXEL_CLICKED:'am_table_action_view_pixel_clicked',AM_TABLE_ACTION_SHARE_CLICKED:'am_table_action_share_clicked',AM_TABLE_ACTION_VIEW_OVERLAP:'am_table_action_view_overlap',AM_TABLE_SCROLLING_FETCH:'am_table_scrolling_fetch',AM_CREATE_SAVED_AUDIENCE_CLICKED:'am_create_saved_audience_clicked',AM_CREATE_SAVED_AUDIENCE_COMPLETED:'am_create_saved_audience_completed',AM_DETAILS_AUDIENCE_VIEW:'am_details_audience_view',AM_DETAILS_ACTION_CREATE_AD_CLICKED:'am_details_action_create_ad_clicked',AM_DETAILS_SAVE_CLICKED:'am_details_save_clicked',AM_DETAILS_SHARE_CLICKED:'am_details_share_clicked',AM_DETAILS_CREATE_LAL_CLICKED:'am_details_create_lal_clicked',WCA_RULE_CHECKER_CALLED:'wca_rule_checker_called',WCA_RULE_CHECKER_SUCCESS:'wca_rule_checker_success',WCA_RULE_CHECKER_FAILED:'wca_rule_checker_failed',WCA_CREATION_ON_RULE_CHECKER_FAILURE:'wca_creation_on_rule_checker_failure',REPORT_RULE_CHECKER_USEFUL:'report_rule_checker_useful',REPORT_RULE_CHECKER_USELESS:'report_rule_checker_useless'};},null);
__d('AdsPixelAudienceViewActions',['AdInterfacesUiLogger','AdsDispatcher','AdsPixelViewActionTypes','AdsPixelViewActions','AdsPixelAudienceDialogTypes','AudienceManagerLoggingEvents'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n={gotoRuleBuilder:function(){h.log(m.AM_WCA_NUX_CREATE_AUDIENCE);k.dialogTypeChange(l.CREATE_AUDIENCE_DIALOG);},gotoViewCode:function(){h.log(m.AM_WCA_NUX_VIEW_PIXEL);k.dialogTypeChange(l.VIEW_REMARKETING_PIXEL_DIALOG);},gotoSendEmail:function(){h.log(m.WCA_EMAIL_PIXEL);k.dialogTypeChange(l.SEND_PIXEL_EMAIL_DIALOG);},gotoRequestComplete:function(){h.log(m.AM_WCA_EDITOR_CREATE_SUCCESS);k.dialogTypeChange(l.CREATE_AUDIENCE_REQUEST_COMPLETE);}};f.exports=n;},null);
__d('AdsPixelPickerStore',['AdsBaseStore','AdsPixelDialogTypes','AdsPixelViewActionTypes'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';k=babelHelpers.inherits(m,h);l=k&&k.prototype;function m(){l.constructor.call(this);this.$AdsPixelPickerStoreClass1=false;}m.prototype.getStoreName=function(){return 'AdsPixelPickerStore';};m.prototype.onDispatchToken=function(o){var p=o.action;switch(p.actionType){case j.DIALOG_TYPE_CHANGE:if(p.data.dialogType===i.NO_DIALOG){this.$AdsPixelPickerStoreClass1=false;this.inform('change');}break;case j.OUTCOME_BASE_PIXEL_CHANGE:this.$AdsPixelPickerStoreClass2=p.data.pixelID||this.$AdsPixelPickerStoreClass2;this.inform('change');break;case j.DISABLE_PIXEL_PICKER:this.$AdsPixelPickerStoreClass1=true;this.inform('change');break;}};m.prototype.getCurrentPixelID=function(){return this.$AdsPixelPickerStoreClass2;};m.prototype.isPickerDisabled=function(){return this.$AdsPixelPickerStoreClass1;};var n=new m();f.exports=n;},null);
__d('AdsPixelPickerViewActions',['AdInterfacesUiLogger','AdsDispatcher','AdsPixelViewActionTypes'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k={setPixelID:function(l){i.handleUpdateFromViewAction({data:{pixelID:l},type:j.OUTCOME_BASE_PIXEL_CHANGE});h.log(j.OUTCOME_BASE_PIXEL_CHANGE);},disablePixelPicker:function(){i.handleUpdateFromViewAction({type:j.DISABLE_PIXEL_PICKER});h.log(j.DISABLE_PIXEL_PICKER);}};f.exports=k;},null);
__d('AdsPEActionTypes',['keyMirrorRecursive'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=h({ACCOUNT:{ACCEPTED_CONVERSION_PIXEL_TOS:'',BATCH_LOADED:'',BATCH_LOAD_ERROR:'',INIT:'',INVALIDATE:'',SELECT:'',LIST:{LOADED:'',LOAD_ERROR:''},PROMPT_DOWNLOAD:'',PURGE_COMPLETED:'',PURGE_SKIPPED:'',PURGE_STARTED:''},ADGROUP:{ADD_CHILD_ATTACHMENT:'',ASYNC_VALIDATION:{LOADED:''},AUTO_NAMING:{COMPLETION_MESSAGE_DISMISSED:''},BATCH_LOADED:'',BATCH_LOAD_ERROR:'',DISABLE_PAGE_ACTOR:'',ENABLE_PAGE_ACTOR:'',LIST:{LOADED:'',LOAD_ERROR:'',PARTIAL_LOAD:''},LIVE:{BATCH_LOADED:'',BATCH_LOAD_ERROR:''},REMOVE_CHILD_ATTACHMENT:'',REMOVE_EXCESS_CHILD_ATTACHMENT:'',REMOVE_INSTAGRAM_ACCOUNT_ID:'',REMOVE_VIDEO_CAPTION:'',RESPOND_TO_PROMOTED_OBJECT_PAGE_CHANGE:'',SELECTION:{SELECT_ALL:''},SET_APP:'',SET_APP_ID:'',SET_APP_LINK:'',SET_APP_PRODUCT_LINK:'',SET_CALL_TO_ACTION:'',SET_CALL_TO_ACTION_LINK:'',SET_CHILD_APP_LINK:'',SET_CHILD_APP_PRODUCT_LINK:'',SET_CHILD_DESCRIPTION:'',SET_CHILD_MEDIA_FORMAT:'',SET_CHILD_NAME:'',SET_CHILD_IMAGE_AND_CROPS:'',SET_CHILD_PICTURE:'',SET_CHILD_URL:'',SET_CHILD_VIDEO_ID:'',SET_CONVERSION_PIXELS:'',SET_COVER_PHOTO_ID:'',SET_DEFAULT_PLACEMENTS:'',SET_DISPLAY_URL:'',SET_SHOW_END_CARD:'',SET_ENGAGEMENT_AUDIENCE:'',SET_EVENT_URL:'',SET_HEADLINE:'',SET_IMAGE:'',SET_IMAGE_CROPS:'',SET_IMPRESSION_CONTROL_TYPE:'',SET_IMPRESSION_LIMIT:'',SET_IMPRESSION_LIMIT_PERIOD:'',SET_INSTAGRAM_ACCOUNT_ID:'',SET_INSTAGRAM_MEDIA_ID:'',SET_INSTAGRAM_SUPPLEMENTAL_ID:'',SET_LANDING_VIEW:'',SET_LEAD_GEN_FORM_ID:'',SET_LINK_DESCRIPTION:'',SET_LINK_POST_FORMAT:'',SET_LINK_POST_FORMAT_AFTER_OBJECT_TYPE:'',SET_MESSAGE:'',SET_MEDIA_FORMAT:'',SET_MOBILE_APP_TRACKING:'',SET_MULTI_PRODUCT_OPTIMIZED:'',SET_NAME:'',SET_NAMES:'',SET_PAGE:'',SET_PAGE_POST:'',SET_POST_EDIT_MODE:'',SET_PRIORITY:'',SET_RATE_CARD:'',SET_RUN_STATUS:'',SET_SELECTED_PRODUCT:'',SET_TRACKING_PIXELS:'',SET_TRACKING_SPEC:'',SET_URL_OVERRIDE:'',SET_URL_TAGS:'',SET_USE_PAGE_ACTOR_OVERRIDE:'',SET_VIDEO_DEFAULT_CAPTION:'',SET_VIDEO_ID:'',SET_VIDEO_IMAGE_URL:'',SET_VIEW_TAGS:'',SET_WEBSITE_URL:'',SLOW:{BATCH_LOADED:'',BATCH_LOAD_ERROR:''},UPLOAD_VIDEO_CAPTION:''},ADS_PIXEL:{BATCH_LOADED:'',BATCH_LOAD_ERROR:'',LIST:{LOADED:'',LOAD_ERROR:'',PARTIAL_LOAD:''}},APP_STATE:{LOADING:'',LOADED:''},AUDIENCE_OVERLAP:{HANDLE_RESPONSE:''},CAMPAIGN:{ASYNC_VALIDATION:{LOADED:''},AUTO_NAMING:{COMPLETION_MESSAGE_DISMISSED:''},BATCH_LOADED:'',BATCH_LOAD_ERROR:'',CLEAR_SAVED_AUDIENCE:'',LIST:{LOADED:'',LOAD_ERROR:'',PARTIAL_LOAD:''},LIVE:{BATCH_LOADED:'',BATCH_LOAD_ERROR:''},PROMOTED_OBJECT:{SET_PIXEL_ID:'',SET_CUSTOM_EVENT_TYPE:''},SELECTION:{SELECT_ALL:''},SET_APP:'',SET_BID:'',SET_BID_ADJUSTMENTS:'',SET_BID_AMOUNT:'',SET_BID_INFO_FIELD:'',SET_BID_TYPE:'',SET_BILLING_EVENT:'',SET_BUDGET:'',SET_CREATIVE_SEQUENCE:'',SET_END_TIME:'',SET_FREQUENCY_CAP:'',SET_FREQUENCY_INTERVAL:'',SET_IMPRESSIONS:'',SET_INFLATION:'',SET_IS_AUTOBID:'',SET_LIFETIME_BUDGET:'',SET_LIFETIME_REACH:'',SET_NAME:'',SET_NAMES:'',SET_OPTIMIZATION_GOAL:'',SET_PAGE:'',SET_PACING_TYPE:'',SET_PLACEMENT:'',SET_PREDICTION_ID:'',SET_PRODUCT_AD_BEHAVIOR:'',SET_PRODUCT_AUDIENCE_FIELDS:'',SET_PRODUCT_SET:'',SET_PROMOTED_OBJECT:'',SET_RATE_CARD:'',SET_RETARGETING_TYPE:'',SET_SAVED_AUDIENCE:'',SET_SCHEDULE:'',SET_START_TIME:'',SET_STATUS:'',SET_TARGETING:'',SLOW:{BATCH_LOADED:'',BATCH_LOAD_ERROR:''}},CAMPAIGN_GROUP:{BATCH_LOADED:'',BATCH_LOAD_ERROR:'',LIST:{LOADED:'',LOAD_ERROR:'',PARTIAL_LOAD:''},REVERTED_DEPRECATED:'',SELECTION:{SELECT_ALL:''},SET_LABELS:'',SET_NAME:'',SET_PROMOTED_OBJECT:'',SET_SPEND_CAP:'',SET_STATUS:'',SLOW:{BATCH_LOADED:'',BATCH_LOAD_ERROR:''},LIVE:{BATCH_LOADED:'',BATCH_LOAD_ERROR:'',LABELS_UPDATED:''}},CONTRACT:{BATCH_LOADED:'',BATCH_LOAD_ERROR:'',REFRESH:''},CREATE:{CANCEL_CREATING:'',CLOSE_CREATE_FLOW:'',COMPLETED:'',COMPLETED_FROM_AUDIENCE:'',CREATE_AD:'',CREATE_AD_FROM_CREATE_FLOW:'',CREATE_ADS_FROM_POSTS:'',CREATE_CAMPAIGN:'',CREATE_CAMPAIGN_GROUP:'',DUPLICATE_ADGROUPS:'',DUPLICATE_CAMPAIGN:'',DUPLICATE_CAMPAIGN_BY_TARGETING:'',DUPLICATE_CAMPAIGN_GROUP:'',INIT_CREATE_FLOW:'',SET_USE_PE_CREATE_FLOW:'',START_CREATE_FLOW:'',START_CREATING_AD:'',START_CREATING_ADS_FROM_POSTS:'',START_CREATING_CAMPAIGN:'',START_CREATING_CAMPAIGN_GROUP:'',START_DUPLICATING_ADGROUP_BY_IMAGES:'',START_DUPLICATING_ADGROUPS:'',START_DUPLICATING_CAMPAIGN:'',START_MULTIPLE_DUPLICATING_ADGROUPS:'',START_MULTIPLE_DUPLICATING_CAMPAIGN:'',START_MULTIPLE_DUPLICATING_CAMPAIGN_GROUP:'',START_SELECTION_DIALOG_FOR_CREATE_FLOW:''},DELETE:{AD_OBJECTS:'',START:''},DOWNLOAD:{FINISHED:''},DRAFT:{SYNC:''},EDIT:{BEGIN_EDIT_OBJECTS:'',INDICATORS_EXPIRED:''},EDITOR_DRAWER:{CLOSE:'',TOGGLE:'',OPEN:'',OPEN_TARGET:''},ERROR:{DISMISS:'',DISMISS_ACCOUNT_ERROR:'',REFRESH_ALL_ERRORS:'',TEST_MESSAGE:''},EXPORT:{ALL_ADGROUPS:'',COMPLETED_TEXT:'',DATA_PRELOADED:'',SELECTED_ADGROUPS:'',SELECTED_ADGROUPS_AS_TEXT:'',SELECTED_ADGROUPS_CUSTOMIZED:'',ALL_CAMPAIGNS:'',SELECTED_CAMPAIGNS:'',SELECTED_CAMPAIGNS_AS_TEXT:'',SELECTED_CAMPAIGNS_CUSTOMIZED:'',ALL_CAMPAIGN_GROUPS:'',SELECTED_CAMPAIGN_GROUPS:'',SELECTED_CAMPAIGN_GROUPS_AS_TEXT:'',SELECTED_CAMPAIGN_GROUPS_CUSTOMIZED:'',HIDE_CUSTOMIZE:'',HIDE_EXPORT_AS_TEXT:'',HIDE_SELECT_PRESET:'',SHOW_SELECT_PRESET:''},EXPORT_PRESET:{BATCH_CREATED:'',BATCH_CREATE_ERROR:'',BATCH_DELETED:'',BATCH_DELETE_ERROR:'',BATCH_LOADED:'',BATCH_LOAD_ERROR:'',CREATE_BATCH:'',DELETE_BATCH:'',LIST:{LOADED:'',LOAD_ERROR:'',PARTIAL_LOAD:''}},FILTER:{APPLIED:'',CHANGED:'',CHANGED_LEGACY:'',CLEAR:'',IDS_VERIFIED:'',INDEX_UPDATE_TIMEOUT:'',INDEX_UPDATED:'',REMOVE_RECENTLY_CREATED:'',REMOVE_SUGGESTED:'',SAVED_FILTERS_LOADED:'',SHOW_RECENTLY_CREATED:'',VIEW_ADGROUPS:'',VIEW_ADS_FOR_IMAGES:'',VIEW_ADS_FOR_POSTS:'',VIEW_CAMPAIGN_GROUPS:'',VIEW_CAMPAIGNS:''},HELP:{CLEANUP_HISTORY:'',LINK_CLICK:'',PUSH_CONTENT:'',REQUEST_CMS_CONTENT:'',REQUEST_OPEN:'',SET_CMS_CONTENT:'',SET_CMS_CONTENT_LIST:'',SET_GLOSSARY_LIST:'',SET_TAG:'',TOGGLE:''},IMPORT:{COMPLETE_CLIENT_IMPORT:'',COMPLETE_LEGACY_CLIENT_IMPORT:'',ERROR:{EXCEL_CONVERT:'',FAIL:'',FILE_READ:'',IMAGE_IMPORT:'',NO_CAMPAIGNS:'',NON_TAB_SEPARATED_FILE:'',PARSER:'',USER_CANCELED:'',CAMPAIGN_GROUP_IMPORT:'',CAMPAIGN_IMPORT:'',ADGROUP_IMPORT:''},FROM_TEXTAREA:'',FROM_FILE:'',IMAGE_DETECTED:'',SERVER_PARSE_COMPLETE:'',START_LEGACY_CLIENT_IMPORT:'',WARNING:{ADGROUP_IMPORT:'',CAMPAIGN_GROUP_IMPORT:'',CAMPAIGN_IMPORT:'',PARSER:''},ZIP_DETECTED:''},INITIAL_DRAFT_PUBLISH:{DISMISS:'',SET_CATEGORY:''},INSIGHTS_DRAWER:{CLOSE:'',TOGGLE:'',OPEN:'',OPEN_TARGET:''},NEKO_APP_DATA:{HANDLE_RESPONSE:''},NEKO_APP_SELECTION:{CHANGE:''},NEKO_DEBUGGER_DRAWER:{TOGGLE:''},INSTAGRAM_MEDIA:{LOADED:'',LOAD_ERROR:''},INSTAGRAM_USERNAME:{LOADED:'',LOAD_ERROR:''},INTEGRITY:{HANDLE_ADGROUP_FEEDBACK:'',HANDLE_ADGROUP_FEEDBACK_ERROR:''},NAVIGATION:{CHANGE_PANE:'',VIEW_CHILDREN:''},MANAGE_PAGES:{SELECT:''},PAGE:{BATCH_LOADED:'',BATCH_LOAD_ERROR:'',CREATE_ERROR:'',CREATE_FOR_APP:'',CREATE_SUCCESS:'',LIST:{LOADED:''},SIGN_LEADGEN_TOS:'',SIGN_LEADGEN_TOS_ERROR:'',SIGN_LEADGEN_TOS_SUCCESS:''},PAGE_MESSAGING_STATUS:{MESSAGE_ENABLED_STATUS:''},PAGE_POST:{STATS:{BATCH_LOADED:'',BATCH_LOAD_ERROR:''}},PAGES_MANAGER:{CONFIG_BATCH_LOADED:'',CONFIG_BATCH_ERROR:''},PAYMENT_METHOD:{BATCH_LOADED:'',BATCH_LOAD_ERROR:''},PREDICTION:{BATCH_LOADED:'',BATCH_LOAD_ERROR:''},PREDICTION_CHANGE:{BATCH_LOADED:'',BATCH_LOAD_ERROR:''},PREVIEW:{VIEW_ON_MOBILE:''},PURGE_ARCHIVE:{HIDE_DIALOG:'',PURGE_FINISHED:'',PURGE_PROGRESS:'',SHOW_DIALOG:'',START_PURGE:''},REACH_FREQUENCY:{SET_CREATIVE_SEQUENCE_ENABLED:''},REALTIME:{DATA_UPDATED:'',INIT:'',UPDATE_DATA:''},RECENT_OBJECTIVES:{LOADED:'',LOADING:''},REPORTING:{API_SPEC_UPDATED:'',CHANGE_FILTER:'',CLEAR_BREAKDOWNS:'',DESELECT_OBJECT_IN_DRAFT_FILTER:'',FILTER_BY_ADGROUP:'',FILTER_BY_CAMPAIGN:'',FILTER_BY_CAMPAIGNGROUP:'',SELECT_BREAKDOWN_ENTRY:'',SELECT_COLUMNS:'',SELECT_OBJECT_IN_DRAFT_FILTER:'',SELECT_OBJECT_TYPE:'',SELECT_TIME_RANGE:'',SORT_COLUMN:''},RESIZE_CHROME:'',RESIZE_MULTITAB_DRAWER:'',REVERT:{AD_OBJECTS:'',START:''},SETTINGS:{CREATE:'',CREATE_FINISHED:'',FILTER_LOADED:'',UPDATE:''},TABLE:{INIT_VISIBLE_COLUMNS:'',SET_VISIBLE_COLUMNS:'',PAGING:{ADGROUP:{NEXT:'',PREV:''},CAMPAIGN:{NEXT:'',PREV:''},CAMPAIGN_GROUP:{NEXT:'',PREV:''}},PERF:{TABLE_INIT:''}},TAG:{CLOSE_SELECTOR:'',OPEN_SELECTOR:''},TOPLINE:{BATCH_LOADED:'',BATCH_LOAD_ERROR:'',LIST:{LOADED:'',LOAD_ERROR:''}},TOPLINE_TABLE:{INIT_COLUMN_WIDTHS:'',SELECTION:{ID_CLICKED:''},SET_COLUMN_WIDTHS:'',SET_HEIGHT:'',SET_SORT_KEY:'',SET_WIDTH:''},UPLOAD:{BACK_TO_SUMMARY:'',CANCEL:'',CONFIRM_UPLOAD_WITH_ERRORS:'',DO_UPLOAD:'',ERROR:'',FINISHED:'',HIDE_DELETE_DRAFT_DIALOG:'',ITEMS_TO_UPLOAD_LOADED:'',SET_PREVIEW_CATEGORY:'',SET_PREVIEW_COLUMN_WIDTH:'',SET_SUMMARY_CATEGORY:'',SET_HAS_CHANGES:'',SHOW_DELETE_DRAFT_DIALOG:'',SHOW_PREVIEW:'',SKIP_SYNC:'',START_UPLOADING_TYPE:'',TOGGLE_PREVIEW_SELECT_ALL:'',TOGGLE_PREVIEW_SELECTION:'',UPLOAD_ITEM_FAILED:'',UPLOAD_PROGRESS:'',VIEW_SUMMARY_DETAILS:''},URL:{VIEW_ADGROUPS:'',VIEW_CAMPAIGNS:'',VIEW_CAMPAIGN_GROUPS:''},USER:{BATCH_LOADED:'',BATCH_LOAD_ERROR:''},USER_SETTINGS:{CREATED:'',UPDATE:''}},'PowerEditor');f.exports=i;},null);
__d('AdsPixelStore',['AdsBaseStore','AdsLoadState','AdsPixelGraphAPI','AdsPixelServerActionTypes','AdsPixelViewActionTypes','AdsPEActionTypes','dotAccess'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o,p;'use strict';o=babelHelpers.inherits(q,h);p=o&&o.prototype;function q(){p.constructor.call(this);this.$AdsPixelStoreClass1();}q.prototype.getStoreName=function(){return 'AdsPixelStore';};q.prototype.onDispatchToken=function(s){var t=s.action;switch(t.actionType){case k.RECEIVE_PIXELS:this.$AdsPixelStoreClass2(t.feedback.pixelList);this.$AdsPixelStoreClass3=i.LOADED;this.$AdsPixelStoreClass4=i.LOADED;this.inform('change');break;case l.UPDATE_TABLE_SELECTION:this.$AdsPixelStoreClass5(t.data.selectedID);this.inform('change');break;case l.RESET_PIXEL_LIST:case m.ACCOUNT.SELECT:this.$AdsPixelStoreClass1();this.inform('change');break;case l.REFRESH_PIXEL_CODE_STATUS:this.$AdsPixelStoreClass4=i.LOADING;this.$AdsPixelStoreClass6(t.data.pixelID);this.inform('change');break;}};q.prototype.getName=function(s){if(!s)return '';return n(this.getPixelInfo(s),'name')||'';};q.prototype.getPixelCode=function(s){return n(this.getPixelInfo(s),'code')||'';};q.prototype.getPixelLastFiringTime=function(s){return n(this.getPixelInfo(s),'last_fired_time')||'';};q.prototype.getPixelCreationTime=function(s){return n(this.$AdsPixelStoreClass7,s+'.creation_time')||'';};q.prototype.getPixelInfo=function(s){if(!(s in this.$AdsPixelStoreClass8)){this.$AdsPixelStoreClass8[s]=undefined;j.loadPixel(s);}return this.$AdsPixelStoreClass7[s]||{id:s};};q.prototype.getPixels=function(){if(this.$AdsPixelStoreClass3===i.NOT_LOADED){this.$AdsPixelStoreClass3=i.LOADING;j.loadPixels();}return this.$AdsPixelStoreClass7;};q.prototype.getPixelIDs=function(){return Object.keys(this.getPixels());};q.prototype.hasPixels=function(){return Object.keys(this.getPixels()).length>0;};q.prototype.getPixelListLoadingState=function(){return this.$AdsPixelStoreClass3;};q.prototype.getPixelRefreshState=function(){return this.$AdsPixelStoreClass4;};q.prototype.isListLoaded=function(){return this.$AdsPixelStoreClass3===i.LOADED;};q.prototype.$AdsPixelStoreClass6=function(s){j.loadPixel(s);};q.prototype.$AdsPixelStoreClass2=function(s){s.forEach((function(t){t.id=t.id.toString();this.$AdsPixelStoreClass7[t.id]=Object.assign(this.$AdsPixelStoreClass7[t.id]||{},t);}).bind(this));};q.prototype.$AdsPixelStoreClass5=function(s){Object.keys(this.$AdsPixelStoreClass7).forEach((function(t){return this.$AdsPixelStoreClass7[t].selected=t===s;}).bind(this));};q.prototype.$AdsPixelStoreClass1=function(){this.$AdsPixelStoreClass8={};this.$AdsPixelStoreClass3=i.NOT_LOADED;this.$AdsPixelStoreClass7={};this.$AdsPixelStoreClass4=i.LOADED;};var r=new q();f.exports=r;},null);
__d('AdsDataSourceTables',['keyMirror'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i={DEVICE:null,DOMAIN:null,EVENT:null,PIXEL:null,URL:null,VIEW_PIXEL_CODE:null},j=h(i);f.exports=j;},null);
__d('AdsPixelDate',['formatDate'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();function i(){}i.prototype.getTodayStart=function(){var k=new Date();return new Date(Date.UTC(k.getFullYear(),k.getMonth(),k.getDate()));};i.prototype.getTodayEnd=function(){var k=new Date();return new Date(Date.UTC(k.getFullYear(),k.getMonth(),k.getDate(),23,59,59,999));};i.prototype.getYesterdayStart=function(){var k=new Date();return new Date(Date.UTC(k.getFullYear(),k.getMonth(),k.getDate()-1));};i.prototype.getYesterdayEnd=function(){var k=new Date();return new Date(Date.UTC(k.getFullYear(),k.getMonth(),k.getDate()-1,23,59,59,999));};i.prototype.getDaysBefore=function(k){var l=new Date();return new Date(Date.UTC(l.getFullYear(),l.getMonth(),l.getDate()-k));};i.prototype.getUserfacingDate=function(k){return h(k,'m/d');};var j=new i();f.exports=j;},null);
__d('AdsPixelDateChoices',['AdsPixelDate','fbt'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={TODAY:{key:'TODAY',userFacingValue:i._("Today"),activitySentence:i._("Total Pixel Activity Today"),noActivitySentence:i._("No pixel activity today"),startTime:h.getTodayStart(),endTime:new Date()},YESTERDAY:{key:'YESTERDAY',userFacingValue:i._("Yesterday"),activitySentence:i._("Total Pixel Activity Yesterday"),noActivitySentence:i._("No pixel activity yesterday"),startTime:h.getYesterdayStart(),endTime:h.getYesterdayEnd()},LAST_7_DAYS:{key:'LAST_7_DAYS',userFacingValue:i._("Last 7 days: {start date} - {end date}",[i.param('start date',h.getUserfacingDate(h.getDaysBefore(7))),i.param('end date',h.getUserfacingDate(new Date()))]),activitySentence:i._("Total Pixel Activity in 7 Days"),noActivitySentence:i._("No pixel activity in the last 7 days"),startTime:h.getDaysBefore(7),endTime:new Date()},LAST_14_DAYS:{key:'LAST_14_DAYS',userFacingValue:i._("Last 14 days: {start date} - {end date}",[i.param('start date',h.getUserfacingDate(h.getDaysBefore(14))),i.param('end date',h.getUserfacingDate(new Date()))]),activitySentence:i._("Total Pixel Activity in 14 Days"),noActivitySentence:i._("No pixel activity in the last 14 days"),startTime:h.getDaysBefore(14),endTime:new Date()}};f.exports=j;},null);
__d('AdsPixelDevices',['AdsPixelDeviceTypes','fbt'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={};j[h.DESKTOP]={userFacingValue:i._("Desktop")};j[h.MOBILE_ANDROID_PHONE]={userFacingValue:i._("Android Phone")};j[h.MOBILE_ANDROID_TABLET]={userFacingValue:i._("Android Tablet")};j[h.MOBILE_IPAD]={userFacingValue:i._("iPad")};j[h.MOBILE_IPHONE]={userFacingValue:i._("iPhone")};j[h.MOBILE_IPOD]={userFacingValue:i._("iPod")};j[h.MOBILE_PHONE]={userFacingValue:i._("Other Mobile Phone")};j[h.MOBILE_TABLET]={userFacingValue:i._("Other Tablet")};j[h.MOBILE_WINDOWS_PHONE]={userFacingValue:i._("Windows Phone")};f.exports=j;},null);
__d('AdsPixelStats',['AdsPixelDateChoices','AdsPixelDevices','AdsPixelStatsTypes'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k={PixelInitialized:null,NoScript:null,__missing_event:null},l=.1;function m(n,o){this.$AdsPixelStats1=n;this.$AdsPixelStats2=o;}m.prototype.$AdsPixelStats3=function(){this.$AdsPixelStats4={};this.$AdsPixelStats5=0;this.$AdsPixelStats1.forEach((function(n){if(!n.data)return;n.data.forEach((function(o){if(!o.value)return;this.$AdsPixelStats4[o.value]=(this.$AdsPixelStats4[o.value]||0)+o.count;this.$AdsPixelStats5+=o.count;}).bind(this));}).bind(this));this.$AdsPixelStats6=Object.keys(this.$AdsPixelStats4);this.$AdsPixelStats6.sort((function(n,o){return this.$AdsPixelStats4[o]-this.$AdsPixelStats4[n];}).bind(this));};m.prototype.$AdsPixelStats7=function(){this.$AdsPixelStats8={};var n=h;Object.keys(n).forEach((function(o){return this.$AdsPixelStats8[o]={};}).bind(this));this.$AdsPixelStats1.forEach((function(o){var p=new Date(o.timestamp.substring(0,10)).getTime();o.data.forEach((function(q){var r=q.value,s=q.count||0;Object.keys(n).forEach((function(t){if(n[t].startTime.getTime()>p||n[t].endTime.getTime()<p)return;this.$AdsPixelStats8[t][r]=(this.$AdsPixelStats8[t][r]||0)+s;}).bind(this));}).bind(this));}).bind(this));};m.prototype.$AdsPixelStats9=function(){this.$AdsPixelStats10={};var n={};this.$AdsPixelStats1.forEach(function(o){var p=new Date(o.timestamp.substring(0,10)),q=p.getTime();o.data.forEach(function(r){n[q]=n[q]||{};n[q][r.value]=n[q][r.value]||0;n[q][r.value]+=r.count||0;});});Object.keys(n).forEach((function(o){var p=n[o];Object.keys(p).forEach((function(q){this.$AdsPixelStats10[q]=this.$AdsPixelStats10[q]||[];this.$AdsPixelStats10[q].push({datetime:parseInt(o,10),value:p[q]});}).bind(this));}).bind(this));};m.prototype.$AdsPixelStats11=function(){this.$AdsPixelStats12={};var n=h;Object.keys(n).forEach((function(p){return this.$AdsPixelStats12[p]={};}).bind(this));this.$AdsPixelStats1.forEach((function(p){if(!p.data)return;var q=new Date(p.timestamp).getTime();p.data.forEach((function(r){var s=r.value,t=r.count;if(!s||!t||s in k)return;Object.keys(n).forEach((function(u){if(n[u].startTime.getTime()>q||n[u].endTime.getTime()<q)return;this.$AdsPixelStats12[u][s]=this.$AdsPixelStats12[u][s]||{count:0,value:s};this.$AdsPixelStats12[u][s].count+=t;this.$AdsPixelStats12[u][s].lastFiredTime=q;}).bind(this));}).bind(this));}).bind(this));if(this.$AdsPixelStats2!==j.DEVICE||this.$AdsPixelStats1.length===0)return;var o={};Object.keys(i).forEach(function(p){o[p]={count:0,lastFiredTime:null};});Object.keys(n).forEach((function(p){this.$AdsPixelStats12[p]=Object.assign({},o,this.$AdsPixelStats12[p]);Object.keys(i).forEach((function(q){this.$AdsPixelStats12[p][q].value=i[q].userFacingValue;}).bind(this));}).bind(this));};m.prototype.$AdsPixelStats13=function(){if(this.$AdsPixelStats10===undefined)this.$AdsPixelStats9();Object.keys(this.$AdsPixelStats10).forEach((function(n){var o=this.$AdsPixelStats10[n];if(o.length>0)this.$AdsPixelStats14=o[o.length-1].datetime;}).bind(this));this.$AdsPixelStats14=this.$AdsPixelStats14||Date.now();};m.prototype.getTopKeys=function(){if(this.$AdsPixelStats6===undefined)this.$AdsPixelStats3();return this.$AdsPixelStats6.filter((function(n){return this.$AdsPixelStats4[n]>this.$AdsPixelStats5*l;}).bind(this));};m.prototype.getAggregationForAllDateChoices=function(){if(this.$AdsPixelStats8===undefined)this.$AdsPixelStats7();return this.$AdsPixelStats8;};m.prototype.getFireChartData=function(){if(this.$AdsPixelStats10===undefined)this.$AdsPixelStats9();return this.$AdsPixelStats10;};m.prototype.getTableDataForAllDateChoices=function(){if(this.$AdsPixelStats12===undefined)this.$AdsPixelStats11();return this.$AdsPixelStats12;};m.prototype.getMaxTimestamp=function(){if(this.$AdsPixelStats14===undefined)this.$AdsPixelStats13();return this.$AdsPixelStats14;};f.exports=m;},null);
__d('AdsPixelDateStore',['AdsBaseStore','AdsCMActionTypes','AdsPixelDateChoices','AdsPixelViewActionTypes','AdsCMURLParams','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n,o;'use strict';var p='LAST_7_DAYS';n=babelHelpers.inherits(q,h);o=n&&n.prototype;function q(){o.constructor.call(this);this.$AdsPixelDateStoreClass1={choice:p};}q.prototype.getStoreName=function(){return 'AdsPixelDateStore';};q.prototype.onDispatchToken=function(s){var t=s.action,u=this.$AdsPixelDateStoreClass2(t);if(this.$AdsPixelDateStoreClass1.choice!=u&&u in j){this.$AdsPixelDateStoreClass1.choice=u;this.inform('change');}};q.prototype.$AdsPixelDateStoreClass2=function(s){switch(s.actionType){case i.INIT_FROM_URL:var t=s.data.uri.getQueryData();return t[l.PIXEL_DATE_CHOICE];case k.UPDATE_DATE_PICKER_SETTING:return s.data.choice;}Object.assign(this.$AdsPixelDateStoreClass1,s.data);};q.prototype.toURLParams=function(){if(this.$AdsPixelDateStoreClass1.choice===p)return {};var s={};s[l.PIXEL_DATE_CHOICE]=this.$AdsPixelDateStoreClass1.choice;return s;};q.prototype.getCurrentChoice=function(){!(this.$AdsPixelDateStoreClass1.choice in j)?m(0):undefined;return this.$AdsPixelDateStoreClass1.choice;};var r=new q();f.exports=r;},null);
__d('AdsPixelTableColumnDataKey',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={NAME:'name',DOMAIN:'domains',TRAFFIC:'traffic',STATUS:'last_fired_time',USER:'matches',SHARE:'owner_business',VALUE:'value'};f.exports=h;},null);
__d('adsDataSourceTableSort',['AdsPixelDateStore','AdsPixelTableColumnDataKey'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();function j(l){this.$AdsDataSourceTableSortClass1=Object.keys(l).map(function(m){return l[m];});}j.prototype.sort=function(l,m){this.$AdsDataSourceTableSortClass1.sort((function(n,o){var p=n[l]||'',q=o[l]||'';return this.$AdsDataSourceTableSortClass2(p,q,l)*(m==='ASC'?1:-1);}).bind(this));return this.$AdsDataSourceTableSortClass1;};j.prototype.$AdsDataSourceTableSortClass2=function(l,m,n){var o=l,p=m;switch(n){case i.TRAFFIC:case i.USER:var q=h.getCurrentChoice();o=o[q]||0;p=p[q]||0;break;case i.VALUE:o=o.toLowerCase();p=p.toLowerCase();return o.localeCompare(p);}if(o>p){return 1;}else if(o<p){return -1;}else return 0;};var k=function(l,m,n){return new j(l).sort(m,n);};f.exports=k;},null);
__d('AdsPixelDetailStore',['AdsAccountStoreWrapper','AdsBaseStore','AdsPixelGraphAPI','AdsPixelServerActionTypes','AdsPixelStats','AdsPixelStatsTypes','adsDataSourceTableSort','dotAccess','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){if(c.__markCompiled)c.__markCompiled();var q,r;'use strict';q=babelHelpers.inherits(s,i);r=q&&q.prototype;function s(){r.constructor.call(this);this.$AdsPixelDetailStoreClass1={traffic:{},domain:{},url:{},event:{},device:{}};this.$AdsPixelDetailStoreClass2={};this.$AdsPixelDetailStoreClass3={};this.$AdsPixelDetailStoreClass4={};}s.prototype.getStoreName=function(){return 'AdsPixelDetailStore';};s.prototype.onDispatchToken=function(u){var v=u.action;switch(v.actionType){case k.RECEIVE_PIXEL_AUDIENCE:this.$AdsPixelDetailStoreClass5(v.feedback.pixelID,v.feedback.audiences,v.feedback.hasLoadAll);this.inform('change');break;case k.RECEIVE_PIXEL_STATS:this.$AdsPixelDetailStoreClass6(v.statsType,v.feedback.pixelID,v.feedback.stats);this.inform('change');break;case k.RECEIVE_PIXEL_ACCOUNTS:this.$AdsPixelDetailStoreClass7(v.feedback.pixelID,v.feedback.accounts);this.inform('change');break;case k.RECEIVE_PIXEL_UNIQUE_USER_STATS:this.$AdsPixelDetailStoreClass8(v.feedback.pixelID,v.feedback.uniqueUserData);this.inform('change');break;}};s.prototype.hasLoadAllPixelAudiences=function(u){var v=o(this.$AdsPixelDetailStoreClass9(u),'hasLoadAllAudiences');return v?true:false;};s.prototype.getPixelAudiences=function(u){var v=this.$AdsPixelDetailStoreClass9(u);return o(v,'audiences')||[];};s.prototype.$AdsPixelDetailStoreClass9=function(u){if(!(u in this.$AdsPixelDetailStoreClass2)){this.$AdsPixelDetailStoreClass2[u]=undefined;j.loadAudiences(u);}return o(this.$AdsPixelDetailStoreClass2,u)||{};};s.prototype.getPixelSharedAccounts=function(u,v){if(!(u in this.$AdsPixelDetailStoreClass3)&&v){this.$AdsPixelDetailStoreClass3[u]=undefined;j.loadPixelAccounts(u,v);}return o(this.$AdsPixelDetailStoreClass3,u)||[];};s.prototype.getFireChartData=function(u){var v=this.getPixelStats(m.TRAFFIC,u);return v?v.getFireChartData():{};};s.prototype.getUserChartData=function(u){if(!(u in this.$AdsPixelDetailStoreClass4)){this.$AdsPixelDetailStoreClass4[u]={};j.loadUniqueUser(u);}return this.$AdsPixelDetailStoreClass4[u];};s.prototype.getTrafficMaxTimestamp=function(u){var v=this.getPixelStats(m.TRAFFIC,u);return v?v.getMaxTimestamp():Date.now();};s.prototype.getSortedStatsListForDateChoice=function(u,v,w,x,y){var z=this.getPixelStats(v,u);return this.$AdsPixelDetailStoreClass10(z,w,x,y);};s.prototype.getPixelStats=function(u,v){this.$AdsPixelDetailStoreClass11(u);if(!(v in this.$AdsPixelDetailStoreClass1[u])){this.$AdsPixelDetailStoreClass1[u][v]=undefined;j.loadStats(u,v);}return this.$AdsPixelDetailStoreClass1[u][v];};s.prototype.isPixelStatsLoaded=function(u,v){this.$AdsPixelDetailStoreClass11(v);return this.$AdsPixelDetailStoreClass1[v][u]?true:false;};s.prototype.$AdsPixelDetailStoreClass10=function(u,v,w,x){if(!u)return [];var y=u.getTableDataForAllDateChoices();return n(y[v],w,x);};s.prototype.$AdsPixelDetailStoreClass5=function(u,v,w){this.$AdsPixelDetailStoreClass2[u]={audiences:v,hasLoadAllAudiences:w};};s.prototype.$AdsPixelDetailStoreClass7=function(u,v){var w=[];v.forEach(function(x){if(x.account_id!==h.getAccountID())w.push(x);});this.$AdsPixelDetailStoreClass3[u]=w;};s.prototype.$AdsPixelDetailStoreClass6=function(u,v,w){if(!(u in this.$AdsPixelDetailStoreClass1))return;this.$AdsPixelDetailStoreClass1[u][v]=new l(w,u);};s.prototype.$AdsPixelDetailStoreClass8=function(u,v){Object.keys(v).forEach((function(w){var x=new Date(w*1000);x=new Date(Date.UTC(x.getFullYear(),x.getMonth(),x.getDate()));Object.keys(v[w]).forEach((function(y){this.$AdsPixelDetailStoreClass4[u][y]=this.$AdsPixelDetailStoreClass4[u][y]||[];this.$AdsPixelDetailStoreClass4[u][y].push({datetime:x.getTime(),value:v[w][y]});}).bind(this));}).bind(this));};s.prototype.$AdsPixelDetailStoreClass11=function(u){!(u in this.$AdsPixelDetailStoreClass1)?p(0):undefined;};var t=new s();f.exports=t;},null);
__d('AdsPixelTableColumns',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={NAME:null,DOMAIN:null,STATUS:null,TRAFFIC:null,USER:null,SHARE:null},i=Object.keys(h).reduce(function(j,k){j[k]=k.toLowerCase();return j;},{});f.exports=i;},null);
__d('AdsPixelTableSettingStore',['AdsBaseStore','AdsDataSourceTables','AdsPixelDialogTypes','AdsPixelTableColumns','AdsPixelViewActionTypes','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n,o;'use strict';n=babelHelpers.inherits(p,h);o=n&&n.prototype;function p(){o.constructor.call(this);this.$AdsPixelTableSettingStoreClass1={};this.$AdsPixelTableSettingStoreClass1[i.PIXEL]={dataKey:k.NAME,sortStatus:'ASC'};this.$AdsPixelTableSettingStoreClass1[i.VIEW_PIXEL_CODE]={selectedPixelID:null};this.$AdsPixelTableSettingStoreClass1[i.DOMAIN]={dataKey:'count',sortStatus:'DESC'};this.$AdsPixelTableSettingStoreClass1[i.URL]={dataKey:'count',sortStatus:'DESC'};this.$AdsPixelTableSettingStoreClass1[i.EVENT]={dataKey:'count',sortStatus:'DESC'};this.$AdsPixelTableSettingStoreClass1[i.DEVICE]={dataKey:'count',sortStatus:'DESC'};}p.prototype.getStoreName=function(){return 'AdsPixelTableSettingStore';};p.prototype.onDispatchToken=function(r){var s=r.action;switch(s.actionType){case l.UPDATE_SORT_SETTING:this.$AdsPixelTableSettingStoreClass2(s.data.tableName,s.data.dataKey,s.data.sortStatus);this.inform('change');break;case l.UPDATE_TABLE_SELECTION:this.$AdsPixelTableSettingStoreClass3(s.data.selectedID);this.inform('change');break;case l.UPDATE_VIEW_PIXEL_CODE_SELECTION:this.$AdsPixelTableSettingStoreClass4(s.data.viewPixelCodeSelectedID);this.inform('change');break;case l.DIALOG_TYPE_CHANGE:if(s.data.dialogType in j)if(s.data.dialogType===j.NO_DIALOG)this.$AdsPixelTableSettingStoreClass4(undefined);break;}};p.prototype.getSortDataKey=function(r){!(r in this.$AdsPixelTableSettingStoreClass1)?m(0):undefined;return this.$AdsPixelTableSettingStoreClass1[r].dataKey;};p.prototype.getSortStatus=function(r){!(r in this.$AdsPixelTableSettingStoreClass1)?m(0):undefined;return this.$AdsPixelTableSettingStoreClass1[r].sortStatus;};p.prototype.getSelectedID=function(){return this.$AdsPixelTableSettingStoreClass1[i.PIXEL].selectedID;};p.prototype.getViewPixelCodeSelectedID=function(){return this.$AdsPixelTableSettingStoreClass1[i.VIEW_PIXEL_CODE].selectedID;};p.prototype.$AdsPixelTableSettingStoreClass2=function(r,s,t){if(!(r in this.$AdsPixelTableSettingStoreClass1))return;Object.assign(this.$AdsPixelTableSettingStoreClass1[r],{dataKey:s,sortStatus:t});};p.prototype.$AdsPixelTableSettingStoreClass3=function(r){this.$AdsPixelTableSettingStoreClass1[i.PIXEL].selectedID=r;};p.prototype.$AdsPixelTableSettingStoreClass4=function(r){this.$AdsPixelTableSettingStoreClass1[i.VIEW_PIXEL_CODE].selectedID=r;};var q=new p();f.exports=q;},null);
__d('AdsPixelStoreWrapper',['AdsDataSourceTables','AdsPixelDetailStore','AdsPixelPickerStore','AdsPixelStatsTypes','AdsPixelStore','AdsPixelTableColumnDataKey','AdsPixelTableSettingStore','adsDataSourceTableSort','dotAccess'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();var q={getPixelSharedAccounts:function(r){var s=p(l.getPixelInfo(r),'owner_business.id');return i.getPixelSharedAccounts(r,s);},getSortedPixels:function(){var r=n.getSortDataKey(h.PIXEL),s=n.getSortStatus(h.PIXEL),t=this._getPixels();return o(t,r,s);},getTotalMatchForDateChoice:function(r,s){return p(this._getPixel(r),m.USER+'.'+s);},getCurrentPixelID:function(){return j.getCurrentPixelID()||l.getPixelIDs()[0];},getTotalTrafficForDateChoice:function(r,s){return p(this._getPixel(r),m.TRAFFIC+'.'+s);},getPixelName:function(r){return p(this._getPixel(r),'name');},getIsTableDataLoaded:function(){return (l.isListLoaded()&&Object.keys(this._getPixels()).filter((function(r){return !this.getPixelStatsLoaded(r);}).bind(this)).length===0);},getPixelStatsLoaded:function(r){return (i.isPixelStatsLoaded(r,k.DOMAIN)&&i.isPixelStatsLoaded(r,k.TRAFFIC));},_getPixels:function(){var r=l.getPixelIDs(),s={};r.forEach((function(t){s[t]=this._getPixel(t);}).bind(this));return s;},_getPixel:function(r){var s=l.getPixelInfo(r),t=i.getPixelStats(k.DOMAIN,r);s[m.DOMAIN]=t&&t.getTopKeys();var u=i.getPixelStats(k.TRAFFIC,r);if(!u)return s;var v={},w={},x=u.getAggregationForAllDateChoices();Object.keys(x).forEach(function(y){v[y]=x[y].pixel_fire;w[y]=x[y].user_match;});s[m.TRAFFIC]=v;s[m.USER]=w;return s;}};f.exports=q;},null);
__d('WebsiteCustomAudienceConfirmationDialog.react',['AudienceManagerURLConstants','React','WebRemarketingDialogGear.react','XUIDialogBody.react','XUIDialogFooter.react','XUIDialogOkayButton.react','XUIDialogTitle.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();var q=i.PropTypes,r=i.createClass({displayName:'WebsiteCustomAudienceConfirmationDialog',propTypes:{pixel:q.object.isRequired},render:function(){return (i.createElement('div',null,i.createElement(n,null,p._("Website Custom Audience Created")),i.createElement(k,null,i.createElement('div',{className:"_qtd"},i.createElement('div',{className:"_5saq"},i.createElement('div',{className:"_5svr _5svs"},p._("Thank You for Creating a Custom Audience")),i.createElement('p',null,this._getMessage())))),i.createElement(l,{leftContent:i.createElement(j,{learnMoreURL:this._getLearnMoreURL()})},i.createElement(m,{use:'confirm',action:'cancel'}))));},_getMessage:function(){if(this.props.pixel.last_fired_time)return p._("Your audience is ready.");return p._("Finish setting up your Custom Audience pixel code to start adding people to this audience.");},_getLearnMoreURL:function(){return this.props.pixel.last_fired_time?h.WCA_TARGET_IN_AD:h.WCA_INSTALL_PIXEL_DOC;}});f.exports=r;},null);
__d('WebsiteCustomAudienceLoadingDialog.react',['AudienceManagerURLConstants','React','WebRemarketingDialogGear.react','XUIDialogBody.react','XUIDialogFooter.react','XUIDialogTitle.react','XUISpinner.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){if(c.__markCompiled)c.__markCompiled();var q=i.createClass({displayName:'WebsiteCustomAudienceLoadingDialog',render:function(){return (i.createElement('div',null,i.createElement(m,null,p._("Loading account information")),i.createElement(k,null,i.createElement('div',{className:"_qtd"},i.createElement(n,{className:"_5swe",size:'small',background:'light'}))),i.createElement(l,{leftContent:i.createElement(j,{learnMoreURL:h.WCA_GETTING_STARTED})})));}});f.exports=q;},null);
__d("XRemarketingTOSController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/customaudiences\/app\/tos\/",{act:{type:"Int"},account_id:{type:"Int"}});},null,{});
__d('WebsiteCustomAudienceNUXDialog.react',['AdInterfacesUiLogger','AdsPixelAudienceViewActions','AudienceManagerLoggingEvents','AudienceManagerURLConstants','CustomAudienceTosUtils','Link.react','React','Image.react','WebRemarketingDialogGear.react','XRemarketingTOSController','XUIDialogBody.react','XUIDialogButton.react','XUIDialogCancelButton.react','XUIDialogFooter.react','XUIDialogTitle.react','XUISpinner.react','cx','fbt','ix'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z){'use strict';if(c.__markCompiled)c.__markCompiled();var aa='Default Pixel',ba=n.PropTypes,ca={DEFAULT:1,CREATING_PIXEL:2},da=n.createClass({displayName:'WebsiteCustomAudienceNUXDialog',propTypes:{accountID:ba.string.isRequired,dao:ba.object.isRequired,pixel:ba.object,isTosAccepted:ba.bool.isRequired,onPixelCreated:ba.func.isRequired},getInitialState:function(){return {tosCheckboxSelected:false,viewState:ca.DEFAULT};},render:function(){return (n.createElement('div',null,n.createElement(v,null,y._("Create a Custom Audience from your Website")),n.createElement(r,null,n.createElement('div',{className:"_qtd"},n.createElement('p',null,y._("Show ads to people who visit your website.")),n.createElement('p',null,y._("You can set up your audience to include everyone who visits your website, or even create separate audiences for people who visit specific pages on your website.")),n.createElement('p',null,y._("Install the Custom Audience pixel on your website to start building your audience automatically. You can also send this code directly to the person who manages your website.")),this._renderPixelStateInfo(),this._getTOSRow())),n.createElement(u,{leftContent:n.createElement(p,{learnMoreURL:k.WCA_GETTING_STARTED})},this._renderFooter())));},_renderFooter:function(){switch(this.state.viewState){case ca.DEFAULT:if(!!this.props.pixel)return (n.createElement('div',null,n.createElement(t,null),n.createElement(s,{use:'confirm',onClick:(function(){this._acceptTOSIfNeededAndProceed(i.gotoRuleBuilder);}).bind(this),disabled:!this._getCanProceedFromNux(),label:y._("Create Audience")})));return (n.createElement('div',null,n.createElement(t,null),n.createElement(s,{use:'confirm',onClick:this._onCreatePixel,disabled:!this._getCanProceedFromNux(),label:y._("Create Custom Audience Pixel")})));case ca.CREATING_PIXEL:return (n.createElement('div',null,n.createElement(w,{className:"_5swe",size:'small',background:'light'}),n.createElement(t,{disabled:true}),n.createElement(s,{use:'confirm',disabled:true,label:y._("Create Custom Audience Pixel")})));}},_renderPixelStateInfo:function(){if(!this.props.pixel)return n.createElement('span',null);if(this.props.pixel.last_fired_time){return (n.createElement('p',null,n.createElement(m,{onClick:(function(){return this._acceptTOSIfNeededAndProceed(i.gotoViewCode);}).bind(this)},y._("View your Custom Audience pixel code"))));}else return (n.createElement('div',{className:"_5yhs"},n.createElement(o,{className:"_5svn _47aw",src:z('/images/ads/audience_manager/warning.png')}),n.createElement('div',{className:"_5svn _47ax"},n.createElement('div',{className:"_47av"},y._("You haven't finished setting up your Custom Audience pixel.")),n.createElement(m,{onClick:(function(){return this._acceptTOSIfNeededAndProceed(i.gotoViewCode);}).bind(this)},y._("View your Custom Audience pixel code"))),n.createElement('div',{className:"_5svo"})));},_getTOSRow:function(){if(this.props.isTosAccepted)return null;return (n.createElement('input',{type:'checkbox',checked:this.state.tosCheckboxSelected,onChange:this._tosCheckboxChanged},y._("I have read and accepted the {=Terms for Custom Audience from your Mobile App and Website}",[y.param('=Terms for Custom Audience from your Mobile App and Website',n.createElement(m,{target:'_blank',href:q.getURIBuilder().setInt('act',this.props.accountID).getURI()},y._("Terms for Custom Audience from your Mobile App and Website")))])));},_acceptTOSIfNeededAndProceed:function(ea){if(!this.props.isTosAccepted)return this._acceptTos(ea);ea();},_onCreatePixel:function(){this.setState({viewState:ca.CREATING_PIXEL});h.log(j.AM_WCA_NUX_CREATE_PIXEL);this._acceptTOSIfNeededAndProceed(this._createPixel);},_createPixel:function(){this.props.dao.add.createAdsPixel.one((function(ea){h.log(j.AM_WCA_NUX_CREATE_PIXEL_SUCCESS);this.props.onPixelCreated();}).bind(this),{accountId:this.props.accountID,name:aa});},_acceptTos:function(ea){this.props.dao.add.acceptCustomAudiencesTos.one(function(){ea&&ea();h.log(j.AM_WCA_TOS_ACCEPT_SUCCESS);},{tos_id:l.getTosRequirements().website_custom_audience,accountId:this.props.accountID,handleError:(function(fa,ga){h.log(j.AM_WCA_TOS_ACCEPT_FAILURE);this.setState({errorMessage:ga.error.message});}).bind(this)});},_getCanProceedFromNux:function(){return this.props.isTosAccepted||this.state.tosCheckboxSelected;},_tosCheckboxChanged:function(event){this.setState({tosCheckboxSelected:event.target.checked});}});f.exports=da;},null);
__d('AdsPixelGetHelpFlyoutLink.react',['AdsFluxMixinLegacy_DO_NOT_USE','AdsPixelDialogTypes','AdsPixelStatusEnum','AdsPixelTableSettingStore','AdsPixelViewActions','ContextualLayerAutoFlip','LayerHideOnBlur','Link.react','React','ReactDOM','ReactComponentWithPureRenderMixin','ReactLayeredComponentMixin','XUIContextualDialog.react','cx','fbt','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w){'use strict';if(c.__markCompiled)c.__markCompiled();var x=p.PropTypes,y=p.createClass({displayName:'AdsPixelGetHelpFlyoutLink',mixins:[s,r,h.AdsFluxMixinLegacyPI([k])],statics:{calculateState:function(){return {viewPixelCodeSelectedID:k.getViewPixelCodeSelectedID()};}},propTypes:{pixelStatus:x.string.isRequired,pixelID:x.string},renderLayers:function(){return {flyout:p.createElement(t,{behaviors:{ContextualLayerAutoFlip:m,LayerHideOnBlur:n},position:'right',width:t.WIDTH.NORMAL,contextRef:(function(){return this.refs.getHelpLink;}).bind(this),hoverContext:q.findDOMNode(this.refs.getHelpLink),hoverShowDelay:0,hoverHideDelay:0},p.createElement('div',{className:"_2ph_"},this._getHelpContent()))};},render:function(){return (p.createElement(o,{ref:'getHelpLink'},v._("Get help")));},_getHelpContent:function(){switch(this.props.pixelStatus){case j.INACTIVE:return (p.createElement('div',null,v._("We haven't received any events for this pixel in more than 7 days. Make sure the pixel code is properly installed or configured on your website."),p.createElement('br',null),p.createElement('br',null),p.createElement(o,{onClick:this._getPixelCode},v._("View Pixel Code"))));case j.NEVER_ACTIVE:return (p.createElement('div',null,v._("We haven't received any events for this pixel yet. Make sure the pixel code is properly installed or configured on your website."),p.createElement('br',null),p.createElement('br',null),p.createElement(o,{onClick:this._getPixelCode},v._("View Pixel Code"))));default:w(0);}},_getPixelCode:function(){l.updateViewPixelCodeSelection(this.props.pixelID);l.dialogTypeChange(i.VIEW_CODE);}});f.exports=y;},null);
__d('AdsPixelStatusBase',['AdsPixelStatusEnum','AdsPixelStatusUtils','React','cx','fbt','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=7,o=24,p=24*60*60*1000;function q(r){this.$AdsPixelStatusBase1=r;this.$AdsPixelStatusBase2=this.$AdsPixelStatusBase3(r);}q.prototype.getUserFacingStatus=function(){return i.getUserFacingStatus(this.$AdsPixelStatusBase2);};q.prototype.getIcon=function(){return i.getIcon(this.$AdsPixelStatusBase2);};q.prototype.getDetail=function(){switch(this.$AdsPixelStatusBase2){case h.NEVER_ACTIVE:return this.__getHelpLink();case h.ACTIVE:return this.$AdsPixelStatusBase4();case h.INACTIVE:return (j.createElement('span',null,j.createElement('span',{className:"_3-8_"},this.$AdsPixelStatusBase4()),this.__getHelpLink()));default:m(0);}};q.prototype.getStatus=function(){return this.$AdsPixelStatusBase2;};q.prototype.getLastReceivedSentence=function(){if(this.$AdsPixelStatusBase2===h.NEVER_ACTIVE)return undefined;var r=this.__getDaysAfterLastFired(this.$AdsPixelStatusBase1),s=Math.round(r*o);if(s<=1)return l._("In the last hour");if(s<o)return l._("{number} hours ago",[l.param('number',s)]);r=Math.round(r);if(r<=1)return l._("1 day ago");return l._("{number} days ago",[l.param('number',r)]);};q.prototype.$AdsPixelStatusBase3=function(r){if(!r)return h.NEVER_ACTIVE;var s=this.__getDaysAfterLastFired(r);if(s>n)return h.INACTIVE;return h.ACTIVE;};q.prototype.__getDaysAfterLastFired=function(r){var s=new Date(r||''),t=new Date();return ((t.getTime()-s.getTime())/p);};q.prototype.__getHelpLink=function(){return j.createElement('div',null);};q.prototype.$AdsPixelStatusBase4=function(){var r=this.__getDaysAfterLastFired(this.$AdsPixelStatusBase1),s=Math.round(r*o);if(s<=1)return l._("Last Received: in the last hour");if(s<o)return l._("Last Received: {number} hours ago",[l.param('number',s)]);r=Math.round(r);if(r<=1)return l._("Last Received: 1 day ago");if(r<=n)return l._("Last Received: {number} days ago",[l.param('number',r)]);return l._("No activity for {number} days",[l.param('number',r)]);};f.exports=q;},null);
__d('AdsPixelStatus',['AdsPixelGetHelpFlyoutLink.react','AdsPixelStatusBase','React'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';k=babelHelpers.inherits(m,i);l=k&&k.prototype;function m(n,o){l.constructor.call(this,n);this.$AdsPixelStatus1=o||'';}m.prototype.__getHelpLink=function(){return (j.createElement(h,{pixelStatus:this.getStatus(),pixelID:this.$AdsPixelStatus1}));};f.exports=m;},null);
__d('AdsPixelInfo.react',['AdsFluxMixinLegacy_DO_NOT_USE','AdsPixelStatus','AdsPixelStore','Layout.react','React','ReactComponentWithPureRenderMixin','XUIGrayText.react','cx','fbt','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=k.Column,s=l.PropTypes,t=l.createClass({displayName:'AdsPixelInfo',mixins:[m,h.AdsFluxMixinLegacyPI([j],{withProps:true})],propTypes:{pixelID:s.string.isRequired,className:s.string},statics:{calculateState:function(u,v){return {pixelName:j.getName(v.pixelID),pixelStatus:new i(j.getPixelLastFiringTime(v.pixelID))};}},render:function(){return (l.createElement(k,{className:q("_4kj",this.props.className)},l.createElement(r,{className:"_4kk"},this.state.pixelStatus.getIcon()),l.createElement(r,{className:"_4kl"},l.createElement(n,{className:"_4evt",display:'block',shade:'dark',weight:'bold'},this.state.pixelName),l.createElement(n,{shade:'medium',className:"_4kp"},p._("Pixel ID: {pixel id}",[p.param('pixel id',this.props.pixelID)])))));}});f.exports=t;},null);
__d('AdsRichSelector.react',['ContextualLayer.react','ContextualLayerAutoFlip','ContextualLayerUpdateOnScroll','DOM','Image.react','InlineBlock.react','React','ReactDOM','ReactChildren','ReactLayeredComponentMixin','ScrollableArea','ScrollableArea.react','Style','SubscriptionsHandler','XUIError.react','XUIPopoverButton.react','cloneWithProps','cx','emptyFunction','invariant','joinClasses','requestAnimationFrame'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca){'use strict';if(c.__markCompiled)c.__markCompiled();var da=n.PropTypes,ea={ContextualLayerAutoFlip:i,ContextualLayerUpdateOnScroll:j};function fa(ka,la,ma){!(p.count(ka.children)>0)?aa(0):undefined;var na=null,oa=p.map(ka.children,function(pa){switch(pa.type){default:case ha:if(ma==null&&!ka.defaultLabel)ma=pa.props.value;if(ma===pa.props.value){na=pa;la.selected=true;}else la.selected=false;return x(pa,la);case ia:na=na||fa(pa.props,la,ma).selectedItem;return x(pa,la);case ja:return pa;}});return {items:oa,selectedItem:na};}var ga=n.createClass({displayName:'AdsRichSelector',mixins:[q],propTypes:babelHelpers._extends({alignment:da.oneOf(['left','center','right']),defaultLabel:da.oneOfType([da.object,da.string]),disabled:da.bool,height:da.number,image:da.object,label:da.oneOfType([da.node,da.string]),maxheight:da.number,maxMenuWidth:da.number,maxwidth:da.number,noLabel:da.bool,onChange:da.func,onDropdown:da.func,requireSelection:da.bool,size:da.string,suppressed:da.bool,useMenuDividers:da.bool},v.propTypes),_scrollableArea:null,getDefaultProps:function(){return {defaultLabel:'',onDropdown:z,requireSelection:true};},getInitialState:function(){!(!this.props.height||!this.props.maxheight)?aa(0):undefined;return {preShowLayer:false,showLayer:false,value:this.props.defaultValue};},componentDidMount:function(){this.subscriptions=new u();this.subscriptions.addSubscriptions(this.refs.menu.layer.subscribe('blur',this._onBlur),this.refs.menu.layer.subscribe('hide',this._onBlur));this._setMaxHeight();},componentWillReceiveProps:function(ka){!(!ka.height||!ka.maxheight)?aa(0):undefined;if('defaultValue' in ka)this.setState({value:ka.defaultValue});},componentWillUnmount:function(){this.subscriptions.release();},componentDidUpdate:function(ka){if(ka.maxheight!==this.props.maxheight)this._setMaxHeight();},render:function(){var ka={onSelect:this._onSelect},la=fa(this.props,ka,this.state.value),ma=la.selectedItem,na;if(this.props.label){na=this.props.label;}else if(ma){na=this.props.noLabel?'':ma.props.label;}else na=this.props.defaultLabel;var oa;if(this.props.image){oa=this.props.image;}else if(ma){oa=ma.props.icon;}else oa=null;return (n.createElement(v,this.props,n.createElement(m,{alignv:'middle',className:ba(this.state.showLayer?"openToggler":'',this.props.className),name:null},n.createElement(w,{className:"_5mhp"+(this.state.showLayer?' '+"selected":'')+(this.state.showLayer&&this.props.alignment!='right'?' '+"_nk":'')+(this.state.showLayer&&this.props.alignment=='right'?' '+"_nl":''),disabled:this.props.disabled||false,size:this.props.size||'medium',depressed:this.state.showLayer,theme:this.props.theme||'dark',suppressed:this.props.suppressed||false,maxwidth:this.props.maxwidth||0,label:na,ref:'selectorButton',onClick:this._toggleSelector,'aria-label':this.props.tooltip||null,'data-hover':'tooltip','data-tooltip-alignh':this.props.alignh||'left','data-tooltip-alignv':this.props.alignv||'above',image:oa}))));},_getBehaviors:function(){return babelHelpers._extends({},ea,this.props.behaviors);},renderLayers:function(){var ka={onSelect:this._onSelect},la=null;if(this.state.showLayer||this.state.preShowLayer)la=fa(this.props,ka,this.state.value).items;if(this.state.showLayer)this.props.onDropdown();var ma=n.createElement('ul',{className:"_54nf"+(this.props.useMenuDividers?' '+"_4fau":''),role:'menu',style:{maxWidth:this.props.maxMenuWidth},ref:'menuItems'},la),na=this.props.height?n.createElement(s,{height:this.props.height},ma):ma;return {menu:n.createElement(h,{contextRef:(function(){return this.refs.selectorButton;}).bind(this),position:'below',alignment:this.props.alignment||'left',ref:'menu',shown:this.state.showLayer,behaviors:this._getBehaviors()},n.createElement('div',{className:"_54nq _575t _57di _558b"},n.createElement('div',{className:"_54ng",ref:'menuContainer'},na)))};},_setMaxHeight:function(){var ka=o.findDOMNode(this.refs.menuItems),la=o.findDOMNode(this.refs.menuContainer);if(this.props.maxheight){var ma=r.renderDOM();this._scrollableArea=ma.root;k.setContent(ma.content,ka);t.set(ma.wrap,'max-height',this.props.maxheight+'px');k.setContent(la,this._scrollableArea);}else if(this._scrollableArea)k.setContent(la,ka);},_toggleSelector:function(){if(!this.props.disabled)this._setLayerShownState(true);},_onBlur:function(){ca((function(){if(this.isMounted())this._setLayerShownState(false);}).bind(this));},_setLayerShownState:function(ka,la){if(ka&&ka!==this.state.showLayer){this.setState(babelHelpers._extends({preShowLayer:true},la),(function(){this.setState({showLayer:ka,preShowLayer:false});}).bind(this));}else this.setState(babelHelpers._extends({showLayer:ka,preShowLayer:false},la));},_onSelect:function(ka){this._setLayerShownState(false,{image:ka.icon,value:ka.value});this.props.onChange&&this.props.onChange(ka);}}),ha=n.createClass({displayName:'AdsRichSelectorOption',propTypes:{clickable:da.bool,href:da.string,label:da.oneOfType([da.object,da.string]),onSelect:da.func,selected:da.bool,value:da.oneOfType([da.string,da.number])},getDefaultProps:function(){return {clickable:true};},getInitialState:function(){return {highlighted:false};},render:function(){var ka=this._renderMenuItemContainer(),la=this.props.clickable,ma=null,na=null,oa=null;if(la){!this.props.hasOwnProperty('value')?aa(0):undefined;ma=this._onSelect;na=this._onMouseEnter;oa=this._onMouseLeave;ka=n.createElement('a',{className:"_54nc _4faw",ref:'menuItemAnchor',role:'menuitem',href:this.props.href,tabIndex:'0'},n.createElement('div',{className:"_4fax _ftt"}),ka);}var pa=this.state.highlighted;return (n.createElement('li',{className:ba("_54ni"+(la&&pa?' '+"_54ne":'')+(la&&this.props.selected?' '+"_4fav":''),this.props.className),onClick:ma,onMouseEnter:na,onMouseLeave:oa},ka));},_renderMenuItemContainer:function(){var ka=this.props.children,la=this.props.icon;if(la){!(la.type===l)?aa(0):undefined;ka=n.createElement('div',{className:"_52ps"},n.createElement('div',{className:"_52pt prs"},la),ka);}return (n.createElement('div',{className:"_4fay"},ka));},_onSelect:function(ka){var la=ka.nativeEvent;if(!la||!la.isMiddleClick()&&!la.getModifiers().any){la.preventDefault();this.props.onSelect&&this.props.onSelect({icon:this.props.icon,label:this.props.label,value:this.props.value});}},_onMouseEnter:function(){this.setState({highlighted:true});},_onMouseLeave:function(){this.setState({highlighted:false});}}),ia=n.createClass({displayName:'AdsRichSelectorOptionGroup',propTypes:{onChange:da.func,onSelect:da.func},getInitialState:function(){return {value:this.props.defaultValue};},componentWillReceiveProps:function(ka){if('defaultValue' in ka)this.setState({value:ka.defaultValue});},_onSelect:function(ka){this.setState({value:ka.value});this.props.onSelect&&this.props.onSelect(ka);this.props.onChange&&this.props.onChange(ka);},render:function(){var ka=this.props,la=ka.className,ma=babelHelpers.objectWithoutProperties(ka,['className']),na={onSelect:this._onSelect},oa=fa(ma,na,this.state.value),pa=oa.items;return (n.createElement('li',{className:ba(la,"_b_x")},n.createElement('ul',null,pa)));}}),ja=n.createClass({displayName:'AdsRichSelectorSeparator',propTypes:{label:da.string,noBorder:da.bool},render:function(){!(this.props.label||!this.props.noBorder)?aa(0):undefined;return (n.createElement('li',{className:"_54ak"+(' '+"_52pu")+(!!this.props.noBorder?' '+"_52pv":'')},this._renderSeparatorLabel()));},_renderSeparatorLabel:function(){if(!this.props.label)return null;return (n.createElement('h4',{className:"_52ri"},this.props.label));}});ga.Option=ha;ga.OptionGroup=ia;ga.Separator=ja;f.exports=ga;},null);
__d('AdsPixelPicker.react',['AdsFluxMixinLegacy_DO_NOT_USE','AdsPixelInfo.react','AdsPixelPickerStore','AdsPixelPickerViewActions','AdsPixelStatus','AdsPixelStore','AdsPixelStoreWrapper','AdsRichSelector.react','Layout.react','React','ReactComponentWithPureRenderMixin','XUIGrayText.react','cx'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){'use strict';if(c.__markCompiled)c.__markCompiled();var u=p.Column,v=o.Option,w=q.PropTypes,x=q.createClass({displayName:'AdsPixelPicker',mixins:[r,h.AdsFluxMixinLegacyPI([m,j],{withProps:true})],propTypes:{selectedPixelID:w.string,onChange:w.func},statics:{calculateState:function(y,z){var aa=z.selectedPixelID||n.getCurrentPixelID(),ba=aa&&m.getName(aa),ca=aa&&new l(m.getPixelLastFiringTime(aa)),da=m.getPixelIDs();return {currentPixelID:aa,currentPixelName:ba,currentPixelStatus:ca,pixelIDs:da};}},render:function(){if(!this.state.currentPixelID)return null;var y=this.state.pixelIDs.map(function(z){return (q.createElement(v,{value:z,key:z,className:"_1pnw"},q.createElement(i,{pixelID:z,className:"_1pnx"})));});return (q.createElement(o,{onChange:this._onChange,label:this._getLabel(),className:"_4y1r"},y));},_getLabel:function(){return (q.createElement(p,{className:"_1pny"},q.createElement(u,{className:"_4y1s"},this.state.currentPixelStatus.getIcon()),q.createElement(u,{className:"_4y1t"},q.createElement(s,{className:"_4jbv",shade:'dark'},this.state.currentPixelName))));},_onChange:function(y){this.props.onChange&&this.props.onChange(y.value);k.setPixelID(y.value);}});f.exports=x;},null);
__d('AdsPixelPickerWrapper.react',['AdsFluxMixinLegacy_DO_NOT_USE','AdsPixelInfo.react','AdsPixelPicker.react','AdsPixelPickerStore','AdsPixelStore','AdsPixelStoreWrapper','React','ReactComponentWithPureRenderMixin'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){'use strict';if(c.__markCompiled)c.__markCompiled();var p=n.PropTypes,q=n.createClass({displayName:'AdsPixelPickerWrapper',mixins:[o,h.AdsFluxMixinLegacyPI([l,k],{withProps:true})],propTypes:{selectedPixelID:p.string,onChange:p.func,isPickerDisabled:p.bool},statics:{calculateState:function(r,s){return {currentPixelID:s.selectedPixelID||m.getCurrentPixelID(),pixelIDs:l.getPixelIDs(),isPickerDisabled:k.isPickerDisabled()||s.isPickerDisabled};}},render:function(){if(this.state.isPickerDisabled||this.state.pixelIDs.length===1)return (n.createElement(i,{pixelID:this.state.currentPixelID}));return (n.createElement(j,{onChange:this.props.onChange,selectedPixelID:this.state.currentPixelID}));}});f.exports=q;},null);
__d('AdsPixelPickerRow.react',['AdsAccountStore','AdsAccountStoreWrapper','AdsFluxMixinLegacy_DO_NOT_USE','AdsHelpLink.react','AdsPixelPickerStore','AdsPixelPickerWrapper.react','AdsPixelStore','AdsPixelStoreWrapper','Layout.react','React','ReactComponentWithPureRenderMixin','XUIGrayText.react','cx','fbt','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){'use strict';if(c.__markCompiled)c.__markCompiled();var w=p.Column,x=q.PropTypes,y=q.createClass({displayName:'AdsPixelPickerRow',mixins:[r,j.AdsFluxMixinLegacyPI([l,n,h])],propTypes:{isPickerDisabled:x.bool,className:x.string},statics:{calculateState:function(){return {currentPixelID:o.getCurrentPixelID(),canSeeUnifiedPixel:i.canSeeUnifiedPixel()};}},render:function(){if(!this.state.currentPixelID||!this.state.canSeeUnifiedPixel)return null;return (q.createElement(p,{className:this._getRootClass()},q.createElement(w,{className:"_1s95"},this._getLabel()),q.createElement(w,null,q.createElement(m,{isPickerDisabled:this.props.isPickerDisabled}))));},_getRootClass:function(){return v("_1s93",this.props.className);},_getLabel:function(){return (q.createElement('div',null,q.createElement(s,{shade:'light',weight:'bold'},u._("Pixel")),q.createElement(k,{position:'above'},u._("Custom Audience pixel associated to this outcome."))));}});f.exports=y;},null);
__d('AudienceMatchFailNotice.react',['React','XUINotice.react','Link.react','AdInterfacesUiLogger','AudienceManagerLoggingEvents','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=h.PropTypes,p=h.createClass({displayName:'AudienceMatchFailNotice',propTypes:{onSkipCheck:o.func.isRequired},getInitialState:function(){return {feedbackGiven:false};},render:function(){return (h.createElement(i,{use:'warn'},h.createElement('div',null,n._("FB-ONLY: Your rule does not capture any of the pixels traffic from the past 14 days. Please check your rule, keeping in mind that the rule is case sensitive. You can check your pixel traffic by bunny lol pxl adaccount_id\/pixel_id. Please send feedback to the Website Custom Audience XFN group."),this._getFeedback(),h.createElement('div',{className:"_3-8w"},h.createElement(j,{onClick:this._onSkipCheck},n._("Skip this check, create audience."))))));},_getFeedback:function(){if(this.state.feedbackGiven)return (h.createElement('div',{className:"_3-8w"},n._("Thank you for giving us feedback!")));return (h.createElement('div',{className:"_3-8w"},h.createElement('div',null,h.createElement(j,{onClick:this._onUseful},n._("I like this new feature, this is useful!"))),h.createElement('div',null,h.createElement(j,{onClick:this._onUseless},n._("I don't like this new feature, this is useless!")))));},_onSkipCheck:function(){this.props.onSkipCheck();k.log(l.WCA_CREATION_ON_RULE_CHECKER_FAILURE);},_onUseful:function(){this.setState({feedbackGiven:true});k.log(l.REPORT_RULE_CHECKER_USEFUL);},_onUseless:function(){this.setState({feedbackGiven:true});k.log(l.REPORT_RULE_CHECKER_USELESS);}});f.exports=p;},null);
__d('WebsiteCustomAudienceMetaInfo.react',['AudienceManagerTextInput','InfoTable.react','InfoTableRow.react','InfoTableSection.react','Link.react','React','XUITextInput.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){if(c.__markCompiled)c.__markCompiled();var q=m.PropTypes,r=m.createClass({displayName:'WebsiteCustomAudienceMetaInfo',getInitialState:function(){return {showDescription:this.props.audience.description.length>0};},propTypes:{audience:q.object.isRequired,onUpdateAudienceFields:q.func.isRequired,enableValidation:q.bool.isRequired},render:function(){return (m.createElement(i,null,m.createElement(k,null,m.createElement(j,{label:p._("Audience Name"),type:'data'},m.createElement('div',null,m.createElement(n,{className:"_4u_"+(this.props.enableValidation&&!this.props.audience.name.length?' '+"_4b5f":''),placeholder:p._("Enter a name for your audience"),title:p._("Enter a name to create audience"),value:this.props.audience.name,onChange:(function(event){this.props.onUpdateAudienceFields(this.props.audience,{name:event.target.value});}).bind(this)}),this._renderDescriptionLink())),this._renderDescription())));},_renderDescriptionLink:function(){if(this.state.showDescription)return;return (m.createElement(l,{onClick:this.setState.bind(this,{showDescription:true},null)},p._("Add a description")));},_renderDescription:function(){if(!this.state.showDescription)return;return (m.createElement(j,{label:p._("Description")},m.createElement('div',null,m.createElement(h,{isTextArea:true,className:"_5w16",value:this.props.audience.description,placeholder:p._("Add an optional description of your audience"),onChange:(function(s){this.props.onUpdateAudienceFields(this.props.audience,{description:s});}).bind(this)}))));}});f.exports=r;},null);
__d('WebsiteCustomAudienceOperators',['fbt'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={EQ:{value:'eq',label:h._("equals"),isNumeric:false},NEQ:{value:'neq',label:h._("not equals"),isNumeric:false},LT:{value:'lt',label:'<',isNumeric:true},GT:{value:'gt',label:'>',isNumeric:true},GTE:{value:'gte',label:'>=',isNumeric:true},LTE:{value:'lte',label:'<=',isNumeric:true},CONTAINS:{value:'i_contains',label:h._("contains"),isNumeric:false},NOT_CONTAINS:{value:'i_not_contains',label:h._("not contains"),isNumeric:false}},j={EQ:{value:'eq',label:h._("Equals"),isNumeric:false},CONTAINS:{value:'i_contains',label:h._("Contains"),isNumeric:false}},k={EQ:{value:'eq',label:h._("URL equals"),isNumeric:false},CONTAINS:{value:'i_contains',label:h._("URL contains"),isNumeric:false}};f.exports={GenericOperators:i,SimpleOperators:j,URLOperators:k};},null);
__d('WebsiteCustomAudienceModel',['isEmpty','WebsiteCustomAudienceTrafficType','WebsiteCustomAudienceOperators'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=j.GenericOperators,l=j.URLOperators,m=function(){this.id=null;this.name='';this.description='';this.inclusion_rules=[new p()];this.exclusion_rules=[new p()];this.duration=30;this.trafficType=i.ALL_WEBSITE_VISITORS;this.isRuleEditable=true;},n=0,o=function(){this.key=n++;this.filter=k.CONTAINS.value;this.tokens=[];this.customfield=null;},p=function(){this.id=null;this.key=n++;this.scope='url';this.clauses=[new o()];this.event=null;},q={getAllVisitors:function(){var s=new p();s.clauses[0].tokens.push("");return s;},getDeprecatedAllVisitors:function(){var s=new p();s.clauses[0].tokens.push("/");return s;},isDeprecatedAllVisitors:function(s){return s===r.serializeRule(q.getDeprecatedAllVisitors());},isAllVisitors:function(s){return q.isDeprecatedAllVisitors(s)||r.serializeRule(q.getAllVisitors())===s;}},r={isEventBasedRule:function(s){return s.scope==='event';},migrateAtomicRule:function(s){if(h(s))return null;var t=Object.keys(s)[0];if(t.toLowerCase()==='domain'||t.toLowerCase()==='path')if(Object.keys(s)[0]=='i_not_contains'){return null;}else{s.url=s[t];t='url';}if(t.toLowerCase()!='url')return null;var u=s[t],v=Object.keys(u)[0],w=u[v];if(!r._containsOperator(l,v))return null;return {scope:t,operator:v,token:w};},migrateRule:function(s){var t=new p(),u;if(r._isAtomic(s)){return this.migrateAtomicRule(s);}else if(s.and){for(var v=0;v<s.and.length;v++){var w=s.and[v];if(r._isAtomic(w))w={or:[w]};u=this.migrateRule(w);if(!u)return null;r._updateRuleClauseWithOrParse(u,t);}t.clauses=t.clauses.filter(function(ba){return (r.validateRuleClauseWhenDeserialize(t,ba));});}else if(s.or){var x=[],y=null,z=null;for(var aa=0;aa<s.or.length;aa++){if(!r._isAtomic(s.or[aa]))return null;u=this.migrateAtomicRule(s.or[aa]);if(!u)return null;if(!y){y=u.scope;}else if(y!==u.scope)return null;z=u.operator;x.push(u.token);}return {tokens:x,scope:y,filter:z};}if(r.isEventBasedRule(t)&&t.clauses.length===0)t.clauses=[new o()];return t;},validateRule:function(s){var t=s.clauses.filter(function(u){return r.validateRuleClause(s,u);});if(r.isEventBasedRule(s)){if(!s.event)return false;if(s.clauses.length)return t.length>0;return true;}return t.length>0;},validateRuleClause:function(s,t){return t.tokens.length>0||r.isEventBasedRule(s)&&!t.customfield;},validateRuleClauseWhenDeserialize:function(s,t){return t.tokens.length>0;},serializeRule:function(s){if(r.isEventBasedRule(s))return r._serializeCustomEventRule(s);var t=[];for(var u=0;u<s.clauses.length;u++){var v=s.clauses[u];t.push(r.serializeClause(v,s.scope));}t=t.filter(function(w){return !!w;});if(t.length)return JSON.stringify({and:t});},_serializeCustomEventRule:function(s){var t=s.clauses.map(function(u){return r.serializeClause(u,u.customfield);}).filter(function(u){return !!u;});t.push(r._serializeRuleUnit(s.scope,k.EQ.value,s.event));return JSON.stringify({and:t});},serializeClause:function(s,t){var u=[];for(var v=0;v<s.tokens.length;v++){var w=s.tokens[v];u.push(r._serializeRuleUnit(t,s.filter,w));}if(u.length)return {or:u};},_serializeRuleUnit:function(s,t,u){var v={};v[t]=u;var w={};w[s]=v;return w;},deserializeRule:function(s){try{if(q.isDeprecatedAllVisitors(s))return q.getAllVisitors();var u,v=JSON.parse(s);if(v.and){u=r._deserializeClausesFromAnd(v);}else if(v.or){var w=r._deserializeTokensFromOr(v);if(w){u=new p();r._updateRuleClauseWithOrParse(w,u);u.clauses=u.clauses.filter(function(x){return (r.validateRuleClauseWhenDeserialize(u,x));});}}else if(v.url||v.device_type)u=this._deserializeClausesFromAnd({and:[v]});if(!u)return u;if(r.isEventBasedRule(u)&&u.clauses.length===0)u.clauses=[new o()];return u;}catch(t){}},_deserializeClausesFromAnd:function(s){var t=new p();for(var u=0;u<s.and.length;u++){var v=s.and[u];if(v.or){var w=this._deserializeTokensFromOr(v);if(!w)return;r._updateRuleClauseWithOrParse(w,t);}else if(r._isAtomic(v)){w=this._deserializeTokensFromOr({or:[v]});if(!w)return;r._updateRuleClauseWithOrParse(w,t);}}t.clauses=t.clauses.filter(function(x){return r.validateRuleClauseWhenDeserialize(t,x);});return t;},_deserializeTokensFromOr:function(s){var t=[],u=null,v=null;for(var w=0;w<s.or.length;w++){var x=s.or[w];if(!r._isAtomic(x))return;var y=r._deserializeAtomicRule(x);if(!y)return;if(!u){u=y.scope;}else if(u!==y.scope)return;v=y.operator;t.push(y.token);}return {tokens:t,scope:u,filter:v};},_updateRuleClauseWithOrParse:function(s,t){if(!s||!s.tokens.length)return;var u=new o();switch(s.scope){case 'event':t.event=s.tokens[0];t.scope='event';return;case 'url':t.scope=s.scope;break;case 'device_type':t.scope=s.scope;break;default:u.customfield=s.scope;}u.tokens=s.tokens;u.filter=s.filter;t.clauses.push(u);},_deserializeAtomicRule:function(s){if(h(s))return;var t=Object.keys(s)[0];if(t.toLowerCase()==='domain'||t.toLowerCase()==='path')return;var u=s[t],v=Object.keys(u)[0],w=u[v];if(t.toLowerCase()==='url'&&!r._containsOperator(l,v))return;return {scope:t,operator:v,token:w};},_isAtomic:function(s){return !s.or&&!s.and;},findRule:function(s,t){var u=r._findRuleInArray(s.inclusion_rules,t);if(!u)u=r._findRuleInArray(s.exclusion_rules,t);return u;},_findRuleInArray:function(s,t){for(var u=0;u<s.length;u++)if(s[u].key==t)return s[u];return null;},findRuleClause:function(s,t){return r._findRuleClauseInArray(s.inclusion_rules,t)||r._findRuleClauseInArray(s.exclusion_rules,t);},_findRuleClauseInArray:function(s,t){for(var u=0;u<s.length;u++){var v=s[u];for(var w=0;w<v.clauses.length;w++){var x=v.clauses[w];if(x.key==t)return x;}}return null;},getOperatorLabel:function(s,t){return Object.keys(s).filter(function(u){return (s[u].value===t);}).reduce(function(u,v){return s[v].label;},null);},_containsOperator:function(s,t){return Object.keys(s).some(function(u){return s[u].value===t;});}};f.exports={Audience:m,Operations:r,Rule:p,RuleClause:o,RuleTemplates:q};},null);
__d('ads-cluster-constants',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={CUSTOM_CLUSTER_PARENT_CATEGORY:'Custom',UPLOAD_TYPE_UID:'uids',UPLOAD_TYPE_EMAIL:'emails',UPLOAD_TYPE_PHONE:'phone numbers',UPLOAD_TYPE_GEN:'gender',UPLOAD_TYPE_DOBYM:'dobym',UPLOAD_TYPE_LN:'ln',UPLOAD_TYPE_FN:'fn',UPLOAD_TYPE_CT:'ct',UPLOAD_TYPE_ST:'st',UPLOAD_TYPE_ZIP:'zip',UPLOAD_TYPE_CBSA:'cbsa',UPLOAD_TYPE_MULTIKEY:'multikey',UPLOAD_TYPE_HASH:'hashes',UPLOAD_TYPE_PARTNER_TOKEN:'partner tokens',UPLOAD_TYPE_PLATFORM_ADVERTISER_TOKEN:'custom audience third party ids',UPLOAD_TYPE_MOBILE_ADVERTISER_ID:'mobile advertiser ids',CLUSTER_TYPE_USER_GENERATED:4,MAX_USER_CLUSTERS_TO_DISPLAY:100,CLUSTER_API_MAX_SIZE:10000,EMPTY_AUDIENCE_SIZE:20,ERROR_THRESHOLD_RATE:.01,LOOKALIKE_SIMILARITY:'similarity',LOOKALIKE_REACH:'reach',LOOKALIKE_CUSTOM_RATIO:'custom_ratio',LOOKALIKE_COUNTRY_DEFAULT:'US',LOOKALIKE_SOURCE_TYPE:{CUSTOM_AUDIENCE:'ca',CONVERSION_PIXEL:'px',PAGE:'page',APPLICATION:'app'},UNREADABLE_CUSTOM_AUDIENCES:1,DELETED_CUSTOM_AUDIENCES:2,OPT_OUT_CONFLICT_CUSTOM_AUDIENCES:3,LOOKALIKE_TYPE:2,LOOKALIKE_CUSTOM_RATIO_LIMIT:{TINY_MIN:.001,MIN:.01,MAX:.1,BIG_MAX:.2,GRANULARITY:.01},LOOKALIKE_MIN_THRESHOLD:100,STATUS_READY:'ready',STATUS_WAITING:'waiting',BCT_UI_VARIATIONS:{CONTROL:0,NULL_STATE_BROWSE:1,BROWSE_TREE_HIDDEN:2,BROWSE_TREE_VISIBLE:3}};f.exports=h;},null);
__d('WebsiteCustomAudienceRetention.react',['AdsHelpLink.react','AudienceManagerUIConstants','InfoTable.react','InfoTableRow.react','InfoTableSection.react','InputLabel.react','React','XUICheckboxInput.react','XUITextInput.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){if(c.__markCompiled)c.__markCompiled();var s=n.PropTypes,t=n.createClass({displayName:'WebsiteCustomAudienceRetention',propTypes:{duration:s.number.isRequired,prefill:s.bool.isRequired,onChangeDuration:s.func.isRequired,onChangePrefill:s.func},getInitialState:function(){return {duration:this.props.duration.toString()};},componentWillReceiveProps:function(u){if(this.state.duration!==u.duration.toString())this.setState({duration:u.duration.toString()});},render:function(){return (n.createElement(j,null,n.createElement(l,null,n.createElement(k,{label:r._("In the Last"),helpLink:n.createElement(h,{position:'above',width:i.HELP_LINK_WIDTH},r._("The number of days people will remain in your audience after they visit your website. People will be removed from your audience after the set time period unless they visit your website again."),n.createElement('br',null),n.createElement('br',null),r._("Maximum time: 180 days")),type:'data'},n.createElement('div',null,n.createElement('div',null,n.createElement(p,{className:"_56mh",value:this.state.duration,onChange:(function(event){return this.setState({duration:event.target.value});}).bind(this),onBlur:this._updateDuration}),n.createElement('span',{className:"_5r3z"},r._("days"))),this._renderPrefill())))));},_renderPrefill:function(){if(!this.props.onChangePrefill)return;return (n.createElement('div',{className:"_5ns4"},n.createElement(m,null,n.createElement(o,{defaultChecked:this.props.prefill,onChange:(function(event){return this.props.onChangePrefill(event.target.checked);}).bind(this)}),n.createElement('label',null,r._("Include past website traffic")))));},_updateDuration:function(){var u=parseInt(this.state.duration,10);if(!isNaN(u)&&u>0&&u<=180){this.props.onChangeDuration(u);}else this.setState({duration:this.props.duration.toString()});}});f.exports=t;},null);
__d('WebsiteCustomAudienceRuleBuilderChooseDomain.react',['AdInterfacesUiLogger','AdsHelpLink.react','AdsPixelHostDataSource','AdsSearchHostTokenizer.react','InfoTable.react','InfoTableRow.react','InfoTableSection.react','AudienceManagerLoggingEvents','React','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){if(c.__markCompiled)c.__markCompiled();var s=p.PropTypes,t=p.createClass({displayName:'WebsiteCustomAudienceRuleBuilderChooseDomain',propTypes:{dao:s.object.isRequired,pixel:s.object.isRequired,rule:s.object.isRequired,onUpdateClauseFields:s.func.isRequired},getInitialState:function(){return {showComponent:false};},componentWillMount:function(){this._dataSource=new j(this.props.dao,this.props.pixel.id,this._onSourceChange);},render:function(){if(!this.state.showComponent)return p.createElement('script',null);return (p.createElement(l,{className:"_3af5"},p.createElement(n,null,p.createElement(m,null,p.createElement('span',null,p.createElement('div',{className:"_19g1"},r._("Include people who visit any page on the following domains (optional)."),p.createElement(i,{position:'above'},p.createElement('div',{className:"_46rj"},r._("In some cases, you may see domains in this list where your pixel is not installed. If the domain for a pixel event can't be detected, this will show the referral domain that the person was on when they came to your site.")))),p.createElement(k,{onUpdate:this._onUpdate,tokens:this.props.rule.clauses[0].tokens,dataSource:this._dataSource}))))));},_onSourceChange:function(){if(this._dataSource.getHostNumber()>1){this.setState({showComponent:true});h.log(o.AM_WCA_EDITOR_DOMAIN_SELECTOR_SHOWN);}},_onUpdate:function(u){var v=u.map(function(w){return w.getTitle();});this.props.onUpdateClauseFields(this.props.rule.clauses[0],{tokens:v});}});f.exports=t;},null);
__d('WebsiteCustomAudienceRuleBuilderChurners.react',['InfoTable.react','InfoTableRow.react','InfoTableSection.react','React','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n=k.createClass({displayName:'WebsiteCustomAudienceRuleBuilderChurners',render:function(){return (k.createElement(h,{className:"_3af5"},k.createElement(j,null,k.createElement(i,null,k.createElement('div',{className:"_19g1"},m._("Include people who have visited your website in the last 180 days but haven't been back"))))));}});f.exports=n;},null);
__d('AdsPixelEventDataSource',['AdsDaoGraph'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=['PixelInitialized','NoScript','__missing_event'],j=['null'];function k(l){'use strict';this.pixelID=l;}k.prototype.fetchEvents=function(l){'use strict';if(!this.pixelID)this.events={};if(this.events){l(this.events);return;}h.fetch.pixelInsights.one((function(m){return this.$AdsPixelEventDataSource1(m,l);}).bind(this),{pixelId:this.pixelID,start_time:'-7 days',aggregation:'event'});};k.prototype.fetchCustomFields=function(l,m){'use strict';if(this.events[l].fields){m(this.events);return;}h.fetch.pixelInsights.one((function(n){return this.$AdsPixelEventDataSource2(n,l,m);}).bind(this),{pixelId:this.pixelID,start_time:'-7 days',aggregation:'custom_data_field',event:l});};k.prototype.$AdsPixelEventDataSource1=function(l,m){'use strict';if(!l.length)return;l=this.$AdsPixelEventDataSource3(l);this.events=this.$AdsPixelEventDataSource4(l);m(this.events);};k.prototype.$AdsPixelEventDataSource2=function(l,m,n){'use strict';if(!l.length)return;l=this.$AdsPixelEventDataSource3(l);this.events[m].fields=this.$AdsPixelEventDataSource5(l);n(this.events);};k.prototype.$AdsPixelEventDataSource3=function(l){'use strict';var m={};for(var n=0;n<l.length;n++){var o=l[n].data;if(!o)continue;for(var p=0;p<o.length;p++){var q=o[p];if(m.hasOwnProperty(q.value)){m[q.value].count+=q.count;}else m[q.value]={count:q.count};}}return m;};k.prototype.$AdsPixelEventDataSource4=function(l){'use strict';var m=l;i.forEach(function(n){return delete m[n];});return m;};k.prototype.$AdsPixelEventDataSource5=function(l){'use strict';var m=l;j.forEach(function(n){return delete m[n];});return m;};f.exports=k;},null);
__d('AdsPixelCommonTypeahead.react',['AdsPixelCommonSearchSource','React','XUITypeahead.react'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=i.PropTypes,l=new h(),m=i.createClass({displayName:'AdsPixelCommonTypeahead',propTypes:{items:k.object.isRequired,onSelected:k.func.isRequired,placeholder:k.string.isRequired},getInitialState:function(){return {query:''};},render:function(){l.setItems(this.props.items);return (i.createElement(j,{placeholder:this.props.placeholder,tallInput:true,viewStyle:'textonly',queryString:this.state.query,searchSource:l,showEntriesOnFocus:true,onSelectAttempt:(function(n){return this.props.onSelected(n.getTitle());}).bind(this),onChange:(function(event){return this.setState({query:event.target.value});}).bind(this)}));}});f.exports=m;},null);
__d('AdsPixelEventSelector.react',['AdsPixelCommonTypeahead.react','React','XUICloseButton.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m=i.PropTypes,n=i.createClass({displayName:'AdsPixelEventSelector',propTypes:{rule:m.object.isRequired,onUpdateRuleEvent:m.func.isRequired,events:m.object.isRequired,onEventSelected:m.func.isRequired,showPotentialWarnings:m.bool},render:function(){if(!this.props.rule.event)return (i.createElement('div',{className:"_5ssa"+(this.props.showPotentialWarnings?' '+"_3gqy":'')},i.createElement(h,{items:this.props.events,onSelected:this._onEventSelected,placeholder:l._("Choose an event")})));return (i.createElement('div',{className:"_5ssc _5ssa"},this.props.rule.event,i.createElement(j,{size:'small',className:"_3-90 _5ssb",onClick:this._onDelete,key:'close_button'})));},_onEventSelected:function(o){this.props.onUpdateRuleEvent(o);this.props.onEventSelected(o);},_onDelete:function(){this.props.onUpdateRuleEvent(null);}});f.exports=n;},null);
__d('Token.react',['CloseButton.react','React','cx','fbt','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m=i.PropTypes,n=i.createClass({displayName:'Token',propTypes:{name:m.string,label:m.string.isRequired,value:m.string,removable:m.bool,onRemove:m.func},render:function(){var o=null;if(this.props.name)o=[i.createElement('input',{type:'hidden',name:this.props.name+'[]',value:this.props.value}),i.createElement('input',{type:'hidden',name:'text_'+this.props.name+'[]',value:this.props.label})];var p=null;if(this.props.removable)p=i.createElement(h,{'aria-label':k._("Remove {item}",[k.param('item',this.props.label)]),className:'remove',size:'small',onClick:this.props.onRemove});var q="uiToken"+(this.props.removable?' '+"removable":'');return (i.createElement('span',babelHelpers._extends({},this.props,{className:l(this.props.className,q)}),this.props.label,o,p));}});f.exports=n;},null);
__d('AdsPixelRuleClauseTokenInput.react',['Grid.react','React','ReactDOM','Token.react','XUITextInput.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o=h.GridItem,p=i.PropTypes,q=i.createClass({displayName:'AdsPixelRuleClauseTokenInput',propTypes:{onUpdateTokens:p.func.isRequired,clause:p.object.isRequired,placeholder:p.string.isRequired},getInitialState:function(){return {textInProgress:''};},render:function(){return (i.createElement(o,{onClick:(function(){return j.findDOMNode(this.refs.tokeninput).focus();}).bind(this),key:'token_input',className:"_2ck7"},this._getTokensDisplay(),this._getTokenInput()));},_getTokensDisplay:function(){if(!this.props.clause.tokens.length)return [];var r=[this._renderToken(this.props.clause.tokens[0],0)];for(var s=1;s<this.props.clause.tokens.length;s++){r.push(i.createElement('span',{className:"_2ck8",key:"or_token_"+s},n._("or")));r.push(this._renderToken(this.props.clause.tokens[s],s));}return r;},_getTokenInput:function(){return (i.createElement(l,{ref:'tokeninput',className:"_2ck9",value:this.state.textInProgress,onChange:this._onTextChange,onBlur:this._tokenizeCurrentText,onBackspace:this._onBackSpace,onEnter:this._tokenizeCurrentText,placeholder:this.props.placeholder,key:'token_input'}));},_renderToken:function(r,s){return (i.createElement(k,{className:"_2cka",label:r,removable:true,onRemove:this._onRemoveToken.bind(this,s),key:"clause_token_"+s+"_"+r}));},_onTextChange:function(event){var r=event.target.value,s=r.slice(-1);if(s===','||s===' '){this._onAddNewToken(r.slice(0,r.length-1));r='';}this.setState({textInProgress:r});},_onAddNewToken:function(r){var s=this.props.clause.tokens;s.push(r);this.props.onUpdateTokens(s);},_onRemoveToken:function(r){var s=this.props.clause.tokens;s.splice(r,1);this.props.onUpdateTokens(s);},_tokenizeCurrentText:function(event){var r=event.target.value;if(r.length>0){this._onAddNewToken(r);r='';}this.setState({textInProgress:r});},_onBackSpace:function(event){var r=event.target.value;if(r.length===0&&this.props.clause.tokens.length>0)this._onRemoveToken(this.props.clause.tokens.length-1);}});f.exports=q;},null);
__d('AdsPixelRuleClause.react',['Grid.react','React','AdsPixelCommonTypeahead.react','AdsPixelRuleClauseTokenInput.react','XUISelector.react','cx','fbt','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){'use strict';if(c.__markCompiled)c.__markCompiled();var p=l.Option,q=h.GridItem,r=i.PropTypes,s=i.createClass({displayName:'AdsPixelRuleClause',propTypes:{clause:r.object.isRequired,customFields:r.object,isSimpleClause:r.bool.isRequired,operators:r.object.isRequired,onUpdateClause:r.func.isRequired,showPotentialWarnings:r.bool,className:r.string},getInitialState:function(){return {textInProgress:''};},render:function(){if(this.props.isSimpleClause)return (i.createElement(h,{className:this._getRootClassName(),cols:2},this._getOperator(),this._getTokenInput()));if(this.props.clause.customfield)return (i.createElement(h,{className:this._getRootClassName(),cols:3},this._getCustomFieldsSelector(),this._getOperator(),this._getTokenInput()));return (i.createElement('div',{className:"_j_3"},i.createElement(j,{items:this._getCustomFields(),onSelected:this._onUpdateCustomField,placeholder:n._("Add a parameter (Optional)")})));},_getTokenInput:function(){return i.createElement(k,{onUpdateTokens:this._onUpdateTokens,clause:this.props.clause,placeholder:this._getTokenInputPlaceholder()});},_getCustomFields:function(){var t=this.props.customFields;if(this.props.clause.customfield&&!t.hasOwnProperty(this.props.clause.customfield))t[this.props.clause.customfield]=true;return t;},_getRootClassName:function(){return o(this.props.className,"_j_4"+(this.props.showPotentialWarnings&&!this.props.clause.tokens.length?' '+"_j_5":''));},_getCustomFieldsSelector:function(){var t=[];for(var u in this._getCustomFields())t.push(i.createElement(p,{value:u,key:'field_option_'+u},u));return (i.createElement(q,{key:'custom_field',className:"_j_6"},i.createElement(l,{className:"_j_7",size:'large',onChange:(function(event){return this._onUpdateCustomField(event.value);}).bind(this),value:this.props.clause.customfield},t)));},_getOperator:function(){var t=[];for(var u in this.props.operators)t.push(i.createElement(p,{value:this.props.operators[u].value,key:'operation_option_'+this.props.operators[u].value},this.props.operators[u].label));return (i.createElement(q,{className:"_j_6",key:'operator'},i.createElement(l,{className:"_j_7",size:'large',onChange:this._onUpdateOperator,value:this.props.clause.filter},t)));},_getTokenInputPlaceholder:function(){return this.props.isSimpleClause?n._("Add URL keywords"):n._("Add a value");},_onUpdateTokens:function(t){this._onUpdateClauseFields({tokens:t});},_onUpdateOperator:function(event){this._onUpdateClauseFields({filter:event.value});},_onUpdateCustomField:function(t){this._onUpdateClauseFields({customfield:t});},_onUpdateClauseFields:function(t){var u=this.props.clause;for(var v in t)u[v]=t[v];this.props.onUpdateClause(u);}});f.exports=s;},null);
__d('AdsPixelRuleDialogMode',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={CREATE:'create',EDIT:'edit'};f.exports=h;},null);
__d('AdsPixelRuleClauseGroup.react',['React','AdsPixelEventSelector.react','AdsPixelRuleClause.react','WebsiteCustomAudienceModel','WebsiteCustomAudienceOperators','XUIButton.react','XUICloseButton.react','AdsPixelRuleDialogMode','cx','fbt','isEmpty'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){if(c.__markCompiled)c.__markCompiled();var s=k.Operations,t=k.RuleClause,u=h.PropTypes,v=h.createClass({displayName:'AdsPixelRuleClauseGroup',propTypes:{rule:u.object.isRequired,onUpdateRule:u.func.isRequired,showPotentialWarnings:u.bool,onDeleteRule:u.func,onEventSelected:u.func.isRequired,events:u.object.isRequired,mode:u.string.isRequired},render:function(){var w=[],x=s.isEventBasedRule(this.props.rule);if(x){w.push(h.createElement(i,{rule:this.props.rule,onUpdateRuleEvent:this._onUpdateRuleEvent,events:this.props.events,onEventSelected:this.props.onEventSelected,showPotentialWarnings:this.props.showPotentialWarnings,key:'event_selector'}));if(!this.props.rule.event)return h.createElement('div',null,w);}var y=this.props.rule.clauses.length,z=x?l.GenericOperators:l.SimpleOperators,aa=this.props.events[this.props.rule.event]&&this.props.events[this.props.rule.event].fields||{};if(x&&r(aa)&&this.props.mode===o.CREATE)return h.createElement('div',null,w);for(var ba=0;ba<y;ba++)w.push(h.createElement('div',{key:"rule_clause_row_"+ba,className:"_54aj"+(x||ba>0?' '+"_54al":'')+(x&&ba===0?' '+"_54am":'')},h.createElement(j,{clause:this.props.rule.clauses[ba],customFields:aa,operators:z,isSimpleClause:!x,showPotentialWarnings:this.props.showPotentialWarnings,onUpdateClause:this._onUpdateClause.bind(this,ba),key:"rule_clause_"+ba}),h.createElement('div',{className:"_54an"},this._getAndToken(ba,y),this._getDeleteButton(ba,y))));return h.createElement('div',null,w);},_getAndToken:function(w,x){if(w!==x-1)return (h.createElement('span',{className:"_2arl",key:"and_token_"+w},q._("and")));return (h.createElement(m,{label:q._("and"),size:'large',className:"_2arm",onClick:this._onAddEmptyClause,key:"and_token_"+w}));},_getDeleteButton:function(w,x){if(x===1&&!this.props.onDeleteRule)return null;return (h.createElement(n,{size:'small',className:"_3-90",onClick:this._onDeleteClause.bind(this,w,x),key:"delete_button_"+w}));},_onUpdateRuleEvent:function(event){if(event!==this.props.rule.event)this._onUpdateRuleFields({event:event,clauses:[new t()]});},_onUpdateClause:function(w,x){var y=this.props.rule.clauses;y[w]=x;this._onUpdateRuleFields({clauses:y});},_onAddEmptyClause:function(){var w=this.props.rule.clauses;w.push(new t());this._onUpdateRuleFields({clauses:w});},_onDeleteClause:function(w,x){if(x===1){this.props.onDeleteRule();}else{var y=this.props.rule.clauses;y.splice(w,1);this._onUpdateRuleFields({clauses:y});}},_onUpdateRuleFields:function(w){var x=this.props.rule;for(var y in w)x[y]=w[y];this.props.onUpdateRule(x);}});f.exports=v;},null);
__d('AdsPixelRuleBuilder.react',['AdsPixelRuleClauseGroup.react','React','WebsiteCustomAudienceModel','XUISelector.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n=j.Operations,o=j.RuleClause,p=k.Option,q=i.PropTypes,r=i.createClass({displayName:'AdsPixelRuleBuilder',propTypes:{rule:q.object.isRequired,onDeleteRule:q.func,onUpdateRule:q.func.isRequired,eventSource:q.object.isRequired,showPotentialWarnings:q.bool,mode:q.string.isRequired},componentWillMount:function(){this.props.eventSource.fetchEvents(this._onEventsFetched);},getInitialState:function(){return {events:{}};},render:function(){return (i.createElement('span',null,this._getRuleScopeSelector(),i.createElement(h,{rule:this.props.rule,onDeleteRule:this.props.onDeleteRule,onUpdateRule:this.props.onUpdateRule,showPotentialWarnings:this.props.showPotentialWarnings,events:this.state.events,onEventSelected:this._updateCustomField,mode:this.props.mode})));},_getRuleScopeSelector:function(){var s=[i.createElement(p,{value:'url',key:'scope_option_url'},m._("URL"))];if(this._showEventOption())s.push(i.createElement(p,{value:'event',key:'scope_option_event'},m._("Event")));return (i.createElement(k,{value:this.props.rule.scope,onChange:this._onSelectorChange,className:"_4hia"},s));},_onSelectorChange:function(s){this._onUpdateRuleFields({scope:s.value,event:null,clauses:[new o()]});},_onUpdateRuleFields:function(s){var t=this.props.rule;for(var u in s)t[u]=s[u];this.props.onUpdateRule(t);},_showEventOption:function(){return Object.keys(this.state.events).length>0||n.isEventBasedRule(this.props.rule);},_updateCustomField:function(s){this.props.eventSource.fetchCustomFields(s,this._updateEvents);},_updateEvents:function(s){this.setState({events:s});},_onEventsFetched:function(s){this._updateEvents(s);if(this.props.rule.event)this._updateCustomField(this.props.rule.event);}});f.exports=r;},null);
__d('AdsPixelRuleSet.react',['AdsPixelRuleBuilder.react','React','WebsiteCustomAudienceModel','XUIButton.react','AdsPixelRuleDialogMode','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o=j.Rule,p=i.PropTypes,q=i.createClass({displayName:'AdsPixelRuleSet',propTypes:{rules:p.array.isRequired,onDeleteRuleSet:p.func,onUpdateRuleSet:p.func.isRequired,eventSource:p.object.isRequired,mode:p.string.isRequired,showPotentialWarnings:p.bool},render:function(){var r=[],s=this.props.rules.length;for(var t=0;t<s;t++){r.push(t>0?this._getOrSeparator(t):null);r.push(i.createElement(h,{rule:this.props.rules[t],onUpdateRule:this._onUpdateRule.bind(this,t),eventSource:this.props.eventSource,onDeleteRule:this.props.mode===l.EDIT?null:s>1?this._onDeleteRule.bind(this,t):this.props.onDeleteRuleSet?this._onDeleteRuleSet:null,showPotentialWarnings:this.props.showPotentialWarnings,mode:this.props.mode,key:"rule_builder_"+t}));}if(this.props.mode===l.CREATE)r.push(i.createElement('div',{className:"_npx",key:"add_new_condition_button"},i.createElement(k,{label:n._("Add New Condition"),size:'large',onClick:this._onAddRule})));return i.createElement('span',null,r);},_getOrSeparator:function(r){return (i.createElement('div',{className:"_npy",key:"rule_or_separator"+r},n._("Or, traffic that meets the following conditions:")));},_onUpdateRule:function(r,s){var t=this.props.rules;t[r]=s;this.props.onUpdateRuleSet(t);},_onDeleteRule:function(r){var s=this.props.rules;s.splice(r,1);this.props.onUpdateRuleSet(s);},_onDeleteRuleSet:function(){this.props.onUpdateRuleSet([new o()]);this.props.onDeleteRuleSet();},_onAddRule:function(){var r=this.props.rules;r.push(new o());this.props.onUpdateRuleSet(r);}});f.exports=q;},null);
__d('WebsiteCustomAudienceRuleBuilderCustom.react',['AdsHelpLink.react','AdsPixelEventDataSource','AdsPixelRuleSet.react','AudienceManagerUIConstants','InfoTable.react','InfoTableRow.react','InfoTableSection.react','Link.react','React','WebsiteCustomAudienceModel','AdsPixelRuleDialogMode','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){if(c.__markCompiled)c.__markCompiled();var u=q.Operations,v=p.PropTypes,w=p.createClass({displayName:'WebsiteCustomAudienceRuleBuilderCustom',propTypes:{audience:v.object.isRequired,onUpdateAudienceFields:v.func.isRequired,pixel:v.object,showPotentialWarnings:v.bool.isRequired},getInitialState:function(){var x=this.props.audience.exclusion_rules.filter(u.validateRule),y=new i(this.props.pixel&&this.props.pixel.id);return {showExclusions:x.length>0,eventDataSource:y};},componentWillReceiveProps:function(x){if(!this.props.pixel||this.props.pixel.id!==x.pixel.id){var y=new i(x.pixel.id);this.setState({eventDataSource:y});}},render:function(){return (p.createElement(l,{className:"_38ck"},p.createElement(n,null,this._getInclusionRow(),this._getExclusionRow())));},_getInclusionRow:function(){return (p.createElement(m,{label:t._("Include"),helpLink:p.createElement(h,{position:'above',width:k.HELP_LINK_WIDTH},t._("These people would be included in your targeting")),type:'data'},p.createElement('span',null,this._getRuleSetDesc(),p.createElement(j,{rules:this.props.audience.inclusion_rules,onUpdateRuleSet:this._onUpdateInclusionRules,eventSource:this.state.eventDataSource,showPotentialWarnings:this.props.showPotentialWarnings,mode:this._isEdit()?r.EDIT:r.CREATE}),this._getAddExclusionLink())));},_getExclusionRow:function(){if(!this.state.showExclusions)return null;return (p.createElement(m,{label:t._("Exclude"),helpLink:p.createElement(h,{position:'above',width:k.HELP_LINK_WIDTH},t._("These people would be excluded in your targeting")),type:'data'},p.createElement('span',null,this._getRuleSetDesc(),p.createElement(j,{rules:this.props.audience.exclusion_rules,onUpdateRuleSet:this._onUpdateExclusionRules,onDeleteRuleSet:(function(){return this.setState({showExclusions:false});}).bind(this),eventSource:this.state.eventDataSource,showPotentialWarnings:this.props.showPotentialWarnings,mode:this._isEdit()?r.EDIT:r.CREATE}))));},_getAddExclusionLink:function(){if(this.state.showExclusions||this._isEdit())return null;return (p.createElement('div',{className:"_38cl"},p.createElement(o,{onClick:this._onAddExclusion},t._("Add exclusions"))));},_getRuleSetDesc:function(){return (p.createElement('div',{className:"_38cm"},t._("Traffic that meets the following conditions:")));},_isEdit:function(){return !!this.props.audience.id;},_onAddExclusion:function(){this.setState({showExclusions:true});},_onUpdateInclusionRules:function(x){this.props.onUpdateAudienceFields(this.props.audience,{inclusion_rules:x});},_onUpdateExclusionRules:function(x){this.props.onUpdateAudienceFields(this.props.audience,{exclusion_rules:x});}});f.exports=w;},null);
__d('WebsiteCustomAudienceRuleBuilderIncludeExclude.react',['AdsPixelRuleClause.react','WebsiteCustomAudienceOperators','InfoTable.react','InfoTableRow.react','InfoTableSection.react','React','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){if(c.__markCompiled)c.__markCompiled();var p=m.PropTypes,q=m.createClass({displayName:'WebsiteCustomAudienceRuleBuilderIncludeExclude',propTypes:{inclusionClause:p.object.isRequired,exclusionClause:p.object.isRequired,onUpdateInclusionClause:p.func.isRequired,onUpdateExclusionClause:p.func.isRequired,showPotentialWarnings:p.bool.isRequired},render:function(){return (m.createElement(j,{className:"_4xt2"},m.createElement(l,null,m.createElement(k,null,m.createElement('div',null,m.createElement('div',{className:"_4xt3"},o._("Include people who visit any web page that meets the following rules.")),m.createElement(h,{className:"_4xt4",isSimpleClause:true,operators:i.URLOperators,clause:this.props.inclusionClause,onUpdateClause:this.props.onUpdateInclusionClause,showPotentialWarnings:this.props.showPotentialWarnings}),m.createElement('div',{className:"_4xt3"},o._("Exclude people who visit any web page that meets the following rules.")),m.createElement(h,{className:"_4xt4",isSimpleClause:true,operators:i.URLOperators,clause:this.props.exclusionClause,onUpdateClause:this.props.onUpdateExclusionClause,showPotentialWarnings:this.props.showPotentialWarnings}))))));}});f.exports=q;},null);
__d('WebsiteCustomAudienceRuleBuilderSpecificPages.react',['AdsPixelRuleClause.react','WebsiteCustomAudienceOperators','InfoTable.react','InfoTableRow.react','InfoTableSection.react','React','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){if(c.__markCompiled)c.__markCompiled();var p=m.PropTypes,q=m.createClass({displayName:'WebsiteCustomAudienceRuleBuilderSpecificPages',propTypes:{clause:p.object.isRequired,onUpdateClause:p.func.isRequired,showPotentialWarnings:p.bool.isRequired},render:function(){return (m.createElement(j,{className:"_23h"},m.createElement(l,null,m.createElement(k,null,m.createElement('div',null,m.createElement('div',{className:"_28x"},o._("Include people who visit any web page that meets the following rules.")),m.createElement(h,{className:"_28y",isSimpleClause:true,operators:i.URLOperators,clause:this.props.clause,onUpdateClause:this.props.onUpdateClause,showPotentialWarnings:this.props.showPotentialWarnings}))))));}});f.exports=q;},null);
__d('WebsiteCustomAudienceTrafficSelector.react',['AdsHelpLink.react','AudienceManagerUIConstants','InfoTable.react','InfoTableRow.react','InfoTableSection.react','React','XUISelector.react','XUIMenuSeparator.react','WebsiteCustomAudienceTrafficType','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){if(c.__markCompiled)c.__markCompiled();var r=n.Option,s=m.PropTypes,t=m.createClass({displayName:'WebsiteCustomAudienceTrafficSelector',propTypes:{trafficType:s.number.isRequired,onChangeTrafficType:s.func},render:function(){return (m.createElement(j,null,m.createElement(l,null,m.createElement(k,{label:q._("Website Traffic"),helpLink:m.createElement(h,{position:'above',width:i.HELP_LINK_WIDTH},q._("Choose how you want to add people to your audience. Include all of your website visitors, or create rules that only add people who visit specific parts of your website.")),key:'wca_traffic_type',type:'data'},m.createElement('div',null,m.createElement(n,{disabled:!this.props.onChangeTrafficType,size:'large',onChange:this.props.onChangeTrafficType,value:this.props.trafficType,maxwidth:0},m.createElement(r,{key:p.ALL_WEBSITE_VISITORS,value:p.ALL_WEBSITE_VISITORS},q._("Anyone who visits your website")),m.createElement(r,{key:p.SPECIFIC_PAGE_VISITORS,value:p.SPECIFIC_PAGE_VISITORS},q._("People who visit specific web pages")),m.createElement(r,{key:p.SPECIFIC_PAGE_VISITORS_WITH_EXCLUSION,value:p.SPECIFIC_PAGE_VISITORS_WITH_EXCLUSION},q._("People visiting specific web pages but not others")),m.createElement(r,{key:p.CHURNED_VISITORS,value:p.CHURNED_VISITORS},q._("People who haven't visited in a certain amount of time")),m.createElement(o,null),m.createElement(r,{key:p.CUSTOM,value:p.CUSTOM},q._("Custom Combination"))))))));}});f.exports=t;},null);
__d('WebsiteCustomAudienceUneditableRule.react',['AdsPixelPickerRow.react','AudienceManagerURLConstants','InfoTable.react','InfoTableRow.react','InfoTableSection.react','React','WebRemarketingDialogGear.react','WebsiteCustomAudienceModel','XUIDialogBody.react','XUIDialogButton.react','XUIDialogCancelButton.react','XUIDialogFooter.react','XUINotice.react','XUISpinner.react','XUIText.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x){'use strict';if(c.__markCompiled)c.__markCompiled();var y=o.Operations,z=m.PropTypes,aa=m.createClass({displayName:'WebsiteCustomAudienceUneditableRule',propTypes:{audience:z.object.isRequired,audienceMetaInfo:z.object.isRequired,errorMessage:z.string.isRequired,onAudienceRuleUpdated:z.func.isRequired,onSetNotice:z.func.isRequired,onViewPixelCode:z.func.isRequired,waitingForServerReponse:z.bool.isRequired},getInitialState:function(){return {migratedRule:y.migrateRule(JSON.parse(this.props.audience.rule))};},render:function(){var ba=this.state.migratedRule?m.createElement(t,{use:'warn',className:"_2pi4"},m.createElement(v,{size:'small',weight:'bold'},x._("Can't Edit Audience")),m.createElement('br',null),m.createElement(v,{size:'small'},x._("This audience was created using settings that have been changed. You can still use this audience for your ads. To make changes to this audience, update to the new settings."))):m.createElement(t,{use:'warn',className:"_2pi4"},m.createElement(v,{size:'small',weight:'bold'},x._("Can't Edit Audience")),m.createElement('br',null),m.createElement(v,{size:'small'},x._("This audience can't be edited because it was created using settings that are no longer available. You can still use this audience for your ads. To make changes or updates, create a new audience.")));return (m.createElement('div',null,m.createElement(p,null,m.createElement('div',{className:"_qtd"},m.createElement('div',{className:"_5rkp _5rkq"},m.createElement(h,null),this.props.audienceMetaInfo,m.createElement('div',null,m.createElement(j,{className:"_3af5"},m.createElement(l,null,m.createElement(k,{label:x._("Rule")},this.props.audience.rule),m.createElement(k,{label:x._("Retention")},this.props.audience.retention_days))),ba)),!!this.props.errorMessage?m.createElement(t,{className:"_4o1o",use:'warn'},m.createElement('div',{className:"_5wbz"},this.props.errorMessage)):m.createElement('span',null))),m.createElement(s,{leftContent:m.createElement(n,{learnMoreURL:i.WCA_CONFIGURE_RULES_DOC,onViewPixelCode:this.props.onViewPixelCode})},this.props.waitingForServerReponse?m.createElement(u,{className:"_5swe",size:'small',background:'light'}):m.createElement('span',null),m.createElement(r,{disabled:this.props.waitingForServerReponse}),this._renderMigrateButton())));},_renderMigrateButton:function(){var ba=m.createElement('span',null);if(!this.state.migratedRule)return ba;ba=x._("Update Audience");return m.createElement(q,{use:'confirm',onClick:this._migrateRule,label:ba});},_migrateRule:function(){var ba=m.createElement(t,{className:"_2pi4"},m.createElement(v,{size:'small',weight:'bold'},x._("Audience Updated")),m.createElement('br',null),m.createElement(v,{size:'small'},x._("Your audience has been automatically updated to the new settings. You can undo these changes or save them and continue.")));this.props.onSetNotice(ba);this.props.onAudienceRuleUpdated(this.state.migratedRule);}});f.exports=aa;},null);
__d("XAdsPixelRuleMatcherController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/pixels\/rule_matcher\/",{rules:{type:"StringVector",required:true},pixel_id:{type:"Int",required:true}});},null,{});
__d('WebsiteCustomAudienceRuleBuilderDialog.react',['AdInterfacesUiLogger','AdsAMViewActions','AdsPixelAudienceViewActions','AdsPixelPickerRow.react','AdsPixelStoreWrapper','AsyncRequest','AudienceManagerURLConstants','AudienceMatchFailNotice.react','AudienceManagerLoggingEvents','React','WebRemarketingDialogGear.react','WebsiteCustomAudienceMetaInfo.react','WebsiteCustomAudienceModel','WebsiteCustomAudienceRetention.react','WebsiteCustomAudienceRuleBuilderChooseDomain.react','WebsiteCustomAudienceRuleBuilderChurners.react','WebsiteCustomAudienceRuleBuilderCustom.react','WebsiteCustomAudienceRuleBuilderIncludeExclude.react','WebsiteCustomAudienceRuleBuilderSpecificPages.react','WebsiteCustomAudienceTrafficSelector.react','WebsiteCustomAudienceUneditableRule.react','WebsiteCustomAudienceTrafficType','XAdsPixelRuleMatcherController','XUIDialogBody.react','XUIDialogButton.react','XUIDialogCancelButton.react','XUIDialogFooter.react','XUIDialogTitle.react','XUINotice.react','XUISpinner.react','adsGKCheck','areEqual','cx','dotAccess','emptyFunction','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa){'use strict';if(c.__markCompiled)c.__markCompiled();var ra=t.Operations,sa=t.Rule,ta=q.PropTypes,ua=180,va=3600*24*14,wa=q.createClass({displayName:'WebsiteCustomAudienceRuleBuilderDialog',propTypes:{accountID:ta.string.isRequired,audience:ta.object,dao:ta.object.isRequired,onAudienceAdded:ta.func,onAudienceUpdated:ta.func,embedded:ta.bool,onValidationFail:ta.func,pixel:ta.object},componentWillReceiveProps:function(xa){if(this.props.audience&&this.props.audience!=xa.audience){var ya=this._setupAudience(xa.audience);this.setState({audience:ya,waitingForServerReponse:false});}},getInitialState:function(){var xa=null;if(this.props.audience){xa=this._setupAudience(this.props.audience);}else xa=new t.Audience();return {prefill:true,audience:xa,domainRules:this._setupDomainRules(this.props.audience),errorMessage:'',waitingForServerReponse:false,enableValidation:false,audienceNotice:q.createElement('span',null)};},render:function(){return (q.createElement('div',null,this._renderTitle(),this._renderDialogBody()));},_renderDialogBody:function(){var xa=q.createElement(s,{audience:this.state.audience,onUpdateAudienceFields:this._updateAudienceFields,enableValidation:this.state.enableValidation});if(this.state.audience.isRuleEditable){return (q.createElement('div',null,q.createElement(ea,null,q.createElement('div',{className:"_qtd"},q.createElement('div',{className:"_5rkp _5rkq"},q.createElement(k,null),this._renderRuleSpecificControls(),q.createElement('div',{className:"_1x0g"}),xa,this.state.audienceNotice),!!this.state.errorMessage?q.createElement(ja,{className:"_4o1o",use:'warn'},q.createElement('div',{className:"_5wbz"},this.state.errorMessage)):q.createElement('span',null)),this._getMatchFailNotice()),this._renderFooter()));}else return q.createElement(ba,{audience:this.props.audience,audienceMetaInfo:xa,errorMessage:this.state.errorMessage,onAudienceRuleUpdated:this._onAudienceRuleUpdated,onSetNotice:this._onSetNotice,onViewPixelCode:j.gotoViewCode,waitingForServerReponse:this.state.waitingForServerReponse});},_renderRuleSpecificControls:function(){return (q.createElement('div',null,q.createElement(aa,{trafficType:this.state.audience.trafficType,onChangeTrafficType:this.props.audience?null:(function(xa){this._updateAudienceFields(this.state.audience,{trafficType:xa.value});}).bind(this)}),this._renderRuleTemplate(),q.createElement(u,{duration:this.state.audience.duration,prefill:this.state.prefill,onChangeDuration:(function(xa){this._updateAudienceFields(this.state.audience,{duration:xa});}).bind(this),onChangePrefill:this.props.pixel&&!this.props.pixel.last_fired_time||this.props.audience?null:(function(xa){return this.setState({prefill:xa});}).bind(this)})));},_renderTitle:function(){if(this.props.embedded)return;var xa=qa._("Create Audience");if(this.props.audience)xa=qa._("Edit {Audience Name}",[qa.param('Audience Name',this.props.audience.name)]);return (q.createElement(ia,null,xa));},_renderFooter:function(){if(this.props.embedded)return;return (q.createElement(ha,{leftContent:q.createElement(r,{learnMoreURL:n.WCA_CONFIGURE_RULES_DOC,onViewPixelCode:j.gotoViewCode})},this.state.waitingForServerReponse?q.createElement(ka,{className:"_5swe",size:'small',background:'light'}):q.createElement('span',null),q.createElement(ga,{disabled:this.state.waitingForServerReponse}),this._renderActionButton()));},_renderRuleTemplate:function(){switch(this.state.audience.trafficType){case ca.ALL_WEBSITE_VISITORS:return q.createElement(v,{dao:this.props.dao,pixel:this.props.pixel,rule:this.state.domainRules[0],onUpdateClauseFields:this._updateDomain});case ca.SPECIFIC_PAGE_VISITORS:return q.createElement(z,{clause:this.state.audience.inclusion_rules[0].clauses[0],onUpdateClause:this._updateFirstInclusionClause,showPotentialWarnings:this.state.enableValidation});case ca.SPECIFIC_PAGE_VISITORS_WITH_EXCLUSION:return q.createElement(y,{inclusionClause:this.state.audience.inclusion_rules[0].clauses[0],exclusionClause:this.state.audience.exclusion_rules[0].clauses[0],onUpdateInclusionClause:this._updateFirstInclusionClause,onUpdateExclusionClause:this._updateFirstExclusionClause,showPotentialWarnings:this.state.enableValidation});case ca.CHURNED_VISITORS:return q.createElement(w,null);case ca.CUSTOM:return q.createElement(x,{audience:this.state.audience,pixel:this.props.pixel,onUpdateAudienceFields:this._updateAudienceFields,showPotentialWarnings:this.state.enableValidation});}},_getMatchFailNotice:function(){if(!this.state.matchFail)return;return (q.createElement(o,{onSkipCheck:(function(){this._validate(this._createAudienceBypassValidate,pa,true);}).bind(this)}));},_renderActionButton:function(){if(this.props.audience){return q.createElement(fa,{use:'confirm',onClick:this._updateAudience,label:qa._("Update Audience")});}else return q.createElement(fa,{disabled:this.state.waitingForServerReponse||!this.state.audience.name.length,use:'confirm',onClick:this._createAudience,label:qa._("Create Audience")});},_serializeSubAudience:function(xa,ya){if(!ya)ya=this.state.audience.duration;var za=ra.serializeRule(xa);if(za)return {id:xa.id,type:'website',retention_days:ya,rule:za};},_serializeSubAudiences:function(){var xa=[],ya=[];switch(this.state.audience.trafficType){case ca.ALL_WEBSITE_VISITORS:h.log(p.AM_WCA_EDITOR_AUDIENCE_TYPE_ALL_WEBSITE_VISITORS);if(ra.validateRule(this.state.domainRules[0])){xa.push(this._serializeSubAudience(this.state.domainRules[0]));h.log(p.AM_WCA_EDITOR_AUDIENCE_TYPE_ALL_WEBSITE_VISITORS_WITH_DOMAIN);}else xa.push(this._serializeSubAudience(t.RuleTemplates.getAllVisitors()));break;case ca.SPECIFIC_PAGE_VISITORS:h.log(p.AM_WCA_EDITOR_AUDIENCE_TYPE_SPECIFIC_PAGES);xa.push(this._serializeSubAudience(this.state.audience.inclusion_rules[0]));break;case ca.SPECIFIC_PAGE_VISITORS_WITH_EXCLUSION:h.log(p.AM_WCA_EDITOR_AUDIENCE_TYPE_INC_EXC);xa.push(this._serializeSubAudience(this.state.audience.inclusion_rules[0]));ya.push(this._serializeSubAudience(this.state.audience.exclusion_rules[0]));break;case ca.CHURNED_VISITORS:h.log(p.AM_WCA_EDITOR_AUDIENCE_TYPE_CHURNED);var za=t.RuleTemplates.getAllVisitors();za.id=oa(this.state.audience,'inclusion_rules.0.id');xa.push(this._serializeSubAudience(za,ua));var ab=t.RuleTemplates.getAllVisitors();ab.id=oa(this.state.audience,'exclusion_rules.0.id');ya.push(this._serializeSubAudience(ab));break;case ca.CUSTOM:h.log(p.AM_WCA_EDITOR_AUDIENCE_TYPE_RULES);xa=this.state.audience.inclusion_rules.map((function(bb){return this._serializeSubAudience(bb);}).bind(this)).filter(function(bb){return !!bb;});ya=this.state.audience.exclusion_rules.map((function(bb){return this._serializeSubAudience(bb);}).bind(this)).filter(function(bb){return !!bb;});break;}return {inclusion_rules:xa,exclusion_rules:ya};},_onSetNotice:function(xa){this.setState({audienceNotice:xa});},_createAudience:function(){this._validate(this._createAudienceBypassValidate,pa);},_createAudienceBypassValidate:function(){h.log(p.AM_WCA_EDITOR_CREATE_AUDIENCE);var xa=this._serializeSubAudiences(),ya={accountId:this.props.accountID,name:this.state.audience.name,description:this.state.audience.description,inclusions:xa.inclusion_rules,prefill:this.state.prefill,creation_params:{combination_type:'website',traffic_type:this.state.audience.trafficType},pixel_id:l.getCurrentPixelID(),handleError:(function(za,ab){h.log(p.AM_WCA_EDITOR_CREATE_FAIL);this.setState({waitingForServerReponse:false,errorMessage:ab.error.message});}).bind(this)};if(xa.exclusion_rules.length)ya.exclusions=xa.exclusion_rules;this.props.dao.add.createWebsiteCombinationAudience.one((function(za){this.props.onAudienceAdded&&this.props.onAudienceAdded(za.id);j.gotoRequestComplete();}).bind(this),ya);this.setState({waitingForServerReponse:true,errorMessage:''});},_updateAudience:function(){var xa={name:this.state.audience.name,description:this.state.audience.description,retention_days:this.state.audience.duration},ya={name:this.props.audience.name,description:this.props.audience.description,retention_days:this.props.audience.retention_days};if(this.props.audience.rule){ya.rule=this.props.audience.rule;if(this.state.audience.trafficType===ca.ALL_WEBSITE_VISITORS){if(ra.validateRule(this.state.domainRules[0])){xa.rule=ra.serializeRule(this.state.domainRules[0]);}else xa.rule=ra.serializeRule(t.RuleTemplates.getAllVisitors());}else xa.rule=ra.serializeRule(this.state.audience.inclusion_rules[0]);}else{var za=this._serializeSubAudiences();ya.inclusions=this.props.audience.included_custom_audiences;ya.exclusions=this.props.audience.excluded_custom_audiences;xa.inclusions=za.inclusion_rules;xa.exclusions=za.exclusion_rules;}this._validate((function(){return this._onValidationSuccessForUpdate(xa,ya);}).bind(this),(function(){return this._onValidationFailureForUpdate(xa);}).bind(this),true);},_onValidationSuccessForUpdate:function(xa,ya){if(!ma(xa,ya))this.props.onAudienceUpdated(this.props.audience,xa);if(!this.props.embedded)i.closeWCADialog();},_onValidationFailureForUpdate:function(xa){this.props.onValidationFail&&this.props.onValidationFail(xa);},_updateAudienceFields:function(xa,ya){var za=this._cloneAudience();for(var ab in ya)if(ya.hasOwnProperty(ab))za[ab]=ya[ab];this.setState({audience:za},this._updateAudienceForEmbeddedForm);},_updateAudienceForEmbeddedForm:function(){if(this.props.embedded)this._updateAudience();},_updateRuleFields:function(xa,ya){var za=this._cloneAudience(),ab=ra.findRule(za,xa.key);for(var bb in ya)if(ya.hasOwnProperty(bb))ab[bb]=ya[bb];this.setState({audience:za},this._updateAudienceForEmbeddedForm);},_updateFirstInclusionClause:function(xa){var ya=this._cloneAudience();ya.inclusion_rules.clauses=[xa];this.setState({audience:ya},this._updateAudienceForEmbeddedForm);},_updateFirstExclusionClause:function(xa){var ya=this._cloneAudience();ya.exclusion_rules.clauses=[xa];this.setState({audience:ya},this._updateAudienceForEmbeddedForm);},_updateClauseFields:function(xa,ya){var za=this._cloneAudience(),ab=ra.findRuleClause(za,xa.key);for(var bb in ya)if(ya.hasOwnProperty(bb))ab[bb]=ya[bb];this.setState({audience:za},this._updateAudienceForEmbeddedForm);},_updateDomain:function(xa,ya){var za=this.state.domainRules,ab=ra._findRuleClauseInArray(za,xa.key);for(var bb in ya)if(ya.hasOwnProperty(bb))ab[bb]=ya[bb];this.setState({domainRules:za},this._updateAudienceForEmbeddedForm);},_cloneAudience:function(){return Object.assign(new t.Audience(),this.state.audience);},_onAudienceRuleUpdated:function(xa){if(!ra.validateRule(xa))return;var ya=this._cloneAudience();ya.isRuleEditable=true;ya.inclusion_rules=[xa];ya.trafficType=ca.CUSTOM;this.setState({audience:ya});},_setupAudience:function(xa){var ya=new t.Audience();ya.id=xa.id;ya.name=xa.name;ya.description=xa.description;ya.duration=xa.retention_days;var za=JSON.parse(xa.data_source.creation_params);if(xa.rule){var ab=ra.deserializeRule(xa.rule);if(!ab||!ra.validateRule(ab)){ya.isRuleEditable=false;return ya;}ya.inclusion_rules=[ab];if(ab.event||ab.clauses.length>1){ya.trafficType=ca.CUSTOM;}else if(parseInt(za.traffic_type,10)===1||t.RuleTemplates.isAllVisitors(xa.rule)){ya.trafficType=ca.ALL_WEBSITE_VISITORS;}else ya.trafficType=ca.SPECIFIC_PAGE_VISITORS;}else if(xa.included_custom_audiences){ya.trafficType=+za.traffic_type;var bb=xa.included_custom_audiences,cb=xa.excluded_custom_audiences||[],db=[],eb=[];for(var fb=0;fb<bb.length;fb++){var gb=bb[fb];ya.duration=gb.retention_days;var hb=ra.deserializeRule(gb.rule);hb.id=gb.id;db.push(hb);}for(fb=0;fb<cb.length;fb++){var ib=cb[fb];hb=ra.deserializeRule(ib.rule);hb.id=ib.id;eb.push(hb);}if(db.length)ya.inclusion_rules=db;if(eb.length)ya.exclusion_rules=eb;if(ya.trafficType==ca.CHURNED_VISITORS)ya.duration=cb[0].retention_days;}return ya;},_setupDomainRules:function(xa){if(xa&&xa.rule)return [ra.deserializeRule(xa.rule)];return [new sa()];},_validate:function(xa,ya,za){var ab=this._validateAudienceData();if(!ab){this.setState({enableValidation:true});h.log(p.AM_WCA_EDITOR_VALIDATION_FAILURE);ya();return;}if(za||!this._souldCheckWCAMatchRule()){xa();return;}h.log(p.WCA_RULE_CHECKER_CALLED);var bb=da.getURIBuilder().setStringVector('rules',this._serializeSubAudiences().inclusion_rules.map(function(cb){return cb&&cb.rule;})).setInt('pixel_id',this.props.pixel.id).getURI();new m().setURI(bb).setHandler((function(cb){ab=cb.payload.some(function(db){return db!=='no_match';});if(ab){h.log(p.WCA_RULE_CHECKER_SUCCESS);xa();return;}h.log(p.WCA_RULE_CHECKER_FAILED);this.setState({matchFail:true});ya();}).bind(this)).send();},_souldCheckWCAMatchRule:function(){if(!la('wca_check_rule')||!this.props.pixel)return false;var xa=new Date(this.props.pixel.last_fired_time).getTime();return xa>Date.now()-va*1000;},_validateAudienceData:function(){if(!this.state.audience.name.length)return false;var xa=[];switch(this.state.audience.trafficType){case ca.SPECIFIC_PAGE_VISITORS:xa=[this.state.audience.inclusion_rules[0]];break;case ca.SPECIFIC_PAGE_VISITORS_WITH_EXCLUSION:xa=[this.state.audience.inclusion_rules[0],this.state.audience.exclusion_rules[0]];break;case ca.CUSTOM:if(this.state.audience.exclusion_rules.length>1){xa=this.state.audience.inclusion_rules.concat(this.state.audience.exclusion_rules);}else xa=this.state.audience.inclusion_rules;}if(xa.length)return xa.every(function(ya){return ra.validateRule(ya);});return true;}});f.exports=wa;},null);
__d('AdsPixelSnippet.react',['React','ReactDOM','cx','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l=h.PropTypes,m=h.createClass({displayName:'AdsPixelSnippet',propTypes:{pixelCode:l.string.isRequired},getDefaultProps:function(){return {pixelCode:''};},render:function(){var n=this.props,o=n.className,p=babelHelpers.objectWithoutProperties(n,['className']);o=k(o,"_2_sh");var q=this.props.pixelCode.trim();return (h.createElement('div',babelHelpers._extends({},p,{className:o}),h.createElement('div',{className:"_2_si"},h.createElement('textarea',{readOnly:true,value:q,onFocus:this._onFocus,className:"_2_sk",ref:'pixelCodeTextArea'}))));},_onFocus:function(){setTimeout((function(){var n=i.findDOMNode(this.refs.pixelCodeTextArea);n.select(0,n.value.length);}).bind(this),1);}});f.exports=m;},null);
__d('AdsPixelEmailInput.react',['CIWebmailValidator','React','ReactDOM','Token.react','XUITextInput.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=i.PropTypes,p=i.createClass({displayName:'AdsPixelEmailInput',propTypes:{onChange:o.func},getInitialState:function(){return {emails:[],textInProgress:''};},componentDidMount:function(){this.props.onChange&&this.props.onChange();},render:function(){return (i.createElement('div',{className:"_2_m clearfix",onClick:(function(){j.findDOMNode(this.refs.textInput).focus();}).bind(this)},i.createElement('div',null,this._getEmailTokens()),i.createElement(l,{className:"_2_q",ref:'textInput',value:this.state.textInProgress,onChange:this._onChange,onBlur:this._onCommit,onBackspace:this._onBackspace,onEnter:this._onCommit,placeholder:this._getPlaceHolderText()})));},_showDialog:function(){this.refs.dialog.showDialog();},_getEmailTokens:function(){return this.state.emails.map((function(q,r){return (i.createElement(k,{className:"_2_r"+(!h.isValidEmail(q)?' '+"_2_s":''),key:r,label:q,removable:true,onRemove:this._removeEmailByIndex.bind(this,r)}));}).bind(this));},_getPlaceHolderText:function(){return n._("Add a recipient");},_onCommit:function(event){this._onAdd(event.target.value);this.setState({textInProgress:''});},_onChange:function(event){var q=event.target.value,r=q.slice(-1);if([',',';',' '].indexOf(r)!==-1){this._onAdd(q.slice(0,q.length-1));this.setState({textInProgress:''});}else this.setState({textInProgress:q});this.props.onChange&&this.props.onChange();},_onAdd:function(q){if(q){var r=this.state.emails;r.push(q);this.setState({emails:r});this.props.onChange&&this.props.onChange();}},_onBackspace:function(event){var q=event.target.value;if(q.length===0&&this.state.emails.length>0)this._removeEmailByIndex(-1);},_removeEmailByIndex:function(q){var r=this.state.emails;r.splice(q,1);this.setState({emails:r});this.props.onChange&&this.props.onChange();},getEmailList:function(){return this.state.emails;},isInputValid:function(){if(this.state.textInProgress&&!h.isValidEmail(this.state.textInProgress))return false;if(this.state.emails.length===0&&!this.state.textInProgress)return false;return this.state.emails.every(function(q){return h.isValidEmail(q);});}});f.exports=p;},null);
__d("XAdsPixelCodeEmailController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/pixels\/sendcodebymail\/",{recipients:{type:"StringVector",required:true},personal_message:{type:"String"},pixel_id:{type:"Int",required:true}});},null,{});
__d('WebsiteCustomAudienceSendPixelByMailDialog.react',['AdInterfacesUiLogger','AdsPixelNotifFieldEnum','AdsPixelNotifParamsEnum','AdsPixelSnippet.react','AsyncRequest','AudienceManagerURLConstants','AdsPixelEmailInput.react','AdsPixelCodeEmailFormParams','XAdsPixelCodeEmailController','AudienceManagerLoggingEvents','React','ReactDOM','WebRemarketingDialogGear.react','XUIDialogBody.react','XUIDialogButton.react','XUIDialogFooter.react','XUIDialogTitle.react','XUIText.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa){if(c.__markCompiled)c.__markCompiled();var ba=r.PropTypes,ca=r.createClass({displayName:'WebsiteCustomAudienceSendPixelByMailDialog',propTypes:{pixel:ba.object.isRequired,onSendComplete:ba.func.isRequired,onCancel:ba.func.isRequired},getInitialState:function(){return {enableSend:false};},render:function(){var da=o[i.PERSONAL_MESSAGE_LABEL];return (r.createElement('div',null,r.createElement(x,null,aa._("Send Custom Audience Pixel to Your Website Developer")),r.createElement(u,null,r.createElement('div',{className:"_qtd"},r.createElement(y,{weight:'bold',className:"_4az6 _4az7"},aa._("To:")),r.createElement(n,{ref:'emailInput',onChange:this._onInputChange}),r.createElement('div',{className:"_4az8"},r.createElement('span',{className:"_4az6"},aa._("{=Personal Message} (optional):",[aa.param('=Personal Message',r.createElement(y,{weight:'bold'},da))])),r.createElement('textarea',{className:"_4az9 _4azb",placeholder:aa._("Add personal message"),ref:'personalMessageInput'})),r.createElement('div',{className:"_4az8"},r.createElement(y,{weight:'bold',className:"_4az6"},aa._("Pixel Information:")),r.createElement('div',{className:"_4az9 scrollable _4azc _4azd"},r.createElement(y,{weight:'bold'},o[i.INSTRUCTION_LABEL]),r.createElement('div',{className:"_4aze"},o[i.INSTRUCTION]),r.createElement('div',{className:"_4azf"},r.createElement(k,{pixelCode:this.props.pixel.code})))))),r.createElement(w,{leftContent:r.createElement(t,{learnMoreURL:m.WCA_INSTALL_PIXEL_DOC})},r.createElement(v,{onClick:this.props.onCancel,label:aa._("Back")}),r.createElement(v,{use:'confirm',onClick:this._send,disabled:!this.state.enableSend,label:aa._("Send Email")}))));},_onInputChange:function(){if(!this.refs.emailInput)return;this.setState({enableSend:this.refs.emailInput.isInputValid()});},_send:function(){var da=p.getURIBuilder().setString(j.PERSONAL_MESSAGE,s.findDOMNode(this.refs.personalMessageInput).value).setInt(j.PIXEL_ID,this.props.pixel.id).setStringVector(j.RECIPIENTS,this.refs.emailInput.getEmailList()).getURI(),ea=this.refs.emailInput.getEmailList();new l().setURI(da).setHandler((function(fa){h.log(q.WCA_EMAIL_PIXEL_SUCCESS);this.props.onSendComplete(aa._("Successfully sent the pixel code to {list of items}",[aa.param('list of items',ea.join(', '))]),true);}).bind(this)).setErrorHandler((function(fa,ga){h.log(q.WCA_EMAIL_PIXEL_FAILURE);this.props.onSendComplete(aa._("Failed to send the pixel code to {list of items}",[aa.param('list of items',ea.join(', '))]),false);}).bind(this)).send();h.log('ads_pixel_email_pixel_code_old',{personalMessage:s.findDOMNode(this.refs.personalMessageInput).value,pixelID:this.props.pixel.id});}});f.exports=ca;},null);
__d('AdsPixelHelpCenter',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={ADS_REPORT:'339239069606476',CONVERSION:'916525851724197',CREATE_AUDIENCE:'555116851435843',CREATE_MULTIPLE:'393542734150014',CREATE_PIXEL:'336923339852238',CUSTOM_CONVERSIONS:'780705975381000',GENERAL:'651294705016616',INSTALL:'218844828315224',INSTALL_CONVERSION_PIXEL:'373979379354234',INTRO:'952192354843755',PIXEL_REPORT:'898185560232180',SET_CONVERSION_VALUE:'392174274295227',SHARE:'352686481592916',STANDARD_EVENTS:'402791146561655',TROUBLESHOOT_PIXEL:'436291299853837',UPGRADE:'414962531994158'},i={};Object.keys(h).forEach(function(j){i[j]={cmsID:h[j],uri:'/help/'+h[j]};});f.exports=i;},null);
__d('AdsPixelCode.react',['AdsPixelHelpCenter','Link.react','React','ReactDOM','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n=j.PropTypes,o=j.createClass({displayName:'AdsPixelCode',propTypes:{pixel:n.object.isRequired,onSendEmailLinkClick:n.func.isRequired},render:function(){return (j.createElement('div',null,j.createElement('p',null,m._("Copy the code below and paste it between the \u003Chead> and \u003C\/head> in your website code. Then you can set up rules to track specific actions people take across your website.")),j.createElement('p',null,j.createElement(i,{onClick:this.props.onSendEmailLinkClick},m._("Send the code to your website developer"))),j.createElement('textarea',{readOnly:true,noresize:true,value:this.props.pixel.code,onClick:(function(){return k.findDOMNode(this.refs.pixelCodeTextArea).select();}).bind(this),className:"_13d_",ref:'pixelCodeTextArea'}),j.createElement('p',null,m._("Learn more about how to verify your pixel installation in the {help-center-link}.",[m.param('help-center-link',j.createElement(i,{href:h.INSTALL.uri,target:'_blank'},m._("Help Center")))]))));},_defaultEmailContent:function(p){return (m._("Hi Friendly Developer,")+'\n\n'+m._("Please copy the code below and paste into my website between \u003Chead> and \u003C\/head> so I can remarket to my customers on Facebook. Learn more in the Help Center.")+'\n\n'+p);}});f.exports=o;},null);
__d('WebsiteCustomAudienceViewPixelDialog.react',['AdsPixelAudienceViewActions','AdsPixelCode.react','AudienceManagerURLConstants','React','WebRemarketingDialogGear.react','XUIDialogBody.react','XUIDialogButton.react','XUIDialogCancelButton.react','XUIDialogFooter.react','XUIDialogTitle.react','XUINotice.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){'use strict';if(c.__markCompiled)c.__markCompiled();var u=k.PropTypes,v=k.createClass({displayName:'WebsiteCustomAudienceViewPixelDialog',propTypes:{pixel:u.object.isRequired,pixelMessage:u.string},render:function(){return (k.createElement('div',null,k.createElement(q,null,t._("View Custom Audience Pixel")),k.createElement(m,null,k.createElement('div',{className:"_qtd"},this._renderMessage(),k.createElement(i,{pixel:this.props.pixel,onSendEmailLinkClick:h.gotoSendEmail}))),k.createElement(p,{leftContent:k.createElement(l,{learnMoreURL:j.WCA_INSTALL_PIXEL_DOC})},k.createElement(o,null),k.createElement(n,{use:'confirm',onClick:function(){return h.gotoRuleBuilder();},label:t._("Create Audience")}))));},_renderMessage:function(){if(!this.props.pixelMessage)return;return (k.createElement(r,{use:'notify',className:"_13e0"},this.props.pixelMessage));}});f.exports=v;},null);
__d('WebsiteCustomAudienceOld.react',['AdsAMViewActions','AdsFluxMixinLegacy_DO_NOT_USE','AdsPixelAudienceCreateStore','AdsPixelAudienceViewActions','AdsPixelPickerStore','AdsPixelPickerViewActions','AdsPixelServerActions','AdsPixelStore','AdsPixelStoreWrapper','AdsPixelViewActions','AdsPixelAudienceDialogTypes','LayerHideOnEscape','React','ReactComponentWithPureRenderMixin','ReactLayeredComponentMixin','WebsiteCustomAudienceConfirmationDialog.react','WebsiteCustomAudienceLoadingDialog.react','WebsiteCustomAudienceNUXDialog.react','WebsiteCustomAudienceRuleBuilderDialog.react','WebsiteCustomAudienceSendPixelByMailDialog.react','WebsiteCustomAudienceViewPixelDialog.react','XUIDialog.react','dotAccess'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da){'use strict';if(c.__markCompiled)c.__markCompiled();var ea=t.PropTypes,fa=640,ga=t.createClass({displayName:'WebsiteCustomAudienceOld',mixins:[v,u,i.AdsFluxMixinLegacyAM([j,l],{withProps:true})],propTypes:{dao:ea.object.isRequired,accountID:ea.string.isRequired,audience:ea.object,embedded:ea.bool,onAudienceUpdated:ea.func,onAudienceAdded:ea.func,isTosAccepted:ea.bool.isRequired,pixel:ea.object},getInitialState:function(){return {pixelMessage:null};},componentWillMount:function(){q.dialogTypeChange(r.LOADING_PIXEL);if(this.props.pixel){this._setPixel(this.props.pixel);}else this._onLoadAccountPixels(this.props.accountID,null);},componentWillReceiveProps:function(ha){if(ha.pixel&&da(ha.pixel,'id')!==da(this.state.pixel,'id')){this._setPixel(ha.pixel);return;}if(this.props.accountID!==ha.accountID)this._onLoadAccountPixels(ha.accountID,null);},statics:{calculateState:function(ha,ia){if(ia.audience&&ia.audience.id){var ja=j.getAudiencePixelID(ia.audience.id);ja&&m.setPixelID(ja);}var ka=p.getCurrentPixelID(),la=ka?o.getPixelInfo(ka):null;return {dialogType:j.getCurrentDialogType(),pixel:la};}},render:function(){if(!this.props.embedded)return null;return this._renderDialogBody();},renderLayers:function(){return this.props.embedded?{}:{dialog:t.createElement(ca,{layerHideOnBlur:false,shown:true,behaviors:{LayerHideOnEscape:s},width:fa,onToggle:this._onToggle},this._renderDialogBody())};},_renderDialogBody:function(){switch(this.state.dialogType){case r.LOADING_PIXEL:return t.createElement(x,null);case r.INTRODUCTION_DIALOG:return t.createElement(y,{accountID:this.props.accountID,dao:this.props.dao,onPixelCreated:this._onPixelCreated,pixel:this.state.pixel,isTosAccepted:this.props.isTosAccepted});case r.VIEW_REMARKETING_PIXEL_DIALOG:return t.createElement(ba,{pixel:this.state.pixel,pixelMessage:this.state.pixelMessage});case r.SEND_PIXEL_EMAIL_DIALOG:return t.createElement(aa,{pixel:this.state.pixel,onSendComplete:(function(ha,ia){this.setState({pixelMessage:ha});k.gotoViewCode();}).bind(this),onCancel:k.gotoViewCode});case r.CREATE_AUDIENCE_DIALOG:return t.createElement(z,{accountID:this.props.accountID,audience:this.props.audience,dao:this.props.dao,onAudienceAdded:this.props.onAudienceAdded,onAudienceUpdated:this.props.onAudienceUpdated,pixel:this.state.pixel,embedded:this.props.embedded});case r.CREATE_AUDIENCE_REQUEST_COMPLETE:return t.createElement(w,{pixel:this.state.pixel});}},_onLoadAccountPixels:function(ha,ia){this.props.dao.fetch.adsPixelsForAccount.one((function(ja){var ka=ja.length>0?ja[0]:null;if(!ia)ia=this._getDialogTypeByPixel(ka);q.dialogTypeChange(ia);n.updatePixels(ja);if(ka)m.setPixelID(ka.id);}).bind(this),{accountId:ha});},_setPixel:function(ha){q.dialogTypeChange(this._getDialogTypeByPixel(ha));m.setPixelID(ha.id);},_getDialogTypeByPixel:function(ha){if(this.props.audience)return r.CREATE_AUDIENCE_DIALOG;if(!ha||!this.props.isTosAccepted)return r.INTRODUCTION_DIALOG;return r.CREATE_AUDIENCE_DIALOG;},_onPixelCreated:function(){this.props.dao.fetch.adsPixelsForAccount.clearCache();this._onLoadAccountPixels(this.props.accountID,r.VIEW_REMARKETING_PIXEL_DIALOG);},_onToggle:function(){h.closeWCADialog();q.dialogTypeChange(r.NO_DIALOG);}});f.exports=ga;},null);
__d('WebsiteCustomAudience.react',['AdsAccountStoreWrapper','React','WebsiteCustomAudienceNew.react','WebsiteCustomAudienceOld.react','adsGKCheck'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=i.PropTypes,n=i.createClass({displayName:'WebsiteCustomAudience',propTypes:{dao:m.object.isRequired,accountID:m.string.isRequired,audience:m.object,onAudienceUpdated:m.func,onAudienceAdded:m.func,isTosAccepted:m.bool.isRequired,pixel:m.object},componentWillMount:function(){h.setAccountID(this.props.accountID);},render:function(){if(l('wca_new_flow'))return (i.createElement(j,{dao:this.props.dao,accountID:this.props.accountID,audience:this.props.audience,onAudienceUpdated:this.props.onAudienceUpdated,onAudienceAdded:this.props.onAudienceAdded,pixel:this.props.pixel}));return (i.createElement(k,{dao:this.props.dao,accountID:this.props.accountID,audience:this.props.audience,onAudienceUpdated:this.props.onAudienceUpdated,onAudienceAdded:this.props.onAudienceAdded,isTosAccepted:this.props.isTosAccepted,pixel:this.props.pixel}));}});f.exports=n;},null);
__d('AudienceDaoManager',['AdsAMConnectConfig','CurrentLocale','AdsDaoGraph','WebApiApplication'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l={},m={initializeAPI:function(){if(k.getAccessToken())return;k.init(h.access_token,h.client_id);},getPrimedDao:function(n){if(!l[n])l[n]=j.primedForAccount(n).primedForLocale(i.get());return l[n];},getDao:function(){return j;}};f.exports=m;},null);
__d("XAYMTTipImpressionLoggerAsyncController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/growth\/aymt\/log\/impression\/",{tip_id:{type:"String",required:true},channel_id:{type:"String",required:true}});},null,{});
__d("XAYMTMultiTipEligibilityLoggerAsyncController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/growth\/aymt\/log\/eligibility\/",{tip_id:{type:"String",required:true},channel_id:{type:"String",required:true}});},null,{});
__d('AYMTClientSideLogging',['AsyncRequest','AYMTTipEventType','XAYMTTipImpressionLoggerAsyncController','XAYMTMultiTipAsyncClickController','XAYMTMultiTipEligibilityLoggerAsyncController'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m={logEligibility:function(n,o){var p=l.getURIBuilder().setString('tip_id',n).setString('channel_id',o).getURI();new h().setURI(p).setAllowCrossPageTransition(true).send();},logImpression:function(n,o){var p=j.getURIBuilder().setString('tip_id',n).setString('channel_id',o).getURI();new h().setURI(p).setAllowCrossPageTransition(true).send();},logXout:function(n,o){var p=k.getURIBuilder().setString('tip_id',n).setString('channel_id',o).setString('target',i.XOUT).getURI();new h().setURI(p).setAllowCrossPageTransition(true).send();},logClick:function(n,o){var p=k.getURIBuilder().setString('tip_id',n).setString('channel_id',o).setString('target',i.CLICK).getURI();new h().setURI(p).setAllowCrossPageTransition(true).send();}};f.exports=m;},null);
__d('AYMTTipActionTypes',['AdsDispatchActionTypeUtils'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i='AYMT_',j={TIPS_REQUESTED:null,TIPS_LOADED:null,TIPS_LOADED_ERROR:null,TIPS_DISMISSED:null},k=h.createActionTypeMap(i,j);f.exports=k;},null);
__d("XAYMTClientSideTipsAsyncController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/growth\/aymt\/load_client_side_tips\/",{cache:{type:"Int"},channel:{type:"String"},channel_name:{type:"String",required:true},invalidate:{type:"Int"},params:{type:"StringToStringMap"},previous_params:{type:"StringToStringMap"},previous_tip_ids:{type:"StringVector"},request_id:{type:"String",required:true},tip:{type:"String"},validate:{type:"Int"}});},null,{});
__d('AYMTTipsLoader',['AsyncRequest','AYMTClientSideParam','AYMTTipActions','AYMTTipSettings','Promise','XAYMTClientSideTipsAsyncController','adsGKCheck','ex','invariant','mergeDeepInto'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();function r(){this.$AYMTTipsLoaderClass1={};this.$AYMTTipsLoaderClass2={};this.$AYMTTipsLoaderClass3={};this.$AYMTTipsLoaderClass4={};this.$AYMTTipsLoaderClass5={};}r.prototype.$AYMTTipsLoaderClass6=function(t,u){return new l((function(v,w){var x=new Date(),y='id_'+Math.random()+'_'+x.getTime();this.$AYMTTipsLoaderClass1[y]={resolve:v};this.$AYMTTipsLoaderClass2[u]=y;this.$AYMTTipsLoaderClass3[u]=t;var z=m.getURIBuilder().setString('channel_name',u).setString('request_id',y).setStringVector('previous_tip_ids',this.$AYMTTipsLoaderClass5[u]).setStringToStringMap('params',t).setStringToStringMap('previous_params',this.$AYMTTipsLoaderClass4[u]),aa=t[i.CHANNEL];if(!(this.$AYMTTipsLoaderClass1[u]||aa&&aa!==u))z.setString('channel',aa).setInt('cache',t[i.CACHE]).setInt('validate',t[i.VALIDATE]).setString('tip',t[i.TIP]).setInt('invalidate',t[i.INVALIDATE]);new h().setURI(z.getURI()).setErrorHandler(function(ba){w(ba.errorDescription);}).setAllowCrossPageTransition(true).send();}).bind(this));};r.prototype.loadTips=function(t,u,v){this.$AYMTTipsLoaderClass6(t,u).done((function(w){if(w&&w.tips){j.dispatchTips(w.tips,u,v,this.$AYMTTipsLoaderClass3[u]);this.$AYMTTipsLoaderClass4[u]={};q(this.$AYMTTipsLoaderClass4[u],t);this.$AYMTTipsLoaderClass5[u]=w.tips.map(function(x){return x[k.TIP_ID];});}}).bind(this),function(w){var x=new Error(o('Tip loading request failed for %s channel %s',u,w.__html));j.dispatchTipsLoadingError(x,u,v);throw x;});};r.prototype.setTips=function(t,u,v){!(t&&t.tips)?p(0):undefined;!(this.$AYMTTipsLoaderClass1[v]&&this.$AYMTTipsLoaderClass1[v].resolve)?p(0):undefined;if(this.$AYMTTipsLoaderClass2[u]!==v){this.$AYMTTipsLoaderClass1[v].resolve(null);}else this.$AYMTTipsLoaderClass1[v].resolve(t);delete this.$AYMTTipsLoaderClass1[v];};var s=new r();f.exports=s;},null);
__d('BoostedComponentDispatcher',['AdsPayloadSource','Dispatcher','invariant'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';k=babelHelpers.inherits(m,i);l=k&&k.prototype;m.prototype.handleUpdate=function(n,o){this.dispatch({payloadsource:n,action:o});};m.prototype.handleUpdateFromServerResponse=function(n){this.handleUpdate(h.SERVER_RESPONSE,n);};m.prototype.handleUpdateFromViewAction=function(n){this.handleUpdate(h.VIEW_ACTION,n);};m.prototype.handleUpdateFromInitialServer=function(n){this.handleUpdate(h.INITIAL_SERVER,n);};function m(){k.apply(this,arguments);}f.exports=m;},null);
__d("XBoostedComponentDialogChangeController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/ajax\/boosted_components\/dialog_change\/",{id:{type:"Int",required:true},app_id:{type:"Int",required:true},page_id:{type:"Int",required:true},post_id:{type:"Int"},specs:{type:"String",required:true},action:{type:"Enum",required:true,enumType:1}});},null,{});
__d('BoostedComponentDialogChangeServerActions',['AsyncRequest','BoostedComponentClientEvent','BoostedComponentConfigPayload','XBoostedComponentDialogChangeController'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();function l(m,n){this.$BoostedComponentDialogChangeServerActions1=m;this.$BoostedComponentDialogChangeServerActions2=n;this.$BoostedComponentDialogChangeServerActions3=0;this.$BoostedComponentDialogChangeServerActions4=this.$BoostedComponentDialogChangeServerActions3;}l.prototype.onDialogChange=function(m){var n=this.$BoostedComponentDialogChangeServerActions2.getContextStore(),o=k.getURIBuilder().setInt('id',++this.$BoostedComponentDialogChangeServerActions3).setInt('app_id',n.getAppID()).setInt('page_id',n.getPageID()).setInt('post_id',n.getPostID()).setString('specs',this.$BoostedComponentDialogChangeServerActions2.getSpecsJSON()).setEnum('action',m).getURI();new h(o).setHandler(this.$BoostedComponentDialogChangeServerActions5.bind(this)).setErrorHandler(this.$BoostedComponentDialogChangeServerActions6.bind(this)).setMethod('POST').send();};l.prototype.$BoostedComponentDialogChangeServerActions5=function(m){if(!this.$BoostedComponentDialogChangeServerActions7(m))return;if(!m.payload[j.BUDGET_ESTIMATION_STORE_DATA]){this.$BoostedComponentDialogChangeServerActions6(m.payload);return;}this.$BoostedComponentDialogChangeServerActions1.handleUpdateFromServerResponse({actionType:i.DIALOG_CHANGE_SUCCESS,data:m.payload});};l.prototype.$BoostedComponentDialogChangeServerActions6=function(m){this.$BoostedComponentDialogChangeServerActions1.handleUpdateFromServerResponse({actionType:i.DIALOG_CHANGE_FAIL,data:m});};l.prototype.$BoostedComponentDialogChangeServerActions7=function(m){if(m.payload.id>=this.$BoostedComponentDialogChangeServerActions4){this.$BoostedComponentDialogChangeServerActions4=m.payload.id;return true;}return false;};f.exports=l;},null);
__d("XBoostedComponentFetchDialogDataController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/boosted_components\/fetch_dialog_data\/",{app_id:{type:"Int",required:true},page_id:{type:"Int",required:true},post_id:{type:"Int"},targeting_spec:{type:"String"},default_cta:{type:"String"},ref:{type:"String",required:true}});},null,{});
__d('BoostedComponentDialogRenderServerActions',['AsyncRequest','BoostedComponentClientEvent','URI','XBoostedComponentFetchDialogDataController'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();function l(m,n){'use strict';this.$BoostedComponentDialogRenderServerActions1=m;this.$BoostedComponentDialogRenderServerActions2=n;}l.prototype.fetchDialogData=function(){'use strict';var m=k.getURIBuilder().setInt('app_id',this.$BoostedComponentDialogRenderServerActions2.getAppID()).setInt('page_id',this.$BoostedComponentDialogRenderServerActions2.getPageID()).setInt('post_id',this.$BoostedComponentDialogRenderServerActions2.getPostID()).setString('ref',this.$BoostedComponentDialogRenderServerActions2.getPlacement()),n=new j(window.location.href).getQueryData(),o=n.targeting_spec;if(o)m.setString('targeting_spec',o);var p=n.default_cta||this.$BoostedComponentDialogRenderServerActions2.getUpsellType();if(p)m.setString('default_cta',p);var q=m.getURI();new h(q).setHandler((function(r){this.$BoostedComponentDialogRenderServerActions1.handleUpdateFromServerResponse({actionType:i.DATA_LOADED,data:r.payload});}).bind(this)).setErrorHandler((function(){this.$BoostedComponentDialogRenderServerActions1.handleUpdateFromServerResponse({actionType:i.FETCH_CONFIG_DATA_FAILED});}).bind(this)).send();};f.exports=l;},null);
__d("XAdsManagerGetProcessingAltpayPaymentsController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/ajax\/billing\/get_processing_altpay_payments\/",{ad_account_id:{type:"String",required:true}});},null,{});
__d("XAdsPaymentsChangePrimaryPMAsyncController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/payments\/payment_methods\/primary\/change\/",{ad_account_id:{type:"String",required:true},payment_method_id:{type:"Int",required:true}});},null,{});
__d("XBoostedComponentFetchPaymentsDataController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/boosted_components\/fetch_payments_data\/",{page_id:{type:"String",required:true},account_id:{type:"String",required:true}});},null,{});
__d("XBoostedComponentUpdateCurrencyController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/boosted_components\/update_account_currency\/",{account_id:{type:"String",required:true},currency:{type:"String",required:true}});},null,{});
__d('BoostedComponentPaymentsServerActions',['AdBudgetType','AdManagerFunding','AdsAPIAdAccountFields','AdsPaymentMethodsDataLoader','AsyncRequest','BoostedComponentBudgetType','BoostedComponentClientEvent','XAdsPaymentsChangePrimaryPMAsyncController','XBoostedComponentFetchPaymentsDataController','XBoostedComponentUpdateCurrencyController','formatDate'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){'use strict';if(c.__markCompiled)c.__markCompiled();var s=123097351040126;function t(u,v){this.$BoostedComponentPaymentsServerActions1=u;this.$BoostedComponentPaymentsServerActions2=v;}t.prototype.reloadPaymentDataForAccount=function(u){var v=p.getURIBuilder().setString('account_id',u).setString('page_id',this.$BoostedComponentPaymentsServerActions2.getPageID()).getURI();new l(v).setHandler((function(w){this.$BoostedComponentPaymentsServerActions1.handleUpdateFromServerResponse({actionType:n.RELOAD_PAYMENT_DATA_SUCCESS,data:{accountID:u,accountInfo:w.payload}});}).bind(this)).setErrorHandler((function(w){this.$BoostedComponentPaymentsServerActions1.handleUpdateFromServerResponse({actionType:n.RELOAD_PAYMENT_DATA_FAIL,data:{accountID:u,errorCode:w.error,errorDescription:w.errorDescription,errorSummary:w.errorSummary}});}).bind(this)).setMethod('POST').send();};t.prototype.fetchPaymentMethodsForAccount=function(u){k.loadAllPaymentMethods(u).done((function(v){this.$BoostedComponentPaymentsServerActions1.handleUpdateFromServerResponse({actionType:n.PAYMENT_METHODS_LOADED,data:{accountID:u,paymentMethods:v[j.ALL_PAYMENT_METHODS]}});}).bind(this),(function(v){this.$BoostedComponentPaymentsServerActions1.handleUpdateFromServerResponse({actionType:n.PAYMENT_METHODS_LOAD_ERROR,data:{accountID:u,code:v.code,msg:v.message}});}).bind(this));};t.prototype.fetchPaymentMethodsForAllAccounts=function(u){u.forEach(this.fetchPaymentMethodsForAccount,this);};t.prototype.updatePrimaryPaymentMethod=function(u,v,w){var x=o.getURIBuilder().setString('ad_account_id',u).setInt('payment_method_id',parseInt(v,10)).getURI();new l().setURI(x).setMethod('POST').setHandler((function(y){if(y&&y.payload){this.$BoostedComponentPaymentsServerActions1.handleUpdateFromServerResponse({actionType:n.PRIMARY_PM_UPDATE_SUCCESS,data:{accountID:u,paymentMethodID:v,paymentMethodType:w}});}else this.$BoostedComponentPaymentsServerActions1.handleUpdateFromServerResponse({actionType:n.PRIMARY_PM_UPDATE_FAILURE,data:{accountID:u,paymentMethodID:v,paymentMethodType:w}});}).bind(this)).setErrorHandler((function(y){this.$BoostedComponentPaymentsServerActions1.handleUpdateFromServerResponse({actionType:n.PRIMARY_PM_UPDATE_FAILURE,data:{accountID:u,paymentMethodID:v,paymentMethodType:w}});}).bind(this)).send();};t.prototype.updateCurrencyAndOpenPaymentsFlow=function(u,v,w,x,y,z,aa,ba,ca,da){if(u){var ea=q.getURIBuilder().setString('account_id',w).setString('currency',v).getURI();new l(ea).setHandler((function(fa){this.$BoostedComponentPaymentsServerActions1.handleUpdateFromViewAction({actionType:n.CURRENCY_SERVER_UPDATE_SUCCESS,data:{accountID:w}});this.addNewPaymentMethod(w,x,y,aa,ba,ca,da,v,z);}).bind(this)).setErrorHandler((function(fa){this.$BoostedComponentPaymentsServerActions1.handleUpdateFromViewAction({actionType:n.CURRENCY_SERVER_UDPATE_FAIL,data:{accountID:w,errorCode:fa.error,errorDescription:fa.errorDescription,errorSummary:fa.errorSummary}});}).bind(this)).setMethod('POST').send();}else this.addNewPaymentMethod(w,x,y);};t.prototype.addNewPaymentMethod=function(u,v,w,x,y,z,aa,ba,ca){if(w)i.setBusinessID(w);var da=null;if(ca){da=new Date(Date.now()+ca*1000);da=r(da,i.CAMPAIGN_DATE_FORMAT);}i.addCredential(v,s,u,null,this.addPaymentMethodCallBack.bind(this),null,null,null,x,y,null,null,this.$BoostedComponentPaymentsServerActions3(z),aa,ba,da);};t.prototype.addPaymentMethodCallBack=function(u){if(!u)return;if(u.credential_state){this.$BoostedComponentPaymentsServerActions1.handleUpdateFromViewAction({actionType:n.PAYMENT_METHOD_ADDED,data:{accountID:u.account_id}});}else this.$BoostedComponentPaymentsServerActions1.handleUpdateFromViewAction({actionType:n.PAYMENTS_FLOW_CLOSED});};t.prototype.$BoostedComponentPaymentsServerActions3=function(u){switch(u){case m.DAILY_BUDGET:return h.DAILY;case m.LIFETIME_BUDGET:return h.LIFETIME;default:return null;}};f.exports=t;},null);
__d('BoostedComponentDataState',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={ACTIVE:'active',ACTIVE_WITH_NO_CHANGE:'active_with_no_change',ERROR:'error',INIT_DATA_LOADED:'init_data_loaded',LOADING:'loading',NEEDS_NEW_DATA:'needs_new_data',NOT_INITIALIZED:'not_initialized'};f.exports=h;},null);
__d("XBoostedComponentDialogSubmissionController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/boosted_components\/dialog\/submission\/",{app_id:{type:"Int",required:true},page_id:{type:"Int",required:true},post_id:{type:"Int"},ref:{type:"String",required:true},specs:{type:"String",required:true},action:{type:"Enum",required:true,enumType:1}});},null,{});
__d('BoostedComponentSubmissionServerActions',['AsyncRequest','BoostedComponentAppID','BoostedComponentClientEvent','BoostedComponentDataState','BoostedComponentSubmissionAction','XBoostedComponentDialogSubmissionController'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();function n(o,p,q,r,s){this.$BoostedComponentSubmissionServerActions1=o;this.$BoostedComponentSubmissionServerActions2=p;this.$BoostedComponentSubmissionServerActions3=q;this.$BoostedComponentSubmissionServerActions4=this.$BoostedComponentSubmissionServerActions2.getContextStore();this.$BoostedComponentSubmissionServerActions5=r;this.$BoostedComponentSubmissionServerActions6=s;}n.prototype.onSubmit=function(o,p){switch(o){case j.CREATE_SUBMIT:this.onCreate(p);break;case j.UPDATE_SUBMIT:this.onUpdate(p);break;case j.PAUSE_SUBMIT:this.onPause(p.getSpecsJSON());break;case j.RESUME_SUBMIT:this.onResume(p.getSpecsJSON());break;case j.DELETE_SUBMIT:this.onDelete(p.getSpecsJSON());break;default:}};n.prototype.onCreate=function(o){var p=this.$BoostedComponentSubmissionServerActions7(o),q=this.$BoostedComponentSubmissionServerActions8(p,l.CREATE);new h(q).setData({page_id:this.$BoostedComponentSubmissionServerActions4.getPageID(),post_id:this.$BoostedComponentSubmissionServerActions4.getPostID(),config:p,placement:this.$BoostedComponentSubmissionServerActions4.getPlacement()}).setHandler(this.$BoostedComponentSubmissionServerActions9.bind(this)).setErrorHandler(this.$BoostedComponentSubmissionServerActions10.bind(this)).setMethod('POST').send();};n.prototype.$BoostedComponentSubmissionServerActions9=function(o){this.$BoostedComponentSubmissionServerActions1.handleUpdateFromServerResponse({actionType:j.CREATE_SUCCESS,data:o.payload});};n.prototype.$BoostedComponentSubmissionServerActions10=function(o){this.$BoostedComponentSubmissionServerActions1.handleUpdateFromServerResponse({actionType:j.CREATE_FAIL,data:o});};n.prototype.onUpdate=function(o){var p=this.$BoostedComponentSubmissionServerActions11(o),q;if(p){q=this.$BoostedComponentSubmissionServerActions12(o);}else q=this.$BoostedComponentSubmissionServerActions7(o);var r=this.$BoostedComponentSubmissionServerActions8(q,l.EDIT);new h(r).setHandler(this.$BoostedComponentSubmissionServerActions13.bind(this,p)).setErrorHandler(this.$BoostedComponentSubmissionServerActions14.bind(this)).setMethod('POST').send();};n.prototype.$BoostedComponentSubmissionServerActions13=function(o,p){this.$BoostedComponentSubmissionServerActions1.handleUpdateFromServerResponse({actionType:j.UPDATE_SUCCESS,data:p.payload,isOnlyBudgetModified:o});};n.prototype.$BoostedComponentSubmissionServerActions14=function(o){this.$BoostedComponentSubmissionServerActions1.handleUpdateFromServerResponse({actionType:j.UPDATE_FAIL,data:o.payload});};n.prototype.onPause=function(o){var p=this.$BoostedComponentSubmissionServerActions8(o,l.PAUSE);new h(p).setHandler(this.$BoostedComponentSubmissionServerActions15.bind(this)).setErrorHandler(this.$BoostedComponentSubmissionServerActions16.bind(this)).setMethod('POST').send();};n.prototype.$BoostedComponentSubmissionServerActions15=function(o){this.$BoostedComponentSubmissionServerActions1.handleUpdateFromServerResponse({actionType:j.PAUSE_SUCCESS,data:o.payload});};n.prototype.$BoostedComponentSubmissionServerActions16=function(o){this.$BoostedComponentSubmissionServerActions1.handleUpdateFromServerResponse({actionType:j.PAUSE_FAIL,data:o.payload});};n.prototype.onResume=function(o){var p=this.$BoostedComponentSubmissionServerActions8(o,l.RESUME);new h(p).setHandler(this.$BoostedComponentSubmissionServerActions17.bind(this)).setErrorHandler(this.$BoostedComponentSubmissionServerActions18.bind(this)).setMethod('POST').send();};n.prototype.$BoostedComponentSubmissionServerActions17=function(o){this.$BoostedComponentSubmissionServerActions1.handleUpdateFromServerResponse({actionType:j.RESUME_SUCCESS,data:o.payload});};n.prototype.$BoostedComponentSubmissionServerActions18=function(o){this.$BoostedComponentSubmissionServerActions1.handleUpdateFromServerResponse({actionType:j.RESUME_FAIL,data:o.payload});};n.prototype.onDelete=function(o){var p=this.$BoostedComponentSubmissionServerActions8(o,l.DELETE);new h(p).setHandler(this.$BoostedComponentSubmissionServerActions19.bind(this)).setErrorHandler(this.$BoostedComponentSubmissionServerActions20.bind(this)).setMethod('POST').send();};n.prototype.$BoostedComponentSubmissionServerActions19=function(o){this.$BoostedComponentSubmissionServerActions1.handleUpdateFromServerResponse({actionType:j.DELETE_SUCCESS,data:o.payload});};n.prototype.$BoostedComponentSubmissionServerActions20=function(o){this.$BoostedComponentSubmissionServerActions1.handleUpdateFromServerResponse({actionType:j.DELETE_FAIL,data:o.payload});};n.prototype.$BoostedComponentSubmissionServerActions8=function(o,p){return (m.getURIBuilder().setInt('page_id',this.$BoostedComponentSubmissionServerActions4.getPageID()).setInt('post_id',this.$BoostedComponentSubmissionServerActions4.getPostID()).setInt('app_id',this.$BoostedComponentSubmissionServerActions4.getAppID()).setString('specs',o).setString('ref',this.$BoostedComponentSubmissionServerActions4.getPlacement()).setEnum('action',p).getURI());};n.prototype.$BoostedComponentSubmissionServerActions7=function(o){switch(this.$BoostedComponentSubmissionServerActions4.getAppID()){case i.BOOSTED_POST:case i.BOOSTED_EVENT:case i.BOOSTED_PRODUCT:return o.getBoostedPostConfig().getJSONString();}return o.getSpecsJSON();};n.prototype.$BoostedComponentSubmissionServerActions12=function(o){switch(this.$BoostedComponentSubmissionServerActions4.getAppID()){case i.BOOSTED_POST:case i.BOOSTED_EVENT:case i.BOOSTED_PRODUCT:return o.getBoostedPostConfig().getJSONString();}return o.getSpecsWithEmptyCreativeJSON();};n.prototype.$BoostedComponentSubmissionServerActions11=function(o){var p=o.getCreativeStore().getState(),q=o.getTargetingStore().getState(),r=o.getBudgetEstimationStore().getState(),s=o.getDurationStore().getState();return r===k.ACTIVE&&q===k.ACTIVE_WITH_NO_CHANGE&&p===k.ACTIVE_WITH_NO_CHANGE&&s===k.ACTIVE_WITH_NO_CHANGE;};f.exports=n;},null);
__d('BoostedComponentAdAccountViewActions',['BoostedComponentClientEvent'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();function i(j){this.$BoostedComponentAdAccountViewActions1=j;}i.prototype.updateAccount=function(j){this.$BoostedComponentAdAccountViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_ACCOUNT,accountID:j});};i.prototype.updateAdAccountID=function(j){this.$BoostedComponentAdAccountViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_AD_ACCOUNT_ID,accountID:j});};i.prototype.updateCurrency=function(j){this.$BoostedComponentAdAccountViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_CURRENCY,currency:j});};i.prototype.updatePrimaryPaymentMethod=function(j,k,l){this.$BoostedComponentAdAccountViewActions1.handleUpdateFromViewAction({actionType:h.CLIENT_UPDATE_PRIMARY,data:{accountID:j,paymentMethodID:k,paymentMethodType:l}});};i.prototype.addNewPaymentMethod=function(){this.$BoostedComponentAdAccountViewActions1.handleUpdateFromViewAction({actionType:h.OPEN_PAYMENTS_FLOW});};f.exports=i;},null);
__d('BoostedComponentAdStatusViewActions',['BoostedComponentClientEvent'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();function i(j){this.$BoostedComponentAdStatusViewActions1=j;}i.prototype.updateAdStatus=function(j){this.$BoostedComponentAdStatusViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_AD_STATUS,adStatus:j});};f.exports=i;},null);
__d('BoostedComponentBudgetEstimationViewActions',['BoostedComponentClientEvent'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();function i(j){this.$BoostedComponentBudgetEstimationViewActions1=j;}i.prototype.updateBudget=function(j){this.$BoostedComponentBudgetEstimationViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_BUDGET,data:j});};i.prototype.inputCustomBudget=function(j){this.$BoostedComponentBudgetEstimationViewActions1.handleUpdateFromViewAction({actionType:h.INPUT_CUSTOM_BUDGET,data:j});};f.exports=i;},null);
__d('BoostedComponentConversionPixelViewActions',['BoostedComponentClientEvent','BoostedComponentConfigPayload'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();function j(k){this.$BoostedComponentConversionPixelViewActions1=k;}j.prototype.updatePixel=function(k){var l={};l[i.CONVERSION_PIXEL_STORE_DATA]={selectedConversionPixelID:k};this.$BoostedComponentConversionPixelViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_PIXEL,data:l});};f.exports=j;},null);
__d('BoostedComponentCreativeViewActions',['BoostedComponentClientEvent'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();function i(j){this.$BoostedComponentCreativeViewActions1=j;}i.prototype.changeCallToAction=function(j){this.$BoostedComponentCreativeViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_CALL_TO_ACTION,callToAction:j});};i.prototype.toggleCreativeCategory=function(j){this.$BoostedComponentCreativeViewActions1.handleUpdateFromViewAction({actionType:h.TOGGLE_CREATIVE_CATEGORY,creativeCategory:j});};i.prototype.changeCreative=function(j){this.$BoostedComponentCreativeViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_CREATIVE,creativeSpec:j});};i.prototype.changeImage=function(j){this.$BoostedComponentCreativeViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_IMAGE,image:j});};i.prototype.changeImageCrop=function(j,k){var l={};l[j]=k;this.changeImageCrops(l);};i.prototype.changeImageCrops=function(j){this.$BoostedComponentCreativeViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_IMAGE_CROPS,imageCrops:j});};i.prototype.changeLinkDataFields=function(j){this.$BoostedComponentCreativeViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_LINK_DATA_FIELDS,linkDataSpec:j});};i.prototype.startVideoUpload=function(j){this.$BoostedComponentCreativeViewActions1.handleUpdateFromViewAction({actionType:h.VIDEO_UPLOAD_START,fileInput:j});};i.prototype.requestEnablePageMessaging=function(){this.$BoostedComponentCreativeViewActions1.handleUpdateFromViewAction({actionType:h.PAGE_MESSAGING_ENABLE_REQUEST});};i.prototype.updateVideoDescription=function(j){this.$BoostedComponentCreativeViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_VIDEO_DESCRIPTION,videoDescription:j});};i.prototype.updateVideoThumbnail=function(j){this.$BoostedComponentCreativeViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_VIDEO_THUMBNAIL,thumbnail:j});};i.prototype.clearVideoCreative=function(){this.$BoostedComponentCreativeViewActions1.handleUpdateFromViewAction({actionType:h.CLEAR_VIDEO_CREATIVE});};i.prototype.cancelVideoUpload=function(){this.$BoostedComponentCreativeViewActions1.handleUpdateFromViewAction({actionType:h.VIDEO_UPLOAD_CANCEL});};i.prototype.fetchDefaultCity=function(){this.$BoostedComponentCreativeViewActions1.handleUpdateFromViewAction({actionType:h.FETCH_DEFAULT_CITY});};f.exports=i;},null);
__d('BoostedComponentDialogRenderViewActions',['BoostedComponentClientEvent','BoostedComponentConfigPayload','BoostedComponentContextStoreFields'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();function k(l){this.$BoostedComponentDialogRenderViewActions1=l;}k.prototype.onMouseEnter=function(l){this.$BoostedComponentDialogRenderViewActions1.handleUpdateFromViewAction({actionType:h.ON_MOUSE_ENTER,data:this.$BoostedComponentDialogRenderViewActions2(l)});};k.prototype.onUpsellButtonClick=function(l){this.$BoostedComponentDialogRenderViewActions1.handleUpdateFromViewAction({actionType:h.ON_UPSELL_BUTTON_CLICK,data:this.$BoostedComponentDialogRenderViewActions2(l)});};k.prototype.onAutoOpen=function(l){this.$BoostedComponentDialogRenderViewActions1.handleUpdateFromViewAction({actionType:h.ON_AUTO_OPEN,data:this.$BoostedComponentDialogRenderViewActions2(l)});};k.prototype.onCreateDialogClose=function(){this.$BoostedComponentDialogRenderViewActions1.handleUpdateFromViewAction({actionType:h.CREATE_DIALOG_CLOSE});};k.prototype.onDialogCancelButtonClick=function(){this.$BoostedComponentDialogRenderViewActions1.handleUpdateFromViewAction({actionType:h.ON_DIALOG_CANCEL_BUTTON_CLICK});};k.prototype.onDialogRequestReviewClick=function(){this.$BoostedComponentDialogRenderViewActions1.handleUpdateFromViewAction({actionType:h.ON_DIALOG_REQUEST_REVIEW_CLICK});};k.prototype.onDialogRequestReviewConfirm=function(){this.$BoostedComponentDialogRenderViewActions1.handleUpdateFromViewAction({actionType:h.ON_DIALOG_REQUEST_REVIEW_CONFIRM});};k.prototype.$BoostedComponentDialogRenderViewActions2=function(l){var m={};m[j.PLACEMENT]=l;var n={};n[i.CONTEXT_STORE_DATA]=m;return n;};f.exports=k;},null);
__d('BoostedComponentDurationViewActions',['BoostedComponentClientEvent'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();function i(j){this.$BoostedComponentDurationViewActions1=j;}i.prototype.updateDuration=function(j){this.$BoostedComponentDurationViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_DURATION,duration:j});};i.prototype.updateCampaignLengthInDays=function(j){this.$BoostedComponentDurationViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_CAMPAIGN_LENGTH_IN_DAYS,campaignLengthInDays:j});};i.prototype.updateRunContinuously=function(j){this.$BoostedComponentDurationViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_RUN_CONTINUOUSLY,runContinuously:j});};f.exports=i;},null);
__d('BoostedComponentSubmissionViewActions',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i){this.$BoostedComponentSubmissionViewActions1=i;}h.prototype.onClick=function(i){this.$BoostedComponentSubmissionViewActions1.handleUpdateFromViewAction({actionType:i});};f.exports=h;},null);
__d('BoostedComponentSuccessDialogViewActions',['BoostedComponentClientEvent'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();function i(j){this.$BoostedComponentSuccessDialogViewActions1=j;}i.prototype.onEditCampaignClick=function(j){this.$BoostedComponentSuccessDialogViewActions1.handleUpdateFromViewAction({actionType:h.ON_EDIT_CAMPAIGN_CLICK});};f.exports=i;},null);
__d('BoostedComponentTargetingViewActions',['BoostedComponentClientEvent'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();function i(j){this.$BoostedComponentTargetingViewActions1=j;}i.prototype.updateAge=function(j){this.$BoostedComponentTargetingViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_AGE,data:j});};i.prototype.updateGender=function(j){this.$BoostedComponentTargetingViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_GENDER,data:j});};i.prototype.updateGeoLocationType=function(j){this.$BoostedComponentTargetingViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_GEO_LOCATION_TYPE,data:j});};i.prototype.updateInterests=function(j){this.$BoostedComponentTargetingViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_INTERESTS,data:j});};i.prototype.updateBroadGeoLocations=function(j){this.$BoostedComponentTargetingViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_BROAD_GEO_LOCATIONS,data:j});};i.prototype.updateCustomLocation=function(j){this.$BoostedComponentTargetingViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_CUSTOM_LOCATION,data:j});};i.prototype.updateAudience=function(j){this.$BoostedComponentTargetingViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_AUDIENCE,data:j});};i.prototype.updateAudienceID=function(j){this.$BoostedComponentTargetingViewActions1.handleUpdateFromViewAction({actionType:h.UPDATE_AUDIENCE_ID,data:j});};i.prototype.logUpdateTargetingEvent=function(j){this.$BoostedComponentTargetingViewActions1.handleUpdateFromViewAction({actionType:j});};f.exports=i;},null);
__d('AdsPaymentMethodMessages',['fbt'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i={genericErrorMessage:h._("There was an error while loading the payment methods. Please try again."),removePaymentMethodSuccessMessage:h._("Payment method was removed successfully."),removePaymentMethodErrorMessage:h._("There was an error while removing your payment method. Please try again."),changePrimaryMethodSuccessMessage:h._("Your primary payment method has been changed."),changePrimaryMethodErrorMessage:h._("There was an error while changing your primary payment method. Please try again."),changePaymentMethodDisclaimer:h._("Your ads are all charged to the same payment method. Switching your payment method here will switch it for all ads, including ads for different pages."),noPaymentMethodFound:h._("Please select a payment method")};f.exports=i;},null);
__d('AdsPaymentName',['Link.react','React','URI','fbt'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l={getInvoicedAccountMsg:function(){return k._("Invoice");},getCorporateAccountMsg:function(m,n){var o=k._("Corporate Account");if(n){var p=new j('/ads/manage/billing.php').addQueryData('act',m.id);return (i.createElement(h,{href:p,target:'_blank'},o));}return o;},getAdCouponFundingSourceMsg:function(m){return k._("Ad Coupon ({balance} left)",[k.param('balance',m.adCoupon)]);},getGeneralFundingSourceMsg:function(m){return k._("Primary payment method ({account_id})",[k.param('account_id',m.id)]);},getPaymentName:function(m,n){if(m.hasCredit){return this.getInvoicedAccountMsg();}else if(m.isCorporateAccount){return this.getCorporateAccountMsg(m,n);}else if(m.adCoupon){return this.getAdCouponFundingSourceMsg(m);}else if(m.fundingSourceString)return m.fundingSourceString;return this.getGeneralFundingSourceMsg(m);}};f.exports=l;},null);
__d('BoostedComponentAdAccountUtils',['AdsPaymentsFlowPlacement','BoostedComponentAppID'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={getPaymentsFlowPlacement:function(k){switch(k){case i.BOOSTED_POST:case i.BOOSTED_EVENT:case i.BOOSTED_PRODUCT:return h.BOOSTED_POST;case i.BOOSTED_PAGELIKE:return h.BOOSTED_PAGE_LIKE;case i.BOOSTED_LOCAL_AWARENESS:return h.BOOSTED_LOCALAWARENESS;default:return h.BOOSTED_POST;}}};f.exports=j;},null);
__d('BoostedComponentValidator',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();h.prototype.isValid=function(){return true;};function h(){}f.exports=h;},null);
__d('BoostedComponentAdAccountValidator',['BoostedComponentAccountInfoFields','AdsLoadState','BoostedComponentValidator','BoostedComponentPaymentInfoFields'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l,m;'use strict';l=babelHelpers.inherits(n,j);m=l&&l.prototype;function n(o){m.constructor.call(this);this.$BoostedComponentAdAccountValidator1=o;}n.prototype.isValid=function(){if(this.getErrors()&&this.getErrors().length>0)return false;return true;};n.prototype.getSuccesses=function(){return this.$BoostedComponentAdAccountValidator2(i.LOADED);};n.prototype.getErrors=function(){return this.$BoostedComponentAdAccountValidator2(i.ERROR);};n.prototype.$BoostedComponentAdAccountValidator2=function(o){var p=[];this.$BoostedComponentAdAccountValidator3(p,'accountInfo',o);this.$BoostedComponentAdAccountValidator3(p,h.CURRENCY,o);this.$BoostedComponentAdAccountValidator3(p,k.PAYMENT_METHODS,o);this.$BoostedComponentAdAccountValidator3(p,k.PRIMARY_PAYMENT_METHOD,o);return p;};n.prototype.$BoostedComponentAdAccountValidator3=function(o,p,q){var r={};switch(p){case 'accountInfo':r=this.$BoostedComponentAdAccountValidator1.getAccountInfoLoadingStatus();break;case h.CURRENCY:r=this.$BoostedComponentAdAccountValidator1.getCurrencyLoadingStatus();break;case k.PAYMENT_METHODS:r=this.$BoostedComponentAdAccountValidator1.getPaymentMethodsLoadingStatus();break;case k.PRIMARY_PAYMENT_METHOD:r=this.$BoostedComponentAdAccountValidator1.getPrimaryPMLoadingStatus();break;}if(r.loadingStatus!==q)return;if(r.message)o.push(r.message);};n.prototype.unsetAllMessages=function(){var o=this.$BoostedComponentAdAccountValidator1.getSelectedAccount();if(o.loadingStatus){if(o.loadingStatus.all)o.loadingStatus.all.message=null;if(o.loadingStatus[h.CURRENCY])o.loadingStatus[h.CURRENCY].message=null;}if(o[k.PAYMENT_METHODS])o[k.PAYMENT_METHODS].message=null;var p=o[h.PAYMENT_INFO];if(p&&p[k.PRIMARY_PAYMENT_METHOD])p[k.PRIMARY_PAYMENT_METHOD].message=null;};f.exports=n;},null);
__d('BoostedComponentBaseStore',['AdsDispatcher','AdsUtils','ArbiterMixin','BoostedComponentDataState','BoostedComponentValidator','isEmpty','invariant','mixin'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){if(c.__markCompiled)c.__markCompiled();var p,q;'use strict';p=babelHelpers.inherits(r,o(j));q=p&&p.prototype;function r(s){if(!s)return;q.constructor.call(this);this.setState(k.NOT_INITIALIZED);this.$BoostedComponentBaseStore1=s;this.events={};this.registerStoreEvents();this.dispatchToken=s.getDispatcher().register(this.onDispatch.bind(this));if(this.shouldListenToAdsDispatcher())h.register(this.onDispatch.bind(this));}r.prototype.onDispatch=function(s){var t=false,u=s.action.actionType;if(this.hasEventRegistered(u))t=this.getEventCallback(u)(this.getStorePayloadData(s.action.data||{}));if(t)this.inform('change');};r.prototype.registerEvents=function(s,t){for(var u=0;u<s.length;u++){!!this.hasEventRegistered(s[u])?n(0):undefined;this.events[s[u]]=t;}};r.prototype.hasEventRegistered=function(event){return !!this.events[event];};r.prototype.getEventCallback=function(event){!this.hasEventRegistered(event)?n(0):undefined;return this.events[event];};r.prototype.getAllEvents=function(){return Object.keys(this.events).sort();};r.prototype.getStorePayloadKey=function(){n(0);};r.prototype.getStorePayloadData=function(s){return s[this.getStorePayloadKey()];};r.prototype.getDispatchToken=function(){return this.dispatchToken;};r.prototype.getState=function(){return this.$BoostedComponentBaseStore2;};r.prototype.setState=function(s){this.$BoostedComponentBaseStore2=s;};r.prototype.validate=function(){if(!this.getValidator().isValid()){this.setState(k.ERROR);}else if(!this.hasChanged()){this.setState(k.ACTIVE_WITH_NO_CHANGE);}else this.setState(k.ACTIVE);};r.prototype.getValidator=function(){return new l();};r.prototype.getInitialValue=function(){return this.$BoostedComponentBaseStore3;};r.prototype.setInitialValue=function(s){this.$BoostedComponentBaseStore3=s;};r.prototype.getPreviousValue=function(){return this.$BoostedComponentBaseStore4;};r.prototype.hasChanged=function(){return false;};r.prototype.getConfig=function(){return this.$BoostedComponentBaseStore1;};r.prototype.getStoreData=function(){return this.data;};r.prototype.hasStoreData=function(){return !m(this.data);};r.prototype.initializeStore=function(s){if(this.getState()==k.NOT_INITIALIZED){this.$BoostedComponentBaseStore4=i.clone(s);this.data=s;}this.setState(k.ACTIVE);return true;};r.prototype.setStoreDataField=function(s,t){this.$BoostedComponentBaseStore4=i.clone(this.data);this.data[s]=t;};r.prototype.shouldListenToAdsDispatcher=function(){return false;};f.exports=r;},null);
__d('BoostedComponentStrings',['AdsCallToActionTypes','AdsCurrencyFormatter','BoostedComponentAppID','BoostedComponentClientEvent','fbt','ads-lib-formatters'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=m.createLimitedSigFigNumberFormatter(0,2),o={ACCOUNT_SECTION:l._("Account"),AD_PREVIEW:l._("AD PREVIEW"),AD_STATUS_ACTIVE:l._("Active"),AD_STATUS_INACTIVE:l._("Inactive"),AD_STATUS_PENDING:l._("In Review"),AD_STATUS_REJECTED:l._("Not Approved"),AD_STATUS_SECTION:l._("CHANGE YOUR AD STATUS"),AD_STATUS_ACTIVE_NOTICE:l._("Your ad is currently running and can be paused anytime without losing your ad stats or settings."),AD_STATUS_PAUSE_NOTICE:l._("Your ad is currently paused and can be resumed anytime without losing your ad stats or settings."),AD_STATUS_DELETE_NOTICE:l._("If you delete your ad, all info about the ad will be permanently deleted."),AD_STATUS_LABEL:l._("Ad Status"),AD_APPROVED_TITLE:l._("Your Ad has been approved!"),AD_APPROVED_CONTENT:l._("Results will be shown here soon."),AD_IN_REVIEW_TITLE:l._("Your Ad has been submitted."),AGE:l._("Age"),APPROVED_MESSAGE:l._("Your ad is approved. Results will show here soon."),BOOST:l._(["Boost","a4ed4009295ecf67a6b31a9ad77526da"]),BOOSTED_PRODUCT_CREATE_DIALOG_TITLE:l._("Boost Product"),BOOSTED_LOCAL_AWARENESS_CREATE_DIALOG_TITLE:l._("Promote Local Business"),BOOSTED_PAGELIKE_CREATE_DIALOG_TITLE:l._(["Promote Page","691b0eca36a2d70f49db480e15ab2d7c"]),BOOSTED_WEBSITE_CREATE_DIALOG_TITLE:l._("Promote Website"),BOOSTED_CCTA_CREATE_DIALOG_TITLE:l._("Promote Call to Action"),BUDGET_DURATION_SECTION:l._("BUDGET AND DURATION"),CALL_TO_ACTION_ADDRESS_EDIT:l._("Edit"),CALL_TO_ACTION_ADDRESS_INVALID:l._("Please set a valid address for the \"{=Get Directions}\" Call to Action.",[l.param('=Get Directions',h.TYPES.GET_DIRECTIONS.text)]),CALL_TO_ACTION_ADDRESS_LABEL:l._("Street Address"),CALL_TO_ACTION_ADDRESS_TOOLTIP:l._("Add a street address for your business. When people tap \"Get Directions\" they'll get a map with directions to this location."),CALL_TO_ACTION_LEARN_MORE_LABEL:l._("Learn More Website"),CALL_TO_ACTION_LEARN_MORE_PLACEHOLDER:l._("Enter the URL you want to promote"),CALL_TO_ACTION_LEARN_MORE_TOOLTIP:l._("Enter the destination URL that you want to promote. Ex: 'http:\/\/www.example.com\/about'"),CALL_TO_ACTION_PHONE_NUMBER_LABEL:l._("Phone Number"),CALL_TO_ACTION_PHONE_NUMBER_PLACEHOLDER:l._("Enter a phone number"),CALL_TO_ACTION_PHONE_NUMBER_TOOLTIP:l._("Insert a phone number to help your customers get in contact with your business"),CALL_TO_ACTION_VALIDATION_FAILED:l._("A technical problem occurred. Please try again in a few minutes, or refresh your browser."),CANCEL:l._("Cancel"),CANCEL_DIALOG_TITLE:l._("Cancel Promotion"),CANCEL_DIALOG_BODY:l._("If you cancel, your Page won't be promoted."),CLEAR:l._("Clear"),CLOSE:l._("Close"),COLLAPSE_SECTION:l._("Collapse"),CONFIRM:l._("OK"),CONFIRM_CANCEL:l._("Cancel Promotion"),CONVERSION_PIXEL_SECTION:l._("CONVERSION PIXEL"),CONVERSION_PIXEL_LABEL:l._("Choose a Pixel (Optional)"),CONVERSION_PIXEL_EDIT_MODE_LABEL:l._("Conversion Pixel Selected"),CONVERSION_PIXEL_SELECTOR_DEFAULT_LABEL:l._("No pixel selected"),CONVERSION_PIXEL_TOOLTIP:l._("A conversion-tracking pixel is a small piece of code that lets you keep track of conversions, such as purchases and sign-ups, on your website"),CONVERSION_TRACKING_SECTION:l._("TRACKING CONVERSIONS"),COUNTRY:l._("Country"),CREATIVE_BODY_LABEL:l._("Text"),CREATIVE_BODY_TOOLTIP:l._("Tell people a bit more about your Page. Make sure to clearly explain what you're promoting."),CREATIVE_BODY_PLACEHOLDER:l._("Tell people what you're promoting."),CREATIVE_CTA_LABEL:l._("Call To Action"),CREATIVE_CTA_TOOLTIP:l._("Choose the action you want people to take when they see your ad"),CREATIVE_IMAGE:l._("Add an Image"),CREATIVE_IMAGE_TOGGLE_TIP:l._("Add a Video Instead"),CREATIVE_IMAGE_TOOLTIP:l._("Upload, select a new image or reposition the current image to use in your ad."),CREATIVE_LINK_DATA_HEADLINE_LABEL:l._("Headline"),CREATIVE_LINK_DATA_HEADLINE_PLACEHOLDER:l._("Add a headline to get people's attention."),CREATIVE_LINK_DATA_HEADLINE_TOOLTIP:l._("Add a headline that grabs people's attention and tells them what your ad is about."),CREATIVE_LINK_DATA_TEXT_LABEL:l._("Text"),CREATIVE_LINK_DATA_TEXT_PLACEHOLDER:l._("Tell people what you're promoting."),CREATIVE_LINK_DATA_TEXT_TOOLTIP:l._("Tell people a bit more about your website. Make sure to clearly explain what you're promoting."),CREATIVE_LINK_DATA_URL_LABEL:l._("URL"),CREATIVE_LINK_DATA_URL_PLACEHOLDER:l._("Add a website to promote."),CREATIVE_LINK_DATA_URL_TOOLTIP:l._("Type or paste a URL."),CREATIVE_SECTION:l._("AD CREATIVE"),CREATIVE_VIDEO:l._("Add a Video"),CREATIVE_VIDEO_BROWSE_LIBRARY_BUTTON:l._("Browse Library"),CREATIVE_VIDEO_CUSTOM_THUMBNAIL:l._("Custom Image"),CREATIVE_VIDEO_STEP_ONE:l._("1. Select Your Video"),CREATIVE_VIDEO_STEP_TWO:l._("2. Select a preview image"),CREATIVE_VIDEO_TOGGLE_TIP:l._("Add an Image Instead"),CREATIVE_VIDEO_UPLOAD_BUTTON:l._("Upload New Video"),CREATIVE_VIDEO_TOOLTIP:l._("Upload or select a new video to use in your ad."),CURRENCY_SECTION:l._("Currency"),CUSTOM_LOCATION:l._("custom location"),DAILY_BUDGET_LABEL:l._("Daily Budget"),DAILY_BUDGET_TOOLTIP:l._("The maximum you'll spend on your promotion each day until you stop your ad"),DATE_PICKER_PREPEND_TEXT:l._("Run this ad until"),DELETE_DIALOG_TITLE:l._("Delete Ad"),DELETE_SUCCESS_DIALOG_TITLE:l._("Delete Ad"),DELETE_DIALOG_BODY:l._("Are you sure you want to delete your promotion?"),DELETE_SUCCESS_DIALOG_BODY:l._("Your ad has been deleted."),DONE:l._("Done"),DURATION_LABEL:l._("Duration"),DURATION_TOOLTIP:l._("Choose how long you want your promotion to run"),EDIT_BUTTON_LABEL:l._("Edit Ad"),EDIT_PROMOTION:l._("Edit Promotion"),EDIT_SECTION:l._("Edit"),EDIT_SUBMISSION_BUTTON_LABEL:l._("Save Changes"),ERROR_DIALOG_BODY:l._("Sorry, something went wrong. Please refresh your browser to try again."),ERROR_DIALOG_TITLE:l._("Oops! An unexpected error occurred."),ESTIMATED_DAILY_REACH:l._("Estimated Daily Reach"),ESTIMATED_PEOPLE_REACH:l._("Est. People Reached"),HIDE_SECTION_DETAILS:l._("Hide Details"),GENDER:l._("Gender"),GENDER_MEN:l._("Men"),GENDER_WOMEN:l._("Women"),IMAGE_SELECTOR_TOOLTIP_TEXT:l._("Select an image from your image library"),INSIGHTS_REACH_LABEL:l._("People Reached"),INSIGHTS_REACH_TOOLTIP:l._("The number of people who have seen your ad."),INSIGHTS_SECTION:l._("INSIGHTS"),INSIGHTS_SPEND_LABEL:l._("Total Spend"),INSIGHTS_SPEND_TOOLTIP:l._("The total amount you've spent on the ad for your Page"),INTEGRITY_REJECTED_DIALOG_TITLE:l._("We found a problem with your ad"),INTERESTS:l._("Interests"),INTERESTS_TOOLTIP:l._("Enter things, interests, and traits that your audience shares. If you decide to use interest targeting, your ad will be most effective if you add at least 4-10 interests."),INVALID_CTA_FBURL_ERROR:l._("Your ad cannot promote a Facebook destination. Please edit your call to action destination URL."),INVALID_CITY_NUM_ERROR:l._("Your ad can only target up to 250 cities. Create a separate ad for additional cities."),INVALID_COUNTRY_NUM_ERROR:l._("Your ad can only target up to 25 countries. Create a separate ad for additional countries."),INVALID_FBURL_ERROR:l._("Your ad cannot promote a Facebook destination. Please add another URL."),INVALID_LOCATION_NUM_ERROR:l._("Please add at least one location."),INVALID_REGION_NUM_ERROR:l._("Your ad can only target up to 200 regions. Create a separate ad for additional regions."),INVALID_DURATION_ERROR:l._("Please pick a date that occurs in the future."),INVALID_URL_ERROR:l._("Please add a valid URL."),LEARN_MORE:l._("Learn More"),LOCATION:l._("Location"),LOCATION_TOOLTIP:l._("Location of people who will see your ad"),MULTI_ADS_LABEL:l._("Images"),MULTI_ADS_TOOLTIP:l._("Add up to 5 images"),NO_CREATIVE_BODY_ERROR:l._("Please write something about your ad in the text field."),NO_IMAGE_ERROR:l._("Please add an image."),NO_VIDEO_ERROR:l._("Please add a video."),NO_VIDEO_IN_AD_PREVIEW_ERROR:l._("You haven't added a video yet."),OK:l._("OK"),OVERVIEW:l._("Overview"),PAGE_MESSAGES_DISABLED_ERROR:l._("To use this call-to-action button you must allow people to send private messages to your Page"),PAUSE_DIALOG_TITLE:l._("Pause Ad"),PAUSE_SUCCESS_DIALOG_TITLE:l._("Pause Ad"),PAUSE_DIALOG_BODY:l._("Are you sure you want to pause your promotion?"),PAUSE_SUCCESS_DIALOG_BODY:l._("Your ad has been paused."),PAYMENT_INFO_SECTION:l._("PAYMENT"),PAYMENT_ACCOUNT_INFO_SECTION:l._("PAYING FOR YOUR AD"),PAYMENT_METHOD_SECTION:l._("Payment Method"),PAYMENT_INFO_GENERAL_ERROR:l._("There was an error while loading the payment information."),PHONE_NUMBER_NOT_VALID_ERROR:l._("Please make sure to provide a valid phone number."),PHONE_NUMBER_IS_PREMIUM_ERROR:l._("Premium phone numbers are not allowed."),PHONE_NUMBER_IS_NOT_LOCAL_ERROR:l._("Only local phone numbers are allowed."),PIZZA_TRACKER_CREATED_LABEL:l._("Ad Created"),PIZZA_TRACKER_IN_REVIEW_LABEL:l._("In Review"),PIZZA_TRACKER_APPROVED_LABEL:l._("Approved"),PROMOTE:l._(["Promote","0578fbc14a9418cef7a59debc5e5cf1b"]),RESET_TARGETING:l._("Reset Targeting"),RESULTS:l._("Results"),RESUME_SUCCESS_DIALOG_BODY:l._("Your ad has been resumed."),RESUME_SUCCESS_DIALOG_TITLE:l._("Resume Ad"),RUN_CONTINUOUSLY_DESCRIPTION:l._("You'll spend your budget every day until you stop your ad."),RUN_CONTINUOUSLY_LABEL:l._("Run this ad continuously"),RUN_WITH_END_DATE_LABEL:l._("Choose when this ad will end"),SAVE_SECTION_CHANGES:l._("Save"),SELECT:l._("Select"),SELECT_IMAGE:l._("Select Image"),SET_BUDGET:l._("Set Budget"),TARGET_AUDIENCE:l._("Target Audience"),TARGET_AUDIENCE_BROAD:l._("Locations"),TARGET_AUDIENCE_LOCAL:l._("Address"),TARGETING_SECTION:l._("AUDIENCE"),TOTAL_BUDGET_LABEL:l._("Total budget"),TRACKING_PIXEL_EDIT_MODE_LABEL:l._("Tracking Pixel Selected"),UNDER_REVIEW_MESSAGE:l._("We're reviewing your ad to make sure it meets our Ad Guidelines. This usually takes less than 15 minutes."),VIEW_SECTION_DETAILS:l._("View Details"),VIDEO_UPLOAD_ERROR:l._("Sorry, Video Upload failed. Try again."),getCallToActionAgeTooLowError:function(p){return l._("Age is too low for this Call To Action (minimum age is {minAge}).",[l.param('minAge',p)]);},getSingleDaySpendNoticeInCreate:function(p,q){return l._("If your ad starts running now, you'll spend about {todayBudget} today. Your estimated total budget is {amount}.",[l.param('todayBudget',p),l.param('amount',q)]);},getMultiDaySpendNoticeInCreate:function(p,q,r){return l._("If your ad starts running now, you'll spend about {todayBudget} today and {dailyBudget} daily. Your estimated total budget is {amount}.",[l.param('todayBudget',p),l.param('dailyBudget',q),l.param('amount',r)]);},getSingleDaySpendNoticeInEdit:function(p){return l._("Your ad will run for 1 day. Your estimated total spend for this ad will be {amount}.",[l.param('amount',p)]);},getMultiWeekSpendNoticeInEdit:function(p,q){return l._("Your ad will run for {number of weeks} weeks. Your estimated total spend for this ad will be {amount}.",[l.param('number of weeks',p/7),l.param('amount',q)]);},getSingleWeekSpendNoticeInEdit:function(p){return l._("Your ad will run for 1 week. Your estimated total spend for this ad will be {amount}.",[l.param('amount',p)]);},getMultiDaySpendNoticeInEdit:function(p,q){return l._("Your ad will run for {number of days} days. Your estimated total spend for this ad will be {amount}.",[l.param('number of days',p),l.param('amount',q)]);},getSingleDayMinBudgetError:function(p,q){return l._("The minimum budget is {min_budget_per_day} per day.",[l.param('min_budget_per_day',i.formatCurrency(p,q))]);},getMultiDaysMinBudgetError:function(p,q,r){return l._("The minimum budget is {min_budget_per_day} per day, so your budget needs to be at least {min_budget}.",[l.param('min_budget_per_day',i.formatCurrency(p,q)),l.param('min_budget',i.formatCurrency(p,r))]);},getMaxBudgetError:function(p,q){return l._("Your budget needs to be less than {max_budget}.",[l.param('max_budget',i.formatCurrency(p,q))]);},getMultiAdsError:function(p){return l._("The item at the {product_index} position of the products contains errors.",[l.param('product_index',++p)]);},getMultiAdsNoItemError:function(p){return l._("Please provide the product information at {product_index} position.",[l.param('product_index',++p)]);},getCreativeSectionTitle:function(p){return (p===j.BOOSTED_POST||p===j.BOOSTED_PRODUCT?o.AD_PREVIEW:o.CREATIVE_SECTION);},getSelectedAudienceHelpText:function(p){return l._("{audience size} people on Facebook meet this criteria",[l.param('audience size',n(p))]);},getAgeRangeOlderThan:function(p){return l._("{min_age}+",[l.param('min_age',p)]);},getAgeRangeFromTo:function(p,q){return l._("{min_age} - {max_age}",[l.param('min_age',p),l.param('max_age',q)]);},getConversionsLabel:function(p){switch(p){case j.BOOSTED_PAGELIKE:return l._("Likes");case j.BOOSTED_CCTA:case j.BOOSTED_WEBSITE:return l._("Clicks");case j.BOOSTED_POST:return l._("Actions");default:return null;}},getConversionsTooltip:function(p){switch(p){case j.BOOSTED_PAGELIKE:return l._("The number of new likes on your Page that you received because of your ad");case j.BOOSTED_WEBSITE:return l._("The number of new clicks to your website that you received because of your ad");default:return null;}},getVideoUploadSuccessText:function(p){return l._("{video_name} uploaded successfully.",[l.param('video_name',p)]);},getVideoSelectedText:function(p){return l._("{video_name} selected.",[l.param('video_name',p)]);},getSubmissionIndicatorString:function(p){switch(p){case k.CREATE_CLICK:case k.CREATE_SUBMIT:case k.COMPOSER_CREATE_CLICK:return l._("Submitting Your Promotion...");case k.PAUSE_SUBMIT:return l._("Pausing Your Promotion...");case k.RESUME_CLICK:case k.RESUME_SUBMIT:return l._("Resuming Your Promotion...");case k.DELETE_SUBMIT:return l._("Deleting Your Promotion...");default:return l._("Submitting...");}}};f.exports=o;},null);
__d('BoostedPrimedDao',['CurrentLocale','AdsDaoGraph'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=null;f.exports={setAccountID:function(k){j=i.primedForAccount(k).primedForLocale(h.get());},getDaoForCurrentAccount:function(){return j;}};},null);
__d('BoostedComponentAdAccountStore',['BoostedComponentAccountInfoFields','AdsLoadState','AdsPaymentMethodMessages','AdsPaymentName','BoostedComponentAdAccountUtils','BoostedComponentAdAccountValidator','BoostedComponentBaseStore','BoostedComponentClientEvent','BoostedComponentConfigPayload','BoostedComponentDataState','BoostedComponentPaymentsServerActions','BoostedComponentStrings','BoostedPrimedDao','BoostedComponentPaymentInfoFields','WebApiApplication'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){if(c.__markCompiled)c.__markCompiled();var w,x;'use strict';w=babelHelpers.inherits(y,n);x=w&&w.prototype;function y(z){x.constructor.call(this);this.$BoostedComponentAdAccountStore1={};this.$BoostedComponentAdAccountStore2='';this.$BoostedComponentAdAccountStore3=z;this.$BoostedComponentAdAccountStore4=new r(z.getDispatcher(),z.getContextStore());this.setState(q.NOT_INITIALIZED);this.dispatchToken=z.getDispatcher().register((function(aa){var ba=aa.action;switch(ba.actionType){case o.DATA_LOADED:var ca=ba.data[p.AD_ACCOUNT_STORE_DATA];this.$BoostedComponentAdAccountStore1=ca.accounts;this.$BoostedComponentAdAccountStore5(u.PAYMENT_METHODS,'',i.NOT_LOADED);this.$BoostedComponentAdAccountStore5('loadingStatus','all',i.LOADED);this.$BoostedComponentAdAccountStore5(h.PAYMENT_INFO,u.PRIMARY_PAYMENT_METHOD,i.LOADED);var da=this.$BoostedComponentAdAccountStore3.getExperimentStore();if(da.getExperiment('new_payments_section')){this.$BoostedComponentAdAccountStore6();this.loadPaymentMethodsForAllAccount();}this.setSelectedAccountID(ca.selectedAccountID);this.setState(q.ACTIVE);this.inform('change');break;case o.UPDATE_CURRENCY:this.getValidator().unsetAllMessages();this.setSelectedAccountCurrency(ba.currency);this.inform('change');break;case o.UPDATE_ACCOUNT:this.setSelectedAccountID(ba.accountID);this.inform('change');break;case o.CLIENT_UPDATE_PRIMARY:this.getValidator().unsetAllMessages();this.setState(q.LOADING);var ea=ba.data.accountID;this.$BoostedComponentAdAccountStore7(h.PAYMENT_INFO,u.PRIMARY_PAYMENT_METHOD,ea,i.LOADING);this.$BoostedComponentAdAccountStore4.updatePrimaryPaymentMethod(ea,ba.data.paymentMethodID,ba.data.paymentMethodType);this.inform('change');break;case o.PRIMARY_PM_UPDATE_SUCCESS:this.setPrimaryPaymentMethodForAccount(ba.data.accountID,ba.data.paymentMethodID,ba.data.paymentMethodType);this.$BoostedComponentAdAccountStore7(h.PAYMENT_INFO,u.PRIMARY_PAYMENT_METHOD,ba.data.accountID,i.LOADED,j.changePaymentMethodDisclaimer);this.$BoostedComponentAdAccountStore7('loadingStatus','all',ba.data.accountID,i.LOADED);this.setState(q.ACTIVE);this.inform('change');break;case o.PRIMARY_PM_UPDATE_FAILURE:this.setState(q.ACTIVE);this.$BoostedComponentAdAccountStore7(h.PAYMENT_INFO,u.PRIMARY_PAYMENT_METHOD,ba.data.accountID,i.ERROR,j.changePrimaryMethodErrorMessage);this.inform('change');break;case o.PAYMENT_METHODS_LOADED:this.setPaymentMethodsForAccount(ba.data.accountID,ba.data.paymentMethods);this.inform('change');break;case o.PAYMENT_METHODS_LOAD_ERROR:this.$BoostedComponentAdAccountStore7(u.PAYMENT_METHODS,'',ba.data.accountID,i.ERROR,j.genericErrorMessage);this.inform('change');break;case o.OPEN_PAYMENTS_FLOW:this.setState(q.LOADING);this.$BoostedComponentAdAccountStore4.updateCurrencyAndOpenPaymentsFlow(this.canUpdateSelectedAccountCurrency(),this.getSelectedAccountCurrency(),this.getSelectedAccountID(),this.getPaymentsFlowPlacement(),this.getSelectedAccountBusinessID(),this.getConfig().getDurationStore().getCampaignLength(),this.getConfig().getContextStore().getUserID(),this.getConfig().getContextStore().getUserHash(),this.getConfig().getBudgetEstStore().getBudgetType(),this.getConfig().getBudgetEstStore().getSelectedBudgetValue());this.inform('change');break;case o.PAYMENTS_FLOW_CLOSED:this.setState(q.ACTIVE);this.inform('change');break;case o.PAYMENT_METHOD_ADDED:this.getValidator().unsetAllMessages();this.setState(q.LOADING);ea=''+ba.data.accountID;this.loadPaymentMethodsForAccount(ea);this.reloadPaymentsDataForAccount(ea);this.inform('change');break;case o.RELOAD_PAYMENT_DATA_SUCCESS:this.setState(q.ACTIVE);this.$BoostedComponentAdAccountStore8(ba.data.accountID,ba.data.accountInfo);this.inform('change');break;case o.RELOAD_PAYMENT_DATA_FAIL:this.setState(q.ACTIVE);this.$BoostedComponentAdAccountStore7('loadingStatus','all',ba.data.accountID,i.ERROR,s.PAYMENT_INFO_GENERAL_ERROR);this.inform('change');break;case o.CURRENCY_SERVER_UPDATE_SUCCESS:this.$BoostedComponentAdAccountStore7('loadingStatus',h.CURRENCY,ba.data.accountID,i.LOADED);this.inform('change');break;case o.CURRENCY_SERVER_UDPATE_FAIL:this.setState(q.ACTIVE);this.$BoostedComponentAdAccountStore7('loadingStatus',h.CURRENCY,ba.data.accountID,i.ERROR,ba.data.errorDescription);this.inform('change');break;case o.BOOST_WITHOUT_PAYMENT_METHOD:this.$BoostedComponentAdAccountStore7(h.PAYMENT_INFO,u.PRIMARY_PAYMENT_METHOD,this.getSelectedAccountID(),i.ERROR,j.noPaymentMethodFound);this.inform('change');break;}}).bind(this));}y.prototype.$BoostedComponentAdAccountStore8=function(z,aa){if(this.$BoostedComponentAdAccountStore1.hasOwnProperty(z))this.$BoostedComponentAdAccountStore1[z]=aa;this.$BoostedComponentAdAccountStore7('loadingStatus','all',z,i.LOADED);this.$BoostedComponentAdAccountStore7(h.PAYMENT_INFO,u.PRIMARY_PAYMENT_METHOD,z,i.LOADED,j.changePaymentMethodDisclaimer);};y.prototype.reloadPaymentsDataForAccount=function(z){this.$BoostedComponentAdAccountStore7('loadingStatus','all',z,i.LOADING);this.$BoostedComponentAdAccountStore4.reloadPaymentDataForAccount(z);};y.prototype.$BoostedComponentAdAccountStore7=function(z,aa,ba,ca,da){if(this.$BoostedComponentAdAccountStore1.hasOwnProperty(ba))if(!this.$BoostedComponentAdAccountStore1[ba].hasOwnProperty(z)){if(aa!==''){this.$BoostedComponentAdAccountStore1[ba][z]={};this.$BoostedComponentAdAccountStore1[ba][z][aa]={loadingStatus:ca,message:da};}else this.$BoostedComponentAdAccountStore1[ba][z]={loadingStatus:ca,message:da};}else if(aa!==''){if(!this.$BoostedComponentAdAccountStore1[ba][z].hasOwnProperty(aa)||!this.$BoostedComponentAdAccountStore1[ba][z][aa])this.$BoostedComponentAdAccountStore1[ba][z][aa]={};this.$BoostedComponentAdAccountStore1[ba][z][aa].loadingStatus=ca;this.$BoostedComponentAdAccountStore1[ba][z][aa].message=da;}else{this.$BoostedComponentAdAccountStore1[ba][z].loadingStatus=ca;this.$BoostedComponentAdAccountStore1[ba][z].message=da;}};y.prototype.$BoostedComponentAdAccountStore5=function(z,aa,ba,ca){for(var da in this.$BoostedComponentAdAccountStore1)this.$BoostedComponentAdAccountStore7(z,aa,da,ba,ca);};y.prototype.$BoostedComponentAdAccountStore6=function(){v.init(this.$BoostedComponentAdAccountStore3.getContextStore().getAccessToken(),this.$BoostedComponentAdAccountStore3.getContextStore().getClientID());};y.prototype.loadPaymentMethodsForAllAccount=function(){this.$BoostedComponentAdAccountStore5(u.PAYMENT_METHODS,'',i.LOADING);var z=Object.keys(this.getAllAccounts());this.$BoostedComponentAdAccountStore4.fetchPaymentMethodsForAllAccounts(z);};y.prototype.loadPaymentMethodsForAccount=function(z){this.$BoostedComponentAdAccountStore7(u.PAYMENT_METHODS,'',z,i.LOADING);this.$BoostedComponentAdAccountStore4.fetchPaymentMethodsForAccount(z);};y.prototype.getAllAccounts=function(){return this.$BoostedComponentAdAccountStore1;};y.prototype.getSelectedAccount=function(){return this.$BoostedComponentAdAccountStore1[this.$BoostedComponentAdAccountStore2];};y.prototype.getSelectedAccountID=function(){return this.$BoostedComponentAdAccountStore2;};y.prototype.setSelectedAccountID=function(z){this.$BoostedComponentAdAccountStore2=z;t.setAccountID(z);};y.prototype.getSelectedAccountCurrency=function(){return this.getSelectedAccount()[h.CURRENCY];};y.prototype.getSelectedAccountHasBillingWritePermission=function(){return this.getSelectedAccount()[h.HAS_BILLING_WRITE_PERMISSION];};y.prototype.getSelectedAccountHasCreatedAdsBefore=function(){return this.getSelectedAccount()[h.HAS_CREATED_ADS_BEFORE];};y.prototype.getSelectedAccountPaymentInfo=function(){return this.getSelectedAccount()[h.PAYMENT_INFO];};y.prototype.getSelectedAccountBusinessInfo=function(){var z=this.getSelectedAccountPaymentInfo()[u.BUSINESS_INFO];return z===null||z===undefined?{}:z;};y.prototype.getSelectedAccountBusinessID=function(){var z=this.getSelectedAccountBusinessInfo();return z?z.id:'';};y.prototype.getSelectedAccountExtendedCreditInfo=function(){return this.getSelectedAccountPaymentInfo()[u.EXTENDED_CREDIT_INFO];};y.prototype.getSelectedAccountPrimaryPaymentMethod=function(){var z=this.getSelectedAccountPaymentInfo();return z[u.PRIMARY_PAYMENT_METHOD]?z[u.PRIMARY_PAYMENT_METHOD]:{};};y.prototype.getSelectedAccountPrimaryPMDisplayString=function(){return k.getPaymentName(this.getSelectedAccountPaymentInfo(),false);};y.prototype.getSelectedAccountPrepayBalance=function(){return this.getSelectedAccountPaymentInfo()[u.PREPAY_BALANCE];};y.prototype.getSelectedAccountAltpayPendingPayments=function(){return this.getSelectedAccountPaymentInfo()[u.PENDING_PAYMENTS];};y.prototype.getSelectedAccountHasFundingSource=function(){return !!this.getSelectedAccountPaymentInfo()[u.HAS_FUNDING_SOURCE];};y.prototype.getSelectedAccountCurrency=function(){return this.getSelectedAccount()[h.CURRENCY];};y.prototype.canUpdateSelectedAccountCurrency=function(){return !!this.getSelectedAccount()[h.CAN_UPDATE_CURRENCY];};y.prototype.setSelectedAccountCurrency=function(z){this.getSelectedAccount()[h.CURRENCY]=z;};y.prototype.setPaymentMethodsForAccount=function(z,aa){this.$BoostedComponentAdAccountStore1[z][u.PAYMENT_METHODS]={loadingStatus:i.LOADED,paymentMethods:aa};};y.prototype.setPrimaryPaymentMethodForAccount=function(z,aa,ba){this.$BoostedComponentAdAccountStore1[z][h.PAYMENT_INFO][u.PRIMARY_PAYMENT_METHOD].id=aa;this.$BoostedComponentAdAccountStore1[z][h.PAYMENT_INFO][u.PRIMARY_PAYMENT_METHOD].type=ba;};y.prototype.getSelectedAccountPaymentMethods=function(){var z=this.getSelectedAccount()[u.PAYMENT_METHODS];return z===null||z===undefined?{loadingStatus:i.LOADED}:z;};y.prototype.getTOSAccepted=function(){return this.getSelectedAccount()[h.TOS_ACCEPTED];};y.prototype.getOffsitePixelsTOSAccepted=function(){return this.getSelectedAccount()[h.OFFSITE_PIXELS_TOS_ACCEPTED];};y.prototype.getPaymentsFlowPlacement=function(){return l.getPaymentsFlowPlacement(this.$BoostedComponentAdAccountStore3.getContextStore().getAppID());};y.prototype.getAccountInfoLoadingStatus=function(){return this.getSelectedAccount().loadingStatus.all;};y.prototype.getCurrencyLoadingStatus=function(){var z=this.getSelectedAccount().loadingStatus[h.CURRENCY];if(!z)return {};return z;};y.prototype.getPaymentMethodsLoadingStatus=function(){var z=this.getSelectedAccountPaymentMethods();return {loadingStatus:z.loadingStatus,message:z.message};};y.prototype.getPrimaryPMLoadingStatus=function(){var z=this.getSelectedAccountPrimaryPaymentMethod();return {loadingStatus:z.loadingStatus,message:z.message};};y.prototype.getConfig=function(){return this.$BoostedComponentAdAccountStore3;};y.prototype.getValidator=function(){return new m(this);};f.exports=y;},null);
__d('BoostedComponentAdStatusStore',['BoostedActionStatus','BoostedComponentAdStatusStoreFields','BoostedComponentAppID','BoostedComponentBaseStore','BoostedComponentClientEvent','BoostedComponentConfigPayload','BoostedComponentDataState'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o,p;'use strict';o=babelHelpers.inherits(q,k);p=o&&o.prototype;function q(r){p.constructor.call(this);this.setState(n.NOT_INITIALIZED);this.$BoostedComponentAdStatusStore1=r.getContextStore();this.$BoostedComponentAdStatusStore2={};this.dispatchToken=r.getDispatcher().register((function(s){var t=s.action;switch(t.actionType){case l.INIT_DATA_LOADED:case l.DATA_LOADED:this.$BoostedComponentAdStatusStore3(t.data);this.inform('change');break;case l.UPDATE_AD_STATUS:this.$BoostedComponentAdStatusStore4(t.adStatus);this.validate();this.inform('change');break;case l.CREATE_SUCCESS:switch(this.$BoostedComponentAdStatusStore1.getAppID()){case j.BOOSTED_POST:case j.BOOSTED_EVENT:case j.BOOSTED_PRODUCT:this.$BoostedComponentAdStatusStore3(t.data);break;case j.BOOSTED_WEBSITE:this.$BoostedComponentAdStatusStore5(t.data[i.CAMPAIGN_ID].toString());break;}this.setInitialValue(h.ACTIVE);this.inform('change');break;case l.RESUME_SUCCESS:this.setInitialValue(h.ACTIVE);this.$BoostedComponentAdStatusStore4(h.ACTIVE);this.$BoostedComponentAdStatusStore6(h.ACTIVE);this.inform('change');break;case l.PAUSE_SUCCESS:this.setInitialValue(h.PAUSED);this.$BoostedComponentAdStatusStore4(h.PAUSED);this.$BoostedComponentAdStatusStore6(h.PAUSED);this.inform('change');break;case l.DELETE_SUCCESS:this.setInitialValue(h.INACTIVE);this.inform('change');break;default:return;}}).bind(this));}q.prototype.$BoostedComponentAdStatusStore3=function(r){this.$BoostedComponentAdStatusStore2=r[m.AD_STATUS_STORE_DATA];this.setState(n.ACTIVE);this.setInitialValue(this.$BoostedComponentAdStatusStore7(this.getAdStatus()));this.$BoostedComponentAdStatusStore4(this.getInitialValue());this.validate();};q.prototype.getAdStatus=function(){return this.$BoostedComponentAdStatusStore2[i.AD_STATUS];};q.prototype.getCampaignID=function(){return this.$BoostedComponentAdStatusStore8;};q.prototype.getSelectedAdStatus=function(){return this.$BoostedComponentAdStatusStore9;};q.prototype.getIsViewerCreator=function(){return (this.$BoostedComponentAdStatusStore2[i.IS_VIEWER_CREATOR]);};q.prototype.getIsEligible=function(){return this.$BoostedComponentAdStatusStore2[i.IS_ELIGIBLE];};q.prototype.getShouldEdit=function(){var r=this.getInitialValue(),s=this.getIsViewerCreator(),t=[h.NEVER_BOOSTED,h.INACTIVE,h.FINISHED,h.ERROR];return t.indexOf(r)<0&&s;};q.prototype.$BoostedComponentAdStatusStore7=function(r){switch(r){case h.ACTIVE:case h.PENDING:case h.REJECTED:return h.ACTIVE;case h.PAUSED:return h.PAUSED;default:return h.INACTIVE;}};q.prototype.hasChanged=function(){return (this.getInitialValue()!==this.getSelectedAdStatus());};q.prototype.$BoostedComponentAdStatusStore6=function(r){this.$BoostedComponentAdStatusStore2[i.AD_STATUS]=r;};q.prototype.$BoostedComponentAdStatusStore4=function(r){this.$BoostedComponentAdStatusStore9=r;};q.prototype.$BoostedComponentAdStatusStore5=function(r){this.$BoostedComponentAdStatusStore8=r;};f.exports=q;},null);
__d('BoostedComponentAYMTTipsStore',['AYMTClientSideChannelNames','AYMTClientSideParam','AYMTTipActionTypes','AYMTTipsLoader','BoostedComponentBaseStore','BoostedComponentClientEvent','adsGKCheck'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o,p;'use strict';o=babelHelpers.inherits(q,l);p=o&&o.prototype;q.prototype.$BoostedComponentAYMTTipsStore1=function(){return h.AYMT_BOOSTED_COMPONENT_PAYMENTS_SECTION_CHANNEL;};q.prototype.$BoostedComponentAYMTTipsStore2=function(){return h.AYMT_BOOSTED_COMPONENT_TARGETING_CHANNEL;};q.prototype.$BoostedComponentAYMTTipsStore3=function(){return h.AYMT_BOOSTED_COMPONENT_BUDGET_AND_DURATION_CHANNEL;};function q(r){p.constructor.call(this);this.$BoostedComponentAYMTTipsStore4={};this.$BoostedComponentAYMTTipsStore5=r.getDispatcher();this.$BoostedComponentAYMTTipsStore6={};this.dispatchToken=this.$BoostedComponentAYMTTipsStore5.register((function(s){if(!n('aymt_boosted_component_targeting_tips'))return;var t=s.action,u=r.getDispatcher(),v=r.getAdAccountStore(),w=r.getContextStore(),x=r.getBudgetEstStore(),y=r.getTargetingStore();switch(t.actionType){case m.DATA_LOADED:u.waitFor([v.getDispatchToken(),w.getDispatchToken(),y.getDispatchToken(),x.getDispatchToken()]);this.$BoostedComponentAYMTTipsStore6[i.AD_ACCOUNT_ID]=v.getSelectedAccountID();this.$BoostedComponentAYMTTipsStore6[i.PAGE_ID]=w.getPageID();this.$BoostedComponentAYMTTipsStore6[i.APP_ID]=w.getAppID();this.$BoostedComponentAYMTTipsStore6[i.TARGETING_GENDER]=y.getGender();this.$BoostedComponentAYMTTipsStore6[i.ESTIMATED_AUDIENCE_SIZE]=x.getAudienceSize();this.$BoostedComponentAYMTTipsStore7();this.$BoostedComponentAYMTTipsStore8();this.$BoostedComponentAYMTTipsStore9();break;case m.UPDATE_GENDER:u.waitFor([v.getDispatchToken(),y.getDispatchToken()]);this.$BoostedComponentAYMTTipsStore6[i.AD_ACCOUNT_ID]=v.getSelectedAccountID();this.$BoostedComponentAYMTTipsStore6[i.TARGETING_GENDER]=y.getGender();this.$BoostedComponentAYMTTipsStore8();break;case m.DIALOG_CHANGE_SUCCESS:u.waitFor([v.getDispatchToken(),x.getDispatchToken()]);this.$BoostedComponentAYMTTipsStore6[i.AD_ACCOUNT_ID]=v.getSelectedAccountID();this.$BoostedComponentAYMTTipsStore6[i.ESTIMATED_AUDIENCE_SIZE]=x.getAudienceSize();this.$BoostedComponentAYMTTipsStore7();this.$BoostedComponentAYMTTipsStore8();break;case j.TIPS_LOADED:this.$BoostedComponentAYMTTipsStore4[t.data.channelName]=this.$BoostedComponentAYMTTipsStore10(t.data.tips);this.inform('change');break;}}).bind(this));}q.prototype.$BoostedComponentAYMTTipsStore7=function(){if(!n('aymt_boosted_component_payments_section_tips'))return;k.loadTips(this.$BoostedComponentAYMTTipsStore6,this.$BoostedComponentAYMTTipsStore1(),this.$BoostedComponentAYMTTipsStore5);};q.prototype.$BoostedComponentAYMTTipsStore8=function(){if(!n('aymt_boosted_component_targeting_tips'))return;k.loadTips(this.$BoostedComponentAYMTTipsStore6,this.$BoostedComponentAYMTTipsStore2(),this.$BoostedComponentAYMTTipsStore5);};q.prototype.$BoostedComponentAYMTTipsStore9=function(){if(!n('aymt_boosted_component_budget_and_duration_tips'))return;k.loadTips(this.$BoostedComponentAYMTTipsStore6,this.$BoostedComponentAYMTTipsStore3(),this.$BoostedComponentAYMTTipsStore5);};q.prototype.$BoostedComponentAYMTTipsStore10=function(r){if(r.length>0)return r[0];return null;};q.prototype.getBestPaymentsSectionTip=function(){return this.$BoostedComponentAYMTTipsStore4[this.$BoostedComponentAYMTTipsStore1()];};q.prototype.getBestTargetigTip=function(){return this.$BoostedComponentAYMTTipsStore4[this.$BoostedComponentAYMTTipsStore2()];};q.prototype.getBestBudgetAndDurationTip=function(){return this.$BoostedComponentAYMTTipsStore4[this.$BoostedComponentAYMTTipsStore3()];};f.exports=q;},null);
__d('AdsEstimatesValidator',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={areEstimatesValid:function(i,j){return !!(i&&i<j);},areEstimatesAndDAUValid:function(i,j,k){return !!(this.areEstimatesValid(i,j)&&j<=k);}};f.exports=h;},null);
__d('BoostedComponentBudgetAndDurationUtils',['AdsEstimatesValidator','BoostedActionType','BoostedComponentAppID','BoostedComponentBudgetType','BoostedComponentStrings','DateConsts','FBDate','UTCUtils','fbt','ads-lib-formatters','AdsCurrencyFormatter'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=c('AdsCurrencyFormatter').formatCurrency,s=q.createIntlNumberFormatter(0),t={addEstimationLabels_DEPRECATED:function(u,v){var w=null;switch(u){case i.PAGELIKE:w=j.BOOSTED_PAGELIKE;break;case i.WEBSITE:w=j.BOOSTED_WEBSITE;break;}return this.addEstimationLabels(w,k.DAILY_BUDGET,v);},addEstimationLabels:function(u,v,w){for(var x in w){var y=w[x];if(!h.areEstimatesValid(y.estimates_lower,y.estimates_upper)){y.estimation_label=null;}else if(y.estimates_lower&&y.estimates_lower>=0&&y.estimates_upper>y.estimates_lower){y.estimation_label=this.getEstimationLabel(u,y.estimates_lower,y.estimates_upper,v);}else if(v===k.DAILY_BUDGET)y.estimation_label=p._("per day");}return w;},getEstimationLabel:function(u,v,w,x){switch(u){case j.BOOSTED_POST:case j.BOOSTED_EVENT:case j.BOOSTED_PRODUCT:return p._("Est. Reach {reach_estimate_lower_limit} - {reach_estimate_upper_limit}",[p.param('reach_estimate_lower_limit',s(v)),p.param('reach_estimate_upper_limit',s(w))]);case j.BOOSTED_PAGELIKE:if(x===k.DAILY_BUDGET){return p._({"*":"Est. {estimates_lower} - {estimates_upper} likes per day"},[p.param('estimates_lower',s(v)),p.param('estimates_upper',s(w),[0,w])]);}else return p._({"*":"Est. {estimates_lower} - {estimates_upper} likes"},[p.param('estimates_lower',s(v)),p.param('estimates_upper',s(w),[0,w])]);case j.BOOSTED_WEBSITE:case j.BOOSTED_CCTA:if(x===k.DAILY_BUDGET){return p._({"*":"Est. {estimates_lower} - {estimates_upper} clicks per day"},[p.param('estimates_lower',s(v)),p.param('estimates_upper',s(w),[0,w])]);}else return p._({"*":"Est. {estimates_lower} - {estimates_upper} clicks"},[p.param('estimates_lower',s(v)),p.param('estimates_upper',s(w),[0,w])]);case j.BOOSTED_LOCAL_AWARENESS:if(x===k.DAILY_BUDGET){return p._({"*":"Est. {estimates_lower} - {estimates_upper} people reached per day"},[p.param('estimates_lower',s(v)),p.param('estimates_upper',s(w),[0,w])]);}else return p._({"*":"Est. {estimates_lower} - {estimates_upper} people reached"},[p.param('estimates_lower',s(v)),p.param('estimates_upper',s(w),[0,w])]);default:return '';}},getEndDateDescription:function(u,v,w,x,y){var z;if(u<1){z=l.INVALID_DURATION_ERROR;}else{var aa=new n(o.dateToUTC(new Date()),0),ba=(v-aa.getUnixTimestampSeconds())*1000,ca=r(w,ba/m.MS_PER_DAY*x);if(!y){var da=r(w,x),ea=r(w,(ba/m.MS_PER_DAY-u)*x);if(u==1){z=l.getSingleDaySpendNoticeInCreate(ea,ca);}else z=l.getMultiDaySpendNoticeInCreate(ea,da,ca);}else if(u==1){z=l.getSingleDaySpendNoticeInEdit(ca);}else if(u===7){z=l.getSingleWeekSpendNoticeInEdit(ca);}else if(u%7===0){z=l.getMultiWeekSpendNoticeInEdit(u,ca);}else z=l.getMultiDaySpendNoticeInEdit(u,ca);}return z;}};f.exports=t;},null);
__d('BoostedComponentBudgetValidator',['BoostedComponentBudgetType','BoostedComponentStrings','BoostedComponentValidator'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';k=babelHelpers.inherits(m,j);l=k&&k.prototype;function m(n){l.constructor.call(this);this.$BoostedComponentBudgetValidator1=n;}m.prototype.$BoostedComponentBudgetValidator2=function(){return this.$BoostedComponentBudgetValidator1.getMaxBudgetPerDay();};m.prototype.$BoostedComponentBudgetValidator3=function(){if(this.$BoostedComponentBudgetValidator1.getBudgetType()===h.LIFETIME_BUDGET){return (this.$BoostedComponentBudgetValidator1.getCampaignLength()*this.$BoostedComponentBudgetValidator1.getMinBudgetPerDay());}else return this.$BoostedComponentBudgetValidator1.getMinBudgetPerDay();};m.prototype.isValid=function(){if(this.getErrors()&&this.getErrors().length>0)return false;return true;};m.prototype.getErrors=function(){var n=this.isValidBudget();if(n)return [n];};m.prototype.isValidBudget=function(n){if(!n)n=this.$BoostedComponentBudgetValidator1.getSelectedBudgetValue();var o=this.$BoostedComponentBudgetValidator2(),p=this.$BoostedComponentBudgetValidator3();if(n<p){if(this.$BoostedComponentBudgetValidator1.isSingleDayCampaign()||this.$BoostedComponentBudgetValidator1.getBudgetType()===h.DAILY_BUDGET){return (i.getSingleDayMinBudgetError(this.$BoostedComponentBudgetValidator1.getCurrency(),this.$BoostedComponentBudgetValidator1.getMinBudgetPerDay()));}else return (i.getMultiDaysMinBudgetError(this.$BoostedComponentBudgetValidator1.getCurrency(),this.$BoostedComponentBudgetValidator1.getMinBudgetPerDay(),p));}else if(n>o)return (i.getMaxBudgetError(this.$BoostedComponentBudgetValidator1.getCurrency(),o));return null;};f.exports=m;},null);
__d('BoostedComponentBudgetEstimationStore',['AdsCurrencyFormatter','BoostedComponentBaseStore','BoostedComponentBudgetAndDurationUtils','BoostedComponentBudgetEstimationStoreFields','BoostedComponentBudgetType','BoostedComponentBudgetValidator','BoostedComponentClientEvent','BoostedComponentConfigPayload','BoostedComponentDataState'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){if(c.__markCompiled)c.__markCompiled();var q,r;'use strict';q=babelHelpers.inherits(s,i);r=q&&q.prototype;function s(t){r.constructor.call(this);this.$BoostedComponentBudgetEstimationStore1=t.getDispatcher();this.$BoostedComponentBudgetEstimationStore2=t.getAdAccountStore();this.$BoostedComponentBudgetEstimationStore3=t.getContextStore();this.$BoostedComponentBudgetEstimationStore4=t.getConstraintStore();this.$BoostedComponentBudgetEstimationStore5=t.getDurationStore();this.setState(p.NOT_INITIALIZED);this.setInitialValue(null);this.dispatchToken=this.$BoostedComponentBudgetEstimationStore1.register((function(u){var v=u.action;switch(v.actionType){case n.DATA_LOADED:this.initializeStore(v.data[o.BUDGET_ESTIMATION_STORE_DATA]);this.$BoostedComponentBudgetEstimationStore6(v.actionType,v.data[o.BUDGET_ESTIMATION_STORE_DATA]);this.setInitialValue(this.getSelectedBudgetValue());this.setState(p.ACTIVE);this.validate();break;case n.UPDATE_BUDGET:case n.INPUT_CUSTOM_BUDGET:var w=v.data;this.$BoostedComponentBudgetEstimationStore7(w);this.validate();break;case n.DIALOG_CHANGE_SUCCESS:this.$BoostedComponentBudgetEstimationStore1.waitFor([this.$BoostedComponentBudgetEstimationStore4.getDispatchToken()]);this.$BoostedComponentBudgetEstimationStore6(v.data.action,v.data[o.BUDGET_ESTIMATION_STORE_DATA]);this.validate();break;case n.DIALOG_CHANGE_FAIL:if(v.data.action===n.INPUT_CUSTOM_BUDGET){var x={};x[this.getSelectedBudgetValue()]={estimates_lower:0,estimates_upper:0};var y={};y[k.SELECTED_BUDGET_VALUE]=this.getSelectedBudgetValue();y[k.BUDGET_EST_OPTIONS]=x;this.$BoostedComponentBudgetEstimationStore6(v.data.action,y);this.validate();}break;case n.UPDATE_DURATION:case n.UPDATE_CAMPAIGN_LENGTH_IN_DAYS:case n.UPDATE_RUN_CONTINUOUSLY:this.$BoostedComponentBudgetEstimationStore1.waitFor([this.$BoostedComponentBudgetEstimationStore5.getDispatchToken()]);this.validate();break;default:return;}this.inform('change');}).bind(this));}s.prototype.getSelectedBudgetValue=function(){return this.data[k.SELECTED_BUDGET_VALUE];};s.prototype.getPreviouslySelectedBudgetValue=function(){return (this.getPreviousValue()||{})[k.SELECTED_BUDGET_VALUE];};s.prototype.getSelectedBudgetInfo=function(){return this.getBudgetEstOptions()[this.getSelectedBudgetValue()];};s.prototype.hasSelectedBudgetInfo=function(){return !!this.getBudgetEstOptions()[this.getSelectedBudgetValue()];};s.prototype.getEstimationLabel=function(){if(!this.hasSelectedBudgetInfo())return null;return this.getSelectedBudgetInfo().estimation_label;};s.prototype.getSelectedBudgetLowerEstimates=function(){if(!this.hasSelectedBudgetInfo())return null;return this.getSelectedBudgetInfo().estimates_lower;};s.prototype.getSelectedBudgetUpperEstimates=function(){if(!this.hasSelectedBudgetInfo())return null;return this.getSelectedBudgetInfo().estimates_upper;};s.prototype.getSelectedBudgetBisonEstimate=function(){if(!this.hasSelectedBudgetInfo())return null;return this.getSelectedBudgetInfo().bison_estimate;};s.prototype.getBudgetEstOptions=function(){return this.data[k.BUDGET_EST_OPTIONS];};s.prototype.getAudienceSize=function(){if(!this.data[k.AUDIENCE_SIZE])return 0;return this.data[k.AUDIENCE_SIZE];};s.prototype.getHighBudgetThreshold=function(){return this.data[k.HIGH_BUDGET_THRESHOLD];};s.prototype.getMinBudgetPerDay=function(){if(this.getBudgetType()===l.LIFETIME_BUDGET)return this.$BoostedComponentBudgetEstimationStore4.getMinLifetimeBudgetPerDay();return this.$BoostedComponentBudgetEstimationStore4.getMinDailyBudget();};s.prototype.getMaxBudgetPerDay=function(){if(this.getBudgetType()===l.LIFETIME_BUDGET)return this.$BoostedComponentBudgetEstimationStore4.getMaxLifetimeBudgetPerDay();return this.$BoostedComponentBudgetEstimationStore4.getMaxDailyBudget();};s.prototype.getBudgetType=function(){return this.data[k.BUDGET_TYPE];};s.prototype.hasChanged=function(){return (this.getInitialValue()!==this.getSelectedBudgetValue());};s.prototype.$BoostedComponentBudgetEstimationStore6=function(t,u){for(var v in u)switch(v){case k.AUDIENCE_SIZE:this.$BoostedComponentBudgetEstimationStore8(u[v]);break;case k.SELECTED_BUDGET_VALUE:this.$BoostedComponentBudgetEstimationStore7(u[v]);break;case k.BUDGET_EST_OPTIONS:var w=t==n.INPUT_CUSTOM_BUDGET?this.$BoostedComponentBudgetEstimationStore9(u):u[v];this.$BoostedComponentBudgetEstimationStore10(w);break;}};s.prototype.$BoostedComponentBudgetEstimationStore7=function(t){this.setStoreDataField(k.SELECTED_BUDGET_VALUE,t);};s.prototype.$BoostedComponentBudgetEstimationStore10=function(t){var u=j.addEstimationLabels(this.$BoostedComponentBudgetEstimationStore3.getAppID(),this.getBudgetType(),t);this.setStoreDataField(k.BUDGET_EST_OPTIONS,u);};s.prototype.$BoostedComponentBudgetEstimationStore9=function(t){var u=t[k.SELECTED_BUDGET_VALUE],v=this.getBudgetEstOptions(),w=Object.keys(v);w.push(u);w.sort(function(aa,ba){return parseInt(aa,10)-parseInt(ba,10);});var x={},y=null;for(var z=0;z<w.length;z++){y=w[z];if(y===u){x[y]=t[k.BUDGET_EST_OPTIONS][y];}else x[y]=v[y];}return x;};s.prototype.$BoostedComponentBudgetEstimationStore8=function(t){this.setStoreDataField(k.AUDIENCE_SIZE,t);};s.prototype.getCurrency=function(){return this.$BoostedComponentBudgetEstimationStore2.getSelectedAccountCurrency();};s.prototype.getCampaignLength=function(){return this.$BoostedComponentBudgetEstimationStore5.getCampaignLengthInDays();};s.prototype.isSingleDayCampaign=function(){return this.$BoostedComponentBudgetEstimationStore5.getCampaignLengthInDays()===1;};s.prototype.getRawDailyBudget=function(){var t=this.getSelectedBudgetValue();if(this.getBudgetType()===l.LIFETIME_BUDGET)t/=this.$BoostedComponentBudgetEstimationStore5.getCampaignLengthInDays();return t;};s.prototype.getDailyBudget=function(){var t=this.getRawDailyBudget();return h.formatCurrencyFullFormat(this.$BoostedComponentBudgetEstimationStore2.getSelectedAccountCurrency(),t,false,true);};s.prototype.getRawTotalBudget=function(){var t=this.getSelectedBudgetValue();if(this.getBudgetType()===l.DAILY_BUDGET)t*=this.$BoostedComponentBudgetEstimationStore5.getCampaignLengthInDays();return t;};s.prototype.getTotalBudget=function(){var t=this.getRawTotalBudget();return h.formatCurrencyFullFormat(this.$BoostedComponentBudgetEstimationStore2.getSelectedAccountCurrency(),t,false,true);};s.prototype.getValidator=function(){return new m(this);};f.exports=s;},null);
__d('BoostedComponentConstraintStore',['BoostedComponentBaseStore','BoostedComponentConfigPayload','BoostedComponentConstraintStoreFields','BoostedComponentClientEvent','BoostedComponentDataState'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m,n;'use strict';m=babelHelpers.inherits(o,h);n=m&&m.prototype;function o(p){n.constructor.call(this);this.setState(l.NOT_INITIALIZED);this.$BoostedComponentConstraintStore1={};this.dispatchToken=p.getDispatcher().register((function(q){var r=q.action;switch(r.actionType){case k.DATA_LOADED:this.$BoostedComponentConstraintStore1=r.data[i.CONSTRAINT_STORE_DATA];this.setState(l.ACTIVE);break;case k.DIALOG_CHANGE_SUCCESS:case k.DIALOG_CHANGE_FAIL:var s=r.data[i.CONSTRAINT_STORE_DATA];if(s)for(var t in s)this.$BoostedComponentConstraintStore1[t]=s[t];break;default:return;}this.inform('change');}).bind(this));}o.prototype.getMinCallNowAge=function(){return this.$BoostedComponentConstraintStore1[j.MIN_CALL_NOW_AGE];};o.prototype.getMaxCountryNum=function(){return this.$BoostedComponentConstraintStore1[j.MAX_COUNTRY_NUM];};o.prototype.getMaxRegionNum=function(){return this.$BoostedComponentConstraintStore1[j.MAX_REGION_NUM];};o.prototype.getMaxCityNum=function(){return this.$BoostedComponentConstraintStore1[j.MAX_CITY_NUM];};o.prototype.getMinAge=function(){return this.$BoostedComponentConstraintStore1[j.MIN_AGE];};o.prototype.getMaxAge=function(){return this.$BoostedComponentConstraintStore1[j.MAX_AGE];};o.prototype.getBlacklistCountries=function(){return (this.$BoostedComponentConstraintStore1[j.BLACKLIST_COUNTRIES]);};o.prototype.getWhitelistCountries=function(){return (this.$BoostedComponentConstraintStore1[j.WHITELIST_COUNTRIES]);};o.prototype.getMinLifetimeBudgetPerDay=function(){return this.$BoostedComponentConstraintStore1[j.MIN_LIFETIME_BUDGET_PER_DAY];};o.prototype.getMaxLifetimeBudgetPerDay=function(){return this.$BoostedComponentConstraintStore1[j.MAX_LIFETIME_BUDGET_PER_DAY];};o.prototype.getMinDailyBudget=function(){return this.$BoostedComponentConstraintStore1[j.MIN_DAILY_BUDGET];};o.prototype.getMaxDailyBudget=function(){return this.$BoostedComponentConstraintStore1[j.MAX_DAILY_BUDGET];};o.prototype.setMinLifetimeBudgetPerDay=function(p){this.$BoostedComponentConstraintStore1[j.MIN_LIFETIME_BUDGET_PER_DAY]=p;};o.prototype.setMaxLifetimeBudgetPerDay=function(p){this.$BoostedComponentConstraintStore1[j.MAX_LIFETIME_BUDGET_PER_DAY]=p;};f.exports=o;},null);
__d('BoostedComponentContextStore',['BoostedComponentBaseStore','BoostedComponentClientEvent','BoostedComponentConfigPayload','BoostedComponentContextStoreFields','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m,n;'use strict';m=babelHelpers.inherits(o,h);n=m&&m.prototype;o.prototype.getStorePayloadKey=function(){return j.CONTEXT_STORE_DATA;};o.prototype.registerStoreEvents=function(){this.registerEvents([i.DATA_LOADED,i.INIT_DATA_LOADED],this.initializeStore.bind(this));this.registerEvents([i.ON_MOUSE_ENTER,i.ON_AUTO_OPEN,i.ON_UPSELL_BUTTON_CLICK],this.$BoostedComponentContextStore1.bind(this));};o.prototype.$BoostedComponentContextStore1=function(p){this.data[k.PLACEMENT]=p[k.PLACEMENT];return true;};o.prototype.getAppID=function(){return this.data[k.SOURCE_APP_ID];};o.prototype.getFlowID=function(){return this.data[k.FLOW_ID];};o.prototype.getUserID=function(){return this.data[k.USER_ID];};o.prototype.getUserHash=function(){return this.data[k.USER_HASH];};o.prototype.getPageID=function(){return this.data[k.PAGE_ID];};o.prototype.getAccessToken=function(){return this.data[k.ACCESS_TOKEN];};o.prototype.getPageAccessToken=function(){return this.data[k.PAGE_ACCESS_TOKEN];};o.prototype.getClientID=function(){return this.data[k.CLIENT_ID];};o.prototype.getPostID=function(){if(this.data[k.POST_INFO])return this.data[k.POST_INFO].id;return null;};o.prototype.getPostType=function(){if(this.data[k.POST_INFO])return this.data[k.POST_INFO].type;return null;};o.prototype.getPlacement=function(){var p=this.data[k.PLACEMENT];!(p!==null)?l(0):undefined;return p;};o.prototype.getUpsellType=function(){return this.data[k.UPSELL_TYPE];};function o(){m.apply(this,arguments);}f.exports=o;},null);
__d('BoostedComponentConversionPixelStore',['BoostedComponentBaseStore','BoostedComponentClientEvent','BoostedComponentConfigPayload','BoostedComponentConversionPixelStoreFields'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l,m;'use strict';l=babelHelpers.inherits(n,h);m=l&&l.prototype;n.prototype.getStorePayloadKey=function(){return j.CONVERSION_PIXEL_STORE_DATA;};n.prototype.registerStoreEvents=function(){this.registerEvents([i.DATA_LOADED],this.initializeStore.bind(this));this.registerEvents([i.UPDATE_PIXEL],this.$BoostedComponentConversionPixelStore1.bind(this));this.registerEvents([i.UPDATE_ACCOUNT],this.$BoostedComponentConversionPixelStore2.bind(this));};n.prototype.getWebsiteDomains=function(){return this.data[k.WEBSITE_DOMAINS];};n.prototype.$BoostedComponentConversionPixelStore2=function(o){var p=this.getConfig(),q=p.getDispatcher(),r=p.getAdAccountStore();q.waitFor([r.getDispatchToken()]);this.$BoostedComponentConversionPixelStore3(this.$BoostedComponentConversionPixelStore4());this.validate();return true;};n.prototype.$BoostedComponentConversionPixelStore1=function(o){this.$BoostedComponentConversionPixelStore3(o.selectedConversionPixelID);this.validate();return true;};n.prototype.getSelectedConversionPixelID=function(){return this.data[k.SELECTED_PIXEL_ID];};n.prototype.$BoostedComponentConversionPixelStore3=function(o){this.data[k.SELECTED_PIXEL_ID]=o;};n.prototype.getSelectedAccountConversionPixels=function(){var o=this.data[k.CONVERSION_PIXELS],p=this.getConfig().getAdAccountStore();return o?o[p.getSelectedAccountID()]:null;};n.prototype.$BoostedComponentConversionPixelStore4=function(){var o=this.data[k.DEFAULT_PIXEL_IDS],p=this.getConfig().getAdAccountStore();return o?o[p.getSelectedAccountID()]:'';};n.prototype.hasChanged=function(){return (this.getInitialValue()!==this.getSelectedConversionPixelID());};function n(){l.apply(this,arguments);}f.exports=n;},null);
__d('AdPreviewEditableEvents',['Arbiter'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i={DESCRIPTION_CHANGE:'ad_preview_description_change',IMAGE_CHANGE:'ad_preview_image_change',subscribe:function(j){Object.keys(j).forEach(function(event){h.subscribe(event,j[event]);});}};f.exports=i;},null);
__d('AdsCFActionTypes',['AdsDispatchActionTypeUtils'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i='ADS_CF_',j={IMAGE_CROP_CHANGE:null,IMAGE_CROPS_CHANGE:null,IMAGE_CROP_ITEM_CLICK:null,IMAGE_CROP_DIALOG_SHOW:null,ACCOUNT_CAPABILITIES_ADD:null,ACCOUNT_INIT:null,CHANGE_ACCOUNT_COUNTRY:null,CHANGE_ACCOUNT_CURRENCY:null,CHANGE_ACCOUNT_NAME:null,CHANGE_ACCOUNT_TIMEZONE_ID:null,CHANGE_FUNDING_SOURCE:null,CONVERSION_PIXELS_CHANGE:null,COUPON_ACTIVATED:null,OFFSITE_PIXELS_TOS_ACCEPTED:null,ADD_ACTOR:null,CHANGE_ACTORS:null,INIT_ACTORS:null,SET_INSTAGRAM_ACCOUNT_ID:null,CHANGE_AD_NAME:null,OBJECTIVE_CONFIRM_ANIMATION_CHANGE:null,OBJECTIVE_CHANGE:null,KPI_OBJECTIVE_CHANGE:null,KPI_OBJECTIVE_CONFIRM:null,KPI_OBJECTIVE_SEE_MORE:null,CALL_NOW_FRAGMENT_CHANGE:null,CALL_NOW_FRAGMENT_SUBMIT:null,CALL_NOW_PHONE_NUMBER_VALIDATED:null,CREATIVE_DATA_LOADED:null,CREATIVE_DATA_LOAD_ERROR:null,CREATIVE_INIT:null,CREATIVE_CHANGE:null,CREATIVE_FORMAT_LEARN_MORE:null,CREATIVE_LPP_FORMAT_CHANGE:null,CREATIVE_PLACEMENTS_CHANGE:null,CREATIVE_PLACEMENTS_RESET:null,CREATIVE_STATUS_CHANGE:null,GET_DIRECTIONS_LOCATION_CHANGE:null,IMAGE_MEDIA_TYPE_SELECTED:null,IMAGE_VALIDATED:null,LANDING_URL_CHANGE:null,LANDING_URL_SUBMIT:null,LANDING_URL_VALIDATED:null,LEARN_MORE_URL_CHANGE:null,LEARN_MORE_URL_VALIDATED:null,LEARN_MORE_URL_SUBMIT:null,MULTI_PRODUCT_REORDER:null,MULTI_PRODUCT_TAB_SELECT:null,SET_IMAGE_LIST:null,SET_VIDEO_DATA:null,VIDEO_MEDIA_TYPE_SELECTED:null,SET_IS_USING_EXISTING_POST:null,MEDIA_UPDATE:null,IMAGE_VERSION_ADD:null,IMAGE_DIMENSIONS_READY:null,STOCK_SEARCH:null,STOCK_SEARCH_RESULTS_READY:null,VIDEO_BROWSE_CLICK:null,VIDEO_BROWSE_CANCEL:null,VIDEO_UPLOAD_START:null,VIDEO_UPLOAD_CANCEL:null,VIDEO_UPLOAD_SUCCESS:null,VIDEO_UPLOAD_ERROR:null,VIDEO_UPLOAD_PROGRESS:null,VIDEO_ENCODING_SUCCESS:null,VIDEO_CAPTION_UPLOAD:null,VIDEO_CAPTION_UPLOAD_SUCCESS:null,VIDEO_CAPTION_UPLOAD_ERROR:null,VIDEO_CAPTION_REMOVE:null,VIDEO_CAPTION_REMOVE_SUCCESS:null,VIDEO_CAPTION_REMOVE_ERROR:null,VIDEO_CAPTION_CHANGE_DEFAULT_LOCALE:null,VIDEO_CAPTION_CHANGE_DEFAULT_LOCALE_SUCCESS:null,VIDEO_CAPTION_CHANGE_DEFAULT_LOCALE_ERROR:null,IMAGE_UPLOAD_CLICK:null,IMAGE_UPLOAD_FAIL:null,IMAGE_UPLOAD_SUCCESS:null,IMAGE_DOWNLOAD_ERROR:null,IMAGE_SELECT_CLICK:null,IMAGE_SELECT_SUCCESS:null,IMAGE_DESELECT_SUCCESS:null,IMAGE_SELECT_CONFIRMED:null,IMAGE_SELECT_CANCEL:null,IMAGE_DIALOG_OPEN:null,IMAGE_LIBRARY_TAB_CLICK:null,STOCK_IMAGE_SEARCH:null,STOCK_IMAGE_SEARCH_TEXT_CHANGE:null,ADGROUPS_LOAD_ERROR:null,ADGROUPS_LOAD_SUCCESS:null,ADGROUPS_PARTIAL_LOAD_SUCCESS:null,ADGROUP_ASYNC_VALIDATION_LOADED:null,ADGROUP_CREATE_SUCCESS:null,ADGROUP_LOAD_ERROR:null,ADGROUP_LOAD_SUCCESS:null,CAMPAIGN_SELECT:null,CANCEL_EDITED_CAMPAIGN:null,CHANGE_CAMPAIGN:null,CHANGE_CAMPAIGN_BUDGET:null,CHANGE_CAMPAIGN_BUDGET_MODE:null,CHANGE_CAMPAIGN_DAY_PARTING_SCHEDULE:null,CHANGE_CAMPAIGN_NAME:null,CHANGE_CAMPAIGN_PACING:null,CHANGE_CAMPAIGN_SCHEDULE_MODE:null,CHANGE_CAMPAIGN_SCHEDULE:null,CHANGE_CAMPAIGN_STATUS:null,DISMISS_CAMPAIGN_SAVE_SUCCESS:null,EDIT_CAMPAIGN_BUTTON_CLICK:null,SAVE_EDITED_CAMPAIGN_CLICK:null,SAVE_EDITED_CAMPAIGN_ERROR:null,SAVE_EDITED_CAMPAIGN_SUCCESS:null,SAVE_EDITED_CAMPAIGN_TIMEOUT:null,SELECT_EXISTING_CAMPAIGN:null,SELECT_NEW_CAMPAIGN:null,CAMPAIGNS_LOAD_ERROR:null,CAMPAIGNS_LOAD_SUCCESS:null,CAMPAIGNS_PARTIAL_LOAD_SUCCESS:null,CAMPAIGN_ASYNC_VALIDATION_LOADED:null,CAMPAIGN_CREATE_SUCCESS:null,CAMPAIGN_LOAD_ERROR:null,CAMPAIGN_LOAD_SUCCESS:null,CAMPAIGNS_LOADED:null,CAMPAIGN_DATA_LOAD_ERROR:null,CAMPAIGN_DATA_LOADED:null,CHANGE_BID_SECTION_VISIBILITY:null,CAMPAIGN_GROUP_NAME_UPDATE:null,CAMPAIGN_GROUP_SELECT:null,CAMPAIGN_GROUP_SELECT_AND_UPDATE:null,CAMPAIGN_GROUPS_LOADED:null,CAMPAIGN_GROUPS_LOAD_ERROR:null,CAMPAIGN_GROUPS_LOAD_SUCCESS:null,CAMPAIGN_GROUPS_PARTIAL_LOAD_SUCCESS:null,CAMPAIGN_GROUP_CREATE_SUCCESS:null,CAMPAIGN_GROUP_LOAD_ERROR:null,CAMPAIGN_GROUP_LOAD_SUCCESS:null,INIT_DATA_FETCH_ERROR:null,INIT_DATA_FETCH_SUCCESS:null,INIT_DATA_LOADED:null,INIT_DATA_RECEIVED:null,INIT_STARTED:null,PLACE_ORDER_CLICKED:null,PLACE_ORDER_INITIATED:null,REVIEW_AD_INITIATED:null,REVIEW_DIALOG_SHOW:null,REVIEW_DIALOG_CANCEL:null,SAVE_AD_INITIATED:null,CREATE_MODE_CONFIG_CHANGE:null,OBJECTIVE_NOT_SUPPORTED:null,SHOW_MODE_CHANGED:null,URI_CHANGE:null,HELP_LINK_CLICK:null,DESTINATION_LOADED:null,DESTINATION_CHANGE:null,DESTINATION_FETCH_ERROR:null,DESTINATION_SELECT:null,DESTINATION_UPDATE:null,KPI_DESTINATION_SELECT:null,NEW_PAGE_DESTINATION_SELECT:null,NO_DEFAULT_DESTINATION:null,PAGE_SELECTED:null,PAGE_POSTS_LOADED:null,PAGE_POSTS_LOAD_COMPLETE:null,PAGE_POSTS_PUBLISHED:null,POST_LINK_DATA_LOADED:null,RESET_DESTINATION:null,CLICK_CONTACT_ADMIN:null,USER_LOCATION_AVAILABLE:null,PAGE_SELECTOR_CLICK:null,PAGE_CREATE_CLICK:null,NEKO_CREATE_PAGE:null,BID_ESTIMATE_CHANGE:null,AUDIENCE_DENSITY_CHANGE:null,AUDIENCE_ESTIMATE_CHANGE:null,TARGETING_SENTENCE_CHANGE:null,AUDIENCE_ESTIMATE_VALUE_CHANGE:null,TARGETING_RECOMMENDATION_CHANGE:null,CHANGE_SAVED_AUDIENCE:null,TARGETING_INIT:null,TARGETING_CHANGE:null,TARGETING_SPEC_CHANGE:null,TARGETABLE_AUDIENCES_CHANGE:null,TARGETING_REPLACEMENT:null,TARGETING_RESET_DEFAULTS:null,TARGETING_COUNTRY_FETCH_FAILED:null,TARGETING_COUNTRY_FETCH_SUCCESS:null,TARGETING_INLINE_LOOKALIKE_AUDIENCE_CREATED:null,TARGETING_INLINE_LOOKALIKE_DIALOG_OPEN:null,TARGETING_INLINE_LOOKALIKE_TIP_RENDER:null,SUGGESTIONS_PAGE_INSIGHTS_LOADED:null,BID_CHANGE:null,BID_OPTION_CHANGE:null,BID_PRICE_CHANGE:null,CONVERSION_PIXEL_CHANGE:null,CPA_BID_AVAILABLE:null,DEFAULT_CONVERSION_PIXEL_LOADED:null,RESTORE_PRICING_DEFAULTS:null,CHANGE_PIXEL_EMAIL_PERSONAL_MESSAGE:null,ADD_PIXEL_EMAIL_RECIPIENT:null,REMOVE_PIXEL_EMAIL_RECIPIENT:null,CHANGE_PIXEL_SNIPPET_VIEW_MODE:null,CONFIRM_SNIPPET_VIEW:null,CONVERSION_PIXEL_CREATED:null,CODE_MAP_CHANGE:null,CODE_MAP_RESET:null,LOG:null,PAYMENTS_FLOW_CANCELLED:null,PAYMENTS_FLOW_ERROR:null,PAYMENTS_FLOW_SUCCESS:null,PREVIEWS_RESET_INDEX:null,PREVIEWS_SET_INDEX:null,ADS_MANAGER_REDIRECT:null,CONVERSION_PIXEL_LINK_CLICK:null,CREATE_AD_SUCCESS:null,CREATE_AD_FAIL:null,CREATE_AD_FAIL_WITH_CAMPAIGN_SUCCESS:null,CREATE_AD_TIMEOUT:null,CREATE_SIMILAR_AD:null,CREATE_SIMILAR_CAMPAIGN:null,CREATING_AD:null,DR_NEWBIE_RETENTION_LINK_CLICK:null,EXTEND_CAMPAIGN:null,EXTEND_CAMPAIGN_FAIL:null,EXTEND_CAMPAIGN_SUCCESS:null,INCREASE_BUDGET:null,INCREASE_BUDGET_FAIL:null,INCREASE_BUDGET_SUCCESS:null,REQUEST_RELATED_DATA_FAIL:null,REQUEST_RELATED_DATA_SUCCESS:null,TRACK_MOBILE_APP_INSTALL_COMPOSE:null,TRACK_MOBILE_APP_INSTALL_SEND:null,TRACK_MOBILE_APP_INSTALL_SEND_FAIL:null,TRACK_MOBILE_APP_INSTALL_SEND_SUCCESS:null,TRACK_MOBILE_APP_INSTALL_INFO:null,SAVE_AD_SUCCESS:null,NAVIGATION_SECTION_ADD:null,NAVIGATION_SECTION_REMOVE:null,NAVIGATION_SECTION_ENTERED:null,NAVIGATION_SECTION_EXITED:null,NAVIGATION_SECTION_GO:null,NAVIGATION_SECTION_SCROLL_DONE:null,NAVIGATION_SCROLL_CONTAINER_CHANGED:null,AD_API_ERROR:null,PENDING_OBJECT_CREATED:null,ININ_CHAT_URI_INIT:null,SEARCH_SOURCE_CLEAR_CACHE:null,SEARCH_SOURCE_DONE_FETCHING:null,SEARCH_SOURCE_SEARCH_COMPLETE:null,UPDATE_ON_LEAVE_BLOCKER:null,UPDATE_ON_LEAVE_BLOCKER_FORCE_BLOCK:null,RESET_ON_LEAVE_BLOCKER:null,CLOSE_CPC_MIGRATION_NOTICE:null},k=h.createActionTypeMap(i,j);f.exports=k;},null);
__d('AdsPlacementID',['keyMirror'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=h({RHC:null,DESKTOP_NEWS_FEED:null,MOBILE_NEWS_FEED:null,FAN:null,IG_FEED:null});f.exports=i;},null);
__d('AdsPlacementStates',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={ENABLED:'enabled',DISABLED:'disabled',NOT_SUPPORTED:'not_supported'};f.exports=h;},null);
__d('AdsCFConstants',['AdsPlacementID','AdsPlacementStates','fbt','keyMirror'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l={DENSITY_LIMIT:55000},m=k({CAMPAIGN:null,CAMPAIGN_GROUP:null,ACCOUNT:null,CREATIVE:null}),n=k({FACEBOOK_PAGE:null,EXTERNAL:null}),o=k({PENDING:null,SUCCESS:null,FAILURE:null}),p={DAILY:'daily',LIFETIME:'lifetime'},q=k({EXTEND_CAMPAIGN:null,INCREASE_BUDGET:null,UNPAUSE:null}),r=k({CONTINUOUSLY:null,MIXED:null,SCHEDULED:null}),s=k({START_DATE_BEFORE_NOW:null,END_DATE_BEFORE_START_DATE:null,END_DATE_BEFORE_NOW:null,INSUFFICIENT_DAILY_BUDGET:null}),t='canonical-id',u="error entity",v={CREATE_NEW_CAMPAIGN_GROUP:'create-new-campaign-group',CREATE_NEW_CAMPAIGN:'create-new-campaign',CREATE_NEW_AD_GROUP:'create-new-ad-group',CREATE_SIMILAR:'create-similar',CREATE_SIMILAR_CAMPAIGN:'create-similar-campaign',EDIT_EXISTING:'edit-existing',EDIT_EXISTING_CAMPAIGN:'edit-existing-campaign'},w=k({CREATE_NEW_AD:null,USING_EXISTING_POST:null}),x={CREATIVE:'creative',TARGETING:'targeting',PRICING:'pricing'},y=k({AUTO_FILL_OTHER:null,PREFILLED_FROM_PROMOTED_OBJECT:null,PREFILLED_FROM_URL:null,SINGLE_OBJECT_PREFILL:null,USER_SELECTED:null}),z={};z[v.CREATE_SIMILAR]=j._("Create a Similar Ad");z[v.CREATE_SIMILAR_CAMPAIGN]=j._("Create a Similar Ad Set");z[v.EDIT_EXISTING]=j._("Edit Your Ad");var aa=k({DEFAULT:null,AYMT_DIALOG:null,AYMT_REFERRAL:null}),ba={INCREASE_ACCOUNT_SPEND_CAP:1,EXTEND_CAMPAIGN:1,INCREASE_BUDGET:1,DR_NEWBIE_RETENTION:2,CONVERSION_PIXEL:2,TRACK_MOBILE_APP_INSTALL:2},ca={ACTIVE:1,DISABLED:2,UNSETTLED:3,PENDING_REVIEW:7,PENDING_CLOSURE:100,CLOSED:101},da=k({CONVERSION_PIXEL:null,CREATE_CAMPAIGN:null,DR_NEWBIE_RETENTION:null,EXTEND_CAMPAIGN:null,INCREASE_ACCOUNT_SPEND_CAP:null,INCREASE_BUDGET:null,TRACK_MOBILE_APP_INSTALL:null}),ea=k({DEFAULT:null,FAILURE:null,IN_PROGRESS:null,SUCCESS:null}),fa=k({BEGIN:null,COMPOSE:null,SENDING:null,SUCCESS:null,FAILURE:null}),ga=k({AUTO_DEFAULT_SELECTION:null,OBJECTIVE_SELECTOR:null,SUGGESTION:null,PIXEL_UPSELL:null}),ha=k({LARGE:null,MEDIUM:null,SMALL:null}),ia=k({ACTIVE:null,DEFAULT:null,HOVER:null}),ja={app:'Application',url:'URL',page:'Page',event:'Event',media:'Media'},ka=k({CONVERSION_PIXEL_SELECTOR:null,NO_SELECTOR:null,PIXEL_SELECTOR:null}),la=i,ma=h,na=k({FAILURE:null,IN_PROGRESS:null,SUCCESS:null}),oa={MOBILE_NEWS_FEED_DISABLED:'mobile-news-feed-disabled',NONE:'none',NOT_SUPPORTED:'not-supported',ONLY_PLACEMENT:'only-placement',ONLY_PLACEMENT_EXCEPT_FAN:'only-placement-except-fan',READ_ONLY:'read-only'},pa={};pa[oa.ONLY_PLACEMENT]=j._("You need at least one placement to show your ad on Facebook. This is the only placement you've selected, so it can't be removed.");pa[oa.ONLY_PLACEMENT_EXCEPT_FAN]=j._("The mobile News Feed placement can't be removed if you want to show your ad in the Audience Network.");pa[oa.MOBILE_NEWS_FEED_DISABLED]=j._("The mobile News Feed placement must be turned on to show your ad in partner mobile apps that are part of the Audience Network.");var qa='create_flow';f.exports={AccountStatus:ca,AudienceSizes:l,CampaignBudgetModes:p,CampaignDialogActionTypes:q,CampaignScheduleModes:r,CampaignValidationErrors:s,CanonicalID:t,CreateMode:v,CreationSteps:m,CreativeSectionEditMode:w,DataStates:na,DestinationSelectionSource:y,DestinationTypes:ja,DocumentTitles:z,Environments:aa,ErrorEntityID:u,LandingURLTypes:n,MobileAppInstallUpsellStates:fa,MTC_TARGETING_ID:qa,NEW_CAMPAIGN_GROUP_ID:'NEW_CAMPAIGN_GROUP_ID',NEW_CAMPAIGN_ID:'NEW_CAMPAIGN_ID',ObjectiveChangeSource:ga,ObjectiveImageSizes:ha,ObjectiveImageStates:ia,PixelSelectorVersion:ka,PlacementCannotChangeStatusDescription:pa,PlacementCannotChangeStatusReason:oa,PlacementID:ma,PlacementStates:la,RemoteCallStatus:o,ShowMode:x,UpsellRankings:ba,UpsellTypes:da,UpsellViewStates:ea};},null);
__d('AdsAPICampaignPaths',['AdsAPIAdCampaignFields','AdsAPIAdCampaignGroupFields','AdsAPIBidAdjustmentsFields','AdsAPIBidInfoFields','AdsAPIDeliveryInfoFields','AdsAPIPromotedObjectFields','AdsAPISavedAudienceFields','AdsAPITargetFields','AdsAPITargetGeoLocationFields','generatePaths'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=[{pathKeys:[],expandsTo:h},{pathKeys:['AD_CAMPAIGN_GROUP'],expandsTo:i},{pathKeys:['BID_ADJUSTMENTS'],expandsTo:j},{pathKeys:['BID_INFO'],expandsTo:k},{pathKeys:['DELIVERY_INFO'],expandsTo:l},{pathKeys:['PROMOTED_OBJECT'],expandsTo:m},{pathKeys:['SAVED_AUDIENCE'],expandsTo:n},{pathKeys:['TARGETING'],expandsTo:o},{pathKeys:['TARGETING','GEO_LOCATIONS'],expandsTo:p}],s=q(r);f.exports=s;},null);
__d('AdsAppUtils',['AdsAPIObjectives','ads-app-platforms','ads-mobile-platforms','ads-app-platforms','immutable','URI','combinePath','dotAccess','getObjectValues','isFacebookURI'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=i.MOBILE_STORE,s=l.Set([h.MOBILE_APP_INSTALLS,h.MOBILE_APP_ENGAGEMENT]),t=l.Set([h.CANVAS_APP_INSTALLS,h.CANVAS_APP_ENGAGEMENT]);function u(x){try{return new m(x);}catch(y){return null;}}var v={filterByPlatform:function(x,y){var z=[];x.forEach((function(aa){var ba=y.some((function(ca){return this.appHasPlatform(aa,ca);}).bind(this));if(!ba)return;z.push(aa);}).bind(this));return z;},isAppObjective:function(x){return v.isMobileAppObjective(x)||v.isCanvasAppObjective(x);},isMobileAppObjective:function(x){return s.has(x);},isCanvasAppObjective:function(x){return t.has(x);},isCanvasApp:function(x){return !!x.object_store_urls&&!!x.object_store_urls[k.MOBILE_STORE.FB_CANVAS];},isMobileApp:function(x){var y=x.object_store_urls||{};return (!!y[k.MOBILE_STORE.GOOGLE_PLAY]||!!y[k.MOBILE_STORE.ITUNES]||!!y[k.MOBILE_STORE.ITUNES_IPAD]||!!y[k.MOBILE_STORE.AMAZON]);},getDeepLink:function(x){var y=o(x,'creative.object_story_spec.link_data.link');if(y)return y;var z=o(x,'creative.object_story_spec.video_data.call_to_action.value.link');if(z)return z;return null;},getAppStoreName:function(x,y){var z=v.getDeepLink(x);if(!z)return null;var aa=v.getMobileAppStoreNameFromUrl(z);if(aa)return aa;if(v.isCanvasAppObjective(y))return r.FB_CANVAS;return null;},getMobileAppStoreNameFromUrl:function(x){if(!x)return null;if(v.isItunesURL(x))return r.ITUNES;if(v.isGooglePlayURL(x))return r.GOOGLE_PLAY;if(v.isAmazonURL(x))return r.AMAZON;return null;},getMobilePlatforms:function(){return this.getPlatformsForObjectives([h.MOBILE_APP_INSTALLS,h.MOBILE_APP_ENGAGEMENT]);},getPlatformsForObjective:function(x){return w.has(x)?w.get(x):[];},getPlatformsForObjectives:function(x){var y=false,z=false;x.forEach(function(ba){if(!(ba===h.NONE))if(v.isMobileAppObjective(ba)){y=true;}else if(v.isCanvasAppObjective(ba))z=true;});if(y&&z)return [];if(z)return [r.FB_CANVAS];var aa=p(r);if(y)return aa.filter(function(ba){return ba!==r.FB_CANVAS;});return aa;},getPlatformFromStoreURL:function(x){var y=v.getMobileAppStoreNameFromUrl(x);if(y)return i.MOBILE_STORE_TO_NATIVE_APP_MAP[y];if(v.isCanvasLink(x))return i.APP_PLATFORM.CANVAS;},appHasPlatform:function(x,y){return !!(x.object_store_urls&&x.object_store_urls[y]);},getDefaultAppLink:function(x,y){var z=v.getPlatformsForObjectives(y);for(var aa=0;aa<z.length;aa++){var ba=z[aa],ca=x.object_store_urls[ba];if(ca)return ca;}return null;},isItunesURL:function(x){x=u(x);return !!x&&x.getDomain()==='itunes.apple.com';},isGooglePlayURL:function(x){x=u(x);return !!x&&x.getDomain()==='play.google.com';},isAmazonURL:function(x){x=u(x);return !!x&&x.getDomain()==='www.amazon.com';},isCanvasLink:function(x){if(typeof x==='string')x=u(x);return !!x&&q(x)&&x.getSubdomain()==='apps';},getCanvasDeepLink:function(x){var y=v.splitDeepLinkFromCanvasLink(x);return y&&y.deepLink;},splitDeepLinkFromCanvasLink:function(x){if(typeof x==='string')x=u(x);if(!x)return null;if(!v.isCanvasLink(x))return null;var y=x.getPath().indexOf('/',1);if(y===-1)return {canvasLink:x.toString(),deepLink:null};var z=x.getPath().slice(0,y+1),aa=x.getPath().slice(y+1),ba=new m().setProtocol(x.getProtocol()).setDomain(x.getDomain()).setPath(z).toString(),ca=new m().setPath(aa).setQueryData(x.getQueryData()).setFragment(x.getFragment()).toString();return {canvasLink:ba,deepLink:ca};},appendDeepLinkToCanvasLink:function(x){var y=!!o(x,'object_story_spec.link_data.call_to_action.value.app_link')&&!!o(x,'object_story_spec.link_data.link')&&v.isCanvasLink(x.object_story_spec.link_data.link);if(!y)return;x.object_story_spec=JSON.parse(JSON.stringify(x.object_story_spec));x.object_story_spec.link_data.link=n(x.object_story_spec.link_data.link,x.object_story_spec.link_data.call_to_action.value.app_link);x.object_story_spec.link_data.call_to_action.value.link=x.object_story_spec.link_data.link;delete x.object_story_spec.link_data.call_to_action.value.app_link;},splitDeepLinkFromCanvasLinkInAdSpec:function(x,y){var z=y&&v.isCanvasAppObjective(y)&&!!o(x,'object_story_spec.link_data.link')&&v.isCanvasLink(x.object_story_spec.link_data.link);if(!z)return;var aa=v.splitDeepLinkFromCanvasLink(x.object_story_spec.link_data.link);if(!aa||!aa.deepLink)return;o(x,'object_story_spec.link_data.call_to_action.value',true).app_link=aa.deepLink;x.object_story_spec.link_data.link=aa.canvasLink;x.object_story_spec.link_data.call_to_action.value.link=aa.canvasLink;},getAppStoreNameFromUrl:function(x,y){if(!y||!x)return null;for(var z in x)if(x[z]===y)return z;if(v.isGooglePlayURL(y)){return !!x[r.GOOGLE_PLAY]?r.GOOGLE_PLAY:null;}else if(v.isAmazonURL(y)){return !!x[r.AMAZON]?r.AMAZON:null;}else if(v.isCanvasLink(y)){return !!x[r.FB_CANVAS]?r.FB_CANVAS:null;}else if(v.isItunesURL(y))return v.getAppStoreNameFromITunesUrl(x,y);return null;},getAppStoreNameFromITunesUrl:function(x,y){var z=!!x[r.ITUNES],aa=!!x[r.ITUNES_IPAD];if(z&&!aa){return r.ITUNES;}else if(aa&&!z){return r.ITUNES_IPAD;}else if(!z&&!aa)return null;var ba=v.getItunesContentId(y);if(!ba)return null;var ca=v.getItunesContentId(x[r.ITUNES]),da=v.getItunesContentId(x[r.ITUNES_IPAD]);if(ba===ca){return r.ITUNES;}else if(ba===da){return r.ITUNES_IPAD;}else return null;},getItunesContentId:function(x){if(!v.isItunesURL(x))return null;var y=/\/app\/id([0-9]+)/i.exec(x);if(y&&y[1])return y[1];return null;},isValidDeviceForStore:function(x,y){if(x===r.ITUNES||x===r.ITUNES_IPAD){return j.isIosDevice(y);}else if(x===r.GOOGLE_PLAY){return (j.isAndroidDevice(y)&&y!==j.deviceTypes.AMAZON);}else if(x===r.AMAZON){return y===j.deviceTypes.AMAZON;}else return false;},getDefaultUserDevices:function(x){if(x===r.AMAZON){return [j.deviceTypes.AMAZON];}else if(x===r.ITUNES_IPAD){return [j.deviceTypes.IPAD];}else return [];}},w=l.Map(Object.keys(h).filter(function(x){return v.isAppObjective(x);}).map(function(x){return [x,v.getPlatformsForObjectives([x])];}));f.exports=v;},null);
__d('AdsAPIAdgroupPaths',['AdsAPIAdgroupFields','AdsAPIBidInfoFields','AdsAPIDeliveryInfoFields','AdsAPITargetFields','ApiAdCreativeFields','ApiAdCreativeStorySpecFields','ApiCallToActionFields','ApiObjectStorySpecLinkFields','ApiObjectStorySpecOfferFields','ApiObjectStorySpecPhotoFields','ApiObjectStorySpecStatusFields','ApiObjectStorySpecVideoFields','CallToActionValueFields','generatePaths'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){'use strict';if(c.__markCompiled)c.__markCompiled();var v=[{pathKeys:[],expandsTo:h},{pathKeys:['BID_INFO'],expandsTo:i},{pathKeys:['CREATIVE'],expandsTo:l},{pathKeys:['CREATIVE','OBJECT_STORY_SPEC'],expandsTo:m},{pathKeys:['CREATIVE','OBJECT_STORY_SPEC','LINK_DATA'],expandsTo:o},{pathKeys:['CREATIVE','OBJECT_STORY_SPEC','LINK_DATA','CALL_TO_ACTION'],expandsTo:n},{pathKeys:['CREATIVE','OBJECT_STORY_SPEC','LINK_DATA','CALL_TO_ACTION','VALUE'],expandsTo:t},{pathKeys:['CREATIVE','OBJECT_STORY_SPEC','OFFER_DATA'],expandsTo:p},{pathKeys:['CREATIVE','OBJECT_STORY_SPEC','PHOTO_DATA'],expandsTo:q},{pathKeys:['CREATIVE','OBJECT_STORY_SPEC','TEMPLATE_DATA'],expandsTo:o},{pathKeys:['CREATIVE','OBJECT_STORY_SPEC','TEMPLATE_DATA','CALL_TO_ACTION'],expandsTo:n},{pathKeys:['CREATIVE','OBJECT_STORY_SPEC','TEMPLATE_DATA','CALL_TO_ACTION','VALUE'],expandsTo:t},{pathKeys:['CREATIVE','OBJECT_STORY_SPEC','TEXT_DATA'],expandsTo:r},{pathKeys:['CREATIVE','OBJECT_STORY_SPEC','VIDEO_DATA'],expandsTo:s},{pathKeys:['CREATIVE','OBJECT_STORY_SPEC','VIDEO_DATA','CALL_TO_ACTION'],expandsTo:n},{pathKeys:['CREATIVE','OBJECT_STORY_SPEC','VIDEO_DATA','CALL_TO_ACTION','VALUE'],expandsTo:t},{pathKeys:['DELIVERY_INFO'],expandsTo:j},{pathKeys:['TARGETING'],expandsTo:k}],w=u(v);f.exports=w;},null);
__d('AdsCreateFlowConfig',['AdsCreationConfig'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={PAGE_POST_TIMEOUT_MS:6000,MAX_PAGE_POST_LEN:50,MAX_TITLE_LENGTH:h.maxTitleLength,MAX_URL_LENGTH:h.maxURLLength,NEW_CAMPAIGN_ID:0,AGE_MIN:h.minAge,AGE_MAX:h.maxAge,ONE_BOX_TYPEAHEAD_TRUNCATION:21,ONE_BOX_DEBOUNCE_MS:120,MAX_TEXT_LENGTH:52,MAX_SUGGESTED_KEYWORDS_OFFSET:45,SUGGESTED_KEYWORDS_PER_FETCH:15,DEFAULT_IMAGE_URL_SUFFIX:'/images/devsite/attachment_blank.png',SEE_ALL:'see_all',GO_BACK:'go_back'};f.exports=i;},null);
__d('PagePostTypes',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={LINK:'link',OFFER:'offer',PHOTO:'photo',QUESTION:'question',STATUS:'status',VIDEO:'video',PREMIUM_VIDEO:'premiumVideo',TEMPLATE:'template'};f.exports=h;},null);
__d('AdsPagePostUtils',['AdsAPIObjectives','AdsGraphAPI','Map','PagePostTypes','adsGKCheck','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();function n(p){if(!p)return null;if(typeof p!=='string')p=p.toString();return p;}var o={isVisibleForObjective:function(p,q){if(!o.isNativeVideoPost(q)&&p===h.VIDEO_VIEWS)return false;if(!o.isWebsiteAdEligiblePost(q)&&(p===h.WEBSITE_CLICKS||p===h.WEBSITE_CONVERSIONS))return false;if(!o.isOfferPost(q)&&p===h.OFFER_CLAIMS)return false;if(!o.isPublishedPost(q)&&l('ads_pe_inline_posts_filter_unpublished')&&(p===h.VIDEO_VIEWS||p===h.WEBSITE_CLICKS||p===h.WEBSITE_CONVERSIONS||p===h.POST_ENGAGEMENT))return false;return true;},isWebsiteAdEligiblePost:function(p){return (p.type!==k.OFFER&&(!!p.link||!!p.entities));},isPublishedPost:function(p){return (!!p.is_published||!!p.published||!!p.scheduled);},isOfferPost:function(p){return p.type===k.OFFER;},isVideoPost:function(p){return p.type===k.VIDEO;},isNativeVideoPost:function(p){return o.isVideoPost(p)&&!!p.object_id;},getFilter:function(p){var q=[];if(p.hasLink)q.push(o.isWebsiteAdEligiblePost);if(p.isNativeVideo)q.push(o.isNativeVideoPost);if(p.isOffer)q.push(o.isOfferPost);if(p.isPublished)q.push(o.isPublishedPost);return function(r){return q.every(function(s){return s(r);});};},getVisiblePostTypes:function(p){switch(p){case h.WEBSITE_CLICKS:case h.WEBSITE_CONVERSIONS:return [k.LINK];case h.VIDEO_VIEWS:return [k.VIDEO];case h.OFFER_CLAIMS:return [k.OFFER];default:return [k.LINK,k.PHOTO,k.VIDEO,k.STATUS,k.OFFER];}},fetchAccessTokensForPageIDs:function(p){return i.getWithGeneralMigration().objects('page',p).get({fields:['access_token']}).then(function(q){return new j(Object.keys(q).map(function(r){return [r,q[r].access_token];}));});},generatePagePostId_BROKEN:function(p,q){return p+"_"+q;},isPagePostId_BROKEN:function(p){p=n(p);if(!p)return false;var q=p.split('_');return q.length===2;},isInvalidPagePostId_BROKEN:function(p,q){q(/[^\d]/.test(p));},getPageIdFromPagePostId_BROKEN:function(p){p=n(p);if(!p)return null;var q=p.split('_');!(q.length===2)?m(0):undefined;return q[0];},getPostIdFromPagePostId_BROKEN:function(p){p=n(p);if(!p)return null;var q=p.split('_');!(q.length===2)?m(0):undefined;return q[1];},getPagePostURL_BROKEN:function(p,q){var r=o.getPostIdBestGuess_BROKEN(q);return '/'+p+'/posts/'+r;},getPostIdBestGuess_BROKEN:function(p){p=n(p);if(!p)return null;var q=p.split('_');!(q.length<=2)?m(0):undefined;return q.pop();}};f.exports=o;},null);
__d('adsGetCreativeTypeByCreativeFields',['ApiAdObjectTypes','ApiCreativeTypes'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();function j(k,l,m){switch(l){case h.DOMAIN:return i.STANDARD;case h.PAGE:return i.INLINE_FAN;case h.EVENT:return i.INLINE_RSVP;case h.OFFER:case h.PHOTO:case h.SHARE:case h.STATUS:return i.PAGE_POSTS_V2;case h.VIDEO:if(m&&m.length){return i.PREMIUM_FEED_VIDEO_AD;}else return i.PAGE_POSTS_V2;break;case h.ACTION_SPEC:return i.QUERY_BASED;case h.INSTAGRAM_MEDIA:return i.INSTAGRAM_AD;case h.INVALID:return i.EXOTIC_OR_INVALID;default:if(k)return i.INSTAGRAM_AD;return null;}}f.exports=j;},null);
__d('AdsCreativeConverter',['AdCreativeType','AdsPagePostUtils','AdsUtils','ApiAdCreativeFields','ApiAdObjectTypes','ApiCreativeTypes','adsGetCreativeTypeByCreativeFields','ads-app-platforms','invariant','isEmpty'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=h.AD_CREATIVE_TYPE,s=h.ALL_CREATIVE_API_FIELDS.map(j.underscoreKey),t={_getAliases:function(){return [{newField:k.ACTOR_ID,oldField:k.RELATED_FAN_PAGE,types:[m.STANDARD,m.PREMIUM_STANDARD]},{newField:k.ACTOR_NAME,oldField:k.TITLE,types:[m.CONTEXTUAL_APP_AD]},{newField:k.TITLE,oldField:k.MOBILE_PRODUCT_NAME,types:[m.CONTEXTUAL_APP_AD]},{newField:k.ACTOR_IMAGE_HASH,oldField:k.ICON_IMAGE_HASH},{newField:k.ACTOR_IMAGE_URL,oldField:k.ICON_IMAGE_URL},{newField:k.OBJECT_URL,oldField:k.LINK_URL,types:[m.STANDARD,m.PREMIUM_STANDARD]}];},getModernFields:function(){var u=[];s.forEach(function(v){switch(v){case k.ACTION_SPEC:case k.AUTO_UPDATE:case k.ICON_IMAGE_HASH:case k.ICON_IMAGE_URL:case k.MOBILE_STORE:case k.RELATED_FAN_PAGE:case k.STORY_ID:case k.TYPE:break;case k.IMAGE_URL:break;default:u.push(v);}});u.push(k.ACTOR_ID);u.push(k.ACTOR_IMAGE_HASH);u.push(k.ACTOR_IMAGE_URL);u.push(k.ACTOR_NAME);u.push(k.LINK_DEEP_LINK_URL);u.push(k.OBJECT_STORY_ID);u.push(k.OBJECT_STORY_SPEC);u.push(k.OBJECT_STORE_URL);u.push(k.OBJECT_TYPE);u.push(k.OBJECT_URL);return u;},toLegacySpec:function(u){var v=babelHelpers._extends({},u);v.type=t.getCreativeType(u);delete v.object_type;var w=[],x=[];t._getAliases().forEach(function(ca){var da=ca.types;if(!da||da.indexOf(v.type)!==-1){w.push(ca.newField);x.push(ca.oldField);v[ca.oldField]=u[ca.newField];}});w.forEach(function(ca){if(x.indexOf(ca)===-1)delete v[ca];});var y=u.object_story_id;if(y){v.object_id=i.getPageIdFromPagePostId_BROKEN(y);v.story_id=i.getPostIdFromPagePostId_BROKEN(y);delete v.object_story_id;}var z=u.object_store_url;if(z){!(v.mobile_store&&v.mobile_store_content_id)?p(0):undefined;delete v.object_store_url;}var aa=u.link_deep_link_url;if(aa!==null&&aa!==undefined){v.mobile_applink_spec={applink_url:aa,intent_package:v.mobile_store===o.MOBILE_STORE.GOOGLE_PLAY?v.mobile_store_content_id:null};delete v.link_deep_link_url;}var ba=u.object_id;if(ba&&v.type===m.CONTEXTUAL_APP_AD)v.mobile_store=o.MOBILE_STORE.FB_CANVAS;return v;},toModernSpec:function(u){var v=babelHelpers._extends({},u),w=u.type;delete v.type;var x=[],y=[];t._getAliases().forEach(function(ba){var ca=ba.types;if(!ca||ca.indexOf(w)!==-1){x.push(ba.newField);y.push(ba.oldField);v[ba.newField]=u[ba.oldField];}});y.forEach(function(ba){if(x.indexOf(ba)===-1)delete v[ba];});if(!v.object_story_id){if(u.story_id&&u.object_id){v.object_story_id=i.generatePagePostId_BROKEN(u.object_id,u.story_id);delete v.object_id;delete v.story_id;}}else{delete v.object_id;delete v.story_id;}if(v.object_story_id&&q(v.object_story_spec))delete v.object_story_spec;var z=u.mobile_applink_spec;if(z){v.link_deep_link_url=z.applink_url;delete v.mobile_applink_spec;if(z.ref)v.mobile_applink_spec={ref:z.ref};}var aa=u.mobile_store;if(aa===o.MOBILE_STORE.FB_CANVAS){delete v.mobile_store;}else if(aa){delete v.object_id;if(u.mobile_store_content_id){!v.object_store_url?p(0):undefined;delete v.mobile_store;delete v.mobile_store_content_id;}}return v;},getObjectTypeGuess:function(u){switch(u.type){case m.STANDARD:return l.DOMAIN;case m.INLINE_FAN:return l.PAGE;case m.INLINE_RSVP:return l.SHARE;case m.PAGE_POSTS_V2:return l.STATUS;case m.PREMIUM_FEED_VIDEO_AD:return l.VIDEO;case m.QUERY_BASED:return l.ACTION_SPEC;case m.INSTAGRAM_AD:return l.INSTAGRAM_MEDIA;case m.EXOTIC_OR_INVALID:return l.INVALID;default:return l.INVALID;}},getObjectTypeGuessForCF:function(u,v){if(v)return l.VIDEO;switch(u.type){case r.FEED_URL:case r.NEKO_LPP:return l.SHARE;case r.AD_VIDEO:return l.VIDEO;default:return t.getObjectTypeGuess(u);}},getCreativeType:function(u){return n(u.object_instagram_id,u.object_type,u.video_list);}};f.exports=t;},null);
__d('AdsCFXBaseStore',['AdsDispatcher','FluxStore'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;function l(m){k.constructor.call(this,h);this.$AdsCFXBaseStore1=m;var n='debug_'+m;if(!b.hasOwnProperty(n))b[n]=this;}f.exports=l;},null);
__d('AdsCFXBaseLoader',['AdsDispatcher','abstractMethod','setImmediate'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();k.prototype.__getActionTypes=function(){return i('AdsCFXBaseLoader','__getActionTypes');};k.prototype.promise=function(){return i('AdsCFXBaseLoader','promise');};k.prototype.dispatch=function(){for(var l=arguments.length,m=Array(l),n=0;n<l;n++)m[n]=arguments[n];j((function(){h.handleUpdateFromServerResponse({data:{args:m},type:this.__getActionTypes().START});this.promise.apply(this,m).done((function(o){return h.handleUpdateFromServerResponse({data:{args:m,result:o},type:this.__getActionTypes().SUCCESS});}).bind(this),(function(o){return h.handleUpdateFromServerResponse({data:{args:m,error:o},type:this.__getActionTypes().ERROR});}).bind(this));}).bind(this));};function k(){}f.exports=k;},null);
__d('AdsCFXShutterstockImageByIDLoaderActionTypes',['AdsDispatchActionTypeUtils','createObjectFrom'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=['START','SUCCESS','ERROR'],k=h.createActionTypeMap('AdsCFXShutterstockImageByIDLoader_',i(j));f.exports=k;},null);
__d('AdsCFXShutterstockImageByIDLoader',['AdsAPIShutterstockImageFields','AdsCFXBaseLoader','AdsCFXShutterstockImageByIDLoaderActionTypes','GraphAPI'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l,m;'use strict';var n=[h.ID,h.PREVIEW,h.PREVIEW_URL,h.THUMBNAIL];l=babelHelpers.inherits(o,i);m=l&&l.prototype;o.prototype.__getActionTypes=function(){return j;};o.prototype.promise=function(){for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];var t=r[0],u=t;return (k('2.3').path_DO_NOT_USE('/'+u).get({fields:n}));};function o(){l.apply(this,arguments);}var p=new o();f.exports=p;},null);
__d('AdImageSpecCropKeys',['keyMirrorRecursive'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=h({'100x100':'','191x100':'','400x150':'',NO_CROP:''});f.exports=i;},null);
__d('AdImageSpecs',['AdCreativeType','AdImageSpecCropKeys','AdsInstagramImageSpecs','AdsPageTypes','adsGKCheck'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=h.AD_CREATIVE_TYPE,n={PAGE_LIKE_DESKTOP_FEED:{placement:k.DESKTOP_FEED,width:1200,height:444,minLargeWidth:400,minLargeHeight:150,minWarningWidth:l('ads_new_pagelike_image_size')?400:254,minWarningHeight:l('ads_new_pagelike_image_size')?150:94,aspectRatio:8/3,cropKey:'400x150',supportedTypes:[m.INLINE_FAN]},PAGE_LIKE_MOBILE_FEED:{placement:k.MOBILE_FEED,width:1200,height:444,minLargeWidth:400,minLargeHeight:150,minWarningWidth:l('ads_new_pagelike_image_size')?400:254,minWarningHeight:l('ads_new_pagelike_image_size')?150:94,aspectRatio:8/3,cropKey:'400x150',supportedTypes:[m.INLINE_FAN]},PAGE_LIKE_RHC:{placement:k.RIGHT_COLUMN,width:1200,height:444,minWarningWidth:l('ads_new_pagelike_image_size')?400:254,minWarningHeight:l('ads_new_pagelike_image_size')?150:94,aspectRatio:8/3,cropKey:'400x150',supportedTypes:[m.INLINE_FAN]},PAGE_POST_DESKTOP_FEED:{placement:k.DESKTOP_FEED,width:1200,height:628,minLargeWidth:400,minLargeHeight:209,minWarningWidth:254,minWarningHeight:133,aspectRatio:1.91,cropKey:'191x100',supportedTypes:[m.STANDARD,m.FEED_URL,m.PAGE_POSTS_V2]},PAGE_POST_MOBILE_FEED:{placement:k.MOBILE_FEED,width:1200,height:628,minLargeWidth:400,minLargeHeight:209,minWarningWidth:254,minWarningHeight:133,aspectRatio:1.91,cropKey:'191x100',supportedTypes:[m.STANDARD,m.FEED_URL,m.PAGE_POSTS_V2]},PAGE_POST_MULTI_PRODUCT:{placement:k.DESKTOP_FEED,width:600,height:600,minLargeWidth:400,minLargeHeight:400,minWarningWidth:200,minWarningHeight:200,aspectRatio:1,cropKey:'100x100',supportedTypes:[]},PAGE_POST_DESKTOP_FEED_NEKO:{placement:k.DESKTOP_FEED,width:1200,height:628,minWarningWidth:600,minWarningHeight:314,aspectRatio:1.91,cropKey:'191x100',supportedTypes:[m.NEKO_LPP]},PAGE_POST_MOBILE_FEED_NEKO:{placement:k.MOBILE_FEED,width:1200,height:628,minWarningWidth:600,minWarningHeight:314,aspectRatio:1.91,cropKey:'191x100',supportedTypes:[m.NEKO_LPP]},PAGE_POST_RHC:{placement:k.RIGHT_COLUMN,width:1200,height:628,minWarningWidth:254,minWarningHeight:133,aspectRatio:1.91,cropKey:'191x100',supportedTypes:[m.STANDARD,m.FEED_URL,m.PAGE_POSTS_V2,m.NEKO_LPP]},PAGE_POST_RHCHOME:{placement:k.HOME,width:1200,height:628,minWarningWidth:254,minWarningHeight:133,aspectRatio:1.91,cropKey:'191x100',supportedTypes:[m.STANDARD,m.PAGE_POSTS_V2]},PAGE_PROFILE:{width:180,height:180,minWarningWidth:180,minWarningHeight:180,previewRatio:.5},INSTAGRAM_STREAM:{placement:k.INSTAGRAM_STREAM,width:1080,height:1080,minWarningWidth:600,minWarningHeight:600,aspectRatio:1,minWarningAspectRatio:j.MIN_ASPECT_RATIO,maxWarningAspectRatio:j.MAX_ASPECT_RATIO,cropKey:'100x100',supportedTypes:[m.AD_VIDEO,m.FEED_URL,m.NEKO_LPP,m.PAGE_POSTS_V2]},INSTAGRAM_STREAM_NO_CROP:{placement:k.INSTAGRAM_STREAM,width:1080,height:1080,minWarningWidth:600,minWarningHeight:315,aspectRatio:0,minWarningAspectRatio:j.MIN_ASPECT_RATIO,maxWarningAspectRatio:j.MAX_ASPECT_RATIO,aspectRatioTolerance:j.ASPECT_RATIO_TOLERANCE,cropKey:i.NO_CROP,supportedTypes:[m.AD_VIDEO,m.FEED_URL,m.NEKO_LPP,m.PAGE_POSTS_V2]},LOGOUT:{placement:k.LOGOUT,width:1200,height:444,minLargeWidth:400,minLargeHeight:150,minWarningWidth:400,minWarningHeight:150,aspectRatio:8/3,cropKey:'400x150',supportedTypes:[m.PAGE_POSTS_V2]}};if(l('events_feed_attachment')){n.EVENT_DESKTOP_FEED={placement:k.DESKTOP_FEED,width:1200,height:628,minLargeWidth:400,minLargeHeight:209,minWarningWidth:254,minWarningHeight:133,aspectRatio:1.91,cropKey:'191x100',supportedTypes:[m.INLINE_RSVP]};n.EVENT_MOBILE_FEED={placement:k.MOBILE_FEED,width:1200,height:628,minLargeWidth:400,minLargeHeight:209,minWarningWidth:254,minWarningHeight:133,aspectRatio:1.91,cropKey:'191x100',supportedTypes:[m.INLINE_RSVP]};n.EVENT_RHC={placement:k.RIGHT_COLUMN,width:1200,height:628,minLargeWidth:400,minLargeHeight:209,minWarningWidth:254,minWarningHeight:133,aspectRatio:1.91,cropKey:'191x100',supportedTypes:[m.INLINE_RSVP]};}else{n.EVENT_DESKTOP_FEED={placement:k.DESKTOP_FEED,width:1200,height:444,minLargeWidth:400,minLargeHeight:150,minWarningWidth:254,minWarningHeight:94,aspectRatio:8/3,cropKey:'400x150',supportedTypes:[m.INLINE_RSVP]};n.EVENT_MOBILE_FEED={placement:k.MOBILE_FEED,width:1200,height:444,minLargeWidth:400,minLargeHeight:150,minWarningWidth:254,minWarningHeight:94,aspectRatio:8/3,cropKey:'400x150',supportedTypes:[m.INLINE_RSVP]};n.EVENT_RHC={placement:k.RIGHT_COLUMN,width:1200,height:444,minLargeWidth:400,minLargeHeight:150,minWarningWidth:254,minWarningHeight:94,aspectRatio:8/3,cropKey:'400x150',supportedTypes:[m.INLINE_RSVP]};}f.exports=n;},null);
__d('AdsPlacementPlatforms',['keyMirrorRecursive'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=h({AUDIENCE_NETWORK:'',FACEBOOK:'',INSTAGRAM:''});f.exports=i;},null);
__d('AdImageSpecsUtils',['AdImageSpecs','AdsAPIAdgroupPaths','AdsPageTypes','AdsPlacementPlatforms','AdsPlacementPlatformUtils','AdsUniformValue','arrayContains','adsGKCheck','adsGetCreativeTypeByCreativeFields','getByPath'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){if(c.__markCompiled)c.__markCompiled();var r={getImageSpecKey:function(s){for(var t in h)if(h[t]===s)return t;return null;},getImageSpecsForAdType:function(s,t){var u=[];Object.keys(h).forEach(function(v){var w=h[v].supportedTypes||[];if(w.indexOf(s)>=0){var x=true;if(h[v].gkSucceeds){x=o(h[v].gkSucceeds);}else if(h[v].gkFails)x=!o(h[v].gkFails);x&&u.push(h[v]);}});if(t)return u.filter(function(v){return t.indexOf(v.placement)>=0;});return u;},getCropImageSpecsForAdType:function(s,t){var u=r.getImageSpecsForAdType(s,t);return r.filterCropImageSpecs(u);},filterCropImageSpecs:function(s){var t=[];return s.sort(function(u,v){return v.width-u.width;}).filter(function(u){if(!u.cropKey||n(t,u.cropKey)&&u.placement!==j.INSTAGRAM_STREAM)return false;t.push(u.cropKey);return true;});},getCropImageSpecsForBulkAdgroups:function(s,t){var u=q(s,i.CREATIVE.OBJECT_TYPE);if(!(u instanceof m))return [];var v=p(null,u.getValue(),null);return r.getCropImageSpecsForAdType(v,t);},getImageSpecForAdType:function(s,t){var u=r.getImageSpecsForAdType(s);for(var v=0;v<u.length;++v){var w=u[v];if(w.placement===t)return w;}return null;},getImageSpecPlacementPlatform:function(s){if(l.hasAnyFacebookPlacement([s.placement]))return k.FACEBOOK;return s.placement===j.INSTAGRAM_STREAM?k.INSTAGRAM:null;}};f.exports=r;},null);
__d('AdsImageValidation',['AdImageSpecs','AdImageSpecsUtils','AdsAPIAdgroupPaths','AdsCFImageTypes','AdsError','AdsErrorType','AdsPageTypes','ApiAdCreativeFields','adsGetCreativeTypeByCreativeFields','fbt','keyMirror'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){'use strict';if(c.__markCompiled)c.__markCompiled();var s={isValidFormat:function(t){return k.hasOwnProperty(t);},isSquare:function(t){return !!(t.getWidth()&&t.getWidth()===t.getHeight());},isExactSize:function(t,u){return (t.getWidth()===u.width&&t.getHeight()===u.height);},isWarningSize:function(t,u){return (t.getWidth()>=u.minWarningWidth&&t.getHeight()>=u.minWarningHeight);},isValidCropSize:function(t,u){return (t[1][0]-t[0][0]>=u.minWarningWidth&&t[1][1]-t[0][1]>=u.minWarningHeight);},isValidAspectRatio:function(t,u){var v=0;if(u.hasOwnProperty('aspectRatioTolerance'))v=u.aspectRatioTolerance;var w=t.getWidth()/t.getHeight();if(u.hasOwnProperty('minWarningAspectRatio')&&w<u.minWarningAspectRatio*(1-v))return false;if(u.hasOwnProperty('maxWarningAspectRatio')&&w>u.maxWarningAspectRatio*(1+v))return false;return true;},isRecommendedSize:function(t,u){return (t.getHeight()>=u.height&&t.getWidth()>=u.width);},isLargeSize:function(t,u){return (s.isRecommendedSize(t,u)||t.getWidth()>=u.minLargeWidth&&t.getHeight()>=u.minLargeHeight);},isSmallSize:function(t,u){return (s.isLargeSize(t,u)||s.isWarningSize(t,u));},hasSmallFormat:function(t){return !!(t.minLargeWidth&&t.minLargeHeight);},isWithinSizeTolerance:function(t,u){var v=u.dimensionTolerance,w=Math.abs(u.height-t.getHeight())<v,x=Math.abs(u.width-t.getWidth())<v;return w&&x;},validate:function(t,u,v){if(u.placement in t.validationMap){v(t,u,t.validationMap[u.placement]);return;}var w=this._imageDimensionsReady.bind(this,t,u,v);if(t.isStockImage()){t.fetchFullSizeDimensions(w);}else t.setDimensionsReadyCallback(w);},validateNow:function(t,u,v,w,x){if(u.placement in t.validationMap)return;if(!t.hasDimensions())return;var y=this._getValidation(t,u,v,w,x);t.validationMap[u.placement]=y;},_imageDimensionsReady:function(t,u,v){var w=this._getValidation(t,u,t.getCrops(),null,true);v(t,u,w);},_getValidation:function(t,u,v,w,x){var y,z,aa,ba=[],ca,da,ea,fa,ga=u.placement,ha=q._({"*":{"*":"Minimum Size: {width} x {height} pixels"}},[q.param('width',u.minWarningWidth,[0]),q.param('height',u.minWarningHeight,[0])]),ia=null;if(u.hasOwnProperty('height')&&u.hasOwnProperty('width'))ia=q._({"*":{"*":"Recommended Size: {width} x {height} pixels"}},[q.param('width',u.width,[0]),q.param('height',u.height,[0])]);var ja=q._("This image is too small. Please use a larger image.")+'\n\n'+ha+(ia?'\n'+ia:''),ka=r(h),la=i.getImageSpecKey(u);switch(la){case ka.EVENT_DESKTOP_FEED:case ka.EVENT_MOBILE_FEED:case ka.EVENT_RHC:break;default:ca=s.isWarningSize(t,u);if(!ca){aa=ja;}else if((ga===n.DESKTOP_FEED||ga===n.MOBILE_FEED)&&s.hasSmallFormat(u)){fa=s.isRecommendedSize(t,u);ea=s.isLargeSize(t,u);da=s.isSmallSize(t,u);if(fa){y=q._("This image will display in high-resolution on Facebook.");}else if(ea&&!fa){y=q._("This image will show in the wider format in News Feed.")+(ia?'\n\n'+ia:'');}else if(da&&!fa)z=q._("Upload a larger image to be eligible for the wider format in News Feed.")+(ia?'\n\n'+ia:'');}if(!x&&!s.isSquare(t)&&(ga===n.INSTAGRAM_STREAM||w)){var ma=h.INSTAGRAM_STREAM.cropKey;if(!v||!v[ma])if(aa){aa=aa+'\n\n'+q._("The image should be square. Please select a square image.");}else aa=q._("The image should be square. Please select a square image or crop the current image");}if(x&&!s.isValidAspectRatio(t,u)&&(ga===n.INSTAGRAM_STREAM||w))if(!v||!v[h.INSTAGRAM_STREAM.cropKey])aa=(aa?aa+'\n\n':'')+q._("You can't use this image for Instagram ads. Crop the image to a square shape, or choose a different image.");if(x&&(ga===n.INSTAGRAM_STREAM||w)){var na=[],oa=v&&v[h.INSTAGRAM_STREAM.cropKey],pa=q._("Your image must be at least {minimum Instagram ad image width} \u00d7 {minimum Instagram ad image height} pixels.",[q.param('minimum Instagram ad image width',h.INSTAGRAM_STREAM_NO_CROP.minWarningWidth),q.param('minimum Instagram ad image height',h.INSTAGRAM_STREAM_NO_CROP.minWarningHeight)]);if(!s.isWarningSize(t,u)){ba.push(new l(m.ADGROUP_CREATIVE_INSTAGRAM_IMAGE_WRONG_DIMENSIONS,pa,{level:l.Level.WARN,path:j.CREATIVE.IMAGE_HASH}));na.push(pa);}else if(oa&&!s.isValidCropSize(v[h.INSTAGRAM_STREAM.cropKey],u)){ba.push(new l(m.ADGROUP_CREATIVE_INSTAGRAM_IMAGE_CROP_WRONG_DIMENSIONS,pa,{level:l.Level.WARN,path:j.CREATIVE.IMAGE_HASH}));na.push(pa);}if(!oa&&!s.isValidAspectRatio(t,u)){var qa=q._("A {maximum Instagram ad image aspect ratio}:1 to {minimum Instagram ad image aspect ratio}:1 aspect ratio is required.",[q.param('maximum Instagram ad image aspect ratio',h.INSTAGRAM_STREAM_NO_CROP.maxWarningAspectRatio),q.param('minimum Instagram ad image aspect ratio',h.INSTAGRAM_STREAM_NO_CROP.minWarningAspectRatio)]);ba.push(new l(m.ADGROUP_CREATIVE_INSTAGRAM_IMAGE_WRONG_RATIO,qa,{level:l.Level.WARN,path:j.CREATIVE.IMAGE_HASH}));na.push(qa);}if(na.length>0){if(na.length>1)na=na.map(function(ra){return q._("{bullet} {error message}",[q.param('bullet','\u2022'),q.param('error message',ra)]);}).join('\n');aa=q._("This image can't be used for Instagram ads")+'\n\n'+na;}}}return {successMessage:y,warningMessage:z,errorMessage:aa,specificErrors:ba};},getValidationByCreative:function(t,u,v,w,x,y){var z=p(u[o.OBJECT_INSTAGRAM_ID],u[o.OBJECT_TYPE],u[o.VIDEO_LIST]),aa=i.getCropImageSpecsForAdType(z,v),ba,ca,da=[],ea,fa;aa.some(function(ga){if(ga.placement===n.INSTAGRAM_STREAM&&y&&ga.cropKey!==h.INSTAGRAM_STREAM_NO_CROP.cropKey)return false;s.validateNow(t,ga,w,x,y);var ha=t.validationMap[ga.placement];if(ha){if(ha.errorMessage){ba=ha.errorMessage;ea=ga.placement;da=ha.specificErrors;return true;}if(!ca&&ha.warningMessage){ca=ha.warningMessage;fa=ga.placement;}}});if(ba)return {message:ba,severity:'error',placement:ea,specificErrors:da};if(ca)return {message:ca,severity:'warning',placement:fa};return null;}};f.exports=s;},null);
__d('AdsImageLegacy',['AdsCFXShutterstockImageByIDStore','AdsImageValidation','CachedDOMImageSizePool','invariant','mergeDeepInto'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=new j(1000,10*60*1000),n=['FullSize','Preview','Thumbnail'];o.prototype.toJSON=function(){var p=this.$AdsImageLegacy1;return {creatives:this.creatives,crops:this.crops,hash:this.$AdsImageLegacy2,height:this.height,name:this.name,previewHeight:this.getPreviewHeight(),previewUrl:this.getPreviewUrl(),previewWidth:this.getPreviewWidth(),stockImageID:this.$AdsImageLegacy3||null,thumbHeight:this.getThumbnailHeight(),thumbWidth:this.getThumbnailWidth(),url:p?p.toString():null,url_128:this.$AdsImageLegacy4||null,validationMap:this.validationMap||null,width:this.width};};o.prototype.clone=function(p){var q=new o();l(q,this,'Clobber');p&&l(q,p,'Clobber');return q;};function o(p){p=p||{};this.creatives=p.creatives||[];this.crops=p.crops||{};this.name=p.name||"";this.$AdsImageLegacy2=p.hash;this.$AdsImageLegacy1=p.url;this.$AdsImageLegacy4=p.url_128;this.$AdsImageLegacy3=p.stockImageID;if(this.isStockImage()){this.$AdsImageLegacy5=p.fullSizeUrl;this.$AdsImageLegacy4=p.url;this.$AdsImageLegacy6=p.thumbWidth;this.$AdsImageLegacy7=p.thumbHeight;this.$AdsImageLegacy8=p.previewUrl;this.$AdsImageLegacy9=p.previewWidth;this.$AdsImageLegacy10=p.previewHeight;!(this.getThumbnailWidth()&&this.getThumbnailHeight())?k(0):undefined;!(this.getPreviewUrl()&&this.getPreviewWidth()&&this.getPreviewHeight())?k(0):undefined;}this.height=p.height;this.width=p.width;this.validationMap=p.validationMap||{};this.$AdsImageLegacy11();}o.prototype.$AdsImageLegacy11=function(){if(this.$AdsImageLegacy1&&!this.hasDimensions())m.get(this.$AdsImageLegacy1,this.$AdsImageLegacy12,this);if(this.$AdsImageLegacy4&&!this.hasThumbnailDimensions())m.get(this.$AdsImageLegacy4,this.$AdsImageLegacy13,this);};o.prototype.isValidated=function(p){var q=this.getValidationMap();if(p)return !!q[p];return !!Object.keys(q).length;};o.prototype.getValidation=function(p){return this.getValidationMap()[p]||{};};o.prototype.getValidationMap=function(){return this.validationMap;};o.prototype.hasValidationError=function(p){var q=this.getValidation(p);return !!q.errorMessage;};o.prototype.getCreatives=function(){return this.creatives;};o.prototype.getCrop=function(p){return this.crops?this.crops[p]:null;};o.prototype.getCrops=function(){var p={};Object.keys(this.crops||{}).forEach((function(q){var r=this.getCrop(q);if(r)p[q]=r;}).bind(this));return p;};o.prototype.getAPICrops=function(){var p=this.getCrops();if(!Object.keys(p).length)return null;return p;};o.prototype.hasDimensions=function(){return this.width!==undefined&&this.height!==undefined;};o.prototype.hasThumbnailDimensions=function(){return this.$AdsImageLegacy6!==undefined&&this.$AdsImageLegacy7!==undefined;};o.prototype.getWidth=function(){return this.getFullSizeWidth()||this.getPreviewWidth()||this.width;};o.prototype.getHeight=function(){return this.getFullSizeHeight()||this.getPreviewHeight()||this.height;};o.prototype.setDimensionsReadyCallback=function(p){if(!p)return;if(this.hasDimensions()){setTimeout(p,0);}else if(this.$AdsImageLegacy1){m.get(this.$AdsImageLegacy1,p);}else{this.$AdsImageLegacy12(0,0);this.$AdsImageLegacy13(0,0);setTimeout(p,0);}};o.prototype.validate=function(p,q){i.validate(this,p,q);};o.prototype.validateNow=function(p){i.validateNow(this,p);};o.prototype.validateNowWithIGLandscapeSupport=function(p,q){i.validateNow(this,p,null,null,q);};o.prototype.getUrl=function(){return this.$AdsImageLegacy1;};o.prototype.getBiggestVersionDetails=function(){if(this.isStockImage())for(var p=0;p<n.length;p++){var q='get'+n[p],r=this[q+'Url']();if(r)return {url:r,width:this[q+'Width'](),height:this[q+'Height']()};}return {url:this.getUrl(),width:this.getWidth(),height:this.getHeight()};};o.prototype.getPreviewUrl=function(){return this.$AdsImageLegacy8;};o.prototype.getPreviewWidth=function(){return this.$AdsImageLegacy9;};o.prototype.getPreviewHeight=function(){return this.$AdsImageLegacy10;};o.prototype.getFullSizeUrl=function(){return this.$AdsImageLegacy5;};o.prototype.setFullSizeUrl=function(p){this.$AdsImageLegacy5=p;};o.prototype.getFullSizeWidth=function(){return this.$AdsImageLegacy14;};o.prototype.getFullSizeHeight=function(){return this.$AdsImageLegacy15;};o.prototype.fetchStockImageDetails=function(p,q){!this.isStockImage()?k(0):undefined;h.addLegacyCallback_DONT_USE_IN_NEW_CODE(this.getStockImageID(),(function(r){if(r.hasError()){q&&q(r.getError());}else if(r.hasValue()){this.$AdsImageLegacy5=r.getValue().get('preview_url');p&&p(this);}}).bind(this));};o.prototype.fetchFullSizeDimensions=function(p,q){!this.isStockImage()?k(0):undefined;if(this.getFullSizeUrl()){this.$AdsImageLegacy16(p);}else this.fetchStockImageDetails(this.$AdsImageLegacy16.bind(this,p),q);};o.prototype.$AdsImageLegacy16=function(p){if(this.hasFullSizeDimensions()){setTimeout(p,0);}else m.get(this.getFullSizeUrl(),function(q,r){this.$AdsImageLegacy14=q;this.$AdsImageLegacy15=r;p&&p();},this);};o.prototype.hasFullSizeDimensions=function(){return !!(this.getFullSizeWidth()&&this.getFullSizeHeight());};o.prototype.getAdAccountHash=function(){return this.$AdsImageLegacy2;};o.prototype.equals=function(p){return this.getUniqueIdentifier()===p.getUniqueIdentifier();};o.prototype.getUniqueIdentifier=function(){if(this.isStockImage())return this.getStockImageID();return this.getHashOrUrl();};o.prototype.getHashOrUrl=function(){return this.getAdAccountHash()||this.getUrl();};o.prototype.isStockImage=function(){return !!this.getStockImageID();};o.prototype.getStockImageID=function(){return this.$AdsImageLegacy3;};o.prototype.getThumbnailUrl=function(){return this.$AdsImageLegacy4;};o.prototype.getThumbnailHeight=function(){return this.$AdsImageLegacy7;};o.prototype.getThumbnailWidth=function(){return this.$AdsImageLegacy6;};o.prototype.$AdsImageLegacy12=function(p,q){this.width=p;this.height=q;};o.prototype.$AdsImageLegacy13=function(p,q){this.$AdsImageLegacy6=p;this.$AdsImageLegacy7=q;};f.exports=o;},null);
__d('AdsCreativeUtils',['AdsAPIAdgroupPaths','AdsAPIObjectives','AdsDateUtils','AdsCreateFlowConfig','AdsCreativeConverter','AdsImageLegacy','AdsPagePostUtils','ApiAdCreativeFields','ApiAdObjectTypes','ApiCreativeTypes','ads-lib-formatters','PagePostTypes','URI','adsGKCheck','getByPath','keyMirror','bolt/util','fbt','AdCreativeType'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y){'use strict';if(c.__markCompiled)c.__markCompiled();var z=c('AdCreativeType').keyToType,aa=3;function ba(ta){ta=ca(ta).concat(ta);var ua={};return ta.filter(function(va){if(va.type===s.STATUS&&!va.message)return false;if(ua[va.id])return false;ua[va.id]=true;return true;});}function ca(ta){var ua=[];for(var va=0;va<ta.length;va++){if(ta[va].is_popular)ua.push(ta[va]);if(ua.length===aa)break;}return ua;}function da(ta){if(!ta||ta.type!==s.OFFER)return false;var ua=ta.expiration_timestamp;return ua<Date.now()/1000;}function ea(ta,ua){if(!ta||!ua)return null;var va;for(var wa=0;wa<ua.length;wa++){va=n.getPostIdBestGuess_BROKEN(ua[wa].id);if(va===ta)return ua[wa];}return null;}function fa(ta){return (ta.comments&&ta.comments.summary&&ta.comments.summary.total_count||0);}function ga(ta){var ua=ha(ta);if(ta.type===s.PHOTO)ua=ta.name&&ta.message?ta.name+" - "+ta.message:ua;var va=pa(ua);if(this.getIsPagePostExpiredOffer(ta))va+=' ('+y._("Expired")+')';return va;}function ha(ta){var ua=ta.message||ta.name||ta.story||'';return ua.replace(/(\r\n|\n|\r)/gm,'');}function ia(ta){if(!ta.created_time)return 0;if(typeof ta.created_time==='number')return ta.created_time;return j.parseISODate(ta.created_time).getTime()/1000;}function ja(ta){var ua;if(ta instanceof m){ua=ta.getThumbnailUrl()||ta.getPreviewUrl()||ta.getUrl();}else ua=ta;return ua;}function ka(ta){return (ta.likes&&ta.likes.summary&&ta.likes.summary.total_count||0);}function la(ta){return ta.shares&&ta.shares.count||0;}function ma(ta){switch(ta){case i.EVENT_RESPONSES:return 'AD_EVENT_RSVP';case i.PAGE_LIKES:return 'AD_FAN_LIKE';case i.VIDEO_VIEWS:return 'AD_VIDEO';case i.OFFER_CLAIMS:case i.POST_ENGAGEMENT:return 'AD_PAGE_POST';case i.CANVAS_APP_ENGAGEMENT:case i.CANVAS_APP_INSTALLS:case i.MOBILE_APP_ENGAGEMENT:case i.MOBILE_APP_INSTALLS:return 'NEKO_LPP';case i.BRAND_AWARENESS:case i.LOCAL_AWARENESS:case i.WEBSITE_CLICKS:case i.WEBSITE_CONVERSIONS:return 'FEED_URL';default:return 'FEED_URL';}}function na(ta){var ua=ma(ta),va=w({AD_FAN_LIKE:null,AD_APPLICATION:null,AD_EVENT_RSVP:null}),wa=babelHelpers._extends({},z[ua]);wa.isAdminOnly=!!va[ua];return wa;}var oa=function(ta,ua){var va,wa,xa;if(x.isObject(ta))for(var ya in ta){if(!ta.hasOwnProperty(ya))continue;var za=new t(ya),ab=za.getQueryData().sk;if(ab==='timeline'){va=ua;}else if(ab==='wall'){wa=ya;}else if(!xa)xa=ya;}return va||wa||xa||ua;},pa=r.createTextTruncator(k.MAX_PAGE_POST_LEN,y._("No message"));function qa(ta,ua){return new t('https://graph.facebook.com/act_'+ta+'/adimages').addQueryData({hashes:[ua],redirect:true}).toString();}function ra(ta){var ua=l.getCreativeType(ta),va=ta[o.OBJECT_TYPE],wa=ta[o.OBJECT_STORY_SPEC],xa=wa&&!!wa.video_data;return va===p.VIDEO||xa||ua===q.PREMIUM_FEED_VIDEO_AD;}function sa(ta){return v(ta,h.CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.CALL_TO_ACTION.TYPE.slice(1),null);}f.exports={filterPagePosts:ba,getCallToActionType:sa,getDefaultLinkURL:oa,getImageURLFromHash:qa,getIsPagePostExpiredOffer:da,getPagePostFromStoryId:ea,getPostCommentCount:fa,getPostContent:ga,getPostDate:ia,getPostImageURL:ja,getPostLikeCount:ka,getPostShareCount:la,getPrimaryCreativeConfig:na,getPrimaryCreativeKey:ma,getRawPostContent:ha,isVideoCreative:ra};},null);
__d('AdsDelegateCategory',['keyMirror'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=h({OBJECTIVE:null});f.exports=i;},null);
__d('AdsDelegateRegistry',['AdsDelegateCategory','Map','invariant'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k=new i(),l={register:function(m,n,o,p){!(m in h)?j(0):undefined;if(!k.has(m))k.set(m,new i());var q=k.get(m);if(!q.has(n))q.set(n,new i());var r=q.get(n);r.set(o,p);},isTypeRegistered:function(m,n){if(!k.has(m))return false;var o=k.get(m);return o.has(n);},getDelegate:function(m,n,o){var p=k.get(m);if(p){var q=p.get(n);if(q)return q.get(o);}return null;},getDelegateFactory:function(m){!(m in h&&k.has(m))?j(0):undefined;var n=k.get(m);return function(o){return {getDelegateForType:function(p){var q=n.get(p);!q?j(0):undefined;var r=q.get(o);!r?j(0):undefined;return r;}};};}};f.exports=l;},null);
__d('AdsDelegate',['AdsDelegateRegistry','abstractMethod'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();j.prototype.getDelegateResolver=function(){return this.constructor.getDelegateResolver();};j.getDelegateCategory=function(){return i('AdsDelegate','getDelegateCategory');};j.getDelegateType=function(){return i('AdsDelegate','getDelegateType');};j.getDelegateResolver=function(){return i('AdsDelegate','getDelegateResolver');};j.register=function(){var k=this.getDelegateClasses();k.forEach(function(l){h.register(l.getDelegateCategory(),l.getDelegateType(),l.getDelegateResolver(),new l());});};j.get=function(k){var l=this.getDelegateType(),m=this.getDelegateCategory();if(!h.isTypeRegistered(m,l))this.register();var n=h.getDelegate(m,l,k);if(!n){var o=this.getDefaultDelegateClass();n=new o();}return n;};j.getDelegateClasses=function(){return i('AdsDelegate','getDelegateClasses');};j.getDefaultDelegateClass=function(){return this;};function j(){}f.exports=j;},null);
__d('AdsObjectiveDelegate',['AdsDelegate','AdsDelegateCategory','abstractMethod'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';k=babelHelpers.inherits(m,h);l=k&&k.prototype;m.prototype.getObjective=function(){return this.getDelegateResolver();};m.getDelegateCategory=function(){return i.OBJECTIVE;};m.getDelegateResolver=function(){return this.getObjective();};m.getObjective=function(){return j('AdsObjectiveDelegate','getObjective');};function m(){k.apply(this,arguments);}f.exports=m;},null);
__d('AdsObjectiveDelegateTypes',['keyMirror'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=h({ADGROUP_SPEC_PATH:null,BIDDING:null,BUDGET:null,CF_ADGROUP:null,CORE:null,CREATIVE:null,DESTINATION_EDITOR:null,DESTINATION_SELECTION:null,KPI_OBJECTIVE_CONFIG:null,OUTPUT_API_SPEC:null,PLACEMENT:null,PREVIEW:null,TARGETING:null,AUCTION_CREATION_WIZARD:null});f.exports=i;},null);
__d('AdsPlacementDelegate',['AdsAPIAdgroupFields','AdsAccountCapabilities','AdsAccountUtils','AdsBuyingTypes','AdsCreativeUtils','AdsObjectiveDelegate','AdsObjectiveDelegateTypes','AdsObjectiveToInstagramCapabilityMap','AdsPageTypes','AdsPreviewApiFormats','Set','AdsCanvasAppEngagementPlacementDelegate','AdsCanvasAppInstallsPlacementDelegate','AdsEventResponsesPlacementDelegate','AdsInstagramBrandAwarenessPlacementDelegate','AdsLeadGenerationPlacementDelegate','AdsLocalAwarenessPlacementDelegate','AdsMobileAppEngagementPlacementDelegate','AdsMobileAppInstallsPlacementDelegate','AdsOfferClaimsPlacementDelegate','AdsPageLikesPlacementDelegate','AdsPostEngagementPlacementDelegate','AdsProductCatalogSalesPlacementDelegate','AdsVideoViewsPlacementDelegate','AdsWebsiteClicksPlacementDelegate','AdsWebsiteConversionsPlacementDelegate','AdsBrandAwarenessPlacementDelegate'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){if(c.__markCompiled)c.__markCompiled();var s,t;'use strict';s=babelHelpers.inherits(u,m);t=s&&s.prototype;u.getDelegateType=function(){return n.PLACEMENT;};u.getDelegateClasses=function(){return [c('AdsCanvasAppEngagementPlacementDelegate'),c('AdsCanvasAppInstallsPlacementDelegate'),c('AdsEventResponsesPlacementDelegate'),c('AdsInstagramBrandAwarenessPlacementDelegate'),c('AdsLeadGenerationPlacementDelegate'),c('AdsLocalAwarenessPlacementDelegate'),c('AdsMobileAppEngagementPlacementDelegate'),c('AdsMobileAppInstallsPlacementDelegate'),c('AdsOfferClaimsPlacementDelegate'),c('AdsPageLikesPlacementDelegate'),c('AdsPostEngagementPlacementDelegate'),c('AdsProductCatalogSalesPlacementDelegate'),c('AdsVideoViewsPlacementDelegate'),c('AdsWebsiteClicksPlacementDelegate'),c('AdsWebsiteConversionsPlacementDelegate'),c('AdsBrandAwarenessPlacementDelegate')];};u.prototype.getPageTypes=function(v,w,x){var y=this.__getPageTypes(v,w,x);if(j.getIsPremiumFromCapabilities(v)&&j.getIsCorporateFromCapabilities(v))y.add(p.HOME);if(x)y.add(p.LOGOUT);return y;};u.prototype.__getPageTypes=function(v,w,x){return new r([p.DESKTOP_FEED,p.MOBILE_FEED,p.RIGHT_COLUMN]);};u.prototype.getPageTypesForCreative=function(v,w,x,y){return this.getPageTypes(w,x,y);};u.prototype.getPageTypesForAdgroup=function(v,w,x,y,z){return this.getPageTypes(x,y,z);};u.prototype.isFANEnabled=function(v){return false;};u.prototype.shouldDisableOSSelection=function(){return false;};u.prototype.__canCreateInstagramAds=function(v,w){if(w!==k.AUCTION&&w!==k.RESERVED)return false;if(w===k.RESERVED&&!j.hasCapabilityFromList(v,i.CAN_CREATE_INSTAGRAM_REACH_FREQUENCY_ADS))return false;var x=o.get(this.getObjective());return (x&&j.hasCapabilityFromList(v,x));};u.prototype.getValidFormatsForPageType=function(v){var w=new r();switch(v){case p.DESKTOP_FEED:w.add(q.DESKTOP_FEED_STANDARD);break;case p.MOBILE_FEED:w.add(q.MOBILE_FEED_BASIC);w.add(q.MOBILE_FEED_STANDARD);break;case p.MOBILE_EXTERNAL:w.add(q.MOBILE_BANNER);w.add(q.MOBILE_INTERSTITIAL);w.add(q.MOBILE_NATIVE);break;case p.RIGHT_COLUMN:case p.HOME:w.add(q.RIGHT_COLUMN_STANDARD);break;case p.INSTAGRAM_STREAM:w.add(q.INSTAGRAM_STANDARD);break;case p.LEGACY_EXTERNAL:case p.LOGOUT:break;case p.NONE:break;default:break;}return w;};u.prototype.isFeaturePhoneFormatSupported=function(v){var w=v[h.CREATIVE];if(l.isVideoCreative(w))return false;return true;};function u(){s.apply(this,arguments);}f.exports=u;},null);
__d('AdsCanvasAppPlacementDelegate',['AdsAppPlacementDelegate','AdsPageTypes','Set'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';k=babelHelpers.inherits(m,h);l=k&&k.prototype;m.prototype.__getPageTypes=function(n,o,p){return new j([i.DESKTOP_FEED,i.RIGHT_COLUMN]);};function m(){k.apply(this,arguments);}f.exports=m;},null);
__d('AdsCanvasAppEngagementPlacementDelegate',['AdsAPIObjectives','AdsCanvasAppPlacementDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.CANVAS_APP_ENGAGEMENT;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsCanvasAppInstallsPlacementDelegate',['AdsAPIObjectives','AdsCanvasAppPlacementDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.CANVAS_APP_INSTALLS;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsMobileAppEngagementPlacementDelegate',['AdsAPIObjectives','AdsMobileAppPlacementDelegate','AdsPageTypes'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';k=babelHelpers.inherits(m,i);l=k&&k.prototype;m.getObjective=function(){return h.MOBILE_APP_ENGAGEMENT;};m.prototype.__getPageTypes=function(n,o,p){var q=l.__getPageTypes.call(this,n,o,p);if(this.__canCreateInstagramAds(n,o))q.add(j.INSTAGRAM_STREAM);return q;};function m(){k.apply(this,arguments);}f.exports=m;},null);
__d('AdsAPICallToActionPaths',['ApiCallToActionFields','CallToActionValueFields','generatePaths'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k=[{pathKeys:[],expandsTo:h},{pathKeys:['VALUE'],expandsTo:i}],l=j(k);f.exports=l;},null);
__d('AdsCreativeSpecTypes',['ApiAdCreativeStorySpecFields'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i={STANDARD:'standard',LINK_DATA:h.LINK_DATA,OFFER_DATA:h.OFFER_DATA,PHOTO_DATA:h.PHOTO_DATA,TEXT_DATA:h.TEXT_DATA,TEMPLATE_DATA:h.TEMPLATE_DATA,VIDEO_DATA:h.VIDEO_DATA};f.exports=i;},null);
__d('AdsWebsiteAdUtils',['ApiAdObjectTypes','AdsAPIAdgroupPaths','AdsAPIObjectives','getByPath'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l={isWebsiteCreative:function(m){var n=k(m,i.CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.path.slice(1));return !!n;},isMultiProductAdgroup:function(m){var n=k(m,i.CREATIVE.path);return l.isMultiProductCreative(n);},isMultiProductCreative:function(m){var n=k(m,i.CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.CHILD_ATTACHMENTS.slice(1));return !!n;},isWebsiteObjective:function(m){return m===j.WEBSITE_CLICKS||m===j.WEBSITE_CONVERSIONS;},isWebsiteVideoAdgroup:function(m,n){var o=k(m,i.CREATIVE.OBJECT_TYPE);return l.isWebsiteObjective(n)&&o===h.VIDEO;},getMultiProductCount:function(m){var n=k(m,i.CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.CHILD_ATTACHMENTS.slice(1));if(!n)return 0;return n.length;},getMultiVideoProductCount:function(m){var n=k(m,i.CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.CHILD_ATTACHMENTS.slice(1));if(!n)return 0;var o=0;n.forEach(function(p){if(p.video_id)o++;});return o;}};f.exports=l;},null);
__d('AdsObjectStorySpecUtils',['AdsAPIAdgroupPaths','AdsAPIObjectives','AdsCreativeSpecTypes','AdsWebsiteAdUtils','ApiAdCreativeStorySpecFields','ApiObjectStorySpecLinkFields','GraphAPIFieldUtils','GraphAdCreativeObjectStorySpecNode','GraphAdCreativeLinkDataNode','getByPath','getObjectValuesRecursive','invariant','mergeDeep'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){'use strict';if(c.__markCompiled)c.__markCompiled();function u(ma,na,oa,pa){if(na===oa)return ma;var qa=fa(ma,na);return ga(qa,oa,pa);}function v(ma,na){var oa=fa(ma[na],na);return oa.call_to_action;}function w(ma,na){var oa=fa(ma[na],na);return oa.display_url;}function x(ma,na){var oa=fa(ma[na],na);return oa.headline;}function y(ma,na){var oa=fa(ma[na],na);return oa.link;}function z(ma,na){var oa=fa(ma[na],na);return oa.link_description;}function aa(ma,na){var oa=fa(ma[na],na);return oa.message;}function ba(ma){return !!q(ma,h.CREATIVE.OBJECT_STORY_SPEC.PAGE_ID.slice(2));}function ca(ma){return !!q(ma,h.CREATIVE.OBJECT_STORY_SPEC.INSTAGRAM_ACTOR_ID.slice(2));}function da(ma){return ba(ma)||ca(ma);}function ea(ma){var na=r(ma||{});return na.every(function(oa){return oa==null;});}function fa(ma,na){var oa={};switch(na){case j.LINK_DATA:oa.call_to_action=ia(ma,h.CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.CALL_TO_ACTION.path);oa.display_url=ia(ma,h.CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.CAPTION);oa.headline=ia(ma,h.CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.NAME);oa.link=ia(ma,h.CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.LINK);oa.link_description=ia(ma,h.CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.DESCRIPTION);oa.message=ia(ma,h.CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.MESSAGE);oa.image_hash=ia(ma,h.CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.IMAGE_HASH);oa.image_url=ia(ma,h.CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.PICTURE);break;case j.PHOTO_DATA:oa.image_hash=ia(ma,h.CREATIVE.OBJECT_STORY_SPEC.PHOTO_DATA.IMAGE_HASH);oa.image_url=ia(ma,h.CREATIVE.OBJECT_STORY_SPEC.PHOTO_DATA.URL);oa.message=ia(ma,h.CREATIVE.OBJECT_STORY_SPEC.PHOTO_DATA.CAPTION);break;case j.OFFER_DATA:oa.message=ia(ma,h.CREATIVE.OBJECT_STORY_SPEC.OFFER_DATA.MESSAGE);oa.image_url=ia(ma,h.CREATIVE.OBJECT_STORY_SPEC.OFFER_DATA.IMAGE_URL);break;case j.TEXT_DATA:oa.message=ia(ma,h.CREATIVE.OBJECT_STORY_SPEC.TEXT_DATA.MESSAGE);break;case j.VIDEO_DATA:oa.call_to_action=ia(ma,h.CREATIVE.OBJECT_STORY_SPEC.VIDEO_DATA.CALL_TO_ACTION.path);oa.display_url=ia(ma,h.CREATIVE.OBJECT_STORY_SPEC.VIDEO_DATA.CALL_TO_ACTION.VALUE.CAPTION);oa.headline=ia(ma,h.CREATIVE.OBJECT_STORY_SPEC.VIDEO_DATA.CALL_TO_ACTION.VALUE.LINK_TITLE);oa.link_description=ia(ma,h.CREATIVE.OBJECT_STORY_SPEC.VIDEO_DATA.CALL_TO_ACTION.VALUE.LINK_DESCRIPTION);oa.message=ia(ma,h.CREATIVE.OBJECT_STORY_SPEC.VIDEO_DATA.DESCRIPTION);oa.link=ia(ma,h.CREATIVE.OBJECT_STORY_SPEC.VIDEO_DATA.CALL_TO_ACTION.VALUE.LINK);break;}return oa;}function ga(ma,na,oa){switch(na){case j.LINK_DATA:var pa={call_to_action:ha(ma,na,oa),caption:ma.display_url,description:ma.link_description,image_hash:ma.image_hash,link:ma.link,message:ma.message,name:ma.headline,picture:ma.image_url};return pa;case j.PHOTO_DATA:return {caption:ma.message,image_hash:ma.image_hash,url:ma.image_url};case j.OFFER_DATA:return {image_url:ma.image_url,message:ma.message};case j.TEXT_DATA:return {message:ma.message};case j.VIDEO_DATA:var qa={call_to_action:ha(ma,na,oa),description:ma.message};return qa;}return {};}function ha(ma,na,oa){switch(na){case j.LINK_DATA:if((k.isWebsiteObjective(oa)||oa===i.BRAND_AWARENESS)&&ma.call_to_action)return {type:ma.call_to_action.type};return ma.call_to_action;case j.VIDEO_DATA:var pa={};if(ma.link)pa.link=ma.link;if(ma.display_url)pa.link_caption=ma.display_url;if(ma.link_description)pa.link_description=ma.link_description;if(ma.headline)pa.link_title=ma.headline;return t(ma.call_to_action,{value:pa});default:return {};}}function ia(ma,na){!(na[0]===h.CREATIVE.OBJECT_STORY_SPEC.path[0]&&na[1]===h.CREATIVE.OBJECT_STORY_SPEC.path[1])?s(0):undefined;var oa=na.slice(3);return q(ma,oa);}function ja(){return n.updateFieldWithSubfields([].concat(o.graphDefaultFields),l.LINK_DATA,[].concat(p.graphDefaultFields).concat([m.EVENT_ID]));}function ka(ma){return la.hasActorID(q(ma,h.CREATIVE.OBJECT_STORY_SPEC.path));}var la={convert:u,getCallToAction:v,getDisplayURL:w,getFields:ja,getHeadline:x,getLink:y,getLinkDescription:z,getMessage:aa,hasActorID:da,hasPageID:ba,isEmpty:ea,isUsingObjectStorySpec:ka};f.exports=la;},null);
__d('AdsObjectTypeUtils',['AdsAPIAdgroupPaths','AdsAPIObjectives','AdsCreativeSpecTypes','ApiAdObjectTypes','getByPath'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();function m(s,t){switch(s){case k.PHOTO:return j.PHOTO_DATA;case k.SHARE:if(t===i.PRODUCT_CATALOG_SALES)return j.TEMPLATE_DATA;return j.LINK_DATA;case k.STATUS:return j.TEXT_DATA;case k.VIDEO:return j.VIDEO_DATA;case k.OFFER:return j.OFFER_DATA;default:return j.STANDARD;}}function n(s){var t=l(s,h.CREATIVE.OBJECT_STORY_SPEC.PHOTO_DATA.path),u=l(s,h.CREATIVE.OBJECT_STORY_SPEC.VIDEO_DATA.path),v=l(s,h.CREATIVE.OBJECT_STORY_SPEC.OFFER_DATA.path),w=l(s,h.CREATIVE.OBJECT_STORY_SPEC.TEXT_DATA.path),x=l(s,h.CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.path),y=l(s,h.CREATIVE.OBJECT_STORY_SPEC.TEMPLATE_DATA.path);if(t)return k.PHOTO;if(u)return k.VIDEO;if(v)return k.OFFER;if(w)return k.STATUS;if(x||y)return k.SHARE;return null;}function o(s){switch(s){case i.BRAND_AWARENESS:case i.POST_ENGAGEMENT:return k.PHOTO;case i.CANVAS_APP_ENGAGEMENT:case i.CANVAS_APP_INSTALLS:case i.EVENT_RESPONSES:case i.LEAD_GENERATION:case i.LOCAL_AWARENESS:case i.MOBILE_APP_ENGAGEMENT:case i.MOBILE_APP_INSTALLS:case i.PRODUCT_CATALOG_SALES:case i.WEBSITE_CLICKS:case i.WEBSITE_CONVERSIONS:return k.SHARE;case i.INSTAGRAM_BRAND_AWARENESS:return k.INSTAGRAM_MEDIA;case i.OFFER_CLAIMS:return k.OFFER;case i.PAGE_LIKES:return k.PAGE;case i.VIDEO_VIEWS:return k.VIDEO;}return null;}function p(s){return (s===k.OFFER||s===k.PHOTO||s===k.SHARE||s===k.STATUS||s===k.VIDEO);}function q(s){if(p(s)||s===k.PAGE)return true;return false;}var r={getCreativeSpecType:m,getDefaultObjectType:o,getObjectTypeFromCreativeSpecType:n,isPagePostObjectType:p,objectTypeRequiresActor:q};f.exports=r;},null);
__d('AdsAdgroupSpecUtils',['AdsAPIAdgroupFields','AdsAPIAdgroupPaths','AdsAPICallToActionPaths','AdsAPIObjectives','AdsCreativeSpecTypes','AdsObjectStorySpecUtils','AdsObjectTypeUtils','ApiAdObjectTypes','ApiAdCreativeFields','getByPath'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r={getCallToAction:s,getCallToActionType:t,getDestinationID:u,getDestinationURL:v,getDisplayURL:w,getHeadline:x,getImpressionControlMap:y,getLink:z,getLinkDescription:aa,getMessage:ba,getObjectType:ca,getPageID:da,getPagePostID:ea,getVideoData:fa,canCropImage:ga,isAppLinkDataEligible:ha,isCarouselAd:ma,isLinkDataEligible:ia,isPhotoDataEligible:ja,isTemplateDataEligible:ka,isVideoAd:na,isVideoObjectType:la};function s(oa,pa){var qa=q(oa,i.CREATIVE.OBJECT_TYPE),ra=q(oa,i.CREATIVE.OBJECT_STORY_SPEC.path),sa=n.getCreativeSpecType(qa,pa);if(sa===l.STANDARD)return null;if(!ra)return null;return m.getCallToAction(ra,sa);}function t(oa,pa){var qa=q(oa,i.CREATIVE.OBJECT_TYPE),ra=n.getCreativeSpecType(qa,pa);if(ra===l.STANDARD)return q(oa,i.CREATIVE.CALL_TO_ACTION_TYPE);return q(r.getCallToAction(oa,pa),j.TYPE);}function u(oa){return q(oa,[h.CREATIVE,p.OBJECT_ID]);}function v(oa){return q(oa,[h.CREATIVE,p.OBJECT_STORY_SPEC,'link_data','link']);}function w(oa,pa){var qa=q(oa,i.CREATIVE.OBJECT_TYPE),ra=q(oa,i.CREATIVE.OBJECT_STORY_SPEC.path),sa=n.getCreativeSpecType(qa,pa);if(!ra)return null;return m.getDisplayURL(ra,sa);}function x(oa,pa){var qa=q(oa,i.CREATIVE.OBJECT_TYPE),ra=q(oa,i.CREATIVE.OBJECT_STORY_SPEC.path),sa=n.getCreativeSpecType(qa,pa);if(sa===l.STANDARD)return q(oa,i.CREATIVE.TITLE);if(!ra)return null;return m.getHeadline(ra,sa);}function y(oa){var pa=q(oa,i.IMPRESSION_CONTROL_MAP);pa&&pa.length>1;if(pa&&pa.length>0)return pa[0];return null;}function z(oa,pa){var qa=q(oa,i.CREATIVE.OBJECT_TYPE),ra=q(oa,i.CREATIVE.OBJECT_STORY_SPEC.path),sa=n.getCreativeSpecType(qa,pa);if(qa===o.DOMAIN)return q(oa,i.CREATIVE.OBJECT_URL);if(qa===o.INSTAGRAM_MEDIA)return q(oa,i.CREATIVE.LINK_URL);if(sa===l.STANDARD)return q(oa,i.CREATIVE.LINK_URL);if(!ra)return null;return m.getLink(ra,sa);}function aa(oa,pa){var qa=q(oa,i.CREATIVE.OBJECT_TYPE),ra=q(oa,i.CREATIVE.OBJECT_STORY_SPEC.path),sa=n.getCreativeSpecType(qa,pa);if(!ra)return null;return m.getLinkDescription(ra,sa);}function ba(oa,pa){var qa=q(oa,i.CREATIVE.OBJECT_TYPE),ra=q(oa,i.CREATIVE.OBJECT_STORY_SPEC.path),sa=n.getCreativeSpecType(qa,pa);if(sa===l.STANDARD)return q(oa,i.CREATIVE.BODY);if(!ra)return null;return m.getMessage(ra,sa);}function ca(oa){return q(oa,i.CREATIVE.OBJECT_TYPE);}function da(oa){return q(oa,[h.CREATIVE,p.OBJECT_STORY_SPEC,'page_id']);}function ea(oa){return q(oa,[h.CREATIVE,p.OBJECT_STORY_ID]);}function fa(oa){return q(oa,i.CREATIVE.OBJECT_STORY_SPEC.VIDEO_DATA.path);}function ga(oa,pa){if(pa===o.PHOTO)return false;return (ia(oa)||ha(oa)||oa===k.PAGE_LIKES);}function ha(oa){return (oa===k.CANVAS_APP_INSTALLS||oa===k.CANVAS_APP_ENGAGEMENT||oa===k.MOBILE_APP_INSTALLS||oa===k.MOBILE_APP_ENGAGEMENT);}function ia(oa){return (oa===k.BRAND_AWARENESS||oa===k.EVENT_RESPONSES||oa===k.LEAD_GENERATION||oa===k.LOCAL_AWARENESS||oa===k.WEBSITE_CLICKS||oa===k.WEBSITE_CONVERSIONS);}function ja(oa){return (oa===k.BRAND_AWARENESS||oa===k.POST_ENGAGEMENT);}function ka(oa){return (oa===k.PRODUCT_CATALOG_SALES);}function la(oa,pa){return (oa===k.VIDEO_VIEWS||oa===k.PAGE_LIKES&&pa!==o.PAGE||pa===o.VIDEO);}function ma(oa){var pa=q(oa,i.CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.CHILD_ATTACHMENTS);return Array.isArray(pa)&&pa.length>0;}function na(oa){var pa=q(oa,i.CREATIVE.OBJECT_TYPE);return pa===o.VIDEO;}f.exports=r;},null);
__d('AdsBrandAwarenessPlacementDelegate',['AdsAPIObjectives','AdsPageTypes','AdsPlacementDelegate','Set'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l,m;'use strict';l=babelHelpers.inherits(n,j);m=l&&l.prototype;n.getObjective=function(){return h.BRAND_AWARENESS;};n.prototype.__getPageTypes=function(o,p,q){var r=new k([i.DESKTOP_FEED,i.MOBILE_FEED]);if(this.__canCreateInstagramAds(o,p))r.add(i.INSTAGRAM_STREAM);return r;};function n(){l.apply(this,arguments);}f.exports=n;},null);
__d('AdsEventResponsesPlacementDelegate',['AdsAPIObjectives','AdsPlacementDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.EVENT_RESPONSES;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsInstagramBrandAwarenessPlacementDelegate',['AdsAPIObjectives','AdsPageTypes','AdsPlacementDelegate','Set'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l,m;'use strict';l=babelHelpers.inherits(n,j);m=l&&l.prototype;n.getObjective=function(){return h.INSTAGRAM_BRAND_AWARENESS;};n.prototype.getPageTypes=function(o,p,q){var r=m.getPageTypes.call(this,o,p,q);r['delete'](i.LOGOUT);return r;};n.prototype.__getPageTypes=function(o,p,q){return new k([i.INSTAGRAM_STREAM]);};function n(){l.apply(this,arguments);}f.exports=n;},null);
__d('AdsLeadGenerationPlacementDelegate',['AdsAPIObjectives','AdsPageTypes','AdsPlacementDelegate','Set'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l,m;'use strict';l=babelHelpers.inherits(n,j);m=l&&l.prototype;n.getObjective=function(){return h.LEAD_GENERATION;};n.prototype.__getPageTypes=function(o,p,q){return new k([i.MOBILE_FEED]);};function n(){l.apply(this,arguments);}f.exports=n;},null);
__d('AdsLocalAwarenessPlacementDelegate',['AdsAdgroupSpecUtils','AdsAPIObjectives','AdsCallToActionTypes','AdsPageTypes','AdsPlacementDelegate','Set'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n,o;'use strict';n=babelHelpers.inherits(p,l);o=n&&n.prototype;p.getObjective=function(){return i.LOCAL_AWARENESS;};p.prototype.getPageTypesForCreative=function(q,r,s,t){if(q.callToActionType===j.TYPES.CALL_NOW.name)return new m([k.MOBILE_FEED]);return new m([k.DESKTOP_FEED,k.MOBILE_FEED]);};p.prototype.__getPageTypes=function(q,r,s){return new m([k.DESKTOP_FEED,k.MOBILE_FEED]);};p.prototype.getPageTypesForAdgroup=function(q,r,s,t,u){var v=h.getCallToActionType(q,this.getObjective());if(v===j.TYPES.CALL_NOW.name)return new m([k.MOBILE_FEED]);return new m([k.DESKTOP_FEED,k.MOBILE_FEED]);};function p(){n.apply(this,arguments);}f.exports=p;},null);
__d('AdsOfferClaimsPlacementDelegate',['AdsAPIObjectives','AdsPlacementDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.OFFER_CLAIMS;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsPageLikesPlacementDelegate',['AdsAdgroupSpecUtils','AdsAPIObjectives','AdsPageTypes','AdsPlacementDelegate','Set'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m,n;'use strict';m=babelHelpers.inherits(o,k);n=m&&m.prototype;o.getObjective=function(){return i.PAGE_LIKES;};o.prototype.getPageTypesForCreative=function(p,q,r,s){if(p.isVideoCreative)return new l([j.DESKTOP_FEED,j.MOBILE_FEED]);return this.getPageTypes(q);};o.prototype.getPageTypesForAdgroup=function(p,q,r,s,t){if(h.isVideoAd(p))return new l([j.DESKTOP_FEED,j.MOBILE_FEED]);return this.getPageTypes(r,s,t);};function o(){m.apply(this,arguments);}f.exports=o;},null);
__d('AdsPostEngagementPlacementDelegate',['AdsAPIObjectives','AdsPageTypes','AdsPlacementDelegate','PagePostTypes','Set'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m,n;'use strict';m=babelHelpers.inherits(o,j);n=m&&m.prototype;o.getObjective=function(){return h.POST_ENGAGEMENT;};o.prototype.__getPageTypes=function(p,q,r){var s=n.__getPageTypes.call(this,p,q,r);if(this.__canCreateInstagramAds(p,q))s.add(i.INSTAGRAM_STREAM);return s;};o.prototype.getPageTypesForCreative=function(p,q,r,s){if(p.pagePostType&&p.pagePostType===k.STATUS)return new l([i.DESKTOP_FEED,i.MOBILE_FEED]);return this.getPageTypes(q);};o.prototype.getPageTypesForAdgroup=function(p,q,r,s,t){if(q.pagePostType&&q.pagePostType===k.STATUS)return new l([i.DESKTOP_FEED,i.MOBILE_FEED]);return this.getPageTypes(r,s,t);};function o(){m.apply(this,arguments);}f.exports=o;},null);
__d('AdsProductCatalogSalesPlacementDelegate',['AdsAccountCapabilities','AdsAccountUtils','AdsAPIObjectives','AdsPageTypes','AdsPlacementDelegate','Set'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n,o;'use strict';n=babelHelpers.inherits(p,l);o=n&&n.prototype;p.getObjective=function(){return j.PRODUCT_CATALOG_SALES;};p.prototype.__getPageTypes=function(q,r,s){var t=o.__getPageTypes.call(this,q,r,s);if(this.isFANEnabled(q))t.add(k.MOBILE_EXTERNAL);return t;};p.prototype.isFANEnabled=function(q){return i.hasCapabilityFromList(q,h.CAN_USE_MOBILE_EXTERNAL_PAGE_TYPE_FOR_LPP);};function p(){n.apply(this,arguments);}f.exports=p;},null);
__d('AdsVideoViewsPlacementDelegate',['AdsAdgroupSpecUtils','AdsAPIAdgroupPaths','AdsAPIObjectives','AdsPageTypes','AdsPlacementDelegate','AdsPreviewApiFormats','Set','getByPath'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){if(c.__markCompiled)c.__markCompiled();var p,q;'use strict';p=babelHelpers.inherits(r,l);q=p&&p.prototype;r.getObjective=function(){return j.VIDEO_VIEWS;};r.prototype.__getPageTypes=function(s,t,u){var v=q.__getPageTypes.call(this,s,t,u);if(this.__canCreateInstagramAds(s,t))v.add(k.INSTAGRAM_STREAM);return v;};r.prototype.getPageTypesForCreative=function(s,t,u,v){if(s.isUsingExistingPost)return new n([k.DESKTOP_FEED,k.MOBILE_FEED,k.RIGHT_COLUMN]);return this.getPageTypes(t,u,v);};r.prototype.getValidFormatsForPageType=function(s){if(s===k.MOBILE_FEED)return new n([m.MOBILE_FEED_STANDARD]);return q.getValidFormatsForPageType.call(this,s);};r.prototype.getPageTypesForAdgroup=function(s,t,u,v,w){var x=h.getPagePostID(s);if(x)return new n([k.DESKTOP_FEED,k.MOBILE_FEED,k.RIGHT_COLUMN]);return this.getPageTypes(u,v,w);};r.prototype.isFeaturePhoneFormatSupported=function(s){return false;};function r(){p.apply(this,arguments);}f.exports=r;},null);
__d('AdsWebsiteClicksPlacementDelegate',['AdsAPIObjectives','AdsWebsitePlacementDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.WEBSITE_CLICKS;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsWebsiteConversionsPlacementDelegate',['AdsAPIObjectives','AdsWebsitePlacementDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.WEBSITE_CONVERSIONS;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsPlacementMobileFeedOptions',['keyMirror'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=h({NONE:null,SIMPLE:null,ADVANCED:null});f.exports=i;},null);
__d('AdsUserDeviceTypes',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={ANDROID:'Android',FEATURE_PHONE:'Feature_Phone',IOS:'iOS'};f.exports=h;},null);
__d('AdsPlacementUtils',['AdsAccountCapabilities','AdsAccountUtils','AdsAPICampaignPaths','AdsAPIObjectives','AdsAPITargetFields','AdsAPIToplineProductTypes','AdsAppUtils','AdsBuyingTypes','AdsGraphAPI','AdsObjectiveToInstagramCapabilityMap','AdsPageTypes','AdsPageTypesMigration','AdsPlacementDelegate','AdsPlacementMobileFeedOptions','AdsPreviewApiFormats','AdsUserDeviceTypes','Set','StrSet','arrayContains','getByPath','whitelistObjectKeys','ads-app-platforms'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba){'use strict';if(c.__markCompiled)c.__markCompiled();var ca=c('ads-app-platforms').MOBILE_STORE,da=new y([r.DESKTOP_FEED,r.MOBILE_FEED,r.MOBILE_EXTERNAL,r.RIGHT_COLUMN,r.HOME,r.INSTAGRAM_STREAM,r.LOGOUT,r.LEGACY_EXTERNAL]),ea=new y([r.HOME,r.LOGOUT]);function fa(ka,la){return ka?z(ka,la):false;}function ga(ka){return fa(ka,h.CAN_USE_MOBILE_EXTERNAL_PAGE_TYPE);}function ha(ka){return fa(ka,h.CAN_USE_MOBILE_EXTERNAL_PAGE_TYPE_FOR_LPP);}function ia(ka,la){var ma=q.get(la);return (!!ma&&fa(ka,ma)&&fa(ka,h.HAS_INSTAGRAM_PLACEMENT_DEFAULT_ON));}var ja={PLACEMENT_TARGET_FIELDS:[l.PAGE_TYPES,l.USER_DEVICE,l.USER_OS,l.WIRELESS_CARRIER],getConfig:function(ka,la,ma,na){var oa=ja.getPageTypes(ka,la,ma),pa=ja.getConfigFromVisiblePageTypes(oa);if(n.isMobileAppObjective(ka)){pa.disableOSSelection=true;}else if(na||ka===k.LEAD_GENERATION)pa.disabledUserOSTypes=[w.FEATURE_PHONE];if(ka===k.BRAND_AWARENESS){pa.disabledUserOSTypes=[w.FEATURE_PHONE];pa.mobileFeedOptions=u.SIMPLE;}var qa=!!q.get(ka)&&i.hasCapability(la,q.get(ka));if(qa&&ka!==k.INSTAGRAM_BRAND_AWARENESS&&!z(pa.hiddenPageTypes,r.INSTAGRAM_STREAM))pa.newPageTypes=[r.INSTAGRAM_STREAM];return pa;},getConfigFromVisiblePageTypes:function(ka){var la=new y(ka),ma=da.clone().removeAll(la),na=ea.intersect(la);return {hiddenPageTypes:ma.toArray(),enabledPageTypes:na.toArray(),preventMixedValues:true};},getPageTypes:function(ka,la,ma){var na=la&&la.capabilities;return Array.from(t.get(ka).getPageTypes(na,ma,la&&i.hasContract(la)));},getDefaultCampaignPlacement:function(ka,la,ma,na,oa){var pa;switch(ka){case k.MOBILE_APP_ENGAGEMENT:case k.MOBILE_APP_INSTALLS:pa=[r.MOBILE_FEED];if(ga(ma))pa.push(r.MOBILE_EXTERNAL);if(la===o.AUCTION&&ia(ma,ka))pa.push(r.INSTAGRAM_STREAM);break;case k.WEBSITE_CLICKS:case k.WEBSITE_CONVERSIONS:pa=[r.DESKTOP_FEED,r.MOBILE_FEED,r.RIGHT_COLUMN];if(ha(ma))pa.push(r.MOBILE_EXTERNAL);if(la===o.AUCTION&&ia(ma,ka))pa.push(r.INSTAGRAM_STREAM);break;case k.CANVAS_APP_ENGAGEMENT:case k.CANVAS_APP_INSTALLS:pa=[r.DESKTOP_FEED,r.RIGHT_COLUMN];break;case k.VIDEO_VIEWS:pa=[r.DESKTOP_FEED,r.MOBILE_FEED,r.RIGHT_COLUMN];if(la===o.AUCTION&&ia(ma,ka))pa.push(r.INSTAGRAM_STREAM);break;case k.LOCAL_AWARENESS:pa=[r.DESKTOP_FEED,r.MOBILE_FEED];break;case k.INSTAGRAM_BRAND_AWARENESS:pa=[r.INSTAGRAM_STREAM];break;case k.LEAD_GENERATION:pa=[r.MOBILE_FEED];break;case k.BRAND_AWARENESS:pa=[r.DESKTOP_FEED,r.MOBILE_FEED];if(la===o.AUCTION&&ia(ma,ka))pa.push(r.INSTAGRAM_STREAM);break;case k.PRODUCT_CATALOG_SALES:pa=[r.DESKTOP_FEED,r.MOBILE_FEED,r.RIGHT_COLUMN];if(ha(ma))pa.push(r.MOBILE_EXTERNAL);break;default:pa=[r.DESKTOP_FEED,r.MOBILE_FEED,r.RIGHT_COLUMN];break;}if(oa===m.PM_FCPM_HP)pa=[r.HOME,r.DESKTOP_FEED,r.MOBILE_FEED];var qa=[],ra=[],sa=[];if(na&&na.length>0){var ta=na[0];if(ta.targeting){qa=ta.targeting.user_os;ra=ta.targeting.user_device;sa=ta.targeting.wireless_carrier;}else{qa=ta.user_os;ra=ta.user_device;sa=ta.wireless_carrier;}}return {page_types:p.shouldUseGeneralMigration()?pa:s.toLegacy(pa),user_os:qa,user_device:ra,wireless_carrier:sa};},getValidDeviceTypesForAppStore:function(ka){switch(ka){case ca.GOOGLE_PLAY:case ca.AMAZON:return [w.ANDROID];case ca.ITUNES:return [w.IOS];}return null;},getValidDeviceTypes:function(ka,la){if(!ka)return null;var ma=n.getAppStoreName(ka,la);return ja.getValidDeviceTypesForAppStore(ma);},getDisabledInstagramOSTypes:function(ka){switch(ka){case k.MOBILE_APP_INSTALLS:case k.WEBSITE_CLICKS:return [w.FEATURE_PHONE];}return [];},getValidPageTypesForFormat:function(ka){switch(ka){case v.RIGHT_COLUMN_STANDARD:return new x([r.DESKTOP,r.DESKTOP_AND_MOBILE_AND_EXTERNAL,r.HOME,r.RIGHT_COLUMN,r.RIGHT_COLUMN_AND_MOBILE,r.RIGHT_COLUMN_AND_MOBILE_AND_EXTERNAL]);case v.DESKTOP_FEED_STANDARD:return new x([r.DESKTOP,r.DESKTOP_AND_MOBILE_AND_EXTERNAL,r.DESKTOP_FEED,r.FEED,r.FEED_AND_EXTERNAL]);case v.MOBILE_FEED_STANDARD:case v.MOBILE_FEED_BASIC:case v.MOBILE_NATIVE:return new x([r.DESKTOP_AND_MOBILE_AND_EXTERNAL,r.FEED,r.FEED_AND_EXTERNAL,r.MOBILE,r.MOBILE_FEED_AND_EXTERNAL,r.RIGHT_COLUMN_AND_MOBILE,r.RIGHT_COLUMN_AND_MOBILE_AND_EXTERNAL]);case v.MOBILE_INTERSTITIAL:case v.MOBILE_BANNER:return new x([r.DESKTOP_AND_MOBILE_AND_EXTERNAL,r.FEED_AND_EXTERNAL,r.MOBILE_FEED_AND_EXTERNAL,r.RIGHT_COLUMN_AND_MOBILE_AND_EXTERNAL]);case v.INSTAGRAM_STANDARD:return new x([r.INSTAGRAM_STREAM]);}return new x();},isRightColumnEligible:function(ka){if(ka.length===0)return true;return z(ka,r.RIGHT_COLUMN);},isFeedEligible:function(ka){if(ka.length===0)return true;return ka.some(function(la){return (la===r.MOBILE_FEED||la===r.DESKTOP_FEED);});},removePlacementFields:function(ka){var la=babelHelpers._extends({},ka);ja.PLACEMENT_TARGET_FIELDS.forEach(function(ma){return delete la[ma];});return la;},getPlacementFields:function(ka){return ba(ka,ja.PLACEMENT_TARGET_FIELDS);},getModernPageTypes:function(ka){var la=aa(ka,j.TARGETING.PAGE_TYPES);return s.toModern(la,p.shouldUseGeneralMigration());},hasMobilePlacement:function(ka){return r.MOBILE_PAGE_TYPES.some(function(la){return z(ka,la);});}};f.exports=ja;},null);
__d('AdsTargetingModelAdapter',['AdsAPISpec','AdsCFActionTypes','AdsCFConstants','AdsCFTargetingStore','AdsCommonTargetingApiTransformer','AdsDispatcher','ads-mobile-platforms','AdsModelAdapterMixin','AdsPageTypesMigration','AdsPlacementUtils','AdsTargetingLocationDataTransformer','AdsUtils','whitelistObjectKeys'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){'use strict';if(c.__markCompiled)c.__markCompiled();var u=n.deviceTypes,v=n.operatingSystems,w=false,x={};function y(ea,fa){return function(){var ga=k.getValue(ea);return ga===undefined?fa:ga;};}function z(ea){return k[ea];}function aa(ea,fa){if(w){x=Object.assign(x,ea);return;}var ga=babelHelpers._extends({type:i.TARGETING_CHANGE},ea);if(!fa){m.handleUpdateFromUnknownSource(ga);}else m.handleUpdateFromViewAction(ga);}function ba(ea){return function(fa,ga){var ha={};ha[ea]=fa;aa(ha,!!ga);};}function ca(ea,fa){if(!ea)return fa;return fa.toLowerCase()+'_ver_'+ea+'_and_above';}var da=babelHelpers._extends({},o,{getMinIosVersion:y('minIosVersion'),getMinAndroidVersion:y('minAndroidVersion'),getMobileDevices:y('mobileDevices',[]),getMobileMinVersion:z('getMobileMinVersion'),getMobileOperatingSystem:y('mobileOperatingSystem'),getUserOs:function(){var ea=this.getMobileOperatingSystem();if(!ea)return [];var fa;if(ea===v.IOS){fa=this.getMinIosVersion();}else if(ea===v.ANDROID)fa=this.getMinAndroidVersion();return [ca(fa,ea)];},getUserDevice:function(){var ea=this.getMobileDevices()||[],fa={};ea.forEach(function(ga){fa[ga]=1;});if(u.ANDROID_SMARTPHONE in fa&&u.ANDROID_TABLET in fa)ea=[];return ea;},getWifiOnly:y('wifiOnly',false),getWirelessCarrier:function(){var ea=n.carriers;if(this.getWifiOnly())return [ea.WIFI];return [];},getPageTypes:y('pageTypes'),setGeoLocations:function(ea,fa){ea=ea||{};ea=r.convertKeyToString(ea);aa({geoLocations:ea},fa);},setAgeMax:ba('ageMax'),setAgeMin:ba('ageMin'),setGenders:function(ea,fa){var ga=ea&&ea.length===1?ea[0]:h.GENDERS.ALL;aa({sex:ga},fa);},setLocales:ba('locales'),setInterests:ba('interests'),getGeoLocationsApiSpecMetaData:function(){var ea=k.getApiSpec(j.CanonicalID);return ea.geo_locations||{};},getInterfaceSpecFromApiSpec:function(ea){var fa=s.clone(ea);if(!fa.hasOwnProperty('relationship_statuses'))fa.relationship_statuses=null;if(p.isLegacy(fa.page_types))fa.page_types=p.toModern(fa.page_types);return l.fromApi(fa);},setApiSpec:function(ea,fa){var ga=this.getInterfaceSpecFromApiSpec(ea),ha=fa?i.TARGETING_INIT:i.TARGETING_CHANGE;m.handleUpdateFromUnknownSource(babelHelpers._extends({type:ha},ga));},replaceApiSpec:function(ea,fa){var ga={};if(fa)ga=t(k.getApiSpec(j.CanonicalID),q.PLACEMENT_TARGET_FIELDS);ea=Object.assign(ea,ga);var ha=this.getInterfaceSpecFromApiSpec(ea);m.handleUpdateFromUnknownSource(babelHelpers._extends({type:i.TARGETING_REPLACEMENT},ha));}});f.exports=da;},null);
__d('AdsCFCreativeStrings.react',['fbt','Link.react','React'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k={renderDeepLinkMobileHelpText:function(){return (j.createElement('div',null,j.createElement('div',{className:'fwb pbm'},h._("Using a Deep Link")),j.createElement('p',null,h._("When launching an app with a deep link Facebook will be able to open your app in a specific state.")),j.createElement('p',null,h._("A deep link is a URL that points to a specific place in your app, like a product page.")),j.createElement('p',null,h._("You can use a deep link (ex: myapp:\/\/buynow\/12345) or a URL with {=App Links} enabled.",[h.param('=App Links',j.createElement(i,{href:'https://developers.facebook.com/docs/applinks',target:'_blank'},'App Links'))]))));},renderDeepLinkMobileLabel:function(){return h._("Deep Link (optional)");},renderDeepLinkMobilePlaceholder:function(){return h._("Enter the deep link URL");},renderDeepLinkCanvasHelpText:function(){return (j.createElement('div',null,h._("A deep link is a URL that points to a specific place in your app. Ex: https:\/\/apps.facebook.com\/mygame\/custom\/path\/")));},renderDeepLinkCanvasLabel:function(){return h._("Deep Link");},renderDeepLinkCanvasPlaceholder:function(){return h._("Enter the deep link URL");}};f.exports=k;},null);
__d('AdsAddressUtils',['fbt'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={formatSingleLineAddress:function(j){if(j.street){if(j.state){return h._("{house_number_and_street}, {city}, {state}, {country}",[h.param('house_number_and_street',j.street),h.param('city',j.city),h.param('state',j.state),h.param('country',j.country)]);}else return h._("{house_number_and_street}, {city}, {country}",[h.param('house_number_and_street',j.street),h.param('city',j.city),h.param('country',j.country)]);}else if(j.state){return h._("{city}, {state}, {country}",[h.param('city',j.city),h.param('state',j.state),h.param('country',j.country)]);}else return h._("{city}, {country}",[h.param('city',j.city),h.param('country',j.country)]);}};f.exports=i;},null);
__d('LFUCache',['Cache','DateConsts'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';var l=15,m=1;j=babelHelpers.inherits(n,h);k=j&&j.prototype;function n(o,p){k.constructor.call(this);this.$LFUCache1=o&&o>0?o:l;this.$LFUCache2=p&&p>0?p:m;this.$LFUCache3();}n.prototype.$LFUCache3=function(){clearTimeout(this.$LFUCache4);this.$LFUCache4=setTimeout(this.purge.bind(this),this.$LFUCache1*i.SEC_PER_MIN*i.MS_PER_SEC);};n.prototype.destroy=function(){clearTimeout(this.$LFUCache4);};n.prototype.get=function(o,p){if(this.has(o))this.$LFUCache5(o);return k.get.call(this,o,p);};n.prototype.set=function(o,p,q,r){var s=this.has(o),t=k.set.call(this,o,p,q,r);if(t)if(s){this.$LFUCache5(o);}else this.$LFUCache6(o,this.$LFUCache2);return t;};n.prototype.purge=function(){var o=Array.from(this.__keys());o.forEach((function(p){if(this.$LFUCache7(p)<this.$LFUCache2){this['delete'](p);}else this.$LFUCache6(p,0);}).bind(this));this.$LFUCache3();};n.prototype.$LFUCache5=function(o){var p=this.$LFUCache7(o)+1;this.$LFUCache6(o,p);return p;};n.prototype.$LFUCache7=function(o){var p=this.__getRaw(o);return p&&p.$LFUCache8?p.$LFUCache8:0;};n.prototype.$LFUCache6=function(o,p){var q=this.__getRaw(o);if(!q)q=this.__getNewRawObject();q.$LFUCache8=p;this.__setRaw(o,q);return true;};f.exports=n;},null);
__d('cachedGraphAPI',['LFUCache'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=.15,j=new h();function k(n){return new m(n);}function l(n,o,p){return n+':'+o+':'+JSON.stringify(p);}function m(n){this.requestSpec=n;this.$RequestSpecWithCaching1=undefined;}m.prototype.cacheFor=function(n){this.$RequestSpecWithCaching1=n;return this;};m.prototype.clearCache=function(){this.$RequestSpecWithCaching2=true;return this;};m.prototype.get=function(n){var o=l(this.requestSpec.name,this.requestSpec.path,Object.assign({},this.requestSpec.params,n));if(!this.$RequestSpecWithCaching2){var p=j.get(o);if(p)return p;}var q=this.requestSpec.get(n)['catch'](function(r){j.set(o,q,null,i);throw r;});j.set(o,q,null,this.$RequestSpecWithCaching1);return q;};Object.assign(k,{createCacheKey:l,_cache:j,CACHE_ERROR_FOR:i});f.exports=k;},null);
__d('AdsCFPixelDataLoader',['AdsGraphAPI','cachedGraphAPI'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={loadPixels:function(k,l){var m=i(h.getWithGeneralMigration().adaccount(k).edge('offsitepixels'));l&&m.clearCache();return m.get({fields:['id','name','tag','creator','js_pixel','last_firing_time'],limit:500});}};f.exports=j;},null);
__d('AdsCFPrimedDao',['AdsDaoGraph','CurrentLocale','PublishedLocales'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();h.primedForLocale(i.get());var k={},l={getInstanceForAccount:function(m){var n=i.get();if(!(n in j))n='en_US';if(!k[m]){var o=h.primedForLocale(n).primedForAccount(m);k[m]=babelHelpers._extends({},o);}return k[m];}};f.exports=l;},null);
__d('AdsConversionPixelSnippetViewMode',['keyMirror'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=h({NONE:null,VIEW_CODE:null,EMAIL_CODE:null});f.exports=i;},null);
__d('AdsConversionPixelStatusUI',['AdsPixelConstants','fbt','formatDate','invariant','ix','parseISODate'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=h.statuses,o=60*60*1000,p=o*24,q=p*7,r=new Date();function s(u){return u.last_firing_time||u.lastFiringTime;}var t={resetTime:function(){r=new Date();},getStatus:function(u){if(u.is_deleted===true||u.isDeleted===true)return n.DELETED;var v=s(u)||null;if(v)v=m(v);if(v===null){return n.UNVERIFIED;}else if(v.getTime()<r.getTime()-q){return n.INACTIVE;}else return n.ACTIVE;},getStatusUI:function(u){var v=t.getStatus(u);switch(v){case n.DELETED:return t._getDeletedStatusUI();case n.UNVERIFIED:return t._getUnverifiedStatusUI();case n.INACTIVE:return t._getInactiveStatusUI(m(s(u)));case n.ACTIVE:return t._getActiveStatusUI(m(s(u)));}k(0);},_getInactiveStatusUI:function(u){return {iconImage:l('images/ads/conversions/pixel/status_inactive.png'),text:i._("No Recent Activity"),subtitle:i._("Last Event: {date}",[i.param('date',j(u,'n/j/y'))]),desc:i._("We haven't received any events from this pixel in the last week.")};},_getActiveStatusUI:function(u){var v=r.getTime()-u.getTime(),w=null;if(v<o){w=i._("Last Event: within an hour");}else if(v<p){w=i._("Last Event: within 24 hours");}else{!(v<q)?k(0):undefined;w=i._("Last Event: {date}",[i.param('date',j(u,'F j'))]);}return {iconImage:l('images/ads/conversions/pixel/status_active.png'),text:i._("Active"),subtitle:w,desc:i._("We have received events from this pixel in the last week.")};},_getUnverifiedStatusUI:function(){return {iconImage:l('images/ads/conversions/pixel/status_unverified.png'),text:i._("No Activity Yet"),desc:i._("We haven't received any events from this pixel. Make sure the pixel code is properly installed or configured on your website.")};},_getDeletedStatusUI:function(){return {iconImage:l('images/ads/conversions/pixel/status_unverified.png'),text:i._("Deleted")};}};f.exports=t;},null);
__d('AdsPixelConversionStatusUtils',['AdsConversionPixelStatusUI','AdsPixelStatus','AdsPixelStatusEnum','AdsPixelStatusUtils'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l={isVerifiedConversion:function(m){var n=this.getStatusFromConversion(m);return n!==j.NEVER_ACTIVE;},getStatusFromConversion:function(m){if(m.status){var n=h.getStatus(m);return k.convertLegacyPixelStatus(n);}return this.getStatusObjectFromConversion(m).getStatus();},getStatusObjectFromConversion:function(m){var n=m.lastFiredTime||m.last_fired_time||m.last_firing_time;return new i(n);}};f.exports=l;},null);
__d("XAdsConversionPixelAttachController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/conversion_pixel\/attach_ad\/",{campaign_id:{type:"Int",required:true},pixel_id:{type:"Int",required:true}});},null,{});
__d("XAdsConversionPixelInlineAcceptingTOSController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/manage\/convtrack\/inline_accept_tos\/",{adaccount_id:{type:"Int",required:true}});},null,{});
__d("XAdsConversionPixelInstallEmailController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/conversion_pixel\/send_email\/",{});},null,{});
__d('AdsConversionPixelUtils',['AdsConversionPixelSnippetViewMode','AdsConversionPixelStatusUI','AdsPixelConversionStatusUtils','AdsOffsiteConversionConstants','AdsPixelConstants','AsyncRequest','CIWebmailValidator','AdsGraphAPI','Promise','XAdsConversionPixelAttachController','XAdsConversionPixelInlineAcceptingTOSController','XAdsConversionPixelInstallEmailController','getObjectValues','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){'use strict';if(c.__markCompiled)c.__markCompiled();var v=k.statuses,w=k.statusOrdering,x={isVerifiedConversion:function(y,z){if(z)return j.isVerifiedConversion(z);return x.isVerifiedConversionPixel(y);},isVerifiedConversionPixel:function(y){return !!y&&i.getStatus(y)!==v.UNVERIFIED;},getPixelDetails:function(y,z){if(y)for(var aa=0;aa<z.length;++aa)if(z[aa].id===y)return z[aa];},labelForPixel:function(y){var z;if(y.tag)z=l.categoryLabels[y.tag]||y.tag;var aa=i.getStatusUI(y).text;return {labelName:y.name,labelStatus:aa,labelTag:z};},canPixelSnippetSharerContinue:function(y,z){switch(y){case h.VIEW_CODE:return true;case h.EMAIL_CODE:if(z.length===0)return false;return z.reduce(function(aa,ba){return aa&&n.isValidEmail(ba);},true);default:return false;}},acceptTOS:function(y,z,aa){var ba=r.getURIBuilder().setInt('adaccount_id',y).getURI();new m().setURI(ba).setHandler(z).setErrorHandler(aa).send();},createPixel:function(y,z,aa,ba,ca){var da=ca&&ca.onTOSAccepted,ea=ca&&ca.onTOSError,fa=ca&&ca.onPixelCreated,ga=ca&&ca.onPixelCreationError,ha=new p((function(ia,ja){if(ba){this.acceptTOS(aa,ia,ja);}else ia();}).bind(this));ha.done(function(){da&&da();o.getWithGeneralMigration().adaccount(aa).edge('offsitepixels').post({name:y,tag:z}).then(function(ia){return fa(ia.id);},ga);},ea);},pixelOrdering:function(y,z){var aa=i.getStatus(y),ba=i.getStatus(z);if(aa!==ba)return (w[aa]-w[ba]);return y.name.localeCompare(z.name);},sendConversionPixelCodeViaEmail:function(y,z,aa,ba,ca,da){var ea=s.getURIBuilder().getURI(),fa=new m(ea).setMethod('POST').setData({recipients:aa,snippet_text:z,personal_message:ba,email_source:y});if(ca)fa.setHandler(ca);if(da)fa.setErrorHandler(da);fa.send();},attachPixelToCampaign:function(y,z,aa,ba){var ca=10,da=q.getURIBuilder().setInt('campaign_id',parseInt(y,ca)).setInt('pixel_id',parseInt(z,ca)).getURI();new m().setURI(da).setHandler(aa).setErrorHandler(ba).send();}};f.exports=x;},null);
__d('AdsTimezone',['AdsTimezoneConfig','underscore.ads'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();g.countryCodeToTimezoneIDsMap=h.countryCodeToTimezoneIDsMap;g.names=h.names;g.timezoneIDToCountryCodeMap=new Array(g.names.length);g.timezoneIDToOffsetMap=new Array(g.names.length);g.timezoneDataByID=h.tzDataByID;g.timezoneIDToOffsetMap[0]=0;for(var j in h.countryCodeToTimezoneIDsMap)if(h.countryCodeToTimezoneIDsMap.hasOwnProperty(j)){var k=h.countryCodeToTimezoneIDsMap[j];for(var l=0;l<k.length;++l){var m=k[l];g.timezoneIDToCountryCodeMap[m]=j;g.timezoneIDToOffsetMap[m]=parseFloat(h.tzDataByID[m].offset.replace(':','.'));}}g.sortedTimezones=i(h.tzDataByID).chain().map(function(n,o){if(!n.name)return null;return {id:parseInt(o,10),displayName:"(GMT"+n.offset+") "+n.name.replace("_"," "),name:n.name,offset:n.offset};}).compact().sortBy(function(n){return 22+parseFloat(n.offset.replace(":","."),10)+n.name;}).value();},null);
__d('AdsCFAccountStore',['AdsAccountCapabilities','AdsAccountStoreWrapper','AdsAccountUtils','AdsActionTypes','AdsBaseStore','AdsCFActionTypes','AdsCFPixelDataLoader','AdsCFPrimedDao','AdsConversionPixelUtils','AdsCountries','AdsCreationConfig','AdsCreationExperimentStore','AdsDispatcher','AdsPayloadSource','AdsPixelConstants','AdsTimezone','BizSiteIdentifier.brands','BusinessAssetGrouping.brands','FBDate','ImmutableObject','URI','whitelistObjectKeys','AdsCFConstants','AdsCFConstants'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca){if(c.__markCompiled)c.__markCompiled();var da,ea;'use strict';var fa=w.timezoneIDToOffsetMap,ga=c('AdsCFConstants').AccountStatus,ha=c('AdsCFConstants').PixelSelectorVersion,ia='USD',ja=1,ka=[ga.CLOSED,ga.DISABLED,ga.PENDING_CLOSURE,ga.UNSETTLED],la,ma,na,oa,pa,qa,ra;function sa(){la={};ma={};na=null;oa={};pa=false;qa=false;ra=false;}function ta(eb){la.timezoneOffsetHours=fa[eb];}sa();da=babelHelpers.inherits(ua,l);ea=da&&da.prototype;ua.prototype.getStoreName=function(){return 'AdsCFAccountStore';};ua.prototype.getState=function(){var eb=babelHelpers._extends({},la);eb.isConfigured=wa();return new aa(eb);};ua.prototype.getAPIState=function(){return new aa(ma);};ua.prototype.getInitialState=function(){return new aa(oa);};ua.prototype.getAccountID=function(){return la.accountID;};ua.prototype.getAccount_DO_NOT_USE=function(){return la;};ua.prototype.getAccountName=function(){return la.name;};ua.prototype.getBusinessID=function(){return na;};ua.prototype.getDisableReason=function(){return la.disableReason;};ua.prototype.getPixels=function(){return la.pixels||[];};ua.prototype.getTosAccepted=function(){if(!la.tosAccepted)return {};return la.tosAccepted;};ua.prototype.getTimezoneID=function(){return la.timezoneID;};ua.prototype.canCreateAds=function(){return ka.indexOf(la.accountStatus)===-1;};ua.prototype.hasAccountCapability=function(eb){return j.hasCapability(la,eb);};ua.prototype.getAccountCapabilities=function(){return la.capabilities||[];};ua.prototype.isCorporateAccount=function(){return this.hasAccountCapability(h.DIRECT_SALES);};ua.prototype.isLikelyOnlineSales=function(){return qa;};ua.prototype.getBasedInUS=function(){return la.country==='US';};ua.prototype.getDao=function(){return o.getInstanceForAccount(la.accountID);};ua.prototype.getHasDuplicatePixelNames=function(eb){for(var fb=0;fb<la.pixels.length;fb++)if(la.pixels[fb].name===eb)return true;return false;};ua.prototype.getHasVerifiedConversionPixels=function(){if(!la.pixels)return false;var eb=la.pixels.filter(function(fb){return (p.isVerifiedConversionPixel(fb));});return eb.length>0;};ua.prototype.getPixelSelector=function(){if(i.canSeeUnifiedPixel()){return ha.PIXEL_SELECTOR;}else return this.getHasVerifiedConversionPixels()?ha.CONVERSION_PIXEL_SELECTOR:ha.NO_SELECTOR;};ua.prototype.shouldShowPixelSelector=function(){return this.getPixelSelector()!==ha.NO_SELECTOR;};ua.prototype.isInitDone=function(){return pa;};ua.prototype.onDispatchToken=function(eb){var fb=eb.action;switch(fb.actionType){case m.INIT_STARTED:qa=!!fb.is_likely_online_sales;break;case m.ACCOUNT_INIT:pa=!fb.emptyInit||pa;za(fb);if(!fb.emptyInit)xa();break;case m.CHANGE_ACCOUNT_NAME:ya(fb,{name:null});break;case m.CHANGE_ACCOUNT_COUNTRY:var gb={country:fb.country,timezoneID:w.countryCodeToTimezoneIDsMap[fb.country][0]};if(!ra){gb.currency=q.getCurrencyByCountry(fb.country);ya(gb,{country:null,timezoneID:null,currency:null});xa();}else ya(gb,{country:null,timezoneID:null});ta(gb.timezoneID);break;case m.CHANGE_ACCOUNT_CURRENCY:ya(fb,{currency:null});ra=eb.payloadsource===u.VIEW_ACTION;break;case m.CHANGE_ACCOUNT_TIMEZONE_ID:ya(fb,{timezoneID:null});ta(fb.timezoneID);xa();break;case m.CONVERSION_PIXELS_CHANGE:ya(fb,{pixels:null});break;case m.OFFSITE_PIXELS_TOS_ACCEPTED:la=babelHelpers._extends({},la,{isOffsitePixelsTOSAccepted:true});break;case m.ACCOUNT_CAPABILITIES_ADD:la.capabilities=la.capabilities.concat(fb.capabilities);break;case m.COUPON_ACTIVATED:ya(fb,{couponActivationResponse:null});if(fb.couponActivationResponse.success)db();break;case m.CHANGE_FUNDING_SOURCE:ya(fb,{fundingSourceDetails:null});break;case k.PAGE_TRANSITION:sa();break;}};function ua(){da.apply(this,arguments);}var va=new ua();b.debug_AdsCFAccountStore=va;function wa(){return !!(la.dailySpendLimit||j.hasCapability(la,h.DIRECT_SALES));}function xa(){z.setupTimezoneFallback(la.timezoneID,la.timezoneOffsetHours);}function ya(eb,fb){la=babelHelpers._extends({},la,ca(eb,fb));va.inform('change');}function za(eb){var fb=eb.accountConfig,gb=j.hasCapability(fb,h.CAN_UPDATE_CURRENCY),hb=fb.business_id,ib=fb.country,jb=fb.currency,kb=fb.timezone_id,lb=fb.name;if(gb){if(jb===ia&&r.userLocalCurrencyCode!==ia)jb=r.userLocalCurrencyCode||jb;if(kb===ja&&r.userLocalTimezoneID!==ja)kb=r.userLocalTimezoneID||kb;ib=fb.business_country_code||r.userLocalCountryCode||ib||'US';lb=lb||r.userName;}ma=babelHelpers._extends({},fb,{amount_spent:parseInt(fb.amount_spent,10),country:ib,currency:jb,daily_spend_limit:parseInt(fb.daily_spend_limit,10),spend_cap:parseInt(fb.spend_cap,10),timezone_id:kb,timezone_offset_hours_utc:fb.timezone_offset_hours_utc||0});la=babelHelpers._extends({},la,{accountID:fb.account_id,age:fb.age,amountSpent:parseInt(fb.amount_spent,10),business:fb.business,businessCountryCode:fb.business_country_code,capabilities:fb.capabilities,country:ib,currency:jb,dailySpendLimit:parseInt(fb.daily_spend_limit,10),disableReason:fb.disable_reason,fundingSource:fb.funding_source,fundingSourceDetails:fb.funding_source_details,id:fb.id,isAllowedToEditCurrency:gb,isNUX:gb,isOffsitePixelsTOSAccepted:fb.offsite_pixels_tos_accepted,isPrepayAccount:fb.is_prepay_account,isTaxIDRequired:fb.is_tax_id_required,tosAccepted:fb.tos_accepted,minDailyBudget:fb.min_daily_budget,mooDefaultConversionBid:fb.moo_default_conversion_bid,name:lb,accountStatus:fb.account_status,spendCap:parseInt(fb.spend_cap,10),timezoneID:kb,timezoneOffsetHours:fb.timezone_offset_hours_utc,users:fb.users});la.timezoneOffsetHours=la.timezoneOffsetHours||0;va.inform('change');ab();cb();oa=babelHelpers._extends({},la);if(hb&&hb!==y.NULL_BIZ_ID)na=hb;var mb=va.getDao();mb.fetch.connectionObjectsForAccount.one();mb.fetch.audiencesForAccount.one();}function ab(){n.loadPixels(la.accountID).then(function(eb){t.handleUpdateFromServerResponse({pixels:eb.data,type:m.CONVERSION_PIXELS_CHANGE});});}var bb;function cb(){var eb=ba.getRequestURI().getQueryData().coupon;if(!eb||bb)return;bb=true;var fb=s.getExperiment('ads_creation_streamline_coupon_3');if(fb.getInExperiment())fb.logExposure();if(!fb.getInExperiment()||fb.getParam('in_test')==='0')return;va.getDao().add.activateCoupon.one((function(gb){t.handleUpdateFromServerResponse({couponActivationResponse:gb,type:m.COUPON_ACTIVATED});}).bind(this),{accountId:la.accountID,coupon_code:eb});}function db(){var eb=va.getDao();eb.fetch.accountInfo.clearCache();eb.fetch.accountInfo.one((function(fb){t.handleUpdateFromServerResponse({fundingSourceDetails:fb.funding_source_details,type:m.CHANGE_FUNDING_SOURCE});}).bind(this),{accountId:la.accountID,fields:'funding_source_details'});}f.exports=va;},null);
__d("XAdsPageLocationController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/createflow\/page_location\/",{id:{type:"String",required:true}});},null,{});
__d('AdsPageLocationUtils',['AsyncRequest','Promise','XAdsPageLocationController'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k=30000,l={getPageAddressFields:function(m){return new i(function(n,o){var p=j.getURIBuilder().setString('id',m).getURI();new h().setURI(p).setMethod('GET').setReadOnly(true).setHandler(function(q){n(q.payload);}).setErrorHandler(function(q){o(q);}).setTimeoutHandler(k,function(q){o(new Error('Timeout when trying to fetch page location.'));}).send();});}};f.exports=l;},null);
__d('AdsCFDestinationDataLoader',['AdsCFAccountStore','AdsCFActionTypes','AdsDispatcher','AdsPageLocationUtils','AdsPagePostUtils','GeoCoordinates','GraphAPI','ImmutableObject','Promise','invariant','ads-lib-urllib'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){'use strict';if(c.__markCompiled)c.__markCompiled();var s=3,t=false;function u(z){var aa=[];z&&z.forEach(function(ba){ba.id=l.getPostIdBestGuess_BROKEN(ba.id);aa.push(ba);});return aa;}function v(z){if(z){var aa=z.split(/\s+/);for(var ba=0;ba<aa.length;ba++)if(r.isUrl(aa[ba]))return aa[ba];}}function w(z,aa){j.handleUpdateFromServerResponse({data:aa,storyId:z,type:i.POST_LINK_DATA_LOADED});}function x(z,aa){j.handleUpdateFromServerResponse({pageId:aa,requestId:z,type:i.PAGE_POSTS_LOAD_COMPLETE});}var y={fetchPagePosts:function(z,aa,ba,ca,da){!t?q(0):undefined;ca=ca||0;ba=ba||[];var ea=ba.length;if(ca>s){x(z,aa);return;}var fa=h.getDao();function ga(ha){if(!t)return;if(!ha||!ha.length){x(z,aa);return;}ba.push.apply(ba,u(ha));j.handleUpdateFromServerResponse({apiData:ba,informComplete:da,pageId:aa,requestId:z,type:i.PAGE_POSTS_LOADED});this.fetchPagePosts(z,aa,ba,ca+1);}fa.fetch.pagePromotablePostsForConnectionObject.one(ga.bind(this),{objectId:aa,until:ea?ba[ea-1].updated_time:null,handleError:x.bind(z,aa),fields:['comments.summary(true)','description','expiration_timestamp','full_picture','icon','is_popular','is_published','is_spherical','likes.summary(true)','link','message','name','object_id','picture','scheduled_publish_time','shares','story','type','updated_time']});},fetchPostLinkData:function(z,aa,ba){!t?q(0):undefined;var ca=aa&&aa.type,da=null;if(ca==='link'){da=aa.link;}else if(['photo'].indexOf(ca)!==-1)da=v(aa.message);if(!da){ba&&ba(null);return;}var ea=h.getDao();function fa(){if(!t)return;w(z,null);ba&&ba(null);}function ga(ha){if(!t)return;var ia=null,ja=ha&&ha[0];if(ja&&ja.id&&ja.type)ia=ja;w(z,ia);ba&&ba(ia);}ea.fetch.adsDestinationInfo.one(ga,{object_url:da,handleError:fa});},getPageAddressFields:function(z){!t?q(0):undefined;return k.getPageAddressFields(z);},promisePlace:function(z){!t?q(0):undefined;return n('2.3').object('page',z).get({fields:['location','single_line_address']}).then(function(aa){if(!(aa.location&&aa.location.latitude&&aa.location.longitude))return p.reject(new Error('Could not find any place information'));return new o({coordinates:new m(aa.location.latitude,aa.location.longitude),name:aa.location.street&&aa.single_line_address?aa.single_line_address:undefined});});},setActiveState:function(z){t=z;}};f.exports=y;},null);
__d('AdsImageCollectionViews',['invariant','nullthrows'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=['LIBRARY','PAGE','SCRAPED','STOCK'],k={};j.forEach(function(r,s){k[r]=1<<s;});k.INVISIBLE=0;var l={};Object.keys(k).forEach(function(r){var s=k[r];l[s]=s;});k.ALL=(1<<j.length)-1;function m(r){return r in l;}function n(r){return (r>=0&&r<=i(k.ALL));}function o(r){!m(r)?h(0):undefined;}function p(r){!n(r)?h(0):undefined;}var q={views:k,isValidView:m,isValidViewBitmask:n,assertIsValidView:o,assertIsValidViewBitmask:p};f.exports=q;},null);
__d('AdsImageCollection',['AdsImageCollectionViews','ArbiterMixin','invariant','mixin'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l,m;'use strict';l=babelHelpers.inherits(n,k(i));m=l&&l.prototype;function n(o){m.constructor.call(this);o=Object.assign({maxSelectedImages:1},o);this.$AdsImageCollection1=o.maxSelectedImages;!(this.$AdsImageCollection1%1===0)?j(0):undefined;this.reset();}n.prototype.reset=function(){this.$AdsImageCollection2=[];this.$AdsImageCollection3={};this.$AdsImageCollection4=[];};n.prototype.addImagesToFront=function(o,p){this.$AdsImageCollection5(o);this.$AdsImageCollection6(o,0,p);};n.prototype.addImagesToBack=function(o,p){this.$AdsImageCollection5(o);this.addImagesToBack_UNSAFE(o,p);};n.prototype.addImagesToBack_UNSAFE=function(o,p){this.$AdsImageCollection6(o,this.$AdsImageCollection2.length,p);};n.prototype.$AdsImageCollection6=function(o,p,q){h.assertIsValidView(q);var r=o.filter(function(s){var t=this.$AdsImageCollection3[s.getUniqueIdentifier()];if(t){t.view=q;return false;}else{this.$AdsImageCollection3[s.getUniqueIdentifier()]={selected:false,view:q,image:s};return true;}},this);Array.prototype.splice.apply(this.$AdsImageCollection2,[p,0].concat(r));this.inform('onChange');};n.prototype.$AdsImageCollection5=function(o){o.forEach((function(p){var q=this.$AdsImageCollection3[p.getUniqueIdentifier()];if(q)!(0===(q.view&h.views.ALL))?j(0):undefined;}).bind(this));};n.prototype.isImageSelected=function(o){return !!this.$AdsImageCollection3[o.getUniqueIdentifier()].selected;};n.prototype.toggleImageSelected=function(o){var p=!this.isImageSelected(o);this.setImageSelected(o,p);return p;};n.prototype.setImageSelected=function(o,p){var q=this.$AdsImageCollection7(o,p);q&&this.inform('onChange');};n.prototype.setImagesSelected=function(o,p){var q;for(var r=0,s=o.length;r<s;r++)if(this.$AdsImageCollection7(o[r],p))q=true;q&&this.inform('onChange');};n.prototype.$AdsImageCollection7=function(o,p){o=this.$AdsImageCollection3[o.getUniqueIdentifier()].image;this.assertHasImage(o);if(p===this.isImageSelected(o))return false;if(p){this.$AdsImageCollection4.push(o);}else this.$AdsImageCollection4=this.$AdsImageCollection4.filter(function(r){return !o.equals(r);});this.$AdsImageCollection3[o.getUniqueIdentifier()].selected=p;if(this.$AdsImageCollection1>0)while(this.getSelectedImageCount()>this.$AdsImageCollection1){var q=this.$AdsImageCollection4.shift();this.$AdsImageCollection3[q.getUniqueIdentifier()].selected=false;}return true;};n.prototype.deselectAllImages=function(){if(!this.hasSelectedImages())return;this.getSelectedImages().forEach(function(o){this.$AdsImageCollection3[o.getUniqueIdentifier()].selected=false;},this);this.$AdsImageCollection4=[];this.inform('onChange');};n.prototype.clearImagesByViewBitmask=function(o){h.assertIsValidViewBitmask(o);var p=false;this.$AdsImageCollection2=this.$AdsImageCollection2.filter(function(q){var r=0!==(o&this.$AdsImageCollection3[q.getUniqueIdentifier()].view);if(r){p=true;if(this.isImageSelected(q)){this.$AdsImageCollection3[q.getUniqueIdentifier()].view=h.views.INVISIBLE;r=false;}else delete this.$AdsImageCollection3[q.getUniqueIdentifier()];}return !r;},this);if(p)this.inform('onChange');};n.prototype.hasImage=function(o){return this.$AdsImageCollection3[o.getUniqueIdentifier()]!==undefined;};n.prototype.hasImageInView=function(o,p){var q=this.$AdsImageCollection3[o.getUniqueIdentifier()];return !!q&&(q.view&p)!==0;};n.prototype.assertHasImage=function(o){!this.hasImage(o)?j(0):undefined;};n.prototype.getSelectedImages=function(){return this.$AdsImageCollection4.slice(0);};n.prototype.getSelectedImageCount=function(){return this.$AdsImageCollection4.length;};n.prototype.hasSelectedImages=function(){return this.getSelectedImageCount()!==0;};n.prototype.canSelectImages=function(){return !this.allowsMultiImageSelection()||this.getSelectedImageCount()<this.getMaxSelectedImageCount();};n.prototype.getImageByIndex=function(o){return this.$AdsImageCollection2[o];};n.prototype.getImageByUniqueID=function(o){return this.$AdsImageCollection3[o]&&this.$AdsImageCollection3[o].image;};n.prototype.getImages=function(o){h.assertIsValidViewBitmask(o);return this.$AdsImageCollection2.filter(function(p){return (0!==(o&this.$AdsImageCollection3[p.getUniqueIdentifier()].view));},this);};n.prototype.getImageCount=function(o){return this.getImages(o).length;};n.prototype.isEmpty=function(){return this.getImageCount(h.views.ALL)===0;};n.prototype.getMaxSelectedImageCount=function(){return this.$AdsImageCollection1;};n.prototype.allowsMultiImageSelection=function(){return this.$AdsImageCollection1!==1;};f.exports=n;},null);
__d('AdsBulkValueTypes',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(){for(var i=arguments.length,j=Array(i),k=0;k<i;k++)j[k]=arguments[k];this.$AdsBulkValueTypes1=j;}h.prototype.getTypes=function(){return this.$AdsBulkValueTypes1;};f.exports=h;},null);
__d('isSpecEmpty',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(j){if(j===undefined||j===null||j==='')return true;if(Array.isArray(j))return j.length===0;var k,l;if(i(j)){for(k in j){l=j[k];if(!h(l))return false;}return true;}return false;}function i(j){return Object.prototype.toString.call(j)==='[object Object]';}f.exports=h;},null);
__d('areSpecsEqual',['invariant','isSpecEmpty','Set'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();function k(o,p){if(o===p)return true;var q=i(o),r=i(p);if(q||r)return q===r;var s=typeof o;switch(s){case 'number':return isNaN(o)?false:o===p;case 'boolean':case 'string':return o===p;case 'object':if(Array.isArray(o))return Array.isArray(p)?l(o,p):false;if(!(n(o)&&n(p))){h(0);return false;}var t=new j(Object.keys(o).concat(Object.keys(p))),u=t.values();for(var v=u.next();v.done===false;v=u.next()){if(v.value==='__dataID__')continue;if(!k(o[v.value],p[v.value]))return false;}return true;default:h(0);}}function l(o,p){if(o.length!==p.length)return false;if(o.length===1)return k(o[0],p[0]);var q={};for(var r=0,s=o.length;r<s;r++){var t=m(o[r],p,q);if(t===-1)return false;q[t]=true;}return true;}function m(o,p,q){for(var r=0,s=p.length;r<s;r++)if(!q[r]&&k(o,p[r]))return r;return -1;}function n(o){return Object.prototype.toString.call(o)==='[object Object]';}f.exports=k;},null);
__d('AdsUniformSetValue',['AdsUniformValue','areSpecsEqual'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;j=babelHelpers.inherits(l,h);k=j&&j.prototype;l.create=function(m){'use strict';var n=m[0];for(var o=1;o<m.length;o++)if(!i(m[o],n))return null;return new l(n);};function l(){'use strict';j.apply(this,arguments);}f.exports=l;},null);
__d('AdsBulkValueTypesConfig',['AdsBulkValueTypes','AdsEmptyValue','AdsMixedValue','AdsNullValue_LEGACY','AdsUniformSetValue','AdsUniformValue'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n={EMPTY_SET_MIXED:new h(i,l,j),EMPTY_UNIFORM_MIXED:new h(i,m,j),MIXED:new h(j),NULL:new h(k),NULL_UNIFORM_MIXED:new h(k,m,j),NULL_SET_MIXED:new h(k,l,j),UNIFORM:new h(m),UNIFORM_OR_MIXED:new h(m,j),UNIFORM_SET_OR_MIXED:new h(l,j)};f.exports=n;},null);
__d('AdsLoadStatus',['keyMirrorRecursive'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=h({ERROR:'',LOADED:'',LOADING:'',NOT_LOADED:''});f.exports=i;},null);
__d('AdsLoadStatuses',['AdsLoadStatus','immutable','invariant'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k=new i.List([h.NOT_LOADED,h.LOADING,h.ERROR,h.LOADED]),l={};k.forEach(function(n,o){return (l[n]=o);});var m={fromPriority:function(n){!(0<=n&&n<k.size)?j(0):undefined;return k.get(n);},getStatuses:function(){return k;},max:function(n){var o=m.toPriority(h.LOADED),p=m.toPriority(h.NOT_LOADED);for(var q=n,r=Array.isArray(q),s=0,q=r?q:q[typeof Symbol==='function'?Symbol.iterator:'@@iterator']();;){var t;if(r){if(s>=q.length)break;t=q[s++];}else{s=q.next();if(s.done)break;t=s.value;}var u=t;p=Math.max(p,m.toPriority(u));if(p===o)break;}return m.fromPriority(p);},min:function(n){var o=m.toPriority(h.NOT_LOADED),p=m.toPriority(h.LOADED);for(var q=n,r=Array.isArray(q),s=0,q=r?q:q[typeof Symbol==='function'?Symbol.iterator:'@@iterator']();;){var t;if(r){if(s>=q.length)break;t=q[s++];}else{s=q.next();if(s.done)break;t=s.value;}var u=t;p=Math.min(p,m.toPriority(u));if(p===o)break;}return m.fromPriority(p);},toPriority:function(n){var o=l[n];!(typeof o==='number')?j(0):undefined;return o;}};f.exports=m;},null);
__d('AdsLoadProgressMixin',['AdsLoadStatus','invariant','shallowEqual'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();function k(m){return m;}l.prototype.defined=function(){return k(this.getValue());};l.prototype.equals=function(m){return this.getStatus()===m.getStatus()&&Object.is(this.getValue(),m.getValue());};l.prototype.shallowCompareEquals=function(m){return this.getStatus()===m.getStatus()&&j(this.getValue(),m.getValue());};l.prototype.flatMap=function(m){return this.getStatus()===h.LOADED?m(this.defined()):k(this);};l.prototype.isError=function(){return this.getStatus()===h.ERROR;};l.prototype.isLoaded=function(){return this.getStatus()===h.LOADED;};l.prototype.isLoading=function(){return this.getStatus()===h.LOADING;};l.prototype.isNotLoaded=function(){return this.getStatus()===h.NOT_LOADED;};l.prototype.orElse=function(m){return this.getStatus()===h.LOADED?this.defined():m();};l.prototype.orNull=function(){return this.getStatus()===h.LOADED?this.defined():null;};l.prototype.orUndefined=function(){return this.getStatus()===h.LOADED?this.defined():undefined;};function l(){}f.exports=l;},null);
__d('AdsLoadProgress',['AdsLoadStatus','AdsLoadStatuses','AdsLoadProgressMixin','invariant'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l,m;'use strict';function n(s){return s;}l=babelHelpers.inherits(o,j);m=l&&l.prototype;function o(s,t){m.constructor.call(this);Object.assign(this,s);}o.prototype.getStatus=function(){return this.status;};o.prototype.getValue=function(){return this.value;};o.prototype.map=function(s){var t=this.value;return this.status===h.LOADED?o.loaded(s(t)):n(this);};o.apply=function(s){var t=s.status,u=s.value;return o.create(t,u);};o.create=function(s,t){switch(s){case h.NOT_LOADED:return r;case h.LOADING:return q;case h.ERROR:return p;case h.LOADED:return new o({status:s,value:t},'secretKey');default:k(0);}};o.loaded=function(s){return new o({status:h.LOADED,value:s},'secretKey');};o.isLike=function(s){return (typeof s==='object'&&s!==null&&typeof s.getStatus==='function'&&typeof s.getValue==='function');};o.map=function(s,t){return s.map(t);};o.map2=function(s,t,u){var v=i.min([s,t].map(function(w){return w.getStatus();}));return o.create(v,v===h.LOADED?u(s.defined(),t.defined()):null);};o.map3=function(s,t,u,v){var w=i.min([s,t,u].map(function(x){return x.getStatus();}));return w===h.LOADED?o.loaded(v(s.defined(),t.defined(),u.defined())):o.create(w);};o.mapa=function(s,t){var u=i.min(s.map(function(v){return v.getStatus();}));return u===h.LOADED?o.loaded(t.apply(null,s.map(function(v){return v.defined();}))):o.create(u);};o.mapva=function(s){for(var t=arguments.length,u=Array(t>1?t-1:0),v=1;v<t;v++)u[v-1]=arguments[v];return o.mapa(u,s);};o.all=function(s){var t=h.LOADED,u;for(var v=s,w=Array.isArray(v),x=0,v=w?v:v[typeof Symbol==='function'?Symbol.iterator:'@@iterator']();;){if(w){if(x>=v.length)break;u=v[x++];}else{x=v.next();if(x.done)break;u=x.value;}t=i.min([t,u.getStatus()]);if(t===h.NOT_LOADED)break;}if(t===h.LOADED){var y=[];for(var z=s,aa=Array.isArray(z),ba=0,z=aa?z:z[typeof Symbol==='function'?Symbol.iterator:'@@iterator']();;){if(aa){if(ba>=z.length)break;u=z[ba++];}else{ba=z.next();if(ba.done)break;u=ba.value;}y.push(u.value);}return o.loaded(y);}else return o.create(t);};o.sequenceArray=function(s){return o.all(s);};o.allObject=function(s){var t,u=h.LOADED;for(t in s){u=i.min([u,s[t].getStatus()]);if(u===h.NOT_LOADED)break;}if(u===h.LOADED){var v={};for(t in s)v[t]=s[t].value;return o.loaded(v);}else return o.create(u);};o.sequenceObject=function(s){return o.allObject(s);};var p=new o({status:h.ERROR},'secretKey'),q=new o({status:h.LOADING},'secretKey'),r=new o({status:h.NOT_LOADED},'secretKey');Object.assign(o,{error:p,loading:q,notLoaded:r});f.exports=o;},null);
__d('AdsPropTypes',['AdsLoadProgress','React','ReactPropTypeLocationNames','getObjectValues'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l=i.PropTypes,m='ANONYMOUS';function n(p){function q(s,t,u,v,w){v=v||m;if(t[u]==null){var x=j[w];if(s)return new Error('Required '+x+' \''+u+'\' was not specified in\n          \''+v+'\'.');}else return p(t,u,v,w);}var r=q.bind(null,false);r.isRequired=q.bind(null,true);return r;}var o={bulk:function(p){return l.oneOfType(p.getTypes().map(function(q){return l.instanceOf(q);}));},keyOf:function(p){return l.oneOf(Object.keys(p));},valueIn:function(p){return l.oneOf(k(p));},loadProgressOf:function(p){return n(function(q,r,s,t){var u=q[r];if(!h.isLike(u)){var v=j[t];return new Error('Invalid '+v+' \''+r+'\' of type\n            \''+typeof u+'\' supplied to \''+s+'\',\n            expected an AdsLoadProgress like object.');}if(u.isLoaded()){var w={};w[r]=u.getValue();return p(w,r,s,t);}});}};f.exports=o;},null);
__d('setByPath',['invariant'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();function i(j,k,l){var m=j;for(var n=0;n<k.length;n++){var o=k[n];if(n===k.length-1){m[o]=l;return;}if(!m.hasOwnProperty(o)){m[o]={};}else if(m[o]==null){m[o]={};}else !(Array.isArray(m[o])||Object.prototype.toString.call(m[o])==='[object Object]')?h(0):undefined;m=m[o];}}f.exports=i;},null);
__d('AdsBulkValueUtils',['AdsBulkValue','AdsBulkValueTypes','AdsEmptyValue','AdsMixedValue','AdsNullValue_LEGACY','AdsPropTypes','AdsUniformValue','ImmutableObject','React','Set','StrSet','areEqual','areSpecsEqual','curry','emptyFunction','getByPath','invariant','mapObject','setByPath'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z){if(c.__markCompiled)c.__markCompiled();var aa=p.PropTypes,ba=[],ca=new o(),da={aggregateDeep:ia,aggregate:ha,areObjectsEqual:va,areValuesEqual:ua,cleanBulkSpec:jb,deaggregateDeep:ja,deaggregateDeepByID:ka,deaggregateDeepByIDToMap:la,getFieldPaths:wa,getObjectDiff:xa,getObjectDeepChanges:ya,getUniformValue:fa,getUniformValueDeep:ga,getValue:fb,getValueDeepAt:gb,getValueOrMixed:ea,hasBulkValue:cb,areBulkValuesEqual:db,hasValueDeep:eb,schemaToShape:na,traverseSpec:ib,wrapValue:hb,MIXED_VALUE:ca};function ea(kb){if(kb instanceof l){return null;}else if(kb instanceof n){return kb.getValue();}else if(kb instanceof k){return ca;}else x(0);}function fa(kb,lb){if(kb instanceof n){return kb.getValue();}else return lb;}function ga(kb,lb,mb){if(!kb)return mb;var nb=da.deaggregateDeep(kb,lb);if(nb.length<=1)return nb[0];var ob=nb[0];if(nb.every(function(pb){return s(pb,ob);})){return ob;}else return mb;}function ha(kb,lb){var mb;kb.getTypes().some(function(nb){mb=nb.create(lb);if(mb)return true;});if(mb instanceof n&&!(mb instanceof j)&&mb.getValue()===undefined)return undefined;!mb?x(0):undefined;return mb;}function ia(kb,lb){var mb=u(ra,lb),nb=oa(kb,mb);return nb;}function ja(kb,lb){var mb=[],nb=0;while(nb<lb){var ob={},pb=u(sa,ob,nb);oa(kb,pb);mb[nb]=ob;nb++;}return mb;}function ka(kb){if(!kb.id&&!bb(kb))return [];!(kb.id instanceof h)?x(0):undefined;return ja(kb,kb.id.getValues().length);}function la(kb){var lb=ka(kb),mb={};lb.forEach(function(nb){mb[nb.id]=nb;});return mb;}var ma=v.thatReturns();ma.isRequired=v.thatReturns();function na(kb){return ma;}function oa(kb,lb){return pa(kb,lb,{},[]);}function pa(kb,lb,mb,nb){!qa(kb)?x(0):undefined;if(kb instanceof i||kb instanceof h)return lb(kb,nb);for(var ob in kb)if(kb[ob]!==undefined){nb.push(ob);mb[ob]=pa(kb[ob],lb,{},nb);nb.pop();}return mb;}function qa(kb){if(!kb||typeof kb!=='object'||Array.isArray(kb))return false;return true;}function ra(kb,lb,mb){var nb=[],ob=false;kb.forEach(function(qb){var rb=w(qb,mb);if(rb!==undefined)ob=true;nb.push(rb);});var pb;lb.getTypes().some(function(qb){if(!ob&&qb!==l&&qb!==j)return;pb=qb.create(nb);if(pb)return true;});if(ob){!pb?x(0):undefined;}else !(pb===undefined||pb instanceof l||pb instanceof j)?x(0):undefined;return pb;}function sa(kb,lb,mb,nb){var ob=mb.getValueForIndex(lb);if(ob!==undefined)z(kb,nb,mb.getValueForIndex(lb));}function ta(kb){return (kb===undefined||kb===null||kb instanceof l||kb instanceof j);}function ua(kb,lb){if(kb===lb)return true;var mb=ta(kb),nb=ta(lb);if(mb||nb)return mb&&nb;var ob=kb instanceof h?kb.getValues():ba,pb=lb instanceof h?lb.getValues():ba;if(ob.length!==pb.length)return false;return !pb.some(function(qb,rb){return !t(qb,ob[rb]);});}function va(kb,lb,mb){if(kb===lb)return true;var nb=ta(kb),ob=ta(lb);if(nb||ob)return nb&&ob;if(!za(kb)||!za(lb))return s(kb,lb);var pb=Object.keys(kb).concat(Object.keys(lb));pb=new q(pb);if(!mb)mb={};return Array.from(pb).every(function(qb){if(mb[qb])return true;var rb=kb[qb],sb=lb[qb];if(rb instanceof h||sb instanceof h){if(!ua(rb,sb))return false;}else if(!va(rb,sb))return false;return true;});}function wa(kb,lb){var mb=[],nb=lb||[];Object.keys(kb).forEach(function(ob){var pb=nb.concat(ob);if(kb[ob]==null||kb[ob] instanceof h){mb.push(pb);}else mb=mb.concat(wa(kb[ob],pb));});return mb;}function xa(kb,lb){if(ta(kb)||ta(lb))return kb;var mb=Object.keys(kb).concat(Object.keys(lb));mb=new q(mb);var nb={};Array.from(mb).forEach(function(ob){var pb=lb[ob],qb=kb[ob];if(pb instanceof h||qb instanceof h){if(!ua(pb,qb))nb[ob]=qb;}else if(!va(pb,qb))nb[ob]=qb;});if(kb.id)nb.id=kb.id;return nb;}function ya(kb,lb){if(ta(kb)||ta(lb))return kb;var mb=Object.keys(kb).concat(Object.keys(lb));mb=new q(mb);var nb={};Array.from(mb).forEach(function(ob){var pb=lb[ob],qb=kb[ob];if(pb instanceof h||qb instanceof h){if(!ua(pb,qb))nb[ob]={'new':qb,old:pb};}else if(za(pb)||za(qb)){var rb=ya(qb,pb);if(rb&&!ab(rb))nb[ob]=rb;}});if(kb.id)nb.id=kb.id;return nb;}function za(kb){return Object.prototype.toString.call(kb)==='[object Object]';}function ab(kb){var lb;for(lb in kb)return false;return true;}function bb(kb){var lb,mb;for(lb in kb){mb=kb[lb];if(mb===undefined||mb instanceof l||mb instanceof j)continue;if(mb instanceof h)return true;if(za(mb)){if(bb(mb))return true;continue;}x(0);}return false;}function cb(kb){var lb,mb;for(lb in kb){mb=kb[lb];if(mb===undefined)continue;if(mb instanceof h)return true;if(za(mb)){if(cb(mb))return true;continue;}x(0);}return false;}function db(kb,lb){var mb=new r(kb.getValues()),nb=new r(lb.getValues());return mb.equals(nb);}function eb(kb,lb){var mb;if(lb.length){mb=function(ob,pb){return !!lb.some(function(qb){return w(qb,pb)!==undefined;});};}else mb=function(){return false;};var nb=oa(kb,mb);return nb;}function fb(kb){if(kb instanceof l){return null;}else if(kb instanceof n){return kb.getValue();}else if(kb instanceof k){return ca;}else x(0);}function gb(kb,lb){var mb={},nb=u(sa,mb,lb);oa(kb,nb);return ab(mb)?undefined:mb;}function hb(kb){if(kb instanceof h)return kb;return new n(kb);}function ib(kb,lb){Object.keys(kb).forEach(function(mb){if(kb[mb] instanceof h){lb(kb[mb]);}else if(Object.prototype.toString.call(kb[mb])==='[object Object]')ib(kb[mb],lb);});}function jb(kb){var lb={},mb=[],nb=function(ob){if(ob instanceof h){if(!ta(ob))z(lb,mb,ob);}else if(za(ob))Object.keys(ob).forEach(function(pb){mb.push(pb);nb(ob[pb]);mb.pop();});};nb(kb);return new o(lb);}f.exports=da;},null);
__d("DayPartingUtils",["AdsAPIPacingType","AdsBulkValueTypesConfig","AdsBulkValueUtils","Assert","removeFromArray"],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m={DAYS_IN_WEEK:7,HOURS_IN_DAY:24,mergeDays:function(n){k.isTrue(n.length===7);var o=m.createArray(m.DAYS_IN_WEEK,function(){return 0;}),p=[];while(true){var q=null,r=0;while(r<7){if(o[r]<n[r].length){q=n[r][o[r]];o[r]++;break;}r++;}if(q===null)break;var s={start_minute:q.start_minute,end_minute:q.end_minute,days:[r]};while(r<7){if(o[r]<n[r].length){var t=n[r][o[r]],u=t.start_minute===q.start_minute&&t.end_minute===q.end_minute;if(u){s.days.push(r);o[r]++;}}r++;}p.push(s);}return p;},normalizeDayparts:function(n){if(!n.length)return [];var o=m.createArray(m.DAYS_IN_WEEK,function(){return [];});n.forEach(function(t){t.days.forEach(function(u){o[u].push({start_minute:t.start_minute,end_minute:t.end_minute});});});for(var p=0;p<7;p++)o[p].sort(function(t,u){if(t.start_minute!==u.start_minute){return t.start_minute-u.start_minute;}else return t.end_minute-u.end_minute;});var q=m.createArray(m.DAYS_IN_WEEK,function(){return [];});for(p=0;p<7;p++)if(o[p].length>0){var r=o[p][0];for(var s=1;s<o[p].length;s++)if(o[p][s].start_minute<=r.end_minute){r.end_minute=Math.max(r.end_minute,o[p][s].end_minute);}else{q[p].push(r);r=o[p][s];}q[p].push(r);}return m.mergeDays(q);},createArray:function(n,o){var p=new Array(n);for(var q=0;q<n;q++)p[q]=o();return p;},setDayPartingEnabled:function(n,o){var p=m.setDayParting((n.pacing_type()||[]).slice(),o);n.pacing_type(p);if(!o)n.campaign_schedule([]);n.validate('campaign_schedule');},setNoPacing:function(n,o){l(n,h.NO_PACING);l(n,h.STANDARD);if(o){n.push(h.NO_PACING);}else if(n.length===0)n.push(h.STANDARD);return n;},setDayParting:function(n,o){l(n,h.DAY_PARTING);l(n,h.STANDARD);if(o){n.push(h.DAY_PARTING);}else if(n.length===0)n.push(h.STANDARD);return n;},setBulkDayParting:function(n,o){var p=n.getValues().slice(0).length,q=[];for(var r=0;r<p;r++)q.push(m.setDayParting(n.getValues()[r].slice(0),o));return j.aggregate(i.UNIFORM_OR_MIXED,q);}};f.exports=m;},null);
__d('DayPartingGrid',['DayPartingUtils'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=h.DAYS_IN_WEEK,j=h.HOURS_IN_DAY;function k(l){'use strict';if(l){this.hours=new Array(i);for(var m=0;m<i;m++)this.hours[m]=l.hours[m].slice();this.everyDay=l.everyDay.slice();this.allDay=l.allDay.slice();}else{this.hours=this.$DayPartingGrid1();this.allDay=h.createArray(i,function(){return false;});this.everyDay=h.createArray(j,function(){return false;});}}k.prototype.set=function(l,m,n,o,p){'use strict';var q;if(n<l){q=l;l=n;n=q;}if(o<m){q=m;m=o;o=q;}for(var r=l;r<=n;r++){for(var s=m;s<=o;s++)this.hours[r][s]=p;this.$DayPartingGrid2(r);}for(s=m;s<=o;s++)this.$DayPartingGrid3(s);};k.prototype.setEveryDay=function(l,m,n){'use strict';if(m<l){var o=l;l=m;m=o;}this.set(0,l,i-1,m,n);};k.prototype.setAllDay=function(l,m,n){'use strict';if(m<l){var o=l;l=m;m=o;}this.set(l,0,m,j-1,n);};k.prototype.isSelected=function(l,m){'use strict';if(m===null)return !!this.allDay[l];if(l===null)return !!this.everyDay[m];return !!this.hours[l][m];};k.prototype.$DayPartingGrid2=function(l){'use strict';var m=true;for(var n=0;n<j;n++)if(this.hours[l][n]!==true){m=false;break;}this.allDay[l]=m;};k.prototype.$DayPartingGrid3=function(l){'use strict';var m=true;for(var n=0;n<i;n++)if(this.hours[n][l]!==true){m=false;break;}this.everyDay[l]=m;};k.prototype.getSchedule=function(){'use strict';var l=new Array(7);for(var m=0;m<i;m++){var n=this.toAPIDayIndex(m);l[n]=this.$DayPartingGrid4(m);}return h.mergeDays(l);};k.prototype.$DayPartingGrid4=function(l){'use strict';var m=[],n=null,o=function(r){if(n!==null)m.push({start_minute:n*60,end_minute:r*60});};for(var p=0;p<j;p++){var q=this.hours[l][p];if(n===null){if(q===true)n=p;}else if(q===false){o(p);n=null;}}if(n!==null)o(j);return m;};k.prototype.setSchedule=function(l){'use strict';var m=this.$DayPartingGrid1();l.forEach((function(p){p.days.forEach((function(q){var r=this.fromAPIDayIndex(q),s=p.start_minute/60,t=p.end_minute/60;for(var u=s;u<t;u++)m[r][u]=true;}).bind(this));}).bind(this));this.hours=m;for(var n=0;n<i;n++)this.$DayPartingGrid2(n);for(var o=0;o<j;o++)this.$DayPartingGrid3(o);return this;};k.prototype.toAPIDayIndex=function(l){'use strict';return (l+1)%h.DAYS_IN_WEEK;};k.prototype.fromAPIDayIndex=function(l){'use strict';return (l+6)%h.DAYS_IN_WEEK;};k.prototype.$DayPartingGrid1=function(){'use strict';return h.createArray(i,function(){return h.createArray(j,function(){return false;});});};f.exports=k;},null);
__d('ads-objectives',['AdproObjectiveType','AdsAPIObjectives','AdsDestinationTypes','keyMirror'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l=k({POST_ENGAGEMENT:null,PAGE_LIKES:null,WEBSITE_CLICKS:null,WEBSITE_CONVERSIONS:null,APP_INSTALLS:null,CANVAS_APP_INSTALLS:null,MOBILE_APP_INSTALLS:null,APP_ENGAGEMENT:null,CANVAS_APP_ENGAGEMENT:null,MOBILE_APP_ENGAGEMENT:null,EVENT_RESPONSES:null,OFFER_CLAIMS:null,LOCAL_AWARENESS:null,VIDEO_VIEWS:null,INSTAGRAM_BRAND_AWARENESS:null,PRODUCT_CATALOG_SALES:null,LEAD_GENERATION:null,BRAND_AWARENESS:null,NONE:null,MIXED:null}),m=k({LARGE:null,MEDIUM:null,SMALL:null}),n=k({ACTIVE:null,DEFAULT:null,HOVER:null}),o=[i.OFFER_CLAIMS,i.POST_ENGAGEMENT],p={};p[j.APP]=[l.APP_INSTALLS,l.APP_ENGAGEMENT];p[j.EVENT]=[l.EVENT_RESPONSES];p[j.EXTERNAL_WEBPAGE]=[l.WEBSITE_CLICKS,l.WEBSITE_CONVERSIONS,l.PRODUCT_CATALOG_SALES];p[j.PAGE]=p[j.PLACE]=[l.PAGE_LIKES,l.POST_ENGAGEMENT,l.LOCAL_AWARENESS,l.VIDEO_VIEWS,l.OFFER_CLAIMS,l.LEAD_GENERATION];var q={};q[l.PAGE_LIKES]=i.PAGE_LIKES;q[l.POST_ENGAGEMENT]=i.POST_ENGAGEMENT;q[l.WEBSITE_CLICKS]=i.WEBSITE_CLICKS;q[l.WEBSITE_CONVERSIONS]=i.WEBSITE_CONVERSIONS;q[l.OFFER_CLAIMS]=i.OFFER_CLAIMS;q[l.VIDEO_VIEWS]=i.VIDEO_VIEWS;q[l.EVENT_RESPONSES]=i.EVENT_RESPONSES;q[l.LOCAL_AWARENESS]=i.LOCAL_AWARENESS;q[l.LEAD_GENERATION]=i.LEAD_GENERATION;q[l.APP_ENGAGEMENT]=i.CANVAS_APP_ENGAGEMENT;q[l.APP_INSTALLS]=i.MOBILE_APP_INSTALLS;q[l.PRODUCT_CATALOG_SALES]=i.PRODUCT_CATALOG_SALES;var r={};r[i.CANVAS_APP_ENGAGEMENT]=l.APP_ENGAGEMENT;r[i.CANVAS_APP_INSTALLS]=l.APP_INSTALLS;r[i.EVENT_RESPONSES]=l.EVENT_RESPONSES;r[i.LOCAL_AWARENESS]=l.LOCAL_AWARENESS;r[i.MOBILE_APP_ENGAGEMENT]=l.APP_ENGAGEMENT;r[i.MOBILE_APP_INSTALLS]=l.APP_INSTALLS;r[i.OFFER_CLAIMS]=l.OFFER_CLAIMS;r[i.VIDEO_VIEWS]=l.VIDEO_VIEWS;r[i.WEBSITE_CONVERSIONS]=l.WEBSITE_CONVERSIONS;r[i.POST_ENGAGEMENT]=l.POST_ENGAGEMENT;r[i.PAGE_LIKES]=l.PAGE_LIKES;r[i.WEBSITE_CLICKS]=l.WEBSITE_CLICKS;r[i.PRODUCT_CATALOG_SALES]=l.PRODUCT_CATALOG_SALES;r[i.LEAD_GENERATION]=l.LEAD_GENERATION;var s=function(v){return [i.CANVAS_APP_INSTALLS,i.EVENT_RESPONSES,i.PAGE_LIKES].indexOf(v)>-1;},t=function(v){return [i.WEBSITE_CLICKS,i.WEBSITE_CONVERSIONS].indexOf(v)>-1;},u=function(v){switch(v){case h.OFFER_CLAIMS:return l.OFFER_CLAIMS;case h.PAGE_LIKES:return l.PAGE_LIKES;case h.CANVAS_APP_INSTALLS:return l.CANVAS_APP_INSTALLS;case h.EVENT_RESPONSES:return l.EVENT_RESPONSES;case h.CANVAS_APP_ENGAGEMENT:return l.CANVAS_APP_ENGAGEMENT;case h.POST_ENGAGEMENT:return l.POST_ENGAGEMENT;case h.WEBSITE_CONVERSIONS:return l.WEBSITE_CONVERSIONS;case h.MOBILE_APP_INSTALLS:return l.MOBILE_APP_INSTALLS;case h.WEBSITE_CLICKS:return l.WEBSITE_CLICKS;case h.MOBILE_APP_ENGAGEMENT:return l.MOBILE_APP_ENGAGEMENT;case h.VIDEO_VIEWS:return l.VIDEO_VIEWS;case h.LOCAL_AWARENESS:return l.LOCAL_AWARENESS;case h.INSTAGRAM_BRAND_AWARENESS:return l.INSTAGRAM_BRAND_AWARENESS;case h.PRODUCT_CATALOG_SALES:return l.PRODUCT_CATALOG_SALES;case h.LEAD_GENERATION:return l.LEAD_GENERATION;case h.BRAND_AWARENESS:return l.BRAND_AWARENESS;case h.MULTIPLE:return l.MIXED;default:return l.NONE;}};f.exports={APItoKPIObjectives:r,getKPIObjectiveFromAdproObjective:u,isCreateConnectionObjective:s,isURLCachingEligibileObjective:t,KPIObjectives:l,KPIObjectivesByDestinationType:p,KPIObjectivesImageSize:m,KPIObjectivesImageState:n,KPItoAPIObjectives:q,OBJECTIVES:i,APIObjectivesWithRequiredStoryID:o};},null);
__d('AdsCFDestinationUtils',['AdsAddressUtils','ads-app-platforms','AdsCFAccountStore','AdsCFConstants','AdsCFDestinationDataLoader','AdsCommonGeocoderStore','AdsCreationConfig','AdsDestinationTypes','AdsGeocoderActions','AdsGeoTargetingUtils','AdsImageCollection','AdsImageCollectionViews','AdsImageLegacy','CurrentUser','DateConsts','DayPartingGrid','GeoCoordinates','SearchableEntry','WebApiApplication','arrayContains','fbt','ads-lib-urllib','ads-lib-connect_DEPRECATED','ads-objectives'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca){'use strict';if(c.__markCompiled)c.__markCompiled();var da=c('ads-lib-connect_DEPRECATED').FB,ea=c('ads-objectives').KPIObjectives,fa=i.NATIVE_APP_TO_MOBILE_STORE_MAP,ga='/images/icons/t_default.jpg',ha=['sun','mon','tue','wed','thu','fri','sat'],ia='open',ja='close';function ka(xa,ya){xa=xa||{};var za={activeCoupons:xa.active_coupons||[],infoAvailable:true,destinationId:xa.id,destinationName:xa.type===o.EXTERNAL_WEBPAGE?xa.url:xa.name||xa.title_fill||xa.original_object_url||ba._("No description available"),destinationTitle:xa.title_fill||xa.name||'',destinationSummary:xa.body_fill||xa.description||'',destinationPicture:ra(xa),destinationImages:sa(xa.images),destinationOriginalObjectUrl:ca.normalize(xa.object_url||xa.url),destinationIsOG:!!xa.is_og,destinationUrl:xa.url,destinationCityInfo:xa.city_info,eventID:xa.eventID,fanCountries:xa.fan_countries,suggestedTopics:xa.suggested_topics,destinationType:xa.type,tabs:xa.tabs||{},minAge:+xa.minimum_age<n.maxAge?+xa.minimum_age:n.minAge,canCreateAd:xa.can_create_ad===undefined?!!xa.is_admin:!!xa.can_create_ad,isAdmin:!!xa.is_admin,isAppLinksUsed:!!xa.app_links_used,isBlackholed:!!xa.is_blackholed,canReceiveMessage:!!xa.can_receive_message,isPublished:!!xa.is_published,offerEligible:!!xa.offer_eligible,eventCreatorId:xa.event_creator_id,hasEnoughFansForOffers:xa.has_enough_fans_for_offers,showOfferLWComposer:xa.open_offer_lw_composer_in_ads_cf,geoGating:xa.geo_gating,canCreatePageContent:xa.can_create_page_content,storyId:xa.story_id||'',warmup:!!ya,isGame:xa.is_game,defaultObjective:xa.default_objective,actualDestinationType:xa.type,appPlatforms:i.getPlatformsFromGraph(xa.app_platforms),appInstallsTracked:xa.app_installs_tracked,defaultDailyBudget:xa.default_daily_budget,forceUseDefaultDailyBudget:xa.force_use_default_daily_budget,nativeAppStoreIds:xa.native_app_store_ids,category:xa.category,subcategory:xa.subcategory,mobileStoreObject:xa.mobile_store_object,mobileStoreDestinationType:xa.mobile_store_destination_type,originalObjectUrl:xa.original_object_url,supportedDevices:xa.supported_devices,mobileAppCPAAccess:xa.mobile_app_cpa_access,interests:xa.interests,objectStoreUrl:xa.object_store_url,objectStoreUrls:xa.object_store_urls,canEdit:xa.canEdit,phone:xa.phone,hours:xa.hours};return za;}function la(xa,ya,za,ab){ab=ab||ya.destinationName;if(ya.originalObjectUrl&&(za===ea.WEBSITE_CLICKS||za===ea.WEBSITE_CONVERSIONS))ab=ya.originalObjectUrl;var bb=new y({uniqueID:xa,title:ab,photo:ya.destinationPicture});return bb;}function ma(xa){var ya=q.getDefaultGeoTargetingCountry(xa,j.getState().businessCountryCode,n.userLocalCountryCode);if(ya.length===0)return;return ya[0];}function na(xa,ya){var za=ya.coordinates!=undefined;return babelHelpers._extends({isPageLocationAddressValid:za,place:ya.place,location:ya.addressFields,validAddress:za?ya.fullAddress:undefined,validLatitude:za?ya.coordinates.latitude:undefined,validLongitude:za?ya.coordinates.longitude:undefined},xa);}function oa(xa,ya){var za=u.getID();return xa.fetch.accessTokenForPage.promiseOne({pageId:ya}).then(function(ab){return xa.fetch.rolesOnPage.promiseOne({access_token:ab.access_token,pageId:ya,userId:za});}).then(function(ab){return ab.some(function(bb){return bb.id===za&&aa(bb.perms,'EDIT_PROFILE');});},function(ab){return false;});}function pa(xa){return l.promisePlace(xa).then(function(ya){return {place:ya};},function(ya){return l.getPageAddressFields(xa).then(function(za){if(!za||!za.street_address)return;return qa(xa,za);});})['catch'](function(ya){});}function qa(xa,ya){var za=h.formatSingleLineAddress({street:ya.street_address,city:ya.city.name,state:ya.region&&ya.region.name,country:ya.country.name});return m.promiseAddressCoordinates(za).then(function(ab){p.handleGeocoderSuccessResponse(za,k.CanonicalID,ab,{pageID:xa});var bb=new x(ab[0].latitude,ab[0].longitude);return {addressFields:ya,fullAddress:za,coordinates:bb};},function(ab){p.handleGeocoderFailureResponse(za,k.CanonicalID,ab,{pageID:xa});return {addressFields:ya,fullAddress:za};});}function ra(xa){switch(xa.type){case o.EXTERNAL_WEBPAGE:return xa.picture||ga;case o.APP:return xa.picture;default:var ya=xa.id;if(!ya)return ga;return da.url('/'+ya+'/picture',{type:'large'},z.getAccessToken());}}function sa(xa){xa=xa||[];var ya=new r();ya.addImagesToBack(xa.map(function(za){return new t({url:za});}),s.views.LIBRARY);return ya;}function ta(xa){var ya=xa.split(':').map(function(za){return parseInt(za,10);});return ya[0]*60+ya[1];}function ua(xa){if(!xa)return null;var ya=new w(),za=[];for(var ab=0;ab<ha.length;ab++)for(var bb=1;bb<=2;bb++){var cb='_'+bb+'_',db=ha[ab]+cb+ia,eb=ha[ab]+cb+ja,fb=xa[db],gb=xa[eb];if(!(fb&&gb))continue;var hb=ta(fb),ib=ta(gb);if(hb<ib){za.push({days:[ab],start_minute:hb,end_minute:ib});}else za.push({days:[ab],start_minute:hb,end_minute:v.HOUR_PER_DAY*v.MIN_PER_HOUR},{days:[(ab+1)%v.DAYS_PER_WEEK],start_minute:0,end_minute:ib});}return ya.setSchedule(za);}function va(xa,ya){if(ya.isPublished||xa!==o.PAGE&&xa!==o.PLACE)return false;return true;}function wa(xa,ya){if(xa.objectStoreUrl)return xa.objectStoreUrl;var za=fa[ya];return xa.objectStoreUrls[za];}f.exports={convertAPIDataToFields:ka,convertOpenHoursToDayParting:ua,convertToSearchableEntry:la,getAppUrlForPlatform:wa,getDestinationDefaultCountry:ma,isUnpublishedPage:va,mergeLocationIntoDetails:na,promisePageEditRights:oa,promisePageLocation:pa};},null);
__d('AdsCFCreativeViewActions',['AdsCFActionTypes','AdsCFDestinationUtils','AdsDispatcher'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k={clickFormatLearnMore:function(l){j.handleUpdateFromViewAction({isMPA:l,eventName:'click_format_section_learn_more',eventSource:'creative_editor',type:h.CREATIVE_FORMAT_LEARN_MORE});},setMultiProductReorder:function(l,m){j.handleUpdateFromViewAction({fromIndex:l,toIndex:m,type:h.MULTI_PRODUCT_REORDER});},selectMultiProductTab:function(l){j.handleUpdateFromViewAction({tabIndex:l,type:h.MULTI_PRODUCT_TAB_SELECT});},setCreativeTitle:function(l){j.handleUpdateFromViewAction({title:l,type:h.CREATIVE_CHANGE});},setCreativeBody:function(l){j.handleUpdateFromViewAction({body:l,type:h.CREATIVE_CHANGE});},setCreativeDeepLink:function(l){j.handleUpdateFromViewAction({applinkUrl:l,type:h.CREATIVE_CHANGE});},setCreativeDeepLinkTitle:function(l){j.handleUpdateFromViewAction({mobileProductName:l,type:h.CREATIVE_CHANGE});},setCreativeCallToActionType:function(l){j.handleUpdateFromViewAction({callToActionType:l,productLinkUrl:null,type:h.CREATIVE_CHANGE});},setCreativeCallToActionLink:function(l){j.handleUpdateFromViewAction({callToActionLink:l,type:h.LEARN_MORE_URL_CHANGE});},submitCreativeCallToActionLink:function(){j.handleUpdateFromViewAction({type:h.LEARN_MORE_URL_SUBMIT});},setCreativeCallToActionGetDirectionsLink:function(l){j.handleUpdateFromViewAction({callToActionLink:l,type:h.GET_DIRECTIONS_LOCATION_CHANGE});},setCreativeCallToActionLinkCaption:function(l){j.handleUpdateFromViewAction({callToActionLinkCaption:l,type:h.CREATIVE_CHANGE});},setCreativeChildAttachments:function(l){j.handleUpdateFromViewAction({childAttachments:l,type:h.CREATIVE_CHANGE});},setCreativeLPPFormatChange:function(l){j.handleUpdateFromViewAction({isMPA:l,type:h.CREATIVE_LPP_FORMAT_CHANGE});},setCreativeMultiShareOptimized:function(l){j.handleUpdateFromViewAction({multiShareOptimized:l,type:h.CREATIVE_CHANGE});},setCreativeProductLink:function(l){j.handleUpdateFromViewAction({productLinkUrl:l,type:h.CREATIVE_CHANGE});},setIsUsingExistingPost:function(l){j.handleUpdateFromViewAction({type:h.SET_IS_USING_EXISTING_POST,isUsingExistingPost:l});},setIsVideoCreative:function(l){j.handleUpdateFromViewAction({isVideoCreative:l,type:h.CREATIVE_CHANGE});},setCreativeVideoID:function(l){j.handleUpdateFromViewAction({type:h.CREATIVE_CHANGE,videoId:l});j.handleUpdateFromViewAction({type:h.SET_VIDEO_DATA,videoId:l});},setVideoAndThumbnail:function(l,m){j.handleUpdateFromViewAction({type:h.CREATIVE_CHANGE,videoId:l,videoThumbnail:m});j.handleUpdateFromViewAction({type:h.SET_VIDEO_DATA,videoId:l,videoThumbnail:m});},setCreativeLinkUrl:function(l){j.handleUpdateFromViewAction({linkUrl:l,type:h.CREATIVE_CHANGE});},setCreativeIconImage:function(l){j.handleUpdateFromViewAction({iconImage:l,type:h.CREATIVE_CHANGE});},setCreativeImageList:function(l){j.handleUpdateFromViewAction({imageList:l,type:h.SET_IMAGE_LIST});},setCreativeLinkDescription:function(l){j.handleUpdateFromViewAction({linkDescription:l,type:h.CREATIVE_CHANGE});},setShowEndCard:function(l){j.handleUpdateFromViewAction({multiShareEndCard:l,type:h.CREATIVE_CHANGE});},setStoryId:function(l){j.handleUpdateFromViewAction({storyId:l,type:h.CREATIVE_CHANGE});},setURLTags:function(l){j.handleUpdateFromViewAction({type:h.CREATIVE_CHANGE,urlTags:l});},setActor:function(l,m){j.handleUpdateFromViewAction({actor:l,eventSource:m,type:h.CREATIVE_CHANGE});},setInstagramAccountID:function(l){j.handleUpdateFromViewAction({instagramActorID:l,type:h.SET_INSTAGRAM_ACCOUNT_ID});},setPlacements:function(l,m,n){j.handleUpdateFromViewAction({enabled:m,eventSource:n,placementList:l,type:h.CREATIVE_PLACEMENTS_CHANGE});},resetPlacements:function(l){j.handleUpdateFromViewAction({eventSource:l,type:h.CREATIVE_PLACEMENTS_RESET});},imageValidated:function(l,m,n){j.handleUpdateFromViewAction({image:l,placement:m,type:h.IMAGE_VALIDATED,validation:n});},updateImageCrop:function(l,m,n,o,p){j.handleUpdateFromViewAction({data:{coordinates:p,cropKey:n,image:m,objective:l,placement:o},type:h.IMAGE_CROP_CHANGE});},updateImageCrops:function(l,m){j.handleUpdateFromViewAction({data:{crops:m,image:l},type:h.IMAGE_CROPS_CHANGE});},callNowFragmentChange:function(l){j.handleUpdateFromViewAction({phoneNumberFragment:l,type:h.CALL_NOW_FRAGMENT_CHANGE});},callNowFragmentSubmit:function(){j.handleUpdateFromViewAction({type:h.CALL_NOW_FRAGMENT_SUBMIT});},setAppPlatform:function(l,m){j.handleUpdateFromViewAction({applinkUrl:l&&l.isAppLinksUsed?l.originalObjectUrl:null,linkUrl:i.getAppUrlForPlatform(l,m),platform:m,type:h.CREATIVE_CHANGE});},selectImageMediaType:function(){j.handleUpdateFromViewAction({type:h.IMAGE_MEDIA_TYPE_SELECTED});},selectVideoMediaType:function(){j.handleUpdateFromViewAction({type:h.VIDEO_MEDIA_TYPE_SELECTED});},submitLandingURL:function(){j.handleUpdateFromViewAction({type:h.LANDING_URL_SUBMIT});},changeLandingURL:function(l,m){j.handleUpdateFromViewAction({linkUrl:l,linkMode:m,type:h.LANDING_URL_CHANGE});}};f.exports=k;},null);
__d('AdsCFCreativeURLTags.react',['AdsCFCreativeViewActions','AdsTextInput.react','React','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m=j.createClass({displayName:'AdsCFCreativeURLTags',render:function(){var n=l._("URL Tags"),o=l._("URL tags you specify here will be appended to or will replace existing tags in the URLs. For example, if the URL tags are specified as {tags} and the stream story includes the URL {url-tags}, then the URL will be updated to {url-tags-full}.",[l.param('tags','key1=val1&key2=val2'),l.param('url-tags','www.example.com?key1=test'),l.param('url-tags-full','www.example.com?key1=val1&key2=val2')]);return (j.createElement(i,{className:"_4q4x",label:n,helpText:o,placeholder:'',onChange:this._onChangeURLTags,value:this.props.value,maxLength:1024}));},_onChangeURLTags:function(n){h.setURLTags(n);}});f.exports=m;},null);
__d('AdsCFCreativeCanvasAppEngagementFields.react',['AdsCFCreativeContentFieldsMixin','AdsCFCreativeStrings.react','AdsCFCreativeURLTags.react','AdsCFDeepLink.react','React'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=l.PropTypes,n=l.createClass({displayName:'AdsCFCreativeCanvasAppEngagementFields',mixins:[h],propTypes:{accountID:m.string.isRequired,availableActors:m.array.isRequired,campaign:m.object.isRequired,creative:m.object.isRequired,destinationDetails:m.object.isRequired,errorSpec:m.object.isRequired,objective:m.string,pixelID:m.string,pixels:m.array,typeName:m.string.isRequired},render:function(){return (l.createElement('div',null,l.createElement('fieldset',null,l.createElement('div',null,this.renderPageTypeahead(),this.renderTitle(),this.renderBody(),this.renderAppCallToAction(this.props.objective,this.props.errorSpec),this.renderProductLink(this.props.objective))),this.renderAdvancedFields(l.createElement('div',null,l.createElement(k,babelHelpers._extends({},this.props,{helpText:i.renderDeepLinkCanvasHelpText(),label:i.renderDeepLinkCanvasLabel(),placeholder:i.renderDeepLinkCanvasPlaceholder()})),l.createElement(j,{value:this.props.creative.urlTags}),this.renderPixels()))));}});f.exports=n;},null);
__d('AdsCFCreativeCanvasAppInstallsFields.react',['AdsCFCreativeContentFieldsMixin','AdsCFCreativeStrings.react','AdsCFCreativeURLTags.react','AdsCFDeepLink.react','React'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=l.PropTypes,n=l.createClass({displayName:'AdsCFCreativeCanvasAppInstallsFields',mixins:[h],propTypes:{accountID:m.string.isRequired,availableActors:m.array.isRequired,campaign:m.object.isRequired,creative:m.object.isRequired,destinationDetails:m.object.isRequired,errorSpec:m.object.isRequired,objective:m.string,pixelID:m.string,pixels:m.array,typeName:m.string.isRequired},render:function(){return (l.createElement('div',null,l.createElement('fieldset',null,l.createElement('div',null,this.renderPageTypeahead(),this.renderTitle(),this.renderBody(),this.renderAppCallToAction(this.props.objective,this.props.errorSpec))),this.renderAdvancedFields(l.createElement('div',null,l.createElement(k,babelHelpers._extends({},this.props,{helpText:i.renderDeepLinkCanvasHelpText(),label:i.renderDeepLinkCanvasLabel(),placeholder:i.renderDeepLinkCanvasPlaceholder()})),l.createElement(j,{value:this.props.creative.urlTags}),this.renderPixels()))));}});f.exports=n;},null);
__d('AdsBootloadContainer.react',['AdsBootloadDebugConfig','DeferredComponent.react','React','invariant'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l=j.PropTypes,m=j.createClass({displayName:'AdsBootloadContainer',propTypes:{bootloadContainer:l.func.isRequired,bootloadPlaceholder:l.element,name:l.string.isRequired},componentWillMount:function(){},componentWillReceiveProps:function(n){!(this.props.bootloadContainer!==n.bootloadContainer)?k(0):undefined;},render:function(){var n=this.props,o=n.name,p=n.bootloadContainer,q=n.bootloadPlaceholder,r=babelHelpers.objectWithoutProperties(n,['name','bootloadContainer','bootloadPlaceholder']);if(!q)q=j.createElement('span',null);return (j.createElement(i,babelHelpers._extends({deferredComponent:p,deferredPlaceholder:q},r)));}});f.exports=m;},null);
__d('AdsCFCreativeProperties',['AdCreativeType','AdsUtils','getObjectValues'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k={STORY_APP_SHARE:{id:h.keyToType.STORY_APP_SHARE.id,validFields:['objectId','urlTags']},STORY_APP_USED:{id:h.keyToType.STORY_APP_USED.id,validFields:['objectId','urlTags']},STORY_PAGE_LIKE:{id:h.keyToType.STORY_PAGE_LIKE.id},STORY_PAGE_POST:{id:h.keyToType.STORY_PAGE_POST.id},STORY_CHECKIN:{id:h.keyToType.STORY_CHECKIN.id},STORY_DOMAIN_SHARE:{id:h.keyToType.STORY_DOMAIN_SHARE.id,validFields:['objectId','urlTags']},STORY_QUERY_BASED:{id:h.keyToType.STORY_QUERY_BASED.id,validFields:['objectId','urlTags']},AD_EXTERNAL_URL:{id:h.keyToType.AD_EXTERNAL_URL.id,validFields:['actor','callToActionType','creativeType','title','body','linkUrl','linkDescription','imageList','relatedFanPage','videoId','videoThumbnail','isVideoCreative'],requiredFields:['title','body','linkUrl','MULTI_IMAGE']},FEED_URL:{id:h.keyToType.FEED_URL.id,validFields:['actor','body','callToActionType','childAttachments','eventID','instagramActorID','isMPA','isVideoCreative','linkUrl','linkCaption','linkDescription','multiShareEndCard','multiShareOptimized','getDirectionsUrl','callNowPhoneNumberView','callToActionLink','landingURLView','learnMoreURLView','imageList','storyId','title','urlTags','videoId','videoThumbnail'],requiredFields:['actor','title','body','linkUrl','MULTI_IMAGE_OR_VIDEO']},AD_FAN_LIKE:{id:h.keyToType.AD_FAN_LIKE.id,validFields:['actor','body','imageList','isVideoCreative','linkUrl','objectId','title','videoId','videoThumbnail'],requiredFields:['body','objectId','MULTI_IMAGE_OR_VIDEO']},AD_EVENT_RSVP:{id:h.keyToType.AD_EVENT_RSVP.id,validFields:['objectId','body','imageList','actor','urlTags','linkUrl'],requiredFields:['objectId','body','actor','linkUrl']},AD_APPLICATION:{id:h.keyToType.AD_APPLICATION.id,validFields:['objectId','title','body','imageList','linkUrl','urlTags'],requiredFields:['objectId','body','MULTI_IMAGE']},AD_PAGE_POST:{id:h.keyToType.AD_PAGE_POST.id,validFields:['objectId','storyId','urlTags']},MOBILE_APP_INSTALL:{id:h.keyToType.MOBILE_APP_INSTALL.id,validFields:['objectId','title','body','iconImage','imageList','mobileStore','videoId','applinkUrl','mobileProductName','callToActionType','urlTags','linkUrl'],requiredFields:['objectId','MULTI_IMAGE']},NEKO_LPP:{id:h.keyToType.NEKO_LPP.id,validFields:['actor','applinkUrl','body','callToActionType','imageList','instagramActorID','isMPA','linkUrl','platform','storyId','title','urlTags','videoId','videoThumbnail','isVideoCreative','childAttachments','multiShareOptimized','productLinkUrl'],requiredFields:['actor','linkUrl','MULTI_IMAGE_OR_VIDEO']},AD_VIDEO:{id:h.keyToType.AD_VIDEO.id,validFields:['actor','body','callToActionLink','callToActionLinkCaption','callToActionType','instagramActorID','isVideoCreative','objectId','storyId','urlTags','videoId','videoThumbnail'],requiredFields:['actor','body','videoId','videoThumbnail']}},l=i.indexedMap(j(k),'id'),m={idToType:l,keyToType:k,requiredFieldsForType:function(n){var o=l[n],p=o?o.requiredFields:undefined;if(p)return p;o=h.idToType[n];return o?o.requiredFields||[]:[];},validFieldsForType:function(n){var o=l[n],p=o?o.validFields:undefined;if(p)return p;o=h.idToType[n];return o?o.validFields||[]:[];}};f.exports=m;},null);
__d('AdsNUXMessage',['AdsNUXMessageTypesToShow','AsyncRequest','XAdsNUXMessagesController'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();function k(m){return !h[m];}function l(m){delete h[m];var n=j.getURIBuilder().setInt('msg_id',m).getURI();new i().setURI(n).send();}f.exports={hasUserSeenMessage:k,markMessageSeenByUser:l};},null);
__d('AdsURLValidationView',['AdsGraphAPI','immutable','cachedGraphAPI','fbt'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l,m;'use strict';var n={BLACKLISTED:2622,UNRESOLVABLE:1500};l=babelHelpers.inherits(o,i.Record({fragment:'',url:'',isLoading:false,xuiError:undefined}));m=l&&l.prototype;function o(p){m.constructor.call(this,{fragment:p});}o.prototype.changeFragment=function(p){return this.withMutations(function(q){q.fragment=p;q.isLoading=false;q.xuiError=undefined;});};o.prototype.loading=function(){return this.withMutations(function(p){p.isLoading=true;p.xuiError=undefined;});};o.prototype.$AdsURLValidationView1=function(p){if(!p)return null;if(p.code===n.BLACKLISTED){return k._("The destination URL is blocked.");}else if(p.code===n.UNRESOLVABLE){return k._("The destination URL cannot be resolved.");}else return k._("An unknown error has occurred checking this URL.");};o.prototype.promiseWithURL=function(p){return j(h.getWithGeneralMigration().search('addestination')).get({object_url:this.fragment}).then((function(q){var r=q&&q.data&&q.data.length?q.data[0].url:null;return this.withMutations(function(s){s.url=r;s.isLoading=false;s.xuiError=undefined;});}).bind(this),(function(q){return this.withMutations(function(r){r.isLoading=false;}).set('xuiError',this.$AdsURLValidationView1(q));}).bind(this)).then(function(q){if(q.get('xuiError')||!p)return q;return p(q.get('fragment')).then(function(){return q.set('xuiError',undefined);},function(r){return q.set('xuiError',r);});});};f.exports=o;},null);
__d('PhoneNumberError',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h,i;'use strict';h=babelHelpers.inherits(j,Error);i=h&&h.prototype;function j(k){i.constructor.call(this);this.defaultXUIError=k;}f.exports=j;},null);
__d('PhoneNumber',['GraphAPI','immutable','PhoneNumberCategory','PhoneNumberError','Promise','cachedGraphAPI','fbt','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){if(c.__markCompiled)c.__markCompiled();var p,q;'use strict';var r=m(h('2.4').path_DO_NOT_USE('/phone_number')).cacheFor(60),s=n._("Please make sure to provide a valid phone number."),t=/tel:(.*)/;p=babelHelpers.inherits(u,i.Record({category:0,displayNumber:'',regionCode:'',uri:''}));q=p&&p.prototype;function u(){p.apply(this,arguments);}function v(w){'use strict';!(w instanceof u)?o(0):undefined;this.$PhoneNumber1=w;}v.prototype.getCategory=function(){'use strict';return this.$PhoneNumber1.category;};v.prototype.getDisplayNumber=function(){'use strict';return this.$PhoneNumber1.displayNumber;};v.prototype.getRegionCode=function(){'use strict';return this.$PhoneNumber1.regionCode;};v.prototype.getURI=function(){'use strict';return this.$PhoneNumber1.uri;};v.isTelURI=function(w){'use strict';return !!w&&!!w.match(t);};v.getRawNumberFromTelURI=function(w){'use strict';var x=w.match(t);if(!x)return null;return x[1];};v.promiseFromRawNumber=function(w,x){'use strict';if(!w)return l.reject(new k(s));var y={number:w};if(x)y.region=x;return r.get(y).then(function(z){if(!z.data||z.data.length!==1)return l.reject(new k(s));var aa=z.data[0];return new v(new u({category:j[aa.category],displayNumber:aa.display_number,regionCode:aa.region_code,uri:aa.uri}));});};v.TEL_URI_SCHEME='tel';v.TEL_URI_PREFIX=v.TEL_URI_SCHEME+':';f.exports=v;},null);
__d('PhoneNumberView',['immutable','PhoneNumber','PhoneNumberError','fbt'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l,m;'use strict';l=babelHelpers.inherits(n,h.Record({fragment:'',isLoading:false,phoneNumber:undefined,xuiError:undefined}));m=l&&l.prototype;function n(o){m.constructor.call(this,{phoneNumber:o});}n.prototype.buildURI=function(){if(!this.phoneNumber)return i.TEL_URI_PREFIX+this.fragment;return this.phoneNumber.getURI();};n.prototype.changeFragment=function(o){return this.withMutations(function(p){p.fragment=o;p.isLoading=false;p.phoneNumber=undefined;p.xuiError=undefined;});};n.prototype.changeFragmentFromTelURI=function(o){var p=i.getRawNumberFromTelURI(o);if(p==null)return null;return this.changeFragment(p);};n.prototype.loading=function(){return this.withMutations(function(o){o.isLoading=true;o.xuiError=undefined;});};n.prototype.setXUIErrorFromError=function(o){if(o instanceof j)return this.set('xuiError',o.defaultXUIError);return this.set('xuiError',k._("There is a technical problem and we can't verify the phone number. Please try again in a few minutes, or refresh your browser."));};n.prototype.promiseWithNumber=function(o,p){return i.promiseFromRawNumber(this.fragment,o).then((function(q){var r=this.withMutations(function(s){s.phoneNumber=q;s.isLoading=false;});if(!p)return r.set('xuiError',undefined);return p(r.phoneNumber).then(function(){return r.set('xuiError',undefined);},function(s){return r.setXUIErrorFromError(s);});}).bind(this),(function(q){return this.withMutations(function(r){r.phoneNumber=undefined;r.isLoading=false;}).setXUIErrorFromError(q);}).bind(this));};f.exports=n;},null);
__d('AdsCFCreativeUtils',['AdmgrUserSettings','AdsAccountCapabilities','AdsAccountUtils','AdsAPIObjectives','ads-app-platforms','AdsAppUtils','AdsCallToActionTypes','AdsCFCreativeProperties','AdsCFCreativeViewActions','AdsCFDestinationUtils','AdsCreationConfig','AdsCreationExperimentStore','AdsCreativeUtils','AdsImageLegacy','AdsNUXMessage','AdsNUXMessageTypes','AdsURLValidationView','ads-lib-formatters','PhoneNumberView','adsGKCheck','arrayContains','fbt','ads-objectives','AdCreativeType'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca){'use strict';if(c.__markCompiled)c.__markCompiled();var da=c('ads-objectives').KPIObjectives,ea=c('AdCreativeType').AD_CREATIVE_TYPE,fa=w.CF_DEFAULT_MPA_NUX,ga='1',ha='0',ia='fbgeo://',ja=[da.MOBILE_APP_INSTALLS,da.MOBILE_APP_ENGAGEMENT],ka=[da.CANVAS_APP_INSTALLS,da.CANVAS_APP_ENGAGEMENT];function la(){if(!aa('ads_cf_image_picker_filter'))return false;var db=s.getExperiment('ads_cf_image_picker_filter_experiment');db.logExposure();return db.getParam('filtered')==='1';}function ma(db){return {id:''+db.id,name:db.name||''+db.id,globalBrandName:db.global_brand_page_name||db.name||''+db.id,picture:db.picture&&db.picture.data&&db.picture.data.url||'https://graph.facebook.com/'+db.id+'/picture',published:!!db.is_published,detail:db.category||'',stats:!db.likes?'':ca._({"*":"{Number} Likes"},[ca.param('Number',db.likes,[0])]),userPermissions:db.userpermissions&&db.userpermissions.data||[],website:db.website||''};}function na(db){var eb={category:db.category,global_brand_page_name:db.name,id:db.id,is_published:true,link:db.link,name:db.name,picture:{data:{url:db.picture}}};return ma(eb);}function oa(db,eb){if(!eb)return true;var fb=o.idToType[db.creativeType].validFields;return fb.some(function(gb){return eb[gb]!==db[gb];});}function pa(db){p.setStoryId(db.value);}function qa(db,eb){if(db.creativeType!==ea.NEKO_LPP||eb!==k.CANVAS_APP_ENGAGEMENT)return false;var fb=db.callToActionType||'';if(fb!==n.TYPES.BUY_NOW.name&&fb!==n.TYPES.GET_OFFER.name)return false;return true;}function ra(db){return !!(db.creativeType===ea.AD_VIDEO||db.isVideoCreative);}function sa(db){return !!db.callToActionType;}var ta=y.createTextTruncator(r.maxBodyLength),ua=y.createTextTruncator(r.maxTitleLength),va=y.createTextTruncator(r.maxDeepLinkTitleLength);function wa(db,eb){if(ba(ja,db))return true;if(ba(ka,db)&&j.hasCapability(eb,i.NEKO_ACT_CANVAS_VIDEO))return true;return false;}function xa(db){return db===da.PAGE_LIKES;}function ya(db){return db===da.WEBSITE_CONVERSIONS;}function za(db){return db===da.WEBSITE_CLICKS;}function ab(db,eb){return xa(db)||ya(db)||za(db)||wa(db,eb);}function bb(db,eb,fb,gb,hb,ib,jb){var kb=ib.title||hb.destinationTitle,lb=ib.body||hb.destinationSummary,mb;if(hb.destinationImages&&!hb.destinationImages.isEmpty()){mb=hb.destinationImages.getImageByIndex(0).getUrl();}else if(db===ea.NEKO_LPP||la()){mb=null;}else mb=hb.destinationPicture;var nb=ib.imageList,ob=ib.imageUrl||mb;if(!(nb&&nb.length)){nb=[];if(ob)nb.push(new u({url:ob}));}var pb=null;if((eb===k.WEBSITE_CLICKS||eb===k.WEBSITE_CONVERSIONS)&&hb.originalObjectUrl){pb=hb.originalObjectUrl;}else pb=ib.linkUrl||t.getDefaultLinkURL(hb.tabs,hb.destinationUrl);var qb;if(db===ea.NEKO_LPP)if(jb.objectStoreUrl){pb=jb.objectStoreUrl;qb=m.getPlatformFromStoreURL(pb);}else{if(eb===k.CANVAS_APP_INSTALLS||eb===k.CANVAS_APP_ENGAGEMENT){qb=l.APP_PLATFORM.DESKTOP_CANVAS;}else qb=hb.appPlatforms[0];pb=q.getAppUrlForPlatform(hb,qb);}var rb={creativeType:db,body:ta(lb),iconImage:new u({url:ib.iconImageUrl||hb.destinationPicture}),imageList:nb,imageUrl:ob,isMPA:false,linkUrl:pb,mobileProductName:eb===k.MOBILE_APP_ENGAGEMENT?va(kb):null,objectId:fb,platform:qb,storyId:ib.storyId||gb,title:ua(kb)};if(eb===k.MOBILE_APP_INSTALLS){rb.callToActionType=n.TYPES.INSTALL_MOBILE_APP.name;}else if(eb===k.MOBILE_APP_ENGAGEMENT){rb.callToActionType=n.TYPES.USE_MOBILE_APP.name;if(hb&&hb.isAppLinksUsed)rb.applinkUrl=hb.originalObjectUrl;}else if(eb===k.CANVAS_APP_INSTALLS||eb===k.CANVAS_APP_ENGAGEMENT){rb.callToActionType=n.TYPES.PLAY_GAME.name;}else if(eb===k.LOCAL_AWARENESS){if(hb.isPageLocationAddressValid||hb.place&&hb.place.name!=null){var sb=ga;if(aa('ads_cf_instore_cta_default_universe')){var tb=s.getExperiment('ads_cf_instore_cta_default');sb=tb.getParam('defaultctatype');}if(sb===ha){tb.logExposure();rb.callToActionType='';}else rb.callToActionType=n.TYPES.GET_DIRECTIONS.name;if(hb.place){var ub=hb.place;rb.getDirectionsUrl=''+ia+ub.coordinates.latitude+','+(ub.coordinates.longitude+',"'+ub.name+'"');}else rb.getDirectionsUrl=ia+Number(hb.validLatitude)+','+Number(hb.validLongitude)+',"'+hb.validAddress+'"';}rb.callNowPhoneNumberView=ib.callNowPhoneNumberView;if(!rb.callNowPhoneNumberView){var vb=hb.phone||'';rb.callNowPhoneNumberView=new z().changeFragment(vb);}rb.landingURLView=ib.landingURLView;if(!rb.landingURLView)rb.landingURLView=new x();rb.learnMoreURLView=ib.learnMoreURLView;if(!rb.learnMoreURLView)rb.learnMoreURLView=new x();}if((eb===k.MOBILE_APP_INSTALLS||eb===k.MOBILE_APP_ENGAGEMENT)&&ib.linkUrl){var wb=rb.linkUrl;rb.isMPA=ib.isMPA;rb.multiShareEndCard=ib.multiShareEndCard!==false;rb.multiShareOptimized=ib.multiShareOptimized!==false;if(ib.isMPA)rb.childAttachemts=ib.childAttachments.map(function(zb){return babelHelpers._extends({},zb,{link:wb});});}else if(eb===k.WEBSITE_CLICKS||eb===k.WEBSITE_CONVERSIONS||eb===k.MOBILE_APP_INSTALLS||aa('ads_cf_mpa_app_eng')&&eb===k.MOBILE_APP_ENGAGEMENT){var xb={link:rb.linkUrl};rb.isMPA=false;if(aa('ads_cf_mpa_default')){var yb=r.admgr_settings;rb.isMPA=!v.hasUserSeenMessage(fa)||yb[h.LAST_USED_POST_FORMAT]==='MULTIPLE';}rb.multiShareEndCard=true;rb.multiShareOptimized=true;rb.childAttachments=[{link:rb.linkUrl,name:rb.title,description:rb.linkDescription,picture:nb&&nb[0]?nb[0].getUrl():null},babelHelpers._extends({},xb),babelHelpers._extends({},xb)];}return rb;}function cb(db){var eb=/^http:\/\/apps\.facebook\.com\/[^\/]*\//.exec(db)||/^http:\/\/apps\.facebook\.com\/.*\?/.exec(db);return eb&&eb[0].slice(0,-1);}f.exports={convertNewPageResultToActor:na,convertPageApiSpecToActor:ma,shouldFilterTooSmallImages:la,getCanvasAppUrlFromDeepLink:cb,getDefaultCreativeData:bb,handleChangeForStoryID:pa,hasCreativeChanged:oa,isProductLinkURLRequired:qa,isVideoCreative:ra,hasVideoCTA:sa,objectiveAllowsImagesAndVideo:ab,objectiveAllowsWebsiteConversionVideo:ya,objectiveAllowsWebsiteClickVideo:za};},null);
__d('AdsCFLabeledField.react',['AdsCFHelpLink.react','React','cx','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l=i.PropTypes,m=i.createClass({displayName:'AdsCFLabeledField',propTypes:{label:l.oneOfType([l.string.isRequired,l.node.isRequired]),helpText:l.node,helpLinger:l.number},render:function(){return (i.createElement('div',babelHelpers._extends({},this.props,{className:k(this.props.className,"_5vgh")}),this._renderLabel(),this._renderHelpIcon(),i.createElement('div',{className:"_5vgi"},this.props.children)));},_renderLabel:function(){return (i.createElement('label',{className:"_5vgj"},this.props.label));},_renderHelpIcon:function(){var n=this.props.helpText,o=n?i.createElement(h,{linger:this.props.helpLinger},n):null;return o;}});f.exports=m;},null);
__d('AdsCFLogViewActions',['AdsCFActionTypes','AdsDispatcher'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={log:function(event,k){i.handleUpdateFromViewAction({data:k,event:event,type:h.LOG});}};f.exports=j;},null);
__d('AdsCFLogger',['AdsCFConstants','AdsCFLoggerInternal','Run','URIInitDataUtil'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();function l(){return {environment:k.getEnvironment()||h.Environments.DEFAULT};}var m=l(),n={},o={resetDefaultData:function(){m=l();i.setDefaultData(m);},updateDefaultData:function(p){Object.assign(m,p);i.updateDefaultData(m);},logOnce:function(event,p){if(n[event])return;this.log(event,p);n[event]=true;},resetLogOnceForEvent:function(event){delete n[event];},resetLogOnceForAllEvents:function(){n={};},log:function(event,p){p=p||{};Object.assign(p,{logger_source:'AdsCFLogger'});i.log(i.CATEGORIES.NO_DB_OP,event,p);}};j.onAfterUnload(o.resetDefaultData.bind(o));f.exports=o;},null);
__d('AdsCFPageCreationProgressLogger',['AdsCFLogger','curry'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();function j(l,m,n){var o=l[m];if(!o)return;h.log(o,n);}var k={getNewsFeedFormatHandler:function(){var l={cancel_category:'cancel_new_fb_page_category_news_feed_format',cancel_fields:'cancel_new_fb_page_form_news_feed_format',success:'success_new_fb_page_news_feed_format'};return i(j,l);},getLocalHandler:function(){var l={cancel_category:'cancel_new_fb_page_category_local',cancel_fields:'cancel_new_fb_page_form_local',success:'success_new_fb_page_local'};return i(j,l);}};f.exports=k;},null);
__d('AdsCFPricingViewActions',['AdsDispatcher','AdsCFActionTypes'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={setBidOption:function(k,l){h.handleUpdateFromViewAction({bidOption:l,pricingID:k,type:i.BID_OPTION_CHANGE});},setClickAutobidEnabled:function(k,l){h.handleUpdateFromViewAction({clickAutobidEnabled:l,pricingID:k,type:i.BID_OPTION_CHANGE});},setActionAutobidEnabled:function(k,l){h.handleUpdateFromViewAction({cpaAutobidEnabled:l,pricingID:k,type:i.BID_OPTION_CHANGE});},setOcpmActionAutobidEnabled:function(k,l){h.handleUpdateFromViewAction({ocpmActionAutobidEnabled:l,pricingID:k,type:i.BID_OPTION_CHANGE});},enableAdvancedOptions:function(k){h.handleUpdateFromViewAction({advancedOptions:true,pricingID:k,type:i.BID_OPTION_CHANGE});},setBidPriceForCPA:function(k,l){h.handleUpdateFromViewAction({cpaPrice:l,pricingID:k,type:i.BID_PRICE_CHANGE});},setBidPriceForOCPM:function(k,l){h.handleUpdateFromViewAction({ocpmActionPrice:l,pricingID:k,type:i.BID_PRICE_CHANGE});},setBidPriceForCPC:function(k,l){h.handleUpdateFromViewAction({cpcPrice:l,pricingID:k,type:i.BID_PRICE_CHANGE});},setBidPriceForCPM:function(k,l){h.handleUpdateFromViewAction({cpmPrice:l,pricingID:k,type:i.BID_PRICE_CHANGE});},setBidPriceForReach:function(k,l){h.handleUpdateFromViewAction({ocpmReachPrice:l,pricingID:k,type:i.BID_PRICE_CHANGE});},setConversionPixel:function(k,l){h.handleUpdateFromViewAction({conversionPixelID:l,pricingID:k,type:i.CONVERSION_PIXEL_CHANGE});},restorePricingDefaults:function(k){h.handleUpdateFromViewAction({pricingID:k,type:i.RESTORE_PRICING_DEFAULTS});},handleHelpLinkClick:function(k,l){h.handleUpdateFromViewAction({eventName:l,pricingID:k,type:i.HELP_LINK_CLICK});}};f.exports=j;},null);
__d("XAdsCFSaveUserSettingsController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/create\/save_user_settings\/",{});},null,{});
__d('AdsCFUserSettings',['AdsCFActionTypes','AdsCreationConfig','AdsDispatcher','AsyncRequest','XAdsCFSaveUserSettingsController'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m={};function n(){if(!Object.keys(m).length)return;var p=l.getURIBuilder().getURI();new k().setData({settings:JSON.stringify(m)}).setURI(p).send();}var o={dispatchToken:j.register(function(p){var q=p.action;switch(q.actionType){case h.CREATING_AD:n();break;}}),handleSettingsChange:function(p){Object.keys(p).forEach(function(q){var r=p[q];if(r===i.admgr_settings[q]){delete m[q];}else m[q]=r;});}};f.exports=o;},null);
__d('AdsAssetSelector.react',['AdsAssetSectionType','AdsFilterWidgets.react','AdsLoadState','AssetName.brands','BusinessAssetGrouping.brands','CenteredContainer.react','CurrentUser','Image.react','React','Keys','XUISpinner.react','cx','fbt','getObjectValues','invariant','xuiglyph','BusinessObjectConstantNames'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x){'use strict';if(c.__markCompiled)c.__markCompiled();var y=x.ASSET_TYPE,z=p.PropTypes,aa=t._("No items found"),ba=p.createClass({displayName:'AdsAssetSelector',propTypes:{assetSections:z.arrayOf(z.shape({name:z.string.isRequired,businessID:z.string.isRequired,assets:z.array.isRequired})).isRequired,assetType:z.oneOf(u(y)).isRequired,bookmarkedAssets:z.array.isRequired,compactLayout:z.bool,hideBusinessAssets:z.bool,labelNoItemsFound:z.string,listTitle:z.node,maxListHeight:z.number,renderAsset:z.func.isRequired,renderSectionOption:z.func,searchedAssets:z.array,searchBarVisible:z.bool.isRequired,searchState:z.string.isRequired,searchQuery:z.string,shownBusinessID:z.string,showBackButton:z.bool,showBottomBorder:z.bool,showNonBizGroupTitle:z.bool,showPersonalAssetsInRoot:z.bool,showSectionAssetCount:z.bool,unownedAssets:z.array.isRequired,unownedAssetsHeader:z.string.isRequired,onSearch:z.func.isRequired,onBack:z.func},getDefaultProps:function(){return {compactLayout:false,hideBusinessAssets:false,searchBarVisible:true,showBackButton:false,showNonBizGroupTitle:true,showSectionAssetCount:false,showBottomBorder:true};},render:function(){return (p.createElement('div',{className:this.props.showBottomBorder?"_4vhx":''},this._renderBusinessHat(),this._renderSearchBar(),this.props.listTitle,p.createElement('div',{className:"_3x14",style:{maxHeight:this.props.maxListHeight||"auto"}},this._renderBookmarked(),this._renderUnowned(),this._renderAssetSections(),this._renderSearchSection(),this._renderEmptyResult())));},_renderBusinessHat:function(){if(!this.props.showBackButton)return null;var ca=this.props.assetSections.find(function(da){return da.businessID===this.props.shownBusinessID;},this);if(!ca)return;return (p.createElement('div',{className:"_2gxl"},p.createElement('div',{className:"_2gxm",onClick:this.props.onBack},p.createElement(o,{className:"_2gxn",src:'/images/mobile/glyph/chevron-left_white_s.png'})),ca.name));},_renderBookmarked:function(){if(this.props.bookmarkedAssets.length===0)return null;return this._renderSection(t._("Bookmarked"),this.props.bookmarkedAssets,null,h.BOOKMARKED,false);},_renderEmptyResult:function(){if(this.props.assetSections.length>0||this.props.searchedAssets&&this.props.searchedAssets.length>0||this.props.searchQuery&&this.props.searchState!==j.LOADED)return null;return (p.createElement(m,{className:"_1nmf",horizontal:true,vertical:true},this.props.labelNoItemsFound||aa));},_renderUnowned:function(){return this._renderSection(this.props.unownedAssetsHeader,this.props.unownedAssets,null,h.UNOWNED,false);},_renderAssetSections:function(){return this.props.assetSections.map((function(ca){return this._renderSection(ca.name,ca.assets,ca.businessID,h.OWNED,ca.businessID===this.props.shownBusinessID);}).bind(this));},_renderSection:function(ca,da,ea,fa,ga){if(da.length===0)return null;if(this.props.hideBusinessAssets&&(!this.props.showPersonalAssetsInRoot||ea!==l.NULL_BIZ_ID))return this._renderSectionOption(ca,ea,da.length);return (p.createElement('div',{key:ca+ea},this._renderSectionHeader(ca,da.length),p.createElement('div',null,da.map((function(ha){return this._renderAsset(ha,ea,fa);}).bind(this)))));},_renderSectionOption:function(ca,da,ea){!this.props.renderSectionOption?v(0):undefined;return this.props.renderSectionOption(ca,da,ea);},_renderSectionHeader:function(ca,da){if(ca===l.DEFAULT_NON_BIZ_NAME&&!this.props.showNonBizGroupTitle)return null;var ea=null,fa=ca,ga=this.props.assetSections.length-1;if(this.props.hideBusinessAssets&&ga&&!this.props.searchQuery){fa=t._({"S":"{asset count} {asset name}, {business count} BUSINESS","P":"{asset count} {asset name}, {business count} BUSINESSES"},[t.param('asset count',da),t.param('asset name',k.getName(this.props.assetType,da,true)),t.param('business count',ga),t['enum'](ga===1?'S':'P',{S:"BUSINESS",P:"BUSINESSES"})]);}else if(this.props.shownBusinessID&&!this.props.searchQuery){fa=t._("{asset count} {asset name}",[t.param('asset count',da),t.param('asset name',k.getName(this.props.assetType,da,true))]);}else{if(ca===l.DEFAULT_NON_BIZ_NAME){ea=p.createElement(o,{className:"_4vh-",src:w({name:'male',shade:'light'})});}else ea=p.createElement(o,{className:"_4vh-",src:w({name:'work',shade:'light'})});if(da&&this.props.showSectionAssetCount)fa=t._("{business name} ({asset count})",[t.param('business name',ca),t.param('asset count',da)]);}return (p.createElement('div',{className:"_1nme"+(this.props.compactLayout?' '+"_4vhy":'')},ea,fa));},_renderAsset:function(ca,da,ea){return this.props.renderAsset(ca,da,ea);},_renderSearchBar:function(){if(!this.props.searchBarVisible)return null;return p.createElement(i,{className:(!this.props.compactLayout?"_1nmd":'')+(this.props.compactLayout?' '+"_1t28":''),hasSelector:false,onKeyDown:this._onKeyDown,placeholder:this.props.searchBarPlaceholder,value:this.props.searchQuery,onTextChange:this.props.onSearch});},_onKeyDown:function(ca){if(ca.keyCode===q.TAB&&!ca.shiftKey)ca.preventDefault();},_renderSearchSection:function(){if(!n.isEmployee()||!this.props.searchQuery)return null;var ca=null;switch(this.props.searchState){case j.NOT_LOADED:ca=null;break;case j.LOADING:ca=p.createElement(m,{vertical:true,className:"_1nmf"},p.createElement(r,{size:'large'}));break;case j.LOADED:case j.ERROR:if(this.props.searchedAssets&&this.props.searchedAssets.length>0){ca=this.props.searchedAssets.map((function(ea){return this._renderAsset(ea,null,h.SEARCH);}).bind(this));}else ca=p.createElement(m,{vertical:true,className:"_1nmf"},this.props.labelNoItemsFound||aa);break;}if(ca){var da=0;if(this.props.searchedAssets)da=this.props.searchedAssets.length;return (p.createElement('div',null,this._renderSectionHeader(t._("Search By ID (employees only)"),da),ca));}else return null;}});f.exports=ba;},null);
__d('ads-page-utils',['ApiPagePaths','PageAdminTypes','PowerEditorConfig','Set','getByPath'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=new k([i.MANAGER,i.CONTENT_CREATOR]),n=new k([i.MANAGER,i.CONTENT_CREATOR,i.MODERATOR,i.ADVERTISER]),o={getPageUIName:function(p){return (l(p,h.GLOBAL_BRAND_PAGE_NAME)||l(p,h.NAME)||l(p,h.ID));},canCreateAdsForPage:function(p){return o._hasPermission(p,n);},canCreatePostsForPage:function(p){return o._hasPermission(p,m);},_hasPermission:function(p,q){if(j.empl_show_all_pages)return true;var r=l(p,h.USERPERMISSIONS.DATA,[]);return r.some(function(s){return q.has(s.role);});}};g.PageUtils=o;},null);
__d('AdsPageAssetSelector.react',['AdsAssetSectionType','AdsAssetSelector.react','AdsLoadState','ApiPagePaths','BusinessAssetGrouping.brands','Image.react','ImageBlock.react','React','Set','Tooltip','areEqual','cx','dotAccess','fbt','getByPath','ix','sumOfArray','xuiglyph','BusinessObjectConstantNames','ads-page-utils'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z){'use strict';if(c.__markCompiled)c.__markCompiled();var aa=c('ads-page-utils').PageUtils,ba=z.ASSET_TYPE,ca=o.PropTypes,da=[],ea=u._("Pages You Don't Own (Employees Only)"),fa=o.createClass({displayName:'AdsPageAssetSelector',propTypes:{bookmarkedPages:ca.array.isRequired,compactLayout:ca.bool,filteredBusinessID:ca.string,groupByProject:ca.bool,labelNoItemsFound:ca.string,listItemHoverStyle:ca.oneOf(["dark-blue","light-gray"]),maxListHeight:ca.number,pages:ca.array.isRequired,searchedPages:ca.array,searchBarVisible:ca.bool.isRequired,searchState:ca.oneOf(Object.keys(j)).isRequired,searchQuery:ca.string,selectedPageID:ca.string,selectedBusinessID:ca.string,selectedSectionType:ca.string,showBookmarks:ca.bool,showBottomBorder:ca.bool,showBusinessPages:ca.bool,showNonBizGroupTitle:ca.bool,showPageCount:ca.bool,showPersonalPagesInRoot:ca.bool,showSectionPageCount:ca.bool,showPageIDs:ca.bool,shownBusinessID:ca.string,sortPages:ca.bool,unownedPages:ca.array,onBusinessSelected:ca.func,onPageSelected:ca.func.isRequired,onPageRemoved:ca.func.isRequired,onPageBookmarked:ca.func.isRequired,onSearch:ca.func.isRequired},getDefaultProps:function(){return {compactLayout:false,groupByProject:true,listItemHoverStyle:"dark-blue",showBookmarks:true,showBusinessPages:true,showNonBizGroupTitle:false,showPageCount:true,showPersonalPagesInRoot:true,showSectionPageCount:true,showPageIDs:false,sortPages:true};},getInitialState:function(){return {recentlyBookmarkedPageIDs:null};},componentWillReceiveProps:function(ia){var ja=new p();if(!r(this.props.bookmarkedPages,ia.bookmarkedPages)){var ka=new p(this.props.bookmarkedPages.map(function(la){return la.id;}));ia.bookmarkedPages.forEach(function(la){if(!ka.has(la.id))ja.add(la.id);});this.setState({recentlyBookmarkedPageIDs:ja});}},render:function(){return (o.createElement('div',{className:"_8g0"+(this.props.shownBusinessID?' '+"showBusiness":'')},o.createElement('div',{className:"_8g2"},this._renderMainList()),o.createElement('div',{className:"_8g2"},this._renderBusinessSection(this.props))));},_renderMainList:function(){var ia=null;if(this.props.filteredBusinessID){ia=this._getAssetSectionWithBusinessID(this.props.filteredBusinessID);}else ia=this._getAssetSections();var ja=null,ka=x(ia.map(function(la){return la.assets.length;}));if(this.props.showPageCount)ja=o.createElement('div',{className:"_2z3f"},u._({"PAGE":"{page count} PAGE","PAGES":"{page count} PAGES"},[u.param('page count',ka),u['enum'](ka===1?"PAGE":"PAGES",{PAGE:'PAGE',PAGES:'PAGES'})]));return (o.createElement(i,{assetType:ba.PAGE,assetSections:ia,bookmarkedAssets:this.props.bookmarkedPages,compactLayout:this.props.compactLayout,hideBusinessAssets:!this.props.showBusinessPages&&this.props.searchQuery==="",labelNoItemsFound:this.props.labelNoItemsFound,listTitle:ja,maxListHeight:this.props.maxListHeight,renderAsset:this._renderAsset,renderSectionOption:this._renderSectionOption,searchBarPlaceholder:u._("Search Pages"),searchBarVisible:this.props.searchBarVisible,searchedAssets:this.props.searchedPages,searchQuery:this.props.searchQuery,searchState:this.props.searchState,showBottomBorder:this.props.showBottomBorder,shownBusinessID:this.props.shownBusinessID,showNonBizGroupTitle:this.props.showNonBizGroupTitle,showPersonalAssetsInRoot:this.props.showPersonalPagesInRoot,showSectionAssetCount:this.props.showSectionPageCount,unownedAssets:this._getUnownedPages(),unownedAssetsHeader:ea,onSearch:this.props.onSearch}));},_renderBusinessSection:function(ia){return (o.createElement(i,{assetType:ba.PAGE,assetSections:this._getAssetSectionWithBusinessID(ia.shownBusinessID),bookmarkedAssets:ia.bookmarkedPages,compactLayout:ia.compactLayout,labelNoItemsFound:this.props.labelNoItemsFound,listTitle:null,maxListHeight:ia.maxListHeight,renderAsset:this._renderAsset,renderSectionOption:this._renderSectionOption,searchBarPlaceholder:u._("Search Pages"),searchBarVisible:ia.searchBarVisible,searchedAssets:ia.searchedPages,searchQuery:ia.searchQuery,searchState:ia.searchState,showBackButton:true,showBottomBorder:ia.showBottomBorder,shownBusinessID:ia.shownBusinessID,showNonBizGroupTitle:ia.showNonBizGroupTitle,showSectionAssetCount:ia.showSectionPageCount,unownedAssets:this._getUnownedPages(),unownedAssetsHeader:ea,onBack:this._onBack,onSearch:ia.onSearch}));},_getBusinessID:function(ia){return ia.business?ia.business.id||ia.business:l.NULL_BIZ_ID;},_filterPage:function(ia,ja){var ka=aa.getPageUIName(ja),la=v(ja,k.ID);return (!ia||ka&&ka.toLowerCase().contains(ia.toLowerCase())||la&&la.contains(ia));},_getPageIconURL:function(ia){return (t(ia,'picture.data.url')||t(ia,'picture')||w('images/ads/common/icon_page.png').uri);},_renderAsset:function(ia,ja,ka){if(!ja)ja=this._getBusinessID(ia);var la=this.props.selectedPageID===ia.id&&this.props.selectedSectionType===ka&&this.props.selectedBusinessID===ja||this.props.selectedPageID===ia.id&&!this.props.selectedBusinessID&&ja===l.NULL_BIZ_ID,ma=this.props.bookmarkedPages.some(function(pa){return pa.id===ia.id;}),na=aa.getPageUIName(ia),oa=!!(ka===h.BOOKMARKED&&this.state&&this.state.recentlyBookmarkedPageIDs&&this.state.recentlyBookmarkedPageIDs.has(ia.id));return (o.createElement(ha,{businessID:ja,compactLayout:this.props.compactLayout,hoverStyle:this.props.listItemHoverStyle,imageSrc:this._getPageIconURL(ia),isBookmarked:ma,isRecentlyBookmarked:oa,isSelected:la,key:ia.id+':'+ja,name:na,pageID:ia.id,sectionType:ka,showPageID:this.props.showPageIDs,showBookmark:this.props.showBookmarks,onPageBookmarked:this.props.onPageBookmarked,onPageSelected:this.props.onPageSelected,onPageRemoved:this.props.onPageRemoved}));},_renderSectionOption:function(ia,ja,ka){return (o.createElement(ga,{key:ia+ja,businessID:ja,businessName:ia,revealBusiness:this._selectBusiness,pageCount:ka}));},_getAssetSectionWithBusinessID:function(ia){return this._getAssetSections().filter(function(ja){return ja.businessID===ia;});},_getAssetSections:function(){var ia=this.props.pages.filter((function(la){return this._filterPage(this.props.searchQuery,la);}).bind(this)),ja=l.groupAssets(ia,(function(la){return this._getBusinessID(la);}).bind(this),function(la){return la.userpermissions?la.userpermissions.data:[];},(function(la){return this.props.groupByProject?la.businessprojects?la.businessprojects.data:[]:[];}).bind(this),this._sortFunction,null,l.DEFAULT_NON_BIZ_NAME),ka=[];ja.groupedAssets.forEach(function(la){if(la.assets.length>0)ka.push({name:la.name,assets:la.assets,businessID:la.bizID});la.projects.forEach(function(ma){if(ma.assets.length>0)ka.push({name:ma.name,assets:ma.assets,businessID:la.bizID});});});return ka;},_getUnownedPages:function(){if(!this.props.unownedPages)return da;return this.props.unownedPages.filter((function(ia){return this._filterPage(this.props.searchQuery,ia);}).bind(this));},_selectBusiness:function(ia){this.props.onBusinessSelected&&this.props.onBusinessSelected(ia);},_sortFunction:function(ia){return this.props.sortPages?(ia.name||'').toLowerCase():null;},_onBack:function(){this.props.onBusinessSelected&&this.props.onBusinessSelected(null);}}),ga=o.createClass({displayName:'BusinessPageSectionOption',propTypes:{businessID:ca.string.isRequired,businessName:ca.string.isRequired,revealBusiness:ca.func.isRequired,pageCount:ca.number},render:function(){return (o.createElement('div',{className:"_5ghu"+(' '+"_alf"),onClick:this._onClick},o.createElement('span',{className:"_1b_h"},o.createElement('div',{className:"_5ghv"}),this.props.businessName),o.createElement('div',{className:"_3kin"},this.props.pageCount),o.createElement('div',{className:"_3kio"})));},_onClick:function(){this.props.revealBusiness(this.props.businessID);}}),ha=o.createClass({displayName:'PageSelectorItem',propTypes:{businessID:ca.string,compactLayout:ca.bool.isRequired,hoverStyle:ca.oneOf(["dark-blue","light-gray"]),imageSrc:ca.string.isRequired,isBookmarked:ca.bool.isRequired,isSelected:ca.bool.isRequired,isRecentlyBookmarked:ca.bool.isRequired,name:ca.string.isRequired,pageID:ca.string.isRequired,sectionType:ca.oneOf(Object.keys(h)).isRequired,showBookmark:ca.bool.isRequired,showPageID:ca.bool.isRequired,onPageSelected:ca.func.isRequired,onPageRemoved:ca.func.isRequired,onPageBookmarked:ca.func.isRequired},getDefaultProps:function(){return {hoverStyle:"dark-blue"};},render:function(){var ia=this.props.sectionType===h.BOOKMARKED||this.props.sectionType===h.UNOWNED,ja=!this.props.isBookmarked&&this.props.sectionType===h.OWNED&&this.props.showBookmark,ka=null;if(ia){ka=o.createElement('div',babelHelpers._extends({className:"_1wcw"},q.propsFor(u._("Remove Page from this list")),{onClick:this._onRemoveClick,'data-tooltip-position':'right'}));}else if(ja){ka=o.createElement('div',babelHelpers._extends({className:"_50a_"},q.propsFor(u._("Bookmark this Page")),{onClick:this._onBookmarkClick,'data-tooltip-position':'right'}));}else if(this.props.isSelected)ka=o.createElement('div',{className:"_55fc"});var la=null;if(this.props.showPageID)la=o.createElement('div',{className:"_4c70"},this.props.pageID);return (o.createElement(n,{className:(!this.props.compactLayout?"_2sl3":'')+(this.props.compactLayout?' '+"_5dsl":'')+(this.props.hoverStyle==="dark-blue"?' '+"_alf":'')+(this.props.hoverStyle==="light-gray"?' '+"_2z3h":'')+(this.props.isSelected?' '+"_2246":'')+(this.props.isRecentlyBookmarked?' '+"_50b0":''),onClick:this._onClick},o.createElement(m,{className:"_4-rj",width:30,height:30,src:this.props.imageSrc}),o.createElement('div',{className:"_1wcv"},o.createElement('div',{className:"_2sl4"+(!this.props.showPageID?' '+"_4c71":'')},this.props.name),la,ka)));},_onClick:function(){this.props.onPageSelected(this.props.pageID,this.props.businessID,this.props.sectionType);},_onRemoveClick:function(event){event.preventDefault();event.stopPropagation();this.props.onPageRemoved(this.props.pageID,this.props.sectionType);},_onBookmarkClick:function(event){event.preventDefault();event.stopPropagation();this.props.onPageBookmarked(this.props.pageID);}});f.exports=fa;},null);
__d('AdsCFURLPageSelector.react',['AdmgrUserSettings','AdsCFUserSettings','BIGPageDropdownSelector.react','BrandsAppConfig','Image.react','React','XUISelector.react','adsGKCheck','cx','emptyFunction','fbt','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){if(c.__markCompiled)c.__markCompiled();var t=m.PropTypes,u=n.Option,v=r._("Choose Facebook Page"),w=m.createClass({displayName:'AdsCFURLPageSelector',propTypes:{actors:t.array,creative:t.object.isRequired,onPageSelected:t.func.isRequired},render:function(){if(!this.props.actors||this.props.actors.length===0)return m.createElement('div',{className:'hidden_elem'});if(k.gk.business_manager_page_picker)return this._renderBusinessPicker();var x=this.props.creative,y='0',z=[{id:'0',globalBrandName:v}].concat(this.props.actors);if(x.actor){y=x.actor.id;z=this.props.actors;}return (m.createElement(n,babelHelpers._extends({},this.props,{className:s(this.props.className,"_5y_9 _l43"),maxheight:300,maxwidth:null,onChange:this._onPageSelectAttempt,size:'xlarge',value:y}),z.map(this._renderOption)));},_renderOption:function(x){var y=x.picture?m.createElement(l,{className:"_3ouy",height:16,src:x.picture,width:16}):null;return (m.createElement(u,{icon:y,key:x.id,value:x.id},x.globalBrandName));},_renderBusinessPicker:function(){var x=this.props.creative,y=null;if(x.actor)y=x.actor.id;var z={};this._getPageSelectorPages().forEach(function(aa){z[aa.id]=aa;});return (m.createElement(j,{className:s(this.props.className,"_5y_9"),covered:true,defaultLabel:v,onChange:this._selectPageID,onClick:q,pages:z,searchBarVisible:true,selectedActorID:y,showBusinessPages:true,showPageName:true,suppressed:false,showBusinessPages:false}));},_getPageSelectorPages:function(){return this.props.actors.map(function(x){var y={id:x.id,name:x.globalBrandName||x.name,picture:x.picture,business:x.business,userpermissions:{data:x.userPermissions?x.userPermissions.map(function(z){var aa=z.business;return {business:aa};}):[{}]}};return y;});},_findActorByID:function(x){if(x==='0')return null;var y=this.props.actors;for(var z=0;z<y.length;z++)if(y[z].id===x)return y[z];return null;},_onPageSelectAttempt:function(x){this._selectPageID(x.value);},_selectPageID:function(x){if(o('use_last_used_page_in_creation_flow'))this._updateLastUsedPage(x);this.props.onPageSelected(this._findActorByID(x));},_updateLastUsedPage:function(x){var y={};y[h.LAST_USED_PAGE]=x;i.handleSettingsChange(y);}});f.exports=w;},null);
__d('AdsCFUserViewActions',['AdsDispatcher','AdsCFActionTypes'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={addActor:function(k){h.handleUpdateFromViewAction({data:{actor:k},type:i.ADD_ACTOR});}};f.exports=j;},null);
__d('AdsConversionPixelStatusToText',['AdsPixelConstants','fbt'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=h.statuses,k={getOptimizationPixelStatusToText:function(){var l={};l[j.INACTIVE]=i._("Your conversion-tracking pixel last tracked a conversion more than a week ago. To better track conversions with your pixel, try testing it or putting the code on your website again.");l[j.UNVERIFIED]=i._("Your ad will not be optimized for conversions because your conversion-tracking pixel isn't working correctly. Check your conversion-tracking pixel and refresh, or try verifying the pixel again.");return l;},getTrackingPixelStatusToText:function(){var l={};l[j.INACTIVE]=i._("To better track conversions with your pixel, try testing it or putting the code on your website again.");l[j.UNVERIFIED]=i._("To make sure your pixel is working, try testing it or putting the code on your website again.");return l;},getOptionalPixelStatusToText:function(){var l={};l[j.INACTIVE]=i._("We haven't received any events from this pixel in more than a week. You can still use this pixel, but make sure it's properly installed or configured to track conversions for this ad.");l[j.UNVERIFIED]=i._("We haven't received any events from this pixel yet. You can still use this pixel, but make sure it's properly installed or configured to track conversions for this ad.");return l;}};f.exports=k;},null);
__d('AdsCMModalValue',['createObjectFrom','keyMirror'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=i(h(['CREATE','DUPLICATE','EDIT']));f.exports=j;},null);
__d('AdsCMStateConfig',['AdsCMPageValues','AdsCMTabValues','AdsCMURLParams','AdsCMModalValue'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l,m={ADGROUP_ID:{},ACCOUNT_ID:{hashable:true},CAMPAIGN:{hashable:true},CAMPAIGN_GROUP:{hashable:true},CONVERSION_PIXEL_ID:{hashable:true},CURRENT_IDS:{hashable:true},EDITING:{hashable:true},MODAL:{values:k},FILTER:{hashable:true},RESET_TO_HOME:{hashable:true},OBJECTIVE:{hashable:true},OFFSET:{hashable:true},PAGE:{hashable:true,defaultValue:h.HOME_PAGE,values:h},PAGE_ID:{defaultValue:0,hashable:true},PIXEL_ID:{hashable:true},REPORT_SPEC_ID:{hashable:true},SAVED_AUDIENCE:{hashable:true},SELECTED_COUNT:{defaultValue:0},SELECTED_IDS:{defaultValue:{}},SORT:{hashable:true},TAB:{hashable:true,values:i},TAB_HASHES:{},TARGETING_SPEC:{hashable:true},TRANSACTION_ID:{hashable:true},TRANSACTION_TYPE:{hashable:true},AUTO_LAUNCH_NAME:{hashable:true},PRESELECTED_ID:{hashable:true},PRESELECTED_URL:{hashable:true},EVENT_ID:{hashable:true},getKey:function(o){return m[o]._name;},getAllKeys:function(){if(l)return l;l=[];for(var o in m)if(typeof m[o]!=='function')l.push(o);return l;},getURLParamKey:function(o){if(!this._stateToURLParamMap){this._stateToURLParamMap={};this._stateToURLParamMap[this.getKey('ACCOUNT_ID')]=j.ACCOUNT_ID;this._stateToURLParamMap[this.getKey('ADGROUP_ID')]=j.ADGROUP_ID;this._stateToURLParamMap[this.getKey('CAMPAIGN')]=j.AD_SET;this._stateToURLParamMap[this.getKey('CAMPAIGN_GROUP')]=j.CAMPAIGN;this._stateToURLParamMap[this.getKey('CONVERSION_PIXEL_ID')]=j.CONVERSION_PIXEL_ID;this._stateToURLParamMap[this.getKey('CURRENT_IDS')]=j.CURRENT_IDS;this._stateToURLParamMap[this.getKey('EDITING')]=j.EDITING;this._stateToURLParamMap[this.getKey('MODAL')]=j.MODAL;this._stateToURLParamMap[this.getKey('RESET_TO_HOME')]=j.RESET_TO_HOME;this._stateToURLParamMap[this.getKey('OBJECTIVE')]=j.OBJECTIVE;this._stateToURLParamMap[this.getKey('PAGE')]=j.PAGE;this._stateToURLParamMap[this.getKey('PAGE_ID')]=j.PAGE_ID;this._stateToURLParamMap[this.getKey('PIXEL_ID')]=j.PIXEL_ID;this._stateToURLParamMap[this.getKey('SAVED_AUDIENCE')]=j.SAVED_AUDIENCE;this._stateToURLParamMap[this.getKey('SORT')]=j.SORT;this._stateToURLParamMap[this.getKey('TAB')]=j.TAB;this._stateToURLParamMap[this.getKey('TRANSACTION_ID')]=j.TRANSACTION_ID;this._stateToURLParamMap[this.getKey('TARGETING_SPEC')]=j.TARGETING_SPEC;this._stateToURLParamMap[this.getKey('TRANSACTION_TYPE')]=j.TRANSACTION_TYPE;this._stateToURLParamMap[this.getKey('AUTO_LAUNCH_NAME')]=j.AUTO_LAUNCH_NAME;this._stateToURLParamMap[this.getKey('PRESELECTED_ID')]=j.PRESELECTED_ID;this._stateToURLParamMap[this.getKey('PRESELECTED_URL')]=j.PRESELECTED_URL;this._stateToURLParamMap[this.getKey('EVENT_ID')]=j.ASSOCIATED_ID;}return this._stateToURLParamMap[o];}};for(var n in m){if(!m[n])m[n]={};m[n]._name=n;}f.exports=m;},null);
__d('adsCMGKCheck',['AdsCMGKConfig','invariant'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();function j(l){return !!h.gk[l];}function k(l,m){h.gk[l]=m;}j.overrideGK=k;f.exports=j;},null);
__d('AdsCMLoggerInternal',['AdsCMLoggerRuntimeConfig','AdsInterfacesLoggerConfigColumns','AdsPerfTiming','Artillery','Banzai','Bootloader','SiteData','URI','URIInitDataUtil','adsCMGKCheck'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=h.sessionID,s={},t={BANZAI_ROUTE:'new_ads_manager:AdsCMLoggerConfig',log:function(u,v,w,x){if(h.loggerSampling.overall[u]===0)return;var y=null;if(k.isEnabled())y=k.getPageTrace().getID();var z=babelHelpers._extends({action_type:u,alternate_uri:new o(window.location.href).toString(),artillery_trace_id:y,category:v,cohort:n.pkg_cohort,first_of_session:!s.hasOwnProperty(u),inline_js_requires:q('inline_js_requires'),logger_source:'AdsCMLoggerInternal',payload_source:x,session_id:r,window_height:window.innerHeight,window_width:window.innerWidth,www_parallel_bluebar:q('www_parallel_bluebar')},w);z[i.TIME_SINCE_LOAD]=Date.now()-j.start;s[u]=1;if(h.LogLoadedPackageCount)z[i.LOADED_PACKAGE_COUNT]=Object.keys(m.getLoadedUrlTimes()).length;if(h.LogLoadedPackages)z[i.LOADED_PACKAGES]=m.getLoadedUrlTimes();if(h.LogLoadedModuleCount)z[i.LOADED_MODULE_COUNT]=Object.keys(c.__debug.modules).length;if(h.LogExportedModuleCount){var aa=0;Object.keys(c.__debug.modules).forEach(function(ba){aa+=c.__debug.modules[ba].exports?1:0;});z[i.EXPORTED_MODULE_COUNT]=aa;}if(h.LogFactoryTime)z[i.REQUIRE_FACTORY_TIME]=c.__getFactoryTime();if(!z[i.AD_ACCOUNT_ID])z[i.AD_ACCOUNT_ID]=p.getAccountID();if(!z[i.BUSINESS_ID_EXPLICIT])z[i.BUSINESS_ID_EXPLICIT]=p.getBusinessID();p.getShowLog();l.post(this.BANZAI_ROUTE,z);}};f.exports=t;},null);
__d('AdsApiRecorderDispatcher',['ReactDispatcher'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i,j;'use strict';i=babelHelpers.inherits(k,h);j=i&&i.prototype;function k(){j.constructor.call(this);this.dispatch=this.dispatch.bind(this);}f.exports=new k();},null);
__d('AdsCMLogUtils',['AdsCMActionCategories','AdsCMActionTypes','AdsCMErrorTypes','AdsCMLoggerInternal','AdsCMLoggerRuntimeConfig','ErrorUtils','AdsApiRecorderDispatcher'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=n.dispatch,p=12;function q(t,u,v){var w=m.normalizeError(t),x=babelHelpers._extends({message:w.message,stack_trace:w.stack},v);s.log(u,x,h.ERROR);}function r(t){setTimeout(function(){k.log(i.HEARTBEAT,null,{heartbeatCounter:t});r(t+1);},1000*Math.pow(2,Math.min(t,p)));}var s={startHeartBeat:function(){r(1);},log:function(t,u,v,w){u.action_time=Date.now();k.log(t,v,u,w);},logFatal:function(t,u){if(t.message==='Script error'||t.message==='Script error.')return;q(t,j.FATAL,u);},logException:function(t,u){q(t,j.EXCEPTION,u);},logUserError:function(t,u){q(t,j.USER_ERROR,u);},logAPIError:function(t,u){var v=babelHelpers._extends({message:t.error.message,error_code:t.error.code,error_subcode:t.error.error_subcode,error_type:t.error.type,endpoint:t.path,call_name:t.name,params:JSON.stringify(t.params),api_fbtrace_id:t.api_fbtrace_id,request_time:t.request_time},u);s.log(j.API_ERROR,v,h.ERROR);},logAPISuccess:function(t){var u={endpoint:t.path,call_name:t.name,api_fbtrace_id:t.api_fbtrace_id,request_time:t.request_time},v=babelHelpers._extends({},t.params);for(var w in v)if(l.paramBlacklist[w]||v[w]===null||v[w]===undefined)delete v[w];u.params=JSON.stringify(v);s.log(i.API_CALL,u,h.API_CALL);o({type:'adsApiRecorder/add',request:{method:t.method,params:t.params,path:t.path},response:babelHelpers._extends({},t.response,{__fb_trace_id__:t.api_fbtrace_id})});}};f.exports=s;},null);
__d('AdsCMEditorSessionTypes',['createObjectFrom','keyMirror'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=i(h(['DUPLICATE','EDIT']));f.exports=j;},null);
__d('AdsCMEditorTypes',['createObjectFrom','keyMirror'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=i(h(['DUPLICATE','CAMPAIGN_GROUP','CAMPAIGN','ADGROUP']));f.exports=j;},null);
__d('AdsCMEditingUtils',['AdObjectLevels','AdsCMEditorSessionTypes','AdsCMEditorTypes','invariant'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l='|',m="InlineEditHash",n='~',o={LEVEL:'level',INITIAL_IDS:'initial_ids',SELECTED_IDS:'selected_ids'},p={getStateFromURLParam:function(q){if(!q||!q.length)return null;var r={};q.split(l).forEach(function(s){var t=s.split(n);r[t[0]]=t[1];});if(!r[o.LEVEL]||!r[o.INITIAL_IDS]||!r[o.SELECTED_IDS])return null;return {editorType:p.getEditorTypeByLevel(r[o.LEVEL]),initialIDs:r[o.INITIAL_IDS].split(','),selectedIDs:r[o.SELECTED_IDS].split(','),sessionType:i.EDIT};},getURLParamFromState:function(q){if(q.sessionType!==i.EDIT)return '';var r=[[o.LEVEL,p.getLevelByEditorType(q.editorType)],[o.INITIAL_IDS,q.initialIDs.join(',')],[o.SELECTED_IDS,q.selectedIDs.join(',')]].map(function(s){return s.join(n);}).join(l);return r;},getEditorTypeByLevel:function(q){switch(q){case h.CAMPAIGN_GROUP:return j.CAMPAIGN_GROUP;case h.CAMPAIGN:return j.CAMPAIGN;case h.ADGROUP:return j.ADGROUP;}k(0);},getLevelByEditorType:function(q){switch(q){case j.CAMPAIGN_GROUP:return h.CAMPAIGN_GROUP;case j.CAMPAIGN:return h.CAMPAIGN;case j.ADGROUP:return h.ADGROUP;}k(0);},getInlineTabHash:function(q,r){return m+q+r;}};f.exports=p;},null);
__d("XAdsCMAccountSettingsPageController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/manager\/account\/settings\/",{act:{type:"Int"},ux:{type:"String"}});},null,{});
__d("XAdsCMConversionTrackingController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/manager\/measurement\/conversion_tracking\/",{act:{type:"Int"},page:{type:"Int",defaultValue:1},ux:{type:"String"}});},null,{});
__d("XAdsCMLiftController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/manager\/lift\/",{act:{type:"Int"},tab:{type:"Enum",defaultValue:"lift_study_tab",enumType:1},feed_id:{type:"Int"}});},null,{});
__d('AdsCMURIUtil',['AdsCMLogUtils','AdsGraphAPI','AdsCMPageValues','AdsCMStateConfig','AdsCMTabUserFacingValues','AdsCMTabValues','AdsCMURLParams','AdsCMURLValuesMap','AdsCMEditingUtils','AdsShortURLConstants','URI','XAdsCMAccountSettingsPageController','XAdsCMAccountsPageController','XAdsCMController','XAdsCMConversionTrackingController','XAdsCMLiftController','arrayContains','invariant','md5'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z){'use strict';if(c.__markCompiled)c.__markCompiled();var aa=u.getURIBuilder().getURI().getPath(),ba={},ca={},da=function(la){return la;},ea=new r(window.location.href);ca[k.getKey('ACCOUNT_ID')]={name:'act'};ca[k.getKey('ADGROUP_ID')]={name:'adgroup_id'};ca[k.getKey('CAMPAIGN')]={name:'ad_set'};ca[k.getKey('CAMPAIGN_GROUP')]={name:'campaign'};ca[k.getKey('PAGE')]={name:'page'};ca[k.getKey('PAGE_ID')]={name:'pid'};ca[k.getKey('TAB')]={name:'tab'};ca[k.getKey('SORT')]={name:'sort'};ca[k.getKey('OFFSET')]={name:'offset'};ca[k.getKey('CURRENT_IDS')]={name:'ids',transformToQuery:function(la){return la.join(',');},transformToState:function(la){return la.split(',');}};ca[k.getKey('OFFSET')]={name:'offset'};ca[k.getKey('TRANSACTION_ID')]={name:'txid'};ca[k.getKey('TRANSACTION_TYPE')]={name:'tx_type'};ca[k.getKey('CONVERSION_PIXEL_ID')]={name:'conversion_pixel_id'};ca[k.getKey('MODAL')]={name:'modal',transformToQuery:function(la){return la.toLowerCase();},transformToState:function(la){return la.toUpperCase();}};ca[k.getKey('EDITING')]={name:'editing',transformToQuery:p.getURLParamFromState,transformToState:p.getStateFromURLParam};var fa=[u.getURIBuilder().getURI().getPath(),s.getURIBuilder().getURI().getPath(),v.getURIBuilder().getURI().getPath(),t.getURIBuilder().getURI().getPath(),w.getURIBuilder().getURI().getPath()];for(var ga in ca){var ha=ca[ga];ha.transform=ha.transformToQuery||da;ba[ha.name]={name:ga,transform:ha.transformToState||da};}function ia(la,ma){var na={};for(var oa in ma){var pa=ma[oa],qa=la[oa];if(qa&&pa!=null)na[qa.name]=qa.transform(pa);}return na;}function ja(la){if(la in o)return o[la];return la;}var ka={BASE_PATH:aa,MAX_URI_LENGTH:1500,setInitialURI:function(la){ea=la;},areSameURIs:function(la,ma){return la.getUnqualifiedURI().toString()===ma.getUnqualifiedURI().toString();},addRedirectParams:function(la){var ma=ka.getInitialLoadQueryData(),na=ma[n.NO_REDIRECT];if(na)la.addQueryData(n.NO_REDIRECT,na);return la;},isCMLink:function(la){return la.getPath().startsWith(aa);},_getInternalPageValue:function(la){for(var ma in o)if(o[ma]===la)return ma;return la;},_getInternalTabValue:function(la,ma){for(var na in o)if(o[na]===la)if(la===l.HISTORY_TAB){switch(ma){case j.HOME_PAGE:return m.ACCOUNT_HISTORY_TAB;case j.CAMPAIGN_GROUP_PAGE:return m.CAMPAIGN_GROUP_HISTORY_TAB;case j.CAMPAIGN_PAGE:return m.CAMPAIGN_HISTORY_TAB;case j.ADGROUP_PAGE:return m.ADGROUP_HISTORY_TAB;default:y(0);}}else return na;return la;},generateURI:function(la){var ma=new r(aa);ma.setQueryData(this.getQueryDataFromState(la));return ma;},getQueryDataFromState:function(la){return ia(ca,la);},getStateFromURI:function(la){var ma=la.getQueryData();return ia(ba,ma);},getPageIDFromURI:function(la){var ma=la.getQueryData();return ma[n.PAGE_ID];},getParamsFromURI:function(la){var ma=la.getQueryData(),na=la.getPath().split('/');if(na[3]){ma[n.PAGE]=this._getInternalPageValue(na[3]);if(na[4])ma[n.TAB]=this._getInternalTabValue(na[4],ma[n.PAGE]);}return ma;},getURIFromQueryData:function(la,ma){var na=babelHelpers._extends({},la),oa=aa;if(na[n.PAGE]){oa+=ja(na[n.PAGE])+'/';delete na[n.PAGE];if(na[n.TAB]){oa+=ja(na[n.TAB])+'/';delete na[n.TAB];}}var pa=new r(oa);pa.setQueryData(na);if(pa.toString().length>this.MAX_URI_LENGTH&&na[n.CURRENT_IDS]&&!this.isValidHash(na[n.CURRENT_IDS])){var qa=this._createHashForIDs(na[n.CURRENT_IDS].split(q.IDS_SEPARATOR),ma);na[n.CURRENT_IDS]=qa;pa.setQueryData(na);}return pa;},isValidHash:function(la){return la.length===33&&!!la.match(q.HASH_INDICATOR+"[a-z0-9]{32}");},_createHashForIDs:function(la,ma){var na=la.sort(),oa=z(na.join(q.IDS_SEPARATOR));i.getWithGeneralMigration().adaccount(ma).edge('short_urls').post({current_ids:JSON.stringify(la)})['catch'](function(pa){h.logException(new Error('Unable to create hash for current IDs'));});return q.HASH_INDICATOR+oa;},getInitialLoadURI:function(){return ea;},getInitialLoadQueryData:function(){return ka.getParamsFromURI(ea);},getParamsForCurrentURI:function(){return ka.getParamsFromURI(new r(window.location.href));},getCarryForwardURLParams:function(){var la={},ma=[n.ARTILLERY,n.AYMT_CACHE,n.AYMT_CHANNEL,n.AYMT_INVALIDATE,n.AYMT_TIP,n.AYMT_VALIDATE,n.CAMPAIGN_PERFORMANCE_NUX,n.GK_DISABLE,n.GK_ENABLE,n.GRAPH_API_DEBUGGER,n.GRAPH_VIEW,n.NO_REDIRECT,n.MH_P_CRUSH,n.MH_P_CX,n.MH_P_MIN,n.PHPROF,n.QE,n.REACT_PERF,n.SHOW_LOG,n.TEAK,n.UX,n.WIREHOG],na=ka.getInitialLoadQueryData(),oa=ka.getParamsForCurrentURI();ma.forEach(function(pa){if(pa===n.CAMPAIGN_PERFORMANCE_NUX&&oa[pa]==='0')na[pa]='0';if(na[pa])la[pa]=na[pa];});return la;},uriRequiresPageLoad:function(la){return x(fa,la.getPath());}};f.exports=ka;},null);
__d('AdsCFApplicationStore',['AdsActionTypes','AdsBaseStore','AdsCFActionTypes','AdsCFConstants','AdsCFCreationSources','AdsCMActionTypes','AdsCMStateConfig','AdsCMURIUtil','AdsDispatcher','URI','emptyFunction','AdsCFAccountStore'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){if(c.__markCompiled)c.__markCompiled();var s,t;'use strict';var u=k.CreationSteps,v=n.PAGE.values,w,x,y,z,aa=r,ba,ca={},da,ea,fa=false,ga,ha=false,ia,ja=false,ka,la,ma=new q(window.location.href);function na(){var wa=ma.getQueryData();w=null;z=null;y=null;ia=false;if(wa.adgroup_id&&wa.edit){w=wa.adgroup_id;}else if(wa.campaign){y=wa.campaign;}else if(wa.ad_set)z=wa.ad_set;}function oa(){var wa=ma.getQueryData();if(wa.adgroup_id){if(wa.edit){da=k.CreateMode.EDIT_EXISTING;}else da=k.CreateMode.CREATE_SIMILAR;}else if(y){da=k.CreateMode.CREATE_NEW_CAMPAIGN;}else if(z){if(wa.edit){da=k.CreateMode.EDIT_EXISTING_CAMPAIGN;}else da=k.CreateMode.CREATE_NEW_AD_GROUP;}else da=k.CreateMode.CREATE_NEW_CAMPAIGN_GROUP;}function pa(){var wa=ma.getQueryData();la=wa.show_only;}function qa(){var wa=ma.getQueryData();ga=!!wa.dialog;}function ra(){var wa=ma.getQueryData();if(wa.oid){ka=wa.oid;}else ka=null;}function sa(){ca={};ca[u.CAMPAIGN_GROUP]=1;var wa=c('AdsCFAccountStore');p.waitFor([wa.dispatchToken]);var xa=wa.getState(),ya=xa.isAllowedToEditCurrency;if(ya){ca[u.ACCOUNT]=2;ca[u.CAMPAIGN]=3;ca[u.CREATIVE]=4;return;}ca[u.CAMPAIGN]=2;ca[u.CREATIVE]=3;}function ta(){aa=r;ca={};x=false;ea=k.DataStates.IN_PROGRESS;na();oa();ra();pa();qa();}ta();s=babelHelpers.inherits(ua,i);t=s&&s.prototype;ua.prototype.getStoreName=function(){return 'AdsCFApplicationStore';};ua.prototype.getCurrentMode=function(){return da;};ua.prototype.getCampaignGroupID=function(){return y;};ua.prototype.getCampaignID=function(){return z;};ua.prototype.getAdgroupID=function(){return w;};ua.prototype.getDataState=function(){return ea;};ua.prototype.getShowMode=function(){return la;};ua.prototype.getAllowRedirect=function(){return x;};ua.prototype.getPendingObjectID=function(){return ka;};ua.prototype.getURI=function(){return new q(ma.toString());};ua.prototype.getCreationStep=function(wa){return ca[wa];};ua.prototype.isCreatingNewCampaignGroup=function(){return (this.getCurrentMode()===k.CreateMode.CREATE_NEW_CAMPAIGN_GROUP);};ua.prototype.isCreatingNewCampaign=function(){return (this.getCurrentMode()===k.CreateMode.CREATE_NEW_CAMPAIGN);};ua.prototype.isCreatingNewAdgroup=function(){return (this.getCurrentMode()===k.CreateMode.CREATE_NEW_AD_GROUP);};ua.prototype.isCreatingNew=function(){var wa=this.getCurrentMode();return (wa===k.CreateMode.CREATE_NEW_AD_GROUP||wa===k.CreateMode.CREATE_NEW_CAMPAIGN||wa===k.CreateMode.CREATE_NEW_CAMPAIGN_GROUP);};ua.prototype.isCreatingSimilarCampaign=function(){return (this.getCurrentMode()===k.CreateMode.CREATE_SIMILAR_CAMPAIGN);};ua.prototype.isCreatingSimilar=function(){return (this.getCurrentMode()===k.CreateMode.CREATE_SIMILAR);};ua.prototype.isDialog=function(){return ga;};ua.prototype.isEditMode=function(){return this.isEditingExisting()||this.isEditingExistingCampaign();};ua.prototype.isEditingExisting=function(){return (this.getCurrentMode()===k.CreateMode.EDIT_EXISTING);};ua.prototype.isEditingExistingCampaign=function(){return (this.getCurrentMode()===k.CreateMode.EDIT_EXISTING_CAMPAIGN);};ua.prototype.isCampaignManager=function(){return ba===l.CM;};ua.prototype.isPowerEditor=function(){return ba===l.PE;};ua.prototype.getCreationSource=function(){return ba||l.CF;};ua.prototype.isDraftEnabled=function(){return ha;};ua.prototype.isAccountSelectionEnabled=function(){return fa;};ua.prototype.isObjectiveNotSupported=function(){return ia;};ua.prototype.isPageAnimationEnabled=function(){return !!ja;};ua.prototype.createDraft=function(wa,xa,ya){aa.apply(undefined,arguments);};ua.prototype.onDispatchToken=function(wa){var xa=wa.action;switch(xa.actionType){case j.ACCOUNT_INIT:sa();va.inform('change');break;case j.CREATE_MODE_CONFIG_CHANGE:x=!!xa.allowRedirect;break;case m.PAGE_CHANGE:var ya=xa.data.state;if(ya.PAGE!==v.CREATION_PAGE)break;ja=true;ma=o.generateURI(ya);ta();va.inform('change');break;case j.URI_CHANGE:ma=xa.uri;ta();va.inform('change');break;case j.CREATE_SIMILAR_AD:da=k.CreateMode.CREATE_SIMILAR;w=null;ka=null;va.inform('change');break;case j.CREATE_SIMILAR_CAMPAIGN:da=k.CreateMode.CREATE_SIMILAR_CAMPAIGN;w=null;z=null;ka=null;va.inform('change');break;case j.INIT_STARTED:aa=xa.createDraft;ba=xa.creationSource;fa=xa.isAccountSelectionEnabled;ha=xa.isDraftEnabled;va.inform('change');break;case j.REQUEST_RELATED_DATA_SUCCESS:x=true;va.inform('change');break;case j.SHOW_MODE_CHANGED:la=xa.showMode;va.inform('change');break;case j.INIT_DATA_LOADED:ea=k.DataStates.SUCCESS;va.inform('change');break;case j.INIT_DATA_FETCH_ERROR:ea=k.DataStates.FAILURE;va.inform('change');break;case h.PAGE_TRANSITION:ta();break;case m.SET_DRAFT_MODE:va.inform('change');break;case j.CANCEL_EDITED_CAMPAIGN:case j.DISMISS_CAMPAIGN_SAVE_SUCCESS:la=null;va.inform('change');break;case j.EDIT_CAMPAIGN_BUTTON_CLICK:la=k.ShowMode.PRICING;va.inform('change');break;case j.OBJECTIVE_NOT_SUPPORTED:ia=true;va.inform('change');break;}};function ua(){s.apply(this,arguments);}var va=new ua();b.debug_AdsCFApplicationStore=va;f.exports=va;},null);
__d('AdsConversionTrackingUtils',['AdsAPIObjectives','AdsCFApplicationStore','adsGKCheck'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k={isSupportedInObjective:function(l){return (l===h.WEBSITE_CONVERSIONS&&!i.isEditMode()||l===h.WEBSITE_CLICKS||l===h.POST_ENGAGEMENT||(l===h.MOBILE_APP_ENGAGEMENT||l===h.MOBILE_APP_INSTALLS||l===h.CANVAS_APP_ENGAGEMENT||l===h.CANVAS_APP_INSTALLS)&&j('neko_tracking_pixel_interfaces'));}};f.exports=k;},null);
__d("XAdsUserLocationController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/createflow\/user_location\/",{});},null,{});
__d('AdsCFUserStore',['AdsActionTypes','AdsBaseStore','AdsCFAccountStore','AdsCFActionTypes','AdsCFCreativeUtils','AdsCFUserViewActions','AdsDispatcher','AsyncRequest','BizSiteIdentifier.brands','CurrentUser','GeoCoordinates','GraphAPI','XAdsUserLocationController'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){if(c.__markCompiled)c.__markCompiled();var u,v;'use strict';var w,x,y,z,aa;function ba(){w=[];x=[];y=null;z=null;}ba();function ca(ga){y=null;z=ga.message;fa.inform('change');fa.inform('neko_create_page_error');}function da(ga){if(ga.feedPage){var ha=l.convertPageApiSpecToActor(ga.feedPage);x=[ha];w=[ha];}var ia=function(ja,ka){if(!ja)return;var la=x.slice(),ma=w.slice(),na=ja||[],oa=function(pa){if(ha&&ha.id===pa.id)return;if(pa.published)la.push(pa);ma.push(pa);};na.forEach(function(pa){var qa=l.convertPageApiSpecToActor(pa);if(q.isGray()||!qa.userPermissions||qa.userPermissions.length===0){oa(qa);return;}qa.userPermissions.forEach(function(ra){if(p.isBizSite()){if(ra.business&&ra.business.id===j.getBusinessID())oa(qa);}else oa(qa);});});la.sort(function(pa,qa){return pa.name.localeCompare(qa.name);});n.handleUpdateFromServerResponse({data:{allActors:ma,availableActors:la},type:k.CHANGE_ACTORS});ka&&ka(ia);};j.getDao().fetch.pagesForUser.paged(ia);}u=babelHelpers.inherits(ea,i);v=u&&u.prototype;ea.prototype.getStoreName=function(){return 'AdsCFUserStore';};ea.prototype.getLastCreatedPage=function(){return y;};ea.prototype.getPageCreationErrorMessage=function(){return z;};ea.prototype.getAllActors=function(){return w;};ea.prototype.getAvailableActors=function(){return x;};ea.prototype.getUserLocation=function(){if(aa)return aa;new o().setURI(t.getURIBuilder().getURI()).setHandler(function(ga){var ha=ga.payload;if(!ha)return;n.handleUpdateFromServerResponse({data:{location:ha},type:k.USER_LOCATION_AVAILABLE});}).send();};ea.prototype.onDispatchToken=function(ga){var ha=ga.action;switch(ha.type){case k.NEKO_CREATE_PAGE:z=null;s('2.3').me().edge('accounts').post({name:ha.data.name,category_enum:ha.data.category_enum,picture:ha.data.picture,website:ha.data.website}).then(function(ka){return s('2.3').object('page',ka.id).get();},ca).done(function(ka){if(!ka)return;y=ka;m.addActor(l.convertNewPageResultToActor(ka));fa.inform('change');fa.inform('neko_create_page_success');},ca);break;case k.CHANGE_ACTORS:x=ha.data.availableActors?ha.data.availableActors.slice(0):[];w=ha.data.allActors?ha.data.allActors.slice(0):x.slice(0);fa.inform('change');break;case k.ADD_ACTOR:var ia=ha.data.actor;ia.published=true;w.push(ia);x.push(ia);fa.inform('change');break;case k.NEW_PAGE_DESTINATION_SELECT:var ja=ha.pageInfo;w.push(ja);x.push(ja);fa.inform('change');break;case k.INIT_ACTORS:da(ha.data);break;case h.PAGE_TRANSITION:ba();break;case k.USER_LOCATION_AVAILABLE:aa=new r(ha.data.location.latitude,ha.data.location.longitude);break;}};function ea(){u.apply(this,arguments);}var fa=new ea();b.debug_AdsCFUserStore=fa;f.exports=fa;},null);
__d('AdsCreatePageDialog.react',['LayerFadeOnHide','Link.react','React','ReactLayeredComponentMixin','XUIDialog.react','XUIDialogBody.react','XUIDialogButton.react','XUIDialogCancelButton.react','XUIDialogFooter.react','XUIDialogOkayButton.react','XUIDialogTitle.react','XUISpinner.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){'use strict';if(c.__markCompiled)c.__markCompiled();var v=j.PropTypes,w=j.createClass({displayName:'AdsCreatePageDialog',mixins:[k],propTypes:{objectName:v.string,error:v.string,isCreating:v.bool,isShown:v.bool,page:v.shape({link:v.string,url:v.string}),onCreatePageConfirm:v.func.isRequired,onHide:v.func},renderLayers:function(){return {dialog:j.createElement(l,{behaviors:{LayerFadeOnHide:h},layerHideOnBlur:false,shown:this.props.isShown,onToggle:this._onToggle,width:445},j.createElement(r,null,u._("Create Page")),j.createElement(m,null,this._renderBody()),this._renderFooter())};},_renderBody:function(){if(this.props.isCreating){return this._renderCreatingBody();}else if(this.props.page){return this._renderSuccessBody();}else if(this.props.error){return this._renderErrorBody();}else return this._renderIntroBody();},_renderFooter:function(){if(this.props.isCreating){return this._renderCreatingFooter();}else if(this.props.page){return this._renderSuccessFooter();}else if(this.props.error){return this._renderErrorFooter();}else return this._renderIntroFooter();},_renderIntroBody:function(){return (j.createElement('div',null,j.createElement('div',{className:"_3-95"},u._("This will create a new Facebook Page for {name of application}. Details such as your app's name, URL and picture will be copied over automatically.",[u.param('name of application',j.createElement('strong',null,this.props.objectName))])),u._("By clicking {=Create Page}, you agree to the {=Facebook Pages Terms}",[u.param('=Create Page',u._("Create Page")),u.param('=Facebook Pages Terms',j.createElement(i,{href:'/terms_pages.php',target:'_blank'},u._("Facebook Pages Terms")))]),'.'));},_renderIntroFooter:function(){return (j.createElement(p,null,j.createElement(o,null),j.createElement(n,{action:'confirm',use:'confirm',label:u._("Create Page"),onClick:this.props.onCreatePageConfirm})));},_renderCreatingBody:function(){return (j.createElement('div',{className:"_3swm"},j.createElement(s,{size:'large'}),j.createElement('div',{className:"_3-8y"},u._("Creating a page for {application name}...",[u.param('application name',j.createElement('strong',null,this.props.objectName))]))));},_renderCreatingFooter:function(){return null;},_renderErrorBody:function(){return (j.createElement('div',null,u._("An error occurred while creating your page: {error message}",[u.param('error message',this.props.error.message||this.props.error)])));},_renderErrorFooter:function(){return (j.createElement(p,null,j.createElement(q,{action:'cancel',use:'default'})));},_renderSuccessBody:function(){var x=this.props.page.url||this.props.page.link;return (j.createElement('div',null,u._("Congratulations, your new Page for {application name} has been created. You can use it right away to create ads in Power Editor.",[u.param('application name',j.createElement('strong',null,this.props.objectName))]),j.createElement('p',{className:"_3-8x"},u._("To update your Page, you can access it by going to {link to Page}",[u.param('link to Page',j.createElement(i,{target:'_blank',href:x,className:"_3swn"},x))]))));},_renderSuccessFooter:function(){return (j.createElement(p,null,j.createElement(q,{action:'cancel',use:'confirm'})));},_onToggle:function(x){if(!x&&this.props.onHide)this.props.onHide();},render:function(){return null;}});f.exports=w;},null);
__d('NekoCFCreatePageButton.react',['AdsCFActionTypes','AdsCFUserStore','AdsCreatePageDialog.react','AdsDispatcher','Image.react','React','XUIButton.react','cx','fbt','glyph'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=m.PropTypes,s=m.createClass({displayName:'NekoCFCreatePageButton',propTypes:{creative:r.object.isRequired,destinationDetails:r.object.isRequired,hasActors:r.bool.isRequired},getInitialState:function(){return {isShown:false,error:null,isCreating:false,errorSubscription:null,successSubscription:null,page:null};},render:function(){if(this.props.hasActors){return this._renderInlinePageCreateButton();}else return this._renderLargeButton();},_renderInlinePageCreateButton:function(){var t=p._("Create New Facebook Page");return (m.createElement('div',{className:"_5yyt"},m.createElement(n,{'aria-label':t,'data-hover':'tooltip',image:m.createElement(l,{src:q('create')}),onClick:this._onCreatePageClick,size:'xlarge'}),this._getDialog()));},_renderLargeButton:function(){var t=p._("Create a Facebook Page");return (m.createElement('div',{className:"_5yyu"},m.createElement(n,{image:m.createElement(l,{src:q('create')}),label:t,onClick:this._onCreatePageClick,size:'xlarge'}),this._getDialog()));},_getDialog:function(){return (m.createElement(j,{objectName:this.props.destinationDetails.destinationName,isCreating:this.state.isCreating,isShown:this.state.isShown,page:this._getCreatedPage(),onHide:(function(){this.state.errorSubscription.unsubscribe();this.state.successSubscription.unsubscribe();this.setState({isShown:false,isCreating:false,errorSubscription:null,successSubscription:null});}).bind(this),error:this.state.error,onCreatePageConfirm:this._onCreatePageConfirmed}));},_getCreatedPage:function(){return this.state.page;},_onCreatePageClick:function(event){event.preventDefault();this.setState({isShown:true,page:null,error:null,errorSubscription:i.subscribe('neko_create_page_error',this._onError),successSubscription:i.subscribe('neko_create_page_success',this._onPageCreateSuccess)});},_onPageCreateSuccess:function(){var t=i.getLastCreatedPage();t.url=t.link;this.setState({isCreating:false,page:t});},_onError:function(){this.setState({isCreating:false,error:i.getPageCreationErrorMessage()});},_onCreatePageConfirmed:function(){this.setState({isCreating:true});var t=this.props.destinationDetails;k.dispatch({action:{data:{category_enum:'APP',name:t.destinationName,picture:t.destinationPicture,website:this.props.creative.linkUrl},type:h.NEKO_CREATE_PAGE}});k.dispatch({action:{actionType:h.PAGE_CREATE_CLICK,eventSource:'typeahead',eventType:'neko_create_page_click',type:h.PAGE_CREATE_CLICK}});}});f.exports=s;},null);
__d('view/core/mixins/offsets',['bolt/util'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();g.Offsets={setPadding:function(l){this._padding=l;return this._updateOffsetClass('p',l);},getPadding:function(){return this._padding;},setMargin:function(l){this._margin=l;return this._updateOffsetClass('m',l);},getMargin:function(){return this._margin;},_updateOffsetClass:function(l,m){var n=k(l,m),o=this.getClassName().replace(l=='m'?/(?:^|\s)m[avhtrbl][sml](?:\s|$)/:/(?:^|\s)p[avhtrbl][sml](?:\s|$)/,'').replace(/\s{2,}/g,' ');o=h.trim(o);if(o)n.unshift(o);return this.setClassName(n.join(' '));}};function i(l){var m=l.toLowerCase().split(/\s+/);if(m.length===1){m=[m[0],m[0],m[0],m[0]];}else if(m.length===2){m=m.concat(m);}else if(m.length===3)m=m.concat([m[1]]);return m;}function j(l,m,n,o){if(o!='0'&&o!='N')l.push(m+n+o);}function k(l,m){var n=i(m),o=[];if(n[0]==n[1]&&n[1]==n[2]&&n[2]==n[3]){j(o,l,'a',n[0]);}else{if(n[0]==n[2]){j(o,l,'v',n[0]);}else{j(o,l,'t',n[0]);j(o,l,'b',n[2]);}if(n[1]==n[3]){j(o,l,'h',n[1]);}else{j(o,l,'r',n[1]);j(o,l,'l',n[3]);}}return o;}},null);
__d("view/core/view",["arrayContains","bolt/core","bolt/util","bolt/view","view/core/mixins/offsets"],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=c("bolt\/view").View,l=c("view\/core\/mixins\/offsets").Offsets,m=500,n={};g.View=i.createClass({name:'View',extend:k,mixins:[l],construct:function(p){k.call(this,p);},setDeferredChildViews:function(p){this._debouncedSetChildViews=this._debouncedSetChildViews||j.debounce(this.setChildViews,50);this._debouncedSetChildViews(p);},destroy:function(){k.prototype.destroy.call(this);},_reportShortLivedView:function(){var p=this.getDeclaredClass()||'View without name',q=(n[p]||0)+1;n[p]=q;o();}});var o=j.debounce(function(){var p=j.map(n,function(q,r){return r+'('+q+')';});n={};},m);},null);
__d("view/core",["bolt/core","bolt/util","view/core/view"],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();g.createClass=function(k){if(!k.extend)k.extend=c("view\/core\/view").View;var l=h.createClass(k);if(k.modes)j(l,k.modes);return l;};function j(k,l){var m=k.prototype;i.forEach(l,function(n,o){var p=i.setter(o),q=i.getter(o);if(i.isString(n)){m[p]=function(r){return this.toggleClass(n,r);};m[q]=function(){return this.hasClass(n);};}else{m[p]=function(r){i.forEach(n,function(s,t){this.toggleClass(s,t===r);},this);return this;};m[q]=function(){for(var r in n)if(this.hasClass(n[r]))return r;return false;};}});}},null);
__d('view/focusable',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();g.Focusable={getFocusableNode:function(){return this.getNode();},_nodeForEvent:function(h){if(h=='focus'||h=='blur')return this.getFocusableNode();return this.getNode();},delegateProperties:{focusableNode:['tabIndex']},focus:function(){this.getFocusableNode().focus();return this;},blur:function(){this.getFocusableNode().blur();return this;},hasFocus:function(){return this.getFocusableNode()==document.activeElement;}};},null);
__d('view/mixins/tooltipable',['Tooltip'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();g.Tooltipable={properties:{tooltip:'',position:'above',alignh:'left'},mixinReady:function(){if(this.getTooltip())h.set(this.getNode(),this.getTooltip(),this.getPosition(),this.getAlignh());},setPosition:function(i){switch(i){case 'above':case 'below':case 'left':case 'right':this.set('position',i);break;default:break;}return this;},setAlignh:function(i){switch(i){case 'left':case 'center':case 'right':this.set('alignh',i);break;default:break;}return this;}};},null);
__d("view/button/abstract_button",["bolt/builder","view/core","cx","view/core/view","view/focusable","view/mixins/tooltipable"],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=c("view\/core\/view").View,l=c("view\/focusable").Focusable,m=c("view\/mixins\/tooltipable").Tooltipable,n=i.createClass({name:'AbstractButton',extend:k,mixins:[l,m],properties:{href:'',depressed:false,disabled:false},declare:function(o){var p;if(o.href){p={tagName:"a",role:"button"};}else p={tagName:"button",type:"submit"};p.className="_42ft";return p;},setChildViews:function(o){if(!o.length){this._label=null;this._icon=null;k.prototype.setChildViews.call(this,o);return;}var p=[];if(o[0].image){this._icon=h.build(o[0],this.getOwner()||this);if(o[1]&&o[1].content){this._label=o[1].content;p.push(this._getWrappedLabel());this._icon.setMargin('0 S 0 0');}p.unshift(this._icon);}else if(o[0].content){this._label=o[0].content;p.push(this._getWrappedLabel());if(o[1]&&o[1].image){this._icon=h.build(o[1],this.getOwner()||this);this._icon.setMargin('0 0 0 S');p.push(this._icon);}}k.prototype.setChildViews.call(this,p);},getContent:function(){return this.get('content');},setContent:function(o){this.set('content',o);this.setChildViews([{tagName:"span",content:o}]);},_getWrappedLabel:function(){return {tagName:"span",content:this._label};},setHref:function(o){this.set('href',o);this.getNode().href=o;},setDisabled:function(o){this.set('disabled',o);this.toggleClass("_42fr",o);if(o&&this.getHref()){this._dataHref=this.getHref();this.setHref('');}if(!o&&this._dataHref){this.setHref(this._dataHref);this._dataHref='';}return this;},setDepressed:function(o){this.set('depressed',o);this.toggleClass("_42fs",o);return this;},setPadding:function(o){return this;},onClick:function(event){if(this.getDisabled()){event.preventDefault();event.stopPropagation();}}});g.AbstractButton=n;},null);
__d("view/button",["view/core","cx","view/button/abstract_button"],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=c("view\/button\/abstract_button").AbstractButton,k={def:'default',confirm:'confirm',special:'special'},l={medium:'medium',large:'large'},m=h.createClass({name:'Button',extend:j,properties:{size:l.medium,suppressed:false,use:k.def},ready:function(){this.addClass("_42fu");},setSize:function(n){if(n===l.medium||n===l.large){this.set('size',n);this.toggleClass("_42gy",n===l.large);}return this;},setSuppressed:function(n){this.set('suppressed',n);this.toggleClass("_42gx",n);return this;},setUse:function(n){switch(n){case k.def:case k.confirm:case k.special:this.set('use',n);break;default:}this.toggleClass('selected',n!==k.def);this.toggleClass("_42gz",n===k.special);this.toggleClass("_42g-",n===k.confirm);return this;}});g.Button=m;},null);
__d("view/dialog/deprecated",["bolt/builder","view/core","bolt/dom","fbt","view/core/view","view/button/deprecated"],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l=c("view\/core\/view").View,m=c("view\/button\/deprecated").Button_DEPRECATED,n=27,o=i.createClass({name:'Dialog_DEPRECATED',properties:{closeOnEsc:true,destroyOnClose:false},delegateProperties:{dialogHeader:[{name:'content',alias:'dialogTitle'}]},construct:function(p){l.call(this,p);this._keyUpHandler=this._handleKeyUp.bind(this);j.addListener(document,'keyup',this._keyUpHandler);},declare:function(p){return {className:'btDialog',childViews:[{className:'btDialogWrapper',childViews:[{className:'btDialogContainer',childViews:[{className:'btDialogBg'},{className:'btDialogHeader',ref:'dialogHeader',owner:this,content:p.dialogTitle||''},{className:'btDialogContent',childViews:[{className:'btDialogBody',childViews:this._contentViews(p)},{className:'btDialogFooter',childViews:this._controlViews(p)}]}]}]},{className:'overlay',isDisplayed:p.isModal||false}]};},showInDocument:function(){this.placeIn(document.body);},hideFromDocument:function(){if(this._removed)return;this._removed=true;document.body.removeChild(this.getNode());if(this.getDestroyOnClose())this.destroy();},isRemoved:function(){return this._removed;},_contentViews:function(p){return p.contentViews||[];},_controlViews:function(p){return p.controlViews||[];},_handleKeyUp:function(p){if(this.getIsDisplayed()&&this.getCloseOnEsc()&&p.which===n){j.removeListener(document,'keyup',this._handleKeyUp);this.hideFromDocument();}}});o.alert=function(p,q){var r=h.build({view:m,label:k._("Close"),large:true,use:'confirm'}),s=h.build({view:o,dialogTitle:p,isModal:true,contentViews:[{content:q}],controlViews:[r]});r.addListener('click',function(){s.hideFromDocument();});s.showInDocument();};o.promote=function(p,q,r){o.confirm(p,q,k._("Confirm"),k._("Cancel"),false,r);};o.confirm=function(p,q,r,s,t,u){var v=h.build({view:m,label:r,large:true,use:"confirm"}),w=h.build({view:m,label:s,large:true,use:"cancel"});if(typeof q==='string'){q=[{content:q}];}else if(typeof q!=='array')q=[q];var x=h.build({view:o,dialogTitle:p,isModal:true,contentViews:q,controlViews:[v,w]});if(t)x.addClass('btDialogFlexible');v.addListener('click',function(){if(u)u(true);x.hideFromDocument();x.destroy();});w.addListener('click',function(){if(u)u(false);x.hideFromDocument();x.destroy();});x.showInDocument();return {setButtonEnabled:function(y){v.setDisabled(!y);},setButtonLabel:function(y){v.setLabel(y);},close:function(){x.hideFromDocument();x.destroy();}};};g.Dialog_DEPRECATED=o;},null);
__d("PageCreatorController",["Arbiter","AsyncDialog","AsyncRequest","bolt/builder","bolt/core","fbt","view/button","bolt/mixins/events","view/dialog/deprecated"],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n=c("view\/button").Button,o=c("bolt\/mixins\/events").Events,p=c("view\/dialog\/deprecated").Dialog_DEPRECATED,q=l.createClass({name:'PageCreatorController',mixins:[o],properties:{initialName:null,initialImageUrl:null,initialWebsite:null,accountId:0,onProgress:null,businessID:null},events:['pageCreated'],construct:function(r){this.setInitialName(r.initialName);this.setInitialImageUrl(r.initialImageUrl);this.setInitialWebsite(r.initialWebsite);this.setAccountId(r.accountId);this.setOnProgress(r.onProgress);this.setBusinessID(r.businessID);},showPageCreationDialog:function(r){if(r){this.supercategoryToUse=r;this._showPageCreationDialog(this.supercategoryToUse);return;}var s='/ajax/ads/create/page/category/';i.send(new j(s),(function(t){this.supercategoryToUse=null;this.arbiterToken=h.subscribe('pageSupercategorySelected',(function(u,v){this.supercategoryToUse=v;t.hide();}).bind(this));t.subscribe('hide',(function(u,event){h.unsubscribe(this.arbiterToken);this.arbiterToken=null;if(this.supercategoryToUse){this._showPageCreationDialog(this.supercategoryToUse);}else this._fireProgressEvent('cancel_category');}).bind(this));}).bind(this));},_showPageCreationDialog:function(r){var s='/ajax/ads/create/page/page_creator/',t={name:this.getInitialName(),profilePic:this.getInitialImageUrl(),website:this.getInitialWebsite(),parent_category:r,accountId:this.getAccountId(),businessID:this.getBusinessID()};this._isPageCreated=false;i.send(new j(s).setData(t),(function(u){u.subscribe('success',(function(v,event){var w=event.data;if(w&&w.response&&w.response.payload)this._onPageCreated(w.response.payload,u);}).bind(this));u.subscribe('hide',(function(v,event){if(!this._isPageCreated)this._fireProgressEvent('cancel_fields');}).bind(this));}).bind(this));},_onPageCreated:function(r,s){if(r.page){this._isPageCreated=true;s.hide();this.invoke('pageCreated',r.page);if(r.warnings)this._showAlertForWarnings(m._("Create a Page"),r.warnings);this._fireProgressEvent('success',{page_id:r.page.id});}},_showAlertForWarnings:function(r,s){var t=k.build({view:n,use:"confirm",size:"large",childViews:[{tagName:"span",content:m._("Close")}]}),u=[];for(var v=0;v<s.length;++v)u[v]={content:s[v]};var w=k.build({view:p,dialogTitle:r,isModal:true,contentViews:u,controlViews:[t]});t.addListener('click',function(){w.hideFromDocument();});w.showInDocument();},_fireProgressEvent:function(r,s){var t=this.getOnProgress();t&&t(r,s);}});f.exports=q;},null);
__d('AdsCFCreativeContentFieldsMixin',['AdsAccountStoreWrapper','AdsAPIAdgroupPaths','AdsBootloadContainer.react','AdsCFActionTypes','AdsCFConstants','AdsCFCreativePlacementUtils','AdsCFCreativeUtils','AdsCFCreativeValidator','AdsCFCreativeViewActions','AdsCFInstagramAccountSelectorContainer.react','AdsCFLabeledField.react','AdsCFLogViewActions','AdsCFPageCreationProgressLogger','AdsCFPixelSelector.react','AdsCFPricingViewActions','AdsCFURLPageSelector.react','AdsCFUserViewActions','AdsConversionPixelStatusToText','AdsConversionTrackingUtils','AdsCreativeCallToActionField.react','AdsCreativeDelegate','AdsDispatcher','AdsTextInput.react','ApiCreativeTypes','Bootloader','Image.react','Link.react','NekoCFCreatePageButton.react','PageCreatorController','React','XUIButton.react','adsGKCheck','cx','fbt','getByPath','getObjectValues','glyph','invariant','ix','AdsAPIObjectives','AdCreativeType'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ua){'use strict';if(c.__markCompiled)c.__markCompiled();var va=m.canDisableNewsFeedStatus,wa=m.canEnableNewsFeedStatus,xa=c('AdCreativeType').AD_CREATIVE_TYPE,ya=ka.PropTypes,za='body',ab='callToActionType',bb='linkDescription',cb='title',db='productLinkUrl',eb=l.PlacementID,fb='typeahead',gb=o.getFieldBadTextRules(),hb=y.getTrackingPixelStatusToText(),ib={propTypes:{accountID:ya.string.isRequired,availableActors:ya.array,creative:ya.object.isRequired,destinationDetails:ya.object,destinationID:ya.string,isUsingExistingPost:ya.bool,objective:ya.string,typeName:ya.oneOf(['Application','URL','Page','Event','Media'])},getInitialState:function(){return {advancedFieldsShown:!this._advancedFieldsInDefaultState()};},getDefaultProps:function(){return {destinationDetails:{}};},_advancedFieldsInDefaultState:function(){var jb=this.props.creative,kb=this.props.destinationDetails,lb=jb.linkUrl,mb=nb&&lb in nb?lb:null,nb=kb.tabs;return (!jb.urlTags&&!mb);},componentWillUnmount:function(){this._destroyPageCreatorController();},componentWillReceiveProps:function(jb){if(!jb.creative)return;var kb=this.props.creative,lb=kb.urlTags,mb=kb.linkUrl,nb=jb.creative,ob=nb.urlTags,pb=nb.linkUrl;if((lb!==ob||mb!==pb)&&!this.state.advancedFieldsShown)this.setState({advancedFieldsShown:true});},_renderAdvancedFieldsToggler:function(jb){if(this._shouldHideAdvancedFieldsToggler(jb))return null;var kb,lb;if(this.state.advancedFieldsShown){kb=oa._("Hide Advanced Options");lb=ta('/images/ads/createflow/creative/arrow_up.png');}else{kb=oa._("Show Advanced Options");lb=ta('/images/ads/createflow/creative/arrow_down.png');}return (ka.createElement('div',{className:"_5yym"},ka.createElement(ha,{className:"_5yyn",onClick:this._onAdvancedFieldsToggleClick},kb,ka.createElement(ga,{src:lb,className:"_5yyo"}))));},renderTitle:function(){var jb=this.props.creative,kb=jb.creativeType,lb=jb[cb]||'',mb={},nb={};if(!jb.isMPA)o.validateTitle(lb,mb,nb);var ob=oa._("Headline"),pb=oa._("Add a headline that grabs people's attention..."),qb=oa._("Add a headline that grabs people's attention and tells them what your ad is about.");switch(kb){case ea.INLINE_FAN:qb=oa._("Add a headline that grabs people's attention and tells them what your ad is about. Your Page name may be used as the headline for your ad where it performs better.");break;}return (ka.createElement(da,{className:"_5yy9",badTextRules:qa(gb),errors:mb,helpText:qb,label:ob,onChange:this._onChangeLinkTitle,placeholder:pb,ref:'title',sublabel:this._getTitleSublabel(kb),value:lb,warnings:nb}));},renderBody:function(){var jb=this.props.creative,kb=jb.creativeType,lb=jb[za]||'',mb={},nb={};o.validateBody(lb,kb,mb,nb);var ob=oa._("Text"),pb=oa._("Enter compelling text that lets people know what you're promoting..."),qb=oa._({"Application":"Tell people a bit more about your Application. Make sure to clearly explain what you're promoting.","URL":"Tell people a bit more about your URL. Make sure to clearly explain what you're promoting.","Page":"Tell people a bit more about your Page. Make sure to clearly explain what you're promoting.","Event":"Tell people a bit more about your Event. Make sure to clearly explain what you're promoting.","Media":"Tell people a bit more about your Media. Make sure to clearly explain what you're promoting."},[oa['enum'](this.props.typeName,{Application:'Application',URL:'URL',Page:'Page',Event:'Event',Media:'Media'})]);return (ka.createElement(da,{className:"_1nri",badTextRules:qa(gb),errors:mb,helpText:qb,label:ob,multiline:true,onChange:this._onChangeText,placeholder:pb,ref:'body',value:lb,warnings:nb}));},_renderPageTypeahedNewsFeedEnableLink:function(){var jb=wa(this.props.campaign,this.props.creative,this.props.objective);return jb?ka.createElement(ha,{className:'fwb',onClick:this._onChangeFeedPlacement.bind(this,true)},oa._("Turn On News Feed Ads")):null;},_renderPageTypeahedNewsFeedDisableLink:function(){var jb=va(this.props.campaign,this.props.creative,this.props.objective);return jb?ka.createElement('div',{className:"_5yyp"},oa._("or {=Turn Off News Feed Ads}",[oa.param('=Turn Off News Feed Ads',ka.createElement(ha,{className:'fwb',onClick:this._onChangeFeedPlacement.bind(this,false)},oa._("Turn Off News Feed Ads")))])):null;},renderPageTypeahead:function(){if(!this._shouldShowNewsFeedFields())if(this._isNewsFeedDisabled()){return (ka.createElement('div',{className:"_5yy9 fwb"},oa._("Your ads will not show in News Feed"),ka.createElement('br',null),this._renderPageTypeahedNewsFeedEnableLink()));}else return null;var jb=this.props.availableActors||[],kb=oa._("Connect Facebook Page"),lb=ba.get(this.props.objective).getPageTypeaheadDescription(jb,!!this.props.isUsingExistingPost);return (ka.createElement(r,{className:"_5yy9",label:kb},ka.createElement('div',null,lb,ka.createElement('div',{className:"_5yyr"},ka.createElement(w,{actors:jb,className:jb.length===0?"hidden_elem":'',creative:this.props.creative,onPageSelected:this._onPageSelectAttempt}),!this.props.isUsingExistingPost&&this._renderCreatePageButton(),!this.props.isUsingExistingPost&&this._renderPageTypeahedNewsFeedDisableLink()))));},renderInstagramAccountSelector:function(){if(!m.isPlacementEnabled(this.props.creative,eb.IG_FEED,this.props.objective))return null;return ka.createElement(q,null);},renderWebsiteCallToAction:function(jb,kb){if(!this._shouldShowNewsFeedFields())return null;if(ma('ads_cf_creative_lpp_cta')!==jb)return null;var lb=this.props.createMode===l.CreateMode.EDIT_EXISTING,mb=this.props.creative.callToActionType;if(lb&&!mb)return null;var nb=m.isOnlyIGEnabled(this.props.creative,this.props.objective),ob=m.isPlacementEnabled(this.props.creative,eb.IG_FEED,this.props.objective),pb=this.props.creative.actor,qb=oa._("Call-to-Action Button {optional}",[oa.param('optional',ka.createElement('span',{className:'fwn'},oa._("(optional)")))]),rb=n.isVideoCreative(this.props.creative);if(rb||ob)qb=oa._("Call-to-Action Button");var sb=oa._("Choose the action you want people to take when they see your ad."),tb=oa._("Choosing a Facebook Page is required to use a call-to-action."),ub=ba.get(this.props.objective).getDisabledCallToActionTypes(this.props.creative);return (ka.createElement(r,{label:qb,helpText:sb,className:"_5yy9"},ka.createElement(aa,{apiObjective:this.props.objective,disabledHintText:tb,disabledTypes:ub,isDisabled:!pb,isReadOnly:lb,isRequired:rb||nb,onChange:this._onCallToActionChange,onRemoveInstagramPlacement:this._onRemoveInstagramPlacement,selectedType:mb,xuiError:pa(kb,i.CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.CALL_TO_ACTION.TYPE)})));},_onCallToActionChange:function(jb){p.setCreativeCallToActionType(jb.value);},_renderCreatePageButton:function(){var jb=this.props.availableActors,kb=!!(jb&&jb.length);if(this.props.creative.creativeType===xa.NEKO_LPP)return (ka.createElement(ia,{destinationDetails:this.props.destinationDetails,creative:this.props.creative,hasActors:kb}));if(kb){return this._renderInlineCreatePageButton();}else return this._renderLargeCreatePageButton();},_renderLargeCreatePageButton:function(){var jb=oa._("Create a Facebook Page");return (ka.createElement('div',{className:"_5yyu"},ka.createElement(la,{image:ka.createElement(ga,{src:ra('create')}),label:jb,onClick:this._onCreatePageClick,size:'xlarge'})));},_renderInlineCreatePageButton:function(){var jb=oa._("Create New Facebook Page");return (ka.createElement('div',{className:"_5yyt"},ka.createElement(la,{'aria-label':jb,'data-hover':'tooltip',image:ka.createElement(ga,{src:ra('create')}),onClick:this._onCreatePageClick,size:'xlarge'})));},_isNewsFeedDisabled:function(){return m.isNewsFeedDisabled(this.props.creative,this.props.objective);},_shouldHideAdvancedFieldsToggler:function(jb){var kb=false;ka.Children.forEach(jb.props.children,function(lb){if(ka.Children.count(lb)>0){kb=true;return;}});return !kb;},_getTitleSublabel:function(jb){if(jb===ea.INLINE_FAN)return oa._("Your headline will only show in right column ads");},_onCreatePageClick:function(event){event.preventDefault();ca.dispatch({action:{actionType:k.PAGE_CREATE_CLICK,eventSource:'typeahead',eventType:'click_new_fb_page_news_feed_format',type:k.PAGE_CREATE_CLICK}});var jb=this.props.creative,kb=jb.imageList&&jb.imageList.length?jb.imageList[0].getUrl():undefined;if(!this._pageCreatorController){this._pageCreatorController=new ja({initialName:jb.title,initialImageUrl:kb,accountId:this.props.accountID,onProgress:t.getNewsFeedFormatHandler()});this._pageCreatorController.addListener('pageCreated',this._onPageCreated);}else this._pageCreatorController.setInitialImageUrl(kb);this._pageCreatorController.showPageCreationDialog();},_onPageCreated:function(jb){if(this.isMounted()){x.addActor(n.convertNewPageResultToActor(jb));this._destroyPageCreatorController();}},_destroyPageCreatorController:function(){if(this._pageCreatorController){this._pageCreatorController.destroy();delete this._pageCreatorController;}},_renderAdvancedFieldsContent:function(jb){if(!this.state.advancedFieldsShown)return null;return (ka.createElement('fieldset',null,jb));},renderAdvancedFields:function(jb){return (ka.createElement('div',null,this._renderAdvancedFieldsToggler(jb),this._renderAdvancedFieldsContent(jb)));},renderLinkDescription:function(){if(!this._shouldShowNewsFeedFields())return null;if(m.isOnlyIGEnabled(this.props.creative,this.props.objective))return null;if(!(bb in this.props.creative))return null;var jb=this.props.creative[bb],kb={};o.validateLinkDescription(jb,kb);var lb=o.getMaxLinkDescriptionLength(),mb=oa._({"Description":"News Feed Description","Link Description":"News Feed Link Description"},[oa['enum'](this.props.objective===ua.LOCAL_AWARENESS?'Description':'Link Description',{Description:'Description','Link Description':'Link Description'})]),nb=oa._({"business":"Describe why people should visit your business.","website":"Describe why people should visit your website."},[oa['enum'](this.props.objective===ua.LOCAL_AWARENESS?'business':'website',{business:'business',website:'website'})]);return (ka.createElement(da,{className:"_5yy9",errors:kb,label:mb,maxLength:lb,multiline:true,onChange:this._onChangeLinkDescription,placeholder:nb,ref:'linkDescription',value:jb}));},renderAppCallToAction:function(jb,kb){!(jb===ua.MOBILE_APP_ENGAGEMENT||jb===ua.MOBILE_APP_INSTALLS||jb===ua.CANVAS_APP_ENGAGEMENT||jb===ua.CANVAS_APP_INSTALLS)?sa(0):undefined;var lb=oa._("Call To Action"),mb=oa._("Choose the call to action text that will appear as a button on your ad."),nb=this.props.creative,ob=nb[ab],pb=this.props.createMode===l.CreateMode.EDIT_EXISTING,qb=ba.get(this.props.objective).getDisabledCallToActionTypes(this.props.creative);return (ka.createElement(r,{className:"_5yy9",helpText:mb,label:lb,ref:'callToActionType'},ka.createElement(aa,{apiObjective:jb,disabledTypes:qb,isDisabled:false,isReadOnly:pb,isRequired:true,onChange:this._onCallToActionChange,onRemoveInstagramPlacement:this._onRemoveInstagramPlacement,selectedType:ob,xuiError:pa(kb,i.CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.CALL_TO_ACTION.TYPE)})));},renderProductLink:function(jb){var kb=this.props.creative;if(!n.isProductLinkURLRequired(kb,jb))return null;var lb=oa._("Virtual Good Link"),mb=kb[db]||'',nb={};o.validateDeepLink(mb,nb);var ob=oa._("The link that connects your ad to the virtual good offer in the Facebook Open Graph. {=Learn more}.",[oa.param('=Learn more',ka.createElement(ha,{href:'https://developers.facebook.com/docs/payments/ads_virtual_goods/',target:'_blank'},oa._("Learn more")))]),pb=oa._("Ex: http:\/\/example.com\/og\/packs\/coins.php");return (ka.createElement(da,{className:"_5yy9",badTextRules:qa(gb),errors:nb,helpText:ob,label:lb,maxLength:o.getMaxDeepLinkLength(),onChange:this._onChangeProductLink,placeholder:pb,ref:'productlinkUrl',value:mb,hideMaxLength:true}));},renderPixels:function(){var jb=z.isSupportedInObjective(this.props.objective);if(!jb)return null;if(h.canSeeUnifiedPixel()){if(this.props.objective===ua.WEBSITE_CONVERSIONS||this.props.objective===ua.WEBSITE_CLICKS)return null;return (ka.createElement('div',{className:"_4mz0"},ka.createElement(j,{name:'AdsCFPixelTracking',bootloadContainer:function(kb){fa.loadModules(["AdsCFPixelTracking.react"],kb);}})));}return this._renderLegacyPixels();},_renderLegacyPixels:function(){if(!this.props.pixels||this.props.pixels.length===0)return null;var jb=this.props.objective===ua.MOBILE_APP_ENGAGEMENT||this.props.objective===ua.MOBILE_APP_INSTALLS,kb=jb?oa._("Website Conversion Pixel (optional)"):oa._("Conversion Tracking Pixel"),lb=jb?oa._("This will measure your website conversions. You'll see your results in Ads Manager along with performance for your mobile app ads."):oa._("A conversion-tracking pixel is a small piece of code that lets you keep track of conversions, such as purchases and sign-ups, on your website.");return (ka.createElement(r,{ref:'trackingPixel',className:"_5yy9",helpText:lb,label:kb},ka.createElement('div',{className:"_5y_3"},ka.createElement(u,{accountID:this.props.accountID,kpiObjective:this.props.objective,onSelectionChange:this._onConversionPixelChange,pixels:this.props.pixels,pixelStatusToText:hb,selectedPixelID:this.props.pixelID,showNewVersion:this.props.objective===ua.WEBSITE_CLICKS}))));},_onPageSelectAttempt:function(jb){if(jb!==this.props.creative.actor){p.setActor(jb,fb);ca.handleUpdateFromServerResponse({pageId:jb.id,type:k.PAGE_SELECTED});}},_onChangeText:function(jb){p.setCreativeBody(jb);},_onChangeLinkTitle:function(jb){p.setCreativeTitle(jb);},_onChangeDeepLinkTitle:function(jb){p.setCreativeDeepLinkTitle(jb);},_onChangeLinkDescription:function(jb){p.setCreativeLinkDescription(jb);},_onChangePlacement:function(jb,kb){this._setPlacements([kb],jb,'placement_checkbox');},_onChangeFeedPlacement:function(jb,event){event.preventDefault();this._setPlacements([eb.DESKTOP_NEWS_FEED,eb.MOBILE_NEWS_FEED,eb.IG_FEED],jb,'creative_editor_link');},_setPlacements:function(jb,kb,lb){p.setPlacements(jb,kb,lb);},_onRemoveInstagramPlacement:function(){this._setPlacements([eb.IG_FEED],false);},_onAdvancedFieldsToggleClick:function(event){event.preventDefault();var jb=!this.state.advancedFieldsShown;this.setState({advancedFieldsShown:jb});s.log(jb?'click_show_adv_creative':'click_hide_adv_creative');},_onConversionPixelChange:function(jb){v.setConversionPixel(l.CanonicalID,jb);},_onChangeProductLink:function(jb){p.setCreativeProductLink(jb);},_shouldShowNewsFeedFields:function(){var jb=this.props.creative,kb=this.props.objective,lb=m.isPlacementSupported(jb,eb.DESKTOP_NEWS_FEED,kb)||m.isPlacementSupported(jb,eb.MOBILE_NEWS_FEED,kb)||m.isPlacementSupported(jb,eb.IG_FEED,kb);if(!lb)return false;return (!m.isNewsFeedDisabled(jb,kb)||jb.creativeType===xa.NEKO_LPP||n.isVideoCreative(jb)||!!jb.isMPA);}};f.exports=ib;},null);
__d('AdsCFCreativeEventFields.react',['AdsCFCreativeContentFieldsMixin','AdsCFCreativeURLTags.react','React'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k=j.PropTypes,l=j.createClass({displayName:'AdsCFCreativeEventFields',mixins:[h],propTypes:{accountID:k.string.isRequired,availableActors:k.array.isRequired,campaign:k.object.isRequired,creative:k.object.isRequired,errorSpec:k.object,objective:k.string,typeName:k.string.isRequired},render:function(){var m=j.createElement('div',null,j.createElement(i,{value:this.props.creative.urlTags})),n=j.createElement('div',null,this.renderPageTypeahead(),this.renderBody(),this.renderAdvancedFields(m));return (j.createElement('div',null,j.createElement('fieldset',null,n)));}});f.exports=l;},null);
__d('AdsCFCallNowStrings',['AdsCallToActionTypes','AdsCreationConfig','fbt'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k={CALL_NOW_DESCRIPTION:j._("Add a phone number so people can tap your ad to call you."),INTERNAL_ERROR:j._("A technical problem occurred. Please try again in a few minutes, or refresh your browser."),INTERNATIONAL_NUMBER_ERROR:j._("Only local phone numbers are allowed."),MIN_AGE_ERROR:j._("{=Call Now} Call-to-Actions cannot target people younger than {min_age} years-old.",[j.param('=Call Now',h.TYPES.CALL_NOW.text),j.param('min_age',i.minCallNowAge)]),PHONE_NUMBER_PLACEHOLDER:j._("Enter a phone number"),PREMIUM_NUMBER_ERROR:j._("Premium phone numbers are not allowed."),TARGETING_ADDRESS_MISSING_ERROR:j._("A targeting address is required by the {=Call Now} Call-to-Action.",[j.param('=Call Now',h.TYPES.CALL_NOW.text)])};f.exports=k;},null);
__d('AdsCFLandingPagePicker.react',['AdsTextInput.react','AdsURLValidationView','React','URI','XUINotice.react','XUIRadioList.react','XUISpinner.react','cx','fbt','isFacebookURI','AdsCFConstants'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=c('AdsCFConstants').LandingURLTypes,s=j.PropTypes,t=m.Item,u=j.createClass({displayName:'AdsCFLandingPagePicker',propTypes:{onURLChange:s.func.isRequired,onSubmit:s.func.isRequired,view:s.object,disabled:s.bool,linkURL:s.string},getDefaultProps:function(){return {view:new i(),disabled:false,linkURL:''};},getInitialState:function(){return {linkType:this._getInitialLinkTypeFromURL(this.props.linkURL)};},_getInitialLinkTypeFromURL:function(v){var w=new k(v);if(!v||q(w))return r.FACEBOOK_PAGE;return r.EXTERNAL;},_onTextChange:function(v){this.props.onURLChange(v,this.state.linkType);this.props.onSubmit();},_renderSpinner:function(){if(!this.props.view)return null;return this.props.view.isLoading?j.createElement(n,{className:"_3_fk"}):null;},_renderNotice:function(){if(!this.props.disabled)return null;return (j.createElement(l,{use:'notify'},p._("The same website will be used as when people click Learn More.")));},_renderTextInput:function(){if(this.state.linkType===r.FACEBOOK_PAGE&&!this.props.disabled)return null;var v=this.props.view,w=v?v.xuiError:undefined,x=this.props.linkURL;return (j.createElement('div',null,j.createElement(h,{height:'tall',placeholder:'http://www.example.com',onChange:this._onTextChange,onBlur:this.props.onSubmit,value:x,xuiError:w,disabled:this.props.disabled}),this._renderSpinner(),j.createElement('div',{className:"_3-8y"},this._renderNotice())));},_onLinkTypeChange:function(v){this.setState({linkType:v});this.props.onURLChange(this.props.linkURL,v);},render:function(){var v=this.state.linkType,w=this.props.disabled;return (j.createElement('div',null,j.createElement('div',null,j.createElement(m,{selectedValue:v,className:"_2phz",onValueChange:this._onLinkTypeChange},j.createElement(t,{value:r.FACEBOOK_PAGE,disabled:w,className:"_2kqq"},p._("Send them to your Page")),j.createElement(t,{value:r.EXTERNAL,disabled:w,className:"_2kqq"},p._("Enter website URL"))),this._renderTextInput()),j.createElement('div',{className:"_3-8y"},p._("When people click on the main image on your ad they can be taken to your Facebook Page or a website."))));}});f.exports=u;},null);
__d('GeoPlace',['immutable'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i,j;'use strict';i=babelHelpers.inherits(k,h.Record({coordinates:undefined,name:undefined}));j=i&&i.prototype;function k(l,m){j.constructor.call(this,{coordinates:l,name:m});}k.prototype.toString=function(){return (this.name||'('+this.coordinates.latitude+', '+this.coordinates.longitude+')');};f.exports=k;},null);
__d('AdsCallToActionUtils',['AdsGetDirectionsActionLink','GeoCoordinates','GeoPlace'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k={isValidGeoLink:function(l){return k.parseGeoLink(l)!=null;},parseGeoLink:function(l){var m=l.match(h.URI_REGEX);if(m===null)return;var n=+m[1],o=+m[2];if(!isNaN(n)&&!isNaN(o)&&Math.abs(n)<=90&&Math.abs(o)<=180)return new j(new i(n,o),m[3]);},makeGeoLink:function(l){return (h.LINK_START+(l.coordinates.latitude+','+l.coordinates.longitude)+(l.name!=null?',"'+l.name+'"':''));}};f.exports=k;},null);
__d('AdsCFGetDirectionsStrings',['AdsCallToActionTypes','fbt'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={CALL_TO_ACTION_ADDRESS_EDIT:i._("Edit"),CALL_TO_ACTION_ADDRESS_LABEL:i._("Street Address"),CALL_TO_ACTION_ADDRESS_TOOLTIP:i._("Add a street address for your business. When people tap \"Get Directions\" they'll get a map with directions to this location."),CALL_TO_ACTION_ADDRESS_INVALID:i._("Please set a valid address for the \"{=Get Directions}\" Call to Action.",[i.param('=Get Directions',h.TYPES.GET_DIRECTIONS.text)]),CALL_TO_ACTION_ADDRESS_INSTRUCTION:i._("Add a link to a map so people can tap your ad to get directions to your business.")};f.exports=j;},null);
__d('BoostedComponentConstants',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={DIALOG_MIN_HEIGHT:300,DIALOG_MAX_HEIGHT:600,DIALOG_WIDTH:950,SMALL_DIALOG_WIDTH:445,LOADING_DIALOG_WIDTH:300,DURATION_SECTION:{CONTINUOUS_OPTION:'continuous',DATE_PICKER_OPTION:'date_picker'}};f.exports=h;},null);
__d('AdsCFPlaceEditor.react',['ActionList.react','AdsCallToActionUtils','AdsCFGetDirectionsStrings','AdsLabeledField.react','BoostedComponentConstants','BootloadedComponent.react','JSResource','Link.react','React','XUICard.react','XUIDialog.react','XUIError.react','XUIGrayText.react','XUISpinner.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w){'use strict';if(c.__markCompiled)c.__markCompiled();var x=p.PropTypes,y=p.createClass({displayName:'LoadingDialog',render:function(){return (p.createElement(r,{onToggle:this.props.onToggle,shown:true,width:l.LOADING_DIALOG_WIDTH},p.createElement(q,null,p.createElement('div',{className:"_238c"},p.createElement(u,{background:'light',size:'large'})))));}}),z=p.createClass({displayName:'AdsCFPlaceEditor',propTypes:{ctaLink:x.string,onCTALinkChange:x.func.isRequired},getInitialState:function(){return {dialogShown:false};},render:function(){return (p.createElement('div',null,p.createElement('div',{className:"_3-8o"},j.CALL_TO_ACTION_ADDRESS_INSTRUCTION),p.createElement(k,{label:j.CALL_TO_ACTION_ADDRESS_LABEL,labelSize:'small',helpText:j.CALL_TO_ACTION_ADDRESS_TOOLTIP}),p.createElement(h,null,this._renderLabel(),p.createElement(o,{onClick:this._onToggle.bind(this,true)},j.CALL_TO_ACTION_ADDRESS_EDIT)),this._renderDialog()));},_renderLabel:function(){var aa=i.parseGeoLink(this.props.ctaLink||'');if(aa)return (p.createElement(t,{shade:'dark'},aa.toString()));return (p.createElement(s,{xuiError:j.CALL_TO_ACTION_ADDRESS_INVALID},p.createElement('span',null,w._("None"))));},_renderDialog:function(){if(!this.state.dialogShown)return null;return (p.createElement(m,{bootloadLoader:n('AdsPagePlaceDialogContainer.react'),bootloadPlaceholder:p.createElement(y,{onToggle:this._onToggle}),enableSaveToPage:false,onSubmit:this._onSubmit,onToggle:this._onToggle,shown:true}));},_onSubmit:function(aa){this.setState({dialogShown:false});if(aa.place)this.props.onCTALinkChange(i.makeGeoLink(aa.place));},_onToggle:function(aa){this.setState({dialogShown:aa});}});f.exports=z;},null);
__d('AdsCFURLValidationError',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h,i;'use strict';h=babelHelpers.inherits(j,Error);i=h&&h.prototype;function j(k){i.constructor.call(this);this.defaultXUIError=k;}f.exports=j;},null);
__d('FBPhoneNumberInput.react',['PhoneNumberView','React','ReactComponentWithPureRenderMixin','XUISpinner.react','XUITextInput.react','cx','debounce','emptyFunction','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();var q=i.PropTypes,r=2000,s=i.createClass({displayName:'FBPhoneNumberInput',mixin:[j],propTypes:{className:q.string,placeholder:q.string,onFragmentChange:q.func.isRequired,onFragmentSubmit:q.func.isRequired,size:q.number,style:q.object,view:q.instanceOf(h).isRequired},render:function(){var t=this.props.view,u=t.phoneNumber?t.phoneNumber.getDisplayNumber():t.fragment,v=!t.isLoading?this.props.view.xuiError:undefined;return (i.createElement('span',{className:p(this.props.className,"_5rfj")},i.createElement(l,{height:'tall',placeholder:this.props.placeholder,onChange:this._onTextChange,onBlur:this._onBlurOrEnter,onEnter:this._onBlurOrEnter,size:this.props.size,style:this.props.style,value:u,xuiError:v}),this._renderSpinner()));},_delayedSubmit:o,componentWillMount:function(){this._delayedSubmit=n((function(){if(!this.props.view.phoneNumber)this.props.onFragmentSubmit();}).bind(this),r);},_renderSpinner:function(){if(!this.props.view.isLoading)return null;return i.createElement(k,{className:"_3_fk"});},_onTextChange:function(event){var t=event.target.value;if(!this.props.view.phoneNumber||t!==this.props.view.phoneNumber.getDisplayNumber()){this.props.onFragmentChange(t);this._delayedSubmit();}},_onBlurOrEnter:function(){if(!this.props.view.phoneNumber){this.props.onFragmentSubmit();this._delayedSubmit.reset();}}});f.exports=s;},null);
__d('AdsCFCreativeLocalAwarenessFields.react',['AdsAPIAdgroupPaths','AdsCallToActionTypes','AdsCFCallNowStrings','AdsCFConstants','AdsCFCreativeContentFieldsMixin','AdsCFCreativeViewActions','AdsCFLabeledField.react','AdsCFLandingPagePicker.react','AdsCFPlaceEditor.react','AdsCFURLValidationError','AdsCreationExperimentStore','AdsCreativeCallToActionField.react','AdsCreativeDelegate','AdsTextInput.react','FBPhoneNumberInput.react','Link.react','React','URI','XUIText.react','adsGKCheck','cx','fbt','getByPath'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da){'use strict';if(c.__markCompiled)c.__markCompiled();var ea=i.TYPES.CALL_NOW.name,fa=i.TYPES.GET_DIRECTIONS.name,ga=i.TYPES.LEARN_MORE.name,ha=i.TYPES.MESSAGE_PAGE.name,ia=x.createClass({displayName:'AdsCFCreativeLocalAwarenessFields',mixins:[l],render:function(){var ja=r.getExperiment('ads_cf_la_landing_url_position'),ka=ja.getParam('section'),la=x.createElement('div',null,this.renderLinkDescription(),ka==='advanced'?this._renderSetLinkDestinationField():null),ma=ka==='basic'?this._renderSetLinkDestinationField():null;return (x.createElement('div',null,x.createElement('fieldset',null,this.renderBody(),this.renderTitle(),this.renderLocalAwarenessCallToAction(),ma),this.renderAdvancedFields(la)));},renderLocalAwarenessCallToAction:function(){var ja=this.props.createMode===k.CreateMode.EDIT_EXISTING,ka=this.props.creative.callToActionType;if(ja&&!ka)return null;var la=[];if(this.props.creative.getDirectionsUrl||ka===fa)la.push(fa);if(aa('ads_cf_instore_call_now_cta'))la.push(ea);if(aa('ads_local_awareness_message_page_cta'))la.push(ha);if(aa('ads_cf_instore_learn_more_cta'))la.push(ga);var ma=ca._("Call to Action"),na=ca._("Choose the action you want people to take when they see your ad."),oa;if(!ja)if(ka===fa){oa=this._renderGetDirectionsDetails();}else if(ka===ea){oa=this._renderCallNowDetails();}else if(ka===ga){oa=this._renderLearnMoreDetails();}else if(ka===ha){oa=this._renderMessagePageDetails();}else if(!ka&&!this.props.creative.getDirectionsUrl){oa=this._renderGetDirectionsUnavailableMessage();}else oa=this._renderPageLikeDetails();var pa=t.get(this.props.objective).getDisabledCallToActionTypes(this.props.creative);return (x.createElement(n,{label:ma,helpText:na,className:"_5yy9"},x.createElement(s,{apiObjective:this.props.objective,availableTypes:la,disabledTypes:pa,isReadOnly:ja,noButtonLabel:i.TYPES.LIKE_PAGE.text,onChange:this._onCallToActionChange,selectedType:ka,xuiError:da(this.props.errorSpec,h.CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.CALL_TO_ACTION.TYPE)}),oa));},_renderPageLikeDetails:function(){return (x.createElement('div',{className:"_3-8y"},ca._("Invite people to connect with your Page.")));},_renderGetDirectionsDetails:function(){if(this.props.creative.getDirectionsUrl)return (x.createElement(p,{dialogKey:"1",ctaLink:this.props.creative.getDirectionsUrl,onCTALinkChange:this._onCTALinkChange}));},_renderCallNowDetails:function(){return (x.createElement('div',null,x.createElement('div',{className:"_3-8y"},j.CALL_NOW_DESCRIPTION),x.createElement(v,{onFragmentChange:m.callNowFragmentChange,onFragmentSubmit:m.callNowFragmentSubmit,placeholder:j.PHONE_NUMBER_PLACEHOLDER,view:this.props.creative.callNowPhoneNumberView})));},_renderMessagePageDetails:function(){return (x.createElement('div',null,x.createElement('div',{className:"_3-8y"},ca._("When people click Send Message on an ad, they'll be able to send a message to your Page."))));},_onLearnMoreChange:function(event){m.setCreativeCallToActionLink(event);m.submitCreativeCallToActionLink();},_getXuiError:function(){var ja=this.props.creative.learnMoreURLView.xuiError;return ja instanceof q?ja.defaultXUIError:ja;},_renderLearnMoreDetails:function(){return (x.createElement('div',null,x.createElement('div',{className:"_3-8y"},ca._("When people click {=Learn More} on an ad, they will be taken to your website.",[ca.param('=Learn More',i.TYPES.LEARN_MORE.text)])),x.createElement(u,{className:"_3-8n",helpText:ca._("Enter the destination URL that you want to promote. Ex: 'http:\/\/www.example.com\/about'"),xuiError:this._getXuiError(),label:ca._("Learn More URL"),onChange:this._onLearnMoreChange,onBlur:m.submitCreativeCallToActionLink,placeholder:ca._("Enter the URL you want to promote"),value:this.props.creative.callToActionLink})));},_renderGetDirectionsUnavailableMessage:function(){var ja;if(this.props.destinationDetails.canEdit){ja=ca._("Before you can select the {=Get Directions} button, you need to add an address to your Page.",[ca.param('=Get Directions',i.TYPES.GET_DIRECTIONS.text)]);}else{var ka=this.props.destinationID;ja=ca._("Before you can select the {=Get Directions} button, please ask an admin of {Page title} to add an address to the Page. {Message the Page}",[ca.param('=Get Directions',i.TYPES.GET_DIRECTIONS.text),ca.param('Page title',x.createElement(z,{weight:'bold'},this.props.destinationDetails.destinationTitle)),ca.param('Message the Page',x.createElement(w,{ajaxify:new y('/ajax/messaging/composer.php').setQueryData({ids:[ka],ref:'ads'}),href:'/messages/'+ka,rel:'dialog',target:'_blank'},ca._("Send a message")))]);}return (x.createElement('div',{className:"_3-8y"},ja));},_renderSetLinkDestinationField:function(){var ja=this.props.creative,ka=ja.callToActionType===i.TYPES.LEARN_MORE.name,la=ka?this.props.creative.callToActionLink:ja.landingURLView.get('fragment');return (x.createElement(n,{label:ca._("Click Destination"),className:"_5yy9"},x.createElement(o,{onURLChange:m.changeLandingURL,view:this.props.creative.landingURLView,onSubmit:m.submitLandingURL,disabled:ka,linkURL:la})));},_onCTALinkChange:function(ja){m.setCreativeCallToActionGetDirectionsLink(ja);}});f.exports=ia;},null);
__d('AdsCFCreativeMobileAppEngagementFields.react',['AdsCFCreativeContentFieldsMixin','AdsCFCreativeStrings.react','AdsCFDeepLink.react','React'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l=k.PropTypes,m=k.createClass({displayName:'AdsCFCreativeMobileAppEngagementFields',mixins:[h],propTypes:{accountID:l.string.isRequired,availableActors:l.array.isRequired,campaign:l.object.isRequired,creative:l.object.isRequired,destinationDetails:l.object.isRequired,errorSpec:l.object,objective:l.string,pixelID:l.string,pixels:l.array,typeName:l.string.isRequired},render:function(){return (k.createElement('div',null,k.createElement('fieldset',null,k.createElement('div',null,this.renderPageTypeahead(),this.renderTitle(),this.renderBody(),k.createElement(j,babelHelpers._extends({},this.props,{helpText:i.renderDeepLinkMobileHelpText(),label:i.renderDeepLinkMobileLabel(),placeholder:i.renderDeepLinkMobilePlaceholder()})),this.renderAppCallToAction(this.props.objective,this.props.errorSpec),this.renderPixels()))));}});f.exports=m;},null);
__d('AdsCFCreativeMobileAppInstallFields.react',['AdsCFCreativeContentFieldsMixin','AdsCFCreativeStrings.react','AdsCFCreativeURLTags.react','AdsCFDeepLink.react','React'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=l.PropTypes,n=l.createClass({displayName:'AdsCFCreativeMobileAppInstallFields',mixins:[h],propTypes:{accountID:m.string.isRequired,availableActors:m.array.isRequired,campaign:m.object.isRequired,creative:m.object.isRequired,destinationDetails:m.object.isRequired,errorSpec:m.object,objective:m.string,pixelID:m.string,pixels:m.array,typeName:m.string.isRequired},render:function(){var o=l.createElement('div',null,l.createElement(j,{value:this.props.creative.urlTags}));return (l.createElement('div',null,l.createElement('fieldset',null,l.createElement('div',null,this.renderPageTypeahead(),this.renderInstagramAccountSelector(),this.renderTitle(),this.renderBody(),l.createElement(k,babelHelpers._extends({},this.props,{helpText:i.renderDeepLinkMobileHelpText(),label:i.renderDeepLinkMobileLabel(),placeholder:i.renderDeepLinkMobilePlaceholder()})),this.renderAppCallToAction(this.props.objective,this.props.errorSpec),this.renderPixels(),this.renderAdvancedFields(o)))));}});f.exports=n;},null);
__d('AdsCFCreativeMobileAppMPAFields.react',['AdsBootloadContainer.react','AdsCFCheckbox.react','AdsCFCreativeContentFieldsMixin','AdsCFCreativeStrings.react','AdsCFCreativeViewActions','AdsCFDeepLink.react','AdsCFLabeledField.react','Bootloader','React','ReactComponentWithPureRenderMixin','cx','emptyFunction','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){'use strict';if(c.__markCompiled)c.__markCompiled();var u=p.PropTypes,v=p.createClass({displayName:'AdsCFCreativeMobileAppMPAFields',mixins:[j,q],propTypes:{accountID:u.string.isRequired,availableActors:u.array.isRequired,campaign:u.object.isRequired,creative:u.object.isRequired,destinationDetails:u.object.isRequired,errorSpec:u.object,objective:u.string,pixelID:u.string,pixels:u.array,typeName:u.string.isRequired},getInitialState:function(){return {selectedProduct:0};},render:function(){return (p.createElement('div',null,p.createElement('fieldset',null,p.createElement('div',null,p.createElement('fieldset',null,p.createElement('div',null,this.renderPageTypeahead(),this.renderBody(),this._renderMultiProductTabs())),p.createElement(m,babelHelpers._extends({},this.props,{helpText:k.renderDeepLinkMobileHelpText(),label:k.renderDeepLinkMobileLabel(),placeholder:k.renderDeepLinkMobilePlaceholder()})),this.renderAppCallToAction(this.props.objective,this.props.errorSpec),this.renderPixels()))));},_renderMultiProductTabs:function(){return (p.createElement(n,{className:"_5yy9",label:t._("Images")},this._renderMultiProductOptimized(),p.createElement(h,{name:'AdsCFMultiProductTabs',bootloadContainer:function(w){o.loadModules(["AdsCFMultiProductTabs.react"],w);},accountID:this.props.accountID,minProducts:3,multiShareEndCard:true,onEndCardEnable:s,onProductSelected:this._onProductSelected,onProductsChange:this._onProductsChange,products:this.props.creative.childAttachments,selectedProduct:this.state.selectedProduct,showDescription:false,showLinkURL:false})));},_renderMultiProductOptimized:function(){return (p.createElement(i,{checked:this.props.creative.multiShareOptimized,className:"_3-96 _2pid",label:t._("Automatically show the best performing images first"),onChange:this._onProductOptimizedChange}));},_onProductsChange:function(w){l.setCreativeChildAttachments(w);},_onProductSelected:function(w){this.setState({selectedProduct:w});l.selectMultiProductTab(w+1);},_onProductOptimizedChange:function(w){l.setCreativeMultiShareOptimized(w);}});f.exports=v;},null);
__d('AdsCFLandingViewField.react',['AdsCFCreativeViewActions','AdsCFLabeledField.react','React','ReactComponentWithPureRenderMixin','XUISelector.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=j.PropTypes,p=l.Option,q=j.createClass({displayName:'AdsCFLandingViewField',mixins:[k],propTypes:{destinationTabs:o.object.isRequired,disabledReason:o.string,linkURL:o.string},render:function(){var r=this.props.destinationTabs,s=Object.keys(r),t=s.map(function(x){return (j.createElement(p,{key:r[x],value:x},r[x]));});if(!t.length)return null;var u=s.some((function(x){return x===this.props.linkURL;}).bind(this))?this.props.linkURL:s[0],v=n._("Landing View"),w=n._("Choose a particular view or app on your Page where people will land when they click on your ad. This option only applies to desktop placements.");return (j.createElement(i,{className:"_5yy9",helpText:w,label:v},j.createElement(l,{'aria-label':this.props.disabledReason,'data-hover':'tooltip',disabled:!!this.props.disabledReason,onChange:this._onLandingViewChange,value:u},t)));},_onLandingViewChange:function(r){h.setCreativeLinkUrl(r.value);}});f.exports=q;},null);
__d('AdsPagePostSelectorItem.react',['ActionList.react','AdsCreativeUtils','AdsPagePostUtils','ads-lib-formatters','Image.react','React','Timestamp.react','cx','fbt','formatDate'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=m.PropTypes,s=110,t=k.createTextTruncator(s),u=m.createClass({displayName:'AdsPagePostSelectorItem',propTypes:{commentCount:r.number,date:r.number,id:r.string,picture:r.oneOfType([r.string,r.object]),isPopular:r.bool,isUnpublished:r.bool,likeCount:r.number,shareCount:r.number,title:r.string.isRequired},render:function(){var v=this.props.id||this.props.isUnpublished?m.createElement(h,{className:"_15nu"},this._renderUnpublishedText(),this._renderID()):null;return (m.createElement('div',{className:"_15ns pvm"},this._renderImage(),m.createElement('div',{className:"_15nt"},t(this.props.title)),m.createElement(h,{className:"_15nu"},this._renderPopularPostLabel(),this._renderTimestamp(),this._renderLikeCount(),this._renderCommentCount(),this._renderShareCount()),v));},_renderImage:function(){var v=this.props.picture;if(!v)return null;return (m.createElement(l,{className:"_15nv",src:i.getPostImageURL(v)}));},_renderPopularPostLabel:function(){if(!this.props.is_popular)return null;return (m.createElement('span',{className:"_15nw fwb"},p._("Popular Post")));},_renderTimestamp:function(){var v=this.props.date;if(!v)return null;var w=q(v,{withinWeek:'l',thisYear:'F jS',older:'F j, Y'});return m.createElement(n,{time:v,verbose:w,text:w});},_renderLikeCount:function(){var v=this.props.likeCount;if(!v)return null;var w=v===1?p._("{like_count} like",[p.param('like_count',v)]):p._({"*":"{like_count} likes"},[p.param('like_count',v,[0])]);return m.createElement('span',null,w);},_renderCommentCount:function(){var v=this.props.commentCount;if(!v)return null;var w=v===1?p._("{comment_count} comment",[p.param('comment_count',v)]):p._({"*":"{comment_count} comments"},[p.param('comment_count',v,[0])]);return m.createElement('span',null,w);},_renderShareCount:function(){var v=this.props.shareCount;if(!v)return null;var w=v===1?p._("1 share"):p._({"*":"{share_count} shares"},[p.param('share_count',v,[0])]);return m.createElement('span',null,w);},_renderUnpublishedText:function(){if(this.props.isUnpublished){return (m.createElement('span',{className:"_5iwu fwb"},p._("Unpublished")));}else return null;},_renderID:function(){var v=this.props.id;if(!v)return null;var w=j.getPostIdBestGuess_BROKEN(v);return (m.createElement('span',null,w));}});f.exports=u;},null);
__d('AdsPagePostSelector.react',['AdsCreativeUtils','AdsPagePostSelectorItem.react','AdsPagePostUtils','AdsRichSelector.react','PagePostTypes','React','XUINotice.react','XUISpinner.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=k.Option,s=m.PropTypes,t=m.createClass({displayName:'AdsPagePostSelector',propTypes:{defaultSelectedValue:s.string,fullWidth:s.bool,loadComplete:s.bool.isRequired,pagePosts:s.array,showPostIDs:s.bool,showUnpublishedText:s.bool,size:s.string,storyID:s.string,onStoryIDChange:s.func},render:function(){var u,v=this.props.pagePosts||[];if(v.length){u=this._renderWithPagePosts();}else u=this._renderWithoutPagePosts();return u;},_renderWithoutPagePosts:function(){if(!this.props.loadComplete)return (m.createElement('div',null,m.createElement(o,{background:'light',size:'large'})));return (m.createElement('div',{className:"_1clt"},m.createElement(n,null,q._("No eligible posts exist."))));},_renderWithPagePosts:function(){var u=this.props.pagePosts,v=this.props.storyID||'',w=false,x,y,z=u.map((function(ca){x=ca.type===l.PHOTO;if(ca.id===v){w=true;}else if(x&&ca.object_id===v){w=true;y=ca.id;}var da=h.getPostContent(ca);return (m.createElement(r,{value:ca.id,label:da,key:ca.id},m.createElement(i,{commentCount:h.getPostCommentCount(ca),date:h.getPostDate(ca),id:this.props.showPostIDs?ca.id:null,picture:ca.picture,isPopular:ca.is_popular,isUnpublished:this.props.showUnpublishedText&&!j.isPublishedPost(ca),likeCount:h.getPostLikeCount(ca),shareCount:h.getPostShareCount(ca),title:h.getRawPostContent(ca)})));}).bind(this));if(!w){var aa;if(v){aa=v;}else{v='';if(this.props.defaultSelectedValue){aa=this.props.defaultSelectedValue;}else aa=q._("Select a post");}var ba=m.createElement(r,{key:v,value:v,label:aa},m.createElement(i,{title:aa}));z.unshift(ba);}return (m.createElement(k,{className:"_1clt",defaultValue:y||v,key:'selectory_'+v,maxheight:300,maxwidth:this.props.fullWidth?null:undefined,onChange:this.props.onStoryIDChange,size:this.props.size,useMenuDividers:true,xuiError:this.props.xuiError,xuiErrorPosition:this.props.xuiErrorPosition,xuiErrorAlignh:this.props.xuiErrorAlignh},z));}});f.exports=t;},null);
__d('AdsCFCreativePagePostSelector.react',['AdsCFLabeledField.react','AdsPagePostSelector.react','React','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=j.PropTypes,n=j.createClass({displayName:'AdsCFCreativePagePostSelector',propTypes:{onStoryIDChange:m.func.isRequired,postLoadingComplete:m.bool,posts:m.array.isRequired,storyID:m.string},getDefaultProps:function(){return {postLoadingComplete:true};},render:function(){return (j.createElement(h,{className:"_5yy9",label:l._("Select an Existing Page Post")},j.createElement('div',{className:"_5y_3"},j.createElement(i,{loadComplete:this.props.postLoadingComplete,onStoryIDChange:this.props.onStoryIDChange,pagePosts:this.props.posts,showPostIDs:true,showUnpublishedText:true,size:'xlarge',storyID:this.props.storyID}))));}});f.exports=n;},null);
__d('AdsCFPagePostDataDispatcher',['AdsCFDestinationDataLoader'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();function i(){this.$AdsCFPagePostDataDispatcherClass1=-1;}i.prototype.fetchPagePosts=function(k,l,m,n){h.fetchPagePosts(++this.$AdsCFPagePostDataDispatcherClass1,k,l,m,n);};i.prototype.isValidPagePostsRequest=function(k){return k>=this.$AdsCFPagePostDataDispatcherClass1;};var j=new i();f.exports=j;},null);
__d('FluxMapStore',['FluxReduceStore','immutable','invariant'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';k=babelHelpers.inherits(m,h);l=k&&k.prototype;m.prototype.getInitialState=function(){return i.Map();};m.prototype.at=function(n){!this.has(n)?j(0):undefined;return this.get(n);};m.prototype.has=function(n){return this.getState().has(n);};m.prototype.get=function(n){return this.getState().get(n);};m.prototype.getAll=function(n,o){var p=i.Set(n),q=o||i.Map();return q.withMutations((function(r){for(var s=q,t=Array.isArray(s),u=0,s=t?s:s[typeof Symbol==='function'?Symbol.iterator:'@@iterator']();;){var v;if(t){if(u>=s.length)break;v=s[u++];}else{u=s.next();if(u.done)break;v=u.value;}var w=v,x=w[0];if(!p.has(x)||!this.has(x))r['delete'](x);}for(var y=p,z=Array.isArray(y),aa=0,y=z?y:y[typeof Symbol==='function'?Symbol.iterator:'@@iterator']();;){var ba;if(z){if(aa>=y.length)break;ba=y[aa++];}else{aa=y.next();if(aa.done)break;ba=aa.value;}var ca=ba;if(this.has(ca))r.set(ca,this.at(ca));}}).bind(this));};function m(){k.apply(this,arguments);}f.exports=m;},null);
__d('AdsCFPagePostStore',['AdsCFActionTypes','AdsCFPagePostDataDispatcher','AdsCreativeUtils','AdsDispatcher','AdsPagePostUtils','FluxMapStore','immutable','LoadObject','adsGKCheck'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){if(c.__markCompiled)c.__markCompiled();var q,r;'use strict';q=babelHelpers.inherits(s,m);r=q&&q.prototype;s.prototype.getPostsByPageID=function(t){if(!this.has(t))i.fetchPagePosts(t);return this.get(t)||o.loading();};s.prototype.getPostsByPageIDAndObjective=function(t,u){var v=this.getPostsByPageID(t),w=v.getValue()||[];if(!p('spherical_video_post_promotable'))w=w.filter(function(x){return !x.is_spherical;});w=w.filter(function(x){return l.isVisibleForObjective(u,x);});if(v.hasError())return (o.empty().setValue(w).setError(v.getError()));if(v.isLoading())return o.empty().setValue(w).loading();return o.empty().setValue(w);};s.prototype.$AdsCFPagePostStore1=function(t){if(this.has(t))return this.get(t).getValue();return [];};s.prototype.reduce=function(t,u){var v=u.action;switch(v.type){case h.PAGE_POSTS_LOADED:var w=this.$AdsCFPagePostStore1(v.pageId),x=[].concat(w,v.apiData);x=j.filterPagePosts(x);return t.set(v.pageId,o.empty().setValue(x).loading());case h.PAGE_POSTS_LOAD_COMPLETE:w=this.$AdsCFPagePostStore1(v.pageId);return t.set(v.pageId,o.empty().setValue(w));}return t;};function s(){q.apply(this,arguments);}f.exports=new s(k);},null);
__d('AdsCFCreativePagePostSelectorContainer.react',['AdsCFCreativePagePostSelector.react','AdsCFCreativeStore','AdsCFCreativeUtils','AdsCFObjectiveStore','AdsCFPagePostStore','AdsFluxMixinLegacy_DO_NOT_USE','LoadObject','React','ReactComponentWithPureRenderMixin'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();var q=o.createClass({displayName:'AdsCFCreativePagePostSelectorContainer',mixins:[p,m.AdsFluxMixinLegacyCF([i,k,l])],statics:{calculateState:function(){var r=i.getState().actor.id,s=k.getAPIObjective(),t=l.getPostsByPageIDAndObjective(r,s);return {postLoadingComplete:t.isDone(),posts:t,storyID:i.getState().storyId};}},render:function(){return (o.createElement(h,{onStoryIDChange:this._handleStoryIDChange,postLoadingComplete:this.state.postLoadingComplete,posts:this.state.posts.getValue()||[],storyID:this.state.storyID}));},_handleStoryIDChange:function(r){j.handleChangeForStoryID(r);}});f.exports=q;},null);
__d("XAdsPagePostValidPixelDomainsController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/conversion_pixel\/domains\/",{page_id:{type:"String",required:true},story_id:{type:"String",required:true}});},null,{});
__d('AdsPixelDomainUtils',['AsyncRequest','XAdsPagePostValidPixelDomainsController'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={getPagePostValidPixelDomains:function(k,l,m){var n=i.getURIBuilder().setString('page_id',k).setString('story_id',l).getURI();new h().setURI(n).setHandler(m).send();}};f.exports=j;},null);
__d('AdsCFCreativePagePostsFields.react',['AdsCFApplicationStore','AdsCFCreativeContentFieldsMixin','AdsCFCreativePagePostSelectorContainer.react','AdsCFCreativeURLTags.react','AdsCFLabeledField.react','AdsCreationExperimentStore','AdsPixelDomainUtils','React','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){if(c.__markCompiled)c.__markCompiled();var r=o.PropTypes,s=o.createClass({displayName:'AdsCFCreativePagePostsFields',mixins:[i],propTypes:{hidePagePostSelector:r.bool,isUsingExistingPost:r.bool,errorSpec:r.object,objective:r.string,pixelID:r.string,pixels:r.array},getInitialState:function(){return {pixelDomains:[]};},componentWillMount:function(){this._genValidPixelDomains(this.props);},componentWillReceiveProps:function(t){this._genValidPixelDomains(t);},render:function(){var t=o.createElement('div',null,o.createElement(k,{value:this.props.creative.urlTags}),this._renderPixelSelector());return (o.createElement('div',null,o.createElement('fieldset',null,o.createElement(l,{className:"_5yy9",label:q._("Boosted Page Post")},q._("Your ad will boost this Page post. You can preview your ad on the right.")),this._renderPagePostSelector()),this.renderAdvancedFields(t)));},_renderPixelSelector:function(){return this.state.pixelDomains.length?this.renderPixels():null;},_renderPagePostSelector:function(){if(this.props.isUsingExistingPost||!this.props.hidePagePostSelector&&h.getShowMode()==='creative')return o.createElement(j,null);return null;},_genValidPixelDomains:function(t){if(!t.creative.storyId&&this.props.isUsingExistingPost)return;n.getPagePostValidPixelDomains(t.creative.objectId,t.creative.storyId,this._onGetPixelDomains);},_onGetPixelDomains:function(t){if(!this.isMounted())return;var u=t.payload.domains,v=u.length?this.renderPixels():null;if(v&&m.getExperiment('ads_cf_pixel_selector_auto_expand').getParamBool('show')){this.setState({advancedFieldsShown:true,pixelDomains:u});}else this.setState({pixelDomains:u});}});f.exports=s;},null);
__d('AdsCFCreativeStandardFields.react',['AdsCFCreativeContentFieldsMixin','React'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=i.PropTypes,k=i.createClass({displayName:'AdsCFCreativeStandardFields',mixins:[h],propTypes:{errorSpec:j.object,objective:j.string,pixelID:j.string,pixels:j.array},render:function(){var l,m=i.createElement('div',null,this.renderPageTypeahead(),this.renderTitle(),this.renderBody()),n=this.renderPixels();if(n)l=i.createElement('div',null,this.renderAdvancedFields(n));return (i.createElement('div',null,i.createElement('fieldset',null,m),l));}});f.exports=k;},null);
__d('AdsCFCreativeVideoViewsFields.react',['AdsAPIAdgroupPaths','AdsAPIObjectives','AdsCFCreativeContentFieldsMixin','AdsCFCreativeURLTags.react','AdsCFCreativeViewActions','AdsCFLabeledField.react','AdsCreativeCallToActionField.react','AdsCreativeDelegate','AdsTextInput.react','React','XUIText.react','cx','fbt','getByPath'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){'use strict';if(c.__markCompiled)c.__markCompiled();var v=q.createClass({displayName:'AdsCFCreativeVideoViewsFields',mixins:[j],render:function(){var w=q.createElement('div',null,q.createElement(k,{value:this.props.creative.urlTags}));return (q.createElement('fieldset',null,this.renderInstagramAccountSelector(),this.renderBody(),this._renderVideoViewsCallToAction(),this.renderAdvancedFields(w)));},_renderVideoViewsCallToAction:function(){var w=this.props.creative.callToActionType?q.createElement(p,{label:t._("Website URL"),placeholder:t._("http:\/\/www.example.com\/page"),className:"_3-8x",onChange:this._onCTAWebsiteFieldChange,value:this.props.creative.callToActionLink}):null,x=this.props.creative.callToActionType?q.createElement(p,{label:t._("Display Link"),placeholder:t._("Enter the link as you want people to see it in your ad..."),helpText:t._("If you're using a long website address, your display link will show a shorter, friendlier URL."),className:"_3-8x",onChange:this._onCTADisplayFieldChange,value:this.props.creative.callToActionLinkCaption}):null;return (q.createElement('div',{className:"_5yy9"},this._renderVideoViewsCallToActionField(),w,x));},_renderVideoViewsCallToActionField:function(){var w=t._("Call To Action {=(optional)}",[t.param('=(optional)',q.createElement(r,{weight:'normal'},t._("(optional)")))]),x=t._("Choose the action you want people to take when they see your ad."),y=o.get(this.props.objective).getDisabledCallToActionTypes(this.props.creative);return (q.createElement(m,{label:w,helpText:x},q.createElement('div',{className:"_3-95"},t._("Call-to-action buttons will appear after your video starts and will not appear in your preview.")),q.createElement(n,{apiObjective:i.VIDEO_VIEWS,disabledTypes:y,onChange:this._onCallToActionChange,onRemoveInstagramPlacement:this._onRemoveInstagramPlacement,selectedType:this.props.creative.callToActionType,xuiError:u(this.props.errorSpec,h.CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.CALL_TO_ACTION.TYPE)})));},_onCTAWebsiteFieldChange:function(w){l.setCreativeCallToActionLink(w);},_onCTADisplayFieldChange:function(w){l.setCreativeCallToActionLinkCaption(w);}});f.exports=v;},null);
__d('AdsCFCreativeWebsiteEventTicketFields.react',['AdsCFCreativeContentFieldsMixin','React'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=i.PropTypes,k=i.createClass({displayName:'AdsCFCreativeWebsiteEventTicketFields',mixins:[h],propTypes:{errorSpec:j.object,objective:j.string,pixelID:j.string,pixels:j.array},render:function(){var l=i.createElement('div',null,this.renderPageTypeahead(),this.renderTitle(),this.renderBody()),m=i.createElement('div',null,this.renderLinkDescription());return (i.createElement('div',null,i.createElement('fieldset',null,l),this.renderAdvancedFields(m)));}});f.exports=k;},null);
__d('AdsCFCreativeWebsiteLPPFields.react',['AdsCFCreativeContentFieldsMixin','AdsCFCreativeURLTags.react','React'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k=j.PropTypes,l=j.createClass({displayName:'AdsCFCreativeWebsiteLPPFields',mixins:[h],propTypes:{errorSpec:k.object,objective:k.string,pixelID:k.string,pixels:k.array},render:function(){var m=j.createElement('div',null,this.renderPageTypeahead(),this.renderInstagramAccountSelector(),this.renderTitle(),this.renderBody(),this.renderWebsiteCallToAction(false,this.props.errorSpec)),n=j.createElement('div',null,this.renderLinkDescription(),this.renderWebsiteCallToAction(true,this.props.errorSpec),j.createElement(i,{value:this.props.creative.urlTags}),this.renderPixels());return (j.createElement('div',null,j.createElement('fieldset',null,m),this.renderAdvancedFields(n)));}});f.exports=l;},null);
__d('AdsCFCreativeWebsiteMPAFields.react',['AdsBootloadContainer.react','AdsCFCheckbox.react','AdsCFCreativeContentFieldsMixin','AdsCFCreativeURLTags.react','AdsCFCreativeViewActions','AdsCFLabeledField.react','Bootloader','React','ReactComponentWithPureRenderMixin','SimpleXUIDialog','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){'use strict';if(c.__markCompiled)c.__markCompiled();var t=o.PropTypes,u=o.createClass({displayName:'AdsCFCreativeWebsiteMPAFields',mixins:[j,p],propTypes:{accountID:t.string.isRequired,creative:t.object.isRequired,errorSpec:t.object,objective:t.string,pixelID:t.string,pixels:t.array},getInitialState:function(){return {selectedProduct:0};},render:function(){var v=o.createElement('div',null,this.renderPageTypeahead(),this.renderBody(),this._renderMultiProductTabs(),this.renderWebsiteCallToAction(false,this.props.errorSpec)),w=o.createElement('div',null,this.renderWebsiteCallToAction(true,this.props.errorSpec),o.createElement(k,{value:this.props.creative.urlTags}),this.renderPixels());return (o.createElement('div',null,o.createElement('fieldset',null,v),this.renderAdvancedFields(w)));},_renderMultiProductTabs:function(){return (o.createElement(m,{className:"_5yy9",label:s._("Images and Links")},this._renderMultiProductOptimized(),o.createElement(i,{checked:this.props.creative.multiShareEndCard,className:"_3-96 _2pid",helpText:s._("A card with your Page profile picture is required when your ad has only 2 cards."),label:s._("Add a card at the end with your Page profile picture"),onChange:this._onProductShowEndCardChange}),o.createElement(h,{name:'AdsCFMultiProductTabs',bootloadContainer:function(v){n.loadModules(["AdsCFMultiProductTabs.react"],v);},accountID:this.props.accountID,minProducts:2,multiShareEndCard:this.props.creative.multiShareEndCard,onEndCardEnable:this._onEndCardEnable,onProductSelected:this._onProductSelected,onProductsChange:this._onProductsChange,products:this.props.creative.childAttachments,selectedProduct:this.state.selectedProduct})));},_renderMultiProductOptimized:function(){return (o.createElement(i,{checked:this.props.creative.multiShareOptimized,className:"_3-96 _2pid",label:s._("Automatically show the best performing images and links first"),onChange:this._onProductOptimizedChange}));},_confirmAddCard:function(){var v=s._("Adding Third Card"),w=s._("At least 3 cards are required when Page profile picture is not shown at the end.");q.showConfirm(w,v,(function(x){if(x){var y=this.props.creative.childAttachments;y.push({link:y[0].link});this._onProductsChange(y);var z=y.length-1;this._onProductSelected(z);l.setShowEndCard(false);}}).bind(this));},_onEndCardEnable:function(){l.setShowEndCard(true);},_onProductsChange:function(v){l.setCreativeChildAttachments(v);},_onProductSelected:function(v){this.setState({selectedProduct:v});l.selectMultiProductTab(v+1);},_onProductOptimizedChange:function(v){l.setCreativeMultiShareOptimized(v);},_onProductShowEndCardChange:function(v){if(!v&&this.props.creative.childAttachments.length===2){this._confirmAddCard();}else l.setShowEndCard(v);}});f.exports=u;},null);
__d('AdsCFCreativeWebsiteUsingExistingPostFields.react',['AdsCFCreativeContentFieldsMixin','AdsCFCreativePagePostSelectorContainer.react','React','ReactComponentWithPureRenderMixin'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l=j.PropTypes,m=j.createClass({displayName:'AdsCFCreativeWebsiteUsingExistingPostFields',mixins:[h,k],propTypes:{creative:l.object,errorSpec:l.object,isUsingExistingPost:l.bool.isRequired,objective:l.string,pixelID:l.string,pixels:l.array},render:function(){return (j.createElement('div',null,this.renderPageTypeahead(),this._renderPagePostSelector()));},_renderPagePostSelector:function(){return j.createElement(i,null);}});f.exports=m;},null);
__d("XAdsMobileAppEngagementLegalDialogController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/manage\/mobile_app_engagement\/tos_dialog\/",{act:{type:"Int",required:true},agree:{type:"Int"},__asyncDialog:{type:"Int"}});},null,{});
__d('AdsCFMobileAppEngagementUtils',['AdsAccountCapabilities','AdsCFAccountStore','Link.react','React','XAdsMobileAppEngagementLegalDialogController','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();function n(){return (!i.hasAccountCapability(h.HAS_ACCEPTED_MOBILE_APP_ENGAGEMENT_TOS));}function o(){var t=l.getURIBuilder();t.setInt('act',i.getAccountID());return t.getURI();}function p(){return m._("You'll need to accept the \"Data Use Terms for App Ads on Mobile\" before your Ad can be successfully created. {=Read and accept terms}.",[m.param('=Read and accept terms',k.createElement(j,{ajaxify:o(),rel:'dialog-post'},m._("Read and accept terms")))]);}function q(){return m._("You have accepted the terms for this account. Thank you.");}function r(){return p();}var s={hasNotAcceptedRequiredTOS:n,getLegalNotice:p,getLegalError:r,getAcceptedNotice:q};f.exports=s;},null);
__d('AdsCFMobileAppTOSAgreementField.react',['AdsAccountCapabilities','AdsCFActionTypes','AdsCFMobileAppEngagementUtils','AdsDispatcher','React','ReactComponentWithPureRenderMixin','XUINotice.react','cx','emptyFunction'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();var q=l.createClass({displayName:'AdsCFMobileAppTOSAgreementField',mixins:[m],getInitialState:function(){return {justAcceptedTOS:false};},componentDidMount:function(){q.onTOSAccepted=(function(){var r=[h.HAS_ACCEPTED_MOBILE_APP_ENGAGEMENT_TOS];k.handleUpdateFromViewAction({capabilities:r,type:i.ACCOUNT_CAPABILITIES_ADD});this.setState({justAcceptedTOS:true});}).bind(this);},componentWillUnmount:function(){q.onTOSAccepted=p;},render:function(){if(!j.hasNotAcceptedRequiredTOS())return null;var r=j.getLegalNotice();if(this.state.justAcceptedTOS)r=j.getAcceptedNotice();return (l.createElement(n,{className:"_5y-t _5y-u",use:'notify'},r));}});f.exports=q;},null);
__d('AdsCFDeepLink.react',['AdsAccountCapabilities','AdsAPIObjectives','AdsCFAccountStore','AdsCFActionTypes','AdsCFCreativeValidator','AdsCFCreativeViewActions','AdsCFMobileAppEngagementUtils','AdsCFMobileAppTOSAgreementField.react','AdsDispatcher','AdsTextInput.react','React','XUINotice.react','cx','getObjectValues'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){if(c.__markCompiled)c.__markCompiled();var v=r.PropTypes,w='applinkUrl',x=l.getFieldBadTextRules(),y=r.createClass({displayName:'AdsCFDeepLink',propTypes:{creative:v.object.isRequired,helpText:v.object.isRequired,label:v.string.isRequired,placeholder:v.string.isRequired,objective:v.string.isRequired},getInitialState:function(){return {justAcceptedTOS:false};},render:function(){var z=this.props.creative,aa=z[w]||'',ba={};l.validateDeepLink(aa,ba);return (r.createElement('div',null,this._renderTOSWarning(),r.createElement(q,{badTextRules:u(x),className:"_5yy9",errors:ba,helpText:this.props.helpText,hideMaxLength:true,label:this.props.label,maxLength:l.getMaxDeepLinkLength(),onChange:this._onChange,placeholder:this.props.placeholder,ref:'applinkUrl',value:this._fixIfLinkInvalid(aa)})));},_renderTOSWarning:function(){var z=this.props.creative,aa=z[w]||'';if(aa!==''){var ba=null,ca=!j.hasAccountCapability(h.HAS_ACCEPTED_MOBILE_APP_ENGAGEMENT_TOS);if(ca){ba=n.getLegalNotice();}else if(this.state.justAcceptedTOS)ba=n.getAcceptedNotice();o.onTOSAccepted=(function(){var da=[h.HAS_ACCEPTED_MOBILE_APP_ENGAGEMENT_TOS];p.handleUpdateFromViewAction({capabilities:da,type:k.ACCOUNT_CAPABILITIES_ADD});this.setState({justAcceptedTOS:true});}).bind(this);if(ba!==null)return (r.createElement(s,{use:'notify',className:"_48ei"},ba));}return null;},_onChange:function(z){var aa=this._fixIfLinkInvalid(z);if(aa!==z){this.forceUpdate();return;}if(z===''){this._setDeepLink(null);}else this._setDeepLink(z);},_setDeepLink:function(z){m.setCreativeDeepLink(z);},_fixIfLinkInvalid:function(z){if(this.props.objective===i.CANVAS_APP_ENGAGEMENT||this.props.objective===i.CANVAS_APP_INSTALLS){var aa=this.props.creative.linkUrl;if(z.slice(0,aa.length)!==aa)return aa;}return z;}});f.exports=y;},null);
__d('AdsCFInstagramAccountSelector.react',['AdsCFInstagramBusinessLinkedAccountSelectorContainer.react','AdsCFInstagramPageLinkedAccountSelectorContainer.react','AdsCFLabeledField.react','AdsLoadState','React','XUISpinner.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){'use strict';if(c.__markCompiled)c.__markCompiled();var p=l.PropTypes,q=l.createClass({displayName:'AdsCFInstagramAccountSelector',propTypes:{loadState:p.oneOf(Object.keys(k)).isRequired,usePageIdentity:p.bool.isRequired},render:function(){if(this.props.loadState===k.LOADING)return l.createElement(m,null);var r=this.props.usePageIdentity?this._renderPageLinkedInstagramAccountSelector():this._renderBusinessLinkedInstagramAccountSelector();return (l.createElement(j,{className:"_5yy9",label:o._("Instagram Account")},r));},_renderBusinessLinkedInstagramAccountSelector:function(){return l.createElement(h,null);},_renderPageLinkedInstagramAccountSelector:function(){return l.createElement(i,null);}});f.exports=q;},null);
__d('AdsInstagramAccountActionTypes',['keyMirrorRecursive'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=h({BUSINESS:{BATCH_LOADED:'',BATCH_LOAD_ERROR:''},PAGE:{BATCH_LOADED:'',BATCH_LOAD_ERROR:'',CLEAR_ACCOUNTS:'',CREATE_AND_USE_PAGE_BACKED:'',CREATE_PAGE_BACKED_ERROR:'',CREATE_PAGE_BACKED_SUCCESS:''}},'AdsInstagramAccounts');f.exports=i;},null);
__d('AdsBusinessInstagramAccountActions',['AdsDispatcher','AdsInstagramAccountActionTypes'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={accountsBatchLoaded:function(k){h.handleUpdateFromServerResponse({specs:k,type:i.BUSINESS.BATCH_LOADED});},accountsBatchLoadError:function(k){h.handleUpdateFromServerResponse({errors:k,type:i.BUSINESS.BATCH_LOAD_ERROR});}};f.exports=j;},null);
__d('AdsBusinessInstagramAccountDataManager',['AdsBaseDataManager','AdsBusinessInstagramAccountActions','AdsGraphAPI','GraphEdgeName','GraphInstagramUserFields','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n,o;'use strict';n=babelHelpers.inherits(p,h);o=n&&n.prototype;p.prototype.loadAll=function(q){q.forEach((function(r){return this.load(r);}).bind(this));};p.prototype.load=function(q){j.getWithGeneralMigration().adaccount(q).edge(k.INSTAGRAM_ACCOUNTS).batched().get({fields:[l.ID,l.PROFILE_PIC,l.USERNAME]}).done(this.__handleSuccess.bind(this,['load'],q,null),this.__handleError.bind(this,['load'],q,null));};p.prototype.__onBatchLoaded=function(q){i.accountsBatchLoaded(q);};p.prototype.__onBatchLoadError=function(q){i.accountsBatchLoadError(q);};p.prototype.__getObjectTypeLabel=function(){return m._("Instagram Account");};function p(){n.apply(this,arguments);}f.exports=new p();},null);
__d('AdsBusinessInstagramAccountStore',['AdsBaseDataStore','AdsBusinessInstagramAccountDataManager','AdsInstagramAccountActionTypes','AdsLoadState','AdsLoadStateUtils'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m,n;'use strict';m=babelHelpers.inherits(o,h);n=m&&m.prototype;o.prototype.getDataManager=function(){return i;};o.prototype.onDispatchToken=function(p){var q=p.action;switch(q.type){case j.BUSINESS.BATCH_LOADED:this.__handleData(q.specs,k.LOADED);break;case j.BUSINESS.BATCH_LOAD_ERROR:this.__handleData(q.errors,k.ERROR);break;}};o.prototype.getInstagramAccountInformation=function(p,q){if(!l.isLoaded(p))return null;if(p.data)return p.data.find(function(r){return r.id===q;});return null;};function o(){m.apply(this,arguments);}f.exports=new o();},null);
__d('AdsCFInstagramAccountSelectorContainer.react',['AdsAccountCapabilities','AdsAccountUtils','AdsBusinessInstagramAccountStore','AdsCFAccountStore','AdsCFInstagramAccountSelector.react','AdsLoadStateUtils','FluxContainer','React','shallowCompare'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){if(c.__markCompiled)c.__markCompiled();var q,r;'use strict';var s=o.Component;q=babelHelpers.inherits(t,s);r=q&&q.prototype;t.getStores=function(){return [j,k];};t.calculateState=function(){var u=k.getState(),v=i.hasCapability(u,h.CAN_CREATE_INSTAGRAM_PAGE_IDENTITY_ADS),w=j.get(u.accountID),x=w.loadState,y=m.isLoaded(w)&&w.data.length>0;return {loadState:x,usePageIdentity:v&&!y};};t.prototype.render=function(){return (o.createElement(l,{loadState:this.state.loadState,usePageIdentity:this.state.usePageIdentity}));};t.prototype.shouldComponentUpdate=function(u,v){return p(this,u,v);};function t(){q.apply(this,arguments);}f.exports=n.create(t);},null);
__d('SingleSelectorHideOnScrollOut',['Event','Style','SubscriptionsHandler'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();function k(l){this.$SingleSelectorHideOnScrollOut1=l;}k.prototype.enable=function(){if(!this.$SingleSelectorHideOnScrollOut2){this.$SingleSelectorHideOnScrollOut2=new j();this.$SingleSelectorHideOnScrollOut2.addSubscriptions(this.$SingleSelectorHideOnScrollOut1.subscribe('show',this.$SingleSelectorHideOnScrollOut3.bind(this)),this.$SingleSelectorHideOnScrollOut1.subscribe('hide',this.$SingleSelectorHideOnScrollOut4.bind(this)));}};k.prototype.disable=function(){if(this.$SingleSelectorHideOnScrollOut2){this.$SingleSelectorHideOnScrollOut2.release();this.$SingleSelectorHideOnScrollOut2=null;}this.$SingleSelectorHideOnScrollOut4();};k.prototype.$SingleSelectorHideOnScrollOut3=function(){this.$SingleSelectorHideOnScrollOut5=i.getScrollParent(this.$SingleSelectorHideOnScrollOut1.getButton());if(this.$SingleSelectorHideOnScrollOut6||this.$SingleSelectorHideOnScrollOut5===window)return;this.$SingleSelectorHideOnScrollOut7=this.$SingleSelectorHideOnScrollOut1.getLayer().getRoot();this.$SingleSelectorHideOnScrollOut6=h.listen(this.$SingleSelectorHideOnScrollOut5,'scroll',this.$SingleSelectorHideOnScrollOut8.bind(this));};k.prototype.$SingleSelectorHideOnScrollOut4=function(){if(this.$SingleSelectorHideOnScrollOut6){this.$SingleSelectorHideOnScrollOut6.remove();this.$SingleSelectorHideOnScrollOut6=null;}this.$SingleSelectorHideOnScrollOut5=null;this.$SingleSelectorHideOnScrollOut7=null;};k.prototype.$SingleSelectorHideOnScrollOut8=function(){var l=this.$SingleSelectorHideOnScrollOut7.getBoundingClientRect(),m=this.$SingleSelectorHideOnScrollOut5.getBoundingClientRect(),n=l.bottom<=m.top||l.top>=m.bottom||l.right<=m.left||l.left>=m.right;if(n)this.$SingleSelectorHideOnScrollOut1.getLayer().hide();};f.exports=k;},null);
__d('AdsSelectorWithTooltips.react',['MenuSelectableItem','React','ReactLayeredComponentMixin','SingleSelectorAlignOnScroll','SingleSelectorHideOnScrollOut','XUIContextualDialog.react','XUIError.react','XUISingleSelector.react','cloneWithProps','cx'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){if(c.__markCompiled)c.__markCompiled();var r=i.PropTypes,s=100,t=i.createClass({displayName:'AdsSelectorWithTooltips',mixins:[j],propTypes:babelHelpers._extends({onShow:r.func,onHide:r.func},n.propTypes),getInitialState:function(){return {isExpanded:false};},render:function(){return (i.createElement(n,this.props,i.createElement(o,babelHelpers._extends({},this.props,{behaviors:[k,l],ref:'selector',onShow:this._onShow,onHide:this._onHide}),this._renderOptions())));},renderLayers:function(){if(!this.state.isExpanded||!this.state.tooltip||!this.state.hoveredValue)return null;return {tooltip:i.createElement(m,{key:'tooltip_'+this.state.hoveredValue,contextRef:(function(){return this.refs[this.state.hoveredValue];}).bind(this),shown:true,position:'right',width:280,offsetX:5},i.createElement('div',{className:"_53iv"},this.state.tooltip))};},_hasAnyTooltips:function(){return this.props.children.some(function(v){return !!v.props.tooltip;});},_renderOptions:function(){if(!this._hasAnyTooltips())return this.props.children;return this.props.children.map((function(v){return p(v,{key:v.key||v.props.value,children:i.createElement('div',{ref:v.props.value,onMouseEnter:this._onItemMouseEnter.bind(this,v),onMouseLeave:this._onItemMouseLeave.bind(this,v)},v.props.children)});}).bind(this));},_onItemMouseEnter:function(v,w){this.setState({hoveredValue:v.props.value,tooltip:v.props.tooltip});},_onItemMouseLeave:function(v,w){window.setTimeout((function(){if(this.state.hoveredValue===v.props.value)this.setState({hoveredValue:null,tooltip:null});}).bind(this),s);},_onShow:function(){this.setState({isExpanded:true});if(this.props.onShow)this.props.onShow();},_onHide:function(){this.setState({isExpanded:false});if(this.props.onHide)this.props.onHide();}});function u(v){v.isReactLegacyFactory={};v.type=v;}u(h);t.Option=h;f.exports=t;},null);
__d('AdsCFInstagramBusinessLinkedAccountSelector.react',['AdsSelectorWithTooltips.react','GraphInstagramUserFields','Image.react','Link.react','React','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=l.PropTypes,p='_NULL_',q=h.Option,r=l.createClass({displayName:'AdsCFInstagramBusinessLinkedAccountSelector',propTypes:{canDisableInstagramPlacement:o.bool.isRequired,defaultLabel:o.string.isRequired,instagramAccounts:o.arrayOf(o.shape({id:o.string.isRequired,profile_pic:o.string.isRequired,username:o.string.isRequired})).isRequired,onChange:o.func.isRequired,onRemoveInstagramPlacement:o.func.isRequired,selectedInstagramAccountID:o.string.isRequired},getDefaultProps:function(){return {defaultLabel:n._("Choose One..."),selectedInstagramAccountID:p};},render:function(){return (l.createElement('div',null,l.createElement(h,{onChange:this.props.onChange,size:'large',value:this.props.selectedInstagramAccountID,xuiError:this.props.xuiError,xuiErrorAlignh:this.props.xuiErrorAlignh,xuiErrorPosition:this.props.xuiErrorPosition},this._renderOptions()),this._renderHelpContent()));},_renderHelpContent:function(){if(!this.props.canDisableInstagramPlacement)return (l.createElement('div',{className:"_2pid"},n._("Connect your Instagram accounts in Business Manager.")));return (l.createElement('div',{className:"_2pid"},n._("Connect your Instagram accounts in Business Manager or {=remove Instagram as a placement}.",[n.param('=remove Instagram as a placement',l.createElement(k,{onClick:this.props.onRemoveInstagramPlacement},n._("remove Instagram as a placement")))])));},_renderOptions:function(){var s=this._renderInstagramAccountOptions();if(s.length===0||this.props.selectedInstagramAccountID===p)s.unshift(l.createElement(q,{key:p,value:p},this.props.defaultLabel));return s;},_renderInstagramAccountOptions:function(){return this.props.instagramAccounts.map((function(s){return (l.createElement(q,{'data-tooltip-position':'right',key:s[i.ID],value:s[i.ID]},this._renderInstagramAccountOption(s)));}).bind(this));},_renderInstagramAccountOption:function(s){var t=s[i.USERNAME],u=null,v=s[i.PROFILE_PIC];if(v)u=l.createElement(j,{src:s[i.PROFILE_PIC],className:"_1j7g",alt:n._("Logo for {Instagram account name}",[n.param('Instagram account name',t)])});return (l.createElement('div',null,u,t));}});f.exports=r;},null);
__d('AdsCFInstagramBusinessLinkedAccountSelectorContainer.react',['AdsBusinessInstagramAccountStore','AdsCFAccountStore','AdsCFConstants','AdsCFCreativePlacementUtils','AdsCFCreativeStore','AdsCFCreativeViewActions','AdsCFInstagramBusinessLinkedAccountSelector.react','AdsCFObjectiveStore','FluxContainer','GraphInstagramUserFields','React','shallowCompare'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){if(c.__markCompiled)c.__markCompiled();var t,u;'use strict';var v=j.PlacementID,w=r.Component;t=babelHelpers.inherits(x,w);u=t&&t.prototype;x.getStores=function(){return [h,i,l,o];};x.calculateState=function(){var y=i.getState(),z=l.getCreativeData().instagramActorID,aa=h.get(y.accountID),ba=aa.data.map(function(da){return {id:da[q.ID],profile_pic:da[q.PROFILE_PIC],username:da[q.USERNAME]};}),ca=!k.isOnlyIGEnabled(l.getCreativeData(),o.getAPIObjective());return {canDisableInstagramPlacement:ca,instagramAccounts:ba,selectedInstagramAccountID:z};};x.prototype.render=function(){return (r.createElement(n,{canDisableInstagramPlacement:this.state.canDisableInstagramPlacement,instagramAccounts:this.state.instagramAccounts,onChange:this.$AdsCFInstagramBusinessLinkedAccountSelectorContainer1,onRemoveInstagramPlacement:this.$AdsCFInstagramBusinessLinkedAccountSelectorContainer2,selectedInstagramAccountID:this.state.selectedInstagramAccountID}));};x.prototype.shouldComponentUpdate=function(y,z){return s(this,y,z);};x.prototype.$AdsCFInstagramBusinessLinkedAccountSelectorContainer1=function(y){m.setInstagramAccountID(y.value);};x.prototype.$AdsCFInstagramBusinessLinkedAccountSelectorContainer2=function(){m.setPlacements([v.IG_FEED],false);};function x(){t.apply(this,arguments);}f.exports=p.create(x);},null);
__d('AdsBusinessActionTypes',['keyMirrorRecursive'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=h({BATCH_LOADED:null,BATCH_LOAD_ERROR:null},'AdsBusiness');f.exports=i;},null);
__d('AdsBusinessDataManager',['AdsBaseDataManager','AdsBusinessActions','CurrentUser','GraphAPI','fbt','sprintf'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n,o;'use strict';n=babelHelpers.inherits(p,h);o=n&&n.prototype;p.prototype.loadAll=function(q){q.forEach((function(r){return this.load(r);}).bind(this));};p.prototype.load=function(q){k('2.4').object('business',q).batched().get({fields:['id','name',m('userpermissions.fields(role).user(%s)',j.getAccountID())]}).done(this.__handleSuccess.bind(this,['load'],q,null),this.__handleError.bind(this,['load'],q,null));};p.prototype.__onBatchLoaded=function(q){i.batchLoaded(q);};p.prototype.__onBatchLoadError=function(q){i.batchLoadError(q);};p.prototype.__getObjectTypeLabel=function(){return l._("Business");};function p(){n.apply(this,arguments);}f.exports=new p();},null);
__d('AdsBusinessStore',['AdsBaseDataStore','AdsBusinessActionTypes','AdsBusinessDataManager','AdsLoadState'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l,m;'use strict';l=babelHelpers.inherits(n,h);m=l&&l.prototype;n.prototype.getDataManager=function(){return j;};n.prototype.onDispatchToken=function(o){var p=o.action;switch(p.type){case i.BATCH_LOADED:this.__handleData(p.specs,k.LOADED);break;case i.BATCH_LOAD_ERROR:this.__handleData(p.errors,k.ERROR);break;}};function n(){l.apply(this,arguments);}f.exports=new n();},null);
__d('AdsInstagramPlacementOptOutReasons',['keyMirrorRecursive'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=h({CAROUSEL_UNSUPPORTED:'',EXISTING_POST_UNSUPPORTED:'',EXPLICIT_AT_L2:'',IMAGE_CROP_TOO_SMALL:'',IMAGE_TOO_SMALL:'',INVALID_VIDEO:'',INVALID_VIDEO_THUMBNAIL:'',MISSING_CTA:'',NO_INSTAGRAM_ACCOUNT_FOR_BUSINESS:'',PBIA_ERROR:'',TEXT_TOO_LONG:'',UNSUPPORTED_CTA:'',WRONG_IMAGE_RATIO:''});f.exports=i;},null);
__d("XPageLinkInstagramAccountDialogController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/page\/instagram\/link\/dialog\/",{page_id:{type:"Int",required:true},refresh_on_success:{type:"Bool",defaultValue:false},__asyncDialog:{type:"Int"}});},null,{});
__d("XPagesManagerSettingsController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/{page_token}\/settings\/",{edited:{type:"String"},section:{type:"String"},tab:{type:"String"},change_admin_action:{type:"String"},change_admin_uid:{type:"Int"},tbid:{type:"Int"},fid:{type:"Int"},item_id:{type:"Int"},ref:{type:"String"},page_token:{type:"String",required:true},business_id:{type:"Int"}});},null,{});
__d('AdsInstagramPageLinkedAccountSelector.react',['AdsBulkValue','AdsHelpLink.react','AdsInstagramPlacementOptOutReasons','AdsLoadState','AdsUniformValue','ApiPagePaths','AsyncDialog','AsyncRequest','BizSiteIdentifier.brands','Image.react','Layout.react','Link.react','PageAdminTypes','React','ReactComponentWithPureRenderMixin','URI','XPageLinkInstagramAccountDialogController','XPagesManagerSettingsController','XUIButton.react','XUICard.react','XUICardSection.react','XUIGrayText.react','XUINotice.react','XUISpinner.react','XUIText.react','cx','fbt','getByPath','invariant','AppConstants.brands'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja){'use strict';if(c.__markCompiled)c.__markCompiled();var ka=c('AppConstants.brands').USER_ROLE,la=r.Column,ma=r.FillColumn,na=u.PropTypes,oa='/images/ads/powereditor/instagram_icon_blue.png',pa=u.createClass({displayName:'AdsInstagramPageLinkedAccountSelector',mixins:[v],propTypes:{bulkPageID:na.instanceOf(h).isRequired,bulkInstagramActorID:na.instanceOf(h).isRequired,business:na.shape({id:na.string.isRequired,userpermissions:na.object}),instagramAccount:na.shape({id:na.string.isRequired,isPublished:na.bool.isRequired,profile_pic:na.string.isRequired,username:na.string.isRequired}),loadState:na.oneOf(Object.keys(k)).isRequired,onChange:na.func.isRequired,onInstagramAccountLinked:na.func.isRequired,onRemoveInstagramPlacement:na.func.isRequired,onUsePageBackedAccount:na.func.isRequired,page:na.shape({name:na.string.isRequired,picture:na.object.isRequired,userpermissions:na.object.isRequired}),pageBackedAccountError:na.bool,someHaveInstagramPlacementOnly:na.bool.isRequired},render:function(){if(this.props.loadState===k.ERROR)return (u.createElement(da,{size:'small',use:'warn'},ha._("An error occurred when loading your Instagram accounts.")));if(this.props.loadState!==k.LOADED)return u.createElement(ea,null);if(!(this.props.bulkPageID instanceof l))return this._renderUnsupportedBulkEditing();if(!this.props.bulkPageID.getValue())return this._renderNoPageSelected();if(!(this.props.bulkInstagramActorID instanceof l))return this._renderUnsupportedBulkEditing();var qa=this.props.bulkInstagramActorID.getValue(),ra=this.props.instagramAccount&&this.props.instagramAccount.id;if(!qa||qa!==ra){var sa;if(this.props.pageBackedAccountError){if(this.props.someHaveInstagramPlacementOnly){sa=ha._("We're unable to use the selected Page to represent your business in your Instagram ad. Please select a different Page.");}else sa=ha._("We're unable to use the selected Page to represent your business in your Instagram ad. Please select a different Page or {=remove Instagram as a placement}.",[ha.param('=remove Instagram as a placement',u.createElement(s,{onClick:this._onRemoveInstagramPlacement},ha._("remove Instagram as a placement")))]);sa=u.createElement(da,{size:'small',use:'warn',className:"_3-8x"},sa);}return (u.createElement('div',null,sa,this._renderOptionSelectionCard()));}return this._renderInstagramAccount();},_renderNoPageSelected:function(){return (u.createElement(da,{size:'small',className:"_3-8x"},ha._("Select a Facebook Page to advertise on Instagram.")));},_renderOptionSelectionCard:function(){var qa=this.props.page;!qa?ja(0):undefined;var ra,sa,ta;if(this.props.instagramAccount&&this.props.instagramAccount.isPublished)return (u.createElement('div',{className:"_2pid"},ha._("{=Use the Instagram account connected to the selected Facebook Page} to represent your business in your Instagram ad.",[ha.param('=Use the Instagram account connected to the selected Facebook Page',u.createElement(s,{onClick:this.props.onUsePageBackedAccount},ha._("Use the Instagram account connected to the selected Facebook Page")))])));if(this.props.business){ta=ha._("Connect an Instagram Account to Your Business");if(this._hasBusinessAdminPermission()){sa=ha._("You may see better results from your Instagram ad if you connect an Instagram account to your business.");ra=ha._("{=Add an account} to your business.",[ha.param('=Add an account',u.createElement(s,{href:this._getBusinessSettingsLink(),target:'_blank'},ha._("Add an account")))]);}else sa=ha._("We recommend connecting an Instagram account with this business to get better results from advertising on Instagram. Contact the business admin to connect an Instagram account.");}else{ta=ha._("Connect an Instagram Account to Your Page");if(this._hasPageManagerPermission()){sa=ha._("You may see better results from your Instagram ad if you connect an Instagram account to your Page.");ra=ha._("{=Add an account} to the selected Page.",[ha.param('=Add an account',u.createElement(s,{onClick:this._showLinkingDialog,target:'_blank'},ha._("Add an account")))]);}else sa=ha._("We recommend connecting an Instagram account with this Page to get better results from advertising on Instagram. Contact the Page admin to connect an Instagram account.");}return (u.createElement(aa,{className:"_3-8y"},u.createElement(ba,{className:"_2ph_"},u.createElement('div',null,u.createElement(r,null,u.createElement(la,null,u.createElement(q,{className:"_3-90",src:oa})),u.createElement(ma,null,u.createElement(fa,{className:"_2pic",display:'block',weight:'bold'},ta),u.createElement('div',{className:"_2pid"},sa),u.createElement('div',{className:"_2pid"},ra))))),u.createElement(ba,{background:'light-wash',className:"_2ph_"},ha._("{=Use the selected Facebook Page} to represent your business in your Instagram ad.",[ha.param('=Use the selected Facebook Page',u.createElement(s,{onClick:this.props.onUsePageBackedAccount},ha._("Use the selected Facebook Page")))]))));},_renderInstagramAccount:function(){!this.props.instagramAccount?ja(0):undefined;return this.props.instagramAccount.isPublished?this._renderPublishedInstagramAccount():this._renderUnpublishedInstagramAccount();},_renderPublishedInstagramAccount:function(){var qa=this.props.instagramAccount;!(qa&&qa.isPublished)?ja(0):undefined;var ra;if(this._hasPageAdvertiserPermission()){ra=ha._("This Instagram account will be used to represent your business in your Instagram ad. You can also {=connect a new or different account} to your Page.",[ha.param('=connect a new or different account',u.createElement(s,{href:this._getPagesSettingsLink(),target:'_blank'},ha._("connect a new or different account")))]);}else ra=ha._("This Instagram account will be used to represent your business in your Instagram ad. Contact the Page admin to connect a new or different Instagram account to your Page.");return (u.createElement('div',{className:"_3-8y"},u.createElement(q,{className:"_clo _clp",src:qa.profile_pic}),u.createElement(ca,{shade:'medium',weight:'bold'},'@',qa.username),u.createElement('div',{className:"_3-8y"},ra)));},_renderUnpublishedInstagramAccount:function(){var qa=this.props.page;!qa?ja(0):undefined;var ra=u.createElement(q,{className:"_clo",src:qa.picture.data.url}),sa,ta,ua;if(this.props.business){if(this._hasBusinessAdminPermission()){sa=this._getBusinessSettingsLink();ua=ha._("You don't have an Instagram account connected to your business. The Facebook Page you've selected above will be used to represent your business on Instagram. You can {=connect an Instagram account} instead.",[ha.param('=connect an Instagram account',u.createElement(s,{href:sa,target:'_blank'},ha._("connect an Instagram account")))]);}else ua=ha._("You don't have an Instagram account connected to your business. The Facebook Page you've selected above will be used to represent your business on Instagram. Contact the business admin to connect an Instagram account instead.");}else if(this._hasPageAdvertiserPermission()){ta=this._showLinkingDialog;ua=ha._("You don't have an Instagram account connected to your Page. The Facebook Page you've selected above will be used to represent your business on Instagram. You can {=connect an Instagram account} instead.",[ha.param('=connect an Instagram account',u.createElement(s,{href:sa,target:'_blank'},ha._("connect an Instagram account")))]);}else ua=ha._("You don't have an Instagram account connected to your Page. The Facebook Page you've selected above will be used to represent your business on Instagram. Contact the Page admin to connect an Instagram account instead.");var va;if(sa||ta)va=u.createElement('div',{className:"_3-8x"},ha._("{=Add an Instagram account} to represent your business instead.",[ha.param('=Add an Instagram account',u.createElement(s,{href:sa,onClick:ta,target:'_blank'},ha._("Add an Instagram account")))]));return (u.createElement('div',null,u.createElement('div',{className:"_3-8x"},ha._("Using the selected Facebook Page to represent your business in your Instagram ad"),u.createElement(i,{className:"_3-99",width:300},ua)),u.createElement(z,{className:"_3-8x",disabled:true,image:ra,label:qa.name,size:'large'}),va));},_renderUnsupportedBulkEditing:function(){return (u.createElement(da,{size:'small',className:"_3-8x"},ha._("Your selection has multiple ads that can't be edited together. As a result, not all options are available to edit for this selection.")));},_getPagesSettingsLink:function(){var qa=this.props.page;!(this.props.bulkPageID instanceof l)?ja(0):undefined;!qa?ja(0):undefined;var ra=qa.business&&qa.business.id,sa=y.getURIBuilder().setString('page_token',qa.id).setString('tab','instagram_ads').getURI();return ra?p.createBusinessURL(sa,ra):sa;},_getBusinessSettingsLink:function(){var qa=this.props.business;!!!qa?ja(0):undefined;return p.createBusinessURL('/settings/instagram/',qa.id);},_showLinkingDialog:function(){var qa=this.props.page;!qa?ja(0):undefined;n.send(new o(x.getURIBuilder().setInt('page_id',qa.id).getURI()),(function(ra){ra.subscribe('linked',(function(sa,ta){ra.hide();this.props.onInstagramAccountLinked(ta);}).bind(this));}).bind(this));},_hasPageManagerPermission:function(){return (!!this.props.page&&ia(this.props.page,m.USERPERMISSIONS.DATA,[]).some(function(qa){return qa.role===t.MANAGER;}));},_hasPageAdvertiserPermission:function(){return (!!this.props.page&&ia(this.props.page,m.USERPERMISSIONS.DATA,[]).some(function(qa){return qa.role===t.ADVERTISER;}));},_hasBusinessAdminPermission:function(){return (!!this.props.business&&ia(this.props.business,['userpermissions','data'],[]).some(function(qa){return qa.role===ka.ADMIN;}));},_onRemoveInstagramPlacement:function(){this.props.onRemoveInstagramPlacement(j.PBIA_ERROR);}});f.exports=pa;},null);
__d('AdsPageInstagramAccountActions',['AdsDispatcher','AdsInstagramAccountActionTypes'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={accountsBatchLoaded:function(k){h.handleUpdateFromServerResponse({specs:k,type:i.PAGE.BATCH_LOADED});},accountsBatchLoadError:function(k){h.handleUpdateFromServerResponse({errors:k,type:i.PAGE.BATCH_LOAD_ERROR});},clearAccounts:function(k){h.handleUpdateFromServerResponse({data:{pageID:k},type:i.PAGE.CLEAR_ACCOUNTS});},createAndUsePageBackedAccount:function(k,l,m,n,o){h.handleUpdateFromServerResponse({data:{accessToken:n,campaignID:k,adgroupIDs:l,pageID:m},source:o,type:i.PAGE.CREATE_AND_USE_PAGE_BACKED});},handlePageBackedAccountCreateSuccess:function(k,l,m,n,o){h.handleUpdateFromServerResponse({data:{campaignID:k,adgroupIDs:l,pageID:m,instagramAccountID:n},source:o,type:i.PAGE.CREATE_PAGE_BACKED_SUCCESS});},handlePageBackedAccountCreateError:function(k){h.handleUpdateFromServerResponse({data:{pageID:k},type:i.PAGE.CREATE_PAGE_BACKED_ERROR});}};f.exports=j;},null);
__d('AdsPageInstagramAccountDataManager',['AdsBaseDataManager','AdsGraphAPI','AdsPageInstagramAccountActions','GraphEdgeName','GraphInstagramUserFields','fbt','sprintf'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o,p;'use strict';var q=[l.ID,l.PROFILE_PIC,l.USERNAME].join();o=babelHelpers.inherits(r,h);p=o&&o.prototype;r.prototype.loadAll=function(s){s.forEach((function(t){return this.load(t);}).bind(this));};r.prototype.load=function(s){i.getWithGeneralMigration().objectByName('page',s).batched().get({fields:[n('%s.limit(1).fields(%s)',k.INSTAGRAM_ACCOUNTS,q),n('%s.limit(1).fields(%s)',k.PAGE_BACKED_INSTAGRAM_ACCOUNTS,q)]}).done((function(t){return this.__handleSuccess(['load'],s,null,t);}).bind(this),(function(t){return this.__handleError(['load'],s,null,t);}).bind(this));};r.prototype.createAndUsePageBackedAccount=function(s,t,u,v,w){i.getWithGeneralMigration().objectByName('page',u).edge(k.PAGE_BACKED_INSTAGRAM_ACCOUNTS).batched().post({access_token:v}).done(function(x){j.handlePageBackedAccountCreateSuccess(s,t,u,x.id,w);},function(x){j.handlePageBackedAccountCreateError(u);});};r.prototype.__onBatchLoaded=function(s){j.accountsBatchLoaded(s);};r.prototype.__onBatchLoadError=function(s){j.accountsBatchLoadError(s);};r.prototype.__getObjectTypeLabel=function(){return m._("Page Instagram Accounts");};function r(){o.apply(this,arguments);}f.exports=new r();},null);
__d('AdsPageInstagramAccountStore',['AdsBaseDataStore','AdsInstagramAccountActionTypes','AdsLoadState','AdsLoadStateUtils','AdsPageInstagramAccountDataManager','GraphEdgeName','getByPath'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o,p;'use strict';o=babelHelpers.inherits(q,h);p=o&&o.prototype;function q(){p.constructor.call(this);this.$AdsPageInstagramAccountStore1={};}q.prototype.getDataManager=function(){return l;};q.prototype.onDispatchToken=function(r){var s=r.action;switch(s.type){case i.PAGE.BATCH_LOADED:this.__handleData(s.specs,j.LOADED);break;case i.PAGE.BATCH_LOAD_ERROR:this.__handleData(s.errors,j.ERROR);break;case i.PAGE.CLEAR_ACCOUNTS:this.__invalidate(s.data.pageID);break;case i.PAGE.CREATE_AND_USE_PAGE_BACKED:this.$AdsPageInstagramAccountStore2(s.data.campaignID,s.data.adgroupIDs,s.data.pageID,s.data.accessToken,s.source);break;case i.PAGE.CREATE_PAGE_BACKED_ERROR:this.$AdsPageInstagramAccountStore3(s.data.pageID);break;case i.PAGE.CREATE_PAGE_BACKED_SUCCESS:this.$AdsPageInstagramAccountStore4(s.data.pageID);break;}};q.prototype.getEligibleInstagramAccount=function(r,s){if(!k.isLoaded(s))return null;var t=s[m.PAGE_BACKED_INSTAGRAM_ACCOUNTS],u=s[m.INSTAGRAM_ACCOUNTS];if(!r&&u&&u.data&&u.data.length>0)return babelHelpers._extends({},u.data[0],{isPublished:true});if(t&&t.data&&t.data.length>0)return babelHelpers._extends({},t.data[0],{isPublished:false});return null;};q.prototype.getInstagramAccountInformation=function(r,s,t){if(!k.isLoaded(r))return null;var u=null,v=n(r,[m.INSTAGRAM_ACCOUNTS,'data']);if(v)u=v.find(function(x){return x.id===s;});if(!u){var w=n(r,[m.PAGE_BACKED_INSTAGRAM_ACCOUNTS,'data']);if(w){u=w.find(function(x){return x.id===s;});if(u&&t)u=babelHelpers._extends({},u,{username:t.name});}}return u;};q.prototype.getPageBackedAccountCreateState=function(r){return this.$AdsPageInstagramAccountStore1[r]?this.$AdsPageInstagramAccountStore1[r]:j.LOADED;};q.prototype.$AdsPageInstagramAccountStore2=function(r,s,t,u,v){this.$AdsPageInstagramAccountStore1[t]=j.LOADING;this.inform('change');l.createAndUsePageBackedAccount(r,s,t,u,v);};q.prototype.$AdsPageInstagramAccountStore4=function(r){this.$AdsPageInstagramAccountStore1[r]=j.LOADED;l.load(r);};q.prototype.$AdsPageInstagramAccountStore3=function(r){this.$AdsPageInstagramAccountStore1[r]=j.ERROR;this.inform('change');};f.exports=new q();},null);
__d('AdsPageActions',['AdsActionTypes','AdsDispatcher'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={initSelector:function(k,l,m){i.handleUpdateFromServerResponse({bookmarkedPageIDs:l,type:h.PAGE.SELECTOR.INIT,pageID:k.pageID,businessID:k.businessID,section:k.section,unownedPageIDs:m});},pageBatchLoaded:function(k){i.handleUpdateFromServerResponse({pages:k,type:h.PAGE.BATCH_LOADED});},pageBatchLoadError:function(k){i.handleUpdateFromServerResponse({errors:k,type:h.PAGE.BATCH_LOAD_ERROR});},pageListBatchLoaded:function(k,l){i.handleUpdateFromServerResponse({id:k,pages:l,type:h.PAGE.LIST.BATCH_LOADED});},pageListPartialBatchLoaded:function(k,l){i.handleUpdateFromServerResponse({id:k,pages:l,type:h.PAGE.LIST.PARTIAL_LOAD});},pageListBatchLoadError:function(k){i.handleUpdateFromServerResponse({errors:k,type:h.PAGE.LIST.BATCH_LOAD_ERROR});},pageRestrictedDataLoaded:function(k){i.handleUpdateFromServerResponse({pages:k,type:h.PAGE.RESTRICTED_DATA.BATCH_LOADED});},pageRestrictedDataLoadError:function(k){i.handleUpdateFromServerResponse({errors:k,type:h.PAGE.RESTRICTED_DATA.BATCH_LOAD_ERROR});}};f.exports=j;},null);
__d('AdsPageDataManager',['AdsBaseDataManager','AdsGraphAPI','AdsPageActions','AdsPageFields','adsGKCheck','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n,o;'use strict';n=babelHelpers.inherits(p,h);o=n&&n.prototype;p.prototype.loadAll=function(r){i.getWithGeneralMigration().objectsByName('page',r).get({fields:k.forCurrentUser()}).done((function(s){return Object.keys(s).forEach((function(t){this.__handleSuccess(['load'],t,null,s[t]);}).bind(this));}).bind(this),(function(s){return r.forEach((function(t){this.__handleError(['load'],t,null,s);}).bind(this));}).bind(this));};p.prototype.load=function(r){this.loadAll([r]);};p.prototype.__onBatchLoaded=function(r){j.pageBatchLoaded(r);};p.prototype.__onBatchLoadError=function(r){j.pageBatchLoadError(r);};p.prototype.__getObjectTypeLabel=function(){return m._("Page");};function p(){n.apply(this,arguments);}var q=new p();f.exports=q;},null);
__d('AdsCFInstagramPageLinkedAccountSelectorContainer.react',['AdsBusinessStore','AdsCFAccountStore','AdsCFConstants','AdsCFCreativePlacementUtils','AdsCFCreativeStore','AdsCFCreativeViewActions','AdsCFObjectiveStore','AdsCFUserStore','AdsInstagramAccountActionSources','AdsInstagramPageLinkedAccountSelector.react','AdsLoadState','AdsLoadStateUtils','AdsPageInstagramAccountActions','AdsPageInstagramAccountStore','AdsPageStore','AdsUniformValue','FluxContainer','React','invariant','shallowEqual'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa){if(c.__markCompiled)c.__markCompiled();var ba,ca;'use strict';var da=j.PlacementID,ea=y.Component;ba=babelHelpers.inherits(fa,ea);ca=ba&&ba.prototype;fa.getStores=function(){return [h,i,l,n,o,u,v];};fa.calculateState=function(){var ga=l.getCreativeData(),ha=ga.actor,ia=ha.id,ja=ga.instagramActorID,ka=v.get(ia),la=ka.loadState,ma=i.getBusinessID(),na;if(ma){na=h.get(ma);la=s.mergeLoadStates([la,na.loadState]);}var oa=u.get(ia),pa=u.getEligibleInstagramAccount(!!ma,oa);la=s.mergeLoadStates([la,oa.loadState]);var qa;if(!pa){var ra=u.getPageBackedAccountCreateState(ia);if(ra===r.ERROR){qa=true;}else if(ra===r.LOADING)la=s.mergeLoadStates([la,r.LOADING]);}var sa=k.isOnlyIGEnabled(ga,n.getAPIObjective());return {bulkPageID:new w(ia),bulkInstagramActorID:new w(ja),business:na,instagramAccount:pa,loadState:la,page:s.isLoaded(ka)?ka:undefined,pageBackedAccountError:qa,someHaveInstagramPlacementOnly:sa};};fa.prototype.shouldComponentUpdate=function(ga,ha){return !aa(this.state,ha);};fa.prototype.render=function(){return (y.createElement(q,{bulkPageID:this.state.bulkPageID,bulkInstagramActorID:this.state.bulkInstagramActorID,business:this.state.business,instagramAccount:this.state.instagramAccount,loadState:this.state.loadState,onChange:this.$AdsCFInstagramPageLinkedAccountSelectorContainer1,onInstagramAccountLinked:this.$AdsCFInstagramPageLinkedAccountSelectorContainer2.bind(this),onRemoveInstagramPlacement:this.$AdsCFInstagramPageLinkedAccountSelectorContainer3,onUsePageBackedAccount:this.$AdsCFInstagramPageLinkedAccountSelectorContainer4.bind(this),page:this.state.page,pageBackedAccountError:this.state.pageBackedAccountError,someHaveInstagramPlacementOnly:this.state.someHaveInstagramPlacementOnly}));};fa.prototype.$AdsCFInstagramPageLinkedAccountSelectorContainer1=function(ga){m.setInstagramAccountID(ga);};fa.prototype.$AdsCFInstagramPageLinkedAccountSelectorContainer3=function(){m.setPlacements([da.IG_FEED],false);};fa.prototype.$AdsCFInstagramPageLinkedAccountSelectorContainer4=function(){var ga=this.state.page;!ga?z(0):undefined;if(this.state.instagramAccount){this.$AdsCFInstagramPageLinkedAccountSelectorContainer1(this.state.instagramAccount.id);}else t.createAndUsePageBackedAccount(null,[],ga.id,ga.access_token,p.CF_AUCTION);};fa.prototype.$AdsCFInstagramPageLinkedAccountSelectorContainer2=function(ga){var ha=this.state.page;!ha?z(0):undefined;t.clearAccounts(ha.id);m.setInstagramAccountID(ga);};function fa(){ba.apply(this,arguments);}f.exports=x.create(fa);},null);
__d('AdsConversionPixelSelector.react',['AdsConversionPixelStatusUI','AdsConversionPixelUtils','AdsOffsiteConversionConstants','AdsPixelConstants','AdsRichSelector.react','Image.react','React','underscore.ads','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=l.Option,s=l.Separator,t=n.PropTypes,u=o.object(j.tags,o.range(j.tags.length)),v=n.createClass({displayName:'AdsConversionPixelSelector',propTypes:{allowNoPixelSelection:t.bool,defaultLabel:t.string,isPixelOptional:t.bool,onChange:t.func,pixels:t.arrayOf(t.shape({id:t.string.isRequired,lastFiringTime:t.string,name:t.string.isRequired,tag:t.string.isRequired})).isRequired},getDefaultProps:function(){return {allowNoPixelSelection:true};},render:function(){var w=this._getPixelsByTag(),x=[],y;w.forEach(function(ba){x.push(n.createElement(s,{key:ba.tag,label:k.categoryLabels[ba.tag]}));ba.pixels.forEach(function(ca){if(this.props.value===ca.id)y=ca;var da=h.getStatusUI(ca);x.push(n.createElement(r,{value:ca.id,key:ca.id,label:ca.name,icon:n.createElement(m,{src:da.iconImage})},n.createElement('div',{className:"_3xim pvs"},n.createElement('div',{className:"_3xin ellipsis"},ca.name),n.createElement('div',{className:"_3xio fcg"},da.text),n.createElement('div',{className:"_3xio fcg"},da.subtitle))));},this);},this);if(!x.length)return n.createElement('div',null);if(this.props.allowNoPixelSelection){var z;if(this.props.value){z=this.props.defaultLabel||q._("No pixel selected");}else if(this.props.isPixelOptional){z=this.props.defaultLabel||q._("Add a conversion pixel (optional)");}else z=this.props.defaultLabel||q._("Choose a pixel");var aa=n.createElement(r,{key:'default',label:z,value:''},z);x.unshift(aa);}return (n.createElement(l,{defaultValue:this.props.value||'',disabled:this.props.disabled,key:'pixel_'+this.props.value,maxheight:this.props.maxheight,maxwidth:this.props.fullWidth?null:undefined,onChange:this._handleChange,size:this.props.size},x));},_handleChange:function(w){this.props.onChange&&this.props.onChange(w.value);},_getPixelsByTag:function(){var w=o(this.props.pixels).chain().groupBy(function(x){return x.tag||'';}).map(function(x,y){return {tag:y,pixels:x};}).value();w.sort(function(x,y){return (u[x.tag]-u[y.tag]);});w.forEach(function(x){x.pixels.sort(i.pixelOrdering);});return w;}});f.exports=v;},null);
__d('AdsCFPixelSelector.react',['AdsCFObjectiveConfirmationStore','AdsCFPixelStatus.react','AdsConversionPixelSelector.react','AdsConversionPixelUtils','React','XUINotice.react','cx','emptyFunction','fbt','invariant','ads-objectives'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=c('ads-objectives').KPIObjectives,s=l.PropTypes,t=l.createClass({displayName:'AdsCFPixelSelector',propTypes:{accountID:s.string.isRequired,disabled:s.bool,kpiObjective:s.string,pixels:s.array.isRequired,pixelStatusToText:s.object.isRequired,onSelectionChange:s.func,selectedPixelID:s.string,showNewVersion:s.bool},getDefaultProps:function(){return {onSelectionChange:o};},render:function(){var u=this.props.pixels,v=this.props.selectedPixelID,w=k.getPixelDetails(v,u);if(u.length===0&&!v)return this._renderNoPixel();if(v&&!w)return this._renderDeletedPixel(v);return this._renderPixelSelector(w);},_renderNoPixel:function(){return (l.createElement(m,{use:'warn'},p._("You haven't created any conversion tracking pixels yet.")));},_renderDeletedPixel:function(u){var v={id:u,isDeleted:true};return this._renderPixelSelector(v);},_renderPixelSelector:function(u){var v=this.props.kpiObjective===r.WEBSITE_CLICKS&&this.props.showNewVersion;return (l.createElement('div',null,l.createElement(j,{disabled:this.props.disabled,isPixelOptional:v,maxheight:300,maxwidth:null,onChange:this._handlePixelChange,pixels:this.props.pixels,size:'xlarge',value:u&&u.id}),this._renderPixelWarning(u)));},_renderPixelWarning:function(u){if(u&&u.isDeleted===true)return (l.createElement(m,{use:'warn',className:"_5yyh"},p._("The pixel previously chosen to track conversions has been deleted. Choose an active pixel.")));var v=h.getIsKPIObjectiveConfirmed();return (l.createElement('div',{className:"_5yyh"},l.createElement(i,{kpiObjective:this.props.kpiObjective,pixel:u,pixelStatusToText:this.props.pixelStatusToText,placement:'ads_cf_pixel_selector',showNewVersion:this.props.showNewVersion,verifyMode:v?'dialog':'inline'})));},_handlePixelChange:function(u){this.props.onSelectionChange(u);}});f.exports=t;},null);
__d('AdsCFConversionPixelViewActions',['AdsCFActionTypes','AdsDispatcher'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={addEmailRecipient:function(k,l){i.handleUpdateFromViewAction({placement:k,recipient:l,type:h.ADD_PIXEL_EMAIL_RECIPIENT});},removeEmailRecipient:function(k,l){i.handleUpdateFromViewAction({placement:k,recipient:l,type:h.REMOVE_PIXEL_EMAIL_RECIPIENT});},setEmailPersonalMessage:function(k,l){i.handleUpdateFromViewAction({personalMessage:l,placement:k,type:h.CHANGE_PIXEL_EMAIL_PERSONAL_MESSAGE});},setSnippetViewMode:function(k,l){i.handleUpdateFromViewAction({placement:k,type:h.CHANGE_PIXEL_SNIPPET_VIEW_MODE,viewMode:l});},confirmSnippetView:function(k){i.handleUpdateFromViewAction({placement:k,type:h.CONFIRM_SNIPPET_VIEW});}};f.exports=j;},null);
__d('AdsCFPixelSnippetDialog.react',['AdsCFConversionPixelStore','AdsCFConversionPixelViewActions','AdsCFPixelSnippetSharer.react','AdsConversionPixelSnippetViewMode','Link.react','React','ReactLayeredComponentMixin','SubscriptionsHandler','XUIDialog.react','XUIDialogBody.react','XUIDialogFooter.react','XUIDialogButton.react','XUIDialogTitle.react','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){'use strict';if(c.__markCompiled)c.__markCompiled();var v=m.PropTypes,w=u._("Done"),x=u._("Send"),y=m.createClass({displayName:'AdsCFPixelSnippetDialog',mixins:[n],propTypes:{pixel:v.object.isRequired,placement:v.string.isRequired},componentWillMount:function(){this.subscriptions=new o();this.subscriptions.addSubscriptions(h.subscribe('change',this._handleChange));},componentWillUnmount:function(){this.subscriptions.release();},getInitialState:function(){return {dialogShown:false};},render:function(){return (m.createElement(l,{onClick:this._onClick},u._("Verify Now")));},renderLayers:function(){var z=h.getState(this.props.placement).viewMode,aa=z===k.EMAIL_CODE?x:w;return {dialog:m.createElement(p,{shown:this.state.dialogShown,onToggle:(function(ba){if(!ba)setTimeout(this.setState.bind(this,{dialogShown:false},null),0);}).bind(this),width:400},m.createElement(t,null,u._("Verify Conversion-Tracking Pixel")),m.createElement(q,null,m.createElement(j,{pixel:this.props.pixel,placement:this.props.placement})),m.createElement(r,null,m.createElement(s,{disabled:!h.canContinue(this.props.placement),use:'confirm',action:'confirm',label:aa,onClick:this._confirmClick})))};},_onClick:function(){this.setState({dialogShown:true});},_confirmClick:function(){i.confirmSnippetView(this.props.placement);this.setState({dialogShown:false});},_handleChange:function(){var z=h.getPlacement();if(z===this.props.placement)this.forceUpdate();}});f.exports=y;},null);
__d('FBReplaceLink.react',['Link.react','React','fbt'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=i.PropTypes,l=i.createClass({displayName:'FBReplaceLink',propTypes:{label:k.string},getDefaultProps:function(){var m=j._("Show");return {label:m};},getInitialState:function(){return {isReplaced:false};},_replace:function(){this.setState({isReplaced:true});},render:function(){if(this.state.isReplaced)return i.createElement('div',null,this.props.children);return (i.createElement('div',null,i.createElement(h,{onClick:this._replace},this.props.label)));}});f.exports=l;},null);
__d('AdsConversionPixelSnippetEmailForm.react',['AdsPixelConstants','AdsPixelNotifFieldEnum','AdsPixelSnippet.react','CIWebmailValidator','AdsPixelCodeEmailFormParams','FBReplaceLink.react','Link.react','React','ReactDOM','Token.react','XUIGrayText.react','XUINotice.react','XUITextInput.react','cx','fbt','Scrollable'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){'use strict';if(c.__markCompiled)c.__markCompiled();c('Scrollable');var w=o.PropTypes,x=o.createClass({displayName:'AdsConversionPixelSnippetEmailForm',propTypes:{pixelCode:w.string.isRequired,recipients:w.array,personalMessage:w.string,onAddNewRecipient:w.func.isRequired,onRemoveRecipient:w.func.isRequired,onPersonalMessageChange:w.func.isRequired},getDefaultProps:function(){return {recipients:[],personalMessage:'',errorMessage:''};},getInitialState:function(){return {showCodeInMessage:false};},componentWillUpdate:function(y,z){if(!this.state.showCodeInMessage&&z.showCodeInMessage){var aa=p.findDOMNode(this.refs.message),ba=aa.scrollHeight;aa.style.height=ba+'px';}},render:function(){var y=this.props.recipients.map(this._renderRecipientToken);return (o.createElement('div',{className:"_186b"},o.createElement('div',{className:"_5g5v"},o.createElement(r,{weight:'bold',shade:'light',size:'medium'},v._("To")),o.createElement('div',{className:"_5g5w"+(' '+"clearfix"),onClick:(function(){p.findDOMNode(this.refs.recipientInput).focus();}).bind(this)},o.createElement('div',null,y),o.createElement(t,{className:"_186e",ref:'recipientInput',value:this.state.textInProgress,onChange:this._handleTextChange.bind(this,false),onBlur:this._handleTextChange.bind(this,true),onBackspace:this._handleBackSpace,onEnter:this._handleTextChange.bind(this,true),placeholder:v._("Add a recipient")}))),o.createElement('div',{className:"_3-8y"},o.createElement(m,{label:v._("Add a Personal Message")},this._renderPersonalMessageArea())),o.createElement('div',{className:"_5g5v"},o.createElement(r,{weight:'bold',shade:'light',size:'medium'},v._("Instructions and Pixel Codes")),this._renderMessageView()),this._renderErrorMessage()));},_renderRecipientToken:function(y,z){return (o.createElement(q,{className:"_186g"+(!k.isValidEmail(y)?' '+"_186h":''),key:z,label:y,removable:true,onRemove:this.props.onRemoveRecipient.bind(null,y)}));},_renderPersonalMessageArea:function(){var y=this.props.personalMessage,z=l[i.PERSONAL_MESSAGE_LABEL];return (o.createElement('div',null,v._("{=Personal Message}",[v.param('=Personal Message',o.createElement(r,{weight:'bold',shade:'light',size:'medium'},z))]),o.createElement('div',null,o.createElement('textarea',{className:"_5g5w"+(' '+"_186f"),placeholder:v._("Add a personal message"),onChange:this._handlePersonalMessageChange,ref:'personalMessageInput',value:y}))));},_handleTextChange:function(y,event){var z=event.target.value,aa=z.slice(-1);if(y||aa===','||aa===';'||aa===' '){if(!y)z=z.slice(0,z.length-1);if(z.length>0){this.props.onAddNewRecipient(z);z='';}}this.setState({textInProgress:z});},_handleBackSpace:function(event){var y=event.target.value;if(y.length===0&&this.props.recipients.length>0){var z=this.props.recipients[this.props.recipients.length-1];this.props.onRemoveRecipient(z);}},_renderErrorMessage:function(){if(!this.props.errorMessage)return null;return (o.createElement(s,{className:"_186i",use:'warn'},this.props.errorMessage));},_renderMessageView:function(){var y=h.pixelVerificationSteps.map(function(z,aa){return o.createElement('li',{key:aa},z);});return (o.createElement('div',{className:"_5g5w scrollable",ref:'message'},o.createElement('ol',null,y),o.createElement('div',{className:"_186l"},o.createElement(n,{className:this.state.showCodeInMessage?"hidden_elem":'',onClick:this._handleViewCodeInMessage},v._("View Code")),o.createElement('div',{className:(!this.state.showCodeInMessage?"hidden_elem":'')+(' '+"_186m")},o.createElement(j,{pixelCode:this.props.pixelCode})))));},_handleRecipientChange:function(event){var y=event.target.value;this.props.onRecipientChange(y);},_handlePersonalMessageChange:function(event){var y=event.target.value;this.props.onPersonalMessageChange(y);},_handleViewCodeInMessage:function(event){this.setState({showCodeInMessage:true});}});f.exports=x;},null);
__d('AdsConversionPixelSnippetSharer.react',['AdInterfacesUiLogger','AdsPixelConstants','AdsConversionPixelSnippetEmailForm.react','AdsPixelSnippet.react','AdsConversionPixelSnippetViewMode','InputLabel.react','React','ReactDOM','TextSelection','XUIRadioInput.react','XUIText.react','cx','fbt','getObjectValues','Scrollable'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){'use strict';if(c.__markCompiled)c.__markCompiled();c('Scrollable');var v=n.PropTypes,w=n.createClass({displayName:'AdsConversionPixelSnippetSharer',propTypes:{pixel:v.object.isRequired,viewMode:v.oneOf(u(l)),recipient:v.string,personalMessage:v.string,onAddNewRecipient:v.func.isRequired,onRemoveRecipient:v.func.isRequired,onViewModeChange:v.func.isRequired,onPersonalMessageChange:v.func.isRequired},getInitialState:function(){return {viewMode:l.NONE};},render:function(){var x=this.props.viewMode;return (n.createElement('div',{className:"_5g5s"},n.createElement('div',{className:"_5g5t"},t._("Place your conversion-tracking pixel on your website and verify that it is correctly tracking {pixel_tab}.",[t.param('pixel_tab',i.categoryLabels[this.props.pixel.tag])])),n.createElement(r,{weight:'bold'},t._("How would you like to verify your conversion-tracking pixel?")),n.createElement('ul',null,n.createElement('li',null,n.createElement(m,{display:'inline'},n.createElement(q,{checked:x===l.VIEW_CODE,onChange:this._handleViewModeChange,value:l.VIEW_CODE}),n.createElement('label',null,t._("I can add the pixel to my website"))),this._renderCodeView()),n.createElement('li',null,n.createElement(m,{display:'inline'},n.createElement(q,{checked:x===l.EMAIL_CODE,onChange:this._handleViewModeChange,value:l.EMAIL_CODE}),n.createElement('label',null,t._("Someone else will add the pixel to my website"))),this._renderEmailView()))));},_handleViewModeChange:function(event){var x=event.target.value;h.log('ads_pixel_conversion_pixel_select_install_method',{viewMode:x});this.props.onViewModeChange(x);},_handleSnippetClick:function(){p.selectAllInNode(o.findDOMNode(this.refs.snippet));},_renderCodeView:function(){var x=this.props.viewMode;return (n.createElement('div',{className:"_5g5u"+(x!==l.VIEW_CODE?' '+"hidden_elem":'')},n.createElement('div',{className:"_5g5v"},i.pixelVerificationSteps[0]),n.createElement('div',{className:"_5g5w _5g5v scrollable",onClick:this._handleSnippetClick,ref:'snippet'},n.createElement(k,{pixelCode:this.props.pixel.js_pixel})),n.createElement('div',{className:"_5g5v"},i.pixelVerificationSteps[1])));},_renderEmailView:function(){var x=this.props.viewMode;return (n.createElement('div',{className:"_5g5u"+(x!==l.EMAIL_CODE?' '+"hidden_elem":'')},n.createElement(j,{pixelCode:this.props.pixel.js_pixel,recipients:this.props.recipients,personalMessage:this.props.personalMessage,onAddNewRecipient:this.props.onAddNewRecipient,onRemoveRecipient:this.props.onRemoveRecipient,onPersonalMessageChange:this.props.onPersonalMessageChange})));}});f.exports=w;},null);
__d('AdsCFPixelSnippetSharer.react',['AdsCFConversionPixelStore','AdsCFConversionPixelViewActions','AdsConversionPixelSnippetSharer.react','React','SubscriptionsHandler'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=k.PropTypes,n=k.createClass({displayName:'AdsCFPixelSnippetSharer',propTypes:{pixel:m.object.isRequired,placement:m.string.isRequired},componentWillMount:function(){this.subscriptions=new l();this.subscriptions.addSubscriptions(h.subscribe('change',this._handleChange));},componentWillUnmount:function(){this.subscriptions.release();},getInitialState:function(){return {showCodeInMessage:false};},render:function(){var o=h.getState(this.props.placement);return (k.createElement(j,{pixel:this.props.pixel,viewMode:o.viewMode,recipients:o.recipients,personalMessage:o.personalMessage,onViewModeChange:this._handleViewModeChange,onAddNewRecipient:this._handleAddNewRecipient,onRemoveRecipient:this._handleRemoveRecipient,onPersonalMessageChange:this._handlePersonalMessageChange}));},_handleAddNewRecipient:function(o){i.addEmailRecipient(this.props.placement,o);},_handleRemoveRecipient:function(o){i.removeEmailRecipient(this.props.placement,o);},_handleViewModeChange:function(o){i.setSnippetViewMode(this.props.placement,o);},_handlePersonalMessageChange:function(o){i.setEmailPersonalMessage(this.props.placement,o);},_handleChange:function(){var o=h.getPlacement();if(o===this.props.placement)this.forceUpdate();}});f.exports=n;},null);
__d('AdsCFPixelStatus.react',['AdInterfacesUiLogger','AdsCFAccountStore','AdsCFActionTypes','AdsCFConstants','AdsCFConversionPixelStore','AdsCFConversionPixelViewActions','AdsCFLogger','AdsCFObjectiveActions','AdsCFObjectiveConfirmationStore','AdsCFPixelDataLoader','AdsCFPixelSnippetDialog.react','AdsCFPixelSnippetSharer.react','AdsCFPricingViewActions','AdsConversionPixelStatusToText','AdsConversionPixelStatusUI','AdsDispatcher','AdsObjectivesConfig','AdsOffsiteConversionConstants','AsyncRequest','Image.react','LeftRight.react','Link.react','React','SubscriptionsHandler','XUIButton.react','XUIGrayText.react','XUISpinner.react','adsGKCheck','cx','fbt','ix'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la){'use strict';if(c.__markCompiled)c.__markCompiled();var ma=da.PropTypes,na=y.statuses,oa={};oa[na.INACTIVE]=la('/images/ads/createflow/orange-alert.png');oa[na.UNVERIFIED]=la('/images/ads/createflow/red-alert.png');var pa=da.createClass({displayName:'AdsCFPixelStatus',propTypes:{kpiObjective:ma.string,pixel:ma.object,pixelStatusToText:ma.object.isRequired,placement:ma.string.isRequired,showNewVersion:ma.bool,verifyMode:ma.oneOf(['dialog','inline']).isRequired},componentWillMount:function(){this.subscriptions=new ea();this.subscriptions.addSubscriptions(l.subscribe('change',this._handleChange));},componentWillUnmount:function(){this.subscriptions.release();},getInitialState:function(){return {isRefreshing:false};},render:function(){return (da.createElement('div',{className:"_5y_p"},this._renderWarningMessage(),this._renderExplanation(),this._renderContinueButton(),this._renderInProductSupport()));},_renderWarningIcon:function(){var qa=v.getStatus(this.props.pixel);if(oa[qa])return da.createElement(aa,{src:oa[qa]});},_renderWarningMessage:function(){if(!this.props.pixel)return null;var qa=v.getStatus(this.props.pixel),ra=u.getOptionalPixelStatusToText();if(this.props.showNewVersion?!ra[qa]:!this.props.pixelStatusToText[qa])return null;if(this.props.showNewVersion)return (da.createElement('div',{className:"_57yz _57z1"},da.createElement('div',{className:"_498p"},ka._("{warning message} {help link}.",[ka.param('warning message',ra[qa]),ka.param('help link',da.createElement(ca,{href:'https://www.facebook.com/help/www/435189689870514/',target:'_blank'},ka._("Learn more")))]))));return (da.createElement(ba,{direction:'left'},this._renderWarningIcon(),da.createElement('div',{className:"_5y_o"},this.props.pixelStatusToText[qa],this._renderVerify())));},_renderExplanation:function(){if(!this.props.showNewVersion)return null;var qa=null;if(!this.props.pixel){qa=ka._("Use a conversion-tracking pixel to measure actions people take after they view your ad.");}else if(v.getStatus(this.props.pixel)===na.ACTIVE){qa=ka._("Use your conversion pixel to track actions people take after they view your ad.");}else return null;var ra=ka._("{explanation text} {help link}.",[ka.param('explanation text',qa),ka.param('help link',da.createElement(ca,{href:'/help/435189689870514/',target:'_blank'},ka._("Learn more")))]);return (da.createElement('div',{className:"_498q"},ra));},_renderInProductSupport:function(){if(!this.props.pixel||v.getStatus(this.props.pixel)!==na.UNVERIFIED||!ia('conversion_pixel_support_create_flow')||p.getIsKPIObjectiveConfirmed())return null;n.logOnce('conversion_pixel_support_seen');return (da.createElement('div',{className:"_2piv"},da.createElement('p',null,da.createElement(ga,{shade:'medium',weight:'bold'},ka._("Need help with your conversion pixel?")),' ',ka._("Get free one-on-one help from a Facebook Ads expert.")),da.createElement(ca,{href:'/help/contact/601610913318484',onClick:this._onHelpClicked},ka._("Schedule a Call"))));},_onHelpClicked:function(event){new z().setURI('/ajax/help/contact/601610913318484').send();event.preventDefault();},_renderVerify:function(){var qa=this.props.pixel,ra=this.props.placement;if(this.props.verifyMode==='dialog')return (da.createElement('div',{className:"_5y_q"},ka._("{=Refresh} or {=Verify Now}",[ka.param('=Refresh',da.createElement(ca,{onClick:this._handleRefreshPixelStatus},ka._("Refresh"))),ka.param('=Verify Now',da.createElement(r,{pixel:qa,placement:ra}))]),this._renderLoadingIndicator()));if(this.props.verifyMode==='inline')return (da.createElement(s,{pixel:qa,placement:ra}));},_renderContinueButton:function(){if(this.props.verifyMode!=='inline')return null;var qa=this.props.showNewVersion||this.props.pixel&&(v.getStatus(this.props.pixel)===na.ACTIVE||l.canContinue(this.props.placement));return (da.createElement('div',{className:"_5y-w"},da.createElement(fa,{'aria-label':x.getContinueTooltip(this.props.kpiObjective),'data-hover':'tooltip',disabled:!qa,key:'continueButton',label:ka._("Continue"),onClick:this._handleContinue,size:'xlarge',use:qa?'confirm':'default'})));},_renderLoadingIndicator:function(){if(!this.state.isRefreshing)return null;return (da.createElement(ha,{className:"_5y_r",background:'light',display:'inline'}));},_handleContinue:function(){if(this.props.pixel&&v.getStatus(this.props.pixel)!==na.ACTIVE)m.confirmSnippetView(this.props.placement);o.confirmKPIObjective(true);},_handleRefreshPixelStatus:function(){h.log('ads_pixel_conversion_pixel_select_install_method_verify_now');this.setState({isRefreshing:true});q.loadPixels(i.getAccountID(),true).then((function(qa){w.handleUpdateFromServerResponse({pixels:qa.data,type:j.CONVERSION_PIXELS_CHANGE});t.setConversionPixel(k.CanonicalID,this.props.pixel.id);v.resetTime();this.setState({isRefreshing:false});}).bind(this));},_handleChange:function(){var qa=l.getPlacement();if(qa===this.props.placement)this.forceUpdate();}});f.exports=pa;},null);
__d('AdsCreativeDelegate',['AdCreativeType','AdmgrUserSettings','AdsCallToActionTypes','AdsCFConstants','AdsCFCreativeUtils','AdsCFUserStore','AdsCreationConfig','AdsObjectiveDelegate','AdsObjectiveDelegateTypes','Set','URI','ads-lib-urllib','adsGKCheck','abstractMethod','ex','fbt','AdsCanvasAppEngagementCreativeDelegate','AdsCanvasAppInstallsCreativeDelegate','AdsEventResponsesCreativeDelegate','AdsLocalAwarenessCreativeDelegate','AdsMobileAppEngagementCreativeDelegate','AdsMobileAppInstallsCreativeDelegate','AdsOfferClaimsCreativeDelegate','AdsPageLikesCreativeDelegate','AdsPostEngagementCreativeDelegate','AdsVideoViewsCreativeDelegate','AdsWebsiteClicksCreativeDelegate','AdsWebsiteConversionsCreativeDelegate','AdsCFCreativePlacementUtils'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w){if(c.__markCompiled)c.__markCompiled();var x,y;'use strict';function z(ba){if(!ba)return ba;var ca=new r(ba);if(ca.getDomain())return ba;ca.setDomain('www.facebook.com');ca.setProtocol('https');return ca.toString();}x=babelHelpers.inherits(aa,o);y=x&&x.prototype;aa.getDelegateType=function(){return p.CREATIVE;};aa.getDelegateClasses=function(){return [c('AdsCanvasAppEngagementCreativeDelegate'),c('AdsCanvasAppInstallsCreativeDelegate'),c('AdsEventResponsesCreativeDelegate'),c('AdsLocalAwarenessCreativeDelegate'),c('AdsMobileAppEngagementCreativeDelegate'),c('AdsMobileAppInstallsCreativeDelegate'),c('AdsOfferClaimsCreativeDelegate'),c('AdsPageLikesCreativeDelegate'),c('AdsPostEngagementCreativeDelegate'),c('AdsVideoViewsCreativeDelegate'),c('AdsWebsiteClicksCreativeDelegate'),c('AdsWebsiteConversionsCreativeDelegate')];};aa.prototype.isImageCreative=function(ba){return !!ba.imageList;};aa.prototype.isVideoCreative=function(ba){return !!ba.isVideoCreative;};aa.prototype.getSupportedMediaFormats=function(ba){return new q();};aa.prototype.isEventTicketCreative=function(ba){return false;};aa.prototype.allowUsingExistingPost=function(ba){return false;};aa.prototype.getActorFromSpec=function(ba){return null;};aa.prototype.getCreativeFields=function(ba){throw new Error(v('objective "${this.getObjective()}" has not defined '+'getCreativeFields'));};aa.prototype.getHeaderTitle=function(ba){return w._(["What text and links do you want to use?","ed2c54a3bc809c813bc2594f72eec4bc"]);};aa.prototype.getPageTypeaheadDescription=function(ba,ca){throw new Error(v('objective "${this.getObjective()}" has not defined '+'getPageTypeaheadDescription'));};aa.prototype.isLPPAd=function(ba){return false;};aa.prototype.isMPAEligible=function(){return false;};aa.prototype.isMPA=function(ba){return false;};aa.prototype.getDestinationID=function(ba,ca,da){return u('AdsCreativeDelegate','getDestinationID');};aa.prototype.getDestinationURL=function(ba,ca){return u('AdsCreativeDelegate','getDestinationURL');};aa.prototype.getLink=function(ba){return z(ba.linkUrl);};aa.prototype.getCTALink=function(ba){return ba.linkUrl;};aa.prototype.getEventID=function(ba){return null;};aa.prototype.getDefaultCreativeData=function(ba,ca,da,ea,fa,ga){return l.getDefaultCreativeData(ba,this.getObjective(),ca,da,ea,fa,ga);};aa.prototype.getDefaultCreativeSectionEditMode=function(ba){return k.CreativeSectionEditMode.CREATE_NEW_AD;};aa.prototype.getDefaultActor=function(ba,ca,da){var ea=m.getAvailableActors()||[],fa=ca.relatedFanPage;fa=fa?String(fa):'';var ga=ea.filter(function(ka){return ka.id===fa;})[0];if(!ga&&ea.length){if(da){var ha=s.getDomain(da);if(ha)ea.forEach(function(ka){if(s.getDomain(ka.website)===ha)ga=ka;});}if(!ga&&t('use_last_used_page_in_creation_flow')){var ia=n.admgr_settings,ja=ia[i.LAST_USED_PAGE];if(ja)ea.some(function(ka){if(ka.id===ja){ga=ka;return true;}});}if(!ga)ga=ea[0];}return ga;};aa.prototype.getDefaultAdCreativeType_DEPRECATED=function(){return h.AD_CREATIVE_TYPE.FEED_URL;};aa.prototype.getImageLibraryTabsConfig=function(){return [];};aa.prototype.shouldShowSlideshowButtonAndNote=function(){return false;};aa.prototype.shouldAllowStockImagesInEditMode=function(){return true;};aa.prototype.getDisabledCallToActionTypes=function(ba){var ca=[];if(c('AdsCFCreativePlacementUtils').isOnlyIGEnabled(ba,this.getObjective()))ca.push(j.TYPES.DONATE_NOW.name);return ca;};function aa(){x.apply(this,arguments);}f.exports=aa;},null);
__d('AdsAppCreativeDelegate',['AdCreativeType','AdsAPIAdgroupPaths','AdsAPIPromotedObjectFields','AdsCreativeDelegate','ApiAdCreativeFields','ApiAdCreativeStorySpecFields','ApiObjectStorySpecLinkChildFields'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o,p;'use strict';o=babelHelpers.inherits(q,k);p=o&&o.prototype;q.prototype.isLPPAd=function(r){return true;};q.prototype.isMPA=function(r){return !!r.isMPA;};q.prototype.getActorFromSpec=function(r){return r.getIn(i.CREATIVE.OBJECT_STORY_SPEC.PAGE_ID);};q.prototype.getDefaultAdCreativeType_DEPRECATED=function(){return h.AD_CREATIVE_TYPE.NEKO_LPP;};q.prototype.getDestinationID=function(r,s,t){return null;};q.prototype.getDestinationURL=function(r,s){if(s)return s[j.OBJECT_STORE_URL];var t=r[l.OBJECT_STORY_SPEC],u=t[m.LINK_DATA];return u[n.LINK];};q.prototype.shouldAllowStockImagesInEditMode=function(){return false;};function q(){o.apply(this,arguments);}f.exports=q;},null);
__d('AdsMediaFormat',['keyMirror'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=h({IMAGE:null,VIDEO:null});f.exports=i;},null);
__d('AdsCanvasAppCreativeDelegate',['AdsAccountCapabilities','AdsAccountUtils','AdsAppCreativeDelegate','AdsMediaFormat','Set','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n,o;'use strict';n=babelHelpers.inherits(p,j);o=n&&n.prototype;p.prototype.getPageTypeaheadDescription=function(q,r){var s=q.length?m._("Choose a Facebook Page so you can run ads on Facebook."):m._("Create a Facebook Page so you can run ads on Facebook.");return m._("{sentence1} {sentence2}",[m.param('sentence1',s),m.param('sentence2',m._("Your ad will link to your app, but it will show as coming from your Facebook Page."))]);};p.prototype.getSupportedMediaFormats=function(q){if(i.hasCapability(q,h.NEKO_ACT_CANVAS_VIDEO))return new l([k.IMAGE,k.VIDEO]);return new l([k.IMAGE]);};function p(){n.apply(this,arguments);}f.exports=p;},null);
__d('AdsCanvasAppEngagementCreativeDelegate',['AdsAPIObjectives','AdsCanvasAppCreativeDelegate','AdsCFConstants','AdsCFCreativeCanvasAppEngagementFields.react','React'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m,n;'use strict';var o=j.DestinationTypes;m=babelHelpers.inherits(p,i);n=m&&m.prototype;p.prototype.getCreativeFields=function(q){var r=q.accountID,s=q.availableActors,t=q.campaign,u=q.creative,v=q.destinationDetails,w=q.errorSpec,x=q.pixelID,y=q.pixels,z=o.app;return (l.createElement(k,{accountID:r,availableActors:s,campaign:t,creative:u,destinationDetails:v,errorSpec:w,objective:this.getObjective(),pixelID:x,pixels:y,typeName:z}));};p.getObjective=function(){return h.CANVAS_APP_ENGAGEMENT;};function p(){m.apply(this,arguments);}f.exports=p;},null);
__d('AdsMobileAppEngagementCreativeDelegate',['AdsAPIObjectives','AdsCFConstants','AdsCFCreativeMobileAppEngagementFields.react','AdsCFCreativeMobileAppMPAFields.react','AdsMobileAppCreativeDelegate','React','adsGKCheck','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){if(c.__markCompiled)c.__markCompiled();var p,q;'use strict';var r=i.DestinationTypes;p=babelHelpers.inherits(s,l);q=p&&p.prototype;s.prototype.getCreativeFields=function(t){var u=t.accountID,v=t.availableActors,w=t.campaign,x=t.creative,y=t.errorSpec,z=t.destinationDetails,aa=t.pixelID,ba=t.pixels,ca=r.app;if(this.isMPA(x))return (m.createElement(k,{accountID:u,availableActors:v,campaign:w,creative:x,destinationDetails:z,errorSpec:y,objective:this.getObjective(),pixelID:aa,pixels:ba,typeName:ca}));return (m.createElement(j,{accountID:u,availableActors:v,campaign:w,creative:x,destinationDetails:z,errorSpec:y,objective:this.getObjective(),pixelID:aa,pixels:ba,typeName:ca}));};s.getObjective=function(){return h.MOBILE_APP_ENGAGEMENT;};s.prototype.getHeaderTitle=function(t){if(this.isMPA(t))return o._("What images and links do you want to use?");return q.getHeaderTitle.call(this,t);};s.prototype.isImageCreative=function(t){if(this.isMPA(t))return false;return q.isImageCreative.call(this,t);};s.prototype.isMPAEligible=function(){return n('ads_cf_mpa_app_eng');};function s(){p.apply(this,arguments);}f.exports=s;},null);
__d('AdsMobileAppInstallsCreativeDelegate',['AdsAPIObjectives','AdsCFConstants','AdsCFCreativeMobileAppInstallFields.react','AdsCFCreativeMobileAppMPAFields.react','AdsMobileAppCreativeDelegate','React','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o,p;'use strict';var q=i.DestinationTypes;o=babelHelpers.inherits(r,l);p=o&&o.prototype;r.prototype.getCreativeFields=function(s){var t=s.accountID,u=s.availableActors,v=s.campaign,w=s.creative,x=s.destinationDetails,y=s.errorSpec,z=s.pixelID,aa=s.pixels,ba=q.app;if(this.isMPA(w))return (m.createElement(k,{accountID:t,availableActors:u,campaign:v,creative:w,destinationDetails:x,errorSpec:y,objective:this.getObjective(),pixelID:z,pixels:aa,typeName:ba}));return (m.createElement(j,{accountID:t,availableActors:u,campaign:v,creative:w,destinationDetails:x,errorSpec:y,objective:this.getObjective(),pixelID:z,pixels:aa,typeName:ba}));};r.prototype.getHeaderTitle=function(s){if(this.isMPA(s))return n._("What images and links do you want to use?");return p.getHeaderTitle.call(this,s);};r.getObjective=function(){return h.MOBILE_APP_INSTALLS;};r.prototype.isImageCreative=function(s){if(this.isMPA(s))return false;return p.isImageCreative.call(this,s);};r.prototype.isMPAEligible=function(){return true;};function r(){o.apply(this,arguments);}f.exports=r;},null);
__d('AdsEventResponsesCreativeDelegate',['AdCreativeType','AdsAPIAdgroupPaths','AdsAPIObjectives','AdsCFConstants','AdsCFCreativeEventFields.react','AdsCFCreativePlacementUtils','AdsCFUserStore','AdsCreativeDelegate','AdsMediaFormat','ApiAdCreativeFields','ApiAdCreativeStorySpecFields','ApiObjectStorySpecLinkChildFields','React','Set','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){if(c.__markCompiled)c.__markCompiled();var w,x;'use strict';var y=m.isNewsFeedDisabled,z=k.DestinationTypes;w=babelHelpers.inherits(aa,o);x=w&&w.prototype;aa.prototype.getActorFromSpec=function(ba){return ba.getIn(i.CREATIVE.OBJECT_STORY_SPEC.PAGE_ID);};aa.prototype.getCreativeFields=function(ba){var ca=ba.accountID,da=ba.availableActors,ea=ba.campaign,fa=ba.creative,ga=ba.errorSpec;return (t.createElement(l,{accountID:ca,availableActors:da,campaign:ea,creative:fa,errorSpec:ga,objective:this.getObjective(),typeName:z.event}));};aa.prototype.isLPPAd=function(ba){return !y(ba,this.getObjective());};aa.prototype.getDestinationID=function(ba,ca,da){return null;};aa.prototype.getDestinationURL=function(ba,ca){var da=ba[q.OBJECT_STORY_SPEC],ea=da[r.LINK_DATA];if(da)return ea[s.LINK];return ba[q.LINK_URL];};aa.getObjective=function(){return j.EVENT_RESPONSES;};aa.prototype.getPageTypeaheadDescription=function(ba,ca){var da=ba.length?v._("Choose a Facebook Page so you can run ads on Facebook."):v._("Create a Facebook Page so you can run ads on Facebook.");return v._("{sentence1} {sentence2}",[v.param('sentence1',da),v.param('sentence2',v._("Your ad will link to your event, but it will show as coming from your Facebook Page."))]);};aa.prototype.getDefaultActor=function(ba,ca,da){var ea=n.getAvailableActors()||[],fa=ea.some(function(ga){return (ga.id===ca.eventCreatorId);});return fa?{id:ca.eventCreatorId}:x.getDefaultActor.call(this,ba,ca,da);};aa.prototype.getDefaultAdCreativeType_DEPRECATED=function(){return h.AD_CREATIVE_TYPE.INLINE_RSVP;};aa.prototype.getSupportedMediaFormats=function(ba){return new u([p.IMAGE]);};function aa(){w.apply(this,arguments);}f.exports=aa;},null);
__d('AdsCFImageLibraryProviderType',['keyMirror'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=h({ACTOR_PAGE:null,DESTINATION:null,DESTINATION_PAGE:null});f.exports=i;},null);
__d('AdsCFImageLibraryUtil',['AdsDaoGraph','AdsImageLegacy','AdsImageCollectionViews','keyMirror'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l=k({REPLACE:null,APPEND:null}),m={InsertMode:l,promiseImagesForAccount:function(n,o){o=Object.assign({limit:100,fields:['hash','height','url','url_128','width']},o);var p=function(q){var r=q.map(function(s){return new i(s);});n.clearImagesByViewBitmask(j.views.LIBRARY);n.addImagesToBack(r,j.views.LIBRARY);return n;};return h.fetch.imagesForAccount.promiseOne(o).then(p);},fetchImagesForAccount:function(n,o,p){var q=m.promiseImagesForAccount(n,o);if(p)q.then(p);},searchStockImages:function(n,o){o=Object.assign({locale:'user'},o);var p=(function(q,r){n(this.convertStockImages(q),r);}).bind(this);h.fetch.stockImages.paged(p,o);},convertStockImages:function(n){return n.map(function(o){return new i({stockImageID:o.id,url:o.thumbnail.url,thumbWidth:o.thumbnail.width,thumbHeight:o.thumbnail.height,previewUrl:o.preview.url,previewWidth:o.preview.width,previewHeight:o.preview.height});});},promisePhotosForPage:function(n,o,p){var q=Object.assign({pageID:o},p&&p.daoParams||null);return h.fetch.photosForPage.promiseOne(q).then(function(r){return {adsImages:r.map(function(s){return new i({url:s.source,url_128:s.picture,width:s.width,height:s.height});})};},function(r){return {adsImages:[],errData:r};}).then(function(r){var s=r.adsImages,t=p&&p.insertMode||l.REPLACE;if(t===l.REPLACE)n.clearImagesByViewBitmask(j.views.PAGE);n.addImagesToBack(s,j.views.PAGE);if(r.errData){var u=new Error();Object.assign(u,r.errData);throw u;}});}};f.exports=m;},null);
__d('AdsPromotedObjectMigration',['AdsAccountCapabilities','AdsAccountUtils','AdsAPIObjectives','AdsAPIPromotedObjectFields','immutable','adsGKCheck','whitelistObjectKeys'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=m('ads_local_awareness_promoted_object'),p=l.Map([[j.PRODUCT_CATALOG_SALES,null],[j.LOCAL_AWARENESS,h.ADS_LOCAL_AWARENESS_PROMOTED_OBJECT_BY_ACC]]),q=[k.APPLICATION_ID,k.OBJECT_STORE_URL],r=l.Map([[j.CANVAS_APP_ENGAGEMENT,q],[j.CANVAS_APP_INSTALLS,q],[j.MOBILE_APP_ENGAGEMENT,q],[j.MOBILE_APP_INSTALLS,q],[j.OFFER_CLAIMS,[k.OFFER_ID,k.PAGE_ID]],[j.PAGE_LIKES,[k.PAGE_ID]],[j.LOCAL_AWARENESS,[k.PAGE_ID]],[j.LEAD_GENERATION,[k.PAGE_ID]],[j.PRODUCT_CATALOG_SALES,[k.PRODUCT_CATALOG_ID,k.PRODUCT_SET_ID]],[j.WEBSITE_CONVERSIONS,[k.PIXEL_ID,k.CUSTOM_EVENT_TYPE]]]),s={accountSupportsObjective:function(t,u){if(u===j.LOCAL_AWARENESS&&o)return true;var v=p.get(u);return !v||i.hasCapability(t,v);},capabilities:function(){return p.toSet();},filterValues:function(t,u){var v=r.get(u);if(!v)return {};var w=n(t,v);if(!w.custom_event_type)delete w.custom_event_type;return w;},objectiveIsSupported:function(t){return p.has(t);}};f.exports=s;},null);
__d('AdsLocalAwarenessCreativeDelegate',['AdsAPIAdgroupPaths','AdsAPIObjectives','AdsAPIPromotedObjectFields','AdsCallToActionTypes','AdsCFConstants','AdsCFCreativeLocalAwarenessFields.react','AdsCFImageLibraryProviderType','AdsCFImageLibraryUtil','AdsCreativeDelegate','AdsImageCollectionViews','AdsMediaFormat','AdsPromotedObjectMigration','ApiAdCreativeFields','ApiAdCreativeStorySpecFields','React','Set'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w){if(c.__markCompiled)c.__markCompiled();var x,y;'use strict';var z=l.DestinationTypes,aa=k.TYPES.CALL_NOW.name,ba=k.TYPES.GET_DIRECTIONS.name,ca=k.TYPES.LEARN_MORE.name;x=babelHelpers.inherits(da,p);y=x&&x.prototype;da.prototype.getActorFromSpec=function(ea){return ea.getIn(h.CREATIVE.OBJECT_STORY_SPEC.PAGE_ID);};da.prototype.getCreativeFields=function(ea){var fa=ea.accountID,ga=ea.createMode,ha=ea.creative,ia=ea.destinationDetails,ja=ea.destinationID,ka=ea.errorSpec;return (v.createElement(m,{accountID:fa,createMode:ga,creative:ha,destinationDetails:ia,destinationID:ja,errorSpec:ka,objective:this.getObjective(),typeName:z.page}));};da.prototype.isLPPAd=function(ea){return true;};da.prototype.getDestinationID=function(ea,fa,ga){var ha=s.accountSupportsObjective(ga,i.LOCAL_AWARENESS);if(ha&&fa)return fa[j.PAGE_ID];var ia=ea[t.OBJECT_STORY_SPEC];return ia[u.PAGE_ID];};da.prototype.getDestinationURL=function(ea,fa){return null;};da.getObjective=function(){return i.LOCAL_AWARENESS;};da.prototype.getLink=function(ea){if(ea.callToActionType===ca)return ea.callToActionLink||'';return y.getLink.call(this,ea);};da.prototype.getCTALink=function(ea){var fa=ea.callToActionType;if(fa===ba){return ea.getDirectionsUrl||'';}else if(fa===aa){return ea.callNowPhoneNumberView?ea.callNowPhoneNumberView.buildURI():'';}else if(fa===ca)return ea.callToActionLink||'';};da.prototype.getDefaultActor=function(ea,fa,ga){return {id:ea,name:fa.destinationName};};da.prototype.getImageLibraryTabsConfig=function(){return [{insertMode:o.InsertMode.REPLACE,providers:[n.DESTINATION_PAGE],view:q.views.PAGE},{providers:[n.DESTINATION],view:q.views.SCRAPED}];};da.prototype.shouldAllowStockImagesInEditMode=function(){return false;};da.prototype.getSupportedMediaFormats=function(ea){return new w([r.IMAGE]);};function da(){x.apply(this,arguments);}f.exports=da;},null);
__d('AdsOfferClaimsCreativeDelegate',['AdCreativeType','AdsAPIAdgroupPaths','AdsAPIObjectives','AdsCFConstants','AdsCFCreativePagePostsFields.react','AdsCreativeDelegate','AdsPagePostUtils','ApiAdCreativeFields','React'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){if(c.__markCompiled)c.__markCompiled();var q,r;'use strict';var s=k.DestinationTypes;q=babelHelpers.inherits(t,m);r=q&&q.prototype;t.prototype.isImageCreative=function(u){return false;};t.prototype.isVideoCreative=function(u){return false;};t.prototype.getActorFromSpec=function(u){return u.getIn(i.CREATIVE.OBJECT_ID);};t.prototype.getCreativeFields=function(u){var v=u.accountID,w=u.campaign,x=u.createMode,y=u.creative,z=u.errorSpec,aa=u.pixelID,ba=u.pixels,ca=false;if(x===k.CreateMode.EDIT_EXISTING&&w.promotedObject.offerId)ca=true;return (p.createElement(l,{accountID:v,creative:y,errorSpec:z,hidePagePostSelector:ca,objective:this.getObjective(),pixels:ba,pixelID:aa,typeName:s.page}));};t.prototype.getDefaultAdCreativeType_DEPRECATED=function(){return h.AD_CREATIVE_TYPE.PAGE_POSTS_V2;};t.prototype.getDestinationID=function(u,v,w){return n.getPageIdFromPagePostId_BROKEN(u[o.OBJECT_STORY_ID]);};t.prototype.getDestinationURL=function(u,v){return null;};t.getObjective=function(){return j.OFFER_CLAIMS;};function t(){q.apply(this,arguments);}f.exports=t;},null);
__d('AdsPageLikesCreativeDelegate',['AdCreativeType','AdsAPIAdgroupPaths','AdsAPIObjectives','AdsAPIPromotedObjectFields','AdsCFConstants','AdsCFCreativePageLikeFields.react','AdsCFImageLibraryProviderType','AdsCreativeDelegate','AdsImageCollectionViews','AdsMediaFormat','ApiAdCreativeFields','ApiAdCreativeStorySpecFields','React','Set','adsGKCheck'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){if(c.__markCompiled)c.__markCompiled();var w,x;'use strict';var y=l.DestinationTypes;w=babelHelpers.inherits(z,o);x=w&&w.prototype;z.prototype.getActorFromSpec=function(aa){return aa.getIn(i.CREATIVE.OBJECT_ID);};z.prototype.getCreativeFields=function(aa){var ba=aa.accountID,ca=aa.creative,da=aa.destinationDetails,ea=aa.errorSpec;return (t.createElement(m,{accountID:ba,creative:ca,destinationDetails:da,errorSpec:ea,objective:this.getObjective(),typeName:y.page}));};z.prototype.getDestinationID=function(aa,ba,ca){if(ba)return ba[k.PAGE_ID];var da=aa[r.OBJECT_STORY_SPEC];if(da)return da[s.PAGE_ID];return aa[r.OBJECT_ID];};z.prototype.getDestinationURL=function(aa,ba){return null;};z.getObjective=function(){return j.PAGE_LIKES;};z.prototype.getDefaultActor=function(aa,ba,ca){return {id:aa,name:ba.destinationName};};z.prototype.getDefaultAdCreativeType_DEPRECATED=function(){return h.AD_CREATIVE_TYPE.INLINE_FAN;};z.prototype.getImageLibraryTabsConfig=function(){return [{providers:[n.DESTINATION,n.DESTINATION_PAGE],view:p.views.PAGE}];};z.prototype.getSupportedMediaFormats=function(aa){return new u([q.IMAGE,q.VIDEO]);};z.prototype.shouldShowSlideshowButtonAndNote=function(){return v('ads_cf_create_slideshow');};function z(){w.apply(this,arguments);}f.exports=z;},null);
__d('AdsPostEngagementCreativeDelegate',['AdCreativeType','AdsAPIAdgroupPaths','AdsAPIObjectives','AdsCFConstants','AdsCFCreativePagePostsFields.react','AdsCreativeDelegate','AdsPagePostUtils','ApiAdCreativeFields','React'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){if(c.__markCompiled)c.__markCompiled();var q,r;'use strict';var s=k.DestinationTypes;q=babelHelpers.inherits(t,m);r=q&&q.prototype;t.prototype.isImageCreative=function(u){return false;};t.prototype.isVideoCreative=function(u){return false;};t.prototype.getActorFromSpec=function(u){return u.getIn(i.CREATIVE.OBJECT_ID);};t.prototype.getCreativeFields=function(u){var v=u.accountID,w=u.creative,x=u.errorSpec,y=u.pixelID,z=u.pixels;return (p.createElement(l,{accountID:v,creative:w,errorSpec:x,objective:this.getObjective(),pixels:z,pixelID:y,typeName:s.page}));};t.prototype.getDefaultAdCreativeType_DEPRECATED=function(){return h.AD_CREATIVE_TYPE.PAGE_POSTS_V2;};t.prototype.getDestinationID=function(u,v,w){return n.getPageIdFromPagePostId_BROKEN(u[o.OBJECT_STORY_ID]);};t.prototype.getDestinationURL=function(u,v){return null;};t.getObjective=function(){return j.POST_ENGAGEMENT;};function t(){q.apply(this,arguments);}f.exports=t;},null);
__d('AdsWebsiteCreativeDelegate',['AdsAPIAdgroupPaths','AdsCallToActionTypes','AdsCFConstants','AdsCFCreativePlacementUtils','AdsCFCreativeStandardFields.react','AdsCFCreativeUtils','AdsCFCreativeWebsiteEventTicketFields.react','AdsCFCreativeWebsiteLPPFields.react','AdsCFCreativeWebsiteMPAFields.react','AdsCFCreativeWebsiteUsingExistingPostFields.react','AdsCFImageLibraryProviderType','AdsCFImageLibraryUtil','AdsCreativeDelegate','AdsImageCollectionViews','AdsMediaFormat','ApiAdCreativeFields','ApiAdCreativeStorySpecFields','ApiCallToActionFields','ApiObjectStorySpecLinkChildFields','CallToActionValueFields','React','Set','adsGKCheck','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea){if(c.__markCompiled)c.__markCompiled();var fa,ga;'use strict';var ha=k.isNewsFeedDisabled,ia=j.DestinationTypes;fa=babelHelpers.inherits(ja,t);ga=fa&&fa.prototype;ja.prototype.getCreativeFields=function(ka){var la=ka.accountID,ma=ka.availableActors,na=ka.campaign,oa=ka.createMode,pa=ka.creative,qa=ka.errorSpec,ra=ka.isUsingExistingPost,sa=ka.pageTypeaheadSearchSource,ta=ka.pixelID,ua=ka.pixels;if(ra)return (ba.createElement(q,{accountID:la,availableActors:ma,campaign:na,createMode:oa,creative:pa,errorSpec:qa,isUsingExistingPost:ra,objective:this.getObjective(),pageTypeaheadSearchSource:sa,pixelID:ta,pixels:ua,typeName:ia.url}));if(this.isMPA(pa))return (ba.createElement(p,{accountID:la,availableActors:ma,campaign:na,createMode:oa,creative:pa,errorSpec:qa,objective:this.getObjective(),pageTypeaheadSearchSource:sa,pixelID:ta,pixels:ua,typeName:ia.url}));if(this.isEventTicketCreative(pa))return (ba.createElement(n,{accountID:la,availableActors:ma,campaign:na,createMode:oa,creative:pa,errorSpec:qa,objective:this.getObjective(),pageTypeaheadSearchSource:sa,pixelID:ta,pixels:ua,typeName:ia.url}));if(this.isLPPAd(pa))return (ba.createElement(o,{accountID:la,availableActors:ma,campaign:na,createMode:oa,creative:pa,errorSpec:qa,objective:this.getObjective(),pageTypeaheadSearchSource:sa,pixelID:ta,pixels:ua,typeName:ia.url}));return (ba.createElement(l,{accountID:la,availableActors:ma,campaign:na,createMode:oa,creative:pa,errorSpec:qa,objective:this.getObjective(),pageTypeaheadSearchSource:sa,pixelID:ta,pixels:ua,typeName:ia.url}));};ja.prototype.getHeaderTitle=function(ka){if(this.isMPA(ka))return ea._("What images and links do you want to use?");return ga.getHeaderTitle.call(this,ka);};ja.prototype.isImageCreative=function(ka){if(this.isMPA(ka))return false;return ga.isImageCreative.call(this,ka);};ja.prototype.isLPPAd=function(ka){return (m.isVideoCreative(ka)||!ha(ka,this.getObjective())||ka.isMPA);};ja.prototype.isMPA=function(ka){return !!ka.isMPA;};ja.prototype.isEventTicketCreative=function(ka){return !!ka.eventID;};ja.prototype.isMPAEligible=function(){return true;};ja.prototype.allowUsingExistingPost=function(ka){return da('ads_creation_website_using_existing_page_post');};ja.prototype.getDestinationID=function(ka,la,ma){return null;};ja.prototype.getDestinationURL=function(ka,la){var ma=ka[w.OBJECT_STORY_SPEC];if(ma){var na=ma[x.VIDEO_DATA];if(na){var oa=na[x.CALL_TO_ACTION];if(oa&&oa[y.VALUE]){var pa=oa[y.VALUE];return pa[aa.LINK];}return null;}var qa=ma[x.LINK_DATA];return qa[z.LINK];}return ka[w.OBJECT_URL];};ja.prototype.getPageTypeaheadDescription=function(ka,la){var ma=ka.length?ea._("Choose a Facebook Page to represent your business in News Feed."):ea._("Create a Facebook Page to represent your business in News Feed."),na=la?ea._("You will be able to select any post from this page."):ea._("Your ad will link to your site, but it will show as coming from your Facebook Page.");return ea._("{sentence1} {sentence2}",[ea.param('sentence1',ma),ea.param('sentence2',na)]);};ja.prototype.getDefaultCreativeData=function(ka,la,ma,na,oa,pa){var qa=ga.getDefaultCreativeData.call(this,ka,la,ma,na,oa,pa);if(this.isEventTicketCreative(na))qa.callToActionType=i.TYPES.BUY_TICKETS.name;return qa;};ja.prototype.getImageLibraryTabsConfig=function(){return [{insertMode:s.InsertMode.REPLACE,providers:[r.ACTOR_PAGE],view:u.views.PAGE},{providers:[r.DESTINATION],view:u.views.SCRAPED}];};ja.prototype.getActorFromSpec=function(ka){return ka.getIn(h.CREATIVE.OBJECT_STORY_SPEC.PAGE_ID);};ja.prototype.shouldAllowStockImagesInEditMode=function(){return false;};ja.prototype.getSupportedMediaFormats=function(ka){return new ca([v.IMAGE,v.VIDEO]);};function ja(){fa.apply(this,arguments);}f.exports=ja;},null);
__d('AdsWebsiteClicksCreativeDelegate',['AdsAPIObjectives','AdsWebsiteCreativeDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.WEBSITE_CLICKS;};l.prototype.getEventID=function(m){return m.eventID;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsWebsiteConversionsCreativeDelegate',['AdsAPIObjectives','AdsWebsiteCreativeDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.WEBSITE_CONVERSIONS;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsPixelTrackingStore',['AdsBaseStore','AdsPixelViewActionTypes'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,h);k=j&&j.prototype;function l(){k.constructor.call(this);this.$AdsPixelTrackingStoreClass1={};}l.prototype.getStoreName=function(){return 'AdsPixelTrackingStore';};l.prototype.onDispatchToken=function(n){var o=n.action;switch(o.actionType){case i.TRACKING_SPEC_CHANGE:this.$AdsPixelTrackingStoreClass1=o.data.trackingSpec;this.inform('change');break;}};l.prototype.getTrackingSpec=function(){return Object.assign({},this.$AdsPixelTrackingStoreClass1);};var m=new l();f.exports=m;},null);
__d('AdsOutputApiSpecDelegate',['AdsAccountStoreWrapper','AdsCFConstants','AdsCFPricingStore','AdsObjectiveDelegate','AdsObjectiveDelegateTypes','AdsPixelTrackingStore','isEmpty','AdsCanvasAppEngagementOutputApiSpecDelegate','AdsCanvasAppInstallsOutputApiSpecDelegate','AdsEventResponsesOutputApiSpecDelegate','AdsLocalAwarenessOutputApiSpecDelegate','AdsMobileAppEngagementOutputApiSpecDelegate','AdsMobileAppInstallsOutputApiSpecDelegate','AdsOfferClaimsOutputApiSpecDelegate','AdsPageLikesOutputApiSpecDelegate','AdsPostEngagementOutputApiSpecDelegate','AdsVideoViewsOutputApiSpecDelegate','AdsWebsiteClicksOutputApiSpecDelegate','AdsWebsiteConversionsOutputApiSpecDelegate'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o,p;'use strict';o=babelHelpers.inherits(q,k);p=o&&o.prototype;q.getDelegateType=function(){return l.OUTPUT_API_SPEC;};q.getDelegateClasses=function(){return [c('AdsCanvasAppEngagementOutputApiSpecDelegate'),c('AdsCanvasAppInstallsOutputApiSpecDelegate'),c('AdsEventResponsesOutputApiSpecDelegate'),c('AdsLocalAwarenessOutputApiSpecDelegate'),c('AdsMobileAppEngagementOutputApiSpecDelegate'),c('AdsMobileAppInstallsOutputApiSpecDelegate'),c('AdsOfferClaimsOutputApiSpecDelegate'),c('AdsPageLikesOutputApiSpecDelegate'),c('AdsPostEngagementOutputApiSpecDelegate'),c('AdsVideoViewsOutputApiSpecDelegate'),c('AdsWebsiteClicksOutputApiSpecDelegate'),c('AdsWebsiteConversionsOutputApiSpecDelegate')];};q.prototype.getConversionSpecs=function(r,s){return [];};q.prototype.getTrackingSpecs=function(){var r=h.canSeeUnifiedPixel()?this.__getUnifiedPixelTrackingSpec():this.__getConversionPixelTrackingSpec();return (r?[r]:[]);};q.prototype.__getUnifiedPixelTrackingSpec=function(){var r=m.getTrackingSpec();if(n(r))return null;var s={};s['action.type']=['offsite_conversion'];if(r.offsite_pixel){s.offsite_pixel=r.offsite_pixel;}else if(r.fb_pixel){s.fb_pixel=r.fb_pixel;}else return null;return s;};q.prototype.__getConversionPixelTrackingSpec=function(){var r=j.getState(i.CanonicalID);if(!r.conversionPixelID)return null;return {'action.type':['offsite_conversion'],offsite_pixel:[r.conversionPixelID]};};q.prototype.getPromotedObjectSpec=function(r,s,t,u){return {};};q.prototype.getPromotedObjectFromAdgroup=function(r){return {};};q.prototype.shouldClearConversionSpecForNonOCPM=function(){return false;};function q(){o.apply(this,arguments);}f.exports=q;},null);
__d('AdsAppOutputApiSpecDelegate',['AdsAPIPromotedObjectFields','ads-app-platforms','AdsCFCreativeStore','AdsCFDestinationStore','AdsOutputApiSpecDelegate'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m,n;'use strict';var o=i.MOBILE_STORE_DESTINATION_TYPE;m=babelHelpers.inherits(p,l);n=m&&m.prototype;p.prototype.getPromotedObjectSpec=function(q,r,s,t){var u={},v=s.mobileStoreDestinationType===o.FB_APPLICATION_ONLY||s.mobileStoreDestinationType===o.FB_MOBILE_STORE_WITH_BACKING_APP;if(v)u[h.APPLICATION_ID]=s.destinationId;u[h.OBJECT_STORE_URL]=q.linkUrl;return u;};function p(){m.apply(this,arguments);}f.exports=p;},null);
__d('AdsCanvasAppOutputApiSpecDelegate',['AdsAppOutputApiSpecDelegate'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i,j;'use strict';i=babelHelpers.inherits(k,h);j=i&&i.prototype;function k(){i.apply(this,arguments);}f.exports=k;},null);
__d('AdsCanvasAppEngagementOutputApiSpecDelegate',['AdsAPIObjectives','AdsCanvasAppOutputApiSpecDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.CANVAS_APP_ENGAGEMENT;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsCanvasAppInstallsOutputApiSpecDelegate',['AdsAPIObjectives','AdsCanvasAppOutputApiSpecDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.CANVAS_APP_INSTALLS;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsMobileAppOutputApiSpecDelegate',['AdsAppOutputApiSpecDelegate'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i,j;'use strict';i=babelHelpers.inherits(k,h);j=i&&i.prototype;function k(){i.apply(this,arguments);}f.exports=k;},null);
__d('AdsMobileAppEngagementOutputApiSpecDelegate',['AdsAPIObjectives','AdsMobileAppOutputApiSpecDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.MOBILE_APP_ENGAGEMENT;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsMobileAppInstallsOutputApiSpecDelegate',['AdsAPIObjectives','ads-app-platforms','AdsCFDestinationStore','AdsMobileAppOutputApiSpecDelegate'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l,m;'use strict';var n=i.MOBILE_STORE_DESTINATION_TYPE;l=babelHelpers.inherits(o,k);m=l&&l.prototype;o.getObjective=function(){return h.MOBILE_APP_INSTALLS;};o.prototype.getConversionSpecs=function(p,q){if(q.mobileStoreDestinationType===n.FB_MOBILE_STORE_ONLY)return [];var r=q.destinationId;if(!r)return [];return [{'action.type':['mobile_app_install'],application:[r]}];};function o(){l.apply(this,arguments);}f.exports=o;},null);
__d('AdsEventResponsesOutputApiSpecDelegate',['AdsAPIObjectives','AdsOutputApiSpecDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.EVENT_RESPONSES;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsLocalAwarenessOutputApiSpecDelegate',['AdsAPIObjectives','AdsAPIPromotedObjectFields','AdsOutputApiSpecDelegate','AdsPromotedObjectMigration'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l,m;'use strict';l=babelHelpers.inherits(n,j);m=l&&l.prototype;n.getObjective=function(){return h.LOCAL_AWARENESS;};n.prototype.getPromotedObjectSpec=function(o,p,q,r){var s=k.accountSupportsObjective(r,this.getObjective()),t={};if(s&&!!o.actor&&!!o.actor.id)t[i.PAGE_ID]=o.actor.id;return t;};function n(){l.apply(this,arguments);}f.exports=n;},null);
__d('AdsOfferClaimsOutputApiSpecDelegate',['AdsAPIObjectives','AdsAPIPromotedObjectFields','AdsOutputApiSpecDelegate'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';k=babelHelpers.inherits(m,j);l=k&&k.prototype;m.getObjective=function(){return h.OFFER_CLAIMS;};m.prototype.getPromotedObjectSpec=function(n,o,p,q){var r={};r[i.PAGE_ID]=n.objectId;return r;};function m(){k.apply(this,arguments);}f.exports=m;},null);
__d('AdsPageLikesOutputApiSpecDelegate',['AdsAdgroupSpecUtils','AdsAPIAdgroupPaths','AdsAPIObjectives','AdsAPIPromotedObjectFields','AdsOutputApiSpecDelegate','getByPath'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n,o;'use strict';n=babelHelpers.inherits(p,l);o=n&&n.prototype;p.getObjective=function(){return j.PAGE_LIKES;};p.prototype.getPromotedObjectSpec=function(q,r,s,t){var u={};if(!!q.actor&&!!q.actor.id)u[k.PAGE_ID]=q.actor.id;return u;};p.prototype.getPromotedObjectFromAdgroup=function(q){var r;if(h.isVideoAd(q)){r=m(q,i.CREATIVE.OBJECT_STORY_SPEC.PAGE_ID);}else r=m(q,i.CREATIVE.OBJECT_ID);var s={};if(r)s[k.PAGE_ID]=r;return s;};function p(){n.apply(this,arguments);}f.exports=p;},null);
__d('AdsPostEngagementOutputApiSpecDelegate',['AdsAPIObjectives','AdsOutputApiSpecDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.POST_ENGAGEMENT;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsVideoViewsOutputApiSpecDelegate',['AdsAPIObjectives','AdsOutputApiSpecDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.VIDEO_VIEWS;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsWebsiteOutputApiSpecDelegate',['AdsOutputApiSpecDelegate'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i,j;'use strict';i=babelHelpers.inherits(k,h);j=i&&i.prototype;function k(){i.apply(this,arguments);}f.exports=k;},null);
__d('AdsWebsiteClicksOutputApiSpecDelegate',['AdsAPIObjectives','AdsWebsiteOutputApiSpecDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.WEBSITE_CLICKS;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsPixelConversionStandardEvents',['ImmutableObject','fbt'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={ViewContent:{name:i._("View Content"),description:i._("Track key page views (ex: product page, landing page or article)"),code:"fbq('track', 'ViewContent');",custom_event_type:'CONTENT_VIEW'},Search:{name:i._("Search"),description:i._("Track searches on your website (ex. product searches)"),code:"fbq('track', 'Search');",custom_event_type:'SEARCH'},AddToCart:{name:i._("Add To Cart"),description:i._("Track when items are added to a shopping cart (ex. click\/landing page on Add to Cart button)"),code:"fbq('track', 'AddToCart');",custom_event_type:'ADD_TO_CART'},AddToWishlist:{name:i._("Add To Wishlist"),description:i._("Track when items are added to a wishlist (ex. click\/landing page on Add to Wishlist button)"),code:"fbq('track', 'AddToWishlist');",custom_event_type:'ADD_TO_WISHLIST'},InitiateCheckout:{name:i._("Initiate Checkout"),description:i._("Track when people enter the checkout flow (ex. click\/landing page on checkout button)"),code:"fbq('track', 'InitiateCheckout');",custom_event_type:'INITIATED_CHECKOUT'},AddPaymentInfo:{name:i._("Add Payment Info"),description:i._("Track when payment information is added in the checkout flow (ex. click\/landing page on billing info)"),code:"fbq('track', 'AddPaymentInfo');",custom_event_type:'ADD_PAYMENT_INFO'},Purchase:{name:i._("Purchase"),description:i._("Track purchases or checkout flow completions (ex. landing on \"Thank You\" or confirmation page)"),code:"fbq('track', 'Purchase', {value: '0.00', currency: 'USD'});",custom_event_type:'PURCHASE'},Lead:{name:i._("Lead"),description:i._("Track when a user expresses interest in your offering (ex. form submission, sign up for trial, landing on pricing page)"),code:"fbq('track', 'Lead');",custom_event_type:'LEAD'},CompleteRegistration:{name:i._("Complete Registration"),description:i._("Track when a registration form is completed (ex. complete subscription, sign up for a service)"),code:"fbq('track', 'CompleteRegistration');",custom_event_type:'COMPLETE_REGISTRATION'}};f.exports=new h(j);},null);
__d('AdsPixelConversionTypes',['keyMirror'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i={NEW:null,LEGACY:null},j=h(i);f.exports=j;},null);
__d('AdsPixelConversionStore',['AdsBaseStore','AdsPEActionTypes','AdsPixelConversionStandardEvents','AdsPixelConversionTypes','AdsPixelGraphAPI','AdsPixelServerActionTypes','AdsPixelStats','AdsPixelStatsTypes','AdsPixelStore','AdsPixelViewActionTypes','ImmutableObject'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){if(c.__markCompiled)c.__markCompiled();var s,t;'use strict';s=babelHelpers.inherits(u,h);t=s&&s.prototype;function u(){t.constructor.call(this);this.$AdsPixelConversionStoreClass1();}u.prototype.$AdsPixelConversionStoreClass1=function(){this.$AdsPixelConversionStoreClass2={};this.$AdsPixelConversionStoreClass3={};this.$AdsPixelConversionStoreClass4={};this.$AdsPixelConversionStoreClass5={};};u.prototype.getStoreName=function(){return 'AdsPixelConversionStore';};u.prototype.onDispatchToken=function(w){var x=w.action;switch(x.actionType){case q.UPDATE_CONVERSION_CHOICE:this.$AdsPixelConversionStoreClass6=x.data.conversion&&x.data.conversion.getAuxiliaryData();this.inform('change');break;case m.RECEIVE_PIXEL_STATS:if(x.statsType!==o.EVENT)break;this.$AdsPixelConversionStoreClass7(x.feedback.pixelID,x.feedback.stats);this.inform('change');break;case i.ACCOUNT.SELECT:this.$AdsPixelConversionStoreClass1();this.inform('change');break;}};u.prototype.getConversionChoice=function(){return this.$AdsPixelConversionStoreClass6;};u.prototype.getConversion=function(w){var x=this.getConversions(),y=w.pixel_id+'_'+w.custom_event_type;return x[y]?x[y]:null;};u.prototype.getConversions=function(){var w=p.getPixelIDs();w.forEach((function(y){this.$AdsPixelConversionStoreClass8(y);}).bind(this));var x={};Object.keys(this.$AdsPixelConversionStoreClass3).forEach((function(y){var z=this.$AdsPixelConversionStoreClass3[y];Object.keys(z).forEach(function(aa){var ba=j[aa].custom_event_type;x[y+'_'+ba]=new r(z[aa]);});}).bind(this));return x;};u.prototype.getIsPixelHasActiveEvents=function(w){this.$AdsPixelConversionStoreClass8(w);return this.$AdsPixelConversionStoreClass4[w]||false;};u.prototype.$AdsPixelConversionStoreClass8=function(w){if(!this.$AdsPixelConversionStoreClass2[w]){this.$AdsPixelConversionStoreClass2[w]=true;this.$AdsPixelConversionStoreClass9(w);l.loadStats(o.EVENT,w);}};u.prototype.$AdsPixelConversionStoreClass9=function(w){this.$AdsPixelConversionStoreClass3[w]={};Object.keys(j).forEach((function(x){this.$AdsPixelConversionStoreClass3[w][x]={name:j[x].name,description:j[x].description,value:x,pixelID:w,type:k.NEW};}).bind(this));};u.prototype.$AdsPixelConversionStoreClass7=function(w,x){if(!this.$AdsPixelConversionStoreClass2[w]){this.$AdsPixelConversionStoreClass2[w]=true;this.$AdsPixelConversionStoreClass9(w);}this.$AdsPixelConversionStoreClass5[w]=true;var y=new n(x,o.EVENT),z=y.getTableDataForAllDateChoices().LAST_14_DAYS;Object.keys(z).forEach((function(event){if(event in this.$AdsPixelConversionStoreClass3[w]){this.$AdsPixelConversionStoreClass3[w][event].lastFiredTime=z[event].lastFiredTime;this.$AdsPixelConversionStoreClass4[w]=true;}}).bind(this));};u.prototype.isAllConversionStatsReceived=function(){return Object.keys(this.$AdsPixelConversionStoreClass2).every((function(w){if(!this.$AdsPixelConversionStoreClass5[w])return false;return true;}).bind(this));};var v=new u();f.exports=v;},null);
__d('AdsPixelOptimizationUtil',['AdsPixelConversionTypes','AdsPixelConversionStandardEvents','PixelConversionEventSubtype','AdsPixelConversionStore'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l={getOptimizationSpec:function(m){var n=k.getConversionChoice(),o=this._getPixelID(m);if(!o)return {};var p={};p['action.type']=['offsite_conversion'];if(n&&n.type===h.NEW){if(n.pixel_rule!==undefined){p.conversion_id=[n.id];}else{p.fb_pixel=[o];p.fb_pixel_event=[j[n.value]];}}else p.offsite_pixel=[o];return p;},getPromotedObjectSpec:function(m){var n=k.getConversionChoice();return n?this.getUnifiedPixelPromotedObject(n):this._getConversionPixelPromotedObject(m);},getUnifiedPixelPromotedObject:function(m){if(!m)return {};var n={};n.pixel_id=m.pixelID;if(m.type===h.NEW)if(m.pixel_rule!==undefined){n.pixel_rule=m.pixel_rule;n.custom_event_type=m.custom_event_type;}else n.custom_event_type=i[m.value].custom_event_type;return n;},_getConversionPixelPromotedObject:function(m){var n=m&&m.id;return n?{pixel_id:n}:{};},_getPixelID:function(m){var n=k.getConversionChoice();return n?n.pixelID:m&&m.id;}};f.exports=l;},null);
__d('AdsWebsiteConversionsOutputApiSpecDelegate',['AdsAPIObjectives','AdsCFConstants','AdsCFPricingStore','AdsPixelConversionStore','AdsPixelConversionTypes','AdsPixelOptimizationUtil','AdsWebsiteOutputApiSpecDelegate'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o,p;'use strict';o=babelHelpers.inherits(q,n);p=o&&o.prototype;q.getObjective=function(){return h.WEBSITE_CONVERSIONS;};q.prototype.__getUnifiedPixelTrackingSpec=function(){var r=k.getConversionChoice();if(!r)return null;var s=r.type===l.NEW?'fb_pixel':'offsite_pixel',t={};t['action.type']=['offsite_conversion'];t[s]=[r.pixelID];return t;};q.prototype.getConversionSpecs=function(r,s){var t=m.getOptimizationSpec(r);if(!t)return [];return [t];};q.prototype.getPromotedObjectSpec=function(r,s,t){return m.getPromotedObjectSpec(s);};q.prototype.shouldClearConversionSpecForNonOCPM=function(){return true;};function q(){o.apply(this,arguments);}f.exports=q;},null);
__d('AdsAdgroupSpecPathDelegate',['AdsObjectiveDelegate','AdsObjectiveDelegateTypes','abstractMethod','AdsPageLikesAdgroupSpecPathDelegate'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';k=babelHelpers.inherits(m,h);l=k&&k.prototype;m.getDelegateType=function(){return i.ADGROUP_SPEC_PATH;};m.getDelegateClasses=function(){return [c('AdsPageLikesAdgroupSpecPathDelegate')];};m.prototype.convertImageToVideoSpec=function(n,o){return j('AdsAdgroupSpecPathDelegate','convertImageToVideoSpec');};m.prototype.convertVideoToImageSpec=function(n,o){return j('AdsAdgroupSpecPathDelegate','convertVideoToImageSpec');};m.prototype.getHeadlinePath=function(n){return j('AdsAdgroupSpecPathDelegate','getHeadlinePath');};m.prototype.getMessagePath=function(n){return j('AdsAdgroupSpecPathDelegate','getMessagePath');};m.prototype.getLandingViewPath=function(n){return j('AdsAdgroupSpecPathDelegate','getLandingViewPath');};m.prototype.getImageURLPath=function(n){return j('AdsAdgroupSpecPathDelegate','getImageURLPath');};m.prototype.getImageCropsPath=function(n){return j('AdsAdgroupSpecPathDelegate','getImageCropsPath');};m.prototype.getImageHashPath=function(n){return j('AdsAdgroupSpecPathDelegate','getImageHashPath');};m.prototype.getVideoIDPath=function(n){return j('AdsAdgroupSpecPathDelegate','getVideoIDPath');};m.prototype.getVideoThumbnailPath=function(n){return j('AdsAdgroupSpecPathDelegate','getVideoThumbnailPath');};function m(){k.apply(this,arguments);}f.exports=m;},null);
__d('AdsPageLikesAdgroupSpecPathDelegate',['AdsAdgroupSpecPathDelegate','AdsAdgroupSpecUtils','AdsAPIAdgroupPaths','AdsAPIObjectives','AdsCallToActionTypes','ApiAdObjectTypes'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n,o;'use strict';n=babelHelpers.inherits(p,h);o=n&&n.prototype;p.getObjective=function(){return k.PAGE_LIKES;};p.prototype.getHeadlinePath=function(q){return j.CREATIVE.TITLE;};p.prototype.getLandingViewPath=function(q){return j.CREATIVE.LINK_URL;};p.prototype.getMessagePath=function(q){var r=i.getObjectType(q);if(r===m.VIDEO)return j.CREATIVE.OBJECT_STORY_SPEC.VIDEO_DATA.DESCRIPTION;return j.CREATIVE.BODY;};p.prototype.getImageURLPath=function(q){return j.CREATIVE.IMAGE_URL;};p.prototype.getImageCropsPath=function(q){return j.CREATIVE.IMAGE_CROPS;};p.prototype.getImageHashPath=function(q){return j.CREATIVE.IMAGE_HASH;};p.prototype.getVideoIDPath=function(q){return j.CREATIVE.OBJECT_STORY_SPEC.VIDEO_DATA.VIDEO_ID;};p.prototype.getVideoThumbnailPath=function(q){return j.CREATIVE.OBJECT_STORY_SPEC.VIDEO_DATA.IMAGE_URL;};p.prototype.convertImageToVideoSpec=function(q,r){var s=q;q=q.removeIn(j.CREATIVE.path);return q.setIn(j.CREATIVE.OBJECT_TYPE,m.VIDEO).setIn(j.CREATIVE.OBJECT_STORY_SPEC.PAGE_ID,s.getIn(j.CREATIVE.OBJECT_ID)).setIn(j.CREATIVE.OBJECT_STORY_SPEC.VIDEO_DATA.DESCRIPTION,s.getIn(j.CREATIVE.BODY)).setIn(j.CREATIVE.OBJECT_STORY_SPEC.VIDEO_DATA.VIDEO_ID,null).setIn(j.CREATIVE.OBJECT_STORY_SPEC.VIDEO_DATA.CALL_TO_ACTION.TYPE,l.TYPES.LIKE_PAGE.name).setIn(j.CREATIVE.OBJECT_STORY_SPEC.VIDEO_DATA.CALL_TO_ACTION.VALUE.PAGE,s.getIn(j.CREATIVE.OBJECT_ID));};p.prototype.convertVideoToImageSpec=function(q,r){var s=q;q=q.removeIn(j.CREATIVE.path);return q.setIn(j.CREATIVE.OBJECT_TYPE,m.PAGE).setIn(j.CREATIVE.OBJECT_ID,s.getIn(j.CREATIVE.OBJECT_STORY_SPEC.PAGE_ID)).setIn(j.CREATIVE.BODY,s.getIn(j.CREATIVE.OBJECT_STORY_SPEC.VIDEO_DATA.DESCRIPTION)).setIn(j.CREATIVE.TITLE,r?r.getIn(j.CREATIVE.TITLE):null).setIn(j.CREATIVE.LINK_URL,r?r.getIn(j.CREATIVE.LINK_URL):null);};function p(){n.apply(this,arguments);}f.exports=p;},null);
__d('AdsCFNewAdgroupFBID',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h='NEW_ADGROUP_ID';f.exports=h;},null);
__d('ShutterstockImageID',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h='ssimg_',i='shutterstock://',j={isStockImageURL:function(k){return k.startsWith(i);},urlToID:function(k){return k.replace(i,h);},idToURL:function(k){return k.replace(h,i);}};f.exports=j;},null);
__d('AdsMutators',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(){for(var m=arguments.length,n=Array(m),o=0;o<m;o++)n[o]=arguments[o];return function(p){return n.reduce(function(q,r){return r(q);},p);};}function i(m,n){return n.deleteIn(m);}function j(m,n,o){return m.withMutations(function(p){for(var q=n,r=Array.isArray(q),s=0,q=r?q:q[typeof Symbol==='function'?Symbol.iterator:'@@iterator']();;){var t;if(r){if(s>=q.length)break;t=q[s++];}else{s=q.next();if(s.done)break;t=s.value;}var u=t,v=p.get(u);if(!v||!v.hasValue())continue;var w=v.getValueEnforcing(),x=o(w);if(w===x)continue;p.set(u,v.setValue(x));}});}function k(m,n,o){return o.setIn(m,n);}var l={chain:h,deleteIn:i,mutateEach:j,setIn:k};f.exports=l;},null);
__d('adsCFAdgroupMediaReducer',['AdsAdgroupSpecPathDelegate','AdsAPIAdgroupPaths','AdsCFActionTypes','AdsCFNewAdgroupFBID','AdsMediaFormat','ApiAdObjectTypes','ShutterstockImageID','adsCFGetCachedAdgroup_HACK','adsCFGetObjective_HACK','adsCFGetSelectedImages_HACK','AdsMutators'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){'use strict';if(c.__markCompiled)c.__markCompiled();var s=r.mutateEach;function t(z,aa){var ba=h.get(p());aa.forEach(function(ca,da){z=s(z,[k+'-'+da],function(ea){return ea.setIn(ba.getImageURLPath(ea),ca.isStockImage()?n.idToURL(ca.getStockImageID()):ca.getUrl()).setIn(ba.getImageCropsPath(ea),ca.getAPICrops()).setIn(ba.getImageHashPath(ea),ca.getAdAccountHash());});});return z;}function u(z,aa){var ba=z.get(k+'-0');for(var ca=0;ca<aa;ca++)z=z.set(k+'-'+z.size,ba);return z;}function v(z,aa){return z.size-aa?z.take(z.size-aa):z;}function w(z,aa){var ba=h.get(p()),ca=z.get(k+'-0'),da=ca.getValueEnforcing(),ea=da.getIn(i.CREATIVE.OBJECT_TYPE);if(ea===m.VIDEO)return z;return z.set(k+'-0',ca.setValue(ba.convertImageToVideoSpec(da,aa)));}function x(z,aa){var ba=h.get(p()),ca=z.get(k+'-0'),da=ca.getValueEnforcing(),ea=da.getIn(i.CREATIVE.OBJECT_TYPE);if(ea!==m.VIDEO)return z;return z.set(k+'-0',ca.setValue(ba.convertVideoToImageSpec(da,aa)));}var y=function(z,aa){switch(aa.type){case j.DESTINATION_CHANGE:case j.DESTINATION_LOADED:case j.RESET_DESTINATION:case j.SET_IMAGE_LIST:case j.IMAGE_CROP_CHANGE:var ba=q();if(ba.length>z.size){z=u(z,ba.length-z.size);}else if(ba.length<z.size)z=v(z,z.size-ba.length);return t(z,ba);case j.IMAGE_MEDIA_TYPE_SELECTED:var ca=o();return x(z,ca.get(l.IMAGE));case j.VIDEO_MEDIA_TYPE_SELECTED:ca=o();z=z.take(1);return w(z,ca.get(l.VIDEO));case j.SET_VIDEO_DATA:var da=h.get(p());return s(z,[k+'-0'],function(ea){return (ea.setIn(da.getVideoIDPath(ea),aa.videoId).setIn(da.getVideoThumbnailPath(ea),aa.videoThumbnail?aa.videoThumbnail.uri:undefined).setIn(i.CREATIVE.OBJECT_TYPE,m.VIDEO));});}return z;};f.exports=y;},null);
__d('AdsCFAdgroupDelegate',['AdsObjectiveDelegate','AdsObjectiveDelegateTypes','abstractMethod','AdsCFPageLikesAdgroupDelegate'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';k=babelHelpers.inherits(m,h);l=k&&k.prototype;m.getDelegateType=function(){return i.CF_ADGROUP;};m.getDelegateClasses=function(){return [c('AdsCFPageLikesAdgroupDelegate')];};m.prototype.getDefaultSpecGenerationActions=function(){return [];};m.prototype.getDefaultSpecGenerationStates=function(){return {};};m.prototype.generateDefaultAdgroupSpec=function(n){return j('AdsCFAdgroupDelegate','generateDefaultAdgroupSpec');};function m(){k.apply(this,arguments);}f.exports=m;},null);
__d('DeepRecord',['immutable','mapObject','invariant'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k='DeepRecordKey-'+Math.random();function l(o){var p,q,r=i(o,function(){return undefined;}),s=i(o,function(u){return u&&new u();});p=babelHelpers.inherits(t,h.Record(r));q=p&&p.prototype;function t(u){'use strict';q.constructor.call(this,i(u,function(v,w){if(v&&o[w])return new o[w](v);return h.fromJS(v);}));}t.getSpec=function(){'use strict';return o;};t.prototype.getSpec=function(){'use strict';return o;};t.prototype.deleteIn=function(u){'use strict';if(this.getIn(u)===undefined)return this;return q.deleteIn.call(this,u);};t.prototype.set=function(u,v){'use strict';if(o[u]&&v!=null)!(o[u]===v.constructor)?j(0):undefined;return q.set.call(this,u,v);};t.prototype.setIn=function(u,v){'use strict';if(this.getIn(u)===v)return this;if(u.length>1){var w=o[u[0]];if(w){var x=this.get(u[0]),y=x?x.setIn(u.slice(1),v):s[u[0]].setIn(u.slice(1),v);return this.set(u[0],y);}}return q.setIn.call(this,u,v);};t.prototype.isEmpty=function(){'use strict';for(var u=this,v=Array.isArray(u),w=0,u=v?u:u[typeof Symbol==='function'?Symbol.iterator:'@@iterator']();;){var x;if(v){if(w>=u.length)break;x=u[w++];}else{w=u.next();if(w.done)break;x=w.value;}var y=x,z=y[1];if(z!==undefined)return false;}return true;};t.prototype.toJS=function(){'use strict';var u=q.toJS.call(this);for(var v=Object.keys(u),w=Array.isArray(v),x=0,v=w?v:v[typeof Symbol==='function'?Symbol.iterator:'@@iterator']();;){var y;if(w){if(x>=v.length)break;y=v[x++];}else{x=v.next();if(x.done)break;y=x.value;}var z=y;if(u[z]===undefined)delete u[z];}return u;};t[k]=true;return t;}function m(o){return !!(o&&n(o.constructor));}function n(o){return !!(o&&o[k]);}l.isDeepRecord=m;l.isDeepRecordClass=n;f.exports=l;},null);
__d('expandPaths',['getByPath','setByPath'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();function j(k,l){var m=[],n={};k.sort(function(p,q){return q.length-p.length;});k.forEach(function(p){var q=h(n,p);if(!q){m.push(p);i(n,p,true,true);}});if(l===undefined)l=null;var o={};m.forEach(function(p){i(o,p,l,true);});return o;}f.exports=j;},null);
__d('recordFromPaths',['DeepRecord','expandPaths','getObjectValuesRecursive','mapObject'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();function l(m){var n=j(m),o=i(n,true);function p(q,r){if(Object.prototype.toString.call(q)==='[object Object]'){return h(k(q,p));}else return undefined;}return h(k(o,p));}f.exports=l;},null);
__d('AdsAPIAdgroupRecord',['AdsAPIAdgroupPaths','recordFromPaths'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();f.exports=i(h);},null);
__d('AdsCFAdNameUtils',['fbt'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();function i(j){return ' '+h._("-")+' '+h._("Image {index}",[h.param('index',j)]);}f.exports={getSuffixForMultiAds:i};},null);
__d('AdsCoreObjectiveDelegate',['AdsCFAdNameUtils','AdsCFApplicationStore','AdsCFConstants','AdsCFDestinationUtils','AdsCreationConfig','AdsCreativeUtils','AdsObjectiveDelegate','AdsObjectiveDelegateTypes','ads-objectives','AdsObjectivesConfig','URI','abstractMethod','adsGKCheck','fbt','getDOMImageSize','ads-lib-formatters','AdsCanvasAppEngagementCoreDelegate','AdsCanvasAppInstallsCoreDelegate','AdsEventResponsesCoreDelegate','AdsLocalAwarenessCoreDelegate','AdsMobileAppEngagementCoreDelegate','AdsMobileAppInstallsCoreDelegate','AdsOfferClaimsCoreDelegate','AdsPageLikesCoreDelegate','AdsPostEngagementCoreDelegate','AdsVideoViewsCoreDelegate','AdsWebsiteClicksCoreDelegate','AdsWebsiteConversionsCoreDelegate'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){if(c.__markCompiled)c.__markCompiled();var w,x;'use strict';var y=c('ads-lib-formatters').chopString,z=1,aa=2,ba=3,ca='{DESTINATION_PLACEHOLDER}',da=l.maxAdgroupNameLength;w=babelHelpers.inherits(ea,n);x=w&&w.prototype;ea.getDelegateType=function(){return o.CORE;};ea.getDelegateClasses=function(){return [c('AdsCanvasAppEngagementCoreDelegate'),c('AdsCanvasAppInstallsCoreDelegate'),c('AdsEventResponsesCoreDelegate'),c('AdsLocalAwarenessCoreDelegate'),c('AdsMobileAppEngagementCoreDelegate'),c('AdsMobileAppInstallsCoreDelegate'),c('AdsOfferClaimsCoreDelegate'),c('AdsPageLikesCoreDelegate'),c('AdsPostEngagementCoreDelegate'),c('AdsVideoViewsCoreDelegate'),c('AdsWebsiteClicksCoreDelegate'),c('AdsWebsiteConversionsCoreDelegate')];};ea.prototype.getIcon=function(fa,ga){var ha=this.getObjective(),ia='/images/ads/objectives';fa=j.ObjectiveImageSizes[fa]?fa:j.ObjectiveImageSizes.MEDIUM;ga=j.ObjectiveImageStates[ga]?ga:j.ObjectiveImageStates.DEFAULT;return (ia+'/'+fa+'/'+ga+'/'+ha+'.png').toLowerCase();};ea.prototype.__isStoryIDRequired=function(){return false;};ea.prototype.__getDestinationForAdName=function(fa,ga){return fa;};ea.prototype.__getContinueDetails=function(fa,ga,ha){var ia=ha.destinationType,ja=ha.pagePosts,ka=ha.storyID;return (function(){var la=ga.appPlatforms,ma;if(fa){var na=m.getPagePostFromStoryId(ka,ja);ma=m.getIsPagePostExpiredOffer(na);}var oa=ga.offerEligible,pa=k.isUnpublishedPage(ia,ga);return {isUnpublishedPage:pa,noPlatforms:!la||!la.length,noPosts:!ja.length,offerEligible:oa,offerExpired:ma,requiresStoryID:fa,storyID:ka};})();};ea.prototype.__canContinueAux=function(fa,ga,ha,ia){if(!t('ads_cf_destination_loader')&&i.getDataState()!==j.DataStates.SUCCESS)return false;var ja=this.__getContinueDetails(this.__isStoryIDRequired(),ha,ia);return (fa&&ga&&!ja.isUnpublishedPage&&!ha.isBlackholed&&!(ja.requiresStoryID&&(!ja.storyID||ja.offerExpired||ja.noPosts)));};ea.prototype.canContinue=function(fa,ga,ha,ia){return this.__canContinueAux(fa,ga,ha,ia);};ea.prototype.__canNeverContinueAux=function(fa,ga,ha,ia,ja){if(i.getDataState()===j.DataStates.FAILURE)return true;var ka=this.__getContinueDetails(this.__isStoryIDRequired(),ia,ja);return (!ga||!ha||ka.isUnpublishedPage||ia.isBlackholed||ka.requiresStoryID&&ka.offerExpired);};ea.prototype.canNeverContinue=function(fa,ga,ha,ia,ja){return this.__canNeverContinueAux(fa,ga,ha,ia,ja);};ea.prototype.canUseExistingCampaign=function(){return true;};ea.prototype.getAdName=function(fa,ga,ha){var ia=ha&&ha>0?h.getSuffixForMultiAds(ha):'',ja=p.APItoKPIObjectives[this.getObjective()],ka=u._("{destination} - {objective}",[u.param('destination',ca),u.param('objective',q.getShortName(ja))]),la=da-(ka.length-ca.length)-ia.length;fa=this.__getDestinationForAdName(fa,ga);var ma=y(fa,la,'...');return ka.replace(ca,ma)+ia;};ea.prototype.getDestinationPlaceholderText=function(){return s('AdsCoreObjectiveDelegate','getDestinationPlaceholderText');};ea.prototype.getDestinationLoadingText=function(){return s('AdsCoreObjectiveDelegate','getDestinationLoadingText');};ea.prototype.fireStartPixel=function(fa,ga){this.$AdsCoreObjectiveDelegate1(fa,ga,z);};ea.prototype.fireConfirmPixel=function(fa,ga,ha){this.$AdsCoreObjectiveDelegate1(fa,ga,aa,ha);};ea.prototype.fireCreatePixel=function(fa,ga,ha,ia){this.$AdsCoreObjectiveDelegate1(fa,ga,ba,ha,ia);};ea.prototype.$AdsCoreObjectiveDelegate1=function(fa,ga,ha,ia,ja){var ka=false,la=function(){if(ka||!ja)return;ka=true;ja();},ma=new r('https://ad.atdmt.com/m/img;m=11002201303866;cache=');ma.addQueryData({account_id:fa,objective:ia,source:ga,step:ha});v(ma,la);setTimeout(la,2000);};function ea(){w.apply(this,arguments);}f.exports=ea;},null);
__d('AdsAppCoreDelegate',['AdsCoreObjectiveDelegate','URI','fbt','getDOMImageSize'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l,m;'use strict';var n='6027371341624',o='6027371342624';l=babelHelpers.inherits(p,h);m=l&&l.prototype;p.prototype.canContinue=function(q,r,s,t){var u=this.__getContinueDetails(this.__isStoryIDRequired(),s,t),v=u.noPlatforms;return (this.__canContinueAux(q,r,s,t)&&!v);};p.prototype.getDestinationPlaceholderText=function(){return j._("Choose app or enter its URL");};p.prototype.getDestinationLoadingText=function(){return j._("Loading app details...");};p.prototype.fireConfirmPixel=function(q,r,s){m.fireConfirmPixel.call(this,q,r,s);this.$AdsAppCoreDelegate1(n);};p.prototype.fireCreatePixel=function(q,r,s,t){var u=false,v=false,w=function(){if(u&&v)t();};m.fireCreatePixel.call(this,q,r,s,function(){u=true;w();});this.$AdsAppCoreDelegate1(o,function(){v=true;w();});};p.prototype.$AdsAppCoreDelegate1=function(q,r){var s=false,t=function(){if(s||!r)return;s=true;r();},u=new i('https://facebook.com/tr').addQueryData({'amp;cd[currency]':'USD','amp;cd[value]':'0.00','amp;noscript':1,ev:q});k(u,t);setTimeout(t,2000);};function p(){l.apply(this,arguments);}f.exports=p;},null);
__d('AdsCanvasAppCoreDelegate',['AdsAppCoreDelegate'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i,j;'use strict';i=babelHelpers.inherits(k,h);j=i&&i.prototype;function k(){i.apply(this,arguments);}f.exports=k;},null);
__d('AdsCanvasAppEngagementCoreDelegate',['AdsAPIObjectives','AdsCanvasAppCoreDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.CANVAS_APP_ENGAGEMENT;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsMobileAppCoreDelegate',['AdsAppCoreDelegate'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i,j;'use strict';i=babelHelpers.inherits(k,h);j=i&&i.prototype;function k(){i.apply(this,arguments);}f.exports=k;},null);
__d('AdsMobileAppEngagementCoreDelegate',['AdsAccountCapabilities','AdsAPIObjectives','ads-app-platforms','AdsCFAccountStore','AdsMobileAppCoreDelegate'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m,n;'use strict';var o=j.MOBILE_STORE_DESTINATION_TYPE;m=babelHelpers.inherits(p,l);n=m&&m.prototype;p.prototype.$AdsMobileAppEngagementCoreDelegate1=function(){return !k.hasAccountCapability(h.HAS_ACCEPTED_MOBILE_APP_ENGAGEMENT_TOS);};p.prototype.canContinue=function(q,r,s,t){if(!n.canContinue.call(this,q,r,s,t)||this.$AdsMobileAppEngagementCoreDelegate1())return false;if(s.isAdmin)return true;switch(s.mobileStoreDestinationType){case o.FB_APPLICATION_ONLY:case o.FB_MOBILE_STORE_WITH_BACKING_APP:return true;default:return false;}};p.prototype.canNeverContinue=function(q,r,s,t,u){return (this.__canNeverContinueAux(q,r,s,t,u)||!t.isAdmin);};p.getObjective=function(){return i.MOBILE_APP_ENGAGEMENT;};function p(){m.apply(this,arguments);}f.exports=p;},null);
__d('AdsMobileAppInstallsCoreDelegate',['AdsAPIObjectives','AdsMobileAppCoreDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.MOBILE_APP_INSTALLS;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsEventResponsesCoreDelegate',['AdsAPIObjectives','AdsCoreObjectiveDelegate','fbt'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';k=babelHelpers.inherits(m,i);l=k&&k.prototype;m.prototype.canContinue=function(n,o,p,q){return (this.__canContinueAux(n,o,p,q)&&p.canCreateAd);};m.prototype.getDestinationPlaceholderText=function(){return j._("Choose event or enter its URL");};m.prototype.getDestinationLoadingText=function(){return j._("Loading event details...");};m.getObjective=function(){return h.EVENT_RESPONSES;};function m(){k.apply(this,arguments);}f.exports=m;},null);
__d('AdsLocalAwarenessCoreDelegate',['AdsAPIObjectives','AdsCoreObjectiveDelegate','fbt'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';k=babelHelpers.inherits(m,i);l=k&&k.prototype;m.prototype.canContinue=function(n,o,p,q){return (this.__canContinueAux(n,o,p,q)&&p.isAdmin&&p.canCreateAd);};m.prototype.canUseExistingCampaign=function(){return false;};m.prototype.getDestinationPlaceholderText=function(){return j._("Choose Page or enter its URL");};m.prototype.getDestinationLoadingText=function(){return j._("Loading Page details...");};m.getObjective=function(){return h.LOCAL_AWARENESS;};function m(){k.apply(this,arguments);}f.exports=m;},null);
__d('AdsOfferClaimsCoreDelegate',['AdsAPIObjectives','AdsCoreObjectiveDelegate','fbt'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';k=babelHelpers.inherits(m,i);l=k&&k.prototype;m.prototype.__isStoryIDRequired=function(){return true;};m.prototype.canNeverContinue=function(n,o,p,q,r){var s=this.__getContinueDetails(this.__isStoryIDRequired(),q,r),t=s.offerEligible;return (this.__canNeverContinueAux(n,o,p,q,r)||n&&!t);};m.prototype.canContinue=function(n,o,p,q){var r=this.__getContinueDetails(this.__isStoryIDRequired(),p,q),s=r.offerEligible;return (this.__canContinueAux(n,o,p,q)&&s);};m.prototype.getDestinationPlaceholderText=function(){return j._("Choose Page or enter its URL");};m.prototype.getDestinationLoadingText=function(){return j._("Loading Page details...");};m.getObjective=function(){return h.OFFER_CLAIMS;};function m(){k.apply(this,arguments);}f.exports=m;},null);
__d('AdsPageLikesCoreDelegate',['AdsAPIObjectives','AdsCoreObjectiveDelegate','fbt'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';k=babelHelpers.inherits(m,i);l=k&&k.prototype;m.prototype.canContinue=function(n,o,p,q){return (this.__canContinueAux(n,o,p,q)&&p.isAdmin&&p.canCreateAd);};m.prototype.getDestinationPlaceholderText=function(){return j._("Choose Page or enter its URL");};m.prototype.getDestinationLoadingText=function(){return j._("Loading Page details...");};m.getObjective=function(){return h.PAGE_LIKES;};function m(){k.apply(this,arguments);}f.exports=m;},null);
__d('AdsPostEngagementCoreDelegate',['AdsAPIObjectives','AdsCoreObjectiveDelegate','AdsCreationConfig','ads-objectives','AdsObjectivesConfig','fbt','ads-lib-formatters'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n,o;'use strict';var p=c('ads-lib-formatters').chopString,q=j.maxAdgroupNameLength,r='{DESTINATION_PLACEHOLDER}',s='{PAGE_POST_NAME_PLACEHOLDER}',t=m._("Post: \"{postName}\"",[m.param('postName',s)]),u=t.toString().replace(s,'').length;n=babelHelpers.inherits(v,i);o=n&&n.prototype;v.prototype.__isStoryIDRequired=function(){return true;};v.prototype.getDestinationPlaceholderText=function(){return m._("Choose Page or enter its URL");};v.prototype.getDestinationLoadingText=function(){return m._("Loading Page details...");};v.getObjective=function(){return h.POST_ENGAGEMENT;};v.prototype.getAdName=function(w,x,y){var z=k.APItoKPIObjectives[this.getObjective()],aa=m._("{destination} - {objective}",[m.param('destination',r),m.param('objective',l.getShortName(z))]),ba=q-(aa.length-r.length)-u;x.postContent=x.postContent||'';w=x.postContent;var ca=p(w,ba,'...');ca=t.toString().replace(s,ca);return aa.toString().replace(r,ca);};function v(){n.apply(this,arguments);}f.exports=v;},null);
__d('AdsVideoViewsCoreDelegate',['AdsAPIObjectives','AdsCoreObjectiveDelegate','fbt'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';k=babelHelpers.inherits(m,i);l=k&&k.prototype;m.prototype.canContinue=function(n,o,p,q){return (this.__canContinueAux(n,o,p,q)&&p.isAdmin&&p.canCreateAd);};m.prototype.getDestinationPlaceholderText=function(){return j._("Choose Page or enter its URL");};m.prototype.getDestinationLoadingText=function(){return j._("Loading Page details...");};m.getObjective=function(){return h.VIDEO_VIEWS;};function m(){k.apply(this,arguments);}f.exports=m;},null);
__d('AdsWebsiteCoreDelegate',['AdsCoreObjectiveDelegate','fbt'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,h);k=j&&j.prototype;l.prototype.__getDestinationForAdName=function(m,n){return m.replace(/^https?:\/\//i,'');};l.prototype.getDestinationPlaceholderText=function(){return i._("Enter URL to promote");};l.prototype.getDestinationLoadingText=function(){return i._("Loading website details...");};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsWebsiteClicksCoreDelegate',['AdsAPIObjectives','AdsWebsiteCoreDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.WEBSITE_CLICKS;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsWebsiteConversionsCoreDelegate',['AdsAPIObjectives','AdsWebsiteCoreDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.WEBSITE_CONVERSIONS;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsCFPageLikesAdgroupDelegate',['AdsAPIAdgroupPaths','AdsAPIAdgroupRecord','AdsAPIObjectives','AdsCFAdgroupDelegate','AdsCoreObjectiveDelegate','AdsCreativeUtils','AdsObjectTypeUtils'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o,p;'use strict';o=babelHelpers.inherits(q,k);p=o&&o.prototype;q.getObjective=function(){return j.PAGE_LIKES;};q.prototype.generateDefaultAdgroupSpec=function(r){var s=new i({}),t=r.destination;return s.withMutations((function(u){u.setIn(h.CREATIVE.TITLE,t.destinationTitle);u.setIn(h.CREATIVE.BODY,t.destinationSummary);u.setIn(h.CREATIVE.OBJECT_ID,t.destinationId);u.setIn(h.CREATIVE.LINK_URL,m.getDefaultLinkURL(t.tabs,t.destinationUrl));u.setIn(h.NAME,l.get(q.getObjective()).getAdName(t.destinationName,{}));u.setIn(h.CREATIVE.OBJECT_TYPE,n.getDefaultObjectType(this.getObjective()));}).bind(this));};function q(){o.apply(this,arguments);}f.exports=q;},null);
__d('adsCFAdgroupDefaultSpecReducer',['AdsCFActionTypes','AdsCFAdgroupDelegate','AdsCFNewAdgroupFBID','LoadObject','adsCFGetDestination_HACK','adsCFGetObjective_HACK','arrayContains'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=[h.DESTINATION_CHANGE,h.DESTINATION_LOADED];function p(r){var s={};Object.keys(r).forEach(function(t){s[t]=r[t]();});return s;}var q=function(r,s){var t=m(),u=i.get(t),v=[].concat(o,u.getDefaultSpecGenerationActions());if(n(v,s.type)){var w=babelHelpers._extends({destination:l},u.getDefaultSpecGenerationStates()),x=u.generateDefaultAdgroupSpec(babelHelpers._extends({},p(w),{objective:t}));return r.set(j+'-0',k.creating().setValue(x));}return r;};f.exports=q;},null);
__d('adsCFAdgroupStandardCreativeReducer',['AdsActionTypes','AdsAdgroupSpecPathDelegate','adsCFGetObjective_HACK','AdsMutators'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l=k.mutateEach,m=function(n,o){var p=i.get(j());switch(o.type){case h.ADGROUP.SET_HEADLINE:return l(n,o.ids,function(q){return q.setIn(p.getHeadlinePath(q),o.headline);});case h.ADGROUP.SET_MESSAGE:return l(n,o.ids,function(q){return q.setIn(p.getMessagePath(q),o.message);});case h.ADGROUP.SET_LANDING_VIEW:return l(n,o.ids,function(q){return q.setIn(p.getLandingViewPath(q),o.landingViewURL);});}return n;};f.exports=m;},null);
__d('AdsAPICampaignRecord',['AdsAPICampaignPaths','recordFromPaths'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();f.exports=i(h);},null);
__d('AdsBidOptions',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={ACTIONS:'actions',CLICKS:'clicks',IMPRESSIONS:'impressions',OCPM_ACTIONS:'ocpm_actions',OCPM_REACH:'ocpm_reach'};f.exports=h;},null);
__d('AdsBidOptionsConfigs',['AdsBidOptions'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();f.exports={AUTO_ACTION_AUTO_CLICK_BID_OPTIONS:{bidOption:h.OCPM_ACTIONS,ocpmActionAutobidEnabled:true,clickAutobidEnabled:true},AUTO_ACTION_AUTO_LINK_CLICK_BID_OPTIONS:{bidOption:h.OCPM_ACTIONS,ocpmActionAutobidEnabled:true,cpaAutobidEnabled:true,clickAutobidEnabled:true},AUTO_ACTION_AUTO_CLICK_DEFAULT_CLICKS_BID_OPTIONS:{bidOption:h.CLICKS,ocpmActionAutobidEnabled:true,clickAutobidEnabled:true},AUTO_ACTION_MANUAL_CLICK_BID_OPTIONS:{bidOption:h.OCPM_ACTIONS,ocpmActionAutobidEnabled:true,clickAutobidEnabled:false},AUTO_CLICK_BID_OPTIONS:{bidOption:h.CLICKS,clickAutobidEnabled:true},AUTO_REACH_BID_OPTIONS:{bidOption:h.OCPM_REACH,ocpmReachAutobidEnabled:true},MANUAL_REACH_BID_OPTIONS:{bidOption:h.OCPM_REACH,ocpmReachAutobidEnabled:false},MANUAL_CLICK_BID_OPTIONS:{bidOption:h.CLICKS,clickAutobidEnabled:false},MANUAL_IMPRESSION_BID_OPTIONS:{bidOption:h.IMPRESSIONS}};},null);
__d('AdsBiddingDelegate',['AdsAPIBidType','AdsBidOptions','AdsBidOptionsConfigs','AdsObjectiveDelegate','AdsObjectiveDelegateTypes','OcpmAdConfig','abstractMethod','arrayContains','fbt','invariant','AdsCanvasAppEngagementBiddingDelegate','AdsCanvasAppInstallsBiddingDelegate','AdsEventResponsesBiddingDelegate','AdsLocalAwarenessBiddingDelegate','AdsMobileAppEngagementBiddingDelegate','AdsMobileAppInstallsBiddingDelegate','AdsOfferClaimsBiddingDelegate','AdsPageLikesBiddingDelegate','AdsPostEngagementBiddingDelegate','AdsVideoViewsBiddingDelegate','AdsWebsiteClicksBiddingDelegate','AdsWebsiteConversionsBiddingDelegate'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){if(c.__markCompiled)c.__markCompiled();var r,s;'use strict';var t=220;r=babelHelpers.inherits(u,k);s=r&&r.prototype;u.getDelegateType=function(){return l.BIDDING;};u.getDelegateClasses=function(){return [c('AdsCanvasAppEngagementBiddingDelegate'),c('AdsCanvasAppInstallsBiddingDelegate'),c('AdsEventResponsesBiddingDelegate'),c('AdsLocalAwarenessBiddingDelegate'),c('AdsMobileAppEngagementBiddingDelegate'),c('AdsMobileAppInstallsBiddingDelegate'),c('AdsOfferClaimsBiddingDelegate'),c('AdsPageLikesBiddingDelegate'),c('AdsPostEngagementBiddingDelegate'),c('AdsVideoViewsBiddingDelegate'),c('AdsWebsiteClicksBiddingDelegate'),c('AdsWebsiteConversionsBiddingDelegate')];};u.prototype.shouldMigrateClicksToCPA=function(){return false;};u.prototype.getBidTypeDescription=function(v){switch(v){case i.CLICKS:if(this.shouldMigrateClicksToCPA())return p._("We'll serve your ads to people who might click on your ad (Legacy - CPC).");return p._("We'll serve your ads to people who might click on your ad (CPC).");case i.IMPRESSIONS:return p._("We'll serve your ads to people as many times as possible (CPM).");case i.OCPM_REACH:return p._("We'll serve your ad to people up to once per day.");}q(0);};u.prototype.getOptimizationHelpLinkContent=function(){return [p._("You can choose to bid for your objective, clicks or impressions. Your choice determines how you pay and who your ad is served to."),p._("For example, when you optimize your bid for the Page Likes objective, you'll pay for your ad to be served to people within your audience who are more likely to like your Page.")];};u.prototype.getBidInputLabel=function(v){switch(v){case i.CLICKS:return p._("max. bid per click");case i.IMPRESSIONS:case i.OCPM_REACH:return p._("max. bid per 1,000 impressions");}q(0);};u.prototype.getBidTypeLabel=function(v){switch(v){case i.CLICKS:if(this.shouldMigrateClicksToCPA())return p._("Clicks (Old Way of Defining CPC)");return p._("Clicks");case i.IMPRESSIONS:return p._("Impressions");case i.OCPM_REACH:return p._("Daily unique reach");}q(0);};u.prototype.getBidTypeSentence=function(v){switch(v){case i.CLICKS:return p._("You will be charged every time someone clicks on your ad.");case i.IMPRESSIONS:return p._("You'll be charged each time your ad is served.");case i.OCPM_REACH:var w=p._("Set the amount reaching people is worth to you.");return p._("{sentence 1} {sentence 2}",[p.param('sentence 1',w),p.param('sentence 2',this.__getOCPMBidTypeSentence())]);}q(0);};u.prototype.getDefaultBidAmount=function(v,w){return t;};u.prototype.__getOCPMBidTypeSentence=function(){return p._("You'll be charged each time your ad is served.");};u.prototype.getPriceStrings=function(v){return n('AdsBiddingDelegate','getPriceStrings');};u.prototype.__getPriceStringsForClicksAdsBidOption=function(){return {auto:p._("Get more clicks at the best price"),manual:p._("Set the max you want to pay per click")};};u.prototype.getDefaultOCPMReachPrice=function(v,w){return w.cpm_median;};u.prototype.getDefaultBidOptionsConfig=function(v){return j.AUTO_ACTION_AUTO_CLICK_BID_OPTIONS;};u.prototype.getValidBidOptions=function(v){return [i.OCPM_ACTIONS,i.CLICKS,i.IMPRESSIONS];};u.prototype.getValidBidOptionsByValidBidTypes=function(v){return [i.OCPM_ACTIONS,i.CLICKS,i.IMPRESSIONS];};u.prototype.getDefaultCPCPrice=function(v,w){return w.cpc_median;};u.prototype.getDefaultCPMPrice=function(v,w){return w.cpm_median;};u.prototype.getDefaultOCPMActionPrice=function(v,w,x){var y=x?m.offsiteMultiplier:m.actionsMultiplier;return v.mooDefaultConversionBid*y;};u.prototype.getDefaultCPAPrice=function(v,w){return w.cpa_median;};u.prototype.__isCPAOverwritenByAPI=function(v){return o(v,h.CPA);};u.prototype.isCPAAvailable=function(v,w,x){return false;};u.prototype.shouldAutobidByDefault=function(){return true;};u.prototype.shouldShowSuggestions=function(v){return true;};u.prototype.shouldShowBidWarnings=function(v){return true;};u.prototype.shouldShowBidPriceOptions=function(v,w){switch(v){case i.CLICKS:case i.OCPM_ACTIONS:return true;case i.ACTIONS:return w||false;case i.IMPRESSIONS:case i.OCPM_REACH:return false;}return false;};u.prototype.shouldShowBidTypeSelectorWarnings=function(v,w){var x=o(w,i.ACTIONS)||o(w,i.OCPM_ACTIONS),y=v===i.ACTIONS||v===i.OCPM_ACTIONS;return x&&!y;};function u(){r.apply(this,arguments);}f.exports=u;},null);
__d('AdsAppBiddingDelegate',['AdsAPIBillingEvents','AdsBiddingDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';var l=378;j=babelHelpers.inherits(m,i);k=j&&j.prototype;m.prototype.getDefaultBidAmount=function(n,o){if(o===h.LINK_CLICKS)return l;return k.getDefaultBidAmount.call(this,n,o);};function m(){j.apply(this,arguments);}f.exports=m;},null);
__d('AdsCanvasAppBiddingDelegate',['AdsAppBiddingDelegate'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i,j;'use strict';i=babelHelpers.inherits(k,h);j=i&&i.prototype;function k(){i.apply(this,arguments);}f.exports=k;},null);
__d('AdsCanvasAppEngagementBiddingDelegate',['AdsAPIObjectives','AdsBidOptions','AdsCanvasAppBiddingDelegate','fbt'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l,m;'use strict';l=babelHelpers.inherits(n,j);m=l&&l.prototype;n.getObjective=function(){return h.CANVAS_APP_ENGAGEMENT;};n.prototype.getBidTypeDescription=function(o){switch(o){case i.OCPM_ACTIONS:return k._("We'll serve your ads to people who are more likely to use your app.");}return m.getBidTypeDescription.call(this,o);};n.prototype.getBidInputLabel=function(o){switch(o){case i.OCPM_ACTIONS:return k._("target bid per app engagment");}return m.getBidTypeDescription.call(this,o);};n.prototype.getBidTypeLabel=function(o){switch(o){case i.OCPM_ACTIONS:return k._("Desktop App Engagement");}return m.getBidTypeLabel.call(this,o);};n.prototype.getBidTypeSentence=function(o){switch(o){case i.OCPM_ACTIONS:var p=k._("Your bid will be optimized to increase engagement on your app.");return k._("{sentence 1} {sentence 2}",[k.param('sentence 1',p),k.param('sentence 2',this.__getOCPMBidTypeSentence())]);}return m.getBidTypeSentence.call(this,o);};n.prototype.getPriceStrings=function(o){switch(o){case i.OCPM_ACTIONS:return {auto:k._("Get the most activity in your app at the best price - You'll be charged for impressions"),manual:k._("Set the amount an action in your app is worth to you")};case i.CLICKS:return this.__getPriceStringsForClicksAdsBidOption();}return null;};n.prototype.getValidBidOptions=function(o){return [i.OCPM_ACTIONS,i.CLICKS];};n.prototype.getValidBidOptionsByValidBidTypes=function(o){return [i.OCPM_ACTIONS,i.CLICKS];};function n(){l.apply(this,arguments);}f.exports=n;},null);
__d('AdsCanvasAppInstallsBiddingDelegate',['AdsAPIBidType','AdsAPIObjectives','AdsBidOptions','AdsCanvasAppBiddingDelegate','arrayContains','fbt','ads-app-platforms'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o,p;'use strict';var q=n.MOBILE_STORE;o=babelHelpers.inherits(r,k);p=o&&o.prototype;r.getObjective=function(){return i.CANVAS_APP_INSTALLS;};r.prototype.getBidTypeDescription=function(s){switch(s){case j.ACTIONS:return m._("We'll serve your ads to people who are more likely to install your app (CPA)");case j.OCPM_ACTIONS:return m._("We'll serve your ads to people who are more likely to install your app.");}return p.getBidTypeDescription.call(this,s);};r.prototype.getBidInputLabel=function(s){switch(s){case j.ACTIONS:return m._("max. bid per install");case j.OCPM_ACTIONS:return m._("target bid per app install");}return p.getBidTypeDescription.call(this,s);};r.prototype.getBidTypeLabel=function(s){switch(s){case j.ACTIONS:return m._("Desktop App Installs - Pay per Install");case j.OCPM_ACTIONS:return m._("Desktop App Installs - Pay per Impression");}return p.getBidTypeLabel.call(this,s);};r.prototype.getBidTypeSentence=function(s){switch(s){case j.ACTIONS:return m._("You will be charged every time someone installs your app due to this ad.");case j.OCPM_ACTIONS:var t=m._("Your bid will be optimized to get more desktop app installs.");return m._("{sentence 1} {sentence 2}",[m.param('sentence 1',t),m.param('sentence 2',this.__getOCPMBidTypeSentence())]);}return p.getBidTypeSentence.call(this,s);};r.prototype.getPriceStrings=function(s){switch(s){case j.OCPM_ACTIONS:return {auto:m._("Get the most app installs at the best price - You'll be charged for impressions"),manual:m._("Set the amount an app install is worth to you")};case j.ACTIONS:return {auto:m._("Automatically optimize your bid to get more desktop app installs"),manual:m._("Manually set your maximum bid for desktop app installs (CPA)")};case j.CLICKS:return this.__getPriceStringsForClicksAdsBidOption();}return null;};r.prototype.getValidBidOptions=function(s){if(s.isCPAAvailable)return [j.ACTIONS,j.OCPM_ACTIONS,j.CLICKS];return [j.OCPM_ACTIONS,j.CLICKS];};r.prototype.getValidBidOptionsByValidBidTypes=function(s){if(l(s.validBidTypes,h.CPA))return [j.OCPM_ACTIONS,j.ACTIONS,j.CLICKS];return [j.OCPM_ACTIONS,j.CLICKS];};r.prototype.isCPAAvailable=function(s,t,u){if(this.__isCPAOverwritenByAPI(t))return true;return !!(u&&u[q.FB_CANVAS]);};function r(){o.apply(this,arguments);}f.exports=r;},null);
__d('AdsMobileAppBiddingDelegate',['AdsAppBiddingDelegate'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i,j;'use strict';i=babelHelpers.inherits(k,h);j=i&&i.prototype;function k(){i.apply(this,arguments);}f.exports=k;},null);
__d('AdsMobileAppEngagementBiddingDelegate',['AdsAPIObjectives','AdsBidOptions','AdsBidOptionsConfigs','AdsMobileAppBiddingDelegate','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m,n;'use strict';m=babelHelpers.inherits(o,k);n=m&&m.prototype;o.getObjective=function(){return h.MOBILE_APP_ENGAGEMENT;};o.prototype.getBidTypeDescription=function(p){switch(p){case i.OCPM_ACTIONS:return l._("We'll serve your ads to people who are more likely to use your app.");}return n.getBidTypeDescription.call(this,p);};o.prototype.getBidInputLabel=function(p){switch(p){case i.OCPM_ACTIONS:return l._("target bid per app engagment");}return n.getBidTypeDescription.call(this,p);};o.prototype.getBidTypeLabel=function(p){switch(p){case i.OCPM_ACTIONS:return l._("Mobile App Engagement");}return n.getBidTypeLabel.call(this,p);};o.prototype.getBidTypeSentence=function(p){switch(p){case i.OCPM_ACTIONS:var q=l._("Your bid will be optimized to increase engagement on your app.");return l._("{sentence 1} {sentence 2}",[l.param('sentence 1',q),l.param('sentence 2',this.__getOCPMBidTypeSentence())]);}return n.getBidTypeSentence.call(this,p);};o.prototype.getPriceStrings=function(p){switch(p){case i.OCPM_ACTIONS:return {auto:l._("Get the most activity in your app at the best price - You'll be charged for impressions"),manual:l._("Set the amount an action in your app is worth to you")};case i.CLICKS:return this.__getPriceStringsForClicksAdsBidOption();}return null;};o.prototype.getDefaultBidOptionsConfig=function(p){return j.AUTO_CLICK_BID_OPTIONS;};o.prototype.getValidBidOptions=function(p){return [i.CLICKS];};o.prototype.getValidBidOptionsByValidBidTypes=function(p){return [i.CLICKS];};function o(){m.apply(this,arguments);}f.exports=o;},null);
__d('AdsMobileAppInstallsBiddingDelegate',['AdsAPIBidType','AdsAPIObjectives','AdsBidOptions','AdsBidOptionsConfigs','AdsMobileAppBiddingDelegate','arrayContains','fbt','ads-app-platforms'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){if(c.__markCompiled)c.__markCompiled();var p,q;'use strict';var r=o.OPERATING_SYSTEM_TO_MOBILE_STORE;p=babelHelpers.inherits(s,l);q=p&&p.prototype;s.getObjective=function(){return i.MOBILE_APP_INSTALLS;};s.prototype.getBidTypeDescription=function(t){switch(t){case j.ACTIONS:return n._("We'll serve your ads to people who are more likely to install your app (CPA)");case j.OCPM_ACTIONS:return n._("We'll serve your ads to people who are more likely to install your app. (oCPM)");}return q.getBidTypeDescription.call(this,t);};s.prototype.getBidInputLabel=function(t){switch(t){case j.ACTIONS:return n._("max. bid per install");case j.OCPM_ACTIONS:return n._("target bid per app install");}return q.getBidTypeDescription.call(this,t);};s.prototype.getBidTypeLabel=function(t){switch(t){case j.ACTIONS:return n._("Mobile App Installs - Pay per Install");case j.OCPM_ACTIONS:return n._("Mobile App Installs - Pay per Impression");}return q.getBidTypeLabel.call(this,t);};s.prototype.getBidTypeSentence=function(t){switch(t){case j.ACTIONS:return n._("You will be charged every time someone installs your app due to this ad.");case j.OCPM_ACTIONS:var u=n._("Your bid will be optimized to get more mobile app installs.");return n._("{sentence 1} {sentence 2}",[n.param('sentence 1',u),n.param('sentence 2',this.__getOCPMBidTypeSentence())]);}return q.getBidTypeSentence.call(this,t);};s.prototype.getPriceStrings=function(t){switch(t){case j.OCPM_ACTIONS:return {auto:n._("Get the most app installs at the best price - You'll be charged for impressions"),manual:n._("Set the amount an app install is worth to you")};case j.ACTIONS:return {auto:n._("Automatically optimize your bid to get more mobile app installs"),manual:n._("Manually set your maximum bid for mobile app installs (CPA)")};case j.CLICKS:return this.__getPriceStringsForClicksAdsBidOption();}return null;};s.prototype.getDefaultBidOptionsConfig=function(t){if(t.isUntrackedMobileApp||t.isNonPlatformMobileApp){return k.MANUAL_CLICK_BID_OPTIONS;}else return k.AUTO_ACTION_MANUAL_CLICK_BID_OPTIONS;};s.prototype.getValidBidOptions=function(t){if(t.hasNekoTracking&&!t.isCPAAvailable){return [j.OCPM_ACTIONS,j.CLICKS];}else if(t.hasNekoTracking&&t.isCPAAvailable)return [j.OCPM_ACTIONS,j.ACTIONS,j.CLICKS];return [j.CLICKS];};s.prototype.getValidBidOptionsByValidBidTypes=function(t){var u=[];if(m(t.validBidTypes,h.CPA))u.push(j.ACTIONS);if(m(t.validBidTypes,h.ABSOLUTE_OCPM))u.push(j.OCPM_ACTIONS);u.push(j.CLICKS);return u;};s.prototype.isCPAAvailable=function(t,u,v){if(this.__isCPAOverwritenByAPI(u))return true;var w=t&&r[t];return !!(v&&w&&v[w]);};function s(){p.apply(this,arguments);}f.exports=s;},null);
__d('AdsEventResponsesBiddingDelegate',['AdsAPIObjectives','AdsAPIOptimizationGoals','AdsBiddingDelegate','AdsBidOptions','AdsBidOptionsConfigs','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n,o;'use strict';var p=500;n=babelHelpers.inherits(q,j);o=n&&n.prototype;q.getObjective=function(){return h.EVENT_RESPONSES;};q.prototype.getBidTypeDescription=function(r){switch(r){case k.OCPM_ACTIONS:return m._("We'll serve your ads to people who are more likely to be interested in your event.");}return o.getBidTypeDescription.call(this,r);};q.prototype.getBidInputLabel=function(r){switch(r){case k.OCPM_ACTIONS:return m._("target bid per event response");}return o.getBidTypeDescription.call(this,r);};q.prototype.getDefaultBidAmount=function(r,s){if(r===i.EVENT_RESPONSES)return p;return o.getDefaultBidAmount.call(this,r,s);};q.prototype.getBidTypeLabel=function(r){switch(r){case k.OCPM_ACTIONS:return m._("Event Responses");}return o.getBidTypeLabel.call(this,r);};q.prototype.getBidTypeSentence=function(r){switch(r){case k.OCPM_ACTIONS:var s=m._("Your bid will be optimized to get more responses to your event.");return m._("{sentence 1} {sentence 2}",[m.param('sentence 1',s),m.param('sentence 2',this.__getOCPMBidTypeSentence())]);}return o.getBidTypeSentence.call(this,r);};q.prototype.getPriceStrings=function(r){switch(r){case k.OCPM_ACTIONS:return {auto:m._("Get the most responses to your event at the best price - You'll be charged for impressions"),manual:m._("Set the amount an event response is worth to you")};case k.CLICKS:return this.__getPriceStringsForClicksAdsBidOption();}return null;};q.prototype.getValidBidOptions=function(r){return this.$AdsEventResponsesBiddingDelegate1(r);};q.prototype.getValidBidOptionsByValidBidTypes=function(r){return this.$AdsEventResponsesBiddingDelegate1(r);};q.prototype.$AdsEventResponsesBiddingDelegate1=function(r){return [k.OCPM_ACTIONS,k.OCPM_REACH,k.CLICKS,k.IMPRESSIONS];};q.prototype.getDefaultBidOptionsConfig=function(r){return l.AUTO_ACTION_AUTO_CLICK_BID_OPTIONS;};q.prototype.shouldShowBidTypeSelectorWarnings=function(r,s){return false;};function q(){n.apply(this,arguments);}f.exports=q;},null);
__d('AdsLocalAwarenessBiddingDelegate',['AdsAPIObjectives','AdsAPIOptimizationGoals','AdsBiddingDelegate','AdsBidOptions','AdsBidOptionsConfigs','OcpmAdConfig'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n,o;'use strict';var p=500;n=babelHelpers.inherits(q,j);o=n&&n.prototype;q.getObjective=function(){return h.LOCAL_AWARENESS;};q.prototype.getDefaultOCPMReachPrice=function(r,s){return r.mooDefaultConversionBid*m.reachMultiplier;};q.prototype.getDefaultBidAmount=function(r,s){if(r===i.REACH)return p;return o.getDefaultBidAmount.call(this,r,s);};q.prototype.getDefaultBidOptionsConfig=function(r){return l.AUTO_REACH_BID_OPTIONS;};q.prototype.getPriceStrings=function(){return null;};q.prototype.getValidBidOptions=function(r){return [k.OCPM_REACH];};q.prototype.getValidBidOptionsByValidBidTypes=function(r){return [k.OCPM_REACH];};function q(){n.apply(this,arguments);}f.exports=q;},null);
__d('AdsOfferClaimsBiddingDelegate',['AdsAPIObjectives','AdsAPIOptimizationGoals','AdsBiddingDelegate','AdsBidOptions','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m,n;'use strict';var o=500;m=babelHelpers.inherits(p,j);n=m&&m.prototype;p.getObjective=function(){return h.OFFER_CLAIMS;};p.prototype.getBidTypeDescription=function(q){switch(q){case k.OCPM_ACTIONS:return l._("We'll serve your ads to people who are more likely to claim the offer.");}return n.getBidTypeDescription.call(this,q);};p.prototype.getDefaultBidAmount=function(q,r){if(q===i.OFFER_CLAIMS)return o;return n.getDefaultBidAmount.call(this,q,r);};p.prototype.getBidInputLabel=function(q){switch(q){case k.OCPM_ACTIONS:return l._("target bid per offer claim");}return n.getBidTypeDescription.call(this,q);};p.prototype.getBidTypeLabel=function(q){switch(q){case k.OCPM_ACTIONS:return l._("Offer Claims");}return n.getBidTypeLabel.call(this,q);};p.prototype.getBidTypeSentence=function(q){switch(q){case k.OCPM_ACTIONS:var r=l._("Your bid will be optimized to get more offer claims.");return l._("{sentence 1} {sentence 2}",[l.param('sentence 1',r),l.param('sentence 2',this.__getOCPMBidTypeSentence())]);}return n.getBidTypeSentence.call(this,q);};p.prototype.getPriceStrings=function(q){switch(q){case k.OCPM_ACTIONS:return {auto:l._("Get the most offer claims at the best price - You'll be charged for impressions"),manual:l._("Set the amount an offer claimed is worth to you")};case k.CLICKS:return this.__getPriceStringsForClicksAdsBidOption();}return null;};p.prototype.getValidBidOptions=function(q){return [k.OCPM_ACTIONS,k.CLICKS];};p.prototype.getValidBidOptionsByValidBidTypes=function(q){return [k.OCPM_ACTIONS,k.CLICKS];};function p(){m.apply(this,arguments);}f.exports=p;},null);
__d('AdsPageLikesBiddingDelegate',['AdsAPIObjectives','AdsAPIOptimizationGoals','AdsBiddingDelegate','AdsBidOptions','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m,n;'use strict';var o=500;m=babelHelpers.inherits(p,j);n=m&&m.prototype;p.getObjective=function(){return h.PAGE_LIKES;};p.prototype.getBidTypeDescription=function(q){switch(q){case k.OCPM_ACTIONS:return l._("We'll serve your ads to people who are more likely to like your Facebook Page.");}return n.getBidTypeDescription.call(this,q);};p.prototype.getBidInputLabel=function(q){switch(q){case k.OCPM_ACTIONS:return l._("target bid per like");}return n.getBidTypeDescription.call(this,q);};p.prototype.getDefaultBidAmount=function(q,r){if(q===i.PAGE_LIKES)return o;return n.getDefaultBidAmount.call(this,q,r);};p.prototype.getBidTypeLabel=function(q){switch(q){case k.OCPM_ACTIONS:return l._("Page Likes");}return n.getBidTypeLabel.call(this,q);};p.prototype.getBidTypeSentence=function(q){switch(q){case k.OCPM_ACTIONS:var r=l._("Your bid will be optimized to get more Page likes.");return l._("{sentence 1} {sentence 2}",[l.param('sentence 1',r),l.param('sentence 2',this.__getOCPMBidTypeSentence())]);}return n.getBidTypeSentence.call(this,q);};p.prototype.getPriceStrings=function(q){switch(q){case k.OCPM_ACTIONS:return {auto:l._("Get the most likes at the best price - You will be charged for impressions"),manual:l._("Set the amount a Page like is worth to you")};case k.CLICKS:return this.__getPriceStringsForClicksAdsBidOption();}return null;};p.prototype.getValidBidOptions=function(q){return [k.OCPM_ACTIONS,k.CLICKS];};p.prototype.getValidBidOptionsByValidBidTypes=function(q){return [k.OCPM_ACTIONS,k.CLICKS];};function p(){m.apply(this,arguments);}f.exports=p;},null);
__d('AdsWebsiteBiddingDelegate',['AdsBiddingDelegate'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i,j;'use strict';i=babelHelpers.inherits(k,h);j=i&&i.prototype;function k(){i.apply(this,arguments);}f.exports=k;},null);
__d('AdsWebsiteClicksBiddingDelegate',['AdsAPIBillingEvents','AdsAPIObjectives','AdsAPIOptimizationGoals','AdsBidOptions','AdsBidOptionsConfigs','AdsWebsiteBiddingDelegate','adsGKCheck','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){if(c.__markCompiled)c.__markCompiled();var p,q;'use strict';var r=378,s=500;p=babelHelpers.inherits(t,m);q=p&&p.prototype;t.getObjective=function(){return i.WEBSITE_CLICKS;};t.prototype.shouldMigrateClicksToCPA=function(){return n('ads_interfaces_cpc_migration_website_clicks');};t.prototype.getBidTypeDescription=function(u){switch(u){case k.OCPM_ACTIONS:if(this.shouldMigrateClicksToCPA())return o._("We'll deliver your ad to people who are more likely to click the link in your ad, and you'll pay per impression.");return o._("We'll serve your ads to people who are more likely to click the link from your ads to your website.");case k.ACTIONS:return o._("We'll deliver your ad to people who are more likely to click the link in your ad, and you'll pay per link click (CPC).");}return q.getBidTypeDescription.call(this,u);};t.prototype.getBidInputLabel=function(u){switch(u){case k.OCPM_ACTIONS:if(this.shouldMigrateClicksToCPA())return o._("target bid per link click");return o._("target bid per website click");case k.ACTIONS:return o._("target bid per link click");}return q.getBidInputLabel.call(this,u);};t.prototype.getDefaultBidAmount=function(u,v){if(u===j.LINK_CLICKS)return v===h.IMPRESSIONS?s:r;return q.getDefaultBidAmount.call(this,u,v);};t.prototype.getBidTypeLabel=function(u){switch(u){case k.OCPM_ACTIONS:if(this.shouldMigrateClicksToCPA())return o._("Link Clicks to Website \/ Pay per Impressions");return o._("Clicks to Website");case k.ACTIONS:return o._("Link Clicks to Website \/ Pay per Link Click");}return q.getBidTypeLabel.call(this,u);};t.prototype.getDefaultBidOptionsConfig=function(u){if(this.shouldMigrateClicksToCPA())return l.AUTO_ACTION_AUTO_LINK_CLICK_BID_OPTIONS;return q.getDefaultBidOptionsConfig.call(this,u);};t.prototype.getBidTypeSentence=function(u){switch(u){case k.OCPM_ACTIONS:if(this.shouldMigrateClicksToCPA())return o._("You'll be charged each time your ad is served.");var v=o._("Your bid will be optimized to get more clicks to your website.");return o._("{sentence 1} {sentence 2}",[o.param('sentence 1',v),o.param('sentence 2',this.__getOCPMBidTypeSentence())]);case k.ACTIONS:return o._("You'll be charged each time someone clicks on the link in your ad to visit your URL.");}return q.getBidTypeSentence.call(this,u);};t.prototype.getPriceStrings=function(u){switch(u){case k.OCPM_ACTIONS:if(this.shouldMigrateClicksToCPA())return {auto:o._("Get more link clicks at the best price."),manual:o._("Set the bid you're willing to pay per link click.")};return {auto:o._("Get the most website clicks at the best price"),manual:o._("Set the amount a click to your website is worth to you")};case k.ACTIONS:return {auto:o._("You'll get more link clicks at the best price."),manual:o._("Set the bid you're willing to pay per link click.")};case k.CLICKS:return this.__getPriceStringsForClicksAdsBidOption();}return null;};t.prototype.getValidBidOptions=function(u){return [k.OCPM_ACTIONS,k.CLICKS,k.OCPM_REACH,k.IMPRESSIONS];};t.prototype.getValidBidOptionsByValidBidTypes=function(u){return [k.OCPM_ACTIONS,k.CLICKS,k.OCPM_REACH,k.IMPRESSIONS];};t.prototype.shouldShowBidPriceOptions=function(u,v){if(u===k.ACTIONS)return true;return q.shouldShowBidPriceOptions.call(this,u,v);};function t(){p.apply(this,arguments);}f.exports=t;},null);
__d('AdsWebsiteConversionsBiddingDelegate',['AdsAPIObjectives','AdsAPIOptimizationGoals','AdsBidOptions','AdsBidOptionsConfigs','AdsCreationExperimentStore','AdsOffsiteConversionConstants','AdsWebsiteBiddingDelegate','OcpmAdConfig','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){if(c.__markCompiled)c.__markCompiled();var q,r;'use strict';var s=500,t=378;q=babelHelpers.inherits(u,n);r=q&&q.prototype;u.getObjective=function(){return h.WEBSITE_CONVERSIONS;};u.prototype.getBidTypeDescription=function(v){switch(v){case j.OCPM_ACTIONS:return p._("We'll serve your ads to people who are more likely to complete an action on your website.");}return r.getBidTypeDescription.call(this,v);};u.prototype.getBidInputLabel=function(v){switch(v){case j.OCPM_ACTIONS:return p._("target bid per conversion");}return r.getBidTypeDescription.call(this,v);};u.prototype.getDefaultBidAmount=function(v,w){switch(v){case i.OFFSITE_CONVERSIONS:return s;case i.LINK_CLICKS:return t;}return r.getDefaultBidAmount.call(this,v,w);};u.prototype.getBidTypeLabel=function(v){switch(v){case j.OCPM_ACTIONS:return p._("Website Conversions");}return r.getBidTypeLabel.call(this,v);};u.prototype.getBidTypeSentence=function(v){switch(v){case j.OCPM_ACTIONS:var w=p._("Your bid will be optimized to get more conversions for your website.");return p._("{sentence 1} {sentence 2}",[p.param('sentence 1',w),p.param('sentence 2',this.__getOCPMBidTypeSentence())]);}return r.getBidTypeSentence.call(this,v);};u.prototype.getPriceStrings=function(v){switch(v){case j.OCPM_ACTIONS:return {auto:p._("Get the most website conversions at the best price - You'll be charged for impressions"),manual:p._("Set the amount a conversion is worth to you")};case j.CLICKS:return this.__getPriceStringsForClicksAdsBidOption();}return null;};u.prototype.getDefaultBidOptionsConfig=function(v){if(v.isVerifiedConversion)return k.AUTO_ACTION_AUTO_CLICK_BID_OPTIONS;return k.AUTO_CLICK_BID_OPTIONS;};u.prototype.getValidBidOptions=function(v){if(v.isVerifiedConversion){return [j.OCPM_ACTIONS,j.CLICKS,j.OCPM_REACH,j.IMPRESSIONS];}else return [j.CLICKS,j.OCPM_REACH,j.IMPRESSIONS];};u.prototype.getValidBidOptionsByValidBidTypes=function(v){if(v.isVerifiedConversion||v.initialBidOption===j.OCPM_ACTIONS)return [j.OCPM_ACTIONS,j.CLICKS,j.OCPM_REACH,j.IMPRESSIONS];return [j.CLICKS,j.OCPM_REACH,j.IMPRESSIONS];};u.prototype.getDefaultOCPMActionPrice=function(v,w,x){var y=x?o.offsiteMultiplier:o.actionsMultiplier,z=l.getExperiment('ads_enable_suggested_bid_for_offsite_conversion_ads');z.logExposure();if(!z.getParam('show'))return v.mooDefaultConversionBid*y;return w.cpa_median;};function u(){q.apply(this,arguments);}f.exports=u;},null);
__d('AdsBillingEventUtils',['AdsAPIBillingEvents','AdsAPIOptimizationGoals','AdsAPIOptimizationGoalBillingEvents','AdsBuyingTypes','Map'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=new l([[k.AUCTION,[h.IMPRESSIONS,h.LINK_CLICKS,h.APP_INSTALLS,h.PAGE_LIKES,h.OFFER_CLAIMS,h.POST_ENGAGEMENT]],[k.FIXED_CPM,[h.IMPRESSIONS]],[k.RESERVED,[h.IMPRESSIONS]],[k.REACHBLOCK,[h.IMPRESSIONS]],[k.DEPRECATED_REACH_BLOCK,[h.IMPRESSIONS]],[k.RESEARCH_POLL,[h.CLICKS]]]),n={getDefaultForOptimizationGoal:function(o){switch(o){case i.APP_INSTALLS:return h.APP_INSTALLS;case i.LINK_CLICKS:return h.LINK_CLICKS;case i.OFFER_CLAIMS:return h.OFFER_CLAIMS;case i.PAGE_LIKES:return h.PAGE_LIKES;case i.POST_ENGAGEMENT:return h.POST_ENGAGEMENT;case i.VIDEO_VIEWS:return h.VIDEO_VIEWS;}return h.IMPRESSIONS;},getForBuyingType:function(o){return m.get(o)||[];},isValidForBuyingType:function(o,p){var q=m.get(p)||[];return q.indexOf(o)!==-1;},getForOptimizationGoal:function(o){var p=j[o];if(!p)return [];var q=[];for(var r in p)q.push(r);return q;},isValidForOptimizationGoal:function(o,p){var q=j[p];return !!q&&!!q[o];},isLegacyActionBillingEvent:function(o){switch(o){case h.PAGE_LIKES:case h.OFFER_CLAIMS:case h.APP_INSTALLS:case h.LINK_CLICKS:case h.VIDEO_VIEWS:case h.POST_ENGAGEMENT:return true;default:return false;}}};f.exports=n;},null);
__d('AdsCFNewCampaignFBID',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h='NEW_CAMPAIGN_ID';f.exports=h;},null);
__d('AdsOptimizationGoalUtils',['AdsAPIObjectiveOptimizationGoals'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i={getDefaultForObjective:function(j){var k=h[j];if(!k)return null;return k.DEFAULT;},getValidForObjective:function(j){var k=h[j];if(!k)return [];var l=[];for(var m in k.VALID)l.push(m);return l;},isValidForObjective:function(j,k){var l=h[k];return !!l&&!!l.VALID[j];}};f.exports=i;},null);
__d('adsCFDefaultCampaignPricingFieldsReducer',['AdsAPICampaignRecord','AdsBiddingDelegate','AdsBillingEventUtils','AdsCFActionTypes','AdsCFNewCampaignFBID','AdsOptimizationGoalUtils','AdsPixelViewActionTypes','LoadObject','Set','adsCFGetObjective_HACK'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=new p([k.CONVERSION_PIXEL_CHANGE,k.DESTINATION_CHANGE,k.DESTINATION_LOADED,k.DESTINATION_SELECT,k.DESTINATION_UPDATE,k.KPI_OBJECTIVE_CHANGE,k.OBJECTIVE_CHANGE,k.RESET_DESTINATION,k.RESTORE_PRICING_DEFAULTS,n.UPDATE_CONVERSION_CHOICE]),s=function(t,u){var v=q(),w=i.get(v);if(r.has(u.type)){var x=w.shouldAutobidByDefault(),y=m.getDefaultForObjective(v),z=y&&j.getDefaultForOptimizationGoal(y),aa=new h({bid_amount:x?undefined:w.getDefaultBidAmount(),billing_event:z,is_autobid:x,optimization_goal:y});return t.set(l,o.creating().setValue(aa));}return t;};f.exports=s;},null);
__d('adsCFGetAdgroupSpecs_HACK',['AdsCFAdgroupStore','AdsDispatcher'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();f.exports=function j(){if(i.isDispatching())i.waitFor([h.getDispatchToken()]);return h.getState().toArray().map(function(k){return k.getValueEnforcing();});};},null);
__d('adsCFGetCachedAdgroup_HACK',['AdsCFAdgroupCacheStore','AdsDispatcher'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();f.exports=function j(){if(i.isDispatching())i.waitFor([h.getDispatchToken()]);return h.getState();};},null);
__d('adsCFGetDestination_HACK',['AdsCFDestinationStore','AdsDispatcher'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();f.exports=function j(){if(i.isDispatching())i.waitFor([h.dispatchToken]);return h.getDestinationDetails();};},null);
__d('adsCFGetObjective_HACK',['AdsCFObjectiveStore','AdsDispatcher'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();f.exports=function j(){if(i.isDispatching())i.waitFor([h.dispatchToken]);return h.getState().apiObjective;};},null);
__d('adsCFGetPageTypes_HACK',['AdsCFConstants','AdsCFTargetingStore','AdsDispatcher'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();f.exports=function k(){if(j.isDispatching())j.waitFor([i.getDispatchToken()]);return i.getState(h.CanonicalID).pageTypes;};},null);
__d('adsCFGetSelectedImages_HACK',['AdsCFSelectedImagesStore','AdsDispatcher'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();f.exports=function j(){if(i.isDispatching())i.waitFor([h.getDispatchToken()]);return h.getState();};},null);
__d('AdsCFAdNameStore',['AdsActionTypes','AdsBaseStore','AdsCFActionTypes','AdsCFAdNameUtils','AdsCFCreativeStore','AdsCFDestinationStore','AdsCFObjectiveStore','AdsCoreObjectiveDelegate','AdsCreativeUtils','AdsDispatcher'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){if(c.__markCompiled)c.__markCompiled();var r,s;'use strict';var t,u;function v(){t=null;u=null;}r=babelHelpers.inherits(w,i);s=r&&r.prototype;w.prototype.getStoreName=function(){return 'AdsCFAdNameStore';};w.prototype.getAdName=function(){return t;};w.prototype.getPrimaryAdName=function(){if(u||u==='')return u;return t;};w.prototype.getMultiImageAdName=function(y){if(u)return u+k.getSuffixForMultiAds(y);var z=p.getPostContent(m.getPagePostDetails(l.getState().storyId));return o.get(n.getAPIObjective()).getAdName(m.getDestinationDetails().destinationName||'',{postContent:z},y);};w.prototype.getUserAssignedAdName=function(){return u;};w.prototype.onDispatchToken=function(y){var z=false;switch(y.action.actionType){case j.CHANGE_AD_NAME:u=y.action.name;t=u;z=true;break;case j.CREATIVE_CHANGE:case j.DESTINATION_CHANGE:case j.OBJECTIVE_CHANGE:case j.KPI_OBJECTIVE_CHANGE:case j.PAGE_POSTS_LOAD_COMPLETE:if(u)break;q.waitFor([l.dispatchToken,m.dispatchToken,n.dispatchToken]);if(y.action.actionType===j.CREATIVE_CHANGE&&!y.action.storyId)return;var aa=m.getDestinationDetails(),ba=l.getState(),ca=p.getPostContent(m.getPagePostDetails(ba.storyId));t=o.get(n.getAPIObjective()).getAdName(aa.destinationName||'',{postContent:ca});z=true;break;case h.PAGE_TRANSITION:v();break;}z&&x.inform('change');};function w(){r.apply(this,arguments);}var x=new w();b.debug_AdsCFAdNameStore=x;f.exports=x;},null);
__d('isL1RefactorEnabled',['AdsAPIObjectives','adsGKCheck','arrayContains'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k=[h.PAGE_LIKES];function l(m){return (i('ads_cf_l1_refactor')&&j(k,m));}f.exports=l;},null);
__d('AdsCFAdgroupCacheStore',['AdsAdgroupSpecUtils','AdsCFActionTypes','AdsCFNewAdgroupFBID','AdsDispatcher','AdsMediaFormat','ApiAdObjectTypes','FluxReduceStore','immutable','adsCFGetObjective_HACK','isL1RefactorEnabled','AdsCFAdgroupStore'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){if(c.__markCompiled)c.__markCompiled();var r,s;'use strict';function t(v){var w=c('AdsCFAdgroupStore');return w.getState().get(j+'-0').getValueEnforcing();}r=babelHelpers.inherits(u,n);s=r&&r.prototype;u.prototype.getInitialState=function(){return o.Map();};u.prototype.reduce=function(v,w){var x=w.action;if(!q(p()))return v;var y=t(v),z=h.getObjectType(y);switch(x.type){case i.DESTINATION_CHANGE:case i.RESET_DESTINATION:return this.getInitialState();case i.IMAGE_MEDIA_TYPE_SELECTED:if(z===m.VIDEO)return v.set(l.VIDEO,y);break;case i.VIDEO_MEDIA_TYPE_SELECTED:if(z!==m.VIDEO)return v.set(l.IMAGE,y);break;}return v;};function u(){r.apply(this,arguments);}f.exports=new u(k);},null);
__d('adsCFAdgroupCreationReducer',['AdsAPIAdgroupRecord'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=function(j,k){return j;};f.exports=i;},null);
__d('AdsCFAdgroupStore',['AdsDispatcher','FluxReduceStore','immutable','adsCFAdgroupCreationReducer','adsCFAdgroupDefaultSpecReducer','adsCFAdgroupMediaReducer','adsCFAdgroupStandardCreativeReducer','adsCFGetObjective_HACK','isL1RefactorEnabled'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){if(c.__markCompiled)c.__markCompiled();var q,r;'use strict';var s=[k,l,m,n];q=babelHelpers.inherits(t,i);r=q&&q.prototype;t.prototype.getInitialState=function(){return j.Map();};t.prototype.reduce=function(u,v){var w=v.action;if(!p(o()))return u;return s.reduce(function(x,y){return y(x,w);},u);};function t(){q.apply(this,arguments);}f.exports=new t(h);},null);
__d('AdsCFAudienceEstimateValidator',['AdsCountriesConfig','AdsFetchedTargetingData','AdsTargetingLocationUtils','AdsTargetingSectionsLabels','AdsUtils','LocationConstants','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=['behaviors','ethnicAffinity','generation','homeOwnership','homeType','homeValue','householdComposition','income','industries','lifeEvents','moms','netWorth','officeType','politics','userAdclusters'];function p(aa,ba){return {isValid:!!aa,errorMessage:ba||''};}function q(aa){return {geoLocations:r(aa),countrySpecificTargeting:s(aa)};}function r(aa){if(!aa){var ba=false;}else if(aa.custom_audiences||aa.connections&&aa.connections.length){ba=true;}else{var ca=aa.geo_locations||{};ba=j.getLocationsCount(ca)>=1;if(ca.custom_locations&&!ca.custom_locations.every(function(da){return ((da.latitude!=null&&da.longitude!=null||da.address_string)&&da.radius!=null);}))return p(false);}return p(ba,!!ba?'':t());}function s(aa){var ba=w(aa),ca=v(aa.geo_locations||{}),da=Object.keys(ca).length>1,ea=true,fa;Object.keys(ba).forEach(function(ga){if(ea)if(ca[ga]===undefined||da){ea=false;fa=u(ga,ba[ga]);}});return p(ea,fa);}function t(){return n._("Please pick at least one country to target.");}function u(aa,ba){var ca=h.countries[aa],da=n._("Some of your targeting is for {localizedCountryName}-based audiences only. Remove the following audience segments to reach people in other locations:",[n.param('localizedCountryName',ca)]),ea=Object.keys(ba).map(function(fa){return (k[l.camelCaseKey(fa)]+': '+ba[fa].map(function(ga){return ga.name;}).join(', '));});return {content:da,children:ea};}function v(aa){var ba={};m.locationTypes.forEach(function(ca){(aa[ca]||[]).forEach(function(da){if(ca===m.COUNTRIES){y(da)&&(ba[da]=null);}else y(da.country)&&(ba[da.country]=null);});});return ba;}function w(aa){var ba=i.getInstance(),ca=ba.getAllFromTargetingTypes(o),da=z(aa,o),ea={};Object.keys(da).forEach(function(fa){var ga=da[fa];ga.forEach(function(ha){var ia=ca[fa]&&ca[fa].fetchByID(ha);if(!ia)return;x(ea,ia,fa);});});return ea;}function x(aa,ba,ca){var da=ba.country;if(!y(da))return;!aa[da]&&(aa[da]={});!aa[da][ca]&&(aa[da][ca]=[]);aa[da][ca].push(ba);}function y(aa){return !!(aa&&typeof aa==='string'&&aa.length);}function z(aa,ba){var ca={};ba.forEach(function(da){var ea=l.underscoreKey(da),fa={};(aa[ea]||[]).forEach(function(ga){ga.id&&(fa[ga.id]=null);});ca[da]=Object.keys(fa);});return ca;}f.exports={validateTargetingSpec:q};},null);
__d('AdsBudgetDelegate',['AdsApplicationIDs','AdsObjectiveDelegate','AdsObjectiveDelegateTypes','CampaignDefaultBudgetConfig','invariant','AdsCanvasAppEngagementBudgetDelegate','AdsCanvasAppInstallsBudgetDelegate','AdsEventResponsesBudgetDelegate','AdsLocalAwarenessBudgetDelegate','AdsMobileAppEngagementBudgetDelegate','AdsMobileAppInstallsBudgetDelegate','AdsOfferClaimsBudgetDelegate','AdsPageLikesBudgetDelegate','AdsPostEngagementBudgetDelegate','AdsVideoViewsBudgetDelegate','AdsWebsiteClicksBudgetDelegate','AdsWebsiteConversionsBudgetDelegate'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m,n;'use strict';var o=parseInt(k.campaign_length_month,10);m=babelHelpers.inherits(p,i);n=m&&m.prototype;p.getDelegateType=function(){return j.BUDGET;};p.getDelegateClasses=function(){return [c('AdsCanvasAppEngagementBudgetDelegate'),c('AdsCanvasAppInstallsBudgetDelegate'),c('AdsEventResponsesBudgetDelegate'),c('AdsLocalAwarenessBudgetDelegate'),c('AdsMobileAppEngagementBudgetDelegate'),c('AdsMobileAppInstallsBudgetDelegate'),c('AdsOfferClaimsBudgetDelegate'),c('AdsPageLikesBudgetDelegate'),c('AdsPostEngagementBudgetDelegate'),c('AdsVideoViewsBudgetDelegate'),c('AdsWebsiteClicksBudgetDelegate'),c('AdsWebsiteConversionsBudgetDelegate')];};p.prototype.getDefaultLifetimeBudgetUSD=function(q){if(this.__isInCFDefaultBudgetExperiment(q)){this.$AdsBudgetDelegate1();return (k.default_budget_experiment.lifetime);}return k.default_budget.lifetime;};p.prototype.getDefaultDailyBudgetUSD=function(q){if(this.__isInCFDefaultBudgetExperiment(q)){this.$AdsBudgetDelegate2();return k.default_budget_experiment.daily;}return k.default_budget.daily;};p.prototype.__isInCFDefaultBudgetExperiment=function(q){return (q===h.ADS_CAMPAIGN_MANAGER&&k.isInExperiment);};p.prototype.__isInControl=function(){return (k.default_budget_experiment.isInControl);};p.prototype.__maybeOverrideExperimentDefaultDailyBudgetUSD=function(q,r){!this.__isInCFDefaultBudgetExperiment(q)?l(0):undefined;if(this.__isInControl()){return r;}else{this.$AdsBudgetDelegate2();return k.default_budget_experiment.daily;}};p.prototype.__maybeOverrideExperimentDefaultLifetimeBudgetUSD=function(q,r){!this.__isInCFDefaultBudgetExperiment(q)?l(0):undefined;if(this.__isInControl()){return r;}else{this.$AdsBudgetDelegate1();return k.default_budget_experiment.lifetime;}};p.prototype.$AdsBudgetDelegate1=function(){!k.default_budget_experiment.lifetime?l(0):undefined;};p.prototype.$AdsBudgetDelegate2=function(){!k.default_budget_experiment.daily?l(0):undefined;};p.prototype.getDefaultEndDate=function(q,r){var s=new Date(q);s.setMonth(s.getMonth()+o);return s;};p.prototype.isLifetimeOnly=function(){return false;};p.prototype.shouldOverrideDailyBudgetWithDestination=function(){return false;};function p(){m.apply(this,arguments);}f.exports=p;},null);
__d('AdsAppBudgetDelegate',['AdsBudgetDelegate'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i,j;'use strict';i=babelHelpers.inherits(k,h);j=i&&i.prototype;function k(){i.apply(this,arguments);}f.exports=k;},null);
__d('AdsCanvasAppBudgetDelegate',['AdsAppBudgetDelegate'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i,j;'use strict';i=babelHelpers.inherits(k,h);j=i&&i.prototype;function k(){i.apply(this,arguments);}f.exports=k;},null);
__d('AdsCanvasAppInstallsBudgetDelegate',['AdsAPIObjectives','AdsCanvasAppBudgetDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.CANVAS_APP_INSTALLS;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsMobileAppBudgetDelegate',['AdsAppBudgetDelegate'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i,j;'use strict';i=babelHelpers.inherits(k,h);j=i&&i.prototype;function k(){i.apply(this,arguments);}f.exports=k;},null);
__d('AdsMobileAppEngagementBudgetDelegate',['AdsAPIObjectives','AdsGraphAPI','AdsMobileAppBudgetDelegate'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';var m=2000;k=babelHelpers.inherits(n,j);l=k&&k.prototype;n.getObjective=function(){return h.MOBILE_APP_ENGAGEMENT;};n.prototype.getDefaultDailyBudgetUSD=function(o){var p=i.shouldUseGeneralMigration()?m:l.getDefaultDailyBudgetUSD.call(this,o);if(this.__isInCFDefaultBudgetExperiment(o))return this.__maybeOverrideExperimentDefaultDailyBudgetUSD(o,p);return p;};function n(){k.apply(this,arguments);}f.exports=n;},null);
__d('AdsMobileAppInstallsBudgetDelegate',['AdsAPIObjectives','AdsMobileAppBudgetDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.MOBILE_APP_INSTALLS;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsEventResponsesBudgetDelegate',['AdsAPIObjectives','AdsGraphAPI','AdsBudgetDelegate'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';var m=1100;k=babelHelpers.inherits(n,j);l=k&&k.prototype;n.getObjective=function(){return h.EVENT_RESPONSES;};n.prototype.getDefaultDailyBudgetUSD=function(o){var p=i.shouldUseGeneralMigration()?m:l.getDefaultDailyBudgetUSD.call(this,o);if(this.__isInCFDefaultBudgetExperiment(o))return this.__maybeOverrideExperimentDefaultDailyBudgetUSD(o,p);return p;};function n(){k.apply(this,arguments);}f.exports=n;},null);
__d('AdsLocalAwarenessBudgetDelegate',['AdsAPIObjectives','AdsBudgetDelegate','DateConsts','AdsCampaignUtils','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m,n;'use strict';var o=5000;m=babelHelpers.inherits(p,i);n=m&&m.prototype;p.getObjective=function(){return h.LOCAL_AWARENESS;};p.prototype.getDefaultLifetimeBudgetUSD=function(q){if(this.__isInCFDefaultBudgetExperiment(q)&&!this.__isInControl()){var r=k.getScheduleLengthsDays();!(r.defaults&&r.defaults.length>1)?l(0):undefined;return (this.getDefaultDailyBudgetUSD(q)*r.defaults[1]);}return o;};p.prototype.getDefaultEndDate=function(q,r){!(r.defaults&&r.defaults.length>1)?l(0):undefined;var s=r.defaults[1];return new Date(q.getTime()+s*j.MS_PER_DAY);};function p(){m.apply(this,arguments);}f.exports=p;},null);
__d('AdsOfferClaimsBudgetDelegate',['AdsAPIObjectives','AdsGraphAPI','AdsBudgetDelegate'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';var m=1100;k=babelHelpers.inherits(n,j);l=k&&k.prototype;n.getObjective=function(){return h.OFFER_CLAIMS;};n.prototype.getDefaultDailyBudgetUSD=function(o){var p=i.shouldUseGeneralMigration()?m:l.getDefaultDailyBudgetUSD.call(this,o);if(this.__isInCFDefaultBudgetExperiment(o))return this.__maybeOverrideExperimentDefaultDailyBudgetUSD(o,p);return p;};function n(){k.apply(this,arguments);}f.exports=n;},null);
__d('AdsPageLikesBudgetDelegate',['AdsAPIObjectives','AdsBudgetDelegate','AdsGraphAPI'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';var m={daily:j.shouldUseGeneralMigration()?2500:1000,lifetime:50000};k=babelHelpers.inherits(n,i);l=k&&k.prototype;n.getObjective=function(){return h.PAGE_LIKES;};n.prototype.getDefaultDailyBudgetUSD=function(o){if(this.__isInCFDefaultBudgetExperiment(o))return this.__maybeOverrideExperimentDefaultDailyBudgetUSD(o,m.daily);return m.daily;};n.prototype.getDefaultLifetimeBudgetUSD=function(o){if(this.__isInCFDefaultBudgetExperiment(o))return this.__maybeOverrideExperimentDefaultLifetimeBudgetUSD(o,m.lifetime);return m.lifetime;};n.prototype.shouldOverrideDailyBudgetWithDestination=function(){return true;};function n(){k.apply(this,arguments);}f.exports=n;},null);
__d('AdsPostEngagementBudgetDelegate',['AdsAPIObjectives','AdsBudgetDelegate','AdsGraphAPI'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';var m=1100;k=babelHelpers.inherits(n,i);l=k&&k.prototype;n.getObjective=function(){return h.POST_ENGAGEMENT;};n.prototype.getDefaultDailyBudgetUSD=function(o){var p=j.shouldUseGeneralMigration()?m:l.getDefaultDailyBudgetUSD.call(this,o);if(this.__isInCFDefaultBudgetExperiment(o))return this.__maybeOverrideExperimentDefaultDailyBudgetUSD(o,p);return p;};function n(){k.apply(this,arguments);}f.exports=n;},null);
__d('AdsVideoViewsBudgetDelegate',['AdsApplicationIDs','AdsAPIObjectives','AdsBudgetDelegate','CampaignDefaultBudgetConfig'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l,m;'use strict';var n={daily:2000,lifetime:50000};l=babelHelpers.inherits(o,j);m=l&&l.prototype;o.getObjective=function(){return i.VIDEO_VIEWS;};o.prototype.$AdsVideoViewsBudgetDelegate1=function(p){return (p===h.ADS_CREATOR||p===h.ADS_CAMPAIGN_MANAGER||p===h.ADS_POWER_EDITOR);};o.prototype.getDefaultDailyBudgetUSD=function(p){if(this.__isInCFDefaultBudgetExperiment(p)){var q=this.$AdsVideoViewsBudgetDelegate1(p)?n.daily:k.default_budget.daily;return this.__maybeOverrideExperimentDefaultDailyBudgetUSD(p,q);}if(this.$AdsVideoViewsBudgetDelegate1(p))return n.daily;return k.default_budget.daily;};o.prototype.getDefaultLifetimeBudgetUSD=function(p){if(this.__isInCFDefaultBudgetExperiment(p)){var q=this.$AdsVideoViewsBudgetDelegate1(p)?n.lifetime:k.default_budget.lifetime;return this.__maybeOverrideExperimentDefaultLifetimeBudgetUSD(p,q);}if(this.$AdsVideoViewsBudgetDelegate1(p))return n.lifetime;return k.default_budget.lifetime;};function o(){l.apply(this,arguments);}f.exports=o;},null);
__d('AdsWebsiteBudgetDelegate',['AdsBudgetDelegate','AdsGraphAPI'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';var l=2000;j=babelHelpers.inherits(m,h);k=j&&j.prototype;m.prototype.getDefaultDailyBudgetUSD=function(n){var o=i.shouldUseGeneralMigration()?l:k.getDefaultDailyBudgetUSD.call(this,n);if(this.__isInCFDefaultBudgetExperiment(n))return this.__maybeOverrideExperimentDefaultDailyBudgetUSD(n,o);return o;};function m(){j.apply(this,arguments);}f.exports=m;},null);
__d('AdsWebsiteClicksBudgetDelegate',['AdsAPIObjectives','AdsWebsiteBudgetDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.WEBSITE_CLICKS;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsWebsiteConversionsBudgetDelegate',['AdsAPIObjectives','AdsWebsiteBudgetDelegate'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.getObjective=function(){return h.WEBSITE_CONVERSIONS;};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsBaseCampaignUtils',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=1000*60*60*24,i={getCampaignDayCountFrom:function(j,k){var l=k.valueOf()-j.valueOf();return l/h;},isSameDayUTC:function(j,k){return (j.getUTCDate()===k.getUTCDate()&&j.getUTCMonth()===k.getUTCMonth()&&j.getUTCFullYear()===k.getUTCFullYear());},isStartDateEditable:function(j,k,l){l=l||new Date();return j||k>l;},getCampaignDayLeftCount:function(j,k){var l=new Date(),m=new Date(l.getFullYear(),l.getMonth(),l.getDate());k=k||l;if(k<l){return 0;}else if(m>=j){return this.getCampaignDayCountFrom(m,k);}else return this.getCampaignDayCountFrom(j,k);}};f.exports=i;},null);
__d("AdsDefaultBudget",["AdsDefaultBudgetConfig"],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('AdsDefaultBudgetConfig').currencies;function i(k){if(h[k])return h[k].default_daily_budget;return h.USD.default_daily_budget;}function j(k){if(h[k])return h[k].default_lifetime_budget;return h.USD.default_lifetime_budget;}g.getDefaultDailyBudget=i;g.getDefaultLifetimeBudget=j;},null);
__d('AdsCampaignUtils',['AdsAccountUtils','AdsAPIAdCampaignFields','AdsAPICampaignPaths','AdsAPIObjectives','AdsBudgetDelegate','AdsBaseCampaignUtils','AdsBulkValueTypesConfig','AdsBulkValueUtils','AdsBuyingTypes','AdsCFConstants','AdsCFNewCampaignFBID','AdsCurrencyFormatter','AdsDefaultBudget','AdsTargetingConstants','AdsUniformValue','Currency','DateConsts','DatePickerRestraints','FBDate','RFInstagramDeliveryConfiguration','URIInitDataUtil','WebApiApplication','XUICalendar.react','XUIDateTimePickerUtils','arrayContains','fbt','formatDate','getByPath','invariant','intlList'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka){'use strict';if(c.__markCompiled)c.__markCompiled();var la=q.CampaignValidationErrors,ma=q.CampaignBudgetModes,na=100,oa=10000,pa=50,qa=1000*60*60*24;function ra(xa){switch(xa){case u.GENDERS.Men:return ga._("M");case u.GENDERS.Women:return ga._("W");}return null;}function sa(xa){return (xa+100+'').substr(1);}function ta(xa){var ya=[],za=0;for(var ab=0;ab<xa.length;ab++){var bb=xa[ab];if(za&&bb.length+za>pa)return ua(ka(ya,ka.CONJUNCTIONS.NONE));ya.push(bb);za+=bb.length;}if(ya.length>0)return ka(ya,ka.CONJUNCTIONS.NONE);return ua(xa[0].substring(0,pa));}function ua(xa){return ga._("{list of items}...",[ga.param('list of items',xa)]);}function va(xa){var ya=xa.split(/(?:,| )+/);if(ya.length&&!isNaN(+ya[0]))ya=ya.slice(1);if(!ya.length){return '';}else if(ya.length===1){return ya[0];}else{var za=ga._("{address_part_one} {address_part_two}",[ga.param('address_part_one',ya[0]),ga.param('address_part_two',ya[1])]);if(ya.length===2){return za;}else return ua(za);}}var wa={isFixedPrice:function(xa){var ya=ia(xa,j.BUYING_TYPE);return ya===p.FIXED_CPM;},isReachBlock:function(xa){var ya=ia(xa,j.BUYING_TYPE);return ya===p.REACHBLOCK;},getDailyBudgetEstimate:function(xa,ya,za,ab){if(xa)if(!ya){return xa;}else return null;if(ya){if(!za||!ab)return null;var bb=wa.getCampaignDayCount(za,ab);if(bb)return ya/bb;}return null;},getDateRestraints:function(xa,ya,za){var ab=[y.enforceDateIsNoEarlierThan(xa)];if(za&&za>xa)ab.push(y.enforceDateIsNoLaterThan(za));var bb=[y.enforceDateIsNoEarlierThan(xa)];if(ya&&ya<xa)bb.push(y.enforceDateIsNoEarlierThan(ya));return {start:ab,end:bb};},getOffsetDateRestraints:function(xa,ya,za){var ab=xa&&ea.getOffsetUIDate(xa,za),bb=ya&&ea.getOffsetUIDate(ya,za);return this.getDateRestraints(da.normalizeDate(ea.getOffsetUIDate(new Date(),za)),ab&&da.normalizeDate(ab),bb&&da.normalizeDate(bb));},getGenericDateTimeString:function(xa,ya){var za=ea.offsetDate(xa,ya),ab=sa(za.getUTCMonth()+1)+'/'+sa(za.getUTCDate())+'/'+sa(za.getUTCFullYear()%100),bb=za.getUTCHours()===0||za.getUTCHours()===12?'12':za.getUTCHours()%12,cb=sa(za.getUTCMinutes()),db=sa(za.getUTCSeconds()),eb=za.getUTCHours()>=12?'pm':'am',fb=bb+':'+cb+':'+db+' '+eb;return ab+' '+fb;},getISODateTimeString:function(xa,ya){var za=wa.getGenericDateTimeString(xa,ya),ab=wa.convertGenericDateTimeToISOString(za,ya);return ab;},dateToBulkString:function(xa,ya){if(!xa)return new v(null);return new v(wa.getISODateTimeString(xa,ya));},convertGenericDateTimeToISOString:function(xa,ya){var za=xa.split(' '),ab=za[0].split('/'),bb=za[1].split(':'),cb=za[2],db=ab[0],eb=ab[1],fb='20'+ab[2],gb=parseInt(bb[0],10),hb=bb[1],ib=bb[2]||'00';if(cb==='pm'&&gb<12){gb=gb+12;}else if(cb==='am'&&gb===12)gb=0;var jb=fb+'-'+db+'-'+eb+'T'+sa(gb)+':'+hb+':'+ib,kb=60*Math.abs(ya),lb=Math.floor(kb/60),mb=kb%60,nb=(ya>=0?'+':'-')+sa(lb)+sa(mb);return jb+nb;},getValidationMessage:function(xa,ya,za){switch(xa){case la.START_DATE_BEFORE_NOW:return ga._("The start date for your ad set was adjusted because it occurred in the past. Use this new start date or choose a new one.");case la.END_DATE_BEFORE_START_DATE:return ga._("The end date for your ad set was adjusted because it was before the start date. Use this new end date or choose a new one.");case la.END_DATE_BEFORE_NOW:return ga._("The end date for your ad set was adjusted because it occurred in the past. Use this new end date or choose a new one.");case la.INSUFFICIENT_DAILY_BUDGET:if(ya&&za){var ab=s.formatCurrency(ya,za);}else undefined;return ga._("The end date for your ad set was adjusted to make sure you're budgeting at least {min} for every day your ad will run. Use this end date, choose a new one or increase your budget to extend your campaign.",[ga.param('min',ab)]);}},generateName:function(xa,ya,za,ab,bb,cb,db){var eb=[];if(ab){var fb=[],gb={},hb=[],ib=[];if(ab.countries)ab.countries.forEach(function(nb){gb[nb]=1;});if(ab.zips)ab.zips.forEach(function(nb){if(nb.name)ib.push(nb.name);if(nb.country)gb[nb.country]=1;});if(ab.cities)ab.cities.forEach(function(nb){if(nb.name)fb.push(nb.name);if(nb.country)gb[nb.country]=1;});if(ab.regions)ab.regions.forEach(function(nb){if(nb.name)hb.push(nb.name);if(nb.country)gb[nb.country]=1;});var jb=Object.keys(gb);if(jb.length===1&&ib.length>0){eb.push(ta(ib));}else if(jb.length===1&&fb.length>0){eb.push(ta(fb));}else if(jb.length===1&&hb.length>0){eb.push(ta(hb));}else if(jb.length>0)eb.push(ta(jb));}else if(za.length>0)eb.push(ta(za));var kb=ra(bb);if(kb)eb.push(kb);if(db&&db<65){eb.push(cb+'-'+db);}else eb.push(cb+'+');if(ab&&ab.custom_locations&&ab.custom_locations.length){var lb=ab.custom_locations[0].address_string;if(lb){var mb=va(lb);if(mb)eb.push(mb);}}return eb.join(' - ');},generateBudgetString:function(xa,ya,za,ab){var bb=xa&&xa>0,cb=(bb?xa:ya)||0,db=s.formatCurrency(ab,cb);if(bb)return ga._("{budget} per day",[ga.param('budget',db)]);za=za||0;var eb=s.formatCurrency(ab,za);return ga._("{budget_remaining} of {budget} lifetime budget",[ga.param('budget_remaining',eb),ga.param('budget',db)]);},generateScheduleString:function(xa,ya){if(ya)return ga._("{start} - {end}",[ga.param('start',ha(xa,'F j, Y')),ga.param('end',ha(ya,'F j, Y'))]);return ga._("Running continuously");},getDefaultStartDate:function(){var xa=new Date();return xa;},getDefaultEndDate:function(xa,ya,za){return l.get(za).getDefaultEndDate(xa,ya);},getScheduleLengthsDays:function(){return {defaults:[1,7,14],other:30};},getExtendedEndDate:function(xa){var ya=qa*14,za=new Date(Math.max(Date.now()+ya,xa.valueOf()+ya));return za;},getCampaignDaysLabel:function(xa){xa=Math.ceil(xa);return ga._({"*":{"days":"{days} days","day":"{days} day"}},[ga.param('days',xa,[0]),ga['enum'](xa>1||xa===0?'days':'day',{days:'days',day:'day'})]);},getDefaultDailyBudget:function(xa,ya){ya=ya||k.NONE;var za=l.get(ya).getDefaultDailyBudgetUSD(ca.getClientID()),ab=ba.getDailyBudget();if(ab&&ab>=na&&ab<=oa)za=ab;return wa.convertUSDBudgetToCurrency(xa,za);},getDefaultLifetimeBudget:function(xa,ya){ya=ya||k.NONE;var za=l.get(ya).getDefaultLifetimeBudgetUSD(ca.getClientID());return wa.convertUSDBudgetToCurrency(xa,za);},convertUSDBudgetToCurrency:function(xa,ya){var za=t.getDefaultDailyBudget(xa)/t.getDefaultDailyBudget('USD');return ya*za;},isSameDayUTC:function(xa,ya){return m.isSameDayUTC(xa,ya);},getCampaignDayLeftCount:function(xa,ya){return m.getCampaignDayLeftCount(xa,ya);},getCampaignDayCount:function(xa,ya){return m.getCampaignDayCountFrom(xa,ya);},isStartDateEditable:function(xa,ya,za){return m.isStartDateEditable(xa,ya,za);},convertBulkTime:function(xa,ya){return o.aggregate(n.EMPTY_UNIFORM_MIXED,xa.getValues().map(function(za){return !za?null:wa._getUTCTimestamp(za*x.MS_PER_SEC,ya);}));},_getUTCTimestamp:function(xa,ya){return new z(xa,ya).getEquivalentInUTC().getUnixTimestamp();},containsRFCampaign:function(xa){return ia(xa,j.BUYING_TYPE).getValues().some(function(ya){return ya===p.RESERVED;});},isUsingPremiumInSelfServe:function(xa,ya){return (!h.hasContract(ya)&&xa===p.FIXED_CPM);},getBudgetAndType:function(xa,ya,za){if(xa){return {budget:xa,mode:ma.DAILY};}else if(ya||za){return {budget:ya||0,mode:ma.LIFETIME};}else return {budget:0,mode:ma.DAILY};},computeImpressionsFromBudgetForInstagramIO:function(xa,ya,za){var ab=w.getOffset(za);return Math.round(1000*ya/xa/ab);},computeLifetimeReachFromBudgetForInstagramIO:function(xa,ya,za){var ab=wa.computeImpressionsFromBudgetForInstagramIO(xa,ya,za);return Math.round(ab*aa.marqueeReachImpressionRatio);},shiftBulkEndDateForToplineCampaign:function(xa,ya){return o.aggregate(n.EMPTY_UNIFORM_MIXED,xa.getValues().map(function(za){return za?new z(za,ya).setHours(23).setMinutes(59).getUnixTimestamp():null;}));},getID:function(xa){if(!xa[i.ID])return r;return xa[i.ID];},isNewCampaign:function(xa){return !xa[i.ID];},getBudgetAmount:function(xa){if(wa.isDailyBudget(xa))return xa[i.DAILY_BUDGET];return xa[i.LIFETIME_BUDGET];},getBudgetMode:function(xa){return xa[i.DAILY_BUDGET]?ma.DAILY:ma.LIFETIME;},isContinuoslySchedule:function(xa){if(wa.isLifetimeBudget(xa))return false;return !xa[i.END_TIME];},isLifetimeBudget:function(xa){return wa.getBudgetMode(xa)===ma.LIFETIME_BUDGET;},isDailyBudget:function(xa){return wa.getBudgetMode(xa)===ma.DAILY;}};f.exports=wa;},null);
__d('AdsCFCampaignGroupUtils',['AdsAPIAdCampaignGroupFields','AdsAPIObjectives','AdsDateUtils','AdsRunStatus','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m={getDefaultExistingID:function(n){var o=n.matchingObjective,p=n.noneObjective,q=o.length?o:p;if(!q.length)return null;return q[0][h.ID];},getUIStatus:function(n){switch(n[h.CAMPAIGN_GROUP_STATUS]){case k.ACTIVE:return l._("On");case k.PAUSED:return l._("Off");}},comparator:function(n,o){if(!n.updatedTime||!o.updatedTime)return 0;return j.parseISODate(o.updatedTime).valueOf()-j.parseISODate(n.updatedTime).valueOf();},getCampaignGroupsForObjective:function(n,o){var p=[],q=[];n.forEach(function(r){if(r[h.OBJECTIVE]===o)p.push(r);if(r[h.OBJECTIVE]===i.NONE)q.push(r);});return {matchingObjective:p.sort(m.comparator),noneObjective:q.sort(m.comparator)};},getCampaignGroupsForBuyingType:function(n,o){var p=[];n.forEach(function(q){if(q[h.BUYING_TYPE]===o)p.push(q);});return {matchingBuyingType:p.sort(m.comparator)};}};f.exports=m;},null);
__d('AdsCFNamingUtils',['ads-lib-formatters','AdsObjectivesConfig','fbt'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k=30,l={generateCampaignGroupName:function(m,n){var o=i.getShortName(n);if(!m)return o;var p=h.chopString(m.replace(/^https?:\/\//i,''),k,j._("..."));return j._("{destination} - {objective}",[j.param('destination',p),j.param('objective',o)]);}};f.exports=l;},null);
__d('AdsCFCampaignGroupStore',['AdsActionTypes','AdsAPIAdCampaignGroupFields','AdsAPIObjectives','AdsBaseStore','AdsBuyingTypes','AdsCampaignUtils','AdsCFAccountStore','AdsCFActionTypes','AdsCFCampaignGroupUtils','AdsCFConstants','AdsCFDestinationStore','AdsCFNamingUtils','AdsCFObjectiveStore','AdsDispatcher','AdsRunStatus','ImmutableObject','invariant','whitelistObjectKeys'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y){if(c.__markCompiled)c.__markCompiled();var z,aa;'use strict';var ba=q.NEW_CAMPAIGN_GROUP_ID,ca=new w(),da;function ea(){ca=new w();var oa=new w({buying_type:l.AUCTION,campaign_group_status:v.ACTIVE,id:ba,isNew:true,is_draft_only:false,name:null,objective:j.NONE,updated_time:null});ca=w.setProperty(ca,ba,oa);ga(ba);}ea();function fa(oa){var pa=y(oa,{name:null});ia(oa.id,pa);}function ga(oa){!(oa in ca)?x(0):undefined;da=oa;if(oa===q.NEW_CAMPAIGN_GROUP_ID)ia(oa,{objective:t.getAPIObjective()});}function ha(){u.waitFor([r.dispatchToken,t.dispatchToken]);var oa=r.getDestinationDetails().destinationName,pa=t.getKPIObjective();if(!pa)return null;var qa=s.generateCampaignGroupName(oa,pa);ia(ba,{name:qa});return qa;}function ia(oa,pa){ca=w.setProperty(ca,oa,w.set(ca[oa],pa));}function ja(oa){ca=w.set(ca,na.parseUpdates(oa));}function ka(oa){var pa=w.set(na.getSelectedState(),{campaign_group_status:v.ACTIVE,id:oa,isNew:false,objective:t.getAPIObjective(),updated_time:m.getISODateTimeString(new Date(),n.getState().timezoneOffsetHours)});ja([pa]);}function la(oa){var pa=[];oa.forEach(function(qa){if(qa[i.BUYING_TYPE]===l.AUCTION)pa.push(qa);});return pa;}z=babelHelpers.inherits(ma,k);aa=z&&z.prototype;ma.prototype.getStoreName=function(){return 'AdsCFCampaignGroupStore';};ma.prototype.onDispatchToken=function(oa){u.waitFor([n.dispatchToken]);var pa=oa.action;switch(pa.actionType){case o.CAMPAIGN_GROUPS_LOADED:var qa=la(pa.campaignGroupAPISpecs);ja(qa);na.inform('change');break;case o.CAMPAIGN_GROUP_NAME_UPDATE:fa(pa);na.inform('change');break;case o.CAMPAIGN_GROUP_SELECT:if(pa.campaignGroup)ja([pa.campaignGroup]);ga(pa.id);na.inform('change');break;case o.CAMPAIGN_GROUP_SELECT_AND_UPDATE:ga(pa.id);fa(pa);na.inform('change');break;case o.CREATE_SIMILAR_AD:case o.CREATE_SIMILAR_CAMPAIGN:if(da===ba){ka(pa.campaignGroupID);ga(pa.campaignGroupID);na.inform('change');}break;case o.DESTINATION_CHANGE:case o.DESTINATION_LOADED:if(ha())na.inform('change');break;case o.KPI_OBJECTIVE_CHANGE:case o.OBJECTIVE_CHANGE:if(ha()&&this.getSelectedState().objective!==pa.objectiveType){ga(ba);na.inform('change');}break;case h.PAGE_TRANSITION:ea();break;}};ma.prototype.getAllStates=function(){return ca;};ma.prototype.getExistingCampaignGroups=function(){var oa=[],pa;Object.keys(ca).forEach(function(qa){if(ca.hasOwnProperty(qa)){pa=ca[qa];if(!pa.isNew)oa.push(pa);}});return oa.sort(p.comparator);};ma.prototype.getNewCampaignGroup=function(){return this.getState(ba);};ma.prototype.getSelectedState=function(){return this.getState(da);};ma.prototype.getState=function(oa){return ca[oa];};ma.prototype.parseUpdates=function(oa){var pa={};oa.forEach((function(qa){pa[qa.id]=this.__createCampaignGroup(qa);}).bind(this));return pa;};ma.prototype.__createCampaignGroup=function(oa){return new w(babelHelpers._extends({isNew:false},oa));};function ma(){z.apply(this,arguments);}var na=new ma();b.debug_AdsCFCampaignGroupStore=na;f.exports=na;},null);
__d('AdsCFBidUtils',['AdsAPIBidType','AdsAPIObjectives','AdsBiddingDelegate','AdsBidOptions','AdsCFHelpLink.react','React','arrayContains'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();function o(r){return r===k.CLICKS?k.ACTIONS:r;}function p(r,s){if(n(r,s))return r;return [].concat(r,s);}var q={getBidTypeLabel:function(r,s){return (j.get(s).getBidTypeLabel(r));},getBidTypeDescription:function(r,s){return (j.get(s).getBidTypeDescription(r));},getOptimizationHelpLink:function(r){return (m.createElement(l,null,j.get(r).getOptimizationHelpLinkContent()));},getValidBidOptionsByObjective:function(r,s,t,u,v,w){var x=!s&&!t,y=j.get(r),z=y.getValidBidOptions({isVerifiedConversion:v,hasNekoTracking:x,isCPAAvailable:u,isVideoPostEngagement:w});return y.shouldMigrateClicksToCPA()?z.map(o):z;},getValidBidOptionsByObjectiveAndValidBidTypes:function(r,s,t,u){var v=j.get(r),w=v.getValidBidOptionsByValidBidTypes({initialBidOption:u,isVerifiedConversion:t,validBidTypes:s});if(!v.shouldMigrateClicksToCPA()){if(u===k.ACTIONS)return p(w,k.ACTIONS);return w;}w=w.map(o);if(u===k.CLICKS)return p(w,k.CLICKS);return w;},getBidSentence:function(r,s){return (j.get(r).getBidTypeSentence(s.bidOption));},shouldShowSuggestions:function(r,s){return (j.get(r).shouldShowSuggestions(s));},shouldShowBidWarnings:function(r,s){return (j.get(r).shouldShowBidWarnings(s));},shouldShowBidTypeSelectorWarnings:function(r,s,t){return (j.get(r).shouldShowBidTypeSelectorWarnings(s,t));},showBidPriceOptions:function(r,s,t){return (j.get(r).shouldShowBidPriceOptions(s,t));},showBidPriceInput:function(r,s,t){if(t)return false;switch(s){case k.OCPM_ACTIONS:case k.ACTIONS:case k.IMPRESSIONS:case k.CLICKS:return true;case k.OCPM_REACH:if(r===i.LOCAL_AWARENESS)return false;return true;}return false;},getMinBid:function(r,s){var t=0;switch(s){case k.ACTIONS:case k.OCPM_ACTIONS:t=r.cpa_min;break;case k.CLICKS:t=r.cpc_min;break;case k.IMPRESSIONS:case k.OCPM_REACH:t=r.cpm_min;break;}return t;},getBidAmount:function(r){switch(r.bidOption){case k.OCPM_ACTIONS:return r.ocpmActionPrice;case k.ACTIONS:return r.cpaPrice;case k.CLICKS:return r.cpcPrice;case k.IMPRESSIONS:return r.cpmPrice;case k.OCPM_REACH:return r.ocpmReachPrice;}return 0;},isAutobidEnabled:function(r){var s=false;switch(r.bidOption){case k.ACTIONS:s=r.cpaAutobidEnabled;break;case k.OCPM_ACTIONS:s=r.ocpmActionAutobidEnabled;break;case k.OCPM_REACH:s=r.ocpmReachAutobidEnabled;break;case k.CLICKS:s=r.clickAutobidEnabled;break;}return !!s;},getBiddingBehaviorLogging:function(r,s,t){var u=!q.isAutobidEnabled(r),v,w,x;switch(t){case h.CPC:v=s.cpc_min;w=s.cpc_max;x=s.cpc_median;break;case h.CPM:v=s.cpm_min;w=s.cpm_max;x=s.cpm_median;break;case h.CPA:v=s.cpa_min;w=s.cpa_max;x=s.cpa_median;break;}return {manualBidEnabled:u,bid_min:v,bid_med:x,bid_max:w};}};f.exports=q;},null);
__d('AdsBidInfoWeights',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={API_ACTIONS:'ACTIONS',API_CLICKS:'CLICKS',API_IMPRESSIONS:'IMPRESSIONS',API_REACH:'REACH',API_SOCIAL:'SOCIAL',ACTIONS:55,REACH:44,CLICKS:1,IMPRESSIONS:37,SOCIAL:38},i={};i[h.ACTIONS]=h.API_ACTIONS;i[h.CLICKS]=h.API_CLICKS;i[h.IMPRESSIONS]=h.API_IMPRESSIONS;i[h.REACH]=h.API_REACH;i[h.SOCIAL]=h.API_SOCIAL;h.MIGRATION_MAP=i;h.convertBidInfoKeys=function(j){var k=Object.keys(j),l={};k.forEach(function(m){var n=i[m]||m,o=j[m];l[n]=o;});return l;};f.exports=h;},null);
__d('AdsBidTypes',['AdsAPIBidType'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={BID_TYPE_CPC:1,BID_TYPE_CPM:2,BID_TYPE_FCPM:4,BID_TYPE_MULTI_PREMIUM:5,BID_TYPE_MULTI_RELATIVE:6,BID_TYPE_MULTI_ABSOLUTE:7,BID_TYPE_CPM_RTB:8,BID_TYPE_CPA:9},j={};j[i.BID_TYPE_CPC]=h.CPC;j[i.BID_TYPE_CPM]=h.CPM;j[i.BID_TYPE_FCPM]=h.FIXED_CPM;j[i.BID_TYPE_MULTI_PREMIUM]=h.MULTI_PREMIUM;j[i.BID_TYPE_MULTI_RELATIVE]=h.RELATIVE_OCPM;j[i.BID_TYPE_MULTI_ABSOLUTE]=h.ABSOLUTE_OCPM;j[i.BID_TYPE_CPM_RTB]=h.RTB;j[i.BID_TYPE_CPA]=h.CPA;var k={};for(var l in j)k[j[l]]=l;i.MIGRATION_MAP=j;i.REVERSE_MIGRATION_MAP=k;f.exports=i;},null);
__d('AdsBidUtils',['AdsAPIBidInfoFields','AdsAPIBidInfoFieldsLabels','AdsAPIBidType','AdsBiddingDelegate','AdsBidInfoWeights','AdsAPIObjectives','AdsBidOptions','AdsBidTypes','AdsBrandAwarenessUtils','AdsCurrencyFormatter','AdsAPIOptimizationGoals','AdsPEImportExportConstants','StrSet','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){'use strict';if(c.__markCompiled)c.__markCompiled();var v=s.Bid,w=new t([r.CLICKS]),x=new t([r.EVENT_RESPONSES,r.IMPRESSIONS,r.REACH]),y=new t([j.FIXED_CPM,j.MULTI_PREMIUM]),z={};z[o.BID_TYPE_MULTI_PREMIUM]={apiValue:j.MULTI_PREMIUM,text:u._("Multi Premium"),value:o.BID_TYPE_MULTI_PREMIUM,tabSeparated:[v.MULTI_PREMIUM,'multi premium','multi_premium'],bidOption:n.IMPRESSIONS};z[o.BID_TYPE_FCPM]={apiValue:j.FIXED_CPM,text:u._("FCPM"),value:o.BID_TYPE_FCPM,tabSeparated:[v.FIXED_CPM,'cpm_fixed'],bidOption:n.IMPRESSIONS};z[o.BID_TYPE_CPC]={apiValue:j.CPC,text:u._("CPC"),value:o.BID_TYPE_CPC,tabSeparated:[v.CPC],bidOption:n.CLICKS};z[o.BID_TYPE_CPM]={apiValue:j.CPM,text:u._("CPM"),value:o.BID_TYPE_CPM,tabSeparated:[v.CPM],bidOption:n.IMPRESSIONS};z[o.BID_TYPE_MULTI_ABSOLUTE]={apiValue:j.ABSOLUTE_OCPM,text:u._("Optimized CPM"),value:o.BID_TYPE_MULTI_ABSOLUTE,tabSeparated:[v.ABSOLUTE_OCPM,'multi_absolute'],bidOption:n.IMPRESSIONS};z[o.BID_TYPE_CPA]={apiValue:j.CPA,text:u._("CPA"),value:o.BID_TYPE_CPA,tabSeparated:[v.CPA],bidOption:n.OCPM_ACTIONS};var aa={};for(var ba in z)if(z.hasOwnProperty(ba)){var ca=z[ba];ca.tabSeparated.forEach(function(ea){aa[ea]=ca;});}var da={getCPCMigrationBidTypeString:function(ea,fa){if(!k.get(ea).shouldMigrateClicksToCPA())return da.getBidTypeString(fa);switch(fa){case j.CPC:return u._("Legacy CPC");case j.CPA:return u._("CPC");}return da.getBidTypeString(fa);},getBidTypeString:function(ea){switch(ea){case j.ABSOLUTE_OCPM:return u._("Optimized CPM");case j.CPA:return u._("CPA");case j.CPC:return u._("CPC");case j.CPM:return u._("CPM");case j.FIXED_CPM:return u._("FCPM");case j.FIXED_PRICING:return u._("FCPC");case j.MULTI_PREMIUM:return u._("Multi");case j.RELATIVE_OCPM:return u._("Optimized CPM");case j.RTB:return u._("CPM RTB");default:return '';}},getBidInfoFieldLabel:function(ea){return i[ea]||ea;},getBidTypeInfo:function(ea){var fa=da.bidTypeToLegacyValue(ea);return z[fa];},getBidValueString:function(ea,fa,ga,ha){var ia=Object.keys(fa).map(function(ja){return fa[ja];}).filter(function(ja){return !!ja;});if(ha||ia.length!==1||ea===j.MULTI_PREMIUM||ea===j.RELATIVE_OCPM||ea===j.RTB)return u._("Auto");return q.formatCurrencyWithNumberDelimiters(ga,ia[0]);},options:function(ea){return da._filteredOptions(ea);},bidTypeFromLegacyValue:function(ea){return o.MIGRATION_MAP[ea]||ea;},bidTypeToLegacyValue:function(ea){return (o.REVERSE_MIGRATION_MAP[ea]||ea)*1;},hasBidActions:function(ea){return !!(ea&&ea.ACTIONS&&ea.ACTIONS>0);},hasBidClicks:function(ea){return !!(ea&&ea.CLICKS&&ea.CLICKS>0);},allOptions:function(){return da._filteredOptions();},_filteredOptions:function(ea){var fa=[z[o.BID_TYPE_CPC],z[o.BID_TYPE_CPM],z[o.BID_TYPE_MULTI_ABSOLUTE],z[o.BID_TYPE_CPA]];if(ea===undefined||ea){fa.push(z[o.BID_TYPE_FCPM]);fa.push(z[o.BID_TYPE_MULTI_PREMIUM]);}return fa;},fixedPriceOptions:function(){return [z[o.BID_TYPE_MULTI_PREMIUM]];},premiumSelfServeOptions:function(){return [z[o.BID_TYPE_MULTI_PREMIUM]];},reachBlockOptions:function(){return [z[o.BID_TYPE_MULTI_PREMIUM]];},deprecatedReachBlockOptions:function(){return [z[o.BID_TYPE_FCPM]];},reachFrequencyOptions:function(){return [z[o.BID_TYPE_MULTI_PREMIUM]];},instagramOptions:function(){return [z[o.BID_TYPE_FCPM]];},getName:function(ea,fa){for(var ga=0,ha=da.options(fa);ga<ha.length;ga++)if(ha[ga].value==ea)return ha[ga].text;return '';},getTabSeparatedName:function(ea){for(var fa=0,ga=da.allOptions();fa<ga.length;fa++)if(ga[fa].value==ea)return Array.isArray(ga[fa].tabSeparated)?ga[fa].tabSeparated[0]:ga[fa].tabSeparated;return '';},parseTabSeparated:function(ea){if(ea)ea=ea.toLowerCase();return aa[ea];},isTopLineBidType:function(ea){return y.contains(ea);},getBidInfoKeyFromOptimizationGoal:function(ea){if(w.contains(ea)){return h.CLICKS;}else if(x.contains(ea))return h.IMPRESSIONS;return h.ACTIONS;},getBidRangeValues:function(ea,fa){if(!ea||ea.unsupported)return {};var ga=this.getBidInfoKeyFromOptimizationGoal(fa);switch(ga){case j.CPC:return {min:ea.cpc_min,median:ea.cpc_median,max:ea.cpc_max};case j.CPM:return {min:ea.cpm_min,median:ea.cpm_median,max:ea.cpm_max};default:return {min:ea.cpa_min,median:ea.cpa_median,max:ea.cpa_max};}},getBidRangeValues_LEGACY_WithObjectiveOverrides:function(ea,fa,ga,ha){if(ha===m.BRAND_AWARENESS&&p.isOCPMReach(fa,ga))fa=j.CPM;return this.getBidRangeValues_LEGACY(ea,fa);},getBidRangeValues_LEGACY:function(ea,fa){if(!ea||ea.unsupported)return {};switch(fa){case j.ABSOLUTE_OCPM:return {};case j.CPA:return {min:ea.cpa_min,max:ea.cpa_max,median:ea.cpa_median};case j.CPC:return {min:ea.cpc_min,max:ea.cpc_max,median:ea.cpc_median};case j.CPM:return {min:ea.cpm_min,max:ea.cpm_max,median:ea.cpm_median};default:return {min:ea.cpm_min,max:ea.cpm_max,median:ea.cpm_median};}},getBidInfoKey_LEGACY:function(ea){switch(ea){case j.CPA:return l.API_ACTIONS;case j.CPC:return l.API_CLICKS;case j.CPM:return l.API_IMPRESSIONS;}return null;}};f.exports=da;},null);
__d('AdsObjectiveBidTypesMap',['AdsAPIObjectives','AdsAPIBidType','AdsBuyingTypes','AdsToplineProductSettings','ImmutableObject','adsGKCheck'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n={};n[h.NONE]=[i.ABSOLUTE_OCPM,i.CPA,i.CPC,i.CPM,i.FIXED_CPM,i.MULTI_PREMIUM];n[h.OFFER_CLAIMS]=[i.CPC,i.MULTI_PREMIUM,i.ABSOLUTE_OCPM];n[h.PAGE_LIKES]=[i.CPC,i.ABSOLUTE_OCPM,i.FIXED_CPM,i.MULTI_PREMIUM];n[h.CANVAS_APP_INSTALLS]=[i.CPA,i.ABSOLUTE_OCPM,i.CPC,i.FIXED_CPM,i.MULTI_PREMIUM];n[h.EVENT_RESPONSES]=[i.CPC,i.CPM,i.ABSOLUTE_OCPM];n[h.CANVAS_APP_ENGAGEMENT]=[i.MULTI_PREMIUM,i.ABSOLUTE_OCPM,i.CPC];n[h.POST_ENGAGEMENT]=[i.CPC,i.CPM,i.FIXED_CPM,i.MULTI_PREMIUM,i.ABSOLUTE_OCPM];n[h.WEBSITE_CONVERSIONS]=[i.CPC,i.CPM,i.MULTI_PREMIUM,i.ABSOLUTE_OCPM];n[h.MOBILE_APP_INSTALLS]=[i.FIXED_CPM,i.ABSOLUTE_OCPM,i.CPA,i.CPC];n[h.WEBSITE_CLICKS]=[m('ads_interfaces_cpc_migration_website_clicks')?i.CPA:i.CPC,i.CPM,i.ABSOLUTE_OCPM,i.FIXED_CPM,i.MULTI_PREMIUM];n[h.MOBILE_APP_ENGAGEMENT]=[i.CPC,i.ABSOLUTE_OCPM];n[h.VIDEO_VIEWS]=[i.FIXED_CPM,i.MULTI_PREMIUM,i.ABSOLUTE_OCPM,i.CPA];n[h.MEDIA_DOWNLOADS]=[];n[h.LOCAL_AWARENESS]=[i.ABSOLUTE_OCPM];n[h.INSTAGRAM_BRAND_AWARENESS]=[i.FIXED_CPM,i.MULTI_PREMIUM];n[h.PRODUCT_CATALOG_SALES]=[i.ABSOLUTE_OCPM,i.CPC,i.CPM];n[h.LEAD_GENERATION]=[i.ABSOLUTE_OCPM,i.CPC];n[h.BRAND_AWARENESS]=[i.ABSOLUTE_OCPM];var o={};o[j.AUCTION]=function(r){return r!==i.FIXED_CPM&&r!==i.FIXED_PRICING&&r!==i.MULTI_PREMIUM;};o[j.FIXED_CPM]=function(r){return (r===i.MULTI_PREMIUM||r===i.FIXED_CPM);};o[j.RESERVED]=function(r){return r===i.MULTI_PREMIUM;};o[j.REACHBLOCK]=function(r){return (r===i.MULTI_PREMIUM||r===i.FIXED_CPM);};o[j.DEPRECATED_REACH_BLOCK]=function(r){return r===i.FIXED_CPM;};o[j.MIXED]=function(r){return true;};var p=function(r){return r!==i.FIXED_CPM;};function q(r,s,t){var u=n[s];if(!u)return [];var v=o[r];if(!v)v=function(y){return true;};if(t){var w=r===j.AUCTION?k.auctionBidTypes[t]:k.bidTypes[t];if(!(!w)){u=u.filter(function(y){return !!w[y];});return u;}}else if(r===j.FIXED_CPM)u=u.filter(p);var x=u.filter(v);if(s===h.VIDEO_VIEWS&&!m('pe_video_ads_can_bid_cost_per_view'))x=x.filter(function(y){return y!==i.CPA;});return x;}f.exports.mapping=new l(n);f.exports.getValidBidTypes=q;},null);
__d('ads-powereditor-config',['PowerEditorConfig'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();g.Config={get:function(i,j){var k=h.config;if(!k)return j;if(k[i])return k[i];return j;}};},null);
__d('AdsCFCampaignUtils',['AdsAPIAdCampaignFields','AdsAPICampaignPaths','AdsBidOptions','AdsCampaignUtils','AdsCFConstants','AdsCFPrimedDao','AdsDateUtils','AdsPricingAPIConverter','AdsRunStatus','DateConsts','ImmutableObject','adsGKCheck','arrayContains','fbt','getByPath','getObjectValues'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w){'use strict';if(c.__markCompiled)c.__markCompiled();var x=l.CampaignBudgetModes,y=l.CampaignValidationErrors;function z(ca,da){if(!ca.updatedTime||!da.updatedTime)return 0;return n.parseISODate(da.updatedTime).valueOf()-n.parseISODate(ca.updatedTime).valueOf();}function aa(ca,da){if(!ca[h.UPDATED_TIME]||!da[h.UPDATED_TIME])return 0;var ea=n.parseISODate(ca[h.UPDATED_TIME]),fa=n.parseISODate(da[h.UPDATED_TIME]);return fa.valueOf()-ea.valueOf();}var ba={saveCampaign:function(ca,da,ea){var fa=m.getInstanceForAccount(ca);return fa.add.updateCampaign.promiseOne(babelHelpers._extends({},ea,{campaignId:da}));},generateTimeoutMessage:function(){return u._("We're sorry, but your browser has received no response from the server in a long time. Please check your connection and try saving your campaign again.");},getStatusLabel:function(ca){switch(ca[h.CAMPAIGN_STATUS]){case p.ACTIVE:var da=new Date(),ea=ca[h.END_TIME]&&n.parseISODate(ca[h.END_TIME]),fa=ca[h.START_TIME]&&n.parseISODate(ca[h.START_TIME]);if(ea&&da>ea){return u._("Completed");}else if(fa&&da<fa)return u._("Scheduled");return u._("On");case p.PAUSED:return u._("Off");}},getDailyBudget:function(ca,da){if(ca.budgetMode===x.DAILY)return ca.budget;var ea=k.getCampaignDayCount(ca.startDate,ca.endDate);return ca.budget/ea;},toFilteredSortedArray_DEPRECATED:function(ca){return r.values(ca).sort(z).filter(function(da){return !da.isNewCampaign;});},toFilteredSortedArray:function(ca){return w(ca).sort(aa).filter(function(da){return !k.isNewCampaign(da);});},getCampaignCannotBeSelectedReason_DEPRECATED:function(ca,da,ea,fa){if(!ca.promotedObject)return null;if(ca.targeting&&ca.targeting.userOs&&da.userOs&&ca.targeting.userOs[0]!==da.userOs[0])return u._("This ad set is used to advertise apps running on a different operating system than the app you are creating an ad for. Please select a different ad set, or create a new one.");var ga=ea.validBidOptions||[],ha=ca.pricing&&!(t(ga,ca.pricing.bidOption)||s('ads_interfaces_cpc_migration_website_clicks')&&ca.pricing.bidOption===j.CLICKS&&t(ga,j.ACTIONS));if(ha)return u._("This ad set is using a bid option, which is unavailable for currently selected destination. Please select a different ad set, or create a new one.");if(ca.pricing&&ca.pricing.conversionPixelID&&ca.pricing.bidOption===j.OCPM_ACTIONS&&ea.conversionPixelID!==ca.pricing.conversionPixelID)return u._("This ad set is using a conversion pixel, which is different than the currently selected one. Please select a different ad set, or create a new one.");return null;},getCampaignCannotBeSelectedReason:function(ca,da,ea,fa){if(!ca[h.PROMOTED_OBJECT])return null;if(v(ca,i.TARGETING.USER_OS)&&(da&&da.userOs)&&v(ca,i.TARGETING.USER_OS)[0]!==da.userOs[0])return u._("This ad set is used to advertise apps running on a different operating system than the app you are creating an ad for. Please select a different ad set, or create a new one.");var ga=ea.validBidOptions||[],ha=o.fromAPI(ca.toJS(),fa),ia=!(t(ga,ha.bidOption)||s('ads_interfaces_cpc_migration_website_clicks')&&ha.bidOption===j.CLICKS&&t(ga,j.ACTIONS));if(ia)return u._("This ad set is using a bid option, which is unavailable for currently selected destination. Please select a different ad set, or create a new one.");return null;},getAdjustedEndDate:function(ca,da){var ea=new Date(),fa,ga;if(da<ca){fa=new Date(ca);fa.setUTCHours(fa.getUTCHours()+1,fa.getUTCMinutes(),0,0);ga={date:fa,reason:y.END_DATE_BEFORE_START_DATE};}else if(da<ea){fa=ea;fa.setUTCHours(fa.getUTCHours()+1,fa.getUTCMinutes(),0,0);ga={date:fa,reason:y.END_DATE_BEFORE_NOW};}return ga;},adjustedEndDateBasedOnLifetimeBudget:function(ca,da,ea,fa){var ga=da-ca,ha=Math.ceil(ga/q.MS_PER_DAY),ia=ea/ha,ja=ia>=fa;if(ja)return null;var ka=Math.floor(ea/fa),la=ka*q.MS_PER_DAY,ma=ca.getTime()+la,na=new Date(ma);return {date:na,reason:y.INSUFFICIENT_DAILY_BUDGET};},getAdjustedStartDate:function(ca,da,ea){if(!ea){var fa=new Date(Date.now()+q.MS_PER_HOUR/2);if(da<Date.now()){return {date:da,reason:null};}else if(ca<fa)return {date:fa,reason:null};}var ga=new Date(Date.now()-q.MS_PER_HOUR);if(ca<ga)return {date:new Date(),reason:y.START_DATE_BEFORE_NOW};return null;}};f.exports=ba;},null);
__d('AdsSavedAudienceActionTypes',['ImmutableObject','keyMirrorRecursive'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=new h(i({SAVED_AUDIENCE:{BATCH_CREATED:null,BATCH_CREATE_ERROR:null,BATCH_DELETED:null,BATCH_DELETE_ERROR:null,BATCH_LOADED:null,BATCH_LOAD_ERROR:null,BATCH_UPDATED:null,BATCH_UPDATE_ERROR:null,CREATE_BATCH:null,DELETE_BATCH:null,UPDATE_BATCH:null,LIST:{LOADED:null,LOAD_ERROR:null,PARTIAL_LOAD:null}},VIEW:{CLEAR_AUDIENCE_SAVE_STATE:null,CLEAR_SYNC_ERROR:null,UPDATE_NAME:null,TOGGLE_SAVE:null}}));f.exports=j;},null);
__d('AdsSavedAudienceCreateViewStore',['AdsActionTypes','AdsBaseStore','AdsCFActionTypes','AdsCMActionTypes','AdsSavedAudienceActionTypes'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m,n;'use strict';m=babelHelpers.inherits(o,i);n=m&&m.prototype;function o(){n.constructor.call(this);this.$AdsSavedAudienceCreateViewStoreClass1();}o.prototype.getStoreName=function(){return 'AdsSavedAudienceCreateViewStore';};o.prototype.onDispatchToken=function(q){var r=q.action;switch(r.actionType){case l.VIEW.UPDATE_NAME:this.$AdsSavedAudienceCreateViewStoreClass2=r.name;this.inform('change');break;case l.VIEW.TOGGLE_SAVE:this.$AdsSavedAudienceCreateViewStoreClass3=r.isSaveEnabled;this.inform('change');break;case k.CAMPAIGN_SAVE_SUCCESS:case l.VIEW.CLEAR_AUDIENCE_SAVE_STATE:case h.PAGE_TRANSITION:case j.CREATE_SIMILAR_AD:this.$AdsSavedAudienceCreateViewStoreClass1();this.inform('change');break;}};o.prototype.getAudienceName=function(){return this.$AdsSavedAudienceCreateViewStoreClass2;};o.prototype.isSaveEnabled=function(){return this.$AdsSavedAudienceCreateViewStoreClass3;};o.prototype.$AdsSavedAudienceCreateViewStoreClass1=function(){this.$AdsSavedAudienceCreateViewStoreClass2='';this.$AdsSavedAudienceCreateViewStoreClass3=false;};var p=new o();f.exports=p;},null);
__d('AdsSavedAudienceActions',['AdsDispatcher','AdsSavedAudienceActionTypes'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={savedAudiencesLoaded:function(k){h.handleUpdateFromServerResponse({savedAudiences:k,type:i.SAVED_AUDIENCE.BATCH_LOADED});},savedAudiencesLoadError:function(k){h.handleUpdateFromServerResponse({errors:k,type:i.SAVED_AUDIENCE.BATCH_LOAD_ERROR});},savedAudienceListLoaded:function(k,l){h.handleUpdateFromServerResponse({accountID:k,savedAudiences:l,type:i.SAVED_AUDIENCE.LIST.LOADED});},savedAudienceListLoadError:function(k){h.handleUpdateFromServerResponse({accountID:k,type:i.SAVED_AUDIENCE.LIST.LOAD_ERROR});},savedAudienceListPartialLoad:function(k,l){h.handleUpdateFromServerResponse({accountID:k,savedAudiences:l,type:i.SAVED_AUDIENCE.LIST.PARTIAL_LOAD});},createSavedAudiences:function(k){h.handleUpdateFromViewAction({savedAudiences:k,type:i.SAVED_AUDIENCE.CREATE_BATCH});},savedAudiencesCreated:function(k){h.handleUpdateFromServerResponse({savedAudiences:k,type:i.SAVED_AUDIENCE.BATCH_CREATED});},savedAudiencesCreateError:function(k){h.handleUpdateFromServerResponse({errors:k,type:i.SAVED_AUDIENCE.BATCH_CREATE_ERROR});},updateSavedAudiences:function(k){h.handleUpdateFromViewAction({savedAudiences:k,type:i.SAVED_AUDIENCE.UPDATE_BATCH});},savedAudiencesUpdated:function(k){h.handleUpdateFromServerResponse({savedAudiences:k,type:i.SAVED_AUDIENCE.BATCH_UPDATED});},savedAudiencesUpdateError:function(k){h.handleUpdateFromServerResponse({errors:k,type:i.SAVED_AUDIENCE.BATCH_UPDATE_ERROR});},deleteSavedAudiences:function(k){h.handleUpdateFromViewAction({savedAudienceIDs:k,type:i.SAVED_AUDIENCE.DELETE_BATCH});},savedAudiencesDeleted:function(k){h.handleUpdateFromServerResponse({savedAudienceIDs:k,type:i.SAVED_AUDIENCE.BATCH_DELETED});},savedAudiencesDeleteError:function(k){h.handleUpdateFromServerResponse({errors:k,type:i.SAVED_AUDIENCE.BATCH_DELETE_ERROR});}};f.exports=j;},null);
__d('AdsTargetingSavedAudienceDataLoader',['AdsAPIAdAccountFields','AdsAPISavedAudienceFields','AdsGenericFilterOperator','AdsSavedAudienceActions','AdsGraphAPI','Map'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n={loadSavedAudiencesForAccount:function(o){return l.getWithGeneralMigration().adaccount(o).edge(h.SAVED_AUDIENCES).batched().get({fields:['id']});},searchSavedAudiencesForAccount:function(o,p){return l.getWithGeneralMigration().adaccount(o).edge(h.SAVED_AUDIENCES).get({fields:[i.ID,i.NAME,i.APPROXIMATE_COUNT,i.SENTENCE_LINES],filtering:p===""?null:[{field:'name',operator:j.CONTAIN,value:p}]});},loadSavedAudienceByID:function(o){return l.getWithGeneralMigration().object('saved_audience',o).batched().get({fields:[i.ID,i.NAME,i.APPROXIMATE_COUNT,i.SENTENCE_LINES,i.TARGETING,'adcampaigns{name, end_time, start_time}']});},createSavedAudience:function(o,p,q){return l.getWithGeneralMigration().adaccount(o).edge(h.SAVED_AUDIENCES).batched().post({name:p,targeting:q}).then(function(r){var s=new m();s.set(r.id,{id:r.id,accountID:o});k.savedAudiencesCreated(s);return r;});}};f.exports=n;},null);
__d('AdsCFCampaignStore',['AdsActionTypes','AdsAPIAdCampaignFields','AdsAPICampaignPaths','AdsAPICreativeRotationTypes','AdsAPIObjectives','AdsAPIPacingType','AdsBaseStore','AdsBudgetDelegate','AdsCampaignUtils','AdsCFAccountStore','AdsCFActionTypes','AdsCFApplicationStore','AdsCFBidUtils','AdsCFCampaignAPIConverter','AdsCFCampaignGroupStore','AdsCFCampaignUtils','AdsCFConstants','AdsCFCreativeStore','AdsCFDestinationStore','AdsCFObjectiveStore','AdsCFPricingStore','AdsCFTargetingStore','AdsCFXPricingStore','AdsCommonTargetingApiTransformer','AdsCommonTargetingStore','AdsCreationConfig','AdsDispatcher','AdsGraphAPI','AdsOutputApiSpecDelegate','AdsPayloadSource','AdsPlacementUtils','AdsRunStatus','AdsSavedAudienceCreateViewStore','DayPartingUtils','ImmutableObject','Promise','AdsTargetingModelAdapter','AdsTargetingSavedAudienceDataLoader','adsGKCheck','invariant','getByPath','whitelistObjectKeys'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ua,va,wa){if(c.__markCompiled)c.__markCompiled();var xa,ya;'use strict';var za=x.CampaignBudgetModes,ab=x.CampaignScheduleModes,bb=x.CampaignValidationErrors,cb=x.RemoteCallStatus,db=x.NEW_CAMPAIGN_ID,eb=60000,fb=x.MTC_TARGETING_ID,gb,hb,ib,jb;function kb(){ib=db;jb={};gb={};gb[db]={budgetMode:za.DAILY,campaignID:db,isDraftOnly:false,lifetimeBudgetSpent:0,savedAudienceID:null,scheduleMode:ab.CONTINUOUSLY,startDate:p.getDefaultStartDate(),status:ma.ACTIVE,updatedTime:null};hb=babelHelpers._extends({},gb);}kb();function lb(zb){return zb===db;}function mb(zb,ac){gb[zb]=babelHelpers._extends({},gb[zb],ac);}function nb(zb){gb[zb]=babelHelpers._extends({},hb[zb]);}function ob(zb){hb[zb]=babelHelpers._extends({},gb[zb]);}function pb(zb){var ac=zb.action,bc=ac.campaignID;!bc?ua(0):undefined;var cc=zb.payloadsource===ka.VIEW_ACTION,dc={},ec=wa(ac,{budgetMode:null,campaignSchedule:null,creativeRotationParameter:null,creativeRotationType:null,dailyBudget:null,endDate:null,lifetimeBudget:null,name:null,pacingType:null,promotedObject:null,savedAudienceID:null,scheduleMode:null,startDate:null,status:null});ec.startDateError=null;ec.endDateError=null;var fc=yb.getState(bc),gc=ac.budgetMode||fc.budgetMode,hc=ac.budget;if(hc!==undefined)if(gc===za.DAILY){ec.dailyBudget=hc;}else ec.lifetimeBudget=hc;if(cc){if(ec.startDate){dc.adjustedStart=w.getAdjustedStartDate(ec.startDate,fc.startDate,fc.isNewCampaign);if(dc.adjustedStart){ec.startDate=dc.adjustedStart.date;ec.startDateError=dc.adjustedStart.reason;}if(ec.endDate)dc.adjustedEnd=w.getAdjustedEndDate(ec.startDate,ec.endDate);}if(!dc.adjustedEnd&&fc.budgetMode===za.LIFETIME&&(ec.startDate||ec.endDate||hc!==undefined))dc.adjustedEnd=w.adjustedEndDateBasedOnLifetimeBudget(ec.startDate||fc.startDate,ec.endDate||fc.endDate,ec.lifetimeBudget||fc.budget,q.getState().minDailyBudget);if(dc.adjustedEnd){ec.endDate=dc.adjustedEnd.date;ec.endDateError=dc.adjustedEnd.reason;}}mb(bc,ec);return dc;}function qb(zb){var ac=zb.budgetMode===za.DAILY,bc=ac?zb.dailyBudget:zb.lifetimeBudget;if(!bc){var cc=q.getState().currency;if(!cc)return null;if(ac){bc=p.getDefaultDailyBudget(cc,aa.getAPIObjective());}else bc=p.getDefaultLifetimeBudget(cc,aa.getAPIObjective());}return bc;}function rb(zb){Object.keys(zb).forEach(function(ac){var bc=babelHelpers._extends({},zb[ac]);if(bc.budgetMode===za.LIFETIME&&bc.budgetRemaining){bc.lifetimeBudgetSpent=bc.lifetimeBudget-bc.budgetRemaining;}else bc.lifetimeBudgetSpent=0;zb[ac]=bc;});return zb;}function sb(zb){var ac={};zb.forEach(function(bc){var cc=u.fromAPI(bc,va(bc,j.AD_CAMPAIGN_GROUP.OBJECTIVE,l.NONE));if(cc){if(cc.budgetMode===za.LIFETIME&&cc.budgetRemaining){cc.lifetimeBudgetSpent=cc.lifetimeBudget-cc.budgetRemaining;}else cc.lifetimeBudgetSpent=0;ac[cc.campaignID]=cc;}});return ac;}function tb(zb){var ac=zb.campaignID,bc=zb.campaignGroupID;ha.waitFor([y.dispatchToken,z.dispatchToken,ba.dispatchToken]);var cc=aa.getAPIObjective(),dc=ia.shouldUseGeneralMigration()?da.getSelectedPricingState():{pricing:ba.getState(x.CanonicalID)},ec=Object.assign({},gb[db],babelHelpers._extends({campaignGroupID:bc,campaignID:ac},dc,{promotedObject:ja.get(cc).getPromotedObjectSpec(y.getState(),ba.getState(x.CanonicalID),z.getDestinationDetails(),q.getState()),targeting:ca.getState(x.CanonicalID),updatedTime:p.getISODateTimeString(new Date(),q.getState().timezoneOffsetHours)}));hb[ac]=ec;gb[ac]=ec;delete jb[bc];}xa=babelHelpers.inherits(ub,n);ya=xa&&xa.prototype;ub.prototype.getStoreName=function(){return 'AdsCFCampaignStore';};ub.prototype.getNewCampaignState=function(){return yb.getState(db);};ub.prototype.getSelectedCampaignState=function(){return yb.getState(ib);};ub.prototype.getAllCampaignStates=function(){var zb={};Object.keys(gb).forEach((function(ac){zb[ac]=this.getState(ac);}).bind(this));return new pa(zb);};ub.prototype.getAllStatesForCampaignGroup=function(zb,ac){if(jb[zb])return jb[zb];var bc={},cc;Object.keys(gb).forEach((function(dc){cc=this.getState(dc);if(cc.campaignGroupID===zb)bc[dc]=cc;}).bind(this));bc[db]=this.getState(db,ac);jb[zb]=new pa(bc);return jb[zb];};ub.prototype.getAllSelectableStatesForCampaignGroup=function(zb,ac){var bc=yb.getAllStatesForCampaignGroup(zb),cc=pa.values(bc).filter(function(dc){var ec=w.getCampaignCannotBeSelectedReason_DEPRECATED(dc,ca.getState(x.CanonicalID),ba.getState(x.CanonicalID),z.getDestinationID());return ec===null&&!dc.isNewCampaign;});return new pa(cc);};ub.prototype.getState=function(zb,ac){var bc=gb[zb];if(!bc)return null;var cc=lb(zb),dc=aa.getAPIObjective();if(o.get(dc).isLifetimeOnly()){bc.budgetMode=cc?za.LIFETIME:bc.budgetMode;bc.isLifetimeOnly=bc.budgetMode===za.LIFETIME;}var ec=qb(bc),fc=bc.scheduleMode;bc.pacingType=bc.pacingType||[m.STANDARD];bc.creativeRotationType=bc.creativeRotationType||k.STANDARD;bc.creativeRotationParameter=bc.creativeRotationParameter||0;if(bc.budgetMode===za.DAILY){var gc=bc.pacingType.slice(0);oa.setDayParting(gc,false);bc.pacingType=gc;bc.campaignSchedule=[];}if(bc.budgetMode!==za.DAILY)fc=ab.SCHEDULED;var hc=p.getScheduleLengthsDays(),ic=bc.startDate||p.getDefaultStartDate(),jc=bc.endDate;if(!jc)jc=p.getDefaultEndDate(ic,hc,dc);var kc=ia.shouldUseGeneralMigration(),lc=kc&&(cc||zb===ib);if(lc&&!ac)bc=babelHelpers._extends({},bc,da.getSelectedPricingState());return new pa(babelHelpers._extends({budget:parseInt(ec,10),budgetMode:bc.budgetMode,budgetRemaining:bc.budgetRemaining,campaignGroupID:bc.campaignGroupID,campaignID:zb,campaignSchedule:bc.campaignSchedule,creativeRotationParameter:bc.creativeRotationParameter,creativeRotationType:bc.creativeRotationType,endDate:jc,endDateError:bc.endDateError,errorMessage:bc.errorMessage,isDraftOnly:bc.isDraftOnly,isLifetimeOnly:!!bc.isLifetimeOnly,isNewCampaign:cc,lifetimeBudgetSpent:bc.lifetimeBudgetSpent,name:bc.name||bc.defaultName,pacingType:bc.pacingType,pricing:bc.pricing,promotedObject:bc.promotedObject||{},savedAudienceID:bc.savedAudienceID,saveStatus:bc.saveStatus,scheduleLengthOptions:hc,scheduleMode:fc,startDate:ic,startDateError:bc.startDateError,status:bc.status,targeting:bc.targeting,updatedTime:bc.updatedTime},kc&&!ac?{bid_amount:bc[i.BID_AMOUNT],billing_event:bc[i.BILLING_EVENT],is_autobid:bc[i.IS_AUTOBID],optimization_goal:bc[i.OPTIMIZATION_GOAL]}:{}));};ub.prototype.$AdsCFCampaignStoreClass1=function(zb,ac){ha.handleUpdateFromServerResponse({campaignID:zb,error:ac,logData:{campaignData:this.getState(zb)},type:r.SAVE_EDITED_CAMPAIGN_ERROR});};ub.prototype.$AdsCFCampaignStoreClass2=function(zb){ha.handleUpdateFromServerResponse({campaignID:zb,pricing:gb[zb].pricing&&ba.getState(x.CanonicalID),targeting:gb[zb].targeting&&ca.getState(x.CanonicalID),type:r.SAVE_EDITED_CAMPAIGN_SUCCESS});};ub.prototype.__onSaveEditedCampaignTimeout=function(zb){ha.handleUpdateFromServerResponse({campaignID:zb,type:r.SAVE_EDITED_CAMPAIGN_TIMEOUT});};ub.prototype.$AdsCFCampaignStoreClass3=function(zb){gb=babelHelpers._extends({},gb,zb);hb=babelHelpers._extends({},hb,zb);jb={};};ub.prototype.$AdsCFCampaignStoreClass4=function(zb,ac){var bc=q.getAccountID(),cc,dc=na.getAudienceName().trim();if(na.isSaveEnabled()&&dc){cc=sa.createSavedAudience(bc,dc,ac.targeting).then(function(fc){if(fc.id){ac.saved_audience_id=fc.id;ac.placement=la.getPlacementFields(ac.targeting);delete ac.targeting;}}).then(function(){return w.saveCampaign(bc,zb,ac);});}else cc=w.saveCampaign(bc,zb,ac);var ec=new qa(function(fc,gc){setTimeout(function(){return gc('Time out when saving campaign');},eb);});qa.race([cc,ec]).done(function(){yb.$AdsCFCampaignStoreClass2(zb);},function(fc){var gc=fc&&(fc.error||fc.rawData&&fc.rawData.error);if(gc){yb.$AdsCFCampaignStoreClass1(zb,gc);return;}yb.__onSaveEditedCampaignTimeout(zb);});};ub.prototype.onDispatchToken=function(zb){var ac=zb.action,bc=ac.campaignID,cc=zb.payloadsource===ka.VIEW_ACTION,dc={};switch(ac.actionType){case r.BID_CHANGE:case r.BID_OPTION_CHANGE:var ec=ba.getState(x.CanonicalID),fc=t.isAutobidEnabled(ec);if(fc){var gc=oa.setNoPacing(gb[ib].pacingType.slice(),false);gb[ib].pacingType=gc;yb.inform('change');}break;case r.CAMPAIGNS_LOADED:dc=rb(ac.campaigns);this.$AdsCFCampaignStoreClass3(dc);yb.inform('change');break;case r.CAMPAIGN_DATA_LOADED:dc=sb(ac.data.campaigns);this.$AdsCFCampaignStoreClass3(dc);yb.inform('change');break;case r.CHANGE_ACCOUNT_CURRENCY:if(cc&&ib===db){ha.waitFor([aa.dispatchToken]);gb[ib].lifetimeBudget=p.getDefaultLifetimeBudget(ac.currency,aa.getAPIObjective());gb[ib].dailyBudget=p.getDefaultDailyBudget(ac.currency,aa.getAPIObjective());yb.inform('change');}break;case r.CHANGE_CAMPAIGN:case r.CHANGE_CAMPAIGN_BUDGET:case r.CHANGE_CAMPAIGN_BUDGET_MODE:case r.CHANGE_CAMPAIGN_NAME:case r.CHANGE_CAMPAIGN_PACING:case r.CHANGE_CAMPAIGN_SCHEDULE:case r.CHANGE_CAMPAIGN_SCHEDULE_MODE:case r.CHANGE_CAMPAIGN_STATUS:case r.CHANGE_CAMPAIGN_DAY_PARTING_SCHEDULE:pb(zb);yb.inform('change');break;case r.CHANGE_SAVED_AUDIENCE:if(ac.savedAudienceID>0){sa.loadSavedAudienceByID(ac.savedAudienceID).done(function(rc){ra.replaceApiSpec(rc.targeting,true);});}else if(!ac.savedAudienceID)setTimeout(function(){var rc=ea.targetingSpecToApi(fa.getState(fb));ra.replaceApiSpec(rc,true);},0);pb(zb);yb.inform('change');break;case r.RESET_DESTINATION:kb();wb();yb.inform('change');break;case r.CAMPAIGN_GROUP_SELECT:case r.CAMPAIGN_GROUP_SELECT_AND_UPDATE:ib=db;yb.inform('change');break;case r.CAMPAIGN_SELECT:!bc?ua(0):undefined;if(ac.campaign){var hc={};hc[bc]=ac.campaign;hc=rb(hc);gb=babelHelpers._extends({},gb,hc);ob(bc);jb={};}!(bc in gb)?ua(0):undefined;if(bc in gb){ib=bc;var ic=yb.getSelectedCampaignState(),jc=v.getSelectedState();!(ic.isNewCampaign||ic.campaignGroupID===jc.id)?ua(0):undefined;yb.inform('change');}break;case r.SELECT_NEW_CAMPAIGN:ib=db;yb.inform('change');break;case r.SELECT_EXISTING_CAMPAIGN:var kc=w.toFilteredSortedArray_DEPRECATED(yb.getAllSelectableStatesForCampaignGroup(ac.campaignGroupID));ib=kc.length>0?kc[0].campaignID:db;yb.inform('change');break;case r.DISMISS_CAMPAIGN_SAVE_SUCCESS:!bc?ua(0):undefined;gb[bc].saveStatus=null;ob(bc);yb.inform('change');break;case r.CANCEL_EDITED_CAMPAIGN:nb(bc);yb.inform('change');break;case r.SAVE_EDITED_CAMPAIGN_CLICK:!bc?ua(0):undefined;gb[bc].saveStatus=cb.PENDING;gb[bc].errorMessage=null;this.$AdsCFCampaignStoreClass4(bc,ac.campaignSpec);yb.inform('change');break;case r.SAVE_EDITED_CAMPAIGN_ERROR:gb[bc].saveStatus=cb.FAILURE;gb[bc].errorMessage=ac.error.error_user_msg||ac.error.message;yb.inform('change');break;case r.SAVE_EDITED_CAMPAIGN_SUCCESS:gb[bc].saveStatus=cb.SUCCESS;if(gb[bc].budgetMode===za.DAILY)gb[bc].lifetimeBudgetSpent=0;gb[bc].pricing=ac.pricing;gb[bc].targeting=ac.targeting;jb[gb[bc].campaignGroupID]=null;ob(bc);yb.inform('change');break;case r.SAVE_EDITED_CAMPAIGN_TIMEOUT:gb[bc].saveStatus=cb.FAILURE;gb[bc].errorMessage=w.generateTimeoutMessage();yb.inform('change');break;case r.CREATE_AD_FAIL_WITH_CAMPAIGN_SUCCESS:case r.CREATE_SIMILAR_AD:if(ib===db){tb(ac);ib=bc;yb.inform('change');}break;case r.CREATE_SIMILAR_CAMPAIGN:if(ib===db){tb(ac);yb.inform('change');}break;case r.EXTEND_CAMPAIGN_SUCCESS:var lc=ac.value,mc=yb.getSelectedCampaignState().endDate,nc=new Date(mc.getTime()+lc*3600*24*1000);gb[ib].endDate=nc;yb.inform('change');break;case r.INCREASE_BUDGET_SUCCESS:var oc=ac.value,pc=yb.getSelectedCampaignState().budget,qc=pc+oc;gb[ib].lifetimeBudget=qc;yb.inform('change');break;case r.OBJECTIVE_CHANGE:case r.KPI_OBJECTIVE_CHANGE:wb();xb();ha.waitFor([v.dispatchToken]);jc=v.getSelectedState();if(jc.isNew)ib=db;yb.inform('change');break;case r.DESTINATION_CHANGE:case r.DESTINATION_LOADED:wb();vb();yb.inform('change');break;case r.TARGETING_CHANGE:case r.TARGETING_SPEC_CHANGE:case r.TARGETING_REPLACEMENT:case r.TARGETING_RESET_DEFAULTS:wb();yb.inform('change');break;case h.PAGE_TRANSITION:case r.CAMPAIGN_DATA_LOAD_ERROR:kb();break;}};function ub(){xa.apply(this,arguments);}function vb(){ha.waitFor([z.dispatchToken]);var zb=null,ac=z.getDestinationDetails(),bc=aa.getAPIObjective(),cc=o.get(bc).shouldOverrideDailyBudgetWithDestination();if(cc&&ac&&ac.forceUseDefaultDailyBudget&&!gb[db].dailyBudget){zb=ac.defaultDailyBudget;mb(db,{dailyBudget:zb});}}function wb(){ha.waitFor([z.dispatchToken,aa.dispatchToken]);var zb,ac;zb=ca.getState(x.CanonicalID);ac=p.generateName(z.getDestinationDetails().destinationName,aa.getKPIObjective(),zb.countries||[],zb.geoLocations||null,zb.sex,zb.ageMin||ga.minAge,zb.ageMax||ga.maxAge);mb(db,{defaultName:ac});}function xb(){ha.waitFor([q.dispatchToken,aa.dispatchToken]);var zb=q.getState().currency;if(!zb)return;var ac=aa.getAPIObjective(),bc=o.get(ac).isLifetimeOnly(),cc=bc?za.LIFETIME:gb[db].budgetMode,dc=p.getDefaultLifetimeBudget(zb,ac);mb(db,{budget:null,budgetMode:cc,dailyBudget:null,isLifetimeOnly:bc,lifetimeBudget:dc});}var yb=new ub();b.debug_AdsCFCampaignStore=yb;f.exports=yb;},null);
__d('AdsConversionPixelDataLoader',['AdsGraphAPI','GraphAPIPaging'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=['id','last_firing_time','name','tag','js_pixel'];k.prototype.getAdsAPIFetchPromiseForPixels=function(m){return h.getWithGeneralMigration().adaccount(m).edge('offsitepixels').get({fields:j}).then(i.allPages());};k.prototype.getAdsAPIFetchPromiseForPixel=function(m){return h.getWithGeneralMigration().object('offsitepixels',m).get({fields:j});};function k(){}var l=new k();f.exports=l;},null);
__d('AdsConversionPixelActionTypes',['AdsDispatchActionTypeUtils'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i={LOADING_ERROR:null,UPDATE_PIXELS:null};f.exports=h.createActionTypeMap('CONVERSION_PIXEL_',i);},null);
__d('AdsConversionPixelServerActions',['AdsConversionPixelActionTypes','AdsDispatcher'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={loadingError:function(k){i.handleUpdateFromServerResponse({error:k,type:h.LOADING_ERROR});},updatePixels:function(k,l){i.handleUpdateFromServerResponse({lastPage:l,pixels:k,type:h.UPDATE_PIXELS});}};f.exports=j;},null);
__d("XAdsDefaultConversionPixelController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/conversion_pixel\/default_pixel\/",{account_id:{type:"Int",required:true},domain:{type:"String",required:true}});},null,{});
__d('AdsConversionPixelDataDispatcher',['AdsConversionPixelDataLoader','AdsConversionPixelServerActions','AdsCFActionTypes','AdsDispatcher','AsyncRequest','XAdsDefaultConversionPixelController'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();n.prototype.loadPixels=function(p){h.getAdsAPIFetchPromiseForPixels(p).then(function(q){i.updatePixels(q.data);},function(q){i.loadingError(q);}).done();};n.prototype.loadPixel=function(p){h.getAdsAPIFetchPromiseForPixel(p).then(function(q){i.updatePixels([q]);},function(q){i.loadingError(q);}).done();};n.prototype.loadDefaultPixel=function(p,q){var r=m.getURIBuilder().setInt('account_id',p).setString('domain',q).getURI();new l().setURI(r).setHandler(function(s){k.handleUpdateFromServerResponse({type:j.DEFAULT_CONVERSION_PIXEL_LOADED,data:s.payload});}).send();};function n(){}var o=new n();f.exports=o;},null);
__d('AdsConversionPixelStore',['AdsAccountStoreWrapper','AdsBaseStore','AdsCFActionTypes','AdsConversionPixelActionTypes','AdsConversionPixelDataDispatcher','AdsLoadState','AdsPEActionTypes','AdsPixelConversionTypes','AdsPixelViewActionTypes','ImmutableObject','dotAccess'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){if(c.__markCompiled)c.__markCompiled();var s,t;'use strict';s=babelHelpers.inherits(u,i);t=s&&s.prototype;function u(){t.constructor.call(this);this.$AdsConversionPixelStoreClass1();}u.prototype.$AdsConversionPixelStoreClass1=function(){this.$AdsConversionPixelStoreClass2={};this.$AdsConversionPixelStoreClass3=m.NOT_LOADED;this.$AdsConversionPixelStoreClass4=m.NOT_LOADED;this.$AdsConversionPixelStoreClass5=m.NOT_LOADED;};u.prototype.onDispatchToken=function(w){var x=w.action;switch(x.actionType){case j.CONVERSION_PIXELS_CHANGE:case k.UPDATE_PIXELS:x.pixels.forEach((function(y){y.type=o.LEGACY;y.value=y.tag;y.pixelID=y.id;this.$AdsConversionPixelStoreClass2[y.id]=new q(y);}).bind(this));this.$AdsConversionPixelStoreClass5=m.LOADED;this.$AdsConversionPixelStoreClass3=m.LOADED;this.inform('change');break;case k.LOADING_ERROR:this.$AdsConversionPixelStoreClass3=m.ERROR;this.inform('change');break;case j.DEFAULT_CONVERSION_PIXEL_LOADED:if(x.data.defaultPixelID){this.$AdsConversionPixelStoreClass6=String(x.data.defaultPixelID);}else this.$AdsConversionPixelStoreClass6=null;this.$AdsConversionPixelStoreClass4=m.LOADED;this.inform('change');break;case j.DESTINATION_CHANGE:this.$AdsConversionPixelStoreClass6=null;this.$AdsConversionPixelStoreClass4=m.NOT_LOADED;this.inform('change');break;case p.REFRESH_CONVERSION_CODE_STATUS:this.$AdsConversionPixelStoreClass5=m.LOADING;this.$AdsConversionPixelStoreClass7(w.action.data.pixelID);this.inform('change');break;case p.RESET_PIXEL_LIST:case n.ACCOUNT.SELECT:this.$AdsConversionPixelStoreClass1();this.inform('change');break;}};u.prototype.$AdsConversionPixelStoreClass7=function(w){l.loadPixel(w);};u.prototype.getKeyedPixels=function(){var w=h.getAccountID();if(this.$AdsConversionPixelStoreClass3===m.NOT_LOADED){this.$AdsConversionPixelStoreClass3=m.LOADING;l.loadPixels(w);}return this.$AdsConversionPixelStoreClass2;};u.prototype.getDefaultPixelID=function(){return this.$AdsConversionPixelStoreClass6;};u.prototype.getPixels=function(){var w=this.getKeyedPixels();return Object.keys(w).map(function(x){return w[x];});};u.prototype.getPixel=function(w){if(!w)return null;var x=this.getKeyedPixels();return x[w];};u.prototype.getLoadingState=function(){return this.$AdsConversionPixelStoreClass3;};u.prototype.getRefreshState=function(){return this.$AdsConversionPixelStoreClass5;};u.prototype.isListLoaded=function(){return this.$AdsConversionPixelStoreClass3===m.LOADED;};u.prototype.hasPixels=function(){return Object.keys(this.getKeyedPixels()).length>0;};u.prototype.getPixelLastFiringTime=function(w){return r(this.getKeyedPixels(),w+'.last_firing_time');};u.prototype.getPixelCode=function(w){return r(this.getKeyedPixels(),w+'.js_pixel');};var v=new u();f.exports=v;},null);
__d('AdsCFConversionPixelStore',['AdsActionTypes','AdsBaseStore','AdsCFAccountStore','AdsCFActionTypes','AdsCFDestinationStore','AdsCFObjectiveStore','AdsConversionPixelDataDispatcher','AdsConversionPixelSnippetViewMode','AdsConversionPixelStore','AdsConversionPixelUtils','AdsConversionTrackingUtils','AdsDispatcher','AdsOffsiteConversionConstants','AdsPixelViewActionTypes','ImmutableObject','URIInitDataUtil','invariant','whitelistObjectKeys','AdsCFConstants','ads-objectives'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z){if(c.__markCompiled)c.__markCompiled();var aa,ba;'use strict';var ca=c('ads-objectives').KPIObjectives,da=z.PixelSelectorVersion,ea,fa={},ga=null;function ha(){ea={recipients:[],personalMessage:null,viewMode:o.NONE};fa={};ga=null;}ha();function ia(ma,na){if(!ma.placement)throw new Error('Conversion pixel action received with no placement.');ja(ma.placement,y(ma,na));}function ja(ma,na){fa[ma]=babelHelpers._extends({},fa[ma],na);ga=ma;la.inform('change');}aa=babelHelpers.inherits(ka,i);ba=aa&&aa.prototype;function ka(){ba.constructor.call(this);this.$AdsCFConversionPixelStoreClass1=null;}ka.prototype.getStoreName=function(){return 'AdsCFConversionPixelStore';};ka.prototype.getState=function(ma){var na=babelHelpers._extends({},ea,fa[ma]);return new v(na);};ka.prototype.getSelectedPixel=function(){if(!this.$AdsCFConversionPixelStoreClass1)return null;return babelHelpers._extends({},this.$AdsCFConversionPixelStoreClass1);};ka.prototype.getInitialState=function(){return new v(ea);};ka.prototype.getPlacement=function(){return ga;};ka.prototype.canContinue=function(ma){var na=la.getState(ma);return q.canPixelSnippetSharerContinue(na.viewMode,na.recipients);};ka.prototype.$AdsCFConversionPixelStoreClass2=function(ma,na,oa,pa){if(ma===ca.WEBSITE_CONVERSIONS){if(!this.$AdsCFConversionPixelStoreClass1)if(oa){this.$AdsCFConversionPixelStoreClass1=pa[oa];}else if(na){this.$AdsCFConversionPixelStoreClass1=pa[na];}else{var qa=Object.keys(pa);if(qa.length>0)this.$AdsCFConversionPixelStoreClass1=pa[qa[0]];}}else if(ma===ca.WEBSITE_CLICKS&&na){this.$AdsCFConversionPixelStoreClass1=pa[na];}else if(r.isSupportedInObjective(ma)&&oa){this.$AdsCFConversionPixelStoreClass1=pa[oa];}else this.$AdsCFConversionPixelStoreClass1=null;};ka.prototype.onDispatchToken=function(ma){var na=ma.action,oa,pa,qa;switch(na.actionType){case k.ADD_PIXEL_EMAIL_RECIPIENT:pa=la.getState(na.placement);oa=pa.recipients.concat([na.recipient]);ja(na.placement,{recipients:oa});break;case k.REMOVE_PIXEL_EMAIL_RECIPIENT:pa=la.getState(na.placement);oa=pa.recipients.slice(0);var ra=oa.indexOf(na.recipient);oa.splice(ra,1);ja(na.placement,{recipients:oa});break;case k.CHANGE_PIXEL_EMAIL_PERSONAL_MESSAGE:ia(na,{personalMessage:null});break;case k.CHANGE_PIXEL_SNIPPET_VIEW_MODE:ia(na,{viewMode:null});break;case k.CONFIRM_SNIPPET_VIEW:pa=la.getState(na.placement);s.waitFor([j.dispatchToken]);var sa=this.$AdsCFConversionPixelStoreClass1;if(sa&&pa.viewMode===o.EMAIL_CODE&&la.canContinue(na.placement))q.sendConversionPixelCodeViaEmail(t.emailSources.CREATE_FLOW,sa.js_pixel,pa.recipients,pa.personalMessage);break;case h.PAGE_TRANSITION:ha();break;case k.CONVERSION_PIXEL_CHANGE:s.waitFor([p.dispatchToken]);this.$AdsCFConversionPixelStoreClass1=p.getPixel(na.conversionPixelID);this.inform('change');break;case u.UPDATE_CONVERSION_CHOICE:if(na.data.conversion&&na.data.conversion.getAuxiliaryData()){this.$AdsCFConversionPixelStoreClass1=p.getPixel(na.data.conversion.getAuxiliaryData().pixelID);}else this.$AdsCFConversionPixelStoreClass1=null;this.inform('change');break;case k.DESTINATION_CHANGE:s.waitFor([l.dispatchToken,m.dispatchToken,j.dispatchToken]);qa=m.getKPIObjective();var ta=l.getDestinationDomain(),ua=j.getPixelSelector();if(qa===ca.WEBSITE_CLICKS&&ta&&ua===da.CONVERSION_PIXEL_SELECTOR)n.loadDefaultPixel(j.getAccountID(),ta);this.$AdsCFConversionPixelStoreClass1=null;this.$AdsCFConversionPixelStoreClass2(qa,p.getDefaultPixelID(),w.getDefaultConversionPixel(),p.getKeyedPixels());this.inform('change');break;case k.DEFAULT_CONVERSION_PIXEL_LOADED:case k.KPI_OBJECTIVE_CHANGE:s.waitFor([p.dispatchToken,m.dispatchToken,j.dispatchToken]);qa=m.getKPIObjective();this.$AdsCFConversionPixelStoreClass2(qa,p.getDefaultPixelID(),w.getDefaultConversionPixel(),p.getKeyedPixels());this.inform('change');break;}};var la=new ka();b.debug_AdsCFConversionPixelStore=la;f.exports=la;},null);
__d('AdsVideoFetcher',['AdsDaoGraph','Promise','URI','invariant'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l=['captions','description','format','id','length','name','thumbnails'];function m(o){var p=o.captions,q=o.description,r=o.id,s=o.length,t=o.name,u=o.thumbnails;if(u.data)u=u.data;!(u.length>0)?k(0):undefined;var v=null;u=u.map(function(z){var aa=z,ba=aa.height,ca=aa.is_preferred,da=aa.uri,ea=aa.width;da=new j(da).setFragment('').toString();z={height:ba,uri:da,width:ea};z.id=z.uri;if(ca)v=z;return z;});if(!v)v=u[0];var w=o.format.find(function(z){return z.filter==='native';}),x=w.width,y=w.height;return {captions:p,description:q,height:y,id:r,length:s,name:t,preferredThumbnail:v,thumbnails:u,width:x};}var n={promiseAdAccountVideos:function(o){return h.fetch.videosForAccount.promiseOne({accountId:o,fields:l}).then(function(p){return p.map(m);});},promisePageVideos:function(o){return h.fetch.videosForPage.promiseOne({pageId:o,fields:['id']}).then(function(p){return i.all(p.map(function(q){return n.promiseSingleVideo(q.id);}));});},promiseSingleVideo:function(o,p){if(p)h.fetch.objectByFBID.clearCache();return h.fetch.objectByFBID.promiseOne({fbid:o,fields:l}).then(m);},promiseVideoStatus:function(o){h.fetch.objectByFBID.clearCache();return h.fetch.objectByFBID.promiseOne({fbid:o,fields:['status']}).then(function(p){return p.status;});}};f.exports=n;},null);
__d('promiseAllByKey',['Promise'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();f.exports=function i(j){var k=Object.keys(j);return h.all(k.map(function(l){return j[l];})).then(function(l){var m={};l.forEach(function(n,o){m[k[o]]=n;});return m;});};},null);
__d('AdsCFCreativeDataLoader',['AdsCFAccountStore','AdsCreativeConverter','AdsVideoFetcher','Promise','emptyFunction','promiseAllByKey'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();n.prototype.loadCreativeForID=function(p,q){var r=h.getDao();return r.fetch.creativesForAdgroupId.promiseOne({adgroupId:p,fields:i.getModernFields()}).then(function(s){var t={creatives:s,feedPage:null,pagePost:null,temporaryImageURLsByHash:{},videos:null};t.videos=k.all(s.map(function(x){var y=x.object_story_spec||{},z=y.video_data||{},aa=z.video_id;return aa?j.promiseSingleVideo(aa):null;}).filter(l.thatReturnsArgument));var u=s.map(function(x){if(x.image_hash){return x.image_hash;}else if(x.object_story_spec&&x.object_story_spec.link_data)return x.object_story_spec.link_data.image_hash;return null;}).filter(l.thatReturnsArgument);if(u.length>0)t.temporaryImageURLsByHash=r.fetch.imagesForAccount.promiseOne({fields:['hash','url'],hashes:u}).then(function(x){var y={};x.forEach(function(z){y[z.hash]=z.url;});return y;});if(s[0].story_id&&s[0].object_id!==q){var v=s[0].object_id,w=s[0].story_id;t.pagePost=r.fetch.pagePostDetails.promiseOne({storyId:w,pageId:v});t.feedPage=r.fetch.objectByFBID.promiseOne({fbid:v});}return m(t);});};function n(){}var o=new n();f.exports=o;},null);
__d('AdsCFMediaSource',['keyMirror'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=h({LIBRARY:null,STOCK:null});f.exports=i;},null);
__d('adsGetPlacementsForPageTypes',['AdsPageTypes','AdsPlacementID','AdsPlacementStates'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k=j.DISABLED,l=j.ENABLED;function m(n){var o={};o[i.DESKTOP_NEWS_FEED]=k;o[i.MOBILE_NEWS_FEED]=k;o[i.RHC]=k;o[i.FAN]=k;o[i.IG_FEED]=k;n.forEach(function(p){switch(p){case h.DESKTOP_FEED:o.DESKTOP_NEWS_FEED=l;break;case h.MOBILE_FEED:o.MOBILE_NEWS_FEED=l;break;case h.RIGHT_COLUMN:o.RHC=l;break;case h.MOBILE_EXTERNAL:o.FAN=l;break;case h.INSTAGRAM_STREAM:o.IG_FEED=l;break;default:break;}});return o;}f.exports=m;},null);
__d('AdsCFCreativeStore',['AdCreativeType','AdsActionTypes','AdsAPIObjectives','AdsAppUtils','AdsBaseStore','AdsCallToActionTypes','AdsCFActionTypes','AdsCFApplicationStore','AdsCFCallNowStrings','AdsCFConstants','AdsCFCreativeDataDispatcher','AdsCFCreativePlacementUtils','AdsCFCreativeProperties','AdsCFCreativeUIStore','AdsCFCreativeUtils','AdsCFDestinationDataLoader','AdsCFDestinationStore','AdsCFObjectiveStore','AdsCFSelectedImagesStore','AdsCFUserStore','AdsCreationConfig','AdsCreativeDelegate','AdsCreativeUtils','AdsDestinationTypes','AdsDispatcher','AdsInstagramAccountActionSources','AdsInstagramAccountActionTypes','AdsURLValidationView','ApiCreativeTypes','URI','adsCFGetObjective_HACK','adsGetPlacementsForPageTypes','areEqual','arrayContains','invariant','isL1RefactorEnabled','whitelistObjectKeys','AdsCFTargetingStore','AdsCFCampaignStore','AdsCFCampaignStore','AdsCFCampaignStore','AdsCFCampaignStore'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra){if(c.__markCompiled)c.__markCompiled();var sa,ta;'use strict';var ua=c('AdsCFConstants').LandingURLTypes,va=s.getPlacementsState,wa=s.getSupportedPlacements,xa=s.hasEnabledPlacement,ya=s.isDesktopPlacementEnabled,za=s.isOnlyIGEnabled,ab=s.isPlacementEnabled,bb=s.isPlacementSupported,cb=s.isNewsFeedDisabled,db=h.AD_CREATIVE_TYPE,eb=q.PlacementID,fb=q.PlacementStates,gb='sk',hb,ib,jb;function kb(){hb={};ib={};jb=false;}kb();function lb(pc){hb=babelHelpers._extends({},hb,pc);}function mb(){if(!hb.callNowPhoneNumberView)return false;var pc=pb(),qc;if(pc.hasTargetingCountryError()){qc=p.INTERNAL_ERROR;}else if(!pc.getTargetingCountry()){qc=p.TARGETING_ADDRESS_MISSING_ERROR;}else if(pc.getAgeMin()<ba.minCallNowAge)qc=p.MIN_AGE_ERROR;if(qc){lb({callNowPhoneNumberView:hb.callNowPhoneNumberView.set('xuiError',qc)});return true;}r.validatePhoneNumber(hb.callNowPhoneNumberView,pc.getTargetingCountry());return false;}function nb(){if(!hb.landingURLView)return false;r.validateURL(hb.landingURLView,n.LANDING_URL_VALIDATED);return true;}function ob(){if(!hb.learnMoreURLView)return false;r.validateURL(hb.learnMoreURLView,n.LEARN_MORE_URL_VALIDATED);return true;}function pb(){var pc=c('AdsCFTargetingStore');return pc;}function qb(pc,qc){var rc={apiCreativeID:null,creativeType:null,objectStoreUrl:null,placements:null};qc.forEach(function(sc){rc[sc]=null;});return rc;}function rb(pc){if(x.getCachedPostLinkData(pc))return;w.fetchPostLinkData(pc,x.getPagePostDetails(pc));}function sb(pc){var qc=c('AdsCFCampaignStore'),rc=qc.getState(pc.campaignID),sc=rc.promotedObject,tc=sc.objectStoreUrl,uc=y.getAPIObjective();if(k.isAppObjective(uc)&&tc)lb({linkUrl:tc});var vc=ma(pc.targeting.pageTypes);lb({placements:vc});}function tb(pc){var qc=new ka(pc.linkUrl);if(qc.getProtocol()==='')qc.setProtocol('http');var rc,sc=pc.linkMode===ua.FACEBOOK_PAGE,tc=x.getDestinationDetails();if(sc){rc=tc.destinationOriginalObjectUrl;}else if(qc.getPath()!==''||qc.getDomain()!==''){rc=qc.toString();}else rc='';var uc=hb.landingURLView||new ia(pc.linkUrl);uc=!sc?uc.changeFragment(pc.linkUrl):uc;lb({linkUrl:rc,landingURLView:uc});}function ub(pc){var qc={callToActionLink:pc.callToActionLink};if(hb.learnMoreURLView)qc.learnMoreURLView=hb.learnMoreURLView.withMutations(function(rc){rc.fragment=pc.callToActionLink;rc.isLoading=false;});lb(qc);}function vb(pc){var qc={getDirectionsUrl:pc.callToActionLink};lb(qc);}function wb(pc){var qc=pc.creativeType||hb.creativeType;!qc?pa(0):undefined;if(pc.storyId){var rc=pc.storyId;rb(rc);}if(pc.actor&&hb.videoId){hb.videoId=null;hb.videoThumbnail=null;}var sc=xb(qc,pc);lb(ra(pc,qb(qc,t.idToType[qc].validFields)));if(sc)dc({});}function xb(pc,qc){var rc=wa(hb,y.getAPIObjective()),sc=wa(babelHelpers._extends({},hb,ra(qc,qb(pc,t.idToType[pc].validFields))),y.getAPIObjective());return !na(rc.sort(),sc.sort());}function yb(pc){if(pc.isMPA){pc=babelHelpers._extends({},pc,{isVideoCreative:false});if(cb(hb,y.getAPIObjective())||za(hb,y.getAPIObjective())){dc({});kc(db.FEED_URL);}}wb(pc);}function zb(pc){var qc=pc.placementList,rc=pc.enabled?fb.ENABLED:fb.DISABLED,sc=babelHelpers._extends({},va(hb,y.getAPIObjective()));qc.forEach(function(uc){if(sc[uc]===fb.NOT_SUPPORTED)return;sc[uc]=rc;if(uc===eb.MOBILE_NEWS_FEED&&sc[eb.FAN]!==fb.NOT_SUPPORTED)sc[eb.FAN]=rc;});var tc=y.getAPIObjective();if(!xa(babelHelpers._extends({},hb,{placements:sc}),tc))Object.keys(sc).some(function(uc){if(bb(hb,uc,tc)&&qc.indexOf(uc)===-1){sc[uc]=fb.ENABLED;return true;}});wb({placements:sc});}function ac(pc){lb({callNowPhoneNumberView:hb.callNowPhoneNumberView.changeFragment(pc.phoneNumberFragment)});}function bc(pc){if(hb.callNowPhoneNumberView===pc.phoneNumberViewOrig&&pb().getTargetingCountry()===pc.targetingCountry){lb({callNowPhoneNumberView:pc.phoneNumberView});return true;}return false;}function cc(pc){fa.waitFor([pb().dispatchToken]);if(pc.ageMin)return mb();return false;}function dc(pc){wb({placements:null});}function ec(pc){var qc=pc.creativeType;if(!qc)return;ib=ra(pc,qb(qc,t.idToType[qc].validFields));}function fc(pc,qc){var rc=Object.assign(pc),sc=rc.creativeType,tc=ra(rc,qb(sc,t.idToType[sc].validFields)),uc=c('AdsCFCampaignStore');fa.waitFor([uc.dispatchToken]);var vc=uc.getSelectedCampaignState();if(vc.isNewCampaign){tc.placements=undefined;}else tc.placements=ma(vc.targeting.pageTypes);tc.storyId&&rb(tc.storyId);lb(tc);}function gc(pc,qc,rc,sc,tc){var uc=da.getPrimaryCreativeConfig(pc),vc=c('AdsCFCampaignStore'),wc=vc.getSelectedCampaignState();fc(ca.get(pc).getDefaultCreativeData(uc.id,qc,rc,tc,hb,wc.promotedObject),tc);var xc=ca.get(pc).getDefaultActor(qc,tc,hb.linkUrl);if(pc===j.VIDEO_VIEWS||pc===j.PAGE_LIKES||pc===j.CANVAS_APP_INSTALLS||pc===j.CANVAS_APP_ENGAGEMENT||pc===j.MOBILE_APP_INSTALLS||pc===j.MOBILE_APP_ENGAGEMENT){lb({actor:xc});}else if(pc===j.LOCAL_AWARENESS){lb({linkDescription:'',actor:xc});}else if(sc===ea.EXTERNAL_WEBPAGE){lb({linkDescription:'',actor:xc,eventID:tc.eventID});}else if(sc===ea.EVENT)wb({actor:xc});if(ab(hb,eb.IG_FEED,y.getAPIObjective()))hb.callToActionType=m.TYPES.LEARN_MORE.name;}function hc(pc,qc){var rc=babelHelpers._extends({},va(hb,y.getAPIObjective())),sc;if(oa(pc,eb.IG_FEED)&&qc&&rc[eb.IG_FEED]===fb.ENABLED)sc=m.TYPES.LEARN_MORE.name;if(za(hb,y.getAPIObjective())&&(!hb.callToActionType||hb.callToActionType===m.TYPES.DONATE_NOW.name))sc=m.TYPES.LEARN_MORE.name;wb({callToActionType:sc});}function ic(){if(hb.creativeType!==ja.STANDARD&&hb.creativeType!==db.FEED_URL)return;var pc=babelHelpers._extends({},va(hb,y.getAPIObjective())),qc=pc[eb.DESKTOP_NEWS_FEED]===fb.ENABLED||pc[eb.MOBILE_NEWS_FEED]===fb.ENABLED||pc[eb.IG_FEED]===fb.ENABLED||hb.isVideoCreative||hb.isMPA?db.FEED_URL:ja.STANDARD;if(qc===hb.creativeType)return;kc(qc);}function jc(){if(!ya(hb,y.getAPIObjective())&&hb.linkUrl){var pc=new ka(hb.linkUrl);pc.removeQueryData(gb);wb({linkUrl:pc.toString()});}}function kc(pc){if(pc===db.FEED_URL){lb({creativeType:pc,linkDescription:'',actor:ca.get(y.getAPIObjective()).getDefaultActor(x.getDestinationID(),x.getDestinationDetails(),hb.linkUrl)});}else if(pc===db.STANDARD){lb({creativeType:pc});delete hb.actor;delete hb.linkDescription;delete hb.storyId;}}function lc(){var pc=y.getAPIObjective();if(v.objectiveAllowsWebsiteConversionVideo(pc)||v.objectiveAllowsWebsiteClickVideo(pc))if(hb.isVideoCreative){hb.callToActionType=m.TYPES.LEARN_MORE.name;}else hb.callToActionType='';}function mc(){if(!hb.isVideoCreative){hb.videoId=null;hb.videoThumbnail=null;}hb.imageList=z.getState();lc();dc({});ic();}sa=babelHelpers.inherits(nc,l);ta=sa&&sa.prototype;nc.prototype.getStoreName=function(){return 'AdsCFCreativeStore';};nc.prototype.resetCreative=function(){};nc.prototype.getCreativeData=function(){return hb;};nc.prototype.getInitialCreativeData=function(){return ib;};nc.prototype.getShouldApplyLatestPagePostOnPostsReload=function(){return jb;};nc.prototype.getState=function(){if(!hb.creativeType)return {};var pc=ra(hb,qb(hb.creativeType,t.idToType[hb.creativeType].validFields));pc.hasChanged=v.hasCreativeChanged(pc,ib);if((hb.creativeType===db.FEED_URL||hb.creativeType===db.NEKO_LPP)&&pc.hasChanged&&!u.isUsingExistingPost())pc.storyId=undefined;if(hb.isVideoCreative){delete pc.imageList;}else if(hb.isVideoCreative===false)delete pc.videoId;return pc;};nc.prototype.onDispatchToken=function(pc){var qc=pc.action;if(qa(la()))return;switch(qc.type){case n.CREATIVE_INIT:var rc=qc;if(!qc.hasOwnProperty('callToActionType')&&hb&&hb.callToActionType)rc=babelHelpers._extends({},qc,{callToActionType:''});wb(rc);ec(rc);oc.inform('change');break;case n.ADD_ACTOR:wb(qc.data);oc.inform('change');break;case n.CREATIVE_CHANGE:wb(qc);oc.inform('change');break;case n.SET_IMAGE_LIST:fa.waitFor([z.getDispatchToken()]);hb.imageList=z.getState();oc.inform('change');break;case n.IMAGE_VALIDATED:fa.waitFor([z.getDispatchToken()]);oc.inform('change');break;case n.CALL_NOW_FRAGMENT_CHANGE:ac(qc);oc.inform('change');break;case n.CALL_NOW_FRAGMENT_SUBMIT:if(mb())oc.inform('change');break;case n.CALL_NOW_PHONE_NUMBER_VALIDATED:if(bc(qc))oc.inform('change');break;case n.LANDING_URL_SUBMIT:if(nb())oc.inform('change');break;case n.LANDING_URL_CHANGE:tb(qc);oc.inform('change');break;case n.LANDING_URL_VALIDATED:if(qc.urlViewOrig.get('fragment')===hb.landingURLView.get('fragment')){lb({landingURLView:qc.urlView});oc.inform('change');}break;case n.GET_DIRECTIONS_LOCATION_CHANGE:vb(qc);oc.inform('change');break;case n.LEARN_MORE_URL_CHANGE:ub(qc);oc.inform('change');break;case n.LEARN_MORE_URL_VALIDATED:lb({learnMoreURLView:qc.urlView});oc.inform('change');break;case n.LEARN_MORE_URL_SUBMIT:if(ob())oc.inform('change');break;case n.TARGETING_CHANGE:if(cc(qc))oc.inform('change');break;case n.TARGETING_COUNTRY_FETCH_SUCCESS:case n.TARGETING_COUNTRY_FETCH_ERROR:fa.waitFor([pb().dispatchToken]);if(mb())oc.inform('change');break;case n.CREATIVE_LPP_FORMAT_CHANGE:yb(qc);oc.inform('change');break;case n.CREATIVE_PLACEMENTS_CHANGE:zb(qc);ic();jc();hc(qc.placementList,qc.enabled);oc.inform('change');break;case n.CREATIVE_PLACEMENTS_RESET:var sc=c('AdsCFCampaignStore');if(sc.getSelectedCampaignState().isNewCampaign){dc(qc);ic();oc.inform('change');}break;case n.PAGE_POSTS_LOADED:fa.waitFor([x.dispatchToken]);if((jb||!hb.storyId)&&hb.creativeType&&hb.creativeType!==ja.INLINE_FAN){wb({storyId:x.getDefaultStoryIDForCreative()});oc.inform('change');}jb=false;break;case n.PAGE_POSTS_PUBLISHED:fa.waitFor([x.dispatchToken]);var tc=x.getDefaultStoryIDForCreative();if(tc){wb({storyId:tc});}else jb=true;oc.inform('change');break;case n.PAGE_SELECTED:fa.waitFor([x.dispatchToken]);var uc=x.getDefaultStoryIDForCreative();lb({storyId:uc});oc.inform('change');break;case n.RESET_DESTINATION:if(o.isCreatingSimilar())break;kb();oc.inform('change');break;case n.DESTINATION_CHANGE:case n.DESTINATION_LOADED:case n.OBJECTIVE_CHANGE:case n.KPI_OBJECTIVE_CHANGE:if(o.isEditMode())break;fa.waitFor([y.dispatchToken,x.dispatchToken,z.getDispatchToken()]);if(qc.type===n.DESTINATION_CHANGE){kb();}else if(!x.hasDestination())break;gc(y.getAPIObjective(),x.getDestinationID(),x.getDefaultStoryIDForCreative(),x.getDestinationType(),x.getDestinationDetails());hb.imageList=z.getState();oc.inform('change');break;case n.CHANGE_ACTORS:if(!hb.actor){fa.waitFor([y.dispatchToken,aa.dispatchToken]);var vc=ca.get(y.getAPIObjective()).getDefaultActor(x.getDestinationID(),x.getDestinationDetails(),hb.linkUrl);if(vc)lb({actor:vc});}break;case n.IMAGE_CROP_CHANGE:case n.IMAGE_CROPS_CHANGE:fa.waitFor([z.getDispatchToken()]);hb.imageList=z.getState();oc.inform('change');break;case n.CAMPAIGN_SELECT:if(!qc.targeting)break;sb(qc);ic();oc.inform('change');break;case i.PAGE_TRANSITION:kb();break;case n.IMAGE_MEDIA_TYPE_SELECTED:fa.waitFor([z.getDispatchToken()]);var wc=hb.isVideoCreative;hb.isVideoCreative=false;if(wc)mc();oc.inform('change');break;case n.VIDEO_MEDIA_TYPE_SELECTED:fa.waitFor([z.getDispatchToken()]);wc=hb.isVideoCreative;hb.isVideoCreative=true;if(!wc)mc();oc.inform('change');break;case n.SET_INSTAGRAM_ACCOUNT_ID:hb.instagramActorID=qc.instagramActorID;oc.inform('change');break;case ha.PAGE.CREATE_PAGE_BACKED_SUCCESS:if(qc.source===ga.CF_AUCTION){hb.instagramActorID=qc.data.instagramAccountID;oc.inform('change');}break;}};function nc(){sa.apply(this,arguments);}var oc=new nc();b.debug_AdsCFCreativeStore=oc;f.exports=oc;},null);
__d('AdsCFCreativeUIStore',['AdsCFActionTypes','AdsCFConstants','AdsCFObjectiveStore','AdsCreativeDelegate','AdsDispatcher','FluxReduceStore','immutable'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o,p,q,r;'use strict';var s=n.Record({isUsingExistingPost:false});o=babelHelpers.inherits(t,s);p=o&&o.prototype;function t(){o.apply(this,arguments);}q=babelHelpers.inherits(u,m);r=q&&q.prototype;u.prototype.getInitialState=function(){'use strict';return new t();};u.prototype.isUsingExistingPost=function(){'use strict';return this.getState().isUsingExistingPost;};u.prototype.reduce=function(v,w){'use strict';var x=w.action;switch(x.type){case h.SET_IS_USING_EXISTING_POST:return v.set('isUsingExistingPost',x.isUsingExistingPost);case h.KPI_OBJECTIVE_CHANGE:l.waitFor([j.dispatchToken]);var y=j.getAPIObjective(),z=k.get(y).getDefaultCreativeSectionEditMode(x.source);if(z===i.CreativeSectionEditMode.USING_EXISTING_POST)return v.set('isUsingExistingPost',true);return this.getInitialState();}return v;};function u(){'use strict';q.apply(this,arguments);}f.exports=new u(l);},null);
__d('AdsCFDestinationInfoDataLoader',['AdsAPIObjectives','AdsCFAccountStore','AdsCFDestinationUtils','AdsDestinationTypes','GraphAPI','Promise','URIInitDataUtil','promiseAllByKey'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){'use strict';if(c.__markCompiled)c.__markCompiled();p.prototype.loadDestinationInfoByID=function(r,s){var t=i.getDao(),u=h[n.getDefaultObjective()];return t.fetch.adsDestinationInfo.promiseOne({account_id:r,object_id:s}).then(function(v){var w={objectSearch:v,canEdit:false,location:null};if(v[0]&&(v[0].type===k.PLACE||v[0].type===k.PAGE)){w.canEdit=j.promisePageEditRights(t,v[0].id);if(u===h.LOCAL_AWARENESS){var x=j.promisePageLocation(s);w.location=x.then(function(){},function(y){});}}return o(w);});};p.prototype.loadDestinationInfoByURL=function(r){var s=i.getDao();return s.fetch.adsDestinationInfo.promiseOne({object_url:r}).then(function(t){return {urlSearch:t};});};p.prototype.loadDefaultDestination=function(r,s,t,u){var v='default_destination.fields(destination_id,destination_url)';v+=s?'.adgroup_id('+s+')':'';v+=t?'.campaign_id('+t+')':'';v+=u?'.oid('+u+')':'';return l('2.3').adaccount(r).get({fields:v}).then(function(w){if(!w||!w.default_destination)return null;return l('2.3').search('addestination').get({object_id:w.default_destination.destination_id,object_url:w.default_destination.destination_url});}).then(function(w){return w;});};function p(){}var q=new p();f.exports=q;},null);
__d('AdsCFDestinationInfoDataDispatcher',['AdsCFActionTypes','AdsCFDestinationInfoDataLoader','AdsDispatcher','setImmediate'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();l.prototype.loadDestinationInfoByID=function(n,o,p){k(function(){i.loadDestinationInfoByID(n,o).done(function(q){return j.handleUpdateFromServerResponse({data:{destination:q,args:{objectID:o}},destSource:p,type:h.DESTINATION_LOADED});},function(q){return j.handleUpdateFromServerResponse({data:{error:q,args:{objectID:o}},destSource:p,type:h.DESTINATION_LOAD_ERROR});});});};l.prototype.loadDestinationInfoByURL=function(n,o){k(function(){i.loadDestinationInfoByURL(n).done(function(p){return j.handleUpdateFromServerResponse({data:{destination:p,args:{objectURL:n}},destSource:o,type:h.DESTINATION_LOADED});},function(p){return j.handleUpdateFromServerResponse({data:{error:p,args:{objectURL:n}},destSource:o,type:h.DESTINATION_LOAD_ERROR});});});};l.prototype.loadDefaultDestination=function(n,o,p,q,r){i.loadDefaultDestination(n,o,p,q).done(function(s){if(s&&s.data.length){j.handleUpdateFromServerResponse({data:{destination:s.data[0],args:{adgroupID:o,campaignID:p,oid:q}},destSource:r,type:h.DESTINATION_LOADED});}else j.handleUpdateFromServerResponse({data:{args:{adgroupID:o,campaignID:p,oid:q}},type:h.NO_DEFAULT_DESTINATION});},function(s){return j.handleUpdateFromServerResponse({data:{error:s,args:{adgroupID:o,campaignID:p,oid:q}},destSource:r,type:h.DESTINATION_LOAD_ERROR});});};function l(){}var m=new l();f.exports=m;},null);
__d('AdsCFPendingObjectUtils',['URI'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={getPendingObjectID:function(){var j=new h(window.location.href).getQueryData();return j.oid;}};f.exports=i;},null);
__d('AdsPixelDefaultPixelStore',['AdsBaseStore','AdsLoadState','AdsPixelGraphAPI','AdsPixelServerActionTypes'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l,m;'use strict';l=babelHelpers.inherits(n,h);m=l&&l.prototype;function n(){m.constructor.call(this);this.init();}n.prototype.init=function(){this.resetDefaultPixelState();};n.prototype.getStoreName=function(){return 'AdsPixelDefaultPixelStore';};n.prototype.onDispatchToken=function(p){var q=p.action;switch(q.actionType){case k.RECEIVE_DEFAULT_PIXEL:this.$AdsPixelDefaultPixelStoreClass1(q.data.defaultPixelID);this.$AdsPixelDefaultPixelStoreClass2=i.LOADED;this.inform('change');break;}};n.prototype.getDefaultPixelID=function(p){if(p===null){this.$AdsPixelDefaultPixelStoreClass2=i.LOADED;return null;}if(this.$AdsPixelDefaultPixelStoreClass2===i.NOT_LOADED){this.$AdsPixelDefaultPixelStoreClass2=i.LOADING;j.loadDefaultPixelID(p);}return this.$AdsPixelDefaultPixelStoreClass3;};n.prototype.hasDefaultPixelLoaded=function(){return this.$AdsPixelDefaultPixelStoreClass2===i.LOADED;};n.prototype.$AdsPixelDefaultPixelStoreClass1=function(p){this.$AdsPixelDefaultPixelStoreClass3=p;};n.prototype.resetDefaultPixelState=function(){this.$AdsPixelDefaultPixelStoreClass3=null;this.$AdsPixelDefaultPixelStoreClass2=i.NOT_LOADED;};var o=new n();f.exports=o;},null);
__d('AdsCFDestinationStore',['AdImageSpecsUtils','AdsActionTypes','AdsAPIObjectives','ads-app-platforms','AdsBaseStore','AdsCFAccountStore','AdsCFActionTypes','AdsCFApplicationStore','AdsCFConstants','AdsCFCreativeUtils','AdsCFDestinationDataLoader','AdsCFDestinationInfoDataDispatcher','AdsCFDestinationUtils','AdsCFErrorCode','AdsCFPagePostDataDispatcher','AdsCFPendingObjectUtils','AdsCFPrimedDao','AdsCreativeUtils','AdsDestinationTypes','AdsDispatcher','ads-objectives','AdsPagePostUtils','AdsPayloadSource','AdsPixelDefaultPixelStore','PagePostTypes','Promise','SearchableEntry','URI','URIInitDataUtil','adsGKCheck','arrayContains','isNumberLike','promiseAllByKey','ads-lib-urllib','AdsCFObjectiveStore','AdsCFObjectiveStore','AdsCFObjectiveStore','AdsCFCampaignStore','AdsCFCampaignGroupStore','AdsCFCreativeStore'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa){if(c.__markCompiled)c.__markCompiled();var pa,qa;'use strict';var ra=p.DestinationSelectionSource,sa=c('ads-objectives').KPIObjectives,ta=ba.KPIObjectivesByDestinationType,ua=ra.SINGLE_OBJECT_PREFILL,va={},wa={},xa,ya,za,ab=false,bb,cb=false,db=false,eb=[],fb={},gb=false;function hb(){wa={};xa=null;ya=null;za=null;ab=false;bb=null;cb=false;db=false;eb=[];fb={};}hb();function ib(xb){return v.isValidPagePostsRequest(xb.requestId);}function jb(){return c('AdsCFObjectiveStore').getKPIObjective();}function kb(){return c('AdsCFObjectiveStore').getAPIObjective();}function lb(){return c('AdsCFObjectiveStore').dispatchToken;}function mb(){db=false;var xb=jb();if((za===z.PLACE||za===z.PAGE)&&xb!==ba.KPIObjectives.LOCAL_AWARENESS){eb=[];if(ya)v.fetchPagePosts(ya);}}var nb=function(xb,yb,zb,ac){aa.handleUpdateFromViewAction({data:{entityID:zb.object_id,entityURL:zb.object_url,error:yb.error,pendingEntity:ac},type:n.DESTINATION_FETCH_ERROR});};function ob(xb,yb,zb,ac){var bc=m.getAccountID(),cc=x.getInstanceForAccount(bc),dc=xb;if(ac&&ac.type===z.EXTERNAL_WEBPAGE)dc=null;var ec=babelHelpers._extends({},zb,{account_id:bc,handleError:nb});if(dc){ec.object_id=dc;}else if(!yb||!yb.length){bb={entityID:p.ErrorEntityID,searchableEntry:ac};return;}else if(ma(yb)){ec.object_id=yb.replace(/^0+/,'');}else if(oa.isUrlSimple(yb))ec.object_url=oa.normalize(yb);fb={entityID:ec.object_id,entityURL:ec.object_url,searchableEntry:ac};if(jb()===sa.APP_ENGAGEMENT)ec.use_app_links=true;if(q.shouldFilterTooSmallImages()){var fc=h.getImageSpecsForAdType(y.getPrimaryCreativeConfig(kb()).id);if(fc.length>0){ec.scraped_image_min_width=fc[0].minWarningWidth;ec.scraped_image_min_height=fc[0].minWarningHeight;}}var gc=fb;cc.fetch.adsDestinationInfo.promiseOne(ec).then(function(hc){if(!hc||!hc.length||!hc[0].id){nb(0,{error:{code:u.errorCodeMap.EMPTY_BODY}},{object_id:p.ErrorEntityID},gc);return;}var ic=hc[0],jc=t.convertAPIDataToFields(ic);if(!wb.hasPendingEntity())return;var kc;if(fb.entityID)kc=!(fb.entityID===jc.destinationId||fb.entityID===jc.storyId);var lc=fb.entityURL&&fb.entityURL!==jc.originalObjectUrl;if(kc||lc)return;var mc=pb(ic.id,cc),nc=babelHelpers._extends({},mc,{destinationDetails:jc});return na(nc);},function(hc){nb(hc.result,hc.rawData,hc.actualParameters,gc);}).done(function(hc){if(!hc)return;var ic=hc.destinationDetails;ic=qb(ic,hc);var jc=ic.destinationType,kc=ic.destinationId;delete ic.destinationType;aa.handleUpdateFromViewAction({destinationType:jc,destinationID:kc,destinationDetails:ic,destSource:cb?ra.SINGLE_OBJECT_PREFILL:ra.USER_SELECTED,type:n.DESTINATION_CHANGE});});}function pb(xb,yb){var zb=jb(),ac={location:undefined,canEditPage:undefined,extra:undefined};if(zb===ba.KPIObjectives.LOCAL_AWARENESS){ac.location=t.promisePageLocation(xb);ac.canEditPage=t.promisePageEditRights(yb,xb);ac.extra=yb.fetch.objectByFBID.promiseOne({fbid:xb,fields:['phone','hours']});}return ac;}function qb(xb,yb){xb.canEdit=yb.canEditPage;xb.phone=yb.extra&&yb.extra.phone;xb.hours=yb.extra&&yb.extra.hours;if(yb.location)xb=t.mergeLocationIntoDetails(xb,yb.location);return xb;}function rb(){var xb=m.getAccountID(),yb=x.getInstanceForAccount(xb);yb.fetch.connectionObjectsForAccount.one(function(zb){var ac=jb(),bc=zb.data.filter(function(ec){var fc=ta[ec.type];return (fc&&la(fc,ac));}),cc=bc[0];if(bc.length===1){var dc=new ha({uniqueID:cc.id,title:cc.name,photo:cc.picture,subtitle:cc.category});dc.id=cc.id;aa.handleUpdateFromServerResponse({destinationEntry:dc,source:ua,type:n.KPI_DESTINATION_SELECT});}});}function sb(xb){var yb=xb.destinationID!==ya||xb.destinationType!==za;if(xb.destinationID){ya=xb.destinationID;fb={};}if(xb.destinationType)za=xb.destinationType;if(xb.destinationDetails)Object.assign(wa,xb.destinationDetails);ab=!jb();yb&&mb();}function tb(xb){if(!xb)return;if(xb.urlSearch&&xb.urlSearch[0]){return xb.urlSearch[0];}else if(xb.objectSearch&&xb.objectSearch[0]){xb.objectSearch[0].canEdit=xb.canEdit;return xb.objectSearch[0];}return xb;}function ub(xb){var yb=tb(xb);if(!yb)return {};var zb=t.convertAPIDataToFields(yb);if(xb.location!=undefined)zb=t.mergeLocationIntoDetails(zb,xb.location);return {details:zb,info:yb};}pa=babelHelpers.inherits(vb,l);qa=pa&&pa.prototype;vb.prototype.getStoreName=function(){return 'AdsCFDestinationStore';};vb.prototype.hasLoadedInitialDestinationDetails=function(){return gb;};vb.prototype.getCachedPostLinkData=function(xb){return xb?va[xb]:null;};vb.prototype.getDestinationDetails=function(){return wa;};vb.prototype.getDestinationDomain=function(){return new ia(wa.destinationUrl).getDomain();};vb.prototype.getDestinationID=function(){return ya;};vb.prototype.getDestinationType=function(){var xb=jb();if((xb===ba.KPIObjectives.WEBSITE_CLICKS||xb===ba.KPIObjectives.WEBSITE_CONVERSIONS)&&(wa.originalObjectUrl||wa.destinationUrl))return z.EXTERNAL_WEBPAGE;return za;};vb.prototype.getDestinationTypeIgnoringKPI=function(){return za;};vb.prototype.getHasDesktopCanvas=function(){var xb=this.getDestinationDetails().appPlatforms;return k.supportsDesktop(xb);};vb.prototype.getHasLoadCompleted=function(){return db;};vb.prototype.getHasNativeMobileApp=function(){var xb=this.getDestinationDetails().appPlatforms;return k.supportsNativeMobile(xb);};vb.prototype.getInvalidEntity=function(){return bb;};vb.prototype.getPagePostDetails=function(xb){var yb;for(var zb=0;zb<eb.length;++zb){yb=eb[zb];if(yb.id===xb)return yb;}return {};};vb.prototype.getPagePosts=function(){return eb;};vb.prototype.getPagePostsForKPI=function(){if(!ka('spherical_video_post_promotable'))eb=eb.filter(function(xb){return !xb.is_spherical;});if(jb()===ba.KPIObjectives.OFFER_CLAIMS)return eb.filter(function(xb){return xb.type===fa.OFFER;});if(jb()===ba.KPIObjectives.VIDEO_VIEWS)return eb.filter(function(xb){return xb.type===fa.VIDEO;});if(jb()===ba.KPIObjectives.WEBSITE_CLICKS||jb()===ba.KPIObjectives.WEBSITE_CONVERSIONS)return eb.filter(function(xb){return (ca.isVisibleForObjective(jb(),xb));});return eb;};vb.prototype.getPendingEntity=function(){return fb;};vb.prototype.getDestinationForTypeahead=function(){if(!this.hasPendingEntity()&&this.hasPromotableDestinationEntity()&&!this.hasDestination())return null;var xb=fb&&fb.searchableEntry,yb=bb&&bb.searchableEntry;if(xb||yb)return xb||yb;var zb=jb();return t.convertToSearchableEntry(ya,wa,zb);};vb.prototype.getDefaultStoryIDForCreative=function(){var xb,yb=this.getPagePostsForKPI();if(yb.length)xb=wa.storyId||yb[0].id;return xb;};vb.prototype.hasDestination=function(){return (!!ya&&(!ka('ads_cf_destination_loader')||m.isInitDone()));};vb.prototype.hasDestinationWithoutKPIObjective=function(){return ab;};vb.prototype.hasPromotableDestinationEntity=function(){return !bb;};vb.prototype.hasPendingEntity=function(){return Object.keys(fb).length>0;};vb.prototype.getDestinationError=function(){return xa;};vb.prototype.isInvalidDestinationInput=function(){return (!!bb&&bb.entityID===p.ErrorEntityID);};vb.prototype.isInputPersonalEvent=function(){return wa.isAdmin&&!wa.canCreateAd&&wa.eventCreatorId;};vb.prototype.hasPageAnalystRole=function(){return wa.isAdmin&&!wa.canCreateAd&&(za===z.PAGE||za===z.PLACE);};vb.prototype.isSingleObjectPrefill=function(){return cb;};vb.prototype.isMobilePlatformOnlyApp=function(){if(za!==z.APP)return false;return (this.getHasNativeMobileApp()&&!this.getHasDesktopCanvas());};vb.prototype.isMultiPlatformApp=function(){if(za!==z.APP)return false;return (this.getHasNativeMobileApp()&&this.getHasDesktopCanvas());};vb.prototype.loadDefaultDestination=function(){var xb=ja.getDefaultDestinationID(),yb=ja.getDefaultDestinationURL(),zb=w.getPendingObjectID(),ac=m.getAccountID(),bc,cc;if(o.isEditMode()){var dc=o.getURI().getQueryData();bc=dc.adgroup_id;cc=dc.ad_set_id;}else{bc=ja.getDefaultAdgroupID();cc=ja.getDefaultCampaignID();}if(xb){s.loadDestinationInfoByID(ac,xb,p.DestinationSelectionSource.PREFILLED_FROM_URL);}else if(yb){s.loadDestinationInfoByURL(yb,p.DestinationSelectionSource.PREFILLED_FROM_URL);}else if(zb||bc||cc)s.loadDefaultDestination(ac,bc,cc,zb,p.DestinationSelectionSource.AUTO_FILL_OTHER);};vb.prototype.onDispatchToken=function(xb){var yb=xb.action;switch(yb.actionType){case n.INIT_STARTED:if(ka('ads_cf_destination_loader'))wb.loadDefaultDestination();break;case n.CAMPAIGN_SELECT:var zb=c('AdsCFCampaignStore'),ac=m.getAccountID(),bc=x.getInstanceForAccount(ac);aa.waitFor([zb.dispatchToken]);var cc=zb.getState(yb.campaignID);if(!cc)break;var dc,ec=cc.promotedObject,fc=ec.applicationId,gc=ec.objectStoreUrl,hc=ec.pageId,ic={};if(fc){dc={account_id:ac,handleError:nb,object_id:fc};}else if(gc){dc={account_id:ac,handleError:nb,object_url:gc};}else if(hc){dc={account_id:ac,handleError:nb,object_id:hc};ic=pb(hc,bc);}else break;na(babelHelpers._extends({},ic,{destinationDetails:bc.fetch.adsDestinationInfo.promiseOne(dc).then(null,nb)})).done(function(vc){var wc=vc.destinationDetails;if(!wc)return;var xc=t.convertAPIDataToFields(wc[0]);xc=qb(xc,vc);if(xc.destinationId===ya)return;aa.handleUpdateFromServerResponse({destSource:ra.PREFILLED_FROM_PROMOTED_OBJECT,destinationDetails:xc,destinationID:xc.destinationId,destinationType:xc.destinationType,type:n.DESTINATION_CHANGE});});break;case n.ACCOUNT_INIT:aa.waitFor([m.dispatchToken]);r.setActiveState(true);break;case n.DESTINATION_FETCH_ERROR:if(yb.data.entityID===fb.entityID||yb.data.entityURL===fb.entityURL){bb=yb.data.pendingEntity||fb;fb={};xa=yb.data.error;wb.inform('change');}break;case n.DESTINATION_SELECT:case n.KPI_DESTINATION_SELECT:var jc,kc;if(yb.actionType===n.KPI_DESTINATION_SELECT){jc=yb.destinationEntry.id;kc=yb.destinationEntry.getTitle();cb=yb.source===ua;}else{jc=yb.entityID;kc=yb.typeaheadInput;}ob(jc,kc,yb.queryParams,yb.destinationEntry);wb.inform('change');break;case n.DESTINATION_CHANGE:gb=true;sb(yb);wb.inform('change');break;case n.DESTINATION_LOADED:gb=true;var lc=ub(yb.data.destination),mc=lc.details,nc=lc.info,oc={destinationType:nc.type,destinationID:nc.id,destinationDetails:mc};sb(oc);wb.inform('change');break;case n.NEW_PAGE_DESTINATION_SELECT:ob(yb.pageInfo.id,null,null,null);break;case n.CAMPAIGN_GROUP_SELECT:var pc=c('AdsCFCampaignGroupStore');aa.waitFor([pc.dispatchToken]);var qc=pc.getSelectedState().objective;if(qc===j.NONE)break;wb.inform('change');break;case n.KPI_OBJECTIVE_CHANGE:if((yb.source===p.ObjectiveChangeSource.OBJECTIVE_SELECTOR||yb.source===p.ObjectiveChangeSource.AUTO_DEFAULT_SELECTION)&&!ab){hb();rb();wb.inform('change');}break;case n.OBJECTIVE_CHANGE:if(xb.payloadsource!==da.SERVER_RESPONSE)break;aa.waitFor([lb()]);if(wb.hasDestination())ab=!jb();break;case n.CHANGE_ACTORS:var rc=c('AdsCFCreativeStore');aa.waitFor([rc.dispatchToken]);var sc=rc.getCreativeData(),tc=sc.actor.id;if(tc){db=false;eb=[];v.fetchPagePosts(tc);}wb.inform('change');break;case n.PAGE_SELECTED:db=false;eb=[];v.fetchPagePosts(yb.pageId);wb.inform('change');break;case n.PAGE_POSTS_PUBLISHED:m.getDao().fetch.pagePromotablePostsForConnectionObject.clearCache();db=false;eb=[];wa.storyId='';if(ya)v.fetchPagePosts(ya,eb,0,true);wb.inform('change');break;case n.PAGE_POSTS_LOADED:if(!ib(yb))return;eb.push.apply(eb,yb.apiData);eb=y.filterPagePosts(eb);wb.inform('change');break;case n.POST_LINK_DATA_LOADED:var uc=yb.data;if(!uc)break;va[yb.storyId]={id:uc.id,type:uc.type,objective:uc.default_objective,url:uc.original_object_url};wb.inform('change');break;case n.PAGE_POSTS_LOAD_COMPLETE:if(!ib(yb))return;db=true;wb.inform('change');break;case i.PAGE_TRANSITION:gb=false;r.setActiveState(false);hb();break;case n.RESET_DESTINATION:hb();ea.resetDefaultPixelState();wb.inform('change');break;}};function vb(){pa.apply(this,arguments);}var wb=new vb();b.debug_AdsCFDestinationStore=wb;f.exports=wb;},null);
__d('AdsCFObjectiveConfirmationStore',['AdsActionTypes','AdsAPIObjectives','AdsBaseStore','AdsCFAccountStore','AdsCFActionTypes','AdsCFCampaignGroupStore','AdsCFCreativeStore','AdsCFDestinationStore','AdsCFObjectiveStore','AdsCFObjectiveSuggestionsStore','AdsCoreObjectiveDelegate','AdsDispatcher','arrayContains','isNavigationWizardEnabled','ads-objectives'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){if(c.__markCompiled)c.__markCompiled();var v,w;'use strict';var x=c('ads-objectives').KPIObjectives,y=[x.EVENT_RESPONSES,x.LOCAL_AWARENESS,x.PAGE_LIKES,x.VIDEO_VIEWS],z=false,aa=false,ba=false;function ca(){z=false;aa=false;ba=false;}v=babelHelpers.inherits(da,j);w=v&&v.prototype;da.prototype.getStoreName=function(){return 'AdsCFObjectiveConfirmationStore';};da.prototype.getIsKPIObjectiveConfirmed=function(){return ba;};da.prototype.didAutoContinue=function(){return aa;};da.prototype.isConfirmAnimationComplete=function(){return (z||u());};da.prototype.onDispatchToken=function(fa){var ga=fa.action,ha;switch(ga.actionType){case l.DESTINATION_CHANGE:case l.DESTINATION_LOADED:s.waitFor([o.dispatchToken,p.dispatchToken,q.dispatchToken]);if(o.isSingleObjectPrefill())return;ha=p.getKPIObjective();var ia=q.getCompatibilityStatus(),ja=n.getState();if(ha===x.WEBSITE_CLICKS&&!k.shouldShowPixelSelector())y.push(x.WEBSITE_CLICKS);var ka=t(y,ha);if(ka)ka=r.get(p.getAPIObjective()).canContinue(o.hasDestination(),ia.isValid,o.getDestinationDetails(),{destinationType:o.getDestinationType(),pagePosts:o.getPagePosts(),storyID:ja.storyId});if(ia.suggestedKPIObjectives.length===0&&ka){if(!ba)aa=true;ba=true;ea.inform('change');}break;case l.KPI_OBJECTIVE_CONFIRM:ba=ga.confirmed;aa=false;ea.inform('change');break;case l.CAMPAIGN_GROUP_SELECT:s.waitFor([m.dispatchToken]);var la=m.getSelectedState().objective;if(la===i.NONE)break;ba=true;ea.inform('change');break;case l.KPI_OBJECTIVE_CHANGE:case l.OBJECTIVE_CHANGE:if(ga.autoConfirm){ba=true;ea.inform('change');}else if(u()){ba=false;ea.inform('change');}break;case h.PAGE_TRANSITION:ca();break;case l.RESET_DESTINATION:aa=false;ea.inform('change');break;case l.OBJECTIVE_CONFIRM_ANIMATION_CHANGE:z=ga.confirmAnimationComplete;ea.inform('change');break;}};function da(){v.apply(this,arguments);}var ea=new da();b.debug_AdsCFObjectiveConfirmationStore=ea;f.exports=ea;},null);
__d('AdsCFObjectiveDataLoader',['GraphAPI'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();i.prototype.loadDefaultObjective=function(k,l,m,n){var o='default_objective.fields(objective_for_level,'+'default_objective_for_user)';o+=l?'.adgroup_id('+l+')':'';o+=m?'.campaign_id('+m+')':'';o+=n?'.campaign_group_id('+n+')':'';return h('2.3').adaccount(k).get({fields:o}).then(function(p){return p;});};function i(){}var j=new i();f.exports=j;},null);
__d('AdsCFObjectiveDataDispatcher',['AdsCFActionTypes','AdsCFConstants','AdsCFObjectiveDataLoader','AdsDispatcher','ads-objectives'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=l.APItoKPIObjectives;n.prototype.loadDefaultObjective=function(p,q,r,s){j.loadDefaultObjective(p,q,r,s).done(function(t){if(!t||!t.default_objective)return;var u=t.default_objective;if(u.objective_for_level){k.handleUpdateFromServerResponse({autoConfirm:true,objectiveType:u.objective_for_level,type:h.OBJECTIVE_CHANGE});}else if(u.default_objective_for_user)k.handleUpdateFromServerResponse({kpiObjective:m[u.default_objective_for_user],source:i.ObjectiveChangeSource.AUTO_DEFAULT_SELECTION,type:h.KPI_OBJECTIVE_CHANGE});},function(t){return k.handleUpdateFromServerResponse({data:{error:t},type:h.OBJECTIVE_LOAD_ERROR});});};function n(){}var o=new n();f.exports=o;},null);
__d('AdsCFUIObjectives',['adsGKCheck','ads-objectives'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('ads-objectives').KPIObjectives,j=[i.POST_ENGAGEMENT,i.PAGE_LIKES,i.WEBSITE_CLICKS,i.WEBSITE_CONVERSIONS,i.APP_INSTALLS,i.APP_ENGAGEMENT,i.EVENT_RESPONSES,i.OFFER_CLAIMS,i.VIDEO_VIEWS];if(h('ads_cf_instore_localreach')){var k=j.indexOf(i.EVENT_RESPONSES);j.splice(k,0,i.LOCAL_AWARENESS);}f.exports=j;},null);
__d('AdsCreationUIStore',['AdsBaseStore','AdsFluxStoreInspectorHelper','abstractMethod','setImmediate'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l,m;'use strict';l=babelHelpers.inherits(n,h);m=l&&l.prototype;function n(){m.constructor.call(this);this.$AdsCreationUIStore1=new (this.__getStateClass())();}n.prototype.__getStateClass=function(){j('AdsCreationUIStore','__getStateClass');};n.prototype.__handleAction=function(o,p){j('AdsCreationUIStore','__handleAction');};n.prototype.__resetState=function(o){o.mergeDeep(new (this.__getStateClass())());};n.prototype.getState=function(){return this.$AdsCreationUIStore1;};n.prototype.onDispatchToken=function(o){var p=this.$AdsCreationUIStore1;this.$AdsCreationUIStore1=this.$AdsCreationUIStore1.withMutations((function(q){this.__handleAction(o,q);}).bind(this));if(this.$AdsCreationUIStore1!==p)this.inform('change');};f.exports=n;},null);
__d('AdsCFObjectiveStore',['AdsActionTypes','AdsAPIObjectives','AdsCFAccountStore','AdsCFActionTypes','AdsCFApplicationStore','AdsCFDestinationStore','AdsCFObjectiveDataDispatcher','AdsCFObjectiveUtils','AdsCFUIObjectives','AdsCreationUIStore','AdsDispatcher','ads-objectives','AdsPayloadSource','immutable','URIInitDataUtil','adsGKCheck','arrayContains','ads-app-platforms','AdsCFCampaignGroupStore'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x){if(c.__markCompiled)c.__markCompiled();var y,z,aa,ba;'use strict';var ca=c('ads-objectives').KPIObjectives,da=s.APItoKPIObjectives,ea=s.KPItoAPIObjectives,fa=c('ads-app-platforms').APP_PLATFORM;y=babelHelpers.inherits(ga,u.Record({apiObjective:i.NONE,isKPIObjectiveManuallySet:false,isObjectiveManuallySet:false,kpiObjective:null}));z=y&&y.prototype;ga.fromJS=function(ja){return new ga(ja||{});};function ga(){y.apply(this,arguments);}aa=babelHelpers.inherits(ha,q);ba=aa&&aa.prototype;ha.prototype.__getStateClass=function(){'use strict';return ga;};ha.prototype.__handleAction=function(ja,ka){'use strict';var la=ja.action;switch(la.actionType){case k.INIT_STARTED:if(w('ads_cf_destination_loader'))ia.loadDefaultObjective();break;case k.DESTINATION_LOADED:r.waitFor([m.dispatchToken]);var ma=o.getDefaultAPIObjective();if(ma&&ka.apiObjective===i.NONE){ka.apiObjective=ma;ka.kpiObjective=da[ma];}this.$AdsCFObjectiveStoreClass1(ka);break;case k.RESET_DESTINATION:case k.DESTINATION_CHANGE:r.waitFor([m.dispatchToken]);this.$AdsCFObjectiveStoreClass1(ka);break;case k.OBJECTIVE_CHANGE:if(ja.payloadsource===t.VIEW_ACTION)ka.isObjectiveManuallySet=true;ka.apiObjective=la.objectiveType;ka.kpiObjective=da[la.objectiveType];break;case k.CAMPAIGN_GROUP_SELECT:case k.CAMPAIGN_SELECT:var na=c('AdsCFCampaignGroupStore');r.waitFor([na.dispatchToken]);var oa=na.getSelectedState().objective;if(!(oa in i))oa=i.NONE;ka.apiObjective=oa;ka.kpiObjective=da[oa];break;case k.KPI_OBJECTIVE_CHANGE:if(ja.payloadsource===t.VIEW_ACTION)ka.isKPIObjectiveManuallySet=true;r.waitFor([m.dispatchToken]);var pa=la.kpiObjective;if(pa===ca.APP_INSTALLS&&m.hasDestination()){oa=o.getDefaultAPIObjective();}else if(pa===ca.APP_ENGAGEMENT&&m.isMobilePlatformOnlyApp()){oa=i.MOBILE_APP_ENGAGEMENT;}else oa=ea[pa];ka.kpiObjective=pa;ka.apiObjective=oa;break;case h.PAGE_TRANSITION:this.__resetState(ka);break;}};ha.prototype.$AdsCFObjectiveStoreClass1=function(ja){'use strict';var ka=ja.isKPIObjectiveManuallySet||ja.isObjectiveManuallySet,la=ja.kpiObjective===ca.APP_INSTALLS||ja.kpiObjective===ca.APP_ENGAGEMENT;if(ka&&la){var ma=m.getDestinationDetails().appPlatforms,na=ma!==undefined&&ma[0]===fa.DESKTOP_CANVAS;if(ja.kpiObjective===ca.APP_INSTALLS){ja.apiObjective=na?i.CANVAS_APP_INSTALLS:i.MOBILE_APP_INSTALLS;}else if(ja.kpiObjective===ca.APP_ENGAGEMENT)ja.apiObjective=na?i.CANVAS_APP_ENGAGEMENT:i.MOBILE_APP_ENGAGEMENT;}};ha.prototype.loadDefaultObjective=function(){'use strict';var ja,ka,la,ma=v.getDefaultObjective();if(l.isEditMode()){var na=l.getURI().getQueryData();ja=na.adgroup_id;ka=na.ad_set_id;la=na.campaign_id;}else{ja=v.getDefaultAdgroupID();ka=v.getDefaultCampaignID();la=v.getDefaultCampaignGroupID();}if(ma&&x(p,ma)){var oa=da[ma]!==ca.APP_INSTALLS;r.addPostDispatchCallback(function(){r.handleUpdateFromURLParams({autoConfirm:oa,objectiveType:ma,type:k.OBJECTIVE_CHANGE});});}else n.loadDefaultObjective(j.getAccountID(),v.getDefaultAdgroupID(),v.getDefaultCampaignID(),v.getDefaultCampaignGroupID());};ha.prototype.getStoreName=function(){'use strict';return 'AdsCFObjectiveStore';};ha.prototype.getIsKPIObjectiveManuallySet=function(){'use strict';return this.getState().isKPIObjectiveManuallySet;};ha.prototype.getIsObjectiveManuallySet=function(){'use strict';return this.getState().isObjectiveManuallySet;};ha.prototype.getKPIObjective=function(){'use strict';return this.getState().kpiObjective;};ha.prototype.getAPIObjective=function(){'use strict';return this.getState().apiObjective;};function ha(){'use strict';aa.apply(this,arguments);}var ia=new ha();b.debug_AdsCFObjectiveStore=ia;f.exports=ia;},null);
__d('AdsCFObjectiveSuggestionsStore',['AdsActionTypes','AdsBaseStore','AdsCFAccountStore','AdsCFActionTypes','AdsCFCreativeStore','AdsCFDestinationStore','AdsCFObjectiveStore','AdsCreationExperimentStore','AdsDestinationTypes','AdsDispatcher','AdsPagePostUtils','PagePostTypes','invariant','ads-objectives'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){if(c.__markCompiled)c.__markCompiled();var u,v;'use strict';var w=c('ads-objectives').KPIObjectives,x=o.getExperiment('ads_cf_video_nonnative_suggest'),y;function z(){y={isValid:true,suggestedKPIObjectives:[]};}z();function aa(){var va=n.getKPIObjective(),wa=m.getDestinationTypeIgnoringKPI();if(!(va&&wa)){z();return y;}switch(va){case w.APP_ENGAGEMENT:return ba(wa);case w.APP_INSTALLS:return ca(wa);case w.EVENT_RESPONSES:return da(wa);case w.LOCAL_AWARENESS:return ea(wa);case w.OFFER_CLAIMS:return fa(wa);case w.PAGE_LIKES:return ja(wa);case w.POST_ENGAGEMENT:return ka(wa);case w.VIDEO_VIEWS:return la(wa);case w.WEBSITE_CLICKS:return ma(wa);case w.WEBSITE_CONVERSIONS:return na(wa);default:undefined;break;}}function ba(va){if(va===p.APP)return {isValid:true,suggestedKPIObjectives:[]};return oa(va);}function ca(va){if(va===p.APP)return {isValid:true,suggestedKPIObjectives:[]};return oa(va);}function da(va){var wa=[],xa=true;switch(va){case p.EVENT:if(m.isInputPersonalEvent())xa=false;break;default:return oa(va);}return {isValid:xa,suggestedKPIObjectives:wa};}function ea(va){var wa=[],xa=true;switch(va){case p.PAGE:case p.PLACE:if(m.hasPageAnalystRole())xa=false;break;default:return oa(va);}return {isValid:xa,suggestedKPIObjectives:wa};}function fa(va){var wa=[],xa=true;switch(va){case p.PAGE:case p.PLACE:var ya=m.getDestinationDetails(),za=qa();if(!ya.offerEligible)xa=false;if(!ya.hasEnoughFansForOffers){wa.push(w.PAGE_LIKES);}else if(za&&!ia())wa.push(w.POST_ENGAGEMENT);break;default:return oa(va);}return {isValid:xa,suggestedKPIObjectives:wa};}function ga(){var va=m.getDestinationDetails().storyId,wa=m.getPagePostDetails(va);return wa.type===s.VIDEO;}function ha(){var va=m.getDestinationDetails().storyId,wa=m.getPagePostDetails(va);return r.isNativeVideoPost(wa);}function ia(){var va=m.getDestinationDetails().storyId,wa=m.getPagePostDetails(va);return wa.type===s.OFFER;}function ja(va){var wa=[],xa=true;switch(va){case p.PAGE:case p.PLACE:if(m.hasPageAnalystRole()){xa=false;}else if(qa())if(ga()&&(ha()||x.getParamBool('suggest'))){wa.push(w.VIDEO_VIEWS);}else if(ia()){wa.push(w.OFFER_CLAIMS);}else wa.push(w.POST_ENGAGEMENT);break;default:return oa(va);}return {isValid:xa,suggestedKPIObjectives:wa};}function ka(va){var wa=[],xa=true;switch(va){case p.PAGE:case p.PLACE:var ya=l.getState().storyId,za=m.getPagePostDetails(ya);switch(za.type){case s.VIDEO:if(r.isNativeVideoPost(za)||x.getParamBool('suggest'))wa.push(w.VIDEO_VIEWS);break;case s.OFFER:wa.push(w.OFFER_CLAIMS);break;}break;default:return oa(va);}return {isValid:xa,suggestedKPIObjectives:wa};}function la(va){var wa=[],xa=true;switch(va){case p.PAGE:case p.PLACE:if(m.hasPageAnalystRole())xa=false;break;default:return oa(va);}return {isValid:xa,suggestedKPIObjectives:wa};}function ma(va){var wa=[],xa=true;switch(va){case p.PAGE:case p.PLACE:wa=sa();break;case p.APP:wa.push(w.APP_INSTALLS,w.APP_ENGAGEMENT);break;case p.EVENT:wa.push(w.EVENT_RESPONSES);break;case p.EXTERNAL_WEBPAGE:break;default:ra(va);break;}return {isValid:xa,suggestedKPIObjectives:wa};}function na(va){var wa=[],xa=true;switch(va){case p.EXTERNAL_WEBPAGE:break;default:return oa(va);}return {isValid:xa,suggestedKPIObjectives:wa};}function oa(va){var wa=[];switch(va){case p.APP:wa.push(w.APP_INSTALLS,w.APP_ENGAGEMENT);break;case p.EVENT:wa.push(w.EVENT_RESPONSES);break;case p.EXTERNAL_WEBPAGE:wa.push(w.WEBSITE_CLICKS);if(pa())wa.push(w.WEBSITE_CONVERSIONS);break;case p.PAGE:case p.PLACE:wa=sa();break;default:ra(va);break;}return {isValid:false,suggestedKPIObjectives:wa};}function pa(){return !!j.getState().pixels.length;}function qa(){return !!m.getDestinationDetails().storyId;}function ra(va){undefined;}function sa(){var va=[],wa=m.getDestinationDetails().isAdmin;if(!qa()&&wa){va.push(w.PAGE_LIKES,w.POST_ENGAGEMENT);}else if(!qa()&&!wa){va.push(w.POST_ENGAGEMENT,w.PAGE_LIKES);}else if(qa()&&ia()){va.push(w.OFFER_CLAIMS);}else va.push(w.POST_ENGAGEMENT);return va;}u=babelHelpers.inherits(ta,i);v=u&&u.prototype;ta.prototype.getStoreName=function(){return 'AdsCFObjectiveSuggestionsStore';};ta.prototype.getCompatibilityStatus=function(){return y;};ta.prototype.onDispatchToken=function(va){var wa=va.action;switch(wa.actionType){case k.CREATIVE_CHANGE:case k.DESTINATION_CHANGE:case k.KPI_OBJECTIVE_CHANGE:case k.OBJECTIVE_CHANGE:case k.PAGE_POSTS_LOADED:q.waitFor([j.dispatchToken,l.dispatchToken,m.dispatchToken,n.dispatchToken]);y=aa();ua.inform('change');break;case k.RESET_DESTINATION:z();ua.inform('change');break;case h.PAGE_TRANSITION:z();break;}};function ta(){u.apply(this,arguments);}var ua=new ta();b.debug_AdsCFObjectiveSuggestionsStore=ua;f.exports=ua;},null);
__d('AdsCreativePlacementUtils',['AdsAccountCapabilities','AdsAPIObjectives','AdsPageTypes','AdsPlacementDelegate','AdsPlacementID','AdsPlacementStates','adsGKCheck','arrayContains','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();function q(z){switch(z){case j.DESKTOP_FEED:return l.DESKTOP_NEWS_FEED;case j.MOBILE_FEED:return l.MOBILE_NEWS_FEED;case j.RIGHT_COLUMN:return l.RHC;case j.MOBILE_EXTERNAL:return l.FAN;case j.INSTAGRAM_STREAM:return l.IG_FEED;default:undefined;return '';}}function r(z){switch(z){case l.DESKTOP_NEWS_FEED:return j.DESKTOP_FEED;case l.MOBILE_NEWS_FEED:return j.MOBILE_FEED;case l.RHC:return j.RIGHT_COLUMN;case l.FAN:return j.MOBILE_EXTERNAL;case l.IG_FEED:return j.INSTAGRAM_STREAM;default:undefined;return '';}}function s(z){return z.map(function(aa){return r(aa);});}function t(z,aa){var ba=aa.accountCapabilities,ca=aa.buyingType,da=aa.callToActionType,ea=aa.isMPA,fa=aa.isUsingExistingPost,ga=aa.isVideoCreative,ha=aa.objective,ia=aa.pagePostType;if(ha===i.NONE)return false;var ja=k.get(ha).getPageTypesForCreative({callToActionType:da,isMPA:ea,isUsingExistingPost:fa,isVideoCreative:ga,pagePostType:ia},ba,ca);ja=Array.from(ja);return (ja.map(function(ka){return q(ka);}).some(function(ka){return z===ka;}));}function u(z,aa){!(z in l)?p(0):undefined;var ba=aa.accountCapabilities,ca=aa.placementStates||{},da=ca[z],ea=t(z,aa);if(!ea){da=m.NOT_SUPPORTED;}else if(da){return da;}else if(z===l.FAN&&w(ba)){da=m.DISABLED;}else da=m.ENABLED;return da;}function v(z,aa){return o(z,aa);}function w(z){return v(z,h.FAN_PLACEMENT_NON_DEFAULT);}function x(z){var aa={};Object.keys(l).forEach(function(ba){aa[ba]=u(ba,z);});return aa;}var y={getPlacementState:u,getPlacementsState:x,placementIDToPageType:r,placementIDsToPageTypes:s};f.exports=y;},null);
__d('AdsCFPlacementStore',['AdsCFActionTypes','AdsCreativePlacementUtils','AdsDispatcher','AdsPlacementDelegate','FluxReduceStore','immutable','adsCFGetAdgroupSpecs_HACK','adsCFGetObjective_HACK','invariant','isL1RefactorEnabled'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){if(c.__markCompiled)c.__markCompiled();var r,s,t,u;'use strict';r=babelHelpers.inherits(v,m.Record({enabledPageTypes:m.Set(),supportedPageTypes:m.Set()}));s=r&&r.prototype;function v(){r.apply(this,arguments);}t=babelHelpers.inherits(w,l);u=t&&t.prototype;w.prototype.getInitialState=function(){'use strict';return new v();};w.prototype.reduce=function(x,y){'use strict';var z=y.action;if(!q(o()))return x;var aa,ba;switch(z.type){case h.DESTINATION_CHANGE:case h.CREATIVE_LPP_FORMAT_CHANGE:case h.SET_IS_USING_EXISTING_POST:aa=n()[0];!aa?p(0):undefined;ba=m.Set(k.get(o()).getPageTypesForAdgroup(aa,{}));x=x.set('enabledPageTypes',ba);x=x.set('supportedPageTypes',ba);break;case h.CREATIVE_PLACEMENTS_CHANGE:var ca=i.placementIDsToPageTypes(z.placementList),da=z.enabled;ca.forEach(function(ea){var fa=x.enabledPageTypes;if(da&&!fa.has(ea)){fa=fa.add(ea);}else if(!da&&fa.has(ea))fa=fa.remove(ea);x=x.set('enabledPageTypes',fa);});break;case h.IMAGE_MEDIA_TYPE_SELECTED:case h.VIDEO_MEDIA_TYPE_SELECTED:aa=n()[0];!aa?p(0):undefined;ba=m.Set(k.get(o()).getPageTypesForAdgroup(aa,{}));if(ba!==x.supportedPageTypes){x=x.set('enabledPageTypes',ba);x=x.set('supportedPageTypes',ba);}break;}return x;};function w(){'use strict';t.apply(this,arguments);}f.exports=new w(j);},null);
__d("areArraysEqual",[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i,j){if(!i||!j||i.length!==j.length)return false;var k={},l=i.length,m=l;while(l--)k[i[l]]=true;while(m--)if(!k[j[m]])return false;return true;}f.exports=h;},null);
__d('isNonPlatformMobileApp',['AdsAPIObjectives','AdsDestinationTypes','ads-app-platforms'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=c('ads-app-platforms').MOBILE_STORE_DESTINATION_TYPE;function k(l,m){return (l===i.APP&&m.mobileStoreDestinationType===j.FB_MOBILE_STORE_ONLY);}k.withMobileInstallsObjective=function(l,m,n){return (k(l,m)&&n===h.MOBILE_APP_INSTALLS);};f.exports=k;},null);
__d('isUntrackedMobileApp',['AdsAPIObjectives','AdsDestinationTypes'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();function j(k,l){return (k===i.APP&&!l.appInstallsTracked);}j.withMobileInstallsObjective=function(k,l,m){return (j(k,l)&&m===h.MOBILE_APP_INSTALLS);};j.withoutMobileInstallsObjective=function(k,l,m){return (j(k,l)&&m!==h.MOBILE_APP_INSTALLS);};f.exports=j;},null);
__d('AdsCFPricingStore',['AdsActionTypes','AdsAPIObjectives','AdsBaseStore','AdsBiddingDelegate','AdsBidOptions','AdsBidOptionsConfigs','AdsCFAccountStore','AdsCFActionTypes','AdsCFApplicationStore','AdsCFAudienceEstimateStore','AdsCFBidUtils','AdsCFCampaignReadStatusStore','AdsCFConstants','AdsCFConversionPixelStore','AdsCFCreativeStore','AdsCFDestinationStore','AdsCFObjectiveStore','AdsCFTargetingStore','AdsConversionPixelUtils','AdsConversionTrackingUtils','AdsCreationExperimentStore','AdsDispatcher','AdsPayloadSource','AdsPixelConversionStore','AdsPixelViewActionTypes','AsyncRequest','ImmutableObject','OcpmAdConfig','PagePostTypes','URIInitDataUtil','XAdsDefaultConversionPixelController','adsGKCheck','areArraysEqual','arrayContains','isNonPlatformMobileApp','isUntrackedMobileApp','whitelistObjectKeys','ads-objectives'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra){if(c.__markCompiled)c.__markCompiled();var sa,ta;'use strict';var ua=c('ads-objectives').KPIObjectives,va=t.PixelSelectorVersion,wa;function xa(){wa={};wa[t.CanonicalID]={};}xa();function ya(ib,jb){if(!ib.pricingID)throw new Error('Pricing action received with no associated ID.');za(ib.pricingID,ra(ib,jb));}function za(ib,jb){wa[ib]=babelHelpers._extends({},wa[ib],jb);}function ab(){var ib=null;if(ma('ads_cf_conversion_pixel_refactor')){ib=u.getSelectedPixel();}else ib=z.getPixelDetails(wa[t.CanonicalID].conversionPixelID,n.getPixels());return ib;}function bb(){var ib=x.getAPIObjective();if(!ib)return m.AUTO_ACTION_AUTO_CLICK_BID_OPTIONS;var jb=w.getDestinationDetails(),kb=w.getDestinationType();return k.get(ib).getDefaultBidOptionsConfig({isVerifiedConversion:z.isVerifiedConversion(ab(),ea.getConversionChoice()),isUntrackedMobileApp:qa(kb,jb),isNonPlatformMobileApp:pa(kb,jb),pixel:ab()});}function cb(){ca.waitFor([n.dispatchToken,w.dispatchToken,x.dispatchToken,y.dispatchToken,u.dispatchToken,ea.dispatchToken]);var ib=false,jb=false,kb=false,lb=false,mb=w.getDestinationType(),nb=w.getDestinationDetails(),ob=x.getAPIObjective();if(mb&&nb&&ob){kb=qa.withMobileInstallsObjective(mb,nb,ob);jb=!!pa.withMobileInstallsObjective(mb,nb,ob);}if(ob===i.POST_ENGAGEMENT){ca.waitFor([v.dispatchToken]);var pb=v.getState().storyId,qb=w.getPagePostDetails(pb).type;lb=qb===ja.VIDEO;}ib=k.get(ob).isCPAAvailable(y.getState(t.CanonicalID).mobileOperatingSystem,wa[t.CanonicalID].validBidTypes||[],nb.mobileAppCPAAccess);var rb=r.getValidBidOptionsByObjective(ob,kb,jb,ib,z.isVerifiedConversion(ab(),ea.getConversionChoice()),lb),sb=wa[t.CanonicalID].validBidOptions;wa[t.CanonicalID].validBidOptions=rb;return sb&&na(rb,sb);}function db(ib){var jb=n.getAccountID(),kb=la.getURIBuilder().setInt('account_id',jb).setString('domain',ib).getURI();new ga().setURI(kb).setHandler(function(lb){ca.handleUpdateFromServerResponse({type:o.DEFAULT_CONVERSION_PIXEL_LOADED,data:lb.payload});}).send();}function eb(ib,jb){var kb=ka.getDefaultConversionPixel(),lb=z.getPixelDetails(kb,ib),mb=null;if(kb&&lb)mb=kb;var nb=x.getKPIObjective();if(nb===ua.WEBSITE_CONVERSIONS){if(!mb&&ib.length>0)mb=ib[0].id;za(t.CanonicalID,{conversionPixelID:mb});}else if(nb===ua.WEBSITE_CLICKS){za(t.CanonicalID,{conversionPixelID:jb});}else if(aa.isSupportedInObjective(nb)){za(t.CanonicalID,{conversionPixelID:mb});}else za(t.CanonicalID,{conversionPixelID:null});}function fb(ib){if(ma('ads_cf_conversion_pixel_refactor'))return false;if(aa.isSupportedInObjective(ib))return false;za(t.CanonicalID,{conversionPixelID:null});return true;}sa=babelHelpers.inherits(gb,j);ta=sa&&sa.prototype;gb.prototype.getStoreName=function(){return 'AdsCFPricingStore';};gb.prototype.getPricingData=function(){return wa;};gb.prototype.getState=function(ib){var jb=wa[ib]||{};if(ma('ads_cf_conversion_pixel_refactor')){var kb=u.getSelectedPixel();jb=babelHelpers._extends({},jb,{conversionPixelID:kb&&kb.id});}else jb=babelHelpers._extends({},jb);var lb=q.getBidEstimateState(ib),mb=n.getState(),nb=x.getAPIObjective();if(jb.bidOption===l.CLICKS&&!jb.clickAutobidEnabled&&!jb.cpcPrice){jb.cpcPrice=k.get(nb).getDefaultCPCPrice(mb,lb);}else if(jb.bidOption===l.IMPRESSIONS&&!jb.cpmPrice){jb.cpmPrice=k.get(nb).getDefaultOCPMReachPrice(mb,lb);}else if(jb.bidOption===l.OCPM_ACTIONS&&!jb.ocpmActionAutobidEnabled){if(!jb.ocpmActionPrice)jb.ocpmActionPrice=k.get(nb).getDefaultOCPMActionPrice(mb,lb,jb.conversionPixelID);}else if(jb.bidOption===l.ACTIONS&&!jb.cpaPrice){jb.cpaPrice=k.get(nb).getDefaultCPAPrice(mb,lb);}else if(jb.bidOption===l.OCPM_REACH&&!jb.ocpmReachPrice)jb.ocpmReachPrice=k.get(nb).getDefaultOCPMReachPrice(mb,lb);return new ha(jb);};gb.prototype.onDispatchToken=function(ib){ca.waitFor([s.getDispatchToken(),ea.dispatchToken]);var jb=ib.action,kb=ib.payloadsource===da.VIEW_ACTION,lb=false,mb=n.getState().pixels,nb;if(s.isReadOnly())return;switch(jb.actionType){case o.BID_CHANGE:case o.BID_OPTION_CHANGE:case o.BID_PRICE_CHANGE:ya(jb,{clickAutobidEnabled:null,ocpmActionAutobidEnabled:null,ocpmReachAutobidEnabled:null,cpaAutobidEnabled:null,advancedOptions:null,ocpmActionPrice:null,ocpmReachPrice:null,cpaPrice:null,cpcPrice:null,cpmPrice:null,bidInfo:null,bidOption:null});lb=true;break;case o.CONVERSION_PIXEL_CHANGE:ca.waitFor([n.dispatchToken,w.dispatchToken]);if(!ma('ads_cf_conversion_pixel_refactor'))ya(jb,{conversionPixelID:null});lb=true;if(!kb)break;if(x.getKPIObjective()===ua.WEBSITE_CONVERSIONS){za(t.CanonicalID,bb());cb();}break;case fa.UPDATE_CONVERSION_CHOICE:if(x.getKPIObjective()===ua.WEBSITE_CONVERSIONS){if(!ma('ads_cf_conversion_pixel_refactor'))if(jb.data.conversion&&jb.data.conversion.getAuxiliaryData()){za(t.CanonicalID,{conversionPixelID:jb.data.conversion.getAuxiliaryData().pixelID});}else za(t.CanonicalID,{conversionPixelID:null});za(t.CanonicalID,bb());cb();lb=true;}break;case o.OBJECTIVE_CHANGE:nb=x.getAPIObjective();if(w.hasDestination()){wa[t.CanonicalID]=bb();}else xa();cb();lb=true;break;case o.DESTINATION_SELECT:case o.DESTINATION_UPDATE:case o.RESET_DESTINATION:case o.CREATIVE_INIT:case o.CREATIVE_CHANGE:ca.waitFor([v.dispatchToken,w.dispatchToken,x.dispatchToken]);nb=x.getAPIObjective();if(fb(nb))lb=true;if(jb.mobileStore&&kb){var ob=bb();za(t.CanonicalID,ob);}if(cb())lb=true;break;case o.PAGE_POSTS_LOAD_COMPLETE:if(cb())lb=true;break;case o.DEFAULT_CONVERSION_PIXEL_LOADED:if(!ma('ads_cf_conversion_pixel_refactor')){var pb=jb.data.defaultPixelID;if(pb)eb(mb,pb.toString());lb=true;}break;case o.DESTINATION_CHANGE:case o.DESTINATION_LOADED:ca.waitFor([v.dispatchToken,w.dispatchToken,x.dispatchToken]);nb=x.getAPIObjective();if(fb(nb))lb=true;wa[t.CanonicalID]=bb();if(!ma('ads_cf_conversion_pixel_refactor')){if(kb&&mb)eb(mb,null);if(nb===i.WEBSITE_CLICKS){var qb=w.getDestinationDomain();if(qb){var rb=n.getPixelSelector();if(rb===va.CONVERSION_PIXEL_SELECTOR)db(qb);}}}cb();lb=true;break;case o.KPI_OBJECTIVE_CHANGE:ca.waitFor([w.dispatchToken]);if(w.hasDestination()){wa[t.CanonicalID]=bb();cb();}else xa();if(!ma('ads_cf_conversion_pixel_refactor')&&mb)eb(mb,null);lb=true;break;case o.RESTORE_PRICING_DEFAULTS:za(t.CanonicalID,bb());cb();lb=true;break;case h.PAGE_TRANSITION:xa();break;case o.CAMPAIGN_SELECT:case o.CANCEL_EDITED_CAMPAIGN:if(ma('ads_general_2_4_migration'))break;if(jb.campaignID===t.NEW_CAMPAIGN_ID){wa[t.CanonicalID]=bb();cb();}else{za(t.CanonicalID,jb.pricing||{});if(!jb.pricing.validBidOptions)wa[t.CanonicalID].validBidOptions=r.getValidBidOptionsByObjectiveAndValidBidTypes(x.getAPIObjective(),jb.pricing.validBidTypes,z.isVerifiedConversion(ab(),ea.getConversionChoice()),jb.pricing.bidOption);}lb=true;break;}if(lb)hb.inform('change');};function gb(){sa.apply(this,arguments);}var hb=new gb();b.debug_AdsCFPricingStore=hb;f.exports=hb;},null);
__d('AdsReviewAPIErrorType',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={POLICY_VIOLATION:1885178,TEXT_OVERLAY_VIOLATION:1488107};f.exports=h;},null);
__d('AdsImageConstants',['AdsAPIAdgroupPaths','immutable'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=i.Record({CREATED_TIME_ASCENDING:'created_time_ascending',CREATED_TIME_DESCENDING:'created_time_descending',HEIGHT_ASCENDING:'height_ascending',HEIGHT_DESCENDING:'height_descending',IMAGE_HASH_PATHS:[h.CREATIVE.IMAGE_HASH,h.CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.IMAGE_HASH,h.CREATIVE.OBJECT_STORY_SPEC.PHOTO_DATA.IMAGE_HASH,h.CREATIVE.OBJECT_STORY_SPEC.VIDEO_DATA.IMAGE_HASH],IMAGE_URL_PATHS:[h.CREATIVE.IMAGE_URL,h.CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.PICTURE],MAX_THUMBNAIL_DIMENSION:128,UPLOAD_BOX_ASPECT_RATIO:1.5,WIDTH_ASCENDING:'width_ascending',WIDTH_DESCENDING:'width_descending'});f.exports=new j();},null);
__d('AdsImageUtils',['AdsAPIObjectives','AdsImageCollectionViews','AdsImageConstants','AdsImageLegacy','AdsValidationIconType','React','cx','everyObject','getByPath','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=/^(\d+):(.*)$/,s={cropsFitIntoImage:function(t,u,v){if(!u||!v||!t)return true;var w=t,x=u,y=v;return o(w,function(z){return (z&&z.every(function(aa){return ((+aa[0]===0||+aa[0]<=x)&&(+aa[1]===0||+aa[1]<=y));}));});},_getImageValueFromPaths:function(t,u){for(var v=0;v<t.length;v++){var w=p(u,t[v]);if(w)return t[v];}return null;},getImageURLPath:function(t){return s._getImageValueFromPaths(j.IMAGE_URL_PATHS,t);},getImageURL:function(t){var u=s.getImageURLPath(t);return u?p(t,u):null;},getImageHashPath:function(t){return s._getImageValueFromPaths(j.IMAGE_HASH_PATHS,t);},getImageHash:function(t){var u=s.getImageHashPath(t);return u?p(t,u):null;},hasSizeRestrictions:function(t){return t!==h.POST_ENGAGEMENT;},isHashWithAccountID:function(t){return r.test(t);},parseHashWithAccountID:function(t){var u=r.exec(t);if(!u)return null;return {accountID:u[1],hash:u[2]};},calculateCroppedPosition:function(t,u,v,w,x){var y=x[0][0],z=x[0][1],aa='0px',ba='0px',ca=this.calculateCroppedScale(v,w,x);aa=-Math.floor(y*ca)+"px";ba=-Math.floor(z*ca)+"px";return aa+" "+ba;},calculateBackgroundScale:function(t,u,v){var w=v[1][0]-v[0][0],x=v[1][1]-v[0][1],y=u/t,z=x/w;return y>z?Math.min(u/x,t/w):Math.max(u/x,t/w);},calculateCroppedScale:function(t,u,v){var w=v[0][0],x=v[1][0],y=v[0][1],z=v[1][1],aa=x-w,ba=z-y;return Math.min(u/ba,t/aa);},calculateDefaultCoordinates:function(t,u,v){var w,x;if(t/v>u){x=u;w=u*v;}else{w=t;x=t/v;}var y=(t-w)/2,z=(u-x)/2,aa=Math.floor(y)-y,ba=Math.floor(z)-z;return [[y+aa,z+ba],[Math.round(y+w+aa),Math.round(z+x+ba)]];},addToImageCollection:function(t,u,v){var w,x=u.map(function(y){var z=new k(y);if(v&&(v===z.getUrl()||v===z.getAdAccountHash()))w=z;return z;});t.addImagesToFront(x,i.views.LIBRARY);if(w)t.setImageSelected(w,true);return t;},renderScaledCroppedImage:function(t,u,v,w,x,y,z,aa,ba){var ca=1,da='0px 0px',ea='100%';if(!y){var fa=u/v;y=this.calculateDefaultCoordinates(w,x,fa);}da=this.calculateCroppedPosition(w,x,u,v,y);ca=this.calculateBackgroundScale(w,x,y);ea=Math.round(ca*100)+'%';var ga={backgroundImage:'url('+t+')',backgroundSize:ea,backgroundPosition:da,backgroundRepeat:'no-repeat',height:v,position:'relative',width:u},ha=ba===l.ERROR_IMAGE;return (m.createElement('div',{className:ha?"_12fq":'',style:ga,onContextMenu:z},aa));},scaleImageFitIntoBox:function(t,u,v,w){!(t>0&&u>0&&v>0&&w>0)?q(0):undefined;var x=t/u,y=v/w;if(x>=y){return {width:v,height:v/x};}else return {width:w*x,height:w};}};f.exports=s;},null);
__d('IntegrityAPIConversions',['AdContentFeedbackTypes','AdsImageUtils','CROWAdDisapprovalReasons','CROWCompsType','Map'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m={PROACTIVE_AD:'uncategorized',PROACTIVE_AD_ACCOUNT:'account_id',PROACTIVE_AD_BODY_TEXT:'body',PROACTIVE_AD_CAMPAIGN:'campaign_id',PROACTIVE_AD_IMAGE:'image_hash',PROACTIVE_AD_LANDING_PAGE:'link_url',PROACTIVE_AD_TARGET_SPEC:'targeting',PROACTIVE_AD_TITLE_TEXT:'title'},n=(function(){var q={};Object.keys(m).forEach(function(r){q[m[r]]=r;});return q;})(),o=new l(),p={getApprovedFeedback:function(q){return {adHash:q,data:{},feedback:h.APPROVE,imageUniqueIdentifierToBoxes:o};},fromAPIErrorData:function(q,r,s){var t={adHash:r,data:q,feedback:h.REJECT,imageUniqueIdentifierToBoxes:o},u=p._getImageUniqueIdentifier(s);if(!u)return t;return {adHash:r,data:q,feedback:h.REJECT,imageUniqueIdentifierToBoxes:p._getTextOverlayBoxes(u,q)};},filterTextOverlayViolation:function(q){if(q.feedback!==h.REJECT)return q;var r=q.data;if(!r||!r[k.PROACTIVE_AD_IMAGE])return q;var s=r[k.PROACTIVE_AD_IMAGE];if(Object.keys(s).length===0)return q;delete r[k.PROACTIVE_AD_IMAGE];Object.keys(s).forEach(function(t){if(t===j.TEXT_OVERLAY)delete s[t];});if(Object.keys(r).length===0&&Object.keys(s).length===0){return {adHash:q.adHash,data:{},feedback:h.APPROVE,imageUniqueIdentifierToBoxes:q.imageUniqueIdentifierToBoxes};}else{r[k.PROACTIVE_AD_IMAGE]=s;return {adHash:q.adHash,data:r,feedback:h.REJECT,imageUniqueIdentifierToBoxes:q.imageUniqueIdentifierToBoxes};}},_getTextOverlayBoxes:function(q,r){if(!r[k.PROACTIVE_AD_IMAGE])return o;var s=r[k.PROACTIVE_AD_IMAGE],t=null;Object.keys(s).forEach(function(x){if(x===j.TEXT_OVERLAY)t=s[x];});if(!t||!t.metadata||!t.metadata.image_url_to_boxes)return o;var u=t.metadata.image_url_to_boxes;if(Object.keys(u).length!==1)return o;var v=u[Object.keys(u)[0]],w=v.split('').map(function(x){return x==='1';});return new l([[q,w]]);},_getImageUniqueIdentifier:function(q){var r=i.getImageHash(q);if(r)return r;var s=i.getImageURL(q);return s?s:null;}};f.exports={getApprovedFeedback:p.getApprovedFeedback,fromAPIErrorData:p.fromAPIErrorData,compTypeToField:m,fieldToCompType:n,filterTextOverlayViolation:p.filterTextOverlayViolation};},null);
__d('AdsReviewAPIDataLoader',['AdsGraphAPI','AdsReviewAPIErrorType','IntegrityAPIConversions','Set'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l=new k(Object.keys(i).map(function(n){return (i[n]);})),m={validateAd:function(n,o,p){o.execution_options=['validate_only','synchronous_ad_review'];return h.getWithGeneralMigration().adaccount(n).edge('adgroups').batched().post(o).then(function(q){return j.getApprovedFeedback(p);},function(q){if(!l.has(q.error_subcode)){return j.getApprovedFeedback(p);}else return j.fromAPIErrorData(q.error_data,p,o);});}};f.exports=m;},null);
__d("BatchingQueue",["invariant"],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();function i(j,k){"use strict";this.batchHandler=j;this.timeout=k.timeout;this.maxBatchSize=k.maxBatchSize;this.concurrency=k.concurrency;this.useTimeout=!k.dangerouslyCallBatchHandlerSynchronously;!(this.timeout||this.maxBatchSize)?h(0):undefined;this.nextBatch=[];this.queue=[];this.batchHandle=null;this.tasks=0;this.readyBatch=this.$BatchingQueue1.bind(this);this.batchDone=this.$BatchingQueue2.bind(this);}i.prototype.$BatchingQueue2=function(){"use strict";this.tasks--;this.$BatchingQueue3();};i.prototype.$BatchingQueue3=function(){"use strict";if(this.concurrency&&this.concurrency<=this.tasks)return;var j=this.queue.shift();if(j){var k=this.batchHandler.bind(null,j,this.batchDone);this.tasks++;if(this.useTimeout){setTimeout(k,0);}else k();}};i.prototype.$BatchingQueue1=function(){"use strict";this.queue.push(this.nextBatch);this.nextBatch=[];this.$BatchingQueue3();clearTimeout(this.batchHandle);this.batchHandle=null;};i.prototype.add=function(j){"use strict";this.nextBatch.push(j);if(this.maxBatchSize&&this.nextBatch.length>=this.maxBatchSize){this.$BatchingQueue1();return;}if(this.timeout&&!this.batchHandle)this.batchHandle=setTimeout(this.readyBatch,this.timeout);};f.exports=i;},null);
__d('AdsReviewAPIBatchingQueue',['AdsReviewAPIDataLoader','BatchingQueue','Promise'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();function k(l,m,n){this.$AdsReviewAPIBatchingQueue1=new i(this.$AdsReviewAPIBatchingQueue2,{timeout:l,concurrency:m,maxBatchSize:n});}k.prototype.add=function(l,m,n){return new j((function(o,p){return (this.$AdsReviewAPIBatchingQueue1.add({accountID:l,adgroupAPIReviewSpec:m,adHash:n,resolve:o,reject:p}));}).bind(this));};k.prototype.$AdsReviewAPIBatchingQueue2=function(l,m){var n=[];l.forEach(function(o){return (n.push(h.validateAd(o.accountID,o.adgroupAPIReviewSpec,o.adHash).then(function(p){return o.resolve(p);},function(p){return o.reject(p);})));});j.all(n).done(m);};f.exports=new k(500,1,20);},null);
__d('AdsCFReviewAPIDataDispatcher',['AdContentFeedbackTypes','AdsCreativeConverter','AdsReviewAPIBatchingQueue','AdsReviewAPIStoreActions','AdsRunStatus','IntegrityAPIConversions','Promise','mergeDeep'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){'use strict';if(c.__markCompiled)c.__markCompiled();p.prototype.validateAd=function(r,s,t,u){var v=s.secondary_adgroups;v.unshift(s);var w=v.map((function(x){return this.$AdsCFReviewAPIDataDispatcherClass1(x,t);}).bind(this)).map(function(x){return (j.add(r,x,u));});n.all(w).then(function(x){return x.reduce(function(y,z){var aa=y.feedback;if(z.feedback===h.REJECT)aa=h.REJECT;var ba=y.imageUniqueIdentifierToBoxes;z.imageUniqueIdentifierToBoxes.forEach(function(da,ea){return (ba.set(ea,da));});var ca={adHash:u,data:o(y.data,z.data),feedback:aa,imageUniqueIdentifierToBoxes:ba};return m.filterTextOverlayViolation(ca);},m.getApprovedFeedback(u));}).done(function(x){return k.updateValidationResults(x);});};p.prototype.$AdsCFReviewAPIDataDispatcherClass1=function(r,s){return {adgroup_status:l.PAUSED,creative:i.toModernSpec(r.creative),name:r.name,campaign_spec:s};};function p(){}var q=new p();f.exports=q;},null);
__d('AdsReviewAPIFeedbackHelper',['AdContentFeedbackTypes','Map','md5'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();function k(){this.$AdsReviewAPIFeedbackHelper1('');this.$AdsReviewAPIFeedbackHelper2=new i();}k.prototype.getReviewFeedback=function(){return this.$AdsReviewAPIFeedbackHelper3;};k.prototype.getIsAdRejected=function(){var l=this.$AdsReviewAPIFeedbackHelper3;return (!!l&&!!l.feedback&&l.feedback===h.REJECT);};k.prototype.maybeSetFeedback=function(l){if(l.adHash===this.$AdsReviewAPIFeedbackHelper4){this.saveFeedback(l);return true;}return false;};k.prototype.maybeValidateAd=function(l,m,n,o){var p=this.getAdHash(m,n);if(p!==this.$AdsReviewAPIFeedbackHelper4){this.$AdsReviewAPIFeedbackHelper1(p);o(l,m,n,p);return true;}else return false;};k.prototype.getAdHash=function(l,m){return j(JSON.stringify(Object.assign({},l,m)));};k.prototype.$AdsReviewAPIFeedbackHelper1=function(l){this.$AdsReviewAPIFeedbackHelper4=l;this.$AdsReviewAPIFeedbackHelper3=null;this.$AdsReviewAPIFeedbackHelper5=new i();};k.prototype.saveFeedback=function(l){this.$AdsReviewAPIFeedbackHelper3=l;this.$AdsReviewAPIFeedbackHelper2=l.imageUniqueIdentifierToBoxes;if(!this.getIsAdRejected())return;Object.keys(l.data).forEach((function(m){var n=l.data[m],o=[];Object.keys(n).forEach(function(q){var r=n[q];o.push(r.feedback_info.description);});var p=parseInt(m,10);this.$AdsReviewAPIFeedbackHelper5.set(p,o);}).bind(this));};k.prototype.getFeedbackForCROWType=function(l){return this.$AdsReviewAPIFeedbackHelper5.get(l)||[];};k.prototype.getTextOverlayBoxesForIdentifier=function(l){if(!l||!this.$AdsReviewAPIFeedbackHelper2.has(l))return [];return this.$AdsReviewAPIFeedbackHelper2.get(l);};f.exports=k;},null);
__d('AdsCFReviewAPIStore',['AdsBaseStore','AdsCFAccountStore','AdsCFApplicationStore','AdsCFCreativeStore','AdsCFOutputAPIDataProcessor','AdsCFReviewAPIDataDispatcher','AdsCFTargetingStore','AdsDispatcher','AdsReviewAPIActionTypes','AdsReviewAPIFeedbackHelper','debounce'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){if(c.__markCompiled)c.__markCompiled();var s,t;'use strict';s=babelHelpers.inherits(u,h);t=s&&s.prototype;function u(){t.constructor.call(this);this.$AdsCFReviewAPIStoreClass1=new q();this.$AdsCFReviewAPIStoreClass2=r(this.$AdsCFReviewAPIStoreClass3,0,this);}u.prototype.getStoreName=function(){return 'AdsCFReviewAPIStore';};u.prototype.getReviewFeedback=function(){return this.$AdsCFReviewAPIStoreClass1.getReviewFeedback();};u.prototype.getTextOverlayBoxesForIdentifier=function(w){return this.$AdsCFReviewAPIStoreClass1.getTextOverlayBoxesForIdentifier(w);};u.prototype.getIsAdRejected=function(){return this.$AdsCFReviewAPIStoreClass1.getIsAdRejected();};u.prototype.getFeedbackForCROWType=function(w){return this.$AdsCFReviewAPIStoreClass1.getFeedbackForCROWType(w);};u.prototype.onDispatchToken=function(w){var x=false;o.waitFor([k.dispatchToken,n.dispatchToken]);if(k.hasInformedOnPayload(w,'change')||n.hasInformedOnPayload(w,'change'))if(this.maybeValidateCurrentAd())x=true;var y=w.action;switch(y.actionType){case p.AD_REVIEW_API_REQUEST_COMPLETE:if(this.maybeSetFeedback(y.data.adFeedback))x=true;break;}x&&this.inform('change');};u.prototype.maybeValidateCurrentAd=function(){if(j.isEditingExistingCampaign())return false;var w=i.getAccountID(),x=l.generateAdgroupApiSpec();if(x.creative===null||Object.keys(x.creative).length===0)return false;var y=l.generateCampaignApiSpec();return this.$AdsCFReviewAPIStoreClass1.maybeValidateAd(w,x,y,this.$AdsCFReviewAPIStoreClass2);};u.prototype.maybeSetFeedback=function(w){return this.$AdsCFReviewAPIStoreClass1.maybeSetFeedback(w);};u.prototype.$AdsCFReviewAPIStoreClass3=function(w,x,y,z){m.validateAd(w,x,y,z);};var v=new u();f.exports=v;},null);
__d('AdsCFSelectedImagesStore',['AdImageSpecsUtils','AdsCFActionTypes','AdsCFApplicationStore','AdsCFConstants','AdsCFCreativeViewActions','AdsCreativeDelegate','AdsDispatcher','AdsImageLegacy','FluxReduceStore','adsCFGetDestination_HACK','adsCFGetPageTypes_HACK','adsCFGetObjective_HACK'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){if(c.__markCompiled)c.__markCompiled();var q,r;'use strict';function s(w,x,y){var z=m.get(x).getDefaultAdCreativeType_DEPRECATED();w.forEach(function(aa){y.forEach(function(ba){var ca=h.getImageSpecForAdType(z,ba);if(ca)aa.validate(ca,function(da,ea,fa){if(ea.placement in da.validationMap)return;l.imageValidated(da,ea.placement,fa);});});});}function t(w,x){var y=x.cropKey,z=x.coordinates,aa=x.image;return w.map(function(ba){if(!ba.equals(aa))return ba;var ca={};ca[y]=z;return ba.clone({crops:ca});});}function u(w,x){var y=x.image,z=x.crops;return (function(){return w.map(function(aa){if(!aa.equals(y))return aa;return aa.clone({crops:z});});})();}q=babelHelpers.inherits(v,p);r=q&&q.prototype;v.prototype.getInitialState=function(){return [];};v.prototype.reduce=function(w,x){var y=x.action;switch(y.type){case i.CREATIVE_INIT:w=y.imageList||[];break;case i.DESTINATION_CHANGE:case i.DESTINATION_LOADED:var z=c('adsCFGetDestination_HACK'),aa=z();if(aa.destinationImages&&!aa.destinationImages.isEmpty()){w=[aa.destinationImages.getImageByIndex(0)];}else w=[];break;case i.SET_IMAGE_LIST:var ba=c('adsCFGetPageTypes_HACK'),ca=c('adsCFGetObjective_HACK');w=y.imageList;s(w,ca(),ba());break;case i.IMAGE_VALIDATED:w.forEach(function(da){if(da.equals(y.image))da.validationMap[y.placement]=y.validation;});break;case i.IMAGE_CROP_CHANGE:w=t(w,y.data);break;case i.IMAGE_CROPS_CHANGE:w=u(w,y.data);break;case i.VIDEO_MEDIA_TYPE_SELECTED:w=[];break;case i.RESET_DESTINATION:n.waitFor([j.getDispatchToken()]);if(!j.isCreatingSimilar())w=[];break;}return w;};function v(){q.apply(this,arguments);}f.exports=new v(n);},null);
__d('AdsCFTargetingDataLoader',['AdsGraphAPI'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();function i(l){if(!l.data||l.data.length!==1)throw new Error('no valid data was returned');var m=l.data[0].country_code;if(!m)throw new Error('no country code was returned');return m;}j.prototype.fetchLocationCountry=function(l,m){var n={latitude:l,longitude:m};return h.getWithGeneralMigration().search('AdLocationCountry').get(n).then(i);};function j(){}var k=new j();f.exports=k;},null);
__d('AdsCFTargetingDataDispatcher',['AdsCFActionTypes','AdsCFTargetingDataLoader','AdsDispatcher'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();function k(o,p){j.handleUpdateFromServerResponse({actionType:h.TARGETING_COUNTRY_FETCH_SUCCESS,coordinates:o,countryCode:p});}function l(o,p){j.handleUpdateFromServerResponse({actionType:h.TARGETING_COUNTRY_FETCH_FAILED,coordinates:o,reason:p});}m.prototype.fetchLocationCountry=function(o,p){var q={latitude:o,longitude:p};i.fetchLocationCountry(o,p).done(function(r){return k(q,r);},function(r){return l(q,r);});};function m(){}var n=new m();f.exports=n;},null);
__d('AdsCFTargetingStore',['AdsActionTypes','AdsAPIObjectives','AdsAPISpec','AdsAPITargetGeoLocationTypes','ads-app-platforms','AdsBaseStore','AdsCFAccountStore','AdsCFActionTypes','AdsCFApplicationStore','AdsCFCampaignReadStatusStore','AdsCFConstants','AdsCFCreativePlacementUtils','AdsCFCreativeStore','AdsCFDestinationStore','AdsCFObjectiveStore','AdsCFPlacementStore','AdsCFTargetingDataDispatcher','AdsCFUserStore','AdsCommonGeocoderStore','AdsCommonTargetingActionTypes','AdsCommonTargetingApiTransformer','AdsCommonTargetingProperties','AdsCountries','AdsCreationConfig','AdsDispatcher','AdsGeoTargetingUtils','AdsGraphAPI','ads-mobile-platforms','AdsPageTypesMigration','AdsPayloadSource','AdsTargetingAdvancedDemoConstants','ImmutableObject','LocationConstants','URIInitDataUtil','adsCFGetObjective_HACK','getByPath','isL1RefactorEnabled','nearlyEqualNumbers','trimObject','whitelistObjectKeys'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ua){if(c.__markCompiled)c.__markCompiled();var va,wa;'use strict';var xa=na.RadiusInfo,ya=l.APP_PLATFORM,za=r.CanonicalID,ab=r.DestinationSelectionSource,bb=l.NATIVE_APP_TO_MOBILE_STORE_MAP,cb='countries',db='cities',eb='regions',fb='zips',gb,hb,ib={};function jb(){return {targetAllGraduationYears:true};}var kb=jb();function lb(nc){kb=babelHelpers._extends({},kb,nc);}function mb(){kb=jb();gb={};gb[za]=Object.assign({},kb);}mb();function nb(nc,oc){gb[nc]=babelHelpers._extends({},gb[nc],oc);}function ob(nc,oc){var pc=ua(gb[nc],oc);gb[nc]=babelHelpers._extends({},kb,pc);}function pb(nc){return gb[za][nc];}function qb(nc){var oc=Math.max(+nc.minAge,ea.minAge);return {ageMinLimit:oc,ageMin:Math.max(oc,ea.minAgeDefault)};}function rb(){var nc=pb(cb);return nc&&nc.length===1&&nc[0];}function sb(nc,oc,pc,qc){var rc=kb.connections||[],sc=kb.excludedConnections||[];if(oc.isAdmin){switch(qc){case i.CANVAS_APP_ENGAGEMENT:rc=[nc];break;}switch(qc){case i.PAGE_LIKES:case i.EVENT_RESPONSES:case i.CANVAS_APP_INSTALLS:sc=[nc];break;}}return {connections:rc,excludedConnections:sc};}function tb(nc,oc){var pc=[],qc,rc;if(oc===i.MOBILE_APP_INSTALLS||oc===i.MOBILE_APP_ENGAGEMENT){var sc=nc.appPlatforms;if(sc&&sc.length){qc=l.getMobileOSForPlatform(sc[0]);pc=ub(nc,sc[0]);rc=bb[sc[0]];}}return {mobileDevices:pc,mobileOperatingSystem:qc,mobileStore:rc};}function ub(nc,oc,pc){var qc=[];if(nc.supportedDevices&&nc.supportedDevices.length>0){qc=nc.supportedDevices;}else if(oc){switch(oc){case ya.IOS:qc=[ia.deviceTypes.IPAD,ia.deviceTypes.IPOD,ia.deviceTypes.IPHONE];break;case ya.IPAD:qc=[ia.deviceTypes.IPAD];break;case ya.ANDROID:qc=[ia.deviceTypes.ANDROID_SMARTPHONE,ia.deviceTypes.ANDROID_TABLET];break;case ya.AMAZON:qc=[ia.deviceTypes.AMAZON];break;}}else if(pc)switch(pc){case ia.operatingSystems.IOS:qc=[ia.deviceTypes.IPAD,ia.deviceTypes.IPOD,ia.deviceTypes.IPHONE];break;case ya.ANDROID:qc=[ia.deviceTypes.ANDROID_SMARTPHONE,ia.deviceTypes.ANDROID_TABLET];break;}return qc;}var vb=ca;function wb(){var nc=v.getAPIObjective(),oc=u.getDestinationDetails(),pc=u.getDestinationID();if(nc===i.LOCAL_AWARENESS){ob(za,['ageMax','ageMin','sex']);if(gb[za].geoLocations&&gb[za].geoLocations.countries)nb(za,{geoLocations:{countries:[],regions:[],cities:[],zips:[]}});xb();return;}var qc={id:pc,name:oc.destinationName},rc=tb(oc,nc),sc=sb(qc,oc,rc.mobileStore,nc),tc=babelHelpers._extends({},sc,rc,{wifiOnly:false});if(oc.interests)if(!pb('interests'))tc.interests=oc.interests;nb(za,tc);xb();}function xb(){if(ra(pa()))return;if(p.isEditingExistingCampaign())return;var nc=s.getPageTypes(t.getCreativeData(),v.getAPIObjective());nb(za,{pageTypes:nc});}function yb(nc,oc){var pc=nc.localGeo;if(!pc){var qc=qa(nc,['geoLocations','custom_locations',0]);if(qc)x.fetchLocationCountry(qc.latitude,qc.longitude);return;}pc=Object.assign({},pc);var rc=gb[oc].geoLocations||{},sc=rc.custom_locations&&rc.custom_locations[0];if(!sc)sc={};var tc=ga.processLocalGeoChange(pc,sc,oc);rc=babelHelpers._extends({},rc,{countries:[],custom_locations:[tc.newCustomLocation],location_types:[k.RECENT,k.HOME]});nb(oc,{geoLocations:rc});if(tc.shouldFetchSuggestedRadius)ga.fetchSuggestedRadius(tc.newCustomLocation).done(function(uc){return (dc(tc.newCustomLocation,oc,uc));});if(tc.newCustomLocation&&(tc.newCustomLocation.latitude||tc.newCustomLocation.longitude))x.fetchLocationCountry(tc.newCustomLocation.latitude,tc.newCustomLocation.longitude);}function zb(nc,oc){setTimeout(function(){fa.handleUpdateFromServerResponse({localGeo:nc,targetingID:oc,type:o.TARGETING_CHANGE});},0);}function ac(nc,oc){var pc=jc(oc);if(!pc||!pc.address_string)return false;var qc=nc.address;if(!nc.isValid){if(nc.address!==pc.address_string)return false;qc=cc(nc.address);if(qc!==nc.address)z.getAddressCoordinates(qc,oc);return false;}qc=cc(pc.address_string);var rc=ga.processGeoCoordinates(nc,pc,qc);if(rc)zb(rc,oc);return !!rc;}function bc(nc){return ga.getDefaultGeoTargetingCountry(nc||u.getDestinationDetails(),n.getState().businessCountryCode,ea.userLocalCountryCode);}function cc(nc){return ga.getFallbackAddressWithCountry(nc,u.getDestinationDetails(),n.getState().businessCountryCode,ea.userLocalCountryCode);}function dc(nc,oc,pc){var qc=gb[oc].geoLocations;if(!qc)return;var rc=qc.custom_locations&&qc.custom_locations[0];if(!rc||rc.latitude!==nc.latitude||rc.longitude!==nc.longitude)return;var sc=ga.roundUpToNearestOption(pc.suggestedRadius,xa.getSupportedRadiiByLocationType(na.LA_RADIUS_TYPE,na.CUSTOM_LOCATIONS,pc.distanceUnit));fa.handleUpdateFromServerResponse({localGeo:{radius:sc,lastSuggestedRadius:sc,distance_unit:pc.distanceUnit},targetingID:oc,type:o.TARGETING_CHANGE});}function ec(nc){var oc=v.getAPIObjective();if(oc!==i.LOCAL_AWARENESS)return false;if(nc.latitude===null||nc.latitude===undefined||nc.longitude===null||nc.longitude===undefined)return false;var pc=jc(za);if(pc&&pc.address_string)return false;var qc={localGeo:{address_string:undefined,latitude:nc.latitude,longitude:nc.longitude}};yb(qc,za);return true;}function fc(){var nc=y.getUserLocation();if(nc)return ec(nc);return false;}function gc(nc){var oc=jc(za);return (!oc||!sa(oc.latitude,nc.latitude)||!sa(oc.longitude,nc.longitude));}function hc(nc,oc){var pc=v.getAPIObjective();if(pc!==i.LOCAL_AWARENESS)return false;if(nc.place){yb({localGeo:{latitude:nc.place.coordinates.latitude,longitude:nc.place.coordinates.longitude,name:nc.place.name}},za);return true;}if(!nc.isPageLocationAddressValid)return fc();var qc={localGeo:{address_string:nc.validAddress,latitude:nc.validLatitude,longitude:nc.validLongitude}};yb(qc,za);return true;}function ic(nc){if(nc.mobileOperatingSystem&&nc.mobileDevices&&nc.mobileDevices.length===0)nc.mobileDevices=ub(u.getDestinationDetails(),null,nc.mobileOperatingSystem);nb(za,ua(nc,vb));if(nc.syndicatedCustomAudiencesLibrary)nc.syndicatedCustomAudiencesLibrary.forEach(function(oc){ib[oc.id]=true;});yb(nc,za);xb();}function jc(nc){var oc=gb[nc];return oc&&oc.geoLocations&&oc.geoLocations.custom_locations?oc.geoLocations.custom_locations[0]:null;}function kc(nc){if(!ra(pa()))return;switch(nc.type){case o.CREATIVE_PLACEMENTS_CHANGE:case o.CREATIVE_PLACEMENTS_RESET:case o.CREATIVE_LPP_FORMAT_CHANGE:case o.IMAGE_MEDIA_TYPE_SELECTED:case o.VIDEO_MEDIA_TYPE_SELECTED:fa.waitFor([w.getDispatchToken()]);nb(za,{pageTypes:Array.from(w.getState().enabledPageTypes)});break;}}va=babelHelpers.inherits(lc,m);wa=va&&va.prototype;lc.prototype.getStoreName=function(){return 'AdsCFTargetingStore';};lc.prototype.getMutableSyndicatedCustomAudiencesMap=function(){return ib;};lc.prototype.getState=function(nc){return new ma(gb[nc]||{});};lc.prototype.getApiSpec=function(nc){var oc=this.getState(nc),pc=ba.targetingSpecToApi(oc);if(pc.custom_audiences)pc.custom_audiences=pc.custom_audiences.map(function(rc){return {id:rc.id,name:rc.name};});if(pc.excluded_custom_audiences)pc.excluded_custom_audiences=pc.excluded_custom_audiences.map(function(rc){return {id:rc.id,name:rc.name};});var qc=pc.page_types;if(ja.isModern(qc)&&!ha.shouldUseGeneralMigration())qc=ja.toLegacy(qc);if(!qc||qc.length===0){delete pc.page_types;}else pc.page_types=qc;return ta(pc);};lc.prototype.getValue=function(nc){return pb(nc);};lc.prototype.getSyndicatedCustomAudiencesMap=function(){return new ma(ib);};lc.prototype.getTargetableAudiences=function(){return hb;};lc.prototype.getTargetingData=function(){return gb;};lc.prototype.onDispatchToken=function(nc){fa.waitFor([q.getDispatchToken()]);var oc=nc.action,pc,qc;if(q.isReadOnly())return;var rc=nc.payloadsource===ka.VIEW_ACTION,sc=nc.payloadsource===ka.URL_PARAM_LOAD||oc.destSource===ab.PREFILLED_FROM_URL,tc=false;switch(oc.actionType){case o.CREATIVE_CHANGE:fa.waitFor([t.dispatchToken]);xb();if(!oc.mobileStore&&!oc.platform)break;var uc=oc.platform,vc=null;if(uc){vc=bb[uc];if(!vc||vc===l.MOBILE_STORE.FB_CANVAS)break;}else vc=t.getState().mobileStore;if(!vc)break;fa.waitFor([u.dispatchToken]);pc=u.getDestinationDetails();var wc=l.getOSForMobileStore(vc);nb(za,{mobileOperatingSystem:wc,mobileDevices:ub(pc,uc,wc),mobileStore:vc});tc=true;break;case o.TARGETING_INIT:fa.waitFor([u.dispatchToken]);if(u.hasLoadedInitialDestinationDetails())break;lb(oc);ic(oc);tc=true;break;case o.TARGETING_CHANGE:ic(oc);tc=true;break;case o.TARGETING_REPLACEMENT:mb();ic(oc);tc=true;break;case o.TARGETABLE_AUDIENCES_CHANGE:hb=babelHelpers._extends({},hb,oc.audiences);tc=true;break;case aa.GEO_COORDINATES_LOADED:fa.waitFor([z.dispatchToken]);tc=ac(oc,za);break;case o.USER_LOCATION_AVAILABLE:ec(oc.data.location);break;case o.TARGETING_RESET_DEFAULTS:case o.DESTINATION_CHANGE:case o.DESTINATION_LOADED:fa.waitFor([v.dispatchToken,u.dispatchToken,t.dispatchToken]);if(oa.getDefaultTargeting()){wb();break;}pc=u.getDestinationDetails();if(p.isCreatingSimilar()||p.isCreatingSimilarCampaign()||!rc&&!sc&&oc.actionType!==o.TARGETING_RESET_DEFAULTS){var xc=qb(pc),yc=pb('ageMin');if(xc.ageMin<yc)xc.ageMin=yc;nb(za,xc);if(p.isCreatingSimilar()||p.isCreatingSimilarCampaign()){wb();}else xb();tc=true;break;}var zc=ga.getDefaultGeoTargeting(pc),ad=qb(pc),bd=bc(pc),cd=[];if(v.getAPIObjective()!==i.LOCAL_AWARENESS){if(pc.destinationCityInfo){var dd={key:pc.destinationCityInfo.id,id:pc.destinationCityInfo.id,name:pc.destinationCityInfo.name,radius:zc.radius,distance_unit:xa.getLocalizedUnit(),country:pc.destinationCityInfo.country,region_id:pc.destinationCityInfo.region_id};cd.push(dd);}bd=cd.length?[]:bd;}zc.geoLocations={countries:bd,regions:[],cities:cd,zips:[],custom_locations:[],geo_markets:[]};zc.excludedGeoLocations={};qc=Object.assign({userAdclusters:[],locales:[],educationStatuses:[],friendsOfConnections:[]},zc,ad);nb(za,qc);wb();var ed=mc.getLocalGeoState(za);if(oc.actionType===o.DESTINATION_CHANGE&&!ed.address_string)hc(pc,za);tc=true;break;case o.OBJECTIVE_CHANGE:case o.KPI_OBJECTIVE_CHANGE:if(!rc&&!sc)break;fa.waitFor([t.dispatchToken,u.dispatchToken,v.dispatchToken]);wb();ed=mc.getLocalGeoState(za);if(u.hasDestination()&&!ed.address_string&&!ed.latitude&&!ed.longitude)hc(u.getDestinationDetails(),za);tc=true;break;case o.CREATIVE_PLACEMENTS_CHANGE:case o.CREATIVE_PLACEMENTS_RESET:case o.CREATIVE_LPP_FORMAT_CHANGE:fa.waitFor([t.dispatchToken]);xb();tc=true;break;case o.RESET_DESTINATION:if(p.isCreatingSimilar()||p.isCreatingSimilarCampaign())break;mb();tc=true;break;case o.PAGE_POSTS_LOADED:xb();tc=true;break;case o.CAMPAIGN_SELECT:case o.CANCEL_EDITED_CAMPAIGN:if(!oc.targeting)break;mb();ic(oc.targeting);tc=true;break;case o.TARGETING_COUNTRY_FETCH_SUCCESS:if(!gc(oc.coordinates))nb(za,{targetingCountry:oc.countryCode,targetingCountryError:!oc.countryCode});break;case o.TARGETING_COUNTRY_FETCH_FAILED:if(!gc(oc.coordinates))nb(za,{targetingCountry:null,targetingCountryError:true});break;case o.SET_IS_USING_EXISTING_POST:xb();break;case h.PAGE_TRANSITION:mb();break;}kc(oc);if(tc){var fd=ua(oc,vb);mc.inform('change');}};lc.prototype.getCountryHasOptions=function(){return this.getCountryHasCities()||this.getCountryHasZips()||this.getCountryHasRegions();};lc.prototype.getSingleCountry=function(){return rb();};lc.prototype.getCountryHasRegions=function(){var nc=rb();return nc&&da.hasRegions(nc);};lc.prototype.getCountryHasCities=function(){var nc=rb();return nc&&da.hasCities(nc);};lc.prototype.getCountryHasZips=function(){var nc=rb();return nc==='US';};lc.prototype.hasTargetingCountryError=function(){return !!gb[za].targetingCountryError;};lc.prototype.getTargetingCountry=function(){return gb[za].targetingCountry;};lc.prototype.getLocTargeting=function(){var nc=pb('locTargeting');if(nc===db)return this.getCountryHasCities()?db:cb;if(nc===eb)return this.getCountryHasRegions()?eb:cb;if(nc===fb)return this.getCountryHasZips()?fb:cb;return cb;};lc.prototype.getLocalGeoState=function(nc){return new ma(jc(nc)||{});};lc.prototype.getDefaultGeoTargeting=function(){var nc=u.getDestinationDetails();return ga.getDefaultGeoTargeting(nc);};lc.prototype.getHasCollege=function(){var nc=this.getEducationStatuses()||[];return (nc.indexOf(j.EDUCATION_STATUSES.IN_COLLEGE)>=0||nc.indexOf(j.EDUCATION_STATUSES.COLLEGE_GRAD)>=0);};lc.prototype.getAgeMin=function(){return gb[za].ageMin;};lc.prototype.getMaxGradYear=function(){return pb('maxGradYear')||la.graduationYearBounds.maxGraduationYear;};lc.prototype.getMinGradYear=function(){return pb('minGradYear')||la.graduationYearBounds.minGraduationYear;};lc.prototype.getMobileMinVersion=function(nc){var oc=ia.operatingSystems,pc;if(nc===oc.IOS){pc=pb('minIosVersion');}else if(nc===oc.ANDROID)pc=pb('minAndroidVersion');return pc;};function lc(){va.apply(this,arguments);}var mc=new lc();b.debug_AdsCFTargetingStore=mc;f.exports=mc;},null);
__d('adsCampaignPricingFieldsReducer',['AdsActionTypes','AdsAPIAdCampaignFields','AdsAPIBillingEvents','AdsAPICampaignPaths','AdsAPIOptimizationGoals','AdsBiddingDelegate','AdsBillingEventUtils','getByPath','AdsMutators'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();var q=p.mutateEach,r=function(s,t){switch(t.type){case h.CAMPAIGN.SET_BID_AMOUNT:return q(s,t.ids,function(u){return u.setIn(k.BID_AMOUNT,t.bidAmount);});case h.CAMPAIGN.SET_BILLING_EVENT:return q(s,t.ids,function(u){return u.setIn(k.BILLING_EVENT,t.billingEvent);});case h.CAMPAIGN.SET_IS_AUTOBID:return q(s,t.ids,function(u){return u.withMutations(function(v){v.setIn(k.IS_AUTOBID,t.isAutobid);v.setIn(k.BID_AMOUNT,t.isAutobid?null:m.get(t.objective).getDefaultBidAmount(o(u,k.OPTIMIZATION_GOAL,l.NONE),o(u,k.BILLING_EVENT,j.NONE)));});});case h.CAMPAIGN.SET_OPTIMIZATION_GOAL:return q(s,t.ids,function(u){return u.withMutations(function(v){v.setIn(k.OPTIMIZATION_GOAL,t.optimizationGoal);if(!n.isValidForOptimizationGoal(v[i.BILLING_EVENT],t.optimizationGoal))v.setIn(k.BILLING_EVENT,j.IMPRESSIONS);});});}return s;};f.exports=r;},null);
__d('AdsCFXPricingStore',['AdsAPICampaignPaths','AdsAPICampaignRecord','AdsCFCampaignReadStatusStore','AdsCFNewCampaignFBID','AdsDispatcher','FluxReduceStore','immutable','LoadObject','adsCampaignPricingFieldsReducer','adsCFDefaultCampaignPricingFieldsReducer','adsCFExistingCampaignPricingFieldsReducer','getByPath'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){if(c.__markCompiled)c.__markCompiled();var t,u;'use strict';var v=[p,q,r];t=babelHelpers.inherits(w,m);u=t&&t.prototype;w.prototype.getInitialState=function(){var x={};x[k]=o.creating().setValue(new i());return n.Map(x);};w.prototype.getSelectedPricingState=function(){var x=this.getState().get(k).getValueEnforcing();return {bid_amount:s(x,h.BID_AMOUNT),billing_event:s(x,h.BILLING_EVENT),is_autobid:s(x,h.IS_AUTOBID),optimization_goal:s(x,h.OPTIMIZATION_GOAL)};};w.prototype.reduce=function(x,y){var z=y.action;if(j.isReadOnly())return x;return v.reduce(function(aa,ba){return ba(aa,z);},x);};function w(){t.apply(this,arguments);}f.exports=new w(l);},null);
__d('adsGetBidForByOptimizationGoal',['AdsAPIOptimizationGoals','AdsAPIReachEstimateBidFor'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();function j(k){switch(k){case h.CLICKS:return [i.CLICK];case h.IMPRESSIONS:case h.REACH:return [i.IMPRESSION];case h.RETENTION:return [i.CONVERSION];case h.OFFSITE_CONVERSION:return [i.OFFSITE_CONVERSION];default:return [i.CONVERSION];}}f.exports=j;},null);
__d('AdsCFAudienceEstimateUtils',['AdsAPIAdCampaignFields','AdsAPIObjectives','AdsBidOptions','AdsCFAccountStore','AdsCFActionTypes','AdsCFApplicationStore','AdsCFConstants','AdsCFConversionPixelStore','AdsCFObjectiveStore','AdsCFXPricingStore','AdsDispatcher','AdsGraphAPI','adsGetBidForByOptimizationGoal','mergeDeep','throttle','LocationConstants','AdsCFPricingStore'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){'use strict';if(c.__markCompiled)c.__markCompiled();var w=c('LocationConstants').RadiusInfo,x=1000,y=0,z=0,aa=0,ba=0;function ca(){if(s.shouldUseGeneralMigration()){var pa=q.getSelectedPricingState(),qa=pa[h.OPTIMIZATION_GOAL];return qa&&t(qa);}var ra=c('AdsCFPricingStore'),sa=ra.getState(n.CanonicalID).bidOption,ta=p.getAPIObjective();switch(sa){case j.ACTIONS:return ['conversion'];case j.OCPM_ACTIONS:if(ta===i.WEBSITE_CONVERSIONS)return ['offsite_conversion'];return ['conversion'];case j.CLICKS:return ['click'];case j.IMPRESSIONS:case j.OCPM_REACH:return ['impression'];}}function da(pa,qa){if(pa!==y)return;r.handleUpdateFromServerResponse({targetingID:n.CanonicalID,actionType:l.AUDIENCE_ESTIMATE_CHANGE,users:qa.users,minReach:qa.min_reach,maxReach:qa.max_reach,estimateReady:qa.estimate_ready,estimateErrors:[]});r.handleUpdateFromServerResponse({bidEstimateID:n.CanonicalID,actionType:l.BID_ESTIMATE_CHANGE,estimates:qa.bid_estimations[0]});}function ea(pa,qa,ra){if(pa!==y)return;if(!ra.error)return;var sa={targetingID:n.CanonicalID,actionType:l.AUDIENCE_ESTIMATE_CHANGE,users:NaN,estimateErrors:[]};if(ra.error.error_data)sa.estimateErrors=[ra.error.error_user_msg];r.handleUpdateFromServerResponse(sa);r.handleUpdateFromServerResponse({bidEstimateID:n.CanonicalID,actionType:l.BID_ESTIMATE_CHANGE,estimates:null});}function fa(pa,qa){if(pa!==z)return;r.handleUpdateFromServerResponse({targetingID:n.CanonicalID,actionType:l.AUDIENCE_DENSITY_CHANGE,users:qa.users});}function ga(pa,qa,ra){if(pa!==z)return;if(!ra.error)return;var sa={targetingID:n.CanonicalID,actionType:l.AUDIENCE_DENSITY_CHANGE,users:NaN,estimateErrors:[]};if(ra.error.error_data)sa.estimateErrors=[ra.error.error_user_msg];r.handleUpdateFromServerResponse(sa);}function ha(pa,qa){if(pa!==aa)return;r.handleUpdateFromServerResponse({targetingID:n.CanonicalID,actionType:l.TARGETING_SENTENCE_CHANGE,sentences:qa.targetingsentencelines});}function ia(pa,qa){if(pa===ba)r.handleUpdateFromServerResponse({actionType:l.TARGETING_RECOMMENDATION_CHANGE,estimatedUser:qa[0].audience_size,overallRating:qa[0].overall_rating,targetingID:n.CanonicalID});}function ja(pa){pa.currency=k.getState().currency;pa.bid_for=ca();var qa=o.getSelectedPixel();pa.target_id=qa&&qa.id;if(m.getAdgroupID()>0){pa.adgroupId=m.getAdgroupID();return k.getDao().fetch.estimatesForAdgroup;}else return k.getDao().fetch.estimatesForAccount;}function ka(pa){if(!this._refetchEstimatesThrottled)this._refetchEstimatesThrottled=v(function(qa){y++;var ra=ja(qa);qa.handleError=ea.bind(this,y);ra.one(da.bind(this,y),qa);},x,this);this._refetchEstimatesThrottled(pa);}var la=v((function(pa){z++;var qa=u(pa),ra=ja(qa);qa.handleError=ga.bind(this,z);var sa=qa.targeting_spec;if(!sa||!sa.geo_locations||!sa.geo_locations.custom_locations)return;delete sa.age_min;delete sa.age_max;delete sa.genders;sa.geo_locations.custom_locations.map(function(ta){ta.radius=w.getMaxRadius();ta.distance_unit=w.getLocalizedUnit();});ra.one(fa.bind(this,z),qa);}).bind(this),x);function ma(pa){if(!this._refetchTargetingSentencesThrottled)this._refetchTargetingSentencesThrottled=v(function(qa){aa++;qa.discard_placements=true;k.getDao().fetch.targetingSentencesForAccount.one(ha.bind(this,aa),babelHelpers._extends({},qa,{handleError:function(ra,sa){r.handleUpdateFromServerResponse({targetingID:n.CanonicalID,actionType:l.TARGETING_SENTENCE_CHANGE,error:sa});}}));},x,this);this._refetchTargetingSentencesThrottled(pa);}function na(pa){ba++;var qa={targeting_spec:pa.targeting_spec,handleError:function(ra,sa){r.handleUpdateFromServerResponse({actionType:l.TARGETING_RECOMMENDATION_CHANGE,error:sa,targetingID:n.CanonicalID});}};k.getDao().fetch.targetingGuidanceForAccount.one(ia.bind(null,ba),qa);}var oa=v(na,x);f.exports={refetchDensity:la,refetchEstimates:ka,refetchTargetingSentences:ma,refetchTargetingRecommendations:oa};},null);
__d('AdsCFCampaignAPIConverter',['AdsAPIAdCampaignFields','AdsAPICampaignPaths','AdsCampaignUtils','AdsCFApplicationStore','AdsCFConstants','AdsDateUtils','AdsPageTypes','AdsPageTypesMigration','AdsPlacementUtils','AdsPricingAPIConverter','AdsRunStatus','AdsTargetingModelAdapter','AdsUtils','adsGKCheck','arrayContains','getByPath','invariant','whitelistObjectKeys'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y){'use strict';if(c.__markCompiled)c.__markCompiled();var z=l.CampaignBudgetModes,aa=l.CampaignScheduleModes,ba=babelHelpers._extends({campaign_id:null,account_id:null,time_updated:null,time_created:null,time_start:null,topline_id:null,created_time:null},u('ads_general_2_4_migration')?{bid_info:null,bid_type:null,valid_bid_types:null}:{});function ca(ea,fa){var ga=u('ads_general_2_4_migration'),ha=!!ea.targeting,ia=ga?!!ea.optimization_goal:!!ea.bid_type;if(!ha||!ia)return null;var ja=w(ea,i.TARGETING.PAGE_TYPES);if(o.isLegacy(ja))ja=o.toModern(ja);if(v(ja,n.INSTAGRAM_STREAM))return null;var ka={};ka.campaignID=''+(ea.id||l.NEW_CAMPAIGN_ID);ka.scheduleMode=aa.CONTINUOUSLY;for(var la in ea){var ma=ea[la];if(la in ba)continue;switch(la){case 'id':case 'campaign_id':break;case 'name':ka.name=ma;break;case 'campaign_status':switch(ma){case r.ACTIVE:case r.CAMPAIGN_GROUP_PAUSED:ka.status=r.ACTIVE;break;case r.PAUSED:ka.status=r.PAUSED;break;default:return null;}break;case 'daily_budget':var na=parseInt(ma,10);if(!na||isNaN(na))break;!!ka.budgetMode?x(0):undefined;ka.budgetMode=z.DAILY;ka.dailyBudget=na;break;case 'creative_rotation_type':ka.creativeRotationType=ma;break;case 'creative_rotation_parameter':ka.creativeRotationParameter=ma;break;case 'lifetime_budget':var oa=parseInt(ma,10);if(!oa||isNaN(oa))break;!!ka.budgetMode?x(0):undefined;ka.budgetMode=z.LIFETIME;ka.lifetimeBudget=oa;break;case 'start_time':if(ma)ka.startDate=m.parseISODate(ma);break;case 'end_time':if(ma){ka.endDate=m.parseISODate(ma);ka.scheduleMode=aa.SCHEDULED;}break;case 'campaign_group_id':ka.campaignGroupID=ma.toString();break;case 'goal':case 'goal_id':break;case 'rf_prediction_id':if(!ma)break;return null;case 'budget_remaining':ka.budgetRemaining=parseInt(ma,10);break;case 'campaign_schedule':ka.campaignSchedule=ma;break;case 'pacing_type':ka.pacingType=ma;break;case 'targeting':if(!ma)break;ka.targeting=s.getInterfaceSpecFromApiSpec(ma);break;case 'bid_type':ka.bid_type=ma;break;case 'bid_info':ka.bid_info=ma;break;case 'is_autobid':ka.is_autobid=ma;break;case 'valid_bid_types':ka.valid_bid_types=ma;break;case 'is_draft_only':ka.isDraftOnly=ma;break;case 'updated_time':ka.updatedTime=ma;break;case 'promoted_object':if(!ma)break;ka.promotedObject={};Object.keys(ma).forEach(function(ra){ka.promotedObject[t.camelCaseKey(ra)]=ma[ra];});break;case 'saved_audience':if(ma)ka.savedAudienceID=ma.id;break;}}if(ga){[h.BID_AMOUNT,h.BILLING_EVENT,h.OPTIMIZATION_GOAL].forEach(function(ra){return ka[ra]=ea[ra];});}else{ka.pricing=q.fromAPI({bid_type:ka[h.BID_TYPE],bid_info:ka[h.BID_INFO],is_autobid:ka[h.IS_AUTOBID],valid_bid_types:ka[h.VALID_BID_TYPES]},fa);delete ka.bid_type;delete ka.bid_info;delete ka.is_autobid;delete ka.valid_bid_types;}var pa=ka.promotedObject,qa=pa&&pa.pixelId;if(!ga&&qa)ka.pricing.conversionPixelID=qa;return ka;}function da(ea,fa,ga,ha,ia){var ja={name:ea.name};if(ea.campaignSchedule)ja.campaign_schedule=ea.campaignSchedule;var ka=ea.isNewCampaign;if(!ka)ja.id=ea.campaignID;if(ea.scheduleMode===aa.SCHEDULED){var la=j.isStartDateEditable(ea.isNewCampaign,ea.startDate);if(la)ja.start_time=j.getISODateTimeString(ea.startDate,fa.timezoneOffsetHours);if(ea.endDate>Date.now())ja.end_time=j.getISODateTimeString(ea.endDate,fa.timezoneOffsetHours);}else{if(ka)ja.start_time=0;ja.end_time=0;}ja.pacing_type=ea.pacingType;if(ea.budgetMode===l.CampaignBudgetModes.DAILY){ja.daily_budget=ea.budget;ja.lifetime_budget=0;ja.campaign_schedule=[];}else{ja.daily_budget=0;ja.lifetime_budget=ea.budget;ja.budget_remaining=ea.budgetRemaining;}var ma=ha;if(!u('ads_general_2_4_migration'))ma=q.toAPI(ha);Object.assign(ja,ma);if(Object.keys(ia).length)ja.promoted_object=ia;if(ea.savedAudienceID){ja.saved_audience_id=ea.savedAudienceID;ja.saved_audience={id:ea.savedAudienceID};ja.placement=y(ga,p.PLACEMENT_TARGET_FIELDS);}else if(ka||ea.targeting&&ga!==ea.targeting||k.getShowMode()===l.ShowMode.TARGETING)ja.targeting=ga;var na={};na[r.ACTIVE]=r.ACTIVE;na[r.PAUSED]=r.PAUSED;ja.campaign_status=na[ea.status];return ja;}f.exports={fromAPI:ca,toAPI:da};},null);
__d('actionSpecConstants',['createArrayFromMixed','fbt','AdsAPIObjectives'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k={PAGE_LIKES:'PAGE_LIKES',PAGE_SUBSCRIBES:'PAGE_SUBSCRIBES',ALL_POST_LIKES:'ALL_POST_LIKES',ALL_POST_COMMENTS:'ALL_POST_COMMENTS',ALL_POST_SHARES:'ALL_POST_SHARES',POST_BY_PAGE_LIKE:'POST_BY_PAGE_LIKE',WALL_POSTS:'WALL_POSTS',PAGE_CHECKINS:'PAGE_CHECKINS',PAGE_AND_CHILD_CHECKINS:'PAGE_AND_CHILD_CHECKINS',POST_LIKES:'POST_LIKES',POST_COMMENTS:'POST_COMMENTS',POST_SHARES:'POST_SHARES',OFFER_CLAIMS:'OFFER_CLAIMS',APP_SHARE:'APP_SHARE',APP_USE:'APP_USE',GAME_PLAY:'GAME_PLAY',EVENT_RSVP:'EVENT_RSVP',DOMAIN_SHARE:'DOMAIN_SHARE',URL_SHARE:'URL_SHARE',QUESTION_VOTE:'QUESTION_VOTE'};function l(v,w){return function(x,y,z){var aa={'action.type':v};if(w.objectID)h(w.objectID).forEach(function(ba){aa[ba]=x;});if(w.storyID)h(w.storyID).forEach(function(ba){aa[ba]=y;});if(w.url)h(w.url).forEach(function(ba){aa[ba]=z;});return aa;};}var m={};m[k.PAGE_LIKES]=l('like',{objectID:'page'});m[k.PAGE_SUBSCRIBES]=l('follow',{objectID:'page'});m[k.ALL_POST_LIKES]=l('like',{objectID:['post.wall','post.author']});m[k.ALL_POST_COMMENTS]=l('comment',{objectID:['post.wall','post.author']});m[k.ALL_POST_SHARES]=l('post',{objectID:'post.author'});m[k.POST_BY_PAGE_LIKE]=l('like',{objectID:['post.wall','post.author']});m[k.WALL_POSTS]=l('post',{objectID:'post.wall'});m[k.PAGE_CHECKINS]=l('checkin',{objectID:'page'});m[k.PAGE_AND_CHILD_CHECKINS]=function(v){return [{'action.type':'checkin',page:v},{'action.type':'checkin','page.parent':v}];};m[k.POST_LIKES]=l('like',{storyID:'post'});m[k.POST_COMMENTS]=l('comment',{storyID:'post'});m[k.POST_SHARES]=l('post',{storyID:'post.object'});m[k.OFFER_CLAIMS]=l('receive_offer',{storyID:'offer'});m[k.APP_SHARE]=l('post',{objectID:'application'});m[k.APP_USE]=l('apps.uses',{objectID:'application'});m[k.GAME_PLAY]=l('games.plays',{objectID:'application'});m[k.EVENT_RSVP]=l('rsvp',{objectID:'event'});m[k.DOMAIN_SHARE]=l(['post','like'],{objectID:'post.object.domain'});m[k.URL_SHARE]=l('post',{url:'post.object'});m[k.QUESTION_VOTE]=function(v,w,x,y){return y?{'action.type':'vote',question:y.object_id}:null;};var n={};n[k.PAGE_LIKES]=i._("People liking your Page");n[k.PAGE_SUBSCRIBES]=i._("People following your Page");n[k.ALL_POST_LIKES]=i._("People liking any of your Page posts");n[k.ALL_POST_COMMENTS]=i._("People commenting on any of your Page posts");n[k.ALL_POST_SHARES]=i._("People sharing on any of your Page posts");n[k.POST_BY_PAGE_LIKE]=i._("People liking any of your Page posts");n[k.WALL_POSTS]=i._("People posting on your wall");n[k.PAGE_CHECKINS]=i._("People checking-in to your location");n[k.PAGE_AND_CHILD_CHECKINS]=i._("People checking-in to your location");n[k.POST_LIKES]=i._("People liking your Page post");n[k.POST_COMMENTS]=i._("People commenting on your Page post");n[k.POST_SHARES]=i._("People sharing your Page post");n[k.OFFER_CLAIMS]=i._("People claiming your offer");n[k.APP_SHARE]=i._("Stories published through your app");n[k.APP_USE]=i._("People using your app");n[k.GAME_PLAY]=i._("People playing your game");n[k.EVENT_RSVP]=i._("People joining your event");n[k.DOMAIN_SHARE]=i._("People sharing links from your website");n[k.URL_SHARE]=i._("People sharing the specific URL you entered above");n[k.QUESTION_VOTE]=i._("People voting on your question");var o={};o[j.PAGE_LIKES]=[k.PAGE_LIKES];o[j.POST_ENGAGEMENT]=[k.POST_LIKES,k.POST_COMMENTS,k.POST_SHARES];o[j.OFFER_CLAIMS]=[k.POST_LIKES,k.OFFER_CLAIMS];o[j.DEPRECATED_CLICKS]=[k.PAGE_LIKES,k.ALL_POST_LIKES,k.ALL_POST_COMMENTS];var p={};p[j.PAGE_LIKES]=[k.PAGE_LIKES,k.PAGE_CHECKINS];p[j.POST_ENGAGEMENT]=[k.POST_LIKES,k.POST_COMMENTS,k.POST_SHARES];p[j.OFFER_CLAIMS]=[k.OFFER_CLAIMS];p[j.DEPRECATED_CLICKS]=[k.PAGE_LIKES,k.ALL_POST_LIKES,k.ALL_POST_COMMENTS,k.PAGE_CHECKINS];var q={};q[j.CANVAS_APP_INSTALLS]=q[j.CANVAS_APP_ENGAGEMENT]=q[j.DEPRECATED_CLICKS]=[k.APP_SHARE];var r={};r[j.CANVAS_APP_INSTALLS]=r[j.CANVAS_APP_ENGAGEMENT]=r[j.DEPRECATED_CLICKS]=[k.APP_SHARE,k.GAME_PLAY];var s={};s[j.EVENT_RESPONSES]=s[j.DEPRECATED_CLICKS]=[k.EVENT_RSVP];var t={};t[j.POST_ENGAGEMENT]=t[j.DEPRECATED_CLICKS]=[k.QUESTION_VOTE,k.POST_COMMENTS,k.POST_SHARES];var u={SPONSORED_STORIES:1,NEWS_FEED_AD:2,MULTI_IMAGE_AD:3,MULTI_IMAGE_NEWS_FEED_AD:4};f.exports={ACTION_SPECS_KEYS:k,ACTION_SPECS:m,ACTION_SPECS_DISPLAY_NAME:n,PAGE_SS_SPECS:o,PLACE_SS_SPECS:p,APP_SS_SPECS:q,GAME_SS_SPECS:r,EVENT_SS_SPECS:s,QUESTION_SS_SPECS:t,SECONDARY_AD_TYPES:u};},null);
__d('adsGetPageTypesForAdgroup',['AdCreativeType','ads-app-platforms','AdsPageTypes','AdsPageTypesMigration','ApiCreativeTypes','ads-app-platforms'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=h.AD_CREATIVE_TYPE,o=m.APP_PLATFORM,p=m.MOBILE_OPERATING_SYSTEM_TO_APP_PLATFORM;function q(r){var s=r.targeting&&r.targeting.page_types;if(r.creative.type===n.NEKO_LPP){var t;if(r.targeting.user_os)t=p[i.getMobileOperatingSystemFromUserOS(r.targeting.user_os[0])];if(t){r.creative.platform=t;}else r.creative.platform=o.DESKTOP_CANVAS;}else if(r.creative.type===l.STANDARD)s=[j.RIGHT_COLUMN];if(k.isLegacy(s))s=k.toModern(s);return s;}f.exports=q;},null);
__d('AdsCFCreativePlacementUtils',['AdsAPIAdCampaignGroupFields','AdsAPIObjectives','AdsAppUtils','AdsCFAccountStore','AdsCFCampaignGroupStore','AdsCFConstants','AdsCFCreativeUIStore','AdsCFCreativeUtils','AdsCFDestinationStore','AdsCreativePlacementUtils','AdsPageTypes','adsGKCheck'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){'use strict';if(c.__markCompiled)c.__markCompiled();var t=m.PlacementCannotChangeStatusReason,u=m.PlacementID,v=m.PlacementStates,w=u.DESKTOP_NEWS_FEED,x=u.MOBILE_NEWS_FEED,y=u.RHC,z=u.FAN,aa=u.IG_FEED;function ba(ta,ua){var va=ja(ta,ua);return Object.keys(va).some(function(wa){return da(ta,wa,ua);});}function ca(ta,ua){return (da(ta,w,ua)||da(ta,y,ua));}function da(ta,ua,va){return pa(ta,ua,va)===v.ENABLED;}function ea(ta,ua){return (!da(ta,w,ua)&&!da(ta,x,ua)&&!da(ta,aa,ua));}function fa(ta,ua){return (!da(ta,w,ua)&&!da(ta,x,ua)&&!da(ta,y,ua)&&!da(ta,z,ua)&&da(ta,aa,ua));}function ga(){return [w,x,y,z,aa];}function ha(ta,ua){return ga().filter(function(va){return ia(ta,va,ua);});}function ia(ta,ua,va){var wa=pa(ta,ua,va);return wa!==v.NOT_SUPPORTED;}function ja(ta,ua){var va=q.getPlacementsState({accountCapabilities:k.getAccountCapabilities(),buyingType:l.getSelectedState()[h.BUYING_TYPE],callToActionType:ta.callToActionType,destinationType:p.getDestinationTypeIgnoringKPI(),isMPA:ta.isMPA,isUsingExistingPost:n.isUsingExistingPost(),isVideoCreative:o.isVideoCreative(ta),objective:ua,pagePostType:ra(ta),placementStates:ta.placements,targetedPlatform:ta.platform});if(va[u.IG_FEED]&&!s('ads_cf_ig'))va[u.IG_FEED]=v.NOT_SUPPORTED;return va;}function ka(ta,ua,va){var wa=oa(!ta.isNewCampaign,ua,va,x,false)===t.NONE,xa=oa(!ta.isNewCampaign,ua,va,w,false)===t.NONE;return (!j.isAppObjective(va)&&!ua.isMPA&&!o.isVideoCreative(ua)&&va!==i.EVENT_RESPONSES&&(xa||wa));}function la(ta,ua,va){var wa=oa(!ta.isNewCampaign,ua,va,x,true)===t.NONE,xa=oa(!ta.isNewCampaign,ua,va,w,true)===t.NONE;return xa||wa;}function ma(ta,ua,va,wa,xa){var ya=function(ab){return ua.find(function(bb){return bb===ab;});},za=function(ab){return va.find(function(bb){return bb===ab;});};return na(ta,ya,za,wa,xa);}function na(ta,ua,va,wa,xa){if(ta){return t.READ_ONLY;}else if(!va(wa))return t.NOT_SUPPORTED;if(xa){if(wa===u.FAN&&!ua(x))return t.MOBILE_NEWS_FEED_DISABLED;return t.NONE;}else{var ya=false;for(var za in u)if(za!==wa&&ua(za)){if(za===u.FAN){ya=true;continue;}return t.NONE;}return ya?t.ONLY_PLACEMENT_EXCEPT_FAN:t.ONLY_PLACEMENT;}}function oa(ta,ua,va,wa,xa){var ya=function(ab){return da(ua,ab,va);},za=function(ab){return ia(ua,ab,va);};return na(ta,ya,za,wa,xa);}function pa(ta,ua,va){if(ua===u.IG_FEED&&!s('ads_cf_ig'))return u.NOT_SUPPORTED;return q.getPlacementState(ua,{accountCapabilities:k.getAccountCapabilities(),buyingType:l.getSelectedState().buying_type,callToActionType:ta.callToActionType,destinationType:p.getDestinationTypeIgnoringKPI(),isMPA:ta.isMPA,isUsingExistingPost:n.isUsingExistingPost(),isVideoCreative:o.isVideoCreative(ta),objective:va,pagePostType:ra(ta),placementStates:ta.placements,targetedPlatform:ta.platform});}function qa(ta,ua){var va=ja(ta,ua),wa=va[w]===v.ENABLED,xa=va[x]===v.ENABLED,ya=va[y]===v.ENABLED,za=va[z]===v.ENABLED,ab=va[aa]===v.ENABLED,bb=[];if(va){wa&&bb.push(r.DESKTOP_FEED);xa&&bb.push(r.MOBILE_FEED);ya&&bb.push(r.RIGHT_COLUMN);za&&bb.push(r.MOBILE_EXTERNAL);ab&&bb.push(r.INSTAGRAM_STREAM);}return bb;}function ra(ta){if(!ta.storyId)return undefined;var ua=p.getPagePostDetails(ta.storyId);return ua?ua.type:undefined;}var sa={canChangePlacementStatus:ma,canChangeStatus_DEPRECATED:oa,canDisableNewsFeedStatus:ka,canEnableNewsFeedStatus:la,getDefaultPlacementOrder:ga,getPageTypes:qa,getPlacementsState:ja,getSupportedPlacements:ha,hasEnabledPlacement:ba,isDesktopPlacementEnabled:ca,isNewsFeedDisabled:ea,isOnlyIGEnabled:fa,isPlacementEnabled:da,isPlacementSupported:ia};f.exports=sa;},null);
__d('AdsAdgroupValidationMessages',['AdsCreationConfig','fbt'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=i._("Your app name includes an invalid character. Ads may only contain alphanumeric characters, punctuation, and spaces. Symbols like {lessThan} and = are not allowed.",[i.param('lessThan','<')]),k=i._("Your text includes an invalid character. Ads may only contain alphanumeric characters, punctuation, and spaces. Symbols like {lessThan} and = are not allowed.",[i.param('lessThan','<')]),l=i._("Your text can't consist of all capital letters."),m=i._("Your text can't include 2 punctuation marks or signs in a row. Please remove these to continue."),n=i._("Your ad will always show the first 90 characters of text. Extra characters may not be displayed."),o=i._("Your text has a word that is longer than 30 characters. Remove this word to continue."),p=i._("A website URL is required when using a call to action button."),q=i._("A display link is required when using a call to action button"),r=i._({"*":"Your deep link title is too long. It needs to be {maxDeepLinkTitleLength} characters or less."},[i.param('maxDeepLinkTitleLength',h.maxDeepLinkTitleLength,[0])]),s=i._({"*":"Your deep link is too long. It needs to be {maxLength} characters or less."},[i.param('maxLength',h.maxDeepLinkLength,[0])]),t=i._("When you spell Facebook in your ads please capitalize it this way: Facebook."),u=i._("Your link description includes an invalid character. Ads may only contain alphanumeric characters, punctuation, and spaces. Symbols like {lessThan} and = are not allowed.",[i.param('lessThan','<')]),v=i._("Your link description can't consist of all capital letters."),w=i._("Your link description can't include 2 punctuation marks or signs in a row. Please remove these to continue."),x=i._({"*":"Your link description is too long. It needs to be {maxTitleLength} characters or less."},[i.param('maxTitleLength',h.maxLinkDescriptionLength,[0])]),y=i._("Your link description can't include a word longer than 30 characters. Remove this word to continue."),z=i._("Your headline includes an invalid character. Ads may only contain alphanumeric characters, punctuation, and spaces. Symbols like {lessThan} and = are not allowed.",[i.param('lessThan','<')]),aa=i._("Your headline can't contain 2 punctuation marks or signs in a row. Please remove these to continue."),ba=i._("Your headline can't start with punctuation. Please change your headline to continue"),ca=i._({"*":"Your ad will always show the first {max length} characters of the headline. Extra characters may not be displayed."},[i.param('max length',h.maxTitleLength,[0])]),da=i._("Your headline has a word that is longer than 30 characters. Remove this word to continue."),ea={APP_NAME_BAD_CHARS:j,BODY_ALL_CAPS:l,BODY_BAD_CHARS:k,BODY_CONSECUTIVE_PUNCTUATIONS_SIGNS:m,BODY_TOO_LONG:n,BODY_TOO_LONG_WORD:o,CTA_URL_EMPTY:p,CTA_CAPTION_EMPTY:q,DEEP_LINK_TITLE_TOO_LONG:r,DEEP_LINK_TOO_LONG:s,FACEBOOK_CAPITALIZATION:t,LINK_DESCRIPTION_ALL_CAPS:v,LINK_DESCRIPTION_BAD_CHARS:u,LINK_DESCRIPTION_CONSECUTIVE_PUNCTUATIONS_SIGNS:w,LINK_DESCRIPTION_TOO_LONG:x,LINK_DESCRIPTION_TOO_LONG_WORD:y,TITLE_BAD_CHARS:z,TITLE_CONSECUTIVE_PUNCTUATIONS_SIGNS:aa,TITLE_START_PUNCTUATION:ba,TITLE_TOO_LONG_WARNING:ca,TITLE_TOO_LONG_WORD:da};f.exports=ea;},null);
__d('isInvalidFacebookCapitalization',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i){var j=!!/(\s|^)\b(?!Facebook)[Ff][Aa][Cc][Ee][Bb][Oo][Oo][Kk]\b(?!.com)/.test(i);return j;}f.exports=h;},null);
__d('AdsCFObjectiveUtils',['AdsAPIObjectives','ads-app-platforms','AdsCFApplicationStore','AdsCFConstants','AdsCFDestinationStore','AdsCFDestinationUtils','AdsCFMobileAppEngagementUtils','AdsCreativeUtils','AdsDestinationTypes','ads-objectives','adsGKCheck'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){'use strict';if(c.__markCompiled)c.__markCompiled();var s=q.APIObjectivesWithRequiredStoryID,t=i.MOBILE_STORE_DESTINATION_TYPE;function u(y,z,aa){var ba=aa.storyID,ca=aa.pagePosts,da=aa.destinationType,ea=z.appPlatforms,fa=s.indexOf(y)>-1,ga;if(fa){var ha=o.getPagePostFromStoryId(ba,ca);ga=o.getIsPagePostExpiredOffer(ha);}var ia=z.offerEligible,ja=m.isUnpublishedPage(da,z);return {isUnpublishedPage:ja,noPlatforms:!ea||!ea.length,noPosts:!ca.length,offerEligible:ia,offerExpired:ga,requiresStoryID:fa,storyID:ba};}function v(y){if(!y)return null;var z=null;if(y instanceof Array){for(var aa=0;aa<y.length;++aa){var ba=y[aa];if(ba.offsite_pixel){z=ba.offsite_pixel;break;}}}else if(y.offsite_pixel)z=y.offsite_pixel;if(z instanceof Array)return z[0];return z;}function w(y,z){var aa=v(z);if(!aa)aa=v(y);return aa;}function x(){if(l.getHasNativeMobileApp())return h.MOBILE_APP_INSTALLS;var y=l.getDestinationDetails();if(y.defaultObjective)return y.defaultObjective;var z=l.getDestinationType();if(!z)return h.NONE;switch(z){case p.PAGE:case p.PLACE:return h.PAGE_LIKES;case p.APP:return h.CANVAS_APP_INSTALLS;case p.EVENT:return h.EVENT_RESPONSES;default:return h.DEPRECATED_CLICKS;}}f.exports={getDefaultAPIObjective:x,getTrackingPixelIDs:w,getTrackingPixelIDsFromSpecs:v};},null);
__d('AdsCFCouponCode',['URI'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={isCouponError:function(){var j=h.getRequestURI().getQueryData();return j.coupon_error;},getCouponCode:function(){var j=h.getRequestURI().getQueryData();return j.coupon||j.coupon_code;}};f.exports=i;},null);
__d('AdsCFOutputAPIDataProcessor',['AdsAPIAdCampaignGroupFields','AdsAPIAdgroupFields','AdsAPIAdgroupRecord','AdsAPIObjectives','AdsAPIPromotedObjectFields','AdsBidOptions','AdsBidTypes','AdsCFAccountStore','AdsCFAdgroupStore','AdsCFAdNameStore','AdsCFApplicationStore','AdsCFAudienceEstimateStore','AdsCFBidUtils','AdsCFCampaignAPIConverter','AdsCFCampaignGroupStore','AdsCFCampaignStore','AdsCFConstants','AdsCFConversionPixelStore','AdsCFCouponCode','AdsCFCreativeAPIConverter','AdsCFCreativeStore','AdsCFCreativeUIStore','AdsCFDestinationStore','AdsCFObjectiveStore','AdsCFPricingStore','AdsCFTargetingStore','AdsCFXPricingStore','AdsCreativeConverter','AdsOutputApiSpecDelegate','AdsPlacementUtils','AdsSavedAudienceCreateViewStore','AdsTargetingSavedAudienceDataLoader','AdsUtils','adsGKCheck','getObjectValues','isL1RefactorEnabled','whitelistObjectKeys'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra){'use strict';if(c.__markCompiled)c.__markCompiled();function sa(lb){Object.keys(lb).forEach(function(mb){var nb=lb[mb];if(nb===undefined||nb===null){delete lb[mb];}else if(Array.isArray(nb)&&nb.length===0){delete lb[mb];}else if(typeof nb==='object')lb[mb]=sa(nb);});return lb;}function ta(lb){var mb=aa.toAPI(ba.getState(),ca.isUsingExistingPost());lb.creative=mb.creative;lb.secondary_adgroups=mb.secondary_adgroups;}function ua(lb){if(r.isEditMode()||oa('ads_creation_adgroup_objective_deprecation'))return;lb.objective=ea.getAPIObjective();}function va(lb){var mb=ea.getAPIObjective(),nb=ja.get(mb).getTrackingSpecs();if(!nb.length)return;lb.tracking_specs=nb;}function wa(lb){var mb=fa.getState(x.CanonicalID),nb=ea.getAPIObjective(),ob=ja.get(nb);if(mb.bidOption!==m.OCPM_ACTIONS){if(ob.shouldClearConversionSpecForNonOCPM())lb.conversion_specs=[];return;}var pb=ob.getConversionSpecs(y.getSelectedPixel(),da.getDestinationDetails());if(!pb.length)return;pb=pb.length===1?pb[0]:pb;lb.conversion_specs=pb;}function xa(lb){var mb=lb.secondary_adgroups;if(mb.length===0){lb.name=q.getPrimaryAdName();return;}var nb=1,ob=function(){return q.getMultiImageAdName(nb++);};lb.name=ob();mb.forEach(function(pb){pb.name=ob();});}function ya(lb){var mb=w.getSelectedCampaignState();if(mb.isNewCampaign)return;lb.campaign_id=mb.campaignID;}function za(lb){var mb=fa.getState(x.CanonicalID),nb=s.getBidEstimateState(x.CanonicalID),ob=t.getBiddingBehaviorLogging(mb,nb,lb.bid_type);lb.bidding_behavior=ob;}function ab(lb){if(lb.bid_type===n.BID_TYPE_CPA&&lb.objective===k.MOBILE_APP_INSTALLS){lb.application_data={is_cpi_candidate:true};return;}var mb=lb.creative.object_story_spec;if(!mb)return;var nb=mb.link_data||{},ob=nb.link;lb.application_data={destination_url:ob};}function bb(){var lb={};if(r.isEditingExistingCampaign())return lb;ta(lb);ua(lb);wa(lb);va(lb);ya(lb);xa(lb);ab(lb);za(lb);return lb;}function cb(){var lb=[];for(var mb=p.getState().values(),nb=Array.isArray(mb),ob=0,mb=nb?mb:mb[typeof Symbol==='function'?Symbol.iterator:'@@iterator']();;){var pb;if(nb){if(ob>=mb.length)break;pb=mb[ob++];}else{ob=mb.next();if(ob.done)break;pb=ob.value;}var qb=pb;lb.push(sa(qb.getValueEnforcing().toJSON()));}return lb;}function db(){var lb=bb(),mb=[],nb=lb.secondary_adgroups||[];delete lb.secondary_adgroups;var ob=i.CREATIVE;lb[ob]=ia.toModernSpec(lb[ob]);mb.push(new j(lb));nb.forEach(function(pb){pb[ob]=ia.toModernSpec(pb[ob]);if(lb.conversion_specs)pb.conversion_specs=lb.conversion_specs;if(lb.tracking_specs)pb.tracking_specs=lb.tracking_specs;if(lb.campaign_id)pb.campaign_id=lb.campaign_id;mb.push(new j(pb));});return mb;}function eb(){var lb=w.getSelectedCampaignState();if(!lb.isNewCampaign)return ra(na.camelCaseToUnderscoreKeys(lb.promotedObject||{}),pa(l));var mb=ea.getAPIObjective();if(qa(mb)){var nb=cb()[0];return ja.get(mb).getPromotedObjectFromAdgroup(nb);}return (ja.get(mb).getPromotedObjectSpec(ba.getState(),y.getSelectedPixel(),da.getDestinationDetails(),o.getState()));}function fb(){var lb=u.toAPI(w.getSelectedCampaignState(),o.getState(),sa(ga.getApiSpec(x.CanonicalID)),oa('ads_general_2_4_migration')?ha.getSelectedPricingState():fa.getState(x.CanonicalID),eb());if(!lb.name)lb.name='Dummy campaign name';return lb;}function gb(){var lb=v.getSelectedState(),mb={buying_type:lb[h.BUYING_TYPE],name:lb[h.NAME],objective:ea.getAPIObjective()};if(!lb.isNew)mb.id=lb.id;return mb;}function hb(lb,mb){var nb=bb(),ob={adApiSpec:nb,campaign_group_api_spec:gb(),coupon_code:z.getCouponCode()},pb=o.getState();if(pb.isAllowedToEditCurrency){ob.currency=pb.currency;ob.timezone_id=pb.timezoneID;ob.country_code=pb.country;}if(w.getSelectedCampaignState().isNewCampaign){ob.newCampaignApiSpec=fb();var qb=la.getAudienceName().trim();if(la.isSaveEnabled()&&qb){ib(qb,ob,lb,mb);return;}}lb(ob);}function ib(lb,mb,nb,ob){ma.createSavedAudience(o.getAccountID(),lb,mb.newCampaignApiSpec.targeting).done(function(pb){if(pb.id){mb.newCampaignApiSpec.saved_audience_id=pb.id;mb.newCampaignApiSpec.placement=ka.getPlacementFields(mb.newCampaignApiSpec.targeting);delete mb.newCampaignApiSpec.targeting;}nb(mb);},function(pb){ob(mb,pb);});}function jb(lb,mb){lb(bb());}function kb(){return {adApiSpec:bb(),newCampaignApiSpec:fb(),campaign_group_api_spec:gb(),coupon_code:z.getCouponCode(),account_id:o.getAccountID()};}f.exports={generateAdgroupApiSpec:bb,generateAdgroupAPISpecs:cb,generateAPIAdgroupRecords:db,generateCampaignApiSpec:fb,generateCampaignGroupApiSpec:gb,generateSpecForCreate:hb,generateSpecForSave:jb,generateSpecForAutoUpdatePending:kb};},null);
__d('AdsImageActionType',['AdsDispatchActionTypeUtils'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i={BATCH_LOADED:null,BATCH_LOAD_ERROR:null,IMAGE_COLLECTION_ADD_TO_FRONT:null,IMAGE_COLLECTION_INVALIDATED:null,IMAGE_COLLECTION_SET_SELECTED:null,IMAGES_DELETE:null,IMAGES_END_REACHED:null,IMAGES_INVALIDATED:null,IMAGES_SEARCH:null,IMAGES_SORT:null,LIST_LOADED:null,LOAD_DIMENSION_ERROR:null,LOAD_DIMENSION_SUCCESS:null,LOAD_IMAGES_ERROR:null,LOAD_IMAGES_SUCCESS:null,LOAD_NEXT_PAGE:null},j=h.createActionTypeMap('AdsImageAction_',i);f.exports=j;},null);
__d('AdsImageActions',['AdsDispatcher','AdsImageActionType'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={loadNextPage:function(k){h.handleUpdateFromViewAction({accountID:k,type:i.LOAD_NEXT_PAGE});},imagesLoaded:function(k,l,m){h.handleUpdateFromServerResponse({accountID:k,images:l,loadNextPage:m,type:i.LOAD_IMAGES_SUCCESS});},imagesLoadError:function(k){h.handleUpdateFromServerResponse({error:k,type:i.LOAD_IMAGES_ERROR});},dimensionLoaded:function(k,l,m){h.handleUpdateFromServerResponse({height:m,type:i.LOAD_DIMENSION_SUCCESS,url:k,width:l});},dimensionLoadError:function(k){h.handleUpdateFromServerResponse({type:i.LOAD_DIMENSION_ERROR,url:k});},imagesBatchLoaded:function(k){h.handleUpdateFromServerResponse({images:k,type:i.BATCH_LOADED});},imagesBatchLoadError:function(k){h.handleUpdateFromServerResponse({errors:k,type:i.BATCH_LOAD_ERROR});},imagesEndReached:function(k){h.handleUpdateFromServerResponse({imageListRecord:k,type:i.IMAGES_END_REACHED});},imagesInvalidated:function(){h.handleUpdateFromViewAction({type:i.IMAGES_INVALIDATED});},imageListLoaded:function(k,l,m){h.handleUpdateFromServerResponse({images:l,imageListRecord:k,loadNextPage:m,type:i.LIST_LOADED});},imageCollectionInvalidated:function(){h.handleUpdateFromCleanUpAction({type:i.IMAGE_COLLECTION_INVALIDATED});},sortImages:function(k){h.handleUpdateFromViewAction({sortBy:k,type:i.IMAGES_SORT});},deleteImages:function(k,l){h.handleUpdateFromViewAction({imageList:l,imageListRecord:k,type:i.IMAGES_DELETE});},searchImages:function(k){h.handleUpdateFromViewAction({query:k,type:i.IMAGES_SEARCH});},addImagesToFrontOfCollection:function(k,l){h.handleUpdateFromViewAction({accountID:k,images:l,type:i.IMAGE_COLLECTION_ADD_TO_FRONT});},setSelectedImages:function(k,l){h.handleUpdateFromViewAction({accoundID:k,images:l,type:i.IMAGE_COLLECTION_SET_SELECTED});}};f.exports=j;},null);
__d('AdsImageDataManager',['AdsAPIAdAccountFields','AdsBaseDataManager','AdsGraphAPI','AdsImageActions','AdsImageDataManagerFields','adsGKCheck','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o,p;'use strict';o=babelHelpers.inherits(q,i);p=o&&o.prototype;q.prototype.loadAllFor=function(r,s){j.getWithGeneralMigration().adaccount(r).edge(h.ADIMAGES).get({date_format:'U',fields:l,hashes:s}).done((function(t){return this.__processResponse(t,s,function(u){return u.hash;},function(u){return new Error(n._("Unable to load image hash \"{image hash}\", it may be invalid.",[n.param('image hash',u)]));},true);}).bind(this),(function(t){s.forEach((function(u){this.__handleError(['load'],u,null,t);}).bind(this));}).bind(this));};q.prototype.loadOneFor=function(r,s){this.loadAllFor(r,[s]);};q.prototype.__onBatchLoaded=function(r){k.imagesBatchLoaded(r);};q.prototype.__onBatchLoadError=function(r){k.imagesBatchLoadError(r);};function q(){o.apply(this,arguments);}f.exports=new q();},null);
__d('AdsImageDataLoader',['AdsAPIAdAccountFields','AdsAPIImageFields','AdsGraphAPI','Promise','adsGKCheck','getDOMImageSize'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=[i.HASH,i.HEIGHT,i.WIDTH,i.URL,i.URL_128];function o(r,s){var t={fields:n,limit:50};if(s&&s.length)t.hashes=s;return j.getWithGeneralMigration().adaccount(r).edge(h.ADIMAGES).get(t);}function p(r){return new k(function(s,t){var u=function(v,w,x){var y={data:{height:w,url:x,width:v}};if(v&&w){s(y);}else t(y);};m(r,u);});}var q={loadImageDimensionsForURL:p,loadImagesForAccountID:o};f.exports=q;},null);
__d('AdsImageStore',['AdsBaseDataStore','AdsImageActionType','AdsImageDataManager','AdsImageDataDispatcher','AdsLoadState','Map','curry','deepFreezeValue'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){if(c.__markCompiled)c.__markCompiled();var p,q;'use strict';var r=[];o(r);var s={};o(s);var t={};p=babelHelpers.inherits(u,h);q=p&&p.prototype;function u(){q.constructor.call(this);this.$AdsImageStore1={};this.$AdsImageStore2=new m();}u.prototype.getDataManager=function(){return j;};u.prototype.onDispatchToken=function(w){var x=w.action;switch(x.actionType){case i.BATCH_LOADED:this.__handleData(x.images,l.LOADED);break;case i.BATCH_LOAD_ERROR:this.__handleData(x.errors,l.ERROR);break;case i.LOAD_IMAGES_SUCCESS:this.$AdsImageStore3(x.accountID,x.images);this.$AdsImageStore2.set(x.accountID,{loadNextPage:x.loadNextPage,isLoadingNextPage:false});this.inform('change');break;case i.LOAD_DIMENSION_SUCCESS:var y={width:x.width,height:x.height};o(y);t[x.url]=y;this.inform('change');break;case i.LOAD_DIMENSION_ERROR:delete t[x.url];this.inform('change');break;case i.LOAD_NEXT_PAGE:if(this.$AdsImageStore4(x.accountID))this.inform('change');break;case i.LIST_LOADED:var z=x.images,aa=new m();z.forEach(function(ba){return aa.set(ba.hash,ba);});this.__handleData(aa,l.LOADED);break;default:return;}};u.prototype.getOneFor=function(w,x){return this.getAllFor(w,[x]).get(x);};u.prototype.getAllFor=function(w,x){var y=this.__updateLoading(x);if(y.length>0)j.loadAllFor(w,y);return this.getAllCached(x);};u.prototype.getImages_DEPRECATED=function(w,x){var y=this.$AdsImageStore1[w];if(y===s)return r;if(y)return y.list;this.$AdsImageStore1[w]=s;if(x){k.loadPagedImagesForAccountID(w);}else k.loadAllImagesForAccountID(w);return r;};u.prototype.getImageByHash_DEPRECATED=function(w,x){var y=this.$AdsImageStore1[w];if(y===s)return null;if(!y){this.getImages_DEPRECATED(w);return null;}var z=y.map[x];if(z===s)return null;if(typeof z==='number')return y.list[z];y.map[x]=s;k.loadAllImagesForAccountID(w,[x]);return null;};u.prototype.getImageDimensionsByURL=function(w){var x=t[w];if(x)return x===s?null:x;t[w]=s;k.loadImageDimensionsForURL(w);return null;};u.prototype.$AdsImageStore3=function(w,x){var y=this.$AdsImageStore1[w];if(!(y&&y!==s))y={list:[],map:{}};x.forEach(n(this.$AdsImageStore5,y.list,y.map));this.$AdsImageStore1[w]=y;};u.prototype.$AdsImageStore5=function(w,x,y){if(y.url&&y.width&&y.height){var z={width:y.width,height:y.height};o(z);t[y.url]=z;}var aa=v(y),ba=x[aa];if(typeof ba==='number'){w[ba]=y;}else{w.push(y);ba=w.length-1;x[aa]=ba;}};u.prototype.$AdsImageStore4=function(w){var x=this.$AdsImageStore2.get(w);if(!x)return false;if(!x.isLoadingNextPage&&x.loadNextPage){x.loadNextPage();x.isLoadingNextPage=true;return true;}return false;};u.prototype.isFetchingNextPage=function(w){var x=this.$AdsImageStore2.get(w);if(!x)return false;return x.isLoadingNextPage;};u.prototype.hasCursorForNextPage=function(w){var x=this.$AdsImageStore2.get(w);if(!x)return false;return !!x.loadNextPage;};u.prototype.getImageDataFromHash=function(w,x){var y='',z=x?this.getImageByHash_DEPRECATED(w,x):null;if(z)y=z.url||z.url_128||y;return {dimensions:y?this.getImageDimensionsByURL(y):null,url:y};};function v(w){if(w.stockImageID)return w.stockImageID;return w.hash||w.url;}f.exports=new u();},null);
__d('AdsCFValidateUtils',['AdImageSpecs','AdsAPIObjectives','AdsAPISpec','AdsBidOptions','AdsCallToActionTypes','AdsCFAccountStore','AdsCFActionTypes','AdsCFBidUtils','AdsCFCampaignUtils','AdsCFCreativeProperties','AdsCFCreativeUtils','AdsCFCreativeValidator','AdsCFDestinationStore','AdsCFErrorCode','AdsCFObjectiveStore','AdsCreationConfig','AdsCreativeDelegate','AdsCurrencyFormatter','AdsDispatcher','AdsImageLegacy','AdsImageStore','adsGKCheck','arrayContains','dotAccess','removeFromArray','fbt','ads-lib-urllib'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha){'use strict';if(c.__markCompiled)c.__markCompiled();var ia=u.errorCodeMap,ja=j.CREATIVE_FIELDS_MAP,ka=j.CREATIVE_FIELDS_OVERRIDE_MAP,la={actor:ia.MISSING_ACTOR,body:ia.EMPTY_BODY,imageUrl:ia.EMPTY_IMAGE_URL,imageList:ia.EMPTY_IMAGE_URL,linkUrl:ia.MISSING_LINK_URL,objectId:ia.MISSING_DESTINATION,storyId:ia.MISSING_STORY_ID,title:ia.MISSING_TITLE,videoId:ia.MISSING_VIDEO_ID,videoThumbnail:ia.MISSING_VIDEO_THUMBNAIL,callToActionLink:ia.MISSING_VIDEO_CTA_LINK};function ma(pa,qa,ra){var sa=v.getAPIObjective(),ta=pa.creativeType,ua=q.requiredFieldsForType(ta).slice(0),va=[];if(ra){va=['objectId','storyId'];}else if(pa.isMPA){va=['actor','body','linkUrl','childAttachments'];}else if(da(ua,'MULTI_IMAGE_OR_VIDEO')){fa(ua,'MULTI_IMAGE_OR_VIDEO');if(r.isVideoCreative(pa)){va.push('videoId');va.push('videoThumbnail');}else va.push('MULTI_IMAGE');va=Array.prototype.concat(ua,va);}else{if(r.hasVideoCTA(pa))va.push('callToActionLink');va=Array.prototype.concat(ua,va);}var wa=q.validFieldsForType(ta),xa={body:[],title:[]};va.forEach(function(ya){if(ya==='MULTI_IMAGE'){var za=pa.imageList,ab=pa.imageUrl||pa.imageHash||za&&za.length;if(!ab){qa[ia.EMPTY_IMAGE_URL]=ga._("Please choose an image for your ad.");}else if(za&&za.length)za.some(function(eb){var fb=eb.getValidationMap();return Object.keys(fb).some(function(gb){if(eb.hasValidationError(gb)){qa[ia.INVALID_AD_IMAGE_SIZE]=ga._("You are using an image that does not meet size requirements. Please adjust the size of your image or select a different one.");return true;}});});return;}else if(ya==='actor'&&sa===i.EVENT_RESPONSES){var bb=x.get(sa).isLPPAd(pa);if(!bb)return;}else if(ya==='childAttachments')pa.childAttachments.forEach(function(eb,fb){if(!eb.link){if(!qa[ia.MISSING_CHILD_LINK_URL])qa[ia.MISSING_CHILD_LINK_URL]=ga._({"*":"The link of item {itemIndex} is missing. Add that link to your ad."},[ga.param('itemIndex',fb+1,[0])]);}else if(eb.link.length>w.maxURLLength){if(!qa[ia.LONG_CHILD_LINK_URL])qa[ia.LONG_CHILD_LINK_URL]=ga._({"*":{"*":"The link of item {itemIndex} is too long. The max length is {maxUrlLength} characters. Use a shorter link."}},[ga.param('itemIndex',fb+1,[0]),ga.param('maxUrlLength',w.maxURLLength,[0])]);}else if(!ha.isUrl(eb.link))if(!qa[ia.INVALID_CHILD_LINK_URL])qa[ia.INVALID_CHILD_LINK_URL]=ga._({"*":"The link of item {itemIndex} isn't properly formatted and won't link to your website. Update the link so it will send people to your website."},[ga.param('itemIndex',fb+1,[0])]);if(!qa[ia.INVALID_AD_IMAGE_SIZE]){var gb=null;if(eb.image_hash){var hb=ba.getOneFor(m.getAccountID(),eb.image_hash);if(hb&&!(hb instanceof String))gb=hb;}gb=gb||{url:eb.picture};var ib=new aa(gb);ib.validateNow(h.PAGE_POST_MULTI_PRODUCT);var jb=ib.getValidationMap();Object.keys(jb).some(function(kb){if(ib.hasValidationError(kb)){qa[ia.INVALID_AD_IMAGE_SIZE]=ga._({"*":"You are using an image that does not meet size requirements. Please adjust the size of your image or select a different one for item {itemIndex}."},[ga.param('itemIndex',fb+1,[0])]);return true;}});}});if(Array.isArray(ya)){for(var cb=0;cb<ya.length;cb++)if(pa[ya[cb]])return;ya=ya[0];}if(!pa[ya]){var db=ka[ya]||ja[ya];if(db)qa[la[ya]]=db;}});wa.map(function(ya){var za=pa[ya];if(!za)return;switch(ya){case 'body':xa.body=s.validateBody(za,ta,qa);break;case 'title':xa.title=pa.isMPA?[]:s.validateTitle(za,qa);break;case 'linkDescription':xa.linkDescription=s.validateLinkDescription(za,qa);break;case 'callToActionType':if(za===l.TYPES.CALL_NOW.name){if(pa.callNowPhoneNumberView)s.validateCallNowPhoneNumber(pa.callNowPhoneNumberView,qa);}else if(za===l.TYPES.MESSAGE_PAGE.name){var ab=t.getDestinationDetails();s.validateMessagePageCTA(ab.canReceiveMessage,qa);}break;default:break;}});}function na(){z.handleUpdateFromViewAction({type:n.CODE_MAP_RESET});}function oa(pa){z.handleUpdateFromViewAction({errors:pa,type:n.CODE_MAP_CHANGE});}f.exports={clearValidationErrors:na,onValidationErrors:oa,validateCreative_DEPRECATED:ma};},null);
__d('AdsVideoUploadStatus',['keyMirror'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=h({BROWSE:null,ENCODING:null,ERROR:null,NONE:null,UPLOADING:null,IMAGES_SELECTED:null});f.exports=i;},null);
__d('BoostedComponentAdApprovalPreTestStates',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={NO_WARNING:0,WARNING_FOR_INTEGRITY_API:1,WARNING_FOR_TEXT_POLICY:2};f.exports=h;},null);
__d('BoostedComponentCreativePlacement',['AdsPageTypes','ApiCreativeTypes','AdCreativeType'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=c('AdCreativeType').AD_CREATIVE_TYPE,k={STANDARD:[h.DESKTOP_FEED,h.MOBILE_FEED],INLINE_FAN:[h.DESKTOP_FEED,h.MOBILE_FEED,h.RIGHT_COLUMN],getPlacement:function(l){switch(l){case i.INLINE_FAN:return k.INLINE_FAN;default:return k.STANDARD;}},getPlacementForCreative:function(l){var m=!!(l.creativeType===j.AD_VIDEO||l.isVideoCreative);return (m?k.STANDARD:k.INLINE_FAN);}};f.exports=k;},null);
__d('BoostedComponentMultiAdsConstants',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={MIN_PRODUCT_NUM:1,MAX_PRODUCT_NUM:5};f.exports=h;},null);
__d('BoostedComponentCreativeValidator',['AdImageSpecsUtils','AdsCFCreativeValidator','AdsCallToActionTypes','AdsCallToActionUtils','AdsImageValidation','ApiAdCreativeFields','ApiAdCreativeStorySpecFields','ApiCallToActionFields','ApiCreativeTypes','ApiObjectStorySpecLinkFields','BoostedComponentAppID','BoostedComponentCreativeCategory','BoostedComponentCreativePlacement','BoostedComponentMultiAdsConstants','BoostedComponentStrings','BoostedComponentValidator','CallToActionValueFields','URI','isFacebookURI','isEmpty','getByPath','ads-lib-urllib'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca){if(c.__markCompiled)c.__markCompiled();var da,ea;'use strict';da=babelHelpers.inherits(fa,w);ea=da&&da.prototype;function fa(ga,ha,ia,ja,ka){ea.constructor.call(this);this.$BoostedComponentCreativeValidator1=ga;this.$BoostedComponentCreativeValidator2=ha;this.$BoostedComponentCreativeValidator3=ia;this.$BoostedComponentCreativeValidator4=ja;this.$BoostedComponentCreativeValidator5=ka;}fa.prototype.validateImage=function(){if(this.$BoostedComponentCreativeValidator1.getCreativeCategory()===s.VIDEO)return null;if(!this.$BoostedComponentCreativeValidator1.getImageURL()&&!this.$BoostedComponentCreativeValidator1.getImageHash())return v.NO_IMAGE_ERROR;var ga=this.$BoostedComponentCreativeValidator1.getCreativeType(),ha=t.getPlacement(ga),ia=h.getCropImageSpecsForAdType(ga,ha),ja=this.$BoostedComponentCreativeValidator1.getImageLegacy(),ka=null;if(ja)ia.forEach(function(la){l.validateNow(ja,la);var ma=ja.validationMap[la.placement];if(ma){ka=ma.errorMessage;return true;}});return ka;};fa.prototype.validateBody=function(ga){var ha={};if(!ga&&this.$BoostedComponentCreativeValidator1)ga=this.$BoostedComponentCreativeValidator1.getBody();if(this.$BoostedComponentCreativeValidator2&&this.$BoostedComponentCreativeValidator2.getAppID()===r.BOOSTED_PAGELIKE)if(!ga||ga==="")ha[0]=v.NO_CREATIVE_BODY_ERROR;if(ga!==null&&ga!==undefined)i.validateBody(ga,p.STANDARD,ha);return ha;};fa.prototype.validateCallToAction=function(){var ga={};if(this.$BoostedComponentCreativeValidator1.getCallToActionError())ga[0]=this.$BoostedComponentCreativeValidator1.getCallToActionError();if(this.$BoostedComponentCreativeValidator1.getCallToActionType()===j.TYPES.CALL_NOW.name)if(this.$BoostedComponentCreativeValidator3&&this.$BoostedComponentCreativeValidator4){var ha=this.$BoostedComponentCreativeValidator3.getMinAge(),ia=this.$BoostedComponentCreativeValidator4.getMinCallNowAge();if(ha<ia)ga[0]=v.getCallToActionAgeTooLowError(ia);}if(this.$BoostedComponentCreativeValidator1.getCallToActionType()===j.TYPES.GET_DIRECTIONS.name){var ja=ba(this.$BoostedComponentCreativeValidator1.getCallToAction(),[o.VALUE,x.LINK]);if(!k.isValidGeoLink(ja))ga.noValidGeoLink=v.CALL_TO_ACTION_ADDRESS_INVALID;}return ga;};fa.prototype.validateLinkData=function(){return [].concat(this.$BoostedComponentCreativeValidator6(this.validateLinkDataURL()),this.$BoostedComponentCreativeValidator6(this.validateLinkDataName()),this.$BoostedComponentCreativeValidator6(this.validateLinkDataMessage()));};fa.prototype.validateProductsData=function(){var ga=ba(this.$BoostedComponentCreativeValidator1.getCreativeSpec(),[m.OBJECT_STORY_SPEC,n.LINK_DATA,q.CHILD_ATTACHMENTS]),ha=[];if(!ga)return [];if(ga.length>0)for(var ia=0;ia<ga.length;ia++)if(aa(ga[ia])){ha[ia]=v.getMultiAdsNoItemError(ia);}else{var ja=this.validateLinkDataName(ga[ia].name);if(!aa(ja))ha[ia]=v.getMultiAdsError(ia);}if(ga.length>1&&this.$BoostedComponentCreativeValidator2){var ka=this.$BoostedComponentCreativeValidator1.getStorySpecLinkData();if(ka&&ka[q.LINK]){var la=new y(ka[q.LINK]);if(z(la))ha.push(v.INVALID_FBURL_ERROR);}}for(var ma=ga.length;ma<u.MIN_PRODUCT_NUM;ma++)ha[ma]=v.getMultiAdsNoItemError(ma);return ha;};fa.prototype.validateLinkDataURL=function(ga){var ha={};if(!ga&&this.$BoostedComponentCreativeValidator1){var ia=this.$BoostedComponentCreativeValidator1.getStorySpecLinkData();if(ia){ga=ia[q.LINK];}else return {};}if(!ga){ha[0]=v.INVALID_URL_ERROR;}else if(!ca.isUrl(ga)){ha[0]=v.INVALID_URL_ERROR;}else if(this.$BoostedComponentCreativeValidator5&&!this.$BoostedComponentCreativeValidator5.getShouldEdit()&&z(new y(ga)))switch(this.$BoostedComponentCreativeValidator2.getAppID()){case r.BOOSTED_CCTA:ha[0]=v.INVALID_CTA_FBURL_ERROR;break;case r.BOOSTED_WEBSITE:ha[0]=v.INVALID_FBURL_ERROR;break;}return ha;};fa.prototype.validateLinkDataName=function(ga){var ha={};if(!ga&&this.$BoostedComponentCreativeValidator1){var ia=this.$BoostedComponentCreativeValidator1.getStorySpecLinkData();if(ia&&ia[q.NAME])ga=ia[q.NAME];}if(ga!==null&&ga!==undefined)i.validateTitle(ga,ha);return ha;};fa.prototype.validateLinkDataMessage=function(ga){var ha={};if(!ga&&this.$BoostedComponentCreativeValidator1){var ia=this.$BoostedComponentCreativeValidator1.getStorySpecLinkData();if(ia&&ia[q.MESSAGE])ga=ia[q.MESSAGE];}if(ga!==null&&ga!==undefined)i.validateBody(ga,p.STANDARD,ha);return ha;};fa.prototype.validateVideo=function(){var ga=null;if(this.$BoostedComponentCreativeValidator1.getCreativeCategory()===s.IMAGE)return null;if(this.$BoostedComponentCreativeValidator1.getVideoUploadError())return v.VIDEO_UPLOAD_ERROR;if(!this.$BoostedComponentCreativeValidator1.hasVideoCreative())ga=v.NO_VIDEO_ERROR;return ga;};fa.prototype.isValidating=function(){return this.$BoostedComponentCreativeValidator1.isValidatingCallToAction();};fa.prototype.isValid=function(){return !this.hasErrors()&&!this.isValidating();};fa.prototype.hasErrors=function(){var ga=this.getErrors();return ga&&ga.length>0;};fa.prototype.getErrors=function(){if(this.$BoostedComponentCreativeValidator2.getAppID()===r.BOOSTED_POST||this.$BoostedComponentCreativeValidator2.getAppID()===r.BOOSTED_EVENT||this.$BoostedComponentCreativeValidator2.getAppID()===r.BOOSTED_PRODUCT)return null;var ga=[],ha=this.validateBody(),ia=this.validateImage(),ja=this.validateLinkData(),ka=this.validateProductsData(),la=this.$BoostedComponentCreativeValidator6(this.validateCallToAction()),ma=this.validateVideo();if(ha)ga=ga.concat(this.$BoostedComponentCreativeValidator6(ha));if(ia)ga.push(ia);if(ja)ga=ga.concat(ja);if(ka)ga=ga.concat(ka);if(la)ga=ga.concat(la);if(ma)ga.push(ma);return ga;};fa.prototype.$BoostedComponentCreativeValidator6=function(ga){if(!ga)return [];var ha=Object.keys(ga),ia=ha.length;for(var ja=0;ja<ia;++ja)ha[ja]=ga[ha[ja]];return ha;};f.exports=fa;},null);
__d('BoostedComponentMediaLoader',['AdsVideoFetcher','BoostedComponentClientEvent','Promise'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();function k(l){this.$BoostedComponentMediaLoader1=l;}k.prototype.fetchAdAccountAndPageVideos=function(l,m){var n=[h.promiseAdAccountVideos(l)];if(m)n.unshift(h.promisePageVideos(m));j.all(n).then(function(o){return Array.prototype.concat.apply([],o);}).done((function(o){this.$BoostedComponentMediaLoader1.handleUpdateFromServerResponse({actionType:i.UPDATE_VIDEO_LIBRARY,videoData:o});}).bind(this));};f.exports=k;},null);
__d('AdsVideoUploadEvents',['keyMirror'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=h({UPLOAD_SUCCESS:null,UPLOAD_ERROR:null,UPLOAD_PROGRESS:null,ENCODING_SUCCESS:null,ENCODING_ERROR:null});f.exports=i;},null);
__d('AdsVideoEncodingAsyncNotifier',['AdsVideoFetcher','ApiVideoStatuses'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=1000;function k(l){this.$AdsVideoEncodingAsyncNotifier1=l;this.$AdsVideoEncodingAsyncNotifier2=0;}k.prototype.start=function(){this.$AdsVideoEncodingAsyncNotifier3=Date.now();this.$AdsVideoEncodingAsyncNotifier4();};k.prototype.getEncodingElapsedTime=function(){return this.$AdsVideoEncodingAsyncNotifier5;};k.prototype.setOnStatusUpdateListener=function(l){this.$AdsVideoEncodingAsyncNotifier6=l;};k.prototype.setOnFailedListener=function(l){this.$AdsVideoEncodingAsyncNotifier7=l;};k.prototype.setOnSuccessListener=function(l){this.$AdsVideoEncodingAsyncNotifier8=l;};k.prototype.$AdsVideoEncodingAsyncNotifier4=function(){var l=this.$AdsVideoEncodingAsyncNotifier2+j,m=Math.max(0,l-Date.now());setTimeout((function(){return this.$AdsVideoEncodingAsyncNotifier9();}).bind(this),m);};k.prototype.$AdsVideoEncodingAsyncNotifier9=function(){this.$AdsVideoEncodingAsyncNotifier2=Date.now();h.promiseVideoStatus(this.$AdsVideoEncodingAsyncNotifier1).done((function(l){return this.$AdsVideoEncodingAsyncNotifier10(l);}).bind(this));};k.prototype.$AdsVideoEncodingAsyncNotifier10=function(l){var m=l.video_status||l;if(m===i.PROCESSING){this.$AdsVideoEncodingAsyncNotifier6();this.$AdsVideoEncodingAsyncNotifier4();}else if(m===i.ERROR){this.$AdsVideoEncodingAsyncNotifier7();}else if(m===i.READY)h.promiseSingleVideo(this.$AdsVideoEncodingAsyncNotifier1).done((function(n){this.$AdsVideoEncodingAsyncNotifier5=Date.now()-this.$AdsVideoEncodingAsyncNotifier3;this.$AdsVideoEncodingAsyncNotifier8(n);}).bind(this));};f.exports=k;},null);
__d('AdsVideoUploadAsyncRequest',['AsyncResponse','emptyFunction','fbt','forEachObject'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();function l(){this.$AdsVideoUploadAsyncRequest1={};this.$AdsVideoUploadAsyncRequest2={};this.$AdsVideoUploadAsyncRequest3=null;this.$AdsVideoUploadAsyncRequest4=i;this.$AdsVideoUploadAsyncRequest5=i;this.$AdsVideoUploadAsyncRequest6=i;this.$AdsVideoUploadAsyncRequest7=i;}l.prototype.setURI=function(m){this.$AdsVideoUploadAsyncRequest8=m;return this;};l.prototype.setData=function(m){this.$AdsVideoUploadAsyncRequest1=m;return this;};l.prototype.setRawData=function(m){this.$AdsVideoUploadAsyncRequest3=m;return this;};l.prototype.setRequestHeader=function(m,n){this.$AdsVideoUploadAsyncRequest2[m]=n;return this;};l.prototype.setHandler=function(m){this.$AdsVideoUploadAsyncRequest4=m;return this;};l.prototype.setErrorHandler=function(m){this.$AdsVideoUploadAsyncRequest9=m;return this;};l.prototype.setTransportErrorHandler=function(m){this.$AdsVideoUploadAsyncRequest6=m;return this;};l.prototype.setUploadProgressHandler=function(m){this.$AdsVideoUploadAsyncRequest7=m;return this;};l.prototype.setAllowCrossOrigin=function(m){return this;};l.prototype.send=function(){this.$AdsVideoUploadAsyncRequest10=new XMLHttpRequest();this.$AdsVideoUploadAsyncRequest11();this.$AdsVideoUploadAsyncRequest10.open('POST',this.$AdsVideoUploadAsyncRequest8,true);var m=this.$AdsVideoUploadAsyncRequest10;k(this.$AdsVideoUploadAsyncRequest2,function(n,o){m.setRequestHeader(o,n);});this.$AdsVideoUploadAsyncRequest10.send(this.$AdsVideoUploadAsyncRequest12());};l.prototype.abort=function(){this.$AdsVideoUploadAsyncRequest13();this.$AdsVideoUploadAsyncRequest10.abort();};l.prototype.$AdsVideoUploadAsyncRequest11=function(){this.$AdsVideoUploadAsyncRequest10.addEventListener('load',(function(event){return this.$AdsVideoUploadAsyncRequest14(event);}).bind(this));this.$AdsVideoUploadAsyncRequest10.addEventListener('error',(function(event){return this.$AdsVideoUploadAsyncRequest15(event);}).bind(this));this.$AdsVideoUploadAsyncRequest10.upload.addEventListener('progress',(function(event){return this.$AdsVideoUploadAsyncRequest16(event);}).bind(this));};l.prototype.$AdsVideoUploadAsyncRequest14=function(event){var m=JSON.parse(this.$AdsVideoUploadAsyncRequest10.responseText),n=new h(null,m);if(this.$AdsVideoUploadAsyncRequest17(this.$AdsVideoUploadAsyncRequest10.status)){this.$AdsVideoUploadAsyncRequest4(n);}else{var o=1,p=j._("An unknown error occurred"),q=null,r=false,s=null;if(s=m.error){o=s.error_subcode||s.code;p=s.error_user_title||s.message;q=s.error_user_msg;if(q)q+=' (#'+o+') ';r=s.is_transient;}else if(m.error_code!=null){o=m.error_code;p=m.error_msg;}if(!q)q=p;Object.assign(n,{error:o,errorSummary:p,errorDescription:q,transientError:r});this.$AdsVideoUploadAsyncRequest9(n);}};l.prototype.$AdsVideoUploadAsyncRequest15=function(event){var m=JSON.parse(this.$AdsVideoUploadAsyncRequest10.responseText),n=new h(null,m);if(navigator.onLine){var o=j._("Something went wrong. We're working on getting this fixed as soon as we can. You may be able to try again.");Object.assign(n,{error:1004,errorSummary:o,errorDescription:o,transientError:true});}else{n.setError(1006);var p=j._("The browser went offline");Object.assign(n,{error:1006,errorSummary:p,errorDescription:p,transientError:true});n.setErrorDescription(o);n.setErrorSummary(o);}this.$AdsVideoUploadAsyncRequest6(n);};l.prototype.$AdsVideoUploadAsyncRequest16=function(event){this.$AdsVideoUploadAsyncRequest7(event);};l.prototype.$AdsVideoUploadAsyncRequest13=function(){this.$AdsVideoUploadAsyncRequest10.removeEventListener('load',this.__successHandler);this.$AdsVideoUploadAsyncRequest10.removeEventListener('error',this.__errorHandler);this.$AdsVideoUploadAsyncRequest10.upload.removeEventListener('progress',this.__uploadProgressHandler);};l.prototype.$AdsVideoUploadAsyncRequest17=function(m){return m>=200&&m<=299;};l.prototype.$AdsVideoUploadAsyncRequest12=function(){var m=this.$AdsVideoUploadAsyncRequest3===null?new FormData():this.$AdsVideoUploadAsyncRequest3;k(this.$AdsVideoUploadAsyncRequest1,function(n,o){m.append(o,n);});return m;};f.exports=l;},null);
__d('AdsVideoUploadRequest',['AdsVideoUploadAsyncRequest','VideoUploadRequest'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.prototype.__getAsyncRequest=function(){return new h();};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsVideoUploadReceiveRequestManager',['AdsVideoUploadRequest','VideoUploadReceiveRequestManager'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.prototype.__getVideoUploadRequest=function(m){return new h(m);};l.prototype.__createRequestData=function(m){return {start_offset:m.getStartOffset(),waterfall_id:m.getWaterfallID(),upload_session_id:m.getChunkSessionID(),upload_phase:'transfer'};};l.prototype.__handleSuccessResponse=function(m){var n=m.getPayload();n.start_offset=parseInt(n.start_offset,10);n.end_offset=parseInt(n.end_offset,10);k.__handleSuccessResponse.call(this,m);};l.prototype.__handleServerFailureResponse=function(m){if(k.__hasInvalidStartOffsetAndHasRetries.call(this,m.getError())){var n=m.getPayload();n.start_offset=n.error.error_data.start_offset;n.end_offset=n.error.error_data.end_offset;}k.__handleServerFailureResponse.call(this,m);};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsVideoUploadRequestContext',['VideoUploadRequestContext'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i,j;'use strict';i=babelHelpers.inherits(k,h);j=i&&i.prototype;k.prototype.setChunkSessionID=function(l){this.$AdsVideoUploadRequestContext1=l;return this;};k.prototype.getChunkSessionID=function(){return this.$AdsVideoUploadRequestContext1;};k.prototype.reset=function(){j.reset.call(this);this.$AdsVideoUploadRequestContext1=null;};function k(){i.apply(this,arguments);}f.exports=k;},null);
__d('AdsVideoUploadStartRequestManager',['AdsVideoUploadRequest','VideoUploadStartRequestManager'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,i);k=j&&j.prototype;l.prototype.__getVideoUploadRequest=function(m){return new h(m);};l.prototype.__getDataToSend=function(m){return {file_size:m.getFile().getSize(),waterfall_id:m.getWaterfallID(),upload_phase:'start'};};l.prototype.__getSuccessInformData=function(m){return {session_id:m.upload_session_id,video_id:m.video_id,start_offset:parseInt(m.start_offset,10),end_offset:parseInt(m.end_offset,10)};};function l(){j.apply(this,arguments);}f.exports=l;},null);
__d('AdsVideoUploadUtil',['ads-lib-connect_DEPRECATED','URI','invariant'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=h.FB,l='/v2.3',m={getVideoTitle:function(n){var o=n.value;if(!o)return o;var p=o.lastIndexOf('\\');if(p===-1)p=o.lastIndexOf('/');return p===-1?o:o.substring(p+1);},getPostEndpoint:function(n,o,p){var q=new i(k.url(l+'/act_'+o+'/advideos',p?{title:p}:null,n));!(q.getSubdomain()==='graph')?j(0):undefined;q.setSubdomain('graph-video');return q.toString();}};f.exports=m;},null);
__d('AdsVideoUploadPostRequestManager',['VideoUploadPostRequestManager','AdsVideoUploadRequest','AdsVideoUploadUtil'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';k=babelHelpers.inherits(m,h);l=k&&k.prototype;m.prototype.__getVideoUploadRequest=function(n){return new i(n);};m.prototype.__createRequestData=function(n){return {waterfall_id:n.getWaterfallID(),upload_session_id:n.getChunkSessionID(),upload_phase:'finish',title:j.getVideoTitle(n.getFile().getFileInput())};};function m(){k.apply(this,arguments);}f.exports=m;},null);
__d('AdsVideoUploadSession',['AdsVideoEncodingAsyncNotifier','AdsVideoUploadEvents','AdsVideoUploadReceiveRequestManager','AdsVideoUploadRequestContext','AdsVideoUploadStartRequestManager','AdsVideoUploadPostRequestManager','VideoUploadLogger','VideoUploadSession'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){if(c.__markCompiled)c.__markCompiled();var p,q;'use strict';p=babelHelpers.inherits(r,o);q=p&&p.prototype;r.prototype.start=function(s){this.$AdsVideoUploadSession1=false;q.start.call(this,s);};r.prototype.cancel=function(){this.$AdsVideoUploadSession1=true;q.cancel.call(this);};r.prototype.abandon=function(){this.$AdsVideoUploadSession1=true;q.abandon.call(this);};r.prototype.getEncodingTime=function(){return this.$AdsVideoUploadSession2.getEncodingElapsedTime();};r.prototype.__handlePostRequestFinished=function(event,s){q.__handlePostRequestFinished.call(this,event,s);this.$AdsVideoUploadSession3=false;this.$AdsVideoUploadSession4=false;this.$AdsVideoUploadSession2=new h(this.getVideoID());this.$AdsVideoUploadSession2.setOnStatusUpdateListener((function(){return this.$AdsVideoUploadSession5();}).bind(this));this.$AdsVideoUploadSession2.setOnFailedListener((function(){return this.$AdsVideoUploadSession6();}).bind(this));this.$AdsVideoUploadSession2.setOnSuccessListener((function(t){return this.$AdsVideoUploadSession7(t);}).bind(this));this.$AdsVideoUploadSession2.start();};r.prototype.__createReceiveRequestContext=function(s){var t=new k();this.__setupReceiveRequestContext(t,s);return t;};r.prototype.__setupReceiveRequestContext=function(s,t){q.__setupReceiveRequestContext.call(this,s,t,false);this.$AdsVideoUploadSession8=t.session_id;s.setChunkSessionID(this.$AdsVideoUploadSession8);};r.prototype.__createPostRequestContext=function(s){var t=new k();this.__setupPostRequestContext(t,s);return t;};r.prototype.__setupPostRequestContext=function(s,t){q.__setupPostRequestContext.call(this,s,t);s.setChunkSessionID(this.$AdsVideoUploadSession8);};r.prototype.$AdsVideoUploadSession7=function(s){if(this.$AdsVideoUploadSession1){this.__logEvent(n.EVENT_ENCODING_FAIL_OBSERVED);return;}if(!this.$AdsVideoUploadSession3){this.$AdsVideoUploadSession3=true;this.__logEvent(n.EVENT_ENCODING_SUCCESS_OBSERVED,{elapsed_time:Math.round(this.getEncodingTime())});this.inform(i.ENCODING_SUCCESS,s);}};r.prototype.$AdsVideoUploadSession5=function(){if(this.$AdsVideoUploadSession1){this.__logEvent(n.EVENT_ENCODING_FAIL_OBSERVED);return;}if(!this.$AdsVideoUploadSession4){this.__logEvent(n.EVENT_ENCODING_START_OBSERVED);this.$AdsVideoUploadSession4=true;}};r.prototype.$AdsVideoUploadSession6=function(){this.__logEvent(n.EVENT_ENCODING_FAIL_OBSERVED);this.inform(i.ENCODING_ERROR);};r.prototype.__getVideoUploadStartRequestManager=function(s){return new l(s,0,0,false,0,0,0);};r.prototype.__getVideoUploadReceiveRequestManager=function(s,t){return new j(s,t.max_transport_retries,t.max_server_retries,false,0,0,t.transport_retry_interval_base,t.server_retry_interval_base,false);};r.prototype.__getVideoUploadPostRequestManager=function(s){return new m(s,0,0,0,0);};function r(){p.apply(this,arguments);}f.exports=r;},null);
__d('AdsVideoChunkedUploader',['AdsVideoUploadEvents','AdsVideoUploadSession','AdsVideoUploadUtil','URI','VideoUploader','VideoUploadProgressBar','adsGKCheck'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o,p,q='/v2.3',r='graph-video';o=babelHelpers.inherits(s,l);p=o&&o.prototype;function s(t){'use strict';var u=t.config,v=new k(q+'/act_'+t.target_id+'/advideos?'+'access_token='+t.access_token).setSubdomain(r).toString(),w={start_uri:v,receive_uri:v,post_uri:v,chunk_start_uri:v,chunk_receive_uri:v,chunk_post_uri:v,min_size:u.minSize,min_width:u.minWidth,min_height:u.minHeight,min_length:u.minLength,max_size:Number.MAX_VALUE,max_length:Number.MAX_VALUE,extensions:u.extensions,logging_delay:u.loggingDelay,max_transport_retries:u.maxTransportRetries,transport_retry_interval_base:u.transportRetryIntervalBase,max_server_retries:u.maxServerRetries,server_retry_interval_base:u.serverRetryIntervalBase,source:t.source,target_id:'act_'+t.target_id,target_type:t.target_type};p.constructor.call(this,w);}s.prototype.getUploadTime=function(){'use strict';if(this.__getSession()!==null)return this.__getSession().getUploadTime();return null;};s.prototype.getEncodingTime=function(){'use strict';if(this.__getSession()!==null)return this.__getSession().getEncodingTime();return null;};s.prototype.abort=function(){'use strict';this.cancel();};s.prototype.upload=function(t){'use strict';var u=t.getFileInput();this.$AdsVideoChunkedUploader1=j.getVideoTitle(u);p.upload.call(this,t);};s.prototype.__getVideoUploadSession=function(t){'use strict';return new i(t);};s.prototype.getVideoTitle=function(){'use strict';return this.$AdsVideoChunkedUploader1;};s.prototype.__createSession=function(t){'use strict';return new i(t);};s.prototype.__getEventsWhichShouldListenFromSession=function(){'use strict';var t=p.__getEventsWhichShouldListenFromSession.call(this);t.push(h.ENCODING_SUCCESS,h.ENCODING_ERROR);return t;};s.prototype.__getEventsForWhichSessionShouldBeSetToNull=function(){'use strict';return ['upload-failed',h.ENCODING_SUCCESS,h.ENCODING_ERROR];};s.prototype.__delegateEvent=function(event,t){'use strict';if(event==='upload-progressed'){var u=m.computeProgress(t.start_offset,t.sent_bytes,t.file_size,0,0);t=u/100;}else if(event==='upload-finished'){this.post({});}else if(event==='post-finished'){t=t.video_id;}else if(event==='post-failed')event='upload-failed';p.__delegateEvent.call(this,event,t);};f.exports=s;},null);
__d('AdsVideoUploadErrorTypes',['keyMirror'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=h({CONNECTION:null,API:null});f.exports=i;},null);
__d('AdsVideoUploader',['AdsVideoEncodingAsyncNotifier','AdsVideoUploadEvents','AdsVideoUploadErrorTypes','AdsVideoUploadUtil','ArbiterMixin','Stopwatch','VideoUploadLogger','WaterfallIDGenerator','curry','mixin'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){if(c.__markCompiled)c.__markCompiled();var r,s;'use strict';function t(v){return v>=200&&v<=299;}r=babelHelpers.inherits(u,q(l));s=r&&r.prototype;function u(v,w,x){s.constructor.call(this);this.$AdsVideoUploader1=v;this.$AdsVideoUploader2=w;this.$AdsVideoUploader3=this.$AdsVideoUploader3.bind(this);this.$AdsVideoUploader4=this.$AdsVideoUploader4.bind(this);this.$AdsVideoUploader5=this.$AdsVideoUploader5.bind(this);this.$AdsVideoUploader6=0;this.$AdsVideoUploader7=null;this.$AdsVideoUploader8=null;this.$AdsVideoUploader9=x;}u.prototype.upload=function(v){var w=v.getFileInput();this.$AdsVideoUploader10=k.getVideoTitle(w);var x=k.getPostEndpoint(this.$AdsVideoUploader2,this.$AdsVideoUploader1,this.$AdsVideoUploader10);this.$AdsVideoUploader11=o.generate();this.$AdsVideoUploader12=v;this.$AdsVideoUploader13=new n({source:this.$AdsVideoUploader9,waterfall_id:this.$AdsVideoUploader11,target_id:'act_'+this.$AdsVideoUploader1,delay:1000,is_chunked_upload:false});this.$AdsVideoUploader14=new m();this.$AdsVideoUploader15=new XMLHttpRequest();this.$AdsVideoUploader16();this.$AdsVideoUploader17(n.EVENT_STARTED_UPLOADING);this.$AdsVideoUploader15.open('POST',x,true);this.$AdsVideoUploader15.send(this.$AdsVideoUploader18(w,this.$AdsVideoUploader10));};u.prototype.$AdsVideoUploader16=function(){this.$AdsVideoUploader15.addEventListener('load',this.$AdsVideoUploader3);this.$AdsVideoUploader15.addEventListener('error',p(this.$AdsVideoUploader4,{reason:j.CONNECTION}));this.$AdsVideoUploader15.upload.addEventListener('progress',this.$AdsVideoUploader5);};u.prototype.$AdsVideoUploader19=function(){this.$AdsVideoUploader15.removeEventListener('load',this.$AdsVideoUploader3);this.$AdsVideoUploader15.removeEventListener('error',this.$AdsVideoUploader4);this.$AdsVideoUploader15.upload.removeEventListener('progress',this.$AdsVideoUploader5);};u.prototype.abort=function(){this.$AdsVideoUploader20=true;if(this.$AdsVideoUploader15){this.$AdsVideoUploader17(n.EVENT_CANCELED_UPLOADING);this.$AdsVideoUploader19();this.$AdsVideoUploader15.abort();this.$AdsVideoUploader15=null;}};u.prototype.getVideoTitle=function(){return this.$AdsVideoUploader10;};u.prototype.getUploadTime=function(){return this.$AdsVideoUploader7;};u.prototype.getEncodingTime=function(){return this.$AdsVideoUploader8;};u.prototype.$AdsVideoUploader3=function(event){this.$AdsVideoUploader7=this.$AdsVideoUploader14.read();if(!t(this.$AdsVideoUploader15.status)){this.$AdsVideoUploader4({reason:j.API,status:this.$AdsVideoUploader15.status,message:this.$AdsVideoUploader15.responseText});return;}this.$AdsVideoUploader21=new m();this.$AdsVideoUploader22=JSON.parse(this.$AdsVideoUploader15.responseText).id;this.$AdsVideoUploader15=null;this.$AdsVideoUploader17(n.EVENT_FINISHED_UPLOADING,{elapsed_time:Math.round(this.$AdsVideoUploader7)});this.inform(i.UPLOAD_SUCCESS,this.$AdsVideoUploader22);this.$AdsVideoUploader23=false;this.$AdsVideoUploader24=false;var v=new h(this.$AdsVideoUploader22);v.setOnStatusUpdateListener((function(){return this.$AdsVideoUploader25();}).bind(this));v.setOnFailedListener((function(){return this.$AdsVideoUploader26();}).bind(this));v.setOnSuccessListener((function(w){return this.$AdsVideoUploader27(w);}).bind(this));v.start();};u.prototype.$AdsVideoUploader26=function(){this.$AdsVideoUploader17(n.EVENT_ENCODING_FAIL_OBSERVED);};u.prototype.$AdsVideoUploader27=function(v){if(this.$AdsVideoUploader20){this.$AdsVideoUploader17(n.EVENT_ENCODING_FAIL_OBSERVED);return;}if(!this.$AdsVideoUploader23){this.$AdsVideoUploader23=true;this.$AdsVideoUploader8=this.$AdsVideoUploader21.read();this.$AdsVideoUploader17(n.EVENT_ENCODING_SUCCESS_OBSERVED,{elapsed_time:Math.round(this.$AdsVideoUploader8)});this.inform(i.ENCODING_SUCCESS,v);}};u.prototype.$AdsVideoUploader25=function(){if(this.$AdsVideoUploader20){this.$AdsVideoUploader17(n.EVENT_ENCODING_FAIL_OBSERVED);return;}if(!this.$AdsVideoUploader24){this.$AdsVideoUploader17(n.EVENT_ENCODING_START_OBSERVED);this.$AdsVideoUploader24=true;}};u.prototype.$AdsVideoUploader4=function(v){this.$AdsVideoUploader15=null;this.$AdsVideoUploader17(n.EVENT_FAILED_UPLOADING);this.inform(i.UPLOAD_ERROR,v);};u.prototype.$AdsVideoUploader5=function(event){if(event.lengthComputable){var v=event.loaded/event.total;this.inform(i.UPLOAD_PROGRESS,v);}};u.prototype.$AdsVideoUploader18=function(v,w){var x=new FormData();x.append('waterfall_id',this.$AdsVideoUploader11);x.append('source',v.files[0],w);return x;};u.prototype.$AdsVideoUploader17=function(event,v){if(!this.$AdsVideoUploader13)return;v=v||{};if(this.$AdsVideoUploader12){v.file_size=this.$AdsVideoUploader12.getSize();v.file_extension=this.$AdsVideoUploader12.getExtension();}this.$AdsVideoUploader13.logEvent(event,v);};f.exports=u;},null);
__d('City',['ImmutableObject'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i,j;'use strict';i=babelHelpers.inherits(k,h);j=i&&i.prototype;function k(l,m){j.constructor.call(this,{key:l,name:m});}f.exports=k;},null);
__d('validateCTAPhoneNumber',['AdsGraphAPI','BoostedComponentStrings','debounce'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k=1500,l=h.getWithGeneralMigration().path_DO_NOT_USE('/phone_number'),m='PREMIUM_RATE',n='tel:',o=j(p,k);function p(q,r,s){var t;if(!q||q.indexOf(n)!==0){t=i.PHONE_NUMBER_NOT_VALID_ERROR;}else{var u=q.substr(n.length);if(!u)t=i.PHONE_NUMBER_NOT_VALID_ERROR;}if(t){s(null,t);return;}l.get({number:u,region:r}).done(function(v){var w=v.data&&v.data[0]&&v.data[0].uri,x=v.data&&v.data[0]&&v.data[0].region_code,y=v.data&&v.data[0]&&v.data[0].category,z;if(!w){z=i.PHONE_NUMBER_NOT_VALID_ERROR;}else if(y===m){z=i.PHONE_NUMBER_IS_PREMIUM_ERROR;}else if(r&&x!==r)z=i.PHONE_NUMBER_IS_NOT_LOCAL_ERROR;s(w,z);});}f.exports=o;},null);
__d('BoostedComponentDialogChangeStore',['BoostedComponentBaseStore','BoostedComponentClientEvent','BoostedComponentDataState','BoostedComponentDialogChangeServerActions'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l,m;'use strict';l=babelHelpers.inherits(n,h);m=l&&l.prototype;function n(o){m.constructor.call(this);this.$BoostedComponentDialogChangeStore1=o.getDispatcher();this.$BoostedComponentDialogChangeStore2=o.getSpecs();this.setState(j.ACTIVE);this.$BoostedComponentDialogChangeStore3=o.getExperimentStore();this.$BoostedComponentDialogChangeStore4=new k(this.$BoostedComponentDialogChangeStore1,this.$BoostedComponentDialogChangeStore2);this.dispatchToken=this.$BoostedComponentDialogChangeStore1.register((function(p){var q=p.action;switch(q.actionType){case i.UPDATE_ACCOUNT:case i.UPDATE_CURRENCY:this.setState(j.LOADING);this.$BoostedComponentDialogChangeStore1.waitFor([this.$BoostedComponentDialogChangeStore5().getDispatchToken()]);this.$BoostedComponentDialogChangeStore4.onDialogChange(q.actionType);break;case i.UPDATE_AGE:case i.UPDATE_AUDIENCE:case i.UPDATE_AUDIENCE_ID:case i.UPDATE_BROAD_GEO_LOCATIONS:case i.UPDATE_CUSTOM_LOCATION:case i.UPDATE_GENDER:case i.UPDATE_LANGUAGES:case i.UPDATE_INTERESTS:this.setState(j.LOADING);this.$BoostedComponentDialogChangeStore1.waitFor([this.$BoostedComponentDialogChangeStore6().getDispatchToken()]);this.$BoostedComponentDialogChangeStore4.onDialogChange(q.actionType);break;case i.UPDATE_GEO_LOCATION_TYPE:this.setState(j.LOADING);this.$BoostedComponentDialogChangeStore1.waitFor([this.$BoostedComponentDialogChangeStore6().getDispatchToken(),this.$BoostedComponentDialogChangeStore7().getDispatchToken()]);this.$BoostedComponentDialogChangeStore4.onDialogChange(q.actionType);break;case i.UPDATE_BUDGET:case i.INPUT_CUSTOM_BUDGET:this.setState(j.LOADING);this.$BoostedComponentDialogChangeStore1.waitFor([this.$BoostedComponentDialogChangeStore7().getDispatchToken()]);this.$BoostedComponentDialogChangeStore4.onDialogChange(q.actionType);break;case i.DIALOG_CHANGE_SUCCESS:case i.DIALOG_CHANGE_FAIL:this.setState(j.ACTIVE);break;default:return;}this.inform('change');}).bind(this));}n.prototype.getShowLoadingIndicator=function(){return this.getState()===j.LOADING;};n.prototype.$BoostedComponentDialogChangeStore5=function(){return this.$BoostedComponentDialogChangeStore2.getAdAccountStore();};n.prototype.$BoostedComponentDialogChangeStore7=function(){return this.$BoostedComponentDialogChangeStore2.getBudgetEstimationStore();};n.prototype.$BoostedComponentDialogChangeStore8=function(){return this.$BoostedComponentDialogChangeStore2.getContextStore();};n.prototype.$BoostedComponentDialogChangeStore6=function(){return this.$BoostedComponentDialogChangeStore2.getTargetingStore();};f.exports=n;},null);
__d('AdsPixelUtil',['AdsConversionPixelStore','AdsPixelConversionStatusUtils','AdsPixelStatus','AdsPixelStore','AdsPixelConversionTypes'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m='',n={hasUnifiedPixel:function(){var o=k.getPixels();return Object.keys(o).length>0;},isUnifiedPixel:function(o){var p=k.getPixels();return !!p[o];},isConversionPixel:function(o){var p=h.getKeyedPixels();return !!p[o];},getLastFiredTime:function(o){if(n.isUnifiedPixel(o)){return k.getPixelLastFiringTime(o);}else if(n.isConversionPixel(o))return h.getPixelLastFiringTime(o);return null;},getStatusObject:function(o){var p=n.getLastFiredTime(o),q=h.getKeyedPixels();if(n.isUnifiedPixel(o)){return new j(p);}else if(n.isConversionPixel(o))return i.getStatusObjectFromConversion(q[o]);return null;},getCode:function(o){if(n.isUnifiedPixel(o)){return k.getPixelCode(o);}else if(n.isConversionPixel(o))return h.getPixelCode(o);return m;},getIsUnifiedPixelFromPixel:function(o){return o.type===l.NEW;},getIDFromPixel:function(o){if(n.getIsUnifiedPixelFromPixel(o)){return o.pixelID;}else return o.id;}};f.exports=n;},null);
__d('BoostedComponentSimpleConfirmDialog.react',['BoostedComponentStrings','React','ReactLayeredComponentMixin','XUIDialog.react','XUIDialogBody.react','XUIDialogButton.react','XUIDialogFooter.react','XUIDialogTitle.react'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){'use strict';if(c.__markCompiled)c.__markCompiled();var p=i.PropTypes,q=i.createClass({displayName:'BoostedComponentSimpleConfirmDialog',mixins:[j],propTypes:{dialogTitle:p.string.isRequired,dialogBody:p.string.isRequired,onConfirm:p.func,onCancel:p.func,confirmLabel:p.string,cancelLabel:p.string},renderLayers:function(){var r=null;if(this.props.onCancel||this.props.cancelLabel)r=i.createElement(m,{action:'cancel',onClick:this.props.onCancel,label:this.props.cancelLabel?this.props.cancelLabel:h.CANCEL});var s=i.createElement(m,{use:'confirm',action:'cancel',onClick:this.props.onConfirm,label:this.props.confirmLabel?this.props.confirmLabel:h.CONFIRM});return {dialog:i.createElement(k,{shown:true,width:400},i.createElement(o,null,this.props.dialogTitle),i.createElement(l,null,this.props.dialogBody),i.createElement(n,null,r,s))};},render:function(){return i.createElement('div',null);}});f.exports=q;},null);
__d('BoostedComponentStoreType',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={AD_ACCOUNT_STORE:'ad_account_store',AD_STATUS_STORE:'ad_status_store',CONTEXT_STORE:'context_store',CONSTRAINT_STORE:'constraint_store',CONVERSION_PIXEL_STORE:'conversion_pixel_store',CREATIVE_STORE:'creative_store',DURATION_STORE:'duration_store',PRIVACY_GATING_STORE:'privacy_gating_store',TARGETING_STORE:'targeting_store',BUDGET_EST_STORE:'budget_est_store',AYMT_TIPS_STORE:'aymt_tips_store',DIALOG_CHANGE_STORE:'change_store',DIALOG_UI_STORE:'dialog_ui_store',EXPERIMENT_STORE:'experiment_store',EXTERNAL_ACTIONS_STORE:'external_actions_store',INSIGHTS_STORE:'insights_store',LOGGER_STORE:'logger_store',REVIEW_API_STORE:'review_api_store',SUBMISSION_STORE:'submission_store',URI_STORE:'uri_store',isRequiredForDialogRender:function(i){var j=[this.DIALOG_CHANGE_STORE,this.DIALOG_UI_STORE,this.LOGGER_STORE,this.SUBMISSION_STORE];return j.indexOf(i)==-1;}};f.exports=h;},null);
__d('PixelCreationUIConstants',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();f.exports={DEFAULT_DIALOG_WIDTH:640};},null);
__d('AdsConversionPixelCopyCodeDialog.react',['AdsPixelConstants','AdsPixelSnippet.react','PixelCreationUIConstants','React','ReactLayeredComponentMixin','XUIDialog.react','XUIDialogBody.react','XUIDialogButton.react','XUIDialogFooter.react','XUIDialogTitle.react','XUIGrayText.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){'use strict';if(c.__markCompiled)c.__markCompiled();var u=k.PropTypes,v=k.createClass({displayName:'AdsConversionPixelCopyCodeDialog',mixins:[l],propTypes:{code:u.string.isRequired,handleSwitch:u.func,isShown:u.bool},renderLayers:function(){return {codeDialog:k.createElement(m,babelHelpers._extends({},this.props,{width:j.DEFAULT_DIALOG_WIDTH,shown:this.props.isShown}),k.createElement(q,null,t._("View Pixel Code")),k.createElement(n,{className:"_2hvk"},this._renderInstructions(),this._renderPixelCode()),k.createElement(p,null,this._renderSwitchButton(),k.createElement(o,{action:'cancel',label:t._("Done"),use:'confirm'})))};},render:function(){return k.createElement('span',null);},_renderInstructions:function(){return (k.createElement('div',{className:"_5g5u"},k.createElement(r,{shade:'light',weight:'bold',size:'medium'},t._("Instructions")),k.createElement('ol',null,k.createElement('li',null,h.pixelVerificationSteps[0]),k.createElement('li',null,h.pixelVerificationSteps[1]),k.createElement('li',null,h.pixelVerificationSteps[2]),k.createElement('li',null,h.pixelVerificationSteps[3]))));},_renderPixelCode:function(){return (k.createElement('div',null,k.createElement(r,{shade:'light',weight:'bold',size:'medium'},t._("Pixel Code")),k.createElement('div',{className:"_3-8z _4thx"},k.createElement(i,{className:"_ovg",pixelCode:this.props.code}))));},_renderSwitchButton:function(){return (this.props.handleSwitch?k.createElement(o,{action:'button',label:t._("Email Pixel Code"),onClick:this.props.handleSwitch,use:'default'}):null);}});f.exports=v;},null);
__d('AdsConversionPixelSnippetEmailSuccessDialog.react',['Image.react','ImageBlock.react','InlineBlock.react','LayerFadeOnHide','PixelCreationUIConstants','React','ReactLayeredComponentMixin','XUIDialog.react','XUIDialogBody.react','XUIDialogButton.react','XUIDialogFooter.react','XUIDialogTitle.react','XUIGrayText.react','cx','fbt','ix'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w){'use strict';if(c.__markCompiled)c.__markCompiled();var x=m.PropTypes,y=m.createClass({displayName:'AdsConversionPixelSnippetEmailSuccessDialog',mixins:[n],propTypes:{isAttachedAd:x.bool,isShown:x.bool.isRequired,onToggle:x.func.isRequired},getDefaultProps:function(){return {isAttachedAd:false};},render:function(){return m.createElement('span',null);},renderLayers:function(){return {dialog:m.createElement(o,{behaviors:{LayerFadeOnHide:k},shown:this.props.isShown,onToggle:this.props.onToggle,width:l.DEFAULT_DIALOG_WIDTH},m.createElement(s,null,v._("Email Pixel Code")),m.createElement(p,null,m.createElement('div',{className:"_4awy"},this._renderConfirmation(),this._renderDescription())),m.createElement(r,null,m.createElement(q,{action:'cancel',label:v._("Done"),use:'confirm'})))};},_renderConfirmation:function(){return (m.createElement(i,{spacing:'large'},m.createElement(h,{src:w('/images/ads/pixel/up_done.png')}),m.createElement(j,{className:"_3-99",alignv:'middle',height:44},m.createElement(t,{weight:'bold',shade:'medium',size:'medium',display:'block'},v._("Your email has been sent")))));},_renderDescription:function(){var z=!this.props.isAttachedAd?v._("You can link your pixel to an ad even if it hasn't been installed on the URL the ad links to yet."):null;return (m.createElement('div',{className:"_3-8-"},m.createElement(t,{weight:'bold',shade:'medium',size:'medium',display:'block'},v._("Next Step")),m.createElement('div',{className:"_3-8z"},m.createElement(t,{shade:'light',size:'small'},v._("{link to ad information} Once the pixel is installed, it will start tracking conversions automatically.",[v.param('link to ad information',z)])))));}});f.exports=y;},null);
__d('AdsConversionPixelSendingEmailDialog.react',['AdsConversionPixelSnippetEmailForm.react','AdsConversionPixelSnippetEmailSuccessDialog.react','AdsConversionPixelSnippetViewMode','AdsConversionPixelUtils','AdsOffsiteConversionConstants','PixelCreationUIConstants','React','ReactLayeredComponentMixin','XUIDialog.react','XUIDialogBody.react','XUIDialogButton.react','XUIDialogCancelButton.react','XUIDialogFooter.react','XUIDialogTitle.react','cx','emptyFunction','fbt','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y){'use strict';if(c.__markCompiled)c.__markCompiled();var z=n.PropTypes,aa=n.createClass({displayName:'AdsConversionPixelSendingEmailDialog',mixins:[o],propTypes:{code:z.string.isRequired,handleSwitch:z.func,isAttachedAd:z.bool,isShown:z.bool},getDefaultProps:function(){return {isAttachedAd:false,isShown:true};},getInitialState:function(){return {emailSent:false,personalMessage:'',recipients:[]};},renderLayers:function(){return {emailDialog:n.createElement(p,babelHelpers._extends({},this.props,{width:m.DEFAULT_DIALOG_WIDTH,shown:this.props.isShown&&!this.state.emailSent}),n.createElement(u,null,x._("Email Pixel Code")),n.createElement(q,null,n.createElement('div',{className:"_2hvk"},n.createElement(h,{pixelCode:this.props.code,recipients:this.state.recipients,personalMessage:this.state.personalMessage,onAddNewRecipient:this._handleAddNewRecipient,onRemoveRecipient:this._handleRemoveRecipient,onPersonalMessageChange:this._handlePersonalMessageChange}))),n.createElement(t,null,this._renderFirstButton(),n.createElement(r,{action:'confirm',className:"_2z1w",disabled:!this._canSendEmail,label:x._("Send"),onClick:this._sendEmail,use:'confirm'}))),successDialog:this.state.emailSent?n.createElement(i,{isAttachedAd:this.props.isAttachedAd,isShown:this.state.emailSent,onToggle:w}):null};},render:function(){return n.createElement('span',null);},_renderFirstButton:function(){return (this.props.handleSwitch?n.createElement(r,{use:'default',label:x._("View Pixel Code"),onClick:this.props.handleSwitch}):n.createElement(s,{use:'default'}));},_handlePersonalMessageChange:function(ba){this.setState({personalMessage:ba});},_handleAddNewRecipient:function(ba){var ca=this.state.recipients.slice();ca.push(ba);this.setState({recipients:ca});},_handleRemoveRecipient:function(ba){var ca=this.state.recipients.indexOf(ba),da=this.state.recipients.slice();da.splice(ca,1);this.setState({recipients:da});},_canSendEmail:function(){return k.canPixelSnippetSharerContinue(j.EMAIL_CODE,this.state.recipients);},_sendEmail:function(){k.sendConversionPixelCodeViaEmail(l.emailSources.AYMT,this.props.code,this.state.recipients,this.state.personalMessage,(function(){return this.setState({emailSent:true});}).bind(this));}});f.exports=aa;},null);
__d('AdsConversionPixelCreationConfirmationDialog.react',['AdsConversionPixelCopyCodeDialog.react','AdsConversionPixelSendingEmailDialog.react','Image.react','ImageBlock.react','InlineBlock.react','PixelCreationUIConstants','React','ReactLayeredComponentMixin','XUIDialog.react','XUIDialogBody.react','XUIDialogButton.react','XUIDialogFooter.react','XUIDialogTitle.react','XUIGrayText.react','cx','fbt','ix','keyMirror'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y){'use strict';if(c.__markCompiled)c.__markCompiled();var z=n.PropTypes,aa=y({VIEW_CODE:null,EMAIL_CODE:null}),ba=n.createClass({displayName:'AdsConversionPixelCreationConfirmationDialog',mixins:[o],propTypes:{isAttachedAd:z.bool,isShown:z.bool,pixelCode:z.string.isRequired,pixelName:z.string.isRequired},getDefaultProps:function(){return {isAttachedAd:false,isShown:true};},getInitialState:function(){return {isDialogShown:this.props.isShown,nextDialog:null};},render:function(){return n.createElement('div',null);},renderLayers:function(){return {confirmationDialog:n.createElement(p,{layerHideOnBlur:false,shown:this.state.isDialogShown,width:m.DEFAULT_DIALOG_WIDTH},this._renderTitle(),this._renderDialogBody(),this._renderFooter()),emailCodeDialog:n.createElement(i,{code:this.props.pixelCode,handleSwitch:this._onSwitch,isAttachedAd:this.props.isAttachedAd,isShown:this.state.nextDialog===aa.EMAIL_CODE}),viewCodeDialog:n.createElement(h,{code:this.props.pixelCode,handleSwitch:this._onSwitch,isShown:this.state.nextDialog===aa.VIEW_CODE})};},_renderTitle:function(){return (n.createElement(t,null,w._("Create Conversion Pixel")));},_renderDialogBody:function(){return (n.createElement('div',null,n.createElement(q,null,n.createElement('div',{className:"_4awy"},this._renderConfirmation(),this._renderDescription()))));},_renderFooter:function(){return (n.createElement(s,null,n.createElement(r,{use:'default',onClick:this._onViewCode,label:w._("View Pixel Code")}),n.createElement(r,{use:'confirm',onClick:this._onEmailCode,label:w._("Email Pixel Code")})));},_renderConfirmation:function(){return (n.createElement(k,{spacing:'large'},n.createElement(j,{src:x('/images/ads/pixel/up_done.png')}),n.createElement(l,{className:"_3-99",alignv:'middle',height:44},n.createElement(u,{weight:'bold',shade:'medium',size:'medium',display:'block'},w._("You have created a Conversion Tracking Pixel")),n.createElement(u,{shade:'light',size:'small'},w._("Pixel Name: {name}",[w.param('name',this.props.pixelName)])))));},_renderDescription:function(){var ca=this.props.isAttachedAd?w._("A conversion-tracking pixel is now attached to your ad."):null;return (n.createElement('div',{className:"_3-8-"},n.createElement(u,{shade:'light',size:'small'},w._("{ad attached confirmation} You can view the pixel code to install it yourself now, or you can email it to your website developer to install.",[w.param('ad attached confirmation',ca)]))));},_onEmailCode:function(){this.setState({nextDialog:aa.EMAIL_CODE,isDialogShown:false});},_onViewCode:function(){this.setState({nextDialog:aa.VIEW_CODE,isDialogShown:false});},_onSwitch:function(){switch(this.state.nextDialog){case aa.EMAIL_CODE:this._onViewCode();break;case aa.VIEW_CODE:this._onEmailCode();break;default:return;}}});f.exports=ba;},null);
__d("XAdsConversionPixelTOSController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/manage\/convtrack\/tos\/",{act:{type:"Int"},adaccount_id:{type:"Int"}});},null,{});
__d('AdsConversionPixelCreateWithAttachDialog.react',['AdsConversionPixelCreationConfirmationDialog.react','AdsConversionPixelUtils','AdsOffsiteConversionConstants','AdsPixelConstants','AdsGraphAPI','InfoTable.react','InfoTableSection.react','InfoTableSimpleRow.react','Link.react','LoadingIndicator.react','React','ReactLayeredComponentMixin','XAdsConversionPixelTOSController','XUICheckboxInput.react','XUIDialog.react','XUIDialogBody.react','XUIDialogButton.react','XUIDialogCancelButton.react','XUIDialogFooter.react','XUIDialogTitle.react','XUINotice.react','XUISelector.react','XUITextInput.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa){'use strict';if(c.__markCompiled)c.__markCompiled();var ga=r.PropTypes,ha=k.categoryLabels,ia=ca.Option,ja='checkout',ka=r.createClass({displayName:'AdsConversionPixelCreateWithAttachDialog',mixins:[s],propTypes:{adAccountID:ga.string.isRequired,adAccountName:ga.string.isRequired,campaignID:ga.string,isDialogShown:ga.bool,isTOSCheckboxShown:ga.bool},getDefaultProps:function(){return {campaignID:null,isDialogShown:true,isTOSCheckboxShown:false};},getInitialState:function(){return {createdPixel:null,errorMessage:'',isAttachedAd:false,isConfirmationShown:false,isTOSAccepted:!this.props.isTOSCheckboxShown,name:fa._("{tag name} - {account name} 1",[fa.param('tag name',ha.checkout),fa.param('account name',this.props.adAccountName)]),shouldSetDefaultName:true,showLoadingIndicator:false,tag:ja};},render:function(){return r.createElement('div',null);},renderLayers:function(){return {create:r.createElement(v,{shown:this.props.isDialogShown&&!this.state.isConfirmationShown,width:500},this._renderTitle(),this._renderDialogBody()),confirm:this.state.isConfirmationShown?r.createElement(h,{isAttachedAd:this.state.isAttachedAd,isShown:true,pixelCode:this.state.createdPixel.js_pixel,pixelName:this.state.createdPixel.name}):null};},_renderTitle:function(){return (r.createElement(aa,null,fa._("Create Pixel")));},_renderDialogBody:function(){return (r.createElement('div',null,r.createElement(w,null,r.createElement('div',{className:"_2rr2"},r.createElement(m,null,r.createElement(n,null,r.createElement(o,null,r.createElement('div',{className:"_1iwd"},fa._("Choose the type of action you want to measure"))),r.createElement(o,null,r.createElement('div',null,this._renderSelector(),r.createElement('div',{className:"_1iwc"},fa._("Ex: Use \"Checkouts\" to track conversions on your confirmation page")))),r.createElement(o,null,r.createElement('div',{className:"_1iwd"},fa._("Pixel Name"))),r.createElement(o,null,r.createElement('div',null,this._renderNameInput())),r.createElement(o,null,r.createElement('div',null,this._renderTOSCheckbox())),r.createElement(o,null,r.createElement('div',null,this._renderErrorMessage())))))),this._renderFooter()));},_renderSelector:function(){var la=j.tags.map(function(ma){return (r.createElement(ia,{value:ma,key:ma},ha[ma]));});return (r.createElement(ca,{onChange:this._onTagChange,defaultValue:ja},la));},_renderNameInput:function(){return (r.createElement(da,{className:"_2rr3",maxlength:j.pixelNameMaxLength,onChange:this._onNameChange,value:this.state.name,placeholder:fa._("Name your pixel")}));},_renderTOSCheckbox:function(){if(!this.props.isTOSCheckboxShown)return null;var la=t.getURIBuilder().setInt('act',this.props.adAccountID).getURI();return (r.createElement('div',{className:"_3-8-"},r.createElement(u,{checked:this.state.isTOSAccepted,onChange:this._onTOSAcceptedChange}),r.createElement('label',{className:"_1rea"},fa._("I agree to the {=Terms of Service} for conversion tracking.",[fa.param('=Terms of Service',r.createElement(p,{href:la,target:'_blank'},fa._("Terms of Service")))]))));},_renderErrorMessage:function(){if(!this.state.errorMessage)return null;return (r.createElement(ba,{className:"_3-8y",use:'warn'},this.state.errorMessage));},_renderFooter:function(){return (r.createElement(z,null,this._renderLoadingIndicator(),r.createElement(y,null),r.createElement(x,{disabled:!this.state.name.trim()||!this.state.isTOSAccepted,label:fa._("Create Pixel"),onClick:this._createPixel,use:'confirm'})));},_renderLoadingIndicator:function(){if(!this.state.showLoadingIndicator)return null;return (r.createElement(q,{className:"mrm",color:'white',size:'small','vertical-align':'middle'}));},_onNameChange:function(event){this.setState({shouldSetDefaultName:false,name:event.target.value});},_onTagChange:function(event){this.setState({tag:event.value});if(this.state.shouldSetDefaultName)this.setState({name:fa._("{tag name} - {account name} 1",[fa.param('tag name',ha[event.value]),fa.param('account name',this.props.adAccountName)])});},_onTOSAcceptedChange:function(event){this.setState({isTOSAccepted:event.target.checked});},_onPixelCreated:function(la){l.getWithGeneralMigration().object('offsitepixel',la).get({fields:['id','creator','js_pixel','name','status','tag']}).done((function(ma){this.setState({createdPixel:ma});if(this.props.campaignID){this._attachPixel();}else this._onSuccess();}).bind(this));},_onSuccess:function(){this.setState({isAttachedAd:this.props.campaignID!==null,isConfirmationShown:true,showLoadingIndicator:false});},_onError:function(la){this.setState({errorMessage:la.error.message});},_createPixel:function(){this.setState({showLoadingIndicator:true});var la=this.props.isTOSCheckboxShown&&this.state.isTOSAccepted,ma={onTOSError:this._onError,onPixelCreated:this._onPixelCreated,onPixelCreationError:this._onError};this.setState({isCreating:true});i.createPixel(this.state.name,this.state.tag,this.props.adAccountID,la,ma);},_attachPixel:function(){i.attachPixelToCampaign(this.props.campaignID,this.state.createdPixel.id,this._onSuccess,this._onError);}});f.exports=ka;},null);
__d('AdsPixelCampaignStore',['AdsBaseStore','AdsPixelServerActionTypes'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';j=babelHelpers.inherits(l,h);k=j&&j.prototype;function l(){k.constructor.call(this);this.$AdsPixelCampaignStoreClass1="";this.$AdsPixelCampaignStoreClass2=false;}l.prototype.getStoreName=function(){return 'AdsPixelCampaignStore';};l.prototype.onDispatchToken=function(n){var o=n.action;switch(o.actionType){case i.PIXEL_ATTACHED:this.setPixelAttached(true);this.inform('change');break;default:break;}};l.prototype.getCampaignID=function(){return this.$AdsPixelCampaignStoreClass1;};l.prototype.getPixelAttached=function(){return this.$AdsPixelCampaignStoreClass2;};l.prototype.setCampaignID=function(n){this.$AdsPixelCampaignStoreClass1=n;};l.prototype.setPixelAttached=function(n){this.$AdsPixelCampaignStoreClass2=n;};var m=new l();f.exports=m;},null);
__d('AdsPixelCreateStore',['AdsBaseStore','AdsPixelViewActionTypes','AdsPixelServerActionTypes'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';k=babelHelpers.inherits(m,h);l=k&&k.prototype;function m(){l.constructor.call(this);this.$AdsPixelCreateStoreClass1={showCreateDialog:false,pixelNUX:false};this.$AdsPixelCreateStoreClass2=null;this.$AdsPixelCreateStoreClass3=false;}m.prototype.getStoreName=function(){return 'AdsPixelCreateStore';};m.prototype.getIsWaitingForServerResponse=function(){return this.$AdsPixelCreateStoreClass3;};m.prototype.getCreatedPixelID=function(){if(this.$AdsPixelCreateStoreClass2===null)return '';return this.$AdsPixelCreateStoreClass2.id.toString();};m.prototype.getCreatedPixelName=function(){if(this.$AdsPixelCreateStoreClass2===null)return '';return this.$AdsPixelCreateStoreClass2.name.toString();};m.prototype.getIsPixelNUX=function(){return this.$AdsPixelCreateStoreClass1.pixelNUX;};m.prototype.getPixelCode=function(){if(this.$AdsPixelCreateStoreClass2===null)return '';return this.$AdsPixelCreateStoreClass2.code;};m.prototype.isCreateDialogShown=function(){return this.$AdsPixelCreateStoreClass1.showCreateDialog;};m.prototype.onDispatchToken=function(n){var o=n.action,p=true;switch(o.actionType){case i.VIEW_PIXEL_NUX_START:this.$AdsPixelCreateStoreClass1.pixelNUX=true;break;case i.VIEW_PIXEL_NUX_END:this.$AdsPixelCreateStoreClass1.pixelNUX=false;break;case i.VIEW_SHOW_PIXEL_CREATE_DIALOG:this.$AdsPixelCreateStoreClass1.showCreateDialog=true;break;case i.VIEW_CLOSE_PIXEL_CREATE_DIALOG:this.$AdsPixelCreateStoreClass1.showCreateDialog=false;break;case j.WAIT_FOR_SERVER_RESPONSE:this.$AdsPixelCreateStoreClass3=true;break;case j.PIXEL_CREATED:this.$AdsPixelCreateStoreClass2=o.pixel;this.$AdsPixelCreateStoreClass3=false;break;default:p=false;break;}if(p)this.inform('change');};f.exports=new m();},null);
__d('AdsPixelLoggingConstant',['keyMirror'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();f.exports=h({ADS_PIXEL_PIXEL_CREATION_DIALOG_OPEN:null,ADS_PIXEL_PIXEL_CREATION_LEARN_MORE:null});},null);
__d('PixelCreationConfirmationDialog.react',['AdsFluxMixinLegacy_DO_NOT_USE','AdsPixelCreateStore','ImageBlock.react','Image.react','InlineBlock.react','React','XUIDialogBody.react','XUIDialogButton.react','XUIDialogFooter.react','XUIDialogTitle.react','XUIGrayText.react','XUISpinner.react','cx','fbt','ix'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){'use strict';if(c.__markCompiled)c.__markCompiled();var w=m.PropTypes,x=m.createClass({displayName:'PixelCreationConfirmationDialog',mixins:[h.AdsFluxMixinLegacyPI([i])],propTypes:{onInstallPixel:w.func.isRequired,onEmailPixelCode:w.func.isRequired},statics:{calculateState:function(){return {createdPixelID:i.getCreatedPixelID(),createdPixelName:i.getCreatedPixelName(),waitingForServerResponse:i.getIsWaitingForServerResponse()};}},render:function(){return (m.createElement('div',null,this._renderTitle(),this._renderDialogBody()));},_renderDialogBody:function(){if(this.state.waitingForServerResponse){return (m.createElement('div',{className:"_4awy"},m.createElement(s,{background:'light',size:'large'})));}else return (m.createElement('div',null,m.createElement(n,null,m.createElement('div',{className:"_4awy"},this._renderImageBlock(),this._renderDescription())),this._renderFooter()));},_renderTitle:function(){return (m.createElement(q,null,u._("Create a Custom Audience Pixel")));},_renderFooter:function(){return (m.createElement(p,null,m.createElement(o,{use:'default',onClick:this.props.onInstallPixel,label:u._("Install Pixel Now")}),m.createElement(o,{use:'confirm',onClick:this.props.onEmailPixelCode,label:u._("Email Pixel Code")})));},_renderImageBlock:function(){return (m.createElement(j,{spacing:'large'},m.createElement(k,{src:v('/images/ads/pixel/up_done.png')}),m.createElement(l,{className:"_3-99",alignv:'middle',height:44},m.createElement(r,{weight:'bold',shade:'medium',size:'medium',display:'block'},u._("{pixel name} is ready",[u.param('pixel name',this.state.createdPixelName)])),m.createElement(r,{shade:'light',size:'small'},u._("Pixel ID: {id}",[u.param('id',this.state.createdPixelID)])))));},_renderDescription:function(){return (m.createElement('div',{className:"_3-8-"},u._("You can view the pixel code to install it yourself now, or you can email it to your website developer to install.")));}});f.exports=x;},null);
__d('AdsPixelAttachingUtil',['AdsPixelCampaignStore','AdsPixelCreateStore','AdsPixelServerActions','AsyncRequest','XAdsConversionPixelAttachController'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m={attachPixelToCampaign:function(){var n=h.getCampaignID(),o=i.getCreatedPixelID();if(!n||!o)return;var p=10,q=l.getURIBuilder().setInt('campaign_id',parseInt(n,p)).setInt('pixel_id',parseInt(o,p)).getURI();new k().setURI(q).setHandler(j.attachPixel).send();}};f.exports=m;},null);
__d('PixelCreationDialog.react',['AdInterfacesUiLogger','AdsAccountStoreWrapper','AdsClearableTextInput.react','AdsOffsiteConversionConstants','AdsPixelAttachingUtil','AdsPixelCampaignStore','AdsPixelGraphAPI','AdsPixelNameUtil','Image.react','ImageBlock.react','InfoTable.react','InfoTableRow.react','InfoTableSection.react','InlineBlock.react','Link.react','React','URI','XUIDialogBody.react','XUIDialogButton.react','XUIDialogCancelButton.react','XUIDialogFooter.react','XUIDialogTitle.react','XUIGrayText.react','cx','ix','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga){'use strict';if(c.__markCompiled)c.__markCompiled();var ha=w.PropTypes,ia=44,ja=w.createClass({displayName:'PixelCreationDialog',propTypes:{onCreatePixelComplete:ha.func.isRequired},getInitialState:function(){return {name:o.getPixelDefaultName(),termsAccepted:true};},render:function(){return (w.createElement('div',null,this._renderTitle(),this._renderDialogBody()));},_renderTitle:function(){return (w.createElement(ca,null,ga._("Create a Custom Audience Pixel")));},_renderDialogBody:function(){return (w.createElement('div',null,w.createElement(y,null,w.createElement('div',{className:"_4awy"},this._renderImageBlock(),this._renderDescription(),this._renderInfoTable())),this._renderFooter()));},_renderImageBlock:function(){return (w.createElement(q,{spacing:'large'},w.createElement(p,{src:fa('/images/ads/pixel/icons/UP_Pixel_44.png')}),w.createElement(u,{alignv:'middle',height:ia},w.createElement(da,{weight:'bold',shade:'light',size:'medium'},ga._("Create a Custom Audience Pixel")))));},_renderDescription:function(){return (w.createElement('div',{className:"_3-8-"},ga._("There is only one pixel per ad account, so choose a name that represents your business.")));},_renderInfoTable:function(){var ka=ga._("Enter a name for your pixel");return (w.createElement(r,{className:"_3-8x"},w.createElement(t,null,w.createElement(s,{className:"_4hmg",label:ga._("Pixel Name"),type:'data'},w.createElement(j,{defaultValue:this.state.name,height:'tall',placeholder:ka,onChange:(function(la){this.setState({name:la||''});}).bind(this)})),this._renderTosRow())));},_renderTosRow:function(){if(i.isTosAccepted())return null;var ka=new x(k.pixelTOS).addQueryData({act:i.getAccountID()});return (w.createElement(s,{type:'data'},w.createElement('div',{className:"_3-8z _3-94"},w.createElement('input',{type:'checkbox',onChange:this._onTermsCheckboxChanged,checked:this.state.termsAccepted},ga._("I agree to the {Custom Audience Pixel Terms}",[ga.param('Custom Audience Pixel Terms',w.createElement(v,{target:'_blank',href:ka},'Custom Audience Pixel Terms'))])))));},_renderFooter:function(){return (w.createElement(ba,null,w.createElement(aa,null),w.createElement(z,{disabled:!this.state.name.trim()||!this.state.termsAccepted,use:'confirm',onClick:this._createPixel,label:ga._("Create Pixel")})));},_onTermsCheckboxChanged:function(ka){this.setState({termsAccepted:ka.target.checked});},_createPixel:function(){n.acceptTOS();n.createPixel(this.state.name,this._onPixelCreated);},_onPixelCreated:function(){if(this._getShouldAttachPixelToCampaign())l.attachPixelToCampaign();this._onCompleted();},_onCompleted:function(){this.props.onCreatePixelComplete();h.log('ads_pixel_pixel_creation_complete',{name:this.state.name});},_getShouldAttachPixelToCampaign:function(){return (m.getCampaignID()!==""&&!m.getPixelAttached());}});f.exports=ja;},null);
__d('AdsSeeMore.react',['React','ReactComponentWithPureRenderMixin','Link.react','XUIGrayText.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=h.PropTypes,o=h.createClass({displayName:'AdsSeeMore',mixins:[i],propTypes:{onClick:n.func.isRequired,className:n.string},render:function(){return (h.createElement(j,{onClick:this.props.onClick,className:this.props.className},h.createElement('div',{className:"_3zkw _2pif _2pio"},h.createElement(k,{weight:'bold',shade:'medium'},m._("See More")),h.createElement('span',{className:"_3zkx"}))));}});f.exports=o;},null);
__d('AdsPixelStandardEventsTable.react',['AccessibleTableParts.react','AdsPixelConversionEventsEnum','AdsPixelConversionStandardEvents','AdsSeeMore.react','React','ReactComponentWithPureRenderMixin','XUITable.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();var q=h.BodyRow,r=h.HeadRow,s=3,t=l.createClass({displayName:'AdsPixelStandardEventsTable',mixins:[m],getInitialState:function(){return {canShowMoreEvents:true};},render:function(){return (l.createElement('div',null,l.createElement(n,{outerBorder:true,className:"_3-8x"},l.createElement('thead',null,l.createElement(r,null,l.createElement('th',null,p._("Name")),l.createElement('th',null,p._("Description")),l.createElement('th',{width:'190'},p._("Event Code")))),l.createElement('tbody',null,this._getTableContent())),this._renderPager()));},_getTableContent:function(){var u=[];for(var event in i){var v=i[event],w=this._getTableContentDataElement(event,v);if(w)u.push(w);}if(this.state.canShowMoreEvents)u=u.slice(0,s);return u;},_getTableContentDataElement:function(event,u){if(j[u]){var v=[l.createElement('td',{key:'_events'},u),l.createElement('td',{key:'_description'},j[u].description),l.createElement('td',{key:'_code'},j[u].code)];return (l.createElement(q,{key:event},v));}},_renderPager:function(){if(!this.state.canShowMoreEvents)return null;return (l.createElement(k,{onClick:this._showMoreEvents}));},_showMoreEvents:function(){this.setState({canShowMoreEvents:false});}});f.exports=t;},null);
__d('AdsPixelCodeDialogContent.react',['AdsPixelHelpCenter','AdsPixelSnippet.react','AdsPixelStandardEventsTable.react','Link.react','React','ReactComponentWithPureRenderMixin','XUIDialogBody.react','XUIDialogButton.react','XUIDialogFooter.react','XUIDialogTitle.react','XUIGrayText.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){'use strict';if(c.__markCompiled)c.__markCompiled();var u=l.PropTypes,v=l.createClass({displayName:'AdsPixelCodeDialogContent',mixins:[m],propTypes:{onEmailPixelCode:u.func.isRequired,onNextSteps:u.func.isRequired,pixelCode:u.string.isRequired},render:function(){return (l.createElement('div',{className:"_7x_"},this._renderTitle(),this._renderDialogBody()));},_renderDialogBody:function(){return (l.createElement('div',null,l.createElement(n,{className:"_7y0"},l.createElement('div',{className:"_4awy"},this._renderRequiredSteps(),this._renderRecommendedSteps())),this._renderFooter()));},_renderTitle:function(){return (l.createElement(q,null,t._("View Pixel Code")));},_renderRequiredSteps:function(){return (l.createElement('div',null,l.createElement(r,{weight:'bold',shade:'medium',display:'block',size:'medium'},t._("Add Pixel Code (Required)")),l.createElement(r,{shade:'light',size:'small',className:"_3-8x",display:'block'},t._("Copy the code below and paste it between the \u003Chead> and \u003C\/head> in your website code. The pixel will track visits to every page of your website. {help_link}.",[t.param('help_link',l.createElement(k,{href:h.INSTALL.uri,target:'_blank'},'Get help installing your pixel'))])),l.createElement('div',{className:"_3-8z _4thx"},l.createElement(i,{className:"_ovg",pixelCode:this.props.pixelCode}))));},_renderRecommendedSteps:function(){return (l.createElement('div',{className:"_2pth"},l.createElement(r,{weight:'bold',shade:'medium',display:'block',size:'medium'},t._("Add Conversion Tracking")),l.createElement(r,{shade:'light',size:'small',display:'block',className:"_3-8x"},t._("You can also add events to track specific actions. Copy the code for the event you want to track, and paste it after the pixel code on the web pages where you want to track the action. {learn more}.",[t.param('learn more',l.createElement(k,{href:h.CONVERSION.uri,target:'_blank'},'Learn about conversion tracking'))])),l.createElement(j,null)));},_renderFooter:function(){return (l.createElement(p,null,l.createElement(o,{use:'default',onClick:this.props.onEmailPixelCode,label:t._("Email Pixel Code")}),l.createElement(o,{use:'confirm',onClick:this.props.onNextSteps,label:t._("Next")})));}});f.exports=v;},null);
__d('PixelInstallDialog.react',['AdsFluxMixinLegacy_DO_NOT_USE','AdsPixelCodeDialogContent.react','AdsPixelViewActions','AdsPixelCreateStore','React'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=l.PropTypes,n=l.createClass({displayName:'PixelInstallDialog',mixins:[h.AdsFluxMixinLegacyPI([k])],propTypes:{onEmailPixelCode:m.func.isRequired},statics:{calculateState:function(){return {pixelCode:k.getPixelCode()};}},render:function(){return (l.createElement(i,{onEmailPixelCode:this.props.onEmailPixelCode,onClose:this._onClose,pixelCode:this.state.pixelCode}));},_onClose:function(){j.closeCreateDialog();}});f.exports=n;},null);
__d('AdsPixelEmailCodeDialogContent.react',['AdInterfacesUiLogger','AdsOffsiteConversionConstants','AdsPixelDialogTypes','AdsPixelNotifFieldEnum','AdsPixelNotifParamsEnum','AdsPixelSnippet.react','AdsPixelUtil','AdsPixelViewActions','AsyncRequest','AdsPixelEmailInput.react','AdsPixelCodeEmailFormParams','XAdsPixelCodeEmailController','XAdsConversionPixelInstallEmailController','FBReplaceLink.react','React','ReactDOM','ReactComponentWithPureRenderMixin','XUIDialogBody.react','XUIDialogButton.react','XUIDialogFooter.react','XUIDialogTitle.react','XUIGrayText.react','XUINotice.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa){'use strict';if(c.__markCompiled)c.__markCompiled();var ga=v.PropTypes,ha=v.createClass({displayName:'AdsPixelEmailCodeDialogContent',mixins:[x],propTypes:{pixelCode:ga.string.isRequired,pixelID:ga.string.isRequired,onClose:ga.func.isRequired,onlyEventCode:ga.bool},getInitialState:function(){return {canSendEmail:false,sendEmailFailed:false};},render:function(){return (v.createElement('div',null,this._renderTitle(),this._renderDialogBody(),this._renderFooter()));},_renderDialogBody:function(){return (v.createElement(y,null,v.createElement('div',{className:"_4awy"},this._renderEmailSendFailed(),v.createElement(ca,{weight:'bold',shade:'light',size:'medium'},fa._("To")),v.createElement(q,{ref:'emailInput',onChange:this._onInputChange}),this._renderPersonalMessage(),this._renderInstructions())));},_renderTitle:function(){return (v.createElement(ba,null,fa._("Email Pixel Code")));},_renderFooter:function(){return (v.createElement(aa,null,v.createElement(z,{disabled:!this.state.canSendEmail,use:'confirm',onClick:this._emailPixelCode,label:fa._("Send")})));},_renderPersonalMessage:function(){var ia=r[k.PERSONAL_MESSAGE_LABEL],ja=v.createElement('div',null,fa._("{=Personal Message}",[fa.param('=Personal Message',v.createElement(ca,{weight:'bold',shade:'light',size:'medium'},ia))]),v.createElement('div',null,v.createElement('textarea',{className:"_4azb _4az9",placeholder:fa._("Add a personal message"),ref:'personalMessageInput'})));return (v.createElement('div',{className:"_3-8y"},v.createElement(u,{label:fa._("Add a Personal Message")},ja)));},_renderInstructions:function(){return (v.createElement('div',null,v.createElement(ca,{weight:'bold',shade:'light',size:'medium',className:"_4az6"},fa._("Instructions and Pixel Codes")),v.createElement('div',{className:"_4az9 _4azd _4aze"},v.createElement('div',{dangerouslySetInnerHTML:{__html:r[k.NEW_INSTRUCTION]}}),v.createElement('div',{className:"_2pic"},v.createElement(m,{pixelCode:this.props.pixelCode})),v.createElement('div',{dangerouslySetInnerHTML:{__html:r[k.STANDARD_EVENT_INSTRUCTION]}}),v.createElement('div',{className:"_2pic"},v.createElement(m,{pixelCode:r[k.STANDARD_EVENTS_CODE]})))));},_renderEmailSendFailed:function(){if(!this.state.sendEmailFailed)return null;return (v.createElement(da,{className:"_3-95",use:'warn'},fa._("Failed to send the pixel code. Please try again.")));},_onInputChange:function(){var ia=this.refs.emailInput?this.refs.emailInput.isInputValid():false;this.setState({canSendEmail:ia});},_getConversionPixelRequest:function(ia){var ja=t.getURIBuilder().getURI();return (new p(ja).setURI(ja).setMethod('POST').setData({recipients:this.refs.emailInput.getEmailList(),snippet_text:this.props.pixelCode,personal_message:ia,email_source:i.emailSources.ADS_MANAGER}));},_getUnifiedPixelRequest:function(ia){var ja=s.getURIBuilder().setString(l.PERSONAL_MESSAGE,ia).setInt(l.PIXEL_ID,this.props.pixelID).setStringVector(l.RECIPIENTS,this.refs.emailInput.getEmailList()).getURI();return new p().setURI(ja);},_emailPixelCode:function(){var ia=this.props.pixelID,ja='';if(this.refs.personalMessageInput)ja=w.findDOMNode(this.refs.personalMessageInput).value;var ka;if(n.isUnifiedPixel(ia)){ka=this._getUnifiedPixelRequest(ja);h.log('ads_pixel_email_pixel_code_new',{personalMessage:ja,pixelID:ia});}else if(n.isConversionPixel(ia)){ka=this._getConversionPixelRequest(ja);h.log('ads_pixel_email_pixel_code_legacy',{personalMessage:ja,pixelID:ia});}if(ka){ka.setHandler(function(la){return (o.dialogTypeChange(j.EMAIL_CODE_SUCCESS));}).setErrorHandler((function(la,ma){return this.setState({sendEmailFail:true});}).bind(this)).send();}else this.props.onClose();}});f.exports=ha;},null);
__d('AdsPixelEmailCodeDialogContentContainer.react',['AdsFluxMixinLegacy_DO_NOT_USE','AdsPixelEmailCodeDialogContent.react','AdsPixelStore','AdsConversionPixelStore','AdsPixelUtil','React','ReactComponentWithPureRenderMixin'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=m.PropTypes,p=m.createClass({displayName:'AdsPixelEmailCodeDialogContentContainer',mixins:[n,h.AdsFluxMixinLegacyPI([j,k],{withProps:true})],propTypes:{pixelID:o.string.isRequired,onClose:o.func.isRequired,onlyEventCode:o.bool},statics:{calculateState:function(q,r){return {pixelCode:l.getCode(r.pixelID)};}},render:function(){return (m.createElement(i,{onClose:this.props.onClose,pixelID:this.props.pixelID,pixelCode:this.state.pixelCode,isOnlySendEventCode:this.props.onlyEventCode}));}});f.exports=p;},null);
__d('PixelSendCodeByMailDialog.react',['AdsFluxMixinLegacy_DO_NOT_USE','AdsPixelEmailCodeDialogContentContainer.react','AdsPixelViewActions','AdsPixelCreateStore','React','ReactComponentWithPureRenderMixin'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=l.createClass({displayName:'PixelSendCodeByMailDialog',mixins:[h.AdsFluxMixinLegacyPI([k]),m],statics:{calculateState:function(){return {createdPixelID:k.getCreatedPixelID()};}},render:function(){return (l.createElement(i,{pixelID:this.state.createdPixelID,onClose:this._onClose}));},_onClose:function(){j.closeCreateDialog();}});f.exports=n;},null);
__d('PixelViewStateEnum',['ImmutableObject'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i={CREATE_PIXEL_DIALOG:'create_pixel',CREATE_PIXEL_COMPLETE:'create_pixel_complete',INSTALL_PIXEL_DIALOG:'install_pixel',SEND_PIXEL_EMAIL_DIALOG:'email_pixel_code'};f.exports=new h(i);},null);
__d('PixelCreationFlow.react',['AdInterfacesUiLogger','PixelCreationConfirmationDialog.react','PixelCreationDialog.react','PixelCreationUIConstants','PixelInstallDialog.react','PixelSendCodeByMailDialog.react','PixelViewStateEnum','React','ReactLayeredComponentMixin','XUIDialog.react'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=o.PropTypes,s=o.createClass({displayName:'PixelCreationFlow',mixins:[p],propTypes:{onClose:r.func.isRequired},getInitialState:function(){return {viewState:n.CREATE_PIXEL_DIALOG};},render:function(){return null;},renderLayers:function(){return {dialog:o.createElement(q,{layerHideOnBlur:false,shown:true,width:k.DEFAULT_DIALOG_WIDTH,onToggle:this._onToggle},this._renderDialogBody())};},_renderDialogBody:function(){switch(this.state.viewState){case n.CREATE_PIXEL_DIALOG:return (o.createElement(j,{onCreatePixelComplete:this._onCreatePixelComplete}));case n.CREATE_PIXEL_COMPLETE:return (o.createElement(i,{onInstallPixel:this._onInstallPixel,onEmailPixelCode:this._onEmailPixelCode}));case n.INSTALL_PIXEL_DIALOG:return (o.createElement(l,{onEmailPixelCode:this._onEmailPixelCode}));case n.SEND_PIXEL_EMAIL_DIALOG:return o.createElement(m,null);}},_onCreatePixelComplete:function(){this.setState({viewState:n.CREATE_PIXEL_COMPLETE});},_onInstallPixel:function(){this.setState({viewState:n.INSTALL_PIXEL_DIALOG});},_onEmailPixelCode:function(){this.setState({viewState:n.SEND_PIXEL_EMAIL_DIALOG});},_onToggle:function(){h.log('ads_pixel_pixel_creation_flow_close',{viewState:this.state.viewState});this.props.onClose();}});f.exports=s;},null);
__d("XAdsManagerPixelsController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/manage\/pixels\/",{act:{type:"Int"},pixel_id:{type:"Int"},business_id:{type:"Int"},no_redirect:{type:"Bool",defaultValue:false}});},null,{});
__d('BoostedComponentPixelUpsell.react',['AdInterfacesUiLogger','AdsAccountStoreWrapper','AdsConversionPixelCreateWithAttachDialog.react','AdsFluxMixinLegacy_DO_NOT_USE','AdsPixelCampaignStore','AdsPixelCreateStore','AdsPixelLoggingConstant','AdsPixelUIEnvironments','AdsPixelViewActions','BoostedComponentAdAccountStore','Link.react','PixelCreationFlow.react','PixelCreationUIConstants','React','XAdsManagerPixelsController','XUIDialog.react','cx','emptyFunction','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z){'use strict';if(c.__markCompiled)c.__markCompiled();var aa=u.PropTypes,ba=u.createClass({displayName:'BoostedComponentPixelUpsell',mixins:[k.AdsFluxMixinLegacyOthers([m])],propTypes:{adAccountID:aa.string,adAccountName:aa.string,adAccountStore:aa.instanceOf(q).isRequired,campaignID:aa.string.isRequired,isPixelUpsellLegacy:aa.bool,isTOSAccepted:aa.bool,onCreatePixel:aa.func},statics:{calculateState:function(){return {isCreateDialogShown:m.isCreateDialogShown()};}},getDefaultProps:function(){return {onCreatePixel:y};},getInitialState:function(){return {isLegacyPixelDialogShown:false};},render:function(){return (u.createElement('div',null,this._renderUpsell(),this._renderCreateDialog()));},_renderUpsell:function(){return (this.props.isPixelUpsellLegacy?this._renderLegacyPixelUpsell():this._renderPixelUpsell());},_renderCreateDialog:function(){return (this.props.isPixelUpsellLegacy?this._renderLegacyPixelCreateDialog():this._renderPixelCreateDialog());},_renderLegacyPixelUpsell:function(){return (u.createElement('div',{className:"_57yz _57z1 _3-8z"},u.createElement('div',{className:"_498p"},z._("You can install a conversion tracking pixel on the domain you are promoting. This will measure the efficiency of this promotion. {create pixel link} or {help link}",[z.param('create pixel link',u.createElement(r,{onClick:this._createLegacyPixel},z._("Create a Pixel"))),z.param('help link',u.createElement(r,{href:'/help/435189689870514',target:'_blank'},z._("Learn More.")))]))));},_renderPixelUpsell:function(){var ca=this._getPixelURL();return (u.createElement('div',{className:"_57yz _57z1 _3-8z"},u.createElement('div',{className:"_498p"},z._("You can install a Custom Audience pixel and track the actions people take on your website. {help link} or {create pixel link}",[z.param('help link',u.createElement(r,{href:ca,onClick:this._clickLearnMore,target:'_blank'},z._("Learn more"))),z.param('create pixel link',u.createElement(r,{onClick:this._createPixel},z._("create a pixel now.")))]))));},_renderLegacyPixelCreateDialog:function(){return (u.createElement(j,{adAccountID:this.props.adAccountID,adAccountName:this.props.adAccountName,campaignID:this.props.campaignID,isDialogShown:this.state.isLegacyPixelDialogShown,isTOSCheckboxShown:!this.props.isTOSAccepted}));},_renderPixelCreateDialog:function(){return (u.createElement(w,{layerHideOnBlur:false,shown:this.state.isCreateDialogShown,width:t.DEFAULT_DIALOG_WIDTH},this._renderPixelCreateDialogBody()));},_renderPixelCreateDialogBody:function(){if(this.state.isCreateDialogShown)return u.createElement(s,{onClose:this._onClose});},_createLegacyPixel:function(){if(this.props.onCreatePixel)this.props.onCreatePixel();this.setState({isLegacyPixelDialogShown:true});},_clickLearnMore:function(){h.log(n.ADS_PIXEL_PIXEL_CREATION_LEARN_MORE,{componentEnvironment:o.LWI});},_createPixel:function(){i.setEnvironment(o.LWI,Object.create(this.props.adAccountStore));l.setCampaignID(this.props.campaignID);l.setPixelAttached(false);h.log(n.ADS_PIXEL_PIXEL_CREATION_DIALOG_OPEN,{componentEnvironment:o.LWI});if(this.props.onCreatePixel)this.props.onCreatePixel();p.showCreateDialog();},_onClose:function(){p.closeCreateDialog();},_getPixelURL:function(){return v.getURIBuilder().setInt('act',this.props.adAccountStore.getSelectedAccountID()).getURI();}});f.exports=ba;},null);
__d('CctaDispatcher',['Dispatcher'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=[],j=Object.assign(new h(),{cctaDispatch:function(k){this.dispatch(k);var l=i;i=[];l.forEach(function(m){m();});i.length=0;},addPostDispatchCallback:function(k){if(this.isDispatching()){i.push(k);}else k();}});f.exports=j;},null);
__d('BoostedCctaRefresher',['Arbiter','AsyncRequest','BoostedActionType','BoostedPagelikeConstants','CctaAppDispatcher','CctaDataActionTypes','CctaDispatcher'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();function o(){}Object.assign(o,{init:function(p){this.pageId=p;if(!o.timerId)o.timerId=setInterval((function(){new i().setURI("/ajax/ads/custom_cta/refresh_in_review.php").setMethod('POST').setData({pageid:this.pageId}).send();}).bind(this),10000);},cancelRefresh:function(){if(o.timerId){clearInterval(o.timerId);o.timerId=null;}},refresh:function(p,q){h.inform(k.PANEL_STATUS_CHANGE_FINISH,{action_type:j.CCTA,active:q});l.handleServerAction({type:m.UPDATE_PROMOTE,payload:q});n.cctaDispatch({actionType:'update-promote',data:q});this.cancelRefresh();}});f.exports=o;},null);
__d('BoostedLocalAwarenessRefresher',['Arbiter','AsyncRequest','BoostedActionType','BoostedPagelikeConstants'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();function l(){}Object.assign(l,{init:function(m){this._pageID=m;if(!l.timerID)l.timerID=setInterval((function(){new i().setURI("/ajax/ads/boosted_localawareness/refresh_in_review.php").setMethod('POST').setData({pageid:this._pageID}).send();}).bind(this),10000);},cancelRefresh:function(){if(l.timerID){clearInterval(l.timerID);l.timerID=null;}},refresh:function(m,n){h.inform(k.PANEL_STATUS_CHANGE_FINISH,{action_type:j.LOCAL_AWARENESS,active:n});this.cancelRefresh();}});f.exports=l;},null);
__d('RHCButton',['UIPagelet','ge'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j={reload:function(k){if(i('PagesTimelineButtonPagelet'))h.loadFromEndpoint('PagesTimelineButtonPagelet','pagesTimelineButtonPagelet',{profile_id:k});}};f.exports=j;},null);
__d('BoostedPagelikeRefresher',['Arbiter','AsyncRequest','BoostedActionType','BoostedPagelikeConstants','RHCButton'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();function m(){}Object.assign(m,{init:function(n){this.page_id=n;if(!m.timer_id)m.timer_id=setInterval((function(){new i().setURI("/ajax/ads/boosted_pagelike/refresh_in_review.php").setMethod('POST').setData({pageid:this.page_id}).send();}).bind(this),10000);},cancel_refresh:function(){if(m.timer_id){clearInterval(m.timer_id);m.timer_id=null;}},refresh:function(n,o){h.inform(k.PANEL_STATUS_CHANGE_FINISH,{action_type:j.PAGELIKE,active:o});l.reload(n);this.cancel_refresh();}});f.exports=m;},null);
__d('BoostedProductRefresher',['Arbiter','BoostedComponentAppID','BoostedPagelikeConstants'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();function k(){}Object.assign(k,{refresh:function(l,m,n){h.inform(j.PANEL_STATUS_CHANGE_FINISH,{app_id:i.BOOSTED_PRODUCT,page_id:l,product_id:m,active:n});}});f.exports=k;},null);
__d('BoostedWebsiteRefresher',['Arbiter','AsyncRequest','BoostedActionType','BoostedPagelikeConstants'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();function l(){}Object.assign(l,{init:function(m){this._pageID=m;if(!l.timer_id)l.timer_id=setInterval((function(){new i().setURI("/ajax/ads/boosted_website/refresh_in_review.php").setMethod('POST').setData({pageid:this._pageID}).send();}).bind(this),10000);},cancel_refresh:function(){if(l.timer_id){clearInterval(l.timer_id);l.timer_id=null;}},refresh:function(m,n){h.inform(k.PANEL_STATUS_CHANGE_FINISH,{action_type:j.WEBSITE,active:n});this.cancel_refresh();}});f.exports=l;},null);
__d('BoostedComponentDialogUIStore',['AdsPixelUtil','Arbiter','BoostedComponentAppID','BoostedComponentBaseStore','BoostedComponentClientEvent','BoostedComponentConfigPayload','BoostedComponentDataState','BoostedComponentDialogRenderServerActions','BoostedComponentDialogUIStoreFields','BoostedComponentExperiment','BoostedComponentSimpleConfirmDialog.react','BoostedComponentStoreType','BoostedComponentStrings','BoostedComponentSuccessDialog.react','BoostedCctaRefresher','BoostedLocalAwarenessRefresher','BoostedPagelikeRefresher','BoostedProductRefresher','BoostedWebsiteRefresher','CustomCTAConstants','PromotedPostConstants','DOM','React','ReactDOM','adsGKCheck'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa){if(c.__markCompiled)c.__markCompiled();var ga,ha;'use strict';ga=babelHelpers.inherits(ia,k);ha=ga&&ga.prototype;function ia(ja){ha.constructor.call(this);this.$BoostedComponentDialogUIStore1=ja;this.$BoostedComponentDialogUIStore2=ja.getDispatcher();this.$BoostedComponentDialogUIStore3=false;this.$BoostedComponentDialogUIStore4=ja.getAdStatusStore();this.$BoostedComponentDialogUIStore5=ja.getContextStore();this.$BoostedComponentDialogUIStore6=ja.getExperimentStore();this.$BoostedComponentDialogUIStore7=new o(this.$BoostedComponentDialogUIStore2,this.$BoostedComponentDialogUIStore5);this.setState(n.NOT_INITIALIZED);this.dispatchToken=this.$BoostedComponentDialogUIStore2.register((function(ka){var la=ka.action;switch(la.actionType){case l.INIT_DATA_LOADED:this.setState(n.INIT_DATA_LOADED);this.$BoostedComponentDialogUIStore8=la.data[m.DIALOG_UI_STORE_DATA];break;case l.DATA_LOADED:this.setState(n.ACTIVE);this.$BoostedComponentDialogUIStore2.waitFor(this.$BoostedComponentDialogUIStore9());this.$BoostedComponentDialogUIStore1.loadData(la.data);this.setDialogState(n.ACTIVE);break;case l.FETCH_CONFIG_DATA_FAILED:this.setDialogState(n.ERROR);break;case l.ON_AUTO_OPEN:this.$BoostedComponentDialogUIStore2.waitFor([this.$BoostedComponentDialogUIStore5.getDispatchToken()]);this.$BoostedComponentDialogUIStore10();this.$BoostedComponentDialogUIStore11(true);break;case l.ON_MOUSE_ENTER:this.$BoostedComponentDialogUIStore2.waitFor([this.$BoostedComponentDialogUIStore5.getDispatchToken()]);if(this.getState()!==n.INIT_DATA_LOADED&&this.getState()!==n.NEEDS_NEW_DATA||this.$BoostedComponentDialogUIStore12())return;this.$BoostedComponentDialogUIStore10();break;case l.ON_UPSELL_BUTTON_CLICK:case l.ON_EDIT_CAMPAIGN_CLICK:this.$BoostedComponentDialogUIStore2.waitFor([this.$BoostedComponentDialogUIStore5.getDispatchToken()]);if(this.getState()===n.INIT_DATA_LOADED||this.getState()===n.NEEDS_NEW_DATA)this.$BoostedComponentDialogUIStore10();this.$BoostedComponentDialogUIStore11(true);break;case l.ON_DIALOG_CANCEL_BUTTON_CLICK:if(this.$BoostedComponentDialogUIStore6.getExperiment(q.BOOSTED_COMPONENT_TABBED_DIALOG_COLUMN)&&this.getState()===n.NEEDS_NEW_DATA)this.$BoostedComponentDialogUIStore13(true);switch(this.$BoostedComponentDialogUIStore5.getAppID()){case j.BOOSTED_PAGELIKE:case j.BOOSTED_WEBSITE:case j.BOOSTED_LOCAL_AWARENESS:case j.BOOSTED_CCTA:this.setState(n.NEEDS_NEW_DATA);}this.$BoostedComponentDialogUIStore11(false);break;case l.RELOAD_DATA:this.setState(n.NEEDS_NEW_DATA);this.$BoostedComponentDialogUIStore11(false);break;case l.CLEAR_COMPOSER_BOOST:this.$BoostedComponentDialogUIStore2.waitFor([this.$BoostedComponentDialogUIStore1.getSubmissionStore().getDispatchToken()]);this.$BoostedComponentDialogUIStore11(false);break;case l.CREATE_DIALOG_CLOSE:if(this.$BoostedComponentDialogUIStore4.getShouldEdit())this.setState(n.NEEDS_NEW_DATA);this.$BoostedComponentDialogUIStore11(false);break;case l.COMPOSER_CREATE_SUBMIT:this.$BoostedComponentDialogUIStore11(false);break;case l.CREATE_SUCCESS:case l.UPDATE_SUCCESS:case l.RESUME_SUCCESS:if(la.actionType===l.RESUME_SUCCESS&&this.$BoostedComponentDialogUIStore6.getExperiment(q.BOOSTED_COMPONENT_TABBED_DIALOG_COLUMN)){this.$BoostedComponentDialogUIStore14(la.actionType);this.setState(n.NEEDS_NEW_DATA);if(!this.getDialogShown())this.$BoostedComponentDialogUIStore13(true);break;}if(la.actionType===l.CREATE_SUCCESS&&this.$BoostedComponentDialogUIStore6.getExperiment(q.BOOSTED_COMPONENT_CONFIRMATION_SECTION)){this.$BoostedComponentDialogUIStore11(true);}else this.$BoostedComponentDialogUIStore11(false);this.$BoostedComponentDialogUIStore13(true);switch(this.$BoostedComponentDialogUIStore5.getAppID()){case j.BOOSTED_POST:case j.BOOSTED_EVENT:case j.BOOSTED_PRODUCT:if(la.actionType===l.CREATE_SUCCESS){var ma=this.getUpsellDivID();this.$BoostedComponentDialogUIStore8=la.data[m.DIALOG_UI_STORE_DATA];this.$BoostedComponentDialogUIStore15(ma);}else if(la.actionType===l.UPDATE_SUCCESS)i.inform(ba.CLOSE_DIALOG,this.getDialogDivID());break;case j.BOOSTED_CCTA:i.inform(aa.SHOW_FLYOUT,{});break;}this.setState(n.NEEDS_NEW_DATA);if(!(la.actionType===l.UPDATE_SUCCESS&&la.isOnlyBudgetModified))if(!this.$BoostedComponentDialogUIStore6.getExperiment(q.BOOSTED_COMPONENT_CONFIRMATION_SECTION))this.$BoostedComponentDialogUIStore16();break;case l.PAUSE_SUCCESS:case l.DELETE_SUCCESS:this.$BoostedComponentDialogUIStore14(la.actionType);if(la.actionType===l.PAUSE_SUCCESS&&this.$BoostedComponentDialogUIStore6.getExperiment(q.BOOSTED_COMPONENT_TABBED_DIALOG_COLUMN)){this.setState(n.NEEDS_NEW_DATA);if(!this.getDialogShown())this.$BoostedComponentDialogUIStore13(true);break;}this.$BoostedComponentDialogUIStore11(false);this.$BoostedComponentDialogUIStore13(la.actionType!==l.DELETE_SUCCESS);this.setState(n.NEEDS_NEW_DATA);break;default:return;}this.inform('change');}).bind(this));}ia.prototype.$BoostedComponentDialogUIStore16=function(){if(!this.$BoostedComponentDialogUIStore17)this.$BoostedComponentDialogUIStore17=ca.create('div');var ja=!fa('unified_pixel_upsell_boosted_website'),ka=ja?this.$BoostedComponentDialogUIStore18():this.$BoostedComponentDialogUIStore19();ea.render(da.createElement(u,{adAccountStore:this.$BoostedComponentDialogUIStore1.getAdAccountStore(),adStatusStore:this.$BoostedComponentDialogUIStore4,contextStore:this.$BoostedComponentDialogUIStore5,dispatcher:this.$BoostedComponentDialogUIStore1.getDispatcher(),isPixelUpsellLegacy:ja,key:this.$BoostedComponentDialogUIStore4.getCampaignID(),shouldShowPixelUpsell:ka}),this.$BoostedComponentDialogUIStore17);};ia.prototype.$BoostedComponentDialogUIStore14=function(ja){if(!this.$BoostedComponentDialogUIStore20)this.$BoostedComponentDialogUIStore20=ca.create('div');var ka=null,la=null;switch(ja){case l.PAUSE_SUCCESS:ka=t.PAUSE_SUCCESS_DIALOG_TITLE;la=t.PAUSE_SUCCESS_DIALOG_BODY;break;case l.DELETE_SUCCESS:ka=t.DELETE_SUCCESS_DIALOG_TITLE;la=t.DELETE_SUCCESS_DIALOG_BODY;break;case l.RESUME_SUCCESS:ka=t.RESUME_SUCCESS_DIALOG_TITLE;la=t.RESUME_SUCCESS_DIALOG_BODY;break;}ea.render(da.createElement(r,{dialogTitle:ka,dialogBody:la,confirmLabel:t.OK}),this.$BoostedComponentDialogUIStore20);};ia.prototype.getDialogShown=function(){return this.$BoostedComponentDialogUIStore3;};ia.prototype.getUpsellLabel=function(){return this.$BoostedComponentDialogUIStore8[p.UPSELL_LABEL];};ia.prototype.getUpsellIconURL=function(){return this.$BoostedComponentDialogUIStore8[p.UPSELL_ICON_URL];};ia.prototype.getUpsellDivID=function(){return this.$BoostedComponentDialogUIStore8[p.UPSELL_DIV_ID];};ia.prototype.$BoostedComponentDialogUIStore15=function(ja){this.$BoostedComponentDialogUIStore8[p.UPSELL_DIV_ID]=ja;};ia.prototype.getUpsellLogData=function(){return this.$BoostedComponentDialogUIStore8[p.UPSELL_LOG_DATA];};ia.prototype.getDialogDivID=function(){return this.$BoostedComponentDialogUIStore8[p.DIALOG_DIV_ID];};ia.prototype.getAutoOpenDialog=function(){return !!this.$BoostedComponentDialogUIStore8[p.AUTO_OPEN_DIALOG];};ia.prototype.getShowNUX=function(){return !!this.$BoostedComponentDialogUIStore8[p.SHOW_NUX];};ia.prototype.showInformationalHeaderSection=function(){return (this.$BoostedComponentDialogUIStore5.getAppID()===j.BOOSTED_POST&&!!this.getInformationalHeaderCategory());};ia.prototype.getInformationalHeaderCategory=function(){return this.$BoostedComponentDialogUIStore8[p.INFORMATIONAL_HEADER_CATEGORY];};ia.prototype.setDialogState=function(ja){this.setState(ja);};ia.prototype.$BoostedComponentDialogUIStore10=function(){this.setDialogState(n.LOADING);this.$BoostedComponentDialogUIStore7.fetchDialogData();};ia.prototype.$BoostedComponentDialogUIStore12=function(){if(!this.$BoostedComponentDialogUIStore8)return false;return !!this.$BoostedComponentDialogUIStore8[p.DISABLE_DATA_PREFETCH];};ia.prototype.$BoostedComponentDialogUIStore11=function(ja){this.$BoostedComponentDialogUIStore3=ja;};ia.prototype.isDataReady=function(){return (this.getState()!==n.INIT_DATA_LOADED&&this.getState()!==n.LOADING);};ia.prototype.$BoostedComponentDialogUIStore9=function(){var ja=this.$BoostedComponentDialogUIStore1.getStores(),ka=Object.keys(ja),la=[];for(var ma=0;ma<ka.length;ma++)if(s.isRequiredForDialogRender(ka[ma]))la.push(ja[ka[ma]].getDispatchToken());return la;};ia.prototype.$BoostedComponentDialogUIStore19=function(){if(this.$BoostedComponentDialogUIStore5.getAppID()!==j.BOOSTED_WEBSITE)return false;var ja=this.$BoostedComponentDialogUIStore1.getStores();return (!ja[s.CONVERSION_PIXEL_STORE].getSelectedConversionPixelID()&&!h.hasUnifiedPixel());};ia.prototype.$BoostedComponentDialogUIStore18=function(){if(this.$BoostedComponentDialogUIStore5.getAppID()!==j.BOOSTED_WEBSITE)return false;var ja=this.$BoostedComponentDialogUIStore1,ka=ja.getConversionPixelStore().getSelectedAccountConversionPixels();if(!ka||ka.length>0)return false;return true;};ia.prototype.$BoostedComponentDialogUIStore13=function(ja){switch(this.$BoostedComponentDialogUIStore5.getAppID()){case j.BOOSTED_LOCAL_AWARENESS:w.refresh(this.$BoostedComponentDialogUIStore1.getContextStore().getPageID(),ja);break;case j.BOOSTED_PAGELIKE:x.refresh(this.$BoostedComponentDialogUIStore1.getContextStore().getPageID(),ja);break;case j.BOOSTED_PRODUCT:y.refresh(this.$BoostedComponentDialogUIStore1.getContextStore().getPageID(),this.$BoostedComponentDialogUIStore1.getContextStore().getPostID(),ja);break;case j.BOOSTED_WEBSITE:z.refresh(this.$BoostedComponentDialogUIStore1.getContextStore().getPageID(),ja);break;case j.BOOSTED_CCTA:v.refresh(this.$BoostedComponentDialogUIStore1.getContextStore().getPageID(),ja);break;}};f.exports=ia;},null);
__d('BoostedComponentDurationStore',['AdsUtils','BoostedComponentBaseStore','BoostedComponentConfigPayload','BoostedComponentDataState','BoostedComponentClientEvent','DateConsts','BoostedComponentDurationStoreFields','FBDate','UTCUtils'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){if(c.__markCompiled)c.__markCompiled();var q,r;'use strict';var s=0;q=babelHelpers.inherits(t,i);r=q&&q.prototype;function t(u){r.constructor.call(this);this.setState(k.NOT_INITIALIZED);this.setInitialValue(null);this.dispatchToken=u.getDispatcher().register((function(v){var w=v.action;switch(w.actionType){case l.DATA_LOADED:this.initializeStore(w.data[j.DURATION_STORE_DATA]);this.setInitialValue(h.clone(this.data));this.setState(k.ACTIVE);this.validate();this.inform('change');break;case l.UPDATE_DURATION:this.$BoostedComponentDurationStore1(w.duration);this.validate();this.inform('change');break;case l.UPDATE_CAMPAIGN_LENGTH_IN_DAYS:this.$BoostedComponentDurationStore2(w.campaignLengthInDays);this.validate();this.inform('change');break;case l.UPDATE_RUN_CONTINUOUSLY:this.$BoostedComponentDurationStore3(w.runContinuously);this.validate();this.inform('change');break;}}).bind(this));}t.prototype.hasChanged=function(){if(this.getInitialValue()[n.RUN_CONTINUOUSLY]!==this.getRunContinuously()){return true;}else if(this.getRunContinuously()){return false;}else return (this.getInitialValue()[n.SELECTED_CAMPAIGN_LENGTH]!==this.getCampaignLength());};t.prototype.getCampaignLength=function(){return this.data[n.SELECTED_CAMPAIGN_LENGTH];};t.prototype.getCampaignLengthInDays=function(){return this.getCampaignLength()/m.SEC_PER_DAY;};t.prototype.getPreviousCampaignLength=function(){var u=this.getPreviousValue();if(!u)return 0;return u[n.SELECTED_CAMPAIGN_LENGTH];};t.prototype.getPreviousCampaignLengthInDays=function(){return this.getPreviousCampaignLength()/m.SEC_PER_DAY;};t.prototype.$BoostedComponentDurationStore1=function(u){this.setStoreDataField(n.SELECTED_CAMPAIGN_LENGTH,u);};t.prototype.$BoostedComponentDurationStore2=function(u){this.$BoostedComponentDurationStore1(u*m.SEC_PER_DAY);};t.prototype.getCampaignEndTime=function(){var u=new o(p.dateToUTC(new Date()),s).addDays(1).startOfDay();return u.getUnixTimestampSeconds()+this.getCampaignLength();};t.prototype.getCampaignLengthOptions=function(){return (this.data[n.CAMPAIGN_LENGTH_OPTIONS]?this.data[n.CAMPAIGN_LENGTH_OPTIONS]:null);};t.prototype.getRunContinuously=function(){return !!this.data[n.RUN_CONTINUOUSLY];};t.prototype.getPreviousRunContinuously=function(){return !!(this.getPreviousValue()||{})[n.RUN_CONTINUOUSLY];};t.prototype.$BoostedComponentDurationStore3=function(u){this.setStoreDataField(n.RUN_CONTINUOUSLY,u);};t.prototype.getHideRunContinuously=function(){return !!this.data[n.HIDE_RUN_CONTINUOUSLY];};f.exports=t;},null);
__d('BoostedComponentExperimentStore',['BoostedComponentBaseStore','BoostedComponentConfigPayload','BoostedComponentDataState','BoostedComponentClientEvent'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l,m;'use strict';l=babelHelpers.inherits(n,h);m=l&&l.prototype;n.prototype.$BoostedComponentExperimentStore1=function(o){var p=this.$BoostedComponentExperimentStore2;if(!p){p={};this.$BoostedComponentExperimentStore2=p;}if(p[o])return;p[o]=true;};n.prototype.getStorePayloadKey=function(){return i.EXPERIMENT_STORE_DATA;};n.prototype.registerStoreEvents=function(){this.registerEvents([k.DATA_LOADED],this.initializeStore.bind(this));};n.prototype.getExperiment=function(o){return !!this.getStoreData()[o];};n.prototype.getExperimentForAppIDs=function(o,p){if(p.indexOf(this.getConfig().getContextStore().getAppID())===-1)return false;return this.getExperiment(o);};n.prototype.getExperimentInt=function(o){return this.getStoreData()[o];};n.prototype.getExperimentIntForAppIDs=function(o,p){if(p.indexOf(this.getConfig().getContextStore().getAppID())===-1)return null;return this.getExperimentInt(o);};function n(){l.apply(this,arguments);}f.exports=n;},null);
__d('BoostedComponentExternalActionsStore',['Arbiter','BoostedComponentAppID','BoostedComponentBaseStore','BoostedComponentClientEvent','BoostedComponentConfigPayload','BoostedPostPlacementOptions'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n,o;'use strict';n=babelHelpers.inherits(p,j);o=n&&n.prototype;p.prototype.getStorePayloadKey=function(){return l.EXTERNAL_ACTIONS_STORE;};p.prototype.registerStoreEvents=function(){this.registerEvents([k.INIT_DATA_LOADED],this.$BoostedComponentExternalActionsStore1.bind(this));};p.prototype.$BoostedComponentExternalActionsStore1=function(){var q=this.getConfig(),r=q.getContextStore(),s=q.getDispatcher();s.waitFor([r.getDispatchToken()]);switch(r.getAppID()){case i.BOOSTED_CCTA:h.subscribe('PageCallToAction/forceUpdate',function(event,t){if(r.getPageID()===t.page_id)s.handleUpdateFromViewAction({actionType:k.RELOAD_DATA});});break;case i.BOOSTED_POST:if(r.getPlacement()===m.COMPOSER)h.subscribe('UIPrivacyWidget/globalPrivacyChanged',function(event,t){s.handleUpdateFromViewAction({actionType:k.UPDATE_PRIVACY_GATING,data:t.data});});break;}return true;};function p(){n.apply(this,arguments);}f.exports=p;},null);
__d('BoostedComponentInsightsStore',['BoostedComponentBaseStore','BoostedComponentClientEvent','BoostedComponentConfigPayload','BoostedComponentDataState','BoostedComponentInsightsStoreFields'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m,n;'use strict';m=babelHelpers.inherits(o,h);n=m&&m.prototype;o.prototype.getStorePayloadKey=function(){return j.INSIGHTS_STORE_DATA;};o.prototype.registerStoreEvents=function(){this.registerEvents([i.DATA_LOADED],this.$BoostedComponentInsightsStore1.bind(this));};o.prototype.$BoostedComponentInsightsStore1=function(p){this.data=p;this.setState(k.ACTIVE);};o.prototype.getAgeGenderData=function(){return this.data[l.AGE_GENDER_DATA];};o.prototype.getConversions=function(){return this.data[l.CONVERSIONS];};o.prototype.getCountryData=function(){return this.data[l.COUNTRY_DATA];};o.prototype.getEngagementData=function(){return this.data[l.ENGAGEMENT_DATA];};o.prototype.getReach=function(){return this.data[l.REACH];};o.prototype.getSpend=function(){return this.data[l.SPEND];};function o(){m.apply(this,arguments);}f.exports=o;},null);
__d('BoostedLocalAwarenessLogging',['Banzai','BoostedComponentAppID'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j='boosted_localawareness',k={log:function(l,m){var n=Object.assign({},m);n.event=l;n.source_app_id=i.BOOSTED_LOCAL_AWARENESS;h.post(j,n,h.VITAL);}};f.exports=k;},null);
__d('BoostedPostLogging',['AsyncRequest','Banzai'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j={log:function(k,l){l.event=k;if(i.isEnabled('boosted_posts'))i.post('boosted_posts',l,i.VITAL);},logClickConversionTracking:function(k,l,m,n){var o={page_id:k};if(l)o.post_id=l;if(m)o.campaign_id=m;if(n)o.campaign_placement=n;new h('/ads/ajax/boosted/convtrack.php').setData(o).send();}};f.exports=j;},null);
__d('BoostedPagelikeLogging',['Banzai'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i={EDIT_GEO:'boosted_pagelike_edit_geo',EDIT_KEYWORD:'boosted_pagelike_edit_keyword',EDIT_AGE:'boosted_pagelike_edit_age',EDIT_GENDER:'boosted_pagelike_edit_gender',EDIT_BUDGET:'boosted_pagelike_edit_budget',EDIT_END_TIME:'boosted_pagelike_edit_end_time',EDIT_ACCOUNT:'boosted_pagelike_edit_account',ACTION_MENU:'boosted_pagelike_action_menu',LINK_CLICK:'boosted_pagelike_link_click',ADD_PAYMENT_FLOW_CANCELED:'boosted_pagelike_add_payment_flow_canceled',ADD_PAYMENT_FLOW_COMPLETED:'boosted_pagelike_add_payment_flow_completed',ADD_PAYMENT_FLOW_INITIATED:'boosted_pagelike_add_payment_flow_initiated',SUBMIT:'boosted_pagelike_submit',SUBMIT_BUTTON_CLICK:'boosted_pagelike_submit_button_click',VIEW_UPSELL:'boosted_pagelike_view_upsell',GRAPH_API_ERROR:'boosted_pagelike_graph_api_error',log:function(j,k){var l=babelHelpers._extends({},k);l.event=j;if(h.isEnabled('boosted_pagelikes'))h.post('boosted_pagelikes',l,h.VITAL);}};f.exports=i;},null);
__d('BoostedWebsiteLogger',['Banzai'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={ADD_PAYMENT_FLOW_CANCELED:'boosted_website_add_payment_flow_canceled',ADD_PAYMENT_FLOW_COMPLETED:'boosted_website_add_payment_flow_completed',ADD_PAYMENT_FLOW_INITIATED:'boosted_website_add_payment_flow_initiated',log:function(j,k){k.event=j;if(h.isEnabled('boosted_website'))h.post('boosted_website',k,h.VITAL);}};f.exports=i;},null);
__d('BoostedComponentLoggerStore',['AYMTTipActionTypes','Banzai','BoostedComponentAdApprovalPreTestStates','BoostedComponentAppID','BoostedComponentBaseStore','BoostedComponentDataState','BoostedComponentClientEvent','BoostedLocalAwarenessLogging','BoostedPostLogging','BoostedPagelikeLogging','BoostedWebsiteLogger','URI'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){if(c.__markCompiled)c.__markCompiled();var t,u;'use strict';t=babelHelpers.inherits(v,l);u=t&&t.prototype;function v(w){u.constructor.call(this);this.$BoostedComponentLoggerStore1=w.getDispatcher();this.$BoostedComponentLoggerStore2=w.getSpecs();this.$BoostedComponentLoggerStore3=w.getAdAccountStore();this.$BoostedComponentLoggerStore4=w.getContextStore();this.$BoostedComponentLoggerStore5=w.getDialogUIStore();this.$BoostedComponentLoggerStore6=w.getCreativeStore();this.$BoostedComponentLoggerStore7=null;this.setState(m.NOT_INITIALIZED);this.dispatchToken=this.$BoostedComponentLoggerStore1.register((function(x){var y=x.action;switch(y.actionType){case n.INIT_DATA_LOADED:this.$BoostedComponentLoggerStore1.waitFor([this.$BoostedComponentLoggerStore8().getDispatchToken()]);switch(this.$BoostedComponentLoggerStore8().getAppID()){case k.BOOSTED_POST:case k.BOOSTED_EVENT:case k.BOOSTED_PRODUCT:this.$BoostedComponentLoggerStore9=p;break;case k.BOOSTED_PAGELIKE:this.$BoostedComponentLoggerStore9=q;break;case k.BOOSTED_WEBSITE:case k.BOOSTED_CCTA:this.$BoostedComponentLoggerStore9=r;break;case k.BOOSTED_LOCAL_AWARENESS:this.$BoostedComponentLoggerStore9=o;break;}this.setState(m.ACTIVE);this.inform('change');break;case n.DATA_LOADED:this.$BoostedComponentLoggerStore7=this.$BoostedComponentLoggerStore2.getSpecsJSON();break;case n.ON_MOUSE_ENTER:case n.ON_AUTO_OPEN:case n.ON_UPSELL_BUTTON_CLICK:case n.ON_EDIT_CAMPAIGN_CLICK:this.$BoostedComponentLoggerStore1.waitFor([this.$BoostedComponentLoggerStore8().getDispatchToken()]);break;case h.TIPS_LOADED:return;}this.$BoostedComponentLoggerStore10(y.actionType);this.$BoostedComponentLoggerStore11(y);var z=this.$BoostedComponentLoggerStore12().getApiWarning();if(y.actionType===n.ON_DIALOG_CANCEL_BUTTON_CLICK)switch(z){case j.WARNING_FOR_INTEGRITY_API:this.$BoostedComponentLoggerStore10(n.CLIENT_CANCEL_ON_API_WARNING);break;case j.WARNING_FOR_TEXT_POLICY:this.$BoostedComponentLoggerStore10(n.CLIENT_CANCEL_ON_TEXT_POLICY_WARNING);break;default:return;}if(y.actionType===n.ON_UPSELL_BUTTON_CLICK||y.actionType===n.ON_EDIT_CAMPAIGN_CLICK)switch(z){case j.WARNING_FOR_INTEGRITY_API:this.$BoostedComponentLoggerStore10(n.ADS_INTEGRITY_API_WARNING_SHOWN_AGAIN);break;case j.WARNING_FOR_TEXT_POLICY:this.$BoostedComponentLoggerStore10(n.TEXT_POLICY_WARNING_SHOWN_AGAIN);break;default:return;}}).bind(this));}v.prototype.$BoostedComponentLoggerStore11=function(w){switch(w.actionType){case n.DATA_LOADED:if(this.$BoostedComponentLoggerStore13().getDialogShown())this.$BoostedComponentLoggerStore10(n.CREATE_DIALOG_OPEN);break;case n.ON_UPSELL_BUTTON_CLICK:case n.ON_EDIT_CAMPAIGN_CLICK:if(this.$BoostedComponentLoggerStore13().isDataReady())this.$BoostedComponentLoggerStore10(n.CREATE_DIALOG_OPEN);break;}};v.prototype.$BoostedComponentLoggerStore14=function(w){var x={},y=this.$BoostedComponentLoggerStore2.getBudgetEstimationStore(),z=this.$BoostedComponentLoggerStore13(),aa=this.$BoostedComponentLoggerStore2.getDurationStore(),ba=this.$BoostedComponentLoggerStore12();switch(w){case n.ON_AUTO_OPEN:this.$BoostedComponentLoggerStore15=Date.now();this.$BoostedComponentLoggerStore16=Date.now();x.uri_params=new s(window.location.href).getQueryData();break;case n.ON_MOUSE_ENTER:if(!this.$BoostedComponentLoggerStore15)this.$BoostedComponentLoggerStore15=Date.now();break;case n.ON_UPSELL_BUTTON_CLICK:case n.ON_EDIT_CAMPAIGN_CLICK:if(!z.isDataReady()){this.$BoostedComponentLoggerStore16=Date.now();}else this.$BoostedComponentLoggerStore17=0;var ca=z.getUpsellLogData();if(ca)x.upsell_data=ca;break;case n.DATA_LOADED:x.processing_time=Date.now()-this.$BoostedComponentLoggerStore15;if(this.$BoostedComponentLoggerStore16)this.$BoostedComponentLoggerStore17=Date.now()-this.$BoostedComponentLoggerStore16;delete this.$BoostedComponentLoggerStore15;delete this.$BoostedComponentLoggerStore16;break;case n.CREATE_DIALOG_OPEN:x.processing_time=this.$BoostedComponentLoggerStore17;delete this.$BoostedComponentLoggerStore17;break;case n.CREATE_SUBMIT:this.$BoostedComponentLoggerStore18=Date.now();break;case n.CREATE_SUCCESS:case n.CREATE_FAIL:x.processing_time=Date.now()-this.creationStartTime;ca=z.getUpsellLogData();if(ca)x.upsell_data=ca;break;case n.INPUT_CUSTOM_BUDGET:case n.UPDATE_BUDGET:x.starting_value=y.getPreviouslySelectedBudgetValue();x.ending_value=y.getSelectedBudgetValue();break;case n.UPDATE_DURATION:case n.UPDATE_CAMPAIGN_LENGTH_IN_DAYS:case n.UPDATE_RUN_CONTINUOUSLY:x.starting_value=aa.getPreviousRunContinuously()?-1:aa.getPreviousCampaignLengthInDays();x.ending_value=aa.getRunContinuously()?-1:aa.getCampaignLengthInDays();break;case n.ON_DIALOG_REQUEST_REVIEW_CONFIRM:case n.ON_DIALOG_REQUEST_REVIEW_CLICK:case n.TEXT_POLICY_WARNING_SHOWN_AGAIN:case n.ADS_INTEGRITY_API_WARNING_SHOWN_AGAIN:x.api_results=ba.getApiResults();break;}switch(w){case n.CREATE_DIALOG_OPEN:case n.CREATE_CLICK:case n.CREATE_SUBMIT:case n.CREATE_SUCCESS:case n.CREATE_FAIL:case n.PAUSE_CLICK:case n.PAUSE_SUBMIT:case n.PAUSE_SUCCESS:case n.PAUSE_FAIL:case n.UPDATE_CLICK:case n.UPDATE_SUBMIT:case n.UPDATE_SUCCESS:case n.UPDATE_FAIL:case n.RESUME_CLICK:case n.RESUME_SUBMIT:case n.RESUME_SUCCESS:case n.RESUME_FAIL:case n.DELETE_CLICK:case n.DELETE_SUBMIT:case n.DELETE_SUCCESS:case n.DELETE_FAIL:case n.UPDATE_AUDIENCE:case n.UPDATE_CITIES:case n.UPDATE_COUNTRIES:case n.UPDATE_REGIONS:case n.UPDATE_RADIUS:case n.UPDATE_LOOKALIKE_COUNTRY:case n.INPUT_CUSTOM_BUDGET:case n.UPDATE_BUDGET:case n.UPDATE_DURATION:case n.UPDATE_CAMPAIGN_LENGTH_IN_DAYS:case n.UPDATE_RUN_CONTINUOUSLY:x.specs=this.$BoostedComponentLoggerStore2.getSpecsJSON();break;}switch(w){case n.CREATE_CLICK:case n.CREATE_SUBMIT:case n.CREATE_SUCCESS:case n.CREATE_FAIL:x.default_specs=this.$BoostedComponentLoggerStore7;break;}return x;};v.prototype.$BoostedComponentLoggerStore19=function(w){var x=w||{},y=this.$BoostedComponentLoggerStore13();x.page_id=this.$BoostedComponentLoggerStore8().getPageID();x.post_id=this.$BoostedComponentLoggerStore8().getPostID();x.source_app_id=this.$BoostedComponentLoggerStore8().getAppID();x.config_state=y.getState();x.placement=this.$BoostedComponentLoggerStore8().getPlacement();if(y.getState()==m.ACTIVE)x.ad_account_id=this.$BoostedComponentLoggerStore20().getSelectedAccountID();return x;};v.prototype.$BoostedComponentLoggerStore10=function(w){if(i.isEnabled('boosted_component')){var x=this.$BoostedComponentLoggerStore19(this.$BoostedComponentLoggerStore14(w));x.event=w;x.flow_id=this.$BoostedComponentLoggerStore8().getFlowID();i.post('boosted_component',x,i.VITAL);}if(this.$BoostedComponentLoggerStore9)this.$BoostedComponentLoggerStore9.log(w,this.$BoostedComponentLoggerStore19(this.$BoostedComponentLoggerStore14(w)));};v.prototype.$BoostedComponentLoggerStore20=function(){return this.$BoostedComponentLoggerStore3;};v.prototype.$BoostedComponentLoggerStore8=function(){return this.$BoostedComponentLoggerStore4;};v.prototype.$BoostedComponentLoggerStore13=function(){return this.$BoostedComponentLoggerStore5;};v.prototype.$BoostedComponentLoggerStore12=function(){return this.$BoostedComponentLoggerStore6;};f.exports=v;},null);
__d('BoostedComponentReviewAPIStore',['AdsReviewAPIActionTypes','AdsReviewAPIBatchingQueue','AdsReviewAPIFeedbackHelper','AdsReviewAPIStoreActions','AdsRunStatus','BoostedComponentBaseStore','BoostedComponentClientEvent','BoostedComponentConfigPayload','BoostedComponentDataState','WebApiApplication','adsGKCheck'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){if(c.__markCompiled)c.__markCompiled();var s,t;'use strict';s=babelHelpers.inherits(u,m);t=s&&s.prototype;u.prototype.getStorePayloadKey=function(){return o.REVIEW_API_STORE_DATA;};u.prototype.getStorePayloadData=function(v){return v;};u.prototype.registerStoreEvents=function(){this.registerEvents([n.DATA_LOADED],this.$BoostedComponentReviewAPIStore1.bind(this));this.registerEvents([n.UPDATE_AGE,n.UPDATE_CREATIVE],this.maybeValidateCurrentAd.bind(this));this.registerEvents([h.AD_REVIEW_API_REQUEST_COMPLETE],this.maybeSetFeedback.bind(this));};u.prototype.$BoostedComponentReviewAPIStore1=function(v){this.setState(p.ACTIVE);return this.maybeValidateCurrentAd();};u.prototype.getFeedbackHelper=function(){if(!this.$BoostedComponentReviewAPIStore2)this.$BoostedComponentReviewAPIStore2=new j();return this.$BoostedComponentReviewAPIStore2;};u.prototype.getReviewFeedback=function(){return this.getFeedbackHelper().getReviewFeedback();};u.prototype.getIsAdRejected=function(){return this.getFeedbackHelper().getIsAdRejected();};u.prototype.isEnabled=function(){if(!r('boosted_component_ipc_exposure'))return false;return true;};u.prototype.maybeValidateCurrentAd=function(){if(!this.isEnabled())return false;var v=this.getConfig().getAdAccountStore().getSelectedAccountID(),w=this.$BoostedComponentReviewAPIStore3(),x=this.getConfig().getTargetingStore().getTargetingSpec(),y=this.getConfig().getBudgetEstStore().getRawDailyBudget(),z=this.getConfig().getBudgetEstStore().getRawTotalBudget(),aa=this.getConfig().getBudgetEstStore().getAudienceSize(),ba={targeting:x,daily_budget:y,lifetime_budget:z,lifetime_reach:aa};return this.getFeedbackHelper().maybeValidateAd(v,w,ba,this.$BoostedComponentReviewAPIStore4.bind(this));};u.prototype.maybeSetFeedback=function(v){return this.getFeedbackHelper().maybeSetFeedback(v.adFeedback);};u.prototype.shouldListenToAdsDispatcher=function(){return true;};u.prototype.$BoostedComponentReviewAPIStore4=function(v,w,x,y){this.$BoostedComponentReviewAPIStore5();var z=Object.assign({},w);z.campaign_spec=x;i.add(v,z,y).done(function(aa){return k.updateValidationResults(aa);});};u.prototype.$BoostedComponentReviewAPIStore3=function(){var v=this.getConfig().getCreativeStore().getCreativeSpec();return {adgroup_status:l.PAUSED,creative:v,name:'LWI Ad'};};u.prototype.$BoostedComponentReviewAPIStore5=function(){q.init(this.getConfig().getContextStore().getAccessToken(),this.getConfig().getContextStore().getClientID());};function u(){s.apply(this,arguments);}f.exports=u;},null);
__d('BoostedComponentSpec',['BoostedComponentBudgetType','BoostedComponentSpecFields'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();function j(k,l,m,n,o,p,q){this.$BoostedComponentSpec1=k;this.$BoostedComponentSpec2=l;this.$BoostedComponentSpec3=m;this.$BoostedComponentSpec4=n;this.$BoostedComponentSpec5=o;this.$BoostedComponentSpec6=p;this.$BoostedComponentSpec7=q;}j.prototype.getAdAccountStore=function(){return this.$BoostedComponentSpec2;};j.prototype.getBudgetEstimationStore=function(){return this.$BoostedComponentSpec6;};j.prototype.getContextStore=function(){return this.$BoostedComponentSpec1;};j.prototype.getConversionPixelStore=function(){return this.$BoostedComponentSpec7;};j.prototype.getCreativeStore=function(){return this.$BoostedComponentSpec4;};j.prototype.getDurationStore=function(){return this.$BoostedComponentSpec5;};j.prototype.getTargetingStore=function(){return this.$BoostedComponentSpec3;};j.prototype.setBoostedPostSpecs=function(k){this.$BoostedComponentSpec8=k;};j.prototype.getBoostedPostSpecs=function(){return this.$BoostedComponentSpec8;};j.prototype.$BoostedComponentSpec9=function(){var k={};this.$BoostedComponentSpec10(k);this.$BoostedComponentSpec11(k);this.$BoostedComponentSpec12(k);this.$BoostedComponentSpec13(k);this.$BoostedComponentSpec14(k);this.$BoostedComponentSpec15(k);this.$BoostedComponentSpec16(k);return k;};j.prototype.getSpecsJSON=function(){return JSON.stringify(this.$BoostedComponentSpec9());};j.prototype.getSpecsWithEmptyCreativeJSON=function(){var k=this.$BoostedComponentSpec9();k[i.CREATIVE_SPEC]={};return JSON.stringify(k);};j.prototype.$BoostedComponentSpec10=function(k){k[i.AD_ACCOUNT_ID]=this.$BoostedComponentSpec2.getSelectedAccountID();k[i.CURRENCY]=this.$BoostedComponentSpec2.getSelectedAccountCurrency();};j.prototype.$BoostedComponentSpec11=function(k){if(this.$BoostedComponentSpec8){k[i.PRIVACY_SPEC]=this.$BoostedComponentSpec8.getPrivacyGatingSpec();k[i.AUDIENCE]=this.$BoostedComponentSpec8.getAudience();k[i.SAVED_AUDIENCE_ID]=this.$BoostedComponentSpec8.getLastAudienceID();k[i.TARGET_SPEC]=this.$BoostedComponentSpec8.getTargetingSpecForConfig();k[i.UPDATE_STICKY_SETTINGS]=this.$BoostedComponentSpec8.shouldUpdateStickySettings();return;}k[i.TARGET_SPEC]=this.$BoostedComponentSpec3.getTargetingSpec();};j.prototype.$BoostedComponentSpec12=function(k){k[i.CREATIVE_SPEC]=this.$BoostedComponentSpec4.getCreativeSpec();};j.prototype.$BoostedComponentSpec13=function(k){k[i.END_TIME]=this.$BoostedComponentSpec5.getRunContinuously()?0:this.$BoostedComponentSpec5.getCampaignEndTime();k[i.CAMPAIGN_LENGTH]=this.$BoostedComponentSpec5.getCampaignLength();};j.prototype.$BoostedComponentSpec14=function(k){var l=i.DAILY_BUDGET;if(this.$BoostedComponentSpec6.getBudgetType()===h.LIFETIME_BUDGET)l=i.LIFETIME_BUDGET;k[l]=this.$BoostedComponentSpec6.getSelectedBudgetValue();};j.prototype.$BoostedComponentSpec15=function(k){k[i.CONVERSION_PIXEL_ID]=this.$BoostedComponentSpec7.getSelectedConversionPixelID();};j.prototype.$BoostedComponentSpec16=function(k){k[i.ENTRY_POINT]=this.$BoostedComponentSpec1.getPlacement();k[i.FLOW_ID]=this.$BoostedComponentSpec1.getFlowID();if(this.$BoostedComponentSpec6.hasSelectedBudgetInfo()){k[i.ESTIMATES_LOWER]=this.$BoostedComponentSpec6.getSelectedBudgetLowerEstimates();k[i.ESTIMATES_UPPER]=this.$BoostedComponentSpec6.getSelectedBudgetUpperEstimates();k[i.BISON_ESTIMATE]=this.$BoostedComponentSpec6.getSelectedBudgetBisonEstimate();}};j.prototype.getBoostedPostConfig=function(){var k=this.getBoostedPostSpecs().getConfig();k.setPlacement(this.$BoostedComponentSpec1.getPlacement());k.setCreativeSpec(this.$BoostedComponentSpec4.getCreativeSpec());k.setFlowID(this.$BoostedComponentSpec1.getFlowID());return k;};f.exports=j;},null);
__d('BoostedComponentDialogSubmissionStates',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={ENABLED:0,SUBMITTING:1,DISABLED:2};f.exports=h;},null);
__d('AdsReviewAPIUtils',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={doesImageViolateTextPolicy:function(i){if(!i||!i.length)return false;return i.filter(function(j){return j;}).length>10;},getModalCMSIDs:function(i){var j=[];if(!i)return j;for(var k in i.data){var l=i.data[k];for(var m in l){var n=l[m].feedback_info;if(n.cms_data&&n.cms_data.modal_cms_id!=='0')j.push(n.cms_data.modal_cms_id);}}return j;},getBannerCMSIDs:function(i){var j=[];if(!i)return j;Object.keys(i.data).forEach(function(k){var l={};if(i)l=i.data[k];Object.keys(l).forEach(function(m){var n=l[m].feedback_info;if(n.cms_data&&n.cms_data.banner_cms_id!=='0')j.push(n.cms_data.banner_cms_id);});});return j;}};f.exports=h;},null);
__d('BoostedPostStatus',['BoostedPostStatusConfig'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=babelHelpers._extends({isBoosted:function(j){if(j===h.ACTIVE||j===h.ERROR||j===h.PENDING||j===h.EXTENDABLE||j===h.REJECTED||j===h.INSIGHTS||j===h.FINISHED)return true;return false;}},h);f.exports=i;},null);
__d('AdsHelpTrayCMSDataDispatcher',['AdsDispatcher','AdsHelpTrayActionTypes','AdsLoadState'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k={dispatchContentList:function(l,m,n){h.handleUpdateFromViewAction({data:{loadingStatus:j.LOADED,list:m,key:l},logData:{search_query:n,results_count:Object.keys(m).length},type:i.CMS_CONTENT_LIST_LOADED});},dispatchLoadedCMS:function(l,m,n,o,p){this.dispatchCMSContent(j.LOADED,l,m,n,o,p);},dispatchCMSContent:function(l,m,n,o,p,q){h.handleUpdateFromViewAction({data:{loadingStatus:l,content:o,title:n,cmsID:m,shareback:p,adgroupID:q},logData:{cms_id:m},type:i.CMS_CONTENT_LOADED});}};f.exports=k;},null);
__d("XAdsHelpTrayContentAsyncController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/help_tray\/ajax\/help_content\/",{safe_tag_id:{type:"String"},cms_id:{type:"String",required:true}});},null,{});
__d("XAdsHelpTrayContentListAsyncController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/help_tray\/ajax\/list_help_content\/",{});},null,{});
__d("XAdsHelpTrayDisapprovalReasonAsyncController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/help_tray\/ajax\/disapproval\/",{adgroup_id:{type:"String",required:true},safe_tag_id:{type:"String"}});},null,{});
__d('AdsHelpTrayCMSDataLoader',['AdsHelpTrayCMSDataDispatcher','AdsLoadState','AsyncRequest','XAdsHelpTrayContentAsyncController','XAdsHelpTrayContentListAsyncController','XAdsHelpTrayDisapprovalReasonAsyncController'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n={requestCMSSearch:function(o,p){var q=l.getURIBuilder().getURI();new j().setURI(q).setData({key:o,safe_tag_id:p.safeTagID,cms_ids:p.cmsIDs,complete_list:p.completeList,query:p.query,tags:p.tags,exclude_tags:p.excludeTags,limit:p.limit,sort:p.sort,render_content:p.renderContent}).setAllowCrossPageTransition(true).setErrorHandler(function(r){h.dispatchContentList(o,{});}).send();},requestCMSContent:function(o,p){var q=k.getURIBuilder().setString('safe_tag_id',p).setString('cms_id',o).getURI();new j().setURI(q).setAllowCrossPageTransition(true).setErrorHandler(function(r){h.dispatchCMSContent(i.ERROR,o);}).send();},requestDisapprovalReason:function(o,p){var q=m.getURIBuilder().setString('safe_tag_id',p).setString('adgroup_id',o).getURI();new j().setURI(q).setAllowCrossPageTransition(true).send();}};f.exports=n;},null);
__d('AdsHelpTrayCMSStore',['AdsBaseStore','AdsHelpTrayActionTypes','AdsHelpTrayCMSDataLoader','AdsLoadState','Map'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m,n;'use strict';m=babelHelpers.inherits(o,h);n=m&&m.prototype;function o(){n.constructor.call(this);this.$AdsHelpTrayCMSStoreClass1=new l();this.$AdsHelpTrayCMSStoreClass2=new l();this.$AdsHelpTrayCMSStoreClass3=new l();}o.prototype.getStoreName=function(){return 'AdsHelpTrayCMSStore';};o.prototype.getCMSContent=function(q,r){var s=this.$AdsHelpTrayCMSStoreClass1.get(q);if(!s){s={loadingStatus:k.LOADING,cmsID:q};this.$AdsHelpTrayCMSStoreClass1.set(q,s);j.requestCMSContent(q,r);}return s;};o.prototype.getContentList=function(q){var r=JSON.stringify(q),s=this.$AdsHelpTrayCMSStoreClass2.get(r);if(!s){s=babelHelpers._extends({},q,{loadingStatus:k.LOADING});this.$AdsHelpTrayCMSStoreClass2.set(r,s);j.requestCMSSearch(r,q);}return s;};o.prototype.getCMSContents=function(q,r){var s={};q.forEach((function(t){s[t]=this.getCMSContent(t,r);}).bind(this));return s;};o.prototype.getDisapprovalMessage=function(q,r){var s=this.$AdsHelpTrayCMSStoreClass3.get(q);if(!s){s={loadingStatus:k.LOADING};this.$AdsHelpTrayCMSStoreClass3.set(q,s);j.requestDisapprovalReason(q,r);}return s;};o.prototype.onDispatchToken=function(q){var r=q.action;switch(r.actionType){case i.CMS_CONTENT_LOADED:this.$AdsHelpTrayCMSStoreClass1.set(r.data.cmsID,r.data);if(r.data.adgroupID)this.$AdsHelpTrayCMSStoreClass3.set(r.data.adgroupID,r.data);this.inform('change');break;case i.CMS_CONTENT_LIST_LOADED:this.$AdsHelpTrayCMSStoreClass2.set(r.data.key,r.data);this.inform('change');break;}};var p=new o();f.exports=p;},null);
__d('AdsHelpTraySpinner.react',['CenteredContainer.react','React','XUISpinner.react'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k=i.createClass({displayName:'AdsHelpTraySpinner',render:function(){return (i.createElement(h,null,i.createElement(j,{size:'large',paused:false})));}});f.exports=k;},null);
__d('AdsReviewAPIFeedbackRenderingUtils',['DOMContainer.react','List.react','React','cx','forEachObject'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m={constructUnorderedCMSList:function(n){var o=[];l(n,function(p,q){o.push(j.createElement('li',{key:q},j.createElement(h,null,p.content)));});return (j.createElement(i,{className:o.length>1?"_5606":''},o));}};f.exports=m;},null);
__d('BoostedComponentReviewAPIDialog.react',['AdsFluxMixinLegacy_DO_NOT_USE','AdsHelpTrayCMSStore','AdsHelpTraySpinner.react','AdsLoadState','AdsReviewAPIFeedbackRenderingUtils','BoostedComponentStrings','React','ReactLayeredComponentMixin','XUIDialog.react','XUIDialogBody.react','XUIDialogButton.react','XUIDialogFooter.react','XUIDialogTitle.react'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){'use strict';if(c.__markCompiled)c.__markCompiled();var u=n.PropTypes,v=n.createClass({displayName:'BoostedComponentReviewAPIDialog',mixins:[h.AdsFluxMixinLegacyOthers([i],{withProps:true}),o],propTypes:{cmsIDs:u.arrayOf(u.string),onConfirm:u.func,onCancel:u.func,confirmLabel:u.string,cancelLabel:u.string},statics:{calculateState:function(w,x){var y=i.getCMSContents(x.cmsIDs),z=Object.keys(y).some(function(ba){return y[ba].loadingStatus===k.LOADING;}),aa=z?k.LOADING:k.LOADED;if(y)return {cmsContent:y,cmsLoadStatus:aa};return {cmsContent:{},cmsLoadStatus:aa};}},renderLayers:function(){var w=this.state.cmsLoadStatus===k.LOADING?n.createElement(j,null):l.constructUnorderedCMSList(this.state.cmsContent);return {dialog:n.createElement(p,{shown:true,width:400,modal:true},n.createElement(t,null,m.INTEGRITY_REJECTED_DIALOG_TITLE),n.createElement(q,null,w),n.createElement(s,null,this.getCancelButton(),n.createElement(r,{use:'confirm',action:'cancel',onClick:this.props.onConfirm,label:this.props.confirmLabel?this.props.confirmLabel:m.CONFIRM})))};},render:function(){return n.createElement('div',null);},getCancelButton:function(){if(this.props.onCancel||this.props.cancelLabel)return (n.createElement(r,{action:'cancel',onClick:this.props.onCancel,label:this.props.cancelLabel?this.props.cancelLabel:m.CANCEL}));return null;}});f.exports=v;},null);
__d("XBoostedComponentCheckFundingSourceController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/boosted_components\/check_funding_source\/",{app_id:{type:"Int",required:true},page_id:{type:"Int",required:true},post_id:{type:"Int"},specs:{type:"String",required:true}});},null,{});
__d("XPrepaidAccountLowBalanceController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/payments\/prepay_low_balance\/",{account_id:{type:"Int",required:true}});},null,{});
__d('BoostedComponentSubmissionValidator',['AdBudgetType','AdManagerFunding','AdsReviewAPIUtils','AsyncRequest','BoostedComponentAdAccountUtils','BoostedComponentAdStatusToAction','BoostedComponentClientEvent','BoostedComponentReviewAPIDialog.react','BoostedComponentSimpleConfirmDialog.react','BoostedComponentStrings','BoostedComponentValidator','BoostedPostLogging','BrazilTaxIDCollectionFlow','Dialog','XBoostedComponentCheckFundingSourceController','XPrepaidAccountLowBalanceController','DOM','React','ReactDOM','fbt','formatDate'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba){if(c.__markCompiled)c.__markCompiled();var ca,da;'use strict';var ea=123097351040126;ca=babelHelpers.inherits(fa,r);da=ca&&ca.prototype;function fa(ga,ha,ia,ja,ka,la,ma,na,oa,pa){da.constructor.call(this);this.$BoostedComponentSubmissionValidator1=ga;this.$BoostedComponentSubmissionValidator2=ha;this.$BoostedComponentSubmissionValidator3=ia;this.$BoostedComponentSubmissionValidator4=ja;this.$BoostedComponentSubmissionValidator5=ka;this.$BoostedComponentSubmissionValidator6=la;this.$BoostedComponentSubmissionValidator7=ma;this.$BoostedComponentSubmissionValidator8=na;this.$BoostedComponentSubmissionValidator9=oa;this.$BoostedComponentSubmissionValidator10=pa;}fa.prototype.$BoostedComponentSubmissionValidator11=function(){if(this.$BoostedComponentSubmissionValidator9){this.$BoostedComponentSubmissionValidator9();}else{var ga=m.getSubmissionActionAfterClick(this.$BoostedComponentSubmissionValidator3.getSelectedAdStatus(),this.$BoostedComponentSubmissionValidator3.getAdStatus());if(!ga)return;this.$BoostedComponentSubmissionValidator1.handleUpdateFromViewAction({actionType:ga});}};fa.prototype.$BoostedComponentSubmissionValidator12=function(){if(this.$BoostedComponentSubmissionValidator10){this.$BoostedComponentSubmissionValidator10();}else{var ga=m.getCancelActionAfterClick(this.$BoostedComponentSubmissionValidator3.getSelectedAdStatus(),this.$BoostedComponentSubmissionValidator3.getAdStatus());if(!ga)return;this.$BoostedComponentSubmissionValidator1.handleUpdateFromViewAction({actionType:ga});}};fa.prototype.$BoostedComponentSubmissionValidator13=function(){this.$BoostedComponentSubmissionValidator1.handleUpdateFromViewAction({actionType:n.INTEGRITY_REJECTED_DIALOG_CANCEL});};fa.prototype.$BoostedComponentSubmissionValidator14=function(){this.$BoostedComponentSubmissionValidator1.handleUpdateFromViewAction({actionType:n.INTEGRITY_REJECTED_DIALOG_CONFIRM});};fa.prototype.checkFundingSource=function(ga){new k(this.$BoostedComponentSubmissionValidator15(ga).toString()).setMethod('POST').setHandler(this.$BoostedComponentSubmissionValidator16.bind(this)).setTimeoutHandler(30000,this.$BoostedComponentSubmissionValidator12.bind(this)).send();};fa.prototype.checkIsIntegrityRejected=function(){return this.$BoostedComponentSubmissionValidator8.getIsAdRejected();};fa.prototype.renderIntegrityDialog=function(){var ga=j.getModalCMSIDs(this.$BoostedComponentSubmissionValidator8.getReviewFeedback());if(!this.$BoostedComponentSubmissionValidator17)this.$BoostedComponentSubmissionValidator17=x.create('div');z.render(y.createElement(o,{cmsIDs:ga,onCancel:this.$BoostedComponentSubmissionValidator13.bind(this),onConfirm:this.$BoostedComponentSubmissionValidator14.bind(this)}),this.$BoostedComponentSubmissionValidator17);};fa.prototype.confirmAction=function(ga){var ha=null,ia=null;switch(ga){case n.PAUSE_CLICK:ha=q.PAUSE_DIALOG_TITLE;ia=q.PAUSE_DIALOG_BODY;break;case n.DELETE_CLICK:ha=q.DELETE_DIALOG_TITLE;ia=q.DELETE_DIALOG_BODY;break;default:return;}if(!this.$BoostedComponentSubmissionValidator17)this.$BoostedComponentSubmissionValidator17=x.create('div');z.render(y.createElement(p,{dialogTitle:ha,dialogBody:ia,onCancel:this.$BoostedComponentSubmissionValidator12.bind(this),onConfirm:this.$BoostedComponentSubmissionValidator11.bind(this)}),this.$BoostedComponentSubmissionValidator17);};fa.prototype.$BoostedComponentSubmissionValidator16=function(ga){var ha=ga.payload;if(ha)if(ha.has_funding_source&&ha.is_tax_id_required){this.$BoostedComponentSubmissionValidator18();}else if(ha.has_funding_source){this.$BoostedComponentSubmissionValidator19();}else this.$BoostedComponentSubmissionValidator20(ha.is_account_unsettled);};fa.prototype.$BoostedComponentSubmissionValidator20=function(ga){if(ga||!this.$BoostedComponentSubmissionValidator7.getExperiment('payments_force_add')){this.openAddPaymentDialog(this.$BoostedComponentSubmissionValidator21);}else{this.$BoostedComponentSubmissionValidator1.handleUpdateFromViewAction({actionType:n.BOOST_WITHOUT_PAYMENT_METHOD});this.$BoostedComponentSubmissionValidator12();}};fa.prototype.$BoostedComponentSubmissionValidator18=function(){var ga=t.getURIForTaxIDStep(this.$BoostedComponentSubmissionValidator22(),'lwi_pux');new u().setAsync(new k(ga)).setCloseHandler((function(ha){if(ha&&ha.success){this.$BoostedComponentSubmissionValidator11();}else this.$BoostedComponentSubmissionValidator12();}).bind(this)).show();};fa.prototype.$BoostedComponentSubmissionValidator19=function(){var ga=w.getURIBuilder().setInt('account_id',this.$BoostedComponentSubmissionValidator22()).getURI();new k().setURI(ga).setMethod('POST').setHandler((function(ha){if(ha.payload&&ha.payload.open_payments_flow){this.$BoostedComponentSubmissionValidator23();}else this.$BoostedComponentSubmissionValidator11();}).bind(this)).setErrorHandler((function(ha){this.$BoostedComponentSubmissionValidator11();}).bind(this)).send();};fa.prototype.$BoostedComponentSubmissionValidator23=function(){new u().setTitle(aa._("Add to Balance")).setBody(aa._("Your account balance is low. Add money to your balance to make sure you can run your ad.")).setButtons([u.newButton('skip',aa._("Skip"),'inputaux',(function(){this.$BoostedComponentSubmissionValidator11();}).bind(this)),u.newButton('add_money',aa._("Add Money"),'',(function(){this.openAddPaymentDialog(this.$BoostedComponentSubmissionValidator24);}).bind(this))]).setModal(true).show();};fa.prototype.openAddPaymentDialog=function(ga){var ha=new Date(Date.now()+this.$BoostedComponentSubmissionValidator6.getCampaignLength()*1000);i.addCredential(l.getPaymentsFlowPlacement(this.$BoostedComponentSubmissionValidator5.getAppID()),ea,this.$BoostedComponentSubmissionValidator22(),null,ga.bind(this),null,null,null,this.$BoostedComponentSubmissionValidator5.getUserID(),this.$BoostedComponentSubmissionValidator5.getUserHash(),null,null,h.LIFETIME,this.$BoostedComponentSubmissionValidator4.getSelectedBudgetValue(),this.$BoostedComponentSubmissionValidator2.getSelectedAccountCurrency(),ba(ha,i.CAMPAIGN_DATE_FORMAT));s.log('payment_flow_start',this.$BoostedComponentSubmissionValidator25());};fa.prototype.$BoostedComponentSubmissionValidator21=function(ga){if(ga&&ga.credential_state){s.log('payment_flow_complete',this.$BoostedComponentSubmissionValidator25());this.$BoostedComponentSubmissionValidator11();}else{s.log('payment_flow_canceled',this.$BoostedComponentSubmissionValidator25());this.$BoostedComponentSubmissionValidator12();}};fa.prototype.$BoostedComponentSubmissionValidator24=function(ga){if(!ga)return;this.$BoostedComponentSubmissionValidator11();};fa.prototype.$BoostedComponentSubmissionValidator25=function(){return {page_id:this.$BoostedComponentSubmissionValidator5.getPageID(),post_id:this.$BoostedComponentSubmissionValidator5.getPostID(),ad_account_id:this.$BoostedComponentSubmissionValidator22(),placement:this.$BoostedComponentSubmissionValidator5.getPlacement()};};fa.prototype.$BoostedComponentSubmissionValidator15=function(ga){return (v.getURIBuilder().setInt('app_id',this.$BoostedComponentSubmissionValidator5.getAppID()).setInt('page_id',this.$BoostedComponentSubmissionValidator5.getPageID()).setInt('post_id',this.$BoostedComponentSubmissionValidator5.getPostID()).setString('specs',ga).getURI());};fa.prototype.$BoostedComponentSubmissionValidator22=function(){return this.$BoostedComponentSubmissionValidator2.getSelectedAccountID();};f.exports=fa;},null);
__d('BoostedComponentSubmissionStore',['Arbiter','AsyncResponse','BoostedComponentAppID','BoostedComponentBaseStore','BoostedComponentClientEvent','BoostedComponentDataState','BoostedComponentDialogSubmissionStates','BoostedComponentExperiment','BoostedComponentSubmissionServerActions','BoostedComponentSubmissionValidator','setImmediate','BoostedActionStatus','PromotedPostConstants'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){if(c.__markCompiled)c.__markCompiled();var u,v;'use strict';u=babelHelpers.inherits(w,k);v=u&&u.prototype;function w(x){v.constructor.call(this);this.$BoostedComponentSubmissionStore1=x.getDispatcher();this.$BoostedComponentSubmissionStore2=x.getSpecs();this.$BoostedComponentSubmissionStore3=x.getAdStatusStore();this.$BoostedComponentSubmissionStore4=x.getDialogUIStore();this.$BoostedComponentSubmissionStore5=x.getExperimentStore();this.$BoostedComponentSubmissionStore6=x.getReviewAPIStore();this.$BoostedComponentSubmissionStore7=n.ENABLED;this.$BoostedComponentSubmissionStore8=new p(this.$BoostedComponentSubmissionStore1,this.$BoostedComponentSubmissionStore2,this.$BoostedComponentSubmissionStore3,this.$BoostedComponentSubmissionStore5,this.$BoostedComponentSubmissionStore6);this.setState(m.NOT_INITIALIZED);this.dispatchToken=this.$BoostedComponentSubmissionStore1.register((function(y){var z=y.action;this.$BoostedComponentSubmissionStore9=z.actionType;switch(z.actionType){case l.ENTER_INTEGRITY_FLOW:this.getValidator().renderIntegrityDialog();break;case l.DATA_LOADED:this.setState(m.ACTIVE);this.$BoostedComponentSubmissionStore10();break;case l.CREATE_CLICK:case l.UPDATE_CLICK:case l.RESUME_CLICK:case l.COMPOSER_CREATE_CLICK:if(this.getValidator().checkIsIntegrityRejected()){r((function(){return this.$BoostedComponentSubmissionStore1.handleUpdateFromServerResponse({actionType:l.ENTER_INTEGRITY_FLOW});}).bind(this));return;}this.$BoostedComponentSubmissionStore11();break;case l.INTEGRITY_REJECTED_DIALOG_CONFIRM:this.$BoostedComponentSubmissionStore11();break;case l.PAUSE_CLICK:case l.DELETE_CLICK:this.getValidator().confirmAction(z.actionType);break;case l.CREATE_SUBMIT:case l.UPDATE_SUBMIT:this.$BoostedComponentSubmissionStore8.onSubmit(z.actionType,this.$BoostedComponentSubmissionStore2);break;case l.PAUSE_SUBMIT:case l.RESUME_SUBMIT:case l.DELETE_SUBMIT:this.$BoostedComponentSubmissionStore12(n.SUBMITTING);this.$BoostedComponentSubmissionStore8.onSubmit(z.actionType,this.$BoostedComponentSubmissionStore2);break;case l.COMPOSER_CREATE_SUBMIT:h.inform(t.SET_COMPOSER_BOOST,{budgetLabel:this.$BoostedComponentSubmissionStore2.getBoostedPostSpecs().getBudgetLabel(),formData:{boosted_post_config:this.$BoostedComponentSubmissionStore2.getBoostedPostConfig().getJSONString()}});this.$BoostedComponentSubmissionStore12(n.ENABLED);break;case l.CREATE_SUCCESS:case l.UPDATE_SUCCESS:case l.DELETE_SUCCESS:this.$BoostedComponentSubmissionStore1.waitFor([this.$BoostedComponentSubmissionStore13().getDispatchToken()]);this.$BoostedComponentSubmissionStore12(n.ENABLED);break;case l.PAUSE_SUCCESS:case l.RESUME_SUCCESS:this.$BoostedComponentSubmissionStore1.waitFor([this.$BoostedComponentSubmissionStore13().getDispatchToken()]);if(this.$BoostedComponentSubmissionStore5.getExperiment(o.BOOSTED_COMPONENT_TABBED_DIALOG_COLUMN)){this.$BoostedComponentSubmissionStore12(n.ENABLED);this.$BoostedComponentSubmissionStore10();}else this.$BoostedComponentSubmissionStore12(n.ENABLED);break;case l.CREATE_FAIL:case l.UPDATE_FAIL:case l.PAUSE_FAIL:case l.RESUME_FAIL:case l.DELETE_FAIL:i.defaultErrorHandler(z.data);this.$BoostedComponentSubmissionStore12(n.ENABLED);break;case l.CREATE_CANCEL:case l.UPDATE_CANCEL:case l.PAUSE_CANCEL:case l.RESUME_CANCEL:case l.DELETE_CANCEL:case l.INTEGRITY_REJECTED_DIALOG_CANCEL:this.$BoostedComponentSubmissionStore12(n.ENABLED);break;case l.CLEAR_COMPOSER_BOOST:h.inform(t.CLEAR_COMPOSER_BOOST);break;case l.UPDATE_CALL_TO_ACTION:case l.UPDATE_CALL_TO_ACTION_ERROR:case l.UPDATE_CREATIVE:case l.UPDATE_IMAGE:case l.UPDATE_IMAGE_CROPS:case l.UPDATE_LINK_DATA_FIELDS:case l.LINK_DATA_INFO_FETCHED:case l.TOGGLE_CREATIVE_CATEGORY:case l.VIDEO_ENCODING_SUCCESS:case l.UPDATE_VIDEO_DESCRIPTION:case l.CLEAR_VIDEO_CREATIVE:case l.UPDATE_VIDEO_THUMBNAIL:this.$BoostedComponentSubmissionStore1.waitFor([this.$BoostedComponentSubmissionStore14().getDispatchToken()]);this.$BoostedComponentSubmissionStore10();break;case l.UPDATE_AGE:case l.UPDATE_BROAD_GEO_LOCATIONS:case l.UPDATE_GENDER:case l.UPDATE_INTERESTS:case l.UPDATE_CUSTOM_LOCATION:this.$BoostedComponentSubmissionStore1.waitFor([this.$BoostedComponentSubmissionStore15().getDispatchToken()]);this.$BoostedComponentSubmissionStore10();break;case l.UPDATE_BUDGET:case l.INPUT_CUSTOM_BUDGET:this.$BoostedComponentSubmissionStore1.waitFor([this.$BoostedComponentSubmissionStore16().getDispatchToken()]);this.$BoostedComponentSubmissionStore10();break;case l.UPDATE_DURATION:case l.UPDATE_CAMPAIGN_LENGTH_IN_DAYS:case l.UPDATE_RUN_CONTINUOUSLY:this.$BoostedComponentSubmissionStore1.waitFor([this.$BoostedComponentSubmissionStore17().getDispatchToken(),this.$BoostedComponentSubmissionStore16().getDispatchToken()]);this.$BoostedComponentSubmissionStore10();break;case l.UPDATE_ACCOUNT:case l.UPDATE_CURRENCY:case l.CLIENT_UPDATE_PRIMARY:case l.PRIMARY_PM_UPDATE_SUCCESS:case l.PRIMARY_PM_UPDATE_FAILURE:case l.OPEN_PAYMENTS_FLOW:case l.PAYMENTS_FLOW_CLOSED:case l.PAYMENT_METHOD_ADDED:case l.RELOAD_PAYMENT_DATA_SUCCESS:case l.RELOAD_PAYMENT_DATA_FAIL:this.$BoostedComponentSubmissionStore1.waitFor([this.$BoostedComponentSubmissionStore18().getDispatchToken()]);this.$BoostedComponentSubmissionStore10();break;case l.DIALOG_CHANGE_SUCCESS:case l.DIALOG_CHANGE_FAIL:this.$BoostedComponentSubmissionStore1.waitFor([this.$BoostedComponentSubmissionStore16().getDispatchToken()]);this.$BoostedComponentSubmissionStore10();break;case l.UPDATE_AD_STATUS:this.$BoostedComponentSubmissionStore1.waitFor([this.$BoostedComponentSubmissionStore19().getDispatchToken()]);this.$BoostedComponentSubmissionStore10();break;default:return;}this.inform('change');}).bind(this));}w.prototype.$BoostedComponentSubmissionStore11=function(){var x;switch(this.$BoostedComponentSubmissionStore20().getAppID()){case j.BOOSTED_POST:case j.BOOSTED_EVENT:case j.BOOSTED_PRODUCT:x=this.$BoostedComponentSubmissionStore2.getBoostedPostConfig().getJSONString();break;default:x=this.$BoostedComponentSubmissionStore2.getSpecsJSON();}this.getValidator().checkFundingSource(x);this.$BoostedComponentSubmissionStore12(n.SUBMITTING);};w.prototype.$BoostedComponentSubmissionStore10=function(){if(this.$BoostedComponentSubmissionStore19().getShouldEdit()&&this.$BoostedComponentSubmissionStore19().getSelectedAdStatus()===s.INACTIVE){this.$BoostedComponentSubmissionStore12(n.ENABLED);return;}var x=this.$BoostedComponentSubmissionStore19().getState(),y=this.$BoostedComponentSubmissionStore14().getState(),z=this.$BoostedComponentSubmissionStore15().getState(),aa=this.$BoostedComponentSubmissionStore16().getState(),ba=this.$BoostedComponentSubmissionStore17().getState(),ca=this.$BoostedComponentSubmissionStore18().getState();if(ca===m.ERROR||y===m.ERROR||z===m.ERROR||aa===m.ERROR){this.$BoostedComponentSubmissionStore12(n.DISABLED);return;}if(this.$BoostedComponentSubmissionStore19().getShouldEdit())if(x===m.ACTIVE_WITH_NO_CHANGE&&z===m.ACTIVE_WITH_NO_CHANGE&&y===m.ACTIVE_WITH_NO_CHANGE&&aa===m.ACTIVE_WITH_NO_CHANGE&&ba===m.ACTIVE_WITH_NO_CHANGE){this.$BoostedComponentSubmissionStore12(n.DISABLED);return;}if(ca===m.LOADING){this.$BoostedComponentSubmissionStore12(n.DISABLED);return;}this.$BoostedComponentSubmissionStore12(n.ENABLED);};w.prototype.getDialogSubmissionState=function(){return this.$BoostedComponentSubmissionStore7;};w.prototype.$BoostedComponentSubmissionStore12=function(x){this.$BoostedComponentSubmissionStore7=x;};w.prototype.getCurrentSubmissionAction=function(){return this.$BoostedComponentSubmissionStore9;};w.prototype.$BoostedComponentSubmissionStore18=function(){return this.$BoostedComponentSubmissionStore2.getAdAccountStore();};w.prototype.$BoostedComponentSubmissionStore19=function(){return this.$BoostedComponentSubmissionStore3;};w.prototype.$BoostedComponentSubmissionStore16=function(){return this.$BoostedComponentSubmissionStore2.getBudgetEstimationStore();};w.prototype.$BoostedComponentSubmissionStore20=function(){return this.$BoostedComponentSubmissionStore2.getContextStore();};w.prototype.$BoostedComponentSubmissionStore14=function(){return this.$BoostedComponentSubmissionStore2.getCreativeStore();};w.prototype.$BoostedComponentSubmissionStore21=function(){return this.$BoostedComponentSubmissionStore5;};w.prototype.$BoostedComponentSubmissionStore13=function(){return this.$BoostedComponentSubmissionStore4;};w.prototype.$BoostedComponentSubmissionStore17=function(){return this.$BoostedComponentSubmissionStore2.getDurationStore();};w.prototype.$BoostedComponentSubmissionStore15=function(){return this.$BoostedComponentSubmissionStore2.getTargetingStore();};w.prototype.$BoostedComponentSubmissionStore22=function(){return this.$BoostedComponentSubmissionStore6;};w.prototype.getValidator=function(){return new q(this.$BoostedComponentSubmissionStore1,this.$BoostedComponentSubmissionStore18(),this.$BoostedComponentSubmissionStore19(),this.$BoostedComponentSubmissionStore16(),this.$BoostedComponentSubmissionStore20(),this.$BoostedComponentSubmissionStore17(),this.$BoostedComponentSubmissionStore21(),this.$BoostedComponentSubmissionStore22());};f.exports=w;},null);
__d('BoostedComponentTargetingValidator',['BoostedComponentAppID','BoostedComponentStrings','BoostedComponentValidator'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';k=babelHelpers.inherits(m,j);l=k&&k.prototype;function m(n,o,p){l.constructor.call(this);this.$BoostedComponentTargetingValidator1=n;this.$BoostedComponentTargetingValidator2=o;this.$BoostedComponentTargetingValidator3=p;}m.prototype.$BoostedComponentTargetingValidator4=function(){return (this.$BoostedComponentTargetingValidator1.getCountryNum()<=this.$BoostedComponentTargetingValidator3.getMaxCountryNum());};m.prototype.$BoostedComponentTargetingValidator5=function(){return (this.$BoostedComponentTargetingValidator1.getRegionNum()<=this.$BoostedComponentTargetingValidator3.getMaxRegionNum());};m.prototype.$BoostedComponentTargetingValidator6=function(){return (this.$BoostedComponentTargetingValidator1.getCityNum()<=this.$BoostedComponentTargetingValidator3.getMaxCityNum());};m.prototype.$BoostedComponentTargetingValidator7=function(){return (this.$BoostedComponentTargetingValidator1.getCityNum()+this.$BoostedComponentTargetingValidator1.getRegionNum()+this.$BoostedComponentTargetingValidator1.getCountryNum()>=1);};m.prototype.isValid=function(){if(this.getErrors()&&this.getErrors().length>0)return false;return true;};m.prototype.getErrors=function(){var n=[];if(this.$BoostedComponentTargetingValidator2.getAppID()===h.BOOSTED_POST||this.$BoostedComponentTargetingValidator2.getAppID()===h.BOOSTED_EVENT||this.$BoostedComponentTargetingValidator2.getAppID()===h.BOOSTED_PRODUCT){var o=this.$BoostedComponentTargetingValidator1.getTargetingErrors();if(o&&o.hasErrors())return [o.getErrorToRender()];return null;}if(!this.$BoostedComponentTargetingValidator4())n.push(i.INVALID_COUNTRY_NUM_ERROR);if(!this.$BoostedComponentTargetingValidator5())n.push(i.INVALID_REGION_NUM_ERROR);if(!this.$BoostedComponentTargetingValidator6())n.push(i.INVALID_CITY_NUM_ERROR);if(!this.$BoostedComponentTargetingValidator7())n.push(i.INVALID_LOCATION_NUM_ERROR);return n;};f.exports=m;},null);
__d('BoostedComponentTargetingStore',['ApiCallToActionFields','AdsCallToActionTypes','AdsPageTypes','AdsUtils','BoostedComponentAppID','BoostedComponentBaseStore','BoostedComponentClientEvent','BoostedComponentConfigPayload','BoostedComponentCreativeCategory','BoostedComponentDataState','BoostedComponentGeoLocationType','BoostedComponentGeoTargetLevel','BoostedComponentTargetingStoreFields','BoostedComponentTargetingValidator','BoostedPostAudienceConstants','BoostedPostTargetingErrors','areEqual','invariant','whitelistObjectKeys'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z){if(c.__markCompiled)c.__markCompiled();var aa,ba;'use strict';aa=babelHelpers.inherits(ca,m);ba=aa&&aa.prototype;function ca(da){ba.constructor.call(this);this.$BoostedComponentTargetingStore1=da.getDispatcher();this.$BoostedComponentTargetingStore2=da.getContextStore();this.$BoostedComponentTargetingStore3=da.getConstraintStore();this.$BoostedComponentTargetingStore4=da.getExperimentStore();this.setState(q.NOT_INITIALIZED);this.setInitialValue(null);this.$BoostedComponentTargetingStore5={};this.dispatchToken=this.$BoostedComponentTargetingStore1.register((function(ea){var fa=ea.action;switch(fa.actionType){case n.DATA_LOADED:this.$BoostedComponentTargetingStore6(fa.data[o.TARGETING_STORE_DATA]);this.setInitialValue(k.clone(this.getTargetingSpec()));this.setState(q.ACTIVE);this.validate();break;case n.TOGGLE_CREATIVE_CATEGORY:this.$BoostedComponentTargetingStore7(fa.creativeCategory);this.validate();break;case n.UPDATE_AUDIENCE:this.$BoostedComponentTargetingStore8(fa.data);this.validate();break;case n.UPDATE_AUDIENCE_ID:this.$BoostedComponentTargetingStore9(fa.data);this.validate();break;case n.UPDATE_AGE:var ga=fa.data.age_min,ha=fa.data.age_max;this.$BoostedComponentTargetingStore10(ga,ha);this.validate();break;case n.UPDATE_CALL_TO_ACTION:this.$BoostedComponentTargetingStore11(fa.callToAction);this.validate();break;case n.UPDATE_CUSTOM_LOCATION:this.$BoostedComponentTargetingStore12({custom_locations:[fa.data]});this.validate();break;case n.UPDATE_GENDER:var ia=[];ia.push(fa.data);this.$BoostedComponentTargetingStore13(ia);this.validate();break;case n.UPDATE_GEO_LOCATION_TYPE:this.$BoostedComponentTargetingStore14(fa.data);this.validate();break;case n.UPDATE_INTERESTS:var ja=fa.data.map(function(ra){return {id:ra.getUniqueID(),name:ra.getTitle()};});this.$BoostedComponentTargetingStore15(ja);this.validate();break;case n.UPDATE_BROAD_GEO_LOCATIONS:if(this.$BoostedComponentTargetingStore2.getAppID()===l.BOOSTED_POST||this.$BoostedComponentTargetingStore2.getAppID()===l.BOOSTED_EVENT||this.$BoostedComponentTargetingStore2.getAppID()===l.BOOSTED_PRODUCT)break;var ka=fa.data,la=false;if(!ka||!ka.length){la=true;ka=this.getDefaultLocations();}var ma=[],na=[],oa=[];for(var pa=0;pa<ka.length;++pa){if(la){var qa={key:ka[pa].key,name:ka[pa].name,type:ka[pa].type};}else{qa=ka[pa].getAuxiliaryData();delete qa.matchedText;}switch(qa.type){case s.COUNTRY:case s.COUNTRIES:oa.push(qa.key);break;case s.REGION:case s.REGIONS:na.push(qa);break;case s.CITY:case s.CITIES:ma.push(qa);break;}}this.$BoostedComponentTargetingStore16({cities:ma,regions:na,countries:oa});this.validate();break;case n.DIALOG_CHANGE_SUCCESS:case n.DIALOG_CHANGE_FAIL:this.$BoostedComponentTargetingStore6(fa.data[o.TARGETING_STORE_DATA]);this.validate();break;default:return;}this.inform('change');}).bind(this));}ca.prototype.$BoostedComponentTargetingStore6=function(da){if(!da)return;this.$BoostedComponentTargetingStore5=Object.assign(this.$BoostedComponentTargetingStore5,da);if(da[t.ERRORS])this.$BoostedComponentTargetingStore17(da[t.ERRORS]);if(da[t.CUSTOM_LOCATION_COUNTRY])this.$BoostedComponentTargetingStore5[t.CUSTOM_LOCATION_COUNTRY]=da[t.CUSTOM_LOCATION_COUNTRY];if(this.getTargetingSpec()&&this.getTargetingSpec().length===0)this.$BoostedComponentTargetingStore5[t.DEFAULT_TARGETING_SPEC]={};};ca.prototype.getAudience=function(){return this.$BoostedComponentTargetingStore5[t.AUDIENCE];};ca.prototype.getAudienceID=function(){return this.$BoostedComponentTargetingStore5[t.AUDIENCE_ID];};ca.prototype.getTargetingSpec=function(){switch(this.getAudience()){case v.FANS:case v.GROUPER:case v.ENGAGED:return this.getTargetingSpecFOF();default:return this.getTargetingSpecNCPP();}};ca.prototype.getTargetingSpecNCPP=function(){return (this.$BoostedComponentTargetingStore5[t.DEFAULT_TARGETING_SPEC]||{});};ca.prototype.getTargetingSpecFOF=function(){return this.$BoostedComponentTargetingStore5[t.TARGETING_SPEC_FOF];};ca.prototype.getTargetingSpecJson=function(){return JSON.stringify(this.getTargetingSpec());};ca.prototype.getLocations=function(){if(!this.getTargetingSpec().geo_locations)return null;var da=[],ea=this.getTargetingSpec().geo_locations.cities,fa=this.getTargetingSpec().geo_locations.regions,ga=this.getTargetingSpec().geo_locations.countries;if(ea&&ea.length)for(var ha=0;ha<ea.length;++ha){ea[ha].type=s.CITY;da.push(ea[ha]);}if(fa&&fa.length)for(ha=0;ha<fa.length;++ha){fa[ha].type=s.REGION;da.push(fa[ha]);}if(ga&&ga.length)for(ha=0;ha<ga.length;++ha){if(k.isObject(ga[ha]))ga[ha].type=s.COUNTRY;da.push(ga[ha]);}return da;};ca.prototype.getLocationsKeyValue=function(da){if(!da||!da.length)return undefined;var ea=[];for(var fa=0;fa<da.length;fa++){var ga=da[fa];if(ga.key){ea.push(ga.key.toString());}else ea.push(ga.toString());}return ea.sort();};ca.prototype.getCities=function(){if(!this.getTargetingSpec().geo_locations)return undefined;return (this.getLocationsKeyValue(this.getTargetingSpec().geo_locations.cities));};ca.prototype.getRegions=function(){if(!this.getTargetingSpec().geo_locations)return undefined;return (this.getLocationsKeyValue(this.getTargetingSpec().geo_locations.regions));};ca.prototype.getCountries=function(){if(!this.getTargetingSpec().geo_locations)return undefined;return (this.getLocationsKeyValue(this.getTargetingSpec().geo_locations.countries));};ca.prototype.getInitialCities=function(){if(!this.getInitialValue().geo_locations)return undefined;return (this.getLocationsKeyValue(this.getInitialValue().geo_locations.cities));};ca.prototype.getInitialCustomLocation=function(){var da=this.getInitialValue();return (da.geo_locations&&da.geo_locations.custom_locations&&da.geo_locations.custom_locations.length===1&&da.geo_locations.custom_locations[0]||undefined);};ca.prototype.getInitialRegions=function(){if(!this.getInitialValue().geo_locations)return undefined;return (this.getLocationsKeyValue(this.getInitialValue().geo_locations.regions));};ca.prototype.getInitialCountries=function(){if(!this.getInitialValue().geo_locations)return undefined;return (this.getLocationsKeyValue(this.getInitialValue().geo_locations.countries));};ca.prototype.getInitialGender=function(){var da=this.getInitialValue().genders;if(!da)return 0;return da[0];};ca.prototype.getCustomLocation=function(){var da=this.getTargetingSpec();return (da.geo_locations&&da.geo_locations.custom_locations&&da.geo_locations.custom_locations.length===1&&da.geo_locations.custom_locations[0]||null);};ca.prototype.getCustomLocationCountry=function(){return this.$BoostedComponentTargetingStore5[t.CUSTOM_LOCATION_COUNTRY];};ca.prototype.getMinAge=function(){!this.getTargetingSpec().age_min?y(0):undefined;return this.getTargetingSpec().age_min;};ca.prototype.getMaxAge=function(){!this.getTargetingSpec().age_max?y(0):undefined;return this.getTargetingSpec().age_max;};ca.prototype.getGender=function(){if(this.getTargetingSpec().genders)return this.getTargetingSpec().genders[0];return 0;};ca.prototype.getCountryNum=function(){var da=this.getCountries();if(!da)return 0;return da.length;};ca.prototype.getRegionNum=function(){var da=this.getRegions();if(!da)return 0;return da.length;};ca.prototype.getCityNum=function(){if(this.getCustomLocation())return 1;var da=this.getCities();if(!da)return 0;return da.length;};ca.prototype.getInterests=function(){return this.getTargetingSpec().interests;};ca.prototype.getPageTypes=function(){return this.getTargetingSpec().page_types;};ca.prototype.getDefaultLocations=function(){return this.$BoostedComponentTargetingStore5[t.DEFAULT_LOCATIONS];};ca.prototype.getDefaultLookalikeCountry=function(){return this.$BoostedComponentTargetingStore5[t.LOOKALIKE_COUNTRY];};ca.prototype.getTargetingErrors=function(){return this.$BoostedComponentTargetingStore5[t.ERRORS];};ca.prototype.getIsSuggestedAudience=function(){return this.$BoostedComponentTargetingStore5[t.IS_SUGGESTED_AUDIENCE];};ca.prototype.getCurrentBroadGeoLocationSpec=function(){return this.$BoostedComponentTargetingStore5[t.CURRENT_BROAD_GEO_LOCATION];};ca.prototype.getCurrentLocalGeoLocationSpec=function(){return this.$BoostedComponentTargetingStore5[t.CURRENT_LOCAL_GEO_LOCATION];};ca.prototype.getGeoLocationType=function(){return ('custom_locations' in this.getTargetingSpec().geo_locations?r.LOCAL_GEO_LOCATION:r.BROAD_GEO_LOCATION);};ca.prototype.getCurrentInterests=function(){return this.$BoostedComponentTargetingStore18;};ca.prototype.hasChanged=function(){if(!x(this.getCities(),this.getInitialCities()))return true;if(!x(this.getRegions(),this.getInitialRegions()))return true;if(!x(this.getCountries(),this.getInitialCountries()))return true;if(this.getMinAge()!==this.getInitialValue().age_min)return true;if(this.getMaxAge()!==this.getInitialValue().age_max)return true;if(this.getGender()!==this.getInitialGender())return true;if(!k.arraysOfMapEquals(this.getInterests(),this.getInitialValue().interests))return true;var da=this.getTargetingSpec(),ea=this.getInitialValue();if(!this.$BoostedComponentTargetingStore19(da.geo_locations&&da.geo_locations.custom_locations,ea.geo_locations&&ea.geo_locations.custom_locations))return true;return false;};ca.prototype.$BoostedComponentTargetingStore8=function(da){this.$BoostedComponentTargetingStore5[t.AUDIENCE]=da;};ca.prototype.$BoostedComponentTargetingStore9=function(da){this.$BoostedComponentTargetingStore5[t.AUDIENCE_ID]=da;};ca.prototype.$BoostedComponentTargetingStore16=function(da){this.getTargetingSpec().geo_locations={cities:da.cities,countries:da.countries,regions:da.regions};};ca.prototype.$BoostedComponentTargetingStore12=function(da){var ea=this.getTargetingSpec().geo_locations,fa=ea&&ea.location_types?ea.location_types:da.location_types;if(fa&&fa.indexOf('recent')<0)fa.push('recent');this.getTargetingSpec().geo_locations={custom_locations:da.custom_locations,location_types:fa};};ca.prototype.$BoostedComponentTargetingStore10=function(da,ea){this.getTargetingSpec().age_min=da;this.getTargetingSpec().age_max=ea;};ca.prototype.$BoostedComponentTargetingStore13=function(da){if(da.length===1&&da[0]===0){delete this.getTargetingSpec().genders;return;}this.getTargetingSpec().genders=da;};ca.prototype.$BoostedComponentTargetingStore15=function(da){this.getTargetingSpec().interests=da;};ca.prototype.$BoostedComponentTargetingStore19=function(da,ea){var fa=da?da.length:0,ga=ea?ea.length:0;if(fa!==ga)return false;for(var ha=0;ha<fa;ha++){var ia=da[ha],ja=ea[ha],ka=['distance_unit','radius'];if(ia.address_string){ka.push('address_string');}else ka.push('latitude','longitude');if(!x(z(ia,ka),z(ja,ka)))return false;}return true;};ca.prototype.$BoostedComponentTargetingStore17=function(da){this.$BoostedComponentTargetingStore5[t.ERRORS]=new w(da.whitelistCountries,da.blacklistCountries,da.whitelistConflicts,da.blacklistConflicts,da.conflictLevel,da.simpleErrors,da.minimumAge,da.pageSettingsURI);};ca.prototype.$BoostedComponentTargetingStore20=function(da){this.$BoostedComponentTargetingStore5[t.CURRENT_BROAD_GEO_LOCATION]=da;};ca.prototype.$BoostedComponentTargetingStore21=function(da){this.$BoostedComponentTargetingStore5[t.CURRENT_LOCAL_GEO_LOCATION]=da;};ca.prototype.$BoostedComponentTargetingStore22=function(da){this.$BoostedComponentTargetingStore18=da;};ca.prototype.$BoostedComponentTargetingStore11=function(da){if(this.$BoostedComponentTargetingStore2.getAppID()!==l.BOOSTED_LOCAL_AWARENESS)return;if(da!=null&&da[h.TYPE]===i.TYPES.CALL_NOW.name){this.getTargetingSpec().page_types=[j.MOBILE];}else this.getTargetingSpec().page_types=[j.FEED];};ca.prototype.$BoostedComponentTargetingStore7=function(da){if(this.$BoostedComponentTargetingStore2.getAppID()!==l.BOOSTED_PAGELIKE)return;if(da===p.VIDEO){this.getTargetingSpec().page_types=[j.FEED];}else delete this.getTargetingSpec().page_types;};ca.prototype.$BoostedComponentTargetingStore14=function(da){if(da===this.getGeoLocationType())return;var ea=this.getTargetingSpec().geo_locations;if(da===r.LOCAL_GEO_LOCATION){this.$BoostedComponentTargetingStore20(ea);this.$BoostedComponentTargetingStore12(this.getCurrentLocalGeoLocationSpec());this.$BoostedComponentTargetingStore22(this.getInterests());this.$BoostedComponentTargetingStore15(undefined);}else{this.$BoostedComponentTargetingStore21(ea);this.$BoostedComponentTargetingStore16(this.getCurrentBroadGeoLocationSpec());this.$BoostedComponentTargetingStore15(this.getCurrentInterests());}};ca.prototype.getValidator=function(){return new u(this,this.$BoostedComponentTargetingStore2,this.$BoostedComponentTargetingStore3);};f.exports=ca;},null);
__d('BoostedComponentURIStore',['BoostedComponentBaseStore','BoostedComponentConfigPayload','BoostedComponentDataState','BoostedComponentClientEvent','BoostedComponentURIStoreFields'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m,n;'use strict';m=babelHelpers.inherits(o,h);n=m&&m.prototype;o.prototype.getStorePayloadKey=function(){return i.URI_STORE_DATA;};o.prototype.registerStoreEvents=function(){this.registerEvents([k.DATA_LOADED],this.$BoostedComponentURIStore1.bind(this));};o.prototype.$BoostedComponentURIStore1=function(p){this.data=p;this.setState(j.ACTIVE);return true;};o.prototype.$BoostedComponentURIStore2=function(p){return this.data[p]?this.data[p]:'#';};o.prototype.$BoostedComponentURIStore3=function(p){return this.data[p]||null;};o.prototype.getHelpCenterURI=function(){return this.$BoostedComponentURIStore2(l.HELP_CENTER_URI);};o.prototype.getBillingInfoURI=function(){return this.$BoostedComponentURIStore2(l.BILLING_INFO_URI);};o.prototype.getContactSupportURI=function(){return this.$BoostedComponentURIStore3(l.CONTACT_SUPPORT_URI);};o.prototype.getSendFeedbackURI=function(){return this.$BoostedComponentURIStore3(l.SEND_FEEDBACK_URI);};o.prototype.getBugReportURI=function(){return this.$BoostedComponentURIStore3(l.BUG_REPORT_URI);};o.prototype.getPageIconURI=function(){return this.$BoostedComponentURIStore3(l.PAGE_ICON_URI);};function o(){m.apply(this,arguments);}f.exports=o;},null);
__d('BoostedPostPrivacyGatingStore',['BoostedComponentBaseStore','BoostedComponentConfigPayload','BoostedComponentDataState','BoostedComponentClientEvent','BoostedPostPlacementOptions','BoostedPostCustomTargetingTypes','TargetedPrivacyConsts'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o,p;o=babelHelpers.inherits(q,h);p=o&&o.prototype;function q(r){'use strict';p.constructor.call(this);this.$BoostedPostPrivacyGatingStore1=r.getDispatcher();this.$BoostedPostPrivacyGatingStore2=r.getContextStore();this.$BoostedPostPrivacyGatingStore3=j.NOT_INITIALIZED;this.dispatchToken=this.$BoostedPostPrivacyGatingStore1.register((function(s){var t=s.action;switch(t.actionType){case k.INIT_DATA_LOADED:if(this.$BoostedPostPrivacyGatingStore2.getPlacement()===l.COMPOSER)this.$BoostedPostPrivacyGatingStore3=j.ACTIVE;this.inform('change');break;case k.DATA_LOADED:if(this.$BoostedPostPrivacyGatingStore2.getPlacement()!==l.COMPOSER){this.$BoostedPostPrivacyGatingStore3=j.ACTIVE;this.$BoostedPostPrivacyGatingStore4=t.data[i.PRIVACY_GATING_STORE_DATA];}this.inform('change');break;case k.UPDATE_PRIVACY_GATING:this.$BoostedPostPrivacyGatingStore4={};if(t.data.geo_locations){this.$BoostedPostPrivacyGatingStore4.geo_locations=t.data.geo_locations;}else if(t.data.location_type==n.LOC_CITY&&t.data.location_ids&&t.data.location_ids.length>0){this.$BoostedPostPrivacyGatingStore4.geo_locations={cities:t.data.location_ids.map(function(u){return {key:u};})};}else if(t.data.countries&&t.data.countries.length>0)this.$BoostedPostPrivacyGatingStore4.geo_locations={countries:t.data.countries};if(t.data.locales&&t.data.locales.length>0)this.$BoostedPostPrivacyGatingStore4.locales=t.data.locales;if(t.data.genders)if(t.data.genders.length>0){this.$BoostedPostPrivacyGatingStore4.genders=t.data.genders;}else if(t.data.genders===parseInt(t.data.genders,10))this.$BoostedPostPrivacyGatingStore4.genders=[t.data.genders];if(t.data.age_max)this.$BoostedPostPrivacyGatingStore4.age_max=t.data.age_max;if(t.data.age_min)this.$BoostedPostPrivacyGatingStore4.age_min=t.data.age_min;if(t.data.excluded_geo_locations)this.$BoostedPostPrivacyGatingStore4.excluded_geo_locations=t.data.excluded_geo_locations;this.inform('change');break;}}).bind(this));}q.prototype.getPrivacyGatingSpec=function(){'use strict';if(!this.isPrivacyGated())return null;return this.$BoostedPostPrivacyGatingStore4;};q.prototype.isPrivacyGated=function(){'use strict';for(var r in this.$BoostedPostPrivacyGatingStore4){var s=this.$BoostedPostPrivacyGatingStore4[r];if(s.length)return true;if(s===parseInt(s,10))return true;if(r===m.GEO_LOCATIONS)for(var t in s)if(s[t].length)return true;}return false;};f.exports=q;},null);
__d('BoostedPostConfig',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();h.prototype.setAccountID=function(i){this.$BoostedPostConfig1=i;};h.prototype.setAudienceOption=function(i){this.$BoostedPostConfig2=i;};h.prototype.setBudget=function(i){this.$BoostedPostConfig3=i;};h.prototype.setCampaignLength=function(i){this.$BoostedPostConfig4=i;};h.prototype.setCurrency=function(i){this.$BoostedPostConfig5=i;};h.prototype.setCustomTargeting=function(i){this.$BoostedPostConfig6=i;};h.prototype.setTargetSpec=function(i){this.$BoostedPostConfig7=i;};h.prototype.setCreativeSpec=function(i){this.$BoostedPostConfig8=i;};h.prototype.setPrivacyGating=function(i){if(!i)i=[];this.$BoostedPostConfig9=i;};h.prototype.setPlacement=function(i){this.$BoostedPostConfig10=i;};h.prototype.setLowerReachEstimate=function(i){this.$BoostedPostConfig11=i.toString().replace(/\D/g,'');};h.prototype.setUpperReachEstimate=function(i){this.$BoostedPostConfig12=i.toString().replace(/\D/g,'');};h.prototype.setObjective=function(i){this.$BoostedPostConfig13=i;};h.prototype.setLastAudienceID=function(i){this.$BoostedPostConfig14=i;};h.prototype.setLookalikeCountry=function(i){this.$BoostedPostConfig15=i;};h.prototype.setPixelID=function(i){this.$BoostedPostConfig16=i;};h.prototype.setFlowID=function(i){this.$BoostedPostConfig17=i;};h.prototype.setApiAppealReviewRequest=function(i){this.$BoostedPostConfig18=i;};h.prototype.setUpdateStickySettings=function(i){this.$BoostedPostConfig19=i;};h.prototype.getJSONString=function(){return JSON.stringify({account_id:this.$BoostedPostConfig1,audience_option:this.$BoostedPostConfig2,budget:this.$BoostedPostConfig3,campaign_length:this.$BoostedPostConfig4,currency:this.$BoostedPostConfig5,custom_targeting:this.$BoostedPostConfig6,target_spec:this.$BoostedPostConfig7,creative_spec:this.$BoostedPostConfig8,feed_targeting:this.$BoostedPostConfig9,privacy_gating:this.$BoostedPostConfig9,entry_point:this.$BoostedPostConfig10,lower_reach_estimate:this.$BoostedPostConfig11,upper_reach_estimate:this.$BoostedPostConfig12,objective:this.$BoostedPostConfig13,last_audience_id:this.$BoostedPostConfig14,lookalike_country:this.$BoostedPostConfig15,pixel_id:this.$BoostedPostConfig16,flow_id:this.$BoostedPostConfig17,api_appeal_review_request:this.$BoostedPostConfig18,update_sticky_settings:this.$BoostedPostConfig19});};function h(){}f.exports=h;},null);
__d('BoostedPostSpecs',['AdsTargetingConstants','ArbiterMixin','BoostedComponentTargetingViewActions','BoostedPostAudienceConstants','BoostedPostConfig','BoostedPostCustomTargetingTypes','PromotedPostConstants','mixin'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){if(c.__markCompiled)c.__markCompiled();var p,q;'use strict';p=babelHelpers.inherits(r,o(i));q=p&&p.prototype;function r(s,t,u,v,w,x,y){q.constructor.call(this);this._dispatcher=s;this._targetingStore=y;this._targetingSpec=this._targetingStore.getTargetingSpec();this._targetingSpecFOF=this._targetingStore.getTargetingSpecFOF();this._lookalikeCountry=this._targetingStore.getDefaultLookalikeCountry();this._radius=this.getInitialRadius();this._adAccountStore=t;this._budgetEstStore=u;this._conversionPixelStore=v;this._durationStore=w;this._privacyGatingStore=x;this._apiAppealReviewRequest=false;}r.prototype.setAudience=function(s){this._getTargetingViewActions().updateAudience(s);};r.prototype.setTargetingSpec=function(s){var t=this.getAudience();if(t===k.NCPP||t===k.CUSTOM_AUDIENCE){this._targetingSpec=s;}else{this._targetingSpecFOF={};this._targetingSpecFOF[m.GEO_LOCATIONS]=s[m.GEO_LOCATIONS];}};r.prototype.setAudienceAndTargetingSpec=function(s,t){this.setTargetingSpec(t);this.setAudience(s);};r.prototype.setLocation=function(s){this._targetingSpecFOF[m.GEO_LOCATIONS]=s;this._getTargetingViewActions().updateBroadGeoLocations([]);};r.prototype.setRadius=function(s){var t=this.getTargetingSpecRaw(),u=t[m.GEO_LOCATIONS],v=u&&u.cities;if(!s){for(var w=0;w<v.length;++w)delete v[w].radius;}else if(s&&v)for(var x=0;x<v.length;++x)v[x].radius=s;this._radius=s;};r.prototype.setLastAudienceID=function(s){this._getTargetingViewActions().updateAudienceID(s);};r.prototype.setLookalikeCountry=function(s){this._lookalikeCountry=s;};r.prototype.setPixelID=function(s){this._pixelID=s;};r.prototype.setApiAppealReviewRequest=function(s){this._apiAppealReviewRequest=s;};r.prototype.getAdAccountID=function(){return this._adAccountStore.getSelectedAccountID();};r.prototype.getAudience=function(){return this._targetingStore.getAudience();};r.prototype.getTargetingSpec=function(){var s=this.getPrivacyGatingSpec();if(s)return s;switch(this.getAudience()){case k.FANS:case k.GROUPER:case k.ENGAGED:return this.getLocationTargetingSpec();case k.LOOKALIKE:return this.getLookalikeTargetingSpec();default:return this._targetingSpec;}};r.prototype.getTargetingSpecRaw=function(){var s=this.getPrivacyGatingSpec();if(s)return s;switch(this.getAudience()){case k.FANS:case k.GROUPER:case k.ENGAGED:return this._targetingSpecFOF;case k.LOOKALIKE:return this.getLookalikeTargetingSpec();default:return this._targetingSpec;}};r.prototype.getPrivacyGatingSpec=function(){if(!this._privacyGatingStore)return null;var s=this._privacyGatingStore.getPrivacyGatingSpec();if(!s)return null;return this._prefillDefaults(s);};r.prototype.getLocationTargetingSpec=function(){var s={};if(this._targetingSpecFOF)s[m.GEO_LOCATIONS]=this._targetingSpecFOF[m.GEO_LOCATIONS];return this._prefillDefaults(s);};r.prototype.getLookalikeTargetingSpec=function(){if(!this._lookalikeCountry)return null;var s={};s[m.GEO_LOCATIONS]={countries:[this._lookalikeCountry]};return s;};r.prototype.getTargetingLevel=function(){var s=this.getTargetingSpecRaw();if(s[m.GEO_LOCATIONS]){var t=Object.keys(s[m.GEO_LOCATIONS]),u=h.TARGETING_SPEC_KEYS,v=[u.COUNTRIES,u.REGIONS,u.CITIES];for(var w=0;w<v.length;++w)if(t.indexOf(v[w])!==-1)return v[w];}return '';};r.prototype.getInitialRadius=function(){var s=this.getTargetingSpecRaw();if(s){var t=s[m.GEO_LOCATIONS],u=t&&t.cities;if(u&&u.length&&u[0].radius)return u[0].radius;}return h.DEFAULT_RADIUS;};r.prototype.getRadius=function(){return this._radius;};r.prototype.getCurrency=function(){return this._adAccountStore.getSelectedAccountCurrency();};r.prototype.getBudget=function(){return this._budgetEstStore.getSelectedBudgetValue();};r.prototype.getBudgetLabel=function(){return this._budgetEstStore.getSelectedBudgetInfo().label;};r.prototype.getLowerReachEstimate=function(){return this._budgetEstStore.getSelectedBudgetInfo().reach_lower;};r.prototype.getUpperReachEstimate=function(){return this._budgetEstStore.getSelectedBudgetInfo().reach_upper;};r.prototype.getAudienceSize=function(){return this._budgetEstStore.getAudienceSize();};r.prototype.getCampaignLength=function(){return this._durationStore.getCampaignLength();};r.prototype.getApiAppealReviewRequest=function(){return this._apiAppealReviewRequest;};r.prototype.getConfig=function(){var s=new l();s.setAccountID(this.getAdAccountID());s.setAudienceOption(this.getAudience());s.setCampaignLength(this.getCampaignLength());s.setBudget(this.getBudget());s.setCurrency(this.getCurrency());s.setCustomTargeting(this.getTargetingSpecForConfig());s.setPrivacyGating(this.getPrivacyGatingSpec());s.setLastAudienceID(this.getLastAudienceID());s.setLookalikeCountry(this._lookalikeCountry);s.setLowerReachEstimate(this.getLowerReachEstimate());s.setUpperReachEstimate(this.getUpperReachEstimate());s.setPixelID(this._conversionPixelStore.getSelectedConversionPixelID());s.setApiAppealReviewRequest(this.getApiAppealReviewRequest());s.setUpdateStickySettings(this.shouldUpdateStickySettings());return s;};r.prototype.getConfigJSON=function(){return this.getConfig().getJSONString();};r.prototype.getTargetingSpecForConfig=function(){var s=this.getTargetingSpec();return s?this._prefillDefaults(s):s;};r.prototype.getLastAudienceID=function(){return this._targetingStore.getAudienceID();};r.prototype.getLookalikeCountry=function(){return this._lookalikeCountry;};r.prototype.hasTargetingSpec=function(){return !!this._targetingSpec;};r.prototype.isSuggestedAudience=function(){return this._targetingStore.getIsSuggestedAudience();};r.prototype.notifyAccountChangeFinished=function(){this.inform(n.ACCOUNT_CHANGE_FINISH);};r.prototype.shouldUpdateStickySettings=function(){return !(this.getLastAudienceID()===0&&this.isSuggestedAudience());};r.prototype._prefillDefaults=function(s){if(s[m.CUSTOM_AUDIENCE]||s[m.GEO_LOCATIONS])return s;var t={};for(var u in s)t[u]=s[u];t[m.GEO_LOCATIONS]={countries:this._targetingStore.getDefaultLocations()};return t;};r.prototype._getTargetingViewActions=function(){return new j(this._dispatcher);};f.exports=r;},null);
__d('BoostedComponentConfig',['BoostedComponentAdAccountStore','BoostedComponentAdStatusStore','BoostedComponentAppID','BoostedComponentAYMTTipsStore','BoostedComponentBudgetEstimationStore','BoostedComponentClientEvent','BoostedComponentConfigPayload','BoostedComponentConstraintStore','BoostedComponentContextStore','BoostedComponentConversionPixelStore','BoostedComponentCreativeStore','BoostedComponentDataState','BoostedComponentDialogChangeStore','BoostedComponentDialogUIStore','BoostedComponentDispatcher','BoostedComponentDurationStore','BoostedComponentExperimentStore','BoostedComponentExternalActionsStore','BoostedComponentInsightsStore','BoostedComponentLoggerStore','BoostedComponentReviewAPIStore','BoostedComponentSpec','BoostedComponentStoreType','BoostedComponentSubmissionStore','BoostedComponentTargetingStore','BoostedComponentURIStore','BoostedPostPrivacyGatingStore','BoostedPostSpecs'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia){'use strict';if(c.__markCompiled)c.__markCompiled();function ja(ka){this.$BoostedComponentConfig1=new v();this.$BoostedComponentConfig2={};this.$BoostedComponentConfig2[da.CONTEXT_STORE]=new p(this);this.$BoostedComponentConfig2[da.EXPERIMENT_STORE]=new x(this);this.$BoostedComponentConfig2[da.EXTERNAL_ACTION_STORE]=new y(this);this.$BoostedComponentConfig2[da.AD_ACCOUNT_STORE]=new h(this);this.$BoostedComponentConfig2[da.AD_STATUS_STORE]=new i(this);this.$BoostedComponentConfig2[da.CONSTRAINT_STORE]=new o(this);this.$BoostedComponentConfig2[da.CONVERSION_PIXEL_STORE]=new q(this);this.$BoostedComponentConfig2[da.DURATION_STORE]=new w(this);this.$BoostedComponentConfig2[da.INSIGHTS_STORE]=new z(this);this.$BoostedComponentConfig2[da.TARGETING_STORE]=new fa(this);this.$BoostedComponentConfig2[da.CREATIVE_STORE]=new r(this);this.$BoostedComponentConfig2[da.DIALOG_UI_STORE]=new u(this);this.$BoostedComponentConfig2[da.BUDGET_EST_STORE]=new l(this);this.$BoostedComponentConfig2[da.URI_STORE]=new ga(this);this.$BoostedComponentConfig2[da.AYMT_TIPS_STORE]=new k(this);this.$BoostedComponentConfig2[da.PRIVACY_GATING_STORE]=new ha(this);this.$BoostedComponentConfig3=new ca(this.getContextStore(),this.getAdAccountStore(),this.getTargetingStore(),this.getCreativeStore(),this.getDurationStore(),this.getBudgetEstStore(),this.getConversionPixelStore());this.$BoostedComponentConfig2[da.DIALOG_CHANGE_STORE]=new t(this);this.$BoostedComponentConfig2[da.LOGGER_STORE]=new aa(this);this.$BoostedComponentConfig2[da.REVIEW_API_STORE]=new ba(this);this.$BoostedComponentConfig2[da.SUBMISSION_STORE]=new ea(this);this.$BoostedComponentConfig1.handleUpdateFromInitialServer({actionType:m.INIT_DATA_LOADED,data:ka});}ja.prototype.init=function(){return;};ja.prototype.loadData=function(ka){this.$BoostedComponentConfig4=ka[n.DATA_OPTIONS];this.initProductLoadData(ka);this.getDialogUIStore().setDialogState(s.ACTIVE);this.getDialogUIStore().inform('change');};ja.prototype.initProductLoadData=function(ka){var la=this.getContextStore().getAppID();if(la!==j.BOOSTED_POST&&la!==j.BOOSTED_EVENT&&la!==j.BOOSTED_PRODUCT)return;this.getSpecs().setBoostedPostSpecs(new ia(this.getDispatcher(),this.getAdAccountStore(),this.getBudgetEstStore(),this.getConversionPixelStore(),this.getDurationStore(),this.getPrivacyGatingStore(),this.getTargetingStore()));};ja.prototype.getUnitOptions=function(){return this.$BoostedComponentConfig4;};ja.prototype.getStore=function(ka){return this.$BoostedComponentConfig2[ka];};ja.prototype.getStores=function(){return this.$BoostedComponentConfig2;};ja.prototype.getDispatcher=function(){return this.$BoostedComponentConfig1;};ja.prototype.getAdAccountStore=function(){return this.$BoostedComponentConfig2[da.AD_ACCOUNT_STORE];};ja.prototype.getAdStatusStore=function(){return this.$BoostedComponentConfig2[da.AD_STATUS_STORE];};ja.prototype.getBudgetEstStore=function(){return this.$BoostedComponentConfig2[da.BUDGET_EST_STORE];};ja.prototype.getContextStore=function(){return this.$BoostedComponentConfig2[da.CONTEXT_STORE];};ja.prototype.getCreativeStore=function(){return this.$BoostedComponentConfig2[da.CREATIVE_STORE];};ja.prototype.getDialogChangeStore=function(){return this.$BoostedComponentConfig2[da.DIALOG_CHANGE_STORE];};ja.prototype.getDialogUIStore=function(){return this.$BoostedComponentConfig2[da.DIALOG_UI_STORE];};ja.prototype.getDurationStore=function(){return this.$BoostedComponentConfig2[da.DURATION_STORE];};ja.prototype.getExperimentStore=function(){return this.$BoostedComponentConfig2[da.EXPERIMENT_STORE];};ja.prototype.getExternalActionsStore=function(){return this.$BoostedComponentConfig2[da.EXTERNAL_ACTIONS_STORE];};ja.prototype.getInsightsStore=function(){return this.$BoostedComponentConfig2[da.INSIGHTS_STORE];};ja.prototype.getSubmissionStore=function(){return this.$BoostedComponentConfig2[da.SUBMISSION_STORE];};ja.prototype.getTargetingStore=function(){return this.$BoostedComponentConfig2[da.TARGETING_STORE];};ja.prototype.getURIStore=function(){return this.$BoostedComponentConfig2[da.URI_STORE];};ja.prototype.getLoggerStore=function(){return this.$BoostedComponentConfig2[da.LOGGER_STORE];};ja.prototype.getConstraintStore=function(){return this.$BoostedComponentConfig2[da.CONSTRAINT_STORE];};ja.prototype.getAYMTTipsStore=function(){return this.$BoostedComponentConfig2[da.AYMT_TIPS_STORE];};ja.prototype.getConversionPixelStore=function(){return this.$BoostedComponentConfig2[da.CONVERSION_PIXEL_STORE];};ja.prototype.getReviewAPIStore=function(){return this.$BoostedComponentConfig2[da.REVIEW_API_STORE];};ja.prototype.getPrivacyGatingStore=function(){return this.$BoostedComponentConfig2[da.PRIVACY_GATING_STORE];};ja.prototype.getSpecs=function(){return this.$BoostedComponentConfig3;};ja.prototype.getBoostedPostSpecs=function(){return this.getSpecs().getBoostedPostSpecs();};f.exports=ja;},null);
__d('BoostedComponentCreativeEditingConfig',['BoostedComponentCreativeEditingElement'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i={BOOSTED_POST:[],BOOSTED_PRODUCT:[],BOOSTED_EVENT:[h.CREATIVE_LINK_DATA,h.CREATIVE_LINK_DATA_TEXT,h.CREATIVE_IMAGE_SELECTOR],BOOSTED_CCTA:[h.CREATIVE_LINK_DATA,h.CREATIVE_LINK_DATA_HEADLINE,h.CREATIVE_LINK_DATA_TEXT,h.CREATIVE_IMAGE_SELECTOR,h.CREATIVE_CTA],BOOSTED_PAGELIKE:[h.CREATIVE_BODY,h.CREATIVE_IMAGE_SELECTOR],BOOSTED_WEBSITE:[h.CREATIVE_LINK_DATA,h.CREATIVE_LINK_DATA_URL,h.CREATIVE_LINK_DATA_TEXT,h.CREATIVE_MULTI_PRODUCTS],BOOSTED_WEBSITE_MPA:[h.CREATIVE_LINK_DATA,h.CREATIVE_LINK_DATA_HEADLINE],BOOSTED_LOCAL_AWARENESS:[h.CREATIVE_LINK_DATA,h.CREATIVE_LINK_DATA_TEXT,h.CREATIVE_LINK_DATA_HEADLINE,h.CREATIVE_IMAGE_SELECTOR,h.CREATIVE_CTA]};f.exports=i;},null);
__d('BoostedComponentStore',['BoostedComponentConfig'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i={};i.stores={};i.getConfig=function(j){var k=new h(j),l=k.getContextStore(),m=l.getAppID();if(!this.stores[m])this.stores[m]={};var n=l.getPageID();if(!this.stores[m][n])this.stores[m][n]=k;return this.stores[m][n];};f.exports=i;},null);
__d('ImageReader',['DOM','Event','Promise'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();function k(n,o,p,q){var r=new Image(),s=function(){o(null,0,0);};i.listen(r,{load:function(){if(p&&r.width>p||q&&r.height>q){var t=Math.max(r.width/p,r.height/q),u=r.width/t<<0,v=r.height/t<<0,w=h.create('canvas',{css:'background-color: transparent;',width:u,height:v}),x=w.getContext('2d');x.drawImage(r,0,0,r.width,r.height,0,0,u,v);try{o(w.toDataURL('image/jpeg'),r.width,r.height);return;}catch(y){o(n,r.width,r.height);}}else o(n,r.width,r.height);},error:s,abort:s});r.src=n;}function l(n,o,p,q){var r=new b.FileReader();r.onloadend=function(s){k(r.result,o,p,q);};r.readAsDataURL(n);}function m(n,o,p){return new j(function(q){l(n,function(r){return q(r);},o,p);});}f.exports={promiseRead:m,read:l,resizeIfNeeded:k};},null);
__d("XAdsCFImageUploadController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/create\/imageupload\/",{});},null,{});
__d('AdsUploadProcess',['AdsImageUploadConstants','AdsDaoGraph','AdsImageLegacy','ArbiterMixin','DOM','ImageReader','XAdsCFImageUploadController','GlobalCallback','cx','getAsyncParams','mixin'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){if(c.__markCompiled)c.__markCompiled();var s,t,u={IFRAME_NAME:"_57mk"},v=0;s=babelHelpers.inherits(w,r(k));t=s&&s.prototype;function w(x,y){'use strict';t.constructor.call(this);this.id=v;v++;this.file=x;this.iframe=null;this.$AdsUploadProcess1=y;}w.prototype.getID=function(){'use strict';return this.id;};w.prototype.upload=function(x){'use strict';if(window.FileReader){this.$AdsUploadProcess2();}else this.$AdsUploadProcess3(x);};w.prototype.$AdsUploadProcess2=function(){'use strict';var x=(function(y){if(y===null){this.failed();return;}y=y.split(',');var z=(function(ca){if(ca&&ca.images){var da=this.file.name,ea=new j(ca.images[da]);this.succeeded(ea);}else this.failed();}).bind(this),aa=(function(ca){this.progressData=ca;this.progressPercent=ca.loaded/ca.total*100;this.inform('onProgress',ca);}).bind(this);try{i.add.imageForAccount.one(z,{bytes:y[1],name:this.file.name,encoding:y[0],handleError:z,accountId:this.$AdsUploadProcess1},aa);}catch(ba){this.failed();throw new Error(ba.message);}}).bind(this);m.read(this.file,x,h.maxWidth,h.maxHeight);};w.prototype.$AdsUploadProcess3=function(x){'use strict';var y=document.createElement('iframe');y.className="_57mi";var z=u.IFRAME_NAME+this.getID();y.name=z;x.target=z;var aa=n.getURIBuilder();x.action=aa.getURI().getQualifiedURI().toString();var ba=q('POST');Object.assign(ba,{account_id:this.$AdsUploadProcess1,callback:o.create(this.$AdsUploadProcess4.bind(this,y)),domain:document.domain});Object.keys(ba).forEach(function(ca){x.appendChild(l.create('input',{type:'hidden',name:ca,value:ba[ca]}));});document.body.appendChild(y);x.submit();};w.prototype.$AdsUploadProcess4=function(x,y,z){'use strict';o.remove(y);l.remove(x);if(z&&z.url){this.succeeded(new j(z));}else this.failed();};w.prototype.succeeded=function(x){'use strict';this.image=x;this.inform('succeeded',x);};w.prototype.failed=function(){'use strict';this.inform('failed');};f.exports=w;},null);
__d('AdsImageUploader',['AdsImageUploadErrorActions','AdsImageValidation','AdsUploadProcess','ArbiterMixin','CSS','DOMEventListener','DOMQuery','mixin','Parent','Promise','React','ReactDOM','WebApiApplication','cx','csx','fbt','getDOMImageSize','invariant','ads-lib-connect_DEPRECATED'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y){if(c.__markCompiled)c.__markCompiled();var z,aa;'use strict';var ba=c('ads-lib-connect_DEPRECATED').FB,ca=b.URL||b.webkitURL,da={UPLOAD_ELEMENT:"_57mh",DRAG_OVER:"_57mj",CLICK_HIJACK:"_57mf",CLICK_HIJACK_FORM:"_5ecl"};z=babelHelpers.inherits(ea,o(k));aa=z&&z.prototype;function ea(fa,ga){aa.constructor.call(this);ga=ga||{};this.accountId=ga.accountId;!this.accountId?y(0):undefined;this.acceptsMultiple='multiple' in ga?ga.multiple:true;this.acceptsMultiple=window.FileReader?this.acceptsMultiple:false;this.validateImageSize=ga.validateImageSize;this.validateImageFormat=ga.validateImageFormat;this.imageSpec=ga.imageSpec;this.onFormInputMount=ga.onFormInputMount;this.root=fa;if(this.root){this.findAndDecorateUploadElements();this.createDragAndDropArea(this.root);}}ea.prototype.findAndDecorateUploadElements=function(){var fa=n.scry(this.root,'.'+da.UPLOAD_ELEMENT);fa.forEach(function(ga){this.decorateUploadElement(ga);},this);if(l.hasClass(this.root,da.UPLOAD_ELEMENT))this.decorateUploadElement(this.root);};ea.prototype.createDragAndDropArea=function(fa){m.add(fa,'dragenter',function(ga){ga.preventDefault();l.addClass(this,da.DRAG_OVER);});m.add(fa,'dragleave',function(ga){ga.preventDefault();l.removeClass(this,da.DRAG_OVER);});m.add(fa,'dragover',function(ga){ga.preventDefault();ga.dataTransfer.dropEffect='copy';});m.add(fa,'drop',this.onDrop.bind(this));};ea.prototype.onDrop=function(fa){fa.preventDefault();var ga=n.scry(this.root,'.'+da.CLICK_HIJACK_FORM)[0];this.upload(fa.dataTransfer.files,ga);};ea.prototype.decorateUploadElement=function(fa){var ga=t.getAccessToken(),ha=ba.url('/act_'+this.accountId+'/adimages',null,ga);if(n.scry(fa,'.'+da.CLICK_HIJACK).length)return;var ia=document.createElement('div');ia.className=da.CLICK_HIJACK;var ja=r.createElement('form',{method:'POST',encType:'multipart/form-data',action:ha,className:da.CLICK_HIJACK_FORM},r.createElement('input',{className:"_57mg",name:'fileToUpload',type:'file',multiple:this.acceptsMultiple,accept:'image/*',onClick:this.handleInputClick.bind(this),ref:this.onFormInputMount}));ja=s.render(ja,ia);var ka=n.find(ia,"._57mg");m.add(ka,'change',(function(la){this.handleInputChange(la,ka);}).bind(this));fa.appendChild(ia);};ea.prototype.handleInputClick=function(){this.inform('onUploadClicked');};ea.prototype.handleInputChange=function(fa,ga){var ha=fa.target||ga,ia=ha.files||[ha.value],ja=p.byTag(ha,'form');this.upload(ia,ja);};ea.prototype.filterFiles=function(fa){var ga=fa.filter(function(ha){return !ha.type||ha.type.match(/image\.*/i);});return ga;};ea.prototype.getImageTooSmallErrorMessages=function(fa){var ga=w._("Image too small."),ha=w._({"*":{"*":"This image is too small. Try one that's at least {width} x {height} px."}},[w.param('width',fa.minWarningWidth,[0]),w.param('height',fa.minWarningHeight,[0])]);return {shortMessage:ga,longMessage:ha};};ea.prototype.getImageNotSupportedErrorMessages=function(fa){var ga=w._("Image format not supported."),ha=!fa?w._("The image format isn't supported. Please use a different image."):w._("The {image format} image format isn't supported. Please use a different image.",[w.param('image format',fa)]);return {shortMessage:ga,longMessage:ha};};ea.prototype.$AdsImageUploader1=function(fa,ga){return i.isWarningSize({getWidth:function(){return fa;},getHeight:function(){return ga;}},this.imageSpec);};ea.prototype.upload=function(fa,ga){fa=Array.prototype.slice.call(fa);if(!this.acceptsMultiple)fa=[fa[0]];fa=this.filterFiles(fa);if(!fa)return;var ha=[],ia=[];if(this.validateImageFormat){fa.forEach((function(ka){if(i.isValidFormat(ka.type)){ia.push(ka);}else h.setUploadFormatError(this.getImageNotSupportedErrorMessages(ka.type));}).bind(this));}else ia=fa;var ja=[];ja=ia.map((function(ka){return new q((function(la,ma){x(ca.createObjectURL(ka),(function(na,oa,pa){if(this.validateImageFormat&&na===0&&oa===0){h.setUploadFormatError(this.getImageNotSupportedErrorMessages());la(false);}else if(this.validateImageSize&&this.imageSpec&&!this.$AdsImageUploader1(na,oa)){h.setUploadSizeError(this.getImageTooSmallErrorMessages(this.imageSpec));la(false);}else{ha.push(new j(ka,this.accountId));la(true);}}).bind(this));}).bind(this));}).bind(this));q.all(ja).done((function(ka){if(ka.every(function(la){return la;}))h.removeErrors();this.startUploadProcesses(ha,ga);}).bind(this));};ea.prototype.$AdsImageUploader2=function(fa){var ga=p.byClass(fa,da.CLICK_HIJACK),ha=ga.parentNode;if(ha){ha.removeChild(ga);this.decorateUploadElement(ha);}};ea.prototype.startUploadProcesses=function(fa,ga){this.inform('onUploadStarted',fa);var ha=[],ia=fa.map(function(ja){return new q(function(ka,la){ja.subscribe('succeeded',function(ma,na){ha.push(na);ka();});ja.subscribe('failed',ka);ja.upload(ga);});});q.all(ia).done((function(){this.$AdsImageUploader2(ga);this.uploadEnded(ha);}).bind(this));};ea.prototype.uploadEnded=function(fa){this.inform('onUploadEnded',fa);};f.exports={AdsImageUploader:ea,AdsImageUploaderConstants:da};},null);
__d('AdsRadiusSelector.react',['AdsValidationIcon.react','AdsValidationIconType','LayerFadeOnHide','LocationConstants','React','ReactLayeredComponentMixin','XUIButton.react','XUIDialog.react','XUIDialogBody.react','XUIDialogFooter.react','XUIDialogTitle.react','XUISelector.react','XUIText.react','XUITextInput.react','arrayContains','cx','fbt','ads-lib-formatters','intlNumUtils','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa){'use strict';if(c.__markCompiled)c.__markCompiled();var ba=l.PropTypes,ca=k.RadiusInfo,da=s.Option,ea=y.createIntlNumberFormatter(0),fa=y.createIntlNumberFormatter(2),ga=1;function ha(ma){if(Math.floor(ma)===ma){return ea(ma);}else return fa(ma);}function ia(ma){return ca.getSupportedRadii(k.LA_RADIUS_TYPE,ma).slice(0);}function ja(ma){return Math.max.apply(null,ia(ma));}function ka(ma,na){if(na==='mile'){if(ma===1){return x._("mile");}else return x._("miles");}else if(ma===1){return x._("kilometer");}else return x._("kilometers");}var la=l.createClass({displayName:'AdsRadiusSelector',mixins:[m],propTypes:{distanceUnit:ba.oneOf(['mile','kilometer']).isRequired,onRadiusChangeRequested:ba.func.isRequired,radius:ba.number,size:ba.string},getDefaultProps:function(){return {size:'large'};},getInitialState:function(){return {shownRadius:this.props.radius,isShownRadiusValid:true,isCustomRadiusDialogShown:false};},componentWillReceiveProps:function(ma){if(this.props.radius!==ma.radius)this.setState({shownRadius:ma.radius,isShownRadiusValid:true});},renderLayers:function(){if(!this.state.isCustomRadiusDialogShown)return {};var ma=x._("Custom Radius"),na=l.createElement(t,{className:"_5hjo"},ka(this.state.shownRadius,this.props.distanceUnit)),oa=l.createElement('div',{className:"_5hjp"},l.createElement(u,{type:'text',onChange:this._onInputChange,onEnter:this._setCustomRadiusFromState,defaultValue:this.state.shownRadius!=null?''+this.state.shownRadius:null}),this._renderIcon()),pa=l.createElement(n,{action:'confirm',use:'confirm',disabled:!this.state.isShownRadiusValid,label:x._("Save"),onClick:this._setCustomRadiusFromState}),qa=l.createElement(n,{action:'cancel',label:x._("Cancel"),onClick:this._hideDialog});return {dialog:l.createElement(o,{shown:true,behaviors:{LayerFadeOnHide:j},onToggle:this._onToggleDialog,width:350},l.createElement(r,null,ma),l.createElement(p,null,l.createElement('div',{className:"_2pi1"},l.createElement(t,{className:"_5hjq"},x._("Radius")),x._("{text field for number}{unit of measurement, like miles or kilometers}",[x.param('text field for number',oa),x.param('unit of measurement, like miles or kilometers',na)]))),l.createElement(q,null,qa,pa))};},render:function(){var ma=ia(this.props.distanceUnit),na=this.props.radius;if(na!=null&&!v(ma,na)){ma.push(na);ma.sort(function(ra,sa){return ra-sa;});}var oa=ma.map((function(ra){var sa;if(ra===1){if(this.props.distanceUnit==='mile'){sa=x._("1 mile");}else sa=x._("1 kilometer");}else if(ra){if(this.props.distanceUnit==='mile'){sa=x._("{numeric distance} miles",[x.param('numeric distance',ha(ra))]);}else sa=x._("{numeric distance} kilometers",[x.param('numeric distance',ha(ra))]);}else sa=x._("--");return (l.createElement(da,{value:ra,key:ra},sa));}).bind(this)),pa=l.createElement(da,{value:'custom',key:'custom'},x._("Custom")),qa=l.createElement(s,{onChange:this._onRadiusChangeRequested,size:this.props.size,value:na},oa,pa);return (l.createElement('div',{className:aa(this.props.className,"_5hjs")},qa));},_renderIcon:function(){if(this.state.isShownRadiusValid)return null;var ma=x._("Please enter a number between {min_radius} and {max_radius}",[x.param('min_radius',ga),x.param('max_radius',ja(this.props.distanceUnit))]);return (l.createElement(h,{className:"_5hjt",'data-tooltip-alignh':'right',messages:[ma],type:i.ERROR}));},_onToggleDialog:function(ma){if(!ma)this._hideDialog();},_hideDialog:function(){this.setState({shownRadius:this.props.radius,isShownRadiusValid:true,isCustomRadiusDialogShown:false});},_setCustomRadiusFromState:function(){if(this.state.isShownRadiusValid){this.props.onRadiusChangeRequested({radius:this.state.shownRadius,unit:this.props.distanceUnit});this._hideDialog();}},_onInputChange:function(event){var ma=z.parseNumber(event.target.value),na=ma!=null?Math.round(ma):null;if(na!=null&&!isNaN(na)&&ga<=na&&na<=ja(this.props.distanceUnit)){this.setState({shownRadius:na,isShownRadiusValid:true});}else this.setState({isShownRadiusValid:false});},_onRadiusChangeRequested:function(ma){if(ma.value==='custom'){this.setState({isCustomRadiusDialogShown:true});}else{var na={radius:ma.value,unit:this.props.distanceUnit};this.props.onRadiusChangeRequested(na);}}});f.exports=la;},null);
__d('AdsCommonLocalMapUtils',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h='#4D6AA4',i='#3b5998',j='#dc3847',k=19,l=1,m={KILOMETERS_TO_METERS:1000,MILES_TO_METERS:1609.34,ZOOM_MAX:k,ZOOM_MIN:l,LEAFLET_TARGET_CIRCLE_OPTIONS:{color:h,clickable:false,fillOpacity:30/255,opacity:95/255,weight:1},LEAFLET_TARGET_MARKER_OPTIONS:{color:'#fff',fillColor:h,fillOpacity:1,opacity:1,radius:4,weight:2},LEAFLET_TARGET_REGION_INCLUDE_OPTIONS:{color:i,clickable:false,opacity:.5,fillColor:i,fillOpacity:.11,weight:1,noClip:true},LEAFLET_TARGET_HIGHLIGHT_REGION_INCLUDE_OPTIONS:{color:i,clickable:false,opacity:.5,fillColor:i,fillOpacity:.22,weight:1,noClip:true},LEAFLET_TARGET_REGION_EXCLUDE_OPTIONS:{color:j,clickable:false,opacity:.5,fillColor:j,fillOpacity:.11,weight:1,noClip:true},LEAFLET_TARGET_HIGHLIGHT_REGION_EXCLUDE_OPTIONS:{color:j,clickable:false,opacity:.5,fillColor:j,fillOpacity:.22,weight:1,noClip:true},LEAFLET_TILES_OPTIONS:{maxZoom:k,minZoom:l},LEAFLET_MARKER_ICON_OPTIONS:{iconSize:[25,32],iconAnchor:[12,32]},getBestZoom:function(n,o,p,q,r){var s=n/180*Math.PI,t=Math.min(p,q),u=60000/800*t/r*Math.cos(s),v=function(x){return Math.log(x)/Math.LN2;},w=10+Math.floor(v(u));return w;},getRadiusInMeters:function(n,o){if(o==='kilometer')return n*m.KILOMETERS_TO_METERS;return n*m.MILES_TO_METERS;}};f.exports=m;},null);
__d('AdsTargetingAreaView',['AdsCommonLocalMapUtils','GeoCircularArea','GeoCoordinates','immutable','LeafletView','invariant','nearlyEqualNumbers'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o,p;'use strict';function q(u){if(u.latitude==null||u.longitude==null)return;return new j(Number(u.latitude),Number(u.longitude));}function r(u){if(u.radius==null)return;!u.distance_unit?m(0):undefined;return h.getRadiusInMeters(u.radius,u.distance_unit);}function s(u,v){return h.getBestZoom(u.center.latitude,u.center.longitude,v.x,v.y,u.radius);}o=babelHelpers.inherits(t,k.Record({area:undefined,zoom:undefined,isPrecise:false}));p=o&&o.prototype;function t(u){!(u.area!=null)?m(0):undefined;!(u.isPrecise!=null)?m(0):undefined;!(u.zoom!=null)?m(0):undefined;p.constructor.call(this,u);}t.prototype.toLeafletView=function(){return new l({center:this.area.center,zoom:this.zoom});};t.update=function(u,v,w,x){if(x==null)return;if(u==null){var y=s(v,x);return new t({area:v,isPrecise:w,zoom:y});}return u.withMutations(function(z){!(x!=null)?m(0):undefined;z.isPrecise=w;if(!z.area.nearlyEquals(v)){if(!n(z.area.radius,v.radius))z.zoom=s(v,x);z.area=v;}});};t.updateFromCustomLocationSpec=function(u,v,w){if(w==null)return;var x=q(v);if(!x)return;var y=r(v);if(!y)return;var z=new i(x,y),aa=!!v.address_string||!!v.name;return t.update(u,z,aa,w);};f.exports=t;},null);
__d('LeafletPath',['Set','areEqual','partitionObjectByKey'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k=(function(){var m=new h(['color','dashArray','fill','fillColor','fillOpacity','lineCap','lineJoin','opacity','stroke','weight']);return function(n){return j(n,m);};})(),l={mutateOptions:function(m,n,o){var p=k(n||{}),q=p[0],r=p[1],s=k(o||{}),t=s[0],u=s[1];if(!i(r,u))return false;if(!i(q,t))m.setStyle(q);return true;}};f.exports=l;},null);
__d('LeafletCircle.react',['GeoCoordinates','leaflet','LeafletLayer.react','LeafletPath','LeafletPopup.react','LeafletUtils','React'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=n.PropTypes,p=n.createClass({displayName:'LeafletCircle',propTypes:{options:o.object,eventHandlers:o.object,center:o.instanceOf(h).isRequired,radius:o.number.isRequired,popup:o.instanceOf(l)},statics:{mutate:function(q,r,s){if(!k.mutateOptions(q,r.options,s.options))return false;j.mutateEventHandlers(q,r.eventHandlers,s.eventHandlers);if(r.center!==s.center)q.setLatLng(m.toLatLng(r.center));if(r.radius!==s.radius)q.setRadius(r.radius);if(r.popup){var t=r.popup.type.mutate(q._popup,r.popup.props,s.popup.props);if(!t){q.unbindPopup();q.bindPopup(r.popup.type.toLayer(r.popup.props));}}else if(!r.popup&&s.popup)q.unbindPopup();return true;},toLayer:function(q){var r=i.circle(m.toLatLng(q.center),q.radius,q.options);j.addEventHandlers(r,q.eventHandlers);if(q.popup)r.bindPopup(q.popup.type.toLayer(q.popup.props));return r;}},render:function(){return null;}});f.exports=p;},null);
__d('LeafletCircleMarker.react',['GeoCoordinates','leaflet','LeafletPath','LeafletUtils','React'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=l.PropTypes,n=l.createClass({displayName:'LeafletCircleMarker',propTypes:{options:m.object,center:m.instanceOf(h).isRequired},statics:{mutate:function(o,p,q){var r=p.options||{},s=r.radius,t=babelHelpers.objectWithoutProperties(r,['radius']),u=q.options||{},v=u.prevRadius,w=babelHelpers.objectWithoutProperties(u,['prevRadius']);if(!j.mutateOptions(o,t,w))return false;if(p.center!==q.center)o.setLatLng(k.toLatLng(p.center));if(s!==v)o.setRadius(p.radius);return true;},toLayer:function(o){return i.circleMarker(k.toLatLng(o.center),o.options);}},render:function(){return null;}});f.exports=n;},null);
__d('AdsTargetingAreaMap.react',['AdsCommonLocalMapUtils','AdsTargetingAreaView','FBOverlayElement.react','FBTilesMap.react','leaflet','LeafletCircle.react','LeafletCircleMarker.react','LeafletUtils','LeafletView','React','cx','keyMirror','nearlyEqualNumbers'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){'use strict';if(c.__markCompiled)c.__markCompiled();var u=q.PropTypes,v={boxZoom:false,doubleClickZoom:false,dragging:true,scrollWheelZoom:false,touchZoom:false,zoomControl:false},w=babelHelpers._extends({},v,{dragging:false}),x=l.CRS.EPSG3857,y=s({NONE:undefined,MOVING:undefined,WAS_DRAGGED:undefined});function z(ba,ca){var da={center:ba.center,radius:ca},ea=o.projectCircle(da,ba.zoom),fa=o.toLatLng(ba.center),ga=x.latLngToPoint(fa,ba.zoom),ha=ea.center.subtract(ga).round();return {radius:ea.radius,centerDelta:ha};}var aa=q.createClass({displayName:'AdsTargetingAreaMap',propTypes:{areaView:u.instanceOf(i),className:u.string,defaultView:u.instanceOf(p).isRequired,onAreaCenterChange:u.func,onSizeSettled:u.func,onStartMovingArea:u.func,onZoomChange:u.func,style:u.object},getInitialState:function(){return {draggingState:y.NONE,size:undefined};},render:function(){var ba=this._getView();return (q.createElement(k,{className:this.props.className,eventHandlers:{dragstart:this._onDragStart,moveend:this._onMoveEnd},onSizeSettled:this._onSizeSettled,onViewChange:this._onViewChange,options:this._getMapOptions(),showZoomControls:this._shouldShowZoomControls(),style:this.props.style,view:ba},this._renderArea(),this._renderCircleMarker(),this._renderShadowRadiusOverlay(ba),this.props.children));},_getMapOptions:function(){return this.props.areaView==null?w:v;},_getView:function(){if(this.props.areaView==null)return this.props.defaultView;return this.props.areaView.toLeafletView();},_onDragStart:function(){if(this.props.areaView==null)return;this.setState({draggingState:y.MOVING});if(this.props.onStartMovingArea)this.props.onStartMovingArea();},_onMoveEnd:function(){if(this.state.draggingState===y.MOVING)this.setState({draggingState:y.WAS_DRAGGED});},_onSizeSettled:function(ba){this.setState({size:ba});if(this.props.onSizeSettled)this.props.onSizeSettled(ba);},_onViewChange:function(ba){var ca=this.state.draggingState;this.setState({draggingState:y.NONE});var da=this.props.areaView;if(da==null)return;if(this.props.onZoomChange!=null&&!t(ba.zoom,da.zoom))this.props.onZoomChange(ba.zoom);if(this.props.onAreaCenterChange!=null&&ca===y.WAS_DRAGGED&&!ba.center.nearlyEquals(da.area.center))this.props.onAreaCenterChange(ba.center);},_renderArea:function(){if(this.props.areaView==null||this.state.draggingState===y.MOVING)return;return (q.createElement(m,{center:this.props.areaView.area.center,options:h.LEAFLET_TARGET_CIRCLE_OPTIONS,radius:this.props.areaView.area.radius}));},_renderCircleMarker:function(){if(this.props.areaView==null||this.state.draggingState===y.MOVING||!this.props.areaView.isPrecise)return;return (q.createElement(n,{center:this.props.areaView.area.center,options:h.LEAFLET_TARGET_MARKER_OPTIONS}));},_renderShadowRadiusOverlay:function(ba){if(this.state.draggingState!==y.MOVING||this.props.areaView==null||this.state.size==null)return;var ca=z(ba,this.props.areaView.area.radius);return (q.createElement(j,null,q.createElement('svg',{className:"_qhj"},q.createElement('ellipse',{cx:this.state.size.x/2+ca.centerDelta.x,cy:this.state.size.y/2+ca.centerDelta.y,rx:ca.radius.x,ry:ca.radius.y}))));},_shouldShowZoomControls:function(){return this.props.areaView!=null&&this.props.onZoomChange!=null;}});f.exports=aa;},null);
__d('hasAdblock',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h;function i(m){var n=document.createElement('div'),o=document.createElement('img');n.className='AdBox Ad advert';document.body.appendChild(n);document.body.appendChild(o);o.onload=function(){j(this,m);};o.onerror=function(){k(this,m);};o.src='//fbcdn-creative-a.akamaihd.net/hads-ak-prn2/'+'1487645_6012475414660_1439393861_n.png';var p=window.getComputedStyle&&window.getComputedStyle(n);if(!p){h=false;return;}if(p.display==='none')h=true;if(p.MozBinding&&p.MozBinding.indexOf('url')===0)h=true;}function j(m,n){var o=window.getComputedStyle&&window.getComputedStyle(m);if(!o){if(h===undefined)h=false;m.parentNode.removeChild(m);n(h);return;}if(o.display==='none'){h=true;}else if(h===undefined)h=false;m.parentNode.removeChild(m);n(h);}function k(m,n){h=true;m.parentNode.removeChild(m);n(h);}function l(m){if(h===undefined){i(m);}else m(h);}f.exports=l;},null);
__d('AdsAdblockWarning.react',['React','XUINotice.react','cx','fbt','hasAdblock'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=h.PropTypes,n=h.createClass({displayName:'AdsAdblockWarning',propTypes:{margin:m.string},getDefaultProps:function(){return {margin:"_3-8-"};},getInitialState:function(){return {hasAdblock:false};},componentDidMount:function(){l((function(o){if(!this.isMounted())return;this.setState({hasAdblock:o});}).bind(this));},render:function(){if(!this.state.hasAdblock)return h.createElement('div',{className:'hidden_elem'});return (h.createElement(i,{use:'warn',className:this.props.margin},k._("Facebook's advertising tools might not work as expected when an ad blocker is enabled in a web browser. Turn off the ad blocker or add this web page's URL as an exception so you can create ads without any problems. After you turn off the ad blocker, you'll need to refresh your screen.")));}});f.exports=n;},null);
__d('AdsTargetingNumberSelector.react',['XUISingleSelector.react','React','cx'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k=h.Option,l=i.PropTypes,m=i.createClass({displayName:'AdsTargetingNumberSelector',propTypes:{minimum:l.number.isRequired,maximum:l.number.isRequired,selectedValue:l.number.isRequired,onDataUpdate:l.func.isRequired,customMaxLabel:l.string},render:function(){var n=this.props,o=[];for(var p=n.minimum;p<=n.maximum;++p){var q=p;if(n.customMaxLabel&&p===n.maximum)q=n.customMaxLabel;o.push(i.createElement(k,{key:p,value:p},q));}return (i.createElement('div',{className:"_5tpo"},i.createElement(h,{className:"_1d1z",onChange:n.onDataUpdate,value:n.selectedValue,maxheight:200},o)));}});f.exports=m;},null);
__d("AdsTargetingTogglerSafeMixin",[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={setStateSafe:function(i,j){setTimeout((function(){this.setState(i,j);}).bind(this),0);}};f.exports=h;},null);
__d('AdsAgeSelector.react',['AdsCreationConfig','AdsTargetingConstants','AdsTargetingNumberSelector.react','AdsTargetingTogglerSafeMixin','BoostedComponentClientEvent','BoostedComponentTestElement','React','cx'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){if(c.__markCompiled)c.__markCompiled();var p=n.PropTypes,q=n.createClass({displayName:'AdsAgeSelector',mixins:[k],propTypes:{minSelectableAge:p.number,maxSelectableAge:p.number,initialMinAge:p.number,initialMaxAge:p.number,onDataUpdate:p.func.isRequired},getDefaultProps:function(){return {minSelectableAge:i.DEFAULT_MIN_SELECTABLE_AGE,maxSelectableAge:i.DEFAULT_MAX_SELECTABLE_AGE};},getInitialState:function(){return this._getInitialAges(this.props);},componentWillReceiveProps:function(r){this.setStateSafe(this._getInitialAges(r));},_getInitialAges:function(r){var s=r.minSelectableAge,t=r.maxSelectableAge,u=r.initialMinAge?r.initialMinAge:h.minAgeDefault,v=r.initialMaxAge?r.initialMaxAge:t;if(s>u)u=s;if(t<v)v=t;return {minAge:u,maxAge:v};},_onMinAgeUpdate:function(r){var s=r.value,t=s>this.state.maxAge?s:this.state.maxAge;this._updateAges(s,t);},_onMaxAgeUpdate:function(r){var s=r.value,t=s<this.state.minAge?s:this.state.minAge;this._updateAges(t,s);},_updateAges:function(r,s){this.setStateSafe({minAge:r,maxAge:s});var t={age_min:r,age_max:s};this.props.onDataUpdate(l.UPDATE_AGE,t);},render:function(){var r=this.state;return (n.createElement('div',{'data-testid':m.AGE_SELECTOR,className:"_5so_"},n.createElement(j,{minimum:this.props.minSelectableAge,maximum:this.props.maxSelectableAge,selectedValue:r.minAge,onDataUpdate:this._onMinAgeUpdate})," - ",n.createElement(j,{minimum:this.props.minSelectableAge,maximum:this.props.maxSelectableAge,selectedValue:r.maxAge,onDataUpdate:this._onMaxAgeUpdate,customMaxLabel:this.props.maxSelectableAge+'+'})));}});f.exports=q;},null);
__d('FBCarouselArrow.react',['CenteredContainer.react','Image.react','Locale','React','cx','joinClasses','xuiglyph'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o=k.PropTypes,p=k.createClass({displayName:'FBCarouselArrow',propTypes:{direction:o.oneOf(['forward','backward']).isRequired,fullBleed:o.bool},render:function(){var q=m(this.props.className,"_5x5z"+(!!this.props.fullBleed?' '+"_5x5-":'')+(this.props.direction==='forward'?' '+"_5x5_":'')+(this.props.direction==='backward'?' '+"_5x60":''));return (k.createElement('div',babelHelpers._extends({},this.props,{className:q}),k.createElement(h,{className:"_5x6d",vertical:true},k.createElement(i,{className:"_3-8w",src:this._getGlyphForDirection()}))));},_getGlyphForDirection:function(){var q=n('chevron-left'),r=n('chevron-right');if(j.isRTL()){var s=[r,q];q=s[0];r=s[1];}return this.props.direction==='forward'?r:q;}});f.exports=p;},null);
__d('AdsArrowedContainer.react',['CenteredContainer.react','FBCarouselArrow.react','FBOverlayBase.react','FBOverlayContainer.react','FBOverlayElement.react','Link.react','React','cx','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){if(c.__markCompiled)c.__markCompiled();var q=n.PropTypes,r=n.createClass({displayName:'AdsArrowedContainer',propTypes:{isArrowCentered:q.bool,onIncrement:q.func,onDecrement:q.func},render:function(){var s=this._renderArrow('backward'),t=this._renderArrow('forward'),u=this._renderArrowOverLay('left',s),v=this._renderArrowOverLay('right',t);return (n.createElement(k,this.props,n.createElement(j,null,this.props.children),u,v));},_renderArrow:function(s){var t,u;switch(s){case 'backward':t=this.props.onDecrement!==null;u=this.props.onDecrement;break;case 'forward':t=this.props.onIncrement!==null;u=this.props.onIncrement;break;default:p(0);}if(!t)return null;return (n.createElement(m,{className:!this.props.isArrowCentered?"_3-8z":'',onClick:u},n.createElement(i,{direction:s,fullBleed:s==='backward'})));},_renderArrowOverLay:function(s,t){if(t)if(this.props.isArrowCentered){return (n.createElement(l,{horizontal:s},n.createElement(h,{vertical:true},t)));}else return (n.createElement(l,{horizontal:s},t));return null;}});f.exports=r;},null);
__d('AdsCarousel.react',['Locale','React','ReactDOM','confine','cx','emptyFunction','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o=i.PropTypes,p=i.createClass({displayName:'AdsCarousel',propTypes:{index:o.number.isRequired,onUpdated:o.func},getDefaultProps:function(){return {onUpdated:m};},getInitialState:function(){return {computedOffset:0};},componentDidMount:function(){this._computeOffset(this.props.index);},componentDidUpdate:function(){this._computeOffset(this.props.index);},_computeOffset:function(q){var r=j.findDOMNode(this).offsetWidth,s=j.findDOMNode(this.refs.inner).offsetWidth,t=Math.max(s-r,0),u=0;for(var v=0;v<q&&u<t;v++)u+=this._getChildDOMNode(v).offsetWidth;u=k(u,0,t);if(u!==this.state.computedOffset){this.setState({computedOffset:u});}else this.props.onUpdated(this._getVisibleChildrenCount());},_getChildDOMNode:function(q){var r=this.refs['child_'+q];return r?j.findDOMNode(r):null;},render:function(){var q=i.Children.map(this.props.children,function(t,u){return (i.createElement('div',{ref:'child_'+u,className:"_a1x"},t));}),r=null;if(this.state.computedOffset){var s=String(-this.state.computedOffset)+'px';r=h.isRTL()?{right:s}:{left:s};}return (i.createElement('div',babelHelpers._extends({},this.props,{className:n(this.props.className,"_a28")}),i.createElement('div',{ref:'inner',className:"_a2e",style:r},q)));},_getVisibleChildrenCount:function(){var q=this.state.computedOffset+j.findDOMNode(this).offsetWidth,r=0,s=this.props.index,t;while(t=this._getChildDOMNode(s++))if(t.offsetLeft+t.offsetWidth<=q){r++;}else break;return r;}});f.exports=p;},null);
__d('AdsArrowedCarousel.react',['AdsArrowedContainer.react','AdsCarousel.react','React'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=j.createClass({displayName:'AdsArrowedCarousel',getInitialState:function(){return {index:0,canIncrementIndex:false,canDecrementIndex:false};},_getChildrenCount:function(){var l=0;j.Children.forEach(this.props.children,function(m){return l++;});return l;},_update:function(l){var m=this.state.index+l<this._getChildrenCount(),n=this.state.index>0;if(m!==this.state.canIncrementIndex||n!==this.state.canDecrementIndex)this.setState({canIncrementIndex:m,canDecrementIndex:n});},render:function(){return (j.createElement(h,babelHelpers._extends({},this.props,{onIncrement:this.state.canIncrementIndex?this._incrementIndex:null,onDecrement:this.state.canDecrementIndex?this._decrementIndex:null}),j.createElement(i,{index:this.state.index,onUpdated:this._update},this.props.children)));},_incrementIndex:function(){this.setState({index:this.state.index+1});},_decrementIndex:function(){this.setState({index:this.state.index-1});}});f.exports=k;},null);
__d('AdsArrowedCarouselEnhanced.react',['AdsArrowedContainer.react','AdsCarousel.react','React','ReactComponentWithPureRenderMixin'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l=j.PropTypes,m=j.createClass({displayName:'AdsArrowedCarouselEnhanced',mixins:[k],propTypes:{currentSelectedIndex:l.number,currentSelectedShouldVisible:l.bool,maxChangeAmount:l.number},getDefaultProps:function(){return {currentSelectedIndex:0,currentSelectedShouldVisible:false,maxChangeAmount:1};},getInitialState:function(){return {firstVisibleIndex:0,visibleChildrenCount:0};},componentWillReceiveProps:function(n){if(!n.currentSelectedShouldVisible)return;var o=n.currentSelectedIndex;if(this._isSelectedIndexOnLeftNotVisible(o)){this.setState({firstVisibleIndex:o});}else if(this._isSelectedIndexOnRightNotVisible(o)){var p=this.state.firstVisibleIndex+this.state.visibleChildrenCount-1,q=o-p;this.setState({firstVisibleIndex:this.state.firstVisibleIndex+q});}},_isSelectedIndexOnLeftNotVisible:function(n){return n<this.state.firstVisibleIndex;},_isSelectedIndexOnRightNotVisible:function(n){var o=this.state.firstVisibleIndex+this.state.visibleChildrenCount-1;return n>o;},render:function(){var n=this._getNextIncrementAmount(),o=this._getNextDecrementAmount();return (j.createElement(h,babelHelpers._extends({},this.props,{isArrowCentered:true,onIncrement:n?this._incrementIndex:null,onDecrement:o?this._decrementIndex:null}),j.createElement(i,{index:this.state.firstVisibleIndex,onUpdated:this._update},this.props.children)));},_decrementIndex:function(){var n=this._getNextDecrementAmount();this.setState({firstVisibleIndex:this.state.firstVisibleIndex-n});},_incrementIndex:function(){var n=this._getNextIncrementAmount();this.setState({firstVisibleIndex:this.state.firstVisibleIndex+n});},_update:function(n){this.setState({visibleChildrenCount:n});},_getNextIncrementAmount:function(){var n=this.state.visibleChildrenCount,o=j.Children.count(this.props.children)-this.state.firstVisibleIndex-n;if(o<=0)return 0;return Math.min(o,this.props.maxChangeAmount||1);},_getNextDecrementAmount:function(){return Math.min(this.state.firstVisibleIndex,this.props.maxChangeAmount||1);}});f.exports=m;},null);
__d('AdsAbstractCurrencyInput.react',['AdsCurrencyFormatter','Keys','React','fbt','escapeRegex','NumberFormatConfig','NumberFormatConfig'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m=c('NumberFormatConfig').decimalSeparator,n=c('NumberFormatConfig').numberDelimiter,o=j.PropTypes,p=new RegExp('^\\D*['+l(n)+'\\d]*'+l(m)+'?\\d{0,8}\\D*$'),q=500,r=j.createClass({displayName:'AdsAbstractCurrencyInput',propTypes:{currency:o.string.isRequired,value:o.number,withISO:o.bool,withNumberDelimiters:o.bool,nonnegative:o.bool,invalidInputIsNull:o.bool,onDataUpdate:o.func.isRequired,onUnderlyingValueChange:o.func,onKeyUp:o.func,eventType:o.oneOf(['change','blur']),textInputClass:o.func.isRequired,onMultiplePaste:o.func},componentWillReceiveProps:function(s){if(this.props.xuiError!==s.xuiError)this.setState({xuiError:s.xuiError});},getDefaultProps:function(){return {eventType:'blur',withNumberDelimiters:false};},getInitialState:function(){return {dirtyValue:null,pasteTime:null,xuiError:this.props.xuiError};},_getValue:function(){var s=this.state.dirtyValue;if(s===null){s=this.props.value;if(s!=null){s=h.formatCurrencyFullFormat(this.props.currency,s,this.props.withISO,this.props.withNumberDelimiters);}else s='';}return s;},render:function(){var s=this._getValue(),t=this.props.textInputClass;return (j.createElement(t,babelHelpers._extends({},this.props,{onChange:this._onChange,onBlur:this._onBlur,onKeyUp:this._onKeyUp,onPaste:this._onPaste,ref:'textInput',value:s,xuiError:this.state.xuiError})));},focusInput:function(){this.refs.textInput.focusInput();},updateValue:function(event){var s=this._parseCurrency(event.target.value),t=this._getXuiError(s);this.props.onDataUpdate(s);this.setState({dirtyValue:null,xuiError:t});},_isValidNumber:function(s){if(s==null)return false;return p.test(s);},_getXuiError:function(s){var t=this.props.xuiError;if(!this._isValidNumber(s))t=k._("Your budget must be a valid number.");return t;},_onChange:function(event){var s=event.target.value,t=this._getXuiError(s);this.setState({dirtyValue:s,xuiError:t});if(this.props.eventType==='change')this.props.onDataUpdate(this._parseCurrency(s));this.props.onUnderlyingValueChange&&this.props.onUnderlyingValueChange(this._parseCurrency(s));},_onBlur:function(event){if(this.state.dirtyValue!==null)this.updateValue(event);this.props.onBlur&&this.props.onBlur(event);},_parseCurrency:function(s){var t=h.parseOptionalCurrency(this.props.currency,s);if(!this.props.invalidInputIsNull)t=t||0;if(t&&this.props.nonnegative)t=Math.abs(t);return t;},_onPaste:function(event){if(!this.props.onMultiplePaste)return;if(this.state.pasteTime===null){this.setState({pasteTime:Date.now()});}else{if(Date.now()-this.state.pasteTime<q)this.props.onMultiplePaste();this.setState({pasteTime:null});}},_onKeyUp:function(event){if(event.keyCode===i.RETURN)this.updateValue(event);this.props.onKeyUp&&this.props.onKeyUp(event);}});f.exports=r;},null);
__d('AdsCurrencyInput.react',['AdsAbstractCurrencyInput.react','React','BUITextInput.react'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=i.PropTypes,l=i.createClass({displayName:'AdsCurrencyInput',propTypes:{currency:k.string.isRequired,value:k.number,withISO:k.bool,nonnegative:k.bool,invalidInputIsNull:k.bool,onDataUpdate:k.func.isRequired,onUnderlyingValueChange:k.func,eventType:k.oneOf(['change','blur']),onMultiplePaste:k.func},render:function(){return (i.createElement(h,babelHelpers._extends({},this.props,{ref:'input',textInputClass:j})));},focusInput:function(){this.refs.input.focusInput();}});f.exports=l;},null);
__d('AdsImageSecondaryActions',['keyMirror'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=h({X:null});f.exports=i;},null);
__d('AdsCFImageViewActions',['AdsDispatcher','AdsCFActionTypes'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={changeStockSearchText:function(k){h.handleUpdateFromViewAction({searchText:k,type:i.STOCK_IMAGE_SEARCH_TEXT_CHANGE});}};f.exports=j;},null);
__d('AdsMediaLibraryExpandedAsset.react',['Keys','React','ReactDOM','cx'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l=i.PropTypes,m=i.createClass({displayName:'AdsMediaLibraryExpandedAsset',propTypes:{height:l.number.isRequired,onClickClose:l.func.isRequired,source:l.string.isRequired,width:l.number.isRequired},componentDidMount:function(){j.findDOMNode(this.refs.expandedAssetView).focus();},_onKeyDownHandler:function(n){if(n.keyCode===h.ESC)this.props.onClickClose();},_onClickHandler:function(n){this.props.onClickClose();n.stopPropagation();},render:function(){var n=this.props.width,o=this.props.height,p={},q=window.innerHeight,r=window.innerWidth;if(n>r||o>q){if(n/r>o/q){n=r;o=this.props.height*(r/this.props.width);p.width=n;}else{o=q;n=this.props.width*(q/this.props.height);p.height=o;}}else p.width=this.props.width;var s=-Math.floor(n/2),t=-Math.floor(o/2),u=i.createElement('div',{className:"_4-lr",style:{marginLeft:s,marginTop:t}},i.createElement('img',{className:"_4vnf",alt:this.props.source,src:this.props.source,style:p})),v=i.createElement('div',{className:"_1zn8",style:{marginLeft:-(s+15),marginTop:t-20}});return (i.createElement('div',{ref:'expandedAssetView',className:"_1zn6",tabIndex:0,onKeyDown:this._onKeyDownHandler,onClick:this._onClickHandler},i.createElement('div',{className:"_4-ls"}),u,v));}});f.exports=m;},null);
__d('AdsMediaPanelImageBoxUtils',['AdsCreationExperimentStore'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=null;function j(){if(i===null){var l=h.getExperiment('ads_cf_shutterstock_flyover_enabled');l.logExposure();i=l.getParamBool('enabled');}return i;}var k={flyoverPreviewEnabled:j};f.exports=k;},null);
__d('GradientBox.react',['React','cx','joinClasses'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=h.PropTypes,l={up:"_344j",left:"_344k",down:"_344l",right:"_344m"},m={white:"_344n",black:"_344o"},n=h.createClass({displayName:'GradientBox',propTypes:{direction:k.oneOf(['up','down','right','left']),color:k.oneOf(['black','white'])},getDefaultProps:function(){return {direction:'right',color:'black'};},render:function(){var o=j(l[this.props.direction],m[this.props.color]);return (h.createElement('div',babelHelpers._extends({},this.props,{className:j(this.props.className,o)})));}});f.exports=n;},null);
__d('AdsMediaPanelImageBox.react',['AdsCreationExperimentStore','AdsImageLegacy','AdsMediaPanelImageBoxUtils','AdsValidationIcon.react','AdsValidationIconType','BackgroundImage.react','ContextualDialog.react','FBOverlayBase.react','FBOverlayContainer.react','FBOverlayElement.react','GradientBox.react','Link.react','React','ReactDOM','ReactLayeredComponentMixin','adsGKCheck','cx','cssVar','debounce','fbt','getElementPosition','getViewportDimensions','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da){'use strict';if(c.__markCompiled)c.__markCompiled();var ea=t.PropTypes,fa=parseInt("110px",10),ga=parseInt("66px",10),ha=1000,ia=1000,ja=65,ka=65,la=20,ma=w('ads_image_picker_redesign')&&'1'===h.getExperiment('ads_image_picker_redesign_experiment').getParam('has_redesign');if(ma){ga=parseInt("58px",10);ja=ga;ka=ga;}var na={'default':null,disabled:null,selected:"_5ywk",removable:"_5ywl"},oa=t.createClass({displayName:'AdsMediaPanelImageBox',mixins:[v],propTypes:{alt:ea.string,decoration:ea.oneOf(Object.keys(na)),image:ea.instanceOf(i).isRequired,imageSpec:ea.object,isTooSmall:ea.bool,igSpecificImageSpec:ea.object,onDecorationIconClick:ea.func,onImageClick:ea.func,onImageDoubleClick:ea.func,supportsInstagramLandscape:ea.bool},getDefaultProps:function(){return {decoration:'default',isTooSmall:false};},getInitialState:function(){return {imageReady:this.props.image.hasDimensions(),previewShown:false,hovering:false,isValidForFacebook:true};},_isDisabled:function(){return this.props.decoration==='disabled';},_mayClickImages:function(){return (!this._isDisabled()&&!(this.props.isTooSmall&&!this.state.isValidForFacebook));},_getOnImageClick:function(){return this._mayClickImages()?this.props.onImageClick:null;},_getOnImageDoubleClick:function(){return this._mayClickImages()?this.props.onImageDoubleClick:null;},_mayShowPreviews:function(){return (!this._isDisabled()&&this.props.image.isStockImage()&&j.flyoverPreviewEnabled());},_getOnImageMouseEnter:function(){return this._mayShowPreviews()?this._showPreview:null;},_getOnImageMouseLeave:function(){return this._mayShowPreviews()?this._hidePreview:null;},_showPreview:function(){this._resetSchedulePreviewHide();this.setState({previewShown:true});},_hidePreview:function(){this._resetSchedulePreviewHide();this.setState({previewShown:false});},_onImageDimensionsReady:function(){if(this.isMounted())this.setState({imageReady:true});},componentWillReceiveProps:function(pa){if(pa.image.equals(this.props.image))return;var qa=pa.image.hasDimensions();this.setState({imageReady:qa});if(!qa)pa.image.setDimensionsReadyCallback(this._onImageDimensionsReady);},componentWillMount:function(){this._setSchedulePreviewHide(z(this._hidePreview,la));if(!this.state.imageReady)this.props.image.setDimensionsReadyCallback(this._onImageDimensionsReady);},componentWillUnmount:function(){this._resetSchedulePreviewHide();this._setSchedulePreviewHide(null);},_setSchedulePreviewHide:function(pa){var qa=this;qa._schedulePreviewHide=pa;},_resetSchedulePreviewHide:function(){var pa=this;pa._schedulePreviewHide.reset();},_renderDecorationIcon:function(){var pa=this.props.onDecorationIconClick;return (t.createElement(s,{className:"_5ywm",onClick:pa,onMouseEnter:this._getOnImageMouseEnter(),onMouseLeave:this._getOnImageMouseLeave(),tabIndex:pa?null:-1}));},_renderOverlay:function(){if(!this._isDisabled())return null;return (t.createElement('div',{className:"_29wz"}));},_renderImage:function(){var pa=this.props.image,qa=this._calculateImageDimensions(),ra=pa.calculatedWidth,sa=pa.calculatedHeight,ta=null,ua=null,va=null;if(this.props.isTooSmall){ta=this._renderErrorIcon();ua=this._renderDimensionInfo();va=this._renderOverlayGradient();}else if(ma&&this.state.hovering){ua=this._renderDimensionInfo();va=this._renderOverlayGradient();}return (t.createElement(p,{className:"_29w-"},t.createElement(o,null,t.createElement('div',{className:!pa.isStockImage()?"_5ywo":''},t.createElement(m,{alt:this.props.alt,backgroundSize:'cover',backgroundPosition:'0px',className:(!pa.isStockImage()&&!ma?"_24s3":'')+(!pa.isStockImage()&&ma?' '+"_24s7":''),loadingIndicatorStyle:'small',ref:'image',src:pa.getThumbnailUrl()||pa.getUrl(),style:this._getImageStyle(),width:ra||qa.width,height:sa||qa.height,optimizeResizeSpeed:true}))),va,t.createElement(q,{vertical:'bottom'},t.createElement('div',{className:"_20-u"},ua,ta))));},_renderOverlayGradient:function(){return (t.createElement(q,{vertical:'bottom'},t.createElement(r,{className:"_2_4q",color:'black',direction:'up'})));},_renderDimensionInfo:function(){var pa=this.props.image.isStockImage()?this._calculateFullSizeStockImageDimensions():this._getImageDimensions();return aa._("{width} \u00d7 {height}",[aa.param('width',pa.width),aa.param('height',pa.height)]);},_renderErrorIcon:function(){var pa=this.props.imageSpec;if(!pa)return;if(!this.props.image.isValidated(pa.placement))this.props.image.validateNowWithIGLandscapeSupport(pa,this.props.supportsInstagramLandscape);var qa=this.props.image.getValidation(pa.placement).errorMessage,ra,sa=this.props.igSpecificImageSpec;if(sa){if(!this.props.image.isValidated(sa.placement))this.props.image.validateNowWithIGLandscapeSupport(sa,this.props.supportsInstagramLandscape);var ta=this.props.image.getValidation(sa.placement);ra=ta.errorMessage;}if(qa&&this.state.isValidForFacebook)this.setState({isValidForFacebook:false});return (t.createElement(k,{className:"_20-v",messages:[qa||ra],type:l.ERROR_IMAGE}));},render:function(){return (t.createElement('div',{className:"_5ywp"},t.createElement('div',{className:da((!ma?"_24s3":'')+(ma?' '+"_24s7":''),na[this.props.decoration],this.props.className),onMouseEnter:(function(){return this.setState({hovering:true});}).bind(this),onMouseLeave:(function(){return this.setState({hovering:false});}).bind(this)},t.createElement(s,{className:"_5ywq",onClick:this._getOnImageClick(),onDoubleClick:this._getOnImageDoubleClick(),onMouseEnter:this._getOnImageMouseEnter(),onMouseLeave:this._getOnImageMouseLeave(),tabIndex:this.props.onImageClick?null:-1},this._renderImage()),this._renderOverlay(),this._renderDecorationIcon())));},renderLayers:function(){var pa=this.props.image,qa=this._mayShowPreviews()&&this.state.previewShown,ra=pa.getPreviewWidth(),sa=pa.getPreviewHeight(),ta=null;if(!qa)return {};var ua={height:String(sa)+'px',width:String(ra)+'px'},va=ba(u.findDOMNode(this)),wa=ca(),xa=va.x,ya=wa.width-va.x-va.width;ta=xa>ya?'left':'right';return {preview:t.createElement(n,{contextRef:(function(){return this.refs.image;}).bind(this),shown:true,style:ua,position:ta},t.createElement(m,{src:pa.getPreviewUrl(),backgroudSize:'cover',backgroundPosition:'0px',width:ra,height:sa,loadingIndicatorStyle:'large',optimizeResizeSpeed:true}))};},_getSizeMultiplier:function(pa,qa,ra){return ma?Math.min(qa/pa.width,ra/pa.height):Math.min(qa/pa.width,ra/pa.height,1);},_getStockImageSizeMultiplier:function(){return this._getSizeMultiplier(this._getStockImageVisibleDimensions(),fa,ga);},_fitDimensions:function(pa,qa,ra){var sa=this._getSizeMultiplier(pa,qa,ra);return {height:Math.floor(pa.height*sa),width:Math.floor(pa.width*sa)};},_getImageStyle:function(){var pa=this.props.image;if(!pa.isStockImage()||!this.state.imageReady)return null;var qa=this._getStockImageVisibleDimensions(),ra=this._getImageDimensions(),sa={height:ra.height-qa.height,width:ra.width-qa.width},ta=this._getStockImageSizeMultiplier(),ua={};if(sa.height>0)ua.marginBottom=String(Math.ceil(sa.height*-ta))+'px';if(sa.width>0)ua.marginRight=String(Math.ceil(sa.width*-ta))+'px';return ua;},_getImageDimensions:function(){return {height:this.props.image.height,width:this.props.image.width};},_getNonStockImageDimensions:function(){return {height:this.props.image.getThumbnailHeight()||this.props.image.height,width:this.props.image.getThumbnailWidth()||this.props.image.width};},_getStockImageVisibleDimensions:function(){return {height:this.props.image.getThumbnailHeight(),width:this.props.image.getThumbnailWidth()};},_calculateImageDimensions:function(){return this.props.image.isStockImage()?this._calculateStockImageDimensions():this._calculateNonStockImageDimensions();},_calculateNonStockImageDimensions:function(){if(!this.state.imageReady)return {height:ka,width:ja};return this._fitDimensions(this._getNonStockImageDimensions(),fa,ga);},_calculateStockImageDimensions:function(){if(!this.state.imageReady)return this._fitDimensions(this._getStockImageVisibleDimensions(),fa,ga);var pa=this._getImageDimensions(),qa=this._getStockImageSizeMultiplier();return {height:Math.floor(pa.height*qa),width:Math.floor(pa.width*qa)};},_calculateFullSizeStockImageDimensions:function(){var pa=this.props.image;if(pa.hasFullSizeDimensions())return {height:pa.getFullSizeHeight(),width:pa.getFullSizeWidth()};var qa=pa.getPreviewWidth(),ra=pa.getPreviewHeight(),sa=Math.min(ha/qa,ia/ra);return {height:Math.round(ra*sa),width:Math.round(qa*sa)};}});f.exports=oa;},null);
__d('AdsMediaStandaloneLibraryImageWithDimensions.react',['AdsImageLegacy','AdsValidationIcon.react','AdsValidationIconType','BackgroundImage.react','FBOverlayBase.react','FBOverlayContainer.react','FBOverlayElement.react','React','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=o.PropTypes,s={height:600,width:200},t={height:400,width:400},u=o.createClass({displayName:'AdsMediaStandaloneLibraryImageWithDimensions',propTypes:{alt:r.string,image:r.instanceOf(h).isRequired,imageReady:r.bool},getInitialState:function(){return {thumbnailLoaded:false};},render:function(){var v=this.props.image,w=this._calculateImageDimensions(),x=v.calculatedWidth,y=v.calculatedHeight,z=this.state.thumbnailLoaded?v.getUrl():v.getThumbnailUrl();return (o.createElement(m,{className:"_1bye"},o.createElement(l,null,o.createElement('div',null,o.createElement(k,{alt:this.props.alt,backgroundSize:'cover',backgroundPosition:0,className:"_2vjn",height:y||w.height,loadingIndicatorStyle:'small',onImageLoad:this._handleImageLoad,optimizeResizeSpeed:true,src:z,width:x||w.width}))),o.createElement(n,{vertical:'bottom'},this._renderImageDimensions(v))));},_renderImageDimensions:function(v){var w=v.getWidth(),x=v.getHeight();return (o.createElement('div',{className:"_1byh"},o.createElement('span',{className:"_1byi",onClick:this._handleImageInfoClick},o.createElement(i,{className:"_1byj",type:j.LARGE_IMAGE}),o.createElement('span',{className:"_1byk"},q._("{width} \u00d7 {height}",[q.param('width',w),q.param('height',x)])))));},_handleImageLoad:function(){this.setState({thumbnailLoaded:true});},_handleImageInfoClick:function(v){v.stopPropagation();this.props.onExpandClick(this.props.image);},_calculateImageDimensions:function(){if(!this.props.imageReady)return t;return this._fitDimensions(this._getImageDimensions(),s);},_getImageDimensions:function(){return {height:this.props.image.getThumbnailHeight()||this.props.image.height,width:this.props.image.getThumbnailWidth()||this.props.image.width};},_fitDimensions:function(v,w){var x=this._getSizeMultiplier(v,w);return {height:Math.floor(v.height*x),width:Math.floor(v.width*x)};},_getSizeMultiplier:function(v,w){return Math.min(w.width/v.width,w.height/v.height,1);}});f.exports=u;},null);
__d('AdsMediaStandaloneLibraryMetadataImage.react',['AdsImageLegacy','AdsMediaStandaloneLibraryImageWithDimensions.react','Link.react','React','URI','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=k.PropTypes,p=180,q=k.createClass({displayName:'AdsMediaStandaloneLibraryMetadataImage',propTypes:{alt:o.string,image:o.instanceOf(h).isRequired,imageReady:o.bool.isRequired,onExpandClick:o.func.isRequired},render:function(){var s=this.props.image,t=new l(s.getUrl()).setQueryData({dl:1});return (k.createElement('div',{className:"_35qj"},k.createElement('div',{className:"_35qk"},k.createElement(i,{image:s,imageReady:this.props.imageReady,onExpandClick:this.props.onExpandClick})),k.createElement('div',{className:"_35ql"},k.createElement(r,{propertyKey:n._("Name:"),propertyValue:s.name}),k.createElement(r,{propertyKey:n._("Hash:"),propertyValue:k.createElement(j,{href:t},s.getAdAccountHash())}))));}}),r=k.createClass({displayName:'AdsMediaStandaloneLibraryMetadataProperty',propTypes:{propertyKey:o.node.isRequired,propertyValue:o.node.isRequired},render:function(){return (k.createElement('div',{className:"_35qo"},k.createElement('div',{className:"_35qp"},this.props.propertyKey),' ',k.createElement('div',{className:"_35qq"},this.props.propertyValue)));}});f.exports=q;},null);
__d('AdsMediaStandaloneLibrarySelectableImage.react',['AdsImageLegacy','AdsMediaStandaloneLibraryImageWithDimensions.react','Link.react','React','cx','emptyFunction','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=k.PropTypes,p={'default':null,disabled:null,selected:"_1byd"},q=k.createClass({displayName:'AdsMediaStandaloneLibrarySelectableImage',propTypes:{alt:o.string,decoration:o.oneOf(Object.keys(p)).isRequired,image:o.instanceOf(h).isRequired,imageReady:o.bool,onExpandClick:o.func.isRequired,onImageClick:o.func.isRequired},getDefaultProps:function(){return {decoration:'default',onExpandClick:m,onImageClick:m};},render:function(){return (k.createElement('div',{className:"_1bym"},k.createElement('div',{className:n(p[this.props.decoration],this.props.className)},k.createElement(j,{className:"_1byn",onClick:this.props.onImageClick,tabIndex:this.props.onImageClick?null:-1},k.createElement(i,{image:this.props.image,imageReady:this.props.imageReady,onExpandClick:this.props.onExpandClick,onImageClick:this.props.onImageClick})),this._renderDecorationIcon())));},_renderDecorationIcon:function(){return (k.createElement(j,{className:"_1byl"}));}});f.exports=q;},null);
__d('AdsMediaStandaloneLibraryImage.react',['AdsImageLegacy','AdsMediaStandaloneLibraryMetadataImage.react','AdsMediaStandaloneLibrarySelectableImage.react','React','cx','emptyFunction'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=k.PropTypes,o=k.createClass({displayName:'AdsMediaStandaloneLibraryImage',propTypes:{alt:n.string,decoration:n.string.isRequired,image:n.instanceOf(h).isRequired,onExpandClick:n.func.isRequired,onImageClick:n.func.isRequired,showImageMetadata:n.bool},getDefaultProps:function(){return {decoration:'default',onExpandClick:m,onImageClick:m,showImageMetadata:false};},getInitialState:function(){return {imageReady:this.props.image.hasDimensions()};},_onImageDimensionsReady:function(){this.setState({imageReady:true});},componentWillReceiveProps:function(p){if(p.image.equals(this.props.image))return;var q=p.image.hasDimensions();this.setState({imageReady:q});if(!q)p.image.setDimensionsReadyCallback(this._onImageDimensionsReady);},componentWillMount:function(){if(!this.state.imageReady)this.props.image.setDimensionsReadyCallback(this._onImageDimensionsReady);},_renderMetadataImage:function(){return (k.createElement(i,{alt:this.props.alt,image:this.props.image,imageReady:this.state.imageReady,onExpandClick:this.props.onExpandClick}));},_renderSelectableImage:function(){return (k.createElement(j,{alt:this.props.alt,decoration:this.props.decoration,image:this.props.image,imageReady:this.state.imageReady,onExpandClick:this.props.onExpandClick,onImageClick:this.props.onImageClick}));},render:function(){return (k.createElement('div',{className:"_3tlt"},this.props.showImageMetadata?this._renderMetadataImage():this._renderSelectableImage()));}});f.exports=o;},null);
__d('ImageRowItem.react',['React'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=h.PropTypes,j=h.createClass({displayName:'ImageRowItem',propTypes:{footerRow:i.node,height:i.number.isRequired,imageRowItems:i.array,renderImage:i.func,rowGetter:i.func,rowIndex:i.number.isRequired,width:i.number.isRequired},render:function(){var k=this.props.imageRowItems[this.props.rowIndex];if(k){var l=this.props.renderImage,m=k.map(l);return (h.createElement('div',{key:'ImageRowItem'+k[0].getAdAccountHash()},m));}else return (h.createElement('div',{key:'ImageRowItemFooter'},this.props.footerRow));}});f.exports=j;},null);
__d('InfiniteScroll.react',['Event','React','ReactDOM','Scroll','SubscriptionsHandler','cx','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o=i.PropTypes,p=i.createClass({displayName:'InfiniteScroll',propTypes:{distanceToEnd:o.number,onEndReached:o.func},getDefaultProps:function(){return {distanceToEnd:50};},componentDidMount:function(){var q=j.findDOMNode(this);this.subscriptions=new l();this.subscriptions.addSubscriptions(h.listen(q,'scroll',this._checkIfEndReached),h.listen(q,'resize',this._checkIfEndReached));},componentDidUpdate:function(){this._checkIfEndReached();},componentWillUnmount:function(){this.subscriptions.release();delete this.subscriptions;},_checkIfEndReached:function(){if(!this.props.onEndReached)return;var q=j.findDOMNode(this);if(!q.offsetHeight)return;var r=k.getTop(q)+q.offsetHeight;if(r>=q.scrollHeight-this.props.distanceToEnd)this.props.onEndReached();},render:function(){return (i.createElement('div',babelHelpers._extends({},this.props,{className:n(this.props.className,"_1ph1")}),this.props.children));}});f.exports=p;},null);
/**
 * @providesModule sha256
 * @preserve-header
 *
 * Copyright (c) 2003, Christoph Bichlmeier
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. Neither the name of the copyright holder nor the names of contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ''AS IS'' AND ANY EXPRESS
 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */__d("sha256",["str2rstr"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();var h=c('str2rstr');function i(ga,ha){return ((ha>>>ga)|(ha<<(32-ga)));}function j(ga,ha,ia){return ((ga&ha)^(~ga&ia));}function k(ga,ha,ia){return ((ga&ha)^(ga&ia)^(ha&ia));}function l(ga){return (i(2,ga)^i(13,ga)^i(22,ga));}function m(ga){return (i(6,ga)^i(11,ga)^i(25,ga));}function n(ga){return (i(7,ga)^i(18,ga)^(ga>>>3));}function o(ga){return (i(17,ga)^i(19,ga)^(ga>>>10));}function p(ga,ha){return (ga[ha&15]+=o(ga[(ha+14)&15])+ga[(ha+9)&15]+n(ga[(ha+1)&15]));}var q=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),r=new Array(8),s=new Array(2),t=new Array(64),u=new Array(16),v="0123456789abcdef";function w(ga,ha){var ia=(ga&65535)+(ha&65535),ja=(ga>>16)+(ha>>16)+(ia>>16);return (ja<<16)|(ia&65535);}function x(){s[0]=s[1]=0;r[0]=1779033703;r[1]=3144134277;r[2]=1013904242;r[3]=2773480762;r[4]=1359893119;r[5]=2600822924;r[6]=528734635;r[7]=1541459225;}function y(){var ga,ha,ia,ja,ka,la,ma,na,oa,pa;ga=r[0];ha=r[1];ia=r[2];ja=r[3];ka=r[4];la=r[5];ma=r[6];na=r[7];for(var qa=0;qa<16;qa++)u[qa]=((t[(qa<<2)+3])|(t[(qa<<2)+2]<<8)|(t[(qa<<2)+1]<<16)|(t[qa<<2]<<24));for(var ra=0;ra<64;ra++){oa=na+m(ka)+j(ka,la,ma)+q[ra];if(ra<16){oa+=u[ra];}else oa+=p(u,ra);pa=l(ga)+k(ga,ha,ia);na=ma;ma=la;la=ka;ka=w(ja,oa);ja=ia;ia=ha;ha=ga;ga=w(oa,pa);}r[0]+=ga;r[1]+=ha;r[2]+=ia;r[3]+=ja;r[4]+=ka;r[5]+=la;r[6]+=ma;r[7]+=na;}function z(ga,ha){var ia,ja,ka=0;ja=((s[0]>>3)&63);var la=(ha&63);if((s[0]+=(ha<<3))<(ha<<3))s[1]++;s[1]+=(ha>>29);for(ia=0;ia+63<ha;ia+=64){for(var ma=ja;ma<64;ma++)t[ma]=ga.charCodeAt(ka++);y();ja=0;}for(var ma=0;ma<la;ma++)t[ma]=ga.charCodeAt(ka++);}function aa(){var ga=((s[0]>>3)&63);t[ga++]=128;if(ga<=56){for(var ha=ga;ha<56;ha++)t[ha]=0;}else{for(var ha=ga;ha<64;ha++)t[ha]=0;y();for(var ha=0;ha<56;ha++)t[ha]=0;}t[56]=(s[1]>>>24)&255;t[57]=(s[1]>>>16)&255;t[58]=(s[1]>>>8)&255;t[59]=s[1]&255;t[60]=(s[0]>>>24)&255;t[61]=(s[0]>>>16)&255;t[62]=(s[0]>>>8)&255;t[63]=s[0]&255;y();}function ba(){var ga=0,ha=new Array(32);for(var ia=0;ia<8;ia++){ha[ga++]=((r[ia]>>>24)&255);ha[ga++]=((r[ia]>>>16)&255);ha[ga++]=((r[ia]>>>8)&255);ha[ga++]=(r[ia]&255);}return ha;}function ca(){var ga=new String();for(var ha=0;ha<8;ha++)for(var ia=28;ia>=0;ia-=4)ga+=v.charAt((r[ha]>>>ia)&15);return ga;}function da(ga){var ha=0;for(var ia=0;ia<8;ia++)for(var ja=28;ja>=0;ja-=4)ga[ha++]=v.charCodeAt((r[ia]>>>ja)&15);}function ea(ga,ha){x();z(ga,ga.length);aa();if(ha){da(ha);}else return ca();}function fa(ga,ha,ia){if(ga===null||ga===undefined)return null;ha=(typeof ha=='undefined')?true:ha;if(ha)ga=h(ga);return ea(ga,ia);}f.exports=fa;},null,{});
__d("PhotoArrange",["Map","sha256"],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=.5,k=.5,l={height:-1,isOptimal:false,isValid:false};function m(){"use strict";this.$PhotoArrange1=new h();this.$PhotoArrange2=new h();}m.prototype.solve=function(o,p){"use strict";var q=p.map(function(u){return u.height/u.width;}),r=this.$PhotoArrange3(o,p);if(this.$PhotoArrange1.has(r))return this.$PhotoArrange1.get(r);var s;try{s=this.$PhotoArrange4(o,p,q);}catch(t){s=this.$PhotoArrange5(o,p,q);}this.$PhotoArrange1.set(r,s);return s;};m.prototype.$PhotoArrange3=function(o,p){"use strict";var q=[String(o.containerWidth),String(o.marginPerImage),String(o.maxImageHeight),String(o.minImageHeight),String(o.minImageWidth)].concat(p.map(function(r){return ([String(r.width),String(r.height)].join(","));})).join(",");return i(q);};m.prototype.$PhotoArrange5=function(o,p,q){"use strict";var r=(o.maxImageHeight+o.minImageHeight)/2;return p.map(function(s,t){var u=r/q[t];return {height:r,width:u};});};m.prototype.$PhotoArrange4=function(o,p,q){"use strict";if(!p.length)return [];var r=l,s=0,t=l,u=0,v=p.length,w=o.maxImageHeight,x=o.minImageWidth,y=o.containerWidth,z=w/q[0],aa=0;while(aa<v-1){var ba=Math.max(x,w/q[aa+1]);if(z+ba>y){break;}else{z+=ba+o.marginPerImage;aa++;}}var ca=[],da=[],ea;for(;aa<v;aa++){s=aa+1;ca=p.slice(0,s);da=q.slice(0,s);ea=this.$PhotoArrange3(o,ca);if(this.$PhotoArrange2.has(ea)){r=this.$PhotoArrange2.get(ea);}else{r=new n(o,da.slice(0,s)).solve();this.$PhotoArrange2.set(ea,r);}if(r.isValid&&r.isOptimal){break;}else if(r.isValid){t=r;u=s;}else{r=t;s=u;break;}}if(r.isValid){var fa=r.height,ga=p.slice(0,s);ga=ga.map(function(ha,ia){return {width:fa/q[ia],height:fa};});return ga.concat(this.$PhotoArrange4(o,p.slice(s),q.slice(s)));}else throw "There is no valid solution to arrange these photos\n        under the specified constraints";};function n(o,p){"use strict";var q=o.containerWidth,r=o.marginPerImage,s=o.maxImageHeight,t=o.minImageHeight,u=o.minImageWidth;this.$ImagesBSSolver1=q;this.$ImagesBSSolver2=p;this.$ImagesBSSolver3=r;this.$ImagesBSSolver4=s;this.$ImagesBSSolver5=t;this.$ImagesBSSolver6=u;}n.prototype.solve=function(){"use strict";var o=this.$ImagesBSSolver5,p=this.$ImagesBSSolver4,q=(p+o)/2,r=this.$ImagesBSSolver7(o),s=this.$ImagesBSSolver7(q),t=this.$ImagesBSSolver7(p);if(!r.isValid){return l;}else if(t.isValid){return {height:p,isOptimal:t.isOptimal,isValid:t.isValid};}else{while(!s.isValid||p-o>j){if(!s.isValid){p=q;}else o=q;q=(p+o)/2;s=this.$ImagesBSSolver7(q);}return {height:q,isOptimal:s.isOptimal,isValid:s.isValid};}};n.prototype.$ImagesBSSolver7=function(o){"use strict";var p=this.$ImagesBSSolver2.reduce((function(s,t){var u=Math.max(this.$ImagesBSSolver6,o/t);return s+u+this.$ImagesBSSolver3;}).bind(this),-this.$ImagesBSSolver3),q=p<this.$ImagesBSSolver1,r=q&&p+k>this.$ImagesBSSolver1;return {isOptimal:r,isValid:q};};f.exports=new m();},null);
__d("DimensionTracker",[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(){"use strict";this.$DimensionTracker1=[];this.$DimensionTracker2=0;}h.prototype.setValue=function(i,j){"use strict";this.$DimensionTracker2++;this.$DimensionTracker1.push({index:i,value:j});};h.prototype.getChangesSince=function(i){"use strict";var j=this.$DimensionTracker1.slice(i,this.$DimensionTracker2);return {changes:j,pointer:this.$DimensionTracker2};};f.exports=h;},null);
__d('AdsMediaLibrary.react',['AdsCreationExperimentStore','AdsImageLegacy','AdsImageValidation','AdsMediaLibraryExpandedAsset.react','AdsMediaPanelImageBox.react','AdsMediaStandaloneLibraryImage.react','ImageRowItem.react','InfiniteScroll.react','PhotoArrange','React','ReactDOM','DimensionTracker','Scroll','SimpleList.react','XUISpinner.react','adsGKCheck','cx','emptyFunction','invariant','joinClasses','setImmediate'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba){'use strict';if(c.__markCompiled)c.__markCompiled();var ca=q.PropTypes,da=false,ea={height:100,width:100},fa=60,ga=290,ha=90,ia=210,ja=14,ka=48,la=550,ma=60,na=50,oa=0,pa=12,qa=49,ra=q.createClass({displayName:'AdsMediaLibrary',propTypes:{disableTooSmallImages:ca.bool,height:ca.number.isRequired,imageList:ca.arrayOf(ca.instanceOf(i)).isRequired,imageSpec:ca.shape({minWarningWidth:ca.number.isRequired,minWarningHeight:ca.number.isRequired}),isClickEnabled:ca.bool.isRequired,isLoadingInitial:ca.bool,igSpecificImageSpec:ca.object,onEndReached:ca.func,onImageClick:ca.func.isRequired,onImageDoubleClick:ca.func,photoArrangeConstraints:ca.shape({containerPadding:ca.number.isRequired,maxImageHeight:ca.number.isRequired,minImageHeight:ca.number.isRequired,minImageWidth:ca.number.isRequired,marginPerImage:ca.number.isRequired}).isRequired,photoArrangeEnabled:ca.bool,selectedImageList:ca.array.isRequired,scrollingAreaFooter:ca.object,showStandaloneImageMetadata:ca.bool,standalone:ca.bool,supportsInstagramLandscape:ca.bool},getDefaultProps:function(){return {disableTooSmallImages:false,onImageClick:y,photoArrangeConstraints:{containerPadding:fa,maxImageHeight:ma,minImageHeight:na,minImageWidth:oa,marginPerImage:pa},selectedImageList:[],showStandaloneImageMetadata:false,standalone:false};},getInitialState:function(){return {containerWidth:0,expandedImage:null};},componentDidMount:function(){ba(this.measureContainerWidth);},componentWillReceiveProps:function(){this.measureContainerWidth();},render:function(){var sa=aa(this.props.className,"_3suv"),ta=this.props.children;if(ta)ta=q.createElement('div',{className:"_13u2 clearfix"},ta);var ua,va=this.props.photoArrangeConstraints;if(this.state.containerWidth&&this.props.photoArrangeEnabled){var wa=Math.max(0,this.state.containerWidth-va.containerPadding),xa=this.props.imageList.map(function(eb){return babelHelpers._extends({},eb,{width:eb.width||ea.width,height:eb.height||ea.height});}),ya=p.solve(babelHelpers._extends({},va,{containerWidth:wa}),xa);ua=this.props.imageList.map(function(eb,fb){eb.calculatedWidth=ya[fb].width;eb.calculatedHeight=ya[fb].height;return eb;});}else ua=this.props.imageList;if(this.props.standalone){var za=null;if(wa){var ab=this._imagesToRows(ua,wa,va.marginPerImage,va.minImageWidth),bb=new s();ab.forEach((function(eb,fb){var gb=eb[0],hb=this.props.showStandaloneImageMetadata?ha:ja,ib=gb.calculatedHeight+hb;bb.setValue(fb,ib);}).bind(this));bb.setValue(ab.length,qa);var cb=this.props.showStandaloneImageMetadata?ga:ia,db=this.state.containerWidth-ka;za=q.createElement(u,{width:db,rowCount:ab.length+1,height:this.props.height,rowHeight:cb,rowHeightTracker:bb,item:q.createElement(n,{renderImage:this._renderStandaloneLibraryImage,footerRow:this.props.scrollingAreaFooter,imageRowItems:ab})});}return (q.createElement('div',{className:sa,ref:'AdsMediaLibraryRoot'},q.createElement('div',{className:"_13t_",ref:'imagesContainer'},za),this._renderExpandedView(),this._renderOverlay()));}else return (q.createElement('div',{className:sa,ref:'AdsMediaLibraryRoot'},q.createElement(o,{className:"_13u1",onEndReached:this.props.onEndReached,style:{height:this.props.height}},ta,q.createElement('div',{className:"_13t_",ref:'imagesContainer'},ua.map(this._renderImage)),this.props.scrollingAreaFooter),this._renderOverlay()));},componentWillMount:function(){if(w('ads_image_picker_redesign')){var sa=h.getExperiment('ads_image_picker_redesign_experiment');sa.logExposure();da=sa.getParam('has_redesign')==='1';}},measureContainerWidth:function(){var sa=this.refs.imagesContainer;if(sa){var ta=r.findDOMNode(sa),ua=ta.offsetWidth;this.setState({containerWidth:ua});}},_imagesToRows:function(sa,ta,ua,va){if(!sa.length)return [];var wa=[[]],xa=0,ya=0;sa.forEach(function(za,ab){var bb=Math.max(va,za.calculatedWidth);if(ya+bb>ta){wa.push([]);ya=0;xa++;}wa[xa].push(za);ya+=bb+ua;});return wa;},_renderOverlay:function(){if(!this.props.isLoadingInitial)return null;return (q.createElement('div',{className:"_13u3"},q.createElement(v,{background:'light',className:"_13t-",size:'large'})));},_renderExpandedView:function(){if(!this.state.expandedImage)return null;var sa=this.state.expandedImage,ta=Math.min(sa.height,la),ua=ta*sa.width/sa.height;return (q.createElement(k,{key:'expanded_view',width:ua,height:ta,source:sa.getUrl(),onClickClose:this._onExpandClickClose}));},_onExpandClick:function(sa){this.setState({expandedImage:sa});},_onExpandClickClose:function(){this.setState({expandedImage:null});},_isImageSelected:function(sa){return this.props.selectedImageList.some(function(ta){return ta.getUniqueIdentifier()==sa;});},_getImageDecoration:function(sa){if(this._isImageSelected(sa.getUniqueIdentifier())){return 'selected';}else if(!this.props.isClickEnabled)return 'disabled';return 'default';},_renderStandaloneLibraryImage:function(sa){return (q.createElement(m,{decoration:this._getImageDecoration(sa),image:sa,imageSpec:this.props.imageSpec,key:sa.getUniqueIdentifier(),onExpandClick:this._onExpandClick,onImageClick:(function(event){return this.props.onImageClick(sa,event.shiftKey);}).bind(this),ref:sa.getUniqueIdentifier(),showImageMetadata:this.props.showStandaloneImageMetadata}));},_renderImage:function(sa){var ta=false;if(this.props.imageSpec){ta=!j.isWarningSize(sa,this.props.imageSpec);if(this.props.igSpecificImageSpec)ta=ta||!j.isWarningSize(sa,this.props.igSpecificImageSpec);}return (q.createElement(l,{className:(!da?"_13u0":'')+(da?' '+"_3ubt":''),decoration:this._getImageDecoration(sa),image:sa,imageSpec:this.props.imageSpec,isTooSmall:this.props.disableTooSmallImages&&ta,key:sa.getUniqueIdentifier(),igSpecificImageSpec:this.props.igSpecificImageSpec,onImageClick:(function(event){this.props.onImageClick&&this.props.onImageClick(sa);}).bind(this),onImageDoubleClick:(function(event){this.props.onImageDoubleClick&&this.props.onImageDoubleClick(sa);}).bind(this),ref:sa.getUniqueIdentifier(),supportsInstagramLandscape:this.props.supportsInstagramLandscape}));},scrollToImage:function(sa){var ta=sa.getUniqueIdentifier();!(ta in this.refs)?z(0):undefined;var ua=r.findDOMNode(this.refs[ta]),va=r.findDOMNode(this),wa=ua.offsetTop;if(va!=ua.offsetParent)wa-=va.offsetTop;t.setTop(va,wa);}});f.exports=ra;},null);
__d('AdsMediaPanelInfiniteScrollFooter.react',['React','ReactComponentWithPureRenderMixin','XUISpinner.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=h.PropTypes,n=h.createClass({displayName:'AdsMediaPanelInfiniteScrollFooter',mixins:[i],propTypes:{fetchingNextPage:m.bool.isRequired,imagesLoaded:m.bool.isRequired,onEndReached:m.func},componentDidMount:function(){if(this.props.onEndReached)this.props.onEndReached();},render:function(){if(!this.props.imagesLoaded)return null;if(this.props.fetchingNextPage)return (h.createElement('div',{className:"_4bnz"},h.createElement(j,{background:'light',size:'large'})));return (h.createElement('div',{className:"_4bn-"},h.createElement('div',{className:"_4bn_"},h.createElement('div',{className:"_4bo2"},l._("No more images found")))));}});f.exports=n;},null);
__d('AdsShutterstockSearchBar.react',['Image.react','React','XUITextInput.react','cx','emptyFunction','ix','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o=i.PropTypes,p=i.createClass({displayName:'AdsShutterstockSearchBar',propTypes:{searchText:o.string,onTriggerSearch:o.func,onTextChange:o.func},getDefaultProps:function(){return {onTriggerSearch:l,onTextChange:l};},render:function(){return (i.createElement('div',{className:"_134r"},i.createElement('div',{className:"_134s"},i.createElement(h,{className:"_134t",src:m('/images/ads/createflow/stock_images/icon_search.png')}),i.createElement('div',{className:"_134u"},n._("Powered by {partner-company-name}",[n.param('partner-company-name','Shutterstock')])),i.createElement(j,{className:"_134v",defaultValue:this.props.searchText,height:'tall',onChange:this._onChange,onEnter:this._onTriggerSearch,placeholder:n._("Search Free Stock Images")}))));},_onTriggerSearch:function(){this.props.onTriggerSearch();},_onChange:function(event){this.props.onTextChange(event.target.value);}});f.exports=p;},null);
__d('AdsCFShutterstockLibrary.react',['AdsCFActionTypes','AdsCFImageLibraryUtil','AdsCFImageViewActions','AdsDispatcher','AdsImageCollectionViews','AdsMediaLibrary.react','AdsMediaPanelInfiniteScrollFooter.react','AdsMediaPanelMessage.react','AdsShutterstockSearchBar.react','AdsShutterstockUseGuidelines.react','React','ShutterstockApiStatus','cx','debounce','fbt','ix','keyMirror'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x){'use strict';if(c.__markCompiled)c.__markCompiled();var y=r.PropTypes,z=l.views.STOCK,aa=x({NONE:null,INITIAL:null,MORE:null}),ba=x({NEW:null,SUBSEQUENT:null}),ca=r.createClass({displayName:'AdsCFShutterstockLibrary',propTypes:{defaultSearchText:y.string,imageCollection:y.object.isRequired,imageContainerHeight:y.number.isRequired,onImageClick:y.func,searchText:y.string,selectedImageList:y.array.isRequired},getInitialState:function(){return {loadingStatus:aa.NONE,searchTextForAPI:this._getSearchText(this.props)};},componentDidMount:function(){this._debouncedNewSearch=u(this._newSearch,200,this);if(this.state.searchTextForAPI&&this.props.imageCollection.getImageCount(z)===0)this._newSearch(this.props.searchText);},_getSearchText:function(da){return da.searchText||da.defaultSearchText||'';},render:function(){if(!s.available)return (r.createElement(o,{className:this.props.className,style:{height:String(this.props.imageContainerHeight)+'px'},icon:w('/images/ads/createflow/stock_images/icon_stock_no_results.png'),title:v._("Sorry, stock images aren't available right now."),subtitle:v._("Please try again later.")}));return (r.createElement('div',{className:this.props.className},r.createElement(p,{defaultSearchText:this.props.defaultSearchText,searchText:this.props.searchText,onTriggerSearch:this._onTriggerSearch,onTextChange:this._onSearchTextChange}),this._renderContent()));},_renderContent:function(){var da=this.props.imageCollection,ea=da.getImageCount(z);if(ea>0||this.state.loadingStatus!==aa.NONE){var fa=this.state.loadingStatus===aa.INITIAL;return (r.createElement(m,{height:this.props.imageContainerHeight,imageList:da.getImages(z),selectedImageList:this.props.selectedImageList,isClickEnabled:da.canSelectImages(),isLoadingInitial:fa,scrollingAreaFooter:this._renderScrollingAreaFooter(),onImageClick:this.props.onImageClick,onEndReached:this._getOnEndReached()},r.createElement(q,{className:"_3cl1",dialogPosition:'left'})));}var ga,ha,ia;if(this.props.searchText||this.props.defaultSearchText){ga=w('/images/ads/createflow/stock_images/icon_stock_no_results.png');ha=v._("There aren't any images that match what you searched.");ia=v._("Try using other keywords.");}else{ga=w('/images/ads/createflow/stock_images/icon_library_no_images.png');ha=v._("Search for professional images to use in your ads.");ia=v._("Any images you select will be saved in your image library.");}return (r.createElement(o,{style:{height:String(this.props.imageContainerHeight)+'px'},icon:ga,title:ha,subtitle:ia}));},_shouldEnableInfiniteScroll:function(){return (this.state.loadingStatus===aa.NONE&&!!this._fetchNextPage);},_getOnEndReached:function(){return this._shouldEnableInfiniteScroll()?this._searchMore:null;},_renderScrollingAreaFooter:function(){return (r.createElement(n,{imagesLoaded:this.state.loadingStatus!==aa.INITIAL,fetchingNextPage:!!this._fetchNextPage}));},_onTriggerSearch:function(){this._debouncedNewSearch.reset();this._newSearch(this.props.searchText);},_newSearch:function(da){var ea=this.state.searchTextForAPI;if(!ea){this.setState({loadingStatus:aa.NONE});return;}this.setState({loadingStatus:aa.INITIAL});i.searchStockImages(this._onSearchResults.bind(null,ea,ba.NEW),{q:ea});j.changeStockSearchText(da);},_searchMore:function(){if(!this._fetchNextPage)return;this.setState({loadingStatus:aa.MORE});this._fetchNextPage((function(da,ea){this._onSearchResults(this.state.searchTextForAPI,ba.SUBSEQUENT,i.convertStockImages(da),ea);}).bind(this));},_onSearchResults:function(da,ea,fa,ga){if(da!==this.state.searchTextForAPI)return;this._fetchNextPage=ga;var ha=this.props.imageCollection;if(ea===ba.NEW)ha.clearImagesByViewBitmask(z);var ia=ha.getImageCount(z);ha.addImagesToBack_UNSAFE(fa,z);this.setState({loadingStatus:aa.NONE});k.handleUpdateFromViewAction({data:{offset:ia,query:da},type:h.STOCK_IMAGE_SEARCH});},_onSearchTextChange:function(da){var ea=this._getSearchText(babelHelpers._extends({},this.props,{searchText:da}));this._fetchNextPage=null;this.setState({searchTextForAPI:ea});this._debouncedNewSearch(da);}});f.exports=ca;},null);
__d('AdsAbstractImageUploadElementStates',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={IDLE:1,UPLOADING:2};f.exports=h;},null);
__d('AdsAbstractImageUploadElement.react',['AdsAbstractImageUploadElementStates','React','ReactDOM','SubscriptionsHandler','cx','emptyFunction','invariant','joinClasses','AdsImageUploader'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){'use strict';if(c.__markCompiled)c.__markCompiled();var p=c('AdsImageUploader').AdsImageUploader,q=i.PropTypes,r={};r[h.IDLE]="_2uq";r[h.UPLOADING]="_2ur";var s=i.createClass({displayName:'AdsAbstractImageUploadElement',propTypes:{accountId:q.string.isRequired,allowMultiImage:q.bool,imageSpec:q.shape({minWarningWidth:q.number.isRequired,minWarningHeight:q.number.isRequired}),onFormInputMount:q.func,onUploadClick:q.func.isRequired,onUploadEnd:q.func.isRequired,onUploadFail:q.func.isRequired,onUploadStart:q.func.isRequired,onUploadSuccess:q.func.isRequired,validateImageSize:q.bool,validateImageFormat:q.bool},getInitialState:function(){return {isUploading:false,subscriptions:new k()};},getDefaultProps:function(){return {allowMultiImage:false,onUploadClick:m,onUploadEnd:m,onUploadFail:m,onUploadStart:m,onUploadSuccess:m};},_getStateIdentifier:function(){return (this.state.isUploading?h.UPLOADING:h.IDLE);},render:function(){return (i.createElement('div',{style:this.props.style,className:o("_2us",r[this._getStateIdentifier()],this.props.className)},this.props.children));},componentWillReceiveProps:function(t){},componentDidMount:function(){var t=new p(j.findDOMNode(this),{accountId:this.props.accountId,imageSpec:this.props.imageSpec,multiple:this.props.allowMultiImage,onFormInputMount:this.props.onFormInputMount,validateImageFormat:this.props.validateImageFormat,validateImageSize:this.props.validateImageSize});this.state.subscriptions.addSubscriptions(t.subscribe('onUploadClicked',this.props.onUploadClick),t.subscribe('onUploadStarted',(function(u,v){this.setState({isUploading:true});this.props.onUploadStart(v);}).bind(this)),t.subscribe('onUploadFailed',(function(){this.setState({isUploading:false});this.props.onUploadFail();}).bind(this)),t.subscribe('onUploadEnded',(function(u,v){this.setState({isUploading:false});if(v.length)v.forEach((function(w){this.props.onUploadSuccess(w);}).bind(this));this.props.onUploadEnd(v);}).bind(this)));},componentWillUnmount:function(){this.state.subscriptions.release();}});f.exports=s;},null);
__d('AdsImageUploadErrorStore',['AdsCreationUIStore','AdsActionTypes','immutable'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k,l;'use strict';k=babelHelpers.inherits(m,h);l=k&&k.prototype;m.prototype.getStoreName=function(){return 'AdsImageUploadErrorStore';};m.prototype.__getStateClass=function(){return j.Record({sizeError:null,formatError:null});};m.prototype.__handleAction=function(n,o){var p=n.action;switch(p.type){case i.IMAGE_UPLOAD.FORMAT_ERROR:o.formatError=p.message;break;case i.IMAGE_UPLOAD.SIZE_ERROR:o.sizeError=p.message;break;case i.IMAGE_UPLOAD.REMOVE_ERRORS:o.sizeError=null;o.formatError=null;break;}};m.prototype.getUploadErrors=function(){var n=[];this.getState().forEach(function(o){if(o)n.push(o);});return n;};function m(){k.apply(this,arguments);}f.exports=new m();},null);
__d('AdsUploadImageBox.react',['AdsAbstractImageUploadElement.react','AdsAbstractImageUploadElementContent.react','AdsAbstractImageUploadElementStates','AdsFluxMixinLegacy_DO_NOT_USE','AdsImageUploadErrorStore','AdsValidationIcon.react','AdsValidationIconType','Image.react','InlineBlock.react','React','ReactDOM','ReactComponentWithPureRenderMixin','cx','ix','fbt','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w){'use strict';if(c.__markCompiled)c.__markCompiled();var x=q.PropTypes,y=180,z=35,aa=q.createClass({displayName:'AdsUploadImageBox',mixins:[s,k.AdsFluxMixinLegacyOthers([l])],propTypes:{accountId:x.string.isRequired,allowMultiImage:x.bool,height:x.number.isRequired,imageSpec:x.shape({minWarningWidth:x.number.isRequired,minWarningHeight:x.number.isRequired}),onUploadClick:x.func,onUploadEnd:x.func,onUploadFail:x.func,onUploadStart:x.func,onUploadSuccess:x.func,validateImageFormat:x.bool,validateImageSize:x.bool},statics:{calculateState:function(){return {uploadErrors:l.getUploadErrors()};}},getDefaultProps:function(){return {style:{}};},_onWarningTextClick:function(){if(this.state.inputFormDOMElement)this.state.inputFormDOMElement.click();},_onFormInputMount:function(ba){this.setState({inputFormDOMElement:r.findDOMNode(ba)});},render:function(){var ba=this.props.height-y-6,ca=Math.floor(ba/2),da=ba-ca,ea={marginTop:ca+'px',marginBottom:da+'px'},fa=null;if(this.state.uploadErrors.length>0){var ga=this.state.uploadErrors.map((function(ia,ja){return (q.createElement('div',{key:ja,onClick:this._onWarningTextClick},q.createElement(m,{className:"_3sft",messages:[ia.longMessage],type:n.ERROR_IMAGE}),ia.shortMessage));}).bind(this));fa=q.createElement('div',{className:"_3sfu"},ga);}var ha=this.props.allowMultiImage?v._("Drag and drop multiple images or click to upload images"):v._("Drag and drop an image or click to upload");return (q.createElement(h,babelHelpers._extends({},this.props,{onFormInputMount:this._onFormInputMount,className:w(this.props.className,"_3sfv"),style:babelHelpers._extends({},ea,this.props.style)}),q.createElement(i,{uploadState:j.IDLE},q.createElement(p,{alignv:'middle',height:y},q.createElement(o,{className:"_3sfw",src:u('/images/ads/createflow/upload_box_icon.png')}),q.createElement(p,{className:"_3sfx",alignv:'middle',height:z},ha))),q.createElement(i,{uploadState:j.UPLOADING},q.createElement(p,{alignv:'middle',height:y},v._("Uploading..."))),fa));}});f.exports=aa;},null);
__d('AdsMediaPanelImagePlaceholder.react',['AdsCreationExperimentStore','React','adsGKCheck','cx'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l=i.createClass({displayName:'AdsMediaPanelImagePlaceholder',render:function(){var m=j('ads_image_picker_redesign')&&'1'===h.getExperiment('ads_image_picker_redesign_experiment').getParam('has_redesign');return (i.createElement('div',{className:"_5ywr"},i.createElement('div',{className:(!m?"_3sqg":'')+(m?' '+"_3sqh":'')})));}});f.exports=l;},null);
__d('AdsMediaPanelTabs',['keyMirror'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=h({UPLOAD:null,LIBRARY:null,STOCK:null});f.exports=i;},null);
__d('AdsMediaPanelViewFilterBar.react',['Link.react','React','cx'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=i.PropTypes,l=i.createClass({displayName:'AdsMediaPanelViewFilterBar',propTypes:{availableViewFilters:k.array.isRequired,viewFilter:k.object.isRequired,onViewFilterChoose:k.func},render:function(){if(this.props.availableViewFilters.length===0)return i.createElement('div',{className:"_5y6l"});return (i.createElement('div',{className:"_5y6m"},this.props.availableViewFilters.map(this._renderLink)));},_renderLink:function(m){return (i.createElement(h,{className:"_5y6n"+(m.view===this.props.viewFilter.view?' '+"_5y6o":''),key:m.view||'ALL',onClick:this._onViewLinkClick.bind(null,m)},i.createElement('span',null,m.text),i.createElement('span',{className:"_5y6p"},m.count)));},_onViewLinkClick:function(m){this.props.onViewFilterChoose&&this.props.onViewFilterChoose(m);}});f.exports=l;},null);
__d('AdsMediaPanelViewFilters',['AdsImageCollectionViews','fbt'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=[{view:h.views.LIBRARY,text:i._("Ad Images")},{view:h.views.PAGE,text:i._("Page Images")},{view:h.views.SCRAPED,text:i._("Website Images")}],k=0;j.forEach(function(n){k|=n.view;});var l={view:k,text:i._("All")};j.unshift(l);var m={filters:j,all:l};f.exports=m;},null);
__d('AdsShutterstockSearchLoader',['AdsGraphAPI'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=25,j={loadSearchResults:function(k,l){if(l)return l();return (h.getWithGeneralMigration().search('adstockimage').get({limit:i,locale:'user',q:k}));}};f.exports=j;},null);
__d('AdsShutterstockSearchDispatcher',['AdsImageLegacy','AdsShutterstockSearchActions','AdsShutterstockSearchLoader'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k={convertStockImages:function(l){return l.map(function(m){return new h({previewHeight:m.preview.height,previewUrl:m.preview.url,previewWidth:m.preview.width,stockImageID:m.id,thumbHeight:m.thumbnail.height,thumbWidth:m.thumbnail.width,url:m.thumbnail.url});});},loadSearchResults:function(l,m){j.loadSearchResults(l,m).done((function(n){var o={images:this.convertStockImages(n.data),next:null};if(n.next)o.next=n.next.bind(n);i.searchResultsLoaded(l,o);}).bind(this));}};f.exports=k;},null);
__d('AdsShutterstockSearchStore',['AdsActionTypes','AdsBaseStore','AdsShutterstockSearchDispatcher','LoadObject','Map','immutable'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n,o;'use strict';n=babelHelpers.inherits(p,i);o=n&&n.prototype;function p(){o.constructor.call(this);this.$AdsShutterstockSearchStoreClass1=new l();}p.prototype.onDispatchToken=function(q){var r=q.action;switch(r.type){case h.SHUTTERSTOCK.SEARCH_RESULTS_LOADED:var s=this.$AdsShutterstockSearchStoreClass1.get(r.data.query),t=null;if(s&&s.hasValue()){t=s.getValueEnforcing().images.concat(r.data.results.images);}else t=new m.OrderedSet(r.data.results.images);this.$AdsShutterstockSearchStoreClass1.set(r.data.query,s.setValue(babelHelpers._extends({},r.data.results,{images:t})).done());this.inform('change');break;case h.SHUTTERSTOCK.SEARCH_RESULTS_ERROR:this.$AdsShutterstockSearchStoreClass1.set(r.data.query,this.$AdsShutterstockSearchStoreClass1.get(r.data.query).setError(r.data.error).done());this.inform('change');break;}};p.prototype.getSearchResults=function(q,r){var s=this.$AdsShutterstockSearchStoreClass1.get(q);if(!s){s=k.loading();this.$AdsShutterstockSearchStoreClass1.set(q,s);j.loadSearchResults(q);}else if(s&&s.hasValue()&&!s.hasOperation()&&s.getValueEnforcing().images.size<=r){var t=s.getValueEnforcing().next;if(t){s=s.loading();this.$AdsShutterstockSearchStoreClass1.set(q,s);j.loadSearchResults(q,t);}}return s;};f.exports=new p();},null);
__d('AdsShutterstockLibrary.react',['AdsFluxMixinLegacy_DO_NOT_USE','AdsMediaLibrary.react','AdsMediaPanelInfiniteScrollFooter.react','AdsMediaPanelMessage.react','AdsShutterstockSearchBar.react','AdsShutterstockSearchStore','AdsShutterstockUseGuidelines.react','AdsShutterstockViewActions','AdsShutterstockViewStore','React','ReactComponentWithPureRenderMixin','ShutterstockApiStatus','cx','debounce','fbt','ix','keyMirror','setImmediate'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y){'use strict';if(c.__markCompiled)c.__markCompiled();var z=q.PropTypes,aa=25,ba=x({HAS_MORE:null,LOADING_INITIAL:null,LOADING_MORE:null,NO_MORE_RESULTS:null,NO_REQUEST:null,NO_RESULTS:null}),ca=u(function(ea){return o.searchDone(ea);},200),da=q.createClass({displayName:'AdsShutterstockLibrary',mixins:[r,h.AdsFluxMixinLegacyOthers([m,p],{withProps:true})],propTypes:{defaultSearchText:z.string,imageContainerHeight:z.number.isRequired,onImageClick:z.func.isRequired,isClickEnabled:z.bool.isRequired,selectedImageList:z.array.isRequired},getDefaultProps:function(){return {isClickEnabled:true,selectedImageList:[]};},statics:{calculateState:function(ea,fa){var ga=p.getDelayedText()||fa.defaultSearchText,ha=p.getNumPagesForQuery(ga)||1,ia=null;if(ga)ia=m.getSearchResults(ga,aa*ha);return {currentSearchText:p.getCurrentText(),isTyping:p.isTyping(),query:ga,results:ia};}},_renderPanelMessage:function(ea,fa,ga){return (q.createElement(k,{icon:ea,style:{height:this.props.imageContainerHeight},subtitle:fa,title:ga}));},_getCurrentState:function(){var ea=this.state.results,fa=null,ga=[];if(!ea){if(this.state.isTyping){fa=ba.LOADING_INITIAL;}else fa=ba.NO_REQUEST;}else if(!ea.hasValue()){fa=ba.LOADING_INITIAL;}else if(!ea.getValueEnforcing().next){ga=ea.getValueEnforcing().images.toArray();if(ga.length===0){fa=ba.NO_RESULTS;}else fa=ba.NO_MORE_RESULTS;}else{ga=ea.getValueEnforcing().images.toArray();if(ea.hasOperation()){fa=ba.LOADING_MORE;}else fa=ba.HAS_MORE;}return {state:fa,imageList:ga};},_renderContent:function(){var ea=this._getCurrentState(),fa=ea.state,ga=ea.imageList;switch(fa){case ba.NO_REQUEST:return this._renderPanelMessage(w('/images/ads/createflow/stock_images/icon_library_no_images.png'),v._("Any images you select will be saved in your image library."),v._("Search for professional images to use in your ads."));case ba.NO_RESULTS:return this._renderPanelMessage(w('/images/ads/createflow/stock_images/icon_stock_no_results.png'),v._("Try using other keywords."),v._("There aren't any images that match what you searched."));default:var ha=fa===ba.HAS_MORE||fa===ba.LOADING_MORE,ia=q.createElement(j,{imagesLoaded:fa!==ba.LOADING_INITIAL,fetchingNextPage:ha}),ja=fa===ba.LOADING_INITIAL||this.state.isTyping;return (q.createElement(i,{height:this.props.imageContainerHeight,imageList:ga,isClickEnabled:this.props.isClickEnabled,isLoadingInitial:ja,onEndReached:this._onEndReached,onImageClick:this.props.onImageClick,scrollingAreaFooter:ia,selectedImageList:this.props.selectedImageList},q.createElement(n,{className:"_3cl1",dialogPosition:'left'})));}},render:function(){if(!s.available)return (q.createElement(k,{className:this.props.className,style:{height:this.props.imageContainerHeight},icon:w('/images/ads/createflow/stock_images/icon_stock_no_results.png'),title:v._("Sorry, stock images aren't available right now."),subtitle:v._("Please try again later.")}));return (q.createElement('div',{className:this.props.className},q.createElement(l,{searchText:this.state.currentSearchText,onTextChange:this._onSearchTextChange}),this._renderContent()));},_onEndReached:function(){var ea=this._getCurrentState(),fa=ea.state;if(fa===ba.HAS_MORE)y((function(){return o.endReached(this.state.query);}).bind(this));},_onSearchTextChange:function(ea){o.searchTextChanged(ea);ca(ea);}});f.exports=da;},null);
__d('AdsMediaPanel.react',['AdsArrowedCarouselEnhanced.react','AdsCFShutterstockLibrary.react','AdsFluxMixinLegacy_DO_NOT_USE','AdsUploadImageBox.react','AdsImageActions','AdsImageCollectionViews','AdsImageSecondaryActions','AdsImageStore','AdsImageValidation','AdsMediaLibrary.react','AdsMediaPanelImageBox.react','AdsMediaPanelImagePlaceholder.react','AdsMediaPanelInfiniteScrollFooter.react','AdsMediaPanelMessage.react','AdsMediaPanelTabs','AdsMediaPanelViewFilterBar.react','AdsMediaPanelViewFilters','AdsShutterstockLibrary.react','DOMDimensions','Event','Link.react','Map','React','ReactComponentWithPureRenderMixin','adsGKCheck','cx','emptyFunction','fbt','ix','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka){'use strict';if(c.__markCompiled)c.__markCompiled();var la=da.PropTypes,ma=49,na=215,oa=332,pa=658,qa=100;function ra(){var ua=na+ma,va=oa+ma,wa=pa-va,xa=z.getViewportDimensions().height,ya=xa-qa-wa;return Math.max(ua,Math.min(va,ya));}var sa={};sa[v.UPLOAD]={className:"_5xhy",title:ia._("Upload Images"),renderer:'_renderUploadTab'};sa[v.LIBRARY]={className:"_5xh-",title:ia._("Image Library"),renderer:'_renderLibraryTab'};sa[v.STOCK]={className:"_5xh_",title:ia._("Stock Images"),renderer:'_renderStockTab'};var ta=da.createClass({displayName:'AdsMediaPanel',mixins:[j.AdsFluxMixinLegacyOthers([o],{withProps:true}),ea],propTypes:{accountID:la.string.isRequired,defaultStockSearchText:la.string,disableTooSmallImages:la.bool,imageCollection:la.object.isRequired,imageHandlers:la.shape({onClick:la.func,onDoubleClick:la.func,onSecondaryAction:la.func}).isRequired,imageSpec:la.shape({minWarningWidth:la.number.isRequired,minWarningHeight:la.number.isRequired}),initialSelectedTab:la.oneOf(Object.keys(sa)),maxSelectedImages:la.number.isRequired,igSpecificImageSpec:la.object,onTabSwitch:la.func.isRequired,selectedImageList:la.array.isRequired,stockSearchText:la.string,supportsInstagramLandscape:la.bool,tabKeys:la.arrayOf(la.string).isRequired,uploadHandlers:la.shape({onClick:la.func,onEnd:la.func,onFail:la.func,onStart:la.func,onSuccess:la.func}).isRequired,userImagesLoaded:la.bool,validateImageFormat:la.bool,validateImageSize:la.bool},getDefaultProps:function(){return {disableTooSmallImages:false,imageHandlers:{onClick:ha,onDoubleClick:ha,onSecondaryAction:ha},maxSelectedImages:1,onTabSwitch:ha,selectedImageList:[],uploadHandlers:{},userImagesLoaded:true};},getInitialState:function(){return {viewFilter:x.all,selectedTab:this.props.initialSelectedTab||v.LIBRARY};},statics:{calculateState:function(ua,va){return {canFetchNextLibraryPage:o.hasCursorForNextPage(va.accountID),fetchingNextLibraryPage:o.isFetchingNextPage(va.accountID)};}},componentWillMount:function(){this._setResizeHandlerRef(aa.listen(window,'resize',this.forceUpdate.bind(this)));},componentWillUnmount:function(){this._removeResizeHandlerRef();this._setResizeHandlerRef(null);},_removeResizeHandlerRef:function(){var ua=this;ua._resizeHandlerRef.remove();},_setResizeHandlerRef:function(ua){var va=this;va._resizeHandlerRef=ua;},_isTabAllowed:function(ua){return this.props.tabKeys.indexOf(ua)!==-1;},_renderMultipleSelectedImagesRow:function(){var ua=null;if(this.props.maxSelectedImages>1){var va=this.props.selectedImageList.map((function(wa,xa){return (da.createElement(r,{alt:ia._("Selected Image {number} of {total}",[ia.param('number',xa+1),ia.param('total',this.props.selectedImageList.length)]),className:"_16es",decoration:'removable',image:wa,imageSpec:this.props.imageSpec,key:wa.getUniqueIdentifier(),onDecorationIconClick:this.props.imageHandlers.onSecondaryAction&&this.props.imageHandlers.onSecondaryAction.bind(null,wa,n.X)}));}).bind(this));ua=da.createElement('div',{className:"_16et _5xi2 clearfix"},da.createElement('div',{className:"_16eu"},da.createElement('h2',{className:"_5xht"},ia._("Selected Images")),da.createElement('span',{className:"_5xi4"},ia._({"*":{"*":"({images} of {max-images})"}},[ia.param('images',this.props.selectedImageList.length,[0]),ia.param('max-images',this.props.maxSelectedImages,[0])]))),da.createElement(h,{maxChangeAmount:6},va));}return ua;},render:function(){sa[v.UPLOAD].title=this.props.maxSelectedImages>1?ia._("Upload Images"):ia._("Upload Image");var ua=null;if(!fa('ads_creation_remove_6_images_limit_new_design')){if(this.props.maxSelectedImages>1){var va=this.props.selectedImageList.length<this.props.maxSelectedImages?da.createElement(s,null):null;ua=da.createElement('div',{className:"_5xi2 clearfix"},da.createElement('div',{className:"_5xi3"},da.createElement('h2',{className:"_5xht"},ia._("Selected Images")),da.createElement('span',{className:"_5xi4"},ia._("({images} of {max-images})",[ia.param('images',this.props.selectedImageList.length),ia.param('max-images',this.props.maxSelectedImages)]))),da.createElement(h,null,this.props.selectedImageList.map((function(wa,xa){return (da.createElement(r,{alt:ia._("Selected Image {number} of {total}",[ia.param('number',xa+1),ia.param('total',this.props.selectedImageList.length)]),className:"_5xi5",decoration:'removable',image:wa,imageSpec:this.props.imageSpec,key:wa.getUniqueIdentifier(),onDecorationIconClick:this.props.imageHandlers.onSecondaryAction&&this.props.imageHandlers.onSecondaryAction.bind(null,wa,n.X)}));}).bind(this)),va));}}else ua=this._renderMultipleSelectedImagesRow();return (da.createElement('div',null,da.createElement('div',{className:"_5xhs"},this.props.tabKeys.map(this._renderTabTitle)),this._renderTabContent(),ua));},_renderTabTitle:function(ua){var va=sa[ua],wa=ua===this.state.selectedTab,xa=ka(va.className,"_5xhu"+(wa?' '+"_5xhw":''));return (da.createElement(ba,{className:xa,key:ua,onClick:this._switchToTab.bind(null,ua)},da.createElement('div',{className:"_5xhz"}),va.title));},_switchToTab:function(ua){this.setState({selectedTab:ua});this.props.onTabSwitch(ua);},_renderTabContent:function(){var ua=sa[this.state.selectedTab],va=ka(ua.className,"_5xhx"+(' '+"_5xhw")),wa=this;return wa[ua.renderer](this.state.selectedTab,va);},_renderUploadTab:function(ua,va){return (da.createElement('div',{className:va,key:ua},da.createElement(k,{accountId:this.props.accountID,allowMultiImage:this.props.maxSelectedImages>1,height:ra(),imageSpec:this.props.imageSpec,onUploadClick:this.props.uploadHandlers.onClick,onUploadEnd:this._onUploadEnd,onUploadFail:this.props.uploadHandlers.onFail,onUploadStart:this.props.uploadHandlers.onStart,onUploadSuccess:this.props.uploadHandlers.onSuccess,validateImageFormat:this.props.validateImageFormat,validateImageSize:this.props.validateImageSize})));},_onUploadEnd:function(ua){if(this.props.uploadHandlers.onEnd)this.props.uploadHandlers.onEnd(ua);if(this.props.maxSelectedImages===1&&ua.length>0)this.setState({selectedTab:v.LIBRARY},this.scrollToImage.bind(this,ua[0]));},_sortDownTooSmallImages:function(ua){var va=this.props.imageSpec,wa=this.props.igSpecificImageSpec,xa=new ca();ua.forEach(function(ya,za){return xa.set(ya,za);});return ua.sort(function(ya,za){var ab=0,bb=0;if(wa){ab+=p.isWarningSize(ya,wa)?1:0;bb+=p.isWarningSize(za,wa)?1:0;}ab+=p.isWarningSize(ya,va)?1:0;bb+=p.isWarningSize(za,va)?1:0;if(ab>bb){return -1;}else if(ab<bb){return 1;}else return xa.get(ya)-xa.get(za);});},_onLibraryEndReached:function(){if(this.state.canFetchNextLibraryPage&&!this.state.fetchingNextLibraryPage)l.loadNextPage(this.props.accountID);},_canSelectImages:function(){return (this.props.maxSelectedImages===1||this.props.selectedImageList.length<this.props.maxSelectedImages);},_renderLibraryTab:function(ua,va){var wa=this.props.imageCollection,xa=wa.getImageCount(this.state.viewFilter.view),ya=wa.getImages(this.state.viewFilter.view);if(this.props.disableTooSmallImages)ya=this._sortDownTooSmallImages(ya);var za=ha,ab=null;if(fa('ads_image_picker_pagination')){za=this._onLibraryEndReached;if(this.state.fetchingNextLibraryPage||!this.state.canFetchNextLibraryPage)ab=da.createElement(t,{imagesLoaded:this.props.userImagesLoaded,fetchingNextPage:this.state.fetchingNextLibraryPage});}var bb=ra()-ma,cb;if(xa>0||!this.props.userImagesLoaded){cb=da.createElement(q,{disableTooSmallImages:this.props.disableTooSmallImages,height:bb,imageList:ya,imageSpec:this.props.imageSpec,isClickEnabled:this._canSelectImages(),isLoadingInitial:!this.props.userImagesLoaded,key:ua,igSpecificImageSpec:this.props.igSpecificImageSpec,onEndReached:za,onImageClick:this.props.imageHandlers.onClick,onImageDoubleClick:this.props.imageHandlers.onDoubleClick,photoArrangeEnabled:true,ref:'imageLib',scrollingAreaFooter:ab,selectedImageList:this.props.selectedImageList,supportsInstagramLandscape:this.props.supportsInstagramLandscape});}else{var db=this._isTabAllowed(v.STOCK)?ia._("Upload images or try using professional stock images at no extra cost."):ia._("Upload images to use them for your ads.");cb=da.createElement(u,{className:va,icon:ja('/images/ads/createflow/stock_images/icon_library_no_images.png'),style:{height:String(bb)+'px'},title:ia._("There aren't any images in your library."),subtitle:db});}var eb=x.filters.map(function(fb){return babelHelpers._extends({},fb,{count:wa.getImageCount(fb.view)});}).filter(function(fb){return fb.count>0;});return (da.createElement('div',{className:va},da.createElement(w,{availableViewFilters:eb,viewFilter:this.state.viewFilter,onViewFilterChoose:this._onViewFilterChoose}),cb));},_onViewFilterChoose:function(ua){if(ua.view===this.state.viewFilter.view)return;this.setState({viewFilter:ua});},_onStockImageClick:function(ua){this.props.imageCollection.addImagesToBack_UNSAFE([ua],m.views.STOCK);var va=this.props.imageHandlers.onClick;if(va)va.call(this.props.imageHandlers,ua);},_renderStockTab:function(ua,va){if(fa('ads_use_new_shutterstock_component')){return (da.createElement(y,{className:va,defaultSearchText:this.props.defaultStockSearchText,imageContainerHeight:ra()-ma,isClickEnabled:this._canSelectImages(),key:ua,onImageClick:this._onStockImageClick,selectedImageList:this.props.selectedImageList}));}else return (da.createElement(i,{className:va,defaultSearchText:this.props.defaultStockSearchText,imageCollection:this.props.imageCollection,imageContainerHeight:ra()-ma,key:ua,onImageClick:this.props.imageHandlers.onClick,searchText:this.props.stockSearchText,selectedImageList:this.props.selectedImageList}));},scrollToImage:function(ua){this.refs.imageLib.scrollToImage(ua);}});f.exports=ta;},null);
__d('AdsImageDialog.react',['AdImageSpecs','AdsCFXShutterstockImageByIDStore','AdsImageCollection','AdsImageCollectionViews','AdsImageLegacy','AdsImageSecondaryActions','AdsMediaPanel.react','AdsMediaPanelTabs','AdsPageTypes','LayerFadeOnHide','LayerRemoveOnHide','Promise','React','ReactComponentWithPureRenderMixin','XUIDialog.react','XUIDialogCancelButton.react','XUIDialogConfirmButton.react','XUIDialogFooter.react','adsGKCheck','deepFreezeValue','emptyFunction','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca){'use strict';if(c.__markCompiled)c.__markCompiled();var da=t.PropTypes,ea=[o.UPLOAD,o.LIBRARY,o.STOCK],fa={LayerFadeOnHide:q,LayerRemoveOnHide:r},ga=[];aa(ga);var ha=t.createClass({displayName:'AdsImageLegacyDialog',mixins:[u],propTypes:{accountID:da.string.isRequired,initialTab:da.string,selectedImages:da.arrayOf(da.shape({stockImageID:da.string,url:da.string,hash:da.string}).isRequired).isRequired,onSelect:da.func.isRequired,onCancel:da.func,tabKeys:da.arrayOf(da.string),libraryImages:da.arrayOf(da.shape({url:da.string.isRequired,hash:da.string.isRequired})).isRequired,maxSelectedImages:da.number.isRequired,specs:da.arrayOf(da.shape({minWarningWidth:da.number.isRequired,minWarningHeight:da.number.isRequired})).isRequired,supportsInstagramLandscape:da.bool},getDefaultProps:function(){return {initialTab:o.LIBRARY,libraryImages:[],maxSelectedImages:1,onSelect:ba,selectedImages:[],specs:[]};},getInitialState:function(){var oa=this.props.selectedImages.map(la);return {selectedLegacyImageList:oa,userConfirmed:false,userSelected:false};},componentWillMount:function(){ia(this.props.accountID,this.props.libraryImages,{maxSelectedImages:this.props.maxSelectedImages});},componentWillReceiveProps:function(oa){var pa=oa.accountID,qa=oa.libraryImages,ra=oa.maxSelectedImages;ia(pa,qa,{maxSelectedImages:ra});},render:function(){var oa=this.props.specs,pa=null,qa=null;if(oa.length>0){var ra={};['minWarningHeight','minWarningWidth'].forEach(function(xa){ra[xa]=oa.filter(function(ya){return ya.placement!==p.INSTAGRAM_STREAM;}).reduce(function(ya,za){return Math.max(ya,za[xa]);},0);});pa=ra;if(oa.some(function(xa){return xa.placement===p.INSTAGRAM_STREAM;})){var sa=this.props.supportsInstagramLandscape?h.INSTAGRAM_STREAM_NO_CROP:h.INSTAGRAM_STREAM;qa={placement:p.INSTAGRAM_STREAM,minWarningWidth:sa.minWarningWidth,minWarningHeight:sa.minWarningHeight,minWarningAspectRatio:sa.minWarningAspectRatio,maxWarningAspectRatio:sa.maxWarningAspectRatio};}if(oa.every(function(xa){return xa.placement===p.INSTAGRAM_STREAM;}))pa=qa;}var ta={onClick:this._onImageClick,onDoubleClick:this._onImageDblClick,onSecondaryAction:this._onImageSecondaryAction},ua={onEnd:this._onUploadEnd},va=this.props.maxSelectedImages,wa=ma(this.props.accountID,{maxSelectedImages:va});return (t.createElement(v,{behaviors:fa,onToggle:this.props.onCancel,shown:true,width:768},t.createElement(n,{accountID:this.props.accountID,buttonStyle:'done',defaultStockSearchText:'',supportsInstagramLandscape:this.props.supportsInstagramLandscape,disableTooSmallImages:!!pa,imageCollection:wa,imageHandlers:ta,imageSpec:pa,initialSelectedTab:this.props.initialTab,igSpecificImageSpec:qa,maxSelectedImages:va,selectedImageList:this.state.selectedLegacyImageList,stockSearchText:'',tabKeys:this.props.tabKeys||ea,uploadHandlers:ua}),t.createElement(y,null,t.createElement(w,null),t.createElement(x,{disabled:!this.state.userSelected||this.state.userConfirmed,onClick:this._onSelect,use:'confirm'}))));},_addSelectedImage:function(oa,pa){var qa=this.props.maxSelectedImages,ra=ma(this.props.accountID,{maxSelectedImages:qa});ra.setImageSelected(oa,true);var sa=this.state.selectedLegacyImageList.concat(oa),ta=sa.length-qa;if(ta>0){for(var ua=0;ua<ta;ua++)ra.setImageSelected(oa,false);sa=sa.slice(ta,sa.length);}this.setState({selectedLegacyImageList:sa,userSelected:true},pa||ba);},_onImageSecondaryAction:function(oa,pa){if(pa===m.X)this._removeSelectedImage(oa);},_removeSelectedImage:function(oa){var pa=ma(this.props.accountID,{maxSelectedImages:this.props.maxSelectedImages});pa.setImageSelected(oa,false);var qa=this.state.selectedLegacyImageList.filter(function(ra){return !ra.equals(oa);});this.setState({selectedLegacyImageList:qa,userSelected:true});},_setImageData:function(oa){oa.forEach(function(pa){return delete pa.crops;});if(this.props.maxSelectedImages===1)!oa.length?ca(0):undefined;this.props.onSelect(oa);},_promiseStockImageData:function(oa){return new s((function(pa,qa){var ra=function(){!oa.hasFullSizeDimensions()?ca(0):undefined;pa(babelHelpers._extends({},oa.toJSON(),{url:oa.getFullSizeUrl(),width:oa.getFullSizeWidth(),height:oa.getFullSizeHeight()}));},sa=(function(){this.setState({userConfirmed:false});ca(0);}).bind(this);oa.fetchFullSizeDimensions(ra,sa);}).bind(this));},_onSelect:function(oa){oa&&oa.preventDefault();var pa=[];if(this.state.userSelected){var qa=[];this.state.selectedLegacyImageList.forEach((function(ra){if(ra.isStockImage()){qa.push(this._promiseStockImageData(ra));}else pa.push(ra.toJSON());}).bind(this));if(qa.length===0){this._setImageData(pa);}else{this.setState({userConfirmed:true});s.all(qa).done((function(ra){this._setImageData(pa.concat(ra));}).bind(this));}}},_onImageClick:function(oa){var pa=this.state.selectedLegacyImageList.some(function(qa){return qa.equals(oa);});if(pa){if(this.props.maxSelectedImages>1)this._removeSelectedImage(oa);}else this._addSelectedImage(oa);},_onImageDblClick:function(oa){var pa=this.props.selectedImages;if(this.props.maxSelectedImages==1&&pa.length){var qa=la(pa[0]);if(qa&&qa.equals(oa)){return;}else if(qa)this._addSelectedImage(oa,this._onSelect);}},_onUploadEnd:function(oa){ja(this.props.accountID,oa,false,{maxSelectedImages:this.maxSelectedImages});oa.forEach((function(pa){return this._addSelectedImage(pa);}).bind(this));}});function ia(oa,pa,qa){if(pa.length){var ra=pa.map(function(sa){return new l(sa);});ja(oa,ra,z('ads_image_picker_pagination'),qa);}}function ja(oa,pa,qa,ra){if(pa&&pa.length){var sa=ma(oa,ra),ta=[];pa.forEach(function(ua){if(!sa.hasImage(ua))ta.push(ua);});if(ta.length)if(qa){sa.addImagesToBack(ta,k.views.LIBRARY);}else sa.addImagesToFront(ta,k.views.LIBRARY);}}var ka={};function la(oa){if(oa){return new l(oa);}else return null;}function ma(oa,pa){var qa=ka[oa];if(!qa){qa=new j(pa);ka[oa]=qa;}return qa;}var na=t.createClass({displayName:'AdsImageDialog',render:function(){return t.createElement(ha,this.props);}});f.exports=na;},null);
__d('AdsIndexedTabBar.react',['React','TabBar.react','TabBarItem.react','adsGKCheck','cx'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=h.PropTypes,n=h.createClass({displayName:'AdsIndexedTabBar',propTypes:{numItems:m.number.isRequired,onItemSelected:m.func.isRequired,selectedItem:m.number.isRequired,images:m.arrayOf(m.object)},render:function(){var o=[];for(var p=0;p<this.props.numItems;p++){var q=p+1;if(this.props.images&&this.props.images.length>p&&this.props.images[p])q=this.props.images[p];var r=k('ads_cf_creative_mpa_tabicon'),s="_53th"+(r?' '+"_56vl":'')+(p>0?' '+"_53tj":'')+(p===this.props.selectedItem?' '+"_53tk":'')+(q!==p+1?' '+"_x5b":'');o.push(h.createElement(j,{className:r?"_2pih":'',key:p},h.createElement('div',{className:s},q),h.createElement('div',{className:"_1_d-"}),h.createElement('div',{className:"_1_d_"})));}return (h.createElement(i,{className:"_53tn",onTabClick:this._onItemSelected},o));},_onItemSelected:function(o){this.props.onItemSelected(+o);}});f.exports=n;},null);
__d('AdsPaymentsPaymentMethodUtils',['AdproAccountCreditStatus','AdsDateUtils','AdsCurrencyFormatter','AdsPayAPIAltpayInstrumentTypes','AdsPayAPIPaymentMethodCreditCardFields','CreditCardTypeEnum','Currency','AdsPayAPIPaymentMethodExtendedCreditFields','PaymentCouponToken','FBDate','AdsPayAPIAllPaymentMethodsFields','AdsPayAPIPaymentMethodTokenFields','formatDate','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){'use strict';if(c.__markCompiled)c.__markCompiled();var v=j.formatCurrencyWithISO,w=j.parseCurrency,x='m/d/Y',y='m/d/Y g:ia',z={getCreatedDateString:function(aa,ba){var ca=q.createFromISOString(aa,ba);return ca.format(x);},getExpirationDateString:function(aa,ba){var ca=q.createFromISOString(aa,ba);return ca.format(y);},getAmountString:function(aa,ba,ca,da){var ea=w(ba,aa);return j.formatCurrencyFullFormat(ba,ea,ca,da);},renderCurrencyAmount:function(aa){var ba=100,ca=n.getOffset(aa.currency);return j.formatCurrencyFullFormat(aa.currency,aa.offsetted_amount/ba*ca,true,true);},getAvailableCreditString:function(aa,ba,ca){var da=w(ca,aa),ea=w(ca,ba);return v(ca,da-ea);},isCouponValid:function(aa){var ba=w(aa[s.CURRENT_BALANCE].currency,aa[s.CURRENT_BALANCE].amount);if(aa[s.TYPE]===p.VIRTUAL_GIFT)return ba>0;var ca=new Date(),da=i.parseISODate(aa[s.TIME_EXPIRE]);return ca<da&&ba>0;},isExtendedCreditStatusEligibletoShow:function(aa){return aa===h.ELIGIBLE||aa===h.APPROVED;},initializeExtendedCredit:function(aa,ba,ca,da,ea){var fa={isBrandOwnedxtendedCredit:false,isExtendedCreditPrimary:false,extendedCreditAccountID:ca,hasEligibleExtendedCredit:false};fa.hasEligibleExtendedCredit=z.isExtendedCreditStatusEligibletoShow(ea);if(aa&&ba&&fa.hasEligibleExtendedCredit&&aa[r.EXTENDED_CREDITS]){var ga=aa[r.EXTENDED_CREDITS].data;ga.forEach(function(ha){if(ha[o.BALANCE].currency==='FBZ'){fa.hasEligibleExtendedCredit=false;return;}if(ha[o.CREDENTIAL_ID]==ba.id){fa.isExtendedCreditPrimary=true;fa.extendedCreditAccountID=ha[o.ACCOUNT_ID];fa.isBrandOwnedxtendedCredit=this.isBrandOwnedPaymentMethod(da,ha[o.ACCOUNT_ID]);}fa.partitionedFrom=ha[o.PARTITIONED_FROM];fa.liableAmount=ha[o.SEQUENTIAL_LIABILITY_AMOUNT];},this);}return fa;},getAltpayMethodTitle:function(aa,ba){if(aa===k.MOBILE)return u._("Mobile Phone ({phone number})",[u.param('phone number',ba)]);return ba;},showApplyLink:function(aa,ba,ca,da){var ea=parseInt(aa,10)+parseInt(ba,10);return da&&!ca&&ea===0;},isBrandOwnedPaymentMethod:function(aa,ba){return aa===ba;},getCCTitle:function(aa,ba){if(ba===m.AMERICANEXPRESS)return aa.replace('xxx xxxx xxxx ','*');return aa.replace('xxxx xxxx xxxx ','*');},getDirectDebitTitle:function(aa){var ba=u._("Bank Account");return ba+' '+aa.split(":")[1].replace('xxxx','*');},_isIbanCountry:function(aa,ba){var ca=['FR','ES','IT','AT','BE','CY','EE','FI','GR','IE','LU','MT','MC','PT','SK','SI'],da=['DE','NL'];return ca.indexOf(aa)!==-1||da.indexOf(aa)!==-1&&ba.indexOf(aa)===0;},getCreditCardString:function(aa,ba){var ca;switch(aa){case m.VISA:ca=u._("VISA");break;case m.MASTERCARD:ca=u._("MASTERCARD");break;case m.DISCOVER:ca=u._("DISCOVER");break;case m.AMERICANEXPRESS:ca=u._("AMEX");break;case m.JCB:ca=u._("JCB");break;case m.DINERSCLUB:ca=u._("DINERSCLUB");break;default:ca=u._("Credit Card");}if(ba)ca=ca.toString()+' *'+ba;return ca;},getPaypalString:function(aa){if(!aa)return u._("PayPal Account");return u._("PayPal ({email})",[u.param('email',aa)]);},isCreditCardExpired:function(aa){var ba=new Date(),ca=new Date(aa[l.EXP_YEAR],aa[l.EXP_MONTH]);return Boolean(ba>ca);},getCreditCardExpiryText:function(aa){var ba=new Date(aa[l.EXP_YEAR],aa[l.EXP_MONTH]-1);if(this.isCreditCardExpired(aa)){return u._("Expired on {expiry date}",[u.param('expiry date',t(ba,'m/y',{skipPatternLocalization:true}))]);}else return u._("Expires on {expiry date}",[u.param('expiry date',t(ba,'m/y',{skipPatternLocalization:true}))]);}};f.exports=z;},null);
__d('BoostedComponentPaymentMethodItem.react',['Image.react','React','ReactComponentWithPureRenderMixin','XUIText.react','cx'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=i.PropTypes,n=i.createClass({displayName:'BoostedComponentPaymentMethodItem',mixins:[j],propTypes:{brandName:m.string,image:h.validateImageSrcPropType,isBrandOwned:m.bool.isRequired,onClick:m.func,size:m.oneOf(['small','medium','large','xlarge','xxlarge']),title:m.string.isRequired},getDefaultProps:function(){return {size:'medium'};},_getTitleText:function(){return (i.createElement('span',null,this.props.title,this.props.isBrandOwned?i.createElement('span',null,' — '):null,this.props.isBrandOwned?this.props.brandName:null));},render:function(){return (i.createElement('div',{className:"_4i6_",onClick:this.props.onClick},i.createElement(h,{className:"_4t-n",src:this.props.image,width:'36'}),i.createElement(k,this.props,this._getTitleText())));}});f.exports=n;},null);
__d('PaymentMethodIcons',['CreditCardTypeEnum','FundingSourceType'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j={_baseURI:'/images/payments/icons/',_mapCreditCardName:function(k){switch(k){case h.VISA:return 'visa';case h.MASTERCARD:return 'mc';case h.DISCOVER:return 'disc';case h.AMERICANEXPRESS:return 'amex';case h.JCB:return 'jcb';default:return null;}},_mapPaymentMethodName:function(k,l){switch(k){case i.FUNDING_TYPE_CREDIT_CARD:return this._mapCreditCardName(l);case i.FUNDING_TYPE_PAYPAL_TOKEN:case i.FUNDING_TYPE_PAYPAL_BILLING_AGREEMENT:return 'paypal';default:return null;}},getIconFilePath:function(k,l){var m=this._mapPaymentMethodName(k,l);if(m===null)return '';return this._baseURI+m+'.png';}};f.exports=j;},null);
__d('AdsPaymentsPaymentMethodSelector.react',['AdsPayAPICreditCardAddressFields','AdsAltpayPaymentMetadataKeys','AdsCurrencyFormatter','AdsLoadState','AdsPaymentsPaymentMethodUtils','AdsPayAPIPaymentMethodAltpayFields','BoostedComponentPaymentMethodItem.react','AdsPayAPIPaymentMethodCreditCardFields','AdsPayAPIPaymentMethodDirectDebitFields','AdsAPIExtendedCreditInfoFields','FundingSourceType','Link.react','PaymentMethodIcons','AdsPayAPIAllPaymentMethodsFields','AdsPayAPIPaymentMethodPaypalFields','PopupWindow','React','ReactComponentWithPureRenderMixin','Image.react','XUISelector.react','AdsPayAPIPaymentMethodTokenFields','XUIButton.react','XUIGrayText.react','XUINotice.react','XUIText.react','cx','fbt','ix'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia){'use strict';if(c.__markCompiled)c.__markCompiled();var ja=x.PropTypes,ka='pm_add_new',la=aa.Option,ma=j.formatCurrencyWithNumberDelimiters,na=x.createClass({displayName:'AdsPaymentsPaymentMethodSelector',mixins:[y],propTypes:{accountID:ja.string.isRequired,allPaymentMethods:ja.object.isRequired,altpayPendingPayments:ja.object,businessInfo:ja.object.isRequired,currency:ja.string.isRequired,extendedCreditInfo:ja.object.isRequired,extendedCreditStatus:ja.number.isRequired,hasBillingWritePermission:ja.bool.isRequired,hasCreatedAdsBefore:ja.bool.isRequired,hasExtendedCredit:ja.bool.isRequired,hasFundingSource:ja.bool.isRequired,isCorporate:ja.bool.isRequired,isPrepayAccount:ja.bool.isRequired,maxWidth:ja.number.isRequired,onChangePrimaryPaymentMethod:ja.func.isRequired,onPaymentMethodButtonClick:ja.func.isRequired,paymentMethodLoadingStatus:ja.string.isRequired,prepayBalance:ja.object,primaryPMDisplayString:ja.string.isRequired,primaryPaymentMethod:ja.object,errors:ja.array.isRequired,successes:ja.array.isRequired},getDefaultProps:function(){return {primaryPaymentMethod:{},prepayBalance:{}};},getInitialState:function(){return {selectedValue:this._getPrimaryPMDropdownValue()};},_getAddPaymentMethodButton:function(){return (x.createElement(ca,{imageRight:x.createElement(z,{src:ia('/images/ui/xhp/image/glyph/create.png')}),label:ha._("Add New Payment Method"),size:'xlarge',onClick:this.props.onPaymentMethodButtonClick}));},_getExtendedCreditMethod:function(oa){var pa=ma(this.props.currency,parseInt(this.props.extendedCreditInfo[q.CREDIT_LEFT],10));return (x.createElement('div',{className:"_4i70"},x.createElement('div',{className:"_3n8l"},x.createElement(n,{image:ia('/images/cc_logos/adcoupon.png'),title:ha._("Account Credit ({credit left})",[ha.param('credit left',pa)]),isBrandOwned:oa,businessName:this.props.businessInfo.name,weight:'bold'}))));},_hasValidCoupon:function(){if(!this.props.allPaymentMethods[u.TOKENS])return false;var oa=this.props.allPaymentMethods[u.TOKENS].data;return oa.some(function(pa){if(l.isCouponValid(pa))return true;return false;});},_getCouponTitle:function(oa){return ha._("Facebook Ad Coupon: {current balance}",[ha.param('current balance',l.getAmountString(oa[ba.CURRENT_BALANCE].amount,oa[ba.CURRENT_BALANCE].currency,false,false))]);},_getValidCoupon:function(){var oa=this.props.allPaymentMethods[u.TOKENS].data;for(var pa=0;pa<oa.length;pa++)if(l.isCouponValid(oa[pa]))return (x.createElement('div',{className:"_4i70"},x.createElement('div',{className:"_3n8l"},x.createElement(n,{image:ia('/images/cc_logos/adcoupon.png'),isBrandOwned:false,title:this._getCouponTitle(oa[pa]),weight:'bold'}))));return null;},_getSelectorOption:function(oa,pa,qa,ra,sa){return (x.createElement(la,{className:"_3-8n",value:oa,key:oa},x.createElement(n,{image:pa,title:qa,brandName:sa,isBrandOwned:ra,size:'small'})));},_loadMethodsToRender:function(oa,pa,qa,ra,sa,ta,ua){if(this.props.primaryPaymentMethod&&qa==this.props.primaryPaymentMethod.id){var va=false,wa=null;if(this.props.businessInfo!==null||this.props.businessInfo!==undefined){va=l.isBrandOwnedPaymentMethod(this.props.businessInfo.paymentAccountID,ta);wa=va?this.props.businessInfo.name:null;}pa.primaryPaymentMethod=this._getSelectorOption(oa,ra,sa,va,wa);}else if(ua)pa.backupPaymentMethods.push(this._getSelectorOption(oa,ra,sa,false,''));},_loadCreditcardsToRender:function(oa){if(!this.props.allPaymentMethods[u.CREDIT_CARDS])return;var pa=this.props.allPaymentMethods[u.CREDIT_CARDS].data;pa.forEach(function(qa){var ra=this._getMethodKey(qa[o.CREDENTIAL_ID],r.FUNDING_TYPE_CREDIT_CARD),sa=t.getIconFilePath(r.FUNDING_TYPE_CREDIT_CARD,qa[o.CREDIT_CARD_TYPE]),ta=l.getCCTitle(qa[o.DISPLAY_STRING],qa[o.CREDIT_CARD_TYPE]);this._loadMethodsToRender(ra,oa,qa[o.CREDENTIAL_ID],sa,ta,qa[o.ACCOUNT_ID],qa[o.IS_VERIFIED]);},this);},_loadPaypalsToRender:function(oa){if(!this.props.allPaymentMethods[u.PAYPALS])return;var pa=this.props.allPaymentMethods[u.PAYPALS].data;pa.forEach(function(qa){var ra=this._getMethodKey(qa[v.CREDENTIAL_ID],r.FUNDING_TYPE_PAYPAL_BILLING_AGREEMENT),sa=ha._("PayPal ({email})",[ha.param('email',qa[v.EMAIL_ADDRESS])]),ta=t.getIconFilePath(r.FUNDING_TYPE_PAYPAL_BILLING_AGREEMENT);this._loadMethodsToRender(ra,oa,qa[v.CREDENTIAL_ID],ta,sa,qa[v.ACCOUNT_ID],true);},this);},_loadDirectDebitToRender:function(oa){if(!this.props.allPaymentMethods[u.DIRECT_DEBITS])return;var pa=this.props.allPaymentMethods[u.DIRECT_DEBITS].data;pa.forEach(function(qa){var ra=this._getMethodKey(qa[p.CREDENTIAL_ID],r.FUNDING_TYPE_DIRECT_DEBIT),sa=qa[p.ADDRESS],ta=l.getDirectDebitTitle(qa[p.DISPLAY_STRING],sa[h.COUNTRY_CODE]),ua=sa[h.COUNTRY_CODE]==='GB'?ia('/images/payments/icons/bacs-sq.png'):ia('/images/cc_logos/direct_debit.png');this._loadMethodsToRender(ra,oa,qa[p.CREDENTIAL_ID],ua,ta,qa[p.ACCOUNT_ID],!qa[p.IS_PENDING]);},this);},_getMethodKey:function(oa,pa){return oa+'.'+pa;},_getPrimaryPMDropdownValue:function(){if(!this.props.primaryPaymentMethod||!this.props.primaryPaymentMethod.hasOwnProperty('id'))return '';return this._getMethodKey(''+this.props.primaryPaymentMethod.id,this.props.primaryPaymentMethod.type);},_getAddBalanceButton:function(){return (x.createElement(ca,{className:"_4i6_",label:ha._("Add to Balance"),size:'xlarge',onClick:this.props.onPaymentMethodButtonClick}));},_getLatestPendingPayment:function(oa){var pa={},qa=0;for(var ra in oa){if(!oa.hasOwnProperty(ra))continue;var sa=oa[ra];for(var ta=0;ta<sa.length;ta++){if(sa[ta][i.TIME_CREATED]<qa)continue;qa=sa[ta][i.TIME_CREATED];pa=sa[ta];}}return pa;},_getLatestAltpayPendingPaymentToRender:function(){if(this.props.altpayPendingPayments===null||this.props.altpayPendingPayments===undefined||!this.props.allPaymentMethods[u.ALTPAYS])return null;var oa=this.props.allPaymentMethods[u.ALTPAYS].data,pa=this._getLatestPendingPayment(this.props.altpayPendingPayments);if(!pa)return null;var qa=oa.filter(function(sa){return sa[m.CREDENTIAL_ID]===pa[i.CREDENTIAL_ID];})[0],ra=l.getAltpayMethodTitle(qa[m.INSTRUMENT_TYPE],qa[m.TITLE]);return (x.createElement('div',{className:"_3-8z"},x.createElement(da,{display:'inline',size:'medium',weight:'bold'},ra,": "),x.createElement(fa,{display:'inline',size:'medium',weight:'bold'},pa[i.AMOUNT]),x.createElement(s,{className:"_3-9a",onClick:this._openPopup.bind(this,pa[i.DOWNLOAD_LINK])},ha._("View Boleto"))));},_openPopup:function(oa){w.open(oa,500,500);},_renderPrepay:function(){if(this.props.prepayBalance===null||this.props.prepayBalance===undefined)return null;var oa=this.props.prepayBalance.currency,pa=j.parseCurrency(oa,this.props.prepayBalance.amount);return (x.createElement('div',null,x.createElement('div',{className:"inlineBlock"},x.createElement('div',{className:"_4i70"},x.createElement(fa,{className:"_3-8i",display:'block',size:'medium',weight:'bold'},j.formatCurrencyWithISO(oa,pa))),this._getAddBalanceButton()),this._getLatestAltpayPendingPaymentToRender()));},_getAddPaymentMethodOption:function(){return (x.createElement(la,{className:"_4i71",key:ka,onClick:this.props.onPaymentMethodButtonClick,value:ka},x.createElement(fa,{size:'small'},ha._("Add New Payment Method"))));},_onPaymentMethodChange:function(oa){var pa=oa.value;if(pa===this._getDefaultDropdownOptionValue())return;var qa=pa.split('.'),ra=qa[0],sa=parseInt(qa[1],10);if(pa==ka){this.props.onPaymentMethodButtonClick();return;}this.props.onChangePrimaryPaymentMethod(this.props.accountID,ra,sa);},_getPrimaryPMDisplayString:function(){return (x.createElement('div',{className:"_4i70"},x.createElement(fa,{className:"_3-8i",display:'block',size:'small',weight:'bold'},this.props.primaryPMDisplayString)));},_getMessagesToShow:function(){var oa=[];this.props.errors.forEach(function(pa){oa.push(x.createElement(ea,{className:"_3-8w",size:'small',use:'warn'},pa));});this.props.successes.forEach(function(pa){oa.push(x.createElement(ea,{className:"_3-8w",size:'small',use:'notify'},pa));});return oa;},_getDefaultDropdownOptionValue:function(){return 'pm_select_one';},_getDefaultDropdownOption:function(){var oa=this._getDefaultDropdownOptionValue();return (x.createElement(la,{className:"_3-8n",value:oa,key:oa},ha._("Select One")));},renderData:function(){if(this.props.paymentMethodLoadingStatus===k.LOADING||this.props.paymentMethodLoadingStatus===k.NOT_LOADED)return null;if(!this.props.hasBillingWritePermission||this.props.paymentMethodLoadingStatus===k.ERROR)return this._getPrimaryPMDisplayString();if(this.props.isPrepayAccount===true)return this._renderPrepay();if(!this.props.hasFundingSource)return this._getAddPaymentMethodButton();if(this._hasValidCoupon())return this._getValidCoupon();var oa=l.initializeExtendedCredit(this.props.allPaymentMethods,this.props.primaryPaymentMethod,this.props.accountID,this.props.businessInfo.paymentAccountID,this.props.extendedCreditStatus);if(this.props.hasExtendedCredit===true&&oa.isExtendedCreditPrimary===true)return this._getExtendedCreditMethod(oa.isBrandOwnedxtendedCredit);var pa={defaultOption:null,primaryPaymentMethod:null,backupPaymentMethods:[]};this._loadCreditcardsToRender(pa);this._loadPaypalsToRender(pa);this._loadDirectDebitToRender(pa);if(pa.primaryPaymentMethod===null&&pa.backupPaymentMethods.length===0)return this._getPrimaryPMDisplayString();var qa=this._getPrimaryPMDropdownValue();if(pa.primaryPaymentMethod===null){pa.defaultOption=this._getDefaultDropdownOption();qa=this._getDefaultDropdownOptionValue();}var ra=this._getAddPaymentMethodOption();return (x.createElement(aa,{onChange:this._onPaymentMethodChange,size:'xlarge',value:qa,maxwidth:this.props.maxWidth,name:'payment method selector'},[pa.defaultOption,pa.primaryPaymentMethod,pa.backupPaymentMethods,ra]));},render:function(){return (x.createElement('div',null,this.renderData(),this._getMessagesToShow()));}});f.exports=na;},null);
__d('AdsPlayable.react',['CenteredContainer.react','Image.react','Link.react','FBOverlayBase.react','FBOverlayContainer.react','FBOverlayElement.react','React','cx','ix'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){if(c.__markCompiled)c.__markCompiled();var q=n.PropTypes,r=n.createClass({displayName:'AdsPlayable',propTypes:{onPlayClick:q.func},render:function(){var s=n.createElement(i,{className:"_51o6",src:p('/images/calltoaction/videoendscreen/play_64dp.png')});if(this.props.onPlayClick)s=n.createElement(j,{className:"_51o7",onClick:this.props.onPlayClick},s);return (n.createElement(l,this.props,n.createElement(k,null,this.props.children),n.createElement(m,null,n.createElement(h,{vertical:true},s))));}});f.exports=r;},null);
__d("XAdsVideoPlayerController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/x\/ads\/video_player\/",{video_id:{type:"String",required:true},video_container_id:{type:"String",required:true},width:{type:"Int",required:true},height:{type:"Int",required:true},show_controls:{type:"Bool",defaultValue:false},forcehd:{type:"Bool",defaultValue:false},show_captions_default:{type:"Bool",defaultValue:false}});},null,{});
__d('AdsVideoPlayer.react',['AdsPlayable.react','AsyncRequest','BusinessIdentityKillSwitches','CenteredContainer.react','Link.react','FBOverlayBase.react','FBOverlayContainer.react','FBOverlayElement.react','React','VideoPlayerReason','XAdsVideoPlayerController','XUISpinner.react','cx','fbt','guid','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w){if(c.__markCompiled)c.__markCompiled();var x=p.PropTypes,y=1000,z=p.createClass({displayName:'AdsVideoPlayer',propTypes:{videoID:x.string.isRequired,playerWidth:x.number.isRequired,playerHeight:x.number.isRequired,autoPlay:x.bool,onBeginPlayback:x.func,onFinishPlayback:x.func,onPausePlayback:x.func,showControls:x.bool,forceHD:x.bool,showCaptionsByDefault:x.bool,autoPlayStop:x.number,autoPlayStart:x.number,onVideoLoaded:x.func,timePositionInMs:x.number,loadVideoPlayer:x.func},_autoPlayStopTimer:null,getDefaultProps:function(){return {showControls:true,showCaptionsByDefault:false};},getInitialState:function(){return {playing:false,playerAPI:null};},componentWillMount:function(){this._domID='ads_video_'+v();},componentDidMount:function(){this._loadVideoPlayer(this.props);},componentWillReceiveProps:function(aa){var ba=aa.videoID,ca=aa.playerWidth,da=aa.playerHeight;if(ba!==this.props.videoID||ca!==this.props.playerWidth||da!==this.props.playerHeight){this.closePlayer();this.setState({playerAPI:null});this._loadVideoPlayer(aa);}else if(this.props.timePositionInMs!==aa.timePositionInMs&&this.state.playerAPI)this.state.playerAPI.seek(aa.timePositionInMs/y);},componentDidUpdate:function(aa){if(this.props.autoPlay&&(this.props.autoPlayStart!==aa.autoPlayStart||this.props.autoPlayStop!==aa.autoPlayStop))this.autoPlayVideo();},_loadVideoPlayer:function(aa){if(this.props.loadVideoPlayer){this.props.loadVideoPlayer(this._domID,this);}else this._loadAdsVideoPlayer(this.props);},_loadAdsVideoPlayer:function(aa){var ba=aa.videoID,ca=aa.playerWidth,da=aa.playerHeight,ea=r.getURIBuilder().setString('video_id',ba).setString('video_container_id',this._domID).setInt('width',ca).setInt('height',da).setBool('show_controls',this.props.showControls).setBool('forcehd',this.props.forceHD).setBool('show_captions_default',this.props.showCaptionsByDefault).getURI();this.request=new i().setMethod('GET').setRelativeTo(this).setURI(ea).setReadOnly(true).setAllowCrossPageTransition(true).send();},autoPlayVideo:function(){if(!this.state.playerAPI)return;if(this.props.autoPlayStart||this.props.autoPlayStart===0){this.state.playerAPI.seek(this.props.autoPlayStart/y);clearTimeout(this._autoPlayStopTimer);}this.state.playerAPI.play(q.AUTOPLAY);this.setState({playing:true});if(this.props.autoPlayStop)this._autoPlayStopTimer=setTimeout((function(){this.state.playerAPI.pause(q.AUTOPLAY);}).bind(this),this.props.autoPlayStop-this.props.autoPlayStart);},playVideo:function(){this.state.playerAPI.play(q.USER);this.setState({playing:true});},closePlayer:function(){if(this.state.playerAPI){this.state.playerAPI.pause(q.USER);this.state.playerAPI.seek(0);}this.setState({playing:false});},render:function(){var aa=false,ba=!this.state.playerAPI;if(this.state.playing)aa=this.state.playerAPI;var ca=null;if(this.props.autoPlay){ca=p.createElement('div',{className:aa||ba?'invisible_elem':null,style:{height:this.props.playerHeight,width:this.props.playerWidth}},this.props.children);}else ca=p.createElement(h,{className:aa||ba?'invisible_elem':null,onPlayClick:this.playVideo},this.props.children);var da=null;if(this.props.showControls)da=p.createElement(o,{horizontal:'left',vertical:'top'},p.createElement(l,{className:"_3-9a"+(' '+"_2phz")+(' '+"_4-xh")+(!aa?' '+"hidden_elem":''),onClick:this.closePlayer},u._("Close video player")));var ea;if(ba)ea=p.createElement(o,null,p.createElement(k,{vertical:true,horizontal:true},p.createElement(s,{size:'large'})));return (p.createElement(n,babelHelpers._extends({},this.props,{className:w(this.props.className,"_4-xg")}),p.createElement(o,null,p.createElement('div',{id:this._domID,className:aa?null:'invisible_elem'})),ea,p.createElement(m,null,ca),da));},onVideoLoaded:function(){if(this.props.onVideoLoaded)this.props.onVideoLoaded();if(this.props.onBeginPlayback)this.state.playerAPI.addListener('beginPlayback',this.props.onBeginPlayback);if(this.props.onFinishPlayback)this.state.playerAPI.addListener('finishPlayback',this.props.onFinishPlayback);if(this.props.onPausePlayback)this.state.playerAPI.addListener('pausePlayback',this.props.onPausePlayback);if(this.props.autoPlay)this.autoPlayVideo();}});z.invokeVideoLoaded=function(aa,ba){if(!j.disable_video_player_listener){ba.addListener('stateChange',function(){if(ba.isState('ready'))aa.setState({playerAPI:ba},aa.onVideoLoaded);});}else aa.setState({playerAPI:ba},aa.onVideoLoaded);};f.exports=z;},null);
__d('AdsImageCropperWindow.react',['CenteredContainer.react','Image.react','React','ReactDOM','cx','fbt','ix','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){'use strict';if(c.__markCompiled)c.__markCompiled();var p=j.PropTypes,q=j.createClass({displayName:'AdsImageCropperWindow',propTypes:{height:p.number,isCropping:p.bool,isResizable:p.bool,isResizing:p.bool,width:p.number},getInitialState:function(){return {ctaFullWidth:null};},getDefaultProps:function(){return {isResizable:false};},componentDidUpdate:function(r){this._reflowCTA();},shouldComponentUpdate:function(r){return (!this.state.ctaFullWidth||this.props.width!==r.width||this.props.height!==r.height||this.props.isCropping!==r.isCropping);},_reflowCTA:function(){if(!this.state.ctaFullWidth){var r=this.refs&&this.refs.cta,s=r&&k.findDOMNode(r);if(s&&s.offsetWidth)this.setState({ctaFullWidth:s.offsetWidth});}},render:function(){return (j.createElement(h,babelHelpers._extends({},this.props,{className:o(this.props.className,"_5tw4 lfloat"),style:babelHelpers._extends({},this.props.style||{},{width:this.props.width,height:this.props.height}),vertical:true}),j.createElement('div',{className:"_5tw5"}),this._renderCTA()));},_renderCTA:function(){var r=this.state.ctaFullWidth,s=!r||this.props.width&&this.props.width>r,t=this.props.isResizable?m._("Crop Image"):m._("Drag to Reposition Image");return (j.createElement('div',{className:"_5tw6"+(this.props.isCropping?' '+"_5tw7":'')+(!r?' '+"_5tw8":''),ref:'cta'},j.createElement(i,{src:n('images/ads/cropper/drag.png')}),j.createElement('div',{className:(!s&&this.props.isResizing?"hidden_elem":'')+(' '+"_5tw9")},t)));}});f.exports=q;},null);
__d('AdsImageCropSelector.react',['AdsImageLegacy','AdsImageCropperWindow.react','BackgroundImage.react','Event','Image.react','React','ReactDOM','cx','invariant','isEmpty','ix','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){if(c.__markCompiled)c.__markCompiled();var t=m.PropTypes,u=function(x){return x*x;},v=function(x,y,z){return Math.min(Math.max(x,y),z);},w=m.createClass({displayName:'AdsImageCropSelector',_dragging:false,_dragEvent:null,_handler:null,_node:null,_origin:null,_releaseEvent:null,propTypes:{disableResizer:t.bool,height:t.number.isRequired,image:t.instanceOf(h).isRequired,isDisabled:t.bool.isRequired,isError:t.bool.isRequired,isReady:t.bool.isRequired,imageSpec:t.object.isRequired,width:t.number.isRequired,onContextMenu:t.func,onCropTransition:t.func.isRequired,onCropUpdate:t.func.isRequired},getInitialState:function(){return {coordinates:null,imageDimensions:{},isCropping:false,isResizing:false,min:null,max:null,scale:1,screenX:0,screenY:0};},componentWillMount:function(){this._calculateState(this.props);},componentWillUnmount:function(){if(this._dragEvent)this._dragEvent.remove();if(this._releaseEvent)this._releaseEvent.remove();},componentWillReceiveProps:function(x){var y=x.image,z=this.props.image;this._calculateState(x);},render:function(){var x=this._isCroppingAllowed();return (m.createElement('div',babelHelpers._extends({},this.props,{style:babelHelpers._extends({},this.props.style||{},{width:this.props.width}),className:s(this.props.className,"_5tv-")}),m.createElement(j,{className:"_537t",loadingIndicatorStyle:'large',src:this._getImageUrl(),width:this.props.width,height:this.props.height,backgroundSize:x?'contain':'containinside',onContextMenu:this.props.onContextMenu}),this._renderCropperMask(),this._renderFooter()));},_getImageUrl:function(){var x=this.props.image;return x.isStockImage()?x.getFullSizeUrl():x.getUrl();},_drawCropperGrid:function(){var x=m.createElement('td',{className:"_35i_"}),y=m.createElement('tr',null,x,x,x);return (m.createElement('table',{className:"_35j0"},m.createElement('tbody',null,y,y,y)));},_renderCropperMask:function(){if(!this._isCroppingAllowed())return null;var x=this._getFillStyle(this.state.coordinates),y=this.state.coordinates.width+'px',z=this.state.coordinates.height+'px',aa=this.props.disableResizer?'none':'block';return (m.createElement('div',{className:"_537t _4jo2"},m.createElement('div',{className:"_537t _537u",style:{borderWidth:x,width:y,height:z,display:aa},ref:'selector'},this._drawCropperGrid(),this._getResizeHandles(),m.createElement(i,{className:"_537t",height:this.state.isResizing?null:this.state.coordinates.height,isCropping:this.state.isCropping&&this._dragging,isResizable:true,isResizing:this.state.isResizing,onMouseDown:(function(event){return this._cropStart(event,false);}).bind(this),width:this.state.isResizing?null:this.state.coordinates.width}))));},_isCroppingAllowed:function(){return (!this.props.isDisabled&&!this.props.isError&&this.props.isReady);},_renderFooter:function(){if(!this.props.isReady)return null;var x=this.props.image,y=this.props.imageSpec,z=y.placement,aa=x.getValidation(z),ba=aa.errorMessage||aa.warningMessage||aa.successMessage,ca=r('/images/ads/createflow/creative/image_check.png');if(aa.errorMessage||aa.warningMessage)ca=r('/images/ads/createflow/creative/image_error.png');return (m.createElement('div',{className:"_5tw0"},m.createElement('div',{className:(!ba?"hidden_elem":'')+(' '+"lfloat")},m.createElement(l,{className:"_5tw1",src:ca}),m.createElement('span',{className:"_5tw2"},ba&&ba.split('\n')[0]))));},_getResizeHandles:function(){return (m.createElement('div',{className:"_u4e",ref:'handles'},m.createElement('div',{className:"_u49 _u4a",key:'top_left',onMouseDown:(function(event){return this._cropStart(event,true);}).bind(this)}),m.createElement('div',{className:"_u49 _u4b",key:'top_right',onMouseDown:(function(event){return this._cropStart(event,true);}).bind(this)}),m.createElement('div',{className:"_u49 _u4c",key:'bottom_right',onMouseDown:(function(event){return this._cropStart(event,true);}).bind(this)}),m.createElement('div',{className:"_u49 _u4d",key:'bottom_left',onMouseDown:(function(event){return this._cropStart(event,true);}).bind(this)})));},_getFillStyle:function(x){var y=Math.floor(x.top),z=Math.floor(x.left),aa=Math.ceil(x.right),ba=Math.ceil(x.bottom);return y+'px '+aa+'px '+ba+'px '+z+'px';},_updateFormats:function(){var x=this.props.image,y=this.props.imageSpec,z=y.cropKey,aa=y.placement,ba=this.getOffset(),ca=this.getCoordinates(ba);this.props.onCropUpdate(x,z,aa,ca);},_transitionFormats:function(){var x=this.props.image,y=this.props.imageSpec.cropKey,z=this.getOffset(),aa=this.getCoordinates(z);this.props.onCropTransition(x,y,aa);},getOffset:function(){return {left:this.state.coordinates.left-this.state.min.x,right:this.state.coordinates.right-this.state.min.x,top:this.state.coordinates.top-this.state.min.y,bottom:this.state.coordinates.bottom-this.state.min.y};},getCoordinates:function(x){var y=this.state.imageDimensions,z={left:Math.round(x.left/this.state.scale),right:Math.round(y.width-x.right/this.state.scale),top:Math.round(x.top/this.state.scale)},aa=this.props.imageSpec;if(aa.aspectRatio){z.bottom=Math.round(z.top+(z.right-z.left)/aa.aspectRatio);}else z.bottom=Math.round(y.height-x.bottom/this.state.scale);return [[z.left,z.top],[z.right,z.bottom]];},_cropStart:function(event,x){event.preventDefault();this._setSelectorNodeToRendered();if(!this._dragging){this._handler=this._getHandler(x);var y=n.findDOMNode(this.refs.handles);!y?p(0):undefined;var z=y.getBoundingClientRect(),aa=z.left,ba=z.top,ca=z.width,da=z.height;this._origin={x:aa+ca/2,y:ba+da/2};this._dragEvent=k.listen(window,'mousemove',this._cropMove);this._releaseEvent=k.listen(window,'mouseup',this._cropEnd);this.setState({isCropping:true,isResizing:x,screenX:event.pageX,screenY:event.pageY});this._dragging=true;this._place(this.state.coordinates.left,this.state.coordinates.top,this.state.coordinates.width,this.state.coordinates.height);}},_setSelectorNodeToRendered:function(){!!this._node?p(0):undefined;this._node=n.findDOMNode(this.refs.selector);!this._node?p(0):undefined;},_cropMove:function(event){if(this._dragging){event.prevent();this._handler(event.pageX-this.state.screenX,event.pageY-this.state.screenY);}},_cropEnd:function(event){if(this._dragging){this._dragging=false;this.setState({isCropping:false,isResizing:false});this._handler(event.pageX-this.state.screenX,event.pageY-this.state.screenY);this._dragEvent.remove();this._dragEvent=null;this._releaseEvent.remove();this._releaseEvent=null;this._handler=null;}this._resetSelectorNode();},_resetSelectorNode:function(){delete this._node;},_resize:function(x,y){var z=Math.sqrt(u(this.state.screenX-this._origin.x)+u(this.state.screenY-this._origin.y)),aa={x:x/2+this.state.screenX,y:y/2+this.state.screenY},ba=Math.sqrt(u(this._origin.x-aa.x)+u(this._origin.y-aa.y)),ca=v(ba/z,this.state.min.scale,this.state.max.scale),da=Math.round(this.state.coordinates.width*ca),ea=Math.round(this.state.coordinates.height*ca),fa=this.state.screenX<this._origin.x?this.state.coordinates.width-da:0,ga=this.state.screenY<this._origin.y?this.state.coordinates.height-ea:0,ha=v(this.state.coordinates.left+fa,this.state.min.x,this.state.max.x-da),ia=v(this.state.coordinates.top+ga,this.state.min.y,this.state.max.y-ea);this._place(ha,ia,da,ea);},_move:function(x,y){var z=this.state.coordinates.width,aa=this.state.coordinates.height,ba=v(this.state.coordinates.left+x,this.state.min.x,this.state.max.x-z),ca=v(this.state.coordinates.top+y,this.state.min.y,this.state.max.y-aa);this._place(ba,ca,z,aa);},_place:function(x,y,z,aa){var ba=this.props.height-y-aa,ca=this.props.width-x-z,da=this._getFillStyle({top:y,left:x,bottom:ba,right:ca});this._node.style.borderWidth=da;this._node.style.width=z+'px';this._node.style.height=aa+'px';if(!this._dragging)this.setState({coordinates:{top:y,left:x,bottom:ba,right:ca,width:z,height:aa}},(function(){this._transitionFormats();this._updateFormats();}).bind(this));},_getHandler:function(x){return x?this._resize:this._move;},_calculateState:function(x){if(!x.isReady)return;var y=x.image.getCrop(x.imageSpec.cropKey),z=Math.min(x.width/x.image.getWidth(),x.height/x.image.getHeight()),aa={height:x.image.getHeight(),scaledWidth:Math.round(x.image.getWidth()*z),scaledHeight:Math.round(x.image.getHeight()*z),width:x.image.getWidth()},ba={x:(x.width-aa.scaledWidth)/2,y:(x.height-aa.scaledHeight)/2},ca={x:ba.x+aa.scaledWidth,y:ba.y+aa.scaledHeight},da={};if(y&&y.length){da.top=ba.y+y[0][1]*z;da.left=ba.x+y[0][0]*z;da.bottom=ba.y+(aa.height-y[1][1])*z;da.right=ba.x+(aa.width-y[1][0])*z;da.width=x.width-da.right-da.left;da.height=x.height-da.bottom-da.top;}if(q(da)||Object.keys(da).some(function(ea){return da[ea]<0;})){if(aa.width/x.imageSpec.aspectRatio>aa.height){da.height=aa.scaledHeight;da.width=da.height*x.imageSpec.aspectRatio;}else{da.width=aa.scaledWidth;da.height=da.width/x.imageSpec.aspectRatio;}da.top=ba.y+(aa.scaledHeight-da.height)/2;da.left=ba.x+(aa.scaledWidth-da.width)/2;da.bottom=x.height-da.top-da.height;da.right=x.width-da.left-da.width;}ba.scale=Math.min(x.imageSpec.minWarningWidth*z/da.width,x.imageSpec.minWarningHeight*z/da.height);ca.scale=Math.min(aa.scaledWidth/da.width,aa.scaledHeight/da.height);this.setState({max:ca,min:ba,imageDimensions:aa,scale:z,coordinates:da});}});f.exports=w;},null);
__d('AdsImageCropperEditorItem.react',['AdsImageUtils','BackgroundImage.react','React','cx','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=j.PropTypes,n=j.createClass({displayName:'AdsImageCropperEditorItem',propTypes:{enableScale:m.bool.isRequired,height:m.number.isRequired,image:m.object.isRequired,imageSpec:m.object.isRequired,isDisabled:m.bool.isRequired,isError:m.bool.isRequired,isReady:m.bool.isRequired,isSelected:m.bool,width:m.number.isRequired,onContextMenu:m.func,onCropTransition:m.func.isRequired,onCropUpdate:m.func.isRequired},componentDidMount:function(){this._initImageCrops();},componentDidUpdate:function(){this._initImageCrops();},shouldComponentUpdate:function(o){return (this.props.image.getCrops()!==o.image.getCrops()||this.props.isDisabled!==o.isDisabled||this.props.isError!==o.isError||this.props.isReady!==o.isReady||this.props.isSelected!==o.isSelected||this.props.imageSpec.aspectRatio!==o.imageSpec.aspectRatio||this.props.height!==o.height);},render:function(){var o=this.props.image,p=this.props.imageSpec,q=this._isCroppingAllowed(),r=q&&this._getBackgroundPosition(o,p),s=q?this._getScale(o,p):1,t=q?'cover':'containinside',u=!this.props.enableScale?j.createElement(i,{backgroundSize:t,backgroundPosition:r,loadingIndicatorStyle:'large',height:this.props.height,src:this._getImageUrl(),width:this.props.width,onContextMenu:this.props.onContextMenu,optimizeResizeSpeed:true}):j.createElement('div',{style:{backgroundImage:'url('+this._getImageUrl()+')',backgroundSize:Math.round(s*100)+'%',backgroundPosition:r,backgroundRepeat:'no-repeat',height:this.props.height,width:this.props.width},onContextMenu:this.props.onContextMenu});return (j.createElement('div',babelHelpers._extends({},this.props,{className:l(this.props.className,"_5twa"+(this.props.isSelected?' '+"_5twb":''))}),u));},_initImageCrops:function(){var o=this.props.image,p=this.props.imageSpec,q=p.placement,r=p.cropKey,s=h.calculateDefaultCoordinates(o.getWidth(),o.getHeight(),p.aspectRatio);if(!o.getCrop(r)&&this._isCroppingAllowed()){this.props.isSelected&&this.props.onCropTransition(o,r,s);this.props.onCropUpdate(o,r,q,s);}},_getImageUrl:function(){var o=this.props.image;return o.isStockImage()?o.getFullSizeUrl():o.getUrl();},_isCroppingAllowed:function(){var o=this.props.isDisabled,p=this.props.isError,q=this.props.isReady;return !o&&!p&&q;},_getBackgroundPosition:function(o,p){var q=o.getCrop(p.cropKey)||[],r="50% 50%";if(q.length){var s=o.getWidth(),t=o.getHeight(),u=this.props.width,v=this.props.height;r=h.calculateCroppedPosition(s,t,u,v,q);}return r;},_getScale:function(o,p){var q=1,r=o.getCrop(p.cropKey)||[];if(r.length)q=h.calculateBackgroundScale(o.getWidth(),o.getHeight(),r);return q;}});f.exports=n;},null);
__d('AdsImageCropperImageSpecSelector.react',['AdImageSpecCropKeys','React','XUIButton.react','XUIButtonGroup.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=i.PropTypes,o={SQUARE:m._("Square"),NO_CROP:m._("Original")},p=i.createClass({displayName:'AdsImageCropperImageSpecSelector',propTypes:{hideSingleOption:n.bool,imageSpecs:n.arrayOf(n.object).isRequired,orderByAspectRatio:n.bool,selectedSpec:n.object,onUpdateImageSpec:n.func.isRequired},getInitialState:function(){return {selectedSpec:this.props.selectedSpec};},componentWillReceiveProps:function(q){this.setState({selectedSpec:q.selectedSpec});},render:function(){var q=this.props.imageSpecs;if(!q||q.length===0||q.length===1&&this.props.hideSingleOption)return null;if(this.props.orderByAspectRatio)q.sort(function(t,u){return t.aspectRatio-u.aspectRatio;});var r=this.state.selectedSpec,s=q.map((function(t){return (i.createElement(j,{className:"_5qc-"+(!r||r.aspectRatio!==t.aspectRatio||r.placement!==t.placement?' '+"_5qc_":'')+(' '+"_5bv8"),key:t.placement+t.cropKey,label:this._getLabelForImageSpec(t),size:'large',onClick:(function(){return this._onClickSpecItem(t);}).bind(this)}));}).bind(this));return (i.createElement(k,null,s));},_onClickSpecItem:function(q){this.setState({selectedSpec:q});this.props.onUpdateImageSpec(q);},_getLabelForImageSpec:function(q){if(q.aspectRatio===1)return o.SQUARE;if(q.cropKey===h.NO_CROP)return o.NO_CROP;return q.aspectRatio;}});f.exports=p;},null);
__d('AdsImageCropperEditor.react',['AdsImageCropSelector.react','AdsImageCropperEditorItem.react','AdsImageCropperImageSpecSelector.react','AdImageSpecsUtils','CenteredContainer.react','DOMDimensions','Event','Link.react','React','XUIButton.react','XUICloseButton.react','XUIText.react','arrayContains','cssVar','cx','debounce','emptyFunction','fbt','getByPath','setByPath'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa){if(c.__markCompiled)c.__markCompiled();var ba=p.PropTypes,ca="684",da="584",ea=40,fa=50,ga="880",ha=2,ia=12,ja=16,ka=32,la=20,ma=12,na=70,oa=186,pa=100,qa=12,ra=28,sa=p.createClass({displayName:'AdsImageCropperEditor',propTypes:{header:ba.string.isRequired,images:ba.array.isRequired,imageSpecs:ba.array.isRequired,maxImageCount:ba.number.isRequired,selectedPlacement:ba.string,showSpecSelector:ba.bool,onClose:ba.func,onCropUpdate:ba.func,onItemClick:ba.func},getDefaultProps:function(){return {onClose:x,onCropUpdate:x,onItemClick:x};},getInitialState:function(){var ta=this.props.images[0];return {selectedImage:ta,selectedPlacement:this.props.selectedPlacement||this.props.imageSpecs[0].placement,imageCropStates:this._getInitialImageCropStates(this.props.images,this.props.imageSpecs)};},componentWillMount:function(){var ta=w(this.forceUpdate.bind(this,null));this._resizeHandlerRef=n.listen(window,'resize',ta);},componentWillUnmount:function(){this._resizeHandlerRef.remove();this._resizeHandlerRef=null;},componentWillReceiveProps:function(ta){if(!this._validProps(ta))return;var ua=ta.images,va=ta.imageSpecs,wa=this.state.selectedImage,xa=this.state.selectedPlacement,ya=z(this.state.imageCropStates,[wa.getUniqueIdentifier(),xa]),za=ua.every(function(fb){var gb=wa&&fb.equals(wa);if(gb)wa=fb.clone({crops:wa.getCrops()});return !gb;}),ab=va.every(function(fb){return ya!==fb;});if(!wa||za||!ya||ab){this.setState({selectedImage:ua[0],selectedPlacement:va[0].placement});}else this.setState({selectedImage:wa});var bb=babelHelpers._extends({},this.state.imageCropStates),cb=ua.map(function(fb){return fb.getUniqueIdentifier();}),db=ta.imageSpecs.map(function(fb){return fb.placement;});Object.keys(bb).forEach(function(fb){if(!t(cb,fb)){delete bb[fb];}else Object.keys(bb[fb]).forEach(function(gb){if(!t(db,gb))delete bb[fb][gb];});});var eb=this._groupImageSpecsByPlacement(va);ua.forEach((function(fb){var gb=Object.keys(fb.crops),hb=this.props.images.some(function(ib){if(!fb.equals(ib))return false;if(!fb.crops)return !ib.crops;return (ib.crops&&gb.length===Object.keys(ib.crops).length&&gb.every(function(jb){return ib.crops[jb];}));});if(!hb)bb[fb.getUniqueIdentifier()]=this._getImageInitialCropState(fb,eb);}).bind(this));this.setState({imageCropStates:bb});},render:function(){var ta=this.state.selectedImage,ua=this.state.selectedPlacement,va=z(this.state.imageCropStates,[ta.getUniqueIdentifier(),ua]);if(!this._validProps(this.props)||!ta||!va)return p.createElement('div',{className:'hidden_elem'});var wa=this._getTabContentHeight()-fa-2*qa-(this.props.showSpecSelector?ra:0),xa=p.createElement(h,{height:wa,image:ta,imageSpec:va,isDisabled:false,isError:this._isImageError(ta,va),isReady:this._isImageReady(ta,va),onContextMenu:this.onImageContextMenu.bind(this,ta),onCropUpdate:this.props.onCropUpdate,onCropTransition:this.onCropTransition,width:ga-this._getEditorWidth()-2*qa,disableResizer:va.aspectRatio<=0}),ya=this.props.showSpecSelector?this._renderCropSpecSelector():null,za=p.createElement('div',{className:"_5twc",style:{width:this._getEditorWidth()}},this._renderEditorHeader(),this._renderEditorRows(),this._renderEditorFooter());return (p.createElement('div',{className:"_5twd",style:{height:this._getTabContentHeight()}},p.createElement('div',{className:"_5oh2"},xa,ya),za));},onCropTransition:function(ta,ua,va){var wa={};wa[ua]=va;this.setState({selectedImage:ta.clone({crops:wa})});},_renderEditorHeader:function(){return (p.createElement('div',{className:"_5twe"},this.props.header,p.createElement(r,{className:"_5twf rfloat",onClick:this.props.onClose})));},_renderEditorFooter:function(){return (p.createElement('div',{className:"_5twg"},p.createElement(q,{className:'rfloat',label:y._("Done"),onClick:this.props.onClose,use:'confirm'})));},_renderEditorRows:function(){var ta=this.props.images,ua=this.state.selectedImage,va=this._groupImageSpecsByPlacement(this.props.imageSpecs),wa=Object.keys(va).length,xa=wa>1,ya=this._getEditorWidth()-(wa-1)*ma-wa*ha*2-2*(xa?ia:ka),za=this._getTabContentHeight()-ea-fa-(this.props.maxImageCount-1)*ma-2*(xa?ja:la),ab=Math.min(za/this.props.maxImageCount-ha*2,xa?na:oa),bb=this._calculateRowHeightColumnWidth(va,ta,ya,ab),cb=ta.map((function(db){var eb=this.state.imageCropStates[db.getUniqueIdentifier()],fb=Object.keys(eb).map(function(hb){return eb[hb];}),gb=fb.map((function(hb){var ib=hb.aspectRatio>0?hb.aspectRatio:db.width/db.height,jb=bb[hb.placement].width,kb=jb/ib;if(xa){kb=bb[hb.placement].height;jb=bb[hb.placement].height*ib;}if(kb>ab){kb=ab;jb=kb*ib;}var lb=db.equals(ua)&&this.state.selectedPlacement===hb.placement;if(!lb){jb+=ha;kb+=ha;}if(hb.aspectRatio<=0)hb=babelHelpers._extends({},hb,{height:db.height,width:db.width,aspectRatio:db.width/db.height});db=db.equals(ua)?ua:db;return (p.createElement('div',{className:"_145i",key:db.getUniqueIdentifier()+hb.placement+hb.cropKey,style:{width:bb[hb.placement].width}},p.createElement(i,{enableScale:true,height:Math.floor(kb),image:db,isDisabled:false,isError:this._isImageError(db,hb),isReady:this._isImageReady(db),isSelected:lb,onClick:this._setCropperItem.bind(this,db,hb),onContextMenu:this.onImageContextMenu.bind(this,db),onCropUpdate:this.props.onCropUpdate,onCropTransition:this.onCropTransition,imageSpec:hb,width:Math.floor(jb)})));}).bind(this));return (p.createElement('div',{className:"_5twi",key:db.getUniqueIdentifier()},gb));}).bind(this));return (p.createElement('div',null,this._renderEditorHelpText(xa),this._renderEditorRowHeader(va,bb),cb));},_renderCropSpecSelector:function(){if(!this.props.showSpecSelector)return null;var ta=this.state.selectedPlacement,ua=this._groupImageSpecsByPlacement(this.props.imageSpecs),va=this.state.selectedImage,wa=z(this.state.imageCropStates,[va.getUniqueIdentifier(),ta]);return (p.createElement('div',{className:"_23et"},p.createElement(j,{hideSingleOption:true,imageSpecs:ua[ta],orderByAspectRatio:true,selectedSpec:wa,onUpdateImageSpec:(function(xa){return this._updateImageCrops(va,xa);}).bind(this)})));},_renderEditorRowHeader:function(ta,ua){if(Object.keys(ua).length<=1)return null;var va=Object.keys(ta).map(function(wa){return (p.createElement('div',{className:"_qmy",key:'header title'+wa,style:{width:ua[wa].width}},k.getImageSpecPlacementPlatform(ta[wa][0])));});return (p.createElement(l,{className:"_qmz",horizontal:true,vertical:false},p.createElement('div',null,va)));},_renderEditorHelpText:function(ta){if(!ta)return null;return (p.createElement(s,{className:"_3-8z _3-8t _3-96",display:'block',size:'small'},y._("Select the image to edit how it is cropped. {=Learn about ad placements} on Facebook and Instagram.",[y.param('=Learn about ad placements',p.createElement(o,{href:'/business/help/274759766036201'},y._("Learn about ad placements")))])));},_getTabContentHeight:function(){var ta=m.getViewportDimensions().height,ua=ta-pa;return Math.max(da,Math.min(ca,ua));},_setCropperItem:function(ta,ua){this.props.onItemClick(ua.cropKey,ua.placement);this.setState({selectedImage:ta,selectedPlacement:ua.placement});},_isImageError:function(ta,ua){return ta.hasValidationError(ua.placement);},_isImageReady:function(ta){return (ta.isStockImage()?ta.hasFullSizeDimensions():ta.hasDimensions());},_validProps:function(ta){var ua=ta.images,va=ta.imageSpecs;return ua.length&&va.length;},_getEditorWidth:function(){var ta="250";return parseInt(ta,10);},onImageContextMenu:function(ta,event){return !ta.isStockImage();},_getInitialImageCropStates:function(ta,ua){var va={},wa=this._groupImageSpecsByPlacement(ua);ta.forEach((function(xa){va[xa.getUniqueIdentifier()]=this._getImageInitialCropState(xa,wa);}).bind(this));return va;},_getImageInitialCropState:function(ta,ua){var va=Object.keys(ta.crops),wa={};Object.keys(ua).forEach(function(xa){var ya=ua[xa],za=ya[ya.length-1];ya.forEach(function(ab){if(t(va,ab.cropKey)&&ta.crops[ab.cropKey])za=ab;});wa[xa]=za;});return wa;},_updateImageCrops:function(ta,ua){var va=this.state.imageCropStates,wa=z(va,[ta.getUniqueIdentifier(),this.state.selectedPlacement]);if(wa!==ua){aa(va,[ta.getUniqueIdentifier(),this.state.selectedPlacement],ua);this.setState({imageCropStates:va});this.props.onCropUpdate&&this.props.onCropUpdate(ta,ua.cropKey,this.state.selectedPlacement,ta.crops[ua.cropKey],wa.cropKey);}},_groupImageSpecsByPlacement:function(ta){var ua={};ta.forEach(function(va){ua[va.placement]=ua[va.placement]||[];ua[va.placement].push(va);});return ua;},_calculateRowHeightColumnWidth:function(ta,ua,va,wa){var xa=ua.map(function(cb){return cb.width/cb.height;}).reduce(function(cb,db){return Math.max(cb,db);}),ya=function(cb){return cb.aspectRatio>0?cb.aspectRatio:xa;},za=0,ab={};Object.keys(ta).map(function(cb){ab[cb]=ta[cb].map(ya).reduce(function(db,eb){return Math.max(db,eb);});za+=ab[cb];});var bb={};Object.keys(ab).forEach(function(cb){var db=ab[cb],eb=db/za*va,fb=eb/db;if(fb>wa){fb=wa;eb=fb*db;}bb[cb]={height:fb,width:eb};});return bb;}});f.exports=sa;},null);
__d('AdsImageCropperEditorDialogMixins',['AdsImageCropperEditor.react','LayerFadeOnHide','React','ReactLayeredComponentMixin','XUIDialog.react','emptyFunction'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n=j.PropTypes,o=880,p={propTypes:{header:n.string.isRequired,images:n.array.isRequired,imageSpecs:n.array.isRequired,maxImageCount:n.number.isRequired,onCropUpdate:n.func,onItemClick:n.func,onShow:n.func},getDefaultProps:function(){return {onCropUpdate:m,onShow:m,onItemClick:m};},getInitialState:function(){return {dialogShown:false};},renderLayers:function(){if(!this.state.dialogShown)return {};return {dialog:j.createElement(l,{shown:this.state.dialogShown,onToggle:(function(r){if(!r)setTimeout(this.setState.bind(this,{dialogShown:false},null),0);}).bind(this),behaviors:{LayerFadeOnHide:i},width:o},j.createElement(h,{header:this.props.header,images:this.props.images,maxImageCount:this.props.maxImageCount,onClose:this.hideCropper,onCropUpdate:this.props.onCropUpdate,onItemClick:this.props.onItemClick,imageSpecs:this.props.imageSpecs}))};},showCropper:function(){this.props.onShow();this.setState({dialogShown:true});},hideCropper:function(){this.setState({dialogShown:false});}},q=[p,k];f.exports=q;},null);
__d('AdsLocationValidationDialog.react',['React','ReactDOM','ReactLayeredComponentMixin','XUIDialog.react','XUIDialogBody.react','XUIDialogFooter.react','XUIDialogButton.react','LayerAutoFocus','LayerFadeOnHide','LayerHideOnEscape','fbt','cx'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){if(c.__markCompiled)c.__markCompiled();var t=h.PropTypes;function u(w){return w.split(',')[0];}var v=h.createClass({displayName:'AdsLocationValidationDialog',propTypes:{entriesRadius:t.object.isRequired,exclusionEntries:t.object.isRequired,updateRadius:t.func.isRequired,updateExclusion:t.func.isRequired,addEntry:t.func.isRequired,removeEntry:t.func.isRequired,currentEntries:t.array},mixins:[j],getInitialState:function(){return {dialogShown:false,invalidEntries:[]};},show:function(event){this.setState({dialogShown:true});},_onToggle:function(w){if(w!==this.state.dialogShown)setTimeout(this.setState.bind(this,{dialogShown:w},null),0);},renderLayers:function(){var w=this.state.newEntry,x=this.state.invalidEntries,y;if(x.length===1){var z=x[0];if(z.exclusionEntries&&z.exclusionEntries.length>0){var aa=x[0].exclusionEntries.map(function(fa){return u(fa.getTitle());});y=h.createElement('span',{className:"_5dj8"},r._("{location} Excluding {excluded locations}",[r.param('location',u(z.getTitle())),r.param('excluded locations',aa.join(', '))]));}else y=h.createElement('span',{className:"_5dj8"},u(z.getTitle()));}else if(x.length>1){var ba=x.map(function(fa){return u(fa.getTitle());});y=h.createElement('span',{className:"_5dj8"},ba.join(', '));}else return {};var ca=this.state.errorDescription?h.createElement('span',null,' ',this.state.errorDescription,' '):'',da=w?u(w.getTitle()):'',ea=r._("Your audience location is currently set to {old location}. Do you want to change it to {new location}?",[r.param('old location',y),r.param('new location',h.createElement('span',{className:"_5dj8"},da))]);return {dialog:h.createElement(k,{shown:this.state.dialogShown,behaviors:{LayerAutoFocus:o,LayerFadeOnHide:p,LayerHideOnEscape:q},onToggle:this._onToggle,width:445},h.createElement(l,null,h.createElement('div',null,ca,ea)),h.createElement(m,null,h.createElement(n,{label:r._("Cancel"),use:'default',action:'cancel'}),h.createElement(n,{label:r._("Okay"),use:'confirm',action:'cancel',ref:'confirmButton',className:'autofocus',onClick:this._onConfirmClick})))};},render:function(){return (h.createElement('div',null));},componentDidUpdate:function(){j.componentDidUpdate.call(this);this.refs&&this.refs.confirmButton&&i.findDOMNode(this.refs.confirmButton).focus();},_onConfirmClick:function(){var w=this.props.currentEntries?this.props.currentEntries.slice():[],x={},y=this.props.entriesRadius,z=this.props.exclusionEntries;w.push(this.state.newEntry);y[this.state.newEntry.getUniqueID()]=0;z[this.state.newEntry.getUniqueID()]=[];this.state.invalidEntries.map(function(aa){x[aa.getUniqueID()]=true;});w.forEach(function(aa){if(x[aa.getUniqueID()])this.props.removeEntry(aa);},this);this.props.updateRadius(y);this.props.updateExclusion(z);this.props.addEntry(this.state.newEntry);},setInfo:function(w,x,y){this.setState({newEntry:w,invalidEntries:x,errorDescription:y});}});f.exports=v;},null);
__d('AdsTargetingLocationLoggingEvents',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={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_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_RENDERING_TIME:'geo_location_map_rendering_time',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'};f.exports=h;},null);
__d('AdsPlusBox.react',['CenteredContainer.react','Link.react','React','cx','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m=j.createClass({displayName:'AdsPlusBox',render:function(){return (j.createElement(i,babelHelpers._extends({},this.props,{className:l(this.props.className,"_58_r")}),j.createElement(h,{className:"_4pm_",vertical:true},j.createElement('div',{className:"_58_s"}),this.props.children)));}});f.exports=m;},null);
__d('AdsXUIProgressBar.react',['AdsProgressBar.react','React','cx','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l=i.PropTypes,m=i.createClass({displayName:'AdsXUIProgressBar',propTypes:{value:l.number},render:function(){return (i.createElement(h,babelHelpers._extends({},this.props,{className:k(this.props.className,"_qss"),animated:true,size:'small',value:this.props.value})));}});f.exports=m;},null);
__d('AdsProgressBox.react',['AdsXUIProgressBar.react','React','XUICloseButton.react','cx','fbt','keyMirror','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o=i.PropTypes,p=m({Uploading:null,Encoding:null}),q=i.createClass({displayName:'AdsProgressBox',propTypes:{align:o.oneOf(['default','center']),processingAction:o.oneOf(Object.keys(p)),videoTitle:o.string,progressValue:o.number.isRequired,striped:o.bool,subtitle:o.string,onCancel:o.func},getDefaultProps:function(){return {align:'default',striped:false};},render:function(){var r=this.props.subtitle?i.createElement('div',{className:"_2t6d"},this.props.subtitle):null,s=this.props.onCancel?i.createElement(j,{className:'rfloat',label:l._("Cancel Upload"),onClick:this.props.onCancel}):null,t=this.props.align==='center'?"_5okx":'';return (i.createElement('div',babelHelpers._extends({},this.props,{className:n(this.props.className,t)}),this._renderTitle(this.props.videoTitle,this.props.processingAction),i.createElement('div',{className:'clearfix'},s,i.createElement(h,{className:"_3-92",value:this.props.progressValue,striped:this.props.striped})),r));},_renderTitle:function(r,s){if(!r)return;var t=i.createElement('span',{className:"_5pic"},r);if(s)t=l._({"Uploading":"Uploading {videoTitle}","Encoding":"Encoding {videoTitle}"},[l['enum'](s,{Uploading:'Uploading',Encoding:'Encoding'}),l.param('videoTitle',t)]);return (i.createElement('div',{className:"_3-95 _5pid"},t));}});q.PROCESSING_ACTION=p;f.exports=q;},null);
__d('AdsSelected.react',['Image.react','FBOverlayBase.react','FBOverlayContainer.react','FBOverlayElement.react','React','cx','ix','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){if(c.__markCompiled)c.__markCompiled();var p=l.PropTypes,q=l.createClass({displayName:'AdsSelected',propTypes:{isSelected:p.bool},getDefaultProps:function(){return {isSelected:true};},render:function(){return (l.createElement(j,babelHelpers._extends({},this.props,{className:o(this.props.className,"_4ie2"+(this.props.isSelected?' '+"_4ie3":''))}),l.createElement(i,null,this.props.children),l.createElement(k,{horizontal:'right',vertical:'top'},l.createElement(h,{className:"_4ie4"+(!this.props.isSelected?' '+"hidden_elem":''),src:n('/images/ads/mediapanel/icon-checkmark.png')}))));}});f.exports=q;},null);
__d('AdsVideoItem.react',['AdImageSpecs','AdsCreationConfig','AdsTimeUtils','AdsVideoPlayer.react','AdsValidationIcon.react','AdsValidationIconType','BackgroundImage.react','GradientBox.react','Link.react','FBOverlayBase.react','FBOverlayContainer.react','FBOverlayElement.react','React','cssVar','cx','fbt','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x){'use strict';if(c.__markCompiled)c.__markCompiled();var y=t.PropTypes,z={small:{width:parseInt("220px",10),height:parseInt("124px",10)},large:{width:parseInt("280px",10),height:parseInt("158px",10)}},aa=t.createClass({displayName:'AdsVideoItem',propTypes:{videoID:y.string,title:y.string,picture:y.string.isRequired,size:y.oneOf(Object.keys(z)),playable:y.bool,onClick:y.func,length:y.number,shouldValidateForInstagram:y.bool,width:y.number,height:y.number,someHaveFacebookPlacement:y.bool},getDefaultProps:function(){return {size:'small',videoID:null,playable:false};},componentWillReceiveProps:function(ba){var ca=ba.picture;if(this.refs.videoPlayer&&ca!==this.props.picture)this.refs.videoPlayer.closePlayer();},render:function(){var ba=z[this.props.size],ca=this._renderValidationForInstagram(),da=this.props.onClick;if(this.props.shouldValidateForInstagram&&!this.props.someHaveFacebookPlacement&&ca)da=null;var ea=null;if(this.props.title)ea=t.createElement(s,{vertical:'bottom'},t.createElement('div',{className:"_5cl3"+(!!(this.props.length&&!ca)?' '+"_5r1m":'')+(!!(this.props.length&&ca)?' '+"_19ra":'')},this.props.title));var fa=null;if(this.props.length)fa=t.createElement(s,{vertical:'bottom',horizontal:'right'},t.createElement('div',{className:"_5r1p"+(!!ca?' '+"_19rb":'')},j.secondsToString(Math.floor(this.props.length))));var ga=t.createElement(r,null,t.createElement(q,null,t.createElement(n,{className:"_55v-",width:ba.width,height:ba.height,backgroundSize:'contain',src:this.props.picture})),t.createElement(s,{vertical:'bottom'},t.createElement(o,{className:"_5cl2",color:'black',direction:'up'})),ea,ca,fa);if(this.props.playable){!this.props.videoID?x(0):undefined;return (t.createElement(k,babelHelpers._extends({},this.props,{ref:'videoPlayer',videoID:this.props.videoID,playerWidth:ba.width,playerHeight:ba.height}),t.createElement(p,{onClick:da},ga)));}return (t.createElement(p,{onClick:da},ga));},_renderValidationForInstagram:function(){if(!this.props.shouldValidateForInstagram)return null;var ba=[];if(this.props.width<i.instagramAdsVideoMinWidth||this.props.height<i.instagramAdsVideoMinHeight)ba.push(w._("Your video must be at least {minimum Instagram ad video width} \u00d7 {minimum Instagram ad video height} pixels.",[w.param('minimum Instagram ad video width',i.instagramAdsVideoMinWidth),w.param('minimum Instagram ad video height',i.instagramAdsVideoMinHeight)]));var ca=this.props.width/this.props.height;if(ca<h.INSTAGRAM_STREAM_NO_CROP.minWarningAspectRatio||ca>h.INSTAGRAM_STREAM_NO_CROP.maxWarningAspectRatio)ba.push(w._("A {maximum Instagram ad video aspect ratio}:1 to {minimum Instagram ad video aspect ratio}:1 aspect ratio is required for the video.",[w.param('maximum Instagram ad video aspect ratio',h.INSTAGRAM_STREAM_NO_CROP.maxWarningAspectRatio),w.param('minimum Instagram ad video aspect ratio',h.INSTAGRAM_STREAM_NO_CROP.minWarningAspectRatio)]));var da=Math.floor(this.props.length);if(da<i.instagramAdsVideoMinDurationInSec||da>i.instagramAdsVideoMaxDurationInSec)ba.push(w._("Your video must be {minimum Instagram ad video duration} to {maximum Instagram ad video duration} seconds long.",[w.param('minimum Instagram ad video duration',i.instagramAdsVideoMinDurationInSec),w.param('maximum Instagram ad video duration',i.instagramAdsVideoMaxDurationInSec)]));if(ba.length===0)return null;if(ba.length>1)ba=ba.map(function(fa){return w._("{bullet} {error message}",[w.param('bullet','\u2022'),w.param('error message',fa)]);});var ea=w._("This video can't be used for Instagram ads")+'\n\n';ba.unshift(ea);return (t.createElement(s,{vertical:'bottom',horizontal:'right'},t.createElement(l,{className:"_19rc",messages:ba,type:m.ERROR_IMAGE})));}});f.exports=aa;},null);
__d('AdsVideoPanel.react',['AdsPlusBox.react','AdsSelected.react','AdsVideoItem.react','AdsProgressBox.react','AdsVideoUploadStatus','CenteredContainer.react','FileInput.react','React','arrayContains','cx','emptyFunction','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){if(c.__markCompiled)c.__markCompiled();var t=o.PropTypes,u=o.createClass({displayName:'AdsVideoPanel',propTypes:{videoList:t.array,selectedVideoID:t.string,selectedVideoIDs:t.arrayOf(t.string.isRequired),uploadStatus:t.oneOf(Object.keys(l)),uploadProgress:t.number,uploadTitle:t.string,showUploader:t.bool,onVideoClick:t.func,onVideoFileChange:t.func,onUploadCancel:t.func,shouldValidateForInstagram:t.bool,someHaveFacebookPlacement:t.bool},getDefaultProps:function(){return {showUploader:true,videoList:[],uploadStatus:l.NONE,onVideoClick:r};},render:function(){var v=null;if(this.props.showUploader){switch(this.props.uploadStatus){case l.UPLOADING:v=this._renderUploadProgress(s._("Uploading video"),false);break;case l.ENCODING:v=this._renderUploadProgress(s._("Encoding video"),true);break;default:v=this._renderUploader();}v=o.createElement('div',{className:"_414a _5c2p"},v);}return (o.createElement('div',{className:"_iux"},v,this.props.videoList.map(this._renderVideoItem)));},_renderUploader:function(){return (o.createElement(n,{accept:'video/*',onChange:this.props.onVideoFileChange},o.createElement(h,{className:"_1hit"},s._("Upload Video"))));},_renderVideoItems:function(){return this.props.videoList.map(this._renderVideoItem);},_renderUploadProgress:function(v,w){return (o.createElement(m,{className:"_ji0",horizontal:false,vertical:true},o.createElement(k,{className:"_ji1",videoTitle:this.props.uploadTitle,progressValue:this.props.uploadProgress,striped:w,subtitle:v,onCancel:this.props.onUploadCancel})));},_renderVideoItem:function(v){if(!v||!v.preferredThumbnail)return null;var w;if(this.props.selectedVideoIDs){w=p(this.props.selectedVideoIDs,v.id);}else w=v.id===this.props.selectedVideoID;var x=v.name||v.description||s._("Video ({video ID})",[s.param('video ID',v.id)]);return (o.createElement(i,{className:"_414a",key:'video_'+v.id,isSelected:w},o.createElement(j,{title:x,picture:v.preferredThumbnail.uri,size:'small',onClick:this.props.onVideoClick.bind(null,v.id),length:v.length,width:v.width,height:v.height,shouldValidateForInstagram:this.props.shouldValidateForInstagram,someHaveFacebookPlacement:this.props.someHaveFacebookPlacement})));}});f.exports=u;},null);
__d('AdsCustomConversionsTableConstant',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={GROUP_HEADER_HEIGHT:50,MAX_VISIBLE_ROWS:5,MAX_ROWS:20,NOTICE_LOWERBOUND:17};f.exports=h;},null);
__d('AdsCustomConversionsUtil',['AdsCustomConversionsTableConstant'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i='ASC',j={getShouldDisableCreation:function(k){return k>=h.MAX_ROWS;},getIsCustomConversion:function(k){return k.pixel_rule!==undefined;},getCustomConversionsMatchedPixel:function(k,l){return k.filter(function(m){return m.pixelID===l;});},sort:function(k,l,m){return k.sort(function(n,o){var p=l.toLowerCase(),q=n[p],r=o[p],s=m===i?1:-1;if(q>r){return s;}else if(q<r){return -s;}else return 0;});},filterByTime:function(k,l,m){return (k.lastFiredTime>=l&&k.lastFiredTime<=m);},filterByDateChoice:function(k,l){return j.filterByTime(k,l.startTime,l.endTime);}};f.exports=j;},null);
__d("XAdsManagerConversionTrackingController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/manage\/convtrack\/",{act:{type:"Int"},adaccount_id:{type:"Int"},page:{type:"Int",defaultValue:1},create_dialog:{type:"Bool",defaultValue:false}});},null,{});
__d('AdsPixelConversionItemFlyoutDetail.react',['AdsAccountStoreWrapper','AdsCustomConversionsUtil','AdsPixelConversionStatusUtils','Layout.react','Link.react','React','WebsiteCustomAudienceModel','WebsiteCustomAudienceOperators','XAdsManagerConversionTrackingController','XAdsManagerPixelsController','XUIGrayText.react','cx','dotAccess','fbt','getByPath','intlList'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w){'use strict';if(c.__markCompiled)c.__markCompiled();var x=n.Operations,y=o.URLOperators,z=k.Column,aa=m.PropTypes,ba=m.createClass({displayName:'AdsPixelConversionItemFlyoutDetail',propTypes:{conversion:aa.object.isRequired,eventName:aa.string.isRequired,isFacebookPixel:aa.bool.isRequired,conversionDetails:aa.shape({businessID:aa.string,businessName:aa.string,isPixelOwner:aa.bool,pixelName:aa.string}),statusIcon:aa.object,statusDescription:aa.string.isRequired},render:function(){return (m.createElement('div',null,m.createElement(r,{size:'medium',weight:'bold'},this.props.eventName),this._getDetails(),this._getRules(),this._getSources()));},_getDetails:function(){var ca;if(this._shouldDisplayEventDescription()){ca=this.props.conversion.description;}else ca=m.createElement('div',null,this._getEventStatus(),this._getLastReceivedEvent(),this._getCategory(),this._getConversionValue());return (m.createElement('div',{className:"_64l"},m.createElement(r,{className:"_2pie",display:'block',size:'small',weight:'bold'},u._("Details")),ca));},_getRules:function(){if(!this._getIsCustomConversion())return null;return (m.createElement('div',{className:"_64l"},m.createElement(r,{className:"_2pie",display:'block',size:'small',weight:'bold'},u._("Rules")),this._getRuleInfo()));},_getRuleInfo:function(){var ca=this._getRuleValues();return (m.createElement('div',null,m.createElement(r,{shade:'light',weight:'normal'},u._("Include traffic that meets the following conditions:")),m.createElement('div',null,m.createElement(r,{display:'block',shade:'medium',weight:'bold'},u._("{rule type}",[u.param('rule type',ca.ruleLabel)])),this._getTokenList(ca.ruleTokens))));},_getTokenList:function(ca){if(!ca)return null;return w(ca,w.CONJUNCTIONS.OR);},_getRuleValues:function(){var ca=null,da=null;if(this._getIsCustomConversion()){var ea=x.deserializeRule(this.props.conversion.pixel_rule),fa=t(ea,'clauses')[0];ca=x.getOperatorLabel(y,t(fa,'filter'));da=t(fa,'tokens');}return {ruleLabel:ca,ruleTokens:da};},_getSources:function(){var ca=v(this.props.conversionDetails,['pixelName']),da=this.props.conversion.pixelID||this.props.conversion.id;return (m.createElement('div',null,m.createElement(r,{className:"_2pie",display:'block',size:'small',weight:'bold'},u._("Sources")),m.createElement(k,null,m.createElement(r,{shade:'light',size:'small'},u._("Pixel:")),m.createElement(r,{className:"_2pir",size:'small'},u._("{pixel name} ({pixel ID})",[u.param('pixel name',this._getPixelDetailLink(ca)),u.param('pixel ID',da)]))),this._getSharedSource()));},_getSharedSource:function(){if(!this._isPixelShared())return null;return (m.createElement(k,null,m.createElement(r,{shade:'light',size:'small'},u._("Shared by:")),m.createElement(r,{className:"_2pir",size:'small'},u._("{pixel's business name} ({pixel's business ID})",[u.param('pixel\'s business name',v(this.props.conversionDetails,['businessName'])),u.param('pixel\'s business ID',v(this.props.conversionDetails,['businessID']))]))));},_isPixelShared:function(){return (this.props.isFacebookPixel&&!v(this.props.conversionDetails,['isPixelOwner']));},_getIsCustomConversion:function(){return (i.getIsCustomConversion(this.props.conversion));},_getEventStatus:function(){return (m.createElement(k,null,m.createElement(z,null,m.createElement(r,{shade:'light',size:'small'},u._("Status:"))),m.createElement(z,{className:"_5tzo"},this.props.statusIcon,m.createElement(r,{shade:'light',size:'small'},this.props.statusDescription))));},_getPixelDetailLink:function(ca){var da=this._getPixelLinkURI();return (m.createElement(l,{onMouseDown:function(event){return event.preventDefault();},href:da,target:'_blank'},ca));},_getPixelLinkURI:function(){if(this.props.isFacebookPixel)return q.getURIBuilder().setInt('act',h.getAccountID()).setInt('pixel_id',this.props.conversion.pixelID).getURI();return p.getURIBuilder().setInt('act',h.getAccountID()).getURI();},_getLastReceivedEvent:function(){var ca=this._getLastReceivedSentence();if(!ca)return null;return (m.createElement(k,null,m.createElement(r,{shade:'light',size:'small'},u._("Last Event:")),m.createElement(r,{className:"_2pir",shade:'light',size:'small'},ca)));},_getCategory:function(){if(this.props.isFacebookPixel&&!this._getIsCustomConversion())return null;var ca=this._getIsCustomConversion()?this.props.conversion.category:this.props.conversion.value;return (m.createElement(k,null,m.createElement(r,{shade:'light',size:'small'},u._("Category:")),m.createElement(r,{className:"_2pir",shade:'light',size:'small'},ca)));},_getConversionValue:function(){if(!this._getIsCustomConversion())return null;return (m.createElement(k,null,m.createElement(r,{shade:'light',size:'small'},u._("Conversion Value:")),m.createElement(r,{className:"_2pir",shade:'light',size:'small'},this.props.conversion.default_conversion_value,' ',h.getCurrency())));},_getLastReceivedSentence:function(){return (j.getStatusObjectFromConversion(this.props.conversion).getLastReceivedSentence());},_shouldDisplayEventDescription:function(){return !!(!this._getIsCustomConversion()&&this.props.conversion.description&&!this.props.conversion.lastFiredTime);}});f.exports=ba;},null);
__d('AdsPixelConversionDetailUtil',['AdsAccountStoreWrapper','AdsConversionPixelStatusUI','AdsPixelConversionTypes','AdsPixelStatus','AdsPixelStore','getByPath'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n={getConversionDetails:function(o){if(o.type===j.NEW){var p=l.getPixelInfo(o.pixelID),q=m(p,['owner_ad_account','account_id']),r=h.getAccountID();return {businessID:m(p,['owner_business','id']),businessName:m(p,['owner_business','name']),isPixelOwner:q===r,pixelID:o.pixelID,pixelName:m(p,['name'])};}else return {pixelID:o.pixelID,pixelName:o.name};},getConversionStatusDescription:function(o){if(o.type===j.NEW){var p=new k(o.lastFiredTime);return p.getUserFacingStatus();}else return i.getStatusUI(o).text;}};f.exports=n;},null);
__d('AdsPixelSelectorOption.react',['AdsPixelConversionItemFlyoutDetail.react','AdsPixelConversionDetailUtil','AdsPixelConversionTypes','AdsRichSelector.react','ContextualLayerAutoFlip','LayerHideOnBlur','React','ReactDOM','ReactComponentWithPureRenderMixin','ReactLayeredComponentMixin','XUICard.react','XUIContextualDialog.react','cx'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){'use strict';if(c.__markCompiled)c.__markCompiled();var u=k.Option,v=n.PropTypes,w=n.createClass({displayName:'AdsPixelSelectorOption',mixins:[q,p],propTypes:{icon:v.object.isRequired,isFacebookPixel:v.bool.isRequired,label:v.string.isRequired,pixel:v.object.isRequired,statusDescription:v.node.isRequired,value:v.string.isRequired},renderLayers:function(){var x=this.props.pixel;if(!x)return {};if(this.props.isFacebookPixel){x.type=j.NEW;x.pixelID=x.id;}var y=i.getConversionDetails(x);return {flyout:n.createElement(s,{position:'left',behaviors:{ContextualLayerAutoFlip:l,LayerHideOnBlur:m},contextRef:(function(){return this.refs.selectorItem;}).bind(this),hoverContext:o.findDOMNode(this.refs.selectorItem),hoverShowDelay:0,hoverHideDelay:0},n.createElement(r,{className:"_2ph_"},n.createElement(h,{conversion:x,conversionDetails:y,eventName:x.name,isFacebookPixel:this.props.isFacebookPixel,statusIcon:this.props.icon,statusDescription:this.props.statusDescription})))};},render:function(){return (n.createElement(u,babelHelpers._extends({ref:'selectorItem'},this.props)));}});f.exports=w;},null);
__d('AdsPixelSelector.react',['AdsPixelConversionStatusUtils','AdsPixelSelectorOption.react','AdsPixelSelectorStoreWrapper','AdsPixelStatusUtils','AdsRichSelector.react','React','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){'use strict';if(c.__markCompiled)c.__markCompiled();var p=l.Option,q=l.Separator,r=m.PropTypes,s=m.createClass({displayName:'AdsPixelSelector',propTypes:{conversionPixels:r.object.isRequired,maxheight:r.number.isRequired,maxwidth:r.number.isRequired,onChange:r.func,selectedValue:r.string,size:r.string,unifiedPixels:r.object.isRequired},render:function(){if(!this._getShouldDisplaySelector())return null;var t=m.createElement('div',null);if(this._getHasPixel(this.props.unifiedPixels))t=this._getUnifiedPixelSelectorOptions().props.children;var u=m.createElement('div',null);if(this._getHasPixel(this.props.conversionPixels))u=this._getConversionPixelSelectorOptions().props.children;return (m.createElement(l,{defaultValue:this.props.selectedValue||'',key:'pixel_'+this.props.selectedValue,maxheight:this.props.maxheight,maxwidth:this.props.maxwidth,onChange:this._handleChange,size:this.props.size},this._getNoPixelOption(),t,u));},_getShouldDisplaySelector:function(){return j.getShouldDisplaySelector(this.props.unifiedPixels,this.props.conversionPixels);},_getHasPixel:function(t){return j.getHasPixel(t);},_getUnifiedPixelSelectorOptions:function(){var t=o._("Custom Audience Pixel"),u=this._getPixelSelectorOptionsForType(true,this.props.unifiedPixels);return (m.createElement('div',null,this._getPixelSeparator(t),u));},_getConversionPixelSelectorOptions:function(){var t=o._("Conversion Tracking Pixel"),u=this._getPixelSelectorOptionsForType(false,this.props.conversionPixels);return (m.createElement('div',null,this._getPixelSeparator(t),u));},_getPixelSelectorOptionsForType:function(t,u){var v=[];Object.keys(u).forEach(function(w){var x=u[w],y=h.getStatusFromConversion(x),z=k.getUserFacingStatus(y),aa=k.getIcon(y);v.push(m.createElement(i,{icon:aa,isFacebookPixel:t,key:x.id,label:x.name,pixel:x,statusDescription:z,value:x.id},m.createElement('div',{className:"_31wu"},m.createElement('div',{className:"_31wv ellipsis"},x.name),m.createElement('div',{className:"_31ww"},o._("ID: {Conversion tracking pixel ID}",[o.param('Conversion tracking pixel ID',x.id)])))));});return v;},_getPixelSeparator:function(t){return (m.createElement(q,{key:t,label:t}));},_getNoPixelOption:function(){var t;if(this.props.selectedValue){t=o._("No pixel selected");}else t=o._("Choose a pixel (optional)");return (m.createElement(p,{key:'default',label:t,value:''},t));},_handleChange:function(t){this.props.onChange&&this.props.onChange(t.value);}});f.exports=s;},null);
__d('AdsGoalCategories',['AdsPixelConversionStandardEvents','ImmutableObject','fbt'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k=babelHelpers._extends({},h,{Other:{name:j._("Other"),custom_event_type:'OTHER'}});f.exports=new i(k);},null);
__d('AdsGoalServerActionTypes',['AdsDispatchActionTypeUtils','keyMirror'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=i({CLEAR_ERROR:null,CREATED_GOAL:null,EDITED_GOAL:null,ERROR_CREATE_GOAL:null,ERROR_EDIT_GOAL:null,RECEIVE_GOALS:null,RECEIVE_GOAL_STATS:null}),k=h.createActionTypeMap('GOAL_SERVER_ACTION',j);f.exports=k;},null);
__d('AdsGoalViewActionTypes',['AdsDispatchActionTypeUtils','keyMirror'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=i({DISMISS_NOTICE:null,SHOW_DESCRIPTION:null,START_CREATION:null,START_EDIT:null,TOGGLE_VALUE_ROW:null,UPDATE_CATEGORY:null,UPDATE_CONVERSION_VALUE:null,UPDATE_DESCRIPTION:null,UPDATE_NAME:null,UPDATE_RULE:null,UPDATE_SORT_SETTING:null,UPDATE_TABLE_SELECTION:null}),k=h.createActionTypeMap('GOAL_VIEW_ACTION',j);f.exports=k;},null);
__d('AdsGoalDraftStore',['AdsBaseStore','AdsGoalCategories','AdsGoalServerActionTypes','AdsGoalViewActionTypes','AdsPixelDialogTypes','AdsPixelViewActionTypes','WebsiteCustomAudienceModel'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o,p;'use strict';o=babelHelpers.inherits(q,h);p=o&&o.prototype;function q(){p.constructor.call(this);this.$AdsGoalDraftStoreClass1();}q.prototype.$AdsGoalDraftStoreClass1=function(){this.$AdsGoalDraftStoreClass2=new n.RuleClause();this.$AdsGoalDraftStoreClass3=i.InitiateCheckout.custom_event_type;this.$AdsGoalDraftStoreClass4='';this.$AdsGoalDraftStoreClass5='';this.$AdsGoalDraftStoreClass6='url';this.$AdsGoalDraftStoreClass7=false;this.$AdsGoalDraftStoreClass8=false;this.$AdsGoalDraftStoreClass9=null;this.$AdsGoalDraftStoreClass10='';};q.prototype.onDispatchToken=function(s){var t=s.action;switch(t.actionType){case k.UPDATE_RULE:this.$AdsGoalDraftStoreClass2=t.data.rule;this.inform('change');break;case k.UPDATE_CATEGORY:this.$AdsGoalDraftStoreClass3=t.data.category;this.inform('change');break;case k.UPDATE_NAME:this.$AdsGoalDraftStoreClass4=t.data.name;this.inform('change');break;case k.UPDATE_DESCRIPTION:this.$AdsGoalDraftStoreClass5=t.data.description;this.inform('change');break;case k.SHOW_DESCRIPTION:this.$AdsGoalDraftStoreClass7=true;this.inform('change');break;case k.TOGGLE_VALUE_ROW:this.$AdsGoalDraftStoreClass8=t.data.showValueRow;this.inform('change');break;case k.UPDATE_CONVERSION_VALUE:this.$AdsGoalDraftStoreClass9=t.data.conversionValue;this.inform('change');break;case j.CREATED_GOAL:this.$AdsGoalDraftStoreClass10=t.feedback.goal.id;this.inform('change');break;case m.DIALOG_TYPE_CHANGE:if(t.data.dialogType===l.NO_DIALOG){this.$AdsGoalDraftStoreClass1();this.inform('change');}break;}};q.prototype.isRuleValid=function(){return this.$AdsGoalDraftStoreClass2.tokens.length>0;};q.prototype.getRule=function(){return this.$AdsGoalDraftStoreClass2;};q.prototype.getCategory=function(){return this.$AdsGoalDraftStoreClass3;};q.prototype.getName=function(){return this.$AdsGoalDraftStoreClass4;};q.prototype.getDescription=function(){return this.$AdsGoalDraftStoreClass5;};q.prototype.getScope=function(){return this.$AdsGoalDraftStoreClass6;};q.prototype.showDescription=function(){return this.$AdsGoalDraftStoreClass7;};q.prototype.showValueRow=function(){return this.$AdsGoalDraftStoreClass8;};q.prototype.getConversionValue=function(){return this.$AdsGoalDraftStoreClass9;};q.prototype.getGoalID=function(){return this.$AdsGoalDraftStoreClass10;};q.prototype.showPotentialWarnings=function(){return false;};var r=new q();f.exports=r;},null);
__d('AdsGoalServerActions',['AdsDispatcher','AdsGoalServerActionTypes'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={updateGoals:function(k){h.handleUpdateFromServerResponse({feedback:{goalList:k},type:i.RECEIVE_GOALS});},createdGoal:function(k){h.handleUpdateFromServerResponse({feedback:{goal:k},type:i.CREATED_GOAL});},editedGoal:function(){h.handleUpdateFromServerResponse({type:i.EDITED_GOAL});},errorCreateGoal:function(k){h.handleUpdateFromServerResponse({feedback:{error:k},type:i.ERROR_CREATE_GOAL});},errorEditGoal:function(k){h.handleUpdateFromServerResponse({feedback:{error:k},type:i.ERROR_EDIT_GOAL});},clearError:function(){h.handleUpdateFromServerResponse({type:i.CLEAR_ERROR});},updateGoalStats:function(k,l,m){h.handleUpdateFromServerResponse({feedback:{conversionID:l,stats:m},statsType:k,type:i.RECEIVE_GOAL_STATS});}};f.exports=j;},null);
__d('AdsGoalEdit',['AdsGoalServerActions','GraphAPI'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={update:function(k,l,m){i('2.4').object('customconversion',k.id).post({description:l,name:m}).done(function(n){if(n.success){h.updateGoals([Object.assign(k||{},{description:l,name:m})]);h.editedGoal();}},function(n){return h.errorEditGoal(n);});}};f.exports=j;},null);
__d('AdsGoalEditCategoryRow.react',['AdsGoalCategories','Layout.react','React','XUIGrayText.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=i.Column,o=j.PropTypes,p=j.createClass({displayName:'AdsGoalEditCategoryRow',propTypes:{category:o.string},render:function(){return (j.createElement(i,{className:"_4dmv"},j.createElement(n,{className:"_4dmw"},this._getLabel()),j.createElement(n,null,j.createElement('div',{className:"_4dmx"},j.createElement(k,{display:'block',shade:'medium',weight:'bold'},this._getCategory())))));},_getCategory:function(){return Object.keys(h).filter((function(q){return (h[q].custom_event_type===this.props.category);}).bind(this)).reduce(function(q,r){return h[r].name;},null);},_getLabel:function(){return (j.createElement('div',null,j.createElement(k,{shade:'light',weight:'bold'},m._("Category"))));}});f.exports=p;},null);
__d('AdsGoalEditDescRow.react',['Layout.react','Link.react','React','XUIGrayText.react','XUITextInput.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=h.Column,p=j.PropTypes,q=j.createClass({displayName:'AdsGoalEditDescRow',propTypes:{description:p.string,onDescriptionEdit:p.func.isRequired,onShowDescription:p.func.isRequired,showDescription:p.bool.isRequired},render:function(){if(!this.props.showDescription)return (j.createElement(i,{onClick:this.props.onShowDescription,className:"_1cde"},n._("Add a description")));return (j.createElement(h,{className:"_1cdf"},j.createElement(o,{className:"_1cdg"},this._getLabel()),j.createElement(o,null,j.createElement(l,{value:this.props.description,onChange:this._onChange,height:'tall',className:"_1cdh"}))));},_getLabel:function(){return (j.createElement(k,{shade:'light',weight:'bold'},n._("Description")));},_getPlaceholder:function(){return n._("Add a description");},_onChange:function(event){this.props.onDescriptionEdit(event.target.value);}});f.exports=q;},null);
__d('AdsGoalEditNameRow.react',['Layout.react','React','XUIGrayText.react','XUITextInput.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=h.Column,o=i.PropTypes,p=i.createClass({displayName:'AdsGoalEditNameRow',propTypes:{name:o.string,onNameEdit:o.func.isRequired},render:function(){return (i.createElement(h,{className:"_4m5r"},i.createElement(n,{className:"_4m5s"},this._getLabel()),i.createElement(n,null,i.createElement(k,{value:this.props.name,onChange:this._onChange,height:'tall',className:"_4m5t"}))));},_getLabel:function(){return (i.createElement(j,{shade:'light',weight:'bold'},m._("Name")));},_onChange:function(event){this.props.onNameEdit(event.target.value);}});f.exports=p;},null);
__d('AdsGoalEditPixelRow.react',['AdsPixelPickerWrapper.react','Layout.react','React','XUIGrayText.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=i.Column,o=j.PropTypes,p=j.createClass({displayName:'AdsGoalEditPixelRow',propTypes:{pixelID:o.string},render:function(){return (j.createElement(i,{className:"_4dku"},j.createElement(n,{className:"_4dkv"},this._getLabel()),j.createElement(n,null,j.createElement(h,{isPickerDisabled:true,selectedPixelID:this.props.pixelID}))));},_getLabel:function(){return (j.createElement(k,{shade:'light',weight:'bold'},m._("Pixel")));}});f.exports=p;},null);
__d('AdsGoalEditRuleRow.react',['Layout.react','React','WebsiteCustomAudienceModel','WebsiteCustomAudienceOperators','XUIGrayText.react','cx','dotAccess','fbt','intlList'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();var q=h.Column,r=j.Operations,s=k.URLOperators,t=i.PropTypes,u=i.createClass({displayName:'AdsGoalEditRuleRow',propTypes:{pixelRule:t.string},getInitialState:function(){var v=r.deserializeRule(this.props.pixelRule),w=n(v,'clauses')[0],x=r.getOperatorLabel(s,n(w,'filter')),y=n(w,'tokens');return {ruleLabel:x,ruleTokens:y};},render:function(){return (i.createElement(h,{className:"_5dt6"},i.createElement(q,{className:"_5dt7"},this._getLabel()),i.createElement(q,{className:"_5dt8"},this._getRuleInfo())));},_getLabel:function(){return (i.createElement('div',null,i.createElement(l,{shade:'light',weight:'bold'},o._("Rule"))));},_getRuleInfo:function(){return (i.createElement('div',null,i.createElement(l,{shade:'light',weight:'bold'},o._("Include traffic that meets the following conditions:")),i.createElement('div',{className:"_5dt9"},i.createElement(l,{display:'block',shade:'medium',weight:'bold'},o._("{rule type}",[o.param('rule type',this.state.ruleLabel)])),this._getTokenList())));},_getTokenList:function(){if(!this.state.ruleTokens)return null;return p(this.state.ruleTokens,p.CONJUNCTIONS.OR);}});f.exports=u;},null);
__d('AdsGoalEditContent.react',['AdsGoalEdit','AdsGoalEditCategoryRow.react','AdsGoalEditDescRow.react','AdsGoalEditNameRow.react','AdsGoalEditPixelRow.react','AdsGoalEditRuleRow.react','AdInterfacesUiLogger','AdsPixelDialogTypes','AdsPixelViewActions','React','XUIDialogBody.react','XUIDialogButton.react','XUIDialogCancelButton.react','XUIDialogFooter.react','XUIDialogTitle.react','XUINotice.react','cx','dotAccess','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z){'use strict';if(c.__markCompiled)c.__markCompiled();var aa=q.PropTypes,ba=q.createClass({displayName:'AdsGoalEditContent',propTypes:{customConversion:aa.object,error:aa.object},getInitialState:function(){var ca=y(this.props.customConversion,'custom_event_type'),da=y(this.props.customConversion,'id'),ea=y(this.props.customConversion,'description'),fa=y(this.props.customConversion,'name'),ga=y(this.props.customConversion,'pixel_id'),ha=y(this.props.customConversion,'pixel_rule'),ia=!!ea;return {category:ca,customConversionID:da,description:ea,name:fa,pixelID:ga,rule:ha,showDescription:ia};},render:function(){return (q.createElement('div',{className:"_2qmc"},q.createElement(v,null,this._getTitle()),q.createElement(r,{className:"_2qmd"},q.createElement(l,{pixelID:this.state.pixelID}),q.createElement(m,{pixelRule:this.state.rule}),q.createElement(i,{category:this.state.category}),q.createElement(k,{name:this.state.name,onNameEdit:this._onNameEdit}),q.createElement(j,{description:this.state.description,onDescriptionEdit:this._onDescriptionEdit,onShowDescription:this._onShowDescription,showDescription:this.state.showDescription})),this._getError(),this._getFooter()));},_getTitle:function(){return z._("Edit a Custom Conversion");},_getError:function(){if(!this.props.error)return null;var ca=this.props.error.error_user_title||'Error',da=this.props.error.error_user_msg||'Edit failed',ea=z._("{error message}",[z.param('error message',ca+': '+da)]);return (q.createElement(w,{use:'warn',className:"_2qme"},ea));},_getFooter:function(){return (q.createElement(u,null,q.createElement(t,{onClick:this._logCancel}),q.createElement(s,{use:'confirm',label:z._("Done"),disabled:!this.state.name,onClick:this._onUpdate})));},_logCancel:function(){p.dialogTypeChange(o.NO_DIALOG);n.log('ads_pixel_goal_edit_cancel');},_onDescriptionEdit:function(ca){this.setState({description:ca||''});},_onShowDescription:function(){this.setState({showDescription:true});},_onNameEdit:function(ca){this.setState({name:ca||''});},_onUpdate:function(){if(this.state.name===null||this.state.description===null||!this.props.customConversion)return;h.update(this.props.customConversion,this.state.description,this.state.name);n.log('ads_pixel_goal_edit_done');}});f.exports=ba;},null);
__d('AdsGoalEditStore',['AdsBaseStore','AdsGoalServerActionTypes','AdsGoalViewActionTypes','AdsPixelDialogTypes','AdsPixelViewActionTypes'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m,n;'use strict';m=babelHelpers.inherits(o,h);n=m&&m.prototype;function o(){n.constructor.call(this);this.$AdsGoalEditStoreClass1();}o.prototype.$AdsGoalEditStoreClass1=function(){this.$AdsGoalEditStoreClass2=false;this.$AdsGoalEditStoreClass3=null;};o.prototype.onDispatchToken=function(q){var r=q.action;switch(r.actionType){case j.START_EDIT:this.$AdsGoalEditStoreClass2=true;this.$AdsGoalEditStoreClass3=null;this.inform('change');break;case i.EDITED_GOAL:this.$AdsGoalEditStoreClass2=false;this.inform('change');break;case i.CLEAR_ERROR:this.$AdsGoalEditStoreClass3=null;this.inform('change');break;case i.ERROR_EDIT_GOAL:this.$AdsGoalEditStoreClass3=r.feedback.error;this.$AdsGoalEditStoreClass2=false;this.inform('change');break;case l.DIALOG_TYPE_CHANGE:if(r.data.dialogType===k.NO_DIALOG){this.$AdsGoalEditStoreClass1();this.inform('change');}break;}};o.prototype.isEditing=function(){return this.$AdsGoalEditStoreClass2;};o.prototype.getError=function(){return this.$AdsGoalEditStoreClass3;};var p=new o();f.exports=p;},null);
__d('AdsGoalGraphAPI',['AdsAccountStoreWrapper','AdsGoalServerActions','AdsGraphAPI','AdsPixelStatusUtils','GraphEdgeName','StatsTypeToAggregationType','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=['account_id','application','creation_time','custom_event_type','default_conversion_value','description','first_fired_time','id','is_archived','last_fired_time','name','pixel','pixel_rule'],p={loadGoals:function(){if(!h.canSeeCustomConversion())return;j.getGeneralMigrationVersion().adaccount(h.getAccountID()).edge(l.CUSTOMCONVERSIONS).get({fields:o}).done(function(q){i.updateGoals(q.data);});},loadStats:function(q,r){!(q in m)?n(0):undefined;j.getGeneralMigrationVersion().object('customconversions',r).edge('stats').get({aggregation:m[q],start_time:k.getStatsStartTime()}).done(function(s){i.updateGoalStats(q,r,s.data);});}};f.exports=p;},null);
__d('AdsGoalTableSettingStore',['AdsBaseStore','AdsGoalViewActionTypes'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j,k;'use strict';var l='ASC';j=babelHelpers.inherits(m,h);k=j&&j.prototype;function m(){k.constructor.call(this);this.init();}m.prototype.init=function(){this.$AdsGoalTableSettingStoreClass1=null;this.$AdsGoalTableSettingStoreClass2='';this.$AdsGoalTableSettingStoreClass3=l;};m.prototype.getStoreName=function(){return 'AdsGoalTableSettingStore';};m.prototype.onDispatchToken=function(o){var p=o.action,q=p.data||{};switch(p.actionType){case i.UPDATE_SORT_SETTING:this.$AdsGoalTableSettingStoreClass4(q.dataKey,q.sortStatus);this.inform('change');break;case i.UPDATE_TABLE_SELECTION:this.$AdsGoalTableSettingStoreClass5(p.data.selectedID);this.inform('change');break;}};m.prototype.getSelectedID=function(){return this.$AdsGoalTableSettingStoreClass1;};m.prototype.getSortDataKey=function(){return this.$AdsGoalTableSettingStoreClass2;};m.prototype.getSortStatus=function(){return this.$AdsGoalTableSettingStoreClass3;};m.prototype.$AdsGoalTableSettingStoreClass4=function(o,p){this.$AdsGoalTableSettingStoreClass2=o;this.$AdsGoalTableSettingStoreClass3=p;};m.prototype.$AdsGoalTableSettingStoreClass5=function(o){this.$AdsGoalTableSettingStoreClass1=o;};var n=new m();f.exports=n;},null);
__d('AdsGoalStore',['AdsAccountStoreWrapper','AdsBaseStore','AdsCustomConversionsUtil','AdsGoalCategories','AdsGoalGraphAPI','AdsGoalServerActionTypes','AdsGoalTableSettingStore','AdsGoalViewActionTypes','AdsLoadState','AdsPEActionTypes','AdsPixelConversionTypes','AdsPixelStore','ImmutableObject','XAdsManagerPixelsController','dotAccess'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){if(c.__markCompiled)c.__markCompiled();var w,x;'use strict';var y='ASC',z=Object.keys(k).reduce(function(ca,da){var ea=k[da];ca[ea.custom_event_type]=ea.name;return ca;},{});w=babelHelpers.inherits(aa,i);x=w&&w.prototype;function aa(){x.constructor.call(this);this.$AdsGoalStoreClass1();}aa.prototype.getStoreName=function(){return 'AdsGoalStore';};aa.prototype.onDispatchToken=function(ca){var da=ca.action;switch(da.actionType){case m.RECEIVE_GOALS:da.feedback.goalList.filter(function(ea){return !ea.is_archived;}).forEach((function(ea){ea.lastFiredTime=ea.last_fired_time;ea.category=z[ea.custom_event_type]||'';ea.pixelID=ea.pixel.id;ea.type=r.NEW;ea.value=ea.name;this.$AdsGoalStoreClass2[ea.pixelID+'_'+ea.pixel_rule]=ea;this.$AdsGoalStoreClass3[ea.id]=new t(ea);}).bind(this));this.$AdsGoalStoreClass4=p.LOADED;this.inform('change');break;case m.CREATED_GOAL:this.$AdsGoalStoreClass5();break;case o.UPDATE_TABLE_SELECTION:this.$AdsGoalStoreClass6(da.data.selectedID);this.inform('change');break;case q.ACCOUNT.SELECT:this.$AdsGoalStoreClass1();this.inform('change');break;}};aa.prototype.getGoal=function(ca){var da=ca.pixel_id+'_'+ca.pixel_rule;return this.$AdsGoalStoreClass2[da]?this.$AdsGoalStoreClass2[da]:null;};aa.prototype.getGoalByID=function(ca){var da=this.getGoals();return da[ca]||null;};aa.prototype.getGoalsByPixelID=function(ca){return j.getCustomConversionsMatchedPixel(this.$AdsGoalStoreClass7(),ca);};aa.prototype.getGoalByConversionIDOrNull=function(ca){var da=this.getGoals();for(var ea in da)if(da[ea].id===ca)return da[ea];return null;};aa.prototype.hasGoals=function(){return Object.keys(this.$AdsGoalStoreClass2).length>0;};aa.prototype.getGoals=function(){if(this.$AdsGoalStoreClass4===p.NOT_LOADED){this.$AdsGoalStoreClass4=p.LOADING;l.loadGoals();}return this.$AdsGoalStoreClass2;};aa.prototype.getGoalListByID=function(){if(this.$AdsGoalStoreClass4===p.NOT_LOADED){this.$AdsGoalStoreClass4=p.LOADING;l.loadGoals();}return this.$AdsGoalStoreClass3;};aa.prototype.getGoalName=function(ca){return v(this.getGoalListByID()[ca]||{},'name');};aa.prototype.$AdsGoalStoreClass8=function(){return Object.keys(this.getGoals()).map((function(ca){return this.$AdsGoalStoreClass2[ca].id;}).bind(this));};aa.prototype.$AdsGoalStoreClass7=function(){var ca=h.getAccountID(),da=this.getGoals();return Object.keys(da).map(function(ea){var fa=da[ea],ga=fa.category,ha=fa.id,ia=fa.pixel.id,ja=fa.name,ka=fa.lastFiredTime||'',la=fa.selected,ma=s.getName(ia),na=u.getURIBuilder().setInt('act',ca).setInt('pixel_id',ia).getURI(),oa=ka;return {category:ga,customConversionID:ha,id:ea,lastFiredTime:ka,name:ja,pixelID:ia,selected:la,source:ma,sourceUri:na,status:oa};});};aa.prototype.getSortedGoals=function(){return j.sort(this.$AdsGoalStoreClass7(),n.getSortDataKey().toLowerCase(),n.getSortStatus());};aa.prototype.getTimeFilteredGoals=function(ca,da){var ea=da||new Date();return this.$AdsGoalStoreClass7().filter(function(fa){return j.filterByTime(fa,ca,ea);});};aa.prototype.getShouldShowUpsellCard=function(ca){return this.getGoalsByPixelID(ca).length===0;};aa.prototype.isGoalListLoaded=function(){return this.$AdsGoalStoreClass4===p.LOADED;};aa.prototype.$AdsGoalStoreClass6=function(ca){Object.keys(this.$AdsGoalStoreClass2).forEach((function(da){return this.$AdsGoalStoreClass2[da].selected=da===ca;}).bind(this));};aa.prototype.$AdsGoalStoreClass5=function(){this.$AdsGoalStoreClass4=p.LOADING;l.loadGoals();};aa.prototype.$AdsGoalStoreClass1=function(){this.$AdsGoalStoreClass4=p.NOT_LOADED;this.$AdsGoalStoreClass2={};this.$AdsGoalStoreClass3={};this.$AdsGoalStoreClass9='';this.$AdsGoalStoreClass10=y;};var ba=new aa();f.exports=ba;},null);
__d('AdsGoalEditContainer.react',['AdsFluxMixinLegacy_DO_NOT_USE','AdsGoalEditContent.react','AdsGoalEditStore','AdsGoalStore','AdsGoalTableSettingStore','React'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=m.createClass({displayName:'AdsGoalEditContainer',mixins:[h.AdsFluxMixinLegacyOthers([j,k,l])],statics:{calculateState:function(){var o=l.getSelectedID(),p=k.getGoalByID(o),q=j.getError();return {customConversion:p,error:q};}},render:function(){return (m.createElement(i,{customConversion:this.state.customConversion,error:this.state.error}));}});f.exports=n;},null);
__d('AdsGoalViewActions',['AdInterfacesUiLogger','AdsDispatcher','AdsGoalViewActionTypes'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k={updateRule:function(l){i.handleUpdateFromViewAction({data:{rule:l},type:j.UPDATE_RULE});},updateCategory:function(l){i.handleUpdateFromViewAction({data:{category:l},type:j.UPDATE_CATEGORY});},updateName:function(l){i.handleUpdateFromViewAction({data:{name:l},type:j.UPDATE_NAME});},updateDescription:function(l){i.handleUpdateFromViewAction({data:{description:l},type:j.UPDATE_DESCRIPTION});},showDescription:function(){i.handleUpdateFromViewAction({type:j.SHOW_DESCRIPTION});},toggleValueRow:function(l){i.handleUpdateFromViewAction({data:{showValueRow:l},type:j.TOGGLE_VALUE_ROW});},updateConversionValue:function(l){i.handleUpdateFromViewAction({data:{conversionValue:l},type:j.UPDATE_CONVERSION_VALUE});},updateCustomConversionTableSelection:function(l){i.handleUpdateFromViewAction({data:{selectedID:l},type:j.UPDATE_TABLE_SELECTION});h.log(j.UPDATE_TABLE_SELECTION,{selectedID:l});},startCreation:function(){i.handleUpdateFromViewAction({type:j.START_CREATION});},startEdit:function(){i.handleUpdateFromViewAction({type:j.START_EDIT});},updateSortSetting:function(l,m){i.handleUpdateFromViewAction({data:{dataKey:l,sortStatus:m},type:j.UPDATE_SORT_SETTING});},dismissNotice:function(){i.handleUpdateFromViewAction({type:j.DISMISS_NOTICE});}};f.exports=k;},null);
__d('AdsGoalCategoryRow.react',['AdsFluxMixinLegacy_DO_NOT_USE','AdsGoalCategories','AdsGoalDraftStore','AdsGoalViewActions','AdsHelpLink.react','Layout.react','React','ReactComponentWithPureRenderMixin','XUIGrayText.react','XUISelector.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){'use strict';if(c.__markCompiled)c.__markCompiled();var t=m.Column,u=q.Option,v=n.createClass({displayName:'AdsGoalCategoryRow',mixins:[o,h.AdsFluxMixinLegacyOthers([j])],statics:{calculateState:function(){return {category:j.getCategory()};}},render:function(){return (n.createElement(m,{className:"_5e80"},n.createElement(t,{className:"_5e92"},this._getLabel()),n.createElement(t,null,n.createElement(q,{onChange:this._onChange,value:this.state.category,size:'large',className:"_5e93"},this._getOptions()))));},_getLabel:function(){return (n.createElement('div',null,n.createElement(p,{shade:'light',weight:'bold'},s._("Category")),n.createElement(l,{position:'above'},s._("Choose which category this custom conversion belongs to."))));},_getOptions:function(){return Object.keys(i).map(function(w){return (n.createElement(u,{value:i[w].custom_event_type,key:w},i[w].name));});},_onChange:function(w){k.updateCategory(w.value);}});f.exports=v;},null);
__d('AdsGoalStepOneContent.react',['AdInterfacesUiLogger','AdsGoalCategoryRow.react','AdsGoalRuleRow.react','AdsPixelDialogTypes','AdsPixelPickerRow.react','AdsPixelViewActions','React','XUIDialogBody.react','XUIDialogButton.react','XUIDialogCancelButton.react','XUIDialogFooter.react','XUIDialogTitle.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){'use strict';if(c.__markCompiled)c.__markCompiled();var v=n.PropTypes,w=n.createClass({displayName:'AdsGoalStepOneContent',propTypes:{isRuleValid:v.bool,rule:v.object,showPotentialWarnings:v.bool},render:function(){return (n.createElement('div',{className:"_29j6"},n.createElement(s,null,this._getTitle()),n.createElement(o,{className:"_29j7"},n.createElement('div',{className:"_2e5f"},n.createElement(l,null)),n.createElement(j,this.props),n.createElement(i,null)),this._getFooter()));},_getTitle:function(){return u._("Create a Custom Conversion");},_getFooter:function(){return (n.createElement(r,null,n.createElement(q,{onClick:this._logCancel}),n.createElement(p,{disabled:!this.props.isRuleValid,use:'confirm',label:u._("Next"),onClick:this._logNext})));},_logNext:function(){m.dialogTypeChange(k.GOAL_CREATE_STEP_TWO);h.log('ads_pixel_goal_creation_next_step_1');},_logCancel:function(){m.dialogTypeChange(k.NO_DIALOG);h.log('ads_pixel_goal_creation_cancel_step_1');}});f.exports=w;},null);
__d('AdsGoalCompleteRow.react',['AdsFluxMixinLegacy_DO_NOT_USE','AdsGoalDraftStore','Image.react','Layout.react','React','ReactComponentWithPureRenderMixin','XUIGrayText.react','cx','fbt','ix'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=k.Column,s=k.FillColumn,t=l.createClass({displayName:'AdsGoalCompleteRow',mixins:[m,h.AdsFluxMixinLegacyOthers([i])],statics:{calculateState:function(){return {name:i.getName(),goalID:i.getGoalID()};}},render:function(){return (l.createElement('div',{className:"_3t74"},l.createElement(k,null,l.createElement(r,{className:"_3t77"},l.createElement(j,{src:q('/images/ads/pixel/up_done.png'),className:"_3t78"})),l.createElement(s,null,l.createElement('div',{className:"_3-9c"},l.createElement('div',{className:'ellipsis','data-hover':'tooltip','data-tooltip-display':'overflow'},l.createElement(n,{weight:'bold',size:'large',shade:'medium'},p._("You created the custom conversion \"{custom conversion name}\"",[p.param('custom conversion name',this.state.name)]))),this._getDetail()))),l.createElement('div',{className:"_3t79"})));},_getDetail:function(){return (l.createElement(n,{size:'small',display:'block',className:"_3t7a"},p._("ID: {custom conversion id}",[p.param('custom conversion id',this.state.goalID)])));}});f.exports=t;},null);
__d('AdsGoalNextStepRow.react',['React','ReactComponentWithPureRenderMixin','XUIGrayText.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=h.createClass({displayName:'AdsGoalNextStepRow',mixins:[i],render:function(){return (h.createElement('div',{className:"_5f3o"},h.createElement(j,{weight:'bold',size:'large',shade:'medium',display:'block'},l._("Next Step")),h.createElement(j,{size:'medium',display:'block',className:"_3-8x"},l._("Use this custom conversion when you create a new website conversion ad."))));}});f.exports=m;},null);
__d('AdsGoalPixelStatusRow.react',['AdsAccountStoreWrapper','AdsFluxMixinLegacy_DO_NOT_USE','AdsPixelPickerRow.react','AdsPixelPickerStore','AdsPixelStatus','AdsPixelStatusEnum','AdsPixelStore','AdsPixelStoreWrapper','BizSiteIdentifier.brands','Link.react','React','ReactComponentWithPureRenderMixin','XUINotice.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){'use strict';if(c.__markCompiled)c.__markCompiled();var w=r.PropTypes,x=r.createClass({displayName:'AdsGoalPixelStatusRow',contextTypes:{getPixelDetailURI:w.func.isRequired},mixins:[s,i.AdsFluxMixinLegacyOthers([k,n])],statics:{calculateState:function(){var y=String(o.getCurrentPixelID()),z=new l(n.getPixelLastFiringTime(y)).getStatus();return {pixelID:y,status:z};}},render:function(){if(this.state.status===m.ACTIVE)return null;return (r.createElement('div',{className:"_aqi"},r.createElement(j,{isPickerDisabled:true,className:"_aqj"}),r.createElement(t,null,this._getNoticeText(),this._getLink())));},_getNoticeText:function(){if(this.state.status===m.IN_ACTIVE)return v._("We haven't received fires from this pixel recently, the custom conversion will not be ready until the pixel is active.");return v._("We haven't received fires from this pixel yet, the custom conversion will not be ready until the pixel is active.");},_getLink:function(){var y=this.context.getPixelDetailURI({accountID:h.getAccountID(),pixelID:this.state.pixelID,businessID:p.getBusinessID()});return (r.createElement(q,{className:"_3-99",href:y,target:'_blank'},v._("Check pixel status.")));}});f.exports=x;},null);
__d('AdsGoalStepThreeContent.react',['AdInterfacesUiLogger','AdsGoalCompleteRow.react','AdsGoalNextStepRow.react','AdsGoalPixelStatusRow.react','AdsPixelDialogTypes','AdsPixelViewActions','React','XUIDialogBody.react','XUIDialogButton.react','XUIDialogFooter.react','XUIDialogTitle.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){'use strict';if(c.__markCompiled)c.__markCompiled();var u=n.createClass({displayName:'AdsGoalStepThreeContent',render:function(){return (n.createElement('div',{className:"_2hfd"},n.createElement(r,null,this._getTitle()),n.createElement(o,{className:"_2hfe"},n.createElement(i,null),n.createElement(j,null),n.createElement(k,null)),this._getFooter()));},_getTitle:function(){return t._("Create a Custom Conversion");},_getFooter:function(){return (n.createElement(q,null,n.createElement(p,{label:t._("Create Ad"),onClick:this._logCreateAd}),n.createElement(p,{use:'confirm',label:t._("Done"),onClick:this._logDone})));},_logCreateAd:function(){m.dialogTypeChange(l.NO_DIALOG);h.log('ads_pixel_goal_creation_create_ad_step_3');},_logDone:function(){m.dialogTypeChange(l.NO_DIALOG);h.log('ads_pixel_goal_creation_done_step_3');}});f.exports=u;},null);
__d('AdsGoalCreation',['AdsAccountStoreWrapper','AdsGoalDraftStore','AdsGoalServerActions','AdsPixelStoreWrapper','GraphAPI','WebsiteCustomAudienceModel','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=m.Operations,p={create:function(){var q=i.getRule(),r=o.serializeClause(q,i.getScope());!r?n(0):undefined;var s=babelHelpers._extends({name:i.getName(),pixel_id:k.getCurrentPixelID(),description:i.getDescription(),pixel_rule:r,default_conversion_value:i.getConversionValue(),custom_event_type:i.getCategory()},{});l('2.4').adaccount(h.getAccountID()).edge('customconversions').post(s).done(function(t){s.id=t.id;j.createdGoal(s);},function(t){j.errorCreateGoal(t);});}};f.exports=p;},null);
__d('AdsGoalCreationStore',['AdsBaseStore','AdsGoalServerActionTypes','AdsGoalViewActionTypes','AdsPixelDialogTypes','AdsPixelViewActionTypes'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m,n;'use strict';m=babelHelpers.inherits(o,h);n=m&&m.prototype;function o(){n.constructor.call(this);this.$AdsGoalCreationStoreClass1();}o.prototype.$AdsGoalCreationStoreClass1=function(){this.$AdsGoalCreationStoreClass2=false;this.$AdsGoalCreationStoreClass3=null;};o.prototype.onDispatchToken=function(q){var r=q.action;switch(r.actionType){case j.START_CREATION:this.$AdsGoalCreationStoreClass2=true;this.$AdsGoalCreationStoreClass3=null;this.inform('change');break;case i.CREATED_GOAL:this.$AdsGoalCreationStoreClass2=false;this.inform('change');break;case i.CLEAR_ERROR:this.$AdsGoalCreationStoreClass3=null;this.inform('change');break;case i.ERROR_CREATE_GOAL:this.$AdsGoalCreationStoreClass3=r.feedback.error;this.$AdsGoalCreationStoreClass2=false;this.inform('change');break;case l.DIALOG_TYPE_CHANGE:if(r.data.dialogType===k.NO_DIALOG){this.$AdsGoalCreationStoreClass1();this.inform('change');}break;}};o.prototype.isCreating=function(){return this.$AdsGoalCreationStoreClass2;};o.prototype.getError=function(){return this.$AdsGoalCreationStoreClass3;};var p=new o();f.exports=p;},null);
__d('AdsGoalDescRow.react',['AdsFluxMixinLegacy_DO_NOT_USE','AdsGoalDraftStore','AdsGoalViewActions','Layout.react','Link.react','React','ReactComponentWithPureRenderMixin','XUIGrayText.react','XUITextInput.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){'use strict';if(c.__markCompiled)c.__markCompiled();var s=k.Column,t=m.createClass({displayName:'AdsGoalDescRow',mixins:[n,h.AdsFluxMixinLegacyOthers([i])],statics:{calculateState:function(){return {showDescription:i.showDescription(),description:i.getDescription()};}},render:function(){if(!this.state.showDescription&&!this.state.description)return (m.createElement(l,{onClick:this._showDescription,className:"_5gn2"},r._("Add a description")));return (m.createElement(k,{className:"_5gn3"},m.createElement(s,{className:"_5gn4"},this._getLabel()),m.createElement(s,null,m.createElement(p,{placeholder:this._getPlaceholder(),value:this.state.description,onChange:this._onChange,height:'tall',className:"_5gn5"}))));},_getLabel:function(){return (m.createElement(o,{shade:'light',weight:'bold'},r._("Description")));},_getPlaceholder:function(){return r._("Add a description");},_onChange:function(event){j.updateDescription(event.target.value);},_showDescription:function(){j.showDescription();}});f.exports=t;},null);
__d('AdsGoalValueInput.react',['AdsAccountStoreWrapper','AdsCurrencyInput.react','AdsFluxMixinLegacy_DO_NOT_USE','AdsGoalDraftStore','AdsGoalViewActions','React','ReactComponentWithPureRenderMixin','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();var q=m.createClass({displayName:'AdsGoalValueInput',mixins:[n,j.AdsFluxMixinLegacyOthers([k])],statics:{calculateState:function(){return {value:k.getConversionValue()};}},render:function(){return (m.createElement(i,{currency:h.getCurrency(),value:this.state.value,withISO:true,nonnegative:true,invalidInputIsNull:false,onDataUpdate:this._onConversionValueUpdate,eventType:'blur',placeholder:this._getPlaceholder(),height:'tall',className:"_119x"}));},_getPlaceholder:function(){return p._("Add a default conversion value");},_onConversionValueUpdate:function(r){l.updateConversionValue(r);}});f.exports=q;},null);
__d('AdsGoalValueRow.react',['AdsFluxMixinLegacy_DO_NOT_USE','AdsGoalDraftStore','AdsGoalValueInput.react','AdsGoalViewActions','AdsHelpLink.react','Layout.react','Link.react','React','ReactComponentWithPureRenderMixin','XUICheckboxInput.react','XUIGrayText.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){'use strict';if(c.__markCompiled)c.__markCompiled();var u=m.Column,v=m.FillColumn,w=o.createClass({displayName:'AdsGoalValueRow',mixins:[p,h.AdsFluxMixinLegacyOthers([i])],statics:{calculateState:function(){return {showValueRow:i.showValueRow()};}},render:function(){if(!this.state.showValueRow)return (o.createElement(m,{className:"_26qk"},o.createElement(u,{className:"_26ql"},this._getCheckbox()),o.createElement(v,null,this._getMainText(),this._getSubText())));return (o.createElement('div',{className:"_26qk"},o.createElement(m,{className:"_26qm"},o.createElement(u,{className:"_26ql"},this._getCheckbox()),o.createElement(v,null,this._getMainText())),o.createElement(m,{className:"_26qm"},o.createElement(u,{className:"_26ql"},this._getLabel()),o.createElement(v,null,o.createElement(j,null)))));},_getCheckbox:function(){return (o.createElement(q,{checked:this.state.showValueRow,onChange:this._onCheckboxChange}));},_getMainText:function(){return (o.createElement(r,{shade:'medium'},t._("Define a Conversion Value")));},_getSubText:function(){return (o.createElement(r,{display:'block',className:"_3-8w"},t._("Assign a value to the custom conversion to help Facebook optimize your ads."),o.createElement(n,{className:"_26qo"},t._("Learn more."))));},_getLabel:function(){return (o.createElement('div',null,o.createElement(r,{shade:'light',weight:'bold'},t._("Conversion Value")),o.createElement(l,{position:'above'},t._("Assign a value to the custom conversion to help Facebook optimize your ads."))));},_onCheckboxChange:function(event){k.toggleValueRow(event.target.checked);}});f.exports=w;},null);
__d('AdsGoalStepTwoContent.react',['AdInterfacesUiLogger','AdsFluxMixinLegacy_DO_NOT_USE','AdsGoalCreation','AdsGoalCreationStore','AdsGoalDescRow.react','AdsGoalDraftStore','AdsGoalNameRow.react','AdsGoalValueRow.react','AdsGoalViewActions','AdsGoalServerActions','AdsPixelDialogTypes','AdsPixelViewActions','React','ReactComponentWithPureRenderMixin','XUIDialogBody.react','XUIDialogButton.react','XUIDialogFooter.react','XUIDialogTitle.react','XUINotice.react','XUISpinner.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca){'use strict';if(c.__markCompiled)c.__markCompiled();var da=t.createClass({displayName:'AdsGoalStepTwoContent',mixins:[u,i.AdsFluxMixinLegacyOthers([k,m])],statics:{calculateState:function(){return {error:k.getError(),isCreating:k.isCreating(),name:m.getName()};}},render:function(){return (t.createElement('div',{className:"_6r-"},t.createElement(y,null,this._getTitle()),t.createElement(v,{className:"_6s1"},t.createElement(n,null),t.createElement(l,null),t.createElement(o,null)),this._getError(),this._getFooter()));},_getTitle:function(){return ca._("Create a Custom Conversion");},_getError:function(){if(!this.state.error)return null;var ea=this.state.error.error_user_title||'Error',fa=this.state.error.error_user_msg||'Creation failed',ga=ca._("{error message}",[ca.param('error message',ea+': '+fa)]);return (t.createElement(z,{use:'warn',className:"_cdl"},ga));},_getFooter:function(){return (t.createElement(x,null,t.createElement(w,{label:ca._("Back"),onClick:this._onBack}),t.createElement(w,{use:'confirm',label:ca._("Create"),disabled:this.state.isCreating||!this.state.name,onClick:this._onCreate}),this._getSpinner()));},_getSpinner:function(){if(!this.state.isCreating)return null;return t.createElement(aa,{size:'large',className:"_3-99"});},_onBack:function(){q.clearError();s.dialogTypeChange(r.GOAL_CREATE_STEP_ONE);h.log('ads_pixel_goal_creation_back_step_2');},_onCreate:function(){p.startCreation();j.create();h.log('ads_pixel_goal_creation_create_step_2');}});f.exports=da;},null);
__d('AdsPixelAudienceDialogContainer.react',['AdsAccountStoreWrapper','AdsFluxMixinLegacy_DO_NOT_USE','AdsPixelGraphAPI','AdsPixelStore','AudienceDaoManager','React','WebsiteCustomAudience.react'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=m.PropTypes,p=m.createClass({displayName:'AdsPixelAudienceDialogContainer',mixins:[i.AdsFluxMixinLegacyPI([k],{withProps:true})],statics:{calculateState:function(q,r){var s=h.getAccountID();return {isTosAccepted:h.isTosAccepted(),accountID:s,dao:l.getPrimedDao(s),pixel:r&&r.pixelID&&k.getPixelInfo(r.pixelID)};}},propTypes:{pixelID:o.string},render:function(){return (m.createElement(n,{dao:this.state.dao,accountID:this.state.accountID,isTosAccepted:this.state.isTosAccepted,pixel:this.state.pixel,onAudienceAdded:this._onAudienceAdded}));},_onAudienceAdded:function(){this.props.pixelID&&j.loadAudiences(this.props.pixelID);}});f.exports=p;},null);
__d('AdsPixelCodeDialogContentContainer.react',['AdsFluxMixinLegacy_DO_NOT_USE','AdsPixelCodeDialogContent.react','AdsPixelDialogTypes','AdsPixelStore','AdsPixelViewActions','React','ReactComponentWithPureRenderMixin'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=m.PropTypes,p=m.createClass({displayName:'AdsPixelCodeDialogContentContainer',mixins:[n,h.AdsFluxMixinLegacyPI([k],{withProps:true})],propTypes:{pixelID:o.string.isRequired},statics:{calculateState:function(q,r){return {pixelCode:k.getPixelCode(r.pixelID)};}},render:function(){return (m.createElement(i,{onEmailPixelCode:this._onEmailPixelCode,onNextSteps:this._onNextSteps,pixelCode:this.state.pixelCode}));},_onEmailPixelCode:function(){l.dialogTypeChange(j.EMAIL_CODE);},_onNextSteps:function(){l.dialogTypeChange(j.NEXT_STEPS);}});f.exports=p;},null);
__d('AdsPixelCreationNextStepsItem.react',['Image.react','ImageBlock.react','React','XUIGrayText.react','cx'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=j.PropTypes,n=j.createClass({displayName:'AdsPixelCreationNextStepsItem',propTypes:{title:m.string.isRequired,message:m.string.isRequired,isFirstItem:m.bool.isRequired,imageResource:m.object.isRequired,onItemClick:m.func.isRequired},render:function(){var o=this.props.isFirstItem?"_1c4w":"_1c4x";return (j.createElement('li',{className:o,onClick:this.props.onItemClick},j.createElement(i,{spacing:'large'},j.createElement(h,{src:this.props.imageResource}),j.createElement('div',null,j.createElement(k,{weight:'bold',shade:'medium',size:'medium'},this.props.title),j.createElement('div',{className:"_3-8x"},j.createElement(k,{className:"_1c4y"},this.props.message))))));}});f.exports=n;},null);
__d('AdsPixelCreateNextStepsDialog.react',['AdsCustomConversionsUtil','AdsGoalStore','AdsPixelCreationNextSteps.react','React','XUIDialogBody.react','XUIDialogButton.react','XUIDialogFooter.react','XUIDialogTitle.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=k.PropTypes,s=k.createClass({displayName:'AdsPixelCreateNextStepsDialog',propTypes:{onClose:r.func.isRequired},render:function(){return (k.createElement('div',null,this._renderTitle(),this._renderDialogBody(),this._renderFooter()));},_renderTitle:function(){return (k.createElement(o,null,q._("View Pixel Code")));},_renderDialogBody:function(){var t=i.getSortedGoals().length,u=!h.getShouldDisableCreation(t);return (k.createElement('div',{className:"_2897"},k.createElement(l,null,k.createElement(j,{showCreateConversion:u}))));},_renderFooter:function(){return (k.createElement(n,null,k.createElement(m,{onClick:this.props.onClose,use:'confirm',label:q._("Done")})));}});f.exports=s;},null);
__d('AdsPixelDialogStore',['AdsBaseStore','AdsLoadState','AdsPixelDialogTypes','AdsPixelGraphAPI','AdsGoalServerActionTypes','AdsPixelViewActionTypes'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n,o;'use strict';n=babelHelpers.inherits(p,h);o=n&&n.prototype;function p(){o.constructor.call(this);this.$AdsPixelDialogStoreClass1=j.NO_DIALOG;this.$AdsPixelDialogStoreClass2={};}p.prototype.getStoreName=function(){return 'AdsPixelDialogStore';};p.prototype.onDispatchToken=function(r){var s=r.action;switch(s.actionType){case m.DIALOG_TYPE_CHANGE:if(s.data.dialogType in j){this.$AdsPixelDialogStoreClass1=s.data.dialogType;this.inform('change');}break;case l.EDITED_GOAL:this.$AdsPixelDialogStoreClass1=j.NO_DIALOG;this.inform('change');break;case l.CREATED_GOAL:this.$AdsPixelDialogStoreClass1=j.GOAL_CREATE_STEP_THREE;this.inform('change');break;case m.VIEW_SHOW_PIXEL_INTRO_DIALOG:var t=s.data.pixelID;this.$AdsPixelDialogStoreClass2[t]=s.data.shouldShow;this.inform('change');break;}};p.prototype.getCurrentDialogType=function(){return this.$AdsPixelDialogStoreClass1;};p.prototype.getShouldShowPixelDialog=function(r){if(!(r in this.$AdsPixelDialogStoreClass2)){k.loadDialogState(r);this.$AdsPixelDialogStoreClass2[r]=false;}return this.$AdsPixelDialogStoreClass2[r];};var q=new p();f.exports=q;},null);
__d('AdsPixelCommonDialog.react',['Image.react','Layout.react','React','XUIGrayText.react','XUIDialogTitle.react','XUIDialogBody.react','cx','fbt','ix'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();var q=i.Column,r=i.FillColumn,s=j.PropTypes,t=p('/images/ads/pixel/icons/UP_Pixel_44.png'),u=j.createClass({displayName:'AdsPixelCommonDialog',propTypes:{pixelID:s.string.isRequired,pixelName:s.string.isRequired,title:s.any.isRequired,footer:s.element.isRequired},render:function(){return (j.createElement('div',null,j.createElement(l,null,this.props.title),j.createElement(m,null,j.createElement('div',{className:"_4vvv"},this._getHeader(),this.props.children)),this.props.footer));},_getHeader:function(){return (j.createElement(i,null,j.createElement(q,null,j.createElement(h,{src:t,className:"_4vvw"})),j.createElement(r,null,j.createElement('div',{className:"_3-9c"},j.createElement('div',{className:'ellipsis','data-hover':'tooltip','data-tooltip-display':'overflow'},j.createElement(k,{weight:'bold',size:'large',shade:'medium'},this.props.pixelName)),this._getPixelDetail()))));},_getPixelDetail:function(){return (j.createElement(k,{size:'small',display:'block',className:"_4vvx"},o._("Pixel ID: {pixel id}",[o.param('pixel id',this.props.pixelID)])));}});f.exports=u;},null);
__d('EditPixelDialogContent.react',['AdsClearableTextInput.react','AdsPixelCommonDialog.react','Layout.react','React','XUIDialogButton.react','XUIDialogCancelButton.react','XUIDialogFooter.react','XUIGrayText.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=j.Column,s=j.FillColumn,t=k.PropTypes,u=k.createClass({displayName:'EditPixelDialogContent',propTypes:{pixelID:t.string.isRequired,pixelName:t.string.isRequired,onEditPixel:t.func.isRequired},getInitialState:function(){return {newPixelName:this.props.pixelName,error:false};},render:function(){return (k.createElement(i,{pixelID:this.props.pixelID,pixelName:this.props.pixelName,title:this._getTitle(),footer:this._getFooter()},this._getBody()));},_getTitle:function(){return q._("Edit Pixel");},_getBody:function(){return (k.createElement('div',null,this._getDescription(),this._getPixelNameInput()));},_getDescription:function(){return (k.createElement(o,{className:"_3-8-",display:'block',shade:'dark'},q._("There is only one pixel per ad account, so choose a name that represents your business.")));},_getPixelNameInput:function(){var v=q._("Enter a name for your pixel"),w=q._("Pixel Name");return (k.createElement(j,{className:"_3-8z"},k.createElement(r,null,k.createElement(o,{display:'block',className:"_nu6"},w)),k.createElement(s,null,k.createElement('div',{className:this.state.error?"_5fwf":''},k.createElement(h,{defaultValue:this.state.newPixelName,height:'tall',placeholder:v,onChange:(function(x){this.setState({newPixelName:x||'',error:false});}).bind(this)})))));},_getFooter:function(){return (k.createElement(n,null,k.createElement(m,null),k.createElement(l,{disabled:this.state.newPixelName.length===0||this.state.error,use:'confirm',onClick:this._onEditPixel,label:q._("Done")})));},_onEditPixel:function(){this.props.onEditPixel(this.state.newPixelName,this._onFail);},_onFail:function(){this.setState({error:true});}});f.exports=u;},null);
__d('AdsPixelEmailCodeSuccessDialogContent.react',['AdsCustomConversionsUtil','AdsGoalStore','AdsPixelCreationNextSteps.react','Image.react','ImageBlock.react','InlineBlock.react','React','XUIDialogBody.react','XUIDialogButton.react','XUIDialogFooter.react','XUIDialogTitle.react','XUIGrayText.react','cssVar','cx','fbt','ix'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w){'use strict';if(c.__markCompiled)c.__markCompiled();var x=n.PropTypes,y=parseInt("44px",10),z=n.createClass({displayName:'AdsPixelEmailCodeSuccessDialogContent',propTypes:{onClose:x.func.isRequired},render:function(){return (n.createElement('div',null,this._renderTitle(),this._renderDialogBody(),this._renderFooter()));},_renderTitle:function(){return (n.createElement(r,null,v._("Email Pixel Code")));},_renderDialogBody:function(){var aa=!h.getShouldDisableCreation(i.getSortedGoals().length);return (n.createElement('div',{className:"_2897"},n.createElement(o,null,this._renderConfirmation(),n.createElement(j,{showCreateConversion:aa}))));},_renderConfirmation:function(){return (n.createElement(l,{spacing:'large',className:"_4fda"},n.createElement(k,{src:w('/images/ads/pixel/up_done.png')}),n.createElement(m,{className:"_3-99",alignv:'middle',height:y},n.createElement(s,{weight:'bold',shade:'medium',size:'medium',display:'block'},v._("Email Sent Successfully")))));},_renderFooter:function(){return (n.createElement(q,null,n.createElement(p,{onClick:this.props.onClose,use:'confirm',label:v._("Done")})));}});f.exports=z;},null);
__d('AdsPixelEmailCodeSuccessDialogContentContainer.react',['AdsPixelEmailCodeSuccessDialogContent.react','React'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=i.PropTypes,k=i.createClass({displayName:'AdsPixelEmailCodeSuccessDialogContentContainer',propTypes:{onClose:j.func.isRequired},render:function(){return (i.createElement(h,{onClose:this.props.onClose}));}});f.exports=k;},null);
__d('AdsPixelIntroDialog.react',['AdsPixelViewActions','React','XUIDialogBody.react','XUICloseButton.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=i.PropTypes,o=i.createClass({displayName:'AdsPixelIntroDialog',propTypes:{pixelID:n.string.isRequired},render:function(){return (i.createElement('div',null,this._getCloseButton(),this._getDialogBody()));},_getCloseButton:function(){return (i.createElement(k,{className:"layerCancel _3toz",onClick:this._onClose}));},_getDialogBody:function(){return (i.createElement(j,{className:"_3to-"},i.createElement('div',{className:"_3to_"},m._("Custom Audience Pixel")),i.createElement('div',{className:"_3tp0"},m._("One pixel for conversion tracking, optimization and remarketing.")),i.createElement('img',{src:'/images/ads/pixel/up_nux_2.png',className:"_3tp1"}),i.createElement('div',{className:"_3tp2"},m._("With the same pixel you have been using to create Custom Audiences, you can now view website traffic from the pixel and use the pixel for conversion tracking and optimization, in addition to remarketing."))));},_onClose:function(){h.updateShouldShowIntroDialog(this.props.pixelID,false);}});f.exports=o;},null);
__d('AdsPixelNoShareDialogContent.react',['AdInterfacesUiLogger','AdsAccountStoreWrapper','AdsPixelCommonDialog.react','BusinessConf','React','URI','XUIDialogButton.react','XUIDialogCancelButton.react','XUIDialogFooter.react','XUIGrayText.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){'use strict';if(c.__markCompiled)c.__markCompiled();var t=l.PropTypes,u=l.createClass({displayName:'AdsPixelNoShareDialogContent',propTypes:{pixelID:t.string.isRequired,pixelName:t.string.isRequired,businessID:t.string.isRequired},render:function(){return (l.createElement(j,{pixelID:this.props.pixelID,pixelName:this.props.pixelName,title:this._getTitle(),footer:this._getFooter()},this._getBody()));},_getTitle:function(){return s._("Share a Pixel");},_getBody:function(){return (l.createElement(q,{className:"_3-8-",display:'block',shade:'dark'},s._("You need to be an admin in the Business Manager account to share your pixel with other ad accounts. Contact the admin of your Business Manager account to share this pixel or request admin access.")));},_getFooter:function(){var v=s._("Contact Admin"),w=new m('/settings/info/').setSubdomain(k.DOMAIN).addQueryData({act:i.getAccountID(),business_id:this.props.businessID});return (l.createElement(p,null,l.createElement(o,{onClick:this._logCancel}),l.createElement(n,{use:'confirm',label:v,target:'_blank',href:w,onClick:this._logGoToBM})));},_logGoToBM:function(){h.log('ads_pixel_view_share_go_to_bm_info');},_logCancel:function(){h.log('ads_pixel_view_share_go_to_bm_info_cancel');}});f.exports=u;},null);
__d('AdsPixelShareInBMDialogContent.react',['AdInterfacesUiLogger','AdsPixelCommonDialog.react','BusinessConf','React','URI','XUIDialogButton.react','XUIDialogCancelButton.react','XUIDialogFooter.react','XUIGrayText.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){'use strict';if(c.__markCompiled)c.__markCompiled();var s=k.PropTypes,t=k.createClass({displayName:'AdsPixelShareInBMDialogContent',propTypes:{pixelID:s.string.isRequired,pixelName:s.string.isRequired,businessID:s.string.isRequired},render:function(){return (k.createElement(i,{pixelID:this.props.pixelID,pixelName:this.props.pixelName,title:this._getTitle(),footer:this._getFooter()},this._getBody()));},_getTitle:function(){return r._("Share a Pixel");},_getBody:function(){return (k.createElement(p,{className:"_3-8-",display:'block',shade:'dark'},this._getBodyText()));},_getBodyText:function(){return r._("You need to use Business Manager to share your pixel with other ad accounts.");},_getFooter:function(){var u=r._("Go Business Manager"),v=new l('/settings/pixels/').setSubdomain(j.DOMAIN).addQueryData({business_id:this.props.businessID,pixel_id:this.props.pixelID});return (k.createElement(o,null,k.createElement(n,{onClick:this._logCancel}),k.createElement(m,{use:'confirm',label:u,target:'_blank',href:v,onClick:this._logGoToBM})));},_logGoToBM:function(){h.log('ads_pixel_view_share_go_to_bm_setting');},_logCancel:function(){h.log('ads_pixel_view_share_go_to_bm_setting_cancel');}});f.exports=t;},null);
__d('BrandUserStore.brands',['AdsBaseStore','AdsPixelGraphAPI','AdsPixelServerActionTypes','CurrentUser','dotAccess'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m,n;'use strict';var o='ADMIN',p='LOADING';m=babelHelpers.inherits(q,h);n=m&&m.prototype;function q(){n.constructor.call(this);this.$BrandUserStoreClass1={};this.$BrandUserStoreClass2=false;}q.prototype.getStoreName=function(){return 'BrandUserStore';};q.prototype.onDispatchToken=function(s){var t=s.action;switch(t.actionType){case j.RECEIVE_BUSINESS_USERS:this.$BrandUserStoreClass3(t.feedback.businessID,t.feedback.users);this.inform('change');break;case j.RECEIVE_ACCOUNT_BUSINESS:this.$BrandUserStoreClass4=t.feedback.business||null;this.inform('change');break;}};q.prototype.getAccountBusinessID=function(){if(this.$BrandUserStoreClass4===undefined){this.$BrandUserStoreClass4=p;i.loadAccountBusiness();}if(this.$BrandUserStoreClass4!==p)return this.$BrandUserStoreClass4;};q.prototype.isBusinessAdmin=function(s){if(!(s in this.$BrandUserStoreClass1)){delete this.$BrandUserStoreClass1[s];this.$BrandUserStoreClass2=true;i.loadUsersForBusiness(s);}var t=k.getID(),u=this.$BrandUserStoreClass1[s]&&this.$BrandUserStoreClass1[s][t]===o;return u?true:false;};q.prototype.isLoading=function(){return this.$BrandUserStoreClass2||this.$BrandUserStoreClass4===p;};q.prototype.$BrandUserStoreClass3=function(s,t){this.$BrandUserStoreClass2=false;this.$BrandUserStoreClass1[s]={};t.forEach((function(u){var v=l(u,'user.id');if(v)this.$BrandUserStoreClass1[s][v]=u.role;}).bind(this));};var r=new q();f.exports=r;},null);
__d('AdsPixelShareDialogContentContainer.react',['AdsFluxMixinLegacy_DO_NOT_USE','AdsPixelNoShareDialogContent.react','AdsPixelShareDialogContent.react','AdsPixelShareInBMDialogContent.react','AdsPixelStore','BrandUserStore.brands','React','ReactComponentWithPureRenderMixin','dotAccess'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();var q=n.PropTypes,r=n.createClass({displayName:'AdsPixelShareDialogContentContainerContainer',mixins:[o,h.AdsFluxMixinLegacyPI([l,m],{withProps:true})],propTypes:{pixelID:q.string.isRequired},statics:{calculateState:function(s,t){var u=l.getPixelInfo(t.pixelID),v=m.getAccountBusinessID(),w=v?m.isBusinessAdmin(v):false,x=m.isLoading();return {pixelName:p(u,'name'),businessID:v,isBusinessAdmin:w,isLoading:x};}},render:function(){if(this.state.isLoading)return null;if(!this.state.businessID)return (n.createElement(j,{pixelID:this.props.pixelID,pixelName:this.state.pixelName}));if(this.state.isBusinessAdmin)return (n.createElement(k,{pixelID:this.props.pixelID,pixelName:this.state.pixelName,businessID:this.state.businessID}));return (n.createElement(i,{pixelID:this.props.pixelID,pixelName:this.state.pixelName,businessID:this.state.businessID}));}});f.exports=r;},null);
__d('AdsPixelStandardEventsDialogContent.react',['AdsPixelHelpCenter','AdsPixelStandardEventsTable.react','Link.react','React','ReactComponentWithPureRenderMixin','XUIDialogBody.react','XUIDialogButton.react','XUIDialogFooter.react','XUIDialogTitle.react','XUIGrayText.react','cx','fbt','emptyFunction'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){'use strict';if(c.__markCompiled)c.__markCompiled();var u=k.PropTypes,v=k.createClass({displayName:'AdsPixelStandardEventsDialogContent',mixins:[l],getDefaultProps:function(){return {onEmailPixelCode:t,onClose:t,isViewEvent:false};},propTypes:{onEmailPixelCode:u.func.isRequired,onClose:u.func.isRequired,isViewEvent:u.bool.isRequired},render:function(){return (k.createElement('div',null,this._renderTitle(),this._renderDialogBody()));},_renderDialogBody:function(){return (k.createElement('div',null,k.createElement(m,null,k.createElement('div',{className:"_4i5f"},this._renderConversionTrackingDescription())),this._renderFooter()));},_renderTitle:function(){if(this.props.isViewEvent){return (k.createElement(p,null,s._("View Pixel Code")));}else return (k.createElement(p,null,s._("Set Up Conversions")));},_renderConversionTrackingDescription:function(){return (k.createElement('div',null,k.createElement(q,{weight:'bold',shade:'medium',display:'block'},s._("Add Conversion Tracking")),k.createElement(q,{shade:'light',size:'small',className:"_3-8x",display:'block'},s._("You can add events to track specific actions. Copy the code for the event you want to track, and paste it after the pixel code on the web pages where you want to track the action. {learn more}.",[s.param('learn more',k.createElement(j,{href:h.CONVERSION.uri,target:'_blank'},'Learn about conversion tracking'))])),k.createElement(i,null)));},_renderFooter:function(){return (k.createElement(o,null,k.createElement(n,{use:'default',onClick:this.props.onEmailPixelCode,label:s._("Email Pixel Code")}),k.createElement(n,{use:'confirm',onClick:this.props.onClose,label:s._("Done")})));}});f.exports=v;},null);
__d('AdsPixelStandardEventsDialogContentContainer.react',['AdsPixelStandardEventsDialogContent.react','AdsPixelDialogTypes','AdsPixelViewActions','React','ReactComponentWithPureRenderMixin'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=k.PropTypes,n=k.createClass({displayName:'AdsPixelStandardEventsDialogContentContainer',mixins:[l],propTypes:{isViewEvent:m.bool},getDefaultProps:function(){return {isViewEvent:false};},render:function(){return (k.createElement(h,{onEmailPixelCode:this._onEmailPixelCode,onClose:this._onClose,isViewEvent:this.props.isViewEvent}));},_onEmailPixelCode:function(){j.dialogTypeChange(i.EMAIL_CODE);},_onClose:function(){j.dialogTypeChange(i.NO_DIALOG);}});f.exports=n;},null);
__d('AdsPixelDialog.react',['AdsFluxMixinLegacy_DO_NOT_USE','AdsGoalDraftStore','AdsGoalEditContainer.react','AdsGoalStepOneContent.react','AdsGoalStepThreeContent.react','AdsGoalStepTwoContent.react','AdsPixelAudienceDialogContainer.react','AdsPixelAndAudienceContextUtils','AdsPixelCodeDialogContentContainer.react','AdsPixelCreateNextStepsDialog.react','AdsPixelDialogStore','AdsPixelDialogTypes','AdsPixelEditDialogContentContainer.react','AdsPixelEmailCodeDialogContentContainer.react','AdsPixelEmailCodeSuccessDialogContentContainer.react','AdsPixelIntroDialog.react','AdsPixelShareDialogContentContainer.react','AdsPixelStandardEventsDialogContentContainer.react','AdsPixelViewActions','PixelCreationUIConstants','React','ReactComponentWithPureRenderMixin','ReactLayeredComponentMixin','XUIDialog.react','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa){'use strict';if(c.__markCompiled)c.__markCompiled();var ga=ba.PropTypes,ha=ba.createClass({displayName:'AdsPixelDialog',childContextTypes:o.getContextTypes(),mixins:[h.AdsFluxMixinLegacyPI([i,r]),ca,da],propTypes:{pixelID:ga.string.isRequired},statics:{calculateState:function(){return {dialogType:r.getCurrentDialogType(),isRuleValid:i.isRuleValid(),rule:i.getRule(),showPotentialWarnings:i.showPotentialWarnings()};}},render:function(){return null;},renderLayers:function(){if(this.state.dialogType===s.NO_DIALOG)return {};if(this.state.dialogType===s.AUDIENCE)return {dialog:ba.createElement(n,{pixelID:this.props.pixelID})};return {dialog:ba.createElement(ea,{layerHideOnBlur:false,shown:true,width:aa.DEFAULT_DIALOG_WIDTH,onToggle:this._onClose},this._getDialogContent())};},getChildContext:function(){return o.getDefaultChildContext();},_getDialogContent:function(){switch(this.state.dialogType){case s.VIEW_CODE:return (ba.createElement(p,{pixelID:this.props.pixelID}));case s.NEXT_STEPS:return (ba.createElement(q,{onClose:this._onClose}));case s.EMAIL_CODE:return (ba.createElement(u,{pixelID:this.props.pixelID,onClose:this._onClose}));case s.EMAIL_CODE_SUCCESS:return (ba.createElement(v,{onClose:this._onClose}));case s.SETUP_CONVERSION:return ba.createElement(y,null);case s.EDIT:return (ba.createElement(t,{pixelID:this.props.pixelID}));case s.SHARE:return (ba.createElement(x,{pixelID:this.props.pixelID}));case s.GOAL_CREATE_STEP_ONE:return (ba.createElement(k,{isRuleValid:this.state.isRuleValid,rule:this.state.rule,showPotentialWarnings:this.state.showPotentialWarnings}));case s.GOAL_CREATE_STEP_TWO:return ba.createElement(m,null);case s.GOAL_CREATE_STEP_THREE:return ba.createElement(l,null);case s.GOAL_EDIT:return ba.createElement(j,null);case s.VIEW_EVENT_CODE:return (ba.createElement(y,{isViewEvent:true}));case s.EMAIL_EVENT_CODE:return (ba.createElement(u,{pixelID:this.props.pixelID,onClose:this._onClose,onlyEventCode:true}));case s.PIXEL_INTRO:return ba.createElement(w,{pixelID:this.props.pixelID});default:fa(0);}},_onClose:function(){z.dialogTypeChange(s.NO_DIALOG);}});f.exports=ha;},null);
__d('AdsPixelSelectorLoggerConstants',['ImmutableObject','keyMirror'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=i({BOOSTED_POST:null,BOOSTED_WEBSITE:null,CONVERSION_TRACKING_PIXEL:null,CUSTOM_AUDIENCE_PIXEL:null,DEFAULT_PIXEL_LOADED:null,NO_CONTEXT:null,PIXEL_SELECTION_CHANGED:null});f.exports=new h(j);},null);
__d('AdsPixelSelectorLoggerContext',['AdsAPIObjectives','AdsPixelSelectorLoggerConstants','AdsPixelUIEnvironments','BoostedComponentAppID'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();function l(m,n){this.$AdsPixelSelectorLoggerContext1=m;this.$AdsPixelSelectorLoggerContext2=n;this.$AdsPixelSelectorLoggerContext3();}l.prototype.getEnvironment=function(){return this.$AdsPixelSelectorLoggerContext1;};l.prototype.getPixelContext=function(){return this.$AdsPixelSelectorLoggerContext2;};l.prototype.$AdsPixelSelectorLoggerContext3=function(){switch(this.$AdsPixelSelectorLoggerContext1){case j.CF:if(!(this.$AdsPixelSelectorLoggerContext2 in h))this.$AdsPixelSelectorLoggerContext2=i.NO_CONTEXT;break;case j.LWI:this.$AdsPixelSelectorLoggerContext4();break;default:this.$AdsPixelSelectorLoggerContext2=i.NO_CONTEXT;}};l.prototype.$AdsPixelSelectorLoggerContext4=function(){switch(this.$AdsPixelSelectorLoggerContext2){case k.BOOSTED_POST:this.$AdsPixelSelectorLoggerContext2=i.BOOSTED_POST;break;case k.BOOSTED_WEBSITE:this.$AdsPixelSelectorLoggerContext2=i.BOOSTED_WEBSITE;break;default:this.$AdsPixelSelectorLoggerContext2=i.NO_CONTEXT;}};f.exports=l;},null);
__d('AdsPixelHelpCenterLinkUtil',['AdsHelpTrayUIActions','Link.react','React'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k={getHelpLink:function(l,m,n){if(m)return (j.createElement(i,{onClick:function(event){return (h.pushCMSIDToHistory(l.cmsID));}},n));return (j.createElement(i,{href:l.uri,target:'_blank'},n));}};f.exports=k;},null);
__d('AdsPixelTrackingContextUtils',['AdsPixelHelpCenterLinkUtil','React'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=i.PropTypes,k={getContextTypes:function(){return {getHelpLink:j.func.isRequired,isCampaignManager:j.func.isRequired,updateTrackingSpec:j.func.isRequired,conversionPixelSelector:j.any.isRequired,legacyPixelSelectType:j.string.isRequired};},getDefaultContext:function(){return {getHelpLink:function(l,m,n){return (h.getHelpLink(l,m,n));}};}};f.exports=k;},null);
__d("XAdsConversionPixelSendingEmailDialogController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/manage\/convtrack\/send_email\/",{pixel_id:{type:"Int",required:true},__asyncDialog:{type:"Int"}});},null,{});
__d("XAdsConversionPixelViewingCodeDialogController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/manage\/convtrack\/view_code\/",{pixel_id:{type:"Int",required:true},__asyncDialog:{type:"Int"}});},null,{});
__d('AdsPixelTrackingInfoBox.react',['AdsConversionPixelStore','AdsFluxMixinLegacy_DO_NOT_USE','AdsPixelDialogTypes','AdsPixelHelpCenter','AdsPixelStatusEnum','AdsPixelStore','AdsPixelTrackingContextUtils','AdsPixelUtil','AdsPixelViewActions','Link.react','React','ReactComponentWithPureRenderMixin','XAdsConversionPixelSendingEmailDialogController','XAdsConversionPixelViewingCodeDialogController','XUINotice.react','XUISpinner.react','cx','fbt','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z){'use strict';if(c.__markCompiled)c.__markCompiled();var aa=r.PropTypes,ba=r.createClass({displayName:'AdsPixelTrackingInfoBox',contextTypes:n.getContextTypes(),mixins:[i.AdsFluxMixinLegacyPI([h,m],{withProps:true}),s],propTypes:{pixelID:aa.string.isRequired,className:aa.string},statics:{calculateState:function(ca,da){var ea=h.getPixel(da.pixelID)||m.getPixelInfo(da.pixelID),fa=o.getIsUnifiedPixelFromPixel(ea);return {status:o.getStatusObject(da.pixelID),isUnified:fa};}},render:function(){if(!this.state.status)return r.createElement(w,null);var ca=this.state.status&&this.state.status.getStatus();if(ca===l.ACTIVE)return null;var da=this.state.isUnified?this._getUnifiedInfoBoxContent(ca):this._getConversionInfoBoxContent(ca);return (r.createElement('div',{className:this._getClassName()},r.createElement(v,{className:"_1bji",size:'small'},da)));},_getClassName:function(){return z(this.props.className,"_2e6y");},_renderPixelEmailDialog:function(){p.dialogTypeChange(j.EMAIL_CODE);},_renderSetupConversionsDialog:function(){p.dialogTypeChange(j.SETUP_CONVERSION);},_getUnifiedInfoBoxContent:function(ca){switch(ca){case l.NEVER_ACTIVE:return y._("You don't have any conversions set up from your Custom Audience pixel yet. Once you set them up, all conversions from the pixel will be tracked by default. {Email} or {Set up Conversions} now.",[y.param('Email',this._getEmailLink()),y.param('Set up Conversions',this._getSetupConversionsLink())]);case l.INACTIVE:return y._("We haven't received any events from this pixel in more than 7 days. Make sure the pixel is properly configured. {Get help}.",[y.param('Get help',this._getUnifiedHelpLink())]);default:return null;}},_getConversionInfoBoxContent:function(ca){switch(ca){case l.NEVER_ACTIVE:return y._("Your Conversion Tracking pixel is not set up currently. Once you set it up, conversions will be tracked from this pixel by default. {Email} or {View Pixel Code} now.",[y.param('Email',this._getEmailPixelCode()),y.param('View Pixel Code',this._getViewPixelCode())]);case l.INACTIVE:return y._("We haven't received any activity from this pixel in more than 7 days. Make sure the pixel is properly configured. {Get help}.",[y.param('Get help',this._getConversionHelpLink())]);default:return null;}},_getUnifiedHelpLink:function(){return this.context.getHelpLink(k.TROUBLESHOOT_PIXEL,this.context.isCampaignManager(),y._("Get help"));},_getConversionHelpLink:function(){return this.context.getHelpLink(k.INSTALL_CONVERSION_PIXEL,this.context.isCampaignManager(),y._("Get help"));},_getEmailLink:function(){return (r.createElement(q,{onClick:this._renderPixelEmailDialog},y._("Email")));},_getSetupConversionsLink:function(){return (r.createElement(q,{onClick:this._renderSetupConversionsDialog},y._("set up conversions")));},_getEmailPixelCode:function(){var ca=t.getURIBuilder().setInt('pixel_id',this.props.pixelID).getURI();return (r.createElement(q,{className:"_4w_a",href:ca,rel:'dialog'},y._("Email")));},_getViewPixelCode:function(){var ca=u.getURIBuilder().setInt('pixel_id',this.props.pixelID).getURI();return (r.createElement(q,{className:"_4w_a",href:ca,rel:'dialog'},y._("View Pixel Code")));}});f.exports=ba;},null);
__d('AdsPixelSelectorContainer.react',['AdsAccountStoreWrapper','AdsConversionPixelStore','AdInterfacesUiLogger','AdsFluxMixinLegacy_DO_NOT_USE','AdsPixelDefaultPixelStore','AdsPixelDialog.react','AdsPixelSelector.react','AdsPixelSelectorLoggerConstants','AdsPixelSelectorLoggerContext','AdsPixelStore','AdsPixelTrackingInfoBox.react','AdsPixelViewActions','React','cx','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){'use strict';if(c.__markCompiled)c.__markCompiled();var w=t.PropTypes,x=t.createClass({displayName:'AdsPixelSelectorContainer',propTypes:{logContext:w.instanceOf(p),defaultPixelDomains:w.array,onChange:w.func},mixins:[k.AdsFluxMixinLegacyOthers([i,l,q],{withProps:true})],getDefaultProps:function(){return {defaultPixelDomains:null};},statics:{calculateState:function(y,z){var aa=i.getKeyedPixels(),ba=q.getPixels(),ca=l.getDefaultPixelID(z.defaultPixelDomains),da=l.hasDefaultPixelLoaded();return {conversionPixels:aa,defaultPixelID:ca,defaultPixelLoaded:da,environment:h.getEnvironment(),unifiedPixels:ba};}},getInitialState:function(){l.resetDefaultPixelState();return {selectedValue:null};},render:function(){if(!this.state.defaultPixelLoaded)return null;var y=this._renderTrackingInfoBox(),z=this._renderPixelDialog();return (t.createElement('div',null,t.createElement(n,{conversionPixels:this.state.conversionPixels,maxheight:300,maxwidth:0,onChange:this._handlePixelSelectionChange,size:'xlarge',selectedValue:this._getSelectedPixelID()||undefined,unifiedPixels:this.state.unifiedPixels}),y,z));},_renderTrackingInfoBox:function(){var y=this.state.selectedValue;if(!y)return null;return (t.createElement(r,{className:v("_3awi","_3-8y"),pixelID:y}));},_renderPixelDialog:function(){if(!this.state.selectedValue)return null;return t.createElement(m,{pixelID:this.state.selectedValue});},_getSelectedPixelID:function(){if(this._getShouldSetDefaultPixelID()){this._logPixelSelectionChange(o.DEFAULT_PIXEL_LOADED,this.state.defaultPixelID);this._handlePixelSelectionChange(this.state.defaultPixelID);}return this.state.selectedValue;},_getShouldSetDefaultPixelID:function(){return (this.state.defaultPixelID!==null&&this.state.selectedValue===null);},_handlePixelSelectionChange:function(y){this.setState({selectedValue:y});this._logPixelSelectionChange(o.PIXEL_SELECTION_CHANGED,y);if(this.props.onChange)this.props.onChange(y);if(y in this.state.unifiedPixels){s.trackingSpecChange({fb_pixel:[y]});}else if(y in this.state.conversionPixels){s.trackingSpecChange({offsite_pixel:[y]});}else s.trackingSpecChange({});},_logPixelSelectionChange:function(y,z){var aa=this.props.logContext;if(!aa)return;j.log('AdsPixelSelector',{event:y,pixel_selector_context:aa.getPixelContext(),'interface':aa.getEnvironment(),pixel_id:z,pixel_type:this._getPixelTypeForLogging(z)});},_getPixelTypeForLogging:function(y){return (y in this.state.unifiedPixels?o.CUSTOM_AUDIENCE_PIXEL:o.CONVERSION_TRACKING_PIXEL);}});f.exports=x;},null);
__d('AdsReachEstimateBar.react',['AdsHelpLink.react','AdsEstimatesValidator','LeftRight.react','React','XUINotice.react','cx','fbt','ads-lib-formatters'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){'use strict';if(c.__markCompiled)c.__markCompiled();var p=k.PropTypes,q=o.createLimitedSigFigNumberFormatter(0,2),r=100,s=k.createClass({displayName:'AdsReachEstimateBar',propTypes:{estimateDAU:p.number.isRequired,explanationMessage:p.string,glyphName:p.string,platform:p.string,reachBounds:p.shape({max:p.number.isRequired,min:p.number.isRequired}).isRequired},getDefaultProps:function(){return {platform:n._("Facebook")};},render:function(){if(!i.areEstimatesAndDAUValid(this.props.reachBounds.min,this.props.reachBounds.max,this.props.estimateDAU))return this._renderErrorMsg();return (k.createElement('div',null,k.createElement('div',{className:'clearfix'},k.createElement('div',{className:'lfloat'},this.renderReachEstimate())),this.renderBar(),this.renderAudienceSize()));},renderBar:function(){return (k.createElement('div',{className:"_3o8h clearfix"},k.createElement('div',{className:"_3o8i",style:{marginLeft:this.getCenterPercent()+'%'}})));},getCenterPercent:function(){var t=(this.props.reachBounds.min+this.props.reachBounds.max)/2;if(t>0)t=Math.sqrt(t)*Math.log(t);var u=this.props.estimateDAU;if(u>0)u=Math.sqrt(u)*Math.log(u);var v=10,w=Math.min(t/u*100,98-v*.5);w-=v*.5;if(w<0)w=0;return Math.round(w);},getReachEstimateRangeString:function(t,u){return n._({"*":{"*":"{min reach} - {max reach} people on {platform}"}},[n.param('min reach',q(t),[0,t]),n.param('max reach',q(u),[0,u]),n.param('platform',this.props.platform)]);},renderReachEstimate:function(){if(this.props.estimateDAU<r)return (k.createElement('span',{className:"_kn_"},n._({"*":"Fewer than {a round number (currently 100)} people on {platform}"},[n.param('a round number (currently 100)',q(r),[0,r]),n.param('platform',this.props.platform)])));return (k.createElement('span',{className:"_kn_"},this.getReachEstimateRangeString(this.props.reachBounds.min,this.props.reachBounds.max)));},renderAudienceSize:function(){var t=this.props.explanationMessage,u;if(t)u=k.createElement(h,{position:'left',width:300},t);return (k.createElement(j,null,k.createElement('span',{className:"_3o8k"},n._("0")),k.createElement('span',{className:"_3o8l"},n._("of {audience size}",[n.param('audience size',q(Math.max(this.props.estimateDAU,r)))]),u)));},_renderErrorMsg:function(){return (k.createElement(l,{use:'notify'},n._("Estimated reach is unavailable.")));}});f.exports=s;},null);
__d('AdsReachEstimateStrings',['fbt'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i={ESTIMATE_FACEBOOK_DAU_EXPLANATION:h._("This is the total number of people in your selected audience who are active on Facebook each day."),ESTIMATE_INSTAGRAM_DAU_EXPLANATION:h._("The potential reach is an estimation based on an approximation of the audience eligible to see your ads on Instagram and several other factors.")};f.exports=i;},null);
__d('AdsLocationValidationHelpers',['LocationConstants'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=/^\d+(-\d+)?\s+\d*\D/i;function j(n){return i.test(n);}function k(n,o){var p=n.getAuxiliaryData(),q=p&&p.type;if(q===h.GEO_MARKETS&&o){return false;}else return true;}function l(n,o){return n.map(function(p){var q=p.getType(),r=p.getTitle(),s=p.getAuxiliaryData(),t={};switch(q){case h.COUNTRIES:t={zipcode:'',city:'',region:'',country:r,country_code:s.key};break;case h.REGIONS:t={zipcode:'',city:'',region:r,region_id:s.key,country:o[s.country_code]};break;case h.CITIES:var u=r.split(',');t={zipcode:'',city:u[0],region:s.region||'',region_id:s.region_id,country:o[s.country_code]};break;case h.CUSTOM_LOCATIONS:t={zipcode:'',city:'',region:'',country:o[s.country_code]};break;case h.GEO_MARKETS:t={zipcode:'',city:'',region:'',country:o[s.country_code]};break;case h.ZIPS:var v=s.key.split(':');t={zipcode:v[v.length-1],city:s.primary_city||'',region:s.region||'',region_id:s.region_id,country:o[s.country_code]};break;}t.country_code=t.country_code||s.country_code;t.category=q;t.entry=p;return t;});}function m(n,o){var p=l(n,o),q={},r={};p.map(function(z){var aa=z.category,ba=z.entry;switch(aa){case h.COUNTRIES:q[z.country_code]=ba;break;case h.REGIONS:r[z.region_id]=ba;}});var s,t=[];for(var u=0;u<p.length;u++){var v=p[u],w=v.entry,x=q[v.country_code],y=r[v.region_id];if(x&&x!==w){s=s?s:x;t.push(w);}else if(y&&y!==w){s=s?s:y;t.push(w);}}return {invalidEntry:s,subsetEntries:t};}g.isValidEntry=k;g.looksLikeAddress=j;g.normalizeEntriesAsLocationInfo=l;g.determineInvalidEntry=m;},null);
__d('AdsLocationTypeTranslationHelper',['LocationConstants','fbt'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();function j(k){switch(k){case h.CUSTOM_LOCATIONS:return i._("Address");case h.CITIES:return i._("City");case h.REGIONS:return i._("State");case h.GEO_MARKETS:return i._("Market");case h.COUNTRIES:return i._("Country");case h.ZIPS:return i._("Zip\/Postal Code");case h.PLACES:return i._("Place");}}g.translatedLocationType=j;},null);
__d('AdsLocationTypeaheadPresenter',['XUITokenizerToken.react','AdsLocationTypeaheadEntriesView.react'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=50,k={ViewRenderer:i,TokenRenderer:h,useLayer:true,maxEntries:j};f.exports=k;},null);
__d('AdsLocationTokenizer.react',['cx','emptyFunction','React','AbstractTokenizer.react','AdsLocationSearchSource','AdsLocationTypeaheadPresenter','AdsLocationValidationDialog.react','AdsLocationValidationHelpers'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){if(c.__markCompiled)c.__markCompiled();var p=j.PropTypes,q=j.createClass({displayName:'AdsLocationTokenizer',propTypes:{entries:p.array.isRequired,countries:p.object.isRequired,onChange:p.func,searchSource:p.object,searchSourceOptions:p.object},getInitialState:function(){return {entries:this.props.entries};},render:function(){var r=this.props.searchSource;if(!r)r=l.getInstance();var s={},t={},u="_59_m"+(' '+"_557c")+(this.props.smallInput?' '+"_p63":''),v=m;v.extraRendererProps={countries:this.props.countries};return (j.createElement('div',{className:u},j.createElement(n,{ref:'validationDialog',entriesRadius:s,updateRadius:i,exclusionEntries:t,updateExclusion:i,addEntry:this.onAddEntryAttempt,removeEntry:this.onRemoveEntryAttempt,currentEntries:this.state.entries}),j.createElement(k,{ref:'tokenizer',entries:this.props.entries,countries:this.props.countries,className:"_59_n",presenter:v,searchSource:r,onAddEntryAttempt:this.onAddEntryAttempt,onRemoveEntryAttempt:this.onRemoveEntryAttempt,searchSourceOptions:this.props.searchSourceOptions})));},onAddEntryAttempt:function(r){if(!r||!o.isValidEntry(r,true))return;var s=r.getUniqueID(),t=this.state.entries,u=t.some(function(z){return z.getUniqueID()===s;});if(u)return;var v=t.slice();v.push(r);var w=o.determineInvalidEntry(v,this.props.countries),x=w.invalidEntry;if(x){var y=this.refs.validationDialog;if(x===r){y.setInfo(r,w.subsetEntries);y.show();}else{y.setInfo(r,[x]);y.show();}return;}t.push(r);this.setState({entries:t});this.refs.tokenizer.setState({queryString:''});this.notifyChange();},onRemoveEntryAttempt:function(r){var s=this.state.entries,t=s.indexOf(r);if(t==-1)return;s.splice(t,1);this.setState({entries:s});this.notifyChange();},notifyChange:function(){if(this.props.onChange)this.props.onChange(this.state.entries.slice());}});f.exports=q;},null);
__d('MultiImageSelectorConstants',['adsGKCheck'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={MAX_NUMBER_OF_IMAGES:h('ads_creation_remove_6_images_limit_new_design')&&h('ads_creation_remove_6_images_limit_use_50')?50:6};f.exports=i;},null);
__d('AdsCFBox.react',['React','XUICloseButton.react','cx','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l=h.PropTypes,m={info:'uiBoxLightblue',red:'uiBoxRed',yellow:'uiBoxYellow'},n=Object.keys(m),o=h.createClass({displayName:'AdsCFBox',propTypes:{onCloseIconClick:l.func,type:l.oneOf(n).isRequired},onClose:function(){this.props.onCloseIconClick&&this.props.onCloseIconClick();},render:function(){var p=this.props.onCloseIconClick?h.createElement(i,{onClick:this.onClose,className:"_5cmp",size:'small'}):null,q=k("_5cmq",'pam',m[this.props.type]);return (h.createElement('div',babelHelpers._extends({},this.props,{className:k(this.props.className,q)}),p,this.props.children));}});f.exports=o;},null);
__d('AdsCFCreativeImagePanelAction.react',['React','XUIButton.react','cx','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l=h.PropTypes,m=h.createClass({displayName:'AdsCFCreativeImagePanelAction',propTypes:{label:l.oneOfType([l.string,l.object]).isRequired,className:l.string,disabled:l.bool,fileInputNodeID:l.string,hide:l.bool,iconHeight:l.number,iconWidth:l.number,iconSrc:l.object,onClick:l.func,onUploadEnd:l.func,onUploadStart:l.func,size:l.oneOf(['small','medium','large','xlarge','xxlarge'])},getDefaultProps:function(){return {disabled:false,size:'xlarge'};},render:function(){var n=this.props.label,o=this.props.disabled,p=o?null:this.props.onClick,q=this.props.fileInputNodeID||'',r=k(this.props.className,"_5y_t"+(o?' '+"_5y_u":'')),s=this.props['aria-label'],t='tooltip',u,v,w;if(q){u=h.createElement('span',{className:"_5y_v",'aria-label':s,'data-hover':t,onClick:p});p=null;}else{v=s;w=t;}if(this.props.hide)return (h.createElement('label',{htmlFor:o?'':q,className:r},u,this.props.children));return (h.createElement('label',{htmlFor:o?'':q,className:r},u,this.props.children,h.createElement(i,{size:this.props.size,label:n,disabled:o,onClick:p,'aria-label':v,'data-hover':w})));}});f.exports=m;},null);
__d('AdsCFCreativeImagePanelCropperAction.react',['AdsCFCreativeImagePanelAction.react','AdsImageCropperEditorDialogMixins','React','ix'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l=j.PropTypes,m=j.createClass({displayName:'AdsCFCreativeImagePanelCropperAction',mixins:i,propTypes:{className:l.string,disabled:l.bool,tooltip:l.string.isRequired,label:l.string.isRequired,iconHeight:l.number,iconWidth:l.number,size:l.oneOf(['small','medium','large','xlarge','xxlarge'])},render:function(){return (j.createElement(h,{onClick:this.showCropper,'aria-label':this.props.tooltip,className:this.props.className,disabled:this.props.disabled,iconSrc:k('/images/ads/createflow/creative/icon-crop.png'),iconWidth:this.props.iconWidth,iconHeight:this.props.iconHeight,label:this.props.label,size:this.props.size}));}});f.exports=m;},null);
__d('AdsCFCreativeImagePanelUploaderAction.react',['AdsCFCreativeImagePanelAction.react','DOM','MultiImageSelectorConstants','React','ReactDOM','SubscriptionsHandler','cx','emptyFunction','fbt','ix','AdsImageUploader','AdsImageUploader'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=c('AdsImageUploader').AdsImageUploader,s=c('AdsImageUploader').AdsImageUploaderConstants,t=k.PropTypes,u=j.MAX_NUMBER_OF_IMAGES,v=k.createClass({displayName:'AdsCFCreativeImagePanelUploaderAction',propTypes:{accountID:t.string.isRequired,multiple:t.bool,hide:t.bool,imageSpec:t.shape({minWarningWidth:t.number.isRequired,minWarningHeight:t.number.isRequired}),onUploadClick:t.func,onUploadEnd:t.func,onUploadStart:t.func,postponeDestroyUploader:t.bool,validateImageFormat:t.bool,validateImageSize:t.bool},getDefaultProps:function(){return {hide:false,onUploadClick:o,onUploadStart:o,onUploadEnd:o,postponeDestroyUploader:false};},componentDidMount:function(){this._uploaderDataList=[this._createUploaderData()];},componentWillUnmount:function(){this._uploaderDataList.forEach(this._cleanUploaderData,this);delete this._uploaderDataList;},render:function(){var w=q('/images/ads/createflow/creative/icon-upload.png'),x=this.props.disabled,y,z=p._("Upload");if(this.props.multiple){y=x?p._({"*":"You've selected the maximum of {max_count} images. You can remove some images if you want to upload more."},[p.param('max_count',u,[0])]):p._("Upload new images for your ads.");}else y=p._("Upload a new image for your ads.");var aa="_5yya"+(x?' '+"hidden_elem":'');return (k.createElement(h,babelHelpers._extends({},this.props,{label:z,'aria-label':y,hide:this.props.hide,iconSrc:w,offset:this.props.offset,onClick:this.props.onUploadClick,size:this.props.size}),k.createElement('div',{className:aa,ref:'uploaders'})));},_onUploadStart:function(w,x,y){w.input.removeAttribute('id');w.element.className='hidden_elem';w.filesCount=y.length;this._uploaderDataList.push(this._createUploaderData());this.props.onUploadStart(y);},_onUploadEnd:function(w,x,y){this.props.onUploadEnd(y);this._destroyUploaderData(w);},_createUploaderData:function(){var w={},x=i.create('span',{className:s.UPLOAD_ELEMENT});l.findDOMNode(this.refs.uploaders).appendChild(x);var y=new r(x,{accountId:this.props.accountID,imageSpec:this.props.imageSpec,multiple:this.props.multiple,validateImageSize:this.props.validateImageSize,validateImageFormat:this.props.validateImageFormat}),z=x.getElementsByTagName('input')[0];z.id=this.props.fileInputNodeID;var aa=new m();aa.addSubscriptions(y.subscribe('onUploadStarted',this._onUploadStart.bind(this,w)),y.subscribe('onUploadEnded',this._onUploadEnd.bind(this,w)));w.filesCount=0;w.uploader=y;w.input=z;w.element=x;w.subscriptions=aa;return w;},_cleanUploaderData:function(w){if(this.props.postponeDestroyUploader)return;this._destroyUploaderData(w);},_destroyUploaderData:function(w){if(w.uploader){delete w.uploader;w.subscriptions.release();delete w.subscriptions;i.remove(w.element);delete w.input;delete w.element;}}});f.exports=v;},null);
__d("AdInterfacesAppNames",[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();f.exports={CREATE_FLOW:"ads-adscreator",AUDIENCE_MANAGER:"ads-customaudiencesmanager",AUDIENCE_MANAGER_V3:"ads-audiencesmanager",AUDIENCE_MANAGER_CM:"ads-audiencesmanager-cm",MODULAR_TARGETING_COMPONENT:"modular_targeting_component",POWER_EDITOR:"ads-powereditor",BOOSTED_POSTS:"ads-boostedposts",CONVERSION_TRACKING:"ads-conversion-tracking",AUDIENCE_INSIGHTS:"audience-insights",ATLAS:"atlas",CAMPAIGN_MANAGER:"ads-campaign-manager"};},null);
__d('AdsCreativeImageTextOverlayDialog.react',['AdInterfacesAppNames','AdsArrowedContainer.react','AdsDispatcher','AdsImageValidationActionTypes','CenteredContainer.react','Event','Image.react','ImageBlock.react','Layout.react','Link.react','List.react','React','ReactChildren','ReactComponentWithPureRenderMixin','ReactLayeredComponentMixin','XUIDialog.react','XUIDialogButton.react','XUIDialogBody.react','XUIDialogFooter.react','XUIDialogTitle.react','XUIText.react','cssVar','cx','emptyFunction','emptyObject','fbt','invariant','ix'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia){if(c.__markCompiled)c.__markCompiled();var ja=p.Column,ka=s.PropTypes,la=5,ma=s.createClass({displayName:'AdsCreativeImageTextOverlayDialog',mixins:[v,u],propTypes:{images:ka.array.isRequired,source:ka.string,preselectedBoxes:ka.arrayOf(ka.arrayOf(ka.bool)),readOnly:ka.bool,dialogShown:ka.bool,onHide:ka.func},getDefaultProps:function(){return {source:null,preselectedBoxes:[],readOnly:false,dialogShown:false,onHide:ea};},componentWillReceiveProps:function(na){this.setState(this._getStateFromProps(this.props,na));},getInitialState:function(){return this._getStateFromProps(fa,this.props);},_getStateFromProps:function(na,oa){return {textValidationToolShown:na.dialogShown!==oa.dialogShown?oa.dialogShown:!!this.state&&this.state.textValidationToolShown,currentImageIndex:0,boxesSelected:oa.preselectedBoxes[0]||this._initBoxesSelected(),isMouseDown:false,cellState:false,visitedBoxesDuringMouseDown:{}};},render:function(){if(t.count(this.props.children)===0)return null;return (s.createElement(q,{onClick:this._onClickTextValidation},this.props.children));},renderLayers:function(){return {textValidationDialog:s.createElement(w,{fixedTopPosition:40,shown:this.state.textValidationToolShown,width:800,modal:true,layerHideOnBlur:false},s.createElement(aa,{showCloseButton:false},ga._("Text Validation Tool")),s.createElement(y,{useCustomPadding:true},this.props.readOnly?null:this._renderToolTitle(),s.createElement(p,{className:"_f_"},s.createElement(ja,{className:"_g0 _3-90"},s.createElement(l,null,this._renderImageGrid(),this._renderImageSelector())),s.createElement(ja,{className:"_g1 _3-8t"},this._renderToolBlurb()))),s.createElement(z,null,s.createElement(x,{label:ga._("Done"),action:'cancel',use:'confirm',onClick:this._onTextOverlayDialogHide})))};},componentDidMount:function(){this._mouseupHandlerRef=m.listen(document,'mouseup',this._mouseUpGlobal);j.dispatch({action:{actionType:k.AD_IMAGE_VALIDATION_NOTICE_SHOWN,images:this.props.images.map(function(na){return na.getUrl();})}});},componentWillUnmount:function(){this._mouseupHandlerRef.remove();this._mouseupHandlerRef=null;},_onClickTextValidation:function(){if(this.props.images.length>0)this._goToIndex(0);},_onTextOverlayDialogHide:function(){this.setState({textValidationToolShown:false},this.props.onHide);},_initBoxesSelected:function(){var na=[];for(var oa=0;oa<la*la;++oa)na[oa]=false;return na;},_getImage:function(na){var oa=this._getImageUrl(this.state.currentImageIndex);if(!oa)return null;return (s.createElement(n,{src:oa,width:na}));},_getImageUrl:function(na){if(na>=this.props.images.length)return null;var oa=this.props.images[na];if(!oa.isStockImage())return oa.getUrl();!(oa.getFullSizeUrl()!==null)?ha(0):undefined;return oa.getFullSizeUrl();},_renderImageGrid:function(){if(this.state.currentImageIndex>=this.props.images.length)return null;var na=this.props.images[this.state.currentImageIndex],oa="480",pa="360",qa=oa/na.getWidth();if(na.getHeight()*qa>=pa)qa=pa/na.getHeight();var ra=[];for(var sa=0;sa<la;++sa){var ta=[];for(var ua=0;ua<la;++ua){var va=sa*la+ua;ta.push(s.createElement('td',{key:ua,className:(this.state.boxesSelected[va]?"_g2":'')+(!this.state.boxesSelected[va]&&this.props.readOnly?' '+"_ily":'')+(!this.state.boxesSelected[va]&&!this.props.readOnly?' '+"_ilz":'')+(this.state.boxesSelected[va]&&!this.props.readOnly?' '+"_5e9c":'')+(!this.state.boxesSelected[va]&&!this.props.readOnly?' '+"_5e9d":'')+(' '+"_ge"),onMouseDown:this._mouseDownOnGrid.bind(this,sa,ua),onMouseMove:this._mouseMoveOnGrid.bind(this,sa,ua)}));}ra.push(s.createElement('tr',{key:sa},ta));}var wa=na.getWidth()*qa,xa=na.getHeight()*qa,ya=this.state.currentImageIndex<this.props.images.length-1,za=this.state.currentImageIndex>0;return (s.createElement(i,{className:!ya&&!za?"_3-98":'',onIncrement:ya?this._incrementIndex:null,onDecrement:za?this._decrementIndex:null},s.createElement('div',{style:{height:xa+'px'}},this._getImage(wa),s.createElement('table',{className:"_gj",style:{height:xa+la+'px'}},s.createElement('tbody',null,ra)))));},_renderImageSelector:function(){if(this.props.images.length<=1)return null;var na=[];for(var oa=0;oa<this.props.images.length;++oa)na.push(s.createElement('li',{key:oa},s.createElement(q,{onClick:this._goToIndex.bind(this,oa),className:"_2ph-"+(this.state.currentImageIndex===oa?' '+"_h1":'')},oa+1)));return (s.createElement(r,{direction:'horizontal',border:'none',spacing:'large',className:"_hd"},na));},_renderToolTitle:function(){return (s.createElement(o,{className:"_3-8t _3-8q"},s.createElement(n,{className:"_3-8u",src:ia('/images/ads/integrity/text_overlay_icon_20.png')}),ga._("Ad images with text that takes up more than 20\u0025 of the image may not be approved. {Learn more about Facebook's Advertising Guidelines}.",[ga.param('Learn more about Facebook\'s Advertising Guidelines',s.createElement(q,{href:'/help/468870969814641/',target:'_blank'},ga._("Learn more about Facebook's Advertising Guidelines")))])));},_renderToolBlurb:function(){return (s.createElement('div',null,this.props.readOnly?this._renderReadOnlyTextPercentages():this._renderSelectableTextPercentages(),this.props.readOnly?this._renderReadOnlyToolHelp():this._renderSelectableToolHelp()));},_renderReadOnlyTextPercentages:function(){var na=this._countBoxesSelected();return (s.createElement('div',{border:'light',display:'block'},s.createElement(ba,{className:"_3-8q",display:'block',size:'large'},ga._("This image has approximately")),s.createElement(ba,{display:'block',weight:'bold',className:"_hg"+(na>la?' '+"_3r0a":'')+(' '+"_3-8q")},ga._("{Percentage of boxes selected, followed by: \u0025 Text}\u0025 Text",[ga.param('Percentage of boxes selected, followed by: % Text',na*4)]))));},_renderSelectableTextPercentages:function(){var na=this._countBoxesSelected();return (s.createElement(r,{direction:'horizontal',border:'light',spacing:'large',className:"_he"},s.createElement('li',{className:"_2pi2 _hf"},s.createElement(ba,{display:'block',size:'large',className:"_3-8q"},ga._("Selected")),s.createElement(ba,{display:'block',className:"_hg _3-8p",weight:'bold'},na)),s.createElement('li',{className:"_2pi2 _hf"},s.createElement(ba,{display:'block',size:'large',className:"_3-8q"},ga._("Text")),s.createElement(ba,{display:'block',weight:'bold',className:"_hg"+(na>la?' '+"_hw":'')+(' '+"_3-8p")},ga._("{Percentage of boxes selected}\u0025",[ga.param('Percentage of boxes selected',na*4)])))));},_renderSelectableToolHelp:function(){var na=Math.floor(.2*la*la)+1;return (s.createElement('div',{className:"_3r0b"},s.createElement(ba,{weight:'bold'},ga._("How to Use")),s.createElement('p',null,ga._("Click on all boxes that contain text. If there is text in {Number of boxes to exceed 20\u0025 threshold} or more boxes of the grid, then your image may not meet our guidelines.",[ga.param('Number of boxes to exceed 20% threshold',na)])),s.createElement('p',null,ga._("If you have more than one image that includes text, then be sure to check each one."))));},_renderReadOnlyToolHelp:function(){return (s.createElement('div',{className:"_3r0b"},s.createElement(ba,{display:'block'},ga._("Ad images with more than 20\u0025 text may not be approved.")),s.createElement(ba,{display:'block',className:"_3-8q"},ga._("Learn more about {=Facebook's Advertising Guidelines}.",[ga.param('=Facebook\'s Advertising Guidelines',s.createElement(q,{href:'/help/468870969814641/',target:'_blank'},s.createElement(ba,{weight:'bold'},ga._("Facebook's Advertising Guidelines"))))]))));},_countBoxesSelected:function(){return this.state.boxesSelected.filter(function(na){return !!na;}).length;},_goToIndex:function(na){if(this.props.source===h.CREATE_FLOW)j.dispatch({action:{actionType:k.AD_IMAGE_VALIDATION_TOOL_USE,image:this._getImageUrl(na)}});this.setState({currentImageIndex:na,boxesSelected:this.props.preselectedBoxes[na]||this._initBoxesSelected(),textValidationToolShown:true});},_incrementIndex:function(){this._goToIndex(this.state.currentImageIndex+1);},_decrementIndex:function(){this._goToIndex(this.state.currentImageIndex-1);},_mouseDownOnGrid:function(na,oa){if(this.props.readOnly)return;if(this.state.isMouseDown)return;var pa=na*la+oa,qa=this.state.boxesSelected,ra=this.state.boxesSelected[pa];qa[pa]=!ra;var sa=this.state.visitedBoxesDuringMouseDown;sa[pa]=true;this.setState({boxesSelected:qa,visitedBoxesDuringMouseDown:sa,isMouseDown:true,cellState:ra});},_mouseUpGlobal:function(){if(this.props.readOnly)return;if(!this.state.isMouseDown)return;this.setState({isMouseDown:false,visitedBoxesDuringMouseDown:{}});},_mouseMoveOnGrid:function(na,oa){if(this.props.readOnly)return;var pa=na*la+oa;if(this.state.isMouseDown&&this.state.visitedBoxesDuringMouseDown[pa]===undefined&&this.state.boxesSelected[pa]==this.state.cellState){var qa=this.state.boxesSelected;qa[pa]=!this.state.boxesSelected[pa];var ra=this.state.visitedBoxesDuringMouseDown;ra[pa]=true;this.setState({boxesSelected:qa,visitedBoxesDuringMouseDown:ra});}}});f.exports=ma;},null);
__d('AdsReviewAPIBanner.react',['AdsHelpTraySpinner.react','AdsReviewAPIFeedbackRenderingUtils','AdsLoadState','Link.react','React','ReactComponentWithPureRenderMixin','XUINotice.react','XUIText.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=l.PropTypes,s=l.createClass({displayName:'AdsReviewAPIBanner',mixins:[m],propTypes:{canRequestAPIAppeal:r.bool,content:r.objectOf(r.object).isRequired,loadingStatus:r.oneOf(Object.keys(j)),onReviewAPIAppealRequest:r.func},getDefaultProps:function(){return {canRequestAPIAppeal:false,onReviewAPIAppealRequest:null};},render:function(){if(this.props.loadingStatus===j.LOADING)return l.createElement(h,null);if(this._hasError()||Object.keys(this.props.content).length===0)return l.createElement('div',null);var t=i.constructUnorderedCMSList(this.props.content);return (l.createElement(n,{className:"_3-95",use:'warn'},l.createElement(o,{className:"_3-95",size:'medium',weight:'bold'},q._("Your Ad May Not Be Approved")),t,this._getBannerFooter()));},_getBannerFooter:function(){return (l.createElement('div',{className:"_3-8x"},q._("Read our {Advertising Policies Link} and edit your ad.",[q.param('Advertising Policies Link',l.createElement(k,{href:'https://www.facebook.com/policies/ads/'},q._("Advertising Policies")))]),' ',this._getRequestReviewMessage()));},_getRequestReviewMessage:function(){if(!this.props.canRequestAPIAppeal)return null;return q._("If you think we've made a mistake, you can {request a review}.",[q.param('request a review',l.createElement(k,{onClick:this.props.onReviewAPIAppealRequest},q._("request a review")))]);},_hasError:function(){return this.props.loadingStatus===j.ERROR;}});f.exports=s;},null);
__d('AdsConversionDate',['formatDate'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();function i(){}i.prototype.getTodayStart=function(){var k=new Date();return new Date(k.getFullYear(),k.getMonth(),k.getDate());};i.prototype.getTodayEnd=function(){var k=new Date();return new Date(k.getFullYear(),k.getMonth(),k.getDate(),23,59,59,999);};i.prototype.getYesterdayStart=function(){var k=new Date();return new Date(k.getFullYear(),k.getMonth(),k.getDate()-1);};i.prototype.getYesterdayEnd=function(){var k=new Date();return new Date(k.getFullYear(),k.getMonth(),k.getDate()-1,23,59,59,999);};i.prototype.getDaysBefore=function(k){var l=new Date();return new Date(l.getFullYear(),l.getMonth(),l.getDate()-k);};i.prototype.getUserfacingDate=function(k){return h(k,'m/d');};var j=new i();f.exports=j;},null);
__d('AdsConversionDateChoices',['AdsConversionDate','fbt'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={TODAY:{key:'TODAY',userFacingValue:i._("Today"),startTime:h.getTodayStart().getTime()/1000,endTime:h.getTodayStart().getTime()/1000},YESTERDAY:{key:'YESTERDAY',userFacingValue:i._("Yesterday"),startTime:h.getYesterdayStart().getTime()/1000,endTime:h.getYesterdayStart().getTime()/1000},LAST_7_DAYS:{key:'LAST_7_DAYS',userFacingValue:i._("Last 7 days: {start date} - {end date}",[i.param('start date',h.getUserfacingDate(h.getDaysBefore(7))),i.param('end date',h.getUserfacingDate(new Date()))]),startTime:h.getDaysBefore(7).getTime()/1000,endTime:h.getTodayStart().getTime()/1000},LAST_14_DAYS:{key:'LAST_14_DAYS',userFacingValue:i._("Last 14 days: {start date} - {end date}",[i.param('start date',h.getUserfacingDate(h.getDaysBefore(14))),i.param('end date',h.getUserfacingDate(new Date()))]),startTime:h.getDaysBefore(14).getTime()/1000,endTime:h.getTodayStart().getTime()/1000}};f.exports=j;},null);
__d('BoostedActionInsightsNumUtil',['InsightsNumUtils'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={percent:function(j){return h.prettyFloat(Math.round(j*1000)/10)+'%';},getSortedIndices:function(j){var k=[],l;for(l=0;l<j.length;++l)k[l]={value:j[l],index:l};k.sort(function(m,n){return n.value-m.value;});for(l=0;l<k.length;++l)k[l]=k[l].index;return k;}};f.exports=i;},null);
__d('Rectangle.art',['React','ReactART'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=h.PropTypes,k=i.Shape,l=i.Path,m=h.createClass({displayName:'Rectangle',propTypes:{width:j.number.isRequired,height:j.number.isRequired,radius:j.number,radiusTopLeft:j.number,radiusTopRight:j.number,radiusBottomRight:j.number,radiusBottomLeft:j.number},render:function(){var n=this.props.width,o=this.props.height,p=this.props.radius?this.props.radius:0,q=this.props.radiusTopLeft?this.props.radiusTopLeft:p,r=this.props.radiusTopRight?this.props.radiusTopRight:p,s=this.props.radiusBottomRight?this.props.radiusBottomRight:p,t=this.props.radiusBottomLeft?this.props.radiusBottomLeft:p,u=l();if(n<0){u.move(n,0);n=-n;}if(o<0){u.move(0,o);o=-o;}if(q<0)q=0;if(r<0)r=0;if(s<0)s=0;if(t<0)t=0;if(q+r>n){q=0;r=0;}if(t+s>n){t=0;s=0;}if(q+t>o){q=0;t=0;}if(r+s>o){r=0;s=0;}u.move(0,q);if(q>0)u.arc(q,-q);u.line(n-(r+q),0);if(r>0)u.arc(r,r);u.line(0,o-(r+s));if(s>0)u.arc(-s,s);u.line(-n+(s+t),0);if(t>0)u.arc(-t,-t);u.line(0,-o+(t+q));return h.createElement(k,babelHelpers._extends({},this.props,{d:u}));}});f.exports=m;},null);
__d('InsightsGenderAgeButterflyChart.react',['InsightsAxisBackground','SpectrumChart','SpectrumComparableColumns','SpectrumPercentageScale','React','d3/scale/ordinal','SpectrumTooltipMenu','SpectrumStyle','SpectrumSplit','SpectrumXAxis','fbt','mergeDeep','mergeHelpers'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){if(c.__markCompiled)c.__markCompiled();var t=c('mergeHelpers').ArrayStrategies,u={columns:{colors:m().range(o.BUTTERFLY_COLORS)},gutter:{top:20,middle:24,bottom:20},rangeBands:{outerPadding:.15,padding:.15},xAxis:{labelColor:o.BUTTERFLY_LABEL,lineColor:null}},v=l.createClass({displayName:'InsightsGenderAgeButterflyChart',formatGenderAgeTooltip:function(w,x,y,z,aa,ba){var ca=this.props.tooltipFooter||'';return r._({"Women":"Women {ageRange} are {separator1}{percentage} of {group}{separator2}{comparisonPercentage} of {comparisonGroup}{footer}","Men":"Men {ageRange} are {separator1}{percentage} of {group}{separator2}{comparisonPercentage} of {comparisonGroup}{footer}"},[r['enum'](w,{Women:'Women',Men:'Men'}),r.param('ageRange',x),r.param('separator1',l.createElement('br',null)),r.param('percentage',y),r.param('group',z),r.param('separator2',l.createElement('br',null)),r.param('comparisonPercentage',aa),r.param('comparisonGroup',ba),r.param('footer',ca)]);},formatTooltip:function(w){return this.formatGenderAgeTooltip(w.label,w.xValueString,w.yValueString,w.title,w.comparisonYValueString,w.comparisonTitle);},render:function(){var w=s(u,this.props.theme,t.Clobber),x=this.props.top.values.length>1,y=x&&this.formatTooltip;if(this.props.tooltipFormatter)y=this.props.tooltipFormatter;return (l.createElement(i,{domain:this.props.domain,scaleY:this.props.scaleY||k(),width:this.props.width,height:this.props.height,theme:w},l.createElement(h,null),l.createElement(p,{layout:'middle-top'},l.createElement(j,{data:this.props.top.values,label:this.props.top.label,titles:this.props.titles,onClick:this._handleClick.bind(this,'top')}),l.createElement(q,{disableLines:true})),l.createElement(p,{layout:'middle-bottom'},l.createElement(j,{data:this.props.bottom.values,label:this.props.bottom.label,titles:this.props.titles,onClick:this._handleClick.bind(this,'bottom')})),l.createElement(n,{customFormat:y})));},_handleClick:function(w,x){if(this.props.onClick)this.props.onClick(x,w);}});f.exports=v;},null);
__d('BoostedActionInsightsButterflyChart.react',['React','SpectrumStyle','BoostedActionInsightsNumUtil','BoostedActionInsightsLegend.react','InsightsGenderAgeButterflyChart.react','d3/scale/ordinal','SpectrumIntegerScale','sumOfArray'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){if(c.__markCompiled)c.__markCompiled();var p={columns:{colors:m().range([i.LIGHT_BLUE3,i.BLUE4])},xAxis:{labelColor:"#000000",lineColor:null}},q=h.createClass({displayName:'BoostedActionInsightsButterflyChart',render:function(){var r=this.props,s=r.top,t=r.bottom,u=o(s.values[0]),v=o(t.values[0]),w=u+v,x,y;if(w===0){x=0;y=0;}else{x=u/w;y=v/w;}var z=j.percent(x),aa=j.percent(y),ba=z+' '+s.label,ca=aa+' '+t.label,da=h.createElement(k,{color:i.BLUE2,value:ba}),ea=h.createElement(k,{color:i.BLUE4,value:ca});return (h.createElement('div',null,h.createElement('div',null,da),h.createElement(l,{top:r.top,bottom:r.bottom,domain:r.domain,height:r.height,scaleY:n(),theme:p,titles:r.titles,width:r.width}),h.createElement('div',null,ea)));}});f.exports=q;},null);
__d('BoostedActionInsightsConstants',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={TAB_ENGAGEMENT:'tabEngagement',TAB_AGE_GENDER:'tabAgeGender',TAB_COUNTRY:'tabCountry',ENGAGEMENT_BARS_SHOWN:3,AGE_GENDER_CHART_HEIGHT:92,AGE_GENDER_CHART_WIDTH:320};f.exports=h;},null);
__d('BoostedActionInsightsAgeGender.react',['BoostedActionInsightsButterflyChart.react','BoostedActionInsightsConstants','React','fbt','cx'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m=j.createClass({displayName:'BoostedActionInsightsAgeGender',statics:{getName:function(){return i.TAB_AGE_GENDER;},getTitle:function(){return k._("People");}},render:function(){var n={"13-17":0,"18-24":1,"25-34":2,"35-44":3,"45-54":4,"55-64":5,"65+":6},o=Object.keys(n),p=this.props.values,q={label:k._("Men"),values:[[]]},r={label:k._("Women"),values:[[]]};for(var s=0;s<o.length;s++){q.values[0].push(0);r.values[0].push(0);}var t=0,u=0;for(var v in p){var w=p[v];for(var x in w){var y=n[x],z=w[x];if(v==="male"){q.values[0][y]=z;t+=z;}else if(v==='female'){r.values[0][y]=z;u+=z;}}}var aa=null;if(!t&&!u)aa=k._("No age\/gender data to display.");var ba=[""];if(t||u)var ca=j.createElement(h,{domain:o,top:r,bottom:q,titles:ba,height:i.AGE_GENDER_CHART_HEIGHT,width:i.AGE_GENDER_CHART_WIDTH});return (j.createElement('div',{className:"_203o"},j.createElement('div',{className:"_203p"},aa),ca,j.createElement('div',{className:"_203q"})));}});f.exports=m;},null);
__d('XUIBackgroundBar.react',['React','cx','sumOfArray'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=h.createClass({displayName:'XUIBackgroundBar',getColorAtIndex:function(l){if(Array.isArray(this.props.colors)){return this.props.colors[l];}else return this.props.colors(l);},render:function(){var l=this.props.values,m=j(l),n=this.props.scale;n.rangeRound([0,100]);var o={width:n(m)+'%'};function p(q,r){if(r>0&&q===0)return null;var s=n(m)!==0?100*n(q)/n(m)+'%':'0',t={backgroundColor:this.getColorAtIndex(r),width:s};return (h.createElement('div',{className:"_5abn",key:r,style:t}));}return (h.createElement('div',{className:"_5abm",style:o},l.map(p,this),h.createElement('div',{className:"_352g"})));}});f.exports=k;},null);
__d('BoostedActionInsightsHiddenSection.react',['React','cx','fbt'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=h.createClass({displayName:'BoostedActionInsightsHiddenSection',getInitialState:function(){return {hidden:true};},toggleHandler:function(){this.setState({hidden:!this.state.hidden});},render:function(){var l=this.state.hidden?"hidden_elem":'',m;if(this.state.hidden){m=j._("See More Details");}else m=j._("Hide details");return (h.createElement('div',{className:"_4fe0"},h.createElement('div',{className:l},this.props.children),h.createElement('div',{className:"_4fe1"},h.createElement('a',{href:'#',onClick:this.toggleHandler},m))));}});f.exports=k;},null);
__d('BoostedActionInsightsBarGroup.react',['BoostedActionInsightsBar.react','BoostedActionInsightsHiddenSection.react','React'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=j.createClass({displayName:'BoostedActionInsightsBarGroup',getColorAtIndex:function(l){return this.props.colors[l];},getLabelAtIndex:function(l){return this.props.labels[l];},getTooltipAtIndex:function(l){return this.props.tooltips[l];},getShowIfZeroAtIndex:function(l){var m=this.props.showifzero;if(!m)return false;return m[l];},getInlineLabelAtIndex:function(l){var m=this.props.inlineLabels;if(!m)return null;return m[l];},render:function(){var l=this.props.values;function m(u,v){if(u===0&&!this.getShowIfZeroAtIndex(v))return null;var w=this.getColorAtIndex(v),x=this.getLabelAtIndex(v),y=this.getTooltipAtIndex(v),z=this.getInlineLabelAtIndex(v);return (j.createElement(h,{key:v,color:w,label:x,scale:this.props.scale,value:u,tooltip:y,inlineLabel:z}));}var n=l.map(m,this),o=this.props.order;if(o){var p=[];for(var q=0;q<o.length;q++)p.push(n[o[q]]);n=p;}n=n.filter(function(u){return u;});var r=this.props.maxshown;if(r){var s=n.slice(r),t=null;if(s.length)t=j.createElement(i,null,s);n=j.createElement('div',null,n.slice(0,r),t);}return (j.createElement('div',null,n));}});f.exports=k;},null);
__d('BoostedActionInsightsCountry.react',['BoostedActionInsightsBarGroup.react','BoostedActionInsightsConstants','BoostedActionInsightsNumUtil','SpectrumIntegerScale','React','cx','fbt','sumOfArray'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){if(c.__markCompiled)c.__markCompiled();var p=l.createClass({displayName:'BoostedActionInsightsCountry',statics:{getName:function(){return i.TAB_COUNTRY;},getTitle:function(){return n._("Countries");}},render:function(){var q=this.props.values,r=q.data,s=q.names,t=[];for(var u in r)if(r[u]>0)t.push({iso:u,data:r[u]});t.sort(function(ia,ja){return ia.data-ja.data;});var v=[],w=[],x=[],y=0;for(var z=0;z<t.length;z++){var aa=t[z].data,ba=t[z].iso;w.push(s[ba]);v.push(aa);x.push(n._("{country}: {number}",[n.param('country',s[ba]),n.param('number',aa)]));if(aa>y)y=aa;}var ca=k().domain([0,y]),da=o(v);function ea(ia,ja){return j.percent(ia/da);}var fa=v.map(ea),ga=[];for(z=0;z<fa.length;z++)ga.push("#B1BDD6");var ha=null;if(!t.length)ha=n._("No Country data to display");return (l.createElement('div',{className:"_203o"},l.createElement('div',{className:"_203p"},ha),l.createElement(h,{values:v,colors:ga,scale:ca,labels:w,tooltips:x,inlineLabels:fa}),l.createElement('div',{className:"_203q"})));}});f.exports=p;},null);
__d("InsightsSectionUtils",[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={areSectionsEqual:function(i,j){return (i.type.getKey(i.props)===j.type.getKey(j.props));},getSectionByKey:function(i,j){for(var k=j.length-1;k>=0;--k){var l=j[k];if(l.type.getKey(l.props)===i)return l;}}};f.exports=h;},null);
__d('InsightsTabbedSectionsMixin',['Image.react','InsightsSectionUtils','React','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l={getActiveSection:function(){var m=null;if(this.props.activeKey){m=i.getSectionByKey(this.props.activeKey,this.props.children);if(!m)m=this.props.children[0];}else m=this.props.children[0];return m;},onTabClick:function(m){var n=this.getActiveSection();if(!i.areSectionsEqual(m,n)){this.props.onTabClick&&this.props.onTabClick(m);var o=m.props.nuxProp;if(o&&this.state.nuxShownStates[o.name])this._closeSectionNUX(o);}},render:function(){var m=this.getActiveSection(),n=this.props.children.map(function(o,p){var q=i.areSectionsEqual(o,m),r=this.props.smallTitle?this.theme.smallNavLinkClass:this.theme.navLinkClass;if(q)r=k(r,this.theme.activeNavLinkClass);var s=null;if(q){var t=null;if(o.props.nubSource){t=o.props.nubSource;}else t=this.theme.nubSrc;s=j.createElement('noscript',null);if(t)s=j.createElement(h,{className:this.theme.nubClass,src:t});}var u,v=o.type.getSubtitle(o.props);if(v){u=j.createElement('div',{className:this.theme.subtitledBlockClass},j.createElement('div',null,o.type.getTitle(o.props)),j.createElement('div',{className:this.theme.subtitleClass},v));}else u=j.createElement('span',null,o.type.getTitle(o.props));return (j.createElement('a',{className:r,href:o.type.getTabHref(o.props),key:'section'+o.type.getKey(o.props),title:o.type.getTitle(o.props),onClick:this.onTabClick.bind(this,o)},s,u));},this);return (j.createElement('div',{className:this.props.className},j.createElement('div',{className:this.props.longNav?this.theme.longNavClass:this.theme.navClass},n),m));},_closeSectionNUX:function(m){this.state.nuxShownStates[m.name]=false;this.forceUpdate();m.onCloseButtonClick();}};f.exports=l;},null);
__d('BoostedActionInsightsTabbedSections.react',['InsightsTabbedSectionsMixin','React','cx','ix'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l=i.createClass({displayName:'BoostedActionInsightsTabbedSections',mixins:[h],theme:{activeNavLinkClass:"_1cqo",navClass:"_5cmi",navLinkClass:"_1cqp",nubClass:"_1cqq",nubSrc:k('/images/components/Insights/InsightsTabbedSections/nub.png')}});f.exports=l;},null);
__d('BoostedComponentAdStatusSelector.react',['BoostedActionStatus','Image.react','React','XUISelector.react','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=j.PropTypes,n=k.Option,o=j.createClass({displayName:'BoostedComponentAdStatusSelector',propTypes:{selectedAdStatus:m.string.isRequired,adStatusOptions:m.arrayOf(m.object).isRequired,onDataUpdate:m.func.isRequired},_onDataUpdate:function(p){this.props.onDataUpdate(p.value);},_getAdStatusOptions:function(){var p=[],q=this.props.adStatusOptions;for(var r=0;r<q.length;r++){var s=q[r],t=j.createElement(i,{src:s.icon});p.push(j.createElement(n,{key:s.value,value:s.value,icon:t},j.createElement('span',null,this._getAdStatusFBTString(s.value))));}return p;},_getAdStatusFBTString:function(p){switch(p){case h.ACTIVE:return l._("Active");case h.PAUSED:return l._("Paused");case h.INACTIVE:return l._("Deleted");default:return null;}},render:function(){return (j.createElement(k,{value:this.props.selectedAdStatus,onChange:this._onDataUpdate},this._getAdStatusOptions()));}});f.exports=o;},null);
__d('BoostedComponentLabeledEditor.react',['AdsLabeledField.react','React','cx','ix'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l=i.PropTypes,m=i.createClass({displayName:'BoostedComponentLabeledEditor',propTypes:{className:l.string,label:l.string.isRequired,tooltip:l.string},render:function(){return (i.createElement('div',{className:this.props.className},i.createElement(h,{className:"_2nvc",label:this.props.label,labelSize:'small',helpText:this.props.tooltip,imgNormal:k('images/components/HelpLink/info-light.png'),imgHover:k('images/components/HelpLink/info-light-hover.png')}),i.createElement('div',null,this.props.children)));}});f.exports=m;},null);
__d('BoostedComponentAddressEditor.react',['ActionList.react','BoostedComponentLabeledEditor.react','Link.react','React','XUIGrayText.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=k.PropTypes,p=k.createClass({displayName:'BoostedComponentAddressEditor',propTypes:{address:o.string,defaultLabel:o.string,className:o.string,onRequestChange:o.func,onResetRequest:o.func},render:function(){return (k.createElement(i,{className:this.props.className,label:n._("Target Location")},this._renderAddress(),this._renderActions()));},_renderActions:function(){return (k.createElement(h,{className:"_3g78"},this._renderLocationResetLink(),this._renderLocationEditLink()));},_renderAddress:function(){if(this.props.address!=null)return (k.createElement(l,{display:'block',shade:'medium'},this.props.address));return (k.createElement(l,{display:'block',shade:'light'},this.props.defaultLabel));},_renderLocationEditLink:function(){if(this.props.onRequestChange==null)return;return (k.createElement(j,{onClick:this.props.onRequestChange},n._("Edit Address")));},_renderLocationResetLink:function(){if(this.props.onResetRequest==null)return;return (k.createElement(j,{onClick:this.props.onResetRequest},n._("Use the Page Location")));}});f.exports=p;},null);
__d("XAudienceManagerController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/audience_manager\/",{act:{type:"Int"},aln:{type:"String"},alc:{type:"String"},business_id:{type:"Int"}});},null,{});
__d('BoostedComponentAdsManagerDialog.react',['LayerFadeOnHide','React','ReactLayeredComponentMixin','XAudienceManagerController','XUIDialog.react','XUIDialogTitle.react','XUIDialogBody.react','XUIDialogFooter.react','XUIDialogButton.react','XUIDialogCancelButton.react','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){if(c.__markCompiled)c.__markCompiled();var s=i.createClass({displayName:'BoostedComponentAdsManagerDialog',mixins:[j],getInitialState:function(){return {dialogShown:false};},_onLinkClick:function(){this.setState({dialogShown:true});},_onToggle:function(t){this.setState({dialogShown:t});},_onConfirm:function(){this.setState({dialogShown:false});return true;},renderLayers:function(){if(!this.state.dialogShown)return {};var t=r._("Edit Audience in Ads Manager"),u=r._("See Ads Manager"),v=k.getURIBuilder().setInt('act',this.props.adAccountID).getURI();return {dialog:i.createElement(l,{shown:true,behaviors:{LayerFadeOnHide:h},onToggle:this._onToggle,width:445},i.createElement(m,null,t),i.createElement(n,null,i.createElement('div',null,r._("This audience was created in Ads Manager. To edit your audience, you'll need to return to it."))),i.createElement(o,null,i.createElement(q,{use:'default',action:'cancel'}),i.createElement(p,{href:v,target:'_blank',label:u,use:'confirm',action:'confirm',onClick:this._onConfirm})))};},render:function(){return (i.createElement('span',{onClick:this._onLinkClick},this.props.children));}});f.exports=s;},null);
__d('BoostedComponentCTAPlaceEditor.react',['ActionList.react','AdsCallToActionUtils','BoostedComponentConstants','BoostedComponentLabeledEditor.react','BoostedComponentStrings','BootloadedComponent.react','City','Link.react','JSResource','React','XUICard.react','XUIDialog.react','XUIError.react','XUIGrayText.react','XUISpinner.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x){'use strict';if(c.__markCompiled)c.__markCompiled();var y=q.PropTypes,z=q.createClass({displayName:'LoadingDialog',render:function(){return (q.createElement(s,{onToggle:this.props.onToggle,shown:true,width:j.LOADING_DIALOG_WIDTH},q.createElement(r,null,q.createElement('div',{className:"_238c"},q.createElement(v,{background:'light',size:'large'})))));}}),aa=q.createClass({displayName:'BoostedComponentCTAPlaceEditor',propTypes:{ctaLink:y.string,onCTALinkChange:y.func.isRequired,userID:y.string,pageID:y.string,pageAccessToken:y.string,isLoading:y.bool,defaultCity:y.instanceOf(n),onEditAddressClick:y.func},getInitialState:function(){return {dialogShown:false};},render:function(){return (q.createElement(k,{label:l.CALL_TO_ACTION_ADDRESS_LABEL,tooltip:l.CALL_TO_ACTION_ADDRESS_TOOLTIP},q.createElement(h,null,this._renderLabel(),q.createElement(o,{onClick:this._loadDialog},l.CALL_TO_ACTION_ADDRESS_EDIT)),this._renderDialog()));},_loadDialog:function(){if(this.props.onEditAddressClick)this.props.onEditAddressClick();this._onToggle(true);},_renderLabel:function(){var ba=i.parseGeoLink(this.props.ctaLink||'');if(ba)return (q.createElement(u,{shade:'dark'},ba.toString()));return (q.createElement(t,{xuiError:l.CALL_TO_ACTION_ADDRESS_INVALID},q.createElement('span',null,x._("None"))));},_renderDialog:function(){if(!this.state.dialogShown)return null;if(this.props.isLoading){return q.createElement(z,{onToggle:this._onToggle});}else return (q.createElement(m,{bootloadLoader:p('AdsPagePlaceDialogContainer.react'),bootloadPlaceholder:q.createElement(z,{onToggle:this._onToggle}),onSubmit:this._onSubmit,onToggle:this._onToggle,userID:this.props.userID,pageID:this.props.pageID,pageAccessToken:this.props.pageAccessToken,shown:true,defaultCity:this.props.defaultCity}));},_onSubmit:function(ba){this.setState({dialogShown:false});if(ba.place)this.props.onCTALinkChange(i.makeGeoLink(ba.place));},_onToggle:function(ba){this.setState({dialogShown:ba});}});f.exports=aa;},null);
__d('BoostedComponentCallToActionSelector.react',['AdsAPIObjectives','AdsCallToActionTypes','AdsCreativeCallToActionField.react','BoostedComponentLabeledEditor.react','React','XUIText.react','adsGKCheck','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();var q=l.PropTypes,r=l.createClass({displayName:'BoostedComponentCallToActionSelector',propTypes:{apiObjective:q.string.isRequired,hideSelector:q.bool,isDisabled:q.bool,isReadOnly:q.bool,isDefaultOptionRequired:q.bool,label:q.string.isRequired,noButtonLabel:q.string,onCallToActionChange:q.func.isRequired,selectedCallToActionType:q.string,tooltip:q.string},_getCreativeCallToActionSelector:function(){var s=this.props.apiObjective,t,u;switch(this.props.apiObjective){case h.LOCAL_AWARENESS:u=i.TYPES.LIKE_PAGE.text;t=[i.TYPES.CALL_NOW.name,i.TYPES.GET_DIRECTIONS.name];if(n('ads_lwi_instore_learn_more_cta'))t.push(i.TYPES.LEARN_MORE.name);if(n('ads_local_awareness_message_page_cta_lwi'))t.push(i.TYPES.MESSAGE_PAGE.name);s=undefined;break;default:u=undefined;break;}return (l.createElement(k,{className:"_1doi",label:this.props.label,tooltip:this.props.tooltip},l.createElement(j,{apiObjective:s,availableTypes:t,disabledHintText:null,isDisabled:this.props.isDisabled,isReadOnly:this.props.isReadOnly,isRequired:this.props.isDefaultOptionRequired,noButtonLabel:this.props.noButtonLabel||u,onChange:this.props.onCallToActionChange,selectedType:this.props.selectedCallToActionType,size:'xlarge'})));},render:function(){if(this.props.hideSelector){var s=i.TYPES,t=null;if(!(this.props.selectedCallToActionType in s)){t=p._("No call to action selected or available.");}else{var u=s[this.props.selectedCallToActionType].text;t=p._("Your {label} call to action will appear as a button in your ad. To edit your call to action, click the {button label} button on your Page.",[p.param('label',l.createElement(m,{weight:'bold'},u)),p.param('button label',u)]);}return (l.createElement(k,{label:this.props.label},t));}return (this._getCreativeCallToActionSelector());}});f.exports=r;},null);
__d('BoostedComponentContent.react',['React','cx','joinClasses'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k=h.PropTypes,l=h.createClass({displayName:'BoostedComponentContent',propTypes:{className:k.string},render:function(){var m=0,n=h.Children.map(this.props.children,function(o,p){if(o==undefined)return o;return (h.createElement('div',{className:++m!==1?"_2jlc":''},o));});return (h.createElement('div',{className:j(this.props.className,"_2jld")},n));}});f.exports=l;},null);
__d('BoostedComponentCreativeEditorMixin',['BoostedComponentAppID','BoostedComponentCreativeEditingConfig'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={getFieldBadTextRules:function(){return {BAD_CHAR:/[\^~_=\{\}\[\]\|<>]/g,PUNC_STREAK:/[\/!.\\?\-*,;:()]{2,}/g,START_CHAR:/^[\/!\.\\?\-\*,:;()]/};},_getConfigForAppID:function(k,l){var m;switch(k){case h.BOOSTED_CCTA:m=i.BOOSTED_CCTA;break;case h.BOOSTED_POST:m=i.BOOSTED_POST;break;case h.BOOSTED_PRODUCT:m=i.BOOSTED_PRODUCT;break;case h.BOOSTED_EVENT:m=i.BOOSTED_EVENT;break;case h.BOOSTED_PAGELIKE:m=i.BOOSTED_PAGELIKE;break;case h.BOOSTED_WEBSITE:if(!!l){m=i.BOOSTED_WEBSITE_MPA;}else m=i.BOOSTED_WEBSITE;break;case h.BOOSTED_LOCAL_AWARENESS:m=i.BOOSTED_LOCAL_AWARENESS;break;}return m;},shouldRenderCreativeElement:function(k,l,m){var n=j._getConfigForAppID(k,m);if(!n)return false;return n.indexOf(l)>-1;},reorderCreativeElements:function(k,l,m){var n=j._getConfigForAppID(k,m);if(!n)return [];var o=[];n.map(function(p){if(l.has(p))o.push(l.get(p));});return o;}};f.exports=j;},null);
__d('BoostedComponentCreativeBodyEditor.react',['AdsCreationConfig','AdsTextInput.react','BoostedComponentCreativeEditorMixin','BoostedComponentCreativeEditingElement','BoostedComponentLabeledEditor.react','React','BoostedComponentStrings','getObjectValues'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){'use strict';if(c.__markCompiled)c.__markCompiled();var p=m.PropTypes,q=m.createClass({displayName:'BoostedComponentCreativeBodyEditor',mixins:[j],propTypes:{appID:p.string.isRequired,onBodyChange:p.func.isRequired,body:p.string,validateBody:p.func},render:function(){if(!this.shouldRenderCreativeElement(this.props.appID,k.CREATIVE_BODY))return null;return (m.createElement(l,{label:n.CREATIVE_BODY_LABEL,tooltip:n.CREATIVE_BODY_TOOLTIP},m.createElement(i,{badTextRules:o(this.getFieldBadTextRules()),errors:this.props.validateBody(this.props.body),hideMaxLength:true,maxLength:h.maxBodyLength,multiline:true,onChange:this.props.onBodyChange,placeholder:n.CREATIVE_BODY_PLACEHOLDER,value:this.props.body})));}});f.exports=q;},null);
__d('BoostedComponentCreativeLinkDataEditor.react',['AdsCreationConfig','AdsTextInput.react','BoostedComponentContent.react','BoostedComponentCreativeEditorMixin','BoostedComponentCreativeEditingElement','BoostedComponentLabeledEditor.react','BoostedComponentStrings','Map','React','TooltipLink.react','getObjectValues'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){'use strict';if(c.__markCompiled)c.__markCompiled();var s=p.PropTypes,t=p.createClass({displayName:'BoostedComponentCreativeLinkDataEditor',mixins:[k],propTypes:{appID:s.string.isRequired,shouldEdit:s.bool.isRequired,url:s.string,headline:s.string,text:s.string,onLinkDataURLChange:s.func,onLinkDataHeadlineChange:s.func,onLinkDataTextChange:s.func,validateLink:s.func,validateName:s.func,validateMessage:s.func,useMultiAdsView:s.bool},_getCreativeLinkDataURLInput:function(){if(!this.props.forceShow){if(!this.shouldRenderCreativeElement(this.props.appID,l.CREATIVE_LINK_DATA_URL,this.props.useMultiAdsView))return null;if(this.props.shouldEdit)return (p.createElement(m,{key:l.CREATIVE_LINK_DATA_URL,label:n.CREATIVE_LINK_DATA_URL_LABEL,tooltip:n.CREATIVE_LINK_DATA_URL_TOOLTIP},p.createElement(q,{tooltip:this.props.url},this.props.url)));}return (p.createElement(m,{key:l.CREATIVE_LINK_DATA_URL,label:n.CREATIVE_LINK_DATA_URL_LABEL,tooltip:n.CREATIVE_LINK_DATA_URL_TOOLTIP},p.createElement(i,{badTextRules:null,errors:this.props.validateLink(this.props.url),hideMaxLength:true,maxLength:h.maxURLLength,multiline:false,onChange:this.props.onLinkDataURLChange,placeholder:n.CREATIVE_LINK_DATA_URL_PLACEHOLDER,value:this.props.url})));},_getCreativeLinkDataHeadlineInput:function(){if(!this.props.forceShow)if(!this.shouldRenderCreativeElement(this.props.appID,l.CREATIVE_LINK_DATA_HEADLINE,this.props.useMultiAdsView))return null;return (p.createElement(m,{key:l.CREATIVE_LINK_DATA_HEADLINE,label:n.CREATIVE_LINK_DATA_HEADLINE_LABEL,tooltip:n.CREATIVE_LINK_DATA_HEADLINE_TOOLTIP},p.createElement(i,{badTextRules:r(this.getFieldBadTextRules()),errors:this.props.validateName(this.props.headline),hideMaxLength:true,maxLength:h.maxTitleLength,multiline:false,onChange:this.props.onLinkDataHeadlineChange,placeholder:n.CREATIVE_LINK_DATA_HEADLINE_PLACEHOLDER,value:this.props.headline})));},_getCreativeLinkDataTextInput:function(){if(!this.props.forceShow)if(!this.shouldRenderCreativeElement(this.props.appID,l.CREATIVE_LINK_DATA_TEXT,this.props.useMultiAdsView))return null;return (p.createElement(m,{key:l.CREATIVE_LINK_DATA_TEXT,label:n.CREATIVE_LINK_DATA_TEXT_LABEL,tooltip:n.CREATIVE_LINK_DATA_TEXT_TOOLTIP},p.createElement(i,{badTextRules:r(this.getFieldBadTextRules()),errors:this.props.validateMessage(this.props.text),hideMaxLength:true,maxLength:h.maxBodyLength,multiline:true,onChange:this.props.onLinkDataTextChange,placeholder:n.CREATIVE_LINK_DATA_TEXT_PLACEHOLDER,value:this.props.text})));},render:function(){var u=new o();u.set(l.CREATIVE_LINK_DATA_URL,this._getCreativeLinkDataURLInput());u.set(l.CREATIVE_LINK_DATA_HEADLINE,this._getCreativeLinkDataHeadlineInput());u.set(l.CREATIVE_LINK_DATA_TEXT,this._getCreativeLinkDataTextInput());var v=this.reorderCreativeElements(this.props.appID,u,this.props.useMultiAdsView);return (p.createElement(j,null,v));}});f.exports=t;},null);
__d('BoostedComponentImageCropper.react',['AdsCFCreativeImagePanelCropperAction.react','AdsImageLegacy','React','fbt'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l=j.PropTypes,m=j.createClass({displayName:'BoostedComponentImageCropper',propTypes:{className:l.string,imageSpecs:l.array.isRequired,image:l.instanceOf(i),onCropClick:l.func.isRequired,disabled:l.bool},render:function(){var n=k._("Reposition Image"),o=k._("Reposition Image"),p=k._("Reposition the image to change how it appears in your ad.");return (j.createElement(h,{className:this.props.className,disabled:this.props.disabled||!this.props.image,header:o,images:this.props.image?[this.props.image]:[],imageSpecs:this.props.imageSpecs,label:n,maxImageCount:1,onCropUpdate:this._onCropUpdate,size:'xlarge',tooltip:p}));},_onCropUpdate:function(n,o,p,q){this.props.onCropClick(o,q);}});f.exports=m;},null);
__d('BoostedComponentImageLibrarySelector.react',['AdsImageDialog.react','AdsImageLegacy','AdsImageStore','AdsMediaPanelTabs','React','ReactComponentWithPureRenderMixin','ReactLayeredComponentMixin','Tooltip.react','deepFreezeValue'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();var q=l.PropTypes,r={};p(r);var s=l.createClass({displayName:'BoostedComponentImageLibrarySelector',mixins:[n,m],propTypes:{accountID:q.string.isRequired,onImageSelected:q.func.isRequired,imageUrl:q.string,imageHash:q.string,className:q.string,clickableTrigger:q.element.isRequired,tooltipText:q.string,disabled:q.bool},getInitialState:function(){return {showDialog:false};},componentWillReceiveProps:function(u){this.setState(t({accountID:u.accountID,url:u.imageUrl,hash:u.imageHash}));},renderLayers:function(){var u=null;if(this.state.showDialog){var v={url:this.props.imageUrl,hash:this.props.imageHash};u=l.createElement(h,{accountID:this.props.accountID,selectedImages:[v],onSelect:this._onSelect,onCancel:this._onCancel,libraryImages:this.state.libraryImages,tabKeys:[k.UPLOAD,k.LIBRARY]});}return {dialog:u};},render:function(){var u=l.createElement('div',{onClick:this.props.disabled?null:this._onDialogShow},this.props.clickableTrigger);if(!this.props.tooltipText)return u;return (l.createElement(o,{tooltip:this.props.tooltipText,position:'above',alignH:'left',className:this.props.className},u));},_onDialogShow:function(event){event.preventDefault();this.setState({showDialog:true});},_onSelect:function(u){this.setState({showDialog:false});this.props.onImageSelected(new i(u[0]));},_onCancel:function(){this.setState({showDialog:false});}});function t(u){var v=u.accountID,w=u.url,x=u.hash,y=x?j.getImageByHash_DEPRECATED(v,x):null,z=r;if(y){w=y.url||y.url_128||w;z=w?j.getImageDimensionsByURL(w):r;}return {height:z.height,libraryImages:j.getImages_DEPRECATED(v),url:w,hash:x,width:z.width,accountID:v};}f.exports=s;},null);
__d('BoostedComponentImageUploader.react',['AdsCFCreativeImagePanelUploaderAction.react','React','WebApiApplication','invariant'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l=i.PropTypes,m=i.createClass({displayName:'BoostedComponentImageUploader',propTypes:{accountID:l.string.isRequired,accessToken:l.string.isRequired,clientID:l.string.isRequired,onUploadClick:l.func.isRequired,className:l.string,disabled:l.bool,onUploadEnd:l.func,onUploadStart:l.func},render:function(){return (i.createElement(h,{accountID:this.props.accountID,className:this.props.className,disabled:this.props.disabled,fileInputNodeID:'BoostedComponentImageUploader'+this.props.clientID,multiple:false,onUploadClick:this._onClick,onUploadEnd:this._onUploadEnd,onUploadStart:this._onUploadStart,size:'xlarge'}));},_onClick:function(n){j.init(this.props.accessToken,this.props.clientID);},_onUploadEnd:function(n){!(n.length===1)?k(0):undefined;this.props.onUploadEnd();this.props.onUploadClick(n[0]);},_onUploadStart:function(n){this.props.onUploadStart();}});f.exports=m;},null);
__d('BoostedComponentImageSelector.react',['AdsImageLegacy','BoostedComponentStrings','BoostedComponentImageCropper.react','BoostedComponentImageLibrarySelector.react','BoostedComponentImageUploader.react','React','XUIButton.react','XUISpinner.react','cx'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();var q=m.PropTypes,r=m.createClass({displayName:'BoostedComponentImageSelector',propTypes:{accountID:q.string.isRequired,accessToken:q.string.isRequired,clientID:q.string.isRequired,onImageUploadClick:q.func.isRequired,onImageSelected:q.func.isRequired,onImageCropClick:q.func.isRequired,image:q.instanceOf(h),imageUrl:q.string,imageHash:q.string,imageSpecs:q.array},getInitialState:function(){return {isUploadingImage:false};},render:function(){var s=(!this.state.isUploadingImage?"hidden_elem":'')+(' '+"_3-99"),t=m.createElement(n,{label:i.SELECT_IMAGE,disabled:this.state.isUploadingImage,size:'xlarge'});return (m.createElement('div',null,m.createElement(l,{accountID:this.props.accountID,accessToken:this.props.accessToken,clientID:this.props.clientID,onUploadClick:this.props.onImageUploadClick,disabled:this.state.isUploadingImage,onUploadEnd:this._onUploadEnd,onUploadStart:this._onUploadStart}),m.createElement(k,{accountID:this.props.accountID,imageUrl:this.props.imageUrl,onImageSelected:this.props.onImageSelected,imageHash:this.props.imageHash,clickableTrigger:t,tooltipText:i.IMAGE_SELECTOR_TOOLTIP_TEXT,className:"_3-9a _4nqt",disabled:this.state.isUploadingImage}),m.createElement(j,{className:"_3-9a",imageSpecs:this.props.imageSpecs,image:this.props.image,onCropClick:this.props.onImageCropClick,disabled:this.state.isUploadingImage}),m.createElement(o,{className:s})));},_onUploadEnd:function(){this.setState({isUploadingImage:false});},_onUploadStart:function(){this.setState({isUploadingImage:true});}});f.exports=r;},null);
__d('BoostedComponentCreativeMultiAdsEditor.react',['AdsImageLegacy','AdImageSpecs','AdsImageStore','AdsIndexedTabBar.react','BoostedComponentCreativeLinkDataEditor.react','BoostedComponentImageSelector.react','BoostedComponentLabeledEditor.react','BoostedComponentStrings','Grid.react','LeftRight.react','Link.react','React','Image.react','XUIButton.react','cx','fbt','isEmpty','mergeDeep','xuiglyph'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z){'use strict';if(c.__markCompiled)c.__markCompiled();var aa=p.GridItem,ba=s.PropTypes,ca=s.createClass({displayName:'BoostedComponentCreativeMultiAdsEditor',propTypes:{accountID:ba.string.isRequired,appID:ba.string.isRequired,accessToken:ba.string.isRequired,clientID:ba.string.isRequired,maxProducts:ba.number.isRequired,minProducts:ba.number.isRequired,onProductsChange:ba.func.isRequired,onProductSelected:ba.func.isRequired,selectedProductIndex:ba.number.isRequired,defaultLink:ba.string,defaultName:ba.string,defaultImageUrl:ba.string,defaultImageHash:ba.string,products:ba.arrayOf(ba.object),validateName:ba.func},render:function(){return (s.createElement('div',null,s.createElement(p,{cols:2},s.createElement(aa,{key:'left'},s.createElement(k,{numItems:this.props.products.length,onItemAdded:this.props.onProductAdd,onItemSelected:this.props.onProductSelected,selectedItem:this.props.selectedProductIndex})),s.createElement(aa,{key:'rigth'},this._getAddProductIcon())),this._getProductsCard()));},_getAddProductIcon:function(){if(this.props.products.length>=this.props.maxProducts)return null;return (s.createElement(u,{className:"_3-9a",image:s.createElement(t,{src:z({name:'plus',shade:'dark',size:'small'})}),onClick:this._onProductAdd}));},_getProductsCard:function(){return (s.createElement('div',{background:'light-wash',className:"_1ev3"},s.createElement('div',null,this._getRemoveButton(),this._getCreativeLinkDataEditor(),this._getImageSelector())));},_getRemoveButton:function(){if(this.props.products.length<=this.props.minProducts)return null;return (s.createElement(q,{direction:'right'},s.createElement(r,{onClick:this._onProductRemove},w._("Remove"))));},_getCreativeLinkDataEditor:function(){var da=null,ea=this.props.products[this.props.selectedProductIndex];if(!x(ea))da=ea.name;return (s.createElement(l,{appID:this.props.appID,shouldEdit:false,headline:da,onLinkDataHeadlineChange:this._onProductNameChange,validateName:this.props.validateName,useMultiAdsView:true}));},_getImageSelector:function(){var da=null,ea=null,fa=null,ga=this.props.products[this.props.selectedProductIndex];if(!x(ga)){ea=ga.picture;fa=ga.image_hash;if(fa){da=j.getOneFor(this.props.accountID,fa);if(da&&ga.image_crops)da=Object.assign({},da,{crops:ga.image_crops});}if(!da){da={url:ea,crops:ga.image_crops};var ha=ea?j.getImageDimensionsByURL(ea):null;if(!ha){da=null;}else Object.assign(da,ha);}if(da)da=new h(da);}var ia=[i.PAGE_POST_MULTI_PRODUCT];if(this.props.products&&this.props.products.length===1)ia=[i.PAGE_POST_DESKTOP_FEED];return (s.createElement(n,{label:o.CREATIVE_IMAGE,tooltip:o.CREATIVE_IMAGE_TOOLTIP},s.createElement(m,{accountID:this.props.accountID,accessToken:this.props.accessToken,clientID:this.props.clientID,image:da,imageUrl:ea,imageHash:fa,imageSpecs:ia,onImageUploadClick:this._onProductImageChange,onImageSelected:this._onProductImageChange,onImageCropClick:this._onProductImageCropChange})));},_getProductsCopy:function(){return this.props.products.map(function(da){return y(da);});},_onProductAdd:function(){var da=this._getProductsCopy();da.push({link:this.props.defaultLink,name:this.props.defaultName,picture:this.props.defaultImageUrl,image_hash:this.props.defaultImageHash});this.props.onProductsChange(da);var ea=da.length-1;this.props.onProductSelected(ea);},_onProductRemove:function(){var da=this._getProductsCopy(),ea=da.length-1;if(this.props.selectedProductIndex===ea)this.props.onProductSelected(ea-1);da.splice(this.props.selectedProductIndex,1);this.props.onProductsChange(da);},_onProductNameChange:function(da){var ea=this._getProductsCopy();ea[this.props.selectedProductIndex].name=da;this.props.onProductsChange(ea);},_onProductImageChange:function(da){var ea=this._getProductsCopy();if(da.getUrl()){ea[this.props.selectedProductIndex].picture=da.getUrl();delete ea[this.props.selectedProductIndex].image_hash;}else{ea[this.props.selectedProductIndex].image_hash=da.getAdAccountHash();delete ea[this.props.selectedProductIndex].picture;}if(da.crops){ea[this.props.selectedProductIndex].image_crops=da.crops;}else delete ea[this.props.selectedProductIndex].image_crops;this.props.onProductsChange(ea);},_onProductImageCropChange:function(da,ea){var fa=this._getProductsCopy(),ga={};ga[da]=ea;fa[this.props.selectedProductIndex].image_crops=ga;this.props.onProductsChange(fa);}});f.exports=ca;},null);
__d('BoostedComponentRadiusEditor.react',['AdsRadiusSelector.react','BoostedComponentLabeledEditor.react','ImmutableObject','React','arrayContains','invariant','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=k.PropTypes,p=o.shape({unit:o.string.isRequired,value:o.number.isRequired}),q=k.createClass({displayName:'BoostedComponentRadiusEditor',propTypes:{className:o.string,radius:p.isRequired,onChange:o.func.isRequired},render:function(){!l(['mile','kilometer'],this.props.radius.unit)?m(0):undefined;return (k.createElement(i,{className:this.props.className,label:n._("Radius")},this._renderSelector()));},_onChange:function(r){this.props.onChange(new j({unit:r.unit,value:r.radius}));},_renderSelector:function(){var r=this.props.radius;return (k.createElement(h,{distanceUnit:r.unit,onRadiusChangeRequested:this._onChange,radius:r.value,size:'large'}));}});q.RadiusShape=p;f.exports=q;},null);
__d('BoostedComponentCustomLocationEditor.react',['AdsAudienceSizeDisplay.react','AdsLoadState','AdsReachEstimateStrings','AdsTargetingAreaMap.react','AdsTargetingAreaView','BoostedComponentAddressEditor.react','BoostedComponentContent.react','BoostedComponentLabeledEditor.react','BoostedComponentRadiusEditor.react','GeoCoordinates','leaflet','LeafletMarker.react','React','ReactDOMServer','ReactComponentWithPureRenderMixin','TilesMapUtils','XUISpinner.react','cx','fbt','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa){'use strict';if(c.__markCompiled)c.__markCompiled();var ba=t.PropTypes,ca={className:"_1z4z",iconSize:[34,38],iconAnchor:[17,36]},da=t.createClass({displayName:'BoostedComponentCustomLocationEditor',mixins:[v],propTypes:{address:ba.string,areaView:ba.instanceOf(l),audienceSize:ba.shape({loadState:ba.string.isRequired,value:ba.number.isRequired}),className:ba.string,locationCoordinates:ba.instanceOf(q),locationIconURL:ba.string,onAddressResetRequest:ba.func,onAreaCenterChange:ba.func.isRequired,onMapSizeSettled:ba.func,onRadiusChange:ba.func.isRequired,onRequestAddressChange:ba.func,radius:ba.object.isRequired},render:function(){return (t.createElement('div',{className:this.props.className},t.createElement(n,null,t.createElement('div',{className:"_568b"},this._renderAddressAndAudience(),t.createElement(p,{radius:this.props.radius,className:"_5695",onChange:this.props.onRadiusChange}))),t.createElement(k,{areaView:this.props.areaView,className:"_5698",defaultView:w.DEFAULT_VIEW,onAreaCenterChange:this.props.onAreaCenterChange,onSizeSettled:this.props.onMapSizeSettled},this._renderLocationMarker())));},_renderAddressAndAudience:function(){return (t.createElement('div',{className:"_p1e"},t.createElement(m,{address:this.props.address,className:"_3-95",defaultLabel:z._("Custom"),onRequestChange:this.props.onRequestAddressChange,onResetRequest:this.props.onAddressResetRequest}),this._renderAudience()));},_renderAudience:function(){var ea=this.props.audienceSize;if(ea==null)return;return (t.createElement(o,{label:z._("Potential Reach"),tooltip:j.ESTIMATE_DAU_EXPLANATION},t.createElement('div',{className:"_p1f"},this._renderAudienceDisplay(ea))));},_renderAudienceDisplay:function(ea){if(ea.loadState===i.LOADING)return t.createElement(x,null);!(ea.loadState===i.LOADED)?aa(0):undefined;return (t.createElement(h,{audienceSize:ea.value,size:'medium'}));},_renderLocationMarker:function(){if(!this.props.locationCoordinates||!this.props.locationIconURL)return;var ea=r.divIcon(babelHelpers._extends({},ca,{html:u.renderToStaticMarkup(t.createElement('img',{alt:'foo',src:this.props.locationIconURL}))}));return (t.createElement(s,{coordinates:this.props.locationCoordinates,options:{icon:ea}}));}});f.exports=da;},null);
__d('BoostedComponentDialogActionMenuMixin',['BoostedComponentClientEvent','BoostedComponentSimpleConfirmDialog.react','BoostedComponentStrings','BusinessConf','ContextualDialogArrow','ContextualLayerAutoFlip','DOM','Image.react','PopoverMenu.react','React','ReactDOM','URI','XUIButton.react','ReactXUIMenu','cx','emptyFunction','fbt','ix'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y){'use strict';if(c.__markCompiled)c.__markCompiled();var z=u.Item,aa={_getHelpCenterMenuItem:function(){var ba=this._config&&this._config.getURIStore()&&this._config.getURIStore().getHelpCenterURI();if(!ba)ba=new s('/help/www/547448218658012/');return (q.createElement(z,{key:'helpCenter',href:ba,target:'_blank'},x._("Visit Help Center")));},_getSeedFeedbackMenuItem:function(){var ba=this._config&&this._config.getURIStore()&&this._config.getURIStore().getSendFeedbackURI();if(!ba)return null;return (q.createElement(z,{key:'sendFeedback',href:ba,target:'_blank'},x._("Send Feedback")));},_getBillingInfoMenuItem:function(){if(!this._config){var ba=new s('/ads/manage/billing.php').addQueryData({act:this.props.accountID});return (q.createElement(z,{key:'billingInfo',href:ba,target:'_blank'},x._("Edit Billing Info")));}ba=new s(this._config.getURIStore().getBillingInfoURI()).addQueryData({act:this._config.getAdAccountStore().getSelectedAccountID()});return (q.createElement(z,{key:'billingInfo',href:ba,target:'_blank'},x._("Edit Billing Info")));},_getContactSupportMenuItem:function(){if(!this._config){if(!this.props.contactFormURI)return null;return (q.createElement(z,{className:k.WHITELISTED_URI_CLASS,key:'contactForm',href:new s(this.props.contactFormURI),target:'_blank'},x._("Contact Support")));}if(!this._config.getURIStore().getContactSupportURI())return null;return (q.createElement(z,{key:'contactSupport',href:new s(this._config.getURIStore().getContactSupportURI()),target:'_blank'},x._("Contact Support")));},_getReportBugMenuItem:function(){var ba=this._config&&this._config.getURIStore()&&this._config.getURIStore().getBugReportURI();if(!ba)return null;var ca=new s(ba).addQueryData({screenshot_container_id:this._config.getDialogUIStore().getDialogDivID()});return (q.createElement(z,{key:'reportBug',href:'#',ajaxify:ca,rel:'dialog'},x._("Report a problem")));},_getDeleteAdMenuItem:function(){return (q.createElement(z,{key:'deleteAd',onclick:this._onDeleteClick},x._("Delete Ad")));},_onDeleteClick:function(){r.render(q.createElement(i,{dialogTitle:j.DELETE_DIALOG_TITLE,dialogBody:j.DELETE_DIALOG_BODY,onCancel:w,onConfirm:this._onDeleteConfirm}),n.create('div'));},_onDeleteConfirm:function(){this._config.getDispatcher().handleUpdateFromViewAction({actionType:h.DELETE_SUBMIT});},render:function(){this._config=this.props.config;var ba=q.createElement(u,{onItemClick:this._sendArbiterSignal},this.getMenuOptions());return (q.createElement(p,{menu:ba,layerBehaviors:[m,l]},q.createElement(t,{className:"_2vy",size:'xlarge',image:q.createElement(o,{src:y('/images/ui/x/image/gear_large.png')})})));}};f.exports=aa;},null);
__d('BoostedComponentDialogActionMenu.react',['BoostedComponentConfig','BoostedComponentDialogActionMenuMixin','BoostedComponentExperiment','React','XUIMenuSeparator.react'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=k.PropTypes,n=k.createClass({displayName:'BoostedComponentDialogActionMenu',mixins:[i],propTypes:{config:m.instanceOf(h).isRequired},getMenuOptions:function(){var o=[];if(this.props.config.getExperimentStore().getExperiment(j.BOOSTED_COMPONENT_TABBED_DIALOG_COLUMN)&&this.props.config.getAdStatusStore().getShouldEdit())o.push(this._getDeleteAdMenuItem(),k.createElement(l,{key:'separator'}));o.push(this._getHelpCenterMenuItem(),this._getSeedFeedbackMenuItem(),this._getContactSupportMenuItem(),this._getReportBugMenuItem());return o;}});f.exports=n;},null);
__d('BoostedComponentDialogTitle.react',['BoostedActionStatus','BoostedComponentAppID','BoostedComponentClientEvent','BoostedComponentConfig','BoostedComponentExperiment','BoostedComponentStrings','BoostedPostStrings','FBToggleSwitch.react','React','SubscriptionsHandler','XUIDialogTitle.react','cx'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){'use strict';if(c.__markCompiled)c.__markCompiled();var t=p.PropTypes,u=p.createClass({displayName:'BoostedComponentDialogTitle',propTypes:{config:t.instanceOf(k).isRequired},componentWillMount:function(){this._subscriptions=new q();this._subscriptions.addSubscriptions(this.props.config.getAdStatusStore().subscribe('change',this._updateState));},componentWillUnmount:function(){this._subscriptions.release();this._subscriptions=null;},getInitialState:function(){return {adStatus:this.props.config.getAdStatusStore().getAdStatus()};},_onDataUpdate:function(v){if(v){this.props.config.getDispatcher().handleUpdateFromViewAction({actionType:j.RESUME_CLICK});}else this.props.config.getDispatcher().handleUpdateFromViewAction({actionType:j.PAUSE_CLICK});},_updateState:function(){this.setState({adStatus:this.props.config.getAdStatusStore().getAdStatus()});},_getAdStatusBar:function(){if(!this.props.config.getExperimentStore().getExperiment(l.BOOSTED_COMPONENT_TABBED_DIALOG_COLUMN))return null;switch(this.state.adStatus){case h.PENDING:case h.REJECTED:var v=this.state.adStatus===h.PENDING;return (p.createElement('span',{className:"_20fx"+(v?' '+"_20f_":'')+(!v?' '+"_20g0":'')},p.createElement('div',{className:"_20g1"}),p.createElement('span',{className:"_20g3"},v?m.AD_STATUS_PENDING:m.AD_STATUS_REJECTED)));case h.ACTIVE:case h.PAUSED:var w=this.state.adStatus===h.ACTIVE;return (p.createElement('span',{className:"_20fx"+(w?' '+"_20g8":'')+(!w?' '+"_40sc":'')},p.createElement(o,{animate:true,checked:w,onToggle:this._onDataUpdate}),p.createElement('span',{className:"_20g3"},w?m.AD_STATUS_ACTIVE:m.AD_STATUS_INACTIVE)));default:return null;}},_getTitleText:function(){var v=this.props.config.getContextStore().getAppID();switch(v){case i.BOOSTED_CCTA:return m.BOOSTED_CCTA_CREATE_DIALOG_TITLE;case i.BOOSTED_EVENT:return n.EVENT_BUTTON_LABEL;case i.BOOSTED_LOCAL_AWARENESS:return (m.BOOSTED_LOCAL_AWARENESS_CREATE_DIALOG_TITLE);case i.BOOSTED_PAGELIKE:return m.BOOSTED_PAGELIKE_CREATE_DIALOG_TITLE;case i.BOOSTED_POST:return n.DEFAULT_BUTTON_LABEL;case i.BOOSTED_PRODUCT:return m.BOOSTED_PRODUCT_CREATE_DIALOG_TITLE;case i.BOOSTED_WEBSITE:return m.BOOSTED_WEBSITE_CREATE_DIALOG_TITLE;default:return m.BOOST;}},render:function(){return (p.createElement(r,{className:"_20ga"},p.createElement('div',null,this._getTitleText(),this._getAdStatusBar())));}});f.exports=u;},null);
__d('BoostedComponentDialogViewStates',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={EDIT:'edit',RESULTS:'results'};f.exports=h;},null);
__d('BoostedComponentDualCreativeContent.react',['AdsHelpLink.react','BoostedComponentStrings','Link.react','React','ix','cx'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=k.PropTypes,o=k.createClass({displayName:'BoostedComponentDualCreativeContent',propTypes:{isCreativeVideo:n.bool.isRequired,toggleCreativeCategory:n.func.isRequired,imageEditorLabel:n.string.isRequired,imageEditorTooltip:n.string.isRequired},render:function(){var p=this.props.isCreativeVideo?i.CREATIVE_VIDEO:this.props.imageEditorLabel,q=this.props.isCreativeVideo?i.CREATIVE_VIDEO_TOGGLE_TIP:i.CREATIVE_IMAGE_TOGGLE_TIP,r=this.props.isCreativeVideo?i.CREATIVE_VIDEO_TOOLTIP:this.props.imageEditorTooltip;return (k.createElement('div',null,k.createElement('div',{className:"_5alk"},k.createElement('label',{className:"_5all"},p),' ',k.createElement(h,{width:300,imgNormal:l('images/components/HelpLink/info-light.png'),imgHover:l('images/components/HelpLink/info-light-hover.png')},r)),k.createElement('div',{className:"_5alm"},k.createElement(j,{onClick:this.props.toggleCreativeCategory},q)),k.createElement('div',{className:"_3-8w"},this.props.children)));}});f.exports=o;},null);
__d('BoostedComponentEndDateSelector.react',['BoostedComponentStrings','DateConsts','FBDate','React','UTCUtils','XUIButton.react','XUICalendar.react','XUIDatePicker.react','XUIRadioButtonGroup.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){'use strict';if(c.__markCompiled)c.__markCompiled();var s=k.PropTypes,t=0,u=new j(l.dateToUTC(new Date()),t).startOfDay(),v=k.createClass({displayName:'BoostedComponentEndDateSelector',propTypes:{campaignLengthOptions:s.arrayOf(s.number),selectedCampaignLengthInDays:s.number.isRequired,maxAllowedCampaignLengthInDays:s.number,onDataUpdate:s.func.isRequired},getInitialState:function(){return {selectedCampaignLength:this.props.selectedCampaignLengthInDays};},_onDateChange:function(w){var x=new j(n.normalizeDate(w),t).startOfDay();this._updateCampaignLength(u.secondsUntil(x)/i.SEC_PER_DAY);},_updateCampaignLength:function(w){this.setState({selectedCampaignLength:w});this.props.onDataUpdate(w);},_renderCampaignLengthButtons:function(){if(!this.props.campaignLengthOptions)return null;var w=this.props.campaignLengthOptions.map(function(x){var y;if(x===1){y=r._("1 day");}else if(x>1)y=r._({"*":"{number} days"},[r.param('number',x,[0])]);return (k.createElement(m,{key:x,type:'button',label:y,value:x}));});return (k.createElement(p,{className:"_3-95",onValueChange:this._updateCampaignLength,selectedValue:this.state.selectedCampaignLength,selectedUse:'confirm'},w));},render:function(){return (k.createElement('div',null,this._renderCampaignLengthButtons(),k.createElement('div',null,h.DATE_PICKER_PREPEND_TEXT,k.createElement('span',{className:"plm"},k.createElement(o,{earliestTime:u.addDays(1).getUnixTimestampSeconds(),latestTime:!!this.props.maxAllowedCampaignLengthInDays?u.addDays(this.props.maxAllowedCampaignLengthInDays).getUnixTimestampSeconds():null,initialTime:u.addDays(this.state.selectedCampaignLength).getUnixTimestamp(),onCalendarSelectDateChange:this._onDateChange})))));}});f.exports=v;},null);
__d('BoostedComponentDurationSelector.react',['BoostedComponentEndDateSelector.react','BoostedComponentStrings','InputLabel.react','React','XUIRadioInput.react','cx'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=k.PropTypes,o=k.createClass({displayName:'BoostedComponentDurationSelector',propTypes:{hideRunContinuously:n.bool.isRequired,runContinuously:n.bool.isRequired,onEndDateSelectorUpdate:n.func.isRequired,onDurationTypeUpdate:n.func.isRequired,campaignLengthOptions:n.arrayOf(n.number),selectedCampaignLengthInDays:n.number},getDefaultProps:function(){return {selectedCampaignLengthInDays:1,runContinuously:false};},getInitialState:function(){return {selectedCampaignLength:this.props.selectedCampaignLengthInDays,runContinuously:this.props.runContinuously};},_onEndDateSelectorUpdate:function(p){this.setState({selectedCampaignLength:p});this.props.onEndDateSelectorUpdate(p);},_onDurationTypeUpdate:function(p){this.setState({runContinuously:p});this.props.onDurationTypeUpdate(p);},_renderRunWithEndDateSection:function(){return (k.createElement('div',{className:"_2pin"},k.createElement(j,null,k.createElement(l,{checked:!this.state.runContinuously,onChange:this._onDurationTypeUpdate.bind(this,false)}),k.createElement('label',{className:"_2pir"},i.RUN_WITH_END_DATE_LABEL)),this._renderEndDateSelector()));},_renderRunContinuouslySection:function(){return (k.createElement('div',{className:"_2pin"},k.createElement(j,null,k.createElement(l,{checked:this.state.runContinuously,onChange:this._onDurationTypeUpdate.bind(this,true)}),k.createElement('label',{className:"_2pir"},i.RUN_CONTINUOUSLY_LABEL)),this._renderRunContinuouslyDescription()));},render:function(){if(this.props.hideRunContinuously&&!this.state.runContinuously)return this._renderEndDateSelector();return (k.createElement('form',null,this._renderRunContinuouslySection(),this._renderRunWithEndDateSection()));},_renderRunContinuouslyDescription:function(){if(!this.state.runContinuously)return null;return (k.createElement('div',{className:"_2piv _3-8x _3-9a"},i.RUN_CONTINUOUSLY_DESCRIPTION));},_renderEndDateSelector:function(){if(this.state.runContinuously)return null;return (k.createElement('div',{className:(!this.props.hideRunContinuously?"_2piv":'')+(!this.props.hideRunContinuously?' '+"_3-9a":'')+(' '+"_3-8x")},k.createElement(h,{onDataUpdate:this._onEndDateSelectorUpdate,selectedCampaignLengthInDays:this.state.selectedCampaignLength,campaignLengthOptions:this.props.campaignLengthOptions})));}});f.exports=o;},null);
__d('BoostedComponentTerms.react',['BoostedComponentTestElement','LayerHideOnBlur','Link.react','React','ReactLayeredComponentMixin','URI','XUICloseButton.react','XUIContextualDialog.react','XUIText.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){if(c.__markCompiled)c.__markCompiled();var s=k.PropTypes,t=k.createClass({displayName:'BoostedComponentTerms',mixins:[l],propTypes:{buttonLabel:s.string.isRequired},getInitialState:function(){return {dialogShown:false};},_showDialog:function(){this.setState({dialogShown:true});},_hideDialog:function(){this.setState({dialogShown:false});},_onToggle:function(u){if(!u&&this.state.dialogShown)this._hideDialog();},renderLayers:function(){return {contextualDialog:k.createElement(o,{contextRef:(function(){return this.refs.terms;}).bind(this),shown:this.state.dialogShown,position:'above',onToggle:this._onToggle,width:o.WIDTH.WIDE,behaviors:{LayerHideOnBlur:i}},k.createElement(n,{'data-testid':h.TERMS_DIALOG_CLOSE_BUTTON,className:"rfloat mts mrs",href:'#',onClick:this._hideDialog}),k.createElement('div',{className:"_53iv"},k.createElement('div',{className:'mbm'},k.createElement(p,{size:'medium',weight:'bold'},r._("Terms & Conditions"))),r._("By clicking \"{label}\", you agree to the Facebook {terms} and {ad_guidelines}. We do not use sensitive personal data for ad targeting. Topics you choose for targeting your ad don't reflect the personal beliefs, characteristics or values of users. If you are a resident of or have your principal place of business in the US or Canada, you are contracting solely with Facebook, Inc. Otherwise, you are contracting solely with Facebook Ireland, Ltd. However, if you are a resident of or have your principal place of business in Brazil, then you continue to have this contractual relationship with Facebook Ireland Limited but your payment may be taken directly by Facebook Servicos Online Do Brasil Ltda in accordance with the {payment_terms} promulgated by Facebook Servicos Online Do Brasil Ltda.",[r.param('label',this.props.buttonLabel),r.param('terms',k.createElement(j,{href:new m('/legal/terms'),target:'_blank'},r._("Terms"))),r.param('ad_guidelines',k.createElement(j,{href:new m('/ad_guidelines.php'),target:'_blank'},r._("Advertising Guidelines"))),r.param('payment_terms',k.createElement(j,{href:new m('/payments_terms'),target:'_blank'},r._("Payments Terms")))])))};},render:function(){return (k.createElement(j,{'data-testid':h.TERMS,className:"_3-9a",ref:'terms',onClick:this._showDialog},r._("Terms & Conditions")));}});f.exports=t;},null);
__d('BoostedComponentFooter.react',['BoostedComponentConfig','BoostedComponentDialogActionMenu.react','BoostedComponentDialogSubmissionStates','BoostedComponentTerms.react','LeftRight.react','LoadingIndicator.react','React','XUIButton.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=n.PropTypes,s=n.createClass({displayName:'BoostedComponentFooter',propTypes:{buttonSpecs:r.array.isRequired,actionMenu:r.element,dialogState:r.number,config:r.instanceOf(h)},getDefaultProps:function(){return {dialogState:j.ENABLED};},_renderActionMenu:function(){if(this.props.config)return (n.createElement(i,{config:this.props.config}));return this.props.actionMenu;},_renderTermsConditionsLink:function(){var t=this.props.buttonSpecs.filter(function(v){return v.use==='confirm';}),u=t.length===1?t[0].label:q._(["Boost","b39b548ea2fdb4f5018d4ac20c7b219e"]);return n.createElement(k,{buttonLabel:u});},_renderLoadingIndicator:function(){if(this.props.config||this.props.dialogState!==j.SUBMITTING)return null;return (n.createElement(m,{className:"mrm _2ooe",color:'white',size:'small'}));},getModifiedButtonSpecs:function(t){if(t.use==='confirm'){t.disabled=t.disabled||this.props.dialogState!==j.ENABLED;}else t.disabled=t.disabled||this.props.dialogState===j.SUBMITTING;return t;},_renderButtons:function(){var t=[];for(var u=this.props.buttonSpecs.length-1;u>=0;u--){var v=this.getModifiedButtonSpecs(this.props.buttonSpecs[u]);t.push(n.createElement('span',{className:"_3-9a",key:u},n.createElement(o,babelHelpers._extends({},v,{className:"_2vy",size:'xlarge'}))));}return t;},render:function(){return (n.createElement(l,{className:"_2oof _2ph-"},n.createElement('div',null,this._renderActionMenu(),this._renderTermsConditionsLink()),n.createElement('div',null,this._renderLoadingIndicator(),this._renderButtons())));}});f.exports=s;},null);
__d('BoostedComponentGeoLocationTypeSelector.react',['BoostedComponentClientEvent','BoostedComponentGeoLocationType','BoostedComponentStrings','React','XUIButton.react','XUIRadioButtonGroup.react'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=k.PropTypes,o=k.createClass({displayName:'BoostedComponentGeoLocationTypeSelector',propTypes:{geoLocationType:n.string,onDataUpdate:n.func.isRequired},getDefaultProps:function(){return {geoLocationType:i.BROAD_GEO_LOCATION};},getInitialState:function(){return {selected:this.props.geoLocationType};},componentWillReceiveProps:function(p){this.setState({selected:p.geoLocationType});},_onDataUpdate:function(p){this.setState({selected:p});this.props.onDataUpdate(h.UPDATE_GEO_LOCATION_TYPE,p);},render:function(){var p='large';return (k.createElement('div',null,k.createElement(m,{onValueChange:this._onDataUpdate,selectedDepressed:true,selectedValue:this.state.selected},k.createElement(l,{label:j.TARGET_AUDIENCE_BROAD,size:p,value:i.BROAD_GEO_LOCATION}),k.createElement(l,{label:j.TARGET_AUDIENCE_LOCAL,size:p,value:i.LOCAL_GEO_LOCATION}))));}});f.exports=o;},null);
__d('BoostedComponentInsightsHeadline.react',['BoostedComponentStrings','HelpLink.react','Number.react','React','XUIText.react','cx'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=k.PropTypes,o=k.createClass({displayName:'BoostedComponentInsightsHeadline',propTypes:{appID:n.string.isRequired,conversions:n.number,reach:n.number.isRequired,spend:n.string.isRequired},_formatNumber:function(p){return (k.createElement(j,{className:"_5v1f",value:p}));},_formatString:function(p){return (k.createElement(l,{className:"_5v1f"},p));},_getHeaderWithTooltip:function(p){var q=null;if(p.tooltip)q=k.createElement(i,{className:"_3-99",tooltip:p.tooltip});return (k.createElement('div',{className:"_5v1g _2pi7 _2pi3"},k.createElement('div',{className:"_5v1f fwb"},p.value),p.label,q));},getConversionHeader:function(p,q){if(q===undefined||q===null)return null;return this._getHeaderWithTooltip({label:h.getConversionsLabel(p),tooltip:h.getConversionsTooltip(p),value:this._formatNumber(q)});},getReachHeader:function(p){return this._getHeaderWithTooltip({label:h.INSIGHTS_REACH_LABEL,tooltip:h.INSIGHTS_REACH_TOOLTIP,value:this._formatNumber(p)});},getSpendHeader:function(p){return this._getHeaderWithTooltip({label:h.INSIGHTS_SPEND_LABEL,tooltip:h.INSIGHTS_SPEND_TOOLTIP,value:this._formatString(p)});},render:function(){return (k.createElement('div',{className:"_5v28"},k.createElement('div',{className:"_5v2u"},this.getConversionHeader(this.props.appID,this.props.conversions),this.getReachHeader(this.props.reach),this.getSpendHeader(this.props.spend))));}});f.exports=o;},null);
__d('BoostedComponentReviewAPIBannerContainer.react',['AdsLoadState','AdsReviewAPIBanner.react','React','ReactComponentWithPureRenderMixin'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l=j.PropTypes,m=j.createClass({displayName:'BoostedComponentReviewAPIBannerContainer',propTypes:{canRequestAPIAppeal:l.bool,onReviewAPIAppealRequest:l.func,reviewFeedbackCMS:l.object.isRequired},mixins:[k],getDefaultProps:function(){return {canRequestAPIAppeal:false,onReviewAPIAppealRequest:null};},_getCMSData:function(){var n=this.props.reviewFeedbackCMS,o=Object.keys(n).some(function(q){return n[q].loadingStatus===h.LOADING;}),p=o?h.LOADING:h.LOADED;if(n)return {cmsContent:n,cmsLoadStatus:p};return {cmsContent:{},cmsLoadStatus:p};},render:function(){var n=this._getCMSData();return (j.createElement(i,{canRequestAPIAppeal:this.props.canRequestAPIAppeal,content:n.cmsContent,loadingStatus:n.cmsLoadStatus,onReviewAPIAppealRequest:this.props.onReviewAPIAppealRequest}));}});f.exports=m;},null);
__d("XBoostedActionIntegrityCheckController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/boosted_component\/integrity_check\/",{page_id:{type:"Int",required:true},ad_account_id:{type:"Int",required:true},is_creative_optional:{type:"Bool",defaultValue:false},creative_title:{type:"String"},creative_body:{type:"String"},creative_image_urls:{type:"StringVector"},creative_image_hashes:{type:"StringVector"},landing_url:{type:"String"}});},null,{});
__d('BoostedComponentIntegrityWarningBox.react',['AdsHelpTrayCMSStore','AdsImageLegacy','AdsReviewAPIUtils','AsyncRequest','BoostedComponentConfig','BoostedComponentReviewAPIBannerContainer.react','AdsCreativeImageTextOverlayDialog.react','React','AdContentFeedbackTypes','SubscriptionsHandler','XBoostedActionIntegrityCheckController','XUINotice.react','XUIText.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){'use strict';if(c.__markCompiled)c.__markCompiled();var w=o.PropTypes,x=o.createClass({displayName:'BoostedComponentIntegrityWarningBox',_subscriptions:q,propTypes:{canRequestAPIAppeal:w.bool,config:w.instanceOf(l).isRequired,onReviewAPIAppealRequest:w.func},getDefaultProps:function(){return {canRequestAPIAppeal:false,onReviewAPIAppealRequest:null};},getInitialState:function(){return {isViolatingReview:false,reviewFeedbackCMS:{},showTextOverlayWarning:false};},componentWillMount:function(){this._subscriptions=new q();this._subscriptions.addSubscriptions(this.props.config.getCreativeStore().subscribe('change',this._runIntegrityCheck),this.props.config.getReviewAPIStore().subscribe('change',this._updateOnReviewFeedback),h.subscribe('change',this._updateOnReviewFeedback));},componentWillUnmount:function(){this._subscriptions.release();},render:function(){if(this._shouldShowReviewFeedback()){return (o.createElement(m,{canRequestAPIAppeal:this.props.canRequestAPIAppeal,onReviewAPIAppealRequest:this.props.onReviewAPIAppealRequest,reviewFeedbackCMS:this.state.reviewFeedbackCMS}));}else if(this.state.showTextOverlayWarning){var y=this._getTextPolicyWarning();return (o.createElement(s,{use:'warn',className:"_4ptg"},o.createElement(t,null,o.createElement('div',{className:"_4pth"},v._("Your Ad May Not Be Approved")),y)));}else return null;},_updateOnReviewFeedback:function(){var y=this.props.config.getReviewAPIStore(),z=y.getIsAdRejected();if(z){var aa=h.getCMSContents(j.getBannerCMSIDs(y.getReviewFeedback()));this.setState({isViolatingReview:true,reviewFeedbackCMS:aa});}else this.setState({isViolatingReview:false,reviewFeedbackCMS:{}});},_runIntegrityCheck:function(){var y=this.props.config.getAdAccountStore(),z=this.props.config.getCreativeStore(),aa=this.props.config.getContextStore(),ba=[],ca=[],da=z.getProductsData();this.setState({showTextOverlayWarning:false});if(da){for(var ea=0;ea<da.length;ea++)if(da[ea].picture){ba.push(da[ea].picture);}else if(da[ea].image_hash)ca.push(da[ea].image_hash);}else ba.push(z.getImageURL());var fa=r.getURIBuilder().setInt('page_id',aa.getPageID()).setInt('ad_account_id',y.getSelectedAccountID()).setBool('is_creative_optional',z.getIsCreativeOptional()).setStringVector('creative_image_urls',ba).setStringVector('creative_image_hashes',ca).setString('creative_body',z.getBody()).getURI();new k().setURI(fa).setMethod('POST').setHandler(this._integrityCheckHandler).send();},_integrityCheckHandler:function(y){if(y.payload&&y.payload.review_result===p.APPROVE)if(y.payload.image_url)this.setState({showTextOverlayWarning:true});},_shouldShowReviewFeedback:function(){if(!this.state.isViolatingReview)return false;var y=this.props.config.getExperimentStore();if(y.getExperiment('boosted_component_live_integrity_v2'))return true;return false;},_getTextPolicyWarning:function(){var y=this.props.config.getCreativeStore().getImageURL(),z=new i({url:y});return v._("It looks like the image you are using may have too much text. To help make sure your ad will be approved, please upload a new image. {Text validation tool hyperlink}.",[v.param('Text validation tool hyperlink',o.createElement(n,{images:[z]},o.createElement('span',{className:"_4pti"},v._("Learn more about using text in ads"))))]);}});f.exports=x;},null);
__d('BoostedComponentLabeledRow.react',['React','XUICardSection.react','XUIGrayText.react','cx'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l=h.PropTypes,m=h.createClass({displayName:'BoostedComponentLabeledRow',propTypes:{label:l.string.isRequired,shade:l.string,horizontalMargin:l.bool},getDefaultProps:function(){return {shade:'dark',horizontalMargin:true};},render:function(){var n=this.props.horizontalMargin?"mhl":'';return (h.createElement('div',{className:n},h.createElement(i,this.props,h.createElement('div',{className:'mbs'},h.createElement(j,{className:"mbl _5xyn",weight:'bold',shade:this.props.shade},this.props.label)),this.props.children)));}});f.exports=m;},null);
__d('BoostedComponentLeftRightLabeledRow.react',['Grid.react','React','XUIGrayText.react','HelpLink.react','cx','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=h.GridItem,o=i.PropTypes,p=i.createClass({displayName:'BoostedComponentLeftRightLabeledRow',propTypes:{label:o.string.isRequired,border:o.bool,alignv:o.oneOf(['top','middle','bottom']),shade:o.string,tooltip:o.string},getDefaultProps:function(){return {border:false,alignv:'top',shade:'dark'};},_renderHelpLink:function(){if(this.props.tooltip)return (i.createElement(k,{tooltip:this.props.tooltip}));return null;},render:function(){var q=m("_16uy"+(this.props.border?' '+"_16uz":''),this.props.className);return (i.createElement('div',{className:q},i.createElement(h,{cols:2,fixed:true,alignv:this.props.alignv,spacing:'pas'},i.createElement(n,{className:"_16u-"},i.createElement(j,{className:"_16u_",weight:'bold',shade:this.props.shade},this.props.label),this._renderHelpLink()),i.createElement(n,{className:"_16v0"},this.props.children))));}});f.exports=p;},null);
__d('BoostedComponentPreviewPanel.react',['BoostedComponentContent.react','React','Image.react','XUIGrayText.react','cx','ix'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=i.PropTypes,o=i.createClass({displayName:'BoostedComponentPreviewPanel',propTypes:{values:n.object,helpText:n.string},_renderRow:function(p,q){return (i.createElement('div',{key:p,className:"_56up"},i.createElement(k,{className:"_56uq"},p),i.createElement('div',{className:"_56ur"},q)));},_getSection:function(){var p=[],q=this.props.values;if(q)for(var r in q)p.push(this._renderRow(r,q[r]));return p;},_renderHelpText:function(){if(!this.props.helpText)return null;return (i.createElement('div',{className:"_5su6"},i.createElement('div',{className:"_5su7"},i.createElement(j,{ref:'tipIcon',src:m('images/components/HelpLink/info.png')})),i.createElement(k,{className:"_5su8"},this.props.helpText)));},render:function(){return (i.createElement(h,null,i.createElement('div',null,this._getSection(),this._renderHelpText())));}});f.exports=o;},null);
__d('BoostedComponentSectionSubheader.react',['AYMTClientSideLogging','AYMTClientSideRenderingParam','AYMTTipSettings','DOMContainer.react','React','XUINotice.react','adsGKCheck','cx','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();var q=l.PropTypes,r=l.createClass({displayName:'BoostedComponentSectionSubheader',propTypes:{bestTip:q.object,errors:q.array,link:q.object},getDefaultProps:function(){return {margin:"_3-8u"};},getInitialState:function(){return {showTip:true};},render:function(){if(this._hasErrors()){return (l.createElement(m,{className:"_2jld",use:'warn',size:'small'},this._getErrorMessages()));}else if(this.state.showTip&&this.props.bestTip&&(n('aymt_boosted_component_targeting_tips')||n('aymt_boosted_component_payments_section_tips'))){this._logImpression();var s=this.props.bestTip[i.CLIENT_SIDE_RENDERING_SPEC][i.TIP_BODY];return (l.createElement(m,{className:"_2jld",size:'small',onDismiss:this._dismissTip},l.createElement(k,null,s)));}return l.createElement('div',null);},_logImpression:function(){!this.props.bestTip?p(0):undefined;var s=this.props.bestTip[j.TIP_ID],t=this.props.bestTip[j.CHANNEL_ID];h.logImpression(s,t);},_dismissTip:function(){!this.props.bestTip?p(0):undefined;var s=this.props.bestTip[j.TIP_ID],t=this.props.bestTip[j.CHANNEL_ID];h.logXout(s,t);this.setState({showTip:false});},_hasErrors:function(){return !!(this.props.errors&&this.props.errors.length>0);},_getErrorMessages:function(){var s=this.props.errors.map((function(t){if(this.props.link)return l.createElement('span',null,t,' ',this.props.link);return t;}).bind(this));if(s.length>1)return s.map(function(t,u){return l.createElement('li',{key:'error_'+u},t);});return s.map(function(t,u){return l.createElement('div',{key:'error_'+u},t);});}});f.exports=r;},null);
__d('AdsTargetingGeoLocationSelector.react',['AdsCountries','AdsLocationTokenizer.react','BoostedComponentClientEvent','React','SearchableEntry','XUIGrayText.react','cx','fbt','intlList'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();var q=k.PropTypes,r=k.createClass({displayName:'AdsTargetingGeoLocationSelector',propTypes:{entries:q.arrayOf(q.instanceOf(l)).isRequired,onDataUpdate:q.func.isRequired,defaultLocations:q.arrayOf(q.instanceOf(l)),searchSourceOptions:q.object},getDefaultProps:function(){return {entries:[]};},getInitialState:function(){var s=this.props.defaultLocations,t=[];if(s)for(var u=0;u<s.length;++u)t.push(s[u].getTitle());return {hasTokens:!!this.props.entries.length,entries:this.props.entries,defaultLocationNames:t};},onDataUpdate:function(s){this.setState({hasTokens:!!s.length,entries:s});this.props.onDataUpdate(j.UPDATE_BROAD_GEO_LOCATIONS,s);},_getGeoLocationTokenizer:function(){return (k.createElement(i,{countries:h.countries,entries:this.state.entries,onChange:this.onDataUpdate,searchSourceOptions:this.props.searchSourceOptions}));},_getWarningMessage:function(){var s=null,t="mts"+(this.state.hasTokens?' '+"hidden_elem":'');if(!this.state.defaultLocationNames.length){s=o._("Add a country, state\/province, city.");}else s=o._("If left blank, your ad will be delivered to {list_of_countries}.",[o.param('list_of_countries',p(this.state.defaultLocationNames,p.CONJUNCTIONS.AND))]);return (k.createElement('div',{className:t},k.createElement(m,null,s)));},render:function(){return (k.createElement('div',{className:this.props.className},k.createElement('div',{className:"_5tpn"},this._getGeoLocationTokenizer(),this._getWarningMessage())));}});f.exports=r;},null);
__d('AdsTargetingGenderSelector.react',['AdInterfacesUiLogger','BoostedComponentClientEvent','BoostedComponentTestElement','AdsTargetingConstants','XUIButton.react','XUIRadioButtonGroup.react','React','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();var q=n.PropTypes,r=n.createClass({displayName:'AdsTargetingGenderSelector',propTypes:{onDataUpdate:q.func.isRequired,initialGender:q.number,cfSection:q.string},getDefaultProps:function(){return {initialGender:k.GENDERS.All};},getInitialState:function(){return {selected:this.props.initialGender};},componentWillReceiveProps:function(s){this.setState({selected:s.initialGender});},_onClick:function(s){this.setState({selected:s});this.props.onDataUpdate(i.UPDATE_GENDER,s);if(this.props.cfSection)h.log('gender_selector_active_state_change',{active_state:s,cf_section:this.props.cfSection});},render:function(){var s="_5v_d",t=p._("All"),u=p._("Men"),v=p._("Women");return (n.createElement('div',{'data-testid':j.GENDER_SELECTOR,className:s},n.createElement(m,{onValueChange:this._onClick,selectedValue:this.state.selected,selectedUse:'confirm'},n.createElement(l,{label:t,size:this.props.size,type:'button',value:k.GENDERS.All}),n.createElement(l,{label:u,size:this.props.size,type:'button',value:k.GENDERS.Men}),n.createElement(l,{label:v,size:this.props.size,type:'button',value:k.GENDERS.Women}))));}});f.exports=r;},null);
__d('AdsTargetingKeywordSuggestions.react',['React','cx'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=h.PropTypes,k=h.createClass({displayName:'AdsTargetingKeywordSuggestions',propTypes:{suggestions:j.array.isRequired,onSuggestionClick:j.func},render:function(){var l=this.props.suggestions.map(function(m,n){return (h.createElement('li',{key:n,className:"_5c5m"},h.createElement('a',{href:'#','data-testid':"interest_suggestion_"+n.toString(),onClick:this.handleClick.bind(null,m)},m.text)));},this);return (h.createElement('ul',null,l));},handleClick:function(l){if(!this.props.onSuggestionClick)return;this.props.onSuggestionClick(l);}});f.exports=k;},null);
__d('AdsTargetingKeywordTypeahead.react',['AdsTargetingAdmarketKeywordCategory','AdsTargetingTokenizer.react','BoostedComponentClientEvent','AdsTargetingConstants','React','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n=l.PropTypes,o=l.createClass({displayName:'AdsTargetingKeywordTypeahead',propTypes:{onDataUpdate:n.func.isRequired,initialEntries:n.array,maxEntries:n.number,smallInput:n.bool},getDefaultProps:function(){return {maxEntries:k.MAX_KEYWORDS_ENTRIES};},_onChange:function(p,q){this.props.onDataUpdate(j.UPDATE_INTERESTS,p);},render:function(){var p={kw_filter:[h.KEYWORD_CATEGORY_WIKI],max_results:this.props.maxEntries,show_coverage:false,kw_as_value:false,no_wiki_hashtag:true,use_unified_interests:true},q=m._("Add 4-10 interests...");return (l.createElement('div',null,l.createElement(i,{'data-testid':'interest_token',uri:k.KEYWORD_URI,queryData:p,onDataUpdate:this._onChange,placeholder:q,entries:this.props.initialEntries,smallInput:this.props.smallInput})));}});f.exports=o;},null);
__d('AdsTargetingKeywordSelector.react',['AdsTargetingConstants','AdsTargetingKeywordSuggestions.react','AdsTargetingKeywordTypeahead.react','BoostedComponentClientEvent','CurrentLocale','React','SearchableEntry','cx'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){if(c.__markCompiled)c.__markCompiled();var p=m.PropTypes,q=m.createClass({displayName:'AdsTargetingKeywordSelector',_tokenizerEntries:[],propTypes:{onDataUpdate:p.func.isRequired,initialEntries:p.array,maxEntries:p.number,primedDao:p.object,smallInput:p.bool,accessToken:p.string.isRequired},getDefaultProps:function(){return {initialEntries:[]};},getInitialState:function(){return {suggestions:[],entries:this.props.initialEntries};},_initializeSelector:function(r){this._tokenizerEntries=r.initialEntries;this._fetchSuggestions(this._getKeywordTokens(r.initialEntries));},componentWillMount:function(){if(!this.props.initialEntries.length)return;this._initializeSelector(this.props);},componentWillReceiveProps:function(r){this._initializeSelector(r);if(r.initialEntries)this.setState({entries:r.initialEntries});},_updateSuggestions:function(r){this.setState({suggestions:r});},_onDataUpdate:function(r,s){this._fetchSuggestions(this._getKeywordTokens(s));this._tokenizerEntries=s;this.props.onDataUpdate(r,s);},_handleSuggestionClick:function(r){var s=r.id,t=new n({uniqueID:s,title:r.text});this._tokenizerEntries.push(t);this._onDataUpdate(k.UPDATE_INTERESTS,this._tokenizerEntries);},_fetchSuggestions:function(r){this._fetchInterestSuggestions(r);},_fetchInterestSuggestions:function(r){if(!this.props.primedDao||!r.length){this._updateSuggestions([]);return;}this.props.primedDao.fetch.adInterestSuggestion.one(this._renderKeywordSuggestions,{interest_list:r,offset:0,include_algorithm:false,limit:2*h.MAX_KEYWORDS_SUGGESTIONS,locale:l.get(),access_token:this.props.accessToken});},_getKeywordTokens:function(r){var s=[],t=r.length;for(var u=0;u<t;u++)s.push(r[u].getTitle());return s;},_renderKeywordSuggestions:function(r){if(!r||!r.length){r=[];}else r=r.filter(function(s){if(!s.name)return false;s.text=s.uid=s.name;if(s.text.charAt(0)=='#')s.text=s.text.slice(1);return true;}).slice(0,h.MAX_KEYWORDS_SUGGESTIONS);this._updateSuggestions(r);},render:function(){var r="mts"+(!this.state.suggestions?' '+"hidden_elem":'');return (m.createElement('div',null,m.createElement(j,{onDataUpdate:this._onDataUpdate,initialEntries:this.state.entries,maxEntries:this.props.maxEntries,smallInput:this.props.smallInput}),m.createElement('div',{className:r},m.createElement(i,{suggestions:this.state.suggestions,onSuggestionClick:this._handleSuggestionClick}))));}});f.exports=q;},null);
__d('BoostedComponentTargetingEditor.react',['AdsAgeSelector.react','AdsCallToActionUtils','AdsCountries','AdsLoadState','AdsTargetingAreaView','AdsTargetingGeoLocationSelector.react','AdsTargetingGenderSelector.react','AdsTargetingKeywordSelector.react','AdsUtils','ApiCallToActionFields','CallToActionValueFields','BoostedComponentAppID','BoostedComponentContent.react','BoostedComponentCustomLocationEditor.react','BoostedComponentGeoLocationType','BoostedComponentGeoLocationTypeSelector.react','BoostedComponentGeoTargetLevel','BoostedComponentLabeledEditor.react','BoostedComponentSectionSubheader.react','BoostedComponentStrings','BoostedComponentTargetingViewActions','BoostedPrimedDao','React','SearchableEntry','getByPath','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga){'use strict';if(c.__markCompiled)c.__markCompiled();var ha=da.PropTypes,ia=[q.VALUE,r.LINK];function ja(la,ma){return l.updateFromCustomLocationSpec(undefined,la,ma);}var ka=da.createClass({displayName:'BoostedComponentTargetingEditor',propTypes:{accessToken:ha.string.isRequired,allowLocalTargeting:ha.bool,appID:ha.string.isRequired,audienceSize:ha.number,callToAction:ha.object,customLocation:ha.object,bestAymtTip:ha.object,blacklistCountries:ha.array,errors:ha.array,gender:ha.number.isRequired,geoLocationType:ha.string.isRequired,initialCustomLocation:ha.object,interests:ha.array,locations:ha.array,maxAge:ha.number.isRequired,maxSelectableAge:ha.number.isRequired,minAge:ha.number.isRequired,minSelectableAge:ha.number.isRequired,pageIconURL:ha.string,shouldEdit:ha.bool.isRequired,showLoadingIndicator:ha.bool.isRequired,targetingViewActions:ha.instanceOf(ba).isRequired,whitelistCountries:ha.array},getInitialState:function(){return {mapSize:undefined};},_getAgeSelector:function(){return (da.createElement(y,{label:aa.AGE},da.createElement(h,{minSelectableAge:this.props.minSelectableAge,maxSelectableAge:this.props.maxSelectableAge,initialMinAge:this.props.minAge,initialMaxAge:this.props.maxAge,onDataUpdate:(function(event,la){this.props.targetingViewActions.updateAge(la);}).bind(this)})));},_getGenderSelector:function(){return (da.createElement(y,{label:aa.GENDER},da.createElement(n,{initialGender:this.props.gender,onDataUpdate:(function(event,la){this.props.targetingViewActions.updateGender(la);}).bind(this)})));},_getInterestsSelector:function(){if(this.props.geoLocationType===v.LOCAL_GEO_LOCATION)return null;var la=this._getInterestEntries(this.props.interests);return (da.createElement(y,{label:aa.INTERESTS,tooltip:aa.INTERESTS_TOOLTIP},da.createElement(o,{initialEntries:la,onDataUpdate:(function(event,ma){this.props.targetingViewActions.updateInterests(ma);}).bind(this),primedDao:ca.getDaoForCurrentAccount(),smallInput:true,accessToken:this.props.accessToken})));},_getBroadGeoLocationSelector:function(){switch(this.props.appID){case s.BOOSTED_LOCAL_AWARENESS:return null;case s.BOOSTED_CCTA:case s.BOOSTED_WEBSITE:if(this.props.geoLocationType===v.LOCAL_GEO_LOCATION)return null;break;}var la=this._getLocationEntries(this.props.locations),ma=this._getLocationEntries(this.props.defaultLocations),na={allowedCountryList:this.props.whitelistCountries,disallowedCountryList:this.props.blacklistCountries,disallowZips:true,disallowAddress:true};return (da.createElement(y,{label:aa.LOCATION,tooltip:aa.LOCATION_TOOLTIP},da.createElement(m,{defaultLocations:ma,entries:la,searchSourceOptions:na,onDataUpdate:(function(event,oa){this.props.targetingViewActions.updateBroadGeoLocations(oa);}).bind(this)})));},_getGeoLocationTypeSelector:function(){if(!this.props.allowLocalTargeting)return null;return (da.createElement(y,{label:aa.TARGET_AUDIENCE},da.createElement(w,{geoLocationType:this.props.geoLocationType,onDataUpdate:(function(event,la){this.props.targetingViewActions.updateGeoLocationType(la);}).bind(this)})));},_getInterestEntries:function(la){if(!la)return [];var ma=[],na=la.length;for(var oa=0;oa<na;++oa)ma.push(new ea({uniqueID:la[oa].id,title:la[oa].name}));return ma;},_getLocationEntries:function(la){if(!la||la.length===0)return [];var ma=[],na=la.length;for(var oa=0;oa<na;++oa)if(!p.isObject(la[oa])){ma.push(new ea({uniqueID:la[oa],title:j.countries[la[oa]],type:x.COUNTRIES,auxiliaryData:{key:la[oa],name:j.countries[la[oa]],country_code:la[oa],type:x.COUNTRIES}}));}else ma.push(new ea({uniqueID:la[oa].key,title:la[oa].name,type:la[oa].type,auxiliaryData:{key:la[oa].key,name:la[oa].name,country_code:la[oa].country,region:la[oa].region,region_id:la[oa].region_id,radius:la[oa].radius,type:la[oa].type,distance_unit:la[oa].distance_unit}}));return ma;},_getCustomLocationEditor:function(){switch(this.props.appID){case s.BOOSTED_LOCAL_AWARENESS:break;case s.BOOSTED_CCTA:case s.BOOSTED_WEBSITE:if(this.props.geoLocationType===v.BROAD_GEO_LOCATION)return null;break;default:return null;}var la=this.props.customLocation;!la?ga(0):undefined;var ma=this.props.initialCustomLocation,na=ma&&(ma.address_string!==la.address_string||ma.name!==la.name)?this._onCustomLocationAddressReset:undefined,oa={loadState:this.props.showLoadingIndicator?k.LOADING:k.LOADED,value:this.props.audienceSize};return (da.createElement(u,{address:la.address_string||la.name,areaView:ja(la,this.state.mapSize),audienceSize:oa,locationCoordinates:this._getCTALocationCoordinates(),locationIconURL:this.props.pageIconURL,radius:{unit:la.distance_unit,value:la.radius},onAddressResetRequest:na,onAreaCenterChange:this._onCustomLocationAreaCenterChange,onRadiusChange:this._onCustomLocationRadiusChange,onMapSizeSettled:this._onCustomLocationMapSizeSettled}));},_getCTALocationCoordinates:function(){if(!this.props.callToAction)return;var la=fa(this.props.callToAction,ia);if(!la)return;var ma=i.parseGeoLink(la);if(ma)return ma.coordinates;},_onCustomLocationAddressReset:function(){this.props.targetingViewActions.updateCustomLocation(p.clone(this.props.initialCustomLocation));},_onCustomLocationAreaCenterChange:function(la){this.props.targetingViewActions.updateCustomLocation(babelHelpers._extends({},this.props.customLocation,{address_string:undefined,name:undefined,latitude:la.latitude,longitude:la.longitude}));},_onCustomLocationRadiusChange:function(la){this.props.targetingViewActions.updateCustomLocation(babelHelpers._extends({},this.props.customLocation,{radius:la.value,distance_unit:la.unit}));},_onCustomLocationMapSizeSettled:function(la){this.setState({mapSize:la});},render:function(){return (da.createElement('div',null,da.createElement(z,{errors:this.props.errors,bestTip:this.props.bestAymtTip}),da.createElement(t,null,this._getGeoLocationTypeSelector()),this._getCustomLocationEditor(),da.createElement(t,null,this._getBroadGeoLocationSelector(),this._getInterestsSelector(),this._getAgeSelector(),this._getGenderSelector())));}});f.exports=ka;},null);
__d('BoostedComponentVideoLibrarySelector.react',['AdsVideoPanel.react','BoostedComponentStrings','React','ReactComponentWithPureRenderMixin','ReactLayeredComponentMixin','XUIButton.react','XUIDialog.react','XUIDialogBody.react','XUIDialogButton.react','XUIDialogFooter.react','XUIDialogTitle.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){'use strict';if(c.__markCompiled)c.__markCompiled();var u=j.PropTypes,v=j.createClass({displayName:'BoostedComponentVideoLibrarySelector',mixins:[l,k],propTypes:{videoLibrary:u.array.isRequired,onVideoPickerConfirm:u.func.isRequired},getInitialState:function(){return {selectedVideoID:null,showDialog:false};},renderLayers:function(){return {dialog:j.createElement(n,{shown:this.state.showDialog,width:768},j.createElement(r,{showCloseButton:false},t._("Select Video")),j.createElement(o,{className:"_2xhb",useCustomPadding:true},j.createElement(h,{selectedVideoID:this.state.selectedVideoID,onVideoClick:this._onVideoClick,videoList:this.props.videoLibrary,showUploader:false})),j.createElement(q,null,j.createElement(p,{action:'cancel',label:i.CLOSE,onClick:this._onCancel}),j.createElement(p,{action:'confirm',use:'confirm',label:i.SELECT,disabled:!this.state.selectedVideoID,onClick:this._onVideoPickerConfirm})))};},render:function(){return (j.createElement(m,{onClick:this._onDialogShow,size:'large',label:i.CREATIVE_VIDEO_BROWSE_LIBRARY_BUTTON}));},_onVideoClick:function(w){var x=this.state.selectedVideoID===w?null:w;this.setState({selectedVideoID:x});},_onDialogShow:function(event){event.preventDefault();this.setState({showDialog:true});},_onVideoPickerConfirm:function(event){this.setState({showDialog:false});this.props.onVideoPickerConfirm(this.state.selectedVideoID);},_onCancel:function(){this.setState({showDialog:false});}});f.exports=v;},null);
__d('BUIProgressBar.react',['Image.react','React','cx','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l=i.PropTypes,m=248,n=i.createClass({displayName:'BUIProgressBar',propTypes:{icon:l.object,isBuffering:l.bool,isError:l.bool,isSuccess:l.bool,message:l.string,percentage:l.number,width:l.number},getDefaultProps:function(){return {isBuffering:false,isSuccess:false,isError:false,width:m};},_renderLabel:function(){if(!this.props.icon&&!this.props.message)return null;var o;if(this.props.icon)o=i.createElement(h,{className:"__q1",src:this.props.icon});return (i.createElement('div',{className:"__q2"},o,this.props.message));},_renderProgress:function(){if(this.props.isBuffering)return (i.createElement('div',{className:"__q3",style:{width:'100%'}}));var o=+this.props.width,p=Math.round(+this.props.percentage/100*o);if(p>o)p=o;return (i.createElement('div',{className:"__q6"},i.createElement('div',{className:"__q7",style:{width:p+'px'}})));},_getWidth:function(){var o=+this.props.width;return {width:(o>m?m:o)+'px'};},render:function(){var o=k("__qa"+(this.props.isComplete===true?' '+"__qb":'')+(this.props.isError===true?' '+"__qc":''),this.props.className);return (i.createElement('div',{className:o,style:this._getWidth()},this._renderProgress(),this._renderLabel()));}});f.exports=n;},null);
__d('BoostedComponentVideoSelector.react',['BUIProgressBar.react','BoostedComponentVideoLibrarySelector.react','BoostedComponentVideoSource','CloseButton.react','FileInput.react','Image.react','XUIButton.react','AdsVideoUploadStatus','BoostedComponentStrings','React','cx','fbt','ix'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){'use strict';if(c.__markCompiled)c.__markCompiled();var u=q.PropTypes,v=q.createClass({displayName:'BoostedComponentVideoSelector',propTypes:{onCancelUpload:u.func.isRequired,onRemove:u.func.isRequired,onVideoPickerConfirm:u.func.isRequired,onVideoUploadClick:u.func.isRequired,selectedVideoName:u.string,uploadProgressValue:u.number.isRequired,uploadStatus:u.string.isRequired,videoLibrary:u.array.isRequired,videoSource:u.string},render:function(){switch(this.props.uploadStatus){case o.NONE:if(!this.props.selectedVideoName)return this._renderFilePicker();return this._renderSelectedVideo();case o.UPLOADING:case o.ENCODING:return this._renderProgressBar();default:return null;}},_renderFilePicker:function(){return (q.createElement('div',null,q.createElement(l,{accept:'video/*',onChange:this.props.onVideoUploadClick},q.createElement(n,{className:"_3-90",size:'large',label:p.CREATIVE_VIDEO_UPLOAD_BUTTON,href:{url:'#'}})),q.createElement(i,{onVideoPickerConfirm:this.props.onVideoPickerConfirm,videoLibrary:this.props.videoLibrary})));},_renderProgressBar:function(){var w=Number(this.props.uploadProgressValue);return (q.createElement('div',{className:"_2i40"},q.createElement(h,{percentage:w*100,isBuffering:this.props.uploadStatus===o.ENCODING,className:"_5e6e"}),q.createElement(k,{'aria-label':s._("Cancel Upload"),className:"_58zx",size:'small',onClick:this.props.onCancelUpload})));},_renderSelectedVideo:function(){var w=null;switch(this.props.videoSource){case j.UPLOAD:w=p.getVideoUploadSuccessText(this.props.selectedVideoName);break;case j.BROWSE_LIBRARY:w=p.getVideoSelectedText(this.props.selectedVideoName);break;default:}return (q.createElement('div',{className:"_2i41"},q.createElement('div',{className:"_2i42"},q.createElement(m,{src:t('/images/icons/check_mark.gif'),className:"_3vfj"}),w),q.createElement(k,{'aria-label':s._("Remove video"),className:"_58zx",size:'small',onClick:this.props.onRemove})));}});f.exports=v;},null);
__d('AdsUiImage.react',['Image.react','React'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=i.PropTypes,k=i.createClass({displayName:'AdsUiImage',propTypes:{fixedHeight:j.number.isRequired,realHeight:j.number.isRequired,realWidth:j.number.isRequired,src:j.string,visibleHeight:j.number,visibleWidth:j.number},render:function(){var l=this.props.visibleWidth||this.props.realWidth,m=this.props.visibleHeight||this.props.realHeight,n=this.props.fixedHeight/m,o={height:this.props.fixedHeight,overflow:'hidden',width:l*n};return (i.createElement('div',babelHelpers._extends({},this.props,{style:babelHelpers._extends({},this.props.style||{},o)}),i.createElement(h,{height:this.props.realHeight*n,src:this.props.src,width:this.props.realWidth*n})));}});f.exports=k;},null);
__d('BoostedComponentVideoThumbnails.react',['AdsArrowedCarousel.react','AdsSelected.react','AdsUiImage.react','BoostedComponentImageLibrarySelector.react','BoostedComponentStrings','CenteredContainer.react','Layout.react','Link.react','curry','cx','joinClasses','React'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){'use strict';if(c.__markCompiled)c.__markCompiled();var t=n.Column,u=n.FillColumn,v=s.PropTypes,w=s.createClass({displayName:'BoostedComponentVideoThumbnails',propTypes:{selectedVideoThumbnails:v.array.isRequired,selectedThumbnail:v.object,onThumbnailClick:v.func.isRequired,accountID:v.string.isRequired,switchColumn:v.bool},render:function(){var x=s.createElement(o,null,s.createElement(i,{isSelected:false},s.createElement(m,{className:"_2pnt",vertical:true},s.createElement(j,{src:'/images/ads/mediapanel/thumbnailPicker-plus.png',realWidth:24,realHeight:24,fixedHeight:24}),l.CREATIVE_VIDEO_CUSTOM_THUMBNAIL)));return (s.createElement('div',{className:(this.props.switchColumn?"_1e_":'')+(!this.props.switchColumn?' '+"_1f0":'')},s.createElement(t,null,s.createElement(k,{className:r("_3-99","_3-90"),accountID:this.props.accountID,clickableTrigger:x,onImageSelected:this.props.onThumbnailClick})),s.createElement(n,null,s.createElement(u,null,s.createElement(h,{className:"_3-96"},this.props.selectedVideoThumbnails.map(this._renderThumbnail))))));},_renderThumbnail:function(x,y){var z=false;if(this.props.selectedThumbnail)z=x.id===this.props.selectedThumbnail.id;return (s.createElement(i,{key:'thumbnail_'+y,isSelected:z},s.createElement(o,{onClick:p(this.props.onThumbnailClick,x)},s.createElement(j,{key:y,fixedHeight:80,src:x.uri,realWidth:x.width,realHeight:x.height}))));}});f.exports=w;},null);
__d('BoostedComponentVideoPanel.react',['BoostedComponentVideoSelector.react','BoostedComponentVideoThumbnails.react','AdsVideoUploadStatus','BoostedComponentStrings','React','cx'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=l.PropTypes,o=l.createClass({displayName:'BoostedComponentVideoPanel',propTypes:{accountID:n.string.isRequired,onCancelUpload:n.func.isRequired,onRemove:n.func.isRequired,onThumbnailClick:n.func.isRequired,onVideoPickerConfirm:n.func.isRequired,onVideoUploadClick:n.func.isRequired,selectedThumbnail:n.object,selectedVideoName:n.string,selectedVideoThumbnails:n.array.isRequired,switchColumn:n.bool,uploadProgressValue:n.number.isRequired,uploadStatus:n.string.isRequired,videoLibrary:n.array.isRequired,videoSource:n.string},render:function(){var p=null,q=this.props.uploadStatus===j.NONE&&this.props.selectedVideoName,r="_40rp"+(!q?' '+"_40rq":'');if(q)p=l.createElement(i,{selectedVideoThumbnails:this.props.selectedVideoThumbnails,selectedThumbnail:this.props.selectedThumbnail,onThumbnailClick:this.props.onThumbnailClick,accountID:this.props.accountID,switchColumn:this.props.switchColumn});return (l.createElement('div',null,l.createElement('div',{className:"_3-8y"},l.createElement('div',{className:"_40rp"},k.CREATIVE_VIDEO_STEP_ONE),l.createElement(h,{onCancelUpload:this.props.onCancelUpload,onRemove:this.props.onRemove,onVideoPickerConfirm:this.props.onVideoPickerConfirm,onVideoUploadClick:this.props.onVideoUploadClick,selectedVideoName:this.props.selectedVideoName,uploadProgressValue:this.props.uploadProgressValue,uploadStatus:this.props.uploadStatus,videoLibrary:this.props.videoLibrary,videoSource:this.props.videoSource})),l.createElement('div',{className:"_3-8y"},l.createElement('div',{className:r},k.CREATIVE_VIDEO_STEP_TWO),p)));}});f.exports=o;},null);
__d('BoostedComponentErrorDialog.react',['BoostedComponentConstants','BoostedComponentStrings','LayerFadeOnHide','React','ReactLayeredComponentMixin','XUIDialog.react','XUIDialogBody.react','XUIDialogFooter.react','XUIDialogOkayButton.react','XUIDialogTitle.react'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=k.PropTypes,s=k.createClass({displayName:'BoostedComponentErrorDialog',mixins:[l],propTypes:{causalElementRef:r.func.isRequired,shown:r.bool.isRequired},renderLayers:function(){return {dialog:k.createElement(m,{causalElementRef:this.props.causalElementRef,shown:this.props.shown,behaviors:{LayerFadeOnHide:j},width:h.SMALL_DIALOG_WIDTH},k.createElement(q,null,i.ERROR_DIALOG_TITLE),k.createElement(n,null,i.ERROR_DIALOG_BODY),k.createElement(o,null,k.createElement(p,{action:'cancel',use:'confirm'})))};},render:function(){return k.createElement('div',null);}});f.exports=s;},null);
__d('BoostedComponentLoadingDialog.react',['BoostedComponentConstants','LayerFadeOnHide','React','ReactLayeredComponentMixin','XUICard.react','XUIDialog.react','XUISpinner.react','cx'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){'use strict';if(c.__markCompiled)c.__markCompiled();var p=j.PropTypes,q=j.createClass({displayName:'BoostedComponentLoadingDialog',mixins:[k],propTypes:{causalElementRef:p.func.isRequired,shown:p.bool.isRequired},renderLayers:function(){return {dialog:j.createElement(m,{causalElementRef:this.props.causalElementRef,shown:this.props.shown,behaviors:{LayerFadeOnHide:i},width:h.LOADING_DIALOG_WIDTH},j.createElement(l,null,j.createElement('div',{className:"_238c"},j.createElement(n,{background:'light',size:'large'}))))};},render:function(){return j.createElement('div',null);}});f.exports=q;},null);
__d('BoostedComponentDialogHeaderSection.react',['AdsAdblockWarning.react','BoostedComponentAppID','BoostedComponentConfig','BoostedComponentIntegrityWarningBox.react','React'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=l.PropTypes,n=l.createClass({displayName:'BoostedComponentDialogHeaderSection',propTypes:{config:m.instanceOf(j).isRequired},render:function(){if(this.props.config.getContextStore().getAppID()===i.BOOSTED_POST||this.props.config.getContextStore().getAppID()===i.BOOSTED_EVENT||this.props.config.getContextStore().getAppID()===i.BOOSTED_PRODUCT)return null;return (l.createElement('div',null,l.createElement(h,{margin:'0'}),l.createElement(k,{config:this.props.config})));}});f.exports=n;},null);
__d('AdsAdAccountSelector.react',['AdsTargetingTogglerSafeMixin','BoostedComponentClientEvent','React','XUISelector.react','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();var m=k.Option,n=j.PropTypes,o=j.createClass({displayName:'AdsAdAccountSelector',mixins:[h],propTypes:{accounts:n.object.isRequired,fontSize:n.number,maxWidth:n.number,onDataUpdate:n.func.isRequired,selectedAccount:n.string.isRequired,size:n.oneOf(['small','medium','large','xlarge','xxlarge']),width:n.number},getDefaultProps:function(){return {size:'medium'};},getInitialState:function(){return {selectedAccount:this.props.selectedAccount};},componentWillReceiveProps:function(p){this.setStateSafe(p);},_onDataUpdate:function(p){this.setStateSafe({selectedAccount:p.value});this.props.onDataUpdate(i.UPDATE_ACCOUNT,p.value);},_getAccountOptions:function(){var p=[],q=this.props.accounts,r={fontSize:this.props.fontSize,width:this.props.width};for(var s in q)p.push(j.createElement(m,{key:s,value:s},j.createElement('div',{style:r},l._("{account_name} ({account_id}, {account_currency})",[l.param('account_name',q[s].name),l.param('account_id',s),l.param('account_currency',q[s].currency)]))));return p;},render:function(){return (j.createElement(k,{value:this.state.selectedAccount,onChange:this._onDataUpdate,size:this.props.size,maxwidth:this.props.maxWidth,maxheight:200},this._getAccountOptions()));}});f.exports=o;},null);
__d('AdsChangeCurrencyWarnBox.react',['AdsCFBox.react','Currency','fbt','Link.react','React','URI','adsGKCheck'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=l.PropTypes,p=l.createClass({displayName:'AdsChangeCurrencyWarnBox',propTypes:{currency:o.string.isRequired,helpLink:o.string,isBRLCurrencySwapMessage:o.bool},render:function(){if(this.props.isBRLCurrencySwapMessage)return (l.createElement(h,{type:'yellow'},j._("Because you've selected Brazil as your account country, your payments will be processed in Brazilian Real (BRL). You'll see your payments in {currency ISO code} on Facebook, but your bank may show BRL.",[j.param('currency ISO code',i.getName(this.props.currency))])));if(this.props.currency==='BRL'&&n('ads_payments_brazil_currency_swap_msg'))return (l.createElement(h,{type:'yellow'},j._("Payments made using a credit card or PayPal can't be processed with Brazilian Real (BRL) currency. If you select BRL, these payments will be processed in US Dollars. Payments made using boleto will be processed in BRL. {=Learn more}.",[j.param('=Learn more',l.createElement(k,{href:new m(this.props.helpLink)},j._("Learn More")))])));return (l.createElement(h,{type:'yellow'},j._("Payments made in {currency name} ({currency ISO code}) will now be processed in US Dollars (USD). You'll see your payments in {currency ISO code}, but your bank statement may show USD. {=Learn more}.",[j.param('currency name',i.getName(this.props.currency)),j.param('currency ISO code',this.props.currency),j.param('=Learn more',l.createElement(k,{href:new m(this.props.helpLink)},j._("Learn More")))])));}});f.exports=p;},null);
__d('AdsSwapChargeCurrency',['AdsChangeCurrencyWarnBox.react','AdsSwapChargeCurrencyConfig','React'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();function k(m){var n=i[m];return n&&n.swappable?j.createElement(h,{currency:m,helpLink:n.helpLink}):null;}var l={renderWarnbox:k};f.exports=l;},null);
__d('AdsCurrencySelector.react',['CurrencyConfig','AdsSwapChargeCurrency','AdsTargetingTogglerSafeMixin','BoostedComponentClientEvent','React','XUISelector.react','cx'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o=m.Option,p=l.PropTypes,q=l.createClass({displayName:'AdsCurrencySelector',mixins:[j],propTypes:{fontSize:p.number,maxWidth:p.number,onDataUpdate:p.func.isRequired,selectedCurrency:p.string.isRequired,showISOCode:p.bool,size:p.oneOf(['small','medium','large','xlarge','xxlarge']),width:p.number},getDefaultProps:function(){return {showISOCode:false,size:'medium'};},getInitialState:function(){return {selectedCurrency:this.props.selectedCurrency};},componentWillReceiveProps:function(r){this.setStateSafe(r);},_onDataUpdate:function(r){this.setStateSafe({selectedCurrency:r.value});this.props.onDataUpdate(k.UPDATE_CURRENCY,r.value);},_getSortedCurrencies:function(){return h.adsCurrencyCodes.map(function(r){return h.adsCurrenciesByCode[r];}).sort(function(r,s){return r.name.localeCompare(s.name);});},_getWarnbox:function(){var r=i.renderWarnbox(this.state.selectedCurrency);if(r&&this.state.selectedCurrency!=='BRL')return (l.createElement('div',{className:"_3-8y"},r));return null;},_getCurrencyString:function(r,s){if(this.props.showISOCode)return r+" ("+s+") ";return r;},render:function(){var r=this._getSortedCurrencies(),s=r.length,t={fontSize:this.props.fontSize,width:this.props.width},u=[];for(var v=0;v<s;v++)u.push(l.createElement(o,{key:r[v].iso,value:r[v].iso},l.createElement('div',{style:t},this._getCurrencyString(r[v].name,r[v].iso))));return (l.createElement('div',null,l.createElement(m,{size:this.props.size,value:this.state.selectedCurrency,onChange:this._onDataUpdate,maxwidth:this.props.maxWidth,maxheight:200},u),this._getWarnbox()));}});f.exports=q;},null);
__d('AdsPaymentInfo.react',['AdsPaymentName','Link.react','React','URI','fbt','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m){if(c.__markCompiled)c.__markCompiled();var n=j.PropTypes,o=j.createClass({displayName:'AdsPaymentInfo',propTypes:{adAccountInfo:n.shape({id:n.string,hasFundingSource:function(p,q,r){!p[q]?m(0):undefined;}}).isRequired},getPaymentLink:function(){if(this.props.adAccountInfo.isPrepayAccount)return null;var p=new k('/ads/manage/funding.php').addQueryData('act',this.props.adAccountInfo.id);return (j.createElement(i,{href:p,target:'_blank'},l._("Change")));},render:function(){return (j.createElement('div',null,h.getPaymentName(this.props.adAccountInfo,true),j.createElement('span',{className:'mls'},this.getPaymentLink())));}});f.exports=o;},null);
__d('BoostedComponentSection.react',['React','XUICard.react','XUICardSection.react','cx','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=h.PropTypes,n=h.createClass({displayName:'BoostedComponentSection',propTypes:{title:m.string,isFirstSection:m.bool,headerLink:m.object},render:function(){var o=!this.props.isFirstSection?"_49hu":'';return (h.createElement(i,{className:o},this.props.title?h.createElement(j,{background:'light-wash',className:"_144t"},this.props.title):null,h.createElement(j,{className:l(this.props.className,"_2hgz")},this.props.children)));}});f.exports=n;},null);
__d('BoostedComponentAdAccountSection.react',['AdsAdAccountSelector.react','AdsCurrencySelector.react','AdsPaymentInfo.react','AdsPixelViewActions','BoostedComponentAdAccountViewActions','BoostedComponentConfig','BoostedComponentContent.react','BoostedComponentSection.react','BoostedComponentStrings','BoostedComponentLabeledEditor.react','React','SubscriptionsHandler','XUIText.react'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){'use strict';if(c.__markCompiled)c.__markCompiled();var u=r.PropTypes,v=r.createClass({displayName:'BoostedComponentAdAccountSection',propTypes:{config:u.instanceOf(m).isRequired},componentWillMount:function(){var w=this.props.config;this._adAccountViewActions=new l(w.getDispatcher());this._subscriptions=new s();this._subscriptions.addSubscriptions(w.getAdAccountStore().subscribe('change',(function(){return this.forceUpdate();}).bind(this)),w.getAdStatusStore().subscribe('change',(function(){return this.forceUpdate();}).bind(this)));},componentWillUnmount:function(){this._subscriptions.release();this._subscriptions=null;},render:function(){return (r.createElement(o,{title:p.PAYMENT_INFO_SECTION,isFirstSection:false},r.createElement(n,null,this._getCurrencySelector(),this._getAccountSelector(),this._getPaymentInfoSection())));},_getCurrencySelector:function(){var w=this.props.config.getAdAccountStore();if(!w.canUpdateSelectedAccountCurrency())return null;return (r.createElement(q,{shade:'dark',label:p.CURRENCY_SECTION},r.createElement(i,{selectedCurrency:w.getSelectedAccountCurrency(),onDataUpdate:(function(event,x){this._adAccountViewActions.updateCurrency(x);}).bind(this)})));},_getAccountSelector:function(){var w=this.props.config.getAdAccountStore();if(Object.keys(w.getAllAccounts()).length<=1)return null;if(this.props.config.getAdStatusStore().getShouldEdit()){var x=w.getAllAccounts();return (r.createElement(q,{shade:'dark',label:p.ACCOUNT_SECTION},r.createElement(t,null,x[w.getSelectedAccountID()].name)));}return (r.createElement(q,{shade:'dark',label:p.ACCOUNT_SECTION},r.createElement(h,{accounts:w.getAllAccounts(),selectedAccount:w.getSelectedAccountID(),onDataUpdate:(function(event,y){this._adAccountViewActions.updateAccount(y);k.resetPixelList();}).bind(this)})));},_getPaymentInfoSection:function(){var w=this.props.config.getAdAccountStore();if(!w.getSelectedAccountHasFundingSource())return null;return (r.createElement(q,{shade:'dark',label:p.PAYMENT_METHOD_SECTION},r.createElement(j,{adAccountInfo:w.getSelectedAccountPaymentInfo()})));}});f.exports=v;},null);
__d('BoostedComponentAdStatusSection.react',['React','BoostedActionStatus','BoostedComponentAdStatusSelector.react','BoostedComponentAdStatusViewActions','BoostedComponentConfig','BoostedComponentContent.react','BoostedComponentExperiment','BoostedComponentLabeledEditor.react','BoostedComponentSection.react','BoostedComponentStrings','SubscriptionsHandler','XUIText.react'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){'use strict';if(c.__markCompiled)c.__markCompiled();var t=h.PropTypes,u=h.createClass({displayName:'BoostedComponentAdStatusSection',propTypes:{config:t.instanceOf(l).isRequired},componentWillMount:function(){var v=this.props.config;this._adStatusViewActions=new k(v.getDispatcher());this._subscriptions=new r();this._subscriptions.addSubscriptions(v.getAdStatusStore().subscribe('change',this._updateState));},componentWillUnmount:function(){this._subscriptions.release();this._subscriptions=null;},getInitialState:function(){return {selectedAdStatus:this.props.config.getAdStatusStore().getSelectedAdStatus()};},_updateState:function(){this.setState({selectedAdStatus:this.props.config.getAdStatusStore().getSelectedAdStatus()});},_getAdStatusSelector:function(){return (h.createElement(j,{selectedAdStatus:this.state.selectedAdStatus,adStatusOptions:this._getAdStatusOptions(),onDataUpdate:(function(v){this._adStatusViewActions.updateAdStatus(v);}).bind(this)}));},_getAdStatusNotice:function(){var v=null;switch(this.state.selectedAdStatus){case i.ACTIVE:v=q.AD_STATUS_ACTIVE_NOTICE;break;case i.PAUSED:v=q.AD_STATUS_PAUSE_NOTICE;break;case i.INACTIVE:v=q.AD_STATUS_DELETE_NOTICE;break;default:}return (h.createElement(s,null,v));},_getAdStatusOptions:function(){return [{value:i.ACTIVE,icon:"/images/adz/ad_states/running.gif"},{value:i.PAUSED,icon:"/images/adz/ad_states/paused.gif"},{value:i.INACTIVE,icon:"/images/adz/ad_states/deleted.gif"}];},render:function(){if(!this.props.config.getAdStatusStore().getShouldEdit())return null;return (h.createElement(p,{title:q.AD_STATUS_SECTION,isFirstSection:!this.props.config.getExperimentStore().getExperiment(n.BOOSTED_COMPONENT_TABBED_DIALOG_COLUMN)},h.createElement(m,null,h.createElement('div',null,h.createElement(o,{label:q.AD_STATUS_LABEL},this._getAdStatusSelector()),this._getAdStatusNotice()))));}});f.exports=u;},null);
__d('BoostedComponentSectionMixin',['StoreBasedStateMixinHelper','forEachDifference','getObjectValues','invariant'],function a(b,c,d,e,f,g,h,i,j,k){'use strict';if(c.__markCompiled)c.__markCompiled();var l={getInitialState:function(){this._stores=this.constructor.getStores(this.props);return this.constructor.calculateState(this._stores,undefined);},componentWillMount:function(){var m=j(this._stores);!m.every(function(n){return n!=null;})?k(0):undefined;this._helper=new h(m);this._helper.subscribeCallback((function(){this.setState(this.constructor.calculateState(this._stores,this.state));}).bind(this));},componentWillReceiveProps:function(){var m=this.constructor.getStores(this.props);i(this._stores,m,{onBoth:function(n,o,p){return (k(n===o));},onLeft:function(n,o){return (k(false));},onRight:function(n,o){return (k(false));}});},componentWillUnmount:function(){this._helper.release();this._helper=null;}};f.exports=l;},null);
__d('BoostedComponentTargetingSection.react',['BoostedComponentConfig','BoostedComponentExperiment','BoostedComponentSection.react','BoostedComponentSectionMixin','BoostedComponentSectionUtils','BoostedComponentStoreType','BoostedComponentStrings','BoostedComponentTargetingEditor.react','BoostedComponentTargetingViewActions','React'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';if(c.__markCompiled)c.__markCompiled();var r=q.PropTypes,s=q.createClass({displayName:'BoostedComponentTargetingSection',mixins:[k],propTypes:{config:r.instanceOf(h).isRequired},statics:{getStores:l.makeGetStoresFromConfig(m.AYMT_TIPS_STORE,m.AD_STATUS_STORE,m.BUDGET_EST_STORE,m.CONTEXT_STORE,m.CREATIVE_STORE,m.DIALOG_CHANGE_STORE,m.TARGETING_STORE,m.URI_STORE),calculateState:function(t){var u=t[m.TARGETING_STORE];return {appID:t[m.CONTEXT_STORE].getAppID(),accessToken:t[m.CONTEXT_STORE].getAccessToken(),audienceSize:t[m.BUDGET_EST_STORE].getAudienceSize(),bestAymtTip:t[m.AYMT_TIPS_STORE].getBestTargetigTip(),callToAction:t[m.CREATIVE_STORE].getCallToAction(),defaultLocations:u.getDefaultLocations(),minAge:u.getMinAge(),maxAge:u.getMaxAge(),gender:u.getGender(),geoLocationType:u.getGeoLocationType(),interests:u.getInterests(),initialCustomLocation:u.getInitialCustomLocation(),pageIconURL:t[m.URI_STORE].getPageIconURI(),locations:u.getLocations(),customLocation:u.getCustomLocation(),errors:u.getValidator().getErrors(),shouldEdit:t[m.AD_STATUS_STORE].getShouldEdit(),showLoadingIndicator:t[m.DIALOG_CHANGE_STORE].getShowLoadingIndicator()};}},componentWillMount:function(){this._targetingViewActions=new p(this.props.config.getDispatcher());},render:function(){var t=this.props.config.getConstraintStore(),u=this.props.config.getExperimentStore().getExperiment(i.BOOSTED_COMPONENT_SWITCH_CREATIVE);return (q.createElement(j,{title:n.TARGETING_SECTION,isFirstSection:!this.state.shouldEdit&&!u},q.createElement(o,babelHelpers._extends({},this.state,{minSelectableAge:t.getMinAge(),maxSelectableAge:t.getMaxAge(),whitelistCountries:t.getWhitelistCountries(),blacklistCountries:t.getBlacklistCountries(),targetingViewActions:this._targetingViewActions,allowLocalTargeting:this.props.config.getExperimentStore().getExperiment(i.BOOSTED_COMPONENT_ALTERNATIVE_GEO_LOCATION)}))));}});f.exports=s;},null);
__d('AdsTargetingLocationSelector.react',['AdsCreationExperimentStore','AdsTargetingTokenizer.react','AdsTargetingUtils','BoostedComponentClientEvent','BoostedPostStrings','AdsTargetingConstants','LocationConstants','React','XUIGrayText.react','XUISelector.react','cx','fbt','intlList'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){'use strict';if(c.__markCompiled)c.__markCompiled();var u=n.RadiusInfo,v=q.Option,w=o.PropTypes,x=o.createClass({displayName:'AdsTargetingLocationSelector',propTypes:{onDataUpdate:w.func.isRequired,initialTokenizer:w.number,initialTokens:w.object,initialRadius:w.number,defaultCountries:w.object,smallInput:w.bool,whitelistCountries:w.array,blacklistCountries:w.array},getDefaultProps:function(){return {initialTokenizer:m.LOCATION_TYPES.Countries,initialTokens:{},initialRadius:u.getCityDefaultRadius()};},getInitialState:function(){var y=this.props,z=y.initialTokenizer?y.initialTokenizer:m.LOCATION_TYPES.Countries;return {countryRestriction:this._getCountryRestrictionFromProps(y),tokenizerShown:z,hasTokens:this._hasTokens(z,y.initialTokens),radiusSelected:j.getValidRadius(y.initialRadius,true)};},componentWillReceiveProps:function(y){var z=y.initialTokenizer?y.initialTokenizer:this.state.tokenizerShown;this.setState({tokenizerShown:z,countryRestriction:this._getCountryRestrictionFromProps(y),hasTokens:this._hasTokens(z,y.initialTokens),radiusSelected:j.getValidRadius(y.initialRadius,true)});},_hasTokens:function(y,z){return Boolean(z[this._getTokenizerString(y)]&&z[this._getTokenizerString(y)].length);},_hasInitialRegions:function(y){return y.initialTokenizer===m.LOCATION_TYPES.Regions&&y.initialTokens.regions&&y.initialTokens.regions.length;},_getCountryRestrictionFromProps:function(y){if(!this._hasInitialRegions(y))return null;return y.initialTokens.regions[0].getSubtitle();},_getTokenizerString:function(y){switch(y){case m.LOCATION_TYPES.Countries:return 'countries';case m.LOCATION_TYPES.Regions:return 'regions';case m.LOCATION_TYPES.Cities:return 'cities';}},_getEventType:function(y){switch(y){case m.LOCATION_TYPES.Countries:return k.UPDATE_COUNTRIES;case m.LOCATION_TYPES.Regions:return k.UPDATE_REGIONS;case m.LOCATION_TYPES.Cities:return k.UPDATE_CITIES;}},_getLocationEntries:function(y){return this.refs[this._getTokenizerString(y)].getEntries();},_onSelectorChange:function(y){var z=y.value,aa=this._getLocationEntries(z);this.setState({tokenizerShown:z,hasTokens:!!aa.length,countryRestriction:null});this.props.onDataUpdate(this._getEventType(z),aa);},_onEntriesUpdate:function(y,z){if(this.state.tokenizerShown===m.LOCATION_TYPES.Regions)this._onRegionDataUpdate(y,z);this.setState({hasTokens:!!y.length});this.props.onDataUpdate(this._getEventType(this.state.tokenizerShown),y);},_onRadiusChange:function(y){this.setState({radiusSelected:y.value});this.props.onDataUpdate(k.UPDATE_RADIUS,y.value);},_onRegionDataUpdate:function(y,z){if(y.length){this.setState({countryRestriction:z.getSubtitle()});}else this.setState({countryRestriction:null});},_getCountryGatingQuery:function(){var y={},z=this.props.whitelistCountries,aa=this.props.blacklistCountries;if(z&&z.length)y.whitelist_countries=z;if(aa&&aa.length)y.blacklist_countries=aa;return y;},_getCountriesTokenizer:function(){var y=s._("Add countries...");return (o.createElement(i,{'data-testid':'country_token',uri:m.LOCATION_URIS[m.LOCATION_TYPES.Countries],onDataUpdate:this._onEntriesUpdate,queryData:this._getCountryGatingQuery(),entries:this.props.initialTokens.countries,smallInput:this.props.smallInput,placeholder:y,limit:m.MAX_LOCATION_ENTRIES,ref:'countries'}));},_getRegionsTokenizer:function(){var y={};if(this.state.countryRestriction){y.whitelist_countries=this.state.countryRestriction;}else y=this._getCountryGatingQuery();y.version=2;var z=l.TARGETING_LABELS.ADD_REGION_PLACEHOLDER;return (o.createElement(i,{'data-testid':'region_token',uri:m.LOCATION_URIS[m.LOCATION_TYPES.Regions],onDataUpdate:this._onEntriesUpdate,queryData:y,entries:this.props.initialTokens.regions,smallInput:this.props.smallInput,placeholder:z,limit:m.MAX_LOCATION_ENTRIES,ref:'regions'}));},_getCitiesTokenizer:function(){return (o.createElement(i,{'data-testid':'city_token',uri:m.LOCATION_URIS[m.LOCATION_TYPES.Cities],onDataUpdate:this._onEntriesUpdate,queryData:this._getCountryGatingQuery(),entries:this.props.initialTokens.cities,smallInput:this.props.smallInput,placeholder:l.TARGETING_LABELS.ADD_CITY_PLACEHOLDER,limit:m.MAX_LOCATION_ENTRIES,ref:'cities'}));},_getCitiesRadiusSelector:function(){if(this.state.tokenizerShown!==m.LOCATION_TYPES.Cities)return null;var y=n.MILE_UNIT,z=j.getRadiusOptions();if(u.getLocalizedUnit()!==n.MILE_UNIT){y=u.getLocalizedUnit();z=u.getSupportedRadii();}var aa=z.map(function(ba){var ca=y===n.MILE_UNIT?s._("+{radiusValue} miles",[s.param('radiusValue',ba)]):s._({"*":"+ {radiusValue} kilometers"},[s.param('radiusValue',ba,[0])]);return (o.createElement(v,{key:ba,value:ba,'data-testid':"within_"+ba+"_"+y+'s'},ca));});return (o.createElement(q,{maxwidth:150,onChange:this._onRadiusChange,value:this.state.radiusSelected,className:'mls','data-testid':'radius_selector'},aa));},_getDefaultCountriesString:function(){var y=this.props.defaultCountries,z=[];for(var aa in y)z.push(y[aa]);return t(z,t.CONJUNCTIONS.AND);},_getWarningMessage:function(){if(!this.props.defaultCountries)return null;var y="mts"+(this.state.hasTokens?' '+"hidden_elem":'');return (o.createElement('div',{className:y},o.createElement(p,{'data-testid':'targeting_warning_message'},s._("If left blank, your ad will be delivered to {list_of_countries}.",[s.param('list_of_countries',this._getDefaultCountriesString())]))));},render:function(){var y=this.state,z=y.tokenizerShown!=m.LOCATION_TYPES.Countries?"hidden_elem":'',aa=y.tokenizerShown!=m.LOCATION_TYPES.Regions?"hidden_elem":'',ba=y.tokenizerShown!=m.LOCATION_TYPES.Cities?"hidden_elem":'';return (o.createElement('div',null,o.createElement('div',{className:"_5tpn"},o.createElement(q,{'data-testid':'location_selector',onChange:this._onSelectorChange,value:y.tokenizerShown},o.createElement(v,{key:m.LOCATION_TYPES.Countries,'data-testid':'location_selector_country_item',value:m.LOCATION_TYPES.Countries},s._("Countries")),o.createElement(v,{key:m.LOCATION_TYPES.Regions,'data-testid':'location_selector_region_item',value:m.LOCATION_TYPES.Regions},s._("States\/Provinces")),o.createElement(v,{key:m.LOCATION_TYPES.Cities,'data-testid':'location_selector_city_item',value:m.LOCATION_TYPES.Cities},s._("Cities"))),this._getCitiesRadiusSelector()),o.createElement('div',{className:"_5tpn"},o.createElement('div',{className:z},this._getCountriesTokenizer()),o.createElement('div',{className:aa},this._getRegionsTokenizer()),o.createElement('div',{className:ba},this._getCitiesTokenizer())),this._getWarningMessage()));}});f.exports=x;},null);
__d('BoostedPostLocationTargetingSection.react',['AdsTargetingLocationSelector.react','BoostedComponentLeftRightLabeledRow.react','BoostedPostStrings','AdsTargetingConstants','React','XUIGrayText.react','fbt','cx','intlList'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();var q=j.TARGETING_LABELS,r=l.PropTypes,s=l.createClass({displayName:'BoostedPostLocationTargetingSection',propTypes:{onDataUpdate:r.func.isRequired,audienceSelected:r.number.isRequired,initialData:r.object.isRequired,locationSelectorOptions:r.object.isRequired},getInitialState:function(){return {fofSelectorShown:false};},_getInitialLocationTokenizer:function(){switch(this.props.initialData.targetingLevel){case 'countries':return k.LOCATION_TYPES.Countries;case 'regions':return k.LOCATION_TYPES.Regions;case 'cities':return k.LOCATION_TYPES.Cities;default:return null;}},_onShowFofSelector:function(){this.setState({fofSelectorShown:!this.state.fofSelectorShown});},getLocationSelector:function(){if(!this.state.fofSelectorShown&&(this.props.audienceSelected===k.AUDIENCE.Fans||this.props.audienceSelected===k.AUDIENCE.Grouper)){var t=this.props.initialData.targetingLevel?this.props.initialData.targetingLevel:'countries',u=this.props.locationSelectorOptions.targetingLocations[t],v=p(u.map(function(x){return x.getTitle();}));return (l.createElement(i,{label:q.LOCATION},l.createElement('div',{className:"_x05"},l.createElement('div',{className:"_x06"},l.createElement(m,{shade:'medium'},v)),l.createElement('a',{href:'#',className:"_x07",onClick:this._onShowFofSelector},n._("Edit")))));}var w=this.props.locationSelectorOptions;return (l.createElement(i,{label:q.LOCATION},l.createElement(h,{onDataUpdate:this.props.onDataUpdate,initialTokenizer:this._getInitialLocationTokenizer(),initialTokens:w.targetingLocations,initialRadius:this.props.initialData.radius,defaultCountries:w.defaultCountries,smallInput:true,whitelistCountries:w.whitelistCountries,blacklistCountries:w.blacklistCountries})));},render:function(){var t="_1nzr"+(!(this.props.audienceSelected===k.AUDIENCE.Fans||this.props.audienceSelected===k.AUDIENCE.Grouper)?' '+"hidden_elem":'');return (l.createElement('div',{className:t},this.getLocationSelector()));}});f.exports=s;},null);
__d('BoostedPostLookalikeCountrySelector.react',['AdsTargetingTogglerSafeMixin','BoostedComponentClientEvent','XUISelector.react','React'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l=j.Option,m=k.PropTypes,n=k.createClass({displayName:'BoostedPostLookalikeCountrySelector',mixins:[h],propTypes:{defaultCountry:m.string.isRequired,countries:m.object.isRequired,onDataUpdate:m.func.isRequired},getInitialState:function(){return {selected:this.props.defaultCountry};},_onCountryChange:function(o){this.setStateSafe({selected:o.value});this.props.onDataUpdate(i.UPDATE_LOOKALIKE_COUNTRY,o.value);},_getCountryList:function(){var o=[];for(var p in this.props.countries)o.push(k.createElement(l,{value:p},this.props.countries[p]));return o;},render:function(){return (k.createElement(j,{value:this.state.selected,onChange:this._onCountryChange,maxheight:200,maxwidth:150},this._getCountryList()));}});f.exports=n;},null);
__d('BoostedPostAudienceManagerConstants',['fbt'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i={GRAPH_API_VERSION:'2.3',NEW_AUDIENCE_ID:"new",SPECIAL_AUDIENCES:{GROUPER:1,NCPP:2,CUSTOM_AUDIENCE:3,LOOKALIKE:4,ENGAGED:5,FANS:6,PREFERRED_AUDIENCE:7,LAST_USED:101,CREATE_NEW:102,DEFAULT:103,PRIVACY_GATING:104},EDITOR_MODES:{CREATE:0,EDIT:1,DRAFT:2},EDITOR_ACTIONS:{CREATE:1,EDIT:2,DELETE:3},EDITOR_INPUTS:{NAME:1,LOCATIONS:2,AGE:3,GENDER:4,INTERESTS:5,LANGUAGES:6},MESSAGES:{AUDIENCE_SAVED:h._("Audience Saved!"),AUDIENCE_UPDATED:h._("Audience Updated!"),AUDIENCE_DELETED:h._("Audience Deleted!"),CREATE_AUDIENCE_ERROR:h._("Failed to create audience"),UPDATE_AUDIENCE_ERROR:h._("Failed to update audience"),DELETE_AUDIENCE_ERROR:h._("Failed to delete audience"),MUST_SPECIFY_LOCATION:h._("Location must be specified")},LABELS:{AUDIENCE_DETAILS:h._("Audience Details"),AUDIENCE:h._("Audience"),NAME:h._("Name")},MAX_NAME_LENGTH:40,DEFAULT_NAME_INITIAL_NUMBER:1};f.exports=i;},null);
__d('BoostedPostTargetingController',['AdsDaoGraph','BoostedPostAudienceManagerConstants','BoostedPostAppConfig','BoostedPostLogging','BoostedPostEventType','AdsTargetingConstants','CustomAudienceDeliveryStatus','GraphAPI','GraphAPIPaging','Promise','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){'use strict';if(c.__markCompiled)c.__markCompiled();function s(t,u,v){this.$BoostedPostTargetingController1=t;this.$BoostedPostTargetingController2=u;this.$BoostedPostTargetingController3=v;this.$BoostedPostTargetingController4=h.primedForAccount(t);this.$BoostedPostTargetingController5=o(i.GRAPH_API_VERSION);o.setErrorHandler(function(w){});}s.prototype.getDao=function(){return this.$BoostedPostTargetingController4;};s.prototype.getTargetingSpecs=function(t,u){var v=[];if(this.$BoostedPostTargetingController3){v.push(this.$BoostedPostTargetingController5.adaccount(this.$BoostedPostTargetingController1).edge('saved_audiences').get({access_token:j.access_token,fields:['name','targeting','adcampaigns']}).then(p.eachPage()).then(function(w){return w.data.map(function(x){var y=x.id,z=x.name,aa=x.targeting,ba=x.adcampaigns;return {audience_id:y,audience_name:z,target_spec:aa,has_associated_campaigns:!!ba};});}));}else v.push(this.$BoostedPostTargetingController5.adaccount(this.$BoostedPostTargetingController1).edge('audiences').get({access_token:j.access_token,limit:1000}).then(function(w){return w.data;}));if(u)v.push(this.$BoostedPostTargetingController5.adaccount(this.$BoostedPostTargetingController1).edge('customaudiences').get({access_token:j.access_token,fields:['name','delivery_status']}).then(function(w){var x=w.data.filter(function(y){var z=y.delivery_status;return (z.code===n.ACTIVE);});return x.map(function(y){var z=y.id,aa=y.name;return {audience_id:z,audience_name:aa,target_spec:{custom_audiences:[{id:parseInt(z,10)}]},is_custom:true};});}));q.all(v).done(function(w){return t([].concat.apply([],w));});};s.prototype.saveTargetingSpec=function(t,u,v,w){var x=this.$BoostedPostTargetingController6(t,u);if(!this.$BoostedPostTargetingController7(t,w))return;var y=t.getTargetSpec().getRaw(t.getLocationType());if(this.$BoostedPostTargetingController3){this.$BoostedPostTargetingController5.adaccount(this.$BoostedPostTargetingController1).edge('saved_audiences').post({access_token:j.access_token,name:x,targeting:y}).done(function(z){k.log(l.AM_AUDIENCE_CREATED,{audience_id:z.id,audience_name:x,custom_targeting_raw:y});v(parseInt(z.id,10));},w.bind(null,i.MESSAGES.CREATE_AUDIENCE_ERROR));}else this.$BoostedPostTargetingController4.add.createNewSavedTargetSpec.one((function(z){k.log(l.AM_AUDIENCE_CREATED,{audience_id:z.id,audience_name:x,custom_targeting_raw:y});this.$BoostedPostTargetingController4.fetch.audiencesForAccount.clearCache();v(parseInt(z.id,10));}).bind(this),{targeting_spec:y,name:x,access_token:j.access_token,handleError:w.bind(null,i.MESSAGES.CREATE_AUDIENCE_ERROR)});};s.prototype.updateTargetingSpec=function(t,u,v,w){var x=this.$BoostedPostTargetingController6(t,u),y=t.getAudienceID();if(!this.$BoostedPostTargetingController7(t,w))return;var z=t.getTargetSpec().getRaw(t.getLocationType());k.log(l.AM_AUDIENCE_EDITED,{id:y,custom_targeting_raw:z});if(this.$BoostedPostTargetingController3){this.$BoostedPostTargetingController5.object('saved_audience',y.toString()).post({access_token:j.access_token,name:x,targeting:z}).done(v,w.bind(null,i.MESSAGES.UPDATE_AUDIENCE_ERROR));}else this.$BoostedPostTargetingController4.mutate.savedTargetSpec.one((function(){this.$BoostedPostTargetingController4.fetch.audiencesForAccount.clearCache();v();}).bind(this),{targeting_spec:z,name:x,audienceId:y,access_token:j.access_token,handleError:w.bind(null,i.MESSAGES.UPDATE_AUDIENCE_ERROR)});};s.prototype.deleteTargetingSpec=function(t,u,v){var w=t.getAudienceID();k.log(l.AM_AUDIENCE_DELETED,{id:w});if(this.$BoostedPostTargetingController3){this.$BoostedPostTargetingController5.object('saved_audience',w.toString()).remove({access_token:j.access_token}).done(function(x){return u();},v.bind(null,i.MESSAGES.DELETE_AUDIENCE_ERROR));}else this.$BoostedPostTargetingController4.remove.audience.one((function(){this.$BoostedPostTargetingController4.fetch.audiencesForAccount.clearCache();u();}).bind(this),{audienceId:w,access_token:j.access_token,handleError:v.bind(null,i.MESSAGES.DELETE_AUDIENCE_ERROR)});};s.prototype.fetchReachEstimates=function(t,u,v){this.$BoostedPostTargetingController4.fetch.estimatesForAccount.one(v,{access_token:j.access_token,currency:u,targeting_spec:t});};s.prototype.getTargetingSentences=function(t,u,v){this.$BoostedPostTargetingController5.adaccount(this.$BoostedPostTargetingController1).edge('targetingsentencelines').get({access_token:j.access_token,discard_ages:!t.age_min&&!t.age_max,discard_placements:true,targeting_spec:t}).done(u,v);};s.prototype.$BoostedPostTargetingController7=function(t,u){if(this.$BoostedPostTargetingController8(t))if(!(this.$BoostedPostTargetingController2&&this.$BoostedPostTargetingController2.length)){u(i.MESSAGES.MUST_SPECIFY_LOCATION);return false;}else{t.getTargetSpec().setCountries(this.$BoostedPostTargetingController2);t.setLocationType(m.LOCATION_TYPES.Countries);}return true;};s.prototype.$BoostedPostTargetingController8=function(t){var u=t.getTargetSpec();switch(t.getLocationType()){case m.LOCATION_TYPES.Countries:if(!u.getCountries().length)return true;break;case m.LOCATION_TYPES.Regions:if(!u.getRegions().length)return true;break;case m.LOCATION_TYPES.Cities:if(!u.getCities().length)return true;break;default:return true;}return false;};s.prototype.$BoostedPostTargetingController6=function(t,u){var v=t.getAudienceName();if(v&&v.length)return v;if(t.getOriginalName())return t.getOriginalName();var w=i.DEFAULT_NAME_INITIAL_NUMBER;while(1){var x=r._("Audience {audience_number}",[r.param('audience_number',w)]);if(u.indexOf(x)===-1)return x;++w;}};f.exports=s;},null);
__d('BoostedPostAudienceDetails.react',['BoostedPostTargetingController','React','XUIText.react','cx','fbt','intlList'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=i.PropTypes,o=170,p=i.createClass({displayName:'BoostedPostAudienceDetails',propTypes:{audience:n.object,controller:n.instanceOf(h),width:n.number},getDefaultProps:function(){return {width:o};},getInitialState:function(){return {targetingSentences:null,hasAudienceDescription:true};},componentWillMount:function(){this._init(this.props);},componentWillReceiveProps:function(q){this._init(q);},_init:function(q){this._populateTargetingSentences(q.audience);},_populateTargetingSentences:function(q){if(Object.keys(q).length){this.props.controller.getTargetingSentences(q,this._populateTargetingSentencesCallback,this._targetingSentencesErrorCallback);}else this.setState({targetingSentences:null,hasAudienceDescription:true});},_populateTargetingSentencesCallback:function(q){this.setState({targetingSentences:q.targetingsentencelines,hasAudienceDescription:true});},_targetingSentencesErrorCallback:function(){this.setState({targetingSentences:null,hasAudienceDescription:false});},_getTargetingSentenceFormatted:function(q){return (i.createElement('div',{key:q.content,className:"ellipsis",'data-hover':'tooltip','data-tooltip-display':'overflow',style:{width:this.props.width}},l._("{content_label} {children}",[l.param('content_label',i.createElement(j,{weight:'bold'},q.content)),l.param('children',m(q.children,m.CONJUNCTIONS.OR))])));},render:function(){if(!this.state.hasAudienceDescription)return (i.createElement('div',null,l._("Error while fetching audience description.")));var q=this.state.targetingSentences;if(!q||!q.length)return null;return i.createElement('div',null,q.map(this._getTargetingSentenceFormatted));}});f.exports=p;},null);
__d('AdsTargetingViewConfig',['AdsTargetingSectionsLabels','ImmutableObject','keyMirror'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=j({OFF:null,STRONG:null,WEAK:null,BROADEN:null,DANGEROUS:null}),l=13,m=65,n=['relationshipSingle','relationshipInA','relationshipMarried','relationshipEngaged','relationshipUnspecified'],o='cities',p='zips',q='regions',r=[],s=j({getFeatureEffect:null}),t=j({}),u={INTERESTS:{getFeatureEffect:function(x){var y=x.keywords&&x.keywords.length||x.interests&&x.interests.length;return y?k.STRONG:k.OFF;}},CUSTOM_AUDIENCE:{getFeatureEffect:function(x){return x.customAudiences&&x.customAudiences.length?k.STRONG:k.OFF;}},CONNECTIONS:{getFeatureEffect:function(x){var y=x.connections&&x.connections.length||x.friendsOfConnections&&x.friendsOfConnections.length;return y?k.STRONG:k.OFF;}},CATEGORIES:{getFeatureEffect:function(x){return x.userAdclusters&&x.userAdclusters.length?k.STRONG:k.OFF;}},LOCATION:{getFeatureEffect:function(x){if(x.geoLocations){var y=x.geoLocations,z=y.cities&&y.cities.length,aa=y.zips&&y.zips.length,ba=y.regions&&y.regions.length,ca=x.excludedGeoLocations||{},da=0;Object.keys(ca).forEach(function(ga){da+=ca[ga].length||0;});if(z||aa){return k.STRONG;}else if(ba){return da?k.STRONG:k.WEAK;}else if(y.countries&&y.countries.length>1)return da?k.WEAK:k.BROADEN;return da?k.WEAK:k.OFF;}var ea=x.locTargeting===p||x.locTargeting===o,fa=x.cities&&x.cities.length||x.zips&&x.zips.length;if(ea&&fa)return k.STRONG;if(x.locTargeting===q&&x.regions&&x.regions.length)return k.WEAK;if(x.countries&&x.countries.length>1)return k.BROADEN;return k.OFF;}},GENDER_AGE:{getFeatureEffect:function(x){if(x.ageMax&&x.ageMax!==m||x.ageMin&&x.ageMin!==l||x.sex)return k.WEAK;return k.OFF;}},SCHOOL:{getFeatureEffect:function(x){if(!x.educationStatus)return k.OFF;return k.WEAK;}},WORK:{getFeatureEffect:function(x){return k.OFF;}},LANGUAGE:{getFeatureEffect:function(x){return x.locales&&x.locales.length?k.WEAK:k.OFF;}},RELATIONSHIP:{getFeatureEffect:function(x){var y=!!x.interestedIn&&!!x.interestedIn.length,z=false,aa=true;n.forEach(function(ba){z=z||x[ba];aa=aa&&x[ba];});if(aa||!z)return y?k.WEAK:k.OFF;return y?k.STRONG:k.WEAK;}},DEVICE:{getFeatureEffect:function(x){var y=0;if(x.wifiOnly)y++;var z=x.mobileDevices||[];if(z.length&&z.length!==3)y++;if(x.minIosVersion||x.minAndroidVersion)y++;if(y>1){return k.STRONG;}else if(y===1)return k.WEAK;return k.OFF;}},ADV_DEMO:{getFeatureEffect:function(x){var y=!!Object.keys(h).filter(function(z){return r.indexOf(z)==-1&&x[z]&&x[z].length;}).length;return y?k.STRONG:k.OFF;}}},v={};Object.keys(u).forEach(function(x){u[x].KEY=x;v[x]=x;});var w={INTERFACE:s,OPTIONAL_INTERFACE:t,EFFECTS:k,FEATURES:v,getViewNames:function(){return Object.keys(u);},getAllViewConfigs:function(){return Object.keys(u).map(function(x){return new i(u[x]);});},getViewConfigByName:function(x){return new i(u[x]);}};f.exports=w;},null);
__d('AdsTargetingRatingUtils',['AdsTargetingViewConfig','ImmutableObject','AdsTargetingSpecOverallRating','keyMirror'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l=h.EFFECTS,m=k({TOO_SMALL:null,SMALL:null,GOOD:null,TOO_BROAD:null}),n=k({DANGEROUS:null,VAGUE:null,GOOD:null,GREAT:null,NONE:null}),o=1000*1000,p=100*o,q=2500,r=10000,s=3,t=2,u={SIZE_RATINGS:m,FEATURE_RATINGS:n,OVERALL_RATINGS:j,getFeaturesByEffect:function(v){var w=h.getAllViewConfigs(),x={};Object.keys(l).forEach(function(y){x[y]=[];});w.forEach(function(y){var z=y.getFeatureEffect(v);x[z].push(y);});return x;},getConfigsWithFeature:function(v){var w=h.getAllViewConfigs();return w.map(function(x){return new i(babelHelpers._extends({},x,{EFFECT:x.getFeatureEffect(v)}));});},getAudienceSizeRating:function(v){var w=m;if(v<=q){return w.TOO_SMALL;}else if(v<=r){return w.SMALL;}else if(v<p)return w.GOOD;return w.TOO_BROAD;},getFeaturesRating:function(v){var w=n,x=this.getFeaturesByEffect(v);delete x[l.OFF];if(x[l.DANGEROUS].length)return w.DANGEROUS;var y=x[l.STRONG].length,z=x[l.WEAK].length;y+=Math.floor(z/s);if(y>=t){return w.GREAT;}else if(y){return w.GOOD;}else if(z)return w.VAGUE;return w.NONE;},getOverallRating:function(v,w){var x=this.getFeaturesRating(v),y=this.getAudienceSizeRating(w),z=m,aa=n,ba=j;switch(y){case z.TOO_SMALL:return ba.BAD_TOO_SMALL;case z.TOO_BROAD:switch(x){case aa.NONE:case aa.DANGEROUS:return ba.BAD_TOO_BROAD;case aa.VAGUE:case aa.GOOD:return ba.VAGUE;case aa.GREAT:return ba.GOOD;}break;case z.GOOD:switch(x){case aa.DANGEROUS:return ba.GOOD;case aa.NONE:return ba.BAD_TOO_BROAD;case aa.VAGUE:return ba.VAGUE;case aa.GOOD:case aa.GREAT:return ba.GOOD;}break;case z.SMALL:switch(x){case aa.DANGEROUS:return ba.BAD_TOO_SMALL;case aa.NONE:case aa.VAGUE:return ba.VAGUE;case aa.GOOD:case aa.GREAT:return ba.GOOD;}}}};f.exports=u;},null);
__d('AdsTargetingEstimateFeedbackThrottle.react',['AdsOtherConsts','AdsTargetingRatingUtils','BrowserSupport','Image.react','LeftRight.react','LoadingIndicator.react','NumberFormat','React','ReactFragment','cx','fbt','ix','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){'use strict';if(c.__markCompiled)c.__markCompiled();var u=o.PropTypes,v=i.OVERALL_RATINGS;function w(z){switch(z){case v.GOOD:return r._("Your audience is defined.");case v.VAGUE:return r._("Your audience selection is fairly broad.");case v.BAD_TOO_SMALL:return r._("Your audience is too specific for your ads to be shown. Try making it broader.");case v.BAD_TOO_BROAD:return r._("Your audience selection is broad. This requires a large budget.");}}function x(z){switch(z){case v.GOOD:return t("_1ga0","_4u38");case v.VAGUE:return t("_1ga0","_4u39");case v.BAD_TOO_BROAD:return t("_1ga0","_4u3a");case v.BAD_TOO_SMALL:return t("_1ga0","_4u3b");}}var y=o.createClass({displayName:'AdsTargetingEstimateFeedbackThrottle',propTypes:{estimateErrors:u.array,loading:u.bool.isRequired,rating:u.string.isRequired,ready:u.bool.isRequired,sentences:u.array,shouldOmitFeedback:u.bool,shouldOmitSentences:u.bool,users:u.number.isRequired,minimumReach:u.number},getDefaultProps:function(){return {estimateErrors:[],sentences:[],shouldOmitFeedback:false,shouldOmitSentences:false,minimumReach:h.REACH_TOO_LOW_NUMBER};},render:function(){return (o.createElement('div',{className:"_1g9y"},this.renderWarning(),o.createElement('div',{className:this._getFeedbackSectionClasses()},this.renderFeedbackSection()),this.props.shouldOmitSentences?null:this.renderSentences(),this._isErrorState()?null:this.props.children,this.renderUsers()));},renderFeedbackSection:function(){if(!this.props.ready||this.props.shouldOmitFeedback)return null;return p.create({throttle:this.renderThrottle(),feedback:this.renderFeedback()});},renderThrottle:function(){if(!this.showNeedle())return null;return (o.createElement('div',{className:"_1g9- lfloat"},o.createElement('div',{className:"_1g9_"},o.createElement(k,{className:x(this.props.rating),src:s('/images/ads/createflow/targeting/needle.png')}),o.createElement(k,{className:"_1ga1",src:s('/images/ads/createflow/targeting/meter.png')}),o.createElement(l,{className:"_1ga2"},this.renderNeedleLabel(r._("Specific")),this.renderNeedleLabel(r._("Broad"))))));},renderNeedleLabel:function(z){return (o.createElement('span',{'data-hover':'tooltip','data-tooltip-alignh':'center','aria-label':z,className:"_1ga3"},z));},renderFeedback:function(){if(this._isErrorState())return null;return (o.createElement('div',{className:"rfloat"+(' '+"fsm")+(' '+"_1ga4")+(!this.showNeedle()?' '+"noNeedle":'')},w(this.props.rating)));},renderSentence:function(z,aa){if(!z.content)return o.createElement('li',{key:z+aa},z);return (o.createElement('li',{key:z.content+aa},o.createElement('div',null,z.content),o.createElement('ul',{className:"_1ga5 pll"},(z.children||[]).map(function(ba,ca){return (o.createElement('li',{key:ba+ca},ba));}))));},renderSentences:function(){if(!this.props.sentences.length)return null;var z=this.props.sentences.map((function(aa,ba){return this.renderSentence(aa,ba);}).bind(this));return (o.createElement('div',{className:"_1ga6",'data-testid':'targeting-estimate-feedback'},o.createElement('span',{className:'fwb'},r._("Audience Details:")),o.createElement('ul',{className:"_1ga7 pll pts"},z)));},renderUsers:function(){if(this.props.shouldOmitFeedback)return null;return this._isErrorState()?this.renderErrorInfo():o.createElement('div',{className:"_1ga8"},this.renderNumUsers());},renderNumUsers:function(){if(this.props.loading)return (o.createElement('div',{className:"_1ga9"},o.createElement(m,{size:m.SIZES.small,color:m.COLORS.blue})));var z=this.props.users;if(z<=this.props.minimumReach)return r._({"*":"Potential Reach: Fewer than {users} people"},[r.param('users',this.props.minimumReach,[0])]);return r._({"*":"Potential Reach: {users} people"},[r.param('users',n.formatInteger(z),[0,z])]);},renderWarning:function(){if(!this._isErrorState())if(!this.props.ready)return (o.createElement('div',{className:"_1gaa"},r._("Continue to create your audience while your customer list is being built")));return null;},renderErrorInfo:function(){return (o.createElement('div',{className:"_1gaa"},r._("Accurate information about your audience size isn't available."),this.renderEstimateErrors()));},renderEstimateErrors:function(){if(!this.props.estimateErrors.length)return;var z=this.props.estimateErrors.map((function(aa){return this.renderSentence(aa);}).bind(this));return (o.createElement('ul',{className:"_1ga7 pll pts"},z));},showNeedle:function(){return j.hasCSSTransforms()&&j.hasCSSTransitions();},_getRatingIfNotError:function(){if(!this.props.ready)return '';return this._isErrorState()?'':this.props.rating;},_isErrorState:function(){return isNaN(this.props.users)||this.props.estimateErrors.length;},_getFeedbackSectionClasses:function(){return t('clearfix',"_1gab",this._getRatingIfNotError(),this._isErrorState()?'ERROR':'');}});f.exports=y;},null);
__d('AdsTargetingEstimateUtils',['AdsCFAudienceEstimateValidator'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={getEstimateErrorFromTargetingSpec:function(j){var k=h.validateTargetingSpec(j),l=[];for(var m in k){var n=k[m];if(!n.isValid)l.push(n.errorMessage);}return l;}};f.exports=i;},null);
__d('BoostedPostAudienceManagerStore',['BoostedPostAudienceManagerTargetSpec','AdsTargetingConstants'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();function j(){this.$BoostedPostAudienceManagerStore1=new h();this.$BoostedPostAudienceManagerStore2=false;}j.prototype.getAudienceID=function(){return this.$BoostedPostAudienceManagerStore3;};j.prototype.setAudienceID=function(k){this.$BoostedPostAudienceManagerStore3=k;};j.prototype.getAudienceName=function(){return this.$BoostedPostAudienceManagerStore4;};j.prototype.setAudienceName=function(k){this.$BoostedPostAudienceManagerStore4=k;};j.prototype.getOriginalName=function(){return this.$BoostedPostAudienceManagerStore5;};j.prototype.setOriginalName=function(k){this.$BoostedPostAudienceManagerStore5=k;};j.prototype.getLocationType=function(){return this.$BoostedPostAudienceManagerStore6;};j.prototype.setLocationType=function(k){this.$BoostedPostAudienceManagerStore6=k;};j.prototype.getTargetSpec=function(){return this.$BoostedPostAudienceManagerStore1;};j.prototype.setTargetSpec=function(k){this.$BoostedPostAudienceManagerStore1=k;};j.prototype.getEnabledInputs=function(){return this.$BoostedPostAudienceManagerStore7;};j.prototype.setEnabledInputs=function(k){this.$BoostedPostAudienceManagerStore7=k;};j.prototype.isInputEnabled=function(k){if(!this.$BoostedPostAudienceManagerStore7)return true;return this.$BoostedPostAudienceManagerStore7.indexOf(k)!==-1;};j.prototype.setWithAudience=function(k){if(!k)return;this.setAudienceID(k.audience_id);this.setAudienceName(k.audience_name);this.setOriginalName(k.audience_name);if(!k.target_spec)return;var l=k.target_spec.geo_locations;if(!l)return;this.$BoostedPostAudienceManagerStore1.setWithSpec(k.target_spec);if(l.countries){this.setLocationType(i.LOCATION_TYPES.Countries);}else if(l.regions){this.setLocationType(i.LOCATION_TYPES.Regions);}else if(l.cities)this.setLocationType(i.LOCATION_TYPES.Cities);};f.exports=j;},null);
__d('AdsTargetingLanguageSelector.react',['AdsStaticSearchSource','AdsTargetingTokenizer.react','BoostedComponentClientEvent','GraphAPI','immutable','React','SearchableEntry','areEqual','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){if(c.__markCompiled)c.__markCompiled();var q=m.PropTypes,r=null,s=new h([]),t=p._("Add languages..."),u=m.createClass({displayName:'AdsTargetingLanguageSelector',propTypes:{onDataUpdate:q.func.isRequired,selectedLanguages:q.arrayOf(q.number)},componentWillMount:function(){if(r){this._updateLanguages(this.props.selectedLanguages);return;}k('2.4').search('adlocale').get({limit:500}).done(this._onLocalesLoaded);},getInitialState:function(){return {entries:[]};},componentWillReceiveProps:function(v){if(r&&!o(v.selectedLanguages,this.props.selectedLanguages))this._updateLanguages(v.selectedLanguages);},_onChange:function(v,w){this.props.onDataUpdate(j.UPDATE_LANGUAGES,v.map(function(x){return parseInt(x.getUniqueID(),10);}));},render:function(){var v=this.state.searchSource||s;return (m.createElement(i,{entries:this.state.entries,onDataUpdate:this._onChange,placeholder:t,searchSource:v,smallInput:true,uri:"#"}));},_updateLanguages:function(v){var w=l.Set(v||[]),x=[];r.forEach(function(y,z){if(w.contains(y.key))x.push(new n({uniqueID:y.id,title:y.name}));});this.setState({entries:x,searchSource:this.state.searchSource||new h(r)});},_onLocalesLoaded:function(v){r=v.data.map(function(w){return {id:w.key,name:w.name,key:w.key};});this._updateLanguages(this.props.selectedLanguages);}});f.exports=u;},null);
__d('BoostedPostAudienceUtil',['AsyncRequest','fbt'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j={getCountryNames:function(k,l){if(k.length===0){l({});return;}new h().setURI('/ads/targeting/country_names/').setHandler(function(m){l(m.payload);}).setData({country_isos:k}).setReadOnly(true).setMethod('GET').send();},getRegionNames:function(k,l){if(k.length===0){l({});return;}new h().setURI('/ads/targeting/region_info/').setHandler(function(m){l(m.payload);}).setData({region_ids:k}).setReadOnly(true).setMethod('GET').send();},getCityNames:function(k,l){if(k.length===0){l({});return;}new h().setURI('/ads/targeting/city_names/').setHandler(function(m){l(m.payload);}).setData({city_ids:k}).setReadOnly(true).setMethod('GET').send();},getRegionNamesFromSpecFormat:function(k){return k.map(function(l){return l.name;});},getCityNamesFromSpecFormat:function(k){return k.map(function(l){return i._("{name}, {region}",[i.param('name',l.name),i.param('region',l.region)]);});}};f.exports=j;},null);
__d('BoostedPostAudienceManagerRow.react',['XUIGrayText.react','React','cx'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=i.PropTypes,l=i.createClass({displayName:'BoostedPostAudienceManagerRow',propTypes:{label:k.string},render:function(){var m=this.props;return (i.createElement('div',{className:"_5sp0"},i.createElement('div',{className:"_5sp1"},i.createElement(h,{size:'small',shade:'light',weight:'bold'},i.createElement('div',{className:"ellipsis",'data-hover':'tooltip','data-tooltip-display':'overflow'},m.label))),i.createElement('div',{className:"_5sp2"},m.children)));}});f.exports=l;},null);
__d('BoostedPostAudienceEditor.react',['AdsCFActionTypes','AdsDispatcher','AdsTargetingLocationSelector.react','AdsAgeSelector.react','AdsTargetingGenderSelector.react','AdsTargetingKeywordSelector.react','AdsTargetingLanguageSelector.react','AdsTargetingConstants','BoostedPostAudienceManagerConstants','LoadingIndicator.react','SearchableEntry','WebApiApplication','BoostedComponentClientEvent','BoostedPagelikeAppConfig','BoostedPostAppConfig','BoostedPostAudienceManagerStore','BoostedPostAudienceUtil','BoostedPostStrings','BoostedPostTargetingController','BoostedPostNameInput.react','BoostedPostAudienceManagerRow.react','emptyFunction','React','AdsCFAccountStore'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da){'use strict';if(c.__markCompiled)c.__markCompiled();c('AdsCFAccountStore');var ea=p.EDITOR_INPUTS,fa=da.PropTypes,ga=y.TARGETING_LABELS,ha=da.createClass({displayName:'BoostedPostAudienceEditor',propTypes:{adAccountID:fa.string.isRequired,setLoading:fa.func.isRequired,onPostMutate:fa.func.isRequired,mode:fa.number.isRequired,store:fa.instanceOf(w).isRequired,controller:fa.instanceOf(z).isRequired,otherNames:fa.array,showLanguageTargeting:fa.bool,onMessageChange:fa.func.isRequired,defaultCountries:fa.object.isRequired,onTargetingSpecChange:fa.func},getDefaultProps:function(){return {otherNames:[],onTargetingSpecChange:ca};},getInitialState:function(){return {namesLoaded:false,initialTokens:this._getEmptyInitialTokens()};},componentWillMount:function(){s.init(u.access_token,u.client_id);i.dispatch({action:{actionType:h.ACCOUNT_INIT,accountConfig:{account_id:this.props.adAccountID},type:h.ACCOUNT_INIT}});this._loading=false;},componentDidMount:function(){this._getLocationNames();},componentDidUpdate:function(){this._getLocationNames();},shouldComponentUpdate:function(){return !this._loading;},componentWillReceiveProps:function(){this.setState({namesLoaded:false});},_onDataUpdate:function(ia,ja){var ka=this.props.store,la=ka.getTargetSpec();if(ia===t.UPDATE_COUNTRIES||ia===t.UPDATE_REGIONS||ia===t.UPDATE_CITIES)ja=ja.map(function(na){return na.getUniqueID();});switch(ia){case t.UPDATE_NAME:ka.setAudienceName(ja);return;case t.UPDATE_AGE:la.setMinAge(ja.age_min);la.setMaxAge(ja.age_max);break;case t.UPDATE_GENDER:la.setGender(ja);break;case t.UPDATE_CITIES:la.setCities(ja);ka.setLocationType(o.LOCATION_TYPES.Cities);break;case t.UPDATE_COUNTRIES:la.setCountries(ja);ka.setLocationType(o.LOCATION_TYPES.Countries);break;case t.UPDATE_REGIONS:la.setRegions(ja);ka.setLocationType(o.LOCATION_TYPES.Regions);break;case t.UPDATE_RADIUS:la.setRadius(ja);break;case t.UPDATE_LANGUAGES:la.setLocales(ja);break;case t.UPDATE_INTERESTS:var ma=ja.map(function(na){return {id:na.getUniqueID(),name:na.getTitle()};});la.setInterests(ma);break;}this.props.onTargetingSpecChange(la.getRaw(ka.getLocationType()));},onSave:function(){var ia=this.props.store;this._setLoading(true);if(this.props.mode===p.EDITOR_MODES.DRAFT){this._onPostMutate(p.EDITOR_ACTIONS.EDIT,ia.getAudienceID());}else if(ia.getAudienceID()&&ia.getAudienceID()!==p.SPECIAL_AUDIENCES.LAST_USED){var ja=this.props.otherNames.slice(),ka=ia.getAudienceName();for(var la=0;la<ja.length;++la)if(ja[la]===ka){ja.splice(la,1);break;}this.props.controller.updateTargetingSpec(ia,ja,this._onPostMutate.bind(null,p.EDITOR_ACTIONS.EDIT,ia.getAudienceID()),this._onErrorCallback);}else this.props.controller.saveTargetingSpec(ia,this.props.otherNames,this._onPostMutate.bind(null,p.EDITOR_ACTIONS.CREATE),this._onErrorCallback);},_onErrorCallback:function(ia,ja,ka,la){this._setLoading(false);this.props.onMessageChange(ia);},_onPostMutate:function(ia,ja){this.props.onPostMutate(ia,ja);this._setLoading(false);},_getLocationNames:function(){if(this.state.namesLoaded)return;var ia=this.props.store,ja=ia.getTargetSpec(),ka=this._getNamesCallback;switch(ia.getLocationType()){case o.LOCATION_TYPES.Countries:x.getCountryNames(ja.getCountries(),ka.bind(null,o.TARGETING_SPEC_KEYS.COUNTRIES,null));break;case o.LOCATION_TYPES.Regions:x.getRegionNames(ja.getRegions(),ka.bind(null,o.TARGETING_SPEC_KEYS.REGIONS,'name'));break;case o.LOCATION_TYPES.Cities:x.getCityNames(ja.getCities(),ka.bind(null,o.TARGETING_SPEC_KEYS.CITIES,null));break;default:this.setState({initialTokens:this._getEmptyInitialTokens(),namesLoaded:true});break;}},_getEmptyInitialTokens:function(){return {countries:[],regions:[],cities:[]};},onAudienceDelete:function(){this._setLoading(true);this.props.controller.deleteTargetingSpec(this.props.store,this._onPostMutate.bind(null,p.EDITOR_ACTIONS.DELETE),this._onErrorCallback);},_getNamesCallback:function(ia,ja,ka){var la=[];for(var ma in ka){var na=ka[ma];if(ja)na=na[ja];la.push(new r({uniqueID:ma,title:na}));}var oa=this._getEmptyInitialTokens();oa[ia]=la;this.setState({namesLoaded:true,initialTokens:oa});},_setLoading:function(ia){this._loading=ia;this.props.setLoading(ia);},_getInterestEntries:function(ia){if(!ia)return [];var ja=[],ka=ia.length;for(var la=0;la<ka;++la)ja.push(new r({uniqueID:ia[la].id,title:ia[la].name}));return ja;},render:function(){var ia=this.props.store,ja=ia.getTargetSpec(),ka=this._getInterestEntries(ja.getInterests()),la=null;if(this.state.namesLoaded){la=da.createElement(j,{initialTokenizer:ia.getLocationType(),initialTokens:this.state.initialTokens,initialRadius:ja.getRadius(),onDataUpdate:this._onDataUpdate,defaultCountries:this.props.defaultCountries,smallInput:true,ref:'locations'});}else la=da.createElement(q,{size:'small',color:'white'});var ma=[];if(ia.isInputEnabled(ea.NAME))ma.push(da.createElement(ba,{key:ma.length,label:p.LABELS.NAME},da.createElement(aa,{initialText:ia.getAudienceName(),onDataUpdate:this._onDataUpdate,ref:'name'})));if(ia.isInputEnabled(ea.LOCATIONS))ma.push(da.createElement(ba,{key:ma.length,label:ga.LOCATION},la));if(ia.isInputEnabled(ea.AGE))ma.push(da.createElement(ba,{key:ma.length,label:ga.AGE},da.createElement(k,{initialMinAge:ja.getMinAge(),initialMaxAge:ja.getMaxAge(),onDataUpdate:this._onDataUpdate})));if(ia.isInputEnabled(ea.GENDER))ma.push(da.createElement(ba,{key:ma.length,label:ga.GENDER},da.createElement(l,{onDataUpdate:this._onDataUpdate,initialGender:ja.getGender()})));if(this.props.showLanguageTargeting&&ia.isInputEnabled(ea.LANGUAGES))ma.push(da.createElement(ba,{key:ma.length,label:ga.LANGUAGES},da.createElement(n,{onDataUpdate:this._onDataUpdate,selectedLanguages:ja.getLocales()})));if(ia.isInputEnabled(ea.INTERESTS))ma.push(da.createElement(ba,{key:ma.length,label:ga.INTERESTS},da.createElement(m,{initialEntries:ka,onDataUpdate:this._onDataUpdate,primedDao:this.props.controller.getDao(),smallInput:true,accessToken:v.access_token})));return (da.createElement('div',null,ma));}});f.exports=ha;},null);
__d('BoostedPostAudienceManagerModule',['AdsTargetingEstimateFeedbackThrottle.react','AdsTargetingEstimateUtils','AdsTargetingRatingUtils','BoostedPostAudienceManagerConstants','BoostedPostAudienceManagerStore','BoostedPostBasicDialog.react','BoostedPostTargetingController','LayerFadeOnHide','LayerHideOnEscape','LoadingIndicator.react','XUICard.react','XUIDialog.react','XUIDialogTitle.react','XUIDialogBody.react','XUIDialogFooter.react','XUIDialogSaveButton.react','XUIDialogCancelButton.react','XUIGrayText.react','XUINotice.react','ReactLayeredComponentMixin','BoostedPostAudienceEditor.react','React','AdInterfacesUiLogger','AdInterfacesAppNames','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga){'use strict';if(c.__markCompiled)c.__markCompiled();var ha=ca.PropTypes,ia=ca.createClass({displayName:'BoostedPostAudienceManagerModule',mixins:[aa],propTypes:{adAccountID:ha.string.isRequired,onPostMutate:ha.func.isRequired,onChangeDialogState:ha.func.isRequired,showDefault:ha.bool,suggestedAudience:ha.bool,mode:ha.number,otherNames:ha.array,defaultCountries:ha.object.isRequired,showFeedbackThrottle:ha.bool,showLanguageTargeting:ha.bool.isRequired,dialogShown:ha.bool,store:ha.instanceOf(l).isRequired,controller:ha.instanceOf(n).isRequired},getDefaultProps:function(){return {showDefault:true,mode:k.EDITOR_MODES.CREATE};},getInitialState:function(){return {loading:false,estimateThrottleConfig:{ready:true,loading:true,rating:j.OVERALL_RATINGS.BAD_TOO_BROAD,users:0,estimateErrors:[]}};},componentWillMount:function(){this._requestCounter=0;da.setAccountID(this.props.adAccountID);da.setAppName(ea.BOOSTED_POSTS);},_onToggle:function(ja){this.props.onChangeDialogState(ja);this.setState({message:null});},_onSave:function(){this.refs.editor.onSave();},_setLoading:function(ja){this.setState({loading:ja});},_onPostMutate:function(ja,ka){this.props.onChangeDialogState(false);this.props.onPostMutate(ja,ka);},_onDelete:function(){this.refs.editor.onAudienceDelete(this.props.store.getAudienceID());},_onMessageChange:function(ja){this.setState({message:ja});},_getDialogTitle:function(){switch(this.props.mode){case k.EDITOR_MODES.CREATE:return ga._("Create Audience");default:return ga._("Edit Audience");}},_getDeleteDialog:function(){var ja=ca.createElement('a',{href:'#'},ca.createElement(y,{size:'small'},ga._("Delete"))),ka=ga._("Delete Audience?"),la=ga._("It will be removed from your saved audiences list."),ma=ga._("Cancel"),na=ga._("Delete");return (ca.createElement(m,{title:ka,body:la,width:300,entryComponent:ja,closeButtonText:ma,confirmText:na,confirmHandler:this._onDelete}));},_getExplanationText:function(){if(this.props.mode===k.EDITOR_MODES.CREATE){return ga._("Select the location, age, gender and interests of people you want to reach with your ad.");}else return ga._("Make sure to save your edits once you're done.");},_fetchReachEstimates:function(ja){if(!this.props.showFeedbackThrottle)return;this._requestCounter++;this._controller.fetchReachEstimates(ja,'USD',this._fetchReachEstimatesCallback.bind(this,this._requestCounter,ja));var ka=this.state.estimateThrottleConfig;ka.loading=true;this.setState({estimateThrottleConfig:ka});},_fetchReachEstimatesCallback:function(ja,ka,la){if(ja!==this._requestCounter)return;this.setState({estimateThrottleConfig:{ready:la.estimate_ready,loading:false,rating:j.getOverallRating(ka,la.users),estimateErrors:i.getEstimateErrorFromTargetingSpec(ka),users:la.users}});},_renderFeedbackThrottle:function(){if(!this.props.showFeedbackThrottle)return ca.createElement('div',null);var ja=this.state.estimateThrottleConfig;return (ca.createElement(r,{className:"_38ns"},ca.createElement(h,{ready:ja.ready,loading:ja.loading,rating:ja.rating,users:ja.users,estimateErrors:ja.estimateErrors})));},_getDialogWidth:function(){if(this.props.showFeedbackThrottle)return 680;return 445;},renderLayers:function(){var ja=this.state.loading,ka=null;if(ja)ka=ca.createElement('span',{className:"_5vbk"},ca.createElement(q,{size:'small',color:'white'}));var la=null,ma=this.props.store.getAudienceID();if(this.props.mode===k.EDITOR_MODES.EDIT&&ma)la=this._getDeleteDialog();var na=null;if(this.state.message)na=ca.createElement('div',{className:"_5vbj"},ca.createElement(z,null,this.state.message));var oa=this.props.showFeedbackThrottle?"_38nu":'';return {dialog:ca.createElement(s,{shown:this.props.dialogShown,behaviors:{LayerFadeOnHide:o,LayerHideOnEscape:p},onToggle:this._onToggle,width:this._getDialogWidth()},ca.createElement(t,null,this._getDialogTitle()),ca.createElement(u,null,ca.createElement('div',{className:"_5csd"},ca.createElement('div',{className:"_42w7"},ca.createElement(y,{size:'small'},this._getExplanationText())),na,this._renderFeedbackThrottle(),ca.createElement('div',{className:oa},ca.createElement(ba,{adAccountID:this.props.adAccountID,setLoading:this._setLoading,onPostMutate:this._onPostMutate,mode:this.props.mode,store:this.props.store,controller:this.props.controller,otherNames:this.props.otherNames,onMessageChange:this._onMessageChange,showLanguageTargeting:this.props.showLanguageTargeting,defaultCountries:this.props.defaultCountries,onTargetingSpecChange:this._fetchReachEstimates,ref:'editor'})))),ca.createElement(v,{leftContent:la},ka,ca.createElement(x,null),ca.createElement(w,{use:'confirm',disabled:ja,onClick:this._onSave})))};},render:function(){if(!this.props.showDefault)return (ca.createElement('div',null));if(!this.props.suggestedAudience)return (ca.createElement('span',{className:"_1r-a"},ca.createElement(y,null,ga._("Default Audience"))));return (ca.createElement('span',{className:"_1r-a"},ca.createElement(y,null,ga._("Suggested Audience"))));}});f.exports=ia;},null);
__d('BoostedPostSupportedTargeting',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={EDIT_TARGETING_FIELDS:['geo_locations','age_min','age_max','genders','locales','interests','radius']};f.exports=h;},null);
__d('BoostedPostSelectAudienceSelector.react',['AdsQEDataManager','AdsTargetingConstants','BoostedPostAudienceManagerConstants','BoostedComponentConfig','BoostedComponentExperiment','BoostedComponentAdsManagerDialog.react','BoostedPostAudienceConstants','BoostedPostAudienceManagerModule','BoostedPostAudienceManagerStore','BoostedPostLogging','BoostedPostEventType','BoostedPostPlacementOptions','BoostedPostTargetingController','HelpLink.react','Link.react','LoadingIndicator.react','ReactLayeredComponentMixin','BoostedPostSupportedTargeting','TooltipLink.react','XUIAmbientNUX.react','XUIMenuSeparator.react','XUISelector.react','XUIText.react','React','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga){'use strict';if(c.__markCompiled)c.__markCompiled();var ha=j.SPECIAL_AUDIENCES,ia=ca.Option,ja=ea.PropTypes,ka=ea.createClass({displayName:'BoostedPostSelectAudienceSelector',mixins:[x],propTypes:{config:ja.instanceOf(k).isRequired,adAccountID:ja.string.isRequired,onAudienceUpdate:ja.func.isRequired,suggestedAudience:ja.bool,hasLastAudience:ja.bool,lastAudienceID:ja.number,defaultTargetSpec:ja.object.isRequired,defaultCountries:ja.object.isRequired,showFeedbackThrottle:ja.bool,includePresetAudiences:ja.bool,defaultPresetAudience:ja.number,preferredAudienceTargetSpec:ja.object,includeCustomAudiences:ja.bool.isRequired,useSavedAudiences:ja.bool,initialInterestsNuxShown:ja.bool},getInitialState:function(){this._specialAudiences=[];this._preferredAudience=null;if(this.props.preferredAudienceTargetSpec){var la=this.props.preferredAudienceTargetSpec,ma=Object.keys(this.props.defaultCountries);if(la.geo_locations||ma&&ma.length){if(!la.geo_locations)la.geo_locations={countries:ma};this._preferredAudience={audience_id:ha.PREFERRED_AUDIENCE,audience_name:ga._("Preferred Page Audience"),target_spec:la};}}return {audiences:[],dialogShown:false,mode:j.EDITOR_MODES.CREATE,selected:this._getDefaultSelectedValue([]),firstFetchDone:false,interestsNuxShown:this.props.initialInterestsNuxShown};},componentWillMount:function(){this._store=new p();this._store.setAudienceID(this._getDefaultSelectedValue([]));this._isLanguageTargetingExposureLogged=false;this.props.config.getPrivacyGatingStore().subscribe('change',this.refreshSpecs.bind(null,null,null));this.refreshSpecs();},refreshSpecs:function(la,ma){this._controller=new t(this.props.adAccountID,Object.keys(this.props.defaultCountries),this.props.useSavedAudiences);this._controller.getTargetingSpecs(this._getTargetingSpecsCallback.bind(null,la,ma),this.props.includeCustomAudiences);},_lastAudienceExists:function(la,ma){var na=ma.concat(la).filter(function(oa){return oa.audience_id===this.props.lastAudienceID;},this);return !!na.length;},_getDefaultSelectedValue:function(la){var ma=this._specialAudiences,na=this.props.defaultPresetAudience;if(this.props.includePresetAudiences&&na&&na!==n.NCPP&&na!==n.CUSTOM_AUDIENCE)return na;if(this._lastAudienceExists(ma,la))return this.props.lastAudienceID;if(na===n.NCPP&&this.props.config.getPrivacyGatingStore().isPrivacyGated())return ha.PRIVACY_GATING;if(this._preferredAudience)return ha.PREFERRED_AUDIENCE;return ma.length?ma[0].audience_id:la.length?la[0].audience_id:ha.DEFAULT;},_getTargetingSpecsCallback:function(la,ma,na){if(this.props.config.getPrivacyGatingStore().isPrivacyGated())na=[];na.map(function(ra){ra.audience_id=parseInt(ra.audience_id,10);});this._specialAudiences=this._getSpecialAudiences(na);var oa=ma?ma:this._getDefaultSelectedValue(na);if(oa){this.setState({audiences:na,selected:oa,firstFetchDone:true});var pa=this._getAudienceFromID(oa,na);this._onAudienceUpdate(oa,pa);}else this.setState({audiences:na,firstFetchDone:true});if(!this._loggedAudienceShown){this._loggedAudienceShown=true;var qa={ad_account_id:this.props.adAccountID};if(this.props.hasLastAudience){q.log(r.AM_LAST_USED_AUDIENCE_SHOWN,qa);}else if(na.length){q.log(r.AM_FIRST_AUDIENCE_SHOWN,qa);}else q.log(r.AM_DEFAULT_AUDIENCE_SHOWN,qa);}},_getSpecialAudiences:function(la){var ma=this.props.config.getExperimentStore(),na=[];if(this.props.includePresetAudiences){na.push({audience_id:ha.FANS,audience_name:ga._("People who like your Page")});na.push({audience_id:ha.GROUPER,audience_name:ga._("People who like your Page and their friends")});if(ma.getExperiment('engaged_people'))na.push({audience_id:ha.ENGAGED,audience_name:ga._("People who engaged with your Page")});}if(this.props.config.getPrivacyGatingStore().isPrivacyGated()){na.push({audience_id:ha.PRIVACY_GATING,audience_name:ga._("People who can see this post")});}else if(this._preferredAudience)na.push({audience_id:this._preferredAudience.audience_id,audience_name:this._preferredAudience.audience_name});if(this.props.hasLastAudience&&!this._lastAudienceExists(na,la)&&!this.props.config.getPrivacyGatingStore().isPrivacyGated())na.push({audience_id:ha.LAST_USED,audience_name:this._getAudienceName()});return na;},_getAudienceName:function(){if(!this.props.suggestedAudience)return ga._("Default Audience");return ga._("Suggested Audience");},_onAudienceChange:function(la){var ma=la.value,na=this._getAudienceFromID(ma,this.state.audiences),oa={ad_account_id:this.props.adAccountID,audience_id:ma};q.log(r.AM_AUDIENCE_CHANGED,oa);if(ma!==ha.CREATE_NEW)this.setState({selected:ma});this._onAudienceUpdate(ma,na);},_onAudienceUpdate:function(la,ma){var na=this.props.config.getBoostedPostSpecs();switch(la){case ha.LAST_USED:case ha.DEFAULT:this.props.onAudienceUpdate(n.NCPP,this.props.defaultTargetSpec);return;case ha.PRIVACY_GATING:na.setAudience(n.NCPP);this.props.onAudienceUpdate(n.NCPP,na.getPrivacyGatingSpec());return;case ha.FANS:na.setAudience(n.FANS);this.props.onAudienceUpdate(n.FANS,na.getTargetingSpec());return;case ha.PREFERRED_AUDIENCE:this.props.onAudienceUpdate(n.NCPP,this._preferredAudience.target_spec,ha.PREFERRED_AUDIENCE);return;case ha.GROUPER:na.setAudience(n.GROUPER);this.props.onAudienceUpdate(n.GROUPER,na.getTargetingSpec());return;case ha.ENGAGED:na.setAudience(n.ENGAGED);this.props.onAudienceUpdate(n.ENGAGED,na.getTargetingSpec());return;case ha.CREATE_NEW:na.setAudience(n.NCPP);this._store=new p();this._store.setWithAudience({target_spec:na.getTargetingSpec()});this.setState({mode:j.EDITOR_MODES.CREATE,dialogShown:true});return;default:break;}if(ma)this.props.onAudienceUpdate(ma.is_custom?n.CUSTOM_AUDIENCE:n.NCPP,ma.target_spec,ma.audience_id);},_onAudienceEdit:function(){var la=this.props.config.getBoostedPostSpecs(),ma=this.state.selected,na=null,oa={ad_account_id:this.props.adAccountID};switch(ma){case ha.PREFERRED_AUDIENCE:break;case ha.DEFAULT:na={target_spec:this.props.defaultTargetSpec};q.log(r.AM_DEFAULT_AUDIENCE_EDITED,oa);break;case ha.LAST_USED:na={target_spec:this.props.defaultTargetSpec};q.log(r.AM_LAST_USED_AUDIENCE_EDITED,oa);break;case ha.GROUPER:case ha.FANS:case ha.ENGAGED:this._store=new p();this._store.setWithAudience({audience_id:ma,target_spec:la.getTargetingSpec()});this._store.setEnabledInputs([j.EDITOR_INPUTS.LOCATIONS]);this.setState({mode:j.EDITOR_MODES.DRAFT,dialogShown:true});break;default:na=this._getAudienceFromID(ma,this.state.audiences);break;}if(na){this._store=new p();this._store.setWithAudience(na);this.setState({mode:j.EDITOR_MODES.EDIT,dialogShown:true});}},_getAudienceFromID:function(la,ma){var na=ma.length;for(var oa=0;oa<na;++oa)if(ma[oa].audience_id===la)return ma[oa];return null;},_isSelectedAudienceEditable:function(){switch(this.state.selected){case ha.PREFERRED_AUDIENCE:case ha.CREATE_NEW:return false;case ha.LAST_USED:return true;default:return true;}},_isSelectedAudienceEditableOnlyInAdsManager:function(){var la=null;switch(this.state.selected){case ha.CREATE_NEW:case ha.FANS:case ha.GROUPER:case ha.PREFERRED_AUDIENCE:case ha.ENGAGED:return false;case ha.LAST_USED:case ha.DEFAULT:la=this.props.defaultTargetSpec;break;default:var ma=this._getAudienceFromID(this.state.selected,this.state.audiences);if(ma.has_associated_campaigns)return true;la=ma.target_spec;break;}for(var na in la){if(y.EDIT_TARGETING_FIELDS.indexOf(na)===-1)return true;if(na==='locales'&&!this._shouldShowLanguageTargeting())return true;}return this._isIncompatibleFlatGeoSpec(la);},_isIncompatibleFlatGeoSpec:function(la){var ma=la.geo_locations;if(!ma)return false;var na=0,oa=i.TARGETING_SPEC_KEYS;Object.keys(ma).map(function(pa){if([oa.COUNTRIES,oa.REGIONS,oa.CITIES].indexOf(pa)!==-1)na++;});return na>1;},_hasAnyAudiences:function(){return this.state.audiences.length+this._specialAudiences.length>0;},_addSpecialAudienceOptions:function(la){var ma=this._specialAudiences,na=ma.length;for(var oa=0;oa<na;++oa){var pa=ma[oa];la.push(ea.createElement(ia,{key:pa.audience_id,value:pa.audience_id},pa.audience_name));}},_addAudienceOptions:function(la){var ma=this.state.audiences,na=ma.length;for(var oa=0;oa<na;++oa){var pa=ma[oa];la.push(ea.createElement(ia,{key:pa.audience_id,value:pa.audience_id},pa.audience_name));}},_onPostMutate:function(la,ma){if(this.state.mode===j.EDITOR_MODES.DRAFT){this.props.onAudienceUpdate(ma,this._store.getTargetSpec().getRaw(this._store.getLocationType()));return;}this.refreshSpecs(la,ma);},_getOtherNames:function(){return this.state.audiences.map(function(la){return la.audience_name;});},_renderChildren:function(){if(!this.props.children)return null;if(this.props.config.getPrivacyGatingStore().isPrivacyGated())return this._renderAlreadyTargetedMessage();var la=this._renderEditLink();return (ea.createElement('div',{className:"_1obt"},this.props.children,la,la?' - ':null,this._renderCreateLink()));},_renderCreateLink:function(){var la=this._onAudienceUpdate.bind(this,ha.CREATE_NEW);return (ea.createElement('span',{ref:'create_new_audience_link'},ea.createElement(v,{onClick:la},ea.createElement(da,null,ga._("Create New Audience")))));},_renderEditLink:function(){if(this._isSelectedAudienceEditableOnlyInAdsManager()){return (ea.createElement(m,null,ea.createElement('span',null,ea.createElement(v,null,ea.createElement(da,null,ga._("Edit Audience"))))));}else if(this._isSelectedAudienceEditable()){var la=ga._("Edit this audience's interests, location, ages and gender");return (ea.createElement('span',null,ea.createElement(z,{onClick:this._onAudienceEdit,alignH:'right',tooltip:la},ea.createElement(da,null,ga._("Edit Audience")))));}return null;},_renderAlreadyTargetedMessage:function(){var la=ga._("Targeting for this post was specified when it was created.");if(this.props.config.getContextStore().getPlacement()===s.COMPOSER)la=ga._("Targeting for this post has already been specified.");return (ea.createElement('div',{className:"_1obt"},this.props.children,ea.createElement('div',{className:"_1ewh",'data-testid':'already_targeted_message'},la)));},_onChangeDialogState:function(la){this.setState({dialogShown:la});},_renderHelpLink:function(){var la=null;switch(this.state.selected){case ha.PREFERRED_AUDIENCE:la=ga._("The audience you most want to reach with your Page. You can edit this audience in your Page Settings.");}if(!la)return null;return ea.createElement(u,{tooltip:la});},_shouldShowLanguageTargeting:function(){if(this.state.dialogShown&&!this._isLanguageTargetingExposureLogged){h.logExposure(l.BOOSTED_POST_LANGUAGE_TARGETING,this.props.config.getContextStore().getUserID());this._isLanguageTargetingExposureLogged=true;}return this.props.config.getExperimentStore().getExperiment(l.BOOSTED_POST_LANGUAGE_TARGETING);},render:function(){var la=null;if(this._hasAnyAudiences()){var ma=[],na=this.state.audiences.length,oa=this._specialAudiences.length;this._addSpecialAudienceOptions(ma);if(oa&&na)ma.push(ea.createElement(ba,{key:'separator'}));this._addAudienceOptions(ma);la=ea.createElement(ca,{value:this.state.selected,onChange:this._onAudienceChange,maxheight:200,maxwidth:350},ma);}else if(!this.state.firstFetchDone)la=ea.createElement(w,{size:'small',color:'white'});return (ea.createElement('div',null,ea.createElement('div',{className:"_1obt"},ea.createElement(o,{adAccountID:this.props.adAccountID,onPostMutate:this._onPostMutate,onChangeDialogState:this._onChangeDialogState,showDefault:!this._hasAnyAudiences()&&this.state.firstFetchDone,suggestedAudience:this.props.suggestedAudience,mode:this.state.mode,otherNames:this._getOtherNames(),defaultCountries:this.props.defaultCountries,showFeedbackThrottle:this.props.showFeedbackThrottle,showLanguageTargeting:this._shouldShowLanguageTargeting(),dialogShown:this.state.dialogShown,store:this._store,controller:this._controller,ref:'manager'}),la,this._renderHelpLink()),this._renderChildren()));},_onInterestsNuxCloseButtonClick:function(){this.setState({interestsNuxShown:false});},renderLayers:function(){return {interestsNux:ea.createElement(aa,{contextRef:(function(){return this.refs.create_new_audience_link;}).bind(this),onCloseButtonClick:this._onInterestsNuxCloseButtonClick,shown:this.state.interestsNuxShown&&this.state.firstFetchDone,position:'below'},ga._("Create a new audience to add interests, which helps you reach the people more likely to care about your post."))};}});f.exports=ka;},null);
__d('BoostedPostSelectAudienceSection.react',['BoostedComponentConfig','BoostedPostAudienceDetails.react','BoostedPostPlacementOptions','BoostedPostSelectAudienceSelector.react','BoostedPostTargetingController','PromotedPostConstants','React','URI','cx'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();var q=n.PropTypes,r=n.createClass({displayName:'BoostedPostSelectAudienceSection',propTypes:{config:q.instanceOf(h).isRequired,adAccountID:q.string.isRequired,suggestedAudience:q.bool,hasLastAudience:q.bool,lastAudienceID:q.number,defaultCountries:q.object.isRequired,defaultSpec:q.object.isRequired,showFeedbackThrottle:q.bool,onTargetingChange:q.func.isRequired,includePresetAudiences:q.bool,defaultPresetAudience:q.number,preferredAudienceTargetSpec:q.object,includeCustomAudiences:q.bool.isRequired,useSavedAudiences:q.bool},componentWillMount:function(){this._controller=new l(this.props.adAccountID,Object.keys(this.props.defaultCountries),this.props.useSavedAudiences);this.props.config.getBoostedPostSpecs().subscribe(m.ACCOUNT_CHANGE_FINISH,this._refreshSpecs);},_onAudienceUpdate:function(s,t,u){var v=this.props.config.getBoostedPostSpecs();v.setAudienceAndTargetingSpec(s,t);if(u)v.setLastAudienceID(u);this.props.onTargetingChange();},_refreshSpecs:function(){this._controller=new l(this.props.adAccountID,Object.keys(this.props.defaultCountries),this.props.useSavedAudiences);this.refs.selector.refreshSpecs();},_shouldShowInterestsNux:function(){var s=o.getRequestURI().getQueryData().placement;return s==j.AYMT_CREATE_NEW_INTEREST_TARGET_AD;},render:function(){var s=this.props.config.getBoostedPostSpecs(),t=!this.props.includePresetAudiences?"_3mui":'';return (n.createElement('div',{className:t},n.createElement(k,{config:this.props.config,adAccountID:this.props.adAccountID,onAudienceUpdate:this._onAudienceUpdate,suggestedAudience:this.props.suggestedAudience,hasLastAudience:this.props.hasLastAudience,lastAudienceID:this.props.lastAudienceID,defaultTargetSpec:this.props.defaultSpec,defaultCountries:this.props.defaultCountries,showFeedbackThrottle:this.props.showFeedbackThrottle,includePresetAudiences:this.props.includePresetAudiences,defaultPresetAudience:this.props.defaultPresetAudience,preferredAudienceTargetSpec:this.props.preferredAudienceTargetSpec,includeCustomAudiences:this.props.includeCustomAudiences,useSavedAudiences:this.props.useSavedAudiences,initialInterestsNuxShown:this._shouldShowInterestsNux(),ref:'selector'},n.createElement(i,{audience:s.getTargetingSpec(),controller:this._controller,width:300}))));}});f.exports=r;},null);
__d('BoostedPostTargetingAudienceSelector.react',['BoostedComponentClientEvent','BoostedComponentTestElement','AdsTargetingConstants','InputLabel.react','React','HelpLink.react','XUIRadioInput.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){'use strict';if(c.__markCompiled)c.__markCompiled();var q=l.PropTypes,r=l.createClass({displayName:'BoostedPostTargetingAudienceInfo',propTypes:{selectedAudience:q.oneOf([j.AUDIENCE.Fans,j.AUDIENCE.Grouper,j.AUDIENCE.Ncpp,j.AUDIENCE.Custom,j.AUDIENCE.Lookalike,j.AUDIENCE.Engaged]).isRequired,showLookalikeAudience:q.bool,showEngagedAudience:q.bool,isAlreadyTargeted:q.bool.isRequired,isInComposer:q.bool.isRequired,onDataUpdate:q.func.isRequired,isDisabled:q.bool},_onValueChange:function(event){if(!this.props.isDisabled)this.props.onDataUpdate(h.UPDATE_AUDIENCE,event.target.value);},_renderFansOption:function(){if(this.props.isDisabled)return null;var s=p._(["Your boosted post will only be visible to people who like your Page","0d973f9c956c2c166c4cf796b5664a6c"]);return (l.createElement(k,null,l.createElement(n,{name:'audience',value:j.AUDIENCE.Fans,checked:this.props.selectedAudience===j.AUDIENCE.Fans,onChange:this._onValueChange}),l.createElement('label',null,p._("People who like your Page"),l.createElement(m,{tooltip:s}))));},_renderGrouperOption:function(){if(this.props.isDisabled)return null;var s=p._(["Your boosted post will only be visible to people who like your Page and their friends","fa8100f08c71354401173e7ac136183f"]);return (l.createElement(k,null,l.createElement(n,{name:'audience',value:j.AUDIENCE.Grouper,checked:this.props.selectedAudience===j.AUDIENCE.Grouper,onChange:this._onValueChange}),l.createElement('label',null,p._("People who like your Page and their friends"),l.createElement(m,{tooltip:s}))));},_renderNcppOption:function(){if(this.props.isDisabled)return null;var s=p._(["Choose the people you want to show your boosted post to based on their location, age, gender and interests","0c17b4cc50c51d3ccea9cbb55bb7e224"]);return (l.createElement(k,{'data-testid':'ncpp_option'},l.createElement(n,{name:'audience',value:j.AUDIENCE.Ncpp,checked:this.props.selectedAudience===j.AUDIENCE.Ncpp||this.props.selectedAudience===j.AUDIENCE.Custom,onChange:this._onValueChange}),l.createElement('label',null,p._("People you choose through targeting"),l.createElement(m,{tooltip:s}))));},_renderLookalikeAudienceOption:function(){if(!this.props.showLookalikeAudience||this.props.isDisabled||this.props.isAlreadyTargeted)return null;var s=p._("Your boosted post will be visible to people who are similar to people who like your Page based on things like their demographics, interests and activities");return (l.createElement(k,null,l.createElement(n,{name:'audience',value:j.AUDIENCE.Lookalike,checked:this.props.selectedAudience===j.AUDIENCE.Lookalike,onChange:this._onValueChange}),l.createElement('label',null,p._("People similar to people who like your Page"),l.createElement(m,{tooltip:s}))));},_renderEngagedAudience:function(){if(!this.props.showEngagedAudience||this.props.isDisabled)return null;var s=p._("People in this audience includes people who have viewed, checked-in, shared posts or otherwise engaged with your Page, and people who share their ages, genders and interests. They may or may not have liked your Page.");return (l.createElement(k,null,l.createElement(n,{name:'audience',value:j.AUDIENCE.Engaged,checked:this.props.selectedAudience===j.AUDIENCE.Engaged,onChange:this._onValueChange}),l.createElement('label',null,p._("People engaged with your Page and people similar to them"),l.createElement(m,{tooltip:s}))));},_renderAlreadyTargeted:function(){if(!this.props.isAlreadyTargeted)return null;if(this.props.isInComposer){var s=p._("Targeting for this post has already been specified.");}else s=p._("Targeting for this post was specified when it was created.");var t="_5lq7"+(this.props.isDisabled?' '+"_5c4b":'');return (l.createElement('div',{className:t,'data-testid':'already_targeted_message'},s));},render:function(){return (l.createElement('form',{'data-testid':i.AUDIENCE_SECTION,className:"_3ni0"},this._renderFansOption(),this._renderGrouperOption(),this._renderLookalikeAudienceOption(),this._renderEngagedAudience(),this._renderNcppOption(),this._renderAlreadyTargeted()));}});f.exports=r;},null);
__d('BoostedComponentAudienceSection.react',['BoostedComponentClientEvent','BoostedComponentConfig','BoostedComponentContent.react','BoostedComponentLeftRightLabeledRow.react','BoostedComponentSection.react','BoostedComponentStrings','BoostedComponentSectionSubheader.react','BoostedComponentTargetingSection.react','BoostedComponentTargetingViewActions','BoostedComponentUnit','AdsTargetingConstants','React','SearchableEntry','SubscriptionsHandler','XUIGrayText.react','BoostedPostLocationTargetingSection.react','BoostedPostLookalikeCountrySelector.react','BoostedPostPlacementOptions','BoostedPostSelectAudienceSection.react','BoostedPostTargetingAudienceSelector.react','cx'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba){'use strict';if(c.__markCompiled)c.__markCompiled();var ca=s.PropTypes,da=s.createClass({displayName:'BoostedComponentAudienceSection',_locationSelectorOptions:{},_targetingViewActions:p,_subscriptionsHandler:u,propTypes:{config:ca.instanceOf(i).isRequired,isFirstSection:ca.bool.isRequired,hideTitle:ca.bool},getInitialState:function(){return {audienceSelected:this.props.config.getBoostedPostSpecs().getAudience()};},componentWillMount:function(){var ea=this.props.config.getUnitOptions();this._locationSelectorOptions=ea[q.LOCATIONS];this._locationSelectorOptions.targetingLocations=this._getLocationTokens();this._subscriptionsHandler=new u();this._subscriptionsHandler.addSubscriptions(this.props.config.getTargetingStore().subscribe('change',(function(){return this.forceUpdate();}).bind(this)),this.props.config.getAdAccountStore().subscribe('change',(function(){this.forceUpdate();this.props.config.getBoostedPostSpecs().notifyAccountChangeFinished();}).bind(this)));this._targetingViewActions=new p(this.props.config.getDispatcher());},componentWillUnmount:function(){this._subscriptionsHandler.release();delete this._subscriptionsHandler;},_getLocationTokens:function(){var ea=this._locationSelectorOptions.targetingLocations,fa=Object.keys(ea),ga={};for(var ha=0;ha<fa.length;ha++){ga[fa[ha]]=[];for(var ia=0;ia<ea[fa[ha]].length;ia++){var ja=ea[fa[ha]][ia];ga[fa[ha]].push(ja.uniqueID?new t({uniqueID:ja.uniqueID,title:ja.title,subtitle:ja.subtitle}):ja);}}return ga;},render:function(){var ea=s.createElement('div',null,s.createElement(n,{errors:this.props.config.getTargetingStore().getValidator().getErrors()}),s.createElement(j,null,this.getAudienceSelectorRow(),this.getLocationTargetingSection(),this.getAudienceManagerSection()));if(this.props.hideTitle)return ea;return (s.createElement(l,{title:m.TARGETING_SECTION,isFirstSection:this.props.isFirstSection},ea));},getAudienceSelectorRow:function(){var ea=this.props.config,fa=ea.getPrivacyGatingStore().isPrivacyGated(),ga=this.props.config.getUnitOptions()[q.AUDIENCE_MANAGER];if(ea.getExperimentStore().getExperiment('ncpp_new_pages')&&(fa||ga.enabled))return null;if(ea.getExperimentStore().getExperiment('audience_dropdown'))return null;return (s.createElement(aa,{selectedAudience:this.state.audienceSelected,isAlreadyTargeted:fa,isInComposer:this.props.config.getContextStore().getPlacement()===y.COMPOSER,onDataUpdate:this._updateBoostedPostSpec,isDisabled:ea.getExperimentStore().getExperiment('ncpp_new_pages')}));},getAudienceManagerSection:function(){var ea=this.props.config,fa=ea.getUnitOptions()[q.AUDIENCE_MANAGER],ga=ea.getBoostedPostSpecs();if(!fa.enabled||!ea.getExperimentStore().getExperiment('audience_dropdown')&&(ea.getPrivacyGatingStore().isPrivacyGated()||this.state.audienceSelected===r.AUDIENCE.Fans||this.state.audienceSelected===r.AUDIENCE.Grouper||this.state.audienceSelected===r.AUDIENCE.Lookalike||this.state.audienceSelected===r.AUDIENCE.Engaged))return null;var ha="_1nzr"+(ea.getExperimentStore().getExperiment('ncpp_new_pages')?' '+"_3g4p":''),ia=!ea.getExperimentStore().getExperiment('ncpp_new_pages')&&ea.getExperimentStore().getExperiment('audience_dropdown');return (s.createElement('div',{className:ha},s.createElement(z,{config:ea,adAccountID:ea.getAdAccountStore().getSelectedAccountID(),suggestedAudience:ga.isSuggestedAudience(),hasLastAudience:fa.hasLastAudience,lastAudienceID:ga.getLastAudienceID(),defaultCountries:fa.defaultCountries,defaultSpec:fa.defaultSpec,showFeedbackThrottle:false,onTargetingChange:this._onUpdateAudienceManagerTargeting,includePresetAudiences:ia,defaultPresetAudience:ga.getAudience(),preferredAudienceTargetSpec:fa.preferredAudienceTargetSpec,includeCustomAudiences:ea.getExperimentStore().getExperiment('custom_audiences'),useSavedAudiences:ea.getExperimentStore().getExperiment('saved_audiences')})));},getLocationTargetingSection:function(){var ea=this.props.config,fa=ea.getUnitOptions()[q.AUDIENCE_MANAGER],ga=ea.getBoostedPostSpecs();if(ea.getPrivacyGatingStore().isPrivacyGated()||this.state.audienceSelected===r.AUDIENCE.Lookalike||this.state.audienceSelected===r.AUDIENCE.Engaged||ea.getExperimentStore().getExperiment('audience_dropdown')&&fa.enabled)return null;var ha={targetingLevel:ga.getTargetingLevel(),radius:ga.getRadius()};return (s.createElement(w,{onDataUpdate:this._updateBoostedPostSpec,audienceSelected:this.state.audienceSelected,initialData:ha,locationSelectorOptions:this._locationSelectorOptions}));},getLookalikeAudienceSection:function(){var ea=this.props.config,fa=this._locationSelectorOptions;if(ea.getPrivacyGatingStore().isPrivacyGated()||ea.getExperimentStore().getExperiment('audience_dropdown')||!fa.defaultLookalikeCountry)return null;var ga=this.state.audienceSelected!==r.AUDIENCE.Lookalike?"hidden_elem":'',ha=fa.lookalikeCountries,ia=s.createElement(x,{defaultCountry:fa.defaultLookalikeCountry,countries:fa.lookalikeCountries,onDataUpdate:this._updateBoostedPostSpec});if(ha&&Object.keys(ha).length===1)for(var ja in ha){ia=s.createElement(v,{shade:'medium'},ha[ja]);break;}return (s.createElement(k,{className:ga,label:m.COUNTRY},ia));},_onUpdateAudienceManagerTargeting:function(){this._targetingViewActions.logUpdateTargetingEvent(h.UPDATE_TARGETING);},_updateBoostedPostSpec:function(ea,fa){var ga={},ha=this.props.config.getBoostedPostSpecs();switch(ea){case h.UPDATE_AUDIENCE:var ia=parseInt(fa,10);this.setState({audienceSelected:ia});ha.setAudience(ia);return;case h.UPDATE_CITIES:var ja=this._getLocationSpecs('cities',fa);ga={cities:ja};ha.setLocation(ja);break;case h.UPDATE_COUNTRIES:var ka=this._getLocationSpecs('countries',fa);ga={countries:ka};ha.setLocation(ka);break;case h.UPDATE_REGIONS:var la=this._getLocationSpecs('regions',fa);ga={regions:la};ha.setLocation(la);break;case h.UPDATE_RADIUS:ga={radius:fa};ha.setRadius(fa);break;case h.UPDATE_LOOKALIKE_COUNTRY:ha.setLookalikeCountry(fa);break;default:return;}this._targetingViewActions.logUpdateTargetingEvent(ea);},_getLocationSpecs:function(ea,fa){var ga={},ha=[],ia=fa.length;if(ia===0)return null;for(var ja=0;ja<ia;ja++)if(ea==='countries'){ha.push(fa[ja].getUniqueID());}else if(ea==='cities'){var ka={key:fa[ja].getUniqueID(),name:fa[ja].getTitle(),radius:this.props.config.getBoostedPostSpecs().getRadius()};ha.push(ka);}else ha.push({key:fa[ja].getUniqueID(),name:fa[ja].getTitle()});ga[ea]=ha;return ga;}});f.exports=da;},null);
__d('AdsBudgetDropdownSelector.react',['AdsCurrencyInput.react','AdsCurrencyFormatter','AdsRichSelector.react','AdsTargetingTogglerSafeMixin','DOM','React','ReactDOM','XUIGrayText.react','XUIText.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){if(c.__markCompiled)c.__markCompiled();var s=j.Option,t=m.PropTypes,u='-1';function v(x){return parseInt(x,10);}var w=m.createClass({displayName:'AdsBudgetDropdownSelector',mixins:[k],propTypes:{budgets:t.object.isRequired,currency:t.string.isRequired,hideEstimation:t.bool,selectedBudget:t.number.isRequired,showCustomBudgetOption:t.bool.isRequired,onBudgetSelected:t.func.isRequired,onBudgetEntered:t.func.isRequired,onDropdown:t.func,showLoadingIndicator:t.bool,updateAllBudgets:t.bool,shouldAddCurrencyCode:t.bool},getInitialState:function(){return {selectedBudget:this.props.selectedBudget,customBudget:this.props.selectedBudget};},componentWillReceiveProps:function(x){this.setState({selectedBudget:x.selectedBudget});},_onTextInputChange:function(x){var y=Math.floor(x);if(y===this.state.selectedBudget)return null;this.props.onBudgetEntered(y);this.setStateSafe({customBudget:x,selectedBudget:x});},_onBudgetChange:function(x){this.setStateSafe(x);this.props.onBudgetSelected(x.selectedBudget);},_onSelectorChange:function(x){if(x.value===u){var y=l.scry(n.findDOMNode(this.refs.budgetTextInput),'input')[0];y.focus();y.select();return;}this._onBudgetChange({selectedBudget:v(x.value)});},_getEstimatedReach:function(x){if(!this.props.budgets[x])return null;var y=this.props.budgets[x].estimation_label;if(!y||this.props.hideEstimation)return null;return (m.createElement(o,{className:"_nmo pll",weight:'normal'},y));},_getSortedBudgets:function(x){if(!x)x=this.props.budgets;return Object.keys(x).map(v).sort(function(y,z){return y-z;});},_renderDropdown:function(){var x=this._getSortedBudgets(),y=x.map(function(aa){var ba=i.formatCurrencyFullFormat(this.props.currency,aa,this.props.shouldAddCurrencyCode,true);return (m.createElement(s,{key:aa,label:ba,value:aa.toString(),selected:aa===this.state.selectedBudget},m.createElement('div',{className:"_nmp mvs"},m.createElement(p,{className:"_nmq prl",size:'xlarge'},ba),this._getEstimatedReach(aa))));},this);if(this.props.showCustomBudgetOption){var z=r._("Choose Your Own");y.push(m.createElement(s,{key:u,label:z,value:u},m.createElement('div',{className:"_nmp mvs"},m.createElement(p,{className:'prl',size:'xlarge'},z))));}return (m.createElement(j,{className:"_5wwb",alignment:'right',noLabel:true,requireSelection:false,size:'xlarge',defaultValue:this.state.selectedBudget.toString(),onChange:this._onSelectorChange,onDropdown:this.props.onDropdown},y));},_renderTextInput:function(){return (m.createElement(h,{ref:'budgetTextInput',className:"_8xx",height:'xtall',value:this.state.selectedBudget,currency:this.props.currency,withISO:this.props.shouldAddCurrencyCode,withNumberDelimiters:true,nonnegative:true,onDataUpdate:this._onTextInputChange,eventType:'change'}));},_onKeyDown:function(event){if(event.key==='Enter')event.preventDefault();},render:function(){return (m.createElement('div',{className:"_51xa",onKeyDown:this._onKeyDown},this._renderTextInput(),this._renderDropdown()));}});f.exports=w;},null);
__d('BoostedComponentBudgetAndDurationSection.react',['AdsBudgetDropdownSelector.react','AdsReachEstimateBar.react','AdsSwapChargeCurrency','BoostedComponentAppID','BoostedComponentBudgetEstimationViewActions','BoostedComponentBudgetType','BoostedComponentConfig','BoostedComponentContent.react','BoostedComponentDurationSelector.react','BoostedComponentDurationViewActions','BoostedComponentLabeledEditor.react','BoostedComponentLabeledRow.react','BoostedComponentSection.react','BoostedComponentSectionMixin','BoostedComponentSectionSubheader.react','BoostedComponentSectionUtils','BoostedComponentStoreType','BoostedComponentStrings','LoadingIndicator.react','React','XUIGrayText.react','XUINotice.react','XUIText.react','cx','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa){'use strict';if(c.__markCompiled)c.__markCompiled();var ga=aa.PropTypes,ha=aa.createClass({displayName:'BoostedComponentBudgetAndDurationSection',mixins:[u],propTypes:{config:ga.instanceOf(n).isRequired},statics:{getStores:w.makeGetStoresFromConfig(x.AD_ACCOUNT_STORE,x.AYMT_TIPS_STORE,x.BUDGET_EST_STORE,x.DURATION_STORE,x.DIALOG_CHANGE_STORE),calculateState:function(ia){var ja=ia[x.BUDGET_EST_STORE],ka=ia[x.DIALOG_CHANGE_STORE];if(ka.getShowLoadingIndicator())return {showLoadingIndicator:true};var la={selectedBudget:ja.getSelectedBudgetValue(),runContinuously:ia[x.DURATION_STORE].getRunContinuously(),showLoadingIndicator:false,budgets:ja.getBudgetEstOptions(),currency:ia[x.AD_ACCOUNT_STORE].getSelectedAccountCurrency(),errors:ja.getValidator().getErrors()};if(ja.hasSelectedBudgetInfo()){la.estimationLabel=ja.getEstimationLabel();la.estimationsLower=ja.getSelectedBudgetLowerEstimates();la.estimationsUpper=ja.getSelectedBudgetUpperEstimates();}return la;}},componentWillMount:function(){var ia=this.props.config;this._budgetEstViewActions=new l(ia.getDispatcher());this._durationViewActions=new q(ia.getDispatcher());},_getBudgetLabel:function(){return (this.props.config.getBudgetEstStore().getBudgetType()===m.LIFETIME_BUDGET?y.TOTAL_BUDGET_LABEL:y.DAILY_BUDGET_LABEL);},_getBudgetToolTip:function(){return (this.props.config.getBudgetEstStore().getBudgetType()===m.LIFETIME_BUDGET?null:y.DAILY_BUDGET_TOOLTIP);},_getBudgetSelector:function(){var ia=(!this.state.showLoadingIndicator?"hidden_elem":'')+(' '+"_3-9d");return (aa.createElement('div',null,aa.createElement(h,{alignh:'right',budgets:this.state.budgets,currency:this.state.currency,selectedBudget:this.state.selectedBudget,onBudgetSelected:(function(ja){this._budgetEstViewActions.updateBudget(ja);}).bind(this),onBudgetEntered:(function(ja){this._budgetEstViewActions.inputCustomBudget(ja);}).bind(this),showCustomBudgetOption:true,shouldAddCurrencyCode:false}),aa.createElement(z,{className:ia,color:'white',size:'small'})));},_getDurationSelector:function(){var ia=this.props.config,ja=ia.getDurationStore();return (aa.createElement(p,{hideRunContinuously:ja.getHideRunContinuously(),runContinuously:ja.getRunContinuously(),selectedCampaignLengthInDays:ja.getCampaignLengthInDays(),campaignLengthOptions:ja.getCampaignLengthOptions(),onDurationTypeUpdate:(function(ka){this._durationViewActions.updateRunContinuously(ka);}).bind(this),onEndDateSelectorUpdate:(function(ka){this._durationViewActions.updateCampaignLengthInDays(ka);}).bind(this)}));},_getBudgetNotice:function(){var ia=j.renderWarnbox(this.state.currency);if(ia)return (aa.createElement('div',{className:"_3-8y"},ia));var ja=this.props.config.getBudgetEstStore().getHighBudgetThreshold();if(ja>0&&this.state.selectedBudget>ja)return (aa.createElement('div',{className:"_3-8y"},aa.createElement(ca,{use:'notify'},fa._("Your maximum budget is much higher than usual."))));return null;},_getEstimates:function(){var ia=this.props.config.getBudgetEstStore(),ja=this.props.config.getContextStore().getAppID();if(ja===k.BOOSTED_POST||ja===k.BOOSTED_EVENT||ja===k.BOOSTED_PRODUCT||ja===k.BOOSTED_LOCAL_AWARENESS){var ka=ja===k.BOOSTED_POST||ja===k.BOOSTED_EVENT?y.ESTIMATED_PEOPLE_REACH:y.ESTIMATED_DAILY_REACH;return (aa.createElement(s,{horizontalMargin:false,shade:'light',className:'mtm',label:ka},aa.createElement(i,{reachBounds:{min:this.state.estimationsLower,max:this.state.estimationsUpper},estimateDAU:ia.getAudienceSize()})));}return (aa.createElement(da,{className:'mts',display:'block'},this.state.estimationLabel));},_getDurationNotice:function(){var ia=this.props.config;if(ia.getBudgetEstStore().getBudgetType()===m.DAILY_BUDGET||ia.getDurationStore().getCampaignLengthInDays()<=1)return null;return (aa.createElement('div',{className:'mts'},aa.createElement(ba,null,fa._("You will spend {budget_per_day_amount} per day.",[fa.param('budget_per_day_amount',ia.getBudgetEstStore().getDailyBudget())]))));},render:function(){return (aa.createElement(t,{title:y.BUDGET_DURATION_SECTION},aa.createElement('div',null,aa.createElement(v,{errors:this.state.errors,bestTip:this.props.config.getAYMTTipsStore().getBestBudgetAndDurationTip()}),aa.createElement(o,null,aa.createElement('div',null,aa.createElement(r,{label:this._getBudgetLabel(),tooltip:this._getBudgetToolTip()},this._getBudgetSelector(),this._getBudgetNotice(),this._getEstimates())),aa.createElement('div',null,aa.createElement(r,{label:y.DURATION_LABEL,tooltip:y.DURATION_TOOLTIP},this._getDurationSelector()),this._getDurationNotice())))));}});f.exports=ha;},null);
__d('BoostedComponentConfirmationSection.react',['AdsCountries','AdsCreationConfig','AdsTargetingConstants','AdsUtils','BoostedActionStatus','BoostedComponentConfig','BoostedComponentGeoLocationType','BoostedComponentSection.react','BoostedComponentStrings','Grid.react','Image.react','Link.react','React','cx','fbt','intlList'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w){'use strict';if(c.__markCompiled)c.__markCompiled();var x=q.GridItem,y=t.PropTypes,z=t.createClass({displayName:'BoostedComponentConfirmationSection',propTypes:{config:y.instanceOf(m).isRequired,onEditClick:y.func},_getAdStatusMessage:function(){if(this.props.config.getInsightsStore().getReach()>0)return null;var aa=null,ba=null,ca=null;switch(this.props.config.getAdStatusStore().getAdStatus()){case l.PENDING:aa=p.AD_IN_REVIEW_TITLE;ba=v._("We're currently reviewing your promotion to make sure it meets our {Ad Guidelines hyperlink}. This usually takes about 15 minutes.",[v.param('Ad Guidelines hyperlink',t.createElement(s,{href:'/ad_guidelines.php',target:'_blank'},v._("Ad Guidelines")))]);ca=t.createElement(r,{src:'/images/ads/common/confirmation/submitted.png'});break;case l.ACTIVE:case l.PAUSED:aa=p.AD_APPROVED_TITLE;ba=p.AD_APPROVED_CONTENT;ca=t.createElement(r,{src:'/images/ads/common/confirmation/approved.png'});break;default:return null;}return (t.createElement('div',{className:"_4vxt"},t.createElement(q,{cols:2,className:"_4vxq"},t.createElement(x,null,ca),t.createElement(x,null,t.createElement('div',{className:"_4vxu"},aa),ba))));},_getDurationInfo:function(){var aa=this.props.config.getDurationStore().getCampaignLengthInDays(),ba=aa===1?v._("1 day"):v._("{number of days} days",[v.param('number of days',aa)]);return (t.createElement(q,{cols:2,className:"_4vxq"},t.createElement(x,null,t.createElement(r,{src:'/images/ads/common/confirmation/duration.png'})),t.createElement(x,null,v._("This promotion will run for {text of campaign length in days}.",[v.param('text of campaign length in days',t.createElement('span',{className:"_4vxs"},ba))]))));},_getBudgetInfo:function(){return (t.createElement(q,{cols:2,className:"_4vxq"},t.createElement(x,null,t.createElement(r,{src:'/images/ads/common/confirmation/budget.png'})),t.createElement(x,null,v._("Your total budget for this promotion is {text of total budget}.",[v.param('text of total budget',t.createElement('span',{className:"_4vxs"},this.props.config.getBudgetEstStore().getTotalBudget()))]))));},_getGenderText:function(aa){switch(aa){case j.GENDERS.Men:return v._("men");case j.GENDERS.Women:return v._("women");default:return v._("men and women");}},_getAgeText:function(aa,ba){if(ba===i.maxAge)ba=p.getAgeRangeOlderThan(ba);return p.getAgeRangeFromTo(aa,ba);},_getLocationsText:function(aa){if(this.props.config.getTargetingStore().getGeoLocationType()===n.LOCAL_GEO_LOCATION)return p.CUSTOM_LOCATION;var ba=[];for(var ca=0;ca<aa.length;++ca)if(!k.isObject(aa[ca])){ba[ca]=h.countries[aa[ca]];}else ba[ca]=aa[ca].name;return w(ba,w.CONJUNCTIONS.OR);},_getTargetingInfo:function(){var aa=this.props.config.getTargetingStore();return (t.createElement(q,{cols:2,className:"_4vxq"},t.createElement(x,null,t.createElement(r,{src:'/images/ads/common/confirmation/audience.png'})),t.createElement(x,null,v._("You are targeting {text of targeting gender} ages {text of targeting age range} who live in {text of targeting locations}.",[v.param('text of targeting gender',t.createElement('span',{className:"_4vxs"},this._getGenderText(aa.getGender()))),v.param('text of targeting age range',t.createElement('span',{className:"_4vxs"},this._getAgeText(aa.getMinAge(),aa.getMaxAge()))),v.param('text of targeting locations',t.createElement('span',{className:"_4vxs"},this._getLocationsText(aa.getLocations())))]))));},_getPaymentInfo:function(){var aa=this.props.config.getAdAccountStore(),ba=aa.getAllAccounts();return (t.createElement(q,{cols:2,className:"_4vxq"},t.createElement(x,null,t.createElement(r,{src:'/images/ads/common/confirmation/payment.png'})),t.createElement(x,null,v._("{text of account name}'s {text of primary payment method} will be billed.",[v.param('text of account name',t.createElement('span',{className:"_4vxs"},ba[aa.getSelectedAccountID()].name)),v.param('text of primary payment method',t.createElement('span',{className:"_4vxs"},aa.getSelectedAccountPrimaryPMDisplayString()))]))));},_getBillingInfo:function(){return (t.createElement(q,{cols:2,className:"_4vxq"},t.createElement(x,null,t.createElement(r,{src:'/images/ads/common/confirmation/date.png'})),t.createElement(x,null,v._("You will be billed at a later date. {billing information link}.",[v.param('billing information link',t.createElement(s,{href:'/help/716180208457684/'},v._("Learn More")))]))));},_getEditMessage:function(){if(!this.props.onEditClick)return null;return (t.createElement('div',{className:"_4vxt"},v._("Want to make change? {edit promotion link}",[v.param('edit promotion link',t.createElement(s,{onClick:this.props.onEditClick},v._("Edit Promotion")))])));},render:function(){if(!this.props.config.getAdStatusStore().getShouldEdit())return null;return (t.createElement(o,{isFirstSection:false},this._getAdStatusMessage(),t.createElement('div',{className:"_4vxt"},t.createElement('div',{className:"_4vxu"},p.OVERVIEW),this._getDurationInfo(),this._getBudgetInfo(),this._getTargetingInfo(),this._getPaymentInfo(),this._getBillingInfo()),this._getEditMessage()));}});f.exports=z;},null);
__d('BoostedComponentConversionPixelSection.react',['AdsAccountStoreWrapper','AdsConversionPixelSelector.react','AdsConversionPixelUtils','AdsPixelHelpCenterLinkUtil','AdsPixelSelectorContainer.react','AdsPixelSelectorLoggerContext','AdsPixelSelectorStoreWrapper','AdsPixelStore','AdsPixelStoreWrapper','AdsPixelTrackingContextUtils','AdsPixelUIEnvironments','BoostedComponentAppID','BoostedComponentConfig','BoostedComponentContent.react','BoostedComponentConversionPixelViewActions','BoostedComponentLabeledEditor.react','BoostedComponentSection.react','BoostedComponentSectionMixin','BoostedComponentSectionUtils','BoostedComponentStoreType','BoostedComponentStrings','React','XUIText.react','adsGKCheck','cx','dotAccess','emptyFunction'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha){'use strict';if(c.__markCompiled)c.__markCompiled();var ia=ca.PropTypes,ja=ca.createClass({displayName:'BoostedComponentConversionPixelSection',mixins:[y],statics:{getStores:function(ka){return babelHelpers._extends({},z.getStoresFromConfig(ka.config,[aa.AD_ACCOUNT_STORE,aa.AD_STATUS_STORE,aa.CONTEXT_STORE,aa.CONVERSION_PIXEL_STORE]),{AdsPixelStore:o});},calculateState:function(ka,la){var ma=ka[aa.AD_ACCOUNT_STORE];h.setAccountID(ma.getSelectedAccountID());h.setEnvironment(r.LWI,Object.create(ma));var na=ka[aa.CONTEXT_STORE];return {appID:na.getAppID(),conversionPixels:ka[aa.CONVERSION_PIXEL_STORE].getSelectedAccountConversionPixels(),selectedConversionPixelID:ka[aa.CONVERSION_PIXEL_STORE].getSelectedConversionPixelID(),shouldEdit:ka[aa.AD_STATUS_STORE].getShouldEdit(),websiteDomains:ka[aa.CONVERSION_PIXEL_STORE].getWebsiteDomains(),unifiedPixels:o.getPixels()};}},propTypes:{config:ia.instanceOf(t).isRequired},componentWillMount:function(){var ka=this.props.config;this._conversionPixelViewActions=new v(ka.getDispatcher());},childContextTypes:q.getContextTypes(),getChildContext:function(){return {conversionPixelSelector:ha,getHelpLink:k.getHelpLink,legacyPixelSelectType:'multi',isCampaignManager:function(){return false;},updateTrackingSpec:ha};},render:function(){var ka=this.props.config.getStores()[aa.CONTEXT_STORE];if(ka.getAppID()!==s.BOOSTED_POST&&ka.getAppID()!==s.BOOSTED_WEBSITE)return null;if(this._getCanSeeUnifiedPixelSelector()){if(this._getDoesHaveWebsiteDomains())return this._renderUnifiedPixelSelector();return null;}return this._renderConversionPixelSelector();},_renderUnifiedPixelSelector:function(){if(!this._getShouldDisplaySelector())return null;return (ca.createElement(x,{title:ba.CONVERSION_TRACKING_SECTION,isFirstSection:false},ca.createElement(u,null,this._getUnifiedPixelSelector())));},_renderConversionPixelSelector:function(){if(!this.state.conversionPixels||this.state.conversionPixels.length===0)return null;if(this.state.shouldEdit&&!this.state.selectedConversionPixelID)return null;return (ca.createElement(x,{title:ba.CONVERSION_PIXEL_SECTION,isFirstSection:false},ca.createElement(u,null,this._getConversionPixelSelector())));},_getDoesHaveWebsiteDomains:function(){return this.state.websiteDomains&&this.state.websiteDomains.length>0;},_getCanSeeUnifiedPixelSelector:function(){return (ea('unified_pixel_selector_lwi')&&h.canSeeUnifiedPixel());},_getConversionPixelSelector:function(){if(this.state.shouldEdit){var ka=j.getPixelDetails(this.state.selectedConversionPixelID,this.state.conversionPixels);return (ca.createElement(w,{shade:'dark',label:ba.CONVERSION_PIXEL_EDIT_MODE_LABEL},ca.createElement(da,null,ka.name)));}return (ca.createElement(w,{className:"_4s5m",shade:'dark',label:ba.CONVERSION_PIXEL_LABEL,tooltip:ba.CONVERSION_PIXEL_TOOLTIP},ca.createElement(i,{defaultLabel:ba.CONVERSION_PIXEL_SELECTOR_DEFAULT_LABEL,maxheight:300,onChange:this._conversionPixelViewActions.updatePixel.bind(this._conversionPixelViewActions),pixels:this.state.conversionPixels,size:'large',value:this.state.selectedConversionPixelID})));},_getUnifiedPixelSelector:function(){if(this.state.shouldEdit){var ka=this._getSelectedPixelName();return (ca.createElement(w,{shade:'dark',label:ba.TRACKING_PIXEL_EDIT_MODE_LABEL},ca.createElement(da,null,ka)));}var la=this.props.config.getStores(),ma=la[aa.CONVERSION_PIXEL_STORE];return (ca.createElement(w,{className:"_4s5m",shade:'dark',label:ba.CONVERSION_PIXEL_LABEL,tooltip:ba.CONVERSION_PIXEL_TOOLTIP},ca.createElement(l,{logContext:new m(r.LWI,this.state.appID),defaultPixelDomains:ma.getWebsiteDomains(),onChange:(function(na){return (this._conversionPixelViewActions.updatePixel(na));}).bind(this)})));},_getSelectedPixelName:function(){var ka=p.getPixelName(this.state.selectedConversionPixelID);if(ka!==undefined)return ka;var la=j.getPixelDetails(this.state.selectedConversionPixelID,this.state.conversionPixels);if(la!==undefined)return ga(la,'name');},_getShouldDisplaySelector:function(){if(this.state.shouldEdit&&!this.state.selectedConversionPixelID)return false;return n.getShouldDisplaySelector(this.state.unifiedPixels,this.state.conversionPixels);}});f.exports=ja;},null);
__d('AdsHscrollAdPreviewsBar.react',['AdsPreviewApiFormats','BoostedComponentTestElement','immutable','React','TabBar.react','TabBarItem.react','cx','fbt','invariant','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){if(c.__markCompiled)c.__markCompiled();var r=k.PropTypes,s=o._("Desktop News Feed"),t=o._("Mobile News Feed"),u=o._("Right Column"),v=new j.Map([[h.DESKTOP_FEED_STANDARD,k.createElement(m,{'data-testid':i.DESKTOP_PREVIEW_TAB,className:"_1riu",key:h.DESKTOP_FEED_STANDARD},s)],[h.MOBILE_FEED_STANDARD,k.createElement(m,{'data-testid':i.MOBILE_PREVIEW_TAB,className:"_1riu",key:h.MOBILE_FEED_STANDARD},t)],[h.RIGHT_COLUMN_STANDARD,k.createElement(m,{'data-testid':i.RHS_PREVIEW_TAB,className:"_1riu",key:h.RIGHT_COLUMN_STANDARD},u)]]),w=k.createClass({displayName:'AdsHscrollAdPreviewsBar',propTypes:{apiAdFormatList:r.instanceOf(j.List).isRequired,selected:r.string.isRequired,onSelect:r.func},render:function(){var x=this.props.apiAdFormatList,y=x.count();!(y>=1&&y<=3)?p(0):undefined;return (k.createElement('div',babelHelpers._extends({},this.props,{className:q(this.props.className,"_1riv"+(y===1?' '+"_2x8y":'')+(y===2?' '+"_1rix":'')+(y===3?' '+"_1riy":''))}),k.createElement(l,{onTabClick:this.props.onSelect,activeTabKey:this.props.selected},this._getBarItems()),k.createElement('div',{className:"_1riz"+(this.props.selected===x.get(0)?' '+"_1ri-":'')+(this.props.selected===x.get(1)?' '+"_1ri_":'')+(this.props.selected===x.get(2)?' '+"_1rj0":'')})));},_getBarItems:function(){return this.props.apiAdFormatList.map(function(x){return (v.get(x));});}});f.exports=w;},null);
__d('AdPreview.react',['DOM','React','ReactDOM','UIPagelet','AdsPreviewApiFormats','WebApiApplication','XUINotice.react','XUISpinner.react','cx','Arbiter','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){if(c.__markCompiled)c.__markCompiled();var s=i.PropTypes,t=i.createClass({displayName:'AdPreview',propTypes:{adAccountID:s.string.isRequired,adgroupID:s.string,apiFormat:s.string.isRequired,creativeID:s.string,creative:s.object,linkShareData:s.object,onValidate:s.func,appID:s.string,borderStyle:s.string,bundle:s.bool,objective:s.string,productItemIDs:s.array,editable:s.bool},getDefaultProps:function(){return {appID:m.getClientID(),editable:false};},getInitialState:function(){return {isError:false,isLoading:false,errorMessage:null};},componentDidMount:function(){this._loadPreview(this.props);},componentWillUnmount:function(){this._currentRequestKey=null;this._pagelet&&this._pagelet.cancel();this._pagelet=null;this._cleanUpOldPagelet();h.empty(this._getPageletDOMNode());},componentWillReceiveProps:function(u){this._loadPreview(u);},render:function(){var u=!this.state.isError,v=this.state.isError&&!this.state.isLoading,w=this.state.errorMessage?this.state.errorMessage:r._("Unable to display a preview for this ad.");return (i.createElement('div',{className:"_2hm6"+(this.state.isLoading?' '+"_2hm7":'')},i.createElement('div',{className:this.props.className},i.createElement('div',{className:"_3akw"},i.createElement(o,{size:'large',className:this.state.isLoading?"":"hidden_elem"})),i.createElement('div',{className:v?"":"hidden_elem"},i.createElement(n,{use:'warn'},w)),i.createElement('div',{ref:'pageletContainer',className:u?"":"hidden_elem"}))));},_loadPreview:function(u){var v=u.adAccountID,w=u.adgroupID,x=u.creativeID,y=u.creative,z=u.linkShareData,aa=u.apiFormat,ba=u.appID,ca=u.borderStyle,da=u.objective,ea=u.productItemIDs,fa=this._getRequestKey(v,w,x,y,aa==l.RIGHT_COLUMN_STANDARD?undefined:z,aa,ba,ca,da,ea);if(fa===this._currentRequestKey)return;this._pagelet&&this._pagelet.cancel();this._pagelet=null;this._currentRequestKey=fa;if(aa!==this.props.apiFormat){this._cleanUpOldPagelet();h.empty(this._getPageletDOMNode());}if(!w&&!y){this.setState({isError:true,isLoading:false});return;}if(this.props.onValidate){var ga=this.props.onValidate(y,aa);if(ga.length){var ha=null,ia=ga.filter(function(ka){return ka.field===t.PREVIEW_MESSAGE_FIELD_NAME;});if(ia.length)ha=ia[0].message;this.setState({isError:true,isLoading:false,errorMessage:ha});return;}}this.setState({isError:false,isLoading:true,errorMessage:null});this._cleanUpOldPagelet();if(!ba)ba=m.getClientID();var ja=!!w;this._pagelet=k.loadFromEndpoint('AdPreviewPageletController',this._getPageletDOMNode(),{adaccountid:v,adid:ja?w:null,appid:ba,creativeid:x,creative:ja?null:y,linksharedata:aa==l.RIGHT_COLUMN_STANDARD?undefined:z,videodata:{ad_objective:da},format:aa,borderstyle:ca,productitemids:ea,editable:this.props.editable},{append:false,displayCallback:this._onPageletSuccess,errorHandler:this._onPageletFail,transportErrorHandler:this._onPageletFail,bundle:this.props.bundle!==undefined?this.props.bundle:true});},_cleanUpOldPagelet:function(){var u=j.findDOMNode(this.refs.pageletContainer);if(!u.querySelector)return;var v=u.querySelectorAll('.UFILikeLink, .UFIList, .UFIBlingBox');for(var w=0,x=v.length;w<x;w++)j.unmountComponentAtNode(v[w].parentNode);},_getPageletDOMNode:function(){return j.findDOMNode(this.refs.pageletContainer);},_getRequestKey:function(u,v,w,x,y,z,aa,ba,ca,da){return [u,z,v,w,JSON.stringify(x),JSON.stringify(y),aa,ba,ca,JSON.stringify(da)].join(':');},_onPageletSuccess:function(u){this._pagelet=null;this.setState({isError:false,isLoading:false});u();q.inform("AdPreview/PageletLoadSuccess",{component:this});},_onPageletFail:function(u){this._pagelet=null;this.setState({isError:true,isLoading:false});}});t.PREVIEW_MESSAGE_FIELD_NAME='PREVIEW_MESSAGE_FIELD_NAME';f.exports=t;},null);
__d('AdsHscrollAdPreviewsUnit.react',['cx','AdsHscrollAdPreviewsBar.react','AdPreview.react','AdsPreviewApiFormats','Arbiter','BoostedComponentTestElement','immutable','React','ReactDOM','SubscriptionsHandler','XUICard.react','XUICardSection.react'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){if(c.__markCompiled)c.__markCompiled();var t=o.PropTypes,u=new n.List([k.DESKTOP_FEED_STANDARD,k.MOBILE_FEED_STANDARD]),v=u.push(k.RIGHT_COLUMN_STANDARD),w=v,x=o.createClass({displayName:'AdsHscrollAdPreviewsUnit',propTypes:{apiAdFormats:t.instanceOf(n.Set),pageID:t.string.isRequired,adAccountID:t.string.isRequired,creative:t.object.isRequired,defaultSelectedAdFormat:t.string,linkShareData:t.object,appID:t.string,height:t.number,hasRHC:t.bool,editable:t.bool,objective:t.string},getInitialState:function(){return {selected:this._getDefaultSelected(this.props)};},getDefaultProps:function(){return {hasRHC:true,height:464,editable:false};},componentWillReceiveProps:function(y){if(y.apiAdFormats!=null&&!y.apiAdFormats.has(this.state.selected))this.setState({selected:this._getDefaultSelected(y)});},_getApiAdFormats:function(){if(this.props.apiAdFormats!=null){var y=[];w.forEach((function(z){if(this.props.apiAdFormats.has(z))y.push(z);}).bind(this));return new n.List(y);}return this.props.hasRHC?v:u;},_getDefaultSelected:function(y){return (y.defaultSelectedAdFormat!=null?y.defaultSelectedAdFormat:y.apiAdFormats!=null?y.apiAdFormats.first():k.DESKTOP_FEED_STANDARD);},_onClick:function(y){this.setState({selected:y});},render:function(){var y=this._getApiAdFormats();return (o.createElement(r,{'data-testid':m.PREVIEW_UNIT,className:"_i40"},o.createElement(s,null,o.createElement(i,{apiAdFormatList:y,selected:this.state.selected,onSelect:this._onClick})),o.createElement(s,{className:"_i41"},o.createElement('div',{className:"_i42"+(this.state.selected===y.get(0)?' '+"_1ri-":'')+(this.state.selected===y.get(1)?' '+"_1ri_":'')+(this.state.selected===y.get(2)?' '+"_1rj0":'')},this.renderPreviewUnits(y)))));},renderPreviewUnits:function(y){return y.map((function(z){return (this.renderPreviewUnit(z));}).bind(this));},renderPreviewUnit:function(y){return (o.createElement('div',{className:"_i46",key:y},o.createElement('div',{className:"_i47"},o.createElement(j,{adAccountID:this.props.adAccountID,apiFormat:y,creative:this.props.creative,appID:this.props.appID,linkShareData:this.props.linkShareData,editable:this.props.editable,objective:this.props.objective}))));}});f.exports=x;},null);
__d('BoostedPostConstants',['Link.react','React','fbt'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k={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:j._("People who like your Page"),TARGET_GROUP_FRIENDS:'fans_and_friends',TARGET_GROUP_FRIENDS_TEXT:j._("People who like your Page and their friends"),GENDER_MALE:'male',GENDER_MALE_TEXT:j._("Male"),GENDER_FEMALE:'female',GENDER_FEMALE_TEXT:j._("Female"),GENDER_BOTH:'male_and_female',GENDER_BOTH_TEXT:j._("Male and Female"),PAYMENT_LABELS:[j._("Current Budget"),j._("Payment"),j._("Account")],ADS_GUIDELINE:i.createElement(h,{href:'/help/380502768670092/',target:'_blank'},j._("Ad Guidelines")),ADS_STATUS_LABEL:{PLACED:j._("Order placed"),REVIEW:j._("In Review"),APPROVED:j._("Approved")},BUDGET_KEY:'budgets',PIXEL_LABELS:[j._("Pixel Name"),j._("Category"),j._("Status")]};f.exports=k;},null);
__d('BoostedComponentAdPreviewSection.react',['AdsAPIObjectives','AdsUtils','AdsHscrollAdPreviewsUnit.react','ApiAdCreativeFields','ApiAdCreativeStorySpecFields','ApiCallToActionFields','AdsPageTypes','AdsPageTypesMigration','AdsPreviewApiFormats','ApiObjectStorySpecLinkFields','ApiObjectStorySpecVideoFields','BoostedComponentAppID','BoostedComponentConfig','BoostedComponentCreativeCategory','BoostedComponentStrings','CallToActionValueFields','Image.react','immutable','React','XUINotice.react','BoostedPostConstants','BoostedPostPlacementOptions','cx','fbt','getByPath','invariant','ix','ads-lib-urllib'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia){'use strict';if(c.__markCompiled)c.__markCompiled();var ja=z.PropTypes,ka=new y.Set([p.DESKTOP_FEED_STANDARD,p.MOBILE_FEED_STANDARD]),la=ka.add(p.RIGHT_COLUMN_STANDARD),ma=new y.Map([[n.DESKTOP_FEED,p.DESKTOP_FEED_STANDARD],[n.MOBILE_FEED,p.MOBILE_FEED_STANDARD],[n.RIGHT_COLUMN,p.RIGHT_COLUMN_STANDARD],[n.MOBILE_EXTERNAL,p.MOBILE_FEED_STANDARD]]);function na(pa){var qa=o.toModern(pa);return new y.Set(qa.map(function(ra){!ma.has(ra)?ga(0):undefined;return ma.get(ra);}));}var oa=z.createClass({displayName:'BoostedComponentAdPreviewSection',propTypes:{config:ja.instanceOf(t).isRequired},componentWillMount:function(){this._creativeStoreArbiterToken=this.props.config.getCreativeStore().subscribe('change',(function(){return this.forceUpdate();}).bind(this));},componentWillUnmount:function(){this.props.config.getCreativeStore().unsubscribe(this._creativeStoreArbiterToken);},render:function(){return (z.createElement('div',null,this._getNotice(),this._getPreview()));},_getNotice:function(){var pa=this.props.config.getContextStore();if(pa.getAppID()!==s.BOOSTED_POST&&pa.getAppID()!==s.BOOSTED_EVENT&&pa.getAppID()!==s.BOOSTED_PRODUCT)return null;if(pa.getPostType()===ba.FBTYPE_PHOTO_ALBUM){return (z.createElement(aa,{className:'mbs'},ea._("You're currently boosting an album. If you want to boost a single photo, upload it separately to this album.")));}else if(pa.getPlacement()===ca.COMPOSER)return (z.createElement(aa,{className:'mbs'},ea._("You'll see a preview of your ad here after you post.")));return null;},_getPreview:function(){var pa=this.props.config,qa=pa.getContextStore(),ra=pa.getCreativeStore();if((qa.getAppID()===s.BOOSTED_POST||qa.getAppID()===s.BOOSTED_EVENT)&&qa.getPlacement()===ca.COMPOSER)return null;if(ra.getCreativeCategory()===u.VIDEO&&!ra.hasVideoCreative())return (z.createElement('div',{className:"_133l"},z.createElement(x,{src:ha('/images/no-video.png'),className:"_133m"}),z.createElement('p',{className:"_133n"},v.NO_VIDEO_IN_AD_PREVIEW_ERROR)));var sa=this._getApiAdFormats(qa.getAppID()),ta=p.DESKTOP_FEED_STANDARD,ua=undefined;if(!sa.has(p.DESKTOP_FEED_STANDARD))ta=p.MOBILE_FEED_STANDARD;if(qa.getAppID()===s.BOOSTED_WEBSITE&&ra.getCreativeCategory()===u.VIDEO)ua=h.WEBSITE_CLICKS;return (z.createElement(j,{adAccountID:this.props.config.getAdAccountStore().getSelectedAccountID(),apiAdFormats:sa,appID:qa.getAppID(),defaultSelectedAdFormat:ta,creative:this._getSafeCreative(this.props.config.getCreativeStore().getCreativeSpec()),pageID:qa.getPageID(),editable:this._isAdPreviewEditable(),objective:ua}));},_getSafeCreative:function(pa){switch(this.props.config.getContextStore().getAppID()){case s.BOOSTED_WEBSITE:var qa=pa[k.OBJECT_STORY_SPEC],ra={},sa={};if(this.props.config.getCreativeStore().getCreativeCategory()===u.IMAGE){var ta=qa[l.LINK_DATA];if(!ta[q.LINK]||!ia.isUrl(ta[q.LINK])){var ua=i.clone(ta);ua[q.LINK]='www.example.com';sa=i.clone(qa);sa[l.LINK_DATA]=ua;ra[k.OBJECT_STORY_SPEC]=sa;return ra;}}else{var va=qa[l.VIDEO_DATA],wa=fa(va,[r.CALL_TO_ACTION,m.VALUE,w.LINK]);if(!wa||!ia.isUrl(wa)){var xa=i.clone(va);xa[r.CALL_TO_ACTION][m.VALUE][w.LINK]='www.example.com';sa=i.clone(qa);sa[l.VIDEO_DATA]=xa;ra[k.OBJECT_STORY_SPEC]=sa;return ra;}}return pa;default:return pa;}},_getLinkShareData:function(){if(this.props.config.getContextStore().getAppID()===s.BOOSTED_WEBSITE)return this.props.config.getCreativeStore().getLinkShareData();return null;},_getApiAdFormats:function(){var pa=this.props.config;switch(pa.getContextStore().getAppID()){case s.BOOSTED_PAGELIKE:return pa.getCreativeStore().getCreativeCategory()===u.VIDEO?ka:la;case s.BOOSTED_LOCAL_AWARENESS:return na(pa.getTargetingStore().getTargetingSpec().page_types);default:return ka;}},_isAdPreviewEditable:function(){return (!!this.props.config.getExperimentStore()&&this.props.config.getExperimentStore().getExperimentForAppIDs('ad_preview_editable',[s.BOOSTED_PAGELIKE]));}});f.exports=oa;},null);
__d('BoostedComponentCollapsableSection.react',['BoostedComponentSection.react','BoostedComponentSectionSubheader.react','BoostedComponentStrings','Image.react','Link.react','React','cx'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=m.PropTypes,p=o.shape({title:o.string,content:o.object}),q=m.createClass({displayName:'BoostedComponentCollapsableSection',propTypes:{isCollapsed:o.bool,collapsedData:p.isRequired,uncollapsedData:p.isRequired,isFirstSection:o.bool,errors:o.array,editable:o.bool.isRequired},getInitialState:function(){return {isCollapsed:this.props.isCollapsed};},_getLink:function(){var r;if(this.props.editable){r=this.state.isCollapsed?j.EDIT_SECTION:j.SAVE_SECTION_CHANGES;}else r=this.state.isCollapsed?j.VIEW_SECTION_DETAILS:j.HIDE_SECTION_DETAILS;return (m.createElement(l,{className:"_2jae",onClick:this._toggleCollapse,role:'button'},this._getIcon(),' ',r));},_getErrors:function(){if(!this.state.isCollapsed)return null;var r=m.createElement(l,{onClick:this._toggleCollapse,role:'button'},j.EDIT_BUTTON_LABEL);return (m.createElement(i,{errors:this.props.errors,link:r}));},_getIcon:function(){return this.props.editable&&this.state.isCollapsed?m.createElement(k,{src:'/images/ads/manage/oca/pencil.png'}):null;},_toggleCollapse:function(){this.setState({isCollapsed:!this.state.isCollapsed});},render:function(){var r=this.state.isCollapsed?this.props.collapsedData:this.props.uncollapsedData;return (m.createElement('div',null,m.createElement(h,{title:r.title,headerLink:this._getLink(),isFirstSection:this.props.isFirstSection},this._getErrors(),r.content)));}});f.exports=q;},null);
__d('BoostedComponentCreativeSection.react',['AdImageSpecsUtils','AdsAPIObjectives','AdsCallToActionTypes','AdsCreationConfig','AdsImageLegacy','AdsTextInput.react','ApiAdCreativeFields','ApiAdCreativeStorySpecFields','ApiCallToActionFields','ApiObjectStorySpecLinkFields','ApiObjectStorySpecVideoFields','BoostedComponentAdPreviewSection.react','BoostedComponentAppID','BoostedComponentCTAPlaceEditor.react','BoostedComponentCallToActionSelector.react','BoostedComponentClientEvent','BoostedComponentCollapsableSection.react','BoostedComponentConfig','BoostedComponentContent.react','BoostedComponentCreativeBodyEditor.react','BoostedComponentCreativeCategory','BoostedComponentCreativeEditingConfig','BoostedComponentCreativeEditingElement','BoostedComponentCreativeEditorMixin','BoostedComponentCreativeLinkDataEditor.react','BoostedComponentCreativeMultiAdsEditor.react','BoostedComponentCreativePlacement','BoostedComponentCreativeViewActions','BoostedComponentDualCreativeContent.react','BoostedComponentExperiment','BoostedComponentImageSelector.react','BoostedComponentLabeledEditor.react','BoostedComponentMultiAdsConstants','BoostedComponentSection.react','BoostedComponentSectionMixin','BoostedComponentSectionSubheader.react','BoostedComponentSectionUtils','BoostedComponentStoreType','BoostedComponentStrings','BoostedComponentVideoPanel.react','BoostedComponentVideoSource','CallToActionValueFields','Link.react','React','URI','fbt','getByPath','getObjectValues','ads-lib-urllib'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,za,ab,bb,cb,db){'use strict';if(c.__markCompiled)c.__markCompiled();var eb=ya.PropTypes;function fb(jb){var kb=gb(jb,q.CHILD_ATTACHMENTS);if(!kb||kb===undefined||kb.length===0){var lb={link:gb(jb,q.LINK),name:gb(jb,q.NAME),description:gb(jb,q.MESSAGE),picture:jb.getImageURL(),image_hash:jb.getImageHash()};if(jb.getImageCrops())lb.image_crops=jb.getImageCrops();return [lb];}return kb;}function gb(jb,kb){var lb=jb.getCreativeSpec(),mb=lb[n.OBJECT_STORY_SPEC];if(!mb)return null;var nb=mb[o.LINK_DATA];if(!nb)return null;return nb[kb];}function hb(jb,kb){var lb=jb.getCreativeSpec(),mb=lb[n.OBJECT_STORY_SPEC];if(!mb)return null;var nb=mb[o.VIDEO_DATA];if(!nb)return null;return bb(nb,kb);}var ib=ya.createClass({displayName:'BoostedComponentCreativeSection',mixins:[ea,pa],propTypes:{config:eb.instanceOf(y).isRequired},statics:{getStores:function(jb){return babelHelpers._extends({},ra.getStoresFromConfig(jb.config,[sa.AD_ACCOUNT_STORE,sa.AD_STATUS_STORE,sa.CONTEXT_STORE,sa.CREATIVE_STORE,sa.DIALOG_UI_STORE,sa.EXPERIMENT_STORE,sa.TARGETING_STORE]));},calculateState:function(jb,kb){var lb=jb[sa.CREATIVE_STORE],mb=fb(lb),nb=kb&&kb.selectedProductIndex<=mb.length-1?kb.selectedProductIndex:0,ob=undefined,pb=undefined,qb=undefined;if(lb.getCreativeCategory()===ba.VIDEO){ob=hb(lb,[r.CALL_TO_ACTION,p.VALUE,wa.LINK]);pb=hb(lb,[r.CALL_TO_ACTION,p.VALUE,wa.LINK_TITLE]);qb=hb(lb,[r.DESCRIPTION]);}else{ob=gb(lb,q.LINK);pb=gb(lb,q.NAME);qb=gb(lb,q.MESSAGE);}return {accountID:jb[sa.AD_ACCOUNT_STORE].getSelectedAccountID(),body:lb.getBody(),callToAction:lb.getCallToAction(),creativeCategory:lb.getCreativeCategory(),ctaAddressEditorEnabled:jb[sa.EXPERIMENT_STORE].getExperiment('cta_address_editor'),currentVideoThumbnail:lb.getCurrentVideoThumbnail(),defaultCity:lb.getDefaultCity(),dialogDivID:jb[sa.DIALOG_UI_STORE].getDialogDivID(),errors:lb.getValidator().getErrors(),headline:pb,image:lb.getImageLegacy(),imageCrops:lb.getImageCrops(),imageHash:lb.getImageHash(),imageUrl:lb.getImageURL(),messagingSettingLinkEnabled:lb.isPageMessagingDisabled(),products:mb,selectedProductIndex:nb,shouldEdit:jb[sa.AD_STATUS_STORE].getShouldEdit(),text:qb,url:ob,videoLibrary:lb.getVideos(),videoName:lb.getVideoName(),videoThumbnails:lb.getVideoThumbnails()};}},componentWillMount:function(){var jb=this.props.config;this._creativeViewActions=new ia(jb.getDispatcher());},_getCreativeLinkDataEditor:function(){var jb=this.props.config,kb=jb.getCreativeStore();if(!this.shouldRenderCreativeElement(jb.getContextStore().getAppID(),da.CREATIVE_LINK_DATA))return null;var lb=this.state.creativeCategory===ba.VIDEO;return (ya.createElement(fa,{appID:jb.getContextStore().getAppID(),shouldEdit:this.state.shouldEdit,url:this.state.url,headline:this.state.headline,text:this.state.text,onLinkDataURLChange:lb?this._onVideoDataURLChange:this._onLinkDataURLChange,onLinkDataHeadlineChange:lb?this._onVideoDataHeadlineChange:this._onLinkDataHeadlineChange,onLinkDataTextChange:lb?this._onVideoDataTextChange:this._onLinkDataTextChange,validateLink:kb.getValidator().validateLinkDataURL,validateName:kb.getValidator().validateLinkDataName,validateMessage:kb.getValidator().validateLinkDataMessage}));},_getCreativeBodyEditor:function(){var jb=this.props.config;if(!this.shouldRenderCreativeElement(jb.getContextStore().getAppID(),da.CREATIVE_BODY))return null;return (ya.createElement(aa,{appID:jb.getContextStore().getAppID(),body:this.state.body,onBodyChange:this._onBodyChange,validateBody:jb.getCreativeStore().getValidator().validateBody}));},_getCreativeMultiAdsEditor:function(){var jb=this.props.config,kb=jb.getContextStore(),lb=jb.getCreativeStore();return (ya.createElement(ga,{accountID:this.state.accountID,appID:kb.getAppID(),accessToken:kb.getAccessToken(),clientID:kb.getClientID(),maxProducts:na.MAX_PRODUCT_NUM,minProducts:na.MIN_PRODUCT_NUM,onProductsChange:this._onProductsChange,onProductSelected:this._onProductSelected,selectedProductIndex:this.state.selectedProductIndex,defaultLink:this.state.url,defaultName:this.state.headline,defaultImageUrl:this.state.imageUrl,defaultImageHash:this.state.imageHash,products:this.state.products,validateName:lb.getValidator().validateLinkDataName}));},_getHeadlineEditor:function(){var jb=this.props.config.getCreativeStore();return (ya.createElement(ma,{key:da.CREATIVE_LINK_DATA_HEADLINE,label:ta.CREATIVE_LINK_DATA_HEADLINE_LABEL,tooltip:ta.CREATIVE_LINK_DATA_HEADLINE_TOOLTIP},ya.createElement(m,{badTextRules:cb(this.getFieldBadTextRules()),errors:jb.getValidator().validateLinkDataName(this.state.headline),hideMaxLength:true,maxLength:k.maxTitleLength,multiline:false,onChange:this._onVideoDataHeadlineChange,placeholder:ta.CREATIVE_LINK_DATA_HEADLINE_PLACEHOLDER,value:this.state.headline})));},_getVideoPanelEditor:function(){var jb=this.props.config.getCreativeStore(),kb=this.props.config.getExperimentStore().getExperiment(ka.BOOSTED_COMPONENT_SWITCH_CREATIVE);return (ya.createElement(ua,{accountID:this.state.accountID,onCancelUpload:this._cancelVideoUpload,onRemove:this._clearVideoCreative,onThumbnailClick:this._onThumbnailClick,onVideoPickerConfirm:this._onVideoPickerConfirm,onVideoUploadClick:this._onVideoUploadClick,selectedThumbnail:this.state.currentVideoThumbnail,selectedVideoName:jb.getVideoName(),selectedVideoThumbnails:jb.getVideoThumbnails(),switchColumn:kb,uploadProgressValue:jb.getVideoUploadProgress(),uploadStatus:jb.getVideoUploadStatus(),videoLibrary:this.state.videoLibrary,videoSource:jb.getVideoSource()}));},_getMultiAdsOrVideoEditor:function(){var jb=this.props.config,kb=jb.getCreativeStore(),lb=jb.getExperimentStore();if(!this.shouldRenderCreativeElement(jb.getContextStore().getAppID(),da.CREATIVE_MULTI_PRODUCTS))return null;var mb=this._getCreativeMultiAdsEditor();if(!lb.getExperiment('boosted_website_video'))return (ya.createElement(ma,{label:ta.MULTI_ADS_LABEL,tooltip:ta.MULTI_ADS_TOOLTIP},mb));var nb=this._getHeadlineEditor(),ob=this._getVideoPanelEditor(),pb=kb.getCreativeCategory()===ba.VIDEO;return (ya.createElement(ja,{isCreativeVideo:pb,toggleCreativeCategory:this._toggleCreativeCategory,imageEditorLabel:ta.MULTI_ADS_LABEL,imageEditorTooltip:ta.MULTI_ADS_TOOLTIP},pb?ob:mb,pb?nb:null));},_toggleCreativeCategory:function(){if(this.state.creativeCategory===ba.VIDEO){this._creativeViewActions.toggleCreativeCategory(ba.IMAGE);}else this._creativeViewActions.toggleCreativeCategory(ba.VIDEO);},_onVideoPickerConfirm:function(jb){var kb=this.props.config.getDispatcher(),lb=this.props.config.getCreativeStore(),mb=lb.getVideoByID(jb);mb.source=va.BROWSE_LIBRARY;if(mb)kb.handleUpdateFromServerResponse({actionType:w.VIDEO_ENCODING_SUCCESS,video:mb});},_onThumbnailClick:function(jb){if(jb instanceof l)jb={width:jb.getWidth(),height:jb.getHeight(),uri:jb.getUrl()};this._creativeViewActions.updateVideoThumbnail(jb);},_clearVideoCreative:function(){this._creativeViewActions.clearVideoCreative();},_cancelVideoUpload:function(){this._creativeViewActions.cancelVideoUpload();},_getImageOrVideoSelector:function(){var jb=this.props.config.getExperimentStore(),kb=this.props.config.getContextStore(),lb=this.props.config.getCreativeStore();if(!this.shouldRenderCreativeElement(kb.getAppID(),da.CREATIVE_IMAGE_SELECTOR))return null;var mb=ya.createElement(la,{accountID:this.state.accountID,accessToken:kb.getAccessToken(),clientID:kb.getClientID(),image:this.state.image,imageUrl:this.state.imageUrl,imageHash:this.state.imageHash,imageSpecs:this._getImageSpecs(),onImageUploadClick:this._onImageUploadClick,onImageSelected:this._onImageSelected,onImageCropClick:this._onImageCropClick});if(!jb.getExperiment('boosted_component_video'))return (ya.createElement(ma,{label:ta.CREATIVE_IMAGE,tooltip:ta.CREATIVE_IMAGE_TOOLTIP},mb));var nb=this._getVideoPanelEditor(),ob=lb.getCreativeCategory()===ba.VIDEO;return (ya.createElement(ja,{isCreativeVideo:ob,toggleCreativeCategory:this._toggleCreativeCategory,imageEditorLabel:ta.CREATIVE_IMAGE,imageEditorTooltip:ta.CREATIVE_IMAGE_TOOLTIP},ob?nb:mb));},_getCTASelector:function(){var jb=this.props.config,kb=jb.getCreativeStore(),lb=jb.getExperimentStore();if(lb.getExperiment('boosted_website_video')){var mb=ca.BOOSTED_WEBSITE;if(mb.indexOf(da.CREATIVE_CTA)===-1)mb.push(da.CREATIVE_CTA);}if(!this.shouldRenderCreativeElement(jb.getContextStore().getAppID(),da.CREATIVE_CTA))return null;var nb,ob=false,pb=false,qb=false;switch(jb.getContextStore().getAppID()){case t.BOOSTED_LOCAL_AWARENESS:nb=i.LOCAL_AWARENESS;if(jb.getAdStatusStore().getShouldEdit())ob=true;break;case t.BOOSTED_EVENT:nb=i.EVENT_RESPONSES;break;case t.BOOSTED_CCTA:nb=i.WEBSITE_CLICKS;ob=true;pb=true;break;case t.BOOSTED_WEBSITE:nb=i.WEBSITE_CLICKS;if(kb.getCreativeCategory()===ba.VIDEO){qb=true;}else return null;break;case t.BOOSTED_PAGELIKE:nb=i.PAGE_LIKES;break;default:nb=i.NONE;}return (ya.createElement(z,null,ya.createElement(v,{apiObjective:nb,hideSelector:pb,isReadOnly:ob,isDefaultOptionRequired:qb,label:ta.CREATIVE_CTA_LABEL,onCallToActionChange:this._onCallToActionChange,selectedCallToActionType:this.state.callToAction&&this.state.callToAction.type,tooltip:ob?null:ta.CREATIVE_CTA_TOOLTIP}),this._getPageMessagingSetting(),this._getPhoneNumberEditor(jb),this._getCTAPlaceEditor(),this._getCTALinkEditor()));},_getPageMessagingSetting:function(){if(!this.state.callToAction||this.state.callToAction.type!==j.TYPES.MESSAGE_PAGE.name)return null;if(this.state.messagingSettingLinkEnabled===true)return (ya.createElement('div',null,ab._("{Change settings link} to allow people to send private messages to your Page",[ab.param('Change settings link',ya.createElement(xa,{onClick:this._requestEnablePageMessaging},'Click here'))])));return ab._("When people click Send Message on an ad, they'll be able to send a message to your Page.");},_requestEnablePageMessaging:function(){this._creativeViewActions.requestEnablePageMessaging();},_getPhoneNumberEditor:function(jb){if(!this.state.callToAction||this.state.callToAction.type!==j.TYPES.CALL_NOW.name)return null;return (ya.createElement(ma,{label:ta.CALL_TO_ACTION_PHONE_NUMBER_LABEL,tooltip:ta.CALL_TO_ACTION_PHONE_NUMBER_TOOLTIP},ya.createElement(m,{multiline:false,onChange:this._onPhoneNumberChanged,placeholder:ta.CALL_TO_ACTION_PHONE_NUMBER_PLACEHOLDER,value:this._getDisplayPhoneNumber(),errors:jb.getCreativeStore().getValidator().validateCallToAction()})));},_getCTAPlaceEditor:function(){if(!this.state.callToAction||this.state.callToAction.type!==j.TYPES.GET_DIRECTIONS.name||!this.state.ctaAddressEditorEnabled)return null;return (ya.createElement(u,{ctaLink:this.state.callToAction.value.link,onCTALinkChange:this._onCTALinkChange,userID:this.props.config.getContextStore().getUserID(),pageID:this.props.config.getContextStore().getPageID(),pageAccessToken:this.props.config.getContextStore().getPageAccessToken(),onEditAddressClick:this._onPlaceDialogOpen,defaultCity:this.state.defaultCity.hasValue()?this.state.defaultCity.value.city:undefined,isLoading:this.state.defaultCity.isLoading()}));},_onPlaceDialogOpen:function(){this._creativeViewActions.fetchDefaultCity();},_getCTALinkEditor:function(){if(!this.state.callToAction||this.state.callToAction.type!==j.TYPES.LEARN_MORE.name||this.props.config.getContextStore().getAppID()===t.BOOSTED_WEBSITE)return null;return (ya.createElement(ma,{label:ta.CALL_TO_ACTION_LEARN_MORE_LABEL,tooltip:ta.CALL_TO_ACTION_LEARN_MORE_TOOLTIP},ya.createElement(m,{multiline:false,onChange:this._onCTALinkChange,placeholder:ta.CALL_TO_ACTION_LEARN_MORE_PLACEHOLDER,value:this.state.callToAction.value.link,errors:this.props.config.getCreativeStore().getValidator().validateCallToAction()})));},_onCTALinkChange:function(jb){var kb=this.props.config.getCreativeStore().getCallToAction();kb.value.link=jb;this._creativeViewActions.changeCallToAction(kb);},_getCreativeInputFields:function(){if(this.props.config.getContextStore().getAppID()===t.BOOSTED_POST)return null;if(this._isAdPreviewEditable())return ya.createElement(qa,{errors:this.state.errors});return (ya.createElement('div',null,ya.createElement(qa,{errors:this.state.errors}),ya.createElement(z,null,this._getCreativeBodyEditor(),this._getCreativeLinkDataEditor(),this._getImageOrVideoSelector(),this._getMultiAdsOrVideoEditor(),this._getCTASelector())));},_isAdPreviewEditable:function(){return this.props.config.getExperimentStore().getExperimentForAppIDs('ad_preview_editable',[t.BOOSTED_PAGELIKE]);},_getAdPreviewSection:function(){if(this.props.config.getExperimentStore().getExperiment(ka.BOOSTED_COMPONENT_SWITCH_CREATIVE))return null;return (ya.createElement(z,null,ya.createElement(s,{config:this.props.config})));},_getDisplayPhoneNumber:function(){var jb=this.state.callToAction&&this.state.callToAction.value.link;if(!jb||jb.indexOf('tel:')!==0)return '';return jb.substr(4);},_onPhoneNumberChanged:function(jb){jb='tel:'+jb;var kb=this.props.config.getCreativeStore().getCallToAction();kb.value.link=jb;this._creativeViewActions.changeCallToAction(kb);},_onCallToActionChange:function(jb){var kb=jb.value,lb=this.props.config.getCreativeStore().getSpecForCallToAction(kb);if(!lb&&kb){lb={};lb[p.TYPE]=kb;var mb={};mb[wa.LINK]=this.state.url;lb[p.VALUE]=mb;}this._creativeViewActions.changeCallToAction(lb);},_onVideoCallToActionChange:function(jb){var kb=this.props.config.getCreativeStore().getCallToActionType(),lb=null;if(kb)lb=this.props.config.getCreativeStore().getSpecForCallToAction(kb);if(!lb&&kb){lb={};lb[p.TYPE]=kb;var mb={};if(jb.link||jb.link===''){mb[wa.LINK]=jb.link;}else mb[wa.LINK]=this.state.url;if(jb.headline||jb.headline===''){mb[wa.LINK_TITLE]=jb.headline;}else mb[wa.LINK_TITLE]=this.state.headline;lb[p.VALUE]=mb;}if(lb)this._creativeViewActions.changeCallToAction(lb);},_getImageSpecs:function(){var jb=this.props.config.getCreativeStore().getCreativeType(),kb=ha.getPlacement(jb);return h.getCropImageSpecsForAdType(this.props.config.getCreativeStore().getCreativeType(),kb);},_onLinkDataURLChange:function(jb){var kb=jb;if(db.isUrl(kb)){var lb=new za(db.normalize(jb));kb=lb.toString();}var mb={};mb[q.LINK]=kb;this._creativeViewActions.changeLinkDataFields(mb);},_onLinkDataHeadlineChange:function(jb){var kb={};kb[q.NAME]=jb;this._creativeViewActions.changeLinkDataFields(kb);},_onLinkDataTextChange:function(jb){var kb={};kb[q.MESSAGE]=jb;this._creativeViewActions.changeLinkDataFields(kb);},_onImageUploadClick:function(jb){return this._creativeViewActions.changeImage(jb);},_onImageCropClick:function(jb,kb){return this._creativeViewActions.changeImageCrop(jb,kb);},_onImageSelected:function(jb){return this._creativeViewActions.changeImage(jb);},_onVideoUploadClick:function(event){var jb=event.target;if(jb.value)this._creativeViewActions.startVideoUpload(jb);},_onVideoDataURLChange:function(jb){var kb=jb;if(db.isUrl(kb)){var lb=new za(db.normalize(jb));kb=lb.toString();}this._onVideoCallToActionChange({link:kb});},_onVideoDataHeadlineChange:function(jb){this._onVideoCallToActionChange({headline:jb});},_onVideoDataTextChange:function(jb){this._creativeViewActions.updateVideoDescription(jb);},_onBodyChange:function(jb){var kb=this.props.config.getCreativeStore();if(kb.getCreativeCategory()===ba.IMAGE){var lb={};lb[n.BODY]=jb;this._creativeViewActions.changeCreative(lb);}else this._creativeViewActions.updateVideoDescription(jb);},_onProductSelected:function(jb){this.setState({selectedProductIndex:jb});},_onProductsChange:function(jb){var kb={};if(jb&&jb.length===1){kb[q.LINK]=this.state.url;kb[q.MESSAGE]=this.state.text;kb[q.NAME]=jb[0].name?jb[0].name:this.state.headline;if(jb[0].picture||jb[0].image_hash){kb[q.PICTURE]=jb[0].picture;kb[q.IMAGE_HASH]=jb[0].image_hash;if(jb[0].image_crops)kb[q.IMAGE_CROPS]=jb[0].image_crops;}else{kb[q.PICTURE]=this.state.imageUrl;kb[q.IMAGE_HASH]=this.state.imageHash;if(this.state.imageCrops)kb[q.IMAGE_CROPS]=this.state.imageCrops;}kb[q.CHILD_ATTACHMENTS]=null;}else{for(var lb=0;lb<jb.length;lb++)jb[lb].description=null;kb[q.CHILD_ATTACHMENTS]=jb;}this._creativeViewActions.changeLinkDataFields(kb);},_isCollapsable:function(){if(this._isAdPreviewEditable())return false;return (this.props.config.getContextStore().getAppID()===t.BOOSTED_PAGELIKE||this.props.config.getContextStore().getAppID()===t.BOOSTED_WEBSITE);},_getCollapsedData:function(){return {title:ta.CREATIVE_SECTION,content:this._getAdPreviewSection()};},_getUncollapsedData:function(){var jb=ta.getCreativeSectionTitle(this.props.config.getContextStore().getAppID()),kb=ya.createElement('div',null,this._getCreativeInputFields(),this._getAdPreviewSection());return {title:jb,content:kb};},render:function(){var jb=this.props.config.getExperimentStore().getExperiment(ka.BOOSTED_COMPONENT_SWITCH_CREATIVE),kb=this.props.config.getAdStatusStore().getShouldEdit();if(this._isCollapsable())return (ya.createElement(x,{isCollapsed:!this.state.errors,collapsedData:this._getCollapsedData(),uncollapsedData:this._getUncollapsedData(),isFirstSection:!(jb&&kb),errors:this.state.errors,editable:true}));var lb=this._getUncollapsedData();return (ya.createElement(oa,{title:lb.title,isFirstSection:!(jb&&kb)},lb.content));}});f.exports=ib;},null);
__d('BoostedComponentInformationalHeaderSection.react',['BoostedComponentHeaderSection.react','Image.react','React','fbt','ix'],function a(b,c,d,e,f,g,h,i,j,k,l){'use strict';if(c.__markCompiled)c.__markCompiled();var m=j.createClass({displayName:'BoostedComponentInformationalHeaderSection',render:function(){var n=j.createElement(i,{src:l('/images/ads/templates/audience.png')}),o=j.createElement('div',null,k._("Your customers are on Facebook."),j.createElement('br',null),k._("Boost your post so they {know about your business}.",[k.param('know about your business',j.createElement('strong',null,k._("know about your business")))]));return (j.createElement(h,{image:n},o));}});f.exports=m;},null);
__d("d3/core/max",[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=function(i,j){var k=-1,l=i.length,m,n;if(arguments.length===1){while(++k<l&&((m=i[k])==null||m!=m))m=undefined;while(++k<l)if((n=i[k])!=null&&n>m)m=n;}else{while(++k<l&&((m=j.call(i,i[k],k))==null||m!=m))m=undefined;while(++k<l)if((n=j.call(i,i[k],k))!=null&&n>m)m=n;}return m;};f.exports=h;},null);
__d('InsightsTabbedSection.react',['React'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=h.PropTypes,j=h.createClass({displayName:'InsightsTabbedSection',propTypes:{className:i.string,tabHref:i.string,sectionKey:i.string.isRequired,title:i.string.isRequired,subtitle:i.string},statics:{getTabHref:function(k){return k.tabHref;},getKey:function(k){return k.sectionKey;},getTitle:function(k){return k.title;},getSubtitle:function(k){return k.subtitle;}},render:function(){return (h.createElement('div',{className:this.props.className},this.props.children));}});f.exports=j;},null);
__d('BoostedComponentInsightsSection.react',['BoostedActionInsightsAgeGender.react','BoostedActionInsightsCountry.react','BoostedActionInsightsEngagement.react','BoostedActionInsightsTabbedSections.react','BoostedComponentConfig','BoostedComponentContent.react','BoostedComponentInsightsHeadline.react','BoostedComponentExperiment','BoostedComponentPreviewPanel.react','BoostedComponentSection.react','BoostedComponentStrings','InsightsTabbedSection.react','React','cx'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){'use strict';if(c.__markCompiled)c.__markCompiled();var v=t.PropTypes,w=t.createClass({displayName:'BoostedComponentInsightsSection',propTypes:{config:v.instanceOf(l).isRequired},getInitialState:function(){return {activeKey:null};},showSection:function(x){this.setState({activeKey:x.type.getKey(x.props)});},_getCollapsedData:function(){var x=this.props.config.getInsightsStore(),y=this.props.config.getContextStore().getAppID(),z={};z[r.INSIGHTS_REACH_LABEL]=x.getReach().toString();z[r.getConversionsLabel(y)]=x.getConversions().toString();z[r.INSIGHTS_SPEND_LABEL]=x.getSpend();return {title:r.INSIGHTS_SECTION,content:t.createElement(p,{values:z})};},_getUncollapsedData:function(){var x=this.props.config.getInsightsStore(),y=[t.createElement(j,{values:x.getEngagementData()}),t.createElement(h,{values:x.getAgeGenderData()}),t.createElement(i,{values:x.getCountryData()})],z=y.map(function(ba){var ca=ba.type.getName();return (t.createElement(s,{key:ca,sectionKey:ca,title:ba.type.getTitle()},ba));},this),aa=t.createElement('div',{className:"_4vxt"},t.createElement('div',{className:"_4ibq"},t.createElement(n,{appID:this.props.config.getContextStore().getAppID(),conversions:x.getConversions(),reach:x.getReach(),spend:x.getSpend()}),t.createElement(k,{activeKey:this.state.activeKey,children:z,onTabClick:this.showSection})));return {title:r.INSIGHTS_SECTION,content:aa};},render:function(){var x=this.props.config.getInsightsStore();if(this.props.config.getExperimentStore().getExperiment(o.BOOSTED_COMPONENT_TABBED_DIALOG_COLUMN)&&x.hasStoreData()&&x.getReach()>0)return (t.createElement(q,{isFirstSection:false},this._getUncollapsedData().content));return null;}});f.exports=w;},null);
__d("XPayerProtectionController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/payer_protection\/",{});},null,{});
__d('BoostedComponentPaymentAccountSection.react',['AdsAdAccountSelector.react','AdsCurrencySelector.react','AdsLoadState','AdsPaymentsPaymentMethodSelector.react','AdsPixelViewActions','BoostedComponentAdAccountViewActions','BoostedComponentConfig','BoostedComponentContent.react','BoostedComponentDataState','BoostedComponentLabeledEditor.react','BoostedComponentSection.react','BoostedComponentStrings','BoostedComponentSectionSubheader.react','CenteredContainer.react','Image.react','Link.react','PopupWindow','React','SubscriptionsHandler','XPayerProtectionController','XUIGrayText.react','XUISpinner.react','XUIText.react','cx','fbt','ix'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga){'use strict';if(c.__markCompiled)c.__markCompiled();var ha=y.PropTypes,ia=346,ja=y.createClass({displayName:'BoostedComponentPaymentAccountSection',_adAccountViewActions:new m({}),_subscriptions:new z(),propTypes:{config:ha.instanceOf(n).isRequired},componentWillMount:function(){var ka=this.props.config;this._adAccountViewActions=new m(ka.getDispatcher());this._subscriptions.addSubscriptions(ka.getAdAccountStore().subscribe('change',(function(){return this.forceUpdate();}).bind(this)),ka.getAdStatusStore().subscribe('change',(function(){return this.forceUpdate();}).bind(this)),ka.getAYMTTipsStore().subscribe('change',(function(){return this.forceUpdate();}).bind(this)),ka.getDialogChangeStore().subscribe('change',(function(){return this.forceUpdate();}).bind(this)));},componentWillUnmount:function(){this._subscriptions.release();},render:function(){var ka=null;if(this._isPaymentSectionLoading())ka=y.createElement(u,{className:"_4o-q",vertical:true},y.createElement(ca,{background:'light',size:'large'}));return (y.createElement(r,{title:s.PAYMENT_ACCOUNT_INFO_SECTION,isFirstSection:false,className:"_4o-r"},ka,this._getSpendCapTip(),y.createElement(o,null,this._getAccountSelector(),this._getCurrencySelector(),this._getPaymentInfoSection(),this._getPaymentSecureMessage())));},_getSpendCapTip:function(){return (y.createElement(t,{bestTip:this.props.config.getAYMTTipsStore().getBestPaymentsSectionTip(),margin:'0'}));},_getPaymentSecureMessage:function(){var ka=aa.getURIBuilder().getURI();return (y.createElement('div',{className:"inlineBlock"},y.createElement(v,{className:"_24c9",src:ga('/images/payments/security_msg_lock.png')}),y.createElement(ba,{size:'small'},fa._("Your payment info is stored securely. {=Learn More}.",[fa.param('=Learn More',y.createElement(w,{onClick:x.open.bind(this,ka,500,500)},s.LEARN_MORE))]))));},_getCurrencySelector:function(){var ka=this.props.config.getAdAccountStore();if(!ka.canUpdateSelectedAccountCurrency()||!ka.getSelectedAccountHasBillingWritePermission())return null;return (y.createElement(q,{label:s.CURRENCY_SECTION},y.createElement(i,{fontSize:12,maxWidth:ia,onDataUpdate:(function(event,la){this._adAccountViewActions.updateCurrency(la);}).bind(this),selectedCurrency:ka.getSelectedAccountCurrency(),showISOCode:true,size:'xlarge'})));},_getAccountSelector:function(){var ka=this.props.config.getAdAccountStore(),la=ka.getAllAccounts(),ma=Object.keys(la).length,na=ka.getSelectedAccountID();if(ma<1){return null;}else if(ma===1||this.props.config.getAdStatusStore().getShouldEdit())return (y.createElement(q,{label:s.ACCOUNT_SECTION},y.createElement('div',{className:"_4i70"},y.createElement(da,{className:"_3-8i",display:'block',size:'small',weight:'bold'},fa._("{account_name} ({account_id}, {account_currency})",[fa.param('account_name',la[na].name),fa.param('account_id',na),fa.param('account_currency',ka.getSelectedAccountCurrency())])))));return (y.createElement(q,{label:s.ACCOUNT_SECTION},y.createElement(h,{accounts:la,fontSize:12,maxWidth:ia,onDataUpdate:(function(event,oa){this._adAccountViewActions.updateAccount(oa);l.resetPixelList();}).bind(this),selectedAccount:na,size:'xlarge'})));},_isFieldLoading:function(ka){if(ka!==null&&ka!==undefined&&(ka===j.LOADING||ka===j.NOT_LOADED))return true;return false;},_isPaymentSectionLoading:function(){var ka=this.props.config.getAdAccountStore();if(this.props.config.getDialogChangeStore().getShowLoadingIndicator())return true;if(ka.getState()===p.LOADING)return true;var la=ka.getAccountInfoLoadingStatus();if(this._isFieldLoading(la.loadingStatus))return true;var ma=ka.getSelectedAccountPrimaryPaymentMethod();if(this._isFieldLoading(ma.loadingStatus))return true;var na=ka.getSelectedAccountPaymentMethods();if(this._isFieldLoading(na.loadingStatus))return true;return false;},_onClickAddPaymentMethod:function(){var ka=this.props.config.getAdAccountStore();if(!ka.getSelectedAccountHasBillingWritePermission())return;this._adAccountViewActions.addNewPaymentMethod();},_updatePrimaryPaymentMethod:function(ka,la,ma){this._adAccountViewActions.updatePrimaryPaymentMethod(ka,la,ma);},_getPaymentInfoSection:function(){var ka=this.props.config.getAdAccountStore(),la=ka.getSelectedAccountPaymentMethods(),ma=ka.getSelectedAccountPaymentInfo(),na=la.paymentMethods;if(na===undefined||na===null)na={};return (y.createElement(q,{label:s.PAYMENT_METHOD_SECTION},y.createElement(k,{accountID:ka.getSelectedAccountID(),allPaymentMethods:na,altpayPendingPayments:ka.getSelectedAccountAltpayPendingPayments(),businessInfo:ka.getSelectedAccountBusinessInfo(),currency:ka.getSelectedAccountCurrency(),extendedCreditInfo:ka.getSelectedAccountExtendedCreditInfo(),extendedCreditStatus:ma.extendedCreditStatus,hasBillingWritePermission:ka.getSelectedAccountHasBillingWritePermission(),hasCreatedAdsBefore:ka.getSelectedAccountHasCreatedAdsBefore(),hasExtendedCredit:ma.hasCredit,hasFundingSource:ka.getSelectedAccountHasFundingSource(),isCorporate:ma.isCorporateAccount,isPrepayAccount:ma.isPrepayAccount,onChangePrimaryPaymentMethod:this._updatePrimaryPaymentMethod,onPaymentMethodButtonClick:this._onClickAddPaymentMethod,paymentMethodLoadingStatus:la.loadingStatus,prepayBalance:ka.getSelectedAccountPrepayBalance(),primaryPaymentMethod:ka.getSelectedAccountPrimaryPaymentMethod(),primaryPMDisplayString:ka.getSelectedAccountPrimaryPMDisplayString(),maxWidth:ia,errors:ka.getValidator().getErrors(),successes:ka.getValidator().getSuccesses()})));}});f.exports=ja;},null);
__d('BoostedComponentDialogLeftColumnSection.react',['BoostedComponentAdAccountSection.react','BoostedComponentAdStatusSection.react','BoostedComponentAppID','BoostedComponentAudienceSection.react','BoostedComponentBudgetAndDurationSection.react','BoostedComponentConfig','BoostedComponentConfirmationSection.react','BoostedComponentConversionPixelSection.react','BoostedComponentCreativeSection.react','BoostedComponentDialogViewStates','BoostedComponentExperiment','BoostedComponentInformationalHeaderSection.react','BoostedComponentInsightsSection.react','BoostedComponentPaymentAccountSection.react','BoostedComponentStrings','BoostedComponentTargetingSection.react','React','WebApiApplication','XUICard.react','XUICardHeader.react','XUICardHeaderTitle.react','cx'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca){'use strict';if(c.__markCompiled)c.__markCompiled();var da=x.PropTypes,ea=x.createClass({displayName:'BoostedComponentDialogLeftColumnSection',propTypes:{config:da.instanceOf(m).isRequired},getInitialState:function(){return {selectedViewState:q.RESULTS};},componentWillMount:function(){y.init(this.props.config.getContextStore().getAccessToken(),this.props.config.getContextStore().getClientID());},_hasHeaderSection:function(){return (this.props.config.getDialogUIStore().showInformationalHeaderSection());},_getCreativeSection:function(){if(!this.props.config.getExperimentStore().getExperiment(r.BOOSTED_COMPONENT_SWITCH_CREATIVE))return null;return (x.createElement(p,{config:this.props.config}));},_getHeaderSection:function(){if(!this._hasHeaderSection())return null;return x.createElement(s,null);},_getAudienceSection:function(){if(this.props.config.getContextStore().getAppID()===j.BOOSTED_POST||this.props.config.getContextStore().getAppID()===j.BOOSTED_EVENT||this.props.config.getContextStore().getAppID()===j.BOOSTED_PRODUCT)return (x.createElement(k,{config:this.props.config,isFirstSection:!this._hasHeaderSection()}));return null;},_getTargetingSection:function(){if(this.props.config.getContextStore().getAppID()===j.BOOSTED_POST||this.props.config.getContextStore().getAppID()===j.BOOSTED_EVENT||this.props.config.getContextStore().getAppID()===j.BOOSTED_PRODUCT)return null;return (x.createElement(w,{config:this.props.config}));},_getBudgetAndDurationSection:function(){return (x.createElement(l,{config:this.props.config}));},_getConversionPixelSection:function(){return (x.createElement(o,{config:this.props.config}));},_getAdAccountSection:function(){var fa=this.props.config.getExperimentStore();if(fa.getExperiment('new_payments_section'))return (x.createElement(u,{config:this.props.config}));return (x.createElement(h,{config:this.props.config}));},_getAdStatusSection:function(){if(this.props.config.getExperimentStore().getExperiment(r.BOOSTED_COMPONENT_TABBED_DIALOG_COLUMN))return null;return x.createElement(i,{config:this.props.config});},_onTabClick:function(fa){this.setState({selectedViewState:fa});},render:function(){var fa=x.createElement('div',null,x.createElement(t,{config:this.props.config}),x.createElement(n,{config:this.props.config,onEditClick:(function(){return this._onTabClick(q.EDIT);}).bind(this)})),ga=x.createElement('div',null,this._getHeaderSection(),this._getAdStatusSection(),this._getCreativeSection(),this._getAudienceSection(),this._getTargetingSection(),this._getBudgetAndDurationSection(),this._getConversionPixelSection(),this._getAdAccountSection());if(this.props.config.getExperimentStore().getExperiment(r.BOOSTED_COMPONENT_TABBED_DIALOG_COLUMN)&&this.props.config.getAdStatusStore().getShouldEdit())return (x.createElement('div',null,x.createElement(z,null,x.createElement(aa,{activeTabKey:this.state.selectedViewState,className:"_144t",onTabClick:this._onTabClick,type:'primary'},x.createElement(ba,{className:"_56nz",href:'#',key:q.RESULTS},v.RESULTS),x.createElement(ba,{className:"_56nz",href:'#',key:q.EDIT},v.EDIT_PROMOTION))),this.state.selectedViewState===q.RESULTS?fa:ga));return (x.createElement('div',null,ga));}});f.exports=ea;},null);
__d('BoostedComponentDialogSubmissionSection.react',['BoostedComponentAdStatusToAction','BoostedComponentConfig','BoostedComponentFooter.react','BoostedComponentSubmissionViewActions','SubscriptionsHandler','React'],function a(b,c,d,e,f,g,h,i,j,k,l,m){'use strict';if(c.__markCompiled)c.__markCompiled();var n=m.PropTypes,o=m.createClass({displayName:'BoostedComponentDialogSubmissionSection',propTypes:{config:n.instanceOf(i).isRequired},getInitialState:function(){return {dialogState:this.props.config.getSubmissionStore().getDialogSubmissionState()};},componentWillMount:function(){this._submissionViewActions=new k(this.props.config.getDispatcher());this._subscriptions=new l();this._subscriptions.addSubscriptions(this.props.config.getSubmissionStore().subscribe('change',this._updateSubmissionState));},componentWillUnmount:function(){this._subscriptions.release();this._subscriptions=null;},_onPrimaryButtonClick:function(){var p=h.getPrimaryClickAction(this.props.config.getAdStatusStore().getSelectedAdStatus(),this.props.config.getAdStatusStore().getAdStatus());if(!p)return;this._submissionViewActions.onClick(p);},_onSecondaryButtonClick:function(){this._submissionViewActions.onClick(h.getSecondaryClickAction(this.props.config.getAdStatusStore().getAdStatus()));},_getButtonSpecs:function(){var p=[];p.push({label:h.getPrimaryButtonLabel(this.props.config.getContextStore().getAppID(),this.props.config.getAdStatusStore().getAdStatus()),use:'confirm',onClick:this._onPrimaryButtonClick});p.push({label:h.getSecondaryButtonLabel(this.props.config.getAdStatusStore().getAdStatus()),use:'default',onClick:this._onSecondaryButtonClick});return p;},_updateSubmissionState:function(){this.setState({dialogState:this.props.config.getSubmissionStore().getDialogSubmissionState()});},render:function(){return (m.createElement(j,{buttonSpecs:this._getButtonSpecs(),config:this.props.config,dialogState:this.state.dialogState}));}});f.exports=o;},null);
__d('BoostedComponentMainDialog.react',['BoostedComponentConfig','BoostedComponentConstants','BoostedComponentDialogHeaderSection.react','BoostedComponentDialogLeftColumnSection.react','BoostedComponentDialogRightColumnSection.react','BoostedComponentDialogSubmissionSection.react','BoostedComponentDialogSubmissionStates','BoostedComponentDialogTitle.react','BoostedComponentExperiment','BoostedComponentStrings','BoostedComponentTestElement','DialogExpansion','Grid.react','LayerFadeOnHide','LoadingIndicator.react','LeftRight.react','React','ReactLayeredComponentMixin','SubscriptionsHandler','ScrollableArea.react','Vector','XUIDialog.react','XUIDialogBody.react','XUIText.react','cx'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa){'use strict';if(c.__markCompiled)c.__markCompiled();var ga=t.GridItem,ha=x.PropTypes,ia=x.createClass({displayName:'BoostedComponentMainDialog',mixins:[y],propTypes:{id:ha.string.isRequired,causalElementRef:ha.func.isRequired,config:ha.instanceOf(h).isRequired,shown:ha.bool.isRequired,onToggle:ha.func.isRequired,onCancel:ha.func},getInitialState:function(){return {dialogSeen:this.props.shown};},componentWillMount:function(){this._subscriptions=new z();this._subscriptions.addSubscriptions(this.props.config.getSubmissionStore().subscribe('change',(function(){return this.forceUpdate();}).bind(this)));},componentWillReceiveProps:function(ja){if(!this.state.dialogSeen&&ja.shown)this.setState({dialogSeen:true});},componentDidUpdate:function(){if(!this.state.dialogSeen)return;if(this.refs.dialog&&this.props.shown&&this.props.onCancel&&!this._dialogCancelListener){var ja=this.refs.dialog.layer;this._dialogCancelListener=ja.subscribe('cancel',this.props.onCancel);}else if(this._dialogCancelListener&&!this.props.shown)this._unsubscribeDialogListeners();},componentWillUnmount:function(){this._unsubscribeDialogListeners();this._subscriptions.release();},_unsubscribeDialogListeners:function(){if(this._dialogCancelListener){this._dialogCancelListener.unsubscribe();this._dialogCancelListener=null;}},_renderLoadingIndicator:function(){var ja=this.props.config.getSubmissionStore();if(ja.getDialogSubmissionState()!==n.SUBMITTING)return null;return (x.createElement('div',{className:"_2_we"},x.createElement(t,{className:"_2_wf",cols:1},x.createElement(t,{className:"_2_wg",cols:2},x.createElement('div',{className:"_2pia"},x.createElement(ea,{size:'large',weight:'bold'},q.getSubmissionIndicatorString(ja.getCurrentSubmissionAction()))),x.createElement('div',{className:"_2pik _2pi3"},x.createElement(v,{color:'black',size:'large'}))))));},renderLayers:function(){if(!this.state.dialogSeen)return {};return {dialog:x.createElement(ca,{causalElementRef:this.props.causalElementRef,ref:'dialog',shown:this.props.shown,behaviors:{LayerFadeOnHide:u,DialogExpansion:s},width:i.DIALOG_WIDTH,onToggle:this.props.onToggle,layerHideOnBlur:false},this._renderLoadingIndicator(),x.createElement(o,{config:this.props.config}),this._getDialogHeader(),this.props.config.getExperimentStore().getExperiment(p.BOOSTED_COMPONENT_SWITCH_CREATIVE)?this._getDialogBody():this._getDialogBodyDeprecated(),this.props.dialogFooter,x.createElement(m,{config:this.props.config}))};},_getDialogBodyDeprecated:function(){return (x.createElement(da,{useCustomPadding:true,'data-testid':r.DIALOG_BODY},x.createElement('div',{id:this.props.id,className:"_kx2",style:{maxHeight:this._getDialogColumnMaxHeight()+'px'}},x.createElement(t,{className:"_kx3",cols:2,alignv:'top'},x.createElement(ga,{key:'left',className:"_kx4"},x.createElement(k,{config:this.props.config})),x.createElement(ga,{key:'right',className:"_kx5"},x.createElement(l,{config:this.props.config}))))));},_getDialogBody:function(){return (x.createElement(da,{useCustomPadding:true,'data-testid':r.DIALOG_BODY},x.createElement('div',{id:this.props.id,className:"_kx2",style:{maxHeight:this._getDialogColumnMaxHeight()+'px'}},x.createElement(w,{className:"_2b75",alignv:'top'},x.createElement(aa,{className:"_kx4",height:this._getDialogColumnMaxHeight(),width:400},x.createElement(k,{config:this.props.config})),x.createElement(aa,{className:"_kx5",height:this._getDialogColumnMaxHeight(),width:550},x.createElement(l,{config:this.props.config}))))));},_getDialogHeader:function(){return (x.createElement(j,{config:this.props.config}));},render:function(){return x.createElement('div',null);},_getDialogColumnMaxHeight:function(){var ja=Math.max(ba.getViewportDimensions().y-250,i.DIALOG_MIN_HEIGHT);return Math.min(ja,i.DIALOG_MAX_HEIGHT);}});f.exports=ia;},null);
__d("XAdsConversionTotalTrafficController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/custom_conversion\/total_traffic\/",{conversion_ids:{type:"StringVector",required:true}});},null,{});