/*!CK:1223643050!*//*1459219644,*/

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

__d("ExpirationType",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={NONE:0,DELETE:1,HIDE:2,ONLY_ME:3};},null);
__d("GraphInstagramUserFields",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={FOLLOW_COUNT:"follow_count",FOLLOWED_BY_COUNT:"followed_by_count",HAS_PROFILE_PIC:"has_profile_picture",ID:"id",IS_PRIVATE:"is_private",IS_PUBLISHED:"is_published",LOGGING_START_DATE:"logging_start_date",MEDIA_COUNT:"media_count",PROFILE_PIC:"profile_pic",USERNAME:"username"};},null);
__d("PageAdminTypes",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={MANAGER:"MANAGER",CONTENT_CREATOR:"CONTENT_CREATOR",MODERATOR:"MODERATOR",ADVERTISER:"ADVERTISER",INSIGHTS_ANALYST:"INSIGHTS_ANALYST"};},null);
__d("TimelineInfoReviewParam",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ACTION:"action",ENTITY_ID:"ent",EXISTING_ERROR:"error",ITEM_TYPE:"type",ITEM_TOKEN:"i_token",MULTI_CHOICE_OPTION:"option",QUERY:"query",REPLACE_ID:"replace_id",QUESTION_SESSION:"session",QUESTION_TOKEN:"token",CURSOR:"cursor",DATE:"date",DAY:"day",DISPLAY_NAME:"is_display_name",END_DAY:"end_day",END_MONTH:"end_month",END_YEAR:"end_year",ENTITY_IDS:"ents",ENTITY_IDS_TYPEAHEAD:"ents_ta",GENERIC_TEXT:"generic_text",HUB_ID:"hub_id",LIKED:"liked",LOCATION_ID:"location_id",MLE_TYPES:"valid_mle_types",TITLE:"title",MONTH:"month",NO_VALID_ANSWER_ID:"no_answer",PREVIOUS_PROGRESS:"prev_prog",START_DAY:"start_day",START_MONTH:"start_month",START_YEAR:"start_year",TEXT:"text",TEXT_TYPE:"text_type",YEAR:"year",LOCATION:"location",RENDER_TIME:"render_t",REQUEST_ID:"request",RETHROW_ERRORS:"rethrow_errors",OTHER_ID:"other_id",FIELD_TYPE:"field_type",BIRTHDAY:"birthday",CITY_ID:"city_id",COLLEGE_ID:"college_id",COLLEGE_TEXT:"college_text",CONTAINER_ID:"container_id",COUNTRY_CODE:"country",EMAIL_ADDRESS:"email",EMAIL_FBID:"email_fbid",EMAIL_FBIDS:"email_fbids",ENTITY_ID_TYPEAHEAD:"ent_ta",FAMILY_ANNIVERSARIES:"family_anniversaries",FAMILY_ANNIVERSARIES_IN_MS:"family_anniversaries_in_ms",FAMILY_ANNIVERSARY_DAYS:"family_anniversary_days",FAMILY_ANNIVERSARY_MONTHS:"family_anniversary_months",FAMILY_ANNIVERSARY_YEARS:"family_anniversary_years",FAMILY_BIRTHDAYS:"family_birthdays",FAMILY_BIRTHDAY_DAYS:"family_birthday_days",FAMILY_BIRTHDAY_MONTHS:"family_birthday_months",FAMILY_BIRTHDAY_YEARS:"family_birthday_years",FAMILY_BIRTHDAYS_IN_MS:"family_birthdays_in_ms",FAMILY_IDS:"family_ids",FAMILY_RELATIONS:"family_relations",FAMILY_TEXT_NAMES:"family_text_names",GRAD_SCHOOL_ID:"grad_id",GRAD_SCHOOL_TEXT:"grad_text",HIGH_SCHOOL_ID:"hs_id",HIGH_SCHOOL_TEXT:"hs_text",NAME_PRONUNCIATION_FIRSTNAME_RADIO:"first_radio",NAME_PRONUNCIATION_LASTNAME_RADIO:"last_radio",NAME_PRONUNCIATION_FIRSTNAME_CUSTOM:"first_input",NAME_PRONUNCIATION_LASTNAME_CUSTOM:"last_input",NEIGHBORHOOD:"neighborhood",ONLY_SHARE_WITH:"only_share",PHONE_FBIDS:"phone_fbids",PHONE_FBID:"phone_fbid",PHONE_NUMBER:"phone",PHONE_TYPE:"phone_type",POSTAL_CODE:"postal_code",PRIVACY_X:"priv_x",STREET_ADDRESS:"address",USE_EXISTING:"existing",SAVE:"save",SKIP:"skip"};},null);
__d('ProgressiveDatepickerMixin',['DateConsts','TimelineInfoReviewParam','React'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i={propTypes:{descendingYears:h.bool,initialDay:function(j,k,l){var m=j.initialYear,n=j.initialMonth,o=j.initialDay;if(!o)return;var p=n&&m&&o<=c('DateConsts').getDaysInMonth(m,n);if(!p)return new Error('A valid initialYear and initialMonth must be provided if '+'initialDay is set.');return h.number.call(this,j,k,l);},initialMonth:function(j,k,l){if(j.initialMonth&&!j.initialYear)return new Error('A valid initialYear must be provided if initialMonth is set.');return h.number.call(this,j,k,l);},initialYear:h.number,inputPrefix:h.string,maxTime:h.number.isRequired,minTime:h.number.isRequired,minTimeUnit:h.oneOf(['day','month','year']),onDateChange:h.func},getDefaultProps:function(){return {descendingYears:false,initialYear:0,initialMonth:0,initialDay:0,inputPrefix:'',minTimeUnit:'year'};},getInitialState:function(){return {day:this.props.initialDay,month:this.props.initialMonth,year:this.props.initialYear};},clearDate:function(){this.setState(this.getInitialState());},_getDayName:function(){return this.props.inputPrefix===''?c('TimelineInfoReviewParam').DAY:this.props.inputPrefix+'_'+c('TimelineInfoReviewParam').DAY;},_getMonthName:function(){return this.props.inputPrefix===''?c('TimelineInfoReviewParam').MONTH:this.props.inputPrefix+'_'+c('TimelineInfoReviewParam').MONTH;},_getYearName:function(){return this.props.inputPrefix===''?c('TimelineInfoReviewParam').YEAR:this.props.inputPrefix+'_'+c('TimelineInfoReviewParam').YEAR;},_getMinDate:function(){return new Date(this.props.minTime*c('DateConsts').MS_PER_SEC);},_getMinYear:function(){return this._getMinDate().getFullYear();},_getMinMonth:function(){return this._getMinDate().getMonth()+1;},_getMinDay:function(){return this._getMinDate().getDate();},_isMinYear:function(){return this.state.year===this._getMinYear();},_isMinYearAndMonth:function(){return this._isMinYear()&&this.state.month===this._getMinMonth();},_getMaxDate:function(){return new Date(this.props.maxTime*c('DateConsts').MS_PER_SEC);},_getMaxYear:function(){return this._getMaxDate().getFullYear();},_getMaxMonth:function(){return this._getMaxDate().getMonth()+1;},_getMaxDay:function(){return this._getMaxDate().getDate();},_isMaxYear:function(){return this.state.year===this._getMaxYear();},_isMaxYearAndMonth:function(){return this._isMaxYear()&&this.state.month===this._getMaxMonth();},_getCurrentDate:function(){return new Date(this.state.year,!this.state.month?0:this.state.month-1,this.state.year&&!this.state.day?1:this.state.day).getTime();},getCurrentDateInSeconds:function(){return this._getCurrentDate()/c('DateConsts').MS_PER_SEC;},getMaxPossibleDateInSeconds:function(){var j={year:this.state.year,month:this.state.month,day:this.state.day};if(!j.day)if(j.month){j.month+=1;}else if(j.year){j.year+=1;j.day=1;}var k=new Date(j.year,!j.month?0:j.month-1,j.day);return k.getTime()/c('DateConsts').MS_PER_SEC;},_onYearChange:function(event){var j=event.target?event.target.value:event.value;this._onDateChange({year:parseInt(j,10),month:this.state.month,day:this.state.day});},_onMonthChange:function(event){var j=event.target?event.target.value:event.value;this._onDateChange({year:this.state.year,month:parseInt(j,10),day:this.state.day});},_onDayChange:function(event){var j=event.target?event.target.value:event.value;this._onDateChange({year:this.state.year,month:this.state.month,day:parseInt(j,10)});},_onDateChange:function(j){var k=this._getValidDate(j);this.setState(k,function(){this.props.onDateChange&&this.props.onDateChange(k);}.bind(this));},_getValidDate:function(j,k,l){if(typeof k==='undefined')k=new Date(this.props.minTime*c('DateConsts').MS_PER_SEC);if(typeof l==='undefined')l=new Date(this.props.maxTime*c('DateConsts').MS_PER_SEC);var m=j.year,n=j.month,o=j.day;if(m){if(m<=k.getFullYear()){m=k.getFullYear();if(n&&n<=k.getMonth()+1){n=k.getMonth()+1;if(o&&o<k.getDate())o=k.getDate();}}else if(m>=l.getFullYear()){m=l.getFullYear();if(n&&n>=l.getMonth()+1){n=l.getMonth()+1;if(o&&o>l.getDate())o=l.getDate();}}if(n){if(o&&o>c('DateConsts').getDaysInMonth(m,n))o=c('DateConsts').getDaysInMonth(m,n);}else o=0;}else n=o=0;return {year:m,month:n,day:o};},componentWillReceiveProps:function(j){var k=new Date(j.minTime*c('DateConsts').MS_PER_SEC),l=new Date(j.maxTime*c('DateConsts').MS_PER_SEC);this.setState(this._getValidDate(this.state,k,l));}};f.exports=i;},null);
__d('XUIProgressiveDatepicker.react',['cx','DateConsts','DateStrings','ProgressiveDatepickerMixin','React','InlineBlock.react','XUISelector.react'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('XUISelector.react').Option,j=c('React').createClass({displayName:'TimelineProgressiveDatepicker',mixins:[c('ProgressiveDatepickerMixin')],render:function(){var k=[];for(var l=this._getMinYear();l<=this._getMaxYear();l++){var m=c('React').createElement(i,{key:l,title:l,value:l},l);this.props.descendingYears?k.unshift(m):k.push(m);}k.unshift(c('React').createElement(i,{key:0,title:c('DateStrings').getYearLabel(),value:0},c('DateStrings').getYearLabel()));var n=null;if(this.state.year||this.props.minTimeUnit!=='year'){var o=[c('React').createElement(i,{key:0,title:c('DateStrings').getMonthLabel(),value:0},c('DateStrings').getMonthLabel())],p=1,q=c('DateConsts').MONTHS_PER_YEAR;if(this._isMinYear())p=this._getMinMonth();if(this._isMaxYear())q=this._getMaxMonth();for(var r=p;r<=q;r++){var s=c('DateStrings').getMonthName(r);o.push(c('React').createElement(i,{key:r,title:s,value:r},s));}n=c('React').createElement(c('XUISelector.react'),{className:"_5vu1",'data-testid':'ProgressiveDatepicker/monthSelector',disabled:!this.state.year,maxheight:this.props.menuMaxHeight,name:this._getMonthName(),onChange:this._onMonthChange,value:this.state.month},o);}var t=null;if(this.state.month||this.props.minTimeUnit==='day'){var u=[c('React').createElement(i,{key:0,title:c('DateStrings').getDayLabel(),value:0},c('DateStrings').getDayLabel())],v=1,w=c('DateConsts').getDaysInMonth(this.state.year,this.state.month);if(this._isMinYearAndMonth())v=this._getMinDay();if(this._isMaxYearAndMonth())w=this._getMaxDay();for(var x=v;x<=w;x++)u.push(c('React').createElement(i,{key:x,title:x,value:x},x));t=c('React').createElement(c('XUISelector.react'),{className:"_5vu1",'data-testid':'ProgressiveDatepicker/daySelector',disabled:!this.state.month,maxheight:this.props.menuMaxHeight,name:this._getDayName(),onChange:this._onDayChange,value:this.state.day},u);}return (c('React').createElement(c('InlineBlock.react'),null,c('React').createElement(c('XUISelector.react'),{'data-testid':'ProgressiveDatepicker/yearSelector',maxheight:this.props.menuMaxHeight,name:this._getYearName(),onChange:this._onYearChange,value:this.state.year},k),n,t));}});f.exports=j;},null);
__d('PostBackdateDialog.react',['cx','fbt','Arbiter','InputLabel.react','React','ReactLayeredComponentMixin','XUICheckboxInput.react','XUIDialog.react','XUIDialogBody.react','XUIDialogFooter.react','XUIDialogTitle.react','XUIDialogButton.react','XUIGrayText.react','XUIProgressiveDatepicker.react'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=c('React').PropTypes,k=250,l=c('React').createClass({displayName:'PostBackdateDialog',mixins:[c('ReactLayeredComponentMixin')],propTypes:{minTime:j.number.isRequired,maxTime:j.number.isRequired,onSubmit:j.func.isRequired},getInitialState:function(){return {shown:false,hideFromNewsFeed:false,year:null,month:null,day:null};},render:function(){return (c('React').createElement('div',null));},renderLayers:function(){return (c('React').createElement(c('XUIDialog.react'),{width:343,shown:this.state.shown},c('React').createElement(c('XUIDialogTitle.react'),null,i._("Backdate Post")),c('React').createElement(c('XUIDialogBody.react'),null,c('React').createElement('div',{className:"_5pk"},c('React').createElement(c('XUIGrayText.react'),{shade:'light',size:'small',display:'block'},i._("Backdate your post so it appears in the past on your Page Timeline. Backdated posts publish immediately.")),c('React').createElement('div',{className:"_3-8x"},c('React').createElement(c('XUIProgressiveDatepicker.react'),{className:"_3-8x",maxTime:this.props.maxTime,menuMaxHeight:k,minTime:this.props.minTime,minTimeUnit:'day',onDateChange:this._onDateChange})),c('React').createElement(c('InputLabel.react'),{className:"_3-8x"},c('React').createElement(c('XUICheckboxInput.react'),{checked:this.state.hideFromNewsFeed,onChange:this._hideFromNewsFeedChanged}),c('React').createElement('label',null,c('React').createElement(c('XUIGrayText.react'),{shade:'light',size:'small',weight:'normal'},i._("Hide from News Feed")))))),c('React').createElement(c('XUIDialogFooter.react'),null,c('React').createElement(c('XUIDialogButton.react'),{action:'cancel',label:'Cancel',onClick:this._onCancelClick}),c('React').createElement(c('XUIDialogButton.react'),{action:'confirm',disabled:!this.state.year||!this.state.month||!this.state.day,label:i._("Backdate"),onClick:this._onSubmitClick,use:'confirm'}))));},show:function(){this.setState({shown:true});},_onCancelClick:function(){c('Arbiter').inform('PAB/defaultToPost');},_onSubmitClick:function(){this.props.onSubmit(this.state.year,this.state.month,this.state.day,this.state.hideFromNewsFeed);this.setState({shown:false});},_onDateChange:function(m){this.setState({year:m.year,month:m.month,day:m.day});},_hideFromNewsFeedChanged:function(event){this.setState({hideFromNewsFeed:event.target.checked});}});f.exports=l;},null);