if (self.CavalryLogger) { CavalryLogger.start_js(["6gCEs"]); } __d("CctaTestIDs",[],(function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={CCTA_VIEWER_UNIT_TESTID:"ccta_viewer_unit_testid",CCTA_TYPE_SELECTOR_TESTID:"ccta_type_selector_testid",CCTA_TYPE_SELECTOR_OPTION_TESTID_PREFIX:"ccta_type_selector_option_testid_",CCTA_CANCEL_BUTTON_TESTID:"ccta_cancel_button_testid",CCTA_SAVE_BUTTON_TESTID:"ccta_save_button_testid",CCTA_WEB_URI_TESTID:"ccta_web_uri_testid",CCTA_EDIT_MENU_TESTID:"ccta_edit_menu_testid",CCTA_SWITCH_TO_APP_BUTTON_TESTID:"ccta_switch_to_app_button_testid",CCTA_ANDROID_APPS_DROPDOWN_TESTID:"ccta_android_apps_dropdown_testid",CCTA_ANDROID_APPS_DROPDOWN_WEBSITE_OPTION_TESTID:"ccta_android_apps_dropdown_website_option_testid",CCTA_ANDROID_APPS_DROPDOWN_APP_OPTION_TESTID:"ccta_android_apps_dropdown_app_option_testid"};}),null); __d("PageCallToActionDestinationTypes",[],(function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={NONE:"NONE",APP_LINK:"APP_LINK",APP_DEEPLINK:"APP_DEEPLINK",CANVAS:"CANVAS",DONATE:"DONATE",FACEBOOK_APP:"FACEBOOK_APP",FB_GEO:"FB_GEO",FIRST_PARTY_LEAD_GEN:"FIRST_PARTY_LEAD_GEN",OFFER:"OFFER",LISTEN:"LISTEN",LEAD_GEN:"LEAD_GEN",MESSENGER:"MESSENGER",NATIVE_VIDEO:"NATIVE_VIDEO",OPEN_TABLE:"OPEN_TABLE",PHONE_CALL:"PHONE_CALL",STORE_FRONT:"STORE_FRONT",WEBSITE:"WEBSITE",EMAIL:"EMAIL",FIRST_PARTY:"FIRST_PARTY",VIDEO_CALL:"VIDEO_CALL"};}),null); __d("PageCallToActionType",[],(function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={BOOK_APPOINTMENT:"BOOK_APPOINTMENT",BOOK_NOW:"BOOK_NOW",CALL_NOW:"CALL_NOW",CHARITY_DONATE:"CHARITY_DONATE",CONTACT_US:"CONTACT_US",DONATE_NOW:"DONATE_NOW",EMAIL:"EMAIL",GET_DIRECTIONS:"GET_DIRECTIONS",GET_OFFER:"GET_OFFER",GET_OFFER_VIEW:"GET_OFFER_VIEW",LEARN_MORE:"LEARN_MORE",REQUEST_APPOINTMENT:"REQUEST_APPOINTMENT",LISTEN:"LISTEN",MAKE_RESERVATION:"MAKE_RESERVATION",MESSAGE:"MESSAGE",OPEN_APP:"OPEN_APP",ORDER_NOW:"ORDER_NOW",PLAY_NOW:"PLAY_NOW",REQUEST_QUOTE:"REQUEST_QUOTE",SHOP_NOW:"SHOP_NOW",SIGN_UP:"SIGN_UP",WATCH_NOW:"WATCH_NOW"};}),null); __d("PageCallToActionUnitType",[],(function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ADMIN:"ADMIN",VIEWER:"VIEWER"};}),null); __d("VideoChainingCaller",[],(function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={INTERNAL:"internal",WWW_FEED_PIVOTS:"www_feed_pivots",WWW_FEED_SNOWLIFT:"www_feed_snowlift",MISC_PHOTO_SET:"misc_photo_set",MOBILE:"mobile",SEARCH:"search",WWW_FEED_RHC:"www_feed_rhc",WWW_PERMALINK:"www_permalink",MY_VIDEO_CHANNELS_ENT_QUERY:"my_video_channels_ent_query",TOP_FOLLOWED_VIDEO_CHANNELS_ENT_QUERY:"top_followed_video_channels_ent_query",BADGE:"badge",PAGINATION:"pagination",SUBTITLE:"subtitle",CHANNEL_VIEW_FROM_UNKNOWN:"channel_view_from_unknown",CHANNEL_VIEW_FROM_NEWSFEED:"channel_view_from_newsfeed",CHANNEL_VIEW_FROM_SEARCH:"channel_view_from_search",CHANNEL_VIEW_FROM_NEWSFEED_PIVOT:"channel_view_from_newsfeed_pivot",NEWSFEED_PIVOT_INLINE:"newsfeed_pivot_inline",CHANNEL_VIEW_FROM_PAGE_CALL_TO_ACTION:"channel_view_from_page_call_to_action",CHANNEL_VIEW_FROM_PAGE_TIMELINE:"channel_view_from_page_timeline",CHANNEL_VIEW_FROM_PAGE_TIMELINE_FEATURED:"channel_view_from_page_timeline_featured",CHANNEL_VIEW_FROM_PAGE_VIDEO_TAB:"channel_view_from_page_video_tab",CHANNEL_VIEW_FROM_USER_TIMELINE:"channel_view_from_user_timeline",CHANNEL_VIEW_FROM_USER_VIDEO_TAB:"channel_view_from_user_video_tab",CHANNEL_VIEW_FROM_GROUP_TIMELINE:"channel_view_from_group_timeline",CHANNEL_VIEW_FROM_GROUP_VIDEO_TAB:"channel_view_from_group_video_tab",CHANNEL_VIEW_FROM_SAVED_STORY:"channel_view_from_saved_story",SAVED_STORY_INLINE:"saved_story_inline",CHANNEL_VIEW_FROM_SHARED_WITH_YOU_STORY:"channel_view_from_shared_with_you_story",SHARED_WITH_YOU_STORY_INLINE:"shared_with_you_story_inline",CHANNEL_VIEW_FROM_LATEST_FROM_YOUR_CHANNELS_STORY:"channel_view_from_latest_from_your_channels_story",LATEST_FROM_YOUR_CHANNELS_STORY_INLINE:"latest_from_your_channels_story_inline",CHANNEL_VIEW_FROM_CHANNEL_PIVOT:"channel_view_from_channel_pivot",CHANNEL_PIVOT_INLINE:"channel_pivot_inine",CHANNEL_VIEW_FROM_CHANNEL_RECOMMENDED_CHANNEL_STORY:"channel_view_from_recommended_channel_story",RECOMMENDED_CHANNEL_STORY_INLINE:"recommended_channel_story_inline",CHANNEL_VIEW_FROM_VIDEO_HOME:"channel_view_from_video_home",VIDEO_HOME_INLINE:"video_home_inline",VIDEO_HOME_CHANNEL_SEE_ALL:"video_home_channel_see_all",CHANNEL_VIEW_FROM_CASTING:"channel_view_from_casting",CONNECTED_TV:"connected_tv",CONNECTED_TV_DISCOVERY:"connected_tv_discovery",CONNECTED_TV_PLAYER:"connected_tv_player",CONNECTED_TV_PROFILE:"connected_tv_profile",VIDEO_HOME_FEED:"video_home_feed",FEED_SURVEY_SWIPE:"feed_survey_swipe",FEED_PIVOTS_INLINE:"feed_pivots_inline",CHANNEL_VIEW_FROM_FEED_PIVOTS:"channel_view_from_feed_pivots",VIDEO_SETS_CACHE_REFRESH:"video_sets_cache_refresh",VIDEO_SETS_CACHE_CHECK:"video_sets_cache_check",DUMMY_STORY_RECOMMENDED_VIDEOS:"dummy_story_recommended_videos",DUMMY_STORY_FRIENDS_ENJOYING:"dummy_story_friends_enjoying",LIVE_EVENT_VIDEO_SET:"live_event_video_set",LIVE_VIDEOS_SET:"live_videos_set",SINGLE_CREATOR_VIDEO_SET:"single_creator_video_set",FRT_TOOL:"frt_tool",DUMMY_STORY_FRIENDS_ENJOYING_NOW:"dummy_story_friends_enjoying_now",DUMMY_STORY_DUMMY_ACTION:"dummy_story_dummy_action",OCULUS_VIDEO:"oculus_video",TRENDING_DEMOGRAPHICS_LIVE:"trending_demographics_live",LIVE_MAP:"live_map",UNCONNECTED_LIVE_VIDEO:"unconnected_live_video",PROFILE_VIDEO_GALLERY:"profile_video_gallery",CHANNEL_VIEW_FROM_PLAYLIST:"channel_view_from_playlist",OCULUS_SOCIAL_HUB:"oculus_social_hub"};}),null); __d('BrowseTopFiltersNone',['cx','CSS'],(function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={init:function j(){c('CSS').removeClass(document.body,"_4dik");}};f.exports=i;}),null); __d('XUIDialogConfirmButton.react',['fbt','React','XUIDialogButton.react'],(function a(b,c,d,e,f,g,h){var i,j;if(c.__markCompiled)c.__markCompiled();i=babelHelpers.inherits(k,c('React').Component);j=i&&i.prototype;k.prototype.render=function(){'use strict';return (c('React').createElement(c('XUIDialogButton.react'),babelHelpers['extends']({},this.props,{action:'confirm',label:h._("Confirm")})));};function k(){'use strict';i.apply(this,arguments);}f.exports=k;}),null); __d('PagesButton.react',['cx','AbstractButton.react','React','joinClasses'],(function a(b,c,d,e,f,g,h){var i,j;if(c.__markCompiled)c.__markCompiled();var k=c('React').PropTypes,l='accentblue',m='medium';i=babelHelpers.inherits(n,c('React').Component);j=i&&i.prototype;n.getButtonSize=function(o){'use strict';return o.size||m;};n.getButtonColor=function(o){'use strict';return o.color||l;};n.prototype.render=function(){'use strict';var o=n.getButtonColor(this.props),p=n.getButtonSize(this.props),q=this.props.disabled,r=this.props.fill,s=c('joinClasses')("_2-sm"+(p==='small'?' '+"_xa8":'')+(p==='medium'?' '+"_xa9":'')+(p==='large'?' '+"_xaf":'')+(!q&&o==='accentblue'?' '+"_xag":'')+(!q&&o==='fbblue'?' '+"_xah":'')+(!q&&o==='gray'?' '+"_42q9":'')+(!q&&o==='green'?' '+"_xai":'')+(q?' '+"_xaj":'')+(r?' '+"_xak":'')+(!r?' '+"_xal":'')+(this.props.slim?' '+"_4t_j":''));return (c('React').createElement(c('AbstractButton.react'),babelHelpers['extends']({},this.props,{className:c('joinClasses')(this.props.className,s)})));};function n(){'use strict';i.apply(this,arguments);}n.propTypes={color:k.oneOf(['accentblue','fbblue','green']),size:k.oneOf(['small','medium','large']),disabled:k.bool,fill:k.bool,slim:k.bool};n.defaultProps={color:l,size:m,disabled:false,fill:false,slim:false};f.exports=n;}),null); __d('CustomCTALogger',['Banzai'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={logVital:function i(j){c('Banzai').post('page_custom_cta_logger',j,c('Banzai').VITAL);},log:function i(j){c('Banzai').post('page_custom_cta_logger',j);}};f.exports=h;}),null); __d('PageCallToActionButton.react',['cx','Image.react','PageCallToActionRef','PagesButton.react','React','Set','XUIButton.react','joinClasses'],(function a(b,c,d,e,f,g,h){'use strict';var i,j;if(c.__markCompiled)c.__markCompiled();i=babelHelpers.inherits(k,c('React').Component);j=i&&i.prototype;k.prototype.render=function(){var l=this.props.className,m=this.props.icon,n=this.props.label,o=this.props.testID;if(!n)return null;if(this.$PageCallToActionButton1())return (c('React').createElement('div',{className:l,'data-hovercard':this.props.hovercardURL,'data-testid':o,onClick:this.props.onClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,ref:this.props.ref},n));if(this.$PageCallToActionButton2())return (c('React').createElement(c('PagesButton.react'),{className:l,color:this.props.color,'data-hovercard':this.props.hovercardURL,'data-testid':o,fill:true,label:n,onClick:this.props.onClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,ref:this.props.ref,slim:this.props.surface===c('PageCallToActionRef').PAGES_ACTIONS_UNIT_SURFACE}));if(this.$PageCallToActionButton3()){l=c('joinClasses')("_4jy3 _51sy",l);}else l=c('joinClasses')("_4jy4 _9c6",l);if(this.props.surface===c('PageCallToActionRef').UNOWNED_PAGE_COVER){l=c('joinClasses')("_2hqv",l);return (c('React').createElement(c('XUIButton.react'),{use:'confirm',className:l,'data-hovercard':this.props.hovercardURL,'data-testid':o,label:n,onClick:this.props.onClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,ref:this.props.ref}));}return (c('React').createElement(c('XUIButton.react'),{className:l,'data-hovercard':this.props.hovercardURL,'data-testid':o,image:m,label:n,onClick:this.props.onClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,ref:this.props.ref}));};k.prototype.$PageCallToActionButton3=function(){return (new (c('Set'))([c('PageCallToActionRef').FEED_STORY_SEARCH,c('PageCallToActionRef').HOVER_CARD_SURFACE,c('PageCallToActionRef').PAGE_PLUGIN_SURFACE,c('PageCallToActionRef').SEARCH_ENTITY_CARD]).has(this.props.surface));};k.prototype.$PageCallToActionButton1=function(){return (new (c('Set'))([c('PageCallToActionRef').ADMIN_MENU_TEST_LINK]).has(this.props.surface));};k.prototype.$PageCallToActionButton2=function(){return (new (c('Set'))([c('PageCallToActionRef').PAGE_PRESENCE_LHS_CARD,c('PageCallToActionRef').PAGES_ACTIONS_UNIT_SURFACE,c('PageCallToActionRef').DYNAMIC_HOVER_CARD_SURFACE]).has(this.props.surface));};function k(){i.apply(this,arguments);}f.exports=k;}),null); __d('PageCallToActionButtonActionTypes',['keyMirrorRecursive'],(function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('keyMirrorRecursive')({DISABLE_AUTO_OPEN:'',SET_LOADING_MODE:'',UNIT_DATA_LOADED:''});f.exports=h;}),null); __d('PageCallToActionDispatcher',['ExplicitRegistrationDispatcher'],(function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();f.exports=new (c('ExplicitRegistrationDispatcher'))({strict:true});}),null); __d('PageCallToActionButtonActions',['PageCallToActionButtonActionTypes','PageCallToActionDispatcher'],(function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={disableAutoOpen:function i(j){c('PageCallToActionDispatcher').dispatch({type:c('PageCallToActionButtonActionTypes').DISABLE_AUTO_OPEN,ctaID:j});},setLoadingMode:function i(j,k){c('PageCallToActionDispatcher').dispatch({type:c('PageCallToActionButtonActionTypes').SET_LOADING_MODE,ctaID:j,data:{loading:k}});},setUnitData:function i(j,k){c('PageCallToActionDispatcher').dispatch({type:c('PageCallToActionButtonActionTypes').UNIT_DATA_LOADED,ctaID:j,data:babelHelpers['extends']({},k)});}};f.exports=h;}),null); __d('PageCallToActionIcon',['ix','PageCallToActionType','fbglyph'],(function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i={SMALL:'16',MEDIUM:'20'},j={get:function k(l){var m=arguments.length<=1||arguments[1]===undefined?i.SMALL:arguments[1];switch(l){case c('PageCallToActionType').BOOK_APPOINTMENT:if(m===i.MEDIUM)return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/event-add_20_bluegray-40.png");return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/event-add_16_bluegray-40.png");case c('PageCallToActionType').BOOK_NOW:if(m===i.MEDIUM)return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/calendar_20_bluegray-40.png");return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/calendar_16_bluegray-40.png");case c('PageCallToActionType').CALL_NOW:if(m===i.MEDIUM)return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/phone_20_bluegray-40.png");return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/phone_16_bluegray-40.png");case c('PageCallToActionType').CONTACT_US:if(m===i.MEDIUM)return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/envelope_20_bluegray-40.png");return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/envelope_16_bluegray-40.png");case c('PageCallToActionType').DONATE_NOW:if(m===i.MEDIUM)return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/heart_20_bluegray-40.png");return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/heart_16_bluegray-40.png");case c('PageCallToActionType').EMAIL:if(m===i.MEDIUM)return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/envelope_20_bluegray-40.png");return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/envelope_16_bluegray-40.png");case c('PageCallToActionType').GET_DIRECTIONS:if(m===i.MEDIUM)return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/directions_20_bluegray-40.png");return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/directions_16_bluegray-40.png");case c('PageCallToActionType').GET_OFFER:if(m===i.MEDIUM)return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/ticket_20_bluegray-40.png");return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/ticket_16_bluegray-40.png");case c('PageCallToActionType').LEARN_MORE:if(m===i.MEDIUM)return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/info-solid_20_bluegray-40.png");return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/info-solid_16_bluegray-40.png");case c('PageCallToActionType').LISTEN:if(m===i.MEDIUM)return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/music_20_bluegray-40.png");return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/music_16_bluegray-40.png");case c('PageCallToActionType').MAKE_RESERVATION:if(m===i.MEDIUM)return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/calendar_20_bluegray-40.png");return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/calendar_16_bluegray-40.png");case c('PageCallToActionType').MESSAGE:if(m===i.MEDIUM)return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/comment_20_bluegray-40.png");return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/comment_16_bluegray-40.png");case c('PageCallToActionType').OPEN_APP:if(m===i.MEDIUM)return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/apps_20_bluegray-40.png");return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/apps_16_bluegray-40.png");case c('PageCallToActionType').ORDER_NOW:if(m===i.MEDIUM)return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/calendar_20_bluegray-40.png");return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/calendar_16_bluegray-40.png");case c('PageCallToActionType').PLAY_NOW:if(m===i.MEDIUM)return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/games_20_bluegray-40.png");return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/games_16_bluegray-40.png");case c('PageCallToActionType').REQUEST_QUOTE:if(m===i.MEDIUM)return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/price-tag_20_bluegray-40.png");return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/price-tag_16_bluegray-40.png");case c('PageCallToActionType').REQUEST_APPOINTMENT:if(m===i.MEDIUM)return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/calendar_20_bluegray-40.png");return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/calendar_16_bluegray-40.png");case c('PageCallToActionType').SHOP_NOW:if(m===i.MEDIUM)return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/shopping-bag_20_bluegray-40.png");return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/shopping-bag_16_bluegray-40.png");case c('PageCallToActionType').SIGN_UP:if(m===i.MEDIUM)return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/pencil_20_bluegray-40.png");return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/pencil_16_bluegray-40.png");case c('PageCallToActionType').WATCH_NOW:if(m===i.MEDIUM)return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/video_20_bluegray-40.png");return h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/video_16_bluegray-40.png");}return null;}};f.exports=j;}),null); __d('PageCallToActionHovercard.react',['cx','fbt','CustomCTALogger','Image.react','Layout.react','Link.react','PageCallToActionRef','PagesEventType','React'],(function a(b,c,d,e,f,g,h,i){'use strict';var j,k;if(c.__markCompiled)c.__markCompiled();var l=c('Layout.react').Column,m=c('Layout.react').FillColumn;j=babelHelpers.inherits(n,c('React').Component);k=j&&j.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s=0){this.onButtonClick();c('setImmediate')(function(){c('PageCallToActionButtonActions').disableAutoOpen(this.props.cctaID);}.bind(this));}c('CustomCTALogger').log({ccta_id:this.props.cctaID,ccta_type:this.props.callToActionType,event_type:c('PagesEventType').CUSTOM_CTA_SHOW_VIEWER_UNIT,page_id:this.props.pageID,surface:this.props.surface,target_url:this.props.url,story_id:this.props.storyID});},onButtonClick:function l(){this._onClick();var m=c('PagesEventType').CUSTOM_CTA_CLICK_VIEWER_UNIT;if(this.props.hovercardSpecs&&this.props.hovercardSpecs.exp==='click'&&this.props.surface!==c('PageCallToActionRef').CTA_HOVER_CARD_SURFACE)m=c('PagesEventType').CUSTOM_CTA_HOVER_VIEWER_UNIT;c('CustomCTALogger').log({ccta_id:this.props.cctaID,ccta_type:this.props.callToActionType,event_type:m,page_id:this.props.pageID,surface:this.props.surface,target_url:this.props.url,ref:this.props.referrer,story_id:this.props.storyID});},getViewerButtonRef:function l(){if(!this.props.refButton){return this.refs.CTAViewerButton;}else return this.props.refButton;},render:function l(){var m=this.props.callToActionType,n=this.props.buttonLabel?this.props.buttonLabel:m?i[m]:null;if(!n)return null;var o=this.props.buttonIcon?this.props.buttonIcon:m?c('PageCallToActionIcon').get(m):null;return (c('React').createElement(c('PageCallToActionButton.react'),{className:this.props.className,icon:c('React').createElement(c('Image.react'),{src:o}),label:n,onClick:this.onButtonClick,onMouseEnter:this._onMouseEnter,onMouseLeave:this._onMouseLeave,ref:'CTAViewerButton',surface:this.props.surface}));}});f.exports=k;}),null); __d('PageCallToActionButtonDataStore',['PageCallToActionButtonActionTypes','PageCallToActionDispatcher','FluxMapStore','immutable'],(function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('FluxMapStore'));i=h&&h.prototype;function j(){i.constructor.call(this,c('PageCallToActionDispatcher'));}j.prototype.reduce=function(k,l){var m=l.ctaID;switch(l.type){case c('PageCallToActionButtonActionTypes').DISABLE_AUTO_OPEN:if(!this.has(m))break;var n=this.at(m),o=n.unitData;if(!o)break;o.shouldAutoOpen=false;n.unitData=o;return k.set(m,n);case c('PageCallToActionButtonActionTypes').SET_LOADING_MODE:var p={loading:l.data.loading,unitData:null};if(this.has(m)){p=this.at(m);p.loading=false;}return k.set(m,p);case c('PageCallToActionButtonActionTypes').UNIT_DATA_LOADED:return k.set(m,babelHelpers['extends']({},l.data));default:break;}return k;};f.exports=new j(c('PageCallToActionDispatcher'));}),null); __d('CctaBaseDataLoader',['Promise','AsyncRequest','URI'],(function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();h.prototype.__getPromise=function(i,j){return new (c('Promise'))(function(k,l){new (c('AsyncRequest'))().setURI(i).setData(j).setHandler(function(m){if(m&&m.payload){k(m.payload);}else l({error:'no payload in response',description:'no payload in response',summary:'no payload in response'});}).setErrorHandler(function(m){return l({error:m.error,description:m.errorDescription,summary:m.errorSummary});}).send();});};function h(){}f.exports=h;}),null); __d("XPagesCallToActionFetchDialogDataController",["XController"],(function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/pages\/call_to_action\/fetch_dialog_data\/",{id:{type:"FBID",required:true},surface:{type:"Enum",required:true,enumType:1},unit_type:{type:"Enum",enumType:1},cta_type:{type:"String"}});}),null); __d('PageCallToActionDialogDataLoader',['CctaBaseDataLoader','XPagesCallToActionFetchDialogDataController'],(function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('CctaBaseDataLoader'));i=h&&h.prototype;j.prototype.promiseData=function(l,m,n,o){return this.__getPromise(c('XPagesCallToActionFetchDialogDataController').getURIBuilder().setString('cta_type',o).setFBID('id',l).setEnum('surface',n).setEnum('unit_type',m).getURI(),{});};function j(){h.apply(this,arguments);}var k=new j();f.exports=k;}),null); __d('PageCallToActionUnitBase.react',['Image.react','PageCallToActionButton.react','PageCallToActionIcon','CustomCallToActionTypes','React','XUISpinner.react'],(function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();var j=c('CustomCallToActionTypes').LABELS;h=babelHelpers.inherits(k,c('React').Component);i=h&&h.prototype;k.prototype.componentDidMount=function(){if(this.needToFetchData())this.fetchData();};k.prototype.getCTAOrPageID=function(){return (this.state.cta&&this.state.cta.id?this.state.cta.id:this.state.page&&this.state.page.id);};k.prototype.getTestID=function(){return null;};k.prototype.calculateButtonData=function(l){var m=l.cta&&l.cta.type,n=l.cta&&l.cta.label;if(!m)return null;var o=m&&c('PageCallToActionIcon').get(m);if(o)o=c('React').createElement(c('Image.react'),{src:o});var p=n||m&&j[m];if(!p)return null;return {className:null,color:l.cta&&l.cta.type&&!l.cta.id?'fbblue':null,icon:o,label:p,onClick:this.onClick.bind(this),onMouseEnter:this.onMouseEnter.bind(this),onMouseLeave:this.onMouseLeave.bind(this),surface:l.surface,testID:this.getTestID()};};k.prototype.onClick=function(){};k.prototype.onMouseEnter=function(){if(this.needToFetchData())this.fetchData();};k.prototype.onMouseLeave=function(){};k.prototype.renderButton=function(){var l=this.calculateButtonData(this.props);return (c('React').createElement(c('PageCallToActionButton.react'),l));};k.prototype.renderUnit=function(){return null;};k.prototype.render=function(){var l=this.renderUnit();if(!l)l=this.renderButton();if(!l&&this.state.loading)l=c('React').createElement(c('XUISpinner.react'),null);return l;};function k(){h.apply(this,arguments);}f.exports=k;}),null); __d('PageCTAViewerUnitContainer.react',['PageCallToActionButtonActions','PageCallToActionButtonDataStore','CctaTestIDs','CustomCTAViewerUnit.react','PageCallToActionDispatcher','FluxContainer','PageCallToActionDialogDataLoader','PageCallToActionUnitBase.react','PageCallToActionUnitType','React'],(function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('PageCallToActionUnitBase.react'));i=h&&h.prototype;j.getStores=function(){return [c('PageCallToActionButtonDataStore')];};j.calculateState=function(k,l){if(!k)k={cta:l.cta,loading:false,page:l.page,surface:l.surface,unitData:l.unitData};var m=l.cta;if(!m)return k;var n=m.id;if(!n||!c('PageCallToActionButtonDataStore').has(n))return k;var o=c('PageCallToActionButtonDataStore').at(n);if(o.unitData)k.unitData=o.unitData;return k;};j.prototype.componentWillMount=function(){c('PageCallToActionDispatcher').explicitlyRegisterStores([c('PageCallToActionButtonDataStore')]);};j.prototype.fetchData=function(){var k=this.getCTAOrPageID();if(!k||this.state.loading||this.state.unitData)return;c('PageCallToActionButtonActions').setLoadingMode(k,true);c('PageCallToActionDialogDataLoader').promiseData(k,c('PageCallToActionUnitType').VIEWER,this.props.surface).done(function(l){c('PageCallToActionButtonActions').setUnitData(k,{loading:false,unitData:babelHelpers['extends']({},l)});},function(l){c('PageCallToActionButtonActions').setLoadingMode(k,false);});};j.prototype.needToFetchData=function(){return !this.state.unitData;};j.prototype.renderUnit=function(){if(!this.state.unitData)return null;return (c('React').createElement(c('CustomCTAViewerUnit.react'),babelHelpers['extends']({},this.props.extraProps,this.state.unitData,{surface:this.props.surface})));};j.prototype.getTestID=function(){return c('CctaTestIDs').CCTA_VIEWER_UNIT_TESTID;};function j(){h.apply(this,arguments);}f.exports=c('FluxContainer').create(j,{withProps:true});}),null);