/*!CK:2961097206!*//*1459461018,*/

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

__d("AdsAPIConnectionObjectFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ID:"id",NAME:"name",NAME_WITH_LOCATION_DESCRIPTOR:"name_with_location_descriptor",URL:"url",OBJECT_TYPE:"type",PROPERTY_TYPE:"type",ENGAGEMENT_SCORE:"engagement_score",CHECKIN_CAPABLE:"checkin_capable",PICTURE:"picture",TABS:"tabs",IS_GAME:"is_game",SUPPORTED_PLATFORMS:"supported_platforms",NATIVE_APP_STORE_IDS:"native_app_store_ids",OBJECT_STORE_URLS:"object_store_urls",APP_INSTALLS_TRACKED:"app_installs_tracked",NATIVE_APP_TARGETING_IDS:"native_app_targeting_ids",OG_NAMESPACE:"og_namespace",OG_ACTIONS:"og_actions",OG_OBJECTS:"og_objects",WEBSITE:"website",LOGO_URL:"logo_url",ICON_URL:"icon_url",PRIVACY:"privacy",EVENT_PARENT_PAGE_ID:"event_parent_page_id",EVENT_PARENT_PAGE_NAME:"event_parent_page_name",EVENT_START_TIMESTAMP:"event_start_timestamp",EVENT_IS_VIEWER_ADMIN:"event_is_viewer_admin",DISPLAY_NAME:"display_name",PROPERTIES:"properties",CONNECTED_OBJECTS:"connected_objects",EXTRA_FBIDS:"extra_fbids",EXTRA_ONLY:"extra_only",LIMIT:"limit",OFFSET:"offset",BUSINESS_ID:"business_id",NON_BUSINESS_ONLY:"non_business_only",CPA_ACCESS:"cpa_access"};},null);
__d("AdsAPITargetAppInstallState",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={NONE:"none",INSTALLED:"installed",NOT_INSTALLED:"not_installed"};},null);
__d("AdsAssetSectionType",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={BOOKMARKED:"BOOKMARKED",OWNED:"OWNED",SEARCH:"SEARCH",UNOWNED:"UNOWNED"};},null);
__d("ComposerPerfEvent",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={CLIENT_BOOTSTRAPPED:"client_bootstrapped",CLIENT_BOOTLOADED:"client_bootloaded",CLIENT_POST_SUCCEEDED:"client_post_succeeded",CLIENT_POST_FAILED:"client_post_failed"};},null);
__d("DefaultSettingsValues",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ASSET_SECTION_TYPE:"OWNED",PANE:"CampaignGroupPane"};},null);
__d("FacerecWaterfallEvent",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={RECOGNITION_RECEIVED_BY_CLIENT:"recognition_received_by_client",CLIENT_RECOGNITION_POLLER_TIMEOUT:"client_recognition_poller_timeout",CLIENT_RECOGNITION_POLLER_GIVE_UP:"client_recognition_poller_give_up",SERVER_PHOTO_PUBLISHED:"server_photo_published",SERVER_PHOTO_TAG_ADDED:"sever_photo_tag_added",CLIENT_PHOTO_PUBLISHED:"client_photo_published"};},null);
__d("ModalPhotoEditorTabName",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={CROP:"crop",FILTERS:"filters",FRAMES:"frames",STICKERS:"stickers",TAG:"tag",TEXT:"text"};},null);
__d("PagesComposerCarouselPostChildAttachmentAttributes",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={PICTURE:"picture",NAME:"name",DESCRIPTION:"description",LINK:"link",SELECTED:"selected",SCRAPED:"scraped",IMAGE_FBID:"image_fbid",IMAGE_SOURCE:"image_source",ORIGINAL_DIMENSION_HEIGHT:"original_dimensions_height",ORIGINAL_DIMENSION_WIDTH:"original_dimensions_width",CROPPING_START_POINT_X:"cropping_startPoint_x",CROPPING_START_POINT_Y:"cropping_startPoint_y",CROPPING_SOURCE_DIMENSION_HEIGHT:"cropping_source_dimension_height",CROPPING_SOURCE_DIMENSION_WIDTH:"cropping_source_dimension_width"};},null);
__d("PagesComposerCarouselPostLogAttributes",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={USE_CAROUSEL_COMPOSER:"use_carousel_composer",CAROUSEL_INCOMPATIBLE:"carousel_incompatible",CAROUSEL_INCOMPATIBLE_TYPE:"carousel_incompatible_type",SCRAPED_IMAGE_NUM_OLD:"scraped_image_num_old",SCRAPED_URL:"scraped_url",SCRAPED_TIME:"scraped_time",COMPOSER_LOCATION:"composer_location",HIDE_END_CARD:"hide_end_card",SOURCE_ATTACHMENT:"source_attachment",PREFILL_SCRAPE_URL:"prefill_scrape_url"};},null);
__d("PagesComposerCarouselPostNuxType",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={MEDIA_ATTACHEMENT_URL_INPUT_AREA_NUX:"media_attachment_url_input_area_nux"};},null);
__d("PagesComposerExtraAttachmentIcons",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={FINCH_COUPONS_ICON:"FINCH_COUPONS_ICON",Q_AND_A_ICON:"Q_AND_A_ICON",CAUSE_ICON:"CAUSE_ICON",COUPONS_ICON:"COUPONS_ICON",FINCH_EVENTS_ICON:"FINCH_EVENTS_ICON",EVENTS_ICON:"EVENTS_ICON",PRODUCT_ICON:"PRODUCT_ICON"};},null);
__d("PhotoEditorLoggingConstants",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={COMPOSER_IMAGE_STICKER:"composer_sticker",COMPOSER_IMAGE_TEXT_OVERLAY:"composer_text_overlay",COMPOSER_IMAGE_HAS_CROP:"composer_has_crop",COMPOSER_IMAGE_HAS_FILTER:"composer_has_filter"};},null);
__d('AdsBaseListDataManager',['AdsAbstractDataManager','abstractMethod'],function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('AdsAbstractDataManager'));i=h&&h.prototype;j.prototype.loadFor=function(k){c('abstractMethod')('AdsBaseListDataManager','loadFor');};function j(){h.apply(this,arguments);}f.exports=j;},null);
__d('ListCache',['Cache','TreeMap','nullthrows'],function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('Cache'));i=h&&h.prototype;function j(k){i.constructor.call(this);this.$ListCache1=k!=null?k:this.$ListCache2;}j.prototype.$ListCache2=function(k,l){if(k.value<l.value){return -1;}else if(k.value>l.value){return 1;}else return 0;};j.prototype.hasList=function(k){if(!this.has(k))return false;var l=c('nullthrows')(this.__getRaw(k));return !!l.$ListCache3;};j.prototype.getList=function(k,l){if(!this.hasList(k))return l;var m=c('nullthrows')(this.__getRaw(k));return m.$ListCache3;};j.prototype.makeList=function(k){var l=this.__getRaw(k);if(!l)l=this.__getNewRawObject();l.$ListCache3=new (c('TreeMap'))(this.$ListCache1);this.__setRaw(k,l);};f.exports=j;},null);
__d('AdsBaseListStore',['AdsDispatcher','AdsLoadState','FluxStore','ImmutableObject','ListCache','Map','TreeMap','abstractMethod','adsBaseStoreMixin','nullthrows'],function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();var j=new (c('TreeMap'))(function(){return 0;}),k=new (c('ImmutableObject'))({loadState:c('AdsLoadState').LOADING,list:[]}),l=new (c('ImmutableObject'))({loadState:c('AdsLoadState').NOT_LOADED,list:[]});h=babelHelpers.inherits(m,c('FluxStore'));i=h&&h.prototype;m.getLoadingList=function(){return k;};function m(){i.constructor.call(this,c('AdsDispatcher'));c('adsBaseStoreMixin')(this);this.$AdsBaseListStore1=new (c('ListCache'))(this.$AdsBaseListStore7.bind(this,this.compare));this.$AdsBaseListStore2=new (c('Map'))();this.$AdsBaseListStore6=new (c('Map'))();this.$AdsBaseListStore3=this.getIDKey();this.$AdsBaseListStore4=this.getSortKey();}m.prototype.getDataManager=function(){c('abstractMethod')('AdsBaseListStore','getDataManager');return c('nullthrows')(null);};m.prototype.getIDKey=function(){return 'id';};m.prototype.getLoadingList=function(){return k;};m.prototype.getSortKey=function(){return null;};m.prototype.compare=function(n,o){if(n<o){return -1;}else if(n>o){return 1;}else return 0;};m.prototype.$AdsBaseListStore7=function(n,o,p){return n(o.value,p.value);};m.prototype.getFor=function(n){var o=this.$AdsBaseListStore8(n);if(o.loadState===c('AdsLoadState').NOT_LOADED){var p=this.getDataManager();p.loadFor(n);this.$AdsBaseListStore1.set(n,c('AdsLoadState').LOADING);this.$AdsBaseListStore2['delete'](n);}return this.$AdsBaseListStore8(n);};m.prototype.getCachedFor=function(n){return this.$AdsBaseListStore8(n);};m.prototype.$AdsBaseListStore8=function(n){if(this.$AdsBaseListStore2.has(n))return c('nullthrows')(this.$AdsBaseListStore2.get(n));if(this.$AdsBaseListStore1.has(n)){var o=this.$AdsBaseListStore1.get(n,c('AdsLoadState').NOT_LOADED),p=this.$AdsBaseListStore1.getList(n,j).keys(),q={loadState:o||c('AdsLoadState').NOT_LOADED,list:p||[],totalCount:undefined,loadedCount:undefined};if(this.$AdsBaseListStore6.has(n)){q.totalCount=this.$AdsBaseListStore6.get(n);q.loadedCount=p.length;}q=new (c('ImmutableObject'))(q);this.$AdsBaseListStore2.set(n,q);return q;}return l;};m.prototype.__getMinValueFor=function(n){if(!this.$AdsBaseListStore1.hasList(n))return null;var o=this.$AdsBaseListStore1.getList(n).min();return o==null?null:o.value;};m.prototype.__getMaxValueFor=function(n){if(!this.$AdsBaseListStore1.hasList(n))return null;var o=this.$AdsBaseListStore1.getList(n).max();return o==null?null:o.value;};m.prototype.__invalidateEntireCache=function(){var n=this.$AdsBaseListStore1.size()>0||this.$AdsBaseListStore2.size>0;this.$AdsBaseListStore1.clear();this.$AdsBaseListStore2.clear();return n;};m.prototype.__invalidate=function(n){if(this.$AdsBaseListStore1.has(n)||this.$AdsBaseListStore2.has(n)){var o=this.$AdsBaseListStore1['delete'](n),p=this.$AdsBaseListStore2['delete'](n);return o||p;}return false;};m.prototype.__invalidateChildren=function(n,o){o.forEach(function(p){return this.__invalidateChild(n,p);}.bind(this));};m.prototype.__invalidateChild=function(n,o){var p=this.$AdsBaseListStore1.getList(n);if(!p)return false;var q=p['delete'](o);if(!q)return false;this.__incrementTotalCountIfSet(n,-1);this.$AdsBaseListStore2['delete'](n);this.__emitChange();return true;};m.prototype.__setTotalCount=function(n,o){if(this.$AdsBaseListStore6.get(n)!==o){this.$AdsBaseListStore6.set(n,o);this.__emitChange();}};m.prototype.__incrementTotalCountIfSet=function(n,o){var p=this.$AdsBaseListStore6.get(n);if(p){var q=p+(o||1);this.$AdsBaseListStore6.set(n,q);return q;}};m.prototype.__handleDataFor=function(n,o,p){var q=false;if(!this.$AdsBaseListStore1.hasList(n))this.$AdsBaseListStore1.makeList(n);var r=this.$AdsBaseListStore1.getList(n);if(o&&o.length>0)o.forEach(function(s){if(s.hasOwnProperty(this.$AdsBaseListStore3)){var t=s[this.$AdsBaseListStore3],u=this.$AdsBaseListStore4==null?null:s[this.$AdsBaseListStore4];if(!r.has(t)||r.get(t)!==u){r.set(t,u);q=true;}}}.bind(this));if(p&&this.$AdsBaseListStore1.get(n)!==p){this.$AdsBaseListStore1.set(n,p);q=true;}if(q){this.$AdsBaseListStore2['delete'](n);this.__emitChange();}return q;};m.prototype.__updateLoadingFor=function(n){var o=[];n.forEach(function(p){var q=this.$AdsBaseListStore8(p);if(q.loadState===c('AdsLoadState').NOT_LOADED){this.$AdsBaseListStore1.set(p,c('AdsLoadState').LOADING);this.$AdsBaseListStore2['delete'](p);o.push(p);}}.bind(this));return o;};f.exports=m;},null);
__d('AdsCommonTargetingBulkApiSpecStore',['AdsAPITargetFields','AdsCommonTargetingActionTypes','ImmutableObject','getObjectValues','mixInEventEmitter','whitelistObjectKeys'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('getObjectValues')(c('AdsAPITargetFields')),i='canonical-id';function j(k){this.$AdsCommonTargetingBulkApiSpecStore1=k;this.$AdsCommonTargetingBulkApiSpecStore2=this.$AdsCommonTargetingBulkApiSpecStore1.register(this.$AdsCommonTargetingBulkApiSpecStore3.bind(this));this.$AdsCommonTargetingBulkApiSpecStore4={};}j.prototype.$AdsCommonTargetingBulkApiSpecStore3=function(k){var l=k.action,m=false;switch(l.actionType){case c('AdsCommonTargetingActionTypes').TARGETING_INIT:this.clearState(l.targetingID||i);break;case c('AdsCommonTargetingActionTypes').BULK_API_SPEC_SET:this.$AdsCommonTargetingBulkApiSpecStore5(l.targetingID||i,c('whitelistObjectKeys')(l,h));m=true;break;}if(m)this.emit('change',{payloadsource:k.payloadsource,targetingID:l.targetingID||i});};j.prototype.clearAllState=function(){this.$AdsCommonTargetingBulkApiSpecStore4={};};j.prototype.clearState=function(k){this.$AdsCommonTargetingBulkApiSpecStore4[k]={};};j.prototype.getState=function(k){return new (c('ImmutableObject'))(this.$AdsCommonTargetingBulkApiSpecStore4[k]||{});};j.prototype.getValue=function(k,l){return this.$AdsCommonTargetingBulkApiSpecStore6(k,l||i);};j.prototype.$AdsCommonTargetingBulkApiSpecStore6=function(k,l){return (this.$AdsCommonTargetingBulkApiSpecStore4[l]||{})[k];};j.prototype.$AdsCommonTargetingBulkApiSpecStore5=function(k,l){this.$AdsCommonTargetingBulkApiSpecStore4[k]=Object.assign(this.$AdsCommonTargetingBulkApiSpecStore4[k],l);};c('mixInEventEmitter')(j,{change:true});f.exports=j;},null);
__d('AdsCommonTargetingBulkApiSpecStoreInstance',['AdsDispatcher','AdsCommonTargetingBulkApiSpecStore'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();f.exports=new (c('AdsCommonTargetingBulkApiSpecStore'))(c('AdsDispatcher'));},null);
__d('AdsCommonTargetingLoggingConstant',['keyMirrorRecursive'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();f.exports=c('keyMirrorRecursive')({ALL_COMPONENTS_BOOTLOADED:null,COMPONENT_DID_MOUNT:null,COMPONENT_BOOT_LOADED:null,CONTAINER_IMPRESSION:null,SESSION_DURATION:null},'AdsCommonTargeting');},null);
__d('AdsLocationActionTypes',['ImmutableObject','keyMirrorRecursive'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=new (c('ImmutableObject'))(c('keyMirrorRecursive')({DATA_LOADED:null,LAOD_POLYGON_DATA:null,CLEAR_NOTICE_STATE:null,HAS_TOO_MANY_LOCATIONS:null,HAS_TOO_MANY_COUNTRIES:null,HAS_NO_INCLUSION:null,REPLACE_LOCATIONS:null,INVALID_EXCLUDE:null,COPY_PASTE_LOCATIONS:null,CLEAR_VALID_LOCATIONS_NOTICE:null,CLEAR_INVALID_LOCATIONS_NOTICE:null,MAP_DROP_PIN_FAIL:null,MAP_NO_POLYGON:null,CLEAR_MAP_NO_POLYGON:null,BULK_INPUT_DISPLAY_INPUT_DIALOG:null,BULK_INPUT_HIDE_DIALOG:null,BULK_INPUT_CHANGE_LOCATION_TYPE:null,BULK_INPUT_CHANGE_DEFAULT_RADIUS:null,BULK_INPUT_CHANGE_DEFAULT_COUNTRY:null,BULK_INPUT_CHANGE_GEO_MARKET_INPUT_FORMAT:null,BULK_INPUT_CHANGE_TEXT:null,BULK_INPUT_START_VALIDATION:null,BULK_INPUT_FINISH_VALIDATION:null,BULK_INPUT_FORMAT_CHECK:null,BULK_INPUT_CLEAR_FORMAT_ERROR:null,BULK_INPUT_CHANGE_REVIEW_TABLE:null,BULK_INPUT_SHOW_NUX:null,BULK_INPUT_HIDE_NUX:null,BULK_INPUT_CHANGE_LOCATION_NAME:null,BULK_INPUT_UPDATE_VALIDATED_LOCATION:null,BULK_INPUT_SET_SELECTED_LOCATION_FROM_TYPEAHEAD:null,BULK_INPUT_REMOVE_ROW:null,BULK_INPUT_SHOW_DIALOG_FROM_TYPEAHEAD:null}));f.exports=h;},null);
__d('AdsTargetingConnectionsLoggingEvents',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={CHANGE_TARGETING_TYPE:'connections_change_targeting_type',CLEAR_TARGETING:'connections_clear_targeting',CLOSED_VIDEO_NUX:'connections_video_nux_closed',CLOSED_CONNECTIONS_UI_NUX:'connections_ui_nux_closed',PE_TARGETING_DIALOG_CANCELLED:'pe_targeting_dialog_cancelled',PE_TARGETING_DIALOG_CONFIRMED:'pe_targeting_dialog_confirmed',PE_TARGETING_DIALOG_OPENED:'pe_targeting_dialog_opened',SELECT_MENU:'connections_select_menu',UPDATE_ENGAGEMENT_SPECS:'connections_update_engagement_specs',UPDATE_EXCLUDED_CONNECTIONS:'connections_update_excluded_connections',UPDATE_EXCLUDED_ENGAGEMENT_SPECS:'connections_update_excluded_engagement_specs',UPDATE_FRIENDS_OF_CONNECTIONS:'connections_update_friends_of_connections',UPDATE_INCLUDED_CONNECTIONS:'connections_update_included_connections',VIDEO_INFOS_LOAD_TIME:'video_infos_load_time',VIDEOS_LOAD_TIME:'videos_load_time',PAGES_LOAD_TIME:'pages_load_time',VIDEO_LOADING_INFO:'video_loading_info',VIDEOS_FETCHING_ERROR:'video_fetching_error'};f.exports=h;},null);
__d('AdsTargetingLocationLoggingEvents',[],function a(b,c,d,e,f,g){'use strict';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_CLICK_RADIUS_EDITOR:'geo_location_click_radius_editor',GEO_LOCATION_COMPONENT_LOADING_TIME:'geo_location_component_loading_time',GEO_LOCATION_TYPEAHEAD_NO_INTERACTION:'geo_location_typeahead_no_interaction',GEO_LOCATION_MAP_ADD_LOCATION:'geo_location_map_add_location',GEO_LOCATION_MAP_ZOOM_IN:'geo_location_map_zoom_in',GEO_LOCATION_MAP_ZOOM_OUT:'geo_location_map_zoom_out',GEO_LOCATION_MAP_ZOOM_TO_FIT:'geo_location_map_zoom_to_fit',GEO_LOCATION_MAP_COLLAPSE:'geo_location_map_collapse',GEO_LOCATION_MAP_EXPAND:'geo_location_map_expand',GEO_LOCATION_MAP_INCLUDE:'geo_location_map_include',GEO_LOCATION_MAP_EXCLUDE:'geo_location_map_exclude',GEO_LOCATION_MAP_DELETE:'geo_location_map_delete',GEO_LOCATION_MAP_MOUNTING_TIME:'geo_location_map_mounting_time',GEO_LOCATION_MAP_DATA_LOADING_TIME:'geo_location_map_data_loading_time',GEO_LOCATION_MAP_REPORT_ISSUE:'geo_location_map_report_issue',GEO_LOCATION_BLIP_ADD_LOCATIONS:'geo_location_blip_add_locations',GEO_LOCATION_BLIP_REMOVE_LOCATION:'geo_location_blip_remove_location',GEO_LOCATION_BLIP_UPDATE_LOCATION:'geo_location_blip_update_location',GEO_LOCATION_BLIP_UPDATE_DEFAULT_RADIUS:'geo_location_blip_update_default_radius',GEO_LOCATION_BLIP_UPDATE_DEFAULT_ZIP_COUNTRY:'geo_location_blip_update_default_zip_country',GEO_LOCATION_BLIP_FINISH_VALIDATION:'geo_location_blip_finish_validation'};f.exports=h;},null);
__d('AdsTargetingSuggestionActionTypes',['ImmutableObject','keyMirror'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();f.exports=new (c('ImmutableObject'))(c('keyMirror')({CHANGE_SUGGESTION_MODE:null,FINISH_LOADING:null,HIDE_SUGGESTION_NUX:null,HANDLE_LOAD_ERROR:null,LOADED_RECENT_CAMPAIGN_TARGETING_SPEC:null,LOADED_RECENT_SAVED_AUDIENCE:null,SET_DEFAULT_TARGETING_SPEC:null,SET_SUGGESTION_OPTIONS:null,SHOW_SUGGESTION_NUX:null,START_LOADING:null}));},null);
__d('AdsTargetingTExActionTypes',['ImmutableObject','keyMirror'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=new (c('ImmutableObject'))(c('keyMirror')({SHOW_ADDITIONAL_TARGETING:null,HIDE_ADDITIONAL_TARGETING:null}));f.exports=h;},null);
__d('AdsTargetingTExLoggingEvents',['ImmutableObject','keyMirror'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=new (c('ImmutableObject'))(c('keyMirror')({TEX_CHANGE_SUGGESTION_MODE:null,TEX_CLICK_ADDITIONAL_TARGETING_LINK:null,TEX_CLOSE_SUGGESTION_NUX:null}));f.exports=h;},null);
__d('AdsCommonTargetingLoggerStore',['AdInterfacesUiLogger','AdsCommonTargetingLoggingConstant','AdsCommonTargetingViewActionType','AdsDispatcher','AdsLocationActionTypes','AdsTargetingConnectionsLoggingEvents','AdsTargetingSuggestionActionTypes','AdsTargetingTExActionTypes','AdsTargetingTExLoggingEvents','FluxStore','AdsTargetingLocationLoggingEvents','performanceNow'],function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('FluxStore'));i=h&&h.prototype;function j(){i.constructor.call(this,c('AdsDispatcher'));this.$AdsCommonTargetingLoggerStoreClass1=0;}j.prototype.__onDispatch=function(k){var l=k.action,m=l.methodName,n=l.type;switch(n){case c('AdsTargetingConnectionsLoggingEvents').PE_TARGETING_DIALOG_OPENED:this.$AdsCommonTargetingLoggerStoreClass1=c('performanceNow')();break;case c('AdsTargetingConnectionsLoggingEvents').PE_TARGETING_DIALOG_CANCELLED:case c('AdsTargetingConnectionsLoggingEvents').PE_TARGETING_DIALOG_CONFIRMED:c('AdInterfacesUiLogger').log(c('AdsCommonTargetingLoggingConstant').SESSION_DURATION,c('performanceNow')()-this.$AdsCommonTargetingLoggerStoreClass1);break;case c('AdsLocationActionTypes').BULK_INPUT_CHANGE_DEFAULT_RADIUS:c('AdInterfacesUiLogger').log(c('AdsTargetingLocationLoggingEvents').GEO_LOCATION_BLIP_UPDATE_DEFAULT_RADIUS,{radius:l.defaultRadius});break;case c('AdsLocationActionTypes').BULK_INPUT_CHANGE_DEFAULT_COUNTRY:c('AdInterfacesUiLogger').log(c('AdsTargetingLocationLoggingEvents').GEO_LOCATION_BLIP_UPDATE_DEFAULT_ZIP_COUNTRY,{country:l.defaultCountry});break;case c('AdsLocationActionTypes').BULK_INPUT_FINISH_VALIDATION:c('AdInterfacesUiLogger').log(c('AdsTargetingLocationLoggingEvents').GEO_LOCATION_BLIP_FINISH_VALIDATION,{validCount:l.validatedLocations.length,invalidCount:l.invalidLocationNames.length});break;case c('AdsLocationActionTypes').BULK_INPUT_REMOVE_ROW:c('AdInterfacesUiLogger').log(c('AdsTargetingLocationLoggingEvents').GEO_LOCATION_BLIP_REMOVE_LOCATION);break;case c('AdsLocationActionTypes').BULK_INPUT_UPDATE_VALIDATED_LOCATION:c('AdInterfacesUiLogger').log(c('AdsTargetingLocationLoggingEvents').GEO_LOCATION_BLIP_UPDATE_LOCATION);break;case c('AdsTargetingTExActionTypes').SHOW_ADDITIONAL_TARGETING:case c('AdsTargetingTExActionTypes').HIDE_ADDITIONAL_TARGETING:c('AdInterfacesUiLogger').log(c('AdsTargetingTExLoggingEvents').TEX_CLICK_ADDITIONAL_TARGETING_LINK,{objective:l.objective});break;case c('AdsTargetingSuggestionActionTypes').CHANGE_SUGGESTION_MODE:if(!l.isInit)c('AdInterfacesUiLogger').log(c('AdsTargetingTExLoggingEvents').TEX_CHANGE_SUGGESTION_MODE,{mode:l.mode});break;case c('AdsTargetingSuggestionActionTypes').HIDE_SUGGESTION_NUX:c('AdInterfacesUiLogger').log(c('AdsTargetingTExLoggingEvents').TEX_CLOSE_SUGGESTION_NUX);break;default:break;}switch(m){case c('AdsCommonTargetingViewActionType').changeAndroidDeviceGroup:case c('AdsCommonTargetingViewActionType').changeInterestedIn:case c('AdsCommonTargetingViewActionType').changeIOSDevices:case c('AdsCommonTargetingViewActionType').changeRelationshipStatuses:case c('AdsCommonTargetingViewActionType').changeEducationStatuses:case c('AdsCommonTargetingViewActionType').changeGenders:case c('AdsCommonTargetingViewActionType').changeAgeMin:case c('AdsCommonTargetingViewActionType').changeAppInstallState:case c('AdsCommonTargetingViewActionType').changeUserAdclusters:case c('AdsCommonTargetingViewActionType').changeConjunctiveUserAdclusters:case c('AdsCommonTargetingViewActionType').changeAgeMax:case c('AdsCommonTargetingViewActionType').changeAgeMaxAndAgeMin:case c('AdsCommonTargetingViewActionType').changeMinAndroidVersion:case c('AdsCommonTargetingViewActionType').changeMinIOSVersion:case c('AdsCommonTargetingViewActionType').changeMinWindowsVersion:case c('AdsCommonTargetingViewActionType').changeMobileOperatingSystem:case c('AdsCommonTargetingViewActionType').changeWifiOnly:case c('AdsCommonTargetingViewActionType').changeGeoLocations:case c('AdsCommonTargetingViewActionType').changeLanguages:case c('AdsCommonTargetingViewActionType').changeTimezones:case c('AdsCommonTargetingViewActionType').changeConnections:case c('AdsCommonTargetingViewActionType').changeEngagements:case c('AdsCommonTargetingViewActionType').changeEducationStatus:case c('AdsCommonTargetingViewActionType').changeEducationMajors:case c('AdsCommonTargetingViewActionType').changeEducationSchools:case c('AdsCommonTargetingViewActionType').changeMaxGradYear:case c('AdsCommonTargetingViewActionType').changeMinGradYear:case c('AdsCommonTargetingViewActionType').changeTargetAllGraduationYears:case c('AdsCommonTargetingViewActionType').changeWorkEmployers:case c('AdsCommonTargetingViewActionType').changeKeywords:case c('AdsCommonTargetingViewActionType').changeCustomAudiences:case c('AdsCommonTargetingViewActionType').removeAudience:case c('AdsCommonTargetingViewActionType').excludeAudience:case c('AdsCommonTargetingViewActionType').includeAudience:case c('AdsCommonTargetingViewActionType').changeInterests:case c('AdsCommonTargetingViewActionType').changeWorkPositions:case c('AdsCommonTargetingViewActionType').changeFamilyStatuses:case c('AdsCommonTargetingViewActionType').changeIndustries:case c('AdsCommonTargetingViewActionType').changeLifeEvents:case c('AdsCommonTargetingViewActionType').changePolitics:case c('AdsCommonTargetingViewActionType').changeIncome:case c('AdsCommonTargetingViewActionType').changeNetWorth:case c('AdsCommonTargetingViewActionType').changeHomeType:case c('AdsCommonTargetingViewActionType').changeHomeOwnership:case c('AdsCommonTargetingViewActionType').changeHomeValue:case c('AdsCommonTargetingViewActionType').changeEthnicAffinity:case c('AdsCommonTargetingViewActionType').changeGeneration:case c('AdsCommonTargetingViewActionType').changeHouseholdComposition:case c('AdsCommonTargetingViewActionType').changeMoms:case c('AdsCommonTargetingViewActionType').changeOfficeType:case c('AdsCommonTargetingViewActionType').changeBehaviors:case c('AdsCommonTargetingViewActionType').changeFlexibleSpec:case c('AdsCommonTargetingViewActionType').changeCustomLocation:case c('AdsCommonTargetingViewActionType').changeCustomLocationCenter:case c('AdsCommonTargetingViewActionType').changeLocalGeoRadius:case c('AdsCommonTargetingViewActionType').fetchSuggestedRadius:c('AdInterfacesUiLogger').log(m);break;default:break;}};f.exports=new j();},null);
__d('AdsCommonTargetingStore',['AdsCommonTargetingProperties','AdsCommonTargetingActionTypes','AdsDispatcher','FluxStore','ImmutableObject','adsBaseStoreMixin','whitelistObjectKeys'],function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();var j={targetAllGraduationYears:true};h=babelHelpers.inherits(k,c('FluxStore'));i=h&&h.prototype;function k(){i.constructor.call(this,c('AdsDispatcher'));c('adsBaseStoreMixin')(this);this.$AdsCommonTargetingStore1={};this.canonicalID='canonical-id';}k.prototype.$AdsCommonTargetingStore3=function(){this.$AdsCommonTargetingStore1={};};k.prototype.$AdsCommonTargetingStore4=function(l){this.$AdsCommonTargetingStore1[l]=babelHelpers['extends']({},j);};k.prototype.getState=function(l){return new (c('ImmutableObject'))(this.$AdsCommonTargetingStore1[l]||{});};k.prototype.getValue=function(l,m){m=m||this.canonicalID;var n=this.$AdsCommonTargetingStore1[m]||{};return n[l];};k.prototype.$AdsCommonTargetingStore5=function(l,m){this.$AdsCommonTargetingStore1[l]=babelHelpers['extends']({},this.$AdsCommonTargetingStore1[l],m);};k.prototype.__onDispatch=function(l){var m=l.action,n=m.targetingID||this.canonicalID,o=false;switch(m.actionType){case c('AdsCommonTargetingActionTypes').TARGETING_INIT:this.$AdsCommonTargetingStore4(n);o=false;break;case c('AdsCommonTargetingActionTypes').TARGETING_SET_FROM_EXTERNAL:case c('AdsCommonTargetingActionTypes').TARGETING_CHANGE:this.$AdsCommonTargetingStore5(m.targetingID||this.canonicalID,c('whitelistObjectKeys')(m,c('AdsCommonTargetingProperties')));o=true;break;case c('AdsCommonTargetingActionTypes').TARGETING_CLEAR_ALL:this.$AdsCommonTargetingStore3();o=true;break;}if(o){this.$AdsCommonTargetingStore2=n;this.__emitChange();}};k.prototype.getCustomLocationOrNull=function(l){var m=this.getValue('geoLocations',l);return m&&m.custom_locations&&m.custom_locations[0]?m.custom_locations[0]:null;};k.prototype.getCustomLocationOrDefaultStateForUI=function(l){return new (c('ImmutableObject'))(this.getCustomLocationOrNull(l)||{});};k.prototype.getChangedTargetingID=function(){return this.$AdsCommonTargetingStore2;};f.exports=new k();},null);
__d('AdsCommonTargetingLoggingUtil',['adsGKCheck','AdInterfacesUiLogger'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h='ads_common_targeting_logging_gk',i={log:function(j,k){var l=false;if(l||c('adsGKCheck')(h))c('AdInterfacesUiLogger').log(j,k);}};f.exports=i;},null);
__d('AdsSpinner.react',['React','XUISpinner.react'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'AdsSpinner',contextTypes:{spinnerGroup:h.shape({registerLoadStart:h.func.isRequired,registerLoadEnd:h.func.isRequired})},componentWillMount:function(){if(this.context.spinnerGroup)this.context.spinnerGroup.registerLoadStart();},componentWillUnmount:function(){if(this.context.spinnerGroup)this.context.spinnerGroup.registerLoadEnd();},render:function(){return c('React').createElement(c('XUISpinner.react'),this.props);}});f.exports=i;},null);
__d('AdsCommonTargetingSectionMixin',['AdsCommonTargetingBulkApiSpecStoreInstance','AdsCommonTargetingLoggingConstant','AdsCommonTargetingLoggingUtil','AdsCommonTargetingStore','AdsSpinner.react','React','SubscriptionsHandler','performanceNow'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={_sectionEditor:null,componentWillMount:function(){this._componentWillMountTime=c('performanceNow')();},componentDidMount:function(){this._subscriptions=new (c('SubscriptionsHandler'))();this._subscriptions.addSubscriptions(c('AdsCommonTargetingStore').subscribe('change',function(){var i=c('AdsCommonTargetingStore').getChangedTargetingID();if(i===this.props.targetingID)this.forceUpdate();}.bind(this)),c('AdsCommonTargetingBulkApiSpecStoreInstance').addListener('change',function(i){if(i.targetingID===this.props.targetingID)this.forceUpdate();}.bind(this)));c('AdsCommonTargetingLoggingUtil').log(c('AdsCommonTargetingLoggingConstant').COMPONENT_DID_MOUNT,{componentName:this.constructor.displayName});},componentWillUnmount:function(){this._subscriptions.release();this._componentWillMountTime=null;},updateSectionEditor:function(i){this._setSectionEditor(i);if(!this.isMounted())return;c('AdsCommonTargetingLoggingUtil').log(c('AdsCommonTargetingLoggingConstant').COMPONENT_BOOT_LOADED,{componentName:this.constructor.displayName,bootloadComponentName:this._sectionEditor&&this._setSectionEditor.displayName,bootloadDuration:c('performanceNow')()-this._componentWillMountTime});this.forceUpdate();},_setSectionEditor:function(i){this._sectionEditor=i;},getSectionEditor:function(){return this._sectionEditor;},getConfigValue:function(i,j,k){if(!i||i[j]===undefined)return k;return i[j];},getDefaultWidth:function(){return this.props.extraData.defaultWidth;},getDefaultTooltip:function(){return (this.props.config?this.getConfigValue(this.props.config.customProperties,'tooltip'):undefined);},renderSpinner:function(){return c('React').createElement(c('AdsSpinner.react'),{size:'small'});},render:function(){if(!this._sectionEditor)return this.renderSpinner();return this.renderSectionEditor();}};f.exports=h;},null);
__d('AdsCommonTargetingAdvancedDemographicsDropdownEditor',['invariant','AdsCommonTargetingActions','AdsCommonTargetingSectionMixin','Bootloader','React','TargetingSpecStore'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'AdsCommonTargetingAdvancedDemographicsDropdownEditor',mixins:[c('AdsCommonTargetingSectionMixin')],propTypes:{accountID:i.string.isRequired,targetingID:i.string.isRequired,config:i.object,rowRenderer:i.func,extraData:i.object},getDefaultProps:function(){return {extraData:{}};},componentDidMount:function(){c('Bootloader').loadModules(["AdsTargetingAdvancedDemographicsDropdownEditor.react"],this.updateSectionEditor);},renderSectionEditor:function(){var k=this.getSectionEditor();!this.props.extraData.dao?h(0):void 0;var l=this.getConfigValue(this.props.config.customProperties,'showNewAdvancedDemoOptions',true),m=this.getConfigValue(this.props.config.customProperties,'showFlexibleTargetingDemoOptions',false),n=this.props.targetingID,o=function(q){return function(r){q(r,n);};},p=c('TargetingSpecStore').getValues(['geoLocations','interestedIn','relationshipStatuses','educationStatuses','educationSchools','educationMajors','targetAllGraduationYears','maxGradYear','minGradYear','workEmployers','workPositions','familyStatuses','industries','lifeEvents','politics','income','netWorth','homeType','homeOwnership','homeValue','ethnicAffinity','generation','householdComposition','moms','officeType']);return (c('React').createElement(k,{accountID:this.props.accountID,actions:{changeInterestedIn:o(c('AdsCommonTargetingActions').changeInterestedIn),changeRelationshipStatuses:o(c('AdsCommonTargetingActions').changeRelationshipStatuses),changeEducationStatuses:o(c('AdsCommonTargetingActions').changeEducationStatuses),changeEducationSchools:o(c('AdsCommonTargetingActions').changeEducationSchools),changeEducationMajors:o(c('AdsCommonTargetingActions').changeEducationMajors),changeMaxGradYear:o(c('AdsCommonTargetingActions').changeMaxGradYear),changeMinGradYear:o(c('AdsCommonTargetingActions').changeMinGradYear),changeTargetAllGraduationYears:o(c('AdsCommonTargetingActions').changeTargetAllGraduationYears),changeWorkEmployers:o(c('AdsCommonTargetingActions').changeWorkEmployers),changeWorkPositions:o(c('AdsCommonTargetingActions').changeWorkPositions),changeFamilyStatuses:o(c('AdsCommonTargetingActions').changeFamilyStatuses),changeIndustries:o(c('AdsCommonTargetingActions').changeIndustries),changeLifeEvents:o(c('AdsCommonTargetingActions').changeLifeEvents),changePolitics:o(c('AdsCommonTargetingActions').changePolitics),changeIncome:o(c('AdsCommonTargetingActions').changeIncome),changeNetWorth:o(c('AdsCommonTargetingActions').changeNetWorth),changeHomeType:o(c('AdsCommonTargetingActions').changeHomeType),changeHomeOwnership:o(c('AdsCommonTargetingActions').changeHomeOwnership),changeHomeValue:o(c('AdsCommonTargetingActions').changeHomeValue),changeGeneration:o(c('AdsCommonTargetingActions').changeGeneration),changeHouseholdComposition:o(c('AdsCommonTargetingActions').changeHouseholdComposition),changeMoms:o(c('AdsCommonTargetingActions').changeMoms),changeOfficeType:o(c('AdsCommonTargetingActions').changeOfficeType),changeEthnicAffinity:o(c('AdsCommonTargetingActions').changeEthnicAffinity)},dao:this.props.extraData.dao,oneColumn:this.props.extraData.oneColumn,rowRenderer:this.props.rowRenderer,showFlexibleTargetingDemoOptions:m,showNewAdvancedDemoOptions:l,size:this.props.size,targetingData:p,width:this.getDefaultWidth()}));}});f.exports=j;},null);
__d('AdsCommonTargetingAgeEditor',['AdsCommonTargetingActions','AdsCommonTargetingSectionMixin','AdsCreationConfig','TargetingSpecStore','Bootloader','React'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'AdsCommonTargetingAgeEditor',propTypes:{targetingID:h.string.isRequired,rowRenderer:h.func,extraData:h.object},getDefaultProps:function(){return {extraData:{}};},mixins:[c('AdsCommonTargetingSectionMixin')],componentDidMount:function(){c('Bootloader').loadModules(["AdsTargetingAgeEditorContainer.react"],this.updateSectionEditor);},renderSectionEditor:function(){var j=this.getSectionEditor(),k=this.props.targetingID,l=this.getDefaultTooltip(),m=this.getConfigValue(this.props.config.customProperties,'suggestedAgeRange'),n=c('TargetingSpecStore').getValue('ageMin'),o=n?n:this.getConfigValue(this.props.config.customProperties,'ageMin',c('AdsCreationConfig').minAgeDefault);return (c('React').createElement(j,babelHelpers['extends']({},this.props.extraData.tooltip,{ageMax:c('TargetingSpecStore').getValue('ageMax'),ageMin:o,ageMinLimit:Math.max(c('TargetingSpecStore').getValue('ageMinLimit')||c('AdsCreationConfig').minAge,this.getConfigValue(this.props.config.customProperties,'ageMinLimit',c('AdsCreationConfig').minAge)),changeAgeMaxAndAgeMin:function(p,q){c('AdsCommonTargetingActions').changeAgeMaxAndAgeMin(p,q,k);},insightsLink:this.props.extraData.insightsLink,oneColumn:this.props.extraData.oneColumn,rowRenderer:this.props.rowRenderer,size:this.props.extraData.size,suggestedAgeRange:m,tooltip:l,width:this.getDefaultWidth()})));}});f.exports=i;},null);
__d('AdsCommonTargetingAppTargetEditor',['AdsAPITargetAppInstallState','AdsCommonTargetingActions','AdsCommonTargetingSectionMixin','Bootloader','React','TargetingSpecStore'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'AdsCommonTargetingAppTargetEditor',propTypes:{targetingID:h.string.isRequired,rowRenderer:h.func,extraData:h.object},getDefaultProps:function(){return {extraData:{}};},mixins:[c('AdsCommonTargetingSectionMixin')],componentDidMount:function(){c('Bootloader').loadModules(["AdsTargetingAppTargetEditor.react"],this.updateSectionEditor);},renderSectionEditor:function(){var j=this.getSectionEditor(),k=c('TargetingSpecStore').getValue('appInstallState')||c('AdsAPITargetAppInstallState').NONE;return (c('React').createElement(j,{changeAppTarget:this._changeAppTarget,checked:k===c('AdsAPITargetAppInstallState').INSTALLED,oneColumn:this.props.extraData.oneColumn,rowRenderer:this.props.rowRenderer,size:this.props.size,width:this.getDefaultWidth()}));},_changeAppTarget:function(j){this.props.extraData.controller.clearMixedStateForComponent(this.props.config);var k=this.props.targetingID,l=j?c('AdsAPITargetAppInstallState').INSTALLED:null;c('AdsCommonTargetingActions').changeAppInstallState(l,k);}});f.exports=i;},null);
__d('AdsCommonTargetingAudienceEditor',['invariant','AdsAPIPromotedObjectFields','AdsCommonTargetingActions','AdsCommonTargetingSectionMixin','Bootloader','React','TargetingSpecStore','getByPath'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'AdsCommonTargetingAudienceEditor',mixins:[c('AdsCommonTargetingSectionMixin')],propTypes:{config:i.object.isRequired,extraData:i.object.isRequired,rowRenderer:i.func,targetingID:i.string.isRequired},getDefaultProps:function(){return {extraData:{}};},componentDidMount:function(){c('Bootloader').loadModules(["AdsTargetingAudienceEditor.react"],this.updateSectionEditor);},renderSectionEditor:function(){!this.props.extraData.dao?h(0):void 0;!this.props.extraData.accountID?h(0):void 0;var k=this.getSectionEditor(),l=this.getConfigValue(this.props.config.customProperties,'defaultMobileApp',null),m=this.getConfigValue(this.props.config.customProperties,'disableWCA',false),n=this.getConfigValue(this.props.config.customProperties,'directSales',false);if(c('getByPath')(this.props.config,['customProperties','isHide']))return null;var o=c('TargetingSpecStore').getValue('pageTypes');return (c('React').createElement(k,{accountID:this.props.extraData.accountID,actions:{changeCustomAudiences:this.onChangeCustomAudiences,excludeAudience:this.onExcludeAudience,includeAudience:this.onIncludeAudience,removeAudience:this.onRemoveAudience,resetAllAudiences:this.onResetAllAudiences},alwaysVisible:this.props.extraData.alwaysShowAudienceEditor,bulkPageID:c('getByPath')(this.props.extraData,['promotedObject',c('AdsAPIPromotedObjectFields').PAGE_ID]),customAudiences:c('TargetingSpecStore').getValue('customAudiences')||[],dao:this.props.extraData.dao,defaultMobileApp:l,directSales:n,disableWCA:m,excludedCustomAudiences:c('TargetingSpecStore').getValue('excludedCustomAudiences')||[],oneColumn:this.props.extraData.oneColumn,pageTypes:o,rowRenderer:this.props.rowRenderer,size:this.props.size,tosAccepted:this.props.extraData.tosAccepted||{},width:this.getDefaultWidth()}));},onIncludeAudience:function(k){c('AdsCommonTargetingActions').includeAudience(c('TargetingSpecStore').getValue('customAudiences')||[],c('TargetingSpecStore').getValue('excludedCustomAudiences')||[],k,this.props.targetingID);},onExcludeAudience:function(k){c('AdsCommonTargetingActions').excludeAudience(c('TargetingSpecStore').getValue('customAudiences')||[],c('TargetingSpecStore').getValue('excludedCustomAudiences')||[],k,this.props.targetingID);},onRemoveAudience:function(k){c('AdsCommonTargetingActions').removeAudience(c('TargetingSpecStore').getValue('customAudiences')||[],c('TargetingSpecStore').getValue('excludedCustomAudiences')||[],k,this.props.targetingID);},onChangeCustomAudiences:function(k){c('AdsCommonTargetingActions').changeCustomAudiences(k,this.props.targetingID);},onResetAllAudiences:function(){c('AdsCommonTargetingActions').resetAllAudiences(this.props.targetingID);}});f.exports=j;},null);
__d('AdsCommonTargetingBehaviorsEditor',['invariant','AdsCommonTargetingActions','AdsCommonTargetingSectionMixin','Bootloader','React','TargetingSpecStore'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'AdsCommonTargetingBehaviorsEditor',mixins:[c('AdsCommonTargetingSectionMixin')],propTypes:{accountID:i.string.isRequired,targetingID:i.string.isRequired,config:i.object,extraData:i.object,rowRenderer:i.func},getDefaultProps:function(){return {extraData:{}};},componentDidMount:function(){c('Bootloader').loadModules(["AdsTargetingBehaviorsEditor.react"],this.updateSectionEditor);},renderSectionEditor:function(){!this.props.extraData.dao?h(0):void 0;var k=this.getSectionEditor(),l=this.props.targetingID,m=this.getConfigValue(this.props.config.customProperties,'filterPartnerData',false),n=this.getConfigValue(this.props.config.customProperties,'showWhiteBox',true);return (c('React').createElement(k,{accountID:this.props.accountID,actions:{changeBehaviors:function(o){c('AdsCommonTargetingActions').changeBehaviors(o,l);}},dao:this.props.extraData.dao,deltaObjectID:this.props.targetingID,filterPartnerData:m,oneColumn:this.props.extraData.oneColumn,rowRenderer:this.props.rowRenderer,showWhiteBox:n,size:this.props.size,targetingData:{behaviors:c('TargetingSpecStore').getValue('behaviors')}}));}});f.exports=j;},null);
__d('AdsCommonTargetingCategoriesEditor',['invariant','AdsCommonTargetingActions','AdsCommonTargetingSectionMixin','Bootloader','React','TargetingSpecStore'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'AdsCommonTargetingCategoriesEditor',mixins:[c('AdsCommonTargetingSectionMixin')],propTypes:{targetingID:i.string.isRequired,config:i.object,extraData:i.object,rowRenderer:i.func},getDefaultProps:function(){return {extraData:{}};},componentDidMount:function(){c('Bootloader').loadModules(["AdsTargetingCategoriesEditor.react"],this.updateSectionEditor);},renderSectionEditor:function(){var k=this.getSectionEditor(),l=this.getConfigValue(this.props.config.customProperties,'showWhiteBox',true);!this.props.extraData.dao?h(0):void 0;!this.props.extraData.accountID?h(0):void 0;var m=this.props.targetingID;return (c('React').createElement(k,{accountID:this.props.extraData.accountID,actions:{changeUserAdclusters:function(n){c('AdsCommonTargetingActions').changeUserAdclusters(n,m);}},dao:this.props.extraData.dao,deltaObjectID:this.props.targetingID,hideMigratedPC:this.getConfigValue(this.props.config.customProperties,'hideMigratedPC',true),oneColumn:this.props.extraData.oneColumn,privatePCOnly:this.getConfigValue(this.props.config.customProperties,'showPrivatePCOnly',true),rowRenderer:this.props.rowRenderer,showWhiteBox:l,size:this.props.size,targetingData:{userAdclusters:c('TargetingSpecStore').getValue('userAdclusters')},width:this.getDefaultWidth()}));}});f.exports=j;},null);
__d('AdsAPIConnectionObjectPaths',['AdsAPIConnectionObjectFields','generatePaths'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=[{pathKeys:[],expandsTo:c('AdsAPIConnectionObjectFields')}],i=c('generatePaths')(h);f.exports=i;},null);
__d('ApiPagePaths',['ApiPageFields','generatePaths'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={DATA:'data'},i=[{pathKeys:[],expandsTo:c('ApiPageFields')},{pathKeys:['PICTURE'],expandsTo:h},{pathKeys:['PICTURE','DATA'],expandsTo:{URL:'url'}},{pathKeys:['USERPERMISSIONS'],expandsTo:h},{pathKeys:['BUSINESSPROJECTS'],expandsTo:h}],j=c('generatePaths')(i);f.exports=j;},null);
__d('AdsConnectionObjectUtils',['fbt','AdsAPIConnectionObjectPaths','AdsDestinationTypes','ApiPagePaths','ads-app-platforms','getByPath'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('ads-app-platforms').APP_PLATFORM,j={isPage:function(k){var l=c('getByPath')(k,c('AdsAPIConnectionObjectPaths').OBJECT_TYPE);return (l===c('AdsDestinationTypes').PAGE||l===c('AdsDestinationTypes').PLACE||l===c('AdsDestinationTypes').EXTERNAL_WEB_PAGE||l===c('AdsDestinationTypes').PAGE_AND_PLACE);},isApp:function(k){return c('getByPath')(k,c('AdsAPIConnectionObjectPaths').OBJECT_TYPE)===c('AdsDestinationTypes').APP;},isEvent:function(k){return c('getByPath')(k,c('AdsAPIConnectionObjectPaths').OBJECT_TYPE)===c('AdsDestinationTypes').EVENT;},isViewerEventAdmin:function(k){return c('getByPath')(k,c('AdsAPIConnectionObjectPaths').EVENT_IS_VIEWER_ADMIN,false);},getTabList:function(k,l,m){var n={};for(var o in l)if(l.hasOwnProperty(o)){var p=o.match(/\?sk=(\w+)/);if(!p||m.indexOf(p[1])<0)n[o]=l[o];}var q=Object.keys(n).map(function(r){return {text:n[r],value:r};});q.unshift({text:h._("Default"),value:k});return q;},pageToConnectionObject:function(k){return {id:c('getByPath')(k,c('ApiPagePaths').ID),name:c('getByPath')(k,c('ApiPagePaths').NAME),picture:c('getByPath')(k,c('ApiPagePaths').PICTURE.DATA.URL),url:c('getByPath')(k,c('ApiPagePaths').LINK),type:c('AdsDestinationTypes').PAGE};},supportsContextualAppAds:function(k){var l=c('getByPath')(k,c('AdsAPIConnectionObjectPaths').TYPE);if(l!==c('AdsDestinationTypes').APP)return false;var m=c('getByPath')(k,c('AdsAPIConnectionObjectPaths').SUPPORTED_PLATFORMS)||[];return m.some(function(n){return (n!==i.WEB&&n!==i.CANVAS);});}};f.exports=j;},null);
__d('AdsLoadStateUtils',['invariant','AdsLoadState','LoadObject','Map'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i={isLoading:function(j){return j.loadState===c('AdsLoadState').LOADING;},isLoaded:function(j){return !!j&&j.loadState===c('AdsLoadState').LOADED;},isDeleting:function(j){return j.loadState===c('AdsLoadState').DELETING;},isError:function(j){return !!j&&j.loadState===c('AdsLoadState').ERROR;},enforceLoaded:function(j){!(j.loadState===c('AdsLoadState').LOADED)?h(0):void 0;return j;},anyLoading:function(){for(var j=arguments.length,k=Array(j),l=0;l<j;l++)k[l]=arguments[l];return i._anyHasLoadState(c('AdsLoadState').LOADING,k);},anyLoaded:function(){for(var j=arguments.length,k=Array(j),l=0;l<j;l++)k[l]=arguments[l];return i._anyHasLoadState(c('AdsLoadState').LOADED,k);},anyError:function(){for(var j=arguments.length,k=Array(j),l=0;l<j;l++)k[l]=arguments[l];return i._anyHasLoadState(c('AdsLoadState').ERROR,k);},allLoaded:function(){for(var j=arguments.length,k=Array(j),l=0;l<j;l++)k[l]=arguments[l];return i._allHaveLoadState(c('AdsLoadState').LOADED,k);},mergeLoadStates:function(j){var k=j.reduce(function(l,m){return Math.min(l,i.toIndex(m));},i.toIndex(c('AdsLoadState').LOADED));return i.fromIndex(k);},mergeLoadStatesForMap:function(j){var k=i.toIndex(c('AdsLoadState').LOADED);j.forEach(function(l){k=Math.min(k,i.toIndex(l.loadState));});return i.fromIndex(k);},_allHaveLoadState:function(j,k){return k.every(function(l){if(!l)return true;var m=l.values(),n=m.next();while(!n.done){if(n.value&&n.value.loadState!==j)return false;n=m.next();}return true;});},_anyHasLoadState:function(j,k){return k.some(function(l){if(!l)return false;var m=l.values(),n=m.next();while(!n.done){if(n.value&&n.value.loadState===j)return true;n=m.next();}return false;});},getError:function(j){return i.isError(j)?j.error:null;},getErrorValues:function(){for(var j=arguments.length,k=Array(j),l=0;l<j;l++)k[l]=arguments[l];var m=k.map(i._getErrorValuesSingleMap);return [].concat.apply([],m);},_getErrorValuesSingleMap:function(j){var k=[];if(j)j.forEach(function(l){var m=i.getError(l);if(m)k.push(m);});return k;},getLoadedValues:function(){for(var j=arguments.length,k=Array(j),l=0;l<j;l++)k[l]=arguments[l];var m=k.map(i.getLoadedValuesSingleMap);return [].concat.apply([],m);},getLoadedValuesSingleMap:function(j){var k=[];if(j)j.forEach(function(l){if(l&&l.loadState===c('AdsLoadState').LOADED)k.push(l);});return k;},toLoadObject:function(j){var k=j.loadState,l=babelHelpers.objectWithoutProperties(j,['loadState']);switch(k){case c('AdsLoadState').ERROR:return c('LoadObject').empty().setError(l.error||new Error());case c('AdsLoadState').LOADED:return c('LoadObject').empty().setValue(l);case c('AdsLoadState').LOADING:return c('LoadObject').loading().setValue(l);case c('AdsLoadState').NOT_LOADED:return c('LoadObject').empty();case c('AdsLoadState').PENDING_WRITE:return c('LoadObject').updating().setValue(l);}},fromIndex:function(j){switch(j){case 0:return c('AdsLoadState').NOT_LOADED;case 1:return c('AdsLoadState').LOADING;case 2:return c('AdsLoadState').PENDING_WRITE;case 3:return c('AdsLoadState').ERROR;case 4:return c('AdsLoadState').LOADED;default:h(0);}},toIndex:function(j){switch(j){case c('AdsLoadState').NOT_LOADED:return 0;case c('AdsLoadState').LOADING:return 1;case c('AdsLoadState').PENDING_WRITE:return 2;case c('AdsLoadState').ERROR:return 3;case c('AdsLoadState').LOADED:return 4;default:h(0);}}};f.exports=i;},null);
__d('AdsPageSelectorStore',['AdsActionTypes','AdsAssetSectionType','AdsDispatcher','ApiPageFields','DefaultSettingsValues','FluxStore','adsBaseStoreMixin','arrayContains','removeFromArray'],function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('FluxStore'));i=h&&h.prototype;function j(){i.constructor.call(this,c('AdsDispatcher'));c('adsBaseStoreMixin')(this);this.$AdsPageSelectorStoreClass5='';this.$AdsPageSelectorStoreClass6='';this.$AdsPageSelectorStoreClass3='';this.$AdsPageSelectorStoreClass1=[];this.$AdsPageSelectorStoreClass7=[];}j.prototype.__onDispatch=function(l){var m=l.action;switch(m.actionType){case c('AdsActionTypes').PAGE.LIST.BATCH_LOADED:this.$AdsPageSelectorStoreClass8(m.pages);break;case c('AdsActionTypes').PAGE.SELECTOR.CHANGE:this.$AdsPageSelectorStoreClass9(m.pageID,m.businessID,m.sectionType);break;case c('AdsActionTypes').PAGE.SELECTOR.BOOKMARK:this.$AdsPageSelectorStoreClass10(m.pageID);break;case c('AdsActionTypes').PAGE.SELECTOR.SEARCH:this.$AdsPageSelectorStoreClass11(m.searchQuery);break;case c('AdsActionTypes').PAGE.SELECTOR.REMOVE:this.$AdsPageSelectorStoreClass12(m.pageID,m.sectionType);break;case c('AdsActionTypes').PAGE.SELECTOR.INIT:this.$AdsPageSelectorStoreClass13(m.pageID,m.businessID,m.section,m.bookmarkedPageIDs||[],m.unownedPageIDs||[]);break;}};j.prototype.getSelectedPageID=function(){return this.$AdsPageSelectorStoreClass5;};j.prototype.getSelectedBusinessID=function(){return this.$AdsPageSelectorStoreClass4;};j.prototype.getSelectedSectionType=function(){return this.$AdsPageSelectorStoreClass6;};j.prototype.getSearchQuery=function(){return this.$AdsPageSelectorStoreClass3;};j.prototype.getUnownedPageIDs=function(){return this.$AdsPageSelectorStoreClass7;};j.prototype.getBookmarkedPageIDs=function(){return this.$AdsPageSelectorStoreClass1;};j.prototype.$AdsPageSelectorStoreClass9=function(l,m,n){this.$AdsPageSelectorStoreClass5=l;this.$AdsPageSelectorStoreClass4=m;this.$AdsPageSelectorStoreClass6=n;if(n===c('AdsAssetSectionType').SEARCH){this.$AdsPageSelectorStoreClass3='';this.$AdsPageSelectorStoreClass6=c('AdsAssetSectionType').UNOWNED;if(!c('arrayContains')(this.$AdsPageSelectorStoreClass7,l))this.$AdsPageSelectorStoreClass7.push(l);}this.__emitChange();};j.prototype.$AdsPageSelectorStoreClass10=function(l){if(!c('arrayContains')(this.$AdsPageSelectorStoreClass1,l)){this.$AdsPageSelectorStoreClass1.push(l);this.__emitChange();}};j.prototype.$AdsPageSelectorStoreClass11=function(l){this.$AdsPageSelectorStoreClass3=l;this.__emitChange();};j.prototype.$AdsPageSelectorStoreClass8=function(l){if(!this.$AdsPageSelectorStoreClass5&&l.length>0){var m=l[0];this.$AdsPageSelectorStoreClass5=m.id;var n=m[c('ApiPageFields').BUSINESS];if(n&&n.id)this.$AdsPageSelectorStoreClass4=n.id;this.$AdsPageSelectorStoreClass6=c('AdsAssetSectionType').OWNED;this.__emitChange();}};j.prototype.$AdsPageSelectorStoreClass12=function(l,m){switch(m){case c('AdsAssetSectionType').BOOKMARKED:c('removeFromArray')(this.$AdsPageSelectorStoreClass1,l);if(l===this.$AdsPageSelectorStoreClass5&&this.$AdsPageSelectorStoreClass6===c('AdsAssetSectionType').BOOKMARKED)this.$AdsPageSelectorStoreClass14();break;case c('AdsAssetSectionType').UNOWNED:c('removeFromArray')(this.$AdsPageSelectorStoreClass7,l);if(l===this.$AdsPageSelectorStoreClass5)this.$AdsPageSelectorStoreClass14();break;}this.__emitChange();};j.prototype.$AdsPageSelectorStoreClass14=function(){this.$AdsPageSelectorStoreClass5='';this.$AdsPageSelectorStoreClass4=null;this.$AdsPageSelectorStoreClass6='';};j.prototype.$AdsPageSelectorStoreClass13=function(l,m,n,o,p){this.$AdsPageSelectorStoreClass5=l||'';this.$AdsPageSelectorStoreClass4=m;this.$AdsPageSelectorStoreClass6=n||c('DefaultSettingsValues').ASSET_SECTION_TYPE;this.$AdsPageSelectorStoreClass1=o;this.$AdsPageSelectorStoreClass7=p;this.__emitChange();};var k=new j();f.exports=k;},null);
__d('AdsConnectionObjectActions',['AdsActionTypes','AdsDispatcher','Map'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={connectionObjectBatchLoaded:function(i){c('AdsDispatcher').handleUpdateFromServerResponse({connectionObjects:i,type:c('AdsActionTypes').CONNECTION_OBJECT.BATCH_LOADED});},connectionObjectBatchLoadError:function(i){c('AdsDispatcher').handleUpdateFromServerResponse({errors:i,type:c('AdsActionTypes').CONNECTION_OBJECT.BATCH_LOAD_ERROR});},connectionObjectInputStringUpdate:function(i,j){c('AdsDispatcher').handleUpdateFromViewAction({inputString:i,connectionObjectIDs:j,type:c('AdsActionTypes').CONNECTION_OBJECT.INPUT_STRING_UPDATE});},connectionObjectListPartialLoad:function(i,j){c('AdsDispatcher').handleUpdateFromServerResponse({accountID:i,connectionObjects:j,type:c('AdsActionTypes').CONNECTION_OBJECT.LIST.PARTIAL_LOAD});},connectionObjectListLoaded:function(i,j){c('AdsDispatcher').handleUpdateFromServerResponse({accountID:i,connectionObjects:j,type:c('AdsActionTypes').CONNECTION_OBJECT.LIST.BATCH_LOADED});},connectionObjectListLoadError:function(i){c('AdsDispatcher').handleUpdateFromServerResponse({accountID:i,type:c('AdsActionTypes').CONNECTION_OBJECT.LIST.BATCH_LOAD_ERROR});},connectionObjectShowDialog:function(i){c('AdsDispatcher').handleUpdateFromViewAction({isDialogShown:i,type:c('AdsActionTypes').CONNECTION_OBJECT.SHOW_DIALOG});}};f.exports=h;},null);
__d('AdsConnectionObjectListDataManager',['AdsAPIAdAccountFields','AdsBaseListDataManager','AdsConnectionObjectActions','AdsGraphAPI','GraphAPIPaging'],function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('AdsBaseListDataManager'));i=h&&h.prototype;j.prototype.loadFor=function(l){c('AdsGraphAPI').getWithGeneralMigration().adaccount(l).edge(c('AdsAPIAdAccountFields').CONNECTIONOBJECTS).get().then(c('GraphAPIPaging').eachPage(function(m){return c('AdsConnectionObjectActions').connectionObjectListPartialLoad(l,m.data);})).done(function(m){return this.__handleSuccess(['load'],l,null,m);}.bind(this),function(m){return this.__handleError(['load'],l,null,m);}.bind(this));};j.prototype.__onBatchLoaded=function(l){l.forEach(function(m,n){c('AdsConnectionObjectActions').connectionObjectListLoaded(n,m.data);});};j.prototype.__onBatchLoadError=function(l){l.forEach(function(m,n){c('AdsConnectionObjectActions').connectionObjectListLoadError(n);});};function j(){h.apply(this,arguments);}var k=new j();f.exports=k;},null);
__d('AdsBaseConnectionObjectListStore',['AdsAPIConnectionObjectFields','AdsBaseListStore','AdsLoadState','AdsActionTypes','AdsConnectionObjectListDataManager','abstractMethod'],function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('AdsBaseListStore'));i=h&&h.prototype;j.prototype.getDataManager=function(){return c('AdsConnectionObjectListDataManager');};j.prototype.getSortKey=function(){return c('AdsAPIConnectionObjectFields').NAME;};j.prototype.__onDispatch=function(k){var l=k.action;switch(l.actionType){case c('AdsActionTypes').CONNECTION_OBJECT.LIST.BATCH_LOADED:this.__handleDataFor(l.accountID,this.$AdsBaseConnectionObjectListStore1(l.connectionObjects),c('AdsLoadState').LOADED);break;case c('AdsActionTypes').CONNECTION_OBJECT.LIST.PARTIAL_LOAD:this.__handleDataFor(l.accountID,this.$AdsBaseConnectionObjectListStore1(l.connectionObjects),c('AdsLoadState').LOADING);break;case c('AdsActionTypes').CONNECTION_OBJECT.LIST.BATCH_LOAD_ERROR:this.__handleDataFor(l.accountID,null,c('AdsLoadState').ERROR);break;}};j.prototype.$AdsBaseConnectionObjectListStore1=function(k){return k.filter(this.__filterConnectionObject);};j.prototype.__filterConnectionObject=function(k){return c('abstractMethod')('AdsBaseConnectionObjectListStore','__filterConnectionObject');};function j(){h.apply(this,arguments);}f.exports=j;},null);
__d('AdsPromotableObjectListStore',['AdsBaseConnectionObjectListStore'],function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('AdsBaseConnectionObjectListStore'));i=h&&h.prototype;j.prototype.__filterConnectionObject=function(l){return true;};function j(){h.apply(this,arguments);}var k=new j();f.exports=k;},null);
__d('AdsConnectionObjectDataManager',['AdsAPIAdAccountFields','AdsBaseDataManager','AdsConnectionObjectActions','AdsGraphAPI','GraphAPIPaging','Map'],function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('AdsBaseDataManager'));i=h&&h.prototype;j.prototype.loadAllFor=function(k,l){if(l.length===0)return;c('AdsGraphAPI').getWithGeneralMigration().adaccount(k).edge(c('AdsAPIAdAccountFields').CONNECTIONOBJECTS).get({extra_fbids:l.join(','),extra_only:true}).then(c('GraphAPIPaging').eachPage(function(m){return this.$AdsConnectionObjectDataManager1(m.data);}.bind(this))).done(function(m){return this.__processResponse(m,l,function(n){return n.id;},function(n){return this.__getObjectError(n,null);}.bind(this),true);}.bind(this),function(m){return l.forEach(function(n){return this.__handleError(['load'],n,null,m);}.bind(this));}.bind(this));};j.prototype.loadFor=function(k,l){this.loadAllFor(k,[l]);};j.prototype.$AdsConnectionObjectDataManager1=function(k){var l=new (c('Map'))();k.forEach(function(m){return l.set(m.id,m);});c('AdsConnectionObjectActions').connectionObjectBatchLoaded(l);};j.prototype.__onBatchLoaded=function(k){c('AdsConnectionObjectActions').connectionObjectBatchLoaded(k);};j.prototype.__onBatchLoadError=function(k){c('AdsConnectionObjectActions').connectionObjectBatchLoadError(k);};function j(){h.apply(this,arguments);}f.exports=new j();},null);
__d('AdsBaseConnectionObjectStore',['invariant','AdsBaseDataStore','AdsLoadState','AdsActionTypes','AdsConnectionObjectDataManager','Map','abstractMethod'],function a(b,c,d,e,f,g,h){'use strict';var i,j;if(c.__markCompiled)c.__markCompiled();i=babelHelpers.inherits(k,c('AdsBaseDataStore'));j=i&&i.prototype;k.prototype.getDataManager=function(){return c('AdsConnectionObjectDataManager');};k.prototype.get=function(l){h(0);};k.prototype.getAll=function(l){h(0);};k.prototype.getFor=function(l,m){return this.getAllFor(l,[m]).get(m);};k.prototype.getAllFor=function(l,m){return this.__getAllConnectionObjectsFor(l,m);};k.prototype.__getAllConnectionObjectsFor=function(l,m){var n=this.__updateLoading(m);if(n.length>0)c('AdsConnectionObjectDataManager').loadAllFor(l,n);return this.getAllCached(m);};k.prototype.__onDispatch=function(l){var m=l.action;switch(m.type){case c('AdsActionTypes').CONNECTION_OBJECT.BATCH_LOADED:this.__handleLoadedData(m.connectionObjects);break;case c('AdsActionTypes').CONNECTION_OBJECT.BATCH_LOAD_ERROR:this.__handleData(m.errors,c('AdsLoadState').ERROR);break;}};k.prototype.__computeStorageKey=function(l,m){return l+'_'+m;};k.prototype.__handleLoadedData=function(l){var m=new (c('Map'))(),n=new (c('Map'))();l.forEach(function(o,p){if(this.__filterConnectionObject(o)){m.set(p,o);}else n.set(p,o);}.bind(this));this.__handleData(m,c('AdsLoadState').LOADED);this.__handleData(n,c('AdsLoadState').ERROR);};k.prototype.__filterConnectionObject=function(l){return c('abstractMethod')('AdsBaseConnectionObjectStore','__filterConnectionObject');};function k(){i.apply(this,arguments);}f.exports=k;},null);
__d('AdsTargetingConnectionsLabels',['fbt'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();f.exports={addConnection:h._("Add a connection type"),advancedCombinations:h._("Advanced Combinations"),apps:h._("Apps"),connectedToApp:h._("People who used your app"),friendsConnectedToApp:h._("Friends of people who used your app"),excludeConnectedToApp:h._("Exclude people who used your app"),events:h._("Events"),connectedToEvent:h._("People who responded to your event"),friendsConnectedToEvent:h._("Friends of people who responded to your event"),excludeConnectedToEvent:h._("Exclude people who already responded to your event"),pages:h._("Facebook Pages"),connectedToPage:h._("People who like your Page"),friendsConnectedToPage:h._("Friends of people who like your Page"),excludeConnectedToPage:h._("Exclude people who like your Page"),videos:h._("Videos"),viewedThreeSeconds:h._("People who viewed at least 3 seconds of your video"),viewedNintyFivePercent:h._("People who viewed at least 95\u0025 of your video"),excludeViewedThreeSeconds:h._("Exclude people who viewed at least 3 seconds of your video"),excludeViewedNintyFivePercent:h._("Exclude people who viewed at least 95\u0025 of your video"),ads:h._("Ads"),impressionedAd:h._("People who had an impression of your ad at least once"),dwelledOnAd:h._("People who have dwelled on your ad"),clickedOnAd:h._("People who have clicked on your ad"),excludeImpressionedAd:h._("Exclude people who had at least one impression of your ad"),excludeDwelledOnAd:h._("Exclude people who have dwelled on your ad"),excludeClickedOnAd:h._("Exclude people who have clicked your ad"),pageEventViewers:h._("People who viewed any event of your page"),pageEventAttendees:h._("People who responded to any event of your page"),connections:h._("Connections"),connectionsHelplink:h._("Reach people who have a specific kind of connection to your Page, app or event. This will narrow your audience to include only people with that specific connection who also meet the other targeting categories you've selected."),addApp:h._("Add an app"),addEvent:h._("Add an event"),addPage:h._("Add a Page"),addAnotherApp:h._("Add another app"),addAnotherEvent:h._("Add another event"),addAnotherPage:h._("Add another Page"),addAppOrEventOrPage:h._("Add a Page, app, or event"),addAppOrPageOrEventOrEventID:h._("Add a Page, app, event or event ID"),peopleConnectedTo:h._("People who are connected to"),peopleConnectedToHelpLink:h._("Leave this field blank unless you want to narrow down your audience to only the people connected to your Page, app or event."),excludePeopleConnectedTo:h._("Exclude people who are connected to"),excludePeopleConnectedToHelpLink:h._("Leave this field blank unless you want to narrow down your audience to only the people NOT connected to your Page, app or event."),friendsOfPeopleConnectedTo:h._("Friends of people who are connected to"),friendsOfPeopleConnectedToHelpLink:h._("Leave this field blank unless you want to narrow down your audience to only the people whose friends are connected to your Page, app or event."),connectionsSectionNUX:h._("Now you can reach people who view your videos in addition to interacting with your Pages, apps or events."),connectionsSectionWithoutVideoNUX:h._("Now it's easier to reach people who like your Page, joined your event or used your app. You can also exclude connections or show ads to their friends.")};},null);
__d('AdsTargetingConnectionsMenuOptions',['AdsTargetingConnectionsLabels'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h='connectedToApp',i='connectedToEvent',j='connectedToPage',k='excludeConnectedToApp',l='excludeConnectedToEvent',m='excludeConnectedToPage',n='friendsConnectedToApp',o='friendsConnectedToEvent',p='friendsConnectedToPage',q='viewedThreeSeconds',r='viewedNintyFivePercent',s='excludeViewedThreeSeconds',t='excludeViewedNintyFivePercent',u='impressionedAd',v='dwelledOnAd',w='clickedOnAd',x='excludeImpressionedAd',y='excludeDwelledOnAd',z='excludeClickedOnAd',aa='menu_separator',ba='pageEventViewers',ca='pageEventAttendees',da={ADVANCED:'advanced',ALL:'all',APPS:'apps',EVENTS:'events',EVENTS_ENGAGEMENT:'events_engagement',NONE:'none',PAGES:'pages',VIDEOS:'videos',ADS:'ads'},ea={name:c('AdsTargetingConnectionsLabels').advancedCombinations,toggleName:'advancedCombinations'},fa={name:c('AdsTargetingConnectionsLabels').apps,toggleName:'apps',children:[{name:c('AdsTargetingConnectionsLabels').connectedToApp,toggleName:h},{name:c('AdsTargetingConnectionsLabels').friendsConnectedToApp,toggleName:n},{name:c('AdsTargetingConnectionsLabels').excludeConnectedToApp,toggleName:k}]},ga={name:c('AdsTargetingConnectionsLabels').events,toggleName:'events',children:[{name:c('AdsTargetingConnectionsLabels').connectedToEvent,toggleName:i},{name:c('AdsTargetingConnectionsLabels').friendsConnectedToEvent,toggleName:o},{name:c('AdsTargetingConnectionsLabels').excludeConnectedToEvent,toggleName:l}]},ha={name:c('AdsTargetingConnectionsLabels').events,toggleName:'events_with_engagement',children:[{name:c('AdsTargetingConnectionsLabels').connectedToEvent,toggleName:i},{name:c('AdsTargetingConnectionsLabels').friendsConnectedToEvent,toggleName:o},{name:c('AdsTargetingConnectionsLabels').excludeConnectedToEvent,toggleName:l},{name:aa},{name:c('AdsTargetingConnectionsLabels').pageEventViewers,toggleName:ba},{name:c('AdsTargetingConnectionsLabels').pageEventAttendees,toggleName:ca}]},ia={name:c('AdsTargetingConnectionsLabels').pages,toggleName:'events_engagement',children:[{name:c('AdsTargetingConnectionsLabels').pageEventViewers,toggleName:ba},{name:c('AdsTargetingConnectionsLabels').pageEventAttendees,toggleName:ca}]},ja={name:c('AdsTargetingConnectionsLabels').pages,toggleName:'pages',children:[{name:c('AdsTargetingConnectionsLabels').connectedToPage,toggleName:j},{name:c('AdsTargetingConnectionsLabels').friendsConnectedToPage,toggleName:p},{name:c('AdsTargetingConnectionsLabels').excludeConnectedToPage,toggleName:m}]},ka={name:c('AdsTargetingConnectionsLabels').videos,toggleName:'videos',children:[{name:c('AdsTargetingConnectionsLabels').viewedThreeSeconds,toggleName:q},{name:c('AdsTargetingConnectionsLabels').viewedNintyFivePercent,toggleName:r},{name:aa},{name:c('AdsTargetingConnectionsLabels').excludeViewedThreeSeconds,toggleName:s},{name:c('AdsTargetingConnectionsLabels').excludeViewedNintyFivePercent,toggleName:t}]},la={name:c('AdsTargetingConnectionsLabels').ads,toggleName:'ads',children:[{name:c('AdsTargetingConnectionsLabels').impressionedAd,toggleName:u},{name:c('AdsTargetingConnectionsLabels').dwelledOnAd,toggleName:v},{name:c('AdsTargetingConnectionsLabels').clickedOnAd,toggleName:w},{name:aa},{name:c('AdsTargetingConnectionsLabels').excludeImpressionedAd,toggleName:x},{name:c('AdsTargetingConnectionsLabels').excludeDwelledOnAd,toggleName:y},{name:c('AdsTargetingConnectionsLabels').excludeClickedOnAd,toggleName:z}]},ma=[ja,fa,ia,ga,ka,la,{name:aa},ea],na={VIDEO_VIEW_ACTION:'video_view',VIDEO_COMPLETED_ACTION:'video_completed',FBEVENT_VIEW_ACTION:'fbevent_view',FBEVENT_RESPONSE_ACTION:'fbevent_response',AD_IMPRESSION_ACTION:'ad_impression',AD_DWELL_ACTION:'ad_dwell_time',AD_CLICK_ACTION:'ad_click'};f.exports={connectionStatuses:da,menuOptions:{advancedOptions:ea,appOptions:fa,eventOptions:ga,eventWithEngagementOptions:ha,eventEngagementOptions:ia,pageOptions:ja,videoOptions:ka,adsOptions:la,allOptions:ma},optionName:{connectedToApp:h,connectedToEvent:i,connectedToPage:j,excludeConnectedToApp:k,excludeConnectedToEvent:l,excludeConnectedToPage:m,friendsConnectedToApp:n,friendsConnectedToEvent:o,friendsConnectedToPage:p,menuSeparator:aa,viewedThreeSeconds:q,viewedNintyFivePercent:r,excludeViewedThreeSeconds:s,excludeViewedNintyFivePercent:t,impressionedAd:u,dwelledOnAd:v,clickedOnAd:w,excludeImpressionedAd:x,excludeDwelledOnAd:y,excludeClickedOnAd:z,pageEventViewers:ba,pageEventAttendees:ca},connectionsType:{excludedConnection:'excludedConnections',includedConnection:'includedConnections',friendsOfConnection:'friendsOfConnections'},engagementActions:na};},null);
__d('AdsEngagementSpecsUIUtils',['AdsTargetingConnectionsMenuOptions'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('AdsTargetingConnectionsMenuOptions').connectionStatuses,i=c('AdsTargetingConnectionsMenuOptions').engagementActions,j=c('AdsTargetingConnectionsMenuOptions').optionName,k={ENGAGEMENT_SPECS:'ENGAGEMENT_SPECS',EXCLUDED_ENGAGEMENT_SPECS:'EXCLUDED_ENGAGEMENT_SPECS'};function l(z,aa){return z.map(function(ba){if(ba&&ba['action.type']&&ba['action.type']===aa)return ba.page_id;});}function m(z,aa){switch(z){case k.ENGAGEMENT_SPECS:switch(aa){case i.VIDEO_VIEW_ACTION:return j.viewedThreeSeconds;case i.VIDEO_COMPLETED_ACTION:return j.viewedNintyFivePercent;case i.AD_IMPRESSION_ACTION:return j.impressionedAd;case i.AD_DWELL_ACTION:return j.dwelledOnAd;case i.AD_CLICK_ACTION:return j.clickedOnAd;}break;case k.EXCLUDED_ENGAGEMENT_SPECS:switch(aa){case i.VIDEO_VIEW_ACTION:return j.excludeViewedThreeSeconds;case i.VIDEO_COMPLETED_ACTION:return j.excludeViewedNintyFivePercent;case i.AD_IMPRESSION_ACTION:return j.excludeImpressionedAd;case i.AD_DWELL_ACTION:return j.excludeDwelledOnAd;case i.AD_CLICK_ACTION:return j.excludeClickedOnAd;}break;}return null;}function n(z,aa){var ba=[],ca=[];if(!z.length)return {engagementSpecs:ba,excludedEngagementSpecs:ca};switch(aa){case j.pageEventViewers:ba=z.map(function(da){return {'action.type':i.FBEVENT_VIEW_ACTION,page_id:da.id};});break;case j.pageEventAttendees:ba=z.map(function(da){return {'action.type':i.FBEVENT_RESPONSE_ACTION,page_id:da.id};});break;case j.viewedThreeSeconds:ba=o(z);break;case j.viewedNintyFivePercent:ba=p(z);break;case j.impressionedAd:ba=q(z);break;case j.dwelledOnAd:ba=r(z);break;case j.clickedOnAd:ba=s(z);break;case j.excludeViewedThreeSeconds:ca=o(z);break;case j.excludeViewedNintyFivePercent:ca=p(z);break;case j.excludeImpressionedAd:ca=q(z);break;case j.excludeDwelledOnAd:ca=r(z);break;case j.excludeClickedOnAd:ca=s(z);break;}return {engagementSpecs:ba,excludedEngagementSpecs:ca};}function o(z){return z.map(function(aa){return {'action.type':i.VIDEO_VIEW_ACTION,post:aa.id};});}function p(z){return z.map(function(aa){return {'action.type':i.VIDEO_COMPLETED_ACTION,post:aa.id};});}function q(z){return z.map(function(aa){return babelHelpers['extends']({},aa,{'action.type':i.AD_IMPRESSION_ACTION,impression_count:1,retention_seconds:2592000});});}function r(z){return z.map(function(aa){return babelHelpers['extends']({},aa,{'action.type':i.AD_DWELL_ACTION,dwell_time:3,retention_seconds:2592000});});}function s(z){return z.map(function(aa){return babelHelpers['extends']({},aa,{'action.type':i.AD_CLICK_ACTION,retention_seconds:2592000});});}function t(z,aa){if(!z||z.length<=0||!aa)return -1;return z.findIndex(function(ba){return (ba['action.type']===aa['action.type']&&ba.post===aa.post&&ba.page_id===aa.page_id&&ba.campaign_group_id===aa.campaign_group_id&&ba.campaign_id===aa.campaign_id&&ba.ad_group_id===aa.ad_group_id&&ba.impression_count===aa.impression_count&&ba.retention_seconds===aa.retention_seconds);});}function u(z){if(!z)return '';switch(z['action.type']){case i.FBEVENT_VIEW_ACTION:return j.pageEventViewers;case i.FBEVENT_RESPONSE_ACTION:return j.pageEventAttendees;}return '';}function v(z,aa){var ba=t(z,aa);if(ba!==-1)z.splice(ba,1);}function w(z){switch(z){case j.viewedThreeSeconds:case j.viewedNintyFivePercent:case j.excludeViewedThreeSeconds:case j.excludeViewedNintyFivePercent:return h.VIDEOS;case j.impressionedAd:case j.dwelledOnAd:case j.clickedOnAd:case j.excludeImpressionedAd:case j.excludeDwelledOnAd:case j.excludeClickedOnAd:return h.ADS;}return null;}function x(z){switch(z){case j.viewedThreeSeconds:case j.viewedNintyFivePercent:case j.impressionedAd:case j.dwelledOnAd:case j.clickedOnAd:return k.ENGAGEMENT_SPECS;case j.excludeViewedThreeSeconds:case j.excludeViewedNintyFivePercent:case j.excludeImpressionedAd:case j.excludeDwelledOnAd:case j.excludeClickedOnAd:return k.EXCLUDED_ENGAGEMENT_SPECS;default:return null;}}function y(z){var aa=Object.keys(z),ba=null;aa.findIndex(function(ca,da){ba=ca;return (z[ba]&&z[ba].menuItems&&z[ba].menuItems.length>0);});return ba;}f.exports={adsEngagementSpecsTypesMap:k,engagementDetailsToEngagementSpecs:n,getCurrentEngagementKey:y,getEngagementType:u,getNewEngagementType:x,getNewSpecIndex:t,getPageIDsOfActionTypeFromEngagementSpecs:l,getSelectedMode:w,getTargetingLabel:m,spliceAnEntry:v};},null);
__d('AdsPromotableObjectStore',['AdsBaseConnectionObjectStore','AdsEngagementSpecsUIUtils','AdsLoadStateUtils','AdsTargetingConnectionsMenuOptions','SearchableEntry'],function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();var j=c('AdsTargetingConnectionsMenuOptions').engagementActions,k=c('AdsTargetingConnectionsMenuOptions').optionName;h=babelHelpers.inherits(l,c('AdsBaseConnectionObjectStore'));i=h&&h.prototype;l.prototype.__filterConnectionObject=function(n){return true;};l.prototype.engagementSpecToEventUIMenuItems=function(n,o,p){var q=null;switch(p){case k.pageEventViewers:q=j.FBEVENT_VIEW_ACTION;break;case k.pageEventAttendees:q=j.FBEVENT_RESPONSE_ACTION;break;}if(!q||!o)return [];var r=c('AdsEngagementSpecsUIUtils').getPageIDsOfActionTypeFromEngagementSpecs(o,q);if(r.length===0)return [];var s=m.getAllFor(n,r),t=c('AdsLoadStateUtils').getLoadedValues(s)||[];return t.map(function(u){return new (c('SearchableEntry'))({uniqueID:u.id,title:u.name,type:u.type});});};l.prototype.getAllFor=function(n,o){return i.__getAllConnectionObjectsFor.call(this,n,o);};function l(){h.apply(this,arguments);}var m=new l();f.exports=m;},null);
__d('AdsStaticSearchSource',['AbstractSearchSource','AdsCreateFlowQueryLimits','FbtResult','SearchableEntry','TokenizeUtil'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();function j(l,m){var n=l.score,o=m.score;if(n===o)return l.getTitle()>m.getTitle()?1:-1;return n<o?1:-1;}h=babelHelpers.inherits(k,c('AbstractSearchSource'));i=h&&h.prototype;function k(l,m){'use strict';i.constructor.call(this);m=m||{};this.$AdsStaticSearchSource1=m;this.$AdsStaticSearchSource2=l;this.$AdsStaticSearchSource3=m.limit;this.$AdsStaticSearchSource4=m.getAllForEmptyQuery;this.$AdsStaticSearchSource5=m.getSubtitle;}k.prototype.searchImpl=function(l,m,n){'use strict';if(!l){if(this.$AdsStaticSearchSource4){m(this.getEntries(this.$AdsStaticSearchSource2,'',n),l);}else m([],l);return;}var o=this.getEntries(this.$AdsStaticSearchSource2,l,n);m(o,l);};k.prototype.getEntries=function(l,m,n){'use strict';var o=m.toLowerCase(),p=[];n=n||{};var q=this.$AdsStaticSearchSource3||c('AdsCreateFlowQueryLimits').TYPEAHEAD_LIMIT;for(var r=0,s;s=l[r];++r){if(n.shouldFilter&&n.filterEntry&&!n.filterEntry(s,n))continue;var t=s.key||s.id||s.name,u=s.name;if(u instanceof c('FbtResult'))u=u.toString();var v;if(!m&&this.$AdsStaticSearchSource4){v=1;}else if(n&&n.searchByID&&m===t){v=5;}else if(o===u.toLowerCase()){v=4;}else if(u.indexOf(m)===0){v=3;}else if(u.toLowerCase().indexOf(o)===0){v=2;}else if(c('TokenizeUtil').isQueryMatch(m,u)){v=1;}else continue;var w=new (c('SearchableEntry'))({uniqueID:t,title:u,auxiliaryData:s.auxiliaryData,subtitle:this.$AdsStaticSearchSource5?this.$AdsStaticSearchSource5(s):'',type:s.type});w.score=v;p.push(w);}var x=this.$AdsStaticSearchSource1.sortEntries||j;p.sort(x);p=p.slice(0,q);return p;};f.exports=k;},null);
__d('ads-destinationType',['fbt','AdsDestinationTypes'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={};i[c('AdsDestinationTypes').EXTERNAL_WEBPAGE]=h._("URL");i[c('AdsDestinationTypes').PAGE]=h._("Page");i[c('AdsDestinationTypes').APP]=h._("Application");i[c('AdsDestinationTypes').EVENT]=h._("Event");i[c('AdsDestinationTypes').GROUP]=h._("Group");i[c('AdsDestinationTypes').REVIEW]=h._("Review");i[c('AdsDestinationTypes').PLACE]=h._("Place");i[c('AdsDestinationTypes').DOMAIN]=h._("Domain");i[c('AdsDestinationTypes').SEARCH]=h._("Search");i[c('AdsDestinationTypes').ENTER_URL]=h._("Search by URL");i[c('AdsDestinationTypes').SEARCH_BY_ID]=h._("Search by Destination ID");var j={};j[c('AdsDestinationTypes').EXTERNAL_WEBPAGE]=h._("URL");j[c('AdsDestinationTypes').PAGE]=h._("Pages");j[c('AdsDestinationTypes').APP]=h._("Applications");j[c('AdsDestinationTypes').EVENT]=h._("Events");j[c('AdsDestinationTypes').GROUP]=h._("Groups");j[c('AdsDestinationTypes').REVIEW]=h._("Reviews");j[c('AdsDestinationTypes').PLACE]=h._("Places");j[c('AdsDestinationTypes').DOMAIN]=h._("Domains");j[c('AdsDestinationTypes').PAGE_AND_PLACE]=h._("Pages and Places");j[c('AdsDestinationTypes').SEARCH]=h._("Search");j[c('AdsDestinationTypes').ENTER_URL]=h._("Search by URL");j[c('AdsDestinationTypes').SEARCH_BY_ID]=h._("Search by Destination ID");f.exports={DEST_TYPE_TO_NAME:i,DEST_TYPE_TO_NAME_PLURAL:j};},null);
__d('AdsConnectionObjectSearchSource',['AdsConnectionObjectUtils','AdsLoadStateUtils','AdsPageSelectorStore','AdsPromotableObjectListStore','AdsPromotableObjectStore','AdsStaticSearchSource','AdsStoreUtils','CurrentUser','Map','Set','ads-destinationType','arrayContains','isNumberLike'],function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();var j=new (c('Map'))();h=babelHelpers.inherits(k,c('AdsStaticSearchSource'));i=h&&h.prototype;k.getInstance=function(l,m){var n=k.getInstanceID(l,m);if(!j.has(n))j.set(n,new k(l,m));return j.get(n);};k.getInstanceID=function(l,m){var n=String(l);if(m&&m.canQueryEvents)n+='_canQueryEvents';return n;};function k(l,m){var n={getSubtitle:function(p){return (c('ads-destinationType').DEST_TYPE_TO_NAME[p.type]);}};i.constructor.call(this,l,n);var o=k.getInstanceID(l,m);if(j.has(o))return j.get(o);if(m)this.$AdsConnectionObjectSearchSource2=m.canQueryEvents;this.$AdsConnectionObjectSearchSource1=l;}k.prototype.searchImpl=function(l,m,n){if(!l){m([],l);return;}var o=new (c('Set'))();c('AdsStoreUtils').promiseAsyncGetForSyncStore(c('AdsPromotableObjectListStore'),function(){return c('AdsPromotableObjectListStore').getFor(this.$AdsConnectionObjectSearchSource1);}.bind(this)).then(function(p){o=new (c('Set'))(p.list);var q=p.list.concat(c('AdsPageSelectorStore').getUnownedPageIDs());if((c('CurrentUser').isEmployee()||this.$AdsConnectionObjectSearchSource2)&&c('isNumberLike')(l)&&!c('arrayContains')(q,l))q.push(l);return c('AdsStoreUtils').promiseAsyncGetForSyncStore(c('AdsPromotableObjectStore'),function(){return c('AdsPromotableObjectStore').getAllFor(this.$AdsConnectionObjectSearchSource1,q);}.bind(this));}.bind(this)).then(function(p){var q=c('AdsLoadStateUtils').getLoadedValues(p),r=q.filter(function(t){return (this.$AdsConnectionObjectSearchSource3(o,t));}.bind(this));n=Object.assign({searchByID:true},n);var s=this.getEntries(r||[],l,n);m(s,l);}.bind(this))['catch'](function(p){m([],l);});};k.prototype.$AdsConnectionObjectSearchSource3=function(l,m){return (l.has(m.id)||c('CurrentUser').isEmployee()&&c('AdsConnectionObjectUtils').isPage(m)||this.$AdsConnectionObjectSearchSource4(m));};k.prototype.$AdsConnectionObjectSearchSource4=function(l){return (this.$AdsConnectionObjectSearchSource2&&c('AdsConnectionObjectUtils').isViewerEventAdmin(l));};f.exports=k;},null);
__d('AdsConnectionsUIExperimentUtils',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(j,k){if(!k||!k.canSeeConnectionsEditorV2||k.isMobileAppEngagementObjective)return false;if(k.canSeeVideoOptions)return true;if(k.canSeeAdsOptions)return true;return k.canSeeConnectionsEditorV2;}var i={shouldShowV2:h};f.exports=i;},null);
__d('AdsCommonTargetingConnectionsEditor',['invariant','AdsCommonTargetingActions','AdsCommonTargetingSectionMixin','AdsConnectionObjectSearchSource','AdsConnectionsUIExperimentUtils','Bootloader','React','TargetingSpecStore'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'AdsCommonTargetingConnectionsEditor',mixins:[c('AdsCommonTargetingSectionMixin')],propTypes:{targetingID:i.string.isRequired,config:i.object,extraData:i.object.isRequired,rowRenderer:i.func},getDefaultProps:function(){return {extraData:{}};},componentDidMount:function(){var k=c('AdsConnectionsUIExperimentUtils').shouldShowV2(this.props.extraData.accountID,this.props.config.customProperties);if(k){c('Bootloader').loadModules(["AdsTargetingConnectionsEditorV2.react"],this.updateSectionEditor);}else c('Bootloader').loadModules(["AdsTargetingConnectionsEditor.react"],this.updateSectionEditor);},renderSectionEditor:function(){var k=this.getSectionEditor();!this.props.extraData.accountID?h(0):void 0;!this.props.extraData.dao?h(0):void 0;!this.props.extraData.destinationData?h(0):void 0;!this.props.extraData.objectiveData?h(0):void 0;var l=this.props.targetingID,m=this.props.config.customProperties&&this.props.config.customProperties.canSeeVideoOptions,n=this.props.config.customProperties&&this.props.config.customProperties.canSeeAdsOptions;return (c('React').createElement(k,{accountID:this.props.extraData.accountID,canQueryEvents:this.getConfigValue(this.props.config.customProperties,'canQueryEvents',false),canSeeAdsOptions:n,canSeeEventEngagementOptions:this.getConfigValue(this.props.config.customProperties,'canSeeEventEngagementOptions',false),canSeeVideoOptions:m,changeConnections:function(o){c('AdsCommonTargetingActions').changeConnections(o,l);},changeEngagements:function(o,p){c('AdsCommonTargetingActions').changeEngagements(o,p,l);},dao:this.props.extraData.dao,destinationData:this.props.extraData.destinationData,objectiveData:this.props.extraData.objectiveData,oneColumn:this.props.extraData.oneColumn,rowRenderer:this.props.rowRenderer,searchSource:c('AdsConnectionObjectSearchSource').getInstance(this.props.extraData.accountID,{canQueryEvents:this.getConfigValue(this.props.config.customProperties,'canQueryEvents',false)}),shouldHideAppConnections:this.getConfigValue(this.props.config.customProperties,'shouldHideAppConnections',false),shouldHideExcludedConnections:this.getConfigValue(this.props.config.customProperties,'shouldHideExcludedConnections',false),shouldHideFriendsOfConnections:this.getConfigValue(this.props.config.customProperties,'shouldHideFriendsOfConnections',false),size:this.props.size,targetingData:{includedConnections:c('TargetingSpecStore').getValue('connections')||[],excludedConnections:c('TargetingSpecStore').getValue('excludedConnections')||[],friendsOfConnections:c('TargetingSpecStore').getValue('friendsOfConnections')||[],engagementSpecs:c('TargetingSpecStore').getValue('engagementSpecs')||[],excludedEngagementSpecs:c('TargetingSpecStore').getValue('excludedEngagementSpecs')||[]},width:this.getDefaultWidth()}));}});f.exports=j;},null);
__d('AdsCommonTargetingDemographicsEditor',['AdsCommonTargetingActions','AdsCommonTargetingSectionMixin','Bootloader','React','TargetingSpecStore'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'AdsCommonTargetingDemographicsEditor',propTypes:{targetingID:h.string.isRequired},mixins:[c('AdsCommonTargetingSectionMixin')],componentDidMount:function(){c('Bootloader').loadModules(["AdsTargetingDemographicsEditor.react"],this.updateSectionEditor);},renderSectionEditor:function(){var j=this.getSectionEditor(),k=this.props.targetingID,l=c('TargetingSpecStore').getValue('genders')||[];return (c('React').createElement(j,{ageMax:c('TargetingSpecStore').getValue('ageMax'),ageMin:c('TargetingSpecStore').getValue('ageMin'),ageMinLimit:c('TargetingSpecStore').getValue('ageMinLimit'),changeAgeMaxAndAgeMin:function(m,n){c('AdsCommonTargetingActions').changeAgeMaxAndAgeMin(m,n,k);},changeGender:function(m){return c('AdsCommonTargetingActions').changeGenders(m,k);},gender:l[0],insightsLink:this.props.extraData.insightsLink,oneColumn:this.props.oneColumn,rowRenderer:this.props.rowRenderer,suggestions:this.props.extraData.demographicSuggestions,tooltip:this.getDefaultTooltip(),width:this.getDefaultWidth()}));}});f.exports=i;},null);
__d('AdsCommonTargetingDynamicLocalLocationEditor',['invariant','AdsCommonTargetingActions','AdsCommonTargetingSectionMixin','LocationConstants','Bootloader','React','Set','TargetingSpecStore'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i={},j=c('React').PropTypes,k=c('React').createClass({displayName:'AdsCommonTargetingDynamicLocalLocationEditor',mixins:[c('AdsCommonTargetingSectionMixin')],propTypes:{accountID:j.string.isRequired,targetingID:j.string.isRequired,config:j.object.isRequired,extraData:j.object.isRequired},componentDidMount:function(){c('Bootloader').loadModules(["AdsTargetingDynamicLocalLocationEditor"],this.updateSectionEditor);},renderSectionEditor:function(){!this.props.extraData.dao?h(0):void 0;var l=this.getSectionEditor(),m=this.getConfigValue(this.props.config.customProperties,'allowedCountryList',[]),n=this.getConfigValue(this.props.config.customProperties,'disallowedCountryList',[]),o={disallowAddress:c('LocationConstants').CUSTOM_LOCATIONS,disallowCountries:c('LocationConstants').COUNTRIES,disallowDMA:c('LocationConstants').GEO_MARKETS,disallowPlaces:c('LocationConstants').PLACES,disallowZips:c('LocationConstants').ZIPS},p=new (c('Set'))();Object.keys(o).forEach(function(y){if(this.getConfigValue(this.props.config.customProperties,y,false))p.add(o[y]);}.bind(this));var q=this.getConfigValue(this.props.config.customProperties,'showLocationTypeSelector',true),r=this.getConfigValue(this.props.config.customProperties,'defaultLocationTypes',c('LocationConstants').DEFAULT_LOCATION_TYPES),s=this.getConfigValue(this.props.config.customProperties,'radiusType',null),t=this.getConfigValue(this.props.config.customProperties,'shouldGetSuggestedRadius',false),u=this.getConfigValue(this.props.config.customProperties,'onlyInclusion',false),v=this.getConfigValue(this.props.config.customProperties,'pageID',null);c('LocationConstants').setDefaultLocationTypes(r);var w=this.props.targetingID,x=this.getDefaultTooltip();return (c('React').createElement(l,{allowedCountryList:m,dao:this.props.extraData.dao,disallowedCountryList:n,disallowedLocationTypes:p,excludedGeoLocations:c('TargetingSpecStore').getValue('excludedGeoLocations')||i,geoLocations:c('TargetingSpecStore').getValue('geoLocations')||i,oneColumn:this.props.extraData.oneColumn,onlyInclusion:u,pageID:v,radiusType:s,rowRenderer:this.props.rowRenderer,shouldGetSuggestedRadius:t,showLocationTypeSelector:q,tooltip:x,onLocationTypesChange:this._onLocationTypesChange,onLocationsChange:this._onLocationsChange}));},_onLocationTypesChange:function(l){c('AdsCommonTargetingActions').changeGeoLocations({location_types:l},null,this.props.targetingID);},_onLocationsChange:function(l,m){c('AdsCommonTargetingActions').changeGeoLocations(l,m,this.props.targetingID);}});f.exports=k;},null);
__d('AdsCommonTargetingEstimatedReach',['invariant','AdsCommonTargetingSectionMixin','Bootloader','React','TargetingSpecStore'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'AdsCommonTargetingEstimatedReach',mixins:[c('AdsCommonTargetingSectionMixin')],propTypes:{targetingID:i.string.isRequired,config:i.object,extraData:i.object},componentDidMount:function(){c('Bootloader').loadModules(["AdsTargetingEstimatedReach.react"],this.updateSectionEditor);},renderSectionEditor:function(){var k=this.getSectionEditor();!this.props.extraData.accountID?h(0):void 0;return (c('React').createElement(k,{accountID:this.props.extraData.accountID,targetingApiSpec:c('TargetingSpecStore').getTargetingApiSpec(),width:this.getDefaultWidth()}));}});f.exports=j;},null);
__d('AdsCommonTargetingFlexibleTargetingEditor',['invariant','AdsCommonTargetingActions','AdsCommonTargetingSectionMixin','AdsFlexibleTargetingConstants','Bootloader','React','TargetingSpecStore'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'AdsCommonTargetingFlexibleTargetingEditor',mixins:[c('AdsCommonTargetingSectionMixin')],propTypes:{targetingID:i.string.isRequired,config:i.object,extraData:i.object,rowRenderer:i.func},getDefaultProps:function(){return {extraData:{}};},componentDidMount:function(){c('Bootloader').loadModules(["AdsTargetingFlexibleTargetingEditor.react"],this.updateSectionEditor);},renderSectionEditor:function(){var k=this.getSectionEditor();!this.props.extraData.dao?h(0):void 0;!this.props.extraData.accountID?h(0):void 0;var l=this._getTargetingData();return (c('React').createElement(k,{accountID:this.props.extraData.accountID,dao:this.props.extraData.dao,oneColumn:this.props.extraData.oneColumn,rowRenderer:this.props.rowRenderer,targetingData:l,targetingID:this.props.targetingID,width:this.getDefaultWidth(),onTargetingChange:this._handleTargetingChanged}));},_handleTargetingChanged:function(k){c('AdsCommonTargetingActions').changeFlexibleSpec(k,this.props.targetingID);},_getTargetingData:function(){var k=c('TargetingSpecStore').getValue('flexibleSpec');if(!k||k.length===0)k=this._getDefaultSpec();return {flexibleSpec:k};},_getDefaultSpec:function(){return [{type:c('AdsFlexibleTargetingConstants').ITEM_TYPE.INCLUDE_ANY}];}});f.exports=j;},null);
__d('AdsCommonTargetingGenderEditor',['AdsCommonTargetingActions','AdsCommonTargetingSectionMixin','AdsTargetingConstants','Bootloader','React','TargetingSpecStore'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'AdsCommonTargetingGenderEditor',propTypes:{targetingID:h.string.isRequired,rowRenderer:h.func,extraData:h.object},getDefaultProps:function(){return {extraData:{}};},mixins:[c('AdsCommonTargetingSectionMixin')],componentDidMount:function(){c('Bootloader').loadModules(["AdsTargetingGenderEditor.react"],this.updateSectionEditor);},_changeGender:function(j){c('AdsCommonTargetingActions').changeGenders(j,this.props.targetingID);},renderSectionEditor:function(){var j=this.getSectionEditor(),k=this.getDefaultTooltip(),l=c('TargetingSpecStore').getValue('genders')||[],m=this.getConfigValue(this.props.config.customProperties,'suggestedGender'),n=l&&l.length===1?l[0]:c('AdsTargetingConstants').GENDERS.ALL;return (c('React').createElement(j,babelHelpers['extends']({},this.props.extraData.tooltip,{changeGender:this._changeGender,gender:n,insightsLink:this.props.extraData.insightsLink,oneColumn:this.props.extraData.oneColumn,rowRenderer:this.props.rowRenderer,selectedDepressed:this.props.extraData.selectedDepressed,selectedUse:this.props.extraData.selectedUse,size:this.props.extraData.size,suggestedGender:m,tooltip:k,width:this.getDefaultWidth()})));}});f.exports=i;},null);
__d('AudienceInterestsConnectionSearchSource',['AbstractSearchSource','AdsCreateFlowQueryLimits','AdsGraphAPI','SearchableEntry'],function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();var j;h=babelHelpers.inherits(k,c('AbstractSearchSource'));i=h&&h.prototype;k.getInstance=function(){if(!j)j=new k();return j;};function k(){i.constructor.call(this);if(j){return j;}else return this;}k.prototype.processResult=function(l,m,n){var o=[],p=l.data||l;for(var q=p,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=u.id,w=u.name,x=new (c('SearchableEntry'))({uniqueID:v,title:w});o.push(x);if(o.length>c('AdsCreateFlowQueryLimits').TYPEAHEAD_LIMIT)break;}n(o,m);};k.prototype.searchImpl=function(l,m){if(!l){m([],l);return;}var n=c('AdsGraphAPI').getWithGeneralMigration().search('page').get({q:l});n.done(function(o){return this.processResult(o.data,l,m);}.bind(this),function(o){m([],l);});};f.exports=k;},null);
__d('AdsCommonTargetingInterestsConnectionEditor.react',['AdsCommonTargetingActions','AdsCommonTargetingSectionMixin','AudienceInterestsConnectionSearchSource','Bootloader','React','TargetingSpecStore','dotAccess'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'AdsCommonTargetingInterestsConnectionEditor',mixins:[c('AdsCommonTargetingSectionMixin')],propTypes:{targetingID:h.string.isRequired,config:h.object,extraData:h.object,rowRenderer:h.func},getDefaultProps:function(){return {extraData:{}};},componentDidMount:function(){c('Bootloader').loadModules(["AdsTargetingInterestsConnectionEditor.react"],this.updateSectionEditor);},renderSectionEditor:function(){var j=this.getSectionEditor(),k=this.props.targetingID;return (c('React').createElement(j,{accountID:c('dotAccess')(this.props.extraData,'accountID'),changeConnections:function(l){c('AdsCommonTargetingActions').changeConnections(l,k);},oneColumn:c('dotAccess')(this.props.extraData,'oneColumn'),rowRenderer:this.props.rowRenderer,searchSource:c('AudienceInterestsConnectionSearchSource').getInstance(),targetingData:{includedConnections:c('TargetingSpecStore').getValue('connections')||[]},width:this.getDefaultWidth()}));}});f.exports=i;},null);
__d('AdsCFHelpLink.react',['cx','AdsHelpLink.react','React','ReactChildren'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'AdsCFHelpLink',propTypes:{imgHover:i.object,imgNormal:i.object,linger:i.number,position:i.string,onHover:i.func},render:function(){var k=c('ReactChildren').map(this.props.children,function(l,m){if(!l)return null;return (c('React').createElement('div',{className:"_5spo",key:m},l));});return (c('React').createElement(c('AdsHelpLink.react'),{className:"_5s_w",imgHover:this.props.imgHover,imgNormal:this.props.imgNormal,linger:this.props.linger,position:this.props.position||'above',width:300,onHover:this.props.onHover},k));}});f.exports=j;},null);
__d('AdsInfoTable.react',['cx','React'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'AdsInfoTable',propTypes:{oneColumn:i.bool},render:function(){var k="_19b9"+(' '+"_34l3")+(this.props.oneColumn?' '+"_19ba":'')+(!this.props.oneColumn?' '+"_19bb":'');return (c('React').createElement('div',{className:k},this.props.children));}});f.exports=j;},null);
__d('AdsInfoTableRow.react',['cx','React','joinClasses','uniqueID'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'AdsInfoTableRow',propTypes:{annotation:i.string,helpLink:i.object,label:i.string,vertical:i.bool,noUIContextualLayerParent:i.bool},getInitialState:function(){return {labelId:c('uniqueID')()};},render:function(){var k=c('joinClasses')("_2ekq _2ekr",this.props.noUIContextualLayerParent!==true?"uiContextualLayerParent":''),l="_4jci _4209",m=this.state.labelId,n=c('React').createElement('div',{className:k,id:m},c('React').createElement('h4',null,c('React').createElement('div',{className:l},this.props.label,this.props.annotation,this.props.helpLink))),o="_4jcj _420a",p=c('React').createElement('div',{'aria-labelledby':m,className:o},this.props.children),q=c('joinClasses')(this.props.className,"_4jch"+(' '+"_420b")+(!!this.props.vertical?' '+"_1djm":'')),r=c('React').createElement('div',{className:q},n,p);if(this.props.rowRenderer)r=this.props.rowRenderer(r,n,p);return r;}});f.exports=j;},null);
__d('InfoTableSeparator.react',['cx','React','joinClasses'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'InfoTableSeparator',propTypes:{columns:i.oneOf([2,3])},getDefaultProps:function(){return {columns:2};},render:function(){return (c('React').createElement('tr',babelHelpers['extends']({},this.props,{className:c('joinClasses')(this.props.className,"_3sto")}),c('React').createElement('td',{colSpan:this.props.columns},c('React').createElement('hr',null))));}});f.exports=j;},null);
__d('InfoTableSection.react',['InfoTableSeparator.react','React','ReactChildren'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'InfoTableSection',propTypes:{border:h.bool,columns:h.oneOf([2,3])},getDefaultProps:function(){return {columns:2};},render:function(){var j=c('ReactChildren').map(this.props.children,function(l){if(l)return c('React').cloneElement(l,{columns:this.props.columns});return l;},this),k=null;if(this.props.border)k=c('React').createElement(c('InfoTableSeparator.react'),{columns:this.props.columns});return (c('React').createElement('tbody',this.props,j,k));}});f.exports=i;},null);
__d('AdsInfoTableSection.react',['cx','InfoTableSection.react','React','ReactChildren'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('React').createClass({displayName:'AdsInfoTableSection',render:function(){return (c('React').createElement('div',{className:"_2d0v"},this.props.children));}});f.exports=i;},null);
__d('AdsTargetingSectionsLabels',['fbt'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();f.exports={interestedIn:h._(["Interested In","bb765094a76eccf0ad1c43c7a39b6952"]),relationshipStatuses:h._("Relationship Status"),educationStatuses:h._("Education Level"),educationMajors:h._("Fields of Study"),educationSchools:h._("Schools"),collegeYears:h._("Undergrad Years"),workEmployers:h._("Employers"),workPositions:h._("Job Titles"),officeType:h._("Office Type"),familyStatuses:h._("All Parents"),parents:h._("Parents"),politics:h._("Politics (US)"),industries:h._("Industries"),lifeEvents:h._("Life Events"),markets:h._("Market Segments"),education:h._("Education"),work:h._("Work"),relationship:h._("Relationship"),financial:h._("Financial"),income:h._("Income"),netWorth:h._("Net Worth"),home:h._("Home"),homeType:h._("Home Type"),homeOwnership:h._("Home Ownership"),homeValue:h._("Home Value"),ethnicAffinity:h._("Ethnic Affinity"),generation:h._("Generation"),householdComposition:h._("Household Composition"),moms:h._("Moms"),userAdclusters:h._("More Categories"),interests:h._("Interests"),behaviors:h._("Behaviors")};},null);
__d('AdsCommonTargetingInterestsEditor',['cx','fbt','invariant','AdsCFHelpLink.react','AdsCommonTargetingActions','AdsCommonTargetingSectionMixin','AdsTargetingSectionsLabels','Bootloader','AdsInfoTable.react','AdsInfoTableRow.react','AdsInfoTableSection.react','React','TargetingSpecStore'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=16,l=c('React').PropTypes,m=c('React').createClass({displayName:'AdsCommonTargetingInterestsEditor',mixins:[c('AdsCommonTargetingSectionMixin')],propTypes:{accountID:l.string,targetingID:l.string.isRequired,config:l.object,extraData:l.object,rowRenderer:l.func},getDefaultProps:function(){return {extraData:{}};},componentDidMount:function(){c('Bootloader').loadModules(["AdsSearchBrowseInterests.react"],this.updateSectionEditor);},_getObjective:function(){return this.getConfigValue(this.getConfigValue(this.props.extraData,'objectiveData',{}),'objective','');},_getDestinationID:function(){return this.getConfigValue(this.getConfigValue(this.props.extraData,'destinationData',{}),'destinationID','');},renderSectionEditor:function(){!this.props.extraData.dao?j(0):void 0;var n=this.getSectionEditor(),o=this.props.targetingID,p=this.props.interestData||c('TargetingSpecStore').getValue('interests')||[],q=this.getDefaultTooltip()||[i._("Facebook can help you reach specific audiences by looking at their interests, activities, the Pages they have liked and closely related topics."),i._("Combine interests to expand your ad's reach.")],r=this.getConfigValue(this.props.config.customProperties,'showReach',true),s=this.getConfigValue(this.props.config.customProperties,'showWhiteBox',true),t=this.getConfigValue(this.props.config.customProperties,'showSuggestionWhiteBox',true),u=this.getConfigValue(this.props.config.customProperties,'retrievePrefillSuggestions',false),v=u?this._getDestinationID():'',w=u?this._getObjective():null,x=this.getConfigValue(this.props.config.customProperties,'useAudienceInterests',false),y=x,z=y?k:null;return (c('React').createElement('div',{style:{width:this.getDefaultWidth()}},c('React').createElement(c('AdsInfoTable.react'),{oneColumn:this.props.extraData.oneColumn,sectionborders:false},c('React').createElement(c('AdsInfoTableSection.react'),{className:"_5w17"},c('React').createElement(c('AdsInfoTableRow.react'),{helpLink:c('React').createElement(c('AdsCFHelpLink.react'),this.props.extraData.tooltip,q),label:c('AdsTargetingSectionsLabels').interests,rowRenderer:this.props.rowRenderer,useColon:false},c('React').createElement(n,{accountID:this.props.accountID,dao:this.props.extraData.dao,deltaObjectID:o,destinationID:v,enableExceedMaxInterestsWarning:y,interests:p,maxInterestsCount:z,objective:w,ref:'unifiedInterestsTargetingComponent',retrievePrefillSuggestions:u,showReach:r,showSuggestionWhiteBox:t,showWhiteBox:s,size:this.props.size,useAudienceInterests:x,onUpdateInterests:function(aa){c('AdsCommonTargetingActions').changeInterests(aa,o);}}))))));}});f.exports=m;},null);
__d('AdsCommonTargetingLanguagesEditor',['invariant','AdsCommonTargetingActions','AdsCommonTargetingSectionMixin','Bootloader','React','TargetingSpecStore'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'AdsCommonTargetingLanguagesEditor',mixins:[c('AdsCommonTargetingSectionMixin')],propTypes:{targetingID:i.string.isRequired,config:i.object,extraData:i.object,rowRenderer:i.func},getDefaultProps:function(){return {extraData:{}};},componentDidMount:function(){c('Bootloader').loadModules(["AdsTargetingLanguagesEditorContainer.react"],this.updateSectionEditor);},renderSectionEditor:function(){!this.props.extraData.dao?h(0):void 0;var k=this.getSectionEditor(),l=this.props.targetingID,m=this.getConfigValue(this.props.config.customProperties,'languageSort');return (c('React').createElement(k,{changeLanguages:function(n){return c('AdsCommonTargetingActions').changeLanguages(n,l);},dao:this.props.extraData.dao,insightsLink:this.props.extraData.insightsLink,languageSort:m,locales:c('TargetingSpecStore').getValue('locales')||[],oneColumn:this.props.extraData.oneColumn,rowRenderer:this.props.rowRenderer,size:this.props.size,width:this.getDefaultWidth()}));}});f.exports=j;},null);
__d('AdsCommonTargetingLoadSpec',['invariant','AdsCommonTargetingActions','AdsCommonTargetingApiTransformer','AdsCommonTargetingSectionMixin','Bootloader','React'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'AdsCommonTargetingLoadSpec',mixins:[c('AdsCommonTargetingSectionMixin')],propTypes:{targetingID:i.string.isRequired,config:i.object,extraData:i.object,rowRenderer:i.func},getDefaultProps:function(){return {extraData:{}};},componentDidMount:function(){c('Bootloader').loadModules(["AdsTargetingLoadSpec"],this.updateSectionEditor);},_loadApiSpec:function(k){var l=c('AdsCommonTargetingApiTransformer').fromApi(k,this.props.extraData.apiTranformerBehaviors);c('AdsCommonTargetingActions').updateStoreFromUI(l,this.props.targetingID);},_subscribeApiChange:function(k){return this.props.extraData.controller.subscribeApiChange(k);},renderSectionEditor:function(){var k=this.getSectionEditor();!this.props.extraData.dao?h(0):void 0;return (c('React').createElement(k,{accountID:this.props.extraData.accountID,dao:this.props.extraData.dao,loadApiSpec:this._loadApiSpec,oneColumn:this.props.extraData.oneColumn,rowRenderer:this.props.rowRenderer,subscribeApiChange:this._subscribeApiChange,width:this.getDefaultWidth()}));}});f.exports=j;},null);
__d('AdsCommonTargetingLocationEditorV2',['invariant','AdsCommonTargetingActions','AdsCommonTargetingSectionMixin','LocationConstants','Bootloader','React','Set','TargetingSpecStore','adsGKCheck'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'AdsCommonTargetingLocationEditorV2',mixins:[c('AdsCommonTargetingSectionMixin')],propTypes:{accountID:i.string,config:i.object.isRequired,extraData:i.object.isRequired,locationTypeSelectorSize:i.string,targetingID:i.string.isRequired},componentDidMount:function(){c('Bootloader').loadModules(["AdsTargetingLocationSectionEditor"],this.updateSectionEditor);},renderSectionEditor:function(){!this.props.extraData.dao?h(0):void 0;var k=this.getSectionEditor(),l=this.getConfigValue(this.props.config.customProperties,'allowedCountryList',[]),m=this.getConfigValue(this.props.config.customProperties,'disallowedCountryList',[]),n=this.getConfigValue(this.props.config.customProperties,'disableAddBulkLocations',false),o={disallowCountries:c('LocationConstants').COUNTRIES,disallowRegions:c('LocationConstants').REGIONS,disallowDMA:c('LocationConstants').GEO_MARKETS,disallowCities:c('LocationConstants').CITIES,disallowElectoralDistricts:c('LocationConstants').ELECTORAL_DISTRICTS,disallowZips:c('LocationConstants').ZIPS,disallowPlaces:c('LocationConstants').PLACES,disallowAddress:c('LocationConstants').CUSTOM_LOCATIONS},p=new (c('Set'))();Object.keys(o).forEach(function(ba){if(this.getConfigValue(this.props.config.customProperties,ba,false))p.add(o[ba]);}.bind(this));if(!c('adsGKCheck')('gk_ads_geo_electoral_district'))p.add(c('LocationConstants').ELECTORAL_DISTRICTS);var q=this.getConfigValue(this.props.config.customProperties,'showLocationTypeSelector',true),r=this.getConfigValue(this.props.config.customProperties,'defaultLocationTypes',c('LocationConstants').DEFAULT_LOCATION_TYPES),s=this.getConfigValue(this.props.config.customProperties,'radiusType',null),t=this.getConfigValue(this.props.config.customProperties,'shouldGetSuggestedRadius',false),u=this.getConfigValue(this.props.config.customProperties,'enableMap'),v=this.getConfigValue(this.props.config.customProperties,'disableScrollWheelZoom'),w=this.getConfigValue(this.props.config.customProperties,'initiallyShowMap'),x=this.getConfigValue(this.props.config.customProperties,'onlyInclusion',false),y=this.getConfigValue(this.props.config.customProperties,'page',null),z=this.getConfigValue(this.props.config.customProperties,'shouldShowPageLocationSuggestion',false);c('LocationConstants').setDefaultLocationTypes(r);var aa=this.getDefaultTooltip();return (c('React').createElement(k,babelHelpers['extends']({},this.props.extraData.tooltip,{allowedCountryList:l,dao:this.props.extraData.dao,disableAddBulkLocations:n,disableScrollWheelZoom:v,disallowedCountryList:m,disallowedLocationTypes:p,enableMap:u,excludedGeoLocations:c('TargetingSpecStore').getValue('excludedGeoLocations')||{},geoLocations:c('TargetingSpecStore').getValue('geoLocations')||{},initiallyShowMap:w,locationTypeSelectorSize:this.props.locationTypeSelectorSize,oneColumn:this.props.extraData.oneColumn,onlyInclusion:x,page:y,radiusType:s,rowRenderer:this.props.rowRenderer,shouldGetSuggestedRadius:t,shouldShowPageLocationSuggestion:z,showLocationTypeSelector:q,tooltip:aa,onLocationTypesChange:this.onLocationTypesChange,onLocationsChange:this.onLocationsChange})));},onLocationTypesChange:function(k){var l=c('TargetingSpecStore').getValue('geoLocations')||{},m=c('TargetingSpecStore').getValue('excludedGeoLocations')||{};l=babelHelpers['extends']({},l,{location_types:k});this.onLocationsChange(l,m);},onLocationsChange:function(k,l){c('AdsCommonTargetingActions').changeGeoLocations(k,l,this.props.targetingID);}});f.exports=j;},null);
__d("AdsStrings",["fbt"],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={MixedFormatEditWarning:h._("Your selection has multiple objectives, ad formats, or options that can't be edited together. As a result, not all options are available to edit for this selection."),MixedValuePlaceholder:h._("Mixed Values"),MixedVisibilityFieldWarning:h._("This field is not applicable for some of the selected ads. Change your selection to edit this field."),UntitledAdPlaceholder:h._("[Untitled]"),UntitledCampaignPlaceholder:h._("[Untitled]")};f.exports=i;},null);
__d('AdsCommonTargetingLocationUnavailableEditor',['cx','fbt','AdsInfoTable.react','AdsInfoTableRow.react','AdsInfoTableSection.react','AdsStrings','React','XUINotice.react'],function a(b,c,d,e,f,g,h,i){'use strict';var j,k;if(c.__markCompiled)c.__markCompiled();var l=c('React').Component,m=c('React').PropTypes;j=babelHelpers.inherits(n,l);k=j&&j.prototype;n.prototype.render=function(){var o="_3lmq uiContextualLayerParent";return (c('React').createElement(c('AdsInfoTable.react'),{oneColumn:this.props.extraData.oneColumn,sectionborders:false},c('React').createElement(c('AdsInfoTableSection.react'),{className:"_5w17"},c('React').createElement(c('AdsInfoTableRow.react'),{className:"_2x2o",label:i._("Locations"),noUIContextualLayerParent:true,rowRenderer:this.props.rowRenderer,useColon:false},c('React').createElement('div',{className:o},c('React').createElement(c('XUINotice.react'),{size:'small'},c('AdsStrings').MixedFormatEditWarning))))));};function n(){j.apply(this,arguments);}n.propTypes={extraData:m.object,rowRenderer:m.func};f.exports=n;},null);
__d('AdsCommonTargetingMapLocationEditor',['AdsCommonTargetingActions','AdsCommonTargetingSectionMixin','AdsCommonTargetingUtils','Bootloader','React','TargetingSpecStore'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'AdsCommonTargetingMapLocationEditor',mixins:[c('AdsCommonTargetingSectionMixin')],propTypes:{size:h.string,targetingID:h.string.isRequired,rowRenderer:h.func,extraData:h.object},getDefaultProps:function(){return {size:'large',extraData:{}};},componentDidMount:function(){c('Bootloader').loadModules(["AdsTargetingMapLocationEditor"],this.updateSectionEditor);},renderSectionEditor:function(){var j=this.getSectionEditor(),k=this.props.targetingID,l=c('TargetingSpecStore').getCustomLocationOrDefaultStateForUI();if(l.address_string!=null&&(c('AdsCommonTargetingUtils').isLatLonString(l.address_string)||l.address_string==='(null, null)')){l=babelHelpers['extends']({},l);delete l.address_string;}var m=this.getConfigValue(this.props.config.customProperties,'mapHeight'),n=this.getConfigValue(this.props.config.customProperties,'mapWidth');m=m?m-2:m;n=n?n-2:n;return (c('React').createElement(j,{address:l,defaultCountry:this.props.extraData.defaultCountry,height:m,oneColumn:this.props.extraData.oneColumn,rowRenderer:this.props.rowRenderer,size:this.props.size,targetingID:k,width:n,onAddressChanged:this._onAddressChanged,onRadiusChanged:this._onRadiusChanged,onTargetingAreaCenterChange:this._onTargetingAreaCenterChange}));},_onAddressChanged:function(j){c('AdsCommonTargetingActions').changeCustomLocation(c('TargetingSpecStore').getValue('geoLocations')||{},j,this.props.targetingID);},_onRadiusChanged:function(j){c('AdsCommonTargetingActions').changeLocalGeoRadius(c('TargetingSpecStore').getValue('geoLocations')||{},j,this.props.targetingID);},_onTargetingAreaCenterChange:function(j){c('AdsCommonTargetingActions').changeCustomLocationCenter(c('TargetingSpecStore').getValue('geoLocations')||{},j,this.props.targetingID);}});f.exports=i;},null);
__d('AdsCommonTargetingMobilePlatformEditor',['invariant','AdsCommonTargetingActions','AdsCommonTargetingSectionMixin','Bootloader','React','TargetingSpecStore'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'AdsCommonTargetingMobilePlatformEditor',mixins:[c('AdsCommonTargetingSectionMixin')],propTypes:{targetingID:i.string.isRequired,config:i.object,extraData:i.object,rowRenderer:i.func},getDefaultProps:function(){return {extraData:{}};},componentDidMount:function(){c('Bootloader').loadModules(["AdsTargetingMobilePlatformEditor.react"],this.updateSectionEditor);},renderSectionEditor:function(){!this.props.extraData.objectiveData?h(0):void 0;var k=this.getConfigValue(this.props.config.customProperties,'shouldHideMinOsOption',false),l=this.getSectionEditor(),m=this.props.targetingID,n=c('TargetingSpecStore').getValues(['mobileDevices','minAndroidVersion','maxAndroidVersion','minIosVersion','maxIosVersion','minWindowsVersion','maxWindowsVersion','mobileOperatingSystem','wifiOnly']);return (c('React').createElement(l,{actions:{changeWifiOnly:function(o){c('AdsCommonTargetingActions').changeWifiOnly(o,m);},changeIOSDevices:function(o){c('AdsCommonTargetingActions').changeIOSDevices(o,m);},changeMinIOSVersion:function(o){c('AdsCommonTargetingActions').changeMinIOSVersion(o,m);},changeMaxIOSVersion:function(o){c('AdsCommonTargetingActions').changeMaxIOSVersion(o,m);},changeMinAndroidVersion:function(o){c('AdsCommonTargetingActions').changeMinAndroidVersion(o,m);},changeMaxAndroidVersion:function(o){c('AdsCommonTargetingActions').changeMaxAndroidVersion(o,m);},changeMinWindowsVersion:function(o){c('AdsCommonTargetingActions').changeMinWindowsVersion(o,m);},changeMaxWindowsVersion:function(o){c('AdsCommonTargetingActions').changeMaxWindowsVersion(o,m);},changeAndroidDeviceGroup:function(o){c('AdsCommonTargetingActions').changeAndroidDeviceGroup(o,m);}},objectiveData:this.props.extraData.objectiveData,oneColumn:this.props.extraData.oneColumn,rowRenderer:this.props.rowRenderer,shouldHideMinOsOption:k,targetingData:n,width:this.getDefaultWidth()}));}});f.exports=j;},null);
__d('AdsCommonTargetingSaveSpec',['invariant','AdsCommonTargetingSectionMixin','Bootloader','React','TargetingSpecStore'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'AdsCommonTargetingSaveSpec',mixins:[c('AdsCommonTargetingSectionMixin')],propTypes:{targetingID:i.string.isRequired,config:i.object,extraData:i.object,rowRenderer:i.func},getDefaultProps:function(){return {extraData:{}};},componentDidMount:function(){c('Bootloader').loadModules(["AdsTargetingSaveSpec"],this.updateSectionEditor);},renderSectionEditor:function(){var k=this.getSectionEditor();!this.props.extraData.dao?h(0):void 0;return (c('React').createElement(k,{dao:this.props.extraData.dao,oneColumn:this.props.extraData.oneColumn,rowRenderer:this.props.rowRenderer,targetingApiSpec:c('TargetingSpecStore').getTargetingApiSpec(),width:this.getDefaultWidth()}));}});f.exports=j;},null);
__d('AdsCommonTargetingSentences',['invariant','AdsCommonTargetingSectionMixin','Bootloader','React','TargetingSpecStore'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'AdsCommonTargetingSentences',mixins:[c('AdsCommonTargetingSectionMixin')],propTypes:{targetingID:i.string.isRequired,config:i.object,extraData:i.object},componentDidMount:function(){c('Bootloader').loadModules(["TargetingSentences.react"],this.updateSectionEditor);},renderSectionEditor:function(){var k=this.getSectionEditor();!this.props.extraData.dao?h(0):void 0;!this.props.extraData.accountID?h(0):void 0;return (c('React').createElement(k,{accountID:this.props.extraData.accountID,dao:this.props.extraData.dao,targetingApiSpec:c('TargetingSpecStore').getTargetingApiSpec()}));}});f.exports=j;},null);
__d('AdsCommonTargetingSimpleDemographicsDropdownEditor.react',['invariant','AdsCommonTargetingActions','AdsCommonTargetingSectionMixin','Bootloader','React','TargetingSpecStore'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'AdsCommonTargetingSimpleDemographicsDropdownEditor',mixins:[c('AdsCommonTargetingSectionMixin')],propTypes:{accountID:i.string.isRequired,targetingID:i.string.isRequired,config:i.object,rowRenderer:i.func,extraData:i.object},getDefaultProps:function(){return {extraData:{},config:{}};},componentDidMount:function(){c('Bootloader').loadModules(["AdsTargetingSimpleDemographicsDropdownEditor.react"],this.updateSectionEditor);},renderSectionEditor:function(){var k=this.getSectionEditor();!(this.props.extraData&&this.props.extraData.dao)?h(0):void 0;var l=this.getConfigValue(this.props.config&&this.props.config.customProperties,'filterPartnerData',false),m=this.props.targetingID,n=function(u){return function(v){return u(v,m);};},o=this.props.extraData&&this.props.extraData.dao?this.props.extraData.dao:{},p=this.props.extraData&&this.props.extraData.oneColumn?this.props.extraData.oneColumn:false,q=this.getConfigValue(this.props.config&&this.props.config.customProperties,'showWhiteBox',true),r=this.getConfigValue(this.props.config&&this.props.config.customProperties,'canSeeCompleteList',false),s=this.getConfigValue(this.props.config&&this.props.config.customProperties,'useTargetingAsFilter',false),t=c('TargetingSpecStore').getValues(['relationshipStatuses','educationStatuses','educationSchools','educationMajors','targetAllGraduationYears','maxGradYear','minGradYear','workEmployers','workPositions','industries','familyStatuses','lifeEvents','ethnicAffinity','generation','politics']);return (c('React').createElement(k,{accountID:this.props.accountID,actions:{changeRelationshipStatuses:n(c('AdsCommonTargetingActions').changeRelationshipStatuses),changeEducationStatuses:n(c('AdsCommonTargetingActions').changeEducationStatuses),changeEducationSchools:n(c('AdsCommonTargetingActions').changeEducationSchools),changeEducationMajors:n(c('AdsCommonTargetingActions').changeEducationMajors),changeMaxGradYear:n(c('AdsCommonTargetingActions').changeMaxGradYear),changeMinGradYear:n(c('AdsCommonTargetingActions').changeMinGradYear),changeTargetAllGraduationYears:n(c('AdsCommonTargetingActions').changeTargetAllGraduationYears),changeWorkEmployers:n(c('AdsCommonTargetingActions').changeWorkEmployers),changeWorkPositions:n(c('AdsCommonTargetingActions').changeWorkPositions),changeIndustries:n(c('AdsCommonTargetingActions').changeIndustries),changeFamilyStatuses:n(c('AdsCommonTargetingActions').changeFamilyStatuses),changeLifeEvents:n(c('AdsCommonTargetingActions').changeLifeEvents),changeGeneration:n(c('AdsCommonTargetingActions').changeGeneration),changeEthnicAffinity:n(c('AdsCommonTargetingActions').changeEthnicAffinity),changePolitics:n(c('AdsCommonTargetingActions').changePolitics)},canSeeCompleteList:r,dao:o,filterPartnerData:l,oneColumn:p,rowRenderer:this.props.rowRenderer,showWhiteBox:q,size:this.props.size,targetingData:t,useTargetingAsFilter:s,width:this.getDefaultWidth()}));}});f.exports=j;},null);
__d('AdsUnifiedFlexibleTargetingEditor',['AdsCommonTargetingActions','AdsCommonTargetingSectionMixin','AdsFlexibleTargetingConstants','Bootloader','React','TargetingSpecStore','dotAccess'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'AdsUnifiedFlexibleTargetingEditor',mixins:[c('AdsCommonTargetingSectionMixin')],propTypes:{config:h.object,extraData:h.shape({accountID:h.string.isRequired,campaignIDs:h.array,dao:h.object.isRequired,destinationData:h.shape({destinationID:h.string}),objectiveData:h.shape({objective:h.string}),promotedObject:h.object}).isRequired,isMixedState:h.bool,rowRenderer:h.func,targetingID:h.string.isRequired},getDefaultProps:function(){return {isMixedState:false,extraData:{}};},componentDidMount:function(){c('Bootloader').loadModules(["AdsTargetingFlexibleTargetingEditorNew.react"],this.updateSectionEditor);},renderSectionEditor:function(){var j=this.getSectionEditor(),k=this._getTargetingData();return (c('React').createElement(j,{accountID:this.props.extraData.accountID,campaignIDs:this.props.extraData.campaignIDs,dao:this.props.extraData.dao,destinationID:this._getDestination(),objective:this._getObjective(),oneColumn:this.props.extraData.oneColumn,promotedObject:this.props.extraData.promotedObject,rowRenderer:this.props.rowRenderer,shouldPrefetchInterests:this._shouldPrefetchInterests(),targetingData:k,targetingID:this.props.targetingID,width:this.getDefaultWidth(),onTargetingChange:this._handleTargetingChanged}));},_getDestination:function(){return c('dotAccess')(this.props.extraData,'destinationData.destinationID');},_getObjective:function(){return c('dotAccess')(this.props.extraData,'objectiveData.objective');},_shouldPrefetchInterests:function(){return !!c('dotAccess')(this.props.config,'customProperties.retrievePrefillSuggestions');},_handleTargetingChanged:function(j){c('AdsCommonTargetingActions').changeFlexibleSpec(j,this.props.targetingID);},_getTargetingData:function(){if(this.props.isMixedState)return {flexibleSpec:[]};var j=c('TargetingSpecStore').getValue('flexibleSpec');if(!j||j.length===0)j=this._getDefaultSpec();return {flexibleSpec:j};},_getDefaultSpec:function(){return [{type:c('AdsFlexibleTargetingConstants').ITEM_TYPE.INCLUDE_ANY}];}});f.exports=i;},null);
__d('FeedCommonTargetingTimezonesEditor',['invariant','AdsCommonTargetingActions','AdsCommonTargetingSectionMixin','Bootloader','React','TargetingSpecStore'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'FeedCommonTargetingTimezonesEditor',mixins:[c('AdsCommonTargetingSectionMixin')],propTypes:{targetingID:i.string.isRequired,config:i.object,extraData:i.object,rowRenderer:i.func},getDefaultProps:function(){return {extraData:{}};},componentDidMount:function(){c('Bootloader').loadModules(["FeedTargetingTimezonesEditor.react"],this.updateSectionEditor);},renderSectionEditor:function(){!this.props.extraData?h(0):void 0;var k=this.props.extraData&&this.props.extraData.oneColumn?this.props.extraData.oneColumn:false,l=this.getSectionEditor(),m=this.props.targetingID;return (c('React').createElement(l,{changeTimezones:function(n){return c('AdsCommonTargetingActions').changeTimezones(n,m);},oneColumn:k,rowRenderer:this.props.rowRenderer,size:this.props.size,timezones:c('TargetingSpecStore').getValue('timezones')||[],timezoneSort:this.props.config&&this.props.config.timezoneSort,width:this.getDefaultWidth()}));}});f.exports=j;},null);
__d('MAdsCommonTargetingExampleView',['AdsCommonTargetingActions','AdsCommonTargetingStore','React','SubscriptionsHandler'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'MAdsCommonTargetingExampleView',propTypes:{targetingID:h.string.isRequired},componentDidMount:function(){this._subscriptions=new (c('SubscriptionsHandler'))();this._subscriptions.addSubscriptions(c('AdsCommonTargetingStore').subscribe('change',function(){var j=c('AdsCommonTargetingStore').getChangedTargetingID();if(j===this.props.targetingID)this.forceUpdate();}.bind(this)));},componentWillUnmount:function(){this._subscriptions.release();},render:function(){var j=c('AdsCommonTargetingStore').getValue('ageMin',this.props.targetingID)||'unknown';return (c('React').createElement('div',null,c('React').createElement('p',null,c('React').createElement('b',null,' Render a mobile view here. ')),c('React').createElement('p',null,'The minimal age is ',j,'.'),c('React').createElement('p',null,c('React').createElement('a',{href:'#',onClick:this._onClick},'This is a link, click to change the min age'))));},_onClick:function(){c('AdsCommonTargetingActions').changeAgeMin(25,this.props.targetingID);}});f.exports=i;},null);
__d('AdsTargetingTExActions',['AdsDispatcher','AdsTargetingTExActionTypes'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={showAdditionalTargeting:function(i){c('AdsDispatcher').handleUpdateFromViewAction({type:c('AdsTargetingTExActionTypes').SHOW_ADDITIONAL_TARGETING,objective:i});},hideAdditionalTargeting:function(i){c('AdsDispatcher').handleUpdateFromViewAction({type:c('AdsTargetingTExActionTypes').HIDE_ADDITIONAL_TARGETING,objective:i});}};f.exports=h;},null);
__d('FBMoreLink.react',['cx','fbt','ix','Image.react','Link.react','React'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k=c('React').PropTypes,l=c('React').createClass({displayName:'FBMoreLink',propTypes:{allowToggle:k.bool,moreLabel:k.node,lessLabel:k.node,isInitiallyCollapsed:k.bool,isCollapsed:k.bool,onClick:k.func.isRequired},getDefaultProps:function(){var m=i._("More"),n=i._("Less");return {allowToggle:false,moreLabel:m,lessLabel:n};},getInitialState:function(){return {isCollapsed:this.props.isInitiallyCollapsed!=null?this.props.isInitiallyCollapsed:true};},onClick:function(){var m=this._isCollapsed();this.setState({isCollapsed:!m});this.props.onClick(!m);},render:function(){var m=this._isCollapsed();if(!this.props.allowToggle&&!m)return c('React').createElement('div',null);var n=this.props.moreLabel,o=j('/images/ui/xhp/link/more/down_caret.gif');if(!m){n=this.props.lessLabel;o=j('/images/ui/xhp/link/more/up_caret.gif');}return (c('React').createElement(c('Link.react'),babelHelpers['extends']({},this.props,{onClick:this.onClick}),c('React').createElement('span',{className:"_554b"},n),c('React').createElement(c('Image.react'),{className:"_554d",src:o})));},_isCollapsed:function(){return this.props.isCollapsed!=null?this.props.isCollapsed:this.state.isCollapsed;}});f.exports=l;},null);
__d('AdsTargetingExpandableLink.react',['cx','fbt','AdsInfoTable.react','AdsInfoTableRow.react','AdsInfoTableSection.react','AdsTargetingTExActions','FBMoreLink.react','React','XUIGrayText.react','dotAccess'],function a(b,c,d,e,f,g,h,i){'use strict';var j,k;if(c.__markCompiled)c.__markCompiled();var l=c('React').Component,m=c('React').PropTypes;j=babelHelpers.inherits(n,l);k=j&&j.prototype;function n(o){k.constructor.call(this,o);this.onClick=this.onClick.bind(this);}n.propTypes={config:m.object,expand:m.bool.isRequired,oneColumn:m.bool,rowRenderer:m.func,width:m.number};n.prototype.render=function(){var o=i._("Keep refining your audience");return (c('React').createElement('div',{style:{width:this.props.width}},c('React').createElement(c('AdsInfoTable.react'),{oneColumn:this.props.oneColumn,sectionborders:true},c('React').createElement(c('AdsInfoTableSection.react'),null,c('React').createElement(c('AdsInfoTableRow.react'),{rowRenderer:this.props.rowRenderer,useColon:false},c('React').createElement(c('FBMoreLink.react'),{allowToggle:true,className:"_3k2d",isCollapsed:!this.props.expand,isInitiallyCollapsed:true,lessLabel:o,moreLabel:o,onClick:this.onClick}),this.$AdsTargetingExpandableLink1())))));};n.prototype.$AdsTargetingExpandableLink1=function(){var o=i._("If your audience is too broad, try limiting the scope with additional targeting options."),p=c('dotAccess')(this.props,'config.customProperties.content')||o;return (this.props.expand?null:c('React').createElement(c('XUIGrayText.react'),{display:'block'},p));};n.prototype.onClick=function(){var o=c('dotAccess')(this.props,'config.customProperties.objective');if(this.props.expand){c('AdsTargetingTExActions').hideAdditionalTargeting(o);}else c('AdsTargetingTExActions').showAdditionalTargeting(o);};f.exports=n;},null);
__d('AdsTargetingTExViewStateStore',['AdsDispatcher','FluxReduceStore','immutable','AdsTargetingTExActionTypes'],function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();var j=c('immutable').Record,k=j({showAdditionalTargeting:false});h=babelHelpers.inherits(l,c('FluxReduceStore'));i=h&&h.prototype;l.prototype.getInitialState=function(){return new k();};l.prototype.reduce=function(m,n){var o=n.action;switch(o.type){case c('AdsTargetingTExActionTypes').SHOW_ADDITIONAL_TARGETING:return m.set('showAdditionalTargeting',true);case c('AdsTargetingTExActionTypes').HIDE_ADDITIONAL_TARGETING:return m.set('showAdditionalTargeting',false);default:return m;}};l.prototype.getShowAdditionalTargeting=function(){return this.getState().showAdditionalTargeting;};function l(){h.apply(this,arguments);}f.exports=new l(c('AdsDispatcher'));},null);
__d('AdsTargetingExpandableLinkContainer.react',['AdsTargetingExpandableLink.react','AdsTargetingTExViewStateStore','FluxContainer','React'],function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();var j=c('React').Component;h=babelHelpers.inherits(k,j);i=h&&h.prototype;k.getStores=function(){return [c('AdsTargetingTExViewStateStore')];};k.calculateState=function(){return {expand:c('AdsTargetingTExViewStateStore').getShowAdditionalTargeting()};};k.prototype.render=function(){return c('React').createElement(c('AdsTargetingExpandableLink.react'),babelHelpers['extends']({},this.props,this.state));};function k(){h.apply(this,arguments);}f.exports=c('FluxContainer').create(k);},null);
__d('AdsTargetingHideableContainer.react',['cx','AdsTargetingTExViewStateStore','FluxContainer','React','dotAccess'],function a(b,c,d,e,f,g,h){'use strict';var i,j;if(c.__markCompiled)c.__markCompiled();var k=c('React').Component,l=c('React').PropTypes;i=babelHelpers.inherits(m,k);j=i&&i.prototype;m.propTypes={config:l.object.isRequired};m.getStores=function(){return [c('AdsTargetingTExViewStateStore')];};m.calculateState=function(){return {show:c('AdsTargetingTExViewStateStore').getShowAdditionalTargeting()};};m.prototype.render=function(){var n=c('dotAccess')(this.props.config,'customProperties.component'),o=(this.state.show?"_3ps1":'')+(!this.state.show?' '+"_3ps2":'');return (c('React').createElement('div',{className:o},c('React').createElement(n,this.props)));};function m(){i.apply(this,arguments);}f.exports=c('FluxContainer').create(m);},null);
__d('AdsCommonTargetingViewConfigValidator',['invariant','AdsCommonTargetingViewConfig'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('AdsCommonTargetingViewConfig').VALID_COMPONENTS,j={validate:function(k){!(k&&k.length>0)?h(0):void 0;k.forEach(function(l){var m=l.component;!i[m]?h(0):void 0;});}};f.exports=j;},null);
__d('AdsInfoTableTextRow.react',['cx','React','joinClasses','uniqueID'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'AdsInfoTableTextRow',propTypes:{annotation:i.string,helpLink:i.object,vertical:i.bool,text:i.string},getInitialState:function(){return {labelId:c('uniqueID')()};},render:function(){var k="_44sc",l="_44sd",m=this.state.uniqueId,n=c('React').createElement('div',{className:k,id:m},c('React').createElement('div',{className:l},this.props.text,this.props.helpLink)),o="_4jcj _420a",p=c('React').createElement('div',{'aria-labelledby':m,className:o},this.props.children),q=c('joinClasses')(this.props.className,"_4jch"+(' '+"_420b")+(!!this.props.vertical?' '+"_1djm":'')),r=c('React').createElement('div',{className:q},n,p);if(this.props.rowRenderer)r=this.props.rowRenderer(r,n,p);return r;}});f.exports=j;},null);
__d('AdsNotes.react',['cx','React'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'AdsNotes',propTypes:{notes:i.string},render:function(){var k="_44sf";return (c('React').createElement('div',{className:k},this.props.notes));}});f.exports=j;},null);
__d('AdsSpinnerGroup.react',['cx','CenteredContainer.react','React','XUISpinner.react'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'AdsSpinnerGroup',childContextTypes:{spinnerGroup:i.shape({registerLoadStart:i.func.isRequired,registerLoadEnd:i.func.isRequired}).isRequired},getChildContext:function(){return {spinnerGroup:{registerLoadStart:this._registerLoadStart,registerLoadEnd:this._registerLoadEnd}};},getInitialState:function(){return {pending:0};},_registerLoadStart:function(){this.setState(function(k){return {pending:k.pending+1};});},_registerLoadEnd:function(){this.setState(function(k){return {pending:k.pending-1};});},render:function(){var k=this.state.pending>0,l=null;if(k)l=c('React').createElement(c('CenteredContainer.react'),{className:"_27oa",fullHeight:true,horizontal:true,vertical:true},c('React').createElement(c('XUISpinner.react'),{size:'large'}));return (c('React').createElement('div',{className:k?"_27o9":''},l,c('React').createElement('div',{className:k?"_27oc":''},this.props.children)));}});f.exports=j;},null);
__d('AdsTargetingExperimentStoreUtils',['AdsCreationExperimentStore','adsGKCheck'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('AdsCreationExperimentStore').getExperiment;function i(){return h('qe_mtcv2_early_bootload');}function j(){var k=i(),l=k.getGroup();return (c('adsGKCheck')('ads_mtcv2_early_bootload')&&l==='test_bootload_all');}f.exports={getBootloadExperiment:i,getExperiment:h,shouldBootload:j};},null);
__d('AdsCommonTargetingViewRenderer',['cx','fbt','AdInterfacesUiLogger','AdsCommonTargetingAdvancedDemographicsDropdownEditor','AdsCommonTargetingAgeEditor','AdsCommonTargetingAppTargetEditor','AdsCommonTargetingAudienceEditor','AdsCommonTargetingBehaviorsEditor','AdsCommonTargetingCategoriesEditor','AdsCommonTargetingConnectionsEditor','AdsCommonTargetingDemographicsEditor','AdsCommonTargetingDynamicLocalLocationEditor','AdsCommonTargetingEstimatedReach','AdsCommonTargetingFlexibleTargetingEditor','AdsCommonTargetingGenderEditor','AdsCommonTargetingInterestsConnectionEditor.react','AdsCommonTargetingInterestsEditor','AdsCommonTargetingLanguagesEditor','AdsCommonTargetingLoadSpec','AdsCommonTargetingLocationEditorV2','AdsCommonTargetingLocationUnavailableEditor','AdsCommonTargetingMapLocationEditor','AdsCommonTargetingMobilePlatformEditor','AdsCommonTargetingSaveSpec','AdsCommonTargetingSentences','AdsCommonTargetingSimpleDemographicsDropdownEditor.react','AdsInfoTableTextRow.react','AdsNotes.react','AdsSpinnerGroup.react','AdsTargetingExpandableLinkContainer.react','AdsTargetingExperimentStoreUtils','AdsTargetingHideableContainer.react','AdsUnifiedFlexibleTargetingEditor','FeedCommonTargetingTimezonesEditor','MAdsCommonTargetingExampleView','React','XUIButton.react'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=c('React').PropTypes,k='Modular Targeting Component',l=c('React').createClass({displayName:'AdsCommonTargetingViewRenderer',propTypes:{config:j.array.isRequired,targetingID:j.string.isRequired,extraData:j.object},getDefaultProps:function(){return {extraData:{}};},componentDidMount:function(){if(!c('AdInterfacesUiLogger').getAppName()){var m=this.props.extraData.appName||k;c('AdInterfacesUiLogger').setAppName(m);}c('AdInterfacesUiLogger').setAccountID(this.props.extraData.accountID||'0');},render:function(){var m=this.props.config.map(function(n,o){var p=n.component,q=this.getComponent(p,n);if(n.renderWrapper)q=n.renderWrapper(q);return (c('React').createElement('div',{className:"_26on",key:p+o},q));},this);return c('AdsTargetingExperimentStoreUtils').shouldBootload()?c('React').createElement('div',null,m):c('React').createElement(c('AdsSpinnerGroup.react'),null,m);},getComponent:function(m,n){return this['_get'+m](n);},rowRenderer:function(m,n,o,p){if(this.isComponentMixedState(m))p=c('React').cloneElement(p,{children:this._renderMixedState(m)});return (c('React').createElement('div',n.props,o,p));},isComponentMixedState:function(m){var n=m.component,o=this.props.extraData.mixedStateComponents||{};return n in o;},_renderMixedState:function(m){return (c('React').createElement('div',null,c('React').createElement('span',{className:"_4zk9"},i._("Mixed State")),c('React').createElement(c('XUIButton.react'),{label:i._("Reset"),size:'large',use:'confirm',onClick:this._resetMixedState.bind(this,m)})));},_resetMixedState:function(m){this.props.extraData.controller.clearMixedStateForComponent(m);},_getAudienceEditor:function(m){return (c('React').createElement(c('AdsCommonTargetingAudienceEditor'),{config:m,extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m),targetingID:this.props.targetingID}));},_getDemographicsEditor:function(m){return (c('React').createElement(c('AdsCommonTargetingDemographicsEditor'),{config:m,extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m),targetingID:this.props.targetingID}));},_getAgeEditor:function(m){return (c('React').createElement(c('AdsCommonTargetingAgeEditor'),{config:m,extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m),targetingID:this.props.targetingID}));},_getGenderEditor:function(m){return (c('React').createElement(c('AdsCommonTargetingGenderEditor'),{config:m,extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m),targetingID:this.props.targetingID}));},_getInterestsEditor:function(m){return (c('React').createElement(c('AdsCommonTargetingInterestsEditor'),{accountID:this.props.extraData.accountID||'0',config:m,extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m),targetingID:this.props.targetingID}));},_getInterestsConnectionEditor:function(m){return (c('React').createElement(c('AdsCommonTargetingInterestsConnectionEditor.react'),{accountID:this.props.extraData.accountID||'0',config:m,extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m),targetingID:this.props.targetingID}));},_getLanguagesEditor:function(m){return (c('React').createElement(c('AdsCommonTargetingLanguagesEditor'),{config:m,extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m),targetingID:this.props.targetingID}));},_getTimezonesEditor:function(m){return (c('React').createElement(c('FeedCommonTargetingTimezonesEditor'),{config:m,extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m),targetingID:this.props.targetingID}));},_getLocationEditor:function(m){return (c('React').createElement(c('AdsCommonTargetingLocationEditorV2'),{accountID:this.props.extraData.accountID||'0',config:m,extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m),targetingID:this.props.targetingID}));},_getDynamicLocalLocationEditor:function(m){return (c('React').createElement(c('AdsCommonTargetingDynamicLocalLocationEditor'),{accountID:this.props.extraData.accountID||'0',config:m,extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m),targetingID:this.props.targetingID}));},_getLocationUnavailableEditor:function(m){return (c('React').createElement(c('AdsCommonTargetingLocationUnavailableEditor'),{extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m)}));},_getMapLocationEditor:function(m){return (c('React').createElement(c('AdsCommonTargetingMapLocationEditor'),{config:m,extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m),targetingID:this.props.targetingID}));},_getBehaviorsEditor:function(m){return (c('React').createElement(c('AdsCommonTargetingBehaviorsEditor'),{accountID:this.props.extraData.accountID||'0',config:m,extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m),targetingID:this.props.targetingID}));},_getCategoriesEditor:function(m){return (c('React').createElement(c('AdsCommonTargetingCategoriesEditor'),{config:m,extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m),targetingID:this.props.targetingID}));},_getConnectionsEditor:function(m){return (c('React').createElement(c('AdsCommonTargetingConnectionsEditor'),{config:m,extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m),targetingID:this.props.targetingID}));},_getAppTargetEditor:function(m){return (c('React').createElement(c('AdsCommonTargetingAppTargetEditor'),{config:m,extraData:this.props.extraData,targetingID:this.props.targetingID}));},_getAdvancedDemographicsDropdownEditor:function(m){return (c('React').createElement(c('AdsCommonTargetingAdvancedDemographicsDropdownEditor'),{accountID:this.props.extraData.accountID||'0',config:m,extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m),targetingID:this.props.targetingID}));},_getSimpleDemographicsDropdownEditor:function(m){return (c('React').createElement(c('AdsCommonTargetingSimpleDemographicsDropdownEditor.react'),{accountID:this.props.extraData.accountID||'0',config:m,extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m),targetingID:this.props.targetingID}));},_getInfoTableTextRow:function(m){return (c('React').createElement(c('AdsInfoTableTextRow.react'),{helpLink:this.props.extraData.helpLink,text:this.props.extraData.text}));},_getNotes:function(m){return (c('React').createElement(c('AdsNotes.react'),{notes:this.props.extraData.notes}));},_getMobilePlatformEditor:function(m){return (c('React').createElement(c('AdsCommonTargetingMobilePlatformEditor'),{config:m,extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m),targetingID:this.props.targetingID}));},_getSaveSpecComponent:function(m){return (c('React').createElement(c('AdsCommonTargetingSaveSpec'),{config:m,extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m),targetingID:this.props.targetingID}));},_getLoadSpecComponent:function(m){return (c('React').createElement(c('AdsCommonTargetingLoadSpec'),{config:m,extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m),targetingID:this.props.targetingID}));},_getTargetingSentences:function(m){return (c('React').createElement(c('AdsCommonTargetingSentences'),{config:m,extraData:this.props.extraData,targetingID:this.props.targetingID}));},_getEstimatedReach:function(m){return (c('React').createElement(c('AdsCommonTargetingEstimatedReach'),{config:m,extraData:this.props.extraData,targetingID:this.props.targetingID}));},_getMsiteExample:function(m){return (c('React').createElement(c('MAdsCommonTargetingExampleView'),{config:m,extraData:this.props.extraData,targetingID:this.props.targetingID}));},_getSectionDivider:function(m){return c('React').createElement('hr',{className:"_26or"});},_getInvisibleSectionDivider:function(m){return c('React').createElement('div',{style:{height:5}});},_getFlexibleEditor:function(m){return (c('React').createElement(c('AdsCommonTargetingFlexibleTargetingEditor'),{config:m,extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m),targetingID:this.props.targetingID}));},_getUnifiedFlexibleEditor:function(m){return (c('React').createElement(c('AdsUnifiedFlexibleTargetingEditor'),{config:m,extraData:this.props.extraData,isMixedState:this.isComponentMixedState(m),rowRenderer:this.rowRenderer.bind(this,m),targetingID:this.props.targetingID}));},_getExpandableLink:function(m){return (c('React').createElement(c('AdsTargetingExpandableLinkContainer.react'),{config:m,extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m)}));},_getHideableContainer:function(m){return (c('React').createElement(c('AdsTargetingHideableContainer.react'),{config:m,extraData:this.props.extraData,rowRenderer:this.rowRenderer.bind(this,m),targetingID:this.props.targetingID}));}});f.exports=l;},null);
__d('AdsCommonTargetingViewController.react',['AdInterfacesUiLogger','AdsCommonTargetingActions','AdsCommonTargetingApiTransformer','AdsCommonTargetingBulkApiSpecStoreInstance','AdsCommonTargetingLoggingConstant','AdsCommonTargetingUtils','AdsCommonTargetingViewConfig','AdsCommonTargetingViewConfigValidator','AdsCommonTargetingViewRenderer','AdsEmptyValue','AdsTargetingConnectConfig','AdsTargetingExperimentStoreUtils','AdsUniformValue','Arbiter','React','SubscriptionsHandler','TargetingSpecStore','WebApiApplication','areEqual','performanceNow','AdsCommonTargetingLoggerStore','AdsCreationConfig','CurrencyConfig','AdsDaoConfig','BonsaiConfig','CustomAudienceHashIdSchemaTypesJS','CustomAudienceSessionTypesJS','CustomAudienceSimpleIdSchemaTypesJS','DateFormatConfig','InsightsCountryNames','InsightsCurrencyNames','InsightsLocaleNames','NumberFormatConfig','AdsDaoGraph'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h='____common_targeting_api_spec_change',i='____common_targeting_validation_complete',j='____targeting_controller_change';c('AdsCommonTargetingLoggerStore');c('AdsCreationConfig');c('CurrencyConfig');c('AdsDaoConfig');c('BonsaiConfig');c('CustomAudienceHashIdSchemaTypesJS');c('CustomAudienceSessionTypesJS');c('CustomAudienceSimpleIdSchemaTypesJS');c('DateFormatConfig');c('InsightsCountryNames');c('InsightsCurrencyNames');c('InsightsLocaleNames');c('NumberFormatConfig');var k=c('React').PropTypes,l='canonical-id';function m(o,p){'use strict';this.$AdsCommonTargetingViewController1=null;this.$AdsCommonTargetingViewController2={};this.$AdsCommonTargetingViewController3=new (c('SubscriptionsHandler'))();this.$AdsCommonTargetingViewController4=o||l;c('AdsCommonTargetingBulkApiSpecStoreInstance').clearState(this.$AdsCommonTargetingViewController4);c('AdsCommonTargetingActions').initTargetingForID(this.$AdsCommonTargetingViewController4);if(!c('WebApiApplication').getAccessToken())c('WebApiApplication').init(c('AdsTargetingConnectConfig').access_token,c('AdsTargetingConnectConfig').client_id);this.$AdsCommonTargetingViewController5={dao:p||c('AdsDaoGraph'),controller:this};this.$AdsCommonTargetingViewController3.addSubscriptions(c('TargetingSpecStore').subscribe('change',function(){c('Arbiter').inform(h,{targetingID:this.$AdsCommonTargetingViewController4});this.validate();}.bind(this)),c('AdsCommonTargetingBulkApiSpecStoreInstance').addListener('change',function(q){if(q.targetingID===this.$AdsCommonTargetingViewController4)c('Arbiter').inform(h,{targetingID:this.$AdsCommonTargetingViewController4});}.bind(this)));}m.prototype.destroy=function(){'use strict';this.$AdsCommonTargetingViewController3.release();};m.prototype.clearAllState=function(){'use strict';c('AdsCommonTargetingActions').clearAllState();c('AdsCommonTargetingBulkApiSpecStoreInstance').clearAllState();};m.prototype.setApiSpec=function(o){'use strict';if(c('areEqual')(o,this.getApiSpec()))return;var p=c('AdsCommonTargetingApiTransformer').fromApi(o,this.$AdsCommonTargetingViewController5.apiTranformerBehaviors);c('AdsCommonTargetingActions').initTargetingForID(this.$AdsCommonTargetingViewController4);c('AdsCommonTargetingBulkApiSpecStoreInstance').clearState(this.$AdsCommonTargetingViewController4);c('AdsCommonTargetingActions').updateStoreFromExternal(p,this.$AdsCommonTargetingViewController4);};m.prototype.setBulkApiSpec=function(o){'use strict';var p=c('AdsCommonTargetingUtils').getMixedStateComponents(o,this.$AdsCommonTargetingViewController1),q=p.newSpec,r=p.mixedStateComponents,s=p.remainingBulkSpec;this.setExtraData({mixedStateComponents:r});var t=c('AdsCommonTargetingApiTransformer').fromApi(q,this.$AdsCommonTargetingViewController5.apiTranformerBehaviors);c('AdsCommonTargetingActions').initTargetingForID(this.$AdsCommonTargetingViewController4);c('AdsCommonTargetingBulkApiSpecStoreInstance').clearState(this.$AdsCommonTargetingViewController4);c('AdsCommonTargetingActions').updateStoreFromExternal(t,this.$AdsCommonTargetingViewController4);c('AdsCommonTargetingActions').updateBulkSpec(s,this.$AdsCommonTargetingViewController4);};m.prototype.getApiSpec=function(){'use strict';return c('TargetingSpecStore').getTargetingApiSpec();};m.prototype.getBulkApiSpec=function(){'use strict';var o=c('TargetingSpecStore').getTargetingApiSpec(),p={},q=c('AdsCommonTargetingBulkApiSpecStoreInstance').getState(this.$AdsCommonTargetingViewController4);Object.keys(o).forEach(function(r){p[r]=new (c('AdsUniformValue'))(o[r]);});Object.assign(p,q);return p;};m.prototype.clearMixedStateForComponent=function(o){'use strict';var p=o.component,q=this.$AdsCommonTargetingViewController5.mixedStateComponents||{};delete q[p];var r=c('AdsCommonTargetingViewConfig').getFieldsForComponent(p),s=this.getBulkApiSpec();r.forEach(function(t){var u=s[t];if(u)s[t]=c('AdsEmptyValue').instance();});this.setBulkApiSpec(s);};m.prototype.addValidators=function(o){'use strict';o.forEach(function(p){this.$AdsCommonTargetingViewController2[p.getValidationKey()]=p;}.bind(this));};m.prototype.setValidators=function(o){'use strict';this.$AdsCommonTargetingViewController2={};this.addValidators(o);};m.prototype.subscribeValidationComplete=function(o,p){'use strict';var q=c('Arbiter').subscribe(i,function(r,s){if(s.targetingID===this.$AdsCommonTargetingViewController4&&o==s.validationKey)p(s.result);}.bind(this));this.$AdsCommonTargetingViewController3.addSubscriptions(q);return q;};m.prototype.validate=function(){'use strict';var o=this.getApiSpec();Object.keys(this.$AdsCommonTargetingViewController2).forEach(function(p){var q=this.$AdsCommonTargetingViewController2[p];q.validate(o).done(function(r){return c('Arbiter').inform(i,{validationKey:q.getValidationKey(),result:r,targetingID:this.$AdsCommonTargetingViewController4});}.bind(this));}.bind(this));};m.prototype.subscribeApiChange=function(o){'use strict';var p=c('Arbiter').subscribe(h,function(q,r){if(r.targetingID===this.$AdsCommonTargetingViewController4)o(this.getApiSpec());}.bind(this));this.$AdsCommonTargetingViewController3.addSubscriptions(p);return p;};m.prototype.subscribeBulkApiChange=function(o){'use strict';var p=c('Arbiter').subscribe(h,function(q,r){if(r.targetingID===this.$AdsCommonTargetingViewController4)o(this.getBulkApiSpec());}.bind(this));this.$AdsCommonTargetingViewController3.addSubscriptions(p);return p;};m.prototype.setConfiguration=function(o){'use strict';c('AdsCommonTargetingViewConfigValidator').validate(o);this.$AdsCommonTargetingViewController1=o;c('Arbiter').inform(j,{targetingID:this.$AdsCommonTargetingViewController4});};m.prototype.getConfiguration=function(){'use strict';return this.$AdsCommonTargetingViewController1;};m.prototype.setExtraData=function(o){'use strict';Object.assign(this.$AdsCommonTargetingViewController5,o);if(o.ageMinLimit)c('AdsCommonTargetingActions').updateStoreFromExternal({ageMinLimit:o.ageMinLimit},this.$AdsCommonTargetingViewController4);c('Arbiter').inform(j,{targetingID:this.$AdsCommonTargetingViewController4});};m.prototype.getExtraData=function(){'use strict';return this.$AdsCommonTargetingViewController5;};m.prototype.getTargetingID=function(){'use strict';return this.$AdsCommonTargetingViewController4;};m.prototype.render=function(){'use strict';return c('React').createElement(n,{controller:this});};var n=c('React').createClass({displayName:'AdsCommonTargetingControllerWrapper',propTypes:{controller:k.instanceOf(m).isRequired},componentWillMount:function(){c('AdInterfacesUiLogger').log(c('AdsCommonTargetingLoggingConstant').CONTAINER_IMPRESSION);if(!this._isExposureLogged){this._isExposureLogged=true;c('AdsTargetingExperimentStoreUtils').getBootloadExperiment().logExposure();}this._subscriptions=new (c('SubscriptionsHandler'))();this._subscriptions.addSubscriptions(c('Arbiter').subscribe(j,function(o,p){if(p.targetingID===this.props.controller.getTargetingID())this.forceUpdate();}.bind(this)));this._startLoading=c('performanceNow')();},componentWillUnmount:function(){this._subscriptions.release();this._isExposureLogged=false;c('AdInterfacesUiLogger').log(c('AdsCommonTargetingLoggingConstant').SESSION_DURATION,c('performanceNow')()-this._startLoading);},render:function(){return (c('React').createElement(c('AdsCommonTargetingViewRenderer'),{config:this.props.controller.getConfiguration(),extraData:this.props.controller.getExtraData(),targetingID:this.props.controller.getTargetingID()}));}});f.exports=m;},null);
__d('MenuStaticItem.react',['MenuStaticItem'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(j){j.isReactLegacyFactory={};j.type=j;}var i=c('MenuStaticItem');h(i);f.exports=i;},null);
__d('CountryCodeMap',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={US:'United States',CA:'Canada',GB:'United Kingdom',AR:'Argentina',AU:'Australia',AT:'Austria',BE:'Belgium',BR:'Brazil',CL:'Chile',CN:'China',CO:'Colombia',HR:'Croatia',DK:'Denmark',DO:'Dominican Republic',EG:'Egypt',FI:'Finland',FR:'France',DE:'Germany',GR:'Greece',HK:'Hong Kong',IN:'India',ID:'Indonesia',IE:'Ireland',IL:'Israel',IT:'Italy',JP:'Japan',JO:'Jordan',KW:'Kuwait',LB:'Lebanon',MY:'Malaysia',MX:'Mexico',NL:'Netherlands',NZ:'New Zealand',NG:'Nigeria',NO:'Norway',PK:'Pakistan',PA:'Panama',PE:'Peru',PH:'Philippines',PL:'Poland',RU:'Russia',SA:'Saudi Arabia',RS:'Serbia',SG:'Singapore',ZA:'South Africa',KR:'South Korea',ES:'Spain',SE:'Sweden',CH:'Switzerland',TW:'Taiwan',TH:'Thailand',TR:'Turkey',AE:'United Arab Emirates',VE:'Venezuela',PT:'Portugal',LU:'Luxembourg',BG:'Bulgaria',CZ:'Czech Republic',SI:'Slovenia',IS:'Iceland',SK:'Slovakia',LT:'Lithuania',TT:'Trinidad and Tobago',BD:'Bangladesh',LK:'Sri Lanka',KE:'Kenya',HU:'Hungary',MA:'Morocco',CY:'Cyprus',JM:'Jamaica',EC:'Ecuador',RO:'Romania',BO:'Bolivia',GT:'Guatemala',CR:'Costa Rica',QA:'Qatar',SV:'El Salvador',HN:'Honduras',NI:'Nicaragua',PY:'Paraguay',UY:'Uruguay',PR:'Puerto Rico',BA:'Bosnia and Herzegovina',PS:'Palestine',TN:'Tunisia',BH:'Bahrain',VN:'Vietnam',GH:'Ghana',MU:'Mauritius',UA:'Ukraine',MT:'Malta',BS:'The Bahamas',MV:'Maldives',OM:'Oman',MK:'Macedonia',LV:'Latvia',EE:'Estonia',IQ:'Iraq',DZ:'Algeria',AL:'Albania',NP:'Nepal',MO:'Macau',ME:'Montenegro',SN:'Senegal',GE:'Georgia',BN:'Brunei',UG:'Uganda',GP:'Guadeloupe',BB:'Barbados',AZ:'Azerbaijan',TZ:'Tanzania',LY:'Libya',MQ:'Martinique',CM:'Cameroon',BW:'Botswana',ET:'Ethiopia',KZ:'Kazakhstan',NA:'Namibia',MG:'Madagascar',NC:'New Caledonia',MD:'Moldova',FJ:'Fiji',BY:'Belarus',JE:'Jersey',GU:'Guam',YE:'Yemen',ZM:'Zambia',IM:'Isle Of Man',HT:'Haiti',KH:'Cambodia',AW:'Aruba',PF:'French Polynesia',AF:'Afghanistan',BM:'Bermuda',GY:'Guyana',AM:'Armenia',MW:'Malawi',AG:'Antigua',RW:'Rwanda',GG:'Guernsey',GM:'The Gambia',FO:'Faroe Islands',LC:'St. Lucia',KY:'Cayman Islands',BJ:'Benin',AD:'Andorra',GD:'Grenada',VI:'US Virgin Islands',BZ:'Belize',VC:'Saint Vincent and the Grenadines',MN:'Mongolia',MZ:'Mozambique',ML:'Mali',AO:'Angola',GF:'French Guiana',UZ:'Uzbekistan',DJ:'Djibouti',BF:'Burkina Faso',MC:'Monaco',TG:'Togo',GL:'Greenland',GA:'Gabon',GI:'Gibraltar',CD:'Democratic Republic of the Congo',KG:'Kyrgyzstan',PG:'Papua New Guinea',BT:'Bhutan',KN:'Saint Kitts and Nevis',SZ:'Swaziland',LS:'Lesotho',LA:'Laos',LI:'Liechtenstein',MP:'Northern Mariana Islands',SR:'Suriname',SC:'Seychelles',VG:'British Virgin Islands',TC:'Turks and Caicos Islands',DM:'Dominica',MR:'Mauritania',AX:'Aland Islands',SM:'San Marino',SL:'Sierra Leone',NE:'Niger',CG:'Republic of the Congo',AI:'Anguilla',YT:'Mayotte',CV:'Cape Verde',GN:'Guinea',TM:'Turkmenistan',BI:'Burundi',TJ:'Tajikistan',VU:'Vanuatu',SB:'Solomon Islands',ER:'Eritrea',WS:'Samoa',AS:'American Samoa',FK:'Falkland Islands',GQ:'Equatorial Guinea',TO:'Tonga',KM:'Comoros',PW:'Palau',FM:'Federated States of Micronesia',CF:'Central African Republic',SO:'Somalia',MH:'Marshall Islands',VA:'Vatican City',TD:'Chad',KI:'Kiribati',ST:'Sao Tome and Principe',TV:'Tuvalu',NR:'Nauru',RE:'R\u00e9union',LR:'Liberia',ZW:'Zimbabwe',CI:'C\u00f4te d\'Ivoire',MM:'Myanmar'};f.exports=h;},null);
__d('TokenizerExampleSearchSource',['AbstractSearchSource','CountryCodeMap','SearchableEntry','filterObject','forEachObject'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('AbstractSearchSource'));i=h&&h.prototype;j.prototype.searchImpl=function(k,l,m){'use strict';var n=[];m=m||{};if(k){var o=k.toLowerCase(),p=c('filterObject')(c('CountryCodeMap'),function(r){return r.toLowerCase().startsWith(o);}),q=0;c('forEachObject')(p,function(r,s){return n.push(new (c('SearchableEntry'))({order:q++,photo:'/images/mobile/glyph/book_blue_s.png',subtitle:r,title:r,uniqueID:s}));});}l(n,k);};function j(){'use strict';h.apply(this,arguments);}f.exports=j;},null);
__d('XUIMenuStaticItem.react',['MenuStaticItem.react'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('MenuStaticItem.react');f.exports=h;},null);
__d("TopicFeedsConstant",[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={DEFAULT_PHOTO_AUTO_TAGGING_DELAY:3000,DEFAULT_TEXT_AUTO_TAGGING_DELAY:3000,DEFAULT_COMPOSER_TOPIC_LIMIT:3};f.exports=h;},null);
__d('PhotoUploadFacerecWaterfallTypedLogger',['Banzai','GeneratedLoggerUtils','nullthrows'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(){this.clear();}h.prototype.log=function(){c('GeneratedLoggerUtils').log('logger:PhotoUploadFacerecWaterfallLoggerConfig',this.$PhotoUploadFacerecWaterfallTypedLogger1,c('Banzai').BASIC);};h.prototype.logVital=function(){c('GeneratedLoggerUtils').log('logger:PhotoUploadFacerecWaterfallLoggerConfig',this.$PhotoUploadFacerecWaterfallTypedLogger1,c('Banzai').VITAL);};h.prototype.clear=function(){this.$PhotoUploadFacerecWaterfallTypedLogger1={};return this;};h.prototype.updateData=function(j){this.$PhotoUploadFacerecWaterfallTypedLogger1=babelHelpers['extends']({},this.$PhotoUploadFacerecWaterfallTypedLogger1,j);return this;};h.prototype.setEvent=function(j){this.$PhotoUploadFacerecWaterfallTypedLogger1.event=j;return this;};h.prototype.setFaceBoxID=function(j){this.$PhotoUploadFacerecWaterfallTypedLogger1.face_box_id=j;return this;};h.prototype.setPhotoFbid=function(j){this.$PhotoUploadFacerecWaterfallTypedLogger1.photo_fbid=j;return this;};h.prototype.setRecognizedUser=function(j){this.$PhotoUploadFacerecWaterfallTypedLogger1.recognized_user=j;return this;};h.prototype.setTaggedUser=function(j){this.$PhotoUploadFacerecWaterfallTypedLogger1.tagged_user=j;return this;};h.prototype.setVC=function(j){this.$PhotoUploadFacerecWaterfallTypedLogger1.vc=j;return this;};var i={event:true,face_box_id:true,photo_fbid:true,recognized_user:true,tagged_user:true,vc:true};f.exports=h;},null);
__d('TopicFeedsComposerTypedLogger',['Banzai','GeneratedLoggerUtils','nullthrows'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(){this.clear();}h.prototype.log=function(){c('GeneratedLoggerUtils').log('logger:TopicFeedsComposerLoggerConfig',this.$TopicFeedsComposerTypedLogger1,c('Banzai').BASIC);};h.prototype.logVital=function(){c('GeneratedLoggerUtils').log('logger:TopicFeedsComposerLoggerConfig',this.$TopicFeedsComposerTypedLogger1,c('Banzai').VITAL);};h.prototype.clear=function(){this.$TopicFeedsComposerTypedLogger1={};return this;};h.prototype.updateData=function(j){this.$TopicFeedsComposerTypedLogger1=babelHelpers['extends']({},this.$TopicFeedsComposerTypedLogger1,j);return this;};h.prototype.setClassifySessionID=function(j){this.$TopicFeedsComposerTypedLogger1.classify_session_id=j;return this;};h.prototype.setComposerID=function(j){this.$TopicFeedsComposerTypedLogger1.composer_id=j;return this;};h.prototype.setEntryPointRef=function(j){this.$TopicFeedsComposerTypedLogger1.entry_point_ref=j;return this;};h.prototype.setEvent=function(j){this.$TopicFeedsComposerTypedLogger1.event=j;return this;};h.prototype.setLinkAttachmentCount=function(j){this.$TopicFeedsComposerTypedLogger1.link_attachment_count=j;return this;};h.prototype.setPhotoAttachmentCount=function(j){this.$TopicFeedsComposerTypedLogger1.photo_attachment_count=j;return this;};h.prototype.setPredictionCount=function(j){this.$TopicFeedsComposerTypedLogger1.prediction_count=j;return this;};h.prototype.setPredictionDuration=function(j){this.$TopicFeedsComposerTypedLogger1.prediction_duration=j;return this;};h.prototype.setPredictionErrorReason=function(j){this.$TopicFeedsComposerTypedLogger1.prediction_error_reason=j;return this;};h.prototype.setPredictionIsSuccessful=function(j){this.$TopicFeedsComposerTypedLogger1.prediction_is_successful=j;return this;};h.prototype.setTargetType=function(j){this.$TopicFeedsComposerTypedLogger1.target_type=j;return this;};h.prototype.setTopicAdded=function(j){this.$TopicFeedsComposerTypedLogger1.topic_added=j;return this;};h.prototype.setTopicRemoved=function(j){this.$TopicFeedsComposerTypedLogger1.topic_removed=j;return this;};h.prototype.setTopicsAutoTagged=function(j){this.$TopicFeedsComposerTypedLogger1.topics_auto_tagged=c('GeneratedLoggerUtils').serializeVector(j);return this;};h.prototype.setTopicsTagged=function(j){this.$TopicFeedsComposerTypedLogger1.topics_tagged=c('GeneratedLoggerUtils').serializeVector(j);return this;};h.prototype.setTopicsUserAdded=function(j){this.$TopicFeedsComposerTypedLogger1.topics_user_added=c('GeneratedLoggerUtils').serializeVector(j);return this;};h.prototype.setTopicsUserRemoved=function(j){this.$TopicFeedsComposerTypedLogger1.topics_user_removed=c('GeneratedLoggerUtils').serializeVector(j);return this;};h.prototype.setVC=function(j){this.$TopicFeedsComposerTypedLogger1.vc=j;return this;};var i={classify_session_id:true,composer_id:true,entry_point_ref:true,event:true,link_attachment_count:true,photo_attachment_count:true,prediction_count:true,prediction_duration:true,prediction_error_reason:true,prediction_is_successful:true,target_type:true,topic_added:true,topic_removed:true,topics_auto_tagged:true,topics_tagged:true,topics_user_added:true,topics_user_removed:true,vc:true};f.exports=h;},null);
__d('ReactComposerBoostedPostLazyButton.react',['Bootloader','React','ReactDOM'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('React').createClass({displayName:'ReactComposerBoostedPostLazyButton',componentDidMount:function(){c('Bootloader').loadModules(["BoostedPostDialogButton.react"],function(i){c('ReactDOM').render(c('React').createElement(i,this.props),c('ReactDOM').findDOMNode(this.refs.boostButtonContainer));}.bind(this));},render:function(){return (c('React').createElement('span',{ref:'boostButtonContainer'}));}});f.exports=h;},null);
__d('ReactComposerPagesBootloader',['Bootloader'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={statusAttachment:function(i){c('Bootloader').loadModules(["ReactComposerStatusAttachmentContainer.react","PagesComposerPostButton.react"],i);},mediaAttachment:function(i){c('Bootloader').loadModules(["ReactComposerMediaAttachmentContainer.react","PagesComposerPostButton.react"],i);},qandaAttachment:function(i){c('Bootloader').loadModules(["ReactComposerQAndAAttachmentContainer.react","PagesComposerPostButton.react"],i);},questionAttachment:function(i){c('Bootloader').loadModules(["ReactComposerQuestionAttachmentContainer.react","PagesComposerPostButton.react"],i);},extraAttachment:function(i){c('Bootloader').loadModules(["PagesComposerExtraAttachmentContainer.react","PagesComposerPostButton.react"],i);}};f.exports=h;},null);
__d('ReactComposerAsyncRequest',['ReactComposerActions','ReactComposerPostUtilsCore','AsyncRequest'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('AsyncRequest'));i=h&&h.prototype;function j(k,l){'use strict';i.constructor.call(this,l);this.$ReactComposerAsyncRequest1=k;i.setHandler.call(this,this.$ReactComposerAsyncRequest4.bind(this));i.setErrorHandler.call(this,this.$ReactComposerAsyncRequest5.bind(this));i.setFinallyHandler.call(this,this.$ReactComposerAsyncRequest6.bind(this));}j.prototype.setHandler=function(k){'use strict';this.$ReactComposerAsyncRequest2=k;return this;};j.prototype.setErrorHandler=function(k){'use strict';this.$ReactComposerAsyncRequest3=k;return this;};j.prototype.$ReactComposerAsyncRequest4=function(k){'use strict';setTimeout(function(){c('ReactComposerPostUtilsCore').handlePostSucceeded(this.$ReactComposerAsyncRequest1);this.$ReactComposerAsyncRequest2&&this.$ReactComposerAsyncRequest2(k);}.bind(this),0);};j.prototype.$ReactComposerAsyncRequest5=function(k){'use strict';setTimeout(function(){c('ReactComposerActions').postError(this.$ReactComposerAsyncRequest1,k);this.$ReactComposerAsyncRequest3&&this.$ReactComposerAsyncRequest3(k);}.bind(this),0);};j.prototype.$ReactComposerAsyncRequest6=function(k){'use strict';setTimeout(function(){return c('ReactComposerActions').postFinally(this.$ReactComposerAsyncRequest1,k);}.bind(this),0);};f.exports=j;},null);
__d('ReactComposerAutosSellActionType',['keyMirror'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();f.exports=c('keyMirror')({REGISTER_AUTOS_COMPOSER:null,SAVE_YEAR:null,SAVE_ODOMETER:null,SAVE_MAKE:null,SAVE_MODEL:null,SAVE_VIN:null,SELECT_TYPEAHEAD:null,SAVE_ODOMETER_UNIT:null});},null);
__d('ReactComposerAutosSellStore.react',['Assert','ReactComposerAutosSellActionType','ReactComposerStoreBase','ReactComposerSellStore'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();var j=['807311116002614','1558493264400524'],k=4,l=8,m=255,n=255,o=17;h=babelHelpers.inherits(p,c('ReactComposerStoreBase'));i=h&&h.prototype;function p(){'use strict';var q;i.constructor.call(this,function(){return {showAutosForSellOptions:false,year:'',odometer:'',odometerUnits:'kilometers',make:'',model:'',vin:''};},function(r){switch(r.type){case c('ReactComposerAutosSellActionType').SAVE_YEAR:q&&q.$ReactComposerAutosSellStore1(r);break;case c('ReactComposerAutosSellActionType').SAVE_ODOMETER:q&&q.$ReactComposerAutosSellStore2(r);break;case c('ReactComposerAutosSellActionType').SAVE_ODOMETER_UNIT:q&&q.$ReactComposerAutosSellStore3(r);break;case c('ReactComposerAutosSellActionType').SAVE_MAKE:q&&q.$ReactComposerAutosSellStore4(r);break;case c('ReactComposerAutosSellActionType').SAVE_MODEL:q&&q.$ReactComposerAutosSellStore5(r);break;case c('ReactComposerAutosSellActionType').SAVE_VIN:q&&q.$ReactComposerAutosSellStore6(r);break;}});q=this;}p.prototype.getMaxCharactersForYear=function(q){'use strict';return k;};p.prototype.getMaxCharactersForOdometer=function(q){'use strict';return l;};p.prototype.getMaxCharactersForMake=function(q){'use strict';return m;};p.prototype.getMaxCharactersForModel=function(q){'use strict';return n;};p.prototype.getNumCharactersForVIN=function(q){'use strict';return o;};p.prototype.getYear=function(q){'use strict';return this.getComposerData(q).year;};p.prototype.getOdometerValue=function(q){'use strict';return this.getComposerData(q).odometer;};p.prototype.getMake=function(q){'use strict';return this.getComposerData(q).make;};p.prototype.getModel=function(q){'use strict';return this.getComposerData(q).model;};p.prototype.getVIN=function(q){'use strict';return this.getComposerData(q).vin;};p.prototype.getCategoryInfo=function(q){'use strict';c('Assert').isTruthy(j.length>0,'Constant has an unexpected value');var r=j[0],s=c('ReactComposerSellStore').getCategoryTextForID(q,r);if(s&&s.length>0)return [r,s];return null;};p.prototype.getOdometerUnits=function(q){'use strict';return this.getComposerData(q).odometerUnits;};p.prototype.isUnitSelected=function(q){'use strict';return !!this.getComposerData(q).saveOdometerUnit;};p.prototype.isYearSelected=function(q){'use strict';return !!this.getComposerData(q).saveYear;};p.prototype.showAutosSpecificFields=function(q){'use strict';var r=c('ReactComposerSellStore').getCategoryID(q);return r!==null&&j.indexOf(r)!==-1&&c('ReactComposerSellStore').showAutosForSellOptions(q);};p.prototype.$ReactComposerAutosSellStore2=function(q){'use strict';var r=this.validateAction(q,['composerID','odometer']),s=r[0],t=r[1];if(/^\d*$/.test(t)&&t.length<=l){var u=this.getComposerData(s),v=parseInt(t.substring(0,l),10);u.odometer=v>0?v+'':'';this.emitChange(s);}};p.prototype.$ReactComposerAutosSellStore1=function(q){'use strict';var r=this.validateAction(q,['composerID','year']),s=r[0],t=r[1];if(t===''||/^[1-2][0-9]{0,3}$/.test(t)){var u=this.getComposerData(s);u.year=t;this.emitChange(s);}};p.prototype.$ReactComposerAutosSellStore4=function(q){'use strict';var r=this.validateAction(q,['composerID','make']),s=r[0],t=r[1],u=this.getComposerData(s);u.make=t.substring(0,m);this.emitChange(s);};p.prototype.$ReactComposerAutosSellStore5=function(q){'use strict';var r=this.validateAction(q,['composerID','model']),s=r[0],t=r[1],u=this.getComposerData(s);u.model=t.substring(0,n);this.emitChange(s);};p.prototype.$ReactComposerAutosSellStore6=function(q){'use strict';var r=this.validateAction(q,['composerID','vin']),s=r[0],t=r[1];if(/^[0-9a-zA-Z]*$/.test(t)&&t.length<=o){var u=this.getComposerData(s);u.vin=t.toUpperCase();this.emitChange(s);}};p.prototype.$ReactComposerAutosSellStore3=function(q){'use strict';var r=this.validateAction(q,['composerID','odometerUnit']),s=r[0],t=r[1],u=this.getComposerData(s);u.odometerUnit=t;this.emitChange(s);};f.exports=new p();},null);
__d('ReactComposerFileActionType',['keyMirror'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();f.exports=c('keyMirror')({RESET:null,SAVE_DROPBOX_FILE:null,SAVE_FILE:null,SET_FILE_CONFIG:null});},null);
__d('ReactComposerFileStore',['fbt','ReactComposerFileActionType','ReactComposerStoreBase'],function a(b,c,d,e,f,g,h){var i,j;if(c.__markCompiled)c.__markCompiled();i=babelHelpers.inherits(k,c('ReactComposerStoreBase'));j=i&&i.prototype;function k(){'use strict';var l;j.constructor.call(this,function(){return {dialogAppURL:null,dropboxActionEndpoint:null,dropboxAppID:null,dropboxEnabled:null,dropboxFileID:null,file:null,maxFileUploadString:null,selectedDropboxFileName:l&&l.$ReactComposerFileStore1(),selectedFileName:l&&l.$ReactComposerFileStore1()};},function(m){switch(m.type){case c('ReactComposerFileActionType').RESET:l&&l.$ReactComposerFileStore2(m);break;case c('ReactComposerFileActionType').SAVE_DROPBOX_FILE:l&&l.$ReactComposerFileStore3(m);break;case c('ReactComposerFileActionType').SAVE_FILE:l&&l.$ReactComposerFileStore4(m);break;case c('ReactComposerFileActionType').SET_FILE_CONFIG:l&&l.$ReactComposerFileStore5(m);break;}});l=this;}k.prototype.getDialogAppURL=function(l){'use strict';return this.getComposerData(l).dialogAppURL;};k.prototype.getDropboxActionEndpoint=function(l){'use strict';return this.getComposerData(l).dropboxActionEndpoint;};k.prototype.getDropboxAppID=function(l){'use strict';return this.getComposerData(l).dropboxAppID;};k.prototype.getDropboxEnabled=function(l){'use strict';return this.getComposerData(l).dropboxEnabled;};k.prototype.getDropboxFileID=function(l){'use strict';return this.getComposerData(l).dropboxFileID;};k.prototype.getFile=function(l){'use strict';return this.getComposerData(l).file;};k.prototype.getMaxFileUploadSize=function(l){'use strict';return this.getComposerData(l).maxFileUploadSize;};k.prototype.getMaxFileUploadString=function(l){'use strict';return this.getComposerData(l).maxFileUploadString;};k.prototype.getSelectedDropboxFileName=function(l){'use strict';return this.getComposerData(l).selectedDropboxFileName;};k.prototype.getSelectedFileName=function(l){'use strict';return this.getComposerData(l).selectedFileName;};k.prototype.getURI=function(l){'use strict';return this.hasFile(l)?'/ajax/groups/files/upload':'/ajax/groups/files/dropbox_publish';};k.prototype.hasDropboxFile=function(l){'use strict';return !!this.getComposerData(l).dropboxFileID;};k.prototype.hasFile=function(l){'use strict';return !!this.getComposerData(l).file;};k.prototype.isFileSelected=function(l){'use strict';var m=this.getComposerData(l);return !!m.file||!!m.dropboxFileID;};k.prototype.$ReactComposerFileStore1=function(){'use strict';return h._("No file chosen");};k.prototype.$ReactComposerFileStore2=function(l){'use strict';var m=this.validateAction(l,'composerID'),n=this.getComposerData(m);n.file=n.dropboxFileID=null;n.selectedFileName=n.selectedDropboxFileName=this.$ReactComposerFileStore1();this.emitChange(l.composerID);};k.prototype.$ReactComposerFileStore3=function(l){'use strict';var m=this.validateAction(l,['composerID','id','name']),n=m[0],o=m[1],p=m[2],q=this.getComposerData(n);q.dropboxFileID=o;q.selectedDropboxFileName=p;this.emitChange(n);};k.prototype.$ReactComposerFileStore4=function(l){'use strict';var m=this.validateAction(l,['composerID','file','name']),n=m[0],o=m[1],p=m[2],q=this.getComposerData(n);q.file=o;q.selectedFileName=p;this.emitChange(l.composerID);};k.prototype.$ReactComposerFileStore5=function(l){'use strict';var m=this.validateAction(l,['composerID','config']),n=m[0],o=m[1],p=this.getComposerData(n);p.dialogAppURL=o.dialogAppURL;p.dropboxActionEndpoint=o.dropboxActionEndpoint;p.dropboxAppID=o.dropboxAppID;p.dropboxEnabled=o.dropboxEnabled;p.maxFileUploadSize=o.maxFileUploadSize;p.maxFileUploadString=o.maxFileUploadString;this.emitChange(l.composerID);};f.exports=new k();},null);
__d('ReactComposerAudienceActionTypes',['keyMirror'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();f.exports=c('keyMirror')({SET_AUDIENCE:null,SET_AUDIENCE_ELEMENT:null,SET_AUDIENCE_INSTANCE:null,SET_PRIVACYX_NULL_DANGEROUS:null});},null);
__d('ReactComposerAudienceStore',['csx','invariant','ReactComposerActionStore','ReactComposerAudienceActionTypes','$','DOM'],function a(b,c,d,e,f,g,h,i){var j,k;if(c.__markCompiled)c.__markCompiled();j=babelHelpers.inherits(l,c('ReactComposerActionStore'));k=j&&j.prototype;function l(){'use strict';var m;k.constructor.call(this,function(){return {audience:null,audienceElement:null,audienceInstance:null,legacyAudience:null,privacyxNullDangerous:false};},function(n){switch(n.type){case c('ReactComposerAudienceActionTypes').SET_AUDIENCE:m&&m.$ReactComposerAudienceStore1(n);break;case c('ReactComposerAudienceActionTypes').SET_AUDIENCE_ELEMENT:m&&m.$ReactComposerAudienceStore2(n);break;case c('ReactComposerAudienceActionTypes').SET_AUDIENCE_INSTANCE:m&&m.$ReactComposerAudienceStore3(n);break;case c('ReactComposerAudienceActionTypes').SET_PRIVACYX_NULL_DANGEROUS:m&&m.$ReactComposerAudienceStore4(n);break;}});m=this;}l.prototype.getAudience=function(m){'use strict';if(this.getPrivacyxNullDangerous(m))return null;var n=c('DOM').scry(c('$')(m),"._5dd8");!(n.length<2)?i(0):void 0;var o=n[0];if(o){var p=c('DOM').scry(o,'input[name="privacyx"]');!(p.length<2)?i(0):void 0;if(p.length===1)return p[0].value;}return this.getComposerData(m).audience;};l.prototype.getLegacyAudience=function(m){'use strict';return this.getComposerData(m).legacyAudience;};l.prototype.getAudienceElement=function(m){'use strict';return this.getComposerData(m).audienceElement;};l.prototype.getAudienceInstance=function(m){'use strict';return this.getComposerData(m).audienceInstance;};l.prototype.getPrivacyxNullDangerous=function(m){'use strict';return this.getComposerData(m).privacyxNullDangerous;};l.prototype.$ReactComposerAudienceStore1=function(m){'use strict';var n=this.validateAction(m,'composerID'),o=this.getComposerData(n);o.audience=m.audience;o.legacyAudience=m.legacyAudience;this.emitChange(n);};l.prototype.$ReactComposerAudienceStore2=function(m){'use strict';var n=this.validateAction(m,['composerID','audienceElement']),o=n[0],p=n[1],q=this.getComposerData(o);q.audienceElement=p;this.emitChange(o);};l.prototype.$ReactComposerAudienceStore3=function(m){'use strict';var n=this.validateAction(m,'composerID'),o=this.getComposerData(n);o.audienceInstance=m.audienceInstance;this.emitChange(n);};l.prototype.$ReactComposerAudienceStore4=function(m){'use strict';var n=this.validateAction(m,'composerID'),o=this.getComposerData(n);o.privacyxNullDangerous=m.privacyxNullDangerous;this.emitChange(n);};f.exports=new l();},null);
__d('ReactComposerAlbumActionType',['keyMirror'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();f.exports=c('keyMirror')({CREATE_ALBUM_CLICKED:null});},null);
__d('ReactComposerPerfLogger',['ComposerType','ComposerXSessionIDs','MarauderLogger'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={},i=c('ComposerType').NORMAL,j={logEvent:function(k,l){var m=arguments.length<=2||arguments[2]===undefined?{}:arguments[2],n=h[l],o=c('ComposerXSessionIDs').getSessionID(l);if(!n||!o)return;if(m.logOncePerSession){if(!n.loggedEventTypes[o])n.loggedEventTypes[o]={};if(n.loggedEventTypes[o][k])return;n.loggedEventTypes[o][k]=true;}var p=babelHelpers['extends']({},m.extraData,{composer_type:i,composer_version:n.composerVersion,target_type:n.targetType,target_id:n.targetID,ref:n.entryPointRef});c('MarauderLogger').log(k,'composer',p,undefined,undefined,o);},registerComposer:function(k,l,m,n,o){h[k.id]={targetID:o,targetType:l,entryPointRef:m,composerVersion:n,loggedEventTypes:{}};},getInstance:function(k){return h[k];}};f.exports=j;},null);
__d('ReactComposerLoggingStore',['ReactComposerActionTypes','ReactComposerAlbumActionType','ReactComposerAttachmentActionType','ReactComposerAttachmentStore','ReactComposerAttachmentType','ReactComposerDispatcher','ReactComposerLoggingQueue','ReactComposerPerfLogger','ReactComposerPhotoActionType','ReactComposerPhotoStore','ReactComposerPhotoUploadActionType','ReactComposerPhotoUploadStore','ReactComposerStore','ReactComposerStoreBase','ReactComposerTaggerActionType','ReactComposerTaggerStore','ReactComposerTaggerType','ReactComposerVideoUploadActionType','ComposerPerfEvent','ComposerWaterfallEvent','ComposerXMarauderLogger','ComposerXSessionIDs','immutable','PhotosUploadWaterfallXMixin','PUWApplications','PUWMethods','PUWSteps','classWithMixins','mixin','performanceAbsoluteNow','nullthrows','PhotoUploadFacerecWaterfallTypedLogger','FacerecWaterfallEvent'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('classWithMixins')(c('ReactComposerStoreBase'),c('mixin')(c('PhotosUploadWaterfallXMixin'))));i=h&&h.prototype;function j(){'use strict';var k;i.constructor.call(this,function(){return {composerPerfQueue:c('immutable').List(),composerWaterfallQueue:c('immutable').List(),perfTimes:{},PUWQueue:c('immutable').List(),sessionID:null,uniqueEvents:c('immutable').Map([[c('PUWSteps').CLIENT_PUBLISH_SUCCESS,false],[c('PUWSteps').CLIENT_FLOW_SUCCESS,false]])};},function(l){if(c('ReactComposerLoggingQueue').getLength()>0)k&&k.$ReactComposerLoggingStore1();if(l.composerID){k&&k.$ReactComposerLoggingStore2(l.composerID);k&&k.$ReactComposerLoggingStore3(l.composerID);k&&k.$ReactComposerLoggingStore4(l.composerID);}k&&k.handler(l);});k=this;}j.prototype.handler=function(k){'use strict';switch(k.type){case c('ReactComposerAttachmentActionType').SELECT_ATTACHMENT:this.$ReactComposerLoggingStore5(k);break;case c('ReactComposerAttachmentActionType').SET_BOOTLOADED:c('ReactComposerDispatcher').waitFor([c('ReactComposerAttachmentStore').getDispatchToken()]);this.$ReactComposerLoggingStore6(k);break;case c('ReactComposerAttachmentActionType').SET_BOOTSTRAPPED:c('ReactComposerDispatcher').waitFor([c('ReactComposerAttachmentStore').getDispatchToken()]);this.$ReactComposerLoggingStore7(k);break;case c('ReactComposerPhotoUploadActionType').PHOTO_UPLOAD_INPUT_CLICKED:this.$ReactComposerLoggingStore8(k);break;case c('ReactComposerAlbumActionType').CREATE_ALBUM_SELECTOR_CLICKED:this.$ReactComposerLoggingStore9(k);break;case c('ReactComposerPhotoUploadActionType').PHOTO_UPLOAD_ENQUEUED:this.$ReactComposerLoggingStore10(k);break;case c('ReactComposerPhotoUploadActionType').PHOTO_UPLOAD_RESIZE_STARTED:this.$ReactComposerLoggingStore11(k);break;case c('ReactComposerPhotoUploadActionType').PHOTO_UPLOAD_RESIZE_DONE:this.$ReactComposerLoggingStore12(k);break;case c('ReactComposerPhotoUploadActionType').PHOTO_UPLOAD_RESIZE_FAILED:this.$ReactComposerLoggingStore13(k);break;case c('ReactComposerPhotoUploadActionType').PHOTO_UPLOAD_RESIZER_UNAVAILABLE:this.$ReactComposerLoggingStore14(k);break;case c('ReactComposerPhotoUploadActionType').PHOTO_UPLOAD_UPLOADING:this.$ReactComposerLoggingStore15(k);break;case c('ReactComposerPhotoUploadActionType').PHOTO_UPLOAD_DONE:this.$ReactComposerLoggingStore16(k);break;case c('ReactComposerPhotoUploadActionType').PHOTO_UPLOAD_FAILED:this.$ReactComposerLoggingStore17(k);break;case c('ReactComposerPhotoUploadActionType').PHOTO_UPLOAD_REMOVE:this.$ReactComposerLoggingStore18(k);break;case c('ReactComposerPhotoActionType').PHOTO_REMOVE:this.$ReactComposerLoggingStore19(k);break;case c('ReactComposerVideoUploadActionType').VIDEO_UPLOAD_ADD:this.$ReactComposerLoggingStore20(k);break;case c('ReactComposerVideoUploadActionType').VIDEO_UPLOAD_REMOVE:this.$ReactComposerLoggingStore21(k);break;case c('ReactComposerTaggerActionType').SET_SELECTED_TAGGER:c('ReactComposerDispatcher').waitFor([c('ReactComposerTaggerStore').getDispatchToken()]);this.$ReactComposerLoggingStore22(k);break;case c('ReactComposerActionTypes').POST_STARTED:this.$ReactComposerLoggingStore23(k);break;case c('ReactComposerActionTypes').POST_SUCCEEDED:this.$ReactComposerLoggingStore24(k);break;case c('ReactComposerActionTypes').POST_ERROR:this.$ReactComposerLoggingStore25(k);break;case c('ReactComposerPhotoUploadActionType').PHOTOS_SELECT:this.$ReactComposerLoggingStore26(k);break;case c('ReactComposerPhotoActionType').PHOTO_EDIT_STARTED:this.$ReactComposerLoggingStore27(k);break;case c('ReactComposerPhotoActionType').PHOTO_EDIT_FINISHED:this.$ReactComposerLoggingStore28(k);break;case c('ReactComposerPhotoUploadActionType').PHOTO_UPLOAD_RETRY:this.$ReactComposerLoggingStore29(k);break;case c('ReactComposerPhotoActionType').PHOTO_ADD_FACEBOX:this.$ReactComposerLoggingStore30(k);break;case c('ReactComposerPhotoActionType').PHOTO_RECOGNITION_ALL_FINISHED:this.$ReactComposerLoggingStore31(k);break;default:}};j.prototype.getSessionID=function(k){'use strict';return c('ComposerXSessionIDs').getSessionID(k);};j.prototype.$ReactComposerLoggingStore5=function(k){'use strict';var l=this.validateAction(k,'composerID');if(c('ReactComposerAttachmentStore').isSelectedAttachmentActive(l))this.$ReactComposerLoggingStore32(l,c('ComposerWaterfallEvent').COMPOSER_ENTRY,{logOncePerSession:true});};j.prototype.$ReactComposerLoggingStore6=function(k){'use strict';var l=this.validateAction(k,['id','composerID']),m=l[0],n=l[1];this.$ReactComposerLoggingStore33(n,c('ComposerPerfEvent').CLIENT_BOOTLOADED,{extraData:{attachment_type:m,duration:c('ReactComposerAttachmentStore').getBootloadDuration(n,m)}});};j.prototype.$ReactComposerLoggingStore7=function(k){'use strict';var l=this.validateAction(k,['id','composerID']),m=l[0],n=l[1];this.$ReactComposerLoggingStore33(n,c('ComposerPerfEvent').CLIENT_BOOTSTRAPPED,{extraData:{attachment_type:m,duration:c('ReactComposerAttachmentStore').getBootstrapDuration(n,m)}});};j.prototype.$ReactComposerLoggingStore9=function(k){'use strict';var l=this.validateAction(k,'composerID');this.$ReactComposerLoggingStore32(l,c('ComposerWaterfallEvent').ALBUM_INTENT);};j.prototype.$ReactComposerLoggingStore8=function(k){'use strict';var l=this.validateAction(k,'composerID');this.$ReactComposerLoggingStore32(l,c('ComposerWaterfallEvent').MEDIA_INTENT);this.$ReactComposerLoggingStore34(l,c('PUWSteps').CLIENT_FLOW_BEGIN,null,{logOncePerSession:true});this.$ReactComposerLoggingStore34(l,c('PUWSteps').CLIENT_SELECT_BEGIN);};j.prototype.$ReactComposerLoggingStore10=function(k){'use strict';var l=this.validateAction(k,'composerID');this.$ReactComposerLoggingStore32(l,c('ComposerWaterfallEvent').PHOTO_ADD);};j.prototype.$ReactComposerLoggingStore11=function(k){'use strict';var l=this.validateAction(k,['composerID','loggingData']),m=l[0],n=l[1];this.$ReactComposerLoggingStore34(m,c('PUWSteps').CLIENT_PROCESS_BEGIN,n);};j.prototype.$ReactComposerLoggingStore12=function(k){'use strict';var l=this.validateAction(k,['composerID','loggingData']),m=l[0],n=l[1];this.$ReactComposerLoggingStore34(m,c('PUWSteps').CLIENT_PROCESS_SUCCESS,n);};j.prototype.$ReactComposerLoggingStore13=function(k){'use strict';var l=this.validateAction(k,['composerID','loggingData']),m=l[0],n=l[1];this.$ReactComposerLoggingStore34(m,c('PUWSteps').CLIENT_PROCESS_FAIL,n);};j.prototype.$ReactComposerLoggingStore14=function(k){'use strict';var l=this.validateAction(k,'composerID');this.$ReactComposerLoggingStore34(l,c('PUWSteps').CLIENT_PROCESS_UNAVAILABLE);};j.prototype.$ReactComposerLoggingStore15=function(k){'use strict';var l=this.validateAction(k,['composerID','fileUpload']),m=l[0],n=l[1];this.$ReactComposerLoggingStore34(m,c('PUWSteps').CLIENT_TRANSFER_BEGIN,{bytes:n.getFile().size});};j.prototype.$ReactComposerLoggingStore16=function(k){'use strict';var l=this.validateAction(k,['composerID','fileUpload','timeToUpload']),m=l[0],n=l[1],o=l[2];this.$ReactComposerLoggingStore32(m,c('ComposerWaterfallEvent').PHOTO_ADD_SUCCESS);this.$ReactComposerLoggingStore34(m,c('PUWSteps').CLIENT_TRANSFER_SUCCESS,{bytes:n.getFile().size,auto_retry_count:n.getRetryCount(),dt:o,custom_tags:{manual_retry:!!n.getFile().manuallyRetried}});};j.prototype.$ReactComposerLoggingStore17=function(k){'use strict';var l=this.validateAction(k,['composerID','fileUpload','error','timeToUpload']),m=l[0],n=l[1],o=l[2],p=l[3];this.$ReactComposerLoggingStore32(m,c('ComposerWaterfallEvent').PHOTO_ADD_FAILURE);this.$ReactComposerLoggingStore34(m,c('PUWSteps').CLIENT_TRANSFER_FAIL,{bytes:n.getFile().size,error_code:o.code,error_info:o.description,auto_retry_count:n.getRetryCount(),dt:p,custom_tags:{manual_retry:!!n.getFile().manuallyRetried}});};j.prototype.$ReactComposerLoggingStore18=function(k){'use strict';var l=this.validateAction(k,'composerID');this.$ReactComposerLoggingStore32(l,c('ComposerWaterfallEvent').PHOTO_REMOVE);this.$ReactComposerLoggingStore34(l,c('PUWSteps').CLIENT_TRANSFER_CANCEL);};j.prototype.$ReactComposerLoggingStore19=function(k){'use strict';var l=this.validateAction(k,'composerID');this.$ReactComposerLoggingStore32(l,c('ComposerWaterfallEvent').PHOTO_REMOVE);};j.prototype.$ReactComposerLoggingStore20=function(k){'use strict';var l=this.validateAction(k,'composerID');this.$ReactComposerLoggingStore32(l,c('ComposerWaterfallEvent').VIDEO_ADD);};j.prototype.$ReactComposerLoggingStore21=function(k){'use strict';var l=this.validateAction(k,'composerID');this.$ReactComposerLoggingStore32(l,c('ComposerWaterfallEvent').VIDEO_REMOVE);};j.prototype.$ReactComposerLoggingStore22=function(k){'use strict';var l=this.validateAction(k,'composerID'),m=c('ReactComposerTaggerStore').getSelectedTagger(l),event=null;switch(m){case c('ReactComposerTaggerType').PEOPLE:event=c('ComposerWaterfallEvent').FRIEND_TAG_INTENT;break;case c('ReactComposerTaggerType').LOCATION:event=c('ComposerWaterfallEvent').LOCATION_INTENT;break;case c('ReactComposerTaggerType').ACTIVITY:event=c('ComposerWaterfallEvent').MINUTIAE_INTENT;break;case c('ReactComposerTaggerType').MARKDOWN:event=c('ComposerWaterfallEvent').MARKDOWN_INTENT;break;default:break;}if(event===null)return;this.$ReactComposerLoggingStore32(l,event);};j.prototype.$ReactComposerLoggingStore23=function(k){'use strict';var l=this.validateAction(k,'composerID'),m=this.getComposerData(l);m.perfTimes.postStartTime=c('performanceAbsoluteNow')();this.$ReactComposerLoggingStore32(l,c('ComposerWaterfallEvent').COMPOSER_POST);if(this.$ReactComposerLoggingStore35(l)){this.$ReactComposerLoggingStore34(l,c('PUWSteps').CLIENT_PUBLISH_BEGIN,this.$ReactComposerLoggingStore36(l));c('ReactComposerPhotoStore').getPhotos(l).forEach(function(n){n.faceboxes.forEach(function(o){return (new (c('PhotoUploadFacerecWaterfallTypedLogger'))().setEvent(c('FacerecWaterfallEvent').CLIENT_PHOTO_PUBLISHED).setPhotoFbid(n.id).setFaceBoxID(o.id).setRecognizedUser(o.recognizedSubjectID).setTaggedUser(o.taggedSubjectID).log());});});}};j.prototype.$ReactComposerLoggingStore24=function(k){'use strict';var l=this.validateAction(k,'composerID'),m=this.getComposerData(l);this.$ReactComposerLoggingStore32(l,c('ComposerWaterfallEvent').COMPOSER_POST_SUCCESS);this.$ReactComposerLoggingStore33(l,c('ComposerPerfEvent').CLIENT_POST_SUCCEEDED,{extraData:{attachment_type:c('ReactComposerAttachmentStore').getSelectedAttachmentID(l),duration:c('performanceAbsoluteNow')()-m.perfTimes.postStartTime}});if(this.$ReactComposerLoggingStore35(l)){var n=this.$ReactComposerLoggingStore36(l);this.$ReactComposerLoggingStore34(l,c('PUWSteps').CLIENT_PUBLISH_SUCCESS,n);this.$ReactComposerLoggingStore34(l,c('PUWSteps').CLIENT_FLOW_SUCCESS);}};j.prototype.$ReactComposerLoggingStore25=function(k){'use strict';var l=this.validateAction(k,'composerID'),m=this.getComposerData(l);this.$ReactComposerLoggingStore32(l,c('ComposerWaterfallEvent').COMPOSER_POST_FAILURE);this.$ReactComposerLoggingStore33(l,c('ComposerPerfEvent').CLIENT_POST_FAILED,{extraData:{attachment_type:c('ReactComposerAttachmentStore').getSelectedAttachmentID(l),duration:c('performanceAbsoluteNow')()-m.perfTimes.postStartTime}});if(this.$ReactComposerLoggingStore35(l)){var n=k.response,o=Object.assign(this.$ReactComposerLoggingStore36(l),{error_code:n&&n.getError&&n.getError(),error_info:n&&n.getErrorDescription&&n.getErrorDescription()});this.$ReactComposerLoggingStore34(l,c('PUWSteps').CLIENT_PUBLISH_FAIL,o);}};j.prototype.$ReactComposerLoggingStore26=function(k){'use strict';var l=this.validateAction(k,['composerID','numPhotos','method']),m=l[0],n=l[1],o=l[2],p={method:o,volume:n};this.$ReactComposerLoggingStore34(m,c('PUWSteps').CLIENT_FLOW_BEGIN,null,{logOncePerSession:true});if(o!==c('PUWMethods').FILE_SELECTOR)this.$ReactComposerLoggingStore34(m,c('PUWSteps').CLIENT_SELECT_BEGIN);this.$ReactComposerLoggingStore34(m,c('PUWSteps').CLIENT_SELECT_SUCCESS,p);};j.prototype.$ReactComposerLoggingStore27=function(k){'use strict';var l=this.validateAction(k,'composerID');this.$ReactComposerLoggingStore34(l,c('PUWSteps').CLIENT_PHOTO_EDIT_BEGIN);};j.prototype.$ReactComposerLoggingStore28=function(k){'use strict';var l=this.validateAction(k,'composerID');this.$ReactComposerLoggingStore34(l,c('PUWSteps').CLIENT_PHOTO_EDIT_SUCCESS);};j.prototype.$ReactComposerLoggingStore29=function(k){'use strict';var l=this.validateAction(k,'composerID');this.$ReactComposerLoggingStore34(l,c('PUWSteps').CLIENT_TRANSFER_MANUAL_RETRY);};j.prototype.$ReactComposerLoggingStore30=function(k){'use strict';var l=this.validateAction(k,['photoID','facebox']),m=l[0],n=l[1],o=n.bestRecognition,p=null;if(o)p=o.subjectID;new (c('PhotoUploadFacerecWaterfallTypedLogger'))().setEvent(c('FacerecWaterfallEvent').RECOGNITION_RECEIVED_BY_CLIENT).setPhotoFbid(m).setFaceBoxID(n.id).setRecognizedUser(p).log();};j.prototype.$ReactComposerLoggingStore31=function(k){'use strict';var l=this.validateAction(k,['photos','facerecWaterfallEvent']),m=l[0],n=l[1];m.forEach(function(o){new (c('PhotoUploadFacerecWaterfallTypedLogger'))().setEvent(c('nullthrows')(n)).setPhotoFbid(o).log();});};j.prototype.$ReactComposerLoggingStore35=function(k){'use strict';var l=c('ReactComposerAttachmentStore').getIsAttachmentSelected(k,c('ReactComposerAttachmentType').MEDIA),m=c('ReactComposerPhotoUploadStore').getUploads(k);return l&&!!m.size;};j.prototype.$ReactComposerLoggingStore36=function(k){'use strict';var l=c('ReactComposerTaggerStore').getTaggerData(k,c('ReactComposerTaggerType').PEOPLE)||[],m=c('ReactComposerPhotoUploadStore').getTotalNumberOfStickersOnPhotos(k);return {volume:c('ReactComposerPhotoStore').getPhotos(k).size,with_tag_count:l.length,sticker_count:m};};j.prototype.$ReactComposerLoggingStore32=function(k,event){var l=arguments.length<=2||arguments[2]===undefined?{}:arguments[2];'use strict';var m=this.getComposerData(k);if(m.uniqueEvents.has(event)){if(!!m.uniqueEvents.get(event))return;m.uniqueEvents=m.uniqueEvents.set(event,true);}l.extraData=Object.assign({is_markdown_enabled:!!c('ReactComposerTaggerStore').getTaggerData(k,c('ReactComposerTaggerType').MARKDOWN).isMarkdown},l.extraData);if(!c('ComposerXMarauderLogger').getInstance(k)){m.composerWaterfallQueue=m.composerWaterfallQueue.push({composerID:k,event:event,options:l});return;}c('ComposerXMarauderLogger').logEvent(event,k,l);};j.prototype.$ReactComposerLoggingStore33=function(k,event){var l=arguments.length<=2||arguments[2]===undefined?{}:arguments[2];'use strict';var m=this.getComposerData(k);if(m.uniqueEvents.has(event)){if(m.uniqueEvents.get(event))return;m.uniqueEvents=m.uniqueEvents.set(event,true);}if(!c('ReactComposerPerfLogger').getInstance(k)){m.composerPerfQueue=m.composerPerfQueue.push({composerID:k,event:event,options:l});return;}c('ReactComposerPerfLogger').logEvent(event,k,l);};j.prototype.$ReactComposerLoggingStore34=function(k,l,m,n,o){'use strict';var p=this.getComposerData(k);if(p.uniqueEvents.has(l)){if(!!p.uniqueEvents.get(l))return;p.uniqueEvents=p.uniqueEvents.set(l,true);}if(!this.getSessionID(k)){p.PUWQueue=p.PUWQueue.push({composerID:k,step:l,additionalData:m,options:n,callback:o});return;}this.logPUWStep(l,this.getSessionID(k),c('PUWApplications').WEB_REACT_COMPOSER,c('ReactComposerStore').getRef(k),m,n,o);};j.prototype.$ReactComposerLoggingStore1=function(){'use strict';while(c('ReactComposerLoggingQueue').getLength()>0){var k=c('ReactComposerLoggingQueue').pop();this.handler(k);}};j.prototype.$ReactComposerLoggingStore2=function(k){'use strict';var l=this.getComposerData(k),m=l.composerWaterfallQueue;if(m.size===0)return;if(!c('ComposerXMarauderLogger').getInstance(k))return;m.forEach(function(n){return this.$ReactComposerLoggingStore32(n.composerID,n.event,n.options);}.bind(this));l.composerWaterfallQueue=m.clear();};j.prototype.$ReactComposerLoggingStore3=function(k){'use strict';var l=this.getComposerData(k),m=l.PUWQueue;if(m.size===0)return;if(!this.getSessionID(k))return;m.forEach(function(n){return this.$ReactComposerLoggingStore34(n.composerID,n.step,n.additionalData,n.options,n.callback);}.bind(this));l.PUWQueue=m.clear();};j.prototype.$ReactComposerLoggingStore4=function(k){'use strict';var l=this.getComposerData(k),m=l.composerPerfQueue;if(m.size===0)return;if(!c('ReactComposerPerfLogger').getInstance(k))return;m.forEach(function(n){return this.$ReactComposerLoggingStore33(n.composerID,n.event,n.options);}.bind(this));l.composerPerfQueue=m.clear();};f.exports=new j();},null);
__d('ReactComposerMinutiaeAttachmentActionType',['keyMirror'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();f.exports=c('keyMirror')({FETCH_ATTACHMENT:null,SET_MARKUP:null});},null);
__d("XReactComposerMinutiaeAttachmentController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/react_composer\/minutiae\/attachment\/",{composer_id:{type:"String",required:true},action_id:{type:"String",required:true},object_id:{type:"String",required:true},target_id:{type:"String",required:true},is_timeline:{type:"Bool",defaultValue:false}});},null);
__d('ReactComposerMinutiaeAttachmentStore',['ReactComposerAttachmentActionType','ReactComposerAttachmentType','ReactComposerMinutiaeAttachmentActionType','ReactComposerStoreBase','XReactComposerMinutiaeAttachmentController','AsyncRequest'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('ReactComposerStoreBase'));i=h&&h.prototype;function j(){'use strict';var k;i.constructor.call(this,function(){return {isFetching:false,markup:null,pendingRequest:null};},function(l){switch(l.type){case c('ReactComposerMinutiaeAttachmentActionType').FETCH_ATTACHMENT:k&&k.$ReactComposerMinutiaeAttachmentStore1(l);break;case c('ReactComposerMinutiaeAttachmentActionType').SET_MARKUP:k&&k.$ReactComposerMinutiaeAttachmentStore2(l);break;case c('ReactComposerAttachmentActionType').SELECT_ATTACHMENT:k&&k.$ReactComposerMinutiaeAttachmentStore3(l);break;}});k=this;}j.prototype.getMarkup=function(k){'use strict';return this.getComposerData(k).markup;};j.prototype.isFetching=function(k){'use strict';return this.getComposerData(k).isFetching;};j.prototype.$ReactComposerMinutiaeAttachmentStore1=function(k){'use strict';var l=this.validateAction(k,['composerID','actionID','objectID','targetID','isTimeline']),m=l[0],n=l[1],o=l[2],p=l[3],q=l[4],r=this.getComposerData(m);r.isFetching=true;var s=c('XReactComposerMinutiaeAttachmentController').getURIBuilder().setString('composer_id',m).setString('action_id',n).setString('object_id',o).setString('target_id',p).setBool('is_timeline',q).getURI();r.pendingRequest=new (c('AsyncRequest'))(s).setFinallyHandler(function(){r.isFetching=false;r.pendingRequest=null;this.emitChange(m);}.bind(this));r.pendingRequest.send();this.emitChange(m);};j.prototype.$ReactComposerMinutiaeAttachmentStore2=function(k){'use strict';var l=this.validateAction(k,['composerID','markup']),m=l[0],n=l[1],o=this.getComposerData(m);o.markup=n;this.emitChange(m);};j.prototype.$ReactComposerMinutiaeAttachmentStore3=function(k){'use strict';var l=this.validateAction(k,['composerID','id']),m=l[0],n=l[1];if(n===c('ReactComposerAttachmentType').STATUS)return;var o=this.getComposerData(m);o.markup=null;o.isFetching=false;o.pendingRequest&&o.pendingRequest.abandon();this.emitChange(m);};f.exports=new j();},null);
__d('ReactComposerMultilingualStatusActionType',['keyMirror'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();f.exports=c('keyMirror')({LANGUAGE_CREATED:null,LANGUAGE_CHANGED:null,LANGUAGE_REMOVED:null,SET_LANGUAGE_EDITOR_STATE:null,SET_SPECIFIED_POST_LANGUAGE:null});},null);
__d('ReactComposerMultilingualStatusStore',['ReactComposerMultilingualStatusActionType','ReactComposerStoreBase','getMentionsTextForContentState','immutable'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();var j=c('immutable').Record({languageDialect:null,editorState:null});h=babelHelpers.inherits(k,c('ReactComposerStoreBase'));i=h&&h.prototype;function k(){'use strict';var l;i.constructor.call(this,function(){return {statuses:c('immutable').List(),specifiedPostLanguage:''};},function(m){switch(m.type){case c('ReactComposerMultilingualStatusActionType').LANGUAGE_CREATED:l&&l.$ReactComposerMultilingualStatusStore1(m);break;case c('ReactComposerMultilingualStatusActionType').LANGUAGE_REMOVED:l&&l.$ReactComposerMultilingualStatusStore2(m);break;case c('ReactComposerMultilingualStatusActionType').LANGUAGE_CHANGED:l&&l.$ReactComposerMultilingualStatusStore3(m);break;case c('ReactComposerMultilingualStatusActionType').SET_LANGUAGE_EDITOR_STATE:l&&l.$ReactComposerMultilingualStatusStore4(m);break;case c('ReactComposerMultilingualStatusActionType').SET_SPECIFIED_POST_LANGUAGE:l&&l.$ReactComposerMultilingualStatusStore5(m);break;}});l=this;}k.prototype.getAllPostDialects=function(l){'use strict';var m=this.getLanguageDialects(l);m.push(this.getSpecifiedPostLanguage(l));return m;};k.prototype.getSpecifiedPostLanguage=function(l){'use strict';return this.getComposerData(l).specifiedPostLanguage;};k.prototype.getLanguageDialects=function(l){'use strict';return this.getStatuses(l).map(function(m){return m.languageDialect;}).toArray();};k.prototype.getEditorStates=function(l){'use strict';return this.getStatuses(l).map(function(m){return m.editorState;}).toArray();};k.prototype.getMessages=function(l){'use strict';return this.getStatuses(l).map(function(m){return this.$ReactComposerMultilingualStatusStore6(m);}.bind(this)).toArray();};k.prototype.getMessage=function(l,m){'use strict';var n=this.getStatus(l,m);return this.$ReactComposerMultilingualStatusStore6(n);};k.prototype.getStatuses=function(l){'use strict';return this.getComposerData(l).statuses;};k.prototype.getStatus=function(l,m){'use strict';var n=this.getComposerData(l),o=this.$ReactComposerMultilingualStatusStore7(n.statuses,m);return n.statuses.get(o);};k.prototype.$ReactComposerMultilingualStatusStore7=function(l,m){'use strict';var n=l.findIndex(function(o){return (o.languageDialect===m);});if(n===-1)throw "Undefined status language dialect: "+m;return n;};k.prototype.$ReactComposerMultilingualStatusStore6=function(l){'use strict';var m=l.editorState.getCurrentContent();return c('getMentionsTextForContentState')(m);};k.prototype.$ReactComposerMultilingualStatusStore1=function(l){'use strict';var m=this.validateAction(l,['composerID','languageDialect','languageConfig']),n=m[0],o=m[1],p=m[2],q=this.getComposerData(n),r=new j({languageDialect:o,editorState:p.editorState});q.statuses=q.statuses.push(r);this.emitChange(n);};k.prototype.$ReactComposerMultilingualStatusStore2=function(l){'use strict';var m=this.validateAction(l,['composerID','languageDialect']),n=m[0],o=m[1],p=this.getComposerData(n),q=this.$ReactComposerMultilingualStatusStore7(p.statuses,o);p.statuses=p.statuses.splice(q,1);this.emitChange(n);};k.prototype.$ReactComposerMultilingualStatusStore3=function(l){'use strict';var m=this.validateAction(l,['composerID','oldLanguageDialect','newLanguageDialect']),n=m[0],o=m[1],p=m[2],q=this.getComposerData(n),r=this.$ReactComposerMultilingualStatusStore7(q.statuses,o);q.statuses=q.statuses.set(r,new j({languageDialect:p,editorState:q.statuses.get(r).editorState}));this.emitChange(n);};k.prototype.$ReactComposerMultilingualStatusStore4=function(l){'use strict';var m=this.validateAction(l,['composerID','languageDialect','editorState']),n=m[0],o=m[1],p=m[2],q=this.getComposerData(n),r=this.$ReactComposerMultilingualStatusStore7(q.statuses,o);q.statuses=q.statuses.set(r,new j({languageDialect:o,editorState:p}));this.emitChange(n);};k.prototype.$ReactComposerMultilingualStatusStore5=function(l){'use strict';var m=this.validateAction(l,['composerID','languageDialect']),n=m[0],o=m[1],p=this.getComposerData(n);p.specifiedPostLanguage=o;this.emitChange(n);};f.exports=new k();},null);
__d('ReactComposerRedSpaceActionTypes',['keyMirror'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();f.exports=c('keyMirror')({SET_SHOULD_SHARE_ON_NEWS_FEED:null});},null);
__d('ReactComposerRedSpaceStore',['ReactComposerStoreBase','ReactComposerRedSpaceActionTypes'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('ReactComposerStoreBase'));i=h&&h.prototype;function j(){'use strict';var k;i.constructor.call(this,function(){return {shouldShareOnNewsFeed:true};},function(l){switch(l.type){case c('ReactComposerRedSpaceActionTypes').SET_SHOULD_SHARE_ON_NEWS_FEED:k&&k.$ReactComposerRedSpaceStore1(l);break;}});k=this;}j.prototype.shouldShareOnNewsFeed=function(k){'use strict';return this.getComposerData(k).shouldShareOnNewsFeed;};j.prototype.getIsRedSpacePost=function(k){'use strict';return !this.shouldShareOnNewsFeed(k);};j.prototype.$ReactComposerRedSpaceStore1=function(k){'use strict';var l=this.validateAction(k,'composerID'),m=this.getComposerData(l);m.shouldShareOnNewsFeed=k.shouldShareOnNewsFeed;this.emitChange(l);};f.exports=new j();},null);
__d('ReactComposerScrapedAttachmentActionType',['keyMirror'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();f.exports=c('keyMirror')({ATTACHMENT_SCRAPE_ENABLED:null,ATTACHMENT_PERMISSIVE_MATCH_SETTED:null,ATTACHMENT_SCRAPE_INTENDED:null,ATTACHMENT_SCRAPED:null,ATTACHMENT_CAROUSEL_UPLOAD:null});},null);
__d("XReactComposerScrapedAttachmentController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/react_composer\/scraper\/",{composer_id:{type:"String",required:true},target_id:{type:"String",required:true},scrape_url:{type:"String",required:true},is_finch:{type:"Bool",defaultValue:false},carousel_params:{type:"String"},entry_point:{type:"String",required:true},source_attachment:{type:"String",defaultValue:""}});},null);
__d('ReactComposerScrapedAttachmentStore',['ActorURI','ReactComposerAttachmentActionType','ReactComposerAttachmentStore','ReactComposerAttachmentType','ReactComposerScrapedAttachmentActionType','ReactComposerStoreBase','XReactComposerScrapedAttachmentController','AsyncRequest','PagesComposerCarouselPostChildAttachmentAttributes','PagesComposerCarouselPostLogAttributes','DOM'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('ReactComposerStoreBase'));i=h&&h.prototype;function j(){'use strict';var k;i.constructor.call(this,function(){return {markup:null,attachmentConfig:{},enabled:false,isScraping:false,permissiveMatch:null,sourceAttachment:null};},function(l){switch(l.type){case c('ReactComposerScrapedAttachmentActionType').ATTACHMENT_SCRAPE_ENABLED:k&&k.$ReactComposerScrapedAttachmentStore1(l);break;case c('ReactComposerScrapedAttachmentActionType').ATTACHMENT_PERMISSIVE_MATCH_SETTED:k&&k.$ReactComposerScrapedAttachmentStore2(l);break;case c('ReactComposerScrapedAttachmentActionType').ATTACHMENT_SCRAPE_INTENDED:k&&k.$ReactComposerScrapedAttachmentStore3(l);break;case c('ReactComposerScrapedAttachmentActionType').ATTACHMENT_SCRAPED:k&&k.$ReactComposerScrapedAttachmentStore4(l);break;case c('ReactComposerAttachmentActionType').SELECT_ATTACHMENT:k&&k.$ReactComposerScrapedAttachmentStore5(l);break;case c('ReactComposerScrapedAttachmentActionType').ATTACHMENT_CAROUSEL_UPLOAD:k&&k.$ReactComposerScrapedAttachmentStore6(l);}});k=this;}j.prototype.isEnabled=function(k){'use strict';return this.getComposerData(k).isEnabled;};j.prototype.hasAttachment=function(k){'use strict';return !!this.getMarkup(k);};j.prototype.isScraping=function(k){'use strict';return this.getComposerData(k).isScraping;};j.prototype.getMarkup=function(k){'use strict';return this.getComposerData(k).markup;};j.prototype.isReadOnly=function(k){'use strict';var l=this.getComposerData(k);return l.attachmentConfig&&l.attachmentConfig.readOnly;};j.prototype.getAttachmentConfig=function(k){'use strict';var l=this.getComposerData(k);if(!l.markup)return null;if(!l.attachmentConfig.readOnly){var m=c('DOM').scry(l.markup,'input[name="attachment[params][images][0]"]').pop(),n=c('DOM').scry(l.markup,'input[name="attachment[params][title]"]').pop(),o=c('DOM').scry(l.markup,'input[name="attachment[params][summary]"]').pop();if(m!=null){if(l.attachmentConfig.params.images===undefined)l.attachmentConfig.params.images=[];l.attachmentConfig.params.images[0]=m.value;}if(n!=null)l.attachmentConfig.params.title=n.value;if(o!=null)l.attachmentConfig.params.summary=o.value;var p=c('DOM').scry(l.markup,'input[name="attachment[carousel_log]['+c('PagesComposerCarouselPostLogAttributes').USE_CAROUSEL_COMPOSER+']"]').pop();if(p!=null&&p.value==='1')this.$ReactComposerScrapedAttachmentStore7(l);this.$ReactComposerScrapedAttachmentStore8(l);}return l.attachmentConfig;};j.prototype.$ReactComposerScrapedAttachmentStore8=function(k){'use strict';var l={},m=Object.keys(c('PagesComposerCarouselPostLogAttributes'));for(var n=0;n<m.length;n++){var o=c('PagesComposerCarouselPostLogAttributes')[m[n]],p=c('DOM').scry(k.markup,'input[name="attachment[carousel_log]['+o+']"]').pop();if(!p)continue;l[o]=p.value;}if(Object.keys(l).length!==0)k.attachmentConfig.carousel_log=l;};j.prototype.$ReactComposerScrapedAttachmentStore7=function(k){'use strict';k.attachmentConfig.params.child_attachments={};var l=Object.keys(c('PagesComposerCarouselPostChildAttachmentAttributes')),m=0,n={};while(true){var o=false,p=0;n={};for(p=0;p<l.length;p++){var q=c('DOM').scry(k.markup,'input[name="attachment[params][child_attachments]['+m+']['+c('PagesComposerCarouselPostChildAttachmentAttributes')[l[p]]+']"]').pop();if(q==null)continue;n[c('PagesComposerCarouselPostChildAttachmentAttributes')[l[p]]]=q.value;o=true;}if(!o)break;k.attachmentConfig.params.child_attachments[m]=n;m++;}};j.prototype.getPermissiveMatch=function(k){'use strict';return this.getComposerData(k).permissiveMatch;};j.prototype.$ReactComposerScrapedAttachmentStore1=function(k){'use strict';var l=this.validateAction(k,['composerID','enabled']),m=l[0],n=l[1],o=this.getComposerData(m);o.isEnabled=n;};j.prototype.$ReactComposerScrapedAttachmentStore2=function(k){'use strict';var l=this.validateAction(k,['composerID','permissiveMatch']),m=l[0],n=l[1],o=this.getComposerData(m);o.permissiveMatch=n;this.emitChange(k.composerID);};j.prototype.$ReactComposerScrapedAttachmentStore3=function(k){'use strict';var l=this.validateAction(k,['composerID','targetID','value','entryPoint','actorID']),m=l[0],n=l[1],o=l[2],p=l[3],q=l[4];if(!this.isEnabled(m))return;var r=this.getComposerData(k.composerID);r.isScraping=true;var s=c('ReactComposerAttachmentStore').getSelectedAttachmentID(m),t=c('XReactComposerScrapedAttachmentController').getURIBuilder().setString('composer_id',m).setString('target_id',n).setString('scrape_url',o).setString('entry_point',p).setString('source_attachment',s).getURI();t=c('ActorURI').create(t,q);new (c('AsyncRequest'))(t).send();this.emitChange(k.composerID);};j.prototype.$ReactComposerScrapedAttachmentStore4=function(k){'use strict';if(!this.isEnabled(k.composerID))return;var l=this.getComposerData(k.composerID);l.markup=k.markup;l.attachmentConfig=k.attachmentConfig;l.isScraping=false;l.sourceAttachment=c('ReactComposerAttachmentStore').getSelectedAttachmentID(k.composerID);this.emitChange(k.composerID);};j.prototype.$ReactComposerScrapedAttachmentStore5=function(k){'use strict';var l=this.getComposerData(k.composerID);if(k.id===l.sourceAttachment)return;l.markup=null;l.attachmentConfig={};l.isScraping=false;l.sourceAttachment=null;this.emitChange(k.composerID);};j.prototype.$ReactComposerScrapedAttachmentStore6=function(k){'use strict';var l=this.validateAction(k,['composerID','targetID','scrapeUrl','carouselParams','entryPoint','actorID']),m=l[0],n=l[1],o=l[2],p=l[3],q=l[4],r=l[5],s=this.getComposerData(k.composerID);s.isScraping=true;var t=c('ReactComposerAttachmentStore').getSelectedAttachmentID(m),u=c('XReactComposerScrapedAttachmentController').getURIBuilder().setString('composer_id',m).setString('target_id',n).setString('scrape_url',o).setString('carousel_params',p).setString('entry_point',q).setString('source_attachment',t).getURI();u=c('ActorURI').create(u,r);new (c('AsyncRequest'))(u).send();this.emitChange(k.composerID);};f.exports=new j();},null);
__d('ReactComposerSlideshowActionType',['keyMirror'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();f.exports=c('keyMirror')({HIDE_SLIDESHOW_EDIT_FIELD:null,SHOW_SLIDESHOW_EDIT_FIELD:null});},null);
__d('ReactComposerSlideshowStore',['ReactComposerSlideshowActionType','ReactComposerStoreBase'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('ReactComposerStoreBase'));i=h&&h.prototype;function j(){'use strict';var k;i.constructor.call(this,function(){return {isSlideshowSelected:false};},function(l){switch(l.type){case c('ReactComposerSlideshowActionType').SHOW_SLIDESHOW_EDIT_FIELD:k&&k.$ReactComposerSlideshowStore1(l);break;case c('ReactComposerSlideshowActionType').HIDE_SLIDESHOW_EDIT_FIELD:k&&k.$ReactComposerSlideshowStore2(l);break;default:break;}});k=this;}j.prototype.$ReactComposerSlideshowStore1=function(k){'use strict';var l=k.composerID,m=this.getComposerData(l);m.isSlideshowSelected=true;this.emitChange(l);};j.prototype.$ReactComposerSlideshowStore2=function(k){'use strict';var l=k.composerID,m=this.getComposerData(l);m.isSlideshowSelected=false;this.emitChange(l);};j.prototype.isSlideshowSelected=function(k){'use strict';return this.getComposerData(k).isSlideshowSelected;};f.exports=new j();},null);
__d('ReactComposerTopicFeedsTaggerActionType',['keyMirror'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();f.exports=c('keyMirror')({USER_ADD_TAG:null,USER_REMOVE_TAG:null,PREFILL_TAGS:null,SERVER_UPDATE_TAGS:null,SET_PHOTO_AUTO_TAGGING_DELAY:null,SET_TAGGER_MOUNTED:null,SET_TEXT_AUTO_TAGGING_DELAY:null});},null);
__d('ReactComposerTopicFeedsTaggerActions',['ReactComposerTopicFeedsTaggerActionType','ReactComposerDispatcher'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();h.prototype.addTag=function(i,j){'use strict';c('ReactComposerDispatcher').dispatch({composerID:i,topicID:j,type:c('ReactComposerTopicFeedsTaggerActionType').USER_ADD_TAG});};h.prototype.removeTag=function(i,j){'use strict';c('ReactComposerDispatcher').dispatch({composerID:i,topicID:j,type:c('ReactComposerTopicFeedsTaggerActionType').USER_REMOVE_TAG});};h.prototype.setPhotoAutoTaggingDelay=function(i,j){'use strict';c('ReactComposerDispatcher').dispatch({composerID:i,delay:j,type:c('ReactComposerTopicFeedsTaggerActionType').SET_PHOTO_AUTO_TAGGING_DELAY});};h.prototype.setTaggerMounted=function(i,j){'use strict';c('ReactComposerDispatcher').dispatch({composerID:i,isMounted:j,type:c('ReactComposerTopicFeedsTaggerActionType').SET_TAGGER_MOUNTED});};h.prototype.setTextAutoTaggingDelay=function(i,j){'use strict';c('ReactComposerDispatcher').dispatch({composerID:i,delay:j,type:c('ReactComposerTopicFeedsTaggerActionType').SET_TEXT_AUTO_TAGGING_DELAY});};h.prototype.updateTags=function(i,j){'use strict';c('ReactComposerDispatcher').dispatch({composerID:i,topicIDs:j,type:c('ReactComposerTopicFeedsTaggerActionType').SERVER_UPDATE_TAGS});};h.prototype.prefillTags=function(i,j){'use strict';c('ReactComposerDispatcher').dispatch({composerID:i,topicIDs:j,type:c('ReactComposerTopicFeedsTaggerActionType').PREFILL_TAGS});};function h(){'use strict';}f.exports=new h();},null);
__d("XFeedTopicClassifierController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/feed\/topic\/classifier\/",{message:{type:"String",defaultValue:""},place_tag_id:{type:"FBID"},photo_ids:{type:"FBIDVector"},captions:{type:"StringVector"},urls:{type:"StringVector"},session_id:{type:"String"},tagged_profile_ids:{type:"FBIDVector"},mention_ids:{type:"FBIDVector"},minutiae_action_id:{type:"FBID"},minutiae_object_id:{type:"FBID"},minutiae_object_string:{type:"String"}});},null);
__d('ReactComposerTopicFeedsAutoTaggingRequester',['AsyncRequest','ReactComposerLoggingStore','ReactComposerPhotoUploadStore','ReactComposerStatusStore','ReactComposerTaggerStore','ReactComposerTaggerType','ReactComposerTopicFeedsTaggerActions','Map','TopicFeedsComposerTypedLogger','XFeedTopicClassifierController','URLMatcher','uuid'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=5000;function i(){'use strict';this.$ReactComposerTopicFeedsAutoTaggingRequester1=new (c('Map'))();}i.prototype.sendThrottledRequest=function(j,k){'use strict';if(this.$ReactComposerTopicFeedsAutoTaggingRequester1.has(j))return;this.$ReactComposerTopicFeedsAutoTaggingRequester1.set(j,setTimeout(function(){this.sendImmediateRequest(j);this.$ReactComposerTopicFeedsAutoTaggingRequester1['delete'](j);}.bind(this),k||h));};i.prototype.sendImmediateRequest=function(j){'use strict';var k=c('ReactComposerStatusStore').getMessageText(j),l=c('ReactComposerTaggerStore').getTaggerData(j,c('ReactComposerTaggerType').LOCATION),m=l.place&&l.place.getUniqueID(),n=l.implicitLocation&&l.implicitLocation.citypageid,o=c('ReactComposerPhotoUploadStore').getUploads(j).map(function(u){return u.photoID;}).toArray().filter(function(u){return u;}),p=null,q=c('URLMatcher').match(k);if(q)p=[q];var r=c('uuid')(),s=Date.now(),t=c('XFeedTopicClassifierController').getURIBuilder().setString('message',k).setFBID('place_tag_id',m||n).setFBIDVector('photo_ids',o).setStringVector('urls',p).setString('session_id',c('ReactComposerLoggingStore').getSessionID(j)).getURI();new (c('AsyncRequest'))(t).setHandler(function(u){return this.$ReactComposerTopicFeedsAutoTaggingRequester2(u,j,r,s);}.bind(this)).send();new (c('TopicFeedsComposerTypedLogger'))().setEvent('topic_feeds_composer_predict_start').setComposerID(c('ReactComposerLoggingStore').getSessionID(j)).setClassifySessionID(r).setLinkAttachmentCount(p?p.length:0).setPhotoAttachmentCount(o?o.length:0).log();};i.prototype.clearAllPendingRequests=function(j){'use strict';if(!this.$ReactComposerTopicFeedsAutoTaggingRequester1.has(j))return;clearTimeout(this.$ReactComposerTopicFeedsAutoTaggingRequester1.get(j));this.$ReactComposerTopicFeedsAutoTaggingRequester1['delete'](j);};i.prototype.$ReactComposerTopicFeedsAutoTaggingRequester2=function(j,k,l,m){'use strict';if(!j||!j.payload){new (c('TopicFeedsComposerTypedLogger'))().setEvent('topic_feeds_composer_predict_finish').setComposerID(c('ReactComposerLoggingStore').getSessionID(k)).setClassifySessionID(l).setPredictionDuration(Date.now()-m).setPredictionIsSuccessful(false).setPredictionErrorReason(j?'No data':'No payload').log();return;}else new (c('TopicFeedsComposerTypedLogger'))().setEvent('topic_feeds_composer_predict_finish').setComposerID(c('ReactComposerLoggingStore').getSessionID(k)).setClassifySessionID(l).setTopicsAutoTagged(j.payload).setPredictionDuration(Date.now()-m).setPredictionIsSuccessful(true).setPredictionCount(j.payload.length).log();c('ReactComposerTopicFeedsTaggerActions').updateTags(k,j.payload);};f.exports=new i();},null);
__d('ReactComposerTopicFeedsTaggerStore',['ReactComposerActionTypes','ReactComposerDispatcher','ReactComposerPhotoUploadActionType','ReactComposerPhotoUploadStore','ReactComposerStatusActionType','ReactComposerStoreBase','ReactComposerTopicFeedsTaggerActionType','ReactComposerTopicFeedsAutoTaggingRequester','immutable','TopicFeedsConstant'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();var j=c('TopicFeedsConstant').DEFAULT_PHOTO_AUTO_TAGGING_DELAY,k=c('TopicFeedsConstant').DEFAULT_TEXT_AUTO_TAGGING_DELAY;h=babelHelpers.inherits(l,c('ReactComposerStoreBase'));i=h&&h.prototype;function l(){'use strict';var m=void 0;i.constructor.call(this,function(){return {autoTaggingEnabled:true,photoAutoTaggingDelay:j,taggedTopics:c('immutable').Set(),taggerEnabled:false,textAutoTaggingDelay:k,userRemovedTopics:c('immutable').Set(),userAddedTopics:c('immutable').Set()};},function(n){if(!m)return;var o=m.validateAction(n,'composerID');if(!m.getIsTaggerEnabled(o)&&!m.$ReactComposerTopicFeedsTaggerStore1(n))return;switch(n.type){case c('ReactComposerTopicFeedsTaggerActionType').SET_TAGGER_MOUNTED:m.$ReactComposerTopicFeedsTaggerStore2(n);break;case c('ReactComposerTopicFeedsTaggerActionType').USER_ADD_TAG:m.$ReactComposerTopicFeedsTaggerStore3(n);break;case c('ReactComposerTopicFeedsTaggerActionType').USER_REMOVE_TAG:m.$ReactComposerTopicFeedsTaggerStore4(n);break;case c('ReactComposerTopicFeedsTaggerActionType').SERVER_UPDATE_TAGS:m.$ReactComposerTopicFeedsTaggerStore5(n);break;case c('ReactComposerTopicFeedsTaggerActionType').PREFILL_TAGS:m.$ReactComposerTopicFeedsTaggerStore6(n);break;case c('ReactComposerStatusActionType').SET_EDITOR_STATE:m.$ReactComposerTopicFeedsTaggerStore7(n);break;case c('ReactComposerPhotoUploadActionType').PHOTO_UPLOAD_DONE:c('ReactComposerDispatcher').waitFor([c('ReactComposerPhotoUploadStore').getDispatchToken()]);m.$ReactComposerTopicFeedsTaggerStore8(n);break;case c('ReactComposerActionTypes').POST_STARTED:m.$ReactComposerTopicFeedsTaggerStore9(n);break;case c('ReactComposerActionTypes').POST_ERROR:m.$ReactComposerTopicFeedsTaggerStore10(n);break;case c('ReactComposerTopicFeedsTaggerActionType').SET_TEXT_AUTO_TAGGING_DELAY:m.$ReactComposerTopicFeedsTaggerStore11(n);break;case c('ReactComposerTopicFeedsTaggerActionType').SET_PHOTO_AUTO_TAGGING_DELAY:m.$ReactComposerTopicFeedsTaggerStore12(n);break;}});m=this;}l.prototype.getUserAddedTopics=function(m){'use strict';return this.getComposerData(m).userAddedTopics;};l.prototype.getUserRemovedTopics=function(m){'use strict';return this.getComposerData(m).userRemovedTopics;};l.prototype.getTaggedTopics=function(m){'use strict';return this.getComposerData(m).taggedTopics;};l.prototype.getIsTaggerEnabled=function(m){'use strict';return this.getComposerData(m).taggerEnabled;};l.prototype.$ReactComposerTopicFeedsTaggerStore1=function(m){'use strict';return (m.type===c('ReactComposerTopicFeedsTaggerActionType').SET_TAGGER_MOUNTED||m.type===c('ReactComposerTopicFeedsTaggerActionType').PREFILL_TAGS);};l.prototype.$ReactComposerTopicFeedsTaggerStore2=function(m){'use strict';var n=this.validateAction(m,['composerID','isMounted']),o=n[0],p=n[1],q=this.getComposerData(o);q.taggerEnabled=p;};l.prototype.$ReactComposerTopicFeedsTaggerStore3=function(m){'use strict';var n=this.validateAction(m,['composerID','topicID']),o=n[0],p=n[1],q=this.getComposerData(o);q.userAddedTopics=q.userAddedTopics.add(p);q.taggedTopics=q.taggedTopics.add(p);q.autoTaggingEnabled=false;c('ReactComposerTopicFeedsAutoTaggingRequester').clearAllPendingRequests(o);this.emitChange(o);};l.prototype.$ReactComposerTopicFeedsTaggerStore4=function(m){'use strict';var n=this.validateAction(m,['composerID','topicID']),o=n[0],p=n[1],q=this.getComposerData(o);q.taggedTopics=q.taggedTopics.remove(p);q.userRemovedTopics=q.userRemovedTopics.add(p);q.userAddedTopics=q.userAddedTopics.remove(p);q.autoTaggingEnabled=false;c('ReactComposerTopicFeedsAutoTaggingRequester').clearAllPendingRequests(o);this.emitChange(o);};l.prototype.$ReactComposerTopicFeedsTaggerStore5=function(m){'use strict';var n=this.validateAction(m,['composerID','topicIDs']),o=n[0],p=n[1],q=this.getComposerData(o);q.taggedTopics=q.taggedTopics.union(p).filter(function(r){return !q.userRemovedTopics.has(r);});this.emitChange(o);};l.prototype.$ReactComposerTopicFeedsTaggerStore6=function(m){'use strict';var n=this.validateAction(m,['composerID','topicIDs']),o=n[0],p=n[1],q=this.getComposerData(o);q.taggedTopics=q.taggedTopics.union(p);this.emitChange(o);};l.prototype.$ReactComposerTopicFeedsTaggerStore7=function(m){'use strict';var n=this.validateAction(m,['composerID','editorState']),o=n[0],p=n[1];if(this.getComposerData(o).autoTaggingEnabled&&p.getCurrentContent().getPlainText().length>0)c('ReactComposerTopicFeedsAutoTaggingRequester').sendThrottledRequest(o,this.getComposerData(o).textAutoTaggingDelay);};l.prototype.$ReactComposerTopicFeedsTaggerStore8=function(m){'use strict';var n=this.validateAction(m,'composerID');if(this.getComposerData(n).autoTaggingEnabled)c('ReactComposerTopicFeedsAutoTaggingRequester').sendThrottledRequest(n,this.getComposerData(n).photoAutoTaggingDelay);};l.prototype.$ReactComposerTopicFeedsTaggerStore9=function(m){'use strict';var n=this.validateAction(m,'composerID');c('ReactComposerTopicFeedsAutoTaggingRequester').clearAllPendingRequests(n);this.getComposerData(n).autoTaggingEnabled=false;};l.prototype.$ReactComposerTopicFeedsTaggerStore10=function(m){'use strict';var n=this.validateAction(m,'composerID');this.getComposerData(n).autoTaggingEnabled=true;};l.prototype.$ReactComposerTopicFeedsTaggerStore11=function(m){'use strict';var n=this.validateAction(m,['composerID','delay']),o=n[0],p=n[1];this.getComposerData(o).textAutoTaggingDelay=p;};l.prototype.$ReactComposerTopicFeedsTaggerStore12=function(m){'use strict';var n=this.validateAction(m,['composerID','delay']),o=n[0],p=n[1];this.getComposerData(o).photoAutoTaggingDelay=p;};f.exports=new l();},null);
__d('ReactComposerPostDataUtils',['AdsAPITargetFields','ReactComposerAttachmentStore','ReactComposerAttachmentType','ReactComposerAudienceStore','ReactComposerLoggingStore','ReactComposerMinutiaeAttachmentStore','ReactComposerMultilingualStatusStore','ReactComposerPhotoStore','ReactComposerPostUtilsCore','ReactComposerProfileBadgeStore','ReactComposerPromptsStore','ReactComposerRedSpaceStore','ReactComposerScrapedAttachmentStore','ReactComposerStatusStore','ReactComposerStore','ReactComposerTaggerStore','ReactComposerTaggerType','ReactComposerSlideshowStore','ReactComposerTopicFeedsTaggerStore','PagesComposerBoostedPostsStore','PhotoEditorLoggingConstants','PhotoEditorSaveStates','PUWApplications','isNumberLike'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={getPostData:function(i){var j=i.composerID,k=i.targetID,l=c('ReactComposerTaggerStore').getTaggerData(j,c('ReactComposerTaggerType').PEOPLE)||[],m=[],n=[];l.forEach(function(qa){m.push(qa.getTitle());n.push(qa.getUniqueID());});var o=c('ReactComposerTaggerStore').getTaggerData(j,c('ReactComposerTaggerType').ACTIVITY),p=[],q=[],r=[],s;if(o&&o.action&&o.object){p.push(o.action.getUniqueID());s=o.actionIconID;if(c('isNumberLike')(o.object.getUniqueID())){q.push(o.object.getUniqueID());r.push('');}else r.push(o.object.getTitle());}var t=!c('ReactComposerMinutiaeAttachmentStore').getMarkup(j),u=c('ReactComposerMultilingualStatusStore').getMessages(j),v=c('ReactComposerMultilingualStatusStore').getLanguageDialects(j),w=c('ReactComposerMultilingualStatusStore').getSpecifiedPostLanguage(j),x=c('ReactComposerTaggerStore').getTaggerData(j,c('ReactComposerTaggerType').LOCATION),y=x?x.place:null,z=c('ReactComposerTaggerStore').getTaggerData(j,c('ReactComposerTaggerType').BACKDATE)||{},aa={year:this._sanitizeDateField(z.year),month:this._sanitizeDateField(z.month),day:this._sanitizeDateField(z.day),hour:this._sanitizeDateField(z.hour),minute:this._sanitizeDateField(z.minute)},ba=x&&x.implicitLocation?x.implicitLocation.citypageid:null,ca=c('ReactComposerTaggerStore').getTaggerData(j,c('ReactComposerTaggerType').SPONSOR)||[],da=[];ca.forEach(function(qa){da.push(qa.getUniqueID());});var ea,fa=c('ReactComposerAudienceStore').getLegacyAudience(j);if(fa)ea=[{value:fa}];var ga=c('ReactComposerTaggerStore').getTaggerData(j,c('ReactComposerTaggerType').TARGETING),ha=ga?ga.targeting:null;if(ha&&ha.fan_of)ha.fan_of=ha.fan_of.map(function(qa){return qa.id;});var ia=ga?ga.gating:null,ja=ga?ga.hints:null;if(ja&&ja[c('AdsAPITargetFields').INTERESTS])ja[c('AdsAPITargetFields').INTERESTS]=ja[c('AdsAPITargetFields').INTERESTS].map(function(qa){return qa.id;});if(i.contextInfo.stopFeedDistributionDateFormatted){if(!ha)ha={};if(!ja)ja={};ha['relevant-until-date']=i.contextInfo.stopFeedDistributionDateFormatted;ha['relevant-until-time']=i.contextInfo.stopFeedDistributionTimeFormatted;ja['relevant-until-date']=i.contextInfo.stopFeedDistributionDateFormatted;ja['relevant-until-time']=i.contextInfo.stopFeedDistributionTimeFormatted;}var ka=c('PagesComposerBoostedPostsStore').getConfig(j),la=c('ReactComposerScrapedAttachmentStore').getAttachmentConfig(j),ma=!!c('ReactComposerTaggerStore').getTaggerData(j,c('ReactComposerTaggerType').MARKDOWN).isMarkdown,na=c('ReactComposerTaggerStore').getTaggerData(j,c('ReactComposerTaggerType').CONTENT_WARNINGS);if(na!=null)na=na.map(function(qa){return qa.getUniqueID();});var oa=ha?ha:ja,pa=c('ReactComposerPromptsStore').getPromptData(j);return Object.assign({action_type_id:p,attachment:la,backdated_date:aa,boosted_post_config:ka,audience:ea,composer_session_id:c('ReactComposerLoggingStore').getSessionID(j),composertags_city:ba,composertags_place:y&&y.getUniqueID()||ba,composertags_place_name:y&&y.getTitle(),composertags_with:n,composertags_sponsors:da,content_warnings:na,feed_targeted_data:oa,feed_topics:c('ReactComposerTopicFeedsTaggerStore').getTaggedTopics(j).toArray(),hide_object_attachment:t,icon_id:s,is_explicit_place:!!y,is_markdown:ma,is_q_and_a:c('ReactComposerAttachmentStore').getIsAttachmentSelected(j,c('ReactComposerAttachmentType').QANDA),is_profile_badge_post:c('ReactComposerProfileBadgeStore').hasProfileBadge(j),multilingual_statuses:u,multilingual_status_langs:v,multilingual_specified_lang:w,object_id:q,object_str:r,privacyx:c('ReactComposerAudienceStore').getAudience(j),prompt_id:pa?pa.promptID:null,ref:c('ReactComposerStore').getRef(j),is_redspace_post:c('ReactComposerRedSpaceStore').getIsRedSpacePost(j),tagger_session_id:x&&x.sessionID,target_type:c('ReactComposerStore').getTargetType(j),targeted_privacy_data:ia,text_composertags_with:m,xhpc_message:c('ReactComposerStatusStore').getMessage(j),xhpc_message_text:c('ReactComposerStatusStore').getMessageText(j),is_forced_reshare_of_post:la&&la.reshare_original_post,xc_disable_config:{xc_disable_link:la&&la.readOnly}},this._getScrapedAttachmentData(la),c('ReactComposerPostUtilsCore').getCoreData(j,i.contextInfo,k));},getPhotoUploadsData:function(i,j){var k=j.map(function(l){return l.photoID;}).toArray();return Object.assign({composer_unpublished_photo:k,is_slideshow:c('ReactComposerSlideshowStore').isSlideshowSelected(i),qn:c('ReactComposerLoggingStore').getSessionID(i),waterfallxapp:c('PUWApplications').WEB_REACT_COMPOSER,xy_tags:this._getXYTagData(i)},this._getCreativeEditingToolsData(j));},_sanitizeDateField:function(i){return !i||i===-1||i===0?null:i;},_getXYTagData:function(i){var j=c('ReactComposerPhotoStore').getAllTaggedFaceboxes(i).map(function(l){return {fbid:l.get('photoID'),x:l.get('x'),y:l.get('y'),name:l.get('taggedValue'),subject:l.get('taggedSubjectID'),from_facebox:true,source:l.get('isMagicTag')?'composerx_suggestions':'composerx_flyout'};}),k=c('ReactComposerPhotoStore').getAllXYTags(i).map(function(l){return {fbid:l.get('photoID'),x:l.get('x'),y:l.get('y'),name:l.get('name'),subject:l.get('subject'),from_facebox:l.get('from_facebox'),source:l.get('source')};});return j.concat(k);},_getCreativeEditingToolsData:function(i){var j={},k={},l={},m={};i.forEach(function(o){var p=o.get('photoID'),q=c('PhotoEditorSaveStates').getLoggingData(o.get('originalPhotoID'));if(q){j[p]=q.hasFilter?true:null;k[p]=q.hasCrop?true:null;l[p]=q.textOverlays;m[p]=q.stickers;}});var n={};n[c('PhotoEditorLoggingConstants').COMPOSER_IMAGE_HAS_FILTER]=j;n[c('PhotoEditorLoggingConstants').COMPOSER_IMAGE_HAS_CROP]=k;n[c('PhotoEditorLoggingConstants').COMPOSER_IMAGE_TEXT_OVERLAY]=l;n[c('PhotoEditorLoggingConstants').COMPOSER_IMAGE_STICKER]=m;return n;},_getScrapedAttachmentData:function(i){if(!i||!i.params||i.readOnly)return null;return {xc_share_params:JSON.stringify(i.params),xc_share_target_type:i.type,xc_share_images:i.params.images,xc_share_title:i.params.title,xc_share_summary:i.params.summary,xc_link_url:i.params.url};}};f.exports=h;},null);
__d('ReactComposerQuestionActionType',['keyMirror'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();f.exports=c('keyMirror')({ADD_OPTION:null,ANYONE_ADD_OPTIONS:null,CHOOSE_MULTIPLE_OPTIONS:null,ENTER_POLL_OPTIONS_MODE:null,SHOW_QUESTION_CONFIG:null,SAVE_OPTION_DATA:null,SET_QUESTION_CONFIG:null});},null);
__d('ReactComposerQuestionStore',['ReactComposerQuestionActionType','ReactComposerStoreBase','Map'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();var j=3;h=babelHelpers.inherits(k,c('ReactComposerStoreBase'));i=h&&h.prototype;function k(){'use strict';var l;i.constructor.call(this,function(){return {anyoneAddPollOptions:true,chooseMultiplePollOptions:true,dataSource:null,maxOptionsShown:null,optionIDs:new (c('Map'))(),optionStrings:new (c('Map'))(),pollLinkEnabled:true};},function(m){switch(m.type){case c('ReactComposerQuestionActionType').ADD_OPTION:l&&l.$ReactComposerQuestionStore1(m);break;case c('ReactComposerQuestionActionType').ANYONE_ADD_OPTIONS:l&&l.$ReactComposerQuestionStore2(m);break;case c('ReactComposerQuestionActionType').CHOOSE_MULTIPLE_OPTIONS:l&&l.$ReactComposerQuestionStore3(m);break;case c('ReactComposerQuestionActionType').ENTER_POLL_OPTIONS_MODE:l&&l.$ReactComposerQuestionStore4(m);break;case c('ReactComposerQuestionActionType').SAVE_OPTION_DATA:l&&l.$ReactComposerQuestionStore5(m);break;case c('ReactComposerQuestionActionType').SET_QUESTION_CONFIG:l&&l.$ReactComposerQuestionStore6(m);break;}});l=this;}k.prototype.canAnyoneAddPollOptions=function(l){'use strict';return this.getComposerData(l).anyoneAddPollOptions;};k.prototype.canChooseMultiplePollOptions=function(l){'use strict';return this.getComposerData(l).chooseMultiplePollOptions;};k.prototype.getDataSource=function(l){'use strict';return this.getComposerData(l).dataSource;};k.prototype.getMaxOptionsShown=function(l){'use strict';return this.getComposerData(l).maxOptionsShown;};k.prototype.getNumberOptionsShown=function(l){'use strict';return j;};k.prototype.getOptionIDs=function(l){'use strict';var m=[],n=this.getComposerData(l).optionIDs;n.forEach(function(o,p){return m.push(o);});return m;};k.prototype.getOptionStrings=function(l){'use strict';var m=[],n=this.getComposerData(l).optionStrings;n.forEach(function(o,p){return m.push(o);});return m;};k.prototype.getSearchSource=function(l){'use strict';return this.getComposerData(l).dataSource;};k.prototype.isPollLinkEnabled=function(l){'use strict';return this.getComposerData(l).pollLinkEnabled;};k.prototype.$ReactComposerQuestionStore1=function(l){'use strict';var m=this.validateAction(l,'composerID');j++;this.emitChange(m);};k.prototype.$ReactComposerQuestionStore2=function(l){'use strict';var m=this.validateAction(l,['composerID','value']),n=m[0],o=m[1],p=this.getComposerData(n);p.anyoneAddPollOptions=o;this.emitChange(n);};k.prototype.$ReactComposerQuestionStore3=function(l){'use strict';var m=this.validateAction(l,['composerID','value']),n=m[0],o=m[1],p=this.getComposerData(n);p.chooseMultiplePollOptions=o;this.emitChange(n);};k.prototype.$ReactComposerQuestionStore4=function(l){'use strict';var m=this.validateAction(l,'composerID'),n=this.getComposerData(m);n.pollLinkEnabled=false;this.emitChange(m);};k.prototype.$ReactComposerQuestionStore5=function(l){'use strict';var m=this.validateAction(l,['composerID','optionData']),n=m[0],o=m[1],p=this.getComposerData(n);p.optionIDs.set(o.keyID,o.ID);p.optionStrings.set(o.keyID,o.content);this.emitChange(n);};k.prototype.$ReactComposerQuestionStore6=function(l){'use strict';var m=this.validateAction(l,['composerID','config']),n=m[0],o=m[1],p=this.getComposerData(n);p.dataSource=o.dataSource;p.maxOptionsShown=o.maxOptionsShown;this.emitChange(n);};f.exports=new k();},null);
__d('ReactComposerRedEnvelopeActionType',['keyMirror'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();f.exports=c('keyMirror')({SET_RED_ENVELOPE_CONFIG:null,SET_AVAILABLE_AMOUNT:null,SET_TOTAL_AMOUNT:null,SET_DISTIBUTION:null,SET_NUMBER_OF_ENVELOPES:null});},null);
__d('ReactComposerRedEnvelopeStore',['ReactComposerRedEnvelopeActionType','ReactComposerStoreBase'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('ReactComposerStoreBase'));i=h&&h.prototype;function j(){'use strict';var k;i.constructor.call(this,function(){return {availableAmount:0,totalAmount:1000,distribution:'RND',numberOfEnvelopes:5,contextInfo:null};},function(l){switch(l.type){case c('ReactComposerRedEnvelopeActionType').SET_AVAILABLE_AMOUNT:k&&k.$ReactComposerRedEnvelopeStore1(l);break;case c('ReactComposerRedEnvelopeActionType').SET_TOTAL_AMOUNT:k&&k.$ReactComposerRedEnvelopeStore2(l);break;case c('ReactComposerRedEnvelopeActionType').SET_DISTIBUTION:k&&k.$ReactComposerRedEnvelopeStore3(l);break;case c('ReactComposerRedEnvelopeActionType').SET_NUMBER_OF_ENVELOPES:k&&k.$ReactComposerRedEnvelopeStore4(l);break;case c('ReactComposerRedEnvelopeActionType').SET_RED_ENVELOPE_CONFIG:k&&k.$ReactComposerRedEnvelopeStore5(l);break;}});k=this;}j.prototype.getAvailableAmount=function(k){'use strict';return this.getComposerData(k).availableAmount;};j.prototype.getTotalAmount=function(k){'use strict';return this.getComposerData(k).totalAmount;};j.prototype.getDistribution=function(k){'use strict';return this.getComposerData(k).distribution;};j.prototype.getNumberOfEnvelopes=function(k){'use strict';return this.getComposerData(k).numberOfEnvelopes;};j.prototype.getContextInfo=function(k){'use strict';return this.getComposerData(k).contextInfo;};j.prototype.$ReactComposerRedEnvelopeStore1=function(k){'use strict';var l=this.validateAction(k,['composerID','availableAmount']),m=l[0],n=l[1],o=this.getComposerData(m);o.availableAmount=n;this.emitChange(m);};j.prototype.$ReactComposerRedEnvelopeStore2=function(k){'use strict';var l=this.validateAction(k,['composerID','totalAmount']),m=l[0],n=l[1],o=this.getComposerData(m);o.totalAmount=n;this.emitChange(m);};j.prototype.$ReactComposerRedEnvelopeStore4=function(k){'use strict';var l=this.validateAction(k,['composerID','numberOfEnvelopes']),m=l[0],n=l[1],o=this.getComposerData(m);o.numberOfEnvelopes=n;this.emitChange(m);};j.prototype.$ReactComposerRedEnvelopeStore3=function(k){'use strict';var l=this.validateAction(k,['composerID','distribution']),m=l[0],n=l[1],o=this.getComposerData(m);o.distribution=n;this.emitChange(m);};j.prototype.$ReactComposerRedEnvelopeStore5=function(k){'use strict';var l=this.validateAction(k,['composerID','config']),m=l[0],n=l[1],o=this.getComposerData(m);o.availableAmount=n.availableAmount;o.contextInfo=n.contextInfo;this.emitChange(m);};f.exports=new j();},null);
__d('ReactComposerStatusDonateButtonActionType',['keyMirror'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();f.exports=c('keyMirror')({SET_DONATE_CONFIG:null,UPDATE_DESCRIPTION:null,UPDATE_TITLE:null,SET_DATA:null,SET_ENABLED:null,SET_ERRORS:null,SET_TEXT_DISABLED:null});},null);
__d('ReactComposerStatusDonateButtonStore',['ReactComposerStatusDonateButtonActionType','ReactComposerStoreBase'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('ReactComposerStoreBase'));i=h&&h.prototype;function j(){'use strict';var k;i.constructor.call(this,function(){return {charityName:'',fundraiserCampaignId:1,enabled:false,textDisabled:false,errors:false};},function(l){switch(l.type){case c('ReactComposerStatusDonateButtonActionType').SET_DONATE_CONFIG:k&&k.$ReactComposerStatusDonateButtonStore1(l);break;case c('ReactComposerStatusDonateButtonActionType').UPDATE_TITLE:k&&k.$ReactComposerStatusDonateButtonStore2(l);break;case c('ReactComposerStatusDonateButtonActionType').UPDATE_DESCRIPTION:k&&k.$ReactComposerStatusDonateButtonStore3(l);break;case c('ReactComposerStatusDonateButtonActionType').SET_DATA:k&&k.$ReactComposerStatusDonateButtonStore4(l);break;case c('ReactComposerStatusDonateButtonActionType').SET_ENABLED:k&&k.$ReactComposerStatusDonateButtonStore5(l);break;case c('ReactComposerStatusDonateButtonActionType').SET_ERRORS:k&&k.$ReactComposerStatusDonateButtonStore6(l);break;case c('ReactComposerStatusDonateButtonActionType').SET_TEXT_DISABLED:k&&k.$ReactComposerStatusDonateButtonStore7(l);break;}});k=this;}j.prototype.getFundraiserCampaignID=function(k){'use strict';return this.getComposerData(k).fundraiserCampaignId;};j.prototype.getCharityName=function(k){'use strict';return this.getComposerData(k).charityName;};j.prototype.getTitle=function(k){'use strict';return this.getComposerData(k).title;};j.prototype.getDescription=function(k){'use strict';return this.getComposerData(k).description;};j.prototype.getEnabled=function(k){'use strict';return this.getComposerData(k).enabled;};j.prototype.getErrors=function(k){'use strict';return this.getComposerData(k).errors;};j.prototype.getTextDisabled=function(k){'use strict';return this.getComposerData(k).textDisabled;};j.prototype.$ReactComposerStatusDonateButtonStore1=function(k){'use strict';var l=this.validateAction(k,['composerID','config']),m=l[0],n=l[1],o=this.getComposerData(m);o.fundraiserCampaignId=n.fundraiserCampaignId;o.charityName=n.charityName;this.emitChange(k.composerID);};j.prototype.$ReactComposerStatusDonateButtonStore2=function(k){'use strict';var l=this.validateAction(k,['composerID','title']),m=l[0],n=l[1],o=this.getComposerData(m);o.title=n.substring(0,60);this.emitChange(k.composerID);};j.prototype.$ReactComposerStatusDonateButtonStore3=function(k){'use strict';var l=this.validateAction(k,['composerID','description']),m=l[0],n=l[1],o=this.getComposerData(m);o.description=n;this.emitChange(k.composerID);};j.prototype.$ReactComposerStatusDonateButtonStore4=function(k){'use strict';var l=this.validateAction(k,['composerID','title','description']),m=l[0],n=l[1],o=l[2],p=this.getComposerData(m);p.title=n;p.description=o;this.emitChange(k.composerID);};j.prototype.$ReactComposerStatusDonateButtonStore5=function(k){'use strict';var l=this.validateAction(k,['composerID','enabled']),m=l[0],n=l[1],o=this.getComposerData(m);o.enabled=n;this.emitChange(k.composerID);};j.prototype.$ReactComposerStatusDonateButtonStore6=function(k){'use strict';var l=this.validateAction(k,['composerID','errors']),m=l[0],n=l[1],o=this.getComposerData(m);o.errors=n;this.emitChange(k.composerID);};j.prototype.$ReactComposerStatusDonateButtonStore7=function(k){'use strict';var l=this.validateAction(k,['composerID','textDisabled']),m=l[0],n=l[1],o=this.getComposerData(m);o.textDisabled=n;this.emitChange(k.composerID);};f.exports=new j();},null);
__d("XRedEnvelopeSaveController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/redenv\/save\/",{xhpc_targetid:{type:"Int",required:true},xhpc_composerid:{type:"String",required:true},composer_attachment_message:{type:"String"},distribution:{type:"String",required:true},total_amount:{type:"Int",required:true},number_of_envelopes:{type:"Int",required:true}});},null);
__d("XTimelineMLEWriteController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/mle\/save\/",{create_scrapbook:{type:"Bool",defaultValue:false}});},null);
__d('ReactComposerPostUtils',['invariant','ReactComposerActions','ReactComposerAsyncRequest','ReactComposerAttachmentStore','ReactComposerAttachmentType','ComposerEntryPointRef','ReactComposerFileStore','ReactComposerLifeEventStore','ReactComposerStatusDonateButtonStore','ReactComposerPhotoStore','ReactComposerPhotoUploadStore','ReactComposerPostDataUtils','ReactComposerQuestionStore','ReactComposerRedEnvelopeStore','ReactComposerSellStore','ReactComposerAutosSellStore.react','ReactComposerStatusStore','ReactComposerStore','ReactComposerVideoUploadStore','ReactComposerVideoXUploadStore','XRedEnvelopeSaveController','XTimelineMLEWriteController','ActorURI','Arbiter','HTML','PUWApplications','URI'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={publish:function(j,k){c('ReactComposerActions').publishStarted(j);k=k||{};k.composer_id=j;if(k.streamNode){k.streamStory=k.streamNode;}else if(k.streamMarkup)k.streamStory=c('HTML')(k.streamMarkup).getRootNode();if(k.contentID)k.matchData={content_id:k.contentID};c('Arbiter').inform('composer/publish',k);},isPostButtonDisabled:function(j,k){var l=c('ReactComposerPhotoStore').isLimitExceeded(j,k),m=c('ReactComposerPhotoUploadStore').isUploading(j)||c('ReactComposerVideoXUploadStore').isUploading(j),n=c('ReactComposerPhotoStore').isRecognizing(j),o=!!c('ReactComposerVideoUploadStore').getVideo(j)&&c('ReactComposerStore').isPosting(j);return l||m||n||o;},post:function(j){!!!j.actorID?h(0):void 0;!!!j.composerID?h(0):void 0;!!!j.contextInfo?h(0):void 0;!!!j.targetID?h(0):void 0;var k=j.actorID,l=j.composerID,m=c('ReactComposerAttachmentStore').getIsAttachmentSelected(l,c('ReactComposerAttachmentType').MEDIA),n=c('ReactComposerAttachmentStore').getIsAttachmentSelected(l,c('ReactComposerAttachmentType').QANDA),o=c('ReactComposerAttachmentStore').getIsAttachmentSelected(l,c('ReactComposerAttachmentType').FILE),p=c('ReactComposerAttachmentStore').getIsAttachmentSelected(l,c('ReactComposerAttachmentType').QUESTION),q=c('ReactComposerAttachmentStore').getIsAttachmentSelected(l,c('ReactComposerAttachmentType').RED_ENVELOPE),r=c('ReactComposerAttachmentStore').getIsAttachmentSelected(l,c('ReactComposerAttachmentType').SELL)||c('ReactComposerSellStore').getInterceptSell(l),s=c('ReactComposerAttachmentStore').getIsAttachmentSelected(l,c('ReactComposerAttachmentType').LIFE_EVENT),t=c('ReactComposerPostDataUtils').getPostData(j);if(c('ReactComposerStatusDonateButtonStore').getEnabled(l))Object.assign(t,{cta_data:{type:'DONATE',value:{fundraiser_campaign_id:c('ReactComposerStatusDonateButtonStore').getFundraiserCampaignID(l),link_title:c('ReactComposerStatusDonateButtonStore').getTitle(l),link_description:c('ReactComposerStatusDonateButtonStore').getDescription(l)}}});var u=c('ReactComposerVideoUploadStore').getVideo(l);if(m&&!!u){var v=c('ReactComposerVideoUploadStore').getUploader(l);v&&v.uploadFromFile(u.file,t);return;}var w,x=c('ReactComposerPhotoStore').getPhotos(l),y=c('ReactComposerPhotoUploadStore').getUploads(l),z=y.filter(function(na){return x.some(function(oa){return oa.id===na.photoID;});}),aa=c('ReactComposerVideoXUploadStore').getUploads(l),ba=z.concat(aa);if(r)Object.assign(t,{composer_attachment_sell_title:c('ReactComposerSellStore').getTitleText(l),composer_attachment_sell_price:c('ReactComposerSellStore').getPrice(l),composer_attachment_sell_price_type:c('ReactComposerSellStore').getPriceType(l),composer_attachment_sell_currency:c('ReactComposerSellStore').getCurrency(l),composer_attachment_sell_category:c('ReactComposerSellStore').getCategoryID(l),composer_attachment_sell_location_page_id:c('ReactComposerSellStore').getLocationID(l),composer_attachment_sell_pickup_note:c('ReactComposerSellStore').getPickupNoteText(l),post_to_marketplace:c('ReactComposerSellStore').isNearbyLocationChecked(l),cross_post_checked:c('ReactComposerSellStore').isCrossPostChecked(l),composer_attachment_sell_autos_make:c('ReactComposerAutosSellStore.react').getMake(l),composer_attachment_sell_autos_model:c('ReactComposerAutosSellStore.react').getModel(l),composer_attachment_sell_autos_vin:c('ReactComposerAutosSellStore.react').getVIN(l),composer_attachment_sell_autos_year:c('ReactComposerAutosSellStore.react').getYear(l),composer_attachment_sell_autos_odometer:c('ReactComposerAutosSellStore.react').getOdometerValue(l),composer_attachment_sell_autos_odometer_units:c('ReactComposerAutosSellStore.react').getOdometerUnits(l)});if((m||n||r)&&ba.size>0){w=new (c('URI'))('/media/upload/photos/composer/');var ca=c('ReactComposerPostDataUtils').getPhotoUploadsData(l,z),da=aa.map(function(na){return na.photoID;}).toArray();ca.composer_unpublished_photo=ca.composer_unpublished_photo.concat(da);Object.assign(t,ca);}else if(o){w=new (c('URI'))(c('ReactComposerFileStore').getURI(l));Object.assign(t,{transaction_id:c('ReactComposerFileStore').getDropboxFileID(l)});}else if(p){w=new (c('URI'))('/ajax/questions/save.php');var ea=c('ReactComposerQuestionStore').getOptionIDs(l),fa=c('ReactComposerQuestionStore').getOptionStrings(l);ea.push('');fa.push('');var ga=c('ReactComposerStore').getRef(l);Object.assign(t,{composerAttachmentQuestion:c('ReactComposerStatusStore').getMessageText(l),question_option_ids:ea,question_options:fa,source:ga===c('ComposerEntryPointRef').GROUP?'group':ga===c('ComposerEntryPointRef').EVENT||ga===c('ComposerEntryPointRef').EVENT_ABOUT?'event':null,create_eigenpoll:c('ReactComposerQuestionStore').canChooseMultiplePollOptions(l),anyone_add_options:c('ReactComposerQuestionStore').canAnyoneAddPollOptions(l)});}else if(q){Object.assign(t,{composer_attachment_message:c('ReactComposerStatusStore').getMessageText(l),total_amount:c('ReactComposerRedEnvelopeStore').getTotalAmount(l),distribution:c('ReactComposerRedEnvelopeStore').getDistribution(l),number_of_envelopes:c('ReactComposerRedEnvelopeStore').getNumberOfEnvelopes(l)});w=c('XRedEnvelopeSaveController').getURIBuilder().setString('composer_attachment_message',t.composer_attachment_message).setString('distribution',t.distribution).setInt('total_amount',t.total_amount).setInt('number_of_envelopes',t.number_of_envelopes).setInt('xhpc_targetid',j.targetID).setString('xhpc_composerid',j.composerID).getURI();}else if(r){w=new (c('URI'))('/ajax/groups/sell/save.php');}else if(s){w=c('XTimelineMLEWriteController').getURIBuilder().getURI();var ha=babelHelpers['extends']({},c('ReactComposerLifeEventStore').getSelectedLifeEventFields(l)),ia=Object.keys(t.backdated_date).some(function(na){return t.backdated_date[na]!==null;});if(ia)ha.date_start=t.backdated_date;var ja=z.map(function(na){return {fbid:na.photoID};});Object.assign(t,{field_data_json:JSON.stringify(ha),icon:c('ReactComposerLifeEventStore').getSelectedLifeEventIconID(l),photos:JSON.stringify(ja),story:c('ReactComposerLifeEventStore').getSelectedLifeEventStory(l),surface:'composer',title:c('ReactComposerLifeEventStore').getSelectedLifeEventTitle(l),type:c('ReactComposerLifeEventStore').getSelectedLifeEventType(l)});}else w=new (c('URI'))('/ajax/updatestatus.php');w=c('ActorURI').create(w,k);var ka=new (c('ReactComposerAsyncRequest'))(j.composerID,w).setData(t).setHandler(j.onPostSuccess).setErrorHandler(j.onPostFailure);if(o&&c('ReactComposerFileStore').hasFile(l)){var la=c('ReactComposerFileStore').getFile(l),ma=new FormData();ma.append('file1',la);ka.setRawData(ma);}ka.send();}};f.exports=i;},null);
__d('ReactComposerPagesStore',['ReactComposerActionStore','ReactComposerMediaConfig','ReactComposerPostUtils','PagesComposerUnpublishedPostsStore','formatDate'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('ReactComposerActionStore'));i=h&&h.prototype;function j(){'use strict';i.constructor.call(this);}j.prototype.__onPostStarted=function(k){'use strict';var l=c('PagesComposerUnpublishedPostsStore').getIsDraft(k.composerID),m=Object.assign({},k.config.contextInfo||{});m.draft=l;var n=c('PagesComposerUnpublishedPostsStore').getScheduledPublishTime(k.composerID);if(n){var o=c('formatDate')(n,'m/d/Y',{skipPatternLocalization:true}),p=60*(60*n.getHours()+n.getMinutes());m.scheduled=true;m.future_date=o;m.future_time=p;}var q=c('PagesComposerUnpublishedPostsStore').getBackdateConfig(k.composerID);if(q){m.backdated_date={year:q.year,month:q.month,day:q.day};m.hide_from_newsfeed=q.hideFromNewsFeed;}var r=c('PagesComposerUnpublishedPostsStore').getStopFeedDistributionTime(k.composerID);if(r){m.stopFeedDistributionDateFormatted=c('formatDate')(r,'m/d/Y',{skipPatternLocalization:true});m.stopFeedDistributionTimeFormatted=60*(60*r.getHours()+r.getMinutes());}var s=c('PagesComposerUnpublishedPostsStore').getIsAdsPost(k.composerID);if(s)m.is_ad_post=1;c('ReactComposerPostUtils').post({actorID:k.actorID,composerID:k.composerID,contextInfo:m,targetID:k.targetID,onPostSuccess:k.onPostSuccess});};j.prototype.__canPost=function(k){'use strict';return !c('ReactComposerPostUtils').isPostButtonDisabled(k.composerID,c('ReactComposerMediaConfig').photo.limit);};f.exports=new j();},null);
__d('PagesComposerExtraAttachmentSelector.react',['invariant','ix','ReactComponentWithPureRenderMixin','React','ReactComposerAttachmentSelectorContainer.react','ReactComposerAttachmentType','PagesComposerExtraAttachmentIcons'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=c('React').PropTypes,k=c('React').createClass({displayName:'PagesComposerExtraAttachmentSelector',mixins:[c('ReactComponentWithPureRenderMixin')],propTypes:{label:j.string.isRequired,icon:j.oneOf(Object.keys(c('PagesComposerExtraAttachmentIcons'))).isRequired},render:function(){return (c('React').createElement(c('ReactComposerAttachmentSelectorContainer.react'),{attachmentID:c('ReactComposerAttachmentType').PAGES_EXTRA,label:this.props.label,icon:this._renderIcon()}));},_renderIcon:function(){switch(this.props.icon){case c('PagesComposerExtraAttachmentIcons').FINCH_COUPONS_ICON:return i('/images/icons/pages/coupons/finch-offers.png');case c('PagesComposerExtraAttachmentIcons').Q_AND_A_ICON:return i('/images/litestand/composer/icons/qanda.png');case c('PagesComposerExtraAttachmentIcons').CAUSE_ICON:return i('/images/icons/pages/donations/cause.png');case c('PagesComposerExtraAttachmentIcons').COUPONS_ICON:return i('/images/icons/pages/coupons/offers.png');case c('PagesComposerExtraAttachmentIcons').FINCH_EVENTS_ICON:return i('/images/icons/finch-event.png');case c('PagesComposerExtraAttachmentIcons').EVENTS_ICON:return i('/images/icons/event.gif');case c('PagesComposerExtraAttachmentIcons').PRODUCT_ICON:return i('images/litestand/composer/icons/sell.png');default:h(0);}}});f.exports=k;},null);
__d("XPagesExtraAttachmentBootstrapController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/react_composer\/pages\/extra\/bootstrap\/",{});},null);
__d('PagesComposerExtraLazyAttachment.react',['ReactComposerAttachmentType','ReactComposerLoadableAttachmentBodyMixin','ReactComposerBootloaderPropTypes','ActorURI','React','XPagesExtraAttachmentBootstrapController'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'PagesComposerExtraLazyAttachment',mixins:[c('ReactComposerLoadableAttachmentBodyMixin')],propTypes:{bootloader:c('ReactComposerBootloaderPropTypes').isRequired},statics:{attachmentID:c('ReactComposerAttachmentType').PAGES_EXTRA},bootload:function(j){this.props.bootloader.extraAttachment(j);},getBootstrapURI:function(){var j=c('XPagesExtraAttachmentBootstrapController').getURIBuilder().getURI();return c('ActorURI').create(j,this.context.actorID);}});f.exports=i;},null);
__d('PagesComposerAdsTabbedSections.react',['cx','InsightsTabbedSectionsMixin','React'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'PagesComposerAdsTabbedSections',mixins:[c('InsightsTabbedSectionsMixin')],propTypes:{shouldShowRestrictionTabNux:i.bool},getInitialState:function(){return {showRestrictionTabNux:this.props.shouldShowRestrictionTabNux};},theme:{activeNavLinkClass:"_20im",navClass:"_5cmi",longNavClass:"_3bxh",navLinkClass:"_20in",smallNavLinkClass:"_4d7-",subtitledBlockClass:"_1fkz",subtitleClass:"_1fk-"}});f.exports=j;},null);
__d('PagesComposerAdsGatingSection.react',['cx','fbt','AdsCommonTargetingActions','AdsCommonTargetingViewController.react','AdInterfacesUiLogger','PagesComposerAudiencesConstants','React','dotAccess','isEmpty','joinClasses'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=c('React').PropTypes,k='pages_composer_mgc',l=c('React').createClass({displayName:'PagesComposerAdsGatingSection',_controller:undefined,_subscription:undefined,propTypes:{initialGatingSpec:j.object,onGatingChange:j.func.isRequired},_onGatingChange:function(m){this.props.onGatingChange(m);},componentWillMount:function(){c('AdInterfacesUiLogger').setAppName(k);c('AdInterfacesUiLogger').setAccountID('0');var m=new (c('AdsCommonTargetingViewController.react'))(k),n=c('joinClasses')("__dj","_3on0"),o=c('PagesComposerAudiencesConstants').ADS_GATING_SECTIONS.map(function(s){return {component:s.NAME,customProperties:{showLocationTypeSelector:false,disableAddBulkLocations:true,disallowAddress:true,disallowDMA:true,disallowPlaces:true,enableMap:false,ageMin:13,tooltip:c('dotAccess')(c('PagesComposerAudiencesConstants').GATING_TOOLTIPS,s.NAME)},renderWrapper:function(t){return (c('React').createElement('div',{className:n},t));}};});m.setConfiguration(o);var p=i._("Limit who can see this post. Only people in the audiences you choose can see this post anywhere on Facebook.");m.setExtraData({text:p});var q={};Object.assign(q,this.props.initialGatingSpec);var r=!c('isEmpty')(q)?q:{ageMin:13};c('AdsCommonTargetingActions').updateStoreFromExternal(r,k);this._controller=m;this._subscription=m.subscribeApiChange(function(s){return this._onGatingChange(s);}.bind(this));},componentWillUnmount:function(){this._controller&&this._controller.destroy();},render:function(){return this._controller?this._controller.render():null;}});f.exports=l;},null);
__d('PagesComposerGating.react',['PagesComposerAdsGatingSection.react','React'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'PagesComposerGating',propTypes:{initialGatingSpec:h.object,onGatingChange:h.func.isRequired},render:function(){return (c('React').createElement(c('PagesComposerAdsGatingSection.react'),this.props));}});f.exports=i;},null);
__d('PagesComposerAdsTargetingSection.react',['cx','fbt','AdsCommonTargetingActions','AdsCommonTargetingViewController.react','AdInterfacesUiLogger','PagesComposerAudiencesConstants','React','dotAccess','isEmpty','joinClasses'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=c('React').PropTypes,k='pages_composer_mtc',l=c('React').createClass({displayName:'PagesComposerAdsTargetingSection',_controller:undefined,_subscription:undefined,propTypes:{initialTargetingSpec:j.object,onTargetingChange:j.func.isRequired,canSeeCompleteList:j.bool,useTargetingAsFilter:j.bool,feedTargetingShowReachGK:j.bool,canSeeDemographicOptions:j.bool},_onTargetingChange:function(m){this.props.onTargetingChange(m);},componentWillMount:function(){c('AdInterfacesUiLogger').setAppName(k);c('AdInterfacesUiLogger').setAccountID('0');var m=new (c('AdsCommonTargetingViewController.react'))(k),n=c('joinClasses')("__dj","_3on0"),o=[];if(this.props.useTargetingAsFilter){o=c('PagesComposerAudiencesConstants').ADS_TARGETING_SECTIONS_SHORT_LIST;o=c('PagesComposerAudiencesConstants').InterestsConnection.concat(o);}else{if(this.props.canSeeDemographicOptions)o=this.props.canSeeCompleteList?c('PagesComposerAudiencesConstants').ADS_TARGETING_SECTIONS_COMPLETE_LIST:c('PagesComposerAudiencesConstants').ADS_TARGETING_SECTIONS_SHORT_LIST;o=c('PagesComposerAudiencesConstants').Interests.concat(o);}var p=o.map(function(u){return {component:u.NAME,customProperties:{showReach:false,showWhiteBox:this.props.feedTargetingShowReachGK,showSuggestionWhiteBox:false,retrievePrefillSuggestions:false,filterPartnerData:true,showLocationTypeSelector:false,disableAddBulkLocations:true,disallowAddress:true,disallowDMA:true,disallowZips:true,disallowPlaces:true,enableMap:false,onlyInclusion:true,ageMin:13,useAudienceInterests:true,canSeeCompleteList:this.props.canSeeCompleteList,useTargetingAsFilter:this.props.useTargetingAsFilter,canSeeDemographicOptions:this.props.canSeeDemographicOptions,tooltip:c('dotAccess')(c('PagesComposerAudiencesConstants').TARGETING_SHORT_LIST_TOOLTIPS,u.NAME)},renderWrapper:function(v){return (c('React').createElement('div',{className:n},v));}};}.bind(this));m.setConfiguration(p);var q=this.props.useTargetingAsFilter?i._("Choose who can see this post in News Feed. If someone engages with this post, their friends may see it too."):i._("Choose the people you'd like to reach in News Feed. People in this group are more likely to see your post."),r=i._("e.g. \"baseball\" \"daycare\" \"chicago\" \"Kendrick Lamar\"");m.setExtraData({accountID:'1001276841438',text:q,notes:r});var s={};Object.assign(s,this.props.initialTargetingSpec);var t=!c('isEmpty')(s)?s:{ageMin:13,targetAllGraduationYears:true};c('AdsCommonTargetingActions').updateStoreFromExternal(t,k);this._controller=m;this._subscription=m.subscribeApiChange(function(u){return this._onTargetingChange(u);}.bind(this));},componentWillUnmount:function(){this._controller&&this._controller.destroy();},render:function(){return this._controller?this._controller.render():null;}});f.exports=l;},null);
__d('PagesComposerAudiencesBody.react',['cx','fbt','InsightsTabbedSection.react','PagesComposerAdsTabbedSections.react','PagesComposerTargeting.react','PagesComposerGating.react','React','XUICloseButton.react','PagesComposerAudiencesConstants'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=c('React').PropTypes,k=c('PagesComposerAudiencesConstants').TABS,l=c('React').createClass({displayName:'PagesComposerAudiencesBody',propTypes:{initialActiveKey:j.string,initialTargetingSpec:j.object,initialGatingSpec:j.object,onTargetingChange:j.func.isRequired,onGatingChange:j.func.isRequired,canSeeCompleteList:j.bool,useTargetingAsFilter:j.bool,feedTargetingShowReachGK:j.bool,canSeeDemographicOptions:j.bool,shouldShowRestrictionTabNux:j.bool},getDefaultProps:function(){return {initialActiveKey:k.TARGETING};},getInitialState:function(){return {activeKey:this.props.initialActiveKey};},onSectionTabClick:function(m){this.setState({activeKey:m.type.getKey(m.props)});},render:function(){var m=this.props.useTargetingAsFilter?i._("News Feed Targeting"):i._("Preferred Audience"),n=i._("Audience Restrictions"),o=this.props.shouldShowRestrictionTabNux&&!this.props.thisuseTargetingAsFilter;return (c('React').createElement('div',null,c('React').createElement(c('PagesComposerAdsTabbedSections.react'),{activeKey:this.state.activeKey,onTabClick:function(p){return this.onSectionTabClick(p);}.bind(this),shouldShowRestrictionTabNux:o},c('React').createElement(c('InsightsTabbedSection.react'),{key:k.TARGETING,sectionKey:k.TARGETING,title:m},c('React').createElement(c('PagesComposerTargeting.react'),babelHelpers['extends']({},this.props,{onTargetingChange:this.props.onTargetingChange}))),c('React').createElement(c('InsightsTabbedSection.react'),{key:k.GATING,sectionKey:k.GATING,title:n},c('React').createElement(c('PagesComposerGating.react'),babelHelpers['extends']({},this.props,{onGatingChange:this.props.onGatingChange})))),c('React').createElement(c('XUICloseButton.react'),{label:'close',className:"layerCancel _51-t _5a9y"})));}});f.exports=l;},null);
__d('ReactTargetingTaggerStore.react',['ReactComposerStoreBase','ReactComposerTaggerActionType','ReactComposerTaggerType'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('ReactComposerStoreBase'));i=h&&h.prototype;function j(){'use strict';var k;i.constructor.call(this,function(){var l={};l[c('ReactComposerTaggerType').TARGETING]={};return {taggersData:l,taggersSource:{}};},function(l){if(l.type===c('ReactComposerTaggerActionType').SET_TAGGER_DATA)k&&k.$ReactTargetingTaggerStore1(l);});k=this;}j.prototype.getTaggerData=function(k,l){'use strict';return this.getComposerData(k).taggersData[l];};j.prototype.$ReactTargetingTaggerStore1=function(k){'use strict';var l=this.getComposerData(k.composerID),m=Array.isArray(k.taggerData)?k.taggerData.slice():Object.assign({},k.taggerData);l.taggersData[k.taggerID]=m;this.emitChange(k.composerID);};f.exports=new j();},null);
__d("XPagesGetTargetingMetadataController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/pages\/targeting\/metadata\/",{page_id:{type:"Int",required:true},target_spec:{type:"String",required:true}});},null);
__d('ReactComposerTargetingUtils',['fbt','AsyncRequest','ReactComposerTaggerActions','ReactComposerTaggerStore','ReactComposerTaggerType','ReactTargetingTaggerStore.react','XPagesGetTargetingMetadataController','XUIText.react','React','curry','intlList'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={fetchMetadata:function(j,k,l){var m=c('XPagesGetTargetingMetadataController').getURIBuilder().setInt('page_id',k).setString('target_spec',JSON.stringify(j)).getURI();new (c('AsyncRequest'))().setURI(m).setHandler(c('curry')(this._onFetchMetadataHandler,l)).send();},_onFetchMetadataHandler:function(j,k){var l=k.payload,m=l.sentences.map(function(n){return (c('React').createElement('span',null,h._("{content_label} {children}",[h.param('content_label',c('React').createElement(c('XUIText.react'),{weight:'bold'},n.content)),h.param('children',c('intlList')(n.children,c('intlList').CONJUNCTIONS.OR))])));});j(JSON.parse(l.target_spec),c('React').createElement('span',null,c('intlList')(m,c('intlList').CONJUNCTIONS.NONE)),l.reach_estimate);},getDataFromComposerTaggerStore:function(j){return c('ReactComposerTaggerStore').getTaggerData(j,c('ReactComposerTaggerType').TARGETING);},getDataFromTargetingTaggerStore:function(j){return c('ReactTargetingTaggerStore.react').getTaggerData(j,c('ReactComposerTaggerType').TARGETING);},setData:function(j,k){var l={},m=['targeting','gating','hints','targetingSentences','gatingSentences','reachEstimate'];m.map(function(n){if(k[n])l[n]=k[n];});c('ReactComposerTaggerActions').setTaggerData(j,c('ReactComposerTaggerType').TARGETING,l);}};f.exports=i;},null);
__d('PagesComposerAudiences.react',['cx','fbt','AdsCommonTargetingApiTransformer','BanzaiODS','ReactComposerContextMixin','LayerFadeOnHide','Link.react','PagesComposerAudiencesBody.react','React','ReactComposerTaggerStore','ReactComposerTargetingUtils','ReactTargetingTaggerStore.react','TargetingSpecStore','XUIDialog.react','XUIDialogBody.react','XUIDialogCancelButton.react','XUIDialogFooter.react','XUIDialogSaveButton.react','XUIText.react','areEqual','isEmpty','trimObject'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=c('React').PropTypes,k=587,l=c('React').createClass({displayName:'PagesComposerAudiences',mixins:[c('ReactComposerContextMixin')],propTypes:{shown:j.bool.isRequired,onToggle:j.func.isRequired,onSave:j.func.isRequired,rootElement:j.object,callbackDataStatus:j.func,callbackSelectionStatus:j.func,saveData:j.func,initialActiveKey:j.string,canSeeCompleteList:j.bool,useTargetingAsFilter:j.bool,canSeeDemographicOptions:j.bool,isTargetingTool:j.bool,feedTargetingShowReachGK:j.bool,useFromLegacyComposer:j.bool,shouldShowRestrictionTabNux:j.bool},getStores:function(){if(this.props.useFromLegacyComposer)return [c('ReactTargetingTaggerStore.react')];return [c('ReactComposerTaggerStore')];},getInitialState:function(){return {fetching:false,targeting:this.getInitialSavedData('targeting'),gating:this.getInitialSavedData('gating'),hints:this.getInitialSavedData('hints'),targetingSentences:this.getInitialSavedData('targetingSentences'),gatingSentences:this.getInitialSavedData('gatingSentences'),reachEstimate:this.getInitialReachEstimate()};},componentWillMount:function(){if(this.props.callbackSelectionStatus)this.props.callbackSelectionStatus(true);},componentWillUnmount:function(){if(this.props.callbackSelectionStatus)this.props.callbackSelectionStatus(false);},componentDidMount:function(){c('BanzaiODS').bumpEntityKey('ui_audience_targeting','dialog_open');},_onSave:function(){var m={};Object.assign(m,this.state);if(!c('isEmpty')(m.targeting))m.targeting=this.convertConnectionsToInterestsFromApiToTargetingSpec(c('TargetingSpecStore').getTargetingApiSpec());if(!c('isEmpty')(m.gating))m.gating=c('TargetingSpecStore').getTargetingApiSpec();if(this.props.isTargetingTool){var n=this.props.saveData;if(n)n(JSON.stringify(m.hints));}else if(this.props.useFromLegacyComposer){this._onSaveLegacy(m);}else this._onSaveStore(m);this.props.onSave();},_onSaveStore:function(m){c('ReactComposerTargetingUtils').setData(this.context.composerID,m);},_isDefaultSpec:function(m){return c('areEqual')(m,{age_max:65,age_min:13});},_onSaveLegacy:function(m){if(this.props.callbackDataStatus)this.props.callbackDataStatus(m.gating&&!c('isEmpty')(m.gating)&&!this._isDefaultSpec(m.gating)||m.targeting&&!c('isEmpty')(m.targeting)&&!this._isDefaultSpec(m.targeting)||m.hints&&!c('isEmpty')(m.hints)&&!this._isDefaultSpec(m.hints));c('ReactComposerTargetingUtils').setData(this.context.targetID,m);},_onTargetingChange:function(m){if(c('areEqual')(this.state.targeting,m)||c('areEqual')(this.state.hints,m))return;if(this.props.isTargetingTool){this.setState({hints:m});return;}this.setState({fetching:true});var n=this.props.useTargetingAsFilter?m:Object.assign({},m,this.state.gating);c('ReactComposerTargetingUtils').fetchMetadata(n,this.context.targetID,this._onTargetingChangeHandler);},_onTargetingChangeHandler:function(m,n,o){if(this.props.useTargetingAsFilter){this.setState({fetching:false,targeting:m,targetingSentences:n,reachEstimate:o});}else this.setState({fetching:false,hints:m,targetingSentences:n});},_onGatingChange:function(m){if(c('areEqual')(this.state.gating,m))return;if(this.props.isTargetingTool){this.setState({gating:m});return;}this.setState({fetching:true});var n=this.props.useTargetingAsFilter?m:Object.assign({},m,this.state.hints);c('ReactComposerTargetingUtils').fetchMetadata(n,this.context.targetID,this._onGatingChangeHandler);},_onGatingChangeHandler:function(m,n){if(this.props.useTargetingAsFilter){this.setState({fetching:false,gating:m,gatingSentences:n});}else this.setState({fetching:false,gating:m,targetingSentences:n});},fromApiToTargetingSpec:function(m){return m&&!c('isEmpty')(m)?c('trimObject')(c('AdsCommonTargetingApiTransformer').fromApi(m)):{};},convertConnectionsToInterestsFromApiToTargetingSpec:function(m){if(m&&m.connections&&!m.fan_of){m.fan_of=m.connections;delete m.connections;}return m;},convertInterestsToConnectionsFromTargetingSpecToApi:function(m){if(m&&m.fan_of&&!m.connections){m.connections=m.fan_of;delete m.fan_of;}return m;},getInitialSavedData:function(m){var n={};if(this.props.useFromLegacyComposer){n=this.getSavedSpec(m,this.context.targetID);}else n=this.getSavedSpec(m,this.context.composerID);return this.convertInterestsToConnectionsFromTargetingSpecToApi(n);},getSavedSpec:function(m,n){if(this.props.useFromLegacyComposer){var o=c('ReactComposerTargetingUtils').getDataFromTargetingTaggerStore(n);}else o=c('ReactComposerTargetingUtils').getDataFromComposerTaggerStore(n);return o==null?null:o[m];},getInitialReachEstimate:function(){if(!this.props.useTargetingAsFilter){return null;}else{var m=c('ReactComposerTargetingUtils').getDataFromComposerTaggerStore(this.context.composerID);return m==null?null:m.reachEstimate;}},renderReachEstimate:function(){if(!this.state.reachEstimate)return null;var m=this.state.reachEstimate===20?i._("0-20"):this.state.reachEstimate,n=i._("Reach estimate for news feed targeting: {estimate_number}",[i.param('estimate_number',m)]);return (c('React').createElement(c('XUIText.react'),null,n));},renderHelpLink:function(){var m=i._("Have a Question?"),n='https://www.facebook.com/facebookmedia/get-started/'+'audience-optimization/',o=c('React').createElement(c('Link.react'),{href:n},i._("Read our Guidelines."));return (c('React').createElement('div',{className:"_3xrd"},c('React').createElement(c('XUIText.react'),null,m),' ',o));},renderFooterLeftContent:function(){if(!this.props.useTargetingAsFilter)return this.renderHelpLink();return this.renderReachEstimate();},render:function(){var m=this.props.useTargetingAsFilter?this.state.targeting:this.state.hints;return (c('React').createElement(c('XUIDialog.react'),{shown:this.props.shown,behaviors:{LayerFadeOnHide:c('LayerFadeOnHide')},layerHideOnBlur:false,onToggle:this.props.onToggle,width:k},c('React').createElement(c('XUIDialogBody.react'),null,c('React').createElement(c('PagesComposerAudiencesBody.react'),{initialTargetingSpec:this.fromApiToTargetingSpec(m),initialGatingSpec:this.fromApiToTargetingSpec(this.state.gating),onTargetingChange:this._onTargetingChange,onGatingChange:this._onGatingChange,initialActiveKey:this.props.initialActiveKey,canSeeCompleteList:this.props.canSeeCompleteList,useTargetingAsFilter:this.props.useTargetingAsFilter,canSeeDemographicOptions:this.props.canSeeDemographicOptions,feedTargetingShowReachGK:this.props.feedTargetingShowReachGK,shouldShowRestrictionTabNux:this.props.shouldShowRestrictionTabNux})),c('React').createElement(c('XUIDialogFooter.react'),{leftContent:this.renderFooterLeftContent()},c('React').createElement(c('XUIDialogCancelButton.react'),{use:'default'}),c('React').createElement(c('XUIDialogSaveButton.react'),{className:"_2uyv",use:'confirm',action:'confirm',disabled:this.state.fetching,onClick:this._onSave}))));}});f.exports=l;},null);
__d('ReactComposerPagesPrivacySelector.react',['cx','fbt','ix','ReactComposerContextMixin','Image.react','PagesComposerAudiences.react','PopoverMenu.react','ReactComponentWithPureRenderMixin','React','ReactComposerTargetingUtils','ReactLayeredComponentMixin','ReactSelectorUtils','Tooltip.react','XUIGrayText.react','ReactXUIMenu','XUIMenuSeparator.react','XUIMenuStaticItem.react','XUISelector.react','XUISelectorButton.react','PagesComposerAudiencesConstants'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=c('ReactXUIMenu').SelectableMenu,l=c('XUISelector.react').Option,m=c('PagesComposerAudiencesConstants').TABS,n=j('/images/icons/audience/everyone.png'),o=j('/images/icons/audience/custom.png'),p='everyone',q='custom',r=c('React').PropTypes,s=c('React').createClass({displayName:'ReactComposerPagesPrivacySelector',mixins:[c('ReactComposerContextMixin'),c('ReactComponentWithPureRenderMixin'),c('ReactLayeredComponentMixin')],propTypes:{gatingSentences:r.object,useReactPrivacyDialogForLegacy:r.bool,isVideoDialog:r.bool,useTargetingAsFilter:r.bool},getInitialState:function(){return {dialogShown:false};},_getSelectorButton:function(){var t=this.props.gatingSentences?o:n;return (c('React').createElement(c('XUISelectorButton.react'),{image:c('React').createElement(c('Image.react'),{src:t}),suppressed:true}));},_getMenuItems:function(){return [c('React').createElement(l,{icon:c('React').createElement(c('Image.react'),{src:n}),value:p,onclick:this._onClearPrivacy},i._("Public")),c('React').createElement(c('XUIMenuSeparator.react'),null),c('React').createElement(c('XUIMenuStaticItem.react'),null,c('React').createElement(c('XUIGrayText.react'),{shade:'light'},i._("Limit Audience By:"))),c('React').createElement(l,{icon:c('React').createElement(c('Image.react'),{src:o}),value:q,onclick:function(){return this._onToggle(true);}.bind(this)},i._("Demographics"))];},_onToggle:function(t){setTimeout(function(){return this.setState({dialogShown:t});}.bind(this),0);},_onClearPrivacy:function(){var t=c('ReactComposerTargetingUtils').getDataFromComposerTaggerStore(this.context.composerID),u=Object.assign({},t);u.gating=null;u.gatingSentences=null;c('ReactComposerTargetingUtils').setData(this.context.composerID,u);},renderLayers:function(){if(!this.state.dialogShown)return {};return (c('React').createElement(c('PagesComposerAudiences.react'),{shown:this.state.dialogShown,onToggle:this._onToggle,onSave:function(){return this._onToggle(false);}.bind(this),initialActiveKey:m.GATING,useFromLegacyComposer:this.props.isVideoDialog,useTargetingAsFilter:this.props.useTargetingAsFilter}));},render:function(){var t=this.props.gatingSentences?q:p,u=c('ReactSelectorUtils').processMenuItems(this._getMenuItems(),t),v=c('React').createElement(k,{value:t},u.items);return (c('React').createElement(c('Tooltip.react'),{tooltip:this.props.gatingSentences},c('React').createElement('div',{className:"_5dd8"},c('React').createElement(c('PopoverMenu.react'),{menu:v},this._getSelectorButton()))));}});f.exports=s;},null);
__d('ReactComposerPagesPrivacyContainer.react',['fbt','ix','cx','ReactComposerPagesPrivacySelector.react','ReactComposerPropsAndStoreBasedStateMixin','ReactComposerTaggerStore','ReactComposerTaggerType','ReactComponentWithPureRenderMixin','React','Image.react','Tooltip.react'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=i('/images/icons/audience/everyone_gray.png'),l=c('React').PropTypes,m=c('React').createClass({displayName:'ReactComposerPagesPrivacyContainer',mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactComposerPropsAndStoreBasedStateMixin')(c('ReactComposerTaggerStore'))],propTypes:{lockToPrivacy:l.string,useTargetingAsFilter:l.bool},statics:{calculateState:function(n,o){var p=c('ReactComposerTaggerStore').getTaggerData(n,c('ReactComposerTaggerType').TARGETING)||{};return {gatingSentences:p.gatingSentences};}},render:function(){if(this.props.lockToPrivacy){return this._renderLockedIcon();}else return this._renderSelector();},_renderSelector:function(){return (c('React').createElement(c('ReactComposerPagesPrivacySelector.react'),{gatingSentences:this.state.gatingSentences,useTargetingAsFilter:this.props.useTargetingAsFilter}));},_renderLockedIcon:function(){switch(this.props.lockToPrivacy){case 'everyone':return (c('React').createElement('div',{className:"_3jv0"},c('React').createElement(c('Tooltip.react'),{tooltip:h._("Everyone can see posts on this public page")},c('React').createElement('div',{className:"_3jv1"},c('React').createElement(c('Image.react'),{src:k})))));default:return null;}}});f.exports=m;},null);
__d('ReactComposerPrefillConfig',['ReactComposerAttachmentType','ReactComposerPhotoPrefillConfig','React','getOwnObjectValues'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes;f.exports=h.shape({instantMediaSelector:h.shape({fileInputDOM:h.any}),mentionsInput:h.shape({textWithEntities:h.shape({text:h.string}),selection:h.object}),selectedAttachment:h.oneOf(c('getOwnObjectValues')(c('ReactComposerAttachmentType'))),shouldActivateSelectedAttachment:h.bool,taggersData:h.object,photosData:h.arrayOf(c('ReactComposerPhotoPrefillConfig')),attachmentPreviewData:h.shape({scrapedAttachment:h.shape({markup:h.object,attachmentConfig:h.object})}),donateConfig:h.shape({charityName:h.string,fundraiserCampaignId:h.string}),liveVideoData:h.shape({accessToken:h.string,streamURL:h.string}),topicFeedTags:h.arrayOf(h.string)});},null);
__d('ReactComposerPrefillActions',['ReactComposerDispatcher','ReactComposerPrefillActionTypes','ReactComposerPrefillConfig','ReactComposerPrefillStore'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();c('ReactComposerPrefillStore');var h={setPrefillData:function(i,j){c('ReactComposerDispatcher').dispatch({composerID:i,type:c('ReactComposerPrefillActionTypes').SET_PREFILL_DATA,prefillConfig:j});}};f.exports=h;},null);
__d('ReactComposerSponsorTaggerButton.react',['fbt','cx','ReactComposerTaggerButtonMixin','ReactComposerTaggerType','React'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=c('React').createClass({displayName:'ReactComposerSponsorTaggerButton',mixins:[c('ReactComposerTaggerButtonMixin')],statics:{taggerID:c('ReactComposerTaggerType').SPONSOR},getTitle:function(){return h._("Did another company sponsor content in this post? If so, you must tag its Page.");},getTooltip:function(){return h._("Did another company sponsor content in this post? If so, you must tag its Page.");},getClassName:function(){return "_3i-i";}});f.exports=j;},null);
__d('ReactComposerSponsorTaggerComponent.react',['cx','fbt','ReactComposerTaggerViewStyles','Grid.react','React','XUITokenizer.react','TokenizerExampleSearchSource','emptyFunction'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=c('Grid.react').GridItem,k=c('React').PropTypes,l=c('React').createClass({displayName:'ReactComposerSponsorTaggerComponent',propTypes:{autoFocus:k.bool,placeholder:k.string,taggerSource:k.object,taggerData:k.array.isRequired,onPeopleTagRemove:k.func,onSelect:k.func,taggerViewStyle:k.shape(c('ReactComposerTaggerViewStyles').Shape)},getDefaultProps:function(){return {autoFocus:true,onSelect:c('emptyFunction'),placeholder:i._("Who is sponsoring you for this post?"),taggerViewStyle:c('ReactComposerTaggerViewStyles').DEFAULT,taggerData:[],taggerSource:new (c('TokenizerExampleSearchSource'))()};},_onClear:function(){this.props.onSelect&&this.props.onSelect({});},render:function(){return (c('React').createElement(c('Grid.react'),{cols:2,className:"_5esl",role:'presentation'},c('React').createElement(j,{key:'label',className:"_5esm",role:'presentation'},i._("With")),c('React').createElement(j,{key:'tokenizer',className:"_5esw",role:'presentation'},c('React').createElement(c('XUITokenizer.react'),babelHelpers['extends']({},this.props,{entries:this.props.taggerData,focusedOnInit:this.props.autoFocus,onAddEntryAttempt:this._onAdd,onRemoveEntryAttempt:this._onRemove,placeholder:this.props.placeholder,searchSource:this.props.taggerSource})))));},_onAdd:function(m){var n=this.props.taggerData,o=m.getUniqueID(),p=n.some(function(q){return q.getUniqueID()===o;});if(p){return;}else n.push(m);this.props.onSelect&&this.props.onSelect(n);},_onRemove:function(m){var n=this.props.taggerData,o=n.indexOf(m);if(o==-1)return;n.splice(o,1);this.props.onSelect&&this.props.onSelect(n);}});f.exports=l;},null);
__d('ReactComposerSponsorTaggerContainer.react',['ReactComposerSponsorTaggerComponent.react','ReactComposerTaggerActions','ReactComposerTaggerContainerMixin','ReactComposerTaggerType','React','SubscriptionsHandler','WebAsyncSearchSource'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'ReactComposerSponsorTaggerContainer',_subscriptions:undefined,mixins:[c('ReactComposerTaggerContainerMixin')],statics:{taggerID:c('ReactComposerTaggerType').SPONSOR,taggerComponent:c('ReactComposerSponsorTaggerComponent.react')},propTypes:{viewer:h.string.isRequired},getInitialState:function(){return {sponsorSentences:null,reachEstimate:null,searchSource:null};},componentWillMount:function(){this._updateSponsorSearchSource();},componentWillUnmount:function(){this._subscriptions&&this._subscriptions.release();},_updateSponsorSearchSource:function(){var j=this.state.searchSource;if(j===null)j=this._createAndBootstrapSponsorTypeSearchSource();c('ReactComposerTaggerActions').setTaggerSource(this.context.composerID,c('ReactComposerTaggerType').SPONSOR,j);},_createAndBootstrapSponsorTypeSearchSource:function(){var j={filter:['page'],viewer:this.props.viewer,rsp:'mentions',bsp:'true'};return new (c('WebAsyncSearchSource'))({queryRequests:[{uri:'/ajax/typeahead/search.php',data:Object.assign({},j,{is_bootstrap:false})}],bootstrapRequests:[{uri:'/ajax/typeahead/first_degree.php',data:Object.assign({},j,{is_bootstrap:true})}],auxiliaryFields:{verified:'is_verified'}});}});f.exports=i;},null);
__d('ReactComposerTargetingTaggerButtonMixin',['fbt','cx'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j={getInitialState:function(){return {dialogShown:false};},getTitle:function(){if(this.props.useTargetingAsFilter){return h._("Narrow the potential News Feed audience for this post");}else return h._("Choose the preferred audiences for this post");},getTooltip:function(){if(this.props.useTargetingAsFilter){return h._("Narrow the potential News Feed audience for this post");}else return h._("Choose the preferred audiences for this post");},getClassName:function(){return "_lmf";},getRef:function(){return 'fbReactComposerTargetingTagger';},_onToggle:function(k){setTimeout(function(){return this.setState({dialogShown:k});}.bind(this),0);},_onSelectX:function(){this.setState({dialogShown:true});}};f.exports=j;},null);
__d("XReactComposerTargetingTaggerNuxController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/react_composer\/edit\/targeting_tagger_nux\/",{});},null);
__d('ReactComposerTargetingTaggerButton.react',['fbt','AsyncRequest','ReactComposerTaggerButtonMixin','ReactComposerTaggerType','ReactComposerTargetingTaggerButtonMixin','PagesComposerAudiences.react','React','ReactLayeredComponentMixin','XReactComposerTargetingTaggerNuxController','XUIAmbientNUX.react','XUIText.react','PagesComposerAudiencesConstants'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('PagesComposerAudiencesConstants').TABS,k=-12,l=300,m=c('React').createClass({displayName:'ReactComposerTargetingTaggerButton',mixins:[c('ReactComposerTaggerButtonMixin'),c('ReactComposerTargetingTaggerButtonMixin'),c('ReactLayeredComponentMixin')],propTypes:{feedTargetingGK:i.bool,feedTargetingShowReachGK:i.bool,shouldShowTargetingTaggerNux:i.bool,shouldShowRestrictionTabNux:i.bool,useTargetingAsFilter:i.bool},statics:{taggerID:c('ReactComposerTaggerType').TARGETING,disableToggle:true},getDefaultProps:function(){return {feedTargetingGK:false,feedTargetingShowReachGK:false,useTargetingAsFilter:true};},getInitialState:function(){return {showTargetingTaggerNux:this.props.shouldShowTargetingTaggerNux};},componentDidMount:function(){var n=!this.state.dialogShown&&this.state.showTargetingTaggerNux&&this.props.feedTargetingGK;if(n){var o=c('XReactComposerTargetingTaggerNuxController').getURIBuilder().getURI();new (c('AsyncRequest'))().setURI(o).setMethod('POST').setData({impression:true}).send();}},componentWillUnmount:function(){if(this.state.showTargetingTaggerNux)this.setState({showTargetingTaggerNux:false});},_onNuxClose:function(){this.setState({showTargetingTaggerNux:false});var n=c('XReactComposerTargetingTaggerNuxController').getURIBuilder().getURI();new (c('AsyncRequest'))().setURI(n).setMethod('POST').setData({acked:true}).send();},_renderNux:function(){return (c('React').createElement(c('XUIAmbientNUX.react'),{contextRef:function(){return this.refs.fbReactComposerTargetingTagger;}.bind(this),onCloseButtonClick:this._onNuxClose,offsetY:k,position:'below',shown:true,width:'custom',customwidth:l},c('React').createElement('div',null,c('React').createElement(c('XUIText.react'),null,h._("Use Audience Optimization to reach people who are more likely to engage with your post.")))));},renderLayers:function(){var n=!this.state.dialogShown&&this.state.showTargetingTaggerNux&&this.props.feedTargetingGK;if(n)return this._renderNux();if(this.state.dialogShown)return (c('React').createElement(c('PagesComposerAudiences.react'),{shown:this.state.dialogShown,onToggle:this._onToggle,onSave:function(){return this._onToggle(false);}.bind(this),initialActiveKey:j.TARGETING,useTargetingAsFilter:this.props.useTargetingAsFilter,feedTargetingShowReachGK:this.props.feedTargetingShowReachGK,shouldShowRestrictionTabNux:this.props.shouldShowRestrictionTabNux}));return {};}});f.exports=m;},null);
__d('ReactComposerTargetingTaggerComponent.react',['cx','fbt','Grid.react','React','XUICloseButton.react','XUIText.react','emptyFunction','isEmpty'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=c('Grid.react').GridItem,k=c('React').PropTypes,l=c('React').createClass({displayName:'ReactComposerTargetingTaggerComponent',propTypes:{taggerData:k.object.isRequired,onSelect:k.func.isRequired,targetingSentences:k.object},getDefaultProps:function(){return {taggerData:{},onSelect:c('emptyFunction')};},_onClear:function(){this.props.onSelect({});},render:function(){return (c('React').createElement(c('Grid.react'),{cols:2,className:"_5esl",role:'presentation'},c('React').createElement(j,{key:'prefix',className:"_5esm",role:'presentation'},i._("Targeting")),c('React').createElement(j,{key:'tagger',className:"_5esw",role:'presentation'},c('React').createElement('div',{className:"_2doa"},c('React').createElement('div',{className:"_2dob"},c('React').createElement(c('XUICloseButton.react'),{className:"_2doc"+(c('isEmpty')(this.props.taggerData)?' '+"hidden_elem":''),size:'small',type:'button',onClick:this._onClear})),c('React').createElement('div',{className:"_2dod"},c('React').createElement(c('XUIText.react'),null,this.props.targetingSentences))))));}});f.exports=l;},null);
__d('ReactComposerTargetingTaggerContainer.react',['ReactComposerTaggerActions','ReactComposerTaggerContainerStateMixin','ReactComposerTaggerStore','ReactComposerTaggerType','ReactComposerTargetingTaggerComponent.react','SubscriptionsHandler','React'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('React').createClass({displayName:'ReactComposerTargetingTaggerContainer',_subscriptions:undefined,mixins:[c('ReactComposerTaggerContainerStateMixin')],statics:{taggerID:c('ReactComposerTaggerType').TARGETING},getInitialState:function(){return {targetingSentences:null};},componentWillMount:function(){var i=new (c('SubscriptionsHandler'))();i.addSubscriptions(c('ReactComposerTaggerStore').addChangeListener(this._onChange));this._subscriptions=i;},componentWillUnmount:function(){this._subscriptions&&this._subscriptions.release();},_onChange:function(){var i=c('ReactComposerTaggerStore').getTaggerData(this.context.composerID,c('ReactComposerTaggerType').TARGETING);this.setState({targetingSentences:i?i.targetingSentences:null});},_onTaggerDataChanged:function(i){this.__onTaggerDataChanged&&this.__onTaggerDataChanged(i);c('ReactComposerTaggerActions').setTaggerData(this.context.composerID,c('ReactComposerTaggerType').TARGETING,i);this.props.onSelect&&this.props.onSelect(i);},render:function(){if(!this.state.isSelected)return c('React').createElement('noscript',null);return (c('React').createElement(c('ReactComposerTargetingTaggerComponent.react'),babelHelpers['extends']({},this.props,this.state,{autoFocus:this.state.autoFocus,taggerSource:this.state.taggerSource,taggerData:this.state.taggerData,onSelect:this._onTaggerDataChanged})));}});f.exports=h;},null);
__d('ReactPagesComposer.react',['cx','ReactComposer.react','ReactComposerAttachmentActions','ReactComposerBody.react','ReactComposerBoostedPostLazyButton.react','ReactComposerConfig','ReactComposerContextConfig','ReactComposerContextProviderMixin','ComposerEntryPointRef','ReactComposerLazyHeader.react','ReactComposerMediaAttachmentSelector.react','ReactComposerMediaLazyAttachment.react','ReactComposerPagesBootloader','ReactComposerPagesPrivacyContainer.react','ReactComposerPagesStore','ReactComposerPrefillActions','ReactComposerQAndALazyAttachment.react','ReactComposerQuestionLazyAttachment.react','ReactComposerTaggerType','ReactComposerTargetingTaggerButton.react','ReactComposerTargetingTaggerContainer.react','ReactComposerSponsorTaggerButton.react','ReactComposerSponsorTaggerContainer.react','ReactComposerStatusAttachmentSelector.react','ReactComposerStatusLazyAttachment.react','ReactComposerAttachmentType','BootloadedComponent.react','JSResource','PagesComposer','PagesComposerExtraAttachmentSelector.react','PagesComposerExtraLazyAttachment.react','React','XUISpinner.react','dotAccess','PagesComposerUnpublishedPostsStore'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();c('PagesComposerUnpublishedPostsStore');var i=c('React').createClass({displayName:'ReactPagesComposer',mixins:[c('ReactComposerContextProviderMixin')],propTypes:{contextConfig:c('ReactComposerContextConfig').isRequired,config:c('ReactComposerConfig').isRequired},componentDidMount:function(){c('PagesComposer').init(this.props.contextConfig.composerID,this.props.contextConfig.targetID);c('ReactComposerPagesStore').registerComposerID(this.props.contextConfig.composerID);if(this.props.config.expanded)c('ReactComposerAttachmentActions').selectAttachment(this.props.contextConfig.composerID,c('ReactComposerAttachmentType').STATUS,true);},componentWillMount:function(){if(this.props.prefillConfig)c('ReactComposerPrefillActions').setPrefillData(this.props.contextConfig.composerID,this.props.prefillConfig);},_getAdditionalTaggersForStatusAttachment:function(){var j=[],k=this.props.config.taggersConfig;if(k[c('ReactComposerTaggerType').TARGETING].enabled)j.push(this._getTargetTagger());if(k[c('ReactComposerTaggerType').SPONSOR].enabled)j.push(this._getSponsorTagger());return j;},_getAdditionalTaggersForMediaAttachment:function(){return this._getAdditionalTaggersForStatusAttachment();},_getTargetTagger:function(){var j=this.props.config.taggersConfig[c('ReactComposerTaggerType').TARGETING],k=this.props.config.nuxConfig;return {button:c('React').createElement(c('ReactComposerTargetingTaggerButton.react'),{feedTargetingGK:c('dotAccess')(j,'feedTargetingGK'),feedTargetingShowReachGK:c('dotAccess')(j,'feedTargetingShowReachGK'),shouldShowTargetingTaggerNux:k.shouldShowTargetingTaggerNux,shouldShowRestrictionTabNux:this.props.config.nuxConfig.shouldShowRestrictionTabNux,useTargetingAsFilter:!c('dotAccess')(j,'feedTargetingGK'),key:'targeting_button'}),container:c('React').createElement(c('ReactComposerTargetingTaggerContainer.react'),{key:'targeting_container'})};},_getSponsorTagger:function(){return {button:c('React').createElement(c('ReactComposerSponsorTaggerButton.react'),{key:'sponsor_button'}),container:c('React').createElement(c('ReactComposerSponsorTaggerContainer.react'),{key:'sponsor_container',viewer:this.props.config.actorConfig.viewerAccountID})};},_getAdditionalFooterActionsForStatusAttachment:function(){var j=[];if(this.props.config.boostedPostButtonConfig)j.push(c('React').createElement(c('ReactComposerBoostedPostLazyButton.react'),babelHelpers['extends']({},this.props.config.boostedPostButtonConfig,{key:'boosted_post_button',reactComposerID:this.props.contextConfig.composerID})));if(this.props.config.taggersConfig[c('ReactComposerTaggerType').TARGETING].enabled&&!c('dotAccess')(this.props.config,'feedTargetingGK'))j.push(c('React').createElement(c('ReactComposerPagesPrivacyContainer.react'),{key:'privacy_selector',lockToPrivacy:this.props.config.taggersConfig[c('ReactComposerTaggerType').TARGETING].lockToPrivacy,useTargetingAsFilter:true}));return j;},_getAdditionalFooterActionsForMediaAttachment:function(){return this._getAdditionalFooterActionsForStatusAttachment();},render:function(){var j=this.props.config.attachmentsConfig,k=j[c('ReactComposerAttachmentType').PAGES_EXTRA],l=j[c('ReactComposerAttachmentType').STATUS],m=j[c('ReactComposerAttachmentType').MEDIA];return (c('React').createElement(c('ReactComposer.react'),{hideBorders:this.props.config.hideBorders===null?true:this.props.config.hideBorders,loggingConfig:this.props.config.loggingConfig},c('React').createElement(c('ReactComposerLazyHeader.react'),{background:'light-wash',noHorizontalMargin:true,rightChild:this._renderActorSelector(),showDelimiter:false},c('React').createElement(c('ReactComposerStatusAttachmentSelector.react'),{label:l.label}),m.enabled?c('React').createElement(c('ReactComposerMediaAttachmentSelector.react'),null):null,k.enabled?c('React').createElement(c('PagesComposerExtraAttachmentSelector.react'),{enabled:!!k.enabled,label:k.label,icon:k.icon}):null),c('React').createElement(c('ReactComposerBody.react'),null,c('React').createElement(c('ReactComposerStatusLazyAttachment.react'),{config:this.props.config,selected:true,placeholder:l.placeholder,additionalTaggers:this._getAdditionalTaggersForStatusAttachment(),additionalFooterActions:this._getAdditionalFooterActionsForStatusAttachment(),bootloader:c('ReactComposerPagesBootloader')}),c('React').createElement(c('ReactComposerMediaLazyAttachment.react'),{additionalTaggers:this._getAdditionalTaggersForMediaAttachment(),additionalFooterActions:this._getAdditionalFooterActionsForMediaAttachment(),bootloader:c('ReactComposerPagesBootloader'),config:this.props.config}),c('React').createElement(c('PagesComposerExtraLazyAttachment.react'),{bootloader:c('ReactComposerPagesBootloader'),config:this.props.config}),c('React').createElement(c('ReactComposerQuestionLazyAttachment.react'),{config:this.props.config,key:c('ReactComposerAttachmentType').QUESTION,bootloader:c('ReactComposerPagesBootloader')}),c('React').createElement(c('ReactComposerQAndALazyAttachment.react'),{config:this.props.config,key:c('ReactComposerAttachmentType').QANDA,bootloader:c('ReactComposerPagesBootloader')}))));},_renderActorSelector:function(){var j=this.props.contextConfig.composerType;if(j!==c('ComposerEntryPointRef').PAGES_FEED&&j!==c('ComposerEntryPointRef').TIMELINE)return null;var k=this.props.config.actorConfig;k.composerID=this.props.contextConfig.composerID;return (c('React').createElement(c('BootloadedComponent.react'),babelHelpers['extends']({},k,{bootloadPlaceholder:c('React').createElement(c('XUISpinner.react'),{className:"_3igw"}),bootloadLoader:c('JSResource')('ReactComposerActorSelectorContainer.react')})));}});f.exports=i;},null);
__d('FaceRecognitionController',['ArbiterMixin','BanzaiODS','Poller','mixin','removeFromArray','FacerecWaterfallEvent'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('mixin')(c('ArbiterMixin')));i=h&&h.prototype;function j(k){'use strict';i.constructor.call(this);this._config=babelHelpers['extends']({uri:'/photos/tagging/recognition/',interval:2000,maxRequests:4,targetIsPage:false,targetID:null},k);this._cleanup();this._poller=new (c('Poller'))({dontStart:true,maxRequests:this._config.maxRequests,interval:this._config.interval,setupRequest:function(l){l.setURI(this._config.uri).setData({recognition_project:'composer_facerec',photos:this._pendingPhotos,waterfallID:this._config.waterfallID,target:this._config.targetID,is_page:this._config.targetIsPage,include_unrecognized_faceboxes:!!this._config.include_unrecognized_faceboxes,include_face_crop_src:!!this._config.include_face_crop_src,include_recognized_user_profile_picture:!!this._config.include_recognized_user_profile_picture,include_low_confidence_recognitions:!!this._config.include_low_confidence_recognitions}).setHandler(this._handleResponse.bind(this));}.bind(this)});this._poller.subscribe('done',function(){var l=this._pendingPhotos;this._cleanup();this.inform('done',{unresolved:l,facerecWaterfallEvent:c('FacerecWaterfallEvent').CLIENT_RECOGNITION_POLLER_GIVE_UP});}.bind(this));}j.prototype.setWaterfallID=function(k){'use strict';this._config.waterfallID=k;};j.prototype.start=function(k){'use strict';Array.prototype.push.apply(this._pendingPhotos,k);this._poller.reset();this._resetSafeguardTimeout();};j.prototype.stop=function(){'use strict';this._poller.stop();this._cleanup();};j.prototype._cleanup=function(){'use strict';window.clearTimeout(this._safeguardTimeout);this._safeguardTimeout=null;this._pendingPhotos=[];};j.prototype._resetSafeguardTimeout=function(){'use strict';window.clearTimeout(this._safeguardTimeout);this._safeguardTimeout=window.setTimeout(function(){c('BanzaiODS').bumpEntityKey('composer_facerec','safeguard');var k=this._pendingPhotos;this._poller.stop();this._cleanup();this.inform('done',{unresolved:k,facerecWaterfallEvent:c('FacerecWaterfallEvent').CLIENT_RECOGNITION_POLLER_TIMEOUT});}.bind(this),(this._config.maxRequests+2)*this._config.interval);};j.prototype._handleResponse=function(k){'use strict';var l=k.getPayload();l.forEach(function(m){var n=0;c('removeFromArray')(this._pendingPhotos,m.fbid);m.faceboxes.forEach(function(o){n+=o.recognitions.length;o.recognitions.forEach(function(p){this.inform('recognition',{photo:m.fbid,facebox:{fbid:o.fbid,x:o.x,y:o.y},recognition:p});}.bind(this));}.bind(this));this.inform('photo',{photo:m.fbid,faceboxes:m.faceboxes,recognitions:n});}.bind(this));if(!this._pendingPhotos.length){this._poller.stop();this._cleanup();this.inform('done',{unresolved:this._pendingPhotos});}};f.exports=j;},null);
__d('ReactComposerCanvasActionType',['keyMirror'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();f.exports=c('keyMirror')({HIDE_CANVAS_SELECTOR:null,SHOW_CANVAS_SELECTOR:null});},null);
__d('ReactComposerCanvasActions',['ReactComposerDispatcher','ReactComposerCanvasActionType'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={showCanvasSelector:function(i){c('ReactComposerDispatcher').dispatch({composerID:i,type:c('ReactComposerCanvasActionType').SHOW_CANVAS_SELECTOR});},hideCanvasSelector:function(i){c('ReactComposerDispatcher').dispatch({composerID:i,type:c('ReactComposerCanvasActionType').HIDE_CANVAS_SELECTOR});}};f.exports=h;},null);
__d('ReactComposerPhotoCarouselActionType',['keyMirror'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();f.exports=c('keyMirror')({SELECT_PHOTO_CAROUSEL:null,UNSELECT_PHOTO_CAROUSEL:null,PREVIEW_COMPLETED:null,PREVIEW_INCOMPLETED:null,HIDE_CAROUSEL_URL_INPUT_AREA:null,SHOW_CAROUSEL_URL_INPUT_AREA:null,SEEN_NUX:null});},null);
__d('ReactComposerPhotoCarouselActions',['ReactComposerPhotoCarouselActionType','ReactComposerDispatcher','ReactComposerPhotoStore'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();c('ReactComposerPhotoStore');var h={selectPhotoCarouselEntryPoint:function(i){c('ReactComposerDispatcher').dispatch({composerID:i,type:c('ReactComposerPhotoCarouselActionType').SELECT_PHOTO_CAROUSEL});},unselectPhotoCarouselEntryPoint:function(i){c('ReactComposerDispatcher').dispatch({composerID:i,type:c('ReactComposerPhotoCarouselActionType').UNSELECT_PHOTO_CAROUSEL});},setPreviewCompleted:function(i){c('ReactComposerDispatcher').dispatch({composerID:i,type:c('ReactComposerPhotoCarouselActionType').PREVIEW_COMPLETED});},setPreviewIncompleted:function(i){c('ReactComposerDispatcher').dispatch({composerID:i,type:c('ReactComposerPhotoCarouselActionType').PREVIEW_INCOMPLETED});},showPhotoCarouselUrlEditArea:function(i){c('ReactComposerDispatcher').dispatch({composerID:i,type:c('ReactComposerPhotoCarouselActionType').SHOW_CAROUSEL_URL_INPUT_AREA});},hidePhotoCarouselUrlEditArea:function(i){c('ReactComposerDispatcher').dispatch({composerID:i,type:c('ReactComposerPhotoCarouselActionType').HIDE_CAROUSEL_URL_INPUT_AREA});},seenNux:function(i){c('ReactComposerDispatcher').dispatch({composerID:i,type:c('ReactComposerPhotoCarouselActionType').SEEN_NUX});}};f.exports=h;},null);
__d('ReactComposerSlideshowActions',['ReactComposerDispatcher','ReactComposerSlideshowActionType'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={showSlideshowEditField:function(i){c('ReactComposerDispatcher').dispatch({composerID:i,type:c('ReactComposerSlideshowActionType').SHOW_SLIDESHOW_EDIT_FIELD});},hideSlideshowEditField:function(i){c('ReactComposerDispatcher').dispatch({composerID:i,type:c('ReactComposerSlideshowActionType').HIDE_SLIDESHOW_EDIT_FIELD});}};f.exports=h;},null);
__d("XCarouselPageComposerPhotoUploadFirstController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/composer\/photouploadfirst\/",{composer_id:{type:"String"},target_id:{type:"Int"}});},null);
__d('ReactComposerMediaAttachmentButtonsWithOptions.react',['cx','fbt','ix','ActorURI','ReactComposerAttachmentStore','ReactComposerCanvasActions','ReactComposerContextMixin','ReactComposerMediaUtils','ReactComposerPhotoUploadActions','ReactComposerPhotoCarouselActions','ReactComposerSlideshowActions','ComposerTargetData','PagesComposerPostActionsLoggerEvent','PagesComposerActionsLogger','XCarouselPageComposerPhotoUploadFirstController','AsyncRequest','DOMContainer.react','FileInput.react','Grid.react','Image.react','Link.react','ReactComponentWithPureRenderMixin','React'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k=c('Grid.react').GridItem,l=c('React').PropTypes,m=c('React').createClass({displayName:'ReactComposerMediaAttachmentButtonsWithOptions',mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactComposerContextMixin')],propTypes:{carouselConfig:l.object,createAlbumLink:l.any,mediaAcceptParam:l.shape({photos:l.string,both:l.string}).isRequired,onFilesSelected:l.func.isRequired,showCanvasEntryPoint:l.bool,showCarouselEntryPoint:l.bool,showPhotoAlbumEntryPoint:l.bool,showSlideshowEntryPoint:l.bool,showUploadPhotosButton:l.bool,slideshowConfig:l.object,targetData:l.instanceOf(c('ComposerTargetData')).isRequired},getDefaultProps:function(){return {mediaAcceptParam:{}};},componentDidMount:function(){if(c('ReactComposerAttachmentStore').getSelectedAttachmentID(this.context.composerID))c('PagesComposerActionsLogger').log({event:c('PagesComposerPostActionsLoggerEvent').SHOW_PHOTO_CAROUSEL_CREATE_TAB,target_id:parseInt(this.context.targetID,10)});},render:function(){var o=[];o.push(this._getUploadPhotosButton());var p=null,q=null;if(this.props.showPhotoAlbumEntryPoint&&this.props.createAlbumLink){var r=c('React').createElement(c('DOMContainer.react'),{className:"_3m1x",display:'block'},this.props.createAlbumLink);p=c('React').createElement(k,{className:"_3m1y",key:'createAlbum'},c('React').createElement(c('Link.react'),{className:"_3m1z _5xvh",onClick:this._onClickPhotoAlbumOption},r));}if(this.props.showCarouselEntryPoint)q=this._getCarouselPostButton();o.push(p);o.push(q);if(this.props.showSlideshowEntryPoint)o.push(this._getSlideshowPostButton());if(this.props.showCanvasEntryPoint)o.push(this._getCanvasPostButton());return (c('React').createElement('div',{className:"_3m1_"},c('React').createElement(c('Grid.react'),{className:"_3m20",cols:1},o.filter(function(s){return s!=null;}))));},_getUploadPhotosButton:function(){if(!this.props.showUploadPhotosButton)return null;var o=this.props.targetData.targetSupportsMultiplePhotos,p=this.props.mediaAcceptParam.both,q=o?i._("Upload Photos\/Video"):i._("Upload Photo\/Video"),r=i._("Add photos or video to your status.");return (c('React').createElement(k,{className:"_3m1y",key:'uploadPhoto'},c('React').createElement(c('FileInput.react'),{accept:p,multiple:o,name:'composer_photo',onChange:this._onFilesSelected,onClick:this._onUploadPhotosClick,ref:'fileInput','data-testid':'media-attachment-add-photo'},c('React').createElement(c('Link.react'),{className:"_3m1z"},this._renderPhotoPostOption(n.PHOTOVIDEO,q,r)))));},_onUploadPhotosClick:function(){c('ReactComposerPhotoUploadActions').inputClicked(this.context.composerID);c('PagesComposerActionsLogger').log({event:c('PagesComposerPostActionsLoggerEvent').CLICK_UPLOAD_PHOTO_OPTION,target_id:parseInt(this.context.targetID,10)});},_onClickPhotoAlbumOption:function(){c('PagesComposerActionsLogger').log({event:c('PagesComposerPostActionsLoggerEvent').CLICK_PHOTO_ALBUM_OPTION,target_id:parseInt(this.context.targetID,10)});},_onFilesSelected:function(event){this.props.onFilesSelected(event,this.refs.fileInput.getFileInput());c('ReactComposerMediaUtils').clearInput(this.refs.fileInput.getFileInput());},_getCarouselPostButton:function(){if(!this.props.showUploadPhotosButton)return null;var o=i._("Create a Photo Carousel"),p=i._("Build a scrolling photo carousel with a link.");return (c('React').createElement(k,{className:"_3m1y",key:'carousel'},c('React').createElement(c('Link.react'),{onClick:this._onCarouselClick,className:"_3m1z _5xvh"},this._renderPhotoPostOption(n.CAROUSEL,o,p))));},_onCarouselClick:function(){c('ReactComposerPhotoCarouselActions').selectPhotoCarouselEntryPoint(this.context.composerID);if(!this.props.carouselConfig||!this.props.carouselConfig.ComposerPhotoCarouselUploadFirst){c('ReactComposerPhotoCarouselActions').showPhotoCarouselUrlEditArea(this.context.composerID);}else{var o=c('XCarouselPageComposerPhotoUploadFirstController').getURIBuilder().setString('composer_id',this.context.composerID).setInt('target_id',parseInt(this.context.targetID,10)).getURI();o=c('ActorURI').create(o,this.context.targetID);var p=new (c('AsyncRequest'))().setURI(o);p.send();c('ReactComposerPhotoCarouselActions').setPreviewIncompleted(this.context.composerID);}var q={event:c('PagesComposerPostActionsLoggerEvent').CLICK_PHOTO_CAROUSEL_CREATE_TAB,target_id:parseInt(this.context.targetID,10)};c('PagesComposerActionsLogger').log(q);},_getSlideshowPostButton:function(){var o=this.props.slideshowConfig;if(!o)return null;var p=i._("Create Slideshow"),q=i._({"*":{"*":"Add {Minimum number of images} to {Maximum number of images} photos to create a video."}},[i.param('Minimum number of images',o?o.minPhotoNum:3,[0]),i.param('Maximum number of images',o?o.maxPhotoNum:7,[0])]);return (c('React').createElement(k,{className:"_3m1y",key:'slideshow'},c('React').createElement(c('FileInput.react'),{accept:this.props.mediaAcceptParam.photos,multiple:true,name:'composer_slideshow',onChange:this._onSlideshowSelected,ref:'imageFileInput','data-testid':'media-attachment-add-slideshow-photo'},c('React').createElement(c('Link.react'),{className:"_3m1z _5xvh"},this._renderPhotoPostOption(n.SLIDESHOW,p,q)))));},_onSlideshowSelected:function(event){this.props.onFilesSelected(event,this.refs.imageFileInput.getFileInput());c('ReactComposerMediaUtils').clearInput(this.refs.imageFileInput.getFileInput());c('ReactComposerSlideshowActions').showSlideshowEditField(this.context.composerID);c('PagesComposerActionsLogger').log({event:c('PagesComposerPostActionsLoggerEvent').CLICK_SLIDESHOW_CREATE_TAB,target_id:parseInt(this.context.targetID,10)});},_getCanvasPostButton:function(){var o=i._("Create a Canvas"),p=i._("Now you can tell a more immersive story by combining images and videos.");return (c('React').createElement(k,{className:"_3m1y",key:'canvas'},c('React').createElement(c('Link.react'),{onClick:this._onCanvasClick,className:"_3m1z _5xvh"},this._renderPhotoPostOption(n.CANVAS,o,p))));},_onCanvasClick:function(){c('ReactComposerCanvasActions').showCanvasSelector(this.context.composerID);var o={event:c('PagesComposerPostActionsLoggerEvent').CLICK_CANVAS_CREATE_TAB,target_id:parseInt(this.context.targetID,10)};c('PagesComposerActionsLogger').log(o);},_renderPhotoPostOption:function(o,p,q){var r=null;if(o===n.CAROUSEL&&this.props.carouselConfig&&this.props.carouselConfig.showCarouselOptionSuperscript){var s=i._("NEW");r=c('React').createElement('sup',{className:"_9td"},s);}return (c('React').createElement(c('Grid.react'),{className:"_3m1-",cols:2},c('React').createElement(k,{className:"_5xvi"},c('React').createElement(c('Image.react'),{className:"_5xvj",src:this._getIconSource(o)})),c('React').createElement(k,{className:"_5xvk"},c('React').createElement('div',{className:"_5xvl"},p,r),c('React').createElement('div',{className:"_5xvm"},q))));},_getIconSource:function(o){switch(o){case n.PHOTOVIDEO:return j('/images/composer/carousel/photo_video_upload.png');case n.PHOTOALBUM:return j('/images/composer/carousel/photo_album_icon.png');case n.CAROUSEL:return j('/images/composer/carousel/carousel_photo_tab_icon.png');case n.SLIDESHOW:return j('/images/composer/carousel/slideshow_video_icon.png');case n.CANVAS:return j('/images/composer/carousel/pages_canvas_icon.png');default:return null;}}}),n={PHOTOVIDEO:'photo_video',PHOTOALBUM:'photo_album',CAROUSEL:'carousel',SLIDESHOW:'slideshow',CANVAS:'canvas'};f.exports=m;},null);
__d('ReactComposerPhotoCarouselStore',['ReactComposerAttachmentActionType','ReactComposerAttachmentStore','ReactComposerAttachmentType','ReactComposerPhotoCarouselActionType','ReactComposerScrapedAttachmentActionType','ReactComposerStoreBase'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('ReactComposerStoreBase'));i=h&&h.prototype;function j(){'use strict';var k;i.constructor.call(this,function(){return {isPhotoCarouselSelected:false,isCarouselPreviewCompleted:true,shouldShowURLEditArea:false,seenNux:false};},function(l){switch(l.type){case c('ReactComposerPhotoCarouselActionType').SELECT_PHOTO_CAROUSEL:k&&k.$ReactComposerPhotoCarouselStore1(l);break;case c('ReactComposerPhotoCarouselActionType').UNSELECT_PHOHO_CAROUSEL:k&&k.$ReactComposerPhotoCarouselStore2(l);break;case c('ReactComposerPhotoCarouselActionType').PREVIEW_COMPLETED:k&&k.$ReactComposerPhotoCarouselStore3(l);break;case c('ReactComposerPhotoCarouselActionType').PREVIEW_INCOMPLETED:k&&k.$ReactComposerPhotoCarouselStore4(l);break;case c('ReactComposerPhotoCarouselActionType').SHOW_CAROUSEL_URL_INPUT_AREA:k&&k.$ReactComposerPhotoCarouselStore5(l);break;case c('ReactComposerPhotoCarouselActionType').HIDE_CAROUSEL_URL_INPUT_AREA:k&&k.$ReactComposerPhotoCarouselStore6(l);break;case c('ReactComposerAttachmentActionType').SELECT_ATTACHMENT:k&&k.$ReactComposerPhotoCarouselStore7(l);break;case c('ReactComposerScrapedAttachmentActionType').ATTACHMENT_SCRAPED:k&&k.$ReactComposerPhotoCarouselStore6(l);break;case c('ReactComposerPhotoCarouselActionType').SEEN_NUX:k&&k.$ReactComposerPhotoCarouselStore8(l);break;default:}});k=this;}j.prototype.$ReactComposerPhotoCarouselStore1=function(k){'use strict';var l=k.composerID,m=this.getComposerData(l);m.isPhotoCarouselSelected=true;this.emitChange(l);};j.prototype.$ReactComposerPhotoCarouselStore2=function(k){'use strict';var l=k.composerID,m=this.getComposerData(l);m.isPhotoCarouselSelected=false;this.emitChange(l);};j.prototype.$ReactComposerPhotoCarouselStore3=function(k){'use strict';var l=k.composerID,m=this.getComposerData(l);m.isCarouselPreviewCompleted=true;this.emitChange(l);};j.prototype.$ReactComposerPhotoCarouselStore4=function(k){'use strict';var l=k.composerID,m=this.getComposerData(l);m.isCarouselPreviewCompleted=false;this.emitChange(l);};j.prototype.$ReactComposerPhotoCarouselStore5=function(k){'use strict';var l=k.composerID,m=this.getComposerData(l);m.shouldShowURLEditArea=true;this.emitChange(l);};j.prototype.$ReactComposerPhotoCarouselStore6=function(k){'use strict';var l=k.composerID,m=this.getComposerData(l);m.shouldShowURLEditArea=false;this.emitChange(l);};j.prototype.$ReactComposerPhotoCarouselStore7=function(k){'use strict';var l=k.composerID,m=this.getComposerData(l),n=c('ReactComposerAttachmentStore').getSelectedAttachmentID(l);if(m.shouldShowURLEditArea&&n!==c('ReactComposerAttachmentType').MEDIA)m.shouldShowURLEditArea=false;if(m.isPhotoCarouselSelected&&n!==c('ReactComposerAttachmentType').MEDIA){m.isPhotoCarouselSelected=false;m.isCarouselPreviewCompleted=false;}this.emitChange(l);};j.prototype.$ReactComposerPhotoCarouselStore8=function(k){'use strict';var l=k.composerID,m=this.getComposerData(l);m.seenNux=true;this.emitChange(l);};j.prototype.shouldShowURLEditArea=function(k){'use strict';return this.getComposerData(k).shouldShowURLEditArea;};j.prototype.seenNux=function(k){'use strict';return this.getComposerData(k).seenNux;};j.prototype.isPhotoCarouselSelected=function(k){'use strict';return this.getComposerData(k).isPhotoCarouselSelected;};j.prototype.isCarouselPreviewCompleted=function(k){'use strict';return this.getComposerData(k).isCarouselPreviewCompleted;};f.exports=new j();},null);
__d("XCarouselPageComposerSeenNuxController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/composer\/carouselseennux\/",{type:{type:"String"}});},null);
__d('ReactComposerPhotoCarouselUrlInput.react',['cx','fbt','ix','AsyncRequest','ReactComposerContextMixin','ReactComposerPhotoCarouselActions','ReactComposerPhotoCarouselStore','CSS','Keys','Locale','PagesComposerPostActionsLoggerEvent','PagesComposerActionsLogger','PagesComposerCarouselPostNuxType','ReactComponentWithPureRenderMixin','React','Image.react','ReactLayeredComponentMixin','ReactDOM','URLMatcher','URLScraper','XCarouselPageComposerSeenNuxController','XUIAmbientNUX.react','XUICloseButton.react','XUITextInput.react','fbglyph'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k=c('React').PropTypes,l=c('React').createClass({displayName:'ReactComposerPhotoCarouselUrlInput',mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactComposerContextMixin'),c('ReactLayeredComponentMixin')],propTypes:{onChange:k.func.isRequired,onClickRemoveButton:k.func.isRequired,prefillURL:k.string,showUrlInputAreaNux:k.bool},getInitialState:function(){return {disableArrow:true,showUrlInputAreaNux:this.props.showUrlInputAreaNux&&!c('ReactComposerPhotoCarouselStore').seenNux(this.context.composerID)};},componentDidMount:function(){var m=c('ReactDOM').findDOMNode(this.refs.inputArea);m.focus();c('CSS').addClass(m,"_47_s");var n=this.props.prefillURL?this.props.prefillURL:'',o=!this._checkValidUrl(n);this.setState({disableArrow:o});c('PagesComposerActionsLogger').log({event:c('PagesComposerPostActionsLoggerEvent').PREFILL_SCRAPE_URL,target_id:parseInt(this.context.targetID,10),prefill_scrape_url:this.props.prefillURL});},renderLayers:function(){var m=i._("Photos are taken from a website you choose. Enter a website to build your photo carousel.");return {notice:c('React').createElement(c('XUIAmbientNUX.react'),{contextRef:function(){return this.refs.inputArea;}.bind(this),shown:this.state.showUrlInputAreaNux,onCloseButtonClick:this._onCloseButtonClick,position:'below'},m)};},_onCloseButtonClick:function(){var m=c('XCarouselPageComposerSeenNuxController').getURIBuilder().setString('type',c('PagesComposerCarouselPostNuxType').MEDIA_ATTACHEMENT_URL_INPUT_AREA_NUX).getURI(),n=new (c('AsyncRequest'))().setURI(m);n.send();this.setState({showUrlInputAreaNux:false});c('ReactComposerPhotoCarouselActions').seenNux(this.context.composerID);},render:function(){var m=i._("Photo Carousel"),n=i._("Remove"),o=i._("Destination URL"),p=null,q=null,r=null,s=c('Locale').isRTL();if(s){q=j("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/arrow-left_20_bluegray-10.png");r=j('/images/composer/carousel/arrow_left_blue.png');}else{q=j("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/arrow-right_20_bluegray-10.png");r=j('/images/composer/carousel/arrow_right_blue.png');}if(this.state.disableArrow){p=c('React').createElement(c('Image.react'),{className:"_3ev6",size:'small',src:q,onClick:this._handleScrapeLink});}else p=c('React').createElement(c('Image.react'),{className:"_3ev7",size:'small',src:r,onClick:this._handleScrapeLink});var t=i._("Enter a URL");return (c('React').createElement('div',{className:"_d67"},c('React').createElement('div',{className:"_d68"},c('React').createElement('div',{className:"_d69"},m),c('React').createElement(c('XUICloseButton.react'),{className:"_d6a",label:n,onClick:this.props.onClickRemoveButton,size:'medium'})),c('React').createElement('div',{className:"_d6b"},c('React').createElement('div',{className:"_px7"},c('React').createElement('span',{className:"_2do6"},o),c('React').createElement('div',{className:"_px8"},c('React').createElement(c('XUITextInput.react'),{className:"_d6c",defaultValue:this.props.prefillURL,onBlur:this._onBlur,onChange:this._onChange,onKeyUp:this._handleKeyUp,placeholder:t,ref:'inputArea'}))),p)));},_handleScrapeLink:function(event){var m=c('ReactDOM').findDOMNode(this.refs.inputArea),n=m.childNodes[0].value+'\n';this.setState({inputValue:n});this.props.onChange&&this.props.onChange(n);},_onBlur:function(event){c('CSS').removeClass(c('ReactDOM').findDOMNode(this.refs.inputArea),"_47_s");},_onChange:function(event){this.setState({inputValue:event.target.value});this.props.onChange&&this.props.onChange(event.target.value);var m=!this._checkValidUrl(event.target.value);this.setState({disableArrow:m});c('CSS').removeClass(c('ReactDOM').findDOMNode(this.refs.inputArea),"_47_s");},_handleKeyUp:function(event){if(event.keyCode===c('Keys').RETURN){var m=event.target.value+'\n';this.setState({inputValue:m});this.props.onChange&&this.props.onChange(m);}},_checkValidUrl:function(m){return c('URLScraper').match(m)||c('URLMatcher').permissiveMatch(m);}});f.exports=l;},null);
__d('ReactComposerScrapedAttachmentActions',['ReactComposerScrapedAttachmentActionType','ReactComposerDispatcher','ReactComposerScrapedAttachmentStore'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();c('ReactComposerScrapedAttachmentStore');h.prototype.enabled=function(i,j){'use strict';var k={composerID:i,type:c('ReactComposerScrapedAttachmentActionType').ATTACHMENT_SCRAPE_ENABLED,enabled:j};c('ReactComposerDispatcher').dispatch(k);};h.prototype.setScrapedAttachment=function(i,j,k){'use strict';var l={composerID:i,type:c('ReactComposerScrapedAttachmentActionType').ATTACHMENT_SCRAPED,markup:j,attachmentConfig:k};c('ReactComposerDispatcher').dispatch(l);};h.prototype.setPermissiveMatch=function(i,j){'use strict';var k={composerID:i,type:c('ReactComposerScrapedAttachmentActionType').ATTACHMENT_PERMISSIVE_MATCH_SETTED,permissiveMatch:j};c('ReactComposerDispatcher').dispatch(k);};h.prototype.scrapeAttachment=function(i,j,k,l,m){'use strict';var n={composerID:i,type:c('ReactComposerScrapedAttachmentActionType').ATTACHMENT_SCRAPE_INTENDED,targetID:j,value:k,entryPoint:l,actorID:m};c('ReactComposerDispatcher').dispatch(n);};h.prototype.uploadImagesForCarousel=function(i){'use strict';var j={composerID:i.composerID,type:c('ReactComposerScrapedAttachmentActionType').ATTACHMENT_CAROUSEL_UPLOAD,targetID:i.targetID,scrapeUrl:i.scrapeUrl,carouselParams:i.carouselParams,entryPoint:i.entryPoint,actorID:i.actorID};c('ReactComposerDispatcher').dispatch(j);};function h(){'use strict';}f.exports=new h();},null);
__d('ReactComposerStatusUtils',['Bootloader','ReactComposerAttachmentActions','ReactComposerAttachmentType','ReactComposerScrapedAttachmentActions','ReactComposerScrapedAttachmentStore','ReactComposerStatusStore','ReactComposerTaggerActions','ReactComposerTaggerStore','ReactComposerTaggerType','EditorState','PUWMethods','URLMatcher','URLScraper','uniqueID'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={scrapeLink:function(i,j,k,l,m){if(!c('ReactComposerScrapedAttachmentStore').isEnabled(i))return;if(c('ReactComposerScrapedAttachmentStore').getMarkup(i))return;var n=c('URLMatcher').permissiveMatch(k);if(n!==c('ReactComposerScrapedAttachmentStore').getPermissiveMatch(i)){c('ReactComposerScrapedAttachmentActions').setPermissiveMatch(i,n);var o=c('URLScraper').match(k)||n;if(o)c('ReactComposerScrapedAttachmentActions').scrapeAttachment(i,j,o,l,m);}},uploadPastedFile:function(i,j,k){j.uploadID=c('uniqueID')();j.filename='';k&&k.enqueueAsyncUploadRequest(i,[j],{},{});},uploadDroppedFiles:function(i,j,k,l){c('ReactComposerAttachmentActions').selectAttachment(i,c('ReactComposerAttachmentType').MEDIA,true);c('Bootloader').loadModules(["ReactComposerMediaUtils"],function(m){m.uploadPhotosOrVideo(i,j,k,l,true,c('PUWMethods').DRAGDROP);});},handleMarkdownPreview:function(i,j,k,l){if(!k)return;var m=k.action;if(!l)l=c('ReactComposerStatusStore').getEditorState(i);if(!l)return;var n=!!c('ReactComposerTaggerStore').getTaggerData(i,c('ReactComposerTaggerType').MARKDOWN).isMarkdown;if(n)m.updatePreview(i,j,l.getCurrentContent());}};f.exports=h;},null);
__d('ReactComposerPhotoCarouselUrlInputContainer.react',['ReactComposerContextMixin','ReactComposerPhotoCarouselActions','ReactComposerPhotoCarouselUrlInput.react','ReactComposerStatusUtils','PagesComposerPostActionsLoggerEvent','PagesComposerActionsLogger','ReactComponentWithPureRenderMixin','React','URLScraper'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'ReactComposerPhotoCarouselUrlInputContainer',mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactComposerContextMixin')],propTypes:{prefillURL:h.string,showUrlInputAreaNux:h.bool},render:function(){return (c('React').createElement(c('ReactComposerPhotoCarouselUrlInput.react'),{onChange:this._onMentionsInputChange,onClickRemoveButton:this._onClickRemoveButton,prefillURL:this.props.prefillURL,showUrlInputAreaNux:this.props.showUrlInputAreaNux}));},_onClickRemoveButton:function(){c('ReactComposerPhotoCarouselActions').hidePhotoCarouselUrlEditArea(this.context.composerID);c('PagesComposerActionsLogger').log({event:c('PagesComposerPostActionsLoggerEvent').REMOVE_PHOTO_CAROUSEL_URL_INPUT,target_id:parseInt(this.context.targetID,10)});},_onMentionsInputChange:function(j){if(!c('URLScraper').trigger(j))c('ReactComposerStatusUtils').scrapeLink(this.context.composerID,this.context.targetID,j,this.context.composerType,this.context.actorID);}});f.exports=i;},null);
__d('ReactComposerPhotoCarouselUtils',['fbt','ReactComposerPhotoCarouselStore','React'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={getPhotoCarouselMediaContent:function(j,k){var l=null;if(!j)return l;if(j.ComposerPhotoCarouselPlaceHolder){var m=j.ComposerPhotoCarouselPlaceHolder;l=c('React').createElement(m,null);}else{var n=j.ComposerPhotoCarouselUrlInputContainer;l=c('React').createElement(n,{showUrlInputAreaNux:k.showUrlInputAreaNux,prefillURL:j.preFillURL});}return l;},getInputPlaceHolder:function(j,k){var l=h._("Write something...");if(k||!j||!j.ComposerPhotoCarouselPlaceHolder)return l;return h._("Enter a URL");},isPagePostButtonDisabled:function(j){if(!c('ReactComposerPhotoCarouselStore').isPhotoCarouselSelected(j))return false;if(c('ReactComposerPhotoCarouselStore').shouldShowURLEditArea(j))return true;if(!c('ReactComposerPhotoCarouselStore').isCarouselPreviewCompleted(j))return true;return false;}};f.exports=i;},null);
__d('ReactComposerFailedMediaUpload.react',['cx','fbt','ReactComponentWithPureRenderMixin','React','Tooltip','XUIButton.react','XUICloseButton.react'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=c('React').PropTypes,k=c('React').createClass({displayName:'ReactComposerFailedMediaUpload',mixins:[c('ReactComponentWithPureRenderMixin')],propTypes:{error:j.object.isRequired,filename:j.string,onDismissClick:j.func,onRemoveClick:j.func,onRetryClick:j.func,uploadID:j.string.isRequired},render:function(){var l=this.props.error.summary+': '+this.props.error.description,m=this.props.error.transient?c('React').createElement(c('XUIButton.react'),{className:"_4_e",label:i._("Retry"),onClick:this.props.onRetryClick,size:'small',use:'special'}):c('React').createElement(c('XUIButton.react'),{className:"_4_f",label:i._("Okay"),onClick:this.props.onDismissClick,size:'small'});return (c('React').createElement('div',babelHelpers['extends']({},c('Tooltip').propsFor(l),{className:"_4_g"}),c('React').createElement(c('XUICloseButton.react'),{className:"_2n25",onClick:this.props.onRemoveClick,size:'medium',shade:'light'}),c('React').createElement('p',{className:"_4_h"},i._("Error")),c('React').createElement('div',{className:"_4_i"},c('React').createElement('p',{className:"_4_j"},this.props.filename)),m));}});f.exports=k;},null);
__d('ReactComposerPhotoUploader',['ReactComposerLoggingStore','ReactComposerMediaConfig','ReactComposerMediaUtils','ReactComposerPhotoActions','ReactComposerPhotoUploadActions','ReactComposerPhotoUploadStore','ActorURI','AsyncUploadRequest','FaceRecognitionController','JpegResizer','Map','XComposerPhotoUploader','performanceNow'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i,j,k){this.$ReactComposerPhotoUploader1=i.composerID;this.$ReactComposerPhotoUploader5=k;var l=c('ReactComposerMediaConfig').photo,m=null;if(c('JpegResizer').isSupported()){m=c('JpegResizer').getSingleton(j>1?c('JpegResizer').DEFAULT_POOL_SIZE:1);m.setHighQuality(l.highQuality);}else c('ReactComposerPhotoUploadActions').resizerUnavailable(this.$ReactComposerPhotoUploader1);var n=c('ActorURI').create(l.uploadEndpoint,i.actorID);this.$ReactComposerPhotoUploader2=new (c('XComposerPhotoUploader'))({uploadEndpoint:n,uploadData:Object.assign({qn:c('ReactComposerLoggingStore').getSessionID(this.$ReactComposerPhotoUploader1),target_id:i.targetID},l.uploadData),retryLimit:l.retryLimit,concurrentLimit:l.concurrentLimit,resizer:m,onUploadEnqueued:this.$ReactComposerPhotoUploader6.bind(this),onResizeStart:this.$ReactComposerPhotoUploader7.bind(this),onResizeSuccess:this.$ReactComposerPhotoUploader8.bind(this),onResizeFailure:this.$ReactComposerPhotoUploader9.bind(this),onResizeProgress:this.$ReactComposerPhotoUploader10.bind(this),onUploadStart:this.$ReactComposerPhotoUploader11.bind(this),onUploadProgress:this.$ReactComposerPhotoUploader12.bind(this),onUploadSuccess:this.$ReactComposerPhotoUploader13.bind(this),onUploadFailure:this.$ReactComposerPhotoUploader14.bind(this),gks:i.gks});this.$ReactComposerPhotoUploader3=new (c('FaceRecognitionController'))({include_unrecognized_faceboxes:true,include_low_confidence_recognitions:true,include_face_crop_src:true});this.$ReactComposerPhotoUploader3.subscribe('photo',this.$ReactComposerPhotoUploader15.bind(this)),this.$ReactComposerPhotoUploader3.subscribe('done',this.$ReactComposerPhotoUploader16.bind(this));this.$ReactComposerPhotoUploader4=new (c('Map'))();}h.prototype.upload=function(i){this.$ReactComposerPhotoUploader2.upload(i);};h.prototype.retry=function(i){var j=this.$ReactComposerPhotoUploader2.getAsyncUploadRequest([i]);j.send();};h.prototype.getAsyncUploadRequest=function(i,j){return this.$ReactComposerPhotoUploader2.getAsyncUploadRequest(i,j);};h.prototype.enqueueAsyncUploadRequest=function(i,j,k,l){j.forEach(function(m){var n=k.indexMap?k.indexMap.get(m.uploadID):c('ReactComposerPhotoUploadStore').getUploads(i).size;c('ReactComposerPhotoUploadActions').enqueue(i,m.uploadID,m.filename,n,l.xyTags);});this.getAsyncUploadRequest(j,k).send();};h.prototype.isUploadLimitExceeded=function(i,j){var k=this.getMaxSelectableFilesCount(i),l=!j||!c('AsyncUploadRequest').isSupported()?1:j.length;return l>k;};h.prototype.getMaxSelectableFilesCount=function(i){return !!i?c('ReactComposerMediaConfig').photo.limit:1;};h.prototype.$ReactComposerPhotoUploader6=function(i){c('ReactComposerPhotoUploadActions').enqueue(this.$ReactComposerPhotoUploader1,i.uploadID,i.fileName,c('ReactComposerPhotoUploadStore').getUploads(this.$ReactComposerPhotoUploader1).size);};h.prototype.$ReactComposerPhotoUploader7=function(i){c('ReactComposerPhotoUploadActions').startResizing(this.$ReactComposerPhotoUploader1,i.uploadID,{bytes:i.size});};h.prototype.$ReactComposerPhotoUploader10=function(i,event){setTimeout(function(){return c('ReactComposerPhotoUploadActions').progressResizing(this.$ReactComposerPhotoUploader1,i,100*event.written/event.total);}.bind(this),0);};h.prototype.$ReactComposerPhotoUploader8=function(i,j,k,l){c('ReactComposerPhotoUploadActions').doneResizing(this.$ReactComposerPhotoUploader1,i.uploadID,{dt:l,media_data_size:i.size,bytes:j.size,custom_tags:{skipped_resizing:k}});};h.prototype.$ReactComposerPhotoUploader9=function(i,j,k,l){c('ReactComposerPhotoUploadActions').failResizing(this.$ReactComposerPhotoUploader1,i.uploadID,{dt:l,bytes:i.size,error_code:k.code,error_info:k.message});};h.prototype.$ReactComposerPhotoUploader11=function(i,j){c('ReactComposerPhotoUploadActions').startUploading(this.$ReactComposerPhotoUploader1,i,j.upload);this.$ReactComposerPhotoUploader4.set(i,c('performanceNow')());};h.prototype.$ReactComposerPhotoUploader12=function(i,j){setTimeout(function(){return c('ReactComposerPhotoUploadActions').progressUploading(this.$ReactComposerPhotoUploader1,i,100*j.event.loaded/j.event.total);}.bind(this),0);};h.prototype.$ReactComposerPhotoUploader13=function(i,j){if(c('ReactComposerPhotoUploadStore').getHasUploadBeenRemoved(this.$ReactComposerPhotoUploader1,i))return;var k=j.response.payload;if(!k)return;c('ReactComposerPhotoUploadActions').doneUploading(this.$ReactComposerPhotoUploader1,i,j.upload,c('performanceNow')()-this.$ReactComposerPhotoUploader4.get(i),k.photoID,k.thumbSrc,k.originalPhotoID,k.mediaLocation);if(!this.$ReactComposerPhotoUploader5.disableFaceRecognition){c('ReactComposerPhotoActions').startRecognizing(this.$ReactComposerPhotoUploader1,k.photoID);this.$ReactComposerPhotoUploader3.start([k.photoID]);}var l=c('ReactComposerPhotoUploadStore').getPhotoUpload(this.$ReactComposerPhotoUploader1,i);if(l.xyTags)c('ReactComposerMediaUtils').handleXYTagsOnly(this.$ReactComposerPhotoUploader1,l.photoID,l.xyTags);};h.prototype.$ReactComposerPhotoUploader14=function(i,j,k){if(c('ReactComposerPhotoUploadStore').getHasUploadBeenRemoved(this.$ReactComposerPhotoUploader1,i))return;var l=j.response,m={code:l.getError(),description:l.getErrorDescription(),summary:l.getErrorSummary(),transient:l.isTransient()||l.getError()==1004||l.getError()==1006};c('ReactComposerPhotoUploadActions').failUploading(this.$ReactComposerPhotoUploader1,i,j.upload,c('performanceNow')()-this.$ReactComposerPhotoUploader4.get(i),m);};h.prototype.$ReactComposerPhotoUploader15=function(i,j){j.faceboxes.forEach(function(k){var l;if(k.recognitions.length>0){var m=k.recognitions[0].user;l={subjectID:m.fbid,value:m.name};}c('ReactComposerPhotoActions').addFacebox(this.$ReactComposerPhotoUploader1,j.photo,{id:k.fbid,x:k.x,y:k.y,top:k.top,left:k.left,width:k.width,height:k.height,croppedURI:k.src,bestRecognition:l,allRecognitions:k.allRecognitions});}.bind(this));c('ReactComposerPhotoActions').finishRecognizingPhoto(this.$ReactComposerPhotoUploader1,j.photo);};h.prototype.$ReactComposerPhotoUploader16=function(i,j){c('ReactComposerPhotoActions').finishRecognizing(this.$ReactComposerPhotoUploader1,j.unresolved,j.facerecWaterfallEvent||null);};f.exports=h;},null);
__d('ReactComposerFailedPhotoUploadContainer.react',['ReactComposerContextMixin','ReactComposerFailedMediaUpload.react','ReactComposerPhotoUploadActions','ReactComposerPhotoUploader','ReactComposerPhotoUploadStore','ReactComponentWithPureRenderMixin','React'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'ReactComposerPhotoUploadPlaceholderContainer',_uploader:undefined,mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactComposerContextMixin')],propTypes:{mediaConfig:h.object.isRequired},render:function(){return (c('React').createElement(c('ReactComposerFailedMediaUpload.react'),babelHelpers['extends']({},this.props,{onDismissClick:this._onDismissClick,onRemoveClick:this._onDismissClick,onRetryClick:this._onRetryClick})));},_onDismissClick:function(){c('ReactComposerPhotoUploadActions').removePhotoUpload(this.context.composerID,this.props.uploadID);},_onRetryClick:function(){var j=c('ReactComposerPhotoUploadStore').getPhotoUpload(this.context.composerID,this.props.uploadID).fileUpload.getFile();j.manuallyRetried=true;c('ReactComposerPhotoUploadActions').retryPhotoUpload(this.context.composerID);if(!this._uploader)this._uploader=new (c('ReactComposerPhotoUploader'))(this.context,this.props.mediaConfig.photoLimit,{disableFaceRecognition:this.props.mediaConfig.disableFaceboxTagger});this._uploader&&this._uploader.retry(j);}});f.exports=i;},null);
__d('ReactComposerFailedVideoXUploadContainer.react',['ReactComposerContextMixin','ReactComposerFailedMediaUpload.react','ReactComposerVideoXUploadActions','ReactComposerVideoXUploader','ReactComposerVideoXUploadStore','ReactComponentWithPureRenderMixin','React'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'ReactComposerFailedVideoXUploadContainer',mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactComposerContextMixin')],propTypes:{mediaConfig:h.object.isRequired},render:function(){return (c('React').createElement(c('ReactComposerFailedMediaUpload.react'),babelHelpers['extends']({},this.props,{onDismissClick:this._onDismissClick,onRemoveClick:this._onDismissClick,onRetryClick:this._onRetryClick})));},_onDismissClick:function(){c('ReactComposerVideoXUploadActions').removeVideoUpload(this.context.composerID,this.props.uploadID);},_onRetryClick:function(){var j=c('ReactComposerVideoXUploadStore').getVideoUpload(this.context.composerID,this.props.uploadID).fileUpload;j.manuallyRetried=true;var k=c('ReactComposerVideoXUploadStore').getUploader(this.context.composerID);k.uploadVideo(j);}});f.exports=i;},null);
__d('ReactComposerNUXActionType',['keyMirror'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();f.exports=c('keyMirror')({NUX_WAS_SHOWN:null,NUX_WAS_SEEN:null});},null);
__d('ReactComposerNUXStore',['ReactComposerStoreBase','ReactComposerNUXActionType','AsyncRequest','Map'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('ReactComposerStoreBase'));i=h&&h.prototype;function j(){'use strict';var k;i.constructor.call(this,function(){return {nuxes:new (c('Map'))()};},function(l){switch(l.type){case c('ReactComposerNUXActionType').NUX_WAS_SHOWN:k&&k.$ReactComposerNUXStore1(l);break;case c('ReactComposerNUXActionType').NUX_WAS_SEEN:k&&k.$ReactComposerNUXStore2(l);break;}});k=this;}j.prototype.hasNUXBeenSeen=function(k,l){'use strict';return this.$ReactComposerNUXStore3(k,l).seen;};j.prototype.getNUXShownPhotoID=function(k,l){'use strict';return this.$ReactComposerNUXStore3(k,l).photoID;};j.prototype.$ReactComposerNUXStore1=function(k){'use strict';var l=this.validateAction(k,['composerID','nuxType','photoID']),m=l[0],n=l[1],o=l[2],p=this.$ReactComposerNUXStore3(m,n);p.photoID=o;this.emitChange(m);};j.prototype.$ReactComposerNUXStore2=function(k){'use strict';var l=this.validateAction(k,['composerID','nuxType']),m=l[0],n=l[1],o=this.$ReactComposerNUXStore3(m,n);o.seen=true;new (c('AsyncRequest'))('/ajax/photos/composer/mark_nux_seen.php').setData({type:n}).send();this.emitChange(m);};j.prototype.$ReactComposerNUXStore3=function(k,l){'use strict';var m=this.getComposerData(k),n=m.nuxes.get(l);if(!n){n={seen:false,photoID:null};m.nuxes.set(l,n);}return n;};f.exports=new j();},null);
__d('ReactComposerNUXActions',['ReactComposerNUXActionType','ReactComposerDispatcher','ReactComposerNUXStore'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();c('ReactComposerNUXStore');var h={nuxWasShown:function(i,j,k){c('ReactComposerDispatcher').dispatch({composerID:i,type:c('ReactComposerNUXActionType').NUX_WAS_SHOWN,nuxType:j,photoID:k});},nuxWasSeen:function(i,j){c('ReactComposerDispatcher').dispatch({composerID:i,type:c('ReactComposerNUXActionType').NUX_WAS_SEEN,nuxType:j});}};f.exports=h;},null);
__d('ReactComposerPhotoActionButton.react',['cx','ReactComponentWithPureRenderMixin','React','Tooltip','joinClasses'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'ReactComposerPhotoActionButton',mixins:[c('ReactComponentWithPureRenderMixin')],propTypes:{tooltip:i.string,className:i.string,onClick:i.func,iconClassName:i.string},render:function(){var k=c('joinClasses')(this.props.className,"_jfh");return (c('React').createElement('button',babelHelpers['extends']({className:k,onClick:this.props.onClick,tabIndex:'0'},c('Tooltip').propsFor(this.props.tooltip)),c('React').createElement('div',{className:this.props.iconClassName})));}});f.exports=j;},null);
__d('ReactComposerPhotoEditActionButton.react',['cx','fbt','ReactComposerPhotoActionButton.react','ReactComponentWithPureRenderMixin','React'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=c('React').PropTypes,k=c('React').createClass({displayName:'ReactComposerPhotoEditActionButton',mixins:[c('ReactComponentWithPureRenderMixin')],propTypes:{onClick:j.func},render:function(){var l=i._("Edit Photo");return (c('React').createElement(c('ReactComposerPhotoActionButton.react'),{className:"_4_z4",onClick:this.props.onClick,tooltip:l,iconClassName:"_4_z5"}));}});f.exports=k;},null);
__d('ReactComposerFaceboxTaggerTypeaheadPresenter',['cx','React','XUITypeaheadView.react'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').createClass({displayName:'ComposerFaceboxTaggerTypeaheadView',render:function(){return (c('React').createElement('div',{className:"_3ntx"},c('React').createElement(c('XUITypeaheadView.react'),this.props)));}}),j={ViewRenderer:i,useLayer:true};f.exports=j;},null);
__d('ReactComposerPhotoFaceboxTagger.react',['cx','fbt','ReactComposerFaceboxTaggerTypeaheadPresenter','ReactComponentWithPureRenderMixin','React','XUITypeahead.react'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=c('React').PropTypes,k=c('React').createClass({displayName:'ReactComposerPhotoFaceboxTagger',mixins:[c('ReactComponentWithPureRenderMixin')],propTypes:{faceboxID:j.string.isRequired,dataSource:j.object.isRequired,onTagAdded:j.func.isRequired},getInitialState:function(){return {query:''};},render:function(){var l=i._("Who is this?");return (c('React').createElement(c('XUITypeahead.react'),{className:"_xgd",queryString:this.state.query,placeholder:l,onSelectAttempt:this._onTokenSelected,onChange:this._onTypeaheadChanged,searchSource:this.props.dataSource,highlightOnSelect:true,showEntriesOnFocus:true,autoHighlight:true,selectOnTab:true,focusedOnInit:true,presenter:c('ReactComposerFaceboxTaggerTypeaheadPresenter')}));},_onTokenSelected:function(l){this.props.onTagAdded(this.props.faceboxID,l.getUniqueID(),l.getTitle());},_onTypeaheadChanged:function(event){this.setState({query:event.target.value});}});f.exports=k;},null);
__d('ReactComposerQAndAActionType',['keyMirror'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();f.exports=c('keyMirror')({SET_QANDA_CONFIG:null});},null);
__d('ReactComposerQAndAStore',['ReactComposerQAndAActionType','ReactComposerStoreBase'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('ReactComposerStoreBase'));i=h&&h.prototype;function j(){'use strict';var k;i.constructor.call(this,function(){return {photoLimit:1,profilePicURI:null,profileURI:null,faceboxDataSource:null};},function(l){switch(l.type){case c('ReactComposerQAndAActionType').SET_QANDA_CONFIG:k&&k.$ReactComposerQAndAStore1(l);break;}});k=this;}j.prototype.getPhotoLimit=function(k){'use strict';return this.getComposerData(k).photoLimit;};j.prototype.getProfilePicSrc=function(k){'use strict';return this.getComposerData(k).profilePicSrc;};j.prototype.getProfileURI=function(k){'use strict';return this.getComposerData(k).profileURI;};j.prototype.getFaceboxDataSource=function(k){'use strict';return this.getComposerData(k).faceboxDataSource;};j.prototype.$ReactComposerQAndAStore1=function(k){'use strict';var l=this.validateAction(k,['composerID','config']),m=l[0],n=l[1],o=this.getComposerData(m);o.photoLimit=n.photoLimit;o.profilePicSrc=n.profilePicSrc;o.profileURI=n.profileURI;o.faceboxDataSource=n.faceboxDataSource;this.emitChange(k.composerID);};f.exports=new j();},null);
__d('ReactComposerPhotoFaceboxTaggerContainer.react',['ReactComposerMediaStore','ReactComposerPhotoFaceboxTagger.react','ReactComposerPropsAndStoreBasedStateMixin','ReactComposerQAndAStore','ReactComponentWithPureRenderMixin','React'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'ReactComposerPhotoFaceboxTaggerContainer',mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactComposerPropsAndStoreBasedStateMixin')(c('ReactComposerMediaStore'),c('ReactComposerQAndAStore'))],propTypes:{faceboxID:h.string.isRequired,onTagAdded:h.func.isRequired},statics:{calculateState:function(j){var k=c('ReactComposerMediaStore').getTaggingDataSource(j)||c('ReactComposerQAndAStore').getFaceboxDataSource(j);k&&k.bootstrap();return {dataSource:k};}},render:function(){return (c('React').createElement(c('ReactComposerPhotoFaceboxTagger.react'),{faceboxID:this.props.faceboxID,dataSource:this.state.dataSource,onTagAdded:this.props.onTagAdded}));}});f.exports=i;},null);
__d('ReactComposerPhotoTagActionButton.react',['cx','fbt','ReactComposerPhotoActionButton.react','ReactComponentWithPureRenderMixin','React'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=c('React').PropTypes,k=c('React').createClass({displayName:'ReactComposerPhotoTagActionButton',mixins:[c('ReactComponentWithPureRenderMixin')],propTypes:{hasTag:j.bool.isRequired,onClick:j.any},render:function(){var l=i._("Tag");return (c('React').createElement(c('ReactComposerPhotoActionButton.react'),{className:"_cwf"+(this.props.hasTag?' '+"_cwh":''),tooltip:l,iconClassName:"_cwg",onClick:this.props.onClick}));}});f.exports=k;},null);
__d('ReactComposerPhotoTaggedFaceboxSummary.react',['cx','fbt','ix','Image.react','LeftRight.react','ReactComponentWithPureRenderMixin','React','TooltipLink.react'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k=c('React').PropTypes,l=c('React').createClass({displayName:'ReactComposerPhotoTaggedFaceboxSummary',mixins:[c('ReactComponentWithPureRenderMixin')],propTypes:{faceboxID:k.string.isRequired,onTagRemoved:k.func.isRequired,taggedSubjectID:k.string.isRequired,taggedValue:k.string.isRequired},render:function(){var m=i._("Edit Name");return (c('React').createElement(c('LeftRight.react'),{className:"_31bg"},c('React').createElement('div',{className:"_31bh"},this.props.taggedValue),c('React').createElement(c('TooltipLink.react'),{alignH:'center',position:'below',tooltip:m,onClick:this._onEditClicked},c('React').createElement(c('Image.react'),{src:j('/images/icons/edit.png')}))));},_onEditClicked:function(){this.props.onTagRemoved(this.props.faceboxID,this.props.taggedSubjectID);}});f.exports=l;},null);
__d('ReactComposerPhotoTagger.react',['cx','fbt','ReactComposerContextMixin','ReactComposerPhotoActions','ReactComposerPhotoFaceboxTaggerContainer.react','ReactComposerPhotoEditActionButton.react','ReactComposerPhotoStore','ReactComposerPhotoTagActionButton.react','ReactComposerPhotoTaggedFaceboxSummary.react','ActorURI','AsyncRequest','ContextualLayerAutoFlip','Image.react','ImageBlock.react','immutable','ReactLayeredComponentMixin','LayerHideOnBlur','LayerHideOnEscape','LayerTabIsolation','ModalPhotoEditorTabName','ReactComponentWithPureRenderMixin','React','ReactDOM','XStickerPhotoEditorController','PhotoEditorTargetType','XUIContextualDialog.react','XUIContextualDialogBody.react','XUIDialogCloseButton.react','XUIContextualDialogFooter.react'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=c('React').PropTypes,k=268,l=32,m=c('React').createClass({displayName:'ReactComposerPhotoTagger',_photoEditorRequest:undefined,mixins:[c('ReactLayeredComponentMixin'),c('ReactComponentWithPureRenderMixin'),c('ReactComposerContextMixin')],propTypes:{canTagFromModal:j.bool,draggingPhotos:j.bool,enableFaceboxTagger:j.bool.isRequired,disablePhotoEditing:j.bool.isRequired,faceboxes:j.instanceOf(c('immutable').Map).isRequired,onEditClick:j.func,onTagAdded:j.func.isRequired,onTagIntent:j.func,onTagRemoved:j.func.isRequired,originalID:j.string,photoID:j.string.isRequired,shown:j.bool.isRequired},getDefaultProps:function(){return {shown:false};},componentWillReceiveProps:function(n){if(!this.props.draggingPhotos&&n.draggingPhotos)c('ReactComposerPhotoActions').setPhotoBeingTagged(this.context.composerID,null);},render:function(){var n=this.props.canTagFromModal?this._onTagClick:null,o=this.props.enableFaceboxTagger?c('React').createElement(c('ReactComposerPhotoTagActionButton.react'),{hasTag:c('ReactComposerPhotoStore').hasTagsInPhoto(this.context.composerID,this.props.photoID),onClick:n}):null,p=this.props.disablePhotoEditing?null:c('React').createElement(c('ReactComposerPhotoEditActionButton.react'),{onClick:this._onEditClick});return (c('React').createElement('div',{className:"_jfi",onClick:this._onClick,tabIndex:'-1'},o,p));},renderLayers:function(){if(!this.props.shown||!this.props.enableFaceboxTagger)return null;return {dialog:this._getDialog()};},_getDialog:function(){return (c('React').createElement(c('XUIContextualDialog.react'),{ref:'dialog',shown:this.props.shown,onToggle:this._onDialogToggled,context:c('ReactDOM').findDOMNode(this),position:'below',alignment:'center',width:k,behaviors:{LayerHideOnBlur:c('LayerHideOnBlur'),LayerHideOnEscape:c('LayerHideOnEscape'),ContextualLayerAutoFlip:c('ContextualLayerAutoFlip'),LayerTabIsolation:c('LayerTabIsolation')}},c('React').createElement(c('XUIContextualDialogBody.react'),null,this._getDialogBody()),c('React').createElement(c('XUIContextualDialogFooter.react'),null,c('React').createElement(c('XUIDialogCloseButton.react'),{use:'confirm',label:'Close',onClick:this._onCloseButtonClicked}))));},_getDialogBody:function(){if(this.props.faceboxes.size===0)return i._("We could not find any faces to tag.");return this.props.faceboxes.valueSeq().map(function(n){var o=n.taggedSubjectID?c('React').createElement(c('ReactComposerPhotoTaggedFaceboxSummary.react'),{faceboxID:n.id,onTagRemoved:this.props.onTagRemoved,taggedSubjectID:n.taggedSubjectID,taggedValue:n.taggedValue}):c('React').createElement(c('ReactComposerPhotoFaceboxTaggerContainer.react'),{faceboxID:n.id,onTagAdded:this.props.onTagAdded});return (c('React').createElement(c('ImageBlock.react'),{key:n.id,className:"_qv7"},c('React').createElement(c('Image.react'),{className:"_qv8",height:l,src:n.croppedURI,width:l}),o));}.bind(this));},_onCloseButtonClicked:function(){c('ReactComposerPhotoActions').setPhotoBeingTagged(this.context.composerID,null);},_onDialogToggled:function(n){if(!n)this._onCloseButtonClicked();},_onClick:function(){this.props.onTagIntent&&this.props.onTagIntent();c('ReactComposerPhotoActions').setPhotoBeingTagged(this.context.composerID,this.props.photoID);},_onTagClick:function(event){this._onEditClick(event,null,c('ModalPhotoEditorTabName').TAG);},_onEditClick:function(event,n,o){event.stopPropagation();if(this._photoEditorRequest)return;c('ReactComposerPhotoActions').startPhotoEdit(this.context.composerID,this.props.photoID);var p=c('XStickerPhotoEditorController').getURIBuilder().setString('grid_id',this.context.composerID).setEnum('target_type',c('PhotoEditorTargetType').COMPOSER).setInt('latest_fbid',this.props.photoID).setInt('photo_fbid',this.props.originalID||this.props.photoID).setEnum('initial_tab',o).getURI();p=c('ActorURI').create(p,this.context.actorID);this._photoEditorRequest=new (c('AsyncRequest'))(p).setFinallyHandler(function(){this._photoEditorRequest=null;c('ReactComposerPhotoActions').finishLoadingPhotoEdit(this.context.composerID,this.props.photoID);}.bind(this));this._photoEditorRequest&&this._photoEditorRequest.send();this.props.onEditClick&&this.props.onEditClick();}});f.exports=m;},null);
__d('ReactComposerPhoto.react',['cx','fbt','ix','ReactComposerMediaConfig','ReactComposerPhotoTagger.react','ReactComposerPropsAndStoreBasedStateMixin','ReactComposerStore','Image.react','ImageBlock.react','immutable','LoadingIndicator.react','ReactComponentWithPureRenderMixin','React','ReactLayeredComponentMixin','XUIAmbientNUX.react','XUICloseButton.react','XUIContextualDialog.react','XUIContextualDialogBody.react','XUIText.react'],function a(b,c,d,e,f,g,h,i,j){'use strict';if(c.__markCompiled)c.__markCompiled();var k=c('React').PropTypes,l=c('React').createClass({displayName:'ReactComposerPhoto',mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactLayeredComponentMixin'),c('ReactComposerPropsAndStoreBasedStateMixin')(c('ReactComposerStore'))],propTypes:{canTagFromModal:k.bool,draggingPhotos:k.bool,enableFaceboxTagger:k.bool,disablePhotoEditing:k.bool,faceboxes:k.instanceOf(c('immutable').Map).isRequired,isLoadingPhotoEdit:k.bool,onEditClick:k.func,onRemoveButtonClicked:k.func.isRequired,onTagAdded:k.func.isRequired,onTaggingNUXClose:k.func,onTagIntent:k.func,onTagRemoved:k.func.isRequired,originalID:k.string,photoID:k.string.isRequired,showStickersNUX:k.bool,showTaggingNUX:k.bool,thumbSrc:k.string.isRequired},getDefaultProps:function(){return {enableFaceboxTagger:true,disablePhotoEditing:false};},statics:{calculateState:function(m,n){return {posting:c('ReactComposerStore').isPosting(m)};}},render:function(){var m={width:c('ReactComposerMediaConfig').photo.thumbWidth,height:c('ReactComposerMediaConfig').photo.thumbHeight},n=this.props.isRecognizingFaceboxes||this.props.isLoadingPhotoEdit?c('React').createElement('div',{className:"_jff"},c('React').createElement(c('LoadingIndicator.react'),{className:"_jfg",size:'small',color:'white'})):null,o="_jfc"+(this.props.isRecognizingFaceboxes?' '+"_jfd":''),p,q;if(!this.state.posting){p=c('React').createElement(c('XUICloseButton.react'),{className:"_jfe",onClick:this.props.onRemoveButtonClicked,size:'medium',shade:'light'});q=c('React').createElement(c('ReactComposerPhotoTagger.react'),{canTagFromModal:this.props.canTagFromModal,draggingPhotos:this.props.draggingPhotos,enableFaceboxTagger:this.props.enableFaceboxTagger,disablePhotoEditing:this.props.disablePhotoEditing,faceboxes:this.props.faceboxes,onEditClick:this.props.onEditClick,onTagIntent:this.props.onTagIntent,onTagAdded:this.props.onTagAdded,onTagRemoved:this.props.onTagRemoved,originalID:this.props.originalID,photoID:this.props.photoID,shown:this.props.showPhotoTagger});}return (c('React').createElement('div',{ref:'root',className:o,style:m},p,c('React').createElement(c('Image.react'),{src:this.props.thumbSrc,width:c('ReactComposerMediaConfig').photo.thumbWidth,height:c('ReactComposerMediaConfig').photo.thumbHeight}),n,q));},renderLayers:function(){return {taggingNUX:this.props.enableFaceboxTagger?this._getTaggingNux():null,stickersNUX:this.props.disablePhotoEditing?null:this._getStickersNux()};},_getTaggingNux:function(){return (c('React').createElement(c('XUIContextualDialog.react'),{contextRef:function(){return this.refs.root;}.bind(this),position:'below',alignment:'left',shown:this.props.showTaggingNUX,width:300},c('React').createElement(c('XUIContextualDialogBody.react'),null,c('React').createElement(c('XUICloseButton.react'),{className:"rfloat",onClick:this.props.onTaggingNUXClose}),c('React').createElement('div',null,c('React').createElement(c('XUIText.react'),{weight:'bold',display:'block'},i._("Now It's Easier to Tag Photos.")),i._("Click photos with a {tagging_badge_icon} to review tag suggestions or add, edit, and remove tags. When you post the photo, your tags will be applied.",[i.param('tagging_badge_icon',c('React').createElement(c('Image.react'),{className:"_2z-r",src:j('/images/photos/editor/tag_icon_blue.png')}))])))));},_getStickersNux:function(){return (c('React').createElement(c('XUIAmbientNUX.react'),{alignment:'right',contextRef:function(){return this.refs.root;}.bind(this),onCloseButtonClick:this.props.onStickersNUXClose,position:'below',shown:this.props.showStickersNUX},c('React').createElement(c('ImageBlock.react'),{spacing:'medium'},c('React').createElement(c('Image.react'),{src:j('/images/photos/editor/beast.png')}),c('React').createElement('div',{className:"_21ft"},c('React').createElement('div',{className:"_21fs"},i._("New! Add Stickers!")),i._("You can now add stickers to your photos")))));}});f.exports=l;},null);
__d('ReactComposerPhotoContainer.react',['ReactComposerPhoto.react','ReactComposerPhotoActions','ReactComposerPhotoStore','ReactComposerPropsAndStoreBasedStateMixin','ReactComposerNUXActions','ReactComposerNUXStore','ComposerNUXType','ReactComponentWithPureRenderMixin','React','ReactDOM'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'ReactComposerPhotoContainer',mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactComposerPropsAndStoreBasedStateMixin')(c('ReactComposerNUXStore'),c('ReactComposerPhotoStore'))],propTypes:{dragHandler:h.shape({add:h.func.isRequired,remove:h.func.isRequired}),enableFaceboxTagger:h.bool,disablePhotoEditing:h.bool,nuxConfig:h.object.isRequired,photoID:h.string.isRequired,uploadID:h.string.isRequired},statics:{beforeCalculateInitialState:function(j,k){var l=c('ReactComposerPhotoStore').getPhoto(j,k.photoID),m=this._shouldShowStickersNUX(j,l,k.nuxConfig),n=!m&&this._shouldShowTaggingNUX(j,l,k.nuxConfig);if(m)c('ReactComposerNUXActions').nuxWasShown(j,c('ComposerNUXType').ADD_STICKERS_NUX,l.id);if(n)c('ReactComposerNUXActions').nuxWasShown(j,c('ComposerNUXType').TAGGING_FLYOUT_NUX,l.id);},calculateState:function(j,k){var l=c('ReactComposerPhotoStore').getPhoto(j,k.photoID),m=this._shouldShowStickersNUX(j,l,k.nuxConfig),n=!m&&this._shouldShowTaggingNUX(j,l,k.nuxConfig),o=c('ReactComposerPhotoStore').getPhotoBeingTagged(j)===k.photoID;return {faceboxes:l.faceboxes,isLoadingPhotoEdit:l.isLoadingPhotoEdit,isRecognizingFaceboxes:l.isRecognizingFaceboxes,showPhotoTagger:o,showStickersNUX:m,showTaggingNUX:n,thumbSrc:l.thumbSrc};},_couldShowNUX:function(j,k,l,m){var n=c('ReactComposerNUXStore').getNUXShownPhotoID(j,m),o=c('ReactComposerNUXStore').hasNUXBeenSeen(j,m);return (!!l[m]&&!o&&(!n||n===k.id));},_shouldShowStickersNUX:function(j,k,l){return this._couldShowNUX(j,k,l,c('ComposerNUXType').ADD_STICKERS_NUX);},_shouldShowTaggingNUX:function(j,k,l){return (this._couldShowNUX(j,k,l,c('ComposerNUXType').TAGGING_FLYOUT_NUX)&&k.faceboxes.size>0);}},componentDidMount:function(){setTimeout(function(){var j=this.props.dragHandler;j&&j.add(c('ReactDOM').findDOMNode(this.refs.container));}.bind(this),0);},componentWillUnmount:function(){setTimeout(function(){var j=this.props.dragHandler;j&&j.remove(c('ReactDOM').findDOMNode(this.refs.container));}.bind(this),0);},render:function(){return (c('React').createElement(c('ReactComposerPhoto.react'),babelHelpers['extends']({},this.props,this.state,{onEditClick:this._onEditClick,onRemoveButtonClicked:this._onRemoveButtonClicked,onStickersNUXClose:this._onStickersNUXClose,onTagAdded:this._onTagAdded,onTagIntent:this._onTagIntent,onTaggingNUXClose:this._onTaggingNUXClose,onTagRemoved:this._onTagRemoved,ref:'container'})));},_onEditClick:function(){this._onStickersNUXClose();},_onRemoveButtonClicked:function(){c('ReactComposerPhotoActions').removePhoto(this.context.composerID,this.props.photoID,this.props.uploadID);},_onStickersNUXClose:function(){c('ReactComposerNUXActions').nuxWasSeen(this.context.composerID,c('ComposerNUXType').ADD_STICKERS_NUX);},_onTagAdded:function(j,k,l){c('ReactComposerPhotoActions').tagFacebox(this.context.composerID,this.props.photoID,j,k,l);},_onTaggingNUXClose:function(){c('ReactComposerNUXActions').nuxWasSeen(this.context.composerID,c('ComposerNUXType').TAGGING_FLYOUT_NUX);},_onTagIntent:function(){if(this.state.showTaggingNUX)this._onTaggingNUXClose();},_onTagRemoved:function(j,k){c('ReactComposerPhotoActions').untagFacebox(this.context.composerID,this.props.photoID,j,k);}});f.exports=i;},null);
__d('ReactComposerPhotoUploadPlaceholder.react',['cx','ReactComposerPhotoUploadState','LoadingIndicator.react','ProgressBar.react','ReactComponentWithPureRenderMixin','React','XUICloseButton.react'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'ReactComposerPhotoUploadPlaceholder',mixins:[c('ReactComponentWithPureRenderMixin')],propTypes:{onRemoveButtonClicked:i.func.isRequired,uploadID:i.string.isRequired,uploadState:i.oneOf(Object.keys(c('ReactComposerPhotoUploadState'))).isRequired,uploadProgress:i.number},render:function(){var k=null,l=null,m=this.props.uploadState,n=m===c('ReactComposerPhotoUploadState').PHOTO_UPLOAD_RESIZE_STARTED,o=m===c('ReactComposerPhotoUploadState').PHOTO_UPLOAD_UPLOADING;if(n||o){var p="_1b01"+(n?' '+"_1b02":'')+(o?' '+"_1b03":'');k=c('React').createElement(c('ProgressBar.react'),{value:this.props.uploadProgress,className:p});}else l=c('React').createElement(c('LoadingIndicator.react'),{className:"_1b00",color:'white',size:'medium'});return (c('React').createElement('div',{className:"_1a__"},c('React').createElement(c('XUICloseButton.react'),{className:"_1b04",onClick:this.props.onRemoveButtonClicked,size:'medium',shade:'dark'}),k,l));}});f.exports=j;},null);
__d('ReactComposerPhotoUploadPlaceholderContainer.react',['ReactComposerPhotoUploadActions','ReactComposerPhotoUploadPlaceholder.react','ReactComposerPhotoUploadStore','ReactComposerPropsAndStoreBasedStateMixin','ReactComponentWithPureRenderMixin','React'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'ReactComposerPhotoUploadPlaceholderContainer',mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactComposerPropsAndStoreBasedStateMixin')(c('ReactComposerPhotoUploadStore'))],propTypes:{uploadID:h.string.isRequired},statics:{calculateState:function(j,k){var l=c('ReactComposerPhotoUploadStore').getPhotoUpload(j,k.uploadID);return {uploadProgress:l.progress,uploadState:l.state};}},render:function(){return (c('React').createElement(c('ReactComposerPhotoUploadPlaceholder.react'),babelHelpers['extends']({},this.props,this.state,{onRemoveButtonClicked:this._onRemoveButtonClicked})));},_onRemoveButtonClicked:function(){c('ReactComposerPhotoUploadActions').removePhotoUpload(this.context.composerID,this.props.uploadID);}});f.exports=i;},null);
__d('ReactComposerVideoX.react',['cx','ReactComposerMediaConfig','Image.react','ReactComponentWithPureRenderMixin','React','XUICloseButton.react'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'ReactComposerVideoX',mixins:[c('ReactComponentWithPureRenderMixin')],propTypes:{onRemoveButtonClicked:i.func.isRequired,thumbSrc:i.string.isRequired,posting:i.bool.isRequired},render:function(){var k={width:c('ReactComposerMediaConfig').photo.thumbWidth,height:c('ReactComposerMediaConfig').photo.thumbHeight},l="_1sjs"+(this.props.isRecognizingFaceboxes?' '+"_1sjt":''),m;if(!this.props.posting)m=c('React').createElement(c('XUICloseButton.react'),{className:"_1sju",onClick:this.props.onRemoveButtonClicked,size:'medium',shade:'light'});return (c('React').createElement('div',{ref:'root',className:l,style:k},m,c('React').createElement('div',{className:"_2v_s"}),c('React').createElement(c('Image.react'),{src:this.props.thumbSrc,width:c('ReactComposerMediaConfig').photo.thumbWidth,height:c('ReactComposerMediaConfig').photo.thumbHeight})));}});f.exports=j;},null);
__d('ReactComposerVideoXContainer.react',['cx','ReactComposerPropsAndStoreBasedStateMixin','ReactComposerStore','ReactComposerVideoX.react','ReactComposerVideoXUploadActions','ReactComposerVideoXUploadStore','EventListener','generateVideoThumbnails','React','ReactDOM'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=100,k=100,l=c('React').createClass({displayName:'ReactComposerVideoXContainer',mixins:[c('ReactComposerPropsAndStoreBasedStateMixin')(c('ReactComposerStore'))],_loadedmetadataListener:null,propTypes:{dragHandler:i.shape({add:i.func.isRequired,remove:i.func.isRequired}),photoID:i.string.isRequired,uploadID:i.string.isRequired,fileURL:i.string.isRequired},statics:{calculateState:function(m,n){var o=c('ReactComposerVideoXUploadStore').getVideoUpload(m.toString(),n.uploadID),p=o&&o.thumbSrc?o.thumbSrc:'/images/icons/timeline/placeholder/placeholder-movies.png';return {posting:c('ReactComposerStore').isPosting(m),thumbSrc:p};}},componentDidMount:function(){var m=c('ReactDOM').findDOMNode(this.refs.videoPlayer);this._loadedmetadataListener=c('EventListener').listen(m,'loadedmetadata',this.generateVideoThumbnails);setTimeout(function(){var n=this.props.dragHandler;n&&n.add(c('ReactDOM').findDOMNode(this.refs.container));}.bind(this),0);},generateVideoThumbnails:function(){var m=c('ReactDOM').findDOMNode(this.refs.videoPlayer);c('generateVideoThumbnails')(m,k,j,1).done(function(n){c('ReactComposerVideoXUploadActions').setVideoThumbnail(this.context.composerID,this.props.uploadID,n.thumbnails[0].getURL());}.bind(this));},componentWillUnmount:function(){if(this._loadedmetadataListener){this._loadedmetadataListener.remove();this._loadedmetadataListener=null;}setTimeout(function(){var m=this.props.dragHandler;m&&m.remove(c('ReactDOM').findDOMNode(this.refs.container));}.bind(this),0);},render:function(){return (c('React').createElement('div',null,c('React').createElement(c('ReactComposerVideoX.react'),{posting:this.state.posting,thumbSrc:this.state.thumbSrc,onRemoveButtonClicked:this._onRemoveButtonClicked,ref:'container'}),c('React').createElement('video',{ref:'videoPlayer',className:"_2mpk",src:this.props.fileURL})));},_onRemoveButtonClicked:function(){c('ReactComposerVideoXUploadActions').removeVideoUpload(this.context.composerID,this.props.uploadID);}});f.exports=l;},null);
__d('ReactComposerVideoXUploadPlaceholder.react',['cx','ReactComposerPhotoUploadState','ProgressBar.react','ReactComponentWithPureRenderMixin','React','XUICloseButton.react'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'ReactComposerVideoXUploadPlaceholder',mixins:[c('ReactComponentWithPureRenderMixin')],propTypes:{onRemoveButtonClicked:i.func.isRequired,uploadID:i.string.isRequired,uploadState:i.oneOf(Object.keys(c('ReactComposerPhotoUploadState'))).isRequired,uploadProgress:i.number},render:function(){var k=null,l=this.props.uploadState,m=l===c('ReactComposerPhotoUploadState').PHOTO_UPLOAD_UPLOADING;if(m){var n="_5t36"+(m?' '+"_5t3f":'');k=c('React').createElement(c('ProgressBar.react'),{value:this.props.uploadProgress,className:n});}return (c('React').createElement('div',{className:"_5t3l"},c('React').createElement(c('XUICloseButton.react'),{className:"_5t3o",onClick:this.props.onRemoveButtonClicked,size:'medium',shade:'dark'}),k));}});f.exports=j;},null);
__d('ReactComposerVideoXUploadPlaceholderContainer.react',['ReactComposerVideoXUploadActions','ReactComposerVideoXUploadPlaceholder.react','ReactComposerVideoXUploadStore','ReactComposerPropsAndStoreBasedStateMixin','ReactComponentWithPureRenderMixin','React'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'ReactComposerVideoXUploadPlaceholderContainer',mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactComposerPropsAndStoreBasedStateMixin')(c('ReactComposerVideoXUploadStore'))],propTypes:{uploadID:h.string.isRequired},statics:{calculateState:function(j,k){var l=c('ReactComposerVideoXUploadStore').getVideoUpload(j,k.uploadID);return {uploadProgress:l.progress,uploadState:l.state};}},render:function(){return (c('React').createElement(c('ReactComposerVideoXUploadPlaceholder.react'),babelHelpers['extends']({},this.props,this.state,{onRemoveButtonClicked:this._onRemoveButtonClicked})));},_onRemoveButtonClicked:function(){c('ReactComposerVideoXUploadActions').removeVideoUpload(this.context.composerID,this.props.uploadID);}});f.exports=i;},null);
__d('ReactComposerDraggableMedia.react',['cx','ReactComposerContextMixin','ReactComposerFailedPhotoUploadContainer.react','ReactComposerPhotoActions','ReactComposerPhotoContainer.react','ReactComposerPhotoUploadActions','ReactComposerPhotoUploadPlaceholderContainer.react','ReactComposerPhotoUploadState','ReactComposerVideoXContainer.react','ReactComposerVideoXUploadActions','ReactComposerFailedVideoXUploadContainer.react','ReactComposerVideoXUploadPlaceholderContainer.react','Draggable','ReactComponentWithPureRenderMixin','React','ReactDOM','Vector','throttle'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=200,k=5,l=c('ReactComposerPhotoUploadState').PHOTO_UPLOAD_DONE,m=c('React').createClass({displayName:'ReactComposerDraggableMedia',_draggable:undefined,_grabbed:undefined,mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactComposerContextMixin')],propTypes:{enableFaceboxTagger:i.bool,disablePhotoEditing:i.bool,mediaConfig:i.object.isRequired,nuxConfig:i.object.isRequired,upload:i.object.isRequired,draggingPhotos:i.bool,enableMediaDragging:i.bool,index:i.number,updateComponentPosition:i.func.isRequired,onGrab:i.func.isRequired,onDrag:i.func.isRequired,onDrop:i.func.isRequired},getInitialState:function(){return {dragging:false};},componentWillReceiveProps:function(n){if(this.props.index!==n.index&&n.index!==undefined)setTimeout(this._updateComponentPosition,0);},componentDidUpdate:function(n){if(this.props.enableMediaDragging&&n.upload.state!==l&&this.props.upload.state===l){this._createDraggable();}else if(n.upload.state===l&&this.props.upload.state!==l)this._draggable&&this._draggable.destroy();},componentDidMount:function(){if(this.props.enableMediaDragging&&this.props.upload.state===l)this._createDraggable();setTimeout(this._updateComponentPosition,0);},componentWillUnmount:function(){this._draggable&&this._draggable.destroy();},render:function(){var n=(this.state.dragging?"_2pkn":'')+(' '+"_2pko");return (c('React').createElement('div',{className:n,onClick:this._onClick,key:this.props.upload.photoID||this.props.upload.id},this._getInnerMediaComponent()));},_getInnerMediaComponent:function(){if(this.props.upload.type=='video')return this._getInnerVideoComponent();return this._getInnerPhotoComponent();},_getInnerVideoComponent:function(){var n=this.props.upload;if(n.state===l){var o=this._getDragHandler();return (c('React').createElement(c('ReactComposerVideoXContainer.react'),{dragHandler:o,key:n.photoID,photoID:n.photoID,uploadID:n.id,fileURL:n.fileURL}));}if(n.state===c('ReactComposerPhotoUploadState').PHOTO_UPLOAD_FAILED)return (c('React').createElement(c('ReactComposerFailedVideoXUploadContainer.react'),{error:n.error,filename:n.filename,key:n.id,mediaConfig:this.props.mediaConfig,uploadID:n.id}));return (c('React').createElement(c('ReactComposerVideoXUploadPlaceholderContainer.react'),{key:n.id,uploadID:n.id}));},_getInnerPhotoComponent:function(){var n=this.props.upload;if(n.state===l){var o=this._getDragHandler();return (c('React').createElement(c('ReactComposerPhotoContainer.react'),{canTagFromModal:this.props.mediaConfig.canTagFromModal,draggingPhotos:this.props.draggingPhotos,dragHandler:o,enableFaceboxTagger:this.props.enableFaceboxTagger,disablePhotoEditing:this.props.disablePhotoEditing,key:n.photoID,nuxConfig:this.props.nuxConfig,originalID:n.originalPhotoID,photoID:n.photoID,uploadID:n.id}));}if(n.state===c('ReactComposerPhotoUploadState').PHOTO_UPLOAD_FAILED)return (c('React').createElement(c('ReactComposerFailedPhotoUploadContainer.react'),{error:n.error,filename:n.filename,key:n.id,mediaConfig:this.props.mediaConfig,uploadID:n.id}));return (c('React').createElement(c('ReactComposerPhotoUploadPlaceholderContainer.react'),{key:n.id,uploadID:n.id}));},_getDragHandler:function(){var n=this;return {add:function(o){n._draggable&&n._draggable.addHandle(o);},remove:function(o){n._draggable&&n._draggable.removeHandle(o);}};},_createDraggable:function(){this._draggable=new (c('Draggable'))(c('ReactDOM').findDOMNode(this)).setNamespace('ReactComposer').setUseAbsolute(true).setAvoidKillingEvents(true).setGutter(k).setGrabHandler(this._onGrab).setDragHandler(c('throttle')(this._onDrag,j)).setDropHandler(this._onDrop);this._updateComponentPosition();},_updateComponentPosition:function(){var n=c('ReactDOM').findDOMNode(this);this.props.updateComponentPosition(this.props.upload.id||this.props.upload.photoID,c('Vector').getElementPosition(n),c('Vector').getElementDimensions(n));},_onGrab:function(){if(this.state.dragging)return;this._grabbed=true;var n=c('ReactDOM').findDOMNode(this);this.props.onGrab(this.props.upload.id||this.props.upload.photoID,n);},_onDrag:function(n){if(!this._grabbed)return;this.setState({dragging:true});this.props.onDrag(n);},_onDrop:function(n){this._draggable&&this._draggable.resetPosition();this.setState({dragging:false});this._grabbed=false;var o=null;if(this.props.upload.type==='video'){o=c('ReactComposerVideoXUploadActions').videoMoved;}else o=c('ReactComposerPhotoUploadActions').photoMoved;this.props.onDrop(n,o);},_onClick:function(){c('ReactComposerPhotoActions').setPhotoBeingTagged(this.context.composerID,this.props.upload.photoID);}});f.exports=m;},null);
__d('ReactComposerGenericPhotoUploadLink.react',['cx','ReactComponentWithPureRenderMixin','React','Link.react','joinClasses'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'ReactComposerGenericPhotoUploadLink',mixins:[c('ReactComponentWithPureRenderMixin')],propTypes:{className:i.string},getDefaultProps:function(){return {className:"__9t"};},render:function(){var k=c('joinClasses')("__9u",this.props.className);return (c('React').createElement(c('Link.react'),{className:k},this.props.children));}});f.exports=j;},null);
__d('ReactComposerMediaScrollableArea.react',['ReactComponentWithPureRenderMixin','TimelineMapScrollableArea','React','ReactDOM','joinClasses'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=h.oneOfType([h.string,h.number]),j=c('React').createClass({displayName:'ReactComposerMediaScrollableArea',_scrollableArea:c('TimelineMapScrollableArea'),mixins:[c('ReactComponentWithPureRenderMixin')],propTypes:{children:h.array.isRequired,getAddMoreDOM:h.func,height:i.isRequired,persistent:h.bool,photosCount:h.number,scrollbar:h.oneOf(['native','fade','nofade']).isRequired,verticalScroll:h.bool,width:i.isRequired},getDefaultProps:function(){return {scrollbar:'native',width:'100%'};},componentDidMount:function(){this._scrollableArea=new (c('TimelineMapScrollableArea'))(c('ReactDOM').findDOMNode(this.refs.container),{fade:this.props.scrollbar==='fade',persistent:this.props.persistent,verticalscroll:this.props.verticalScroll});},componentDidUpdate:function(k,l){if(this.props.photosCount>=k.photosCount)this.props.getAddMoreDOM&&this.props.getAddMoreDOM()&&this._scrollableArea.scrollIntoView(this.props.getAddMoreDOM());},componentWillUnmount:function(){this._scrollableArea.destroy();},render:function(){var k=c('joinClasses')(this.props.className,this.props.scrollbar),l={height:this.props.height,width:this.props.width},m=this.props.height-(this.props.scrollbar==='fade'?0:10),n={height:m};return (c('React').createElement('div',{className:k,ref:'container'},c('React').createElement('div',{className:'fbScrollableArea',style:l},c('React').createElement('div',{className:'fbScrollableAreaWrap'},c('React').createElement('div',{className:'fbScrollableAreaBody',style:n},c('React').createElement('div',{className:'fbScrollableAreaContent'},this.props.children))),this._getTrack())));},_getTrack:function(){if(this.props.scrollbar==='native')return null;return (c('React').createElement('div',{className:'fbScrollableAreaTrack invisible_elem'},c('React').createElement('div',{className:'fbScrollableAreaGripper'})));}});f.exports=j;},null);
__d('ReactComposerMediaUploadsGrid.react',['cx','fbt','ReactComposerContextMixin','ReactComposerDraggableMedia.react','ReactComposerGenericPhotoUploadLink.react','ReactComposerMediaScrollableArea.react','ReactComposerMediaUtils','ReactComposerPhotoUploadActions','FileInput.react','immutable','ReactComponentWithPureRenderMixin','React','ReactDOM','joinClasses'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=c('React').PropTypes,k=112,l=c('React').createClass({displayName:'ReactComposerMediaUploadsGrid',mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactComposerContextMixin')],propTypes:{enableFaceboxTagger:j.bool,disablePhotoEditing:j.bool,addMorePhotosConfig:j.shape({maxPhotos:j.number}).isRequired,mediaAcceptParam:j.string,mediaConfig:j.object.isRequired,nuxConfig:j.object.isRequired,onFilesSelected:j.func,canUploadMultiplePhotos:j.bool,uploads:j.instanceOf(c('immutable').List).isRequired,onDrop:j.func,photoUploadLink:j.element,scrollableAreaHeight:j.number.isRequired,sourceIndex:j.number,targetIndex:j.number,updateComponentPosition:j.func.isRequired},getDefaultProps:function(){return {addMorePhotosConfig:{},canUploadMultiplePhotos:false,photoUploadLink:c('React').createElement(c('ReactComposerGenericPhotoUploadLink.react'),null),scrollableAreaHeight:k,showSellUploadLink:false};},render:function(){return (c('React').createElement('div',{className:"_kkp"},c('React').createElement('div',{className:c('joinClasses')("_kkq",this.props.className)},c('React').createElement(c('ReactComposerMediaScrollableArea.react'),{fade:true,getAddMoreDOM:this._getAddMoreDOM,height:this.props.scrollableAreaHeight,photosCount:this.props.uploads.size,scrollbar:'fade',verticalScroll:true},this.props.children,this._getComponents(),this._getAddMorePhotosButton()))));},_onAddMorePhotosClick:function(){c('ReactComposerPhotoUploadActions').inputClicked(this.context.composerID);},_onFilesSelected:function(event){if(this.props.onFilesSelected){var m=this.props.onFilesSelected;m(event,this.refs.fileInput.getFileInput());}c('ReactComposerMediaUtils').clearInput(this.refs.fileInput.getFileInput());},_getAddMorePhotosButton:function(){if(!this.props.canUploadMultiplePhotos&&this.props.uploads.size>0)return null;if(this.props.addMorePhotosConfig.maxPhotos&&this.props.uploads.size>=this.props.addMorePhotosConfig.maxPhotos)return null;return (c('React').createElement('span',{ref:'addMore',className:"_kkr"},c('React').createElement(c('FileInput.react'),{accept:this.props.mediaAcceptParam,multiple:this.props.canUploadMultiplePhotos,name:'composer_photo',onChange:this._onFilesSelected,onClick:this._onAddMorePhotosClick,ref:'fileInput',title:i._("Choose a file to upload"),'data-testid':'add-more-photos'},this.props.photoUploadLink)));},_getComponents:function(){var m=this.props.uploads.toSeq().filter(function(o,p){return p!==this.props.sourceIndex;}.bind(this)).map(function(o,p){return this._getDraggablePhoto(o,p);}.bind(this));if(this.props.targetIndex!=null){var n=c('React').createElement('div',{key:'placeholder',className:"_kks"});m=m.splice(this.props.targetIndex,0,n);}if(this.props.sourceIndex!=null)m=m.splice(this.props.sourceIndex,0,this._getDraggablePhoto(this.props.uploads.get(this.props.sourceIndex)));return m.toArray();},_getDraggablePhoto:function(m,n){return (c('React').createElement(c('ReactComposerDraggableMedia.react'),{enableFaceboxTagger:this.props.enableFaceboxTagger,disablePhotoEditing:this.props.disablePhotoEditing,key:m.id,nuxConfig:this.props.nuxConfig,upload:m,draggingPhotos:this.props.sourceIndex!=null,enableMediaDragging:!c('ReactComposerMediaUtils').isMultimediaPost(this.context.composerID),index:n,mediaConfig:this.props.mediaConfig,updateComponentPosition:this.props.updateComponentPosition,onGrab:this.props.onGrab,onDrag:this.props.onDrag,onDrop:this.props.onDrop}));},_getAddMoreDOM:function(){return c('ReactDOM').findDOMNode(this.refs.addMore);}});f.exports=l;},null);
__d('ReactComposerMediaUploadsGridContainer.react',['ReactComposerContextMixin','ReactComposerPhotoUploadActions','ReactComposerMediaUploadsGrid.react','Locale','ReactComponentWithPureRenderMixin','React','ReactDOM','Rect','Vector'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'ReactComposerMediaUploadsGridContainer',_componentsPosition:{},mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactComposerContextMixin')],propTypes:{photoUploadLink:h.element,enableFaceboxTagger:h.bool,disablePhotoEditing:h.bool,showSellUploadLink:h.bool},getInitialState:function(){return {rtl:c('Locale').isRTL(),sourceIndex:null,targetIndex:null,uploads:this.props.uploads};},componentWillReceiveProps:function(j){if(this.state.uploads!==j.uploads)this.setState({uploads:j.uploads});},render:function(){return (c('React').createElement(c('ReactComposerMediaUploadsGrid.react'),babelHelpers['extends']({},this.props,{onGrab:this._onGrab,onDrag:this._onDrag,onDrop:this._onDrop,sourceIndex:this.state.sourceIndex,targetIndex:this.state.targetIndex,updateComponentPosition:this._updateComponentPosition,uploads:this.state.uploads})));},_onGrab:function(j,k){var l=this.state.uploads.findIndex(function(m){return m.id===j;});this.setState({sourceIndex:l,targetIndex:l});},_onDrag:function(j){var k=c('Vector').getElementPosition(c('ReactDOM').findDOMNode(this));j=j.sub(k);this.setState({targetIndex:this._getTargetID(j)});},_onDrop:function(j,k){this._onDrag(j);var l=this.state.sourceIndex,m=this.state.targetIndex;if(l==null||m==null)return;if(l!==m){var n=this.state.uploads;n=n.splice(l,1).splice(m,0,n.get(l));this.setState({uploads:n});k(this.context.composerID,l,m);}this._endDrag();},_endDrag:function(){this.setState({sourceIndex:null,targetIndex:null});},_getTargetID:function(j){var k=this.state.uploads,l=this.state.rtl?function(q,r){return q.right>=r.x;}:function(q,r){return q.left<=r.x;};for(var m=k.size-1;m>=0;m--){var n=k.get(m),o=n.id,p=this._componentsPosition[o];if(l(p,j))return m;}return 0;},_updateComponentPosition:function(j,k,l){var m=new (c('Rect'))(c('ReactDOM').findDOMNode(this));this._componentsPosition[j]={left:k.x-m.l,right:k.x-m.l+l.x};}});f.exports=i;},null);
__d('ReactComposerSlideshowPhotoUploadsContainer.react',['cx','fbt','ix','ReactComposerAttachmentType','ReactComposerConfig','ReactComposerMediaUploadsGridContainer.react','Image.react','immutable','React','Link.react','padNumber'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=c('React').PropTypes,l=136,m=60,n=':',o=0,p=1,q=2,r=c('React').createClass({displayName:'ReactComposerSlideshowPhotoUploadsContainer',propTypes:{config:c('ReactComposerConfig').isRequired,onFileSelected:k.func,uploads:k.instanceOf(c('immutable').List).isRequired},_shouldShowAddMorePhotosButton:function(){var s=this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').MEDIA];if(s.slideshowConfig.maxPhotoNum&&this.props.uploads.size>=s.slideshowConfig.maxPhotoNum)return false;return true;},_formatTime:function(s){var t=Math.floor(s/m),u=s-t*m;return t+n+c('padNumber')(u,2);},_renderTextAboveLine:function(s,t){var u=this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').MEDIA].slideshowConfig;if(s===q){if(t===u.maxPhotoNum){return (c('React').createElement(c('Image.react'),{className:"_33ss",src:j('/images/devsite/glyph/error_red_small.png')}));}else return (c('React').createElement('span',{className:"_33tl"}));}else{var v=Math.round((u.durationInMS+u.transitionInMS)/1000);if(t===u.maxPhotoNum-1){return (c('React').createElement('span',null,this._formatTime(t*v),c('React').createElement('span',{className:"_33tm"+(s===p?' '+"_2103":'')},this._formatTime(u.maxPhotoNum*v))));}else return c('React').createElement('span',null,this._formatTime(t*v));}},_getTimeline:function(){var s=this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').MEDIA].slideshowConfig,t=s.maxPhotoNum-this.props.uploads.size,u=[];this.props.uploads.map(function(x,y){if(y<s.maxPhotoNum)u.push(o);});if(t>0){for(var v=0;v<t;v++)u.push(p);}else if(t<0)for(var w=0;w<-t;w++)u.push(q);return (c('React').createElement('div',{className:"_3rr_"},u.map(function(x,y){return (c('React').createElement('span',{className:(x===o&&y===0?"_33to":'')+(x===o&&y!==0?' '+"_33tp":'')+(x===p&&y===this.props.uploads.size&&this.props.uploads.size<s.maxPhotoNum?' '+"_2104":'')+(x===p&&y!==this.props.uploads.size?' '+"_33tq":'')+(x===q&&y===s.maxPhotoNum?' '+"_33tr":'')+(x===q&&y!==s.maxPhotoNum?' '+"_33ts":''),key:y},this._renderTextAboveLine(x,y)));}.bind(this))));},render:function(){var s=this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').MEDIA];return (c('React').createElement('div',{className:"_3-9a _3-8_"},c('React').createElement(c('ReactComposerMediaUploadsGridContainer.react'),{addMorePhotosConfig:{maxPhotos:s.slideshowConfig.maxPhotoNum},canUploadMultiplePhotos:true,className:"_3rsr",disablePhotoEditing:true,enableFaceboxTagger:false,mediaConfig:s,nuxConfig:this.props.config.nuxConfig,onFilesSelected:this.props.onFilesSelected,scrollableAreaHeight:l,uploads:this.props.uploads},this._getTimeline()),c('React').createElement('div',{className:"_4dwc"},c('React').createElement(c('Image.react'),{className:"_33ss",src:j('images/components/HelpLink/info.png')}),i._("{Learn more} about using slideshows in your posts.",[i.param('Learn more',c('React').createElement(c('Link.react'),{href:'/help/818247301636195',target:'_blank'},i._("Learn more")))]))));}});f.exports=r;},null);
__d('ReactComposerLocationAttachmentActionType',['keyMirror'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();f.exports=c('keyMirror')({LOCATION_ATTACHMENT_ENABLED:null,FETCH_LOCATION_ATTACHMENT:null,SET_LOCATION_MARKUP:null});},null);
__d("XReactComposerLocationAttachmentController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/react_composer\/location\/attachment\/",{composer_id:{type:"String",required:true},location_id:{type:"String",required:true},target_id:{type:"String",required:true}});},null);
__d('ReactComposerLocationAttachmentStore',['ReactComposerAttachmentActionType','ReactComposerAttachmentType','ReactComposerLocationAttachmentActionType','ReactComposerStoreBase','XReactComposerLocationAttachmentController','AsyncRequest'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('ReactComposerStoreBase'));i=h&&h.prototype;function j(){'use strict';var k;i.constructor.call(this,function(){return {isEnabled:false,isFetching:false,markup:null,pendingRequest:null};},function(l){switch(l.type){case c('ReactComposerLocationAttachmentActionType').LOCATION_ATTACHMENT_ENABLED:k&&k.$ReactComposerLocationAttachmentStore1(l);break;case c('ReactComposerLocationAttachmentActionType').FETCH_LOCATION_ATTACHMENT:k&&k.$ReactComposerLocationAttachmentStore2(l);break;case c('ReactComposerLocationAttachmentActionType').SET_LOCATION_MARKUP:k&&k.$ReactComposerLocationAttachmentStore3(l);break;case c('ReactComposerAttachmentActionType').SELECT_ATTACHMENT:k&&k.$ReactComposerLocationAttachmentStore4(l);break;}});k=this;}j.prototype.isEnabled=function(k){'use strict';return this.getComposerData(k).isEnabled;};j.prototype.getMarkup=function(k){'use strict';return this.getComposerData(k).markup;};j.prototype.isFetching=function(k){'use strict';return this.getComposerData(k).isFetching;};j.prototype.$ReactComposerLocationAttachmentStore1=function(k){'use strict';var l=this.validateAction(k,['composerID','enabled']),m=l[0],n=l[1],o=this.getComposerData(m);o.isEnabled=n;};j.prototype.$ReactComposerLocationAttachmentStore2=function(k){'use strict';var l=this.validateAction(k,['composerID','locationID','targetID']),m=l[0],n=l[1],o=l[2];if(!this.isEnabled(m))return;var p=this.getComposerData(m);p.isFetching=true;var q=c('XReactComposerLocationAttachmentController').getURIBuilder().setString('composer_id',m).setString('location_id',n).setString('target_id',o).getURI();p.pendingRequest=new (c('AsyncRequest'))(q).setFinallyHandler(function(){p.isFetching=false;p.pendingRequest=null;this.emitChange(m);}.bind(this));p.pendingRequest.send();this.emitChange(m);};j.prototype.$ReactComposerLocationAttachmentStore3=function(k){'use strict';var l=this.validateAction(k,['composerID','markup']),m=l[0],n=l[1],o=this.getComposerData(m);o.markup=n;this.emitChange(m);};j.prototype.$ReactComposerLocationAttachmentStore4=function(k){'use strict';var l=this.validateAction(k,['composerID','id']),m=l[0],n=l[1];if(n===c('ReactComposerAttachmentType').STATUS)return;var o=this.getComposerData(m);o.markup=null;o.isFetching=false;o.pendingRequest&&o.pendingRequest.abandon();this.emitChange(m);};f.exports=new j();},null);
__d('ReactComposerLocationAttachmentActions',['ReactComposerLocationAttachmentActionType','ReactComposerDispatcher','ReactComposerLocationAttachmentStore'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();c('ReactComposerLocationAttachmentStore');h.prototype.enabled=function(i,j){'use strict';c('ReactComposerDispatcher').dispatch({composerID:i,type:c('ReactComposerLocationAttachmentActionType').LOCATION_ATTACHMENT_ENABLED,enabled:j});};h.prototype.fetchLocationAttachment=function(i,j,k){'use strict';c('ReactComposerDispatcher').dispatch({composerID:i,type:c('ReactComposerLocationAttachmentActionType').FETCH_LOCATION_ATTACHMENT,locationID:j,targetID:k});};h.prototype.setMarkup=function(i,j){'use strict';c('ReactComposerDispatcher').dispatch({composerID:i,type:c('ReactComposerLocationAttachmentActionType').SET_LOCATION_MARKUP,markup:j});};function h(){'use strict';}f.exports=new h();},null);
__d('ReactComposerMinutiaeAttachmentActions',['ReactComposerMinutiaeAttachmentActionType','ReactComposerDispatcher','ReactComposerMinutiaeAttachmentStore'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();c('ReactComposerMinutiaeAttachmentStore');h.prototype.fetchMinutiaeAttachment=function(i,j,k,l,m){'use strict';var n={composerID:i,type:c('ReactComposerMinutiaeAttachmentActionType').FETCH_ATTACHMENT,actionID:j,objectID:k,targetID:l,isTimeline:m};c('ReactComposerDispatcher').dispatch(n);};h.prototype.setMarkup=function(i,j){'use strict';var k={composerID:i,type:c('ReactComposerMinutiaeAttachmentActionType').SET_MARKUP,markup:j};c('ReactComposerDispatcher').dispatch(k);};function h(){'use strict';}f.exports=new h();},null);
__d('ReactComposerAttachmentPreviewContainer.react',['csx','cx','ReactComposerLocationAttachmentActions','ReactComposerLocationAttachmentStore','ReactComposerMinutiaeAttachmentActions','ReactComposerMinutiaeAttachmentStore','ReactComposerPropsAndStoreBasedStateMixin','ReactComposerAttachmentPreview.react','ReactComposerPrefillStore','ReactComposerScrapedAttachmentActions','ReactComposerScrapedAttachmentStore','Arbiter','DOM','Event','ReactComponentWithPureRenderMixin','React','ReactDOM','XUICloseButton.react'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=c('React').PropTypes,k=c('React').createClass({displayName:'ReactComposerAttachmentPreviewContainer',_buttonEvent:undefined,mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactComposerPropsAndStoreBasedStateMixin')(c('ReactComposerScrapedAttachmentStore'),c('ReactComposerMinutiaeAttachmentStore'),c('ReactComposerLocationAttachmentStore'))],propTypes:{markup:j.instanceOf(HTMLElement)},statics:{beforeCalculateInitialState:function(l,m){var n=c('ReactComposerPrefillStore').getAndEraseField(l,'attachmentPreviewData');if(n&&n.scrapedAttachment)c('ReactComposerScrapedAttachmentActions').setScrapedAttachment(l,n.scrapedAttachment.markup,n.scrapedAttachment.attachmentConfig);},calculateState:function(l,m){var n=c('ReactComposerScrapedAttachmentStore').getMarkup(l),o=c('ReactComposerScrapedAttachmentStore').isReadOnly(l),p=c('ReactComposerMinutiaeAttachmentStore').getMarkup(l),q=c('ReactComposerLocationAttachmentStore').getMarkup(l);return {markup:n||p||q,showRemoveButton:n&&o};}},componentDidMount:function(){this._cleanupButtonEvent();this._setButtonEvent();},componentDidUpdate:function(){this._setButtonEvent();},componentWillUnmount:function(){this._cleanupButtonEvent();},render:function(){if(!this.state.markup)return null;var l=this.state.showRemoveButton?this._renderRemoveButton():null;return (c('React').createElement('div',{className:"_2ane"},c('React').createElement(c('ReactComposerAttachmentPreview.react'),{ref:'attachment',markup:this.state.markup}),l));},_renderRemoveButton:function(){return (c('React').createElement('div',{className:"_2anf"},c('React').createElement(c('XUICloseButton.react'),{className:"_2anh",size:'medium',shade:'light',onClick:this._clearAttachment})));},_setButtonEvent:function(){if(this.refs.attachment){var l=c('DOM').scry(c('ReactDOM').findDOMNode(this.refs.attachment),"._9s")[0];if(l)this._buttonEvent=c('Event').listen(l,'click',function(event){this._clearAttachment();this._buttonEvent&&this._buttonEvent.remove();this._buttonEvent=null;}.bind(this));c('Arbiter').inform('react_composer_dom_ready/'+this.context.composerID);}},_clearAttachment:function(){c('ReactComposerScrapedAttachmentActions').setScrapedAttachment(this.context.composerID,null,{});c('ReactComposerMinutiaeAttachmentActions').setMarkup(this.context.composerID,null);c('ReactComposerLocationAttachmentActions').setMarkup(this.context.composerID,null);},_cleanupButtonEvent:function(){this._buttonEvent&&this._buttonEvent.remove();}});f.exports=k;},null);