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

__d("AdsBlueTour.react",["cx","fbt","LeftRight.react","React","XUIButton.react","emptyFunction"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes,m=-1;j=babelHelpers.inherits(n,c("React").PureComponent);k=j&&j.prototype;function n(){__p&&__p();var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=k.constructor).call.apply(o,[this].concat(r)),this.$AdsBlueTour1=function(){return this.props.step===0}.bind(this),this.$AdsBlueTour2=function(){return this.props.step===m}.bind(this),this.$AdsBlueTour3=function(){return this.props.step===this.props.steps.length-1}.bind(this),this.$AdsBlueTour4=function(){this.props.onStart();this.props.onStep(0)}.bind(this),this.$AdsBlueTour5=function(){var t=[];if(!this.$AdsBlueTour2())for(var u=0;u<this.props.steps.length;++u)t.push(c("React").createElement("span",{className:"_4a-k"+(u===this.props.step?" _4a-l":""),key:"bullet"+u},"\u25cf"));return t}.bind(this),this.$AdsBlueTour6=function(){__p&&__p();var t=[];if(this.$AdsBlueTour2())t.push(c("React").createElement(c("XUIButton.react"),{className:"_4a-j",key:"take-tour",label:i._("Take Tour"),size:"large",onClick:this.$AdsBlueTour4}));else{var u=false,v=function(){return this.props.onStep(this.props.step-1)}.bind(this);if(this.$AdsBlueTour1()){u=true;v=null}if(!u)t.push(c("React").createElement(c("XUIButton.react"),{className:"_4a-j",key:"back",label:i._("Back"),size:"large",onClick:v}));var w=function(){return this.props.onStep(this.props.step+1)}.bind(this),x=i._("Next");if(this.$AdsBlueTour3()){x=i._("Done");w=this.props.onComplete}t.push(c("React").createElement(c("XUIButton.react"),{className:"_4a-j",key:"next",label:x,size:"large",onClick:w}))}return t}.bind(this),p}n.prototype.render=function(){return c("React").createElement("div",{className:"_135w"},c("React").createElement("div",{className:"_4a-p"},this.props.children),c("React").createElement(c("LeftRight.react"),{className:"_4a-m"},c("React").createElement("div",null,this.$AdsBlueTour6()),c("React").createElement("div",{className:"_4a-n"},this.$AdsBlueTour5())))};n.propTypes={onComplete:l.func,onStep:l.func.isRequired,onStart:l.func,step:l.number.isRequired,steps:l.arrayOf(l.object).isRequired};n.INTRO_STEP=m;n.defaultProps={onCompletet:c("emptyFunction"),onStart:c("emptyFunction")};f.exports=n}),null);
__d("AdsBlueTipTour.react",["AdsBlueTip.react","AdsBlueTour.react","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("React").PropTypes;h=babelHelpers.inherits(k,c("React").PureComponent);i=h&&h.prototype;function k(){__p&&__p();var l,m;for(var n=arguments.length,o=Array(n),p=0;p<n;p++)o[p]=arguments[p];return m=(l=i.constructor).call.apply(l,[this].concat(o)),this.state={step:this.props.introStep?c("AdsBlueTour.react").INTRO_STEP:0,shown:true},this.$AdsBlueTipTour4=function(){this.$AdsBlueTipTour3();this.props.onXOut()}.bind(this),this.$AdsBlueTipTour5=function(){this.$AdsBlueTipTour3();this.props.onComplete()}.bind(this),this.$AdsBlueTipTour6=function(q){this.setState({step:q});this.props.onStep&&this.props.onStep(q)}.bind(this),m}k.prototype.$AdsBlueTipTour1=function(){return this.$AdsBlueTipTour2()?this.props.introStep:this.props.steps[this.state.step]};k.prototype.$AdsBlueTipTour3=function(){this.setState({shown:false})};k.prototype.$AdsBlueTipTour2=function(){return this.state.step===c("AdsBlueTour.react").INTRO_STEP};k.prototype.render=function(){var l=this.$AdsBlueTipTour1();return c("React").createElement(c("AdsBlueTip.react"),babelHelpers["extends"]({behaviors:this.props.behaviors},l,{highlightContext:this.props.highlightContext,shown:this.state.shown,onClose:this.$AdsBlueTipTour4}),c("React").createElement(c("AdsBlueTour.react"),babelHelpers["extends"]({},this.props,{step:this.state.step,onComplete:this.$AdsBlueTipTour5,onStep:this.$AdsBlueTipTour6}),l.content))};k.propTypes={behaviors:j.object,highlightContext:j.bool,introStep:j.object,steps:j.arrayOf(j.object).isRequired,onComplete:j.func.isRequired,onStart:j.func,onStep:j.func,onXOut:j.func.isRequired};f.exports=k}),null);
__d("FBDraggableBar.react",["cx","invariant","DOMDimensions","React","ReactDOM","Rect","joinClasses"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k;j=babelHelpers.inherits(l,c("React").PureComponent);k=j&&j.prototype;function l(m){__p&&__p();k.constructor.call(this,m);this.$FBDraggableBar6=function(n){if(n)n.init(this)}.bind(this);this.onGrab=function(n,o){this.$FBDraggableBar1=n;this.$FBDraggableBar2=o;var p=c("DOMDimensions").getElementDimensions(this.$FBDraggableBar2),q=p.width,r=p.height;this.setState({elementWidth:q,elementHeight:r});this.onDrag()}.bind(this);this.onDrag=function(){var n=new(c("Rect"))(this.$FBDraggableBar2),o=(n.l+n.r)/2,p=this.$FBDraggableBar7(o);this.setState({toIndex:p})}.bind(this);this.onDrop=function(){var n=this.$FBDraggableBar1;n!==undefined&&n!==null||i(0);var o=this.state.toIndex;o!==undefined&&o!==null||i(0);this.$FBDraggableBar8();this.props.onReorder&&this.props.onReorder(n,o);this.$FBDraggableBar4()}.bind(this);this.onCancelDrag=function(){this.$FBDraggableBar8()}.bind(this);this.state={toIndex:null,elementWidth:null,elementHeight:null}}l.prototype.$FBDraggableBar4=function(){var m=c("ReactDOM").findDOMNode(this);!!m||i(0);var n=m.childNodes,o=[];for(var p=0;p<n.length;p++){var q=n[p];q instanceof Element||i(0);o.push(new(c("Rect"))(q))}this.$FBDraggableBar3=o};l.prototype.$FBDraggableBar5=function(){__p&&__p();var m=c("ReactDOM").findDOMNode(this);m instanceof Element||i(0);var n=m.childNodes,o=0;for(var p=0;p<n.length;p++){var q=n[p];q instanceof Element||i(0);var r=new(c("Rect"))(q);o+=r.r-r.l}m.clientWidth>=o||i(0)};l.prototype.componentDidMount=function(){this.$FBDraggableBar5();this.$FBDraggableBar4()};l.prototype.render=function(){var m=c("React").Children.map(this.props.children,function(q,r){var s={ref:this.$FBDraggableBar6,index:r};return c("React").cloneElement(q,s)}.bind(this)),n=this.state.toIndex;if(n!==null&&n!==undefined){var o=c("React").createElement("div",{className:"_63ax",key:"placeholder",style:{width:this.state.elementWidth,height:this.state.elementHeight}}),p=n<=this.$FBDraggableBar1?n:n+1;m.splice(p,0,o)}return c("React").createElement("span",{className:c("joinClasses")(this.props.className,"_42l3")},m)};l.prototype.$FBDraggableBar7=function(m){for(var n=0;n<this.$FBDraggableBar3.length;n++){var o=this.$FBDraggableBar3[n];if(o.l<=m&&m<o.r)return n}return this.$FBDraggableBar3.length};l.prototype.$FBDraggableBar8=function(){delete this.$FBDraggableBar1;delete this.$FBDraggableBar2;this.setState({elementWidth:null,elementHeight:null,toIndex:null})};f.exports=l}),null);
__d("FBDraggableItem.react",["cx","invariant","Draggable","Event","FBOverlayBase.react","FBOverlayContainer.react","FBOverlayElement.react","Keys","React","ReactDOM","Rect","getScrollPosition","getViewportDimensions","nullthrows"],(function a(b,c,d,e,f,g,h,i){__p&&__p();var j,k,l=10,m=250;j=babelHelpers.inherits(n,c("React").Component);k=j&&j.prototype;function n(){__p&&__p();var o,p;"use strict";for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=k.constructor).call.apply(o,[this].concat(r)),this.state={dragging:false},this.$FBDraggableItem6=function(t){if(!t)return;var u=c("ReactDOM").findDOMNode(t);u instanceof Element||i(0);var v=c("ReactDOM").findDOMNode(this);v instanceof Element||i(0);this.$FBDraggableItem3=u;this.$FBDraggableItem4=v}.bind(this),this.init=function(t){this.$FBDraggableItem1=t}.bind(this),this.$FBDraggableItem9=function(){__p&&__p();if(this.state.dragging)return;var t=this.props,u=t.onGrab,v=t.index;if(u)if(v||v===0)u(v);else u();this.$FBDraggableItem5=c("Event").listen(document,"keydown",function(w){if(w.keyCode===c("Keys").ESC){this.$FBDraggableItem12();w.preventDefault()}}.bind(this));this.setState({dragging:true});this.$FBDraggableItem1.onGrab(c("nullthrows")(this.props.index),this.$FBDraggableItem4)}.bind(this),this.$FBDraggableItem10=function(){var t=this.$FBDraggableItem4.parentNode;if(!(t instanceof Element))return;var u=new(c("Rect"))(t),v=c("getViewportDimensions")(),w=c("getScrollPosition")(window),x=Math.max(v.width,l),y=new(c("Rect"))(w.y,Math.min(x,u.r+m),v.height+w.y,Math.max(0,u.l-m));this.$FBDraggableItem2&&this.$FBDraggableItem2.setBoundingBox(y);this.$FBDraggableItem1.onDrag()}.bind(this),this.$FBDraggableItem11=function(){this.$FBDraggableItem13();this.$FBDraggableItem1.onDrop()}.bind(this),p}n.prototype.$FBDraggableItem7=function(){"use strict";var o=c("React").Children.map(this.props.children,function(p){return p});o.length>0&&o.length<=2||i(0);return o};n.prototype.componentDidMount=function(){"use strict";this.$FBDraggableItem7();this.$FBDraggableItem8(true)};n.prototype.componentWillUnmount=function(){"use strict";this.$FBDraggableItem8(false)};n.prototype.render=function(){"use strict";var o=this.$FBDraggableItem7(),p=o.length!=2?null:c("React").createElement(c("FBOverlayElement.react"),{className:"_13uq",horizontal:"right",vertical:"top"},c("React").createElement("div",null,o[1]));return c("React").createElement(c("FBOverlayContainer.react"),{className:"_2rh6"+(this.state.dragging?" _2rjy":"")},c("React").createElement(c("FBOverlayBase.react"),null,o[0]),c("React").createElement(c("FBOverlayElement.react"),{horizontal:"left",ref:this.$FBDraggableItem6,vertical:"fit"},c("React").createElement("div",{className:"_2rjz"})),p)};n.prototype.$FBDraggableItem8=function(o){"use strict";__p&&__p();var p=this.$FBDraggableItem2;if(o&&!p)this.$FBDraggableItem2=new(c("Draggable"))(this.$FBDraggableItem4).setNamespace("FBDraggableItem").setUseAbsolute(true).setGrabHandler(this.$FBDraggableItem9).setDragHandler(this.$FBDraggableItem10).setDropHandler(this.$FBDraggableItem11).addHandle(this.$FBDraggableItem3);else if(!o&&p){if(p.active)this.$FBDraggableItem12();p.destroy();this.$FBDraggableItem2=null}};n.prototype.$FBDraggableItem12=function(){"use strict";this.$FBDraggableItem2&&this.$FBDraggableItem2.killDrag();this.$FBDraggableItem13();this.$FBDraggableItem1.onCancelDrag()};n.prototype.$FBDraggableItem13=function(){"use strict";this.$FBDraggableItem2&&this.$FBDraggableItem2.resetPosition();this.setState({dragging:false});this.$FBDraggableItem5&&this.$FBDraggableItem5.remove();delete this.$FBDraggableItem5};f.exports=n}),null);
__d("AutoScalingContent.react",["React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("React").PropTypes;h=babelHelpers.inherits(k,c("React").Component);i=h&&h.prototype;function k(l){i.constructor.call(this,l);this.state={widthRatio:null}}k.prototype.componentDidMount=function(){var l=this.refs.inner,m=this.props,n=m.minWidthRatio,o=m.handleMinWidthRatioViolation,p=1;if(this.state.widthRatio===null){if(l&&l.scrollWidth&&l.offsetWidth){p=l.offsetWidth/l.scrollWidth;if(p<n)p=o&&o(p,n)||n}this.setState({widthRatio:p})}};k.prototype.render=function(){__p&&__p();var l={},m={};if(this.props.width!==undefined)m.width=this.props.width;if(!this.state.widthRatio)l.visibility="hidden";else if(this.state.widthRatio<1){l.transform="scale("+this.state.widthRatio+")";l.transformOrigin="0 0"}return c("React").createElement("div",{style:m},c("React").createElement("div",{ref:"inner",style:l},this.props.children))};k.propTypes={children:j.any,minWidthRatio:j.number,width:j.oneOfType([j.number,j.string])};k.defaultProps={minWidthRatio:.75};f.exports=k}),null);
__d("XUICarouselLinks.react",["csx","cx","fbt","DOM","DOMClone","React","ReactDOM","DOMContainer.react","isNode","joinClasses"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k=c("React").PropTypes,l=c("React").createClass({displayName:"XUICarouselLinks",propTypes:{carousel:k.object.isRequired,template:function m(n){var m=n.template;if(m&&!c("React").isValidElement(m)&&!c("isNode")(m))return new Error("Expected a DOM node or ReactElement for template")},width:k.number,centered:k.bool},getDefaultProps:function m(){return{template:c("React").createElement("div",{className:"_3jav"}),centered:true}},getInitialState:function m(){return{disabled:false,itemCount:this.props.carousel.getItemCount(),index:this.props.carousel.state.index}},componentWillMount:function m(){this._registerToCarousel(this.props.carousel)},willDestroyElement:function m(){this._unregisterCarousel()},_isAutoplayEnabled:false,_unregisterCarousel:function m(){this.props.carousel.unsubscribe(this.arbiterToken)},_registerToCarousel:function m(n){this.arbiterToken=n.subscribe(["animation_start","item_count_updated"],function(o,p){if(o==="animation_start")this.setState({index:p});else this.setState({itemCount:p})}.bind(this))},componentWillUpdate:function m(n){if(this.props.carousel!==n.carousel){this._unregisterCarousel();this._registerToCarousel(n.carousel)}},_onKeyDown:function m(event,n){if(event.key==="ArrowLeft"){this.props.carousel.prev();event.preventDefault()}else if(event.key==="ArrowRight"){this.props.carousel.next();event.preventDefault()}},_onBlur:function m(){if(this._isAutoplayEnabled)this.props.carousel.setAutoplayEnabled(true)},_onFocus:function m(){this._isAutoplayEnabled=this.props.carousel.state.autoplay;if(this._isAutoplayEnabled)this.props.carousel.setAutoplayEnabled(false)},onLinkClick:function m(n){this.props.carousel.setIndex(n)},renderLinks:function m(){__p&&__p();var n,o=this,p=[],q=this.props.template,r=c("React").isValidElement(q),s=function s(t){__p&&__p();var u=t===o.state.index,v="_3jaw"+(u?" _3el7":""),w=j._("Item {item index}",[j.param("item index",t+1)]);if(r)p.push(c("React").cloneElement(q,{className:c("joinClasses")(q.props.className,v),key:t,index:t,onBlur:function(){return this._onBlur()}.bind(o),onFocus:function(){return this._onFocus()}.bind(o),onClick:function(){return this.onLinkClick(t)}.bind(o),onKeyDown:function(event){return this._onKeyDown(event,t)}.bind(o),tabIndex:u?"0":"-1","aria-label":w,role:"button"}));else p.push(c("React").createElement("div",{className:v,key:t,onBlur:function(){return this._onBlur()}.bind(o),onFocus:function(){return this._onFocus()}.bind(o),onKeyDown:function(event){return this._onKeyDown(event,t)}.bind(o),onClick:function(){return this.onLinkClick(t)}.bind(o),"aria-label":w,"aria-selected":u?"true":"false",role:"button",tabIndex:u?"0":"-1"},c("React").createElement(c("DOMContainer.react"),null,c("DOMClone").deepClone(q))))};for(var t=0;t<this.state.itemCount;t++)s(t);return p},render:function m(){__p&&__p();var n=c("joinClasses")(this.props.className,"_3jay"+(this.props.centered?" _3jaz":"")),o=void 0;if(this.props.width)o={width:this.props.width};setTimeout(function(){if(this.isMounted()){var p=c("DOM").scry(c("ReactDOM").findDOMNode(this),"._3jaw");p.forEach(function(q){var r=q.style.display;q.style.display="none";q.offsetHeight;q.style.display=r})}}.bind(this));return c("React").createElement("div",{style:o},c("React").createElement("div",{className:n,role:"toolbar"},this.renderLinks()))}});f.exports=l}),null);
__d("FeedbackAddStreamingReactionWebGraphQLSubscription",["WebGraphQLSubscriptionHelper"],(function a(b,c,d,e,f,g){"use strict";f.exports=c("WebGraphQLSubscriptionHelper").getExports({docID:"1568746946533577",queryID:"158119731410742"})}),null);
__d("FeedbackAddStreamingReactionSubscription",["BaseGraphQLSubscription","FeedbackAddStreamingReactionWebGraphQLSubscription","uuid"],(function a(b,c,d,e,f,g){var h=babelHelpers["extends"]({},c("BaseGraphQLSubscription"),{_getTopic:function i(j){return"gqls/feedback_add_streaming_reaction_subscribe/feedback_id_"+j},_getQueryID:function i(){return c("FeedbackAddStreamingReactionWebGraphQLSubscription").getDocID()},_getQueryParameters:function i(j){return{input:JSON.stringify({client_subscription_id:c("uuid")(),feedback_id:j})}},_getSubscriptionCallName:function i(){return"feedback_add_streaming_reaction_subscribe"}});f.exports=h}),null);
__d("LiveMapEntryPointsEnum",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({APPS:"bookmarks",FAVORITES:"favorites",ENDSCREEN:"endscreen",TRENDING:"trending",BLUEBAR:"bluebar",NUX:"nux",FACEBAR_TYPEAHEAD:"br_tf",SHAREABLE:"shareable",VIDEO_HOME:"video_home",LIVE_DISCOVERY:"live_discovery"})}),null);
__d("LiveMapEntryPointsEvent",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({IMPRESSION:"impression",CLICKED:"clicked",EMPTY_UNIT:"empty_unit",VIEWER_COUNT:"viewer_count"})}),null);
__d("LiveMapEntryPointsTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(){this.clear()}h.prototype.log=function(){c("GeneratedLoggerUtils").log("logger:LiveMapEntryPointsLoggerConfig",this.$LiveMapEntryPointsTypedLogger1,c("Banzai").BASIC)};h.prototype.logVital=function(){c("GeneratedLoggerUtils").log("logger:LiveMapEntryPointsLoggerConfig",this.$LiveMapEntryPointsTypedLogger1,c("Banzai").VITAL)};h.prototype.clear=function(){this.$LiveMapEntryPointsTypedLogger1={};return this};h.prototype.updateData=function(j){this.$LiveMapEntryPointsTypedLogger1=babelHelpers["extends"]({},this.$LiveMapEntryPointsTypedLogger1,j);return this};h.prototype.setEntryPoint=function(j){this.$LiveMapEntryPointsTypedLogger1.entry_point=j;return this};h.prototype.setEvent=function(j){this.$LiveMapEntryPointsTypedLogger1.event=j;return this};h.prototype.setVC=function(j){this.$LiveMapEntryPointsTypedLogger1.vc=j;return this};h.prototype.setViewerCount=function(j){this.$LiveMapEntryPointsTypedLogger1.viewer_count=j;return this};var i={entry_point:true,event:true,vc:true,viewer_count:true};f.exports=h}),null);
__d("LiveMapEntryPointsLoggerController",["LiveMapEntryPointsTypedLogger","LiveMapEntryPointsEvent","LiveMapEntryPointsEnum"],(function a(b,c,d,e,f,g){"use strict";var h={logEndscreenImpression:function i(){new(c("LiveMapEntryPointsTypedLogger"))().setEvent(c("LiveMapEntryPointsEvent").IMPRESSION).setEntryPoint(c("LiveMapEntryPointsEnum").ENDSCREEN).log()}};f.exports=h}),null);
__d("ShowCreationFlowTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(){this.clear()}h.prototype.log=function(){c("GeneratedLoggerUtils").log("logger:ShowCreationFlowLoggerConfig",this.$ShowCreationFlowTypedLogger1,c("Banzai").BASIC)};h.prototype.logVital=function(){c("GeneratedLoggerUtils").log("logger:ShowCreationFlowLoggerConfig",this.$ShowCreationFlowTypedLogger1,c("Banzai").VITAL)};h.prototype.logImmediately=function(){c("GeneratedLoggerUtils").log("logger:ShowCreationFlowLoggerConfig",this.$ShowCreationFlowTypedLogger1,{signal:true})};h.prototype.clear=function(){this.$ShowCreationFlowTypedLogger1={};return this};h.prototype.getData=function(){return babelHelpers["extends"]({},this.$ShowCreationFlowTypedLogger1)};h.prototype.updateData=function(j){this.$ShowCreationFlowTypedLogger1=babelHelpers["extends"]({},this.$ShowCreationFlowTypedLogger1,j);return this};h.prototype.setError=function(j){this.$ShowCreationFlowTypedLogger1.error=j;return this};h.prototype.setPageID=function(j){this.$ShowCreationFlowTypedLogger1.page_id=j;return this};h.prototype.setStep=function(j){this.$ShowCreationFlowTypedLogger1.step=j;return this};h.prototype.setVC=function(j){this.$ShowCreationFlowTypedLogger1.vc=j;return this};h.prototype.updateExtraData=function(j){j=c("nullthrows")(c("GeneratedLoggerUtils").serializeMap(j));c("GeneratedLoggerUtils").checkExtraDataFieldNames(j,i);this.$ShowCreationFlowTypedLogger1=babelHelpers["extends"]({},this.$ShowCreationFlowTypedLogger1,j);return this};h.prototype.addToExtraData=function(j,k){var l={};l[j]=k;return this.updateExtraData(l)};var i={error:true,page_id:true,step:true,vc:true};f.exports=h}),null);
__d("SnoozedProfileTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(){this.clear()}h.prototype.log=function(){c("GeneratedLoggerUtils").log("logger:SnoozedProfileLoggerConfig",this.$SnoozedProfileTypedLogger1,c("Banzai").BASIC)};h.prototype.logVital=function(){c("GeneratedLoggerUtils").log("logger:SnoozedProfileLoggerConfig",this.$SnoozedProfileTypedLogger1,c("Banzai").VITAL)};h.prototype.clear=function(){this.$SnoozedProfileTypedLogger1={};return this};h.prototype.getData=function(){return babelHelpers["extends"]({},this.$SnoozedProfileTypedLogger1)};h.prototype.updateData=function(j){this.$SnoozedProfileTypedLogger1=babelHelpers["extends"]({},this.$SnoozedProfileTypedLogger1,j);return this};h.prototype.setClienttime=function(j){this.$SnoozedProfileTypedLogger1.clienttime=j;return this};h.prototype.setEvent=function(j){this.$SnoozedProfileTypedLogger1.event=j;return this};h.prototype.setItemObjID=function(j){this.$SnoozedProfileTypedLogger1.item_obj_id=j;return this};h.prototype.setSessionID=function(j){this.$SnoozedProfileTypedLogger1.session_id=j;return this};h.prototype.setVC=function(j){this.$SnoozedProfileTypedLogger1.vc=j;return this};var i={clienttime:true,event:true,item_obj_id:true,session_id:true,vc:true};f.exports=h}),null);
__d("KeyframeAnimation",["invariant","CSS","Map","ReactTransitionEvents","UserAgent","nullthrows","queryThenMutateDOM","uniqueID"],(function a(b,c,d,e,f,g,h){__p&&__p();var i="KeyframeAnimation-",j="animation-";function k(l){"use strict";__p&&__p();this.$KeyframeAnimation3=l;this.$KeyframeAnimation8=true;this.$KeyframeAnimation5=new(c("Map"))();this.$KeyframeAnimation5.set("animation-name",i+c("uniqueID")());this.$KeyframeAnimation4=new(c("Map"))();if(!k.$KeyframeAnimation1){var m=document.createElement("style");document.head.appendChild(m);var n=c("nullthrows")(m.sheet);n instanceof CSSStyleSheet||h(0);k.$KeyframeAnimation1=n;k.$KeyframeAnimation2=new(c("Map"))()}this.$KeyframeAnimation9=c("UserAgent").isEngine("WebKit")?"-webkit-":""}k.prototype.defineKeyframes=function(l){"use strict";__p&&__p();for(var m=Object.entries(l),n=Array.isArray(m),o=0,m=n?m:m[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var p;if(n){if(o>=m.length)break;p=m[o++]}else{o=m.next();if(o.done)break;p=o.value}var q=p,r=q[0],s=q[1];r=parseFloat(r,10);r>=0&&r<=100||h(0);var t="";for(var u=Object.entries(s).sort(),v=Array.isArray(u),w=0,u=v?u:u[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var x;if(v){if(w>=u.length)break;x=u[w++]}else{w=u.next();if(w.done)break;x=w.value}var y=x,z=y[0],A=y[1];t+=z+": "+A+";"}this.$KeyframeAnimation4.set(r,t)}return this};k.prototype.defineKeyframe=function(l,m){"use strict";__p&&__p();l=parseFloat(l,10);l>=0&&l<=100||h(0);var n="";for(var o=Object.entries(m).sort(),p=Array.isArray(o),q=0,o=p?o:o[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var r;if(p){if(q>=o.length)break;r=o[q++]}else{q=o.next();if(q.done)break;r=q.value}var s=r,t=s[0],u=s[1];if(t.substring(0,j.length)===j||t==="transform")t=this.$KeyframeAnimation9+t;n+=t+": "+u+";"}this.$KeyframeAnimation4.set(l,n);return this};k.prototype.setDirection=function(l){"use strict";this.$KeyframeAnimation5.set("animation-direction",l);return this};k.prototype.setDuration=function(l){"use strict";this.$KeyframeAnimation5.set("animation-duration",l+"s");return this};k.prototype.setTimingFunction=function(l){"use strict";this.$KeyframeAnimation5.set("animation-timing-function",l);return this};k.prototype.setIterationCount=function(l){"use strict";this.$KeyframeAnimation5.set("animation-iteration-count",l+"");return this};k.prototype.setFillMode=function(l){"use strict";this.$KeyframeAnimation5.set("animation-fill-mode",l);return this};k.prototype.setAnimationDelay=function(l){"use strict";this.$KeyframeAnimation5.set("animation-delay",l+"s");return this};k.prototype.setFinishedCallback=function(l){"use strict";this.$KeyframeAnimation6=l;return this};k.prototype.setMemoize=function(l){"use strict";this.$KeyframeAnimation8=l;return this};k.prototype.start=function(){"use strict";__p&&__p();this.$KeyframeAnimation5.has("animation-duration")||h(0);if(this.$KeyframeAnimation7){this.restartAnimation();return}var l=this.$KeyframeAnimation3,m=this.$KeyframeAnimation10(),n=this.$KeyframeAnimation11(m),o=void 0;if(this.$KeyframeAnimation8&&k.$KeyframeAnimation2.has(n)){var p=c("nullthrows")(k.$KeyframeAnimation2.get(n));this.$KeyframeAnimation5.set("animation-name",p);o=p}else{k.$KeyframeAnimation1.insertRule(m,k.$KeyframeAnimation1.cssRules.length);o=c("nullthrows")(this.$KeyframeAnimation5.get("animation-name"));if(this.$KeyframeAnimation8)k.$KeyframeAnimation2.set(n,o)}var q=this.$KeyframeAnimation12(o);if(!this.$KeyframeAnimation8||!k.$KeyframeAnimation2.has(q)){k.$KeyframeAnimation1.insertRule(q,k.$KeyframeAnimation1.cssRules.length);if(this.$KeyframeAnimation8)k.$KeyframeAnimation2.set(q,o)}c("queryThenMutateDOM")(function(){},function(){this.$KeyframeAnimation13();c("CSS").addClass(l,o)}.bind(this))};k.prototype.restartAnimation=function(){"use strict";var l=this.$KeyframeAnimation3;c("CSS").removeClass(l,c("nullthrows")(this.$KeyframeAnimation5.get("animation-name")));l.offsetWidth;this.$KeyframeAnimation7=false;c("CSS").addClass(l,c("nullthrows")(this.$KeyframeAnimation5.get("animation-name")))};k.prototype.$KeyframeAnimation13=function(){"use strict";c("ReactTransitionEvents").addEndEventListener(this.$KeyframeAnimation3,this.$KeyframeAnimation14.bind(this))};k.prototype.$KeyframeAnimation12=function(l){"use strict";__p&&__p();var m="";m+="."+l+" {";for(var n=this.$KeyframeAnimation5,o=Array.isArray(n),p=0,n=o?n:n[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var q;if(o){if(p>=n.length)break;q=n[p++]}else{p=n.next();if(p.done)break;q=p.value}var r=q,s=r[0],t=r[1];m+=s+": "+t+";"}m+="}";return m};k.prototype.$KeyframeAnimation10=function(){"use strict";__p&&__p();var l=this.$KeyframeAnimation5.get("animation-name"),m=void 0;if(c("UserAgent").isEngine("WebKit"))m="@-webkit-keyframes";else m="@keyframes";var n=m+" "+l+" {";for(var o=this.$KeyframeAnimation4,p=Array.isArray(o),q=0,o=p?o:o[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var r;if(p){if(q>=o.length)break;r=o[q++]}else{q=o.next();if(q.done)break;r=q.value}var s=r,t=s[0],u=s[1];n+=t+"% {"+u+"}"}return n+"}"};k.prototype.$KeyframeAnimation14=function(){"use strict";if(!this.$KeyframeAnimation7){if(this.$KeyframeAnimation6)this.$KeyframeAnimation6(this.$KeyframeAnimation3);this.$KeyframeAnimation7=true}};k.prototype.$KeyframeAnimation11=function(l){"use strict";return l.substring(l.indexOf("{")+1).toLowerCase().replace(/\s+/g,"")};f.exports=k}),null);
__d("CSSAnimationBuilder",["KeyframeAnimation"],(function a(b,c,d,e,f,g){var h={keyframeAnimation:function i(j){return new(c("KeyframeAnimation"))(j)}};f.exports=h}),null);
__d("PageActionURLHandlerType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({ASYNC_DIALOG:"async-dialog",ASYNC_POST:"async-post",DIALOG:"dialog",DIALOG_POST:"dialog-post",LINK_OUT:"link-out"})}),null);
__d("PageActionBarActionSelector.react",["ix","fbt","ContextualDialogArrow","Image.react","PageActionURLHandlerType","PopoverMenu.react","React","ReactXUIMenu","URI","XUIButton.react","fbglyph"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j=c("ReactXUIMenu").Item,k=function k(m){return c("React").createElement(c("ReactXUIMenu"),null,m.actions.map(function(n){if(!n.url||!n.label||!n.label.text)return null;var o=c("PageActionURLHandlerType")[n.url_handler_type]||null,p=n.url;if(o==="async-dialog"||o==="async-post"||o==="dialog")p=new(c("URI"))(n.url).getUnqualifiedURI().toString();return c("React").createElement(j,{href:p,key:n.label.text,rel:o},n.label.text)}))},l=function l(m){if(m.actions.length==0)return null;return c("React").createElement(c("PopoverMenu.react"),{alignh:"right",layerBehaviors:[c("ContextualDialogArrow")],menu:k(m)},c("React").createElement(c("XUIButton.react"),{haschevron:false,image:c("React").createElement(c("Image.react"),{src:h("127000")}),label:i._("More"),labelIsHidden:true,size:"large"}))};f.exports=l}),null);
__d("PageActionContainer.react",["invariant","React"],(function a(b,c,d,e,f,g,h){"use strict";var i=function i(j){var k=j.action.ReactComponent;if(!k)return null;return c("React").createElement(k,j)};f.exports=i}),null);
__d("XLoggedOutInlineLoginDialogController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/logged_out_inline_modal/content/",{redirect_uri:{type:"String"}})}),null);
__d("PageActionInlineLoginWrapper.react",["AsyncRequest","React","XLoggedOutInlineLoginDialogController"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").PureComponent);i=h&&h.prototype;function j(){var k,l;for(var m=arguments.length,n=Array(m),o=0;o<m;o++)n[o]=arguments[o];return l=(k=i.constructor).call.apply(k,[this].concat(n)),this.state={loginPromptCreated:false},this.$PageActionInlineLoginWrapper2=function(p){if(this.props.loggedOutSEOEnabled){p.stopPropagation();this.$PageActionInlineLoginWrapper3()}}.bind(this),l}j.prototype.$PageActionInlineLoginWrapper3=function(){if(this.$PageActionInlineLoginWrapper1)this.$PageActionInlineLoginWrapper4(this.$PageActionInlineLoginWrapper1)};j.prototype.$PageActionInlineLoginWrapper4=function(k){if(!this.state.loginPromptCreated){this.$PageActionInlineLoginWrapper5(k);this.setState({loginPromptCreated:true})}};j.prototype.$PageActionInlineLoginWrapper5=function(k){var l=c("XLoggedOutInlineLoginDialogController").getURIBuilder().setString("redirect_uri",this.props.next).getURI();new(c("AsyncRequest"))().setURI(l).setMethod("POST").setRelativeTo(k).send()};j.prototype.render=function(){return c("React").createElement("div",{onClickCapture:this.$PageActionInlineLoginWrapper2,ref:function(k){return this.$PageActionInlineLoginWrapper1=k}.bind(this)},this.props.children)};f.exports=j}),null);
__d("PageActionOpenURLAsyncDialog.react",["cx","AsyncDialog","AsyncRequest","React","URI","XUIButton.react"],(function a(b,c,d,e,f,g,h){"use strict";var i=function i(j){var k=j.action,l=k.label,m=k.url;if(l===null||m===null)return null;return c("React").createElement(c("XUIButton.react"),{className:"_rfh",image:j.image,label:l.text,onClick:function n(){return c("AsyncDialog").send(new(c("AsyncRequest"))(new(c("URI"))(m).getUnqualifiedURI()))},size:j.size})};f.exports=i}),null);
__d("PageActionOpenURLAsyncPost.react",["cx","AsyncRequest","React","URI","XUIButton.react"],(function a(b,c,d,e,f,g,h){"use strict";var i=function i(j){var k=j.action,l=k.label,m=k.url;if(l===null||m===null)return null;return c("React").createElement(c("XUIButton.react"),{className:"_rfh",image:j.image,label:l.text,onClick:function n(){return new(c("AsyncRequest"))(new(c("URI"))(m).getUnqualifiedURI()).send()},size:j.size})};f.exports=i}),null);
__d("PageActionOpenURLLinkOut.react",["cx","React","Tooltip","XUIButton.react","goURI"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=14,j=function j(k){var l=k.action,m=l.label,n=l.url;if(m===null||n===null)return null;var o=c("React").createElement(c("XUIButton.react"),{className:"_rfh",image:k.image,label:m.text,onClick:function p(){return c("goURI")(n)},size:k.size});if(m.text.length>=i)o=c("React").cloneElement(o,c("Tooltip").propsFor(m.text));return o};f.exports=j}),null);
__d("PageCTAAction.react",["React"],(function a(b,c,d,e,f,g){"use strict";var h=function h(i){var j=i.ReactComponent,k=i.call_to_action,l=i.cta_config,m=i.should_auto_open,n=i.surface;return c("React").createElement(j,babelHelpers["extends"]({},i,{cta:{id:k?k.id:null,label:l&&l.label||k&&k.label||null,type:l&&l.cta_type||k&&k.cta_type||null},page:{id:i.page.id},surface:n,extraProps:{shouldAutoOpen:Boolean(m)}}))};f.exports=h}),null);
__d("PageCreatePageAction.react",["ix","Image.react","PageActionOpenURLLinkOut.react","React","fbglyph"],(function a(b,c,d,e,f,g,h){"use strict";var i=function i(j){return c("React").createElement(c("PageActionOpenURLLinkOut.react"),babelHelpers["extends"]({},j,{image:c("React").createElement(c("Image.react"),{src:h("127070")})}))};f.exports=i}),null);
__d("PagesMessengerLinkConfirmationDialog.react",["ix","cx","fbt","Image.react","React","XUIDialog.react","XUIDialogBody.react","XUIDialogButton.react","XUIDialogFooter.react","XUIGrayText.react","XUIText.react","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=494;k=babelHelpers.inherits(n,c("React").Component);l=k&&k.prototype;n.prototype.render=function(){return c("React").createElement(c("XUIDialog.react"),{shown:this.props.shown,onToggle:function(o){return!o&&this.props.onDismiss}.bind(this),width:m},c("React").createElement(c("XUIDialogBody.react"),{className:"_3-95 _3pa-"},c("React").createElement(c("Image.react"),{className:"_3-97 _3-8x",src:"/images/pages/linkshare/checkmark.png"}),c("React").createElement(c("XUIText.react"),{size:"header3",display:"block"},j._("The Messenger Link was copied.")),c("React").createElement(c("XUIText.react"),{className:"_3-8y",display:"block",size:"header4"},j._("The Messenger Link was copied to your clipboard. Any person who clicks this link will be able to initiate a conversation with your Page."))),c("React").createElement(c("XUIDialogFooter.react"),{className:"_3pa_",fullbleedborder:"true",leftContent:c("React").createElement("div",null,c("React").createElement(c("Image.react"),{className:"_1-vn _3-8_",src:h("126379")}),c("React").createElement(c("XUIGrayText.react"),null,this.props.url))},c("React").createElement(c("XUIDialogButton.react"),{use:"confirm",label:j._("Done"),onClick:this.props.onDismiss})))};function n(){k.apply(this,arguments)}f.exports=n}),null);
__d("XPagesOnlineIndicatorAsyncController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/messaging/show_online_indicator/",{page_id:{type:"FBID",required:true}})}),null);
__d("PagesMessageButton.react",["cx","fbt","ix","AsyncRequest","ChatOpenTabEventLogger","Clipboard","ContextualDialogArrow","ContextualLayerUpdateOnScroll","FantaTabActions","Image.react","InlineBlock.react","MenuSeparator.react","MercuryIDs","MessagingSourceEnum","PagesBlueMessageButtonQE","PagesEventObserver","PagesEventType","PagesMessengerLinkConfirmationDialog.react","PopoverMenu.react","PopoverMenuShowOnHover","React","ReactXUIMenu","XBasicFBNuxDismissController","XPagesOnlineIndicatorAsyncController","XUIAmbientNUX.react","XUIButton.react","XUIPopoverButton.react","fbglyph","joinClasses"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("ReactXUIMenu").Item,n=3997,o=j("114247"),p=j("127062");k=babelHelpers.inherits(q,c("React").Component);l=k&&k.prototype;function q(r){__p&&__p();l.constructor.call(this,r);this.$PagesMessageButton1=function(event){var s=this.props.pageID,t=c("MercuryIDs").getThreadIDFromUserID(s);c("FantaTabActions").openTab(t,[this.props.settings.ref]);c("ChatOpenTabEventLogger").logUserClickOpen(this.props.settings.ref,s)}.bind(this);this.$PagesMessageButton6=function(event){var s=this.props.settings.adminSettings&&this.props.settings.adminSettings.messengerLinkURI;if(!s)return;c("Clipboard").copy(s);this.setState({linkDialogShown:true});c("PagesEventObserver").notify(c("PagesEventType").SHARED_MESSAGE_LINK_COPY,this.props.pageID,{source:c("MessagingSourceEnum").PAGES_MESSAGE_SHORTLINK})}.bind(this);this.$PagesMessageButton7=function(){this.setState({linkDialogShown:false})}.bind(this);this.$PagesMessageButton9=function(){this.setState({nuxDismissed:true})}.bind(this);this.$PagesMessageButton10=function(){this.setState({messengerLinkNUXDismissed:true});var s=c("XBasicFBNuxDismissController").getURIBuilder().setInt("nux_id",n).getURI();new(c("AsyncRequest"))().setURI(s).send()}.bind(this);this.state={isOnline:false,linkDialogShown:false,messengerLinkNUXDismissed:false,nuxDismissed:false}}q.prototype.componentWillMount=function(){var r=c("XPagesOnlineIndicatorAsyncController").getURIBuilder().setFBID("page_id",this.props.pageID).getURI();new(c("AsyncRequest"))().setURI(r).setHandler(function(s){var t=s.payload;this.setState({isOnline:t.showOnlneIndicator})}.bind(this)).send()};q.getButtonSize=function(r){return c("XUIButton.react").getButtonSize(r)};q.prototype.componentDidMount=function(){c("PagesEventObserver").notify(c("PagesEventType").MESSAGES_BUTTON_RENDER,this.props.pageID,{source:"refresh",logged_out:!this.props.settings.isLoggedIn,ref:this.props.settings.ref})};q.prototype.render=function(){__p&&__p();if(!this.props.settings.isLoggedIn)return null;var r=false;if(c("PagesBlueMessageButtonQE").showBlueSecondaryButton)r=true;var s=i._("Message");if(!this.props.settings.adminSettings)if(this.props.className)s=i._("Send Message");else if(this.props.settings.label)s=i._("{settings_label}",[i.param("settings_label",this.props.settings.label)]);var t=this.props.settings.adminSettings?c("React").createElement(c("XUIPopoverButton.react"),{className:c("joinClasses")(this.props.className,"_p8f"),image:c("React").createElement(c("Image.react"),{src:p}),label:s,onClick:this.$PagesMessageButton1,ref:"messageButton",size:this.props.size,"data-testid":"page-message-button"}):c("React").createElement(c("XUIButton.react"),{className:c("joinClasses")(this.props.className,"_p8f"),image:r?c("React").createElement(c("Image.react"),{src:this.props.className?null:o}):c("React").createElement(c("Image.react"),{src:this.props.className?null:p}),imageRight:this.$PagesMessageButton2(),label:s,onClick:this.$PagesMessageButton1,ref:"messageButton",size:this.props.size,use:r?"confirm":"default","data-testid":"page-message-button"});if(this.props.settings.adminSettings)t=c("React").createElement(c("PopoverMenu.react"),{className:c("joinClasses")(this.props.className,"_3u42"),alignh:"right",menu:this.$PagesMessageButton3(),behaviors:[c("PopoverMenuShowOnHover")],layerBehaviors:[c("ContextualDialogArrow")]},t,this.$PagesMessageButton4());return c("React").createElement(c("InlineBlock.react"),{alignv:"middle",className:"_3u43 _p8r"},t,this.$PagesMessageButton5())};q.prototype.$PagesMessageButton2=function(){if(!this.state.isOnline)return null;return c("React").createElement("span",{className:"_ljx"},c("React").createElement(c("Image.react"),{src:j("311942")}))};q.prototype.$PagesMessageButton3=function(){if(!this.props.settings.adminSettings)return null;var r=null;if(this.props.settings.adminSettings.messengerLinkURI)r=c("React").createElement(m,{onclick:this.$PagesMessageButton6},i._("Copy Messenger Link"));return c("React").createElement(c("ReactXUIMenu"),null,c("React").createElement(m,{href:this.props.settings.adminSettings.inboxURI},i._("View Messages")),this.props.settings.adminSettings.messengerLinkURI?c("React").createElement(c("MenuSeparator.react"),null):null,r)};q.prototype.$PagesMessageButton4=function(){var r=this.props.settings.adminSettings&&this.props.settings.adminSettings.messengerLinkURI;if(!r)return null;return c("React").createElement(c("PagesMessengerLinkConfirmationDialog.react"),{onDismiss:this.$PagesMessageButton7,shown:this.state.linkDialogShown,url:r})};q.prototype.$PagesMessageButton5=function(){if(this.props.settings.adminSettings&&this.props.settings.adminSettings.showMessengerLinkNUX)return this.$PagesMessageButton8();if(!this.props.settings.showNUX)return null;var r=this.props.pageCategory==="WORKPLACE_BOT"?i._("Send a message to this Bot."):i._("Send a message to this Page.");return c("React").createElement(c("XUIAmbientNUX.react"),{alignment:"center",behaviors:{ContextualLayerUpdateOnScroll:c("ContextualLayerUpdateOnScroll")},contextRef:function(){return this.refs.messageButton}.bind(this),onCloseButtonClick:this.$PagesMessageButton9,position:"below",shown:!this.state.nuxDismissed,width:"auto"},r)};q.prototype.$PagesMessageButton8=function(){if(!this.props.settings.adminSettings||!this.props.settings.adminSettings.showMessengerLinkNUX)return null;return c("React").createElement(c("XUIAmbientNUX.react"),{alignment:"right",autofocus:false,behaviors:{ContextualLayerUpdateOnScroll:c("ContextualLayerUpdateOnScroll")},contextRef:function(){return this.refs.messageButton}.bind(this),onCloseButtonClick:this.$PagesMessageButton10,position:"below",shown:!this.state.messengerLinkNUXDismissed,width:"wide"},i._("Now you can share a direct link that makes it easy for people to message your Page."))};f.exports=q}),null);
__d("PageMessageAction.react",["PagesMessageButton.react","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;j.prototype.render=function(){var k=this.props.action;return c("React").createElement(c("PagesMessageButton.react"),{className:this.props.className,icon:this.props.icon,pageID:k.page.id,pageCategory:k.page.category_type,settings:{adminSettings:k.admin_inbox_url?{inboxURI:k.admin_inbox_url,messengerLinkURI:k.admin_messenger_link_url,showMessengerLinkNUX:k.admin_show_messenger_link_nux}:null,isLoggedIn:true,ref:"page_header",showNUX:k.show_nux,label:k.label.text},size:this.props.size})};function j(){h.apply(this,arguments)}f.exports=j}),null);
__d("PageReportAction.react",["ix","Image.react","PageActionOpenURLAsyncDialog.react","React","fbglyph"],(function a(b,c,d,e,f,g,h){"use strict";var i=function i(j){return c("React").createElement(c("PageActionOpenURLAsyncDialog.react"),babelHelpers["extends"]({},j,{image:c("React").createElement(c("Image.react"),{src:h("128308")})}))};f.exports=i}),null);
__d("XSavedForLaterDashboardController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/saved/",{collection_token:{type:"String"},tag_filter:{type:"String"},cref:{type:"Int"},suggestion_dialog:{type:"Int"},cursor:{type:"String"},notif_id:{type:"Int"},dashboard_section:{type:"Enum",enumType:1},cref_name:{type:"String"},a_type:{type:"String"},search_token:{type:"String"},list_id:{type:"Int"},tab:{type:"Enum",enumType:1}})}),null);
__d("PageSaveAction.react",["ix","fbt","ContextualDialogArrow","Image.react","PageActionOpenURLAsyncPost.react","PageActionURLHandlerType","PopoverMenu.react","PopoverMenuShowOnHover","React","ReactXUIMenu","URI","XSavedForLaterDashboardController","XUIPopoverButton.react","fbglyph"],(function a(b,c,d,e,f,g,h,i){"use strict";var j=c("ReactXUIMenu").Item,k=function k(l){var m=l.action,n=m.url,o=m.url_handler_type,p=m.page;if(!p.has_viewer_saved)return c("React").createElement(c("PageActionOpenURLAsyncPost.react"),babelHelpers["extends"]({},l,{image:c("React").createElement(c("Image.react"),{src:h("127260")})}));var q=c("React").createElement(c("ReactXUIMenu"),null,c("React").createElement(j,{href:new(c("URI"))(n).getUnqualifiedURI(),key:"unsave",rel:c("PageActionURLHandlerType")[o]||null},i._("Unsave")),c("React").createElement(j,{href:c("XSavedForLaterDashboardController").getURIBuilder().getURI(),key:"view_saved"},i._("View Saved Items")));return c("React").createElement(c("PopoverMenu.react"),{behaviors:[c("PopoverMenuShowOnHover")],layerBehaviors:[c("ContextualDialogArrow")],menu:q},c("React").createElement(c("XUIPopoverButton.react"),{image:c("React").createElement(c("Image.react"),{src:h("116046")}),label:i._("Saved"),size:"large"}))};f.exports=k}),null);
__d("PageSharePageAction.react",["ix","Image.react","PageActionOpenURLAsyncDialog.react","React","fbglyph"],(function a(b,c,d,e,f,g,h){"use strict";var i=function i(j){return c("React").createElement(c("PageActionOpenURLAsyncDialog.react"),babelHelpers["extends"]({},j,{image:c("React").createElement(c("Image.react"),{src:h("128367")})}))};f.exports=i}),null);
__d("PageSimpleActionWithURL.react",["Image.react","PageActionOpenURLAsyncDialog.react","PageActionOpenURLAsyncPost.react","PageActionOpenURLLinkOut.react","React","idx"],(function a(b,c,d,e,f,g){"use strict";var h=function h(i){var j,k,l=(j=i)!=null?(j=j.action)!=null?j.url_handler_type:j:j,m=(k=i)!=null?(k=k.action)!=null?(k=k.icon)!=null?(k=k.icon_image)!=null?k.uri:k:k:k:k,n=m?c("React").createElement(c("Image.react"),{height:16,width:16,src:m}):null;switch(l){case"ASYNC_DIALOG":return c("React").createElement(c("PageActionOpenURLAsyncDialog.react"),babelHelpers["extends"]({},i,{image:n}));case"ASYNC_POST":return c("React").createElement(c("PageActionOpenURLAsyncPost.react"),babelHelpers["extends"]({},i,{image:n}));default:return c("React").createElement(c("PageActionOpenURLLinkOut.react"),babelHelpers["extends"]({},i,{image:n}))}};f.exports=h}),null);
__d("PageSuggestEditsAction.react",["ix","Image.react","PageActionOpenURLAsyncDialog.react","React","fbglyph"],(function a(b,c,d,e,f,g,h){"use strict";var i=function i(j){return c("React").createElement(c("PageActionOpenURLAsyncDialog.react"),babelHelpers["extends"]({},j,{image:c("React").createElement(c("Image.react"),{src:h("128156")})}))};f.exports=i}),null);
__d("PageNewsFeedStore",["FluxReduceStore","PagesLikeFollowNotifActions","PagesLikeFollowNotifDispatcher","ProfileSubFollowStatus"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("FluxReduceStore"));i=h&&h.prototype;j.prototype.getInitialState=function(){return{}};j.prototype.reduce=function(k,l){__p&&__p();var m=babelHelpers["extends"]({},k);switch(l.type){case c("PagesLikeFollowNotifActions").INIT_DATA:if(l.data.pageID in k)return k;m[l.data.pageID]=l.data.newsFeedStatus;return m;case c("PagesLikeFollowNotifActions").NEWS_FEED_CHANGE:m[l.data.pageID]=l.data.newsFeedStatus;return m;case c("PagesLikeFollowNotifActions").LIKE:if(l.data.pageID in k&&m[l.data.pageID]!==c("ProfileSubFollowStatus").SEE_FIRST||!(l.data.pageID in k))m[l.data.pageID]=c("ProfileSubFollowStatus").REGULAR_FOLLOW;return m}return k};function j(){h.apply(this,arguments)}f.exports=new j(c("PagesLikeFollowNotifDispatcher"))}),null);
__d("PageNotifOptionSettingType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({ON:"on",OFF:"off"})}),null);
__d("PagesGetNotificationStore",["FluxReduceStore","PagesLikeFollowNotifActions","PagesLikeFollowNotifDispatcher","PageNotifOptionSettingType"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("FluxReduceStore"));i=h&&h.prototype;j.prototype.getInitialState=function(){return{}};j.prototype.reduce=function(k,l){__p&&__p();var m=babelHelpers["extends"]({},k);switch(l.type){case c("PagesLikeFollowNotifActions").INIT_DATA:if(l.data.pageID in k)return k;m[l.data.pageID]=l.data.notifStatus;return m;case c("PagesLikeFollowNotifActions").NOTIF_CHANGE:m[l.data.pageID]=babelHelpers["extends"]({},k[l.data.pageID]);m[l.data.pageID][l.data.type]=l.data.state;return m;case c("PagesLikeFollowNotifActions").NOTIF_ALL_ON:Object.keys(k[l.data.pageID]).map(function(n){m[l.data.pageID][n]=c("PageNotifOptionSettingType").ON});return m;case c("PagesLikeFollowNotifActions").NOTIF_ALL_OFF:Object.keys(k[l.data.pageID]).map(function(n){m[l.data.pageID][n]=c("PageNotifOptionSettingType").OFF});return m}return k};function j(){h.apply(this,arguments)}f.exports=new j(c("PagesLikeFollowNotifDispatcher"))}),null);
__d("PageGetNotificationConstants",["fbt","keyMirror"],(function a(b,c,d,e,f,g,h){var i={Events:c("keyMirror")({CHANGE:null,NEWSFEED_CHANGE:null,NOTIFICATION_CHANGE:null}),Title:{video:h._("Videos"),photo:h._("Photos"),link:h._("Links"),others:h._("Status Updates"),event:h._("Events"),live_video:h._("Live Videos"),episode:h._("Episodes"),offer:h._("Offers"),all_posts:h._("All Posts"),none:h._("None"),all_on:h._("All On"),on:h._("On")},NewsFeedTitle:{unfollow:h._("Unfollow"),see_first:h._("See First"),follow:h._("Default")},LiveVideoTitle:{inferred:h._("Suggested Live Videos"),on:h._("All Live Videos")},PostTitle:{highlight:h._("Highlight Posts"),on:h._("Posts")},PostSubscriptionType:c("keyMirror")({video:null,photo:null,link:null,others:null}),PostSubscriptionTypeArray:["video","photo","link","others"],EventSubscriptionType:c("keyMirror")({event:null}),LiveVideoSubscriptionType:c("keyMirror")({live_video:null}),PagePostSubscriptionType:c("keyMirror")({post:null}),OfferSubscriptionType:c("keyMirror")({offer:null}),EpisodeSubscriptionType:c("keyMirror")({episode:null})};f.exports=i}),null);
__d("PageGetNotificationUtil",["PageGetNotificationConstants","PageNotifOptionSettingType"],(function a(b,c,d,e,f,g){__p&&__p();var h={subtitleForPageGetNotification:function i(j){__p&&__p();var k,l=[],m=c("PageGetNotificationConstants").PagePostSubscriptionType.post;if(m in j){var n=c("PageGetNotificationConstants").PostTitle[j[m]];if(n)l.push(n)}else(function(){__p&&__p();var q=c("PageGetNotificationConstants").PostSubscriptionType;Object.keys(q).map(function(s){return q[s]=j[s]===c("PageNotifOptionSettingType").ON});var r=Object.values(q).filter(function(s){return!s}).length===0;if(r)l.push(c("PageGetNotificationConstants").Title.all_posts);else c("PageGetNotificationConstants").PostSubscriptionTypeArray.map(function(s){if(q[s])l.push(c("PageGetNotificationConstants").Title[s])})})();if(j[c("PageGetNotificationConstants").EventSubscriptionType.event]===c("PageNotifOptionSettingType").ON)l.push(c("PageGetNotificationConstants").Title.event);if(j[c("PageGetNotificationConstants").OfferSubscriptionType.offer]===c("PageNotifOptionSettingType").ON)l.push(c("PageGetNotificationConstants").Title.offer);var o=c("PageGetNotificationConstants").LiveVideoSubscriptionType.live_video,p=c("PageGetNotificationConstants").LiveVideoTitle[j[o]];if(p)l.push(p);if(j[c("PageGetNotificationConstants").EpisodeSubscriptionType.episode]===c("PageNotifOptionSettingType").ON)l.push(c("PageGetNotificationConstants").Title.episode);return l.length===0?c("PageGetNotificationConstants").Title.none:l.join(", ")},isNotifStatusOn:function i(j){return Object.values(j).filter(function(k){return k!==c("PageNotifOptionSettingType").OFF}).length>0},isNotifStatusAllOn:function i(j){return Object.values(j).filter(function(k){return k!==c("PageNotifOptionSettingType").ON}).length===0},titleForTurnOnNotificationOption:function i(j){if(!this.isNotifStatusOn(j))return c("PageGetNotificationConstants").Title.all_on;return[this.isNotifStatusAllOn(j)?c("PageGetNotificationConstants").Title.all_on:c("PageGetNotificationConstants").Title.on," (",this.subtitleForPageGetNotification(j),")"].join("")}};f.exports=h}),null);
__d("XPageFollowMutatorController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/page/follow_mutator/",{page_id:{type:"Int",required:true},status:{type:"Bool",defaultValue:false},location:{type:"Enum",required:true,enumType:0}})}),null);
__d("XPageGetNewsFeedSaveController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/save_get_news_feed/",{page_id:{type:"Int",required:true},follow:{type:"Enum",required:true,enumType:1},ref:{type:"Enum",enumType:1},location:{type:"Enum",enumType:0}})}),null);
__d("XPageGetNotificationSaveController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/save_get_notification/",{page_id:{type:"Int",required:true},type:{type:"Enum",enumType:1},all_notif:{type:"Bool",defaultValue:false},status:{type:"Bool",defaultValue:false},ref:{type:"Enum",required:true,enumType:1}})}),null);
__d("XPageUserFanningSettingsDialogController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/get_notification/",{tab:{type:"Enum",enumType:1},page_id:{type:"Int",required:true},__asyncDialog:{type:"Int"}})}),null);
__d("XUnsnoozeController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/async/nf-controls/snooze/unsnooze/",{})}),null);
__d("PagesLikeFollowHelper",["ix","cx","fbt","AsyncRequest","Image.react","Layout.react","Link.react","React","ReactXUIMenu","PageGetNotificationUtil","ProfileSubFollowStatus","PagesLikeFollowNotifDispatcher","PagesLikeFollowNotifActions","PagesProfileTestID","XPageFollowMutatorController","XPageGetNewsFeedSaveController","XPageGetNotificationSaveController","XPageUserFanningSettingsDialogController","XUnsnoozeController","XUIMenuStaticItem.react","collectDataAttributes","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){__p&&__p();var k=c("Layout.react").Column,l=c("Layout.react").FillColumn,m=c("ReactXUIMenu").SelectableItem,n={newsfeedTitleMenuItem:function o(p){var q=c("XPageUserFanningSettingsDialogController").getURIBuilder().setEnum("tab","newsfeed").setInt("page_id",p).getURI(),r=j._("IN YOUR NEWS FEED");return this._getStaticMenuItem(r,q,"newsfeed_header")},notificationTitleMenuItem:function o(p){var q=c("XPageUserFanningSettingsDialogController").getURIBuilder().setEnum("tab","notif").setInt("page_id",p).getURI(),r=j._("NOTIFICATIONS");return this._getStaticMenuItem(r,q,"notification_header")},_getStaticMenuItem:function o(p,q,r){return c("React").createElement(c("XUIMenuStaticItem.react"),{className:"pageLikeHoverButton/headerItem",key:r},c("React").createElement(c("Layout.react"),null,c("React").createElement(l,null,c("React").createElement("div",{className:"_47vj"},p)),c("React").createElement(k,null,c("React").createElement(c("Link.react"),{href:"#",ajaxify:q,rel:"dialog"},c("React").createElement(c("Image.react"),{src:h("124952")})))))},newsfeedMenuItem:function o(p,q,r){return c("React").createElement(m,{className:"_4bjg"+(r===q?" _5jwm":""),"data-testid":q==c("ProfileSubFollowStatus").SEE_FIRST?c("PagesProfileTestID").SEE_FIRST_ITEM:c("PagesProfileTestID").DEFAULT_FOLLOW_ITEM,key:q,onclick:function(){return this.onNewsFeedChange(p,q)}.bind(this),selected:false},c("React").createElement(c("Image.react"),{className:"_47vl",src:h("128986")}),c("React").createElement(c("Image.react"),{className:"_47vm",src:h("114569")}),c("React").createElement("div",{className:"_5jwn"},this.newsfeedNewsfeedItemText(q)))},newsfeedNewsfeedItemText:function o(p){var q=null;switch(p){case c("ProfileSubFollowStatus").SEE_FIRST:q=j._("See First");break;case c("ProfileSubFollowStatus").REGULAR_FOLLOW:q=j._("Default");break;case c("ProfileSubFollowStatus").UNFOLLOW:q=j._("Unfollow");break}return q},notificationMenuItem:function o(p,q,r,s){var t=q?c("PageGetNotificationUtil").titleForTurnOnNotificationOption(s):j._("All Off");return c("React").createElement(m,{className:"_4bjg"+(r?" _5jwm":""),key:"off",onclick:function(){return this._onNotificationsClick(p,q)}.bind(this),selected:false},c("React").createElement(c("Image.react"),{className:"_47vl",src:h("128986")}),c("React").createElement(c("Image.react"),{className:"_47vm",src:h("114569")}),c("React").createElement("div",{className:"_5jwn"},t))},onNewsFeedChange:function o(p,q){this._informNewsFeedChange(p,q);var r=c("XPageGetNewsFeedSaveController").getURIBuilder().setInt("page_id",p).setEnum("follow",q).setEnum("ref","dialog").getURI();new(c("AsyncRequest"))().setURI(r).setHandler(function(s){var t=s.payload;this._informFollowChange(p,t.followStatus)}.bind(this)).send()},onFollowChange:function o(p,q){var r=arguments.length<=2||arguments[2]===undefined?0:arguments[2],s=arguments[3];this._informFollowChange(p,q);if(q)this._informNewsFeedChange(p,c("ProfileSubFollowStatus").REGULAR_FOLLOW);var t=!!r?r:141,u=c("XPageFollowMutatorController").getURIBuilder().setInt("page_id",p).setBool("status",q).setEnum("location",t).getURI();new(c("AsyncRequest"))().setURI(u).setHandler(function(v){s&&s()}).send()},onFollowChangeWithTrackingData:function o(p,q,r){var s=arguments.length<=3||arguments[3]===undefined?0:arguments[3],t=arguments[4],u={ft:{}};if(p)u={ft:c("collectDataAttributes")(p,["ft"]).ft};this._informFollowChange(q,r);if(r)this._informNewsFeedChange(q,c("ProfileSubFollowStatus").REGULAR_FOLLOW);var v=!!s?s:141,w=c("XPageFollowMutatorController").getURIBuilder().setInt("page_id",q).setBool("status",r).setEnum("location",v).getURI();new(c("AsyncRequest"))().setURI(w).setData(u).setHandler(function(x){t&&t()}).send()},onSnoozeChange:function o(p,q){this._informSnoozeChange(p,q);var r=c("XUnsnoozeController").getURIBuilder().getURI();new(c("AsyncRequest"))().setURI(r).setData({snoozee_id:p}).setMethod("POST").setHandler(function(s){if(s.getPayload()===false)this._informSnoozeChange(p,true)}.bind(this)).setErrorHandler(function(){return this._informSnoozeChange(p,true)}.bind(this)).send()},_informNewsFeedChange:function o(p,q){c("PagesLikeFollowNotifDispatcher").dispatch({type:c("PagesLikeFollowNotifActions").NEWS_FEED_CHANGE,data:{pageID:p,newsFeedStatus:q}})},_informSnoozeChange:function o(p,q){c("PagesLikeFollowNotifDispatcher").dispatch({type:c("PagesLikeFollowNotifActions").SNOOZE_CHANGED,data:{pageID:p,snoozeStatus:q}})},_onNotificationsClick:function o(p,q,r){this._informNotificationChange(p,q);var s=c("XPageGetNotificationSaveController").getURIBuilder().setInt("page_id",p).setBool("status",q).setBool("all_notif",true).setEnum("ref","www_timeline").getURI();new(c("AsyncRequest"))().setURI(s).setHandler(function(t){this._informFollowChange(p,t.payload.followStatus)}.bind(this)).send()},_informFollowChange:function o(p,q){c("PagesLikeFollowNotifDispatcher").dispatch({type:c("PagesLikeFollowNotifActions").FOLLOW_CHANGED,data:{pageID:p,followStatus:q}})},_informNotificationChange:function o(p,q){var r=q?c("PagesLikeFollowNotifActions").NOTIF_ALL_ON:c("PagesLikeFollowNotifActions").NOTIF_ALL_OFF;c("PagesLikeFollowNotifDispatcher").dispatch({type:r,data:{pageID:p}})}};f.exports=n}),null);
__d("PagesHeaderFollowButton.react",["ix","cx","fbt","BasicFBNux","ContextualDialogArrow","Image.react","Link.react","PageGetNotificationUtil","PagesButton.react","PagesLikeFollowHelper","PagesProfileTestID","PopoverMenu.react","PopoverMenuOverlappingBorder","PopoverMenuShowOnHover","ProfileSubFollowStatus","React","ReactXUIMenu","SnoozedProfileTypedLogger","XUIAmbientNUX.react","XUIButton.react","XUIMenuSeparator.react","XUIPopoverButton.react","XUIText.react","asset","fbglyph","gkx","uuid"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("ReactXUIMenu").SelectableMenu,n=c("ReactXUIMenu").Item,o=4225,p=5571;k=babelHelpers.inherits(q,c("React").Component);l=k&&k.prototype;function q(){__p&&__p();var r,s;for(var t=arguments.length,u=Array(t),v=0;v<t;v++)u[v]=arguments[v];return s=(r=l.constructor).call.apply(r,[this].concat(u)),this.$PagesHeaderFollowButton8=function(){if(this.props.snoozeStatus)new(c("SnoozedProfileTypedLogger"))().setEvent("cancel_end_snooze").setItemObjID(this.props.pageID).setSessionID(this.$PagesHeaderFollowButton1).log()}.bind(this),this.$PagesHeaderFollowButton9=function(event){if(c("gkx")("AT6MZ5ZRlgEf2bedgEASGvEyincZq_XgZfJwcwy3igqhf5fj66SPxd6pMonVxdKGDaP3Od_7h5-NJvaBAZG_FXVSf_YksT8mBoQ9IjuJhoInkw"))c("PagesLikeFollowHelper").onFollowChangeWithTrackingData(event.target,this.props.pageID,true,this.props.followLocation);else c("PagesLikeFollowHelper").onFollowChange(this.props.pageID,true,this.props.followLocation);if(this.props.shouldShowFollowPrivacyNux){this.setState({privacyNuxShown:true});c("BasicFBNux").onView(o)}}.bind(this),this.$PagesHeaderFollowButton11=function(event){if(c("gkx")("AT6MZ5ZRlgEf2bedgEASGvEyincZq_XgZfJwcwy3igqhf5fj66SPxd6pMonVxdKGDaP3Od_7h5-NJvaBAZG_FXVSf_YksT8mBoQ9IjuJhoInkw"))c("PagesLikeFollowHelper").onFollowChangeWithTrackingData(event.target,this.props.pageID,false,this.props.followLocation);else c("PagesLikeFollowHelper").onFollowChange(this.props.pageID,false,this.props.followLocation)}.bind(this),s}q.getButtonSize=function(r){return c("XUIButton.react").getButtonSize(r)};q.prototype.componentWillMount=function(){this.$PagesHeaderFollowButton1=c("uuid")();if(this.props.shouldShowFollowButtonNux===true)c("BasicFBNux").onView(p);this.setState({privacyNuxShown:false,followButtonNuxShown:this.props.shouldShowFollowButtonNux})};q.prototype.componentWillUnmount=function(){this.$PagesHeaderFollowButton1=null};q.prototype.render=function(){__p&&__p();if(!this.props.followAllowed)return null;var r=void 0,s=void 0;if(this.props.snoozeStatus){r=this.$PagesHeaderFollowButton2();s=this.$PagesHeaderFollowButton3();new(c("SnoozedProfileTypedLogger"))().setEvent("profile_visit").setItemObjID(this.props.pageID).setSessionID(this.$PagesHeaderFollowButton1).log()}else{if(!this.props.followStatus)return this.$PagesHeaderFollowButton4();else if(this.props.disableDropdown)return this.$PagesHeaderFollowButton5();r=this.$PagesHeaderFollowButton6();s=this.$PagesHeaderFollowButton7()}var t=c("React").createElement(c("PopoverMenu.react"),{alignh:"right",behaviors:[c("PopoverMenuOverlappingBorder"),c("PopoverMenuShowOnHover")],layerBehaviors:[c("ContextualDialogArrow")],menu:c("React").createElement(m,{className:"_4bje"+(this.props.snoozeStatus?" _3qn5":""),multiple:true},s),onHide:this.$PagesHeaderFollowButton8},r);if(this.props.asPrimaryButton==="true")return c("React").createElement("div",{className:"_6534"},t);return t};q.prototype.$PagesHeaderFollowButton4=function(){if(this.props.blueFollowButton)return c("React").createElement(c("PagesButton.react"),{color:"fbblue",image:c("React").createElement(c("Image.react"),{className:"ctaButtonIcon",src:h("114929")}),label:c("React").createElement("span",{className:"blueButtonLabel"},j._("Follow")),onClick:this.$PagesHeaderFollowButton9});if(this.props.asPrimaryButton==="true")return c("React").createElement("span",{className:"_6534 uiContextualLayerParent"},c("React").createElement(c("XUIButton.react"),{"data-testid":this.props.origin+c("PagesProfileTestID").FOLLOW_BUTTON_ID,image:c("React").createElement(c("Image.react"),{src:h("114929")}),label:j._("Follow"),onClick:this.$PagesHeaderFollowButton9,ref:"followButton",size:"large",use:"confirm"}),this.$PagesHeaderFollowButton10());return c("React").createElement(c("XUIButton.react"),{"data-testid":this.props.origin+c("PagesProfileTestID").FOLLOW_BUTTON_ID,image:c("React").createElement(c("Image.react"),{src:h("127712")}),label:j._("Follow"),onClick:this.$PagesHeaderFollowButton9,size:this.props.size})};q.prototype.$PagesHeaderFollowButton5=function(){if(this.props.blueFollowButton)return c("React").createElement(c("PagesButton.react"),{color:"fbblue",image:c("React").createElement(c("Image.react"),{className:"ctaButtonIcon",src:h("114932")}),label:c("React").createElement("span",{className:"blueButtonLabel"},j._("Following")),onClick:this.$PagesHeaderFollowButton11});return c("React").createElement(c("XUIButton.react"),{image:c("React").createElement(c("Image.react"),{src:h("116498")}),label:j._("Following"),onClick:this.$PagesHeaderFollowButton11,size:this.props.size})};q.prototype.$PagesHeaderFollowButton6=function(){if(this.props.asPrimaryButton==="true")return c("React").createElement("div",null,c("React").createElement(c("XUIPopoverButton.react"),{"data-testid":this.props.origin+c("PagesProfileTestID").FOLLOWED_BUTTON_ID,image:c("React").createElement(c("Image.react"),{src:h("116533")}),label:j._("Following"),ref:"followedButton",size:"large"}),this.renderLayers());return c("React").createElement("div",null,c("React").createElement(c("XUIPopoverButton.react"),{"data-testid":this.props.origin+c("PagesProfileTestID").FOLLOWED_BUTTON_ID,image:c("React").createElement(c("Image.react"),{src:h("116498")}),label:j._("Following"),ref:"followedButton",size:this.props.size}),this.renderLayers())};q.prototype.$PagesHeaderFollowButton2=function(){return c("React").createElement("div",null,c("React").createElement(c("XUIPopoverButton.react"),{className:this.props.origin==="hovercard"?"_29kr":"",image:c("React").createElement(c("Image.react"),{src:h("396312")}),label:(this.props.snoozeData||{}).stateText,ref:"snoozedButton",size:this.props.size}))};q.prototype.renderLayers=function(){return c("React").createElement(c("XUIAmbientNUX.react"),{contextRef:function(){return this.refs.followedButton}.bind(this),shown:this.state.privacyNuxShown,position:"right",onCloseButtonClick:function(){return this.$PagesHeaderFollowButton12()}.bind(this),key:"ambientNUX"},j._("You can control who can see the people, Pages, and lists you follow {hyperlink for help center}.",[j.param("hyperlink for help center",c("React").createElement(c("Link.react"),{href:"/ajax/timeline/friends/edit_dialog.php",rel:"dialog"},j._("here")))]))};q.prototype.$PagesHeaderFollowButton12=function(){this.setState({privacyNuxShown:false});c("BasicFBNux").onDismiss(o)};q.prototype.$PagesHeaderFollowButton10=function(){return c("React").createElement(c("XUIAmbientNUX.react"),{contextRef:function(){return this.refs.followButton}.bind(this),onCloseButtonClick:function(){return this.$PagesHeaderFollowButton13()}.bind(this),position:"below",shown:this.state.followButtonNuxShown,key:"ambientNUX"},c("React").createElement(c("Image.react"),{className:"_2tv4",src:h("418478")}),c("React").createElement("div",{className:"_2tv5"},j._("Follow this show to get new episodes in your watchlist on Facebook Watch.")))};q.prototype.$PagesHeaderFollowButton13=function(){this.setState({followButtonNuxShown:false});c("BasicFBNux").onDismiss(p)};q.prototype.$PagesHeaderFollowButton3=function(){return[c("React").createElement(n,{className:"_10it",key:"Unsnooze."+this.props.pageID,onclick:function(){c("PagesLikeFollowHelper").onSnoozeChange(this.props.pageID,false);new(c("SnoozedProfileTypedLogger"))().setEvent("end_snooze").setItemObjID(this.props.pageID).setSessionID(this.$PagesHeaderFollowButton1).log()}.bind(this)},c("React").createElement(c("XUIText.react"),{size:"meta1",display:"block"},(this.props.snoozeData||{}).actionText),c("React").createElement(c("XUIText.react"),{size:"meta1",className:"_34kz"},(this.props.snoozeData||{}).timeLeftText))]};q.prototype.$PagesHeaderFollowButton7=function(){var r=c("PageGetNotificationUtil").isNotifStatusOn(this.props.notifStatus);return[c("React").createElement(n,{"data-testid":c("PagesProfileTestID").UNFOLLOW_PAGE_ITEM,key:"Unfollow."+this.props.pageID,onclick:this.$PagesHeaderFollowButton11},j._("Unfollow this Page")),c("React").createElement(c("XUIMenuSeparator.react"),{key:"follow_seperator"}),c("PagesLikeFollowHelper").newsfeedTitleMenuItem(this.props.pageID),c("PagesLikeFollowHelper").newsfeedMenuItem(this.props.pageID,c("ProfileSubFollowStatus").SEE_FIRST,this.props.newsFeedStatus),c("PagesLikeFollowHelper").newsfeedMenuItem(this.props.pageID,c("ProfileSubFollowStatus").REGULAR_FOLLOW,this.props.newsFeedStatus),c("PagesLikeFollowHelper").newsfeedMenuItem(this.props.pageID,c("ProfileSubFollowStatus").UNFOLLOW,this.props.newsFeedStatus),c("PagesLikeFollowHelper").notificationTitleMenuItem(this.props.pageID),c("PagesLikeFollowHelper").notificationMenuItem(this.props.pageID,true,r,this.props.notifStatus),c("PagesLikeFollowHelper").notificationMenuItem(this.props.pageID,false,!r,this.props.notifStatus)]};f.exports=q}),null);
__d("PagesLikeStore",["FluxReduceStore","PagesLikeFollowNotifActions","PagesLikeFollowNotifDispatcher"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("FluxReduceStore"));i=h&&h.prototype;j.prototype.getInitialState=function(){return{}};j.prototype.reduce=function(k,l){var m=babelHelpers["extends"]({},k);switch(l.type){case c("PagesLikeFollowNotifActions").LIKE:case c("PagesLikeFollowNotifActions").UNLIKE:case c("PagesLikeFollowNotifActions").INIT_DATA:m[l.data.pageID]=l.data.likeStatus}return m};function j(){h.apply(this,arguments)}f.exports=new j(c("PagesLikeFollowNotifDispatcher"))}),null);
__d("PagesSnoozeStore",["FluxReduceStore","PagesLikeFollowNotifActions","PagesLikeFollowNotifDispatcher"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("FluxReduceStore"));i=h&&h.prototype;j.prototype.getInitialState=function(){return{}};j.prototype.reduce=function(k,l){var m=babelHelpers["extends"]({},k);switch(l.type){case c("PagesLikeFollowNotifActions").SNOOZE_CHANGED:case c("PagesLikeFollowNotifActions").INIT_DATA:m[l.data.pageID]=babelHelpers["extends"]({},m[l.data.pageID]);m[l.data.pageID].status=l.data.snoozeStatus;m[l.data.pageID].data=l.data.snoozeData||m[l.data.pageID].data}return m};function j(){h.apply(this,arguments)}f.exports=new j(c("PagesLikeFollowNotifDispatcher"))}),null);
__d("PagesHeaderFollowButtonContainer.react",["FluxContainer","PageNewsFeedStore","PagesFollowStore","PagesGetNotificationStore","PagesHeaderFollowButton.react","PagesLikeFollowNotifActions","PagesLikeFollowNotifDispatcher","PagesLikeStore","PagesSnoozeStore","React","XUIButton.react"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;j.getButtonSize=function(k){return c("XUIButton.react").getButtonSize(k)};j.getStores=function(){return[c("PagesLikeStore"),c("PagesFollowStore"),c("PagesSnoozeStore"),c("PageNewsFeedStore"),c("PagesGetNotificationStore")]};j.calculateState=function(k,l){var m=c("PagesLikeStore").getState(),n=c("PagesFollowStore").getState(),o=c("PagesSnoozeStore").getState()[l.pageID]||{},p=c("PagesGetNotificationStore").getState(),q=c("PageNewsFeedStore").getState(),r={pageID:l.pageID,pageName:l.pageName,actorID:l.actorID,followAllowed:l.followAllowed,followLocation:l.followLocation,newsFeedStatus:q[l.pageID],disableDropdown:l.disableDropdown,shouldShowFollowPrivacyNux:l.shouldShowFollowPrivacyNux,likeStatus:m[l.pageID],followStatus:n[l.pageID],snoozeStatus:o.status,snoozeData:o.data,notifStatus:babelHelpers["extends"]({},p[l.pageID]),origin:l.origin,size:l.size,showUnpublishPageDialog:l.showUnpublishPageDialog,blueFollowButton:l.blueFollowButton,asPrimaryButton:l.asPrimaryButton,shouldShowFollowButtonNux:l.shouldShowFollowButtonNux};return r};j.prototype.componentWillMount=function(){c("PagesLikeFollowNotifDispatcher").explicitlyRegisterStores([c("PagesLikeStore"),c("PagesFollowStore"),c("PagesSnoozeStore"),c("PageNewsFeedStore"),c("PagesGetNotificationStore")]);c("PagesLikeFollowNotifDispatcher").dispatch({data:this.props,type:c("PagesLikeFollowNotifActions").INIT_DATA})};j.prototype.render=function(){return c("React").createElement(c("PagesHeaderFollowButton.react"),this.state)};function j(){h.apply(this,arguments)}f.exports=c("FluxContainer").create(j,{withProps:true})}),null);
__d("PagesHeaderLikeButton.react",["ix","cx","fbt","BootloadedComponent.react","ContextualDialogArrow","DOM","Image.react","JSResource","PageGetNotificationUtil","PageLikeButton","ProfileSubFollowStatus","PagesLikeButtonAnimationGKConfig","PagesLikeFollowHelper","PopoverMenu.react","PopoverMenuOverlappingBorder","PopoverMenuShowOnHover","React","ReactDOM","ReactXUIMenu","PagesProfileTestID","XUIButton.react","XUIMenuSeparator.react","XUIPopoverButton.react","XUISpinner.react","fbglyph","goURI"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("ReactXUIMenu").SelectableMenu,n=c("ReactXUIMenu").Item;k=babelHelpers.inherits(o,c("React").Component);l=k&&k.prototype;function o(p){l.constructor.call(this,p);this.state={changeToLiked:false}}o.getButtonSize=function(p){return c("XUIButton.react").getButtonSize(p)};o.prototype.componentWillReceiveProps=function(p){if(p.likeStatus!==this.props.likeStatus&&p.likeStatus)this.setState({changeToLiked:true})};o.prototype.render=function(){__p&&__p();if(!this.props.likeStatus)return this.$PagesHeaderLikeButton1();else if(this.props.disableDropdown)return this.$PagesHeaderLikeButton2();var p=[c("React").createElement(n,{"data-testid":c("PagesProfileTestID").UNLIKE_PAGE_ITEM,key:"Unlike."+this.props.pageID,onclick:function(event){return this.$PagesHeaderLikeButton3(event)}.bind(this)},j._("Unlike this Page"))];if(!this.props.followAllowed){p.push(c("React").createElement(c("XUIMenuSeparator.react"),{key:"like_seperator"}));p.push(c("PagesLikeFollowHelper").newsfeedTitleMenuItem(this.props.pageID));p.push(c("PagesLikeFollowHelper").newsfeedMenuItem(this.props.pageID,c("ProfileSubFollowStatus").SEE_FIRST,this.props.newsFeedStatus));p.push(c("PagesLikeFollowHelper").newsfeedMenuItem(this.props.pageID,c("ProfileSubFollowStatus").REGULAR_FOLLOW,this.props.newsFeedStatus));var q=c("PageGetNotificationUtil").isNotifStatusOn(this.props.notifStatus);p.push(c("PagesLikeFollowHelper").notificationTitleMenuItem(this.props.pageID));p.push(c("PagesLikeFollowHelper").notificationMenuItem(this.props.pageID,true,q,this.props.notifStatus));p.push(c("PagesLikeFollowHelper").notificationMenuItem(this.props.pageID,false,!q,this.props.notifStatus))}return c("React").createElement(c("PopoverMenu.react"),{alignh:"right",behaviors:[c("PopoverMenuOverlappingBorder"),c("PopoverMenuShowOnHover")],layerBehaviors:[c("ContextualDialogArrow")],menu:c("React").createElement(m,{className:this.props.followAllowed?null:"_4bje",multiple:true},p)},this.$PagesHeaderLikeButton4())};o.prototype.$PagesHeaderLikeButton1=function(){return c("React").createElement(c("XUIButton.react"),{className:"likeButton","data-testid":this.props.origin+c("PagesProfileTestID").LIKE_BUTTON_ID,image:c("React").createElement(c("Image.react"),{src:h("127974")}),label:j._("Like"),onClick:function(event){return this.$PagesHeaderLikeButton5(event)}.bind(this),size:this.props.size})};o.prototype.$PagesHeaderLikeButton2=function(){return c("React").createElement(c("XUIButton.react"),{className:"likedButton",image:c("React").createElement(c("Image.react"),{src:h("116760")}),label:j._("Liked"),onClick:function(event){return this.$PagesHeaderLikeButton3(event)}.bind(this),size:this.props.size})};o.prototype.$PagesHeaderLikeButton4=function(){var p=c("PagesLikeButtonAnimationGKConfig").show_animation;return c("React").createElement(c("XUIPopoverButton.react"),{className:"likedButton"+(this.state.changeToLiked&&p?" _2ws0":"")+(this.state.changeToLiked&&p?" _be8":""),"data-testid":this.props.origin+c("PagesProfileTestID").LIKED_BUTTON_ID,image:c("React").createElement(c("Image.react"),{className:this.state.changeToLiked&&p?"_2wsk":"",src:h("116760")}),label:j._("Liked"),size:this.props.size})};o.prototype.$PagesHeaderLikeButton3=function(event){c("PageLikeButton").doUnlikeAction(event,this.props.pageID,this.props.origin,this.props.actorID)};o.prototype.$PagesHeaderLikeButton5=function(event){if(!this.props.pageID||!this.props.actorID)c("goURI")("/");if(this.props.showUnpublishPageDialog)this.$PagesHeaderLikeButton6();c("PageLikeButton").doLikeAction(event.target,this.props.pageID,this.props.origin,this.props.actorID)};o.prototype.$PagesHeaderLikeButton6=function(){c("ReactDOM").render(c("React").createElement(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("PageUnpublishPageLikeWarningDialog.react").__setRef("PagesHeaderLikeButton.react"),bootloadPlaceholder:c("React").createElement(c("XUISpinner.react"),null),pageid:this.props.pageID,pageName:this.props.pageName}),c("DOM").create("div"))};f.exports=o}),null);
__d("PagesHeaderLikeButtonContainer.react",["FluxContainer","PageNewsFeedStore","PagesFollowStore","PagesGetNotificationStore","PagesHeaderLikeButton.react","PagesLikeFollowNotifActions","PagesLikeFollowNotifDispatcher","PagesLikeStore","PagesSnoozeStore","React","XUIButton.react"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;j.getButtonSize=function(k){return c("XUIButton.react").getButtonSize(k)};j.getStores=function(){return[c("PagesLikeStore"),c("PagesFollowStore"),c("PagesSnoozeStore"),c("PageNewsFeedStore"),c("PagesGetNotificationStore")]};j.calculateState=function(k,l){var m=c("PagesLikeStore").getState(),n=c("PagesFollowStore").getState(),o=c("PagesSnoozeStore").getState()[l.pageID]||{},p=c("PagesGetNotificationStore").getState(),q=c("PageNewsFeedStore").getState(),r={pageID:l.pageID,pageName:l.pageName,actorID:l.actorID,followAllowed:l.followAllowed,newsFeedStatus:q[l.pageID],disableDropdown:l.disableDropdown,likeStatus:m[l.pageID],followStatus:n[l.pageID],snoozeStatus:o.status,snoozeData:o.data,notifStatus:babelHelpers["extends"]({},p[l.pageID]),origin:l.origin,size:l.size,showUnpublishPageDialog:l.showUnpublishPageDialog,shouldShowFollowPrivacyNux:l.shouldShowFollowPrivacyNux,blueFollowButton:l.blueFollowButton,shouldShowFollowButtonNux:l.shouldShowFollowButtonNux};return r};j.prototype.componentWillMount=function(){c("PagesLikeFollowNotifDispatcher").explicitlyRegisterStores([c("PagesLikeStore"),c("PagesFollowStore"),c("PageNewsFeedStore"),c("PagesGetNotificationStore")]);c("PagesLikeFollowNotifDispatcher").dispatch({data:this.props,type:c("PagesLikeFollowNotifActions").INIT_DATA})};j.prototype.render=function(){return c("React").createElement(c("PagesHeaderLikeButton.react"),this.state)};function j(){h.apply(this,arguments)}f.exports=c("FluxContainer").create(j,{withProps:true})}),null);
__d("PagesActionBarChannel.react",["cx","PageActionBarActionSelector.react","PageActionContainer.react","PageActionInlineLoginWrapper.react","PageCallToActionRef","PageCTAAction.react","PagesHeaderFollowButtonContainer.react","PagesHeaderLikeButtonContainer.react","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=function i(j){return c("React").createElement("div",{className:"_51xa _5hgz"},j.customActionsData.slice(0,j.numberOfActionBarButtons).map(function(k,l){switch(k.__typename){case"PageLikeAction":return c("React").createElement(c("PagesHeaderLikeButtonContainer.react"),babelHelpers["extends"]({},j.likeFollowData,{key:k.__typename+l,size:"large"}));case"PageFollowAction":return c("React").createElement(c("PagesHeaderFollowButtonContainer.react"),babelHelpers["extends"]({},j.likeFollowData,{key:k.__typename+l,size:"large",asPrimaryButton:"false"}));case"PageCTAAction":return c("React").createElement(c("PageCTAAction.react"),babelHelpers["extends"]({},k,{className:"_rfh",key:k.__typename+l,surface:c("PageCallToActionRef").PAGES_ACTION_BAR_CHANNEL}));default:return c("React").createElement(c("PageActionContainer.react"),{action:k,className:"_rfh",key:k.__typename+l,size:"large"})}}).map(function(k,l){return j.next&&j.loggedOutSEOEnabled?c("React").createElement(c("PageActionInlineLoginWrapper.react"),{key:l,loggedOutSEOEnabled:j.loggedOutSEOEnabled,next:j.next},k):k}),c("React").createElement(c("PageActionBarActionSelector.react"),{actions:j.customActionsData.slice(j.numberOfActionBarButtons)}))};f.exports=i}),null);
__d("PagesHeaderDispatcher",["ExplicitRegistrationReactDispatcher"],(function a(b,c,d,e,f,g){"use strict";f.exports=new(c("ExplicitRegistrationReactDispatcher"))({strict:true})}),null);
__d("PagesHeaderPayloadType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({ACTIONS_UNIT_DATA:"actions_unit_data",COVER_PHOTO_CANCEL:"cover_photo_cancel",COVER_PHOTO_DATA:"cover_photo_data",COVER_VIDEO_DATA:"cover_video_data",COVER_VIDEO_UPLOAD_START:"cover_video_upload_start",COVER_VIDEO_UPLOAD_PROGRESSING:"cover_video_upload_progressing",COVER_VIDEO_UPLOAD_DONE:"cover_video_upload_done",COVER_VIDEO_ENCODE_PROGRESSING:"cover_video_encode_progressing",COVER_VIDEO_ENCODE_DONE:"cover_video_encode_done",COVER_VIDEO_PREVIEW:"cover_video_preview",COVER_VIDEO_PUBLISHING:"cover_video_publishing",COVER_VIDEO_PUBLISHED:"cover_video_published",COVER_VIDEO_CANCELLED:"cover_video_cancelled",PROFILE_PICTURE_DATA:"profile_picture_data"})}),null);
__d("PagesActionsUnitStore",["FluxReduceStore","PagesHeaderDispatcher","PagesHeaderPayloadType"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("FluxReduceStore"));i=h&&h.prototype;j.prototype.getInitialState=function(){return{callToAction:null,likeFollowData:null,messageData:null,moreMenuItemConfigs:[],pageID:"0",customActionsData:[],numberOfActionBarButtons:3,primaryFollowButtonInBar:false}};j.prototype.reduce=function(k,l){switch(l.type){case c("PagesHeaderPayloadType").ACTIONS_UNIT_DATA:return babelHelpers["extends"]({},k,l.data)}return k};function j(){h.apply(this,arguments)}f.exports=new j(c("PagesHeaderDispatcher"))}),null);
__d("PagesActionBarChannelContainer.react",["FluxContainer","PagesActionBarChannel.react","PagesActionsUnitStore","PagesHeaderDispatcher","PagesHeaderFollowButtonContainer.react","PagesHeaderPayloadType","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;j.getStores=function(){return[c("PagesActionsUnitStore")]};j.calculateState=function(){return c("PagesActionsUnitStore").getState()};j.prototype.componentWillMount=function(){c("PagesHeaderDispatcher").explicitlyRegisterStore(c("PagesActionsUnitStore"));c("PagesHeaderDispatcher").dispatch({data:this.props,type:c("PagesHeaderPayloadType").ACTIONS_UNIT_DATA})};j.prototype.render=function(){return c("React").createElement("div",null,this.state.primaryFollowButtonInBar?c("React").createElement(c("PagesHeaderFollowButtonContainer.react"),babelHelpers["extends"]({},this.state.likeFollowData,{asPrimaryButton:"true"})):null,c("React").createElement(c("PagesActionBarChannel.react"),this.state))};function j(){h.apply(this,arguments)}f.exports=c("FluxContainer").create(j)}),null);
__d("PagesPrimaryButtonsActionChannel.react",["cx","Layout.react","PageActionContainer.react","PageActionInlineLoginWrapper.react","PageCallToActionRef","PageCTAAction.react","React"],(function a(b,c,d,e,f,g,h){"use strict";var i=c("Layout.react").Column,j=c("Layout.react").FillColumn,k=function k(l){var m=l.primaryButtons,n=m[0],o=m[1];if(!n)return null;return c("React").createElement(c("Layout.react"),{className:"_2iar"},c("React").createElement(j,null,n.__typename==="PageCTAAction"?c("React").createElement(c("PageActionInlineLoginWrapper.react"),{loggedOutSEOEnabled:l.loggedOutSEOEnabled,next:l.next},c("React").createElement(c("PageCTAAction.react"),babelHelpers["extends"]({},n,{className:(o?"_147q":"")+" _604m",surface:c("PageCallToActionRef").PAGES_ACTIONS_UNIT_SURFACE}))):c("React").createElement(c("PageActionInlineLoginWrapper.react"),{loggedOutSEOEnabled:l.loggedOutSEOEnabled,next:l.next},c("React").createElement(c("PageActionContainer.react"),{action:n,className:(!o?"_xah":"")+(!o?" _2ias":"")+(!o?" _2-sm":"")+(!o?" _1olk":""),size:"large"}))),o?c("React").createElement(i,{className:"_3-9b"},c("React").createElement(c("PageActionInlineLoginWrapper.react"),{loggedOutSEOEnabled:l.loggedOutSEOEnabled,next:l.next},c("React").createElement(c("PageActionContainer.react"),{action:o,size:"large"}))):null)};f.exports=k}),null);
__d("OptimisticVideoProgressBar.react",["cx","fbt","Arbiter","AsyncRequest","BUIProgressBar.react","ChannelConstants","React","Run","joinClasses"],(function a(b,c,d,e,f,g,h,i){__p&&__p();var j,k,l=c("React").PropTypes,m=5e3,n="video_encode";j=babelHelpers.inherits(o,c("React").Component);k=j&&j.prototype;function o(){__p&&__p();var p,q;"use strict";for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=k.constructor).call.apply(p,[this].concat(s)),this.state={videoProgress:0,completed:false,encodeToken:{}},this.inactivityTimer=null,this.stopInactivityTimer=function(){clearTimeout(this.inactivityTimer)}.bind(this),this.resetInactivityTimer=function(u){this.stopInactivityTimer();this.inactivityTimer=this.startInactivityTimer(u)}.bind(this),this.getChannelType=function(){return c("ChannelConstants").getArbiterType(n)},this.onEncodeFinished=function(){this.stopInactivityTimer();this.state.encodeToken.unsubscribe();this.setState({videoProgress:100,completed:true})}.bind(this),this.onEncodeUpdate=function(u,v){if(v.obj.videoID!=this.props.videoID)return;this.resetInactivityTimer(this.props.videoID);if(v.obj.progress<this.state.videoProgress)return;if(v.obj.stage==="finish")this.onEncodeFinished();else this.setState({videoProgress:v.obj.progress,completed:this.state.completed||v.obj.stage==="finish"})}.bind(this),q}o.prototype.componentWillMount=function(){"use strict";var p=c("Arbiter").subscribe(this.getChannelType(),this.onEncodeUpdate);c("Run").onLeave(function(){return p.unsubscribe()});this.inactivityTimer=this.startInactivityTimer(this.props.videoID);this.setState({encodeToken:p})};o.prototype.componentWillUnmount=function(){"use strict";this.state.encodeToken.unsubscribe();this.stopInactivityTimer()};o.prototype.componentDidUpdate=function(p,q){"use strict";if(!q.completed&&this.state.completed)this.onComplete()};o.prototype.checkVideoStatus=function(p){"use strict";new(c("AsyncRequest"))().setURI("/ajax/video/encode/feedback/ping/").setData({video_id:p}).setHandler(function(q){var r=q.getPayload();if(r.is_ready)this.onEncodeFinished(p);else this.inactivityTimer=this.startInactivityTimer(p)}.bind(this)).send()};o.prototype.startInactivityTimer=function(p){"use strict";return setTimeout(this.checkVideoStatus.bind(this,p),m)};o.prototype.onComplete=function(){"use strict";c("Arbiter").inform(this.props.onReadyEvent,{videoID:this.props.videoID,videoAssetID:this.props.videoAssetID,source:this.props.source})};o.prototype.render=function(){"use strict";var p=i._("FINISHED"),q=i._("PROCESSING"),r=this.state.completed?p:q;return c("React").createElement(c("BUIProgressBar.react"),{className:c("joinClasses")("_33bk",this.props.className),message:r,isComplete:this.state.completed,percentage:this.state.videoProgress,width:this.props.width})};o.propTypes={videoID:l.string.isRequired,videoAssetID:l.string||null,width:l.number.isRequired,onReadyEvent:l.string.isRequired,source:l.string};f.exports=o}),null);
__d("XPagesMessagePageOwnerController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/send_page_message/",{message:{type:"String",required:true},page_id:{type:"String",required:true}})}),null);
__d("PageContentTabMessageOwnerDialog",["fbt","cx","AbstractTextArea.react","AsyncRequest","LayerFadeOnHide","PageContentTabSuccessDialog.react","PageContentTabSuccessDialogTimer","React","ReactDOM","XUIDialog.react","XUIDialogBody.react","XUIDialogButton.react","XUIDialogFooter.react","XUIDialogTitle.react","XPagesMessagePageOwnerController","nullthrows"],(function a(b,c,d,e,f,g,h,i){__p&&__p();var j,k,l=c("React").PropTypes,m=5,n=c("PageContentTabSuccessDialogTimer").TIME_IN_MS;j=babelHelpers.inherits(o,c("React").Component);k=j&&j.prototype;function o(){__p&&__p();var q,r;"use strict";for(var s=arguments.length,t=Array(s),u=0;u<s;u++)t[u]=arguments[u];return r=(q=k.constructor).call.apply(q,[this].concat(t)),this.state={messageText:null,isSendingMessage:false},this.$PageContentTabMessageOwnerDialogComponent1=null,this.$PageContentTabMessageOwnerDialogComponent2=null,this.$PageContentTabMessageOwnerDialogComponent3=function(){if(this.$PageContentTabMessageOwnerDialogComponent2)this.setState({messageText:this.$PageContentTabMessageOwnerDialogComponent2.getValue()})}.bind(this),this.$PageContentTabMessageOwnerDialogComponent4=function(){this.setState({isSendingMessage:true});var v=c("XPagesMessagePageOwnerController").getURIBuilder().setString("message",c("nullthrows")(this.$PageContentTabMessageOwnerDialogComponent2).getValue()).setString("page_id",c("nullthrows")(this.props.pageID)).getURI();new(c("AsyncRequest"))().setURI(v).setHandler(function(w){var x=w.getPayload().threadID;this.setState({isSendingMessage:false,messageText:null});if(this.props.onMessageThreadInitiated)this.props.onMessageThreadInitiated(x)}.bind(this)).setErrorHandler(function(){this.setState({isSendingMessage:false})}.bind(this)).setFinallyHandler(function(w){this.props.callbackParent(true)}.bind(this)).send()}.bind(this),r}o.prototype.render=function(){"use strict";return c("React").createElement(c("XUIDialog.react"),{behaviors:{LayerFadeOnHide:c("LayerFadeOnHide")},shown:true,width:500},c("React").createElement(c("XUIDialogTitle.react"),null,c("React").createElement("div",null,h._("Message to"),"\xa0",this.props.username)),c("React").createElement(c("XUIDialogBody.react"),null,c("React").createElement(c("AbstractTextArea.react"),{autoFocus:true,className:"_3k3a",disabled:this.state.isSendingMessage,ref:function(q){return this.$PageContentTabMessageOwnerDialogComponent2=q}.bind(this),onChange:this.$PageContentTabMessageOwnerDialogComponent3,placeholder:h._("Send a message to {Account Name}",[h.param("Account Name",this.props.username)]),rows:m})),c("React").createElement(c("XUIDialogFooter.react"),null,c("React").createElement(c("XUIDialogButton.react"),{action:"confirm",disabled:this.state.isSendingMessage||this.state.messageText==null||this.state.messageText.trim().length===0,label:h._("Send Message"),onClick:this.$PageContentTabMessageOwnerDialogComponent4,use:"confirm"})))};o.propTypes={existingThreadID:l.string,username:l.string,callbackParent:l.func,onChatThreadOpen:l.func,onMessageThreadInitiated:l.func};var p={onChildChanged:function q(r){if(r===true)this.hideWithSuccessMessage("Message Sent!")},show:function q(r,s){if(!this._container)this._container=document.createElement("div");c("ReactDOM").render(c("React").createElement(o,{username:r,pageID:s,callbackParent:function(t){return this.onChildChanged(t)}.bind(this)}),this._container)},hide:function q(){if(!this._container)return;this.destroy()},hideWithSuccessMessage:function q(r){if(!this._container)return;c("ReactDOM").render(c("React").createElement(c("PageContentTabSuccessDialog.react"),{successLabel:r}),this._container);setTimeout(this.destroy.bind(this),n)},destroy:function q(){c("ReactDOM").unmountComponentAtNode(this._container);this._container=null}};f.exports=p}),null);
__d("XPageCreationAsyncDialogController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/create/dialog/",{ref_page_id:{type:"FBID"},ref_type:{type:"String"},draft_page_name:{type:"String"}})}),null);
__d("PageCreatePageButton.react",["fbt","AsyncRequest","PageActionInlineLoginWrapper.react","React","XPageCreationAsyncDialogController","XUIButton.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").PureComponent);j=i&&i.prototype;function k(){var l,m;for(var n=arguments.length,o=Array(n),p=0;p<n;p++)o[p]=arguments[p];return m=(l=j.constructor).call.apply(l,[this].concat(o)),this.$PageCreatePageButton1=function(){var q=c("XPageCreationAsyncDialogController").getURIBuilder().setFBID("ref_page_id",this.props.fbid).setString("ref_type","page_profile_button").getURI();new(c("AsyncRequest"))().setURI(q).send()}.bind(this),m}k.prototype.render=function(){return c("React").createElement(c("PageActionInlineLoginWrapper.react"),{loggedOutSEOEnabled:this.props.loggedOutSEOEnabled,next:this.props.next},c("React").createElement(c("XUIButton.react"),{label:h._("Create a Page"),onClick:this.$PageCreatePageButton1,use:"special"}))};f.exports=k}),null);
__d("PagesCoverCameraButton.react",["cx","fbt","PageNuxIDEnum","PageNuxSurfaceEnum","PagesNuxFrameworkHelper","PagesProfileTestID","React","XUIAmbientNUX.react","XUIText.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").PureComponent);k=j&&j.prototype;function m(){__p&&__p();var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=k.constructor).call.apply(n,[this].concat(q)),this.state={showCoverSlideshowMenuOptionNux:false,cameraButtonRef:null},this.$PagesCoverCameraButton2=function(s){if(s===null)return;this.setState({cameraButtonRef:s})}.bind(this),this.$PagesCoverCameraButton3=function(){return this.state.cameraButtonRef}.bind(this),this.$PagesCoverCameraButton1=function(){this.setState({showCoverSlideshowMenuOptionNux:true})}.bind(this),this.$PagesCoverCameraButton4=function(){this.setState({showCoverSlideshowMenuOptionNux:false});c("PagesNuxFrameworkHelper").closeNux(c("PageNuxIDEnum").WWW_COVER_SLIDESHOW_MENU_OPTION_NUX,c("PageNuxSurfaceEnum").PAGE_TIMELINE)}.bind(this),o}m.prototype.componentDidMount=function(){if(this.props.shouldShowCoverSlideshowMenuOptionNux)c("PagesNuxFrameworkHelper").registerNux(c("PageNuxIDEnum").WWW_COVER_SLIDESHOW_MENU_OPTION_NUX,c("PageNuxSurfaceEnum").PAGE_TIMELINE,this.$PagesCoverCameraButton1)};m.prototype.render=function(){return c("React").createElement("div",{className:"_3oj-","data-testid":c("PagesProfileTestID").COVER_PHOTO_EDIT_MENU,ref:this.$PagesCoverCameraButton2},c("React").createElement(c("XUIAmbientNUX.react"),{alignment:"center",contextRef:this.$PagesCoverCameraButton3,onCloseButtonClick:this.$PagesCoverCameraButton4,position:"right",shown:this.props.shouldShowCoverSlideshowMenuOptionNux&&this.state.showCoverSlideshowMenuOptionNux&&!!this.state.cameraButtonRef,width:"normal"},c("React").createElement("div",null,c("React").createElement(c("XUIText.react"),{display:"block",weight:"bold"},i._("New! Cover Slideshow")),i._("Show people who visit your Page even more of what's important to you with a cover slideshow. Select Create Slideshow in the cover photo area to get started."))),c("React").createElement("div",{className:"_3oj_"+(this.props.expanded?" _3ok0":"")},c("React").createElement("div",{className:"_3ok1"},c("React").createElement("div",{className:"_4eqf _4eqi"})),c("React").createElement("div",{className:"_3ok2"},c("React").createElement("span",{className:"_3ok3"},this.props.label))))};m.propTypes={expanded:l.bool.isRequired,label:l.node.isRequired,shouldShowCoverSlideshowMenuOptionNux:l.bool.isRequired};f.exports=m}),null);
__d("PagesCoverAction",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({LOADING:"loading",NEW_COVER_DATA:"new_cover_data",COVER_REMOVING:"cover_removing",PHOTO_UPLOADING:"photo_uploading",PHOTO_PREVIEWING:"photo_previewing",PHOTO_SAVING:"photo_saving",PHOTO_SAVED:"photo_saved",PHOTO_CANCEL:"photo_cancel",PHOTO_REMOVED:"photo_removed",VIDEO_START_UPLOAD:"video_start_upload",VIDEO_UPLOADING:"video_uploading",VIDEO_ENCODING:"video_encoding",VIDEO_PREVIEWING:"video_previewing",VIDEO_CHOOSING_THUMBNAIL:"video_choosing_thumbnail",VIDEO_PUBLISHING:"video_publishing",VIDEO_PUBLISHED:"video_published",VIDEO_CANCELLING:"video_cancelling",SLIDESHOW_EDIT:"slideshow_edit",SLIDESHOW_DISPLAY:"slideshow_display",SLIDESHOW_PHOTO_PREVIEWING:"slideshow_photo_previewing",SLIDESHOW_CHANGE_CAROUSEL_INDEX:"slideshow_change_carousel_index",SLIDESHOW_PHOTO_UPLOADING:"slideshow_photo_uploading",SLIDESHOW_ITEM_REPOSITIONED:"slideshow_item_repositioned",SLIDESHOW_PHOTO_REMOVED:"slideshow_photo_removed",SLIDESHOW_EDITING_CANCELLED:"slideshow_editing_cancelled",SLIDESHOW_SAVING:"slideshow_saving",SLIDESHOW_CHANGE_ORDER:"slideshow_change_order",SLIDESHOW_NUX_TOUR_ELEMENT_LOADED:"slideshow_nux_tour_element_loaded",SLIDESHOW_NUX_TOUR_FINISHED:"slideshow_nux_tour_finished",SLIDESHOW_TOGGLE_CONTENT_SWITCHER:"slideshow_toggle_content_switcher",SLIDESHOW_PREFILLED_PHOTO_LOADED:"slideshow_prefilled_photo_loaded",SLIDESHOW_CLICK_CANCEL_BUTTON:"slideshow_click_cancel_button",LIVE_VIDEO_ENABLE:"live_video_enable",LIVE_VIDEO_DISABLE:"live_video_disable",ON_TOUR_BADGE_UPDATED:"on_tour_badge_updated"})}),null);
__d("EventTourBadgeEnum",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({NO_TOUR:"no_tour",TOUR_BADGE_HIDDEN:"tour_badge_hidden",TOUR_BADGE_SHOWN:"tour_badge_shown"})}),null);
__d("PagesCoverDispatcher",["ExplicitRegistrationReactDispatcher"],(function a(b,c,d,e,f,g){"use strict";f.exports=new(c("ExplicitRegistrationReactDispatcher"))({strict:true})}),null);
__d("PagesCoverType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({COVER_PHOTO:"cover_photo",COVER_SLIDESHOW:"cover_slideshow",COVER_TRAILER:"cover_trailer",COVER_VIDEO:"cover_video",COVER_LIVE_VIDEO:"cover_live_video",NO_COVER:"no_cover",LOADING:"loading"})}),null);
__d("PagesCoverCoreStore",["EventTourBadgeEnum","FluxReduceStore","PagesCoverAction","PagesCoverDispatcher","PagesCoverType","idx"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("FluxReduceStore"));i=h&&h.prototype;j.prototype.getInitialState=function(){return{canViewerEditProfile:false,currentCoverType:c("PagesCoverType").COVER_PHOTO,hasCoverSet:false,futureCoverType:null,shouldShowEditMenuForAdmins:true,shouldShowLoadingOverlay:false,eventTourBadgeInfo:{tourID:null,title:null,subtitle:null,eventTourBadgeStatus:c("EventTourBadgeEnum").NO_TOUR}}};j.prototype.getEventTourBadgeInfo=function(){return this.getState().eventTourBadgeInfo};j.prototype.reduce=function(k,l){__p&&__p();var m,n=null;switch(l.type){case c("PagesCoverAction").NEW_COVER_DATA:var o=(m=l.data)!=null?m.coreData:m;n=babelHelpers["extends"]({},o);break;case c("PagesCoverAction").PHOTO_SAVED:case c("PagesCoverAction").PHOTO_REMOVED:n=babelHelpers["extends"]({},k,{shouldShowEditMenuForAdmins:true});break;case c("PagesCoverAction").PHOTO_UPLOADING:n=babelHelpers["extends"]({},k,{shouldShowEditMenuForAdmins:false,shouldShowLoadingOverlay:k.currentCoverType!==c("PagesCoverType").COVER_PHOTO});break;case c("PagesCoverAction").PHOTO_PREVIEWING:n=babelHelpers["extends"]({},k,{futureCoverType:k.currentCoverType!==c("PagesCoverType").COVER_PHOTO?c("PagesCoverType").COVER_PHOTO:null,shouldShowEditMenuForAdmins:false,shouldShowLoadingOverlay:false});break;case c("PagesCoverAction").PHOTO_SAVING:n=babelHelpers["extends"]({},k,{shouldShowEditMenuForAdmins:false,currentCoverType:c("PagesCoverType").LOADING});break;case c("PagesCoverAction").VIDEO_START_UPLOAD:n=babelHelpers["extends"]({},k,{futureCoverType:c("PagesCoverType").COVER_VIDEO,shouldShowEditMenuForAdmins:false});break;case c("PagesCoverAction").VIDEO_UPLOADING:case c("PagesCoverAction").VIDEO_ENCODING:n=babelHelpers["extends"]({},k,{shouldShowEditMenuForAdmins:false});break;case c("PagesCoverAction").VIDEO_CHOOSING_THUMBNAIL:n=babelHelpers["extends"]({},k);break;case c("PagesCoverAction").VIDEO_PUBLISHING:n=babelHelpers["extends"]({},k,{shouldShowEditMenuForAdmins:false,currentCoverType:c("PagesCoverType").LOADING});break;case c("PagesCoverAction").VIDEO_PREVIEWING:n=babelHelpers["extends"]({},k,{futureCoverType:c("PagesCoverType").COVER_VIDEO,shouldShowEditMenuForAdmins:false});break;case c("PagesCoverAction").PHOTO_CANCEL:case c("PagesCoverAction").VIDEO_CANCELLING:n=babelHelpers["extends"]({},k,{shouldShowEditMenuForAdmins:false,shouldShowLoadingOverlay:true});break;case c("PagesCoverAction").VIDEO_PUBLISHED:n=babelHelpers["extends"]({},k,{shouldShowEditMenuForAdmins:true});break;case c("PagesCoverAction").SLIDESHOW_EDIT:n=babelHelpers["extends"]({},k,{shouldShowEditMenuForAdmins:false,futureCoverType:k.currentCoverType!==c("PagesCoverType").COVER_SLIDESHOW?c("PagesCoverType").COVER_SLIDESHOW:null});break;case c("PagesCoverAction").SLIDESHOW_DISPLAY:case c("PagesCoverAction").SLIDESHOW_EDITING_CANCELLED:n=babelHelpers["extends"]({},k,{shouldShowEditMenuForAdmins:true,futureCoverType:null});break;case c("PagesCoverAction").COVER_REMOVING:n=babelHelpers["extends"]({},k,{shouldShowEditMenuForAdmins:false,shouldShowLoadingOverlay:true});break;case c("PagesCoverAction").ON_TOUR_BADGE_UPDATED:n=babelHelpers["extends"]({},k,{eventTourBadgeInfo:l.data,shouldShowLoadingOverlay:false});break;case c("PagesCoverAction").LOADING:n=babelHelpers["extends"]({},k,{shouldShowLoadingOverlay:true});break}return n||k};function j(){h.apply(this,arguments)}f.exports=new j(c("PagesCoverDispatcher"))}),null);
__d("XPagesCoverRemoveAsyncController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/profile/cover_remove/",{page_id:{type:"FBID",required:true}})}),null);
__d("PagesCoverRemoveCoverConfirmationDialog.react",["fbt","AsyncRequest","PagesCoverAction","PagesCoverDispatcher","PagesProfileTestID","React","XPagesCoverRemoveAsyncController","XUIDialog.react","XUIDialogBody.react","XUIDialogCancelButton.react","XUIDialogConfirmButton.react","XUIDialogFooter.react","XUIDialogTitle.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes,l=445;i=babelHelpers.inherits(m,c("React").PureComponent);j=i&&i.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=j.constructor).call.apply(n,[this].concat(q)),this.$PagesCoverRemoveCoverConfirmationDialog1=function(){new(c("AsyncRequest"))().setURI(c("XPagesCoverRemoveAsyncController").getURIBuilder().setFBID("page_id",this.props.pageID).getURI()).send();this.props.onToggle(false);c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").COVER_REMOVING})}.bind(this),o}m.prototype.render=function(){if(!this.props.shown)return null;return c("React").createElement(c("XUIDialog.react"),{onToggle:this.props.onToggle,shown:true,width:l},c("React").createElement(c("XUIDialogTitle.react"),null,h._("Remove Cover?")),c("React").createElement(c("XUIDialogBody.react"),null,h._("Are you sure you want to remove this cover?")),c("React").createElement(c("XUIDialogFooter.react"),null,c("React").createElement(c("XUIDialogCancelButton.react"),null),c("React").createElement(c("XUIDialogConfirmButton.react"),{"data-testid":c("PagesProfileTestID").COVER_PHOTO_REMOVE_CONFIRM_BUTTON,onClick:this.$PagesCoverRemoveCoverConfirmationDialog1,use:"confirm"})))};m.propTypes={coreData:k.object.isRequired,onToggle:k.func.isRequired,pageID:k.string.isRequired,shown:k.bool.isRequired};f.exports=m}),null);
__d("PagesCoverSlideshowActionCreator",["fbt","PagesCoverAction","PagesCoverDispatcher","PagesLogger","PagesLoggerEventEnum","PagesLoggerEventTargetEnum","React","SimpleXUIDialog","XUIDialogButton.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=-1,j={enterEditMode:function k(l){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").SLIDESHOW_EDIT});c("PagesLogger").log(l,c("PagesLoggerEventEnum").CLICK,c("PagesLoggerEventTargetEnum").PAGE_COVER_SLIDESHOW,null,[],{event_name:"click_edit"})},changeCurrentIndex:function k(l,m){if(i===m)return;c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").SLIDESHOW_CHANGE_CAROUSEL_INDEX,data:{currentIndex:m}});c("PagesLogger").log(l,c("PagesLoggerEventEnum").SCROLL,c("PagesLoggerEventTargetEnum").PAGE_COVER_SLIDESHOW);i=m},reorderSlideshowItems:function k(l,m,n){if(l!==m)c("PagesLogger").log(n,c("PagesLoggerEventEnum").DRAG,c("PagesLoggerEventTargetEnum").PAGE_COVER_SLIDESHOW,null,[],{event_name:"reorder_slideshow_items"});c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").SLIDESHOW_CHANGE_ORDER,data:{fromIndex:l,toIndex:m}})},onPhotoUploading:function k(l){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").SLIDESHOW_PHOTO_UPLOADING,data:{uploadingIndex:l}})},onItemRepositioned:function k(l,m,n){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").SLIDESHOW_ITEM_REPOSITIONED,data:{itemRepositionedIndex:n}})},onPhotoRemoved:function k(l){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").SLIDESHOW_PHOTO_REMOVED,data:{removedIndex:l}})},confirmCancel:function k(){c("SimpleXUIDialog").showEx(h._("If you go back, your changes won't be saved."),h._("Leave Slideshow?"),c("React").createElement("div",null,c("React").createElement(c("XUIDialogButton.react"),{action:"cancel",label:h._("Leave Slideshow"),onClick:j.onEditingCancelled,use:"default"}),c("React").createElement(c("XUIDialogButton.react"),{action:"cancel",label:h._("Cancel"),use:"confirm"})))},onEditingCancelled:function k(){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").SLIDESHOW_EDITING_CANCELLED})},onSlideshowSaving:function k(l){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").SLIDESHOW_SAVING});c("PagesLogger").log(l,c("PagesLoggerEventEnum").CLICK,c("PagesLoggerEventTargetEnum").PAGE_COVER_SLIDESHOW,null,[],{event_name:"click_save"})},onNUXTourElementLoaded:function k(l,m,n,o){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").SLIDESHOW_NUX_TOUR_ELEMENT_LOADED,data:{context:l,step:m,description:n,position:o}})},onNUXTourFinished:function k(){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").SLIDESHOW_NUX_TOUR_FINISHED})},toggleContentOptimizer:function k(l,m){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").SLIDESHOW_TOGGLE_CONTENT_SWITCHER,data:m});c("PagesLogger").log(l,c("PagesLoggerEventEnum").CLICK,c("PagesLoggerEventTargetEnum").PAGE_COVER_SLIDESHOW,null,[],{event_name:"click_content_optimizer"})},loadPrefilledItems:function k(l){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").SLIDESHOW_PREFILLED_PHOTO_LOADED,data:{prefilledItems:l}})}};f.exports=j}),null);
__d("XPagesCoverVideoDataController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/profile/cover_video_data/",{video_id:{type:"FBID",required:true},supports_html5_video:{type:"Bool",defaultValue:true},include_thumbnails:{type:"Bool",defaultValue:false}})}),null);
__d("CoverVideoUtil",["Promise","AsyncRequest","CoverVideoOffsetType","VideoData","XPagesCoverVideoDataController","isHTML5VideoImplementationUnavailable"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h={fetchCoverVideoData:function i(j){__p&&__p();var k=arguments.length<=1||arguments[1]===undefined?false:arguments[1];return new(c("Promise"))(function(l,m){var n=c("XPagesCoverVideoDataController").getURIBuilder().setFBID("video_id",j).setBool("supports_html5_video",!c("isHTML5VideoImplementationUnavailable")(true)).setBool("include_thumbnails",k).getURI();new(c("AsyncRequest"))(n).setReadOnly(true).setAllowCrossPageTransition(true).setHandler(function(o){var p=o.payload,q=p.offset_type,r=p.offset_value,s=p.playable_duration_in_sec,t=p.video_data,u=p.thumbnails,v=p.hasVisibleStatus;if(q===c("CoverVideoOffsetType").VERTICAL||q===c("CoverVideoOffsetType").HORIZONTAL){var w=q===c("CoverVideoOffsetType").HORIZONTAL?"horizontal":"vertical";l({offsetType:w,offsetValue:r,playableDurationInSec:s,videoData:new(c("VideoData"))(t),thumbnails:u,hasVisibleStatus:v})}else m(new Error("Cover video data are unavailable."))}).setErrorHandler(m).send()})}};f.exports=h}),null);
__d("PagesCoverVideoConstant",["fbt","React"],(function a(b,c,d,e,f,g,h){"use strict";var i={PREVIEW_TIP_FOR_CREATION:c("React").createElement("div",null,c("React").createElement("div",null,h._("Your video was added but won't be public until you publish it.")),c("React").createElement("div",null,h._("You can drag the video currently displaying to reposition it."))),PREVIEW_TIP_FOR_EDITING:c("React").createElement("div",null,c("React").createElement("div",null,h._("Your video won't be public until you publish it.")),c("React").createElement("div",null,h._("You can drag the video currently displaying to reposition it."))),TRY_UPLOAD_AGAIN_TITLE:h._("Try Uploading Again"),TRY_UPLOAD_AGAIN_BODY:h._("The video couldn't be uploaded. Please try again."),CANCEL_DIALOG_TITLE:h._("Cancel Video Upload?"),CANCEL_DIALOG_BODY:h._("If you cancel, this video will be deleted and your Page will revert to the previous cover photo or video."),CANCEL_DIALOG_CANCEL_UPLOAD_BUTTON_LABEL:h._("Cancel Upload"),CANCEL_DIALOG_NOT_NOW_BUTTON_LABEL:h._("Not Now"),EDUCATIONAL_ERROR_DIALOG_TITLE:h._("Video Not Uploaded")};f.exports=i}),null);
__d("XPagesCoverReloadController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/profile/cover_reload/",{page_id:{type:"FBID",required:true}})}),null);
__d("XPagesCoverVideoPublishController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/profile/cover_video_publish/",{})}),null);
__d("XPagesCoverVideoRollbackAndDeleteController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/profile/cover_video_rollback_and_delete/",{page_id:{type:"FBID",required:true},video_id:{type:"FBID",required:true}})}),null);
__d("PagesCoverVideoActionCreator",["ix","cx","fbt","AsyncRequest","CoverVideoUtil","ErrorDialog","Image.react","PagesCoverAction","PagesCoverDispatcher","PagesCoverVideoConstant","React","ReactDOM","Set","SimpleXUIDialog","XPagesCoverReloadController","XPagesCoverVideoPublishController","XPagesCoverVideoRollbackAndDeleteController","XUIDialogButton.react","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k=Object.freeze({INVALID_DURATION:"invalid_duration",INVALID_DIMENSION:"invalid_dimension"}),l={validateCoverVideoMetadata:function m(n,o,p,q,r,s,t){__p&&__p();if(!o){p();l.showGeneralErrorDialog();return false}var u=c("ReactDOM").findDOMNode(o);if(!u||!(u instanceof HTMLVideoElement)){p();l.showGeneralErrorDialog();return false}var v=u.videoWidth,w=u.videoHeight;if(v===0&&w===0)return true;var x=l.validateCoverVideoWithErrorDialog(n,u.duration,q,r,u.videoWidth,u.videoHeight,s,t);if(!x)p();return x},showCoverVideoUploadUI:function m(){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").VIDEO_START_UPLOAD})},uploadStarted:function m(){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").VIDEO_UPLOADING,data:{progress:0}})},uploadProgressed:function m(n,o){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").VIDEO_UPLOADING,data:{progress:Math.round(n)}})},encodeStarted:function m(){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").VIDEO_ENCODING,data:{progress:0}})},encodeProgressed:function m(n){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").VIDEO_ENCODING,data:{progress:Math.round(n)}})},encodeFinished:function m(n,o,p,q,r,s){__p&&__p();c("CoverVideoUtil").fetchCoverVideoData(o).then(function(t){__p&&__p();var u=t.playableDurationInSec,v=t.videoData;if(!u||!v){l.rollbackAndDeleteVideoWithGeneralErrorDialog(n,o);return}var w=v.getOriginalWidth(),x=v.getOriginalHeight(),y=l.validateCoverVideoWithErrorDialog(n,u,p,q,w,x,r,s);if(!y){l.rollbackAndDeleteVideo(n,o);return}c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").VIDEO_PREVIEWING,data:{futureVideoID:o,pageID:n,isFromRepositon:false}})}).done()},validateCoverVideoWithErrorDialog:function m(n,o,p,q,r,s,t,u){__p&&__p();var v=new(c("Set"))(),w=1;if(r<t-w||s<u-w)v.add(k.INVALID_DIMENSION);if(o<p-w||o>q+w)v.add(k.INVALID_DURATION);if(v.size>0){l.showValidationErrorDialog(n,v,p,q,t,u);return false}return true},chooseThumbnail:function m(n,o,p,q,r,s){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").VIDEO_CHOOSING_THUMBNAIL,data:{futureVideoID:n,pageID:o,offsetType:p,offsetValue:q,containerHeight:r,containerWidth:s}})},editCoverVideo:function m(n,o){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").VIDEO_PREVIEWING,data:{futureVideoID:o,pageID:n,isFromReposition:true}})},showGeneralErrorDialog:function m(){c("SimpleXUIDialog").show(c("React").createElement("div",null,j._("The video couldn't be uploaded. Please try again.")),c("PagesCoverVideoConstant").EDUCATIONAL_ERROR_DIALOG_TITLE)},showValidationErrorDialog:function m(n,o,p,q,r,s){var t=j._("Please edit the video and try again."),u=!o.has(k.INVALID_DURATION)?c("React").createElement(c("Image.react"),{src:h("119371")}):c("React").createElement(c("Image.react"),{src:h("117758")}),v=j._("Cover videos should to be {minimal duration of cover video required} - {duration of current video} seconds.",[j.param("minimal duration of cover video required",p),j.param("duration of current video",q)]),w=!o.has(k.INVALID_DIMENSION)?c("React").createElement(c("Image.react"),{src:h("119371")}):c("React").createElement(c("Image.react"),{src:h("117758")}),x=j._("Cover videos should be at least {minimal requirement of width} x {minimal requirement of height} pixels. The recommended size is 820 x 462 pixels.",[j.param("minimal requirement of width",r),j.param("minimal requirement of height",s)]),y=c("React").createElement("div",null,c("React").createElement("div",null,t),c("React").createElement("div",{className:"_31ms"},c("React").createElement("div",{className:"_wsz"},u),c("React").createElement("div",{className:"_wsz"+(o.has(k.INVALID_DURATION)?" _wt3":"")},v)),c("React").createElement("div",{className:"_31ms"},c("React").createElement("div",{className:"_wsz"},w),c("React").createElement("div",{className:"_wsz"+(o.has(k.INVALID_DIMENSION)?" _wt3":"")},x)));c("SimpleXUIDialog").show(y,c("PagesCoverVideoConstant").EDUCATIONAL_ERROR_DIALOG_TITLE)},confirmPublishingVideo:function m(n,o,p,q,r,s){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").VIDEO_PUBLISHING});var t=c("XPagesCoverVideoPublishController").getURIBuilder().getURI(),u={page_id:n,video_id:o,preferred_thumbnail_id:s,offset_type:p,offset_value:q,should_cover_video_loop:r};new(c("AsyncRequest"))().setURI(t).setMethod("POST").setData(u).setErrorHandler(function(){l.rollbackAndDeleteVideoWithGeneralErrorDialog(n,o)}).send()},cancelNewUploadingWithConfirmationDialog:function m(n,o){c("SimpleXUIDialog").showEx(c("PagesCoverVideoConstant").CANCEL_DIALOG_BODY,c("PagesCoverVideoConstant").CANCEL_DIALOG_TITLE,c("React").createElement("div",null,c("React").createElement(c("XUIDialogButton.react"),{action:"cancel",label:c("PagesCoverVideoConstant").CANCEL_DIALOG_CANCEL_UPLOAD_BUTTON_LABEL,onClick:function p(){return l.rollbackAndDeleteVideo(n,o)}}),c("React").createElement(c("XUIDialogButton.react"),{action:"cancel",label:c("PagesCoverVideoConstant").CANCEL_DIALOG_NOT_NOW_BUTTON_LABEL,use:"confirm"})))},rollbackAndDeleteVideoWithGeneralErrorDialog:function m(n,o){c("SimpleXUIDialog").show(c("PagesCoverVideoConstant").TRY_UPLOAD_AGAIN_BODY,c("PagesCoverVideoConstant").TRY_UPLOAD_AGAIN_TITLE,function(){l.rollbackAndDeleteVideo(n,o)})},reloadCoverWithErrorDialog:function m(n,o){var p=o.error_description,q=o.error_summary,r=!q?c("PagesCoverVideoConstant").TRY_UPLOAD_AGAIN_TITLE:q,s=!p?c("PagesCoverVideoConstant").TRY_UPLOAD_AGAIN_BODY:p;c("ErrorDialog").show(r,s,function(){l.reloadCover(n)})},reloadCover:function m(n){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").VIDEO_CANCELLING});var o=c("XPagesCoverReloadController").getURIBuilder().setFBID("page_id",n).getURI();new(c("AsyncRequest"))(o).send()},rollbackAndDeleteVideo:function m(n,o){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").VIDEO_CANCELLING});var p=c("XPagesCoverVideoRollbackAndDeleteController").getURIBuilder().setFBID("page_id",n).setFBID("video_id",o).getURI();new(c("AsyncRequest"))(p).send()}};f.exports=l}),null);
__d("PagesCoverVideoHoverableVideoComponent.react",["cx","React","VideoComponentPlayButton.react","VideoDataContainer.react","VideoPlayer.react","VideoPlayerLoggerSource","VideoPlayerOrigins"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.$PagesCoverVideoHoverableVideoComponent1=function(){this.props.onMouseEnter&&this.props.onMouseEnter(this.props.videoID)}.bind(this),this.$PagesCoverVideoHoverableVideoComponent2=function(){this.props.onMouseLeave&&this.props.onMouseLeave(this.props.videoID)}.bind(this),this.$PagesCoverVideoHoverableVideoComponent3=function(){this.props.onVideoClick&&this.props.onVideoClick(this.props.videoID)}.bind(this),this.$PagesCoverVideoHoverableVideoComponent5=function(){return c("VideoDataContainer.react").renderSpinner(this.props.width,this.props.height)}.bind(this),n}l.prototype.$PagesCoverVideoHoverableVideoComponent4=function(m){this.props.onRefLoaded&&this.props.onRefLoaded(this.props.videoID,m)};l.prototype.render=function(){return c("React").createElement("span",{className:"_bt-"+(this.props.isSelected?" _bu0":""),key:this.props.videoID,onMouseEnter:this.$PagesCoverVideoHoverableVideoComponent1,onMouseLeave:this.$PagesCoverVideoHoverableVideoComponent2,role:"link",tabIndex:0},c("React").createElement(c("VideoDataContainer.react"),{renderLoading:this.$PagesCoverVideoHoverableVideoComponent5,videoID:this.props.videoID},c("React").createElement(c("VideoPlayer.react"),{disableClickPlayPause:true,height:this.props.height,onVideoClick:this.$PagesCoverVideoHoverableVideoComponent3,playerOrigin:c("VideoPlayerOrigins").PAGE_TIMELINE,subOrigin:c("VideoPlayerLoggerSource").PAGES_COVER_HOVER,ref:this.props.onRefLoaded,videoData:c("VideoDataContainer.react").VIDEO_DATA_PLACEHOLDER,width:this.props.width},c("React").createElement(c("VideoComponentPlayButton.react"),null))))};l.propTypes={videoID:k.string.isRequired,onMouseEnter:k.func.isRequired,onMouseLeave:k.func.isRequired,onVideoClick:k.func.isRequired,onRefLoaded:k.func.isRequired,isSelected:k.bool.isRequired,width:k.number.isRequired,height:k.number.isRequired};f.exports=l}),null);
__d("PagesCoverVideoSelectionComponent.react",["cx","Map","PagesCoverVideoHoverableVideoComponent.react","React","VideoPlayer.react","VideoPlayerReason"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=176,l=Math.round(k*9/16);i=babelHelpers.inherits(m,c("React").PureComponent);j=i&&i.prototype;function m(n){__p&&__p();j.constructor.call(this,n);this.$PagesCoverVideoSelectionComponent2=function(o){if(o===this.state.selectedVideoID)return;var p=this.state.selectedVideoID;if(p){var q=this.$PagesCoverVideoSelectionComponent1.get(p);q&&q.pause(c("VideoPlayerReason").USER)}this.setState({selectedVideoID:o});this.props&&this.props.onVideoSelected(o)}.bind(this);this.$PagesCoverVideoSelectionComponent3=function(o){var p=this.$PagesCoverVideoSelectionComponent1.get(o);p&&p.play(c("VideoPlayerReason").HOVER)}.bind(this);this.$PagesCoverVideoSelectionComponent4=function(o){var p=this.$PagesCoverVideoSelectionComponent1.get(o);p&&p.pause(c("VideoPlayerReason").HOVER)}.bind(this);this.$PagesCoverVideoSelectionComponent5=function(o,p){if(p&&p.vpc)this.$PagesCoverVideoSelectionComponent1.set(o,p.vpc)}.bind(this);this.state={selectedVideoID:null};this.$PagesCoverVideoSelectionComponent1=new(c("Map"))()}m.prototype.render=function(){var n=this.props.videoIDs;if(!n||n.length===0)return null;var o=n.map(function(p){return c("React").createElement(c("PagesCoverVideoHoverableVideoComponent.react"),{height:l,isSelected:p===this.state.selectedVideoID,key:p,onMouseEnter:this.$PagesCoverVideoSelectionComponent3,onMouseLeave:this.$PagesCoverVideoSelectionComponent4,onRefLoaded:this.$PagesCoverVideoSelectionComponent5,onVideoClick:this.$PagesCoverVideoSelectionComponent2,videoID:p,width:k})}.bind(this));return c("React").createElement("div",{className:"_4yfa"},o)};f.exports=m}),null);
__d("XPagesCoverVideoFetchController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/profile/cover_video_fetch/",{page_id:{type:"FBID",required:true},count:{type:"Int",required:true},cursor:{type:"String"}})}),null);
__d("PagesCoverVideoBrowserDialog.react",["cx","fbt","AsyncRequest","LayerFadeOnHide","LoadingDialog.react","PagesCoverVideoSelectionComponent.react","React","ScrollableArea.react","XPagesCoverVideoFetchController","XUIDialog.react","XUIDialogBody.react","XUIDialogCancelButton.react","XUIDialogConfirmButton.react","XUIDialogFooter.react","XUIDialogOkayButton.react","XUIDialogTitle.react","XUISpinner.react","nullthrows"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=3,m=176,n=8,o=Math.round(m*9/16),p=(m+2*n)*l+3*n,q=9,r=o*3;j=babelHelpers.inherits(s,c("React").PureComponent);k=j&&j.prototype;function s(t){__p&&__p();k.constructor.call(this,t);this.$PagesCoverVideoBrowserDialog1=function(){if(!this.state.hasMore||!this.state.hasEligibleVideos||this.state.isLoading)return;var u=c("XPagesCoverVideoFetchController").getURIBuilder().setFBID("page_id",this.props.pageID).setInt("count",q).setString("cursor",this.state.cursor).getURI();new(c("AsyncRequest"))(u).setHandler(this.$PagesCoverVideoBrowserDialog2).send();this.setState({isLoading:true})}.bind(this);this.$PagesCoverVideoBrowserDialog2=function(u){var v=u.payload;if(!v)return;this.setState({videoIDs:this.state.videoIDs.concat(v.videoIDs),cursor:v.cursor,hasMore:v.hasMore,hasEligibleVideos:v.hasEligibleVideos,isLoading:false})}.bind(this);this.$PagesCoverVideoBrowserDialog3=function(u){this.setState({selectedVideoID:u})}.bind(this);this.$PagesCoverVideoBrowserDialog4=function(){var u=this.props.onConfirm;u&&u(c("nullthrows")(this.state.selectedVideoID))}.bind(this);this.state={videoIDs:[],selectedVideoID:null,cursor:"",hasMore:true,hasEligibleVideos:true,isLoading:false}}s.prototype.componentDidMount=function(){this.$PagesCoverVideoBrowserDialog1()};s.prototype.render=function(){if(!this.props.dialogShown)return null;if(this.state.videoIDs.length===0&&this.state.hasMore&&this.state.hasEligibleVideos)return c("React").createElement(c("LoadingDialog.react"),{behaviors:{LayerFadeOnHide:c("LayerFadeOnHide")},onToggle:this.props.onToggle});if(!this.state.hasEligibleVideos)return c("React").createElement(c("XUIDialog.react"),{behaviors:{LayerFadeOnHide:c("LayerFadeOnHide")},onToggle:this.props.onToggle,shown:this.props.dialogShown,titleID:"pages-cover-video-browser-dialog",width:p},c("React").createElement(c("XUIDialogTitle.react"),null,i._("Choose From My Videos")),c("React").createElement(c("XUIDialogBody.react"),null,c("React").createElement("div",null,i._("None of the videos in your library qualify as a cover video. Videos must be between 20 - 90 seconds and at least 820 x 312 pixels. The recommended size is 820 x 462 pixels. Please upload a different video and try again."))),c("React").createElement(c("XUIDialogFooter.react"),null,c("React").createElement(c("XUIDialogOkayButton.react"),{action:"cancel",use:"confirm"})));var t=!this.state.hasMore?null:c("React").createElement("div",{className:"_4yfc"},c("React").createElement(c("XUISpinner.react"),{size:"large"}));return c("React").createElement(c("XUIDialog.react"),{behaviors:{LayerFadeOnHide:c("LayerFadeOnHide")},onToggle:this.props.onToggle,shown:this.props.dialogShown,titleID:"pages-cover-video-browser-dialog",width:p},c("React").createElement(c("XUIDialogTitle.react"),null,i._("Choose From My Videos")),c("React").createElement(c("XUIDialogBody.react"),null,c("React").createElement(c("ScrollableArea.react"),{fade:false,height:r,onEndReached:this.$PagesCoverVideoBrowserDialog1,width:p},c("React").createElement(c("PagesCoverVideoSelectionComponent.react"),{onVideoSelected:this.$PagesCoverVideoBrowserDialog3,videoIDs:this.state.videoIDs}),t)),c("React").createElement(c("XUIDialogFooter.react"),null,c("React").createElement(c("XUIDialogCancelButton.react"),null),c("React").createElement(c("XUIDialogConfirmButton.react"),{action:"confirm",disabled:!this.state.selectedVideoID,onClick:this.$PagesCoverVideoBrowserDialog4,use:"confirm"})))};f.exports=s}),null);
__d("PagesLiveCoverVideoActionCreator",["PagesCoverAction","PagesCoverDispatcher"],(function a(b,c,d,e,f,g){"use strict";var h={onLiveCoverVideoEnabled:function i(){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").LIVE_VIDEO_ENABLE})},onLiveCoverVideoDisable:function i(){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").LIVE_VIDEO_DISABLE})}};f.exports=h}),null);
__d("PagesVideoUploader.react",["cx","invariant","Arbiter","ChannelConstants","CoverVideoUtil","EventListener","FileInput.react","React","SubscriptionsHandler","VideoUploadConfig","VideoUploader","VideoUploadFile","VideoUploadProgressBar"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=b.URL||b.webkitURL||{};j=babelHelpers.inherits(m,c("React").PureComponent);k=j&&j.prototype;function m(n){__p&&__p();k.constructor.call(this,n);this.reset=function(){this.$PagesVideoUploader1.reset();this.$PagesVideoUploader3=0;this.$PagesVideoUploader4.release();this.$PagesVideoUploader4=new(c("SubscriptionsHandler"))();this.$PagesVideoUploader5=false;this.props.videoUploaderRef&&this.props.videoUploaderRef(null);clearInterval(this.$PagesVideoUploader6);clearTimeout(this.$PagesVideoUploader7)}.bind(this);this.$PagesVideoUploader8=function(event){__p&&__p();var o=event.target,p=c("VideoUploadFile").getExtensionFromFileInput(o);if(!c("VideoUploadConfig").videoExtensions[p]||p==="gif"||!(o instanceof HTMLInputElement)){this.props.onChange&&this.props.onChange(event,false);return}var q=o.files[0];q||i(0);this.reset();var r=this.$PagesVideoUploader1,s=this.$PagesVideoUploader2;this.$PagesVideoUploader4.addSubscriptions(r.subscribe("upload-started",this.$PagesVideoUploader9),r.subscribe("upload-progressed",this.$PagesVideoUploader10),r.subscribe("upload-finished",this.$PagesVideoUploader11),r.subscribe("post-finished",this.$PagesVideoUploader12),r.subscribe("upload-failed",this.$PagesVideoUploader13),r.subscribe("post-failed",this.$PagesVideoUploader14),c("EventListener").listen(s,"loadedmetadata",this.$PagesVideoUploader15),c("Arbiter").subscribe(c("ChannelConstants").getArbiterType("video_encode"),this.$PagesVideoUploader16));var t=l.createObjectURL(q);this.setState({selectedFileURL:t});this.$PagesVideoUploader1.upload(c("VideoUploadFile").fromFileInput(o));this.props.onChange&&this.props.onChange(event,true)}.bind(this);this.$PagesVideoUploader9=function(){this.props.onUploadStarted&&this.props.onUploadStarted()}.bind(this);this.$PagesVideoUploader15=function(o){var p=o.target,q=this.props.onVideoMetadataLoaded;q&&q(p,this.reset)}.bind(this);this.$PagesVideoUploader10=function(event,o){var p=c("VideoUploadProgressBar").computeProgress(o.start_offset,o.sent_bytes,o.file_size,0,0),q=this.props.onUploadProgressed;q&&q(Math.round(p),o)}.bind(this);this.$PagesVideoUploader11=function(event,o){__p&&__p();var p=this.props.onUploadFinished;p&&p(o);var q=this.$PagesVideoUploader1;if(!q)return;if(this.props.autoEncode){var r=this.props.getCustomPostData;if(r){var s=r();q.post(s)}else q.post({})}else{var t=this.props.onManualPost;t||i(0);t(q)}}.bind(this);this.$PagesVideoUploader12=function(event,o){this.props.onPostFinished&&this.props.onPostFinished(o);this.$PagesVideoUploader17(o.video_id);this.$PagesVideoUploader1.reset()}.bind(this);this.$PagesVideoUploader13=function(event,o){this.props.onUploadFailed&&this.props.onUploadFailed(o);this.reset()}.bind(this);this.$PagesVideoUploader14=function(event,o){this.props.onPostFailed&&this.props.onPostFailed(o);this.reset()}.bind(this);this.$PagesVideoUploader16=function(o,p){__p&&__p();var q=p.obj.videoID.toString();if(p.obj.stage==="finish"){this.props.onEncodeFinished&&this.props.onEncodeFinished(q);this.reset()}else{this.$PagesVideoUploader3=Math.max(this.$PagesVideoUploader3,p.obj.progress);if(!this.$PagesVideoUploader5){var r=this.props.onEncodeStarted;r&&r(this.$PagesVideoUploader3);this.$PagesVideoUploader5=true}else this.props.onEncodeProgressed&&this.props.onEncodeProgressed(this.$PagesVideoUploader3);this.$PagesVideoUploader17(p.obj.videoID.toString())}}.bind(this);this.state={selectedFileURL:null};this.$PagesVideoUploader1=new(c("VideoUploader"))(n.videoUploaderInitParams);this.$PagesVideoUploader3=0;this.$PagesVideoUploader4=new(c("SubscriptionsHandler"))();this.$PagesVideoUploader5=false}m.prototype.$PagesVideoUploader17=function(n){clearInterval(this.$PagesVideoUploader6);clearTimeout(this.$PagesVideoUploader7);this.$PagesVideoUploader7=setTimeout(function(){this.$PagesVideoUploader6=setInterval(function(){c("CoverVideoUtil").fetchCoverVideoData(n).then(function(o){if(o.hasVisibleStatus){this.props.onEncodeFinished&&this.props.onEncodeFinished(n);this.reset()}}.bind(this)).done()}.bind(this),5e3)}.bind(this),10*1e3)};m.prototype.render=function(){var n=["video/*","video/mp4"],o=this.props.extraAccept;if(Array.isArray(o))n.concat(o);else if(o)n.push(o);return c("React").createElement("div",null,c("React").createElement(c("FileInput.react"),{accept:n,display:"inline-block",name:"simple_video_uploader",onChange:this.$PagesVideoUploader8,ref:function(p){this.props.fileInputRef&&this.props.fileInputRef(p)}.bind(this)},c("React").createElement("a",{className:this.props.labelClassName,href:"#"},this.props.label)),c("React").createElement("video",{className:"hidden_elem",ref:function(p){this.$PagesVideoUploader2=p;this.props.videoPlayerRef&&this.props.videoPlayerRef(p)}.bind(this),src:this.state.selectedFileURL}))};m.defaultProps={autoEncode:true};f.exports=m}),null);
__d("PhotoBrowserDialogEndpointType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({EVENT_COVER:0,GROUP_COVER:1,TIMELINE_COVER:2,PROFILE_PICTURE:3,PAGE_PICTURE:4,LINK_ALBUM:5,LIFE_EVENT:6,ATTACHMENT_EDITOR:7,EDITOR_IMPORT:8,EDITOR_SAVE:9,PAGE_COVER:10,MAP_COMPOSER:12,YEAR_IN_REVIEW:13,FAMILY_TAG_PROFILE:14,FAMILY_TAG_COVER:15,FUNDRAISER_COVER:17,FEATURED_PHOTO:18,ORIGIN_STORY:19,PAGES_COVER_JS:20,FRAME_COMPOSER:21,ALBUM_COVER:22,PAGES_COVER_SLIDESHOW_JS:23})}),null);
__d("PhotoBrowserDialogPhotoGeneratorType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({PROFILE:0,PAGE:1,FRIENDSHIP:2,EVENT:3,GROUP:4,TAGGED:5,SYNCED:6,LINKABLE_ALBUMS:8,RECENT:9,LAST_ONE_YEAR:10,SCRAPBOOK:11,FUNDRAISER_PAGE:12,ORIGIN_STORY:13,ALBUM:14,PROFILE_CHANNEL:15,COLLAGE:16,COVER_ARTWORK:17})}),null);
__d("XEventTourBadgeOnPagesCoverController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/events/tour/badge/",{page_id:{type:"FBID",required:true},tour_ids:{type:"FBIDSet"},enable:{type:"Bool",defaultValue:false},entry_point:{type:"Enum",defaultValue:"page_cover",enumType:1}})}),null);
__d("XPagesCoverLiveVideoToggleAsyncController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/profile/cover_live_video_toggle/",{})}),null);
__d("XPagesCoverPhotoUploadAsyncController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/profile/cover_photo_upload/",{page_id:{type:"FBID",required:true},ref:{type:"String"},index:{type:"Int"}})}),null);
__d("XPagesCoverVideoUploaderController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/profile/cover_video_upload/",{page_id:{type:"FBID",required:true}})}),null);
__d("XPhotoBrowserDialogController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/photo_browser_dialog/",{album_id:{type:"Int"},cursor:{type:"String"},data:{type:"String",defaultValue:""},display:{type:"Enum",defaultValue:2,enumType:0},endpoint:{type:"Enum",required:true,enumType:0},generator:{type:"Enum",required:true,enumType:0},id:{type:"Int",required:true},member_id:{type:"Int"},ajaxify_links:{type:"Bool",defaultValue:true},__asyncDialog:{type:"Int"}})}),null);
__d("PagesCoverEditMenu.react",["ix","cx","fbt","invariant","ActorURI","AsyncRequest","ContextualDialogArrow","EventTourBadgeEnum","FileInput.react","FileInputUploader","Image.react","PagesCoverAction","PagesCoverCameraButton.react","PagesCoverDispatcher","PagesCoverSlideshowActionCreator","PagesCoverType","PagesCoverVideoActionCreator","PagesCoverVideoBrowserDialog.react","PagesLiveCoverVideoActionCreator","PagesProfileTestID","PhotoBrowserDialogEndpointType","PhotoBrowserDialogPhotoGeneratorType","PopoverMenu.react","React","ReactDOM","ReactXUIMenu","PagesVideoUploader.react","SimpleXUIDialog","XEventTourBadgeOnPagesCoverController","XPagesCoverPhotoUploadAsyncController","XPhotoBrowserDialogController","XPagesCoverLiveVideoToggleAsyncController","XPagesCoverVideoUploaderController","PagesCoverRemoveCoverConfirmationDialog.react","fbglyph","idx"],(function a(b,c,d,e,f,g,h,i,j,k){"use strict";__p&&__p();var l,m,n=c("ReactXUIMenu").Item;l=babelHelpers.inherits(o,c("React").PureComponent);m=l&&l.prototype;function o(p){__p&&__p();m.constructor.call(this,p);this.$PagesCoverEditMenu8=function(){this.setState({showCoverVideoBrowserDialog:true})}.bind(this);this.$PagesCoverEditMenu9=function(){this.setState({showCoverVideoBrowserDialog:false})}.bind(this);this.$PagesCoverEditMenu10=function(q){this.setState({showRemoveCoverConfirmationDialog:q})}.bind(this);this.$PagesCoverEditMenu11=function(q){c("PagesCoverVideoActionCreator").editCoverVideo(this.props.pageID,q);this.setState({showCoverVideoBrowserDialog:false})}.bind(this);this.$PagesCoverEditMenu12=function(q){this.$PagesCoverEditMenu2=q}.bind(this);this.$PagesCoverEditMenu13=function(q,r){var s,t,u,v,w=(s=this.props)!=null?(s=s.coverData)!=null?(s=s.cover_video)!=null?s.minPlayableDurationInSec:s:s:s,x=(t=this.props)!=null?(t=t.coverData)!=null?(t=t.cover_video)!=null?t.maxPlayableDurationInSec:t:t:t,y=(u=this.props)!=null?(u=u.coverData)!=null?(u=u.cover_video)!=null?u.containerWidth:u:u:u,z=(v=this.props)!=null?(v=v.coverData)!=null?(v=v.cover_video)!=null?v.containerHeight:v:v:v;!!w&&!!x&&!!y&&!!z||k(0);var A=c("PagesCoverVideoActionCreator").validateCoverVideoMetadata(this.props.pageID,q,r,w,x,y,z);if(A)c("PagesCoverVideoActionCreator").showCoverVideoUploadUI()}.bind(this);this.$PagesCoverEditMenu14=function(q){var r,s,t,u,v=(r=this.props)!=null?(r=r.coverData)!=null?(r=r.cover_video)!=null?r.minPlayableDurationInSec:r:r:r,w=(s=this.props)!=null?(s=s.coverData)!=null?(s=s.cover_video)!=null?s.maxPlayableDurationInSec:s:s:s,x=(t=this.props)!=null?(t=t.coverData)!=null?(t=t.cover_video)!=null?t.containerWidth:t:t:t,y=(u=this.props)!=null?(u=u.coverData)!=null?(u=u.cover_video)!=null?u.containerHeight:u:u:u;!!v&&!!w&&!!x&&!!y||k(0);c("PagesCoverVideoActionCreator").encodeFinished(this.props.pageID,q,v,w,x,y)}.bind(this);this.$PagesCoverEditMenu17=function(q){c("PagesCoverVideoActionCreator").reloadCoverWithErrorDialog(this.props.pageID,q)}.bind(this);this.$PagesCoverEditMenu18=function(){__p&&__p();var q=this.props.coverData.cover_live_video;!!q||k(0);var r=!q.isEnabled?j._("Show Your Live Video as Your Cover Photo"):j._("Don't Show Your Live Video as Your Cover Photo"),s=!q.isEnabled?j._("The next time you go live, your broadcast will appear at the top of your Page. It will automatically be replaced by your most recent live video."):j._("The next time you go live, your broadcast will no longer appear at the top of your Page.");c("SimpleXUIDialog").showConfirm(s,r,function(t){if(!t)return;var u=c("XPagesCoverLiveVideoToggleAsyncController").getURIBuilder().getURI();new(c("AsyncRequest"))(u).setMethod("POST").setData({page_id:this.props.pageID,is_enabled:!q.isEnabled}).setHandler(function(v){var w=v.payload;if(w)c("PagesLiveCoverVideoActionCreator").onLiveCoverVideoEnabled();else c("PagesLiveCoverVideoActionCreator").onLiveCoverVideoDisable()}).send()}.bind(this))}.bind(this);this.$PagesCoverEditMenu20=function(){c("PagesCoverSlideshowActionCreator").enterEditMode(this.props.pageID)}.bind(this);this.$PagesCoverEditMenu26=function(){this.setState({showRemoveCoverConfirmationDialog:true})}.bind(this);this.$PagesCoverEditMenu23=function(){var q=this.props.coreData.currentCoverType;if(q===c("PagesCoverType").COVER_PHOTO)c("PagesCoverDispatcher").dispatch({data:{isPreviewMode:true},type:c("PagesCoverAction").PHOTO_PREVIEWING});else if(q===c("PagesCoverType").COVER_VIDEO){var r,s=(r=this.props)!=null?(r=r.coverData)!=null?(r=r.cover_video)!=null?r.videoID:r:r:r;if(s)c("PagesCoverVideoActionCreator").editCoverVideo(this.props.pageID,s)}}.bind(this);this.$PagesCoverEditMenu16=function(event,q){if(q)return;var r=c("ActorURI").create(c("XPagesCoverPhotoUploadAsyncController").getURIBuilder().setFBID("page_id",this.props.pageID).getURI(),this.props.pageID);new(c("FileInputUploader"))(c("ReactDOM").findDOMNode(this.$PagesCoverEditMenu2)).setURI(r).setAllowCrossOrigin(true).send();c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").PHOTO_UPLOADING})}.bind(this);this.$PagesCoverEditMenu25=function(){var q=this.props.coreData.eventTourBadgeInfo.eventTourBadgeStatus;if(q===c("EventTourBadgeEnum").NO_TOUR)return;var r=c("XEventTourBadgeOnPagesCoverController").getURIBuilder().setFBID("page_id",this.props.pageID).setBool("enable",q===c("EventTourBadgeEnum").TOUR_BADGE_HIDDEN).getURI();new(c("AsyncRequest"))(r).setHandler(function(s){if(s.payload)c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").ON_TOUR_BADGE_UPDATED,data:s.payload})}).send();c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").LOADING})}.bind(this);this.$PagesCoverEditMenu1=null;this.$PagesCoverEditMenu2=null;this.state={showRemoveCoverConfirmationDialog:false,showCoverVideoBrowserDialog:false,videoUploaderInitParams:null}}o.prototype.componentDidMount=function(){if(this.props.coreData.canViewerEditProfile)this.$PagesCoverEditMenu3()};o.prototype.componentWillReceiveProps=function(p){if(p.coreData.hasCoverSet!==this.props.coreData.hasCoverSet)this.$PagesCoverEditMenu1=null;if(p.coreData.canViewerEditProfile!==this.props.coreData.canViewerEditProfile)this.$PagesCoverEditMenu3()};o.prototype.$PagesCoverEditMenu3=function(){var p=c("ActorURI").create(c("XPagesCoverVideoUploaderController").getURIBuilder().setFBID("page_id",this.props.pageID).getURI(),this.props.pageID);new(c("AsyncRequest"))(p).setHandler(function(q){this.setState({videoUploaderInitParams:q.payload.video_uploader_params})}.bind(this)).send()};o.prototype.$PagesCoverEditMenu4=function(){return!!this.props.coreData.hasCoverSet};o.prototype.$PagesCoverEditMenu5=function(){if(!this.$PagesCoverEditMenu4())return j._("Add a Cover");return j._("Change Cover")};o.prototype.$PagesCoverEditMenu6=function(){if(!this.props.coverData.cover_photo.pageHasPhotos)return null;var p=c("XPhotoBrowserDialogController").getURIBuilder().setEnum("endpoint",c("PhotoBrowserDialogEndpointType").PAGES_COVER_JS).setEnum("generator",c("PhotoBrowserDialogPhotoGeneratorType").PAGE).setString("data","pages_cover_photo").setInt("id",this.props.pageID).getURI();return c("React").createElement(n,{href:p,rel:"dialog"},j._("Choose From Photos"))};o.prototype.$PagesCoverEditMenu7=function(){var p,q=!!((p=this.props)!=null?(p=p.coverData)!=null?(p=p.cover_video)!=null?p.shouldShowChooseFromCoverVideoMenu:p:p:p);if(!q)return null;return c("React").createElement(n,{onclick:this.$PagesCoverEditMenu8},j._("Choose From Videos"))};o.prototype.$PagesCoverEditMenu15=function(){var p,q,r,s,t=this.state.videoUploaderInitParams;if(!t)return null;var u=j._("Upload Photo\/Video"),v=(p=this.props)!=null?(p=p.coverData)!=null?(p=p.cover_video)!=null?p.minPlayableDurationInSec:p:p:p,w=(q=this.props)!=null?(q=q.coverData)!=null?(q=q.cover_video)!=null?q.maxPlayableDurationInSec:q:q:q,x=(r=this.props)!=null?(r=r.coverData)!=null?(r=r.cover_video)!=null?r.containerWidth:r:r:r,y=(s=this.props)!=null?(s=s.coverData)!=null?(s=s.cover_video)!=null?s.containerHeight:s:s:s;if(!v||!w||!x||!y)return null;return c("React").createElement(n,{renderas:"label"},c("React").createElement(c("PagesVideoUploader.react"),{"data-testid":c("PagesProfileTestID").COVER_PHOTO_UPLOAD_MENU_ITEM,extraAccept:"image/*",fileInputRef:this.$PagesCoverEditMenu12,label:u,labelClassName:"_3ihw",onChange:this.$PagesCoverEditMenu16,onEncodeFinished:this.$PagesCoverEditMenu14,onEncodeProgressed:c("PagesCoverVideoActionCreator").encodeProgressed,onEncodeStarted:c("PagesCoverVideoActionCreator").encodeStarted,onPostFailed:this.$PagesCoverEditMenu17,onUploadFailed:this.$PagesCoverEditMenu17,onUploadProgressed:c("PagesCoverVideoActionCreator").uploadProgressed,onUploadStarted:c("PagesCoverVideoActionCreator").uploadStarted,onVideoMetadataLoaded:this.$PagesCoverEditMenu13,videoUploaderInitParams:t}))};o.prototype.$PagesCoverEditMenu19=function(){var p=this.props.coverData.cover_live_video;if(!p.canEnable)return null;var q=!p.isEnabled?j._("Show Live Video"):j._("Don't Show Live Video");return c("React").createElement(n,{onClick:this.$PagesCoverEditMenu18},q)};o.prototype.$PagesCoverEditMenu21=function(){var p,q=(p=this.props)!=null?(p=p.coverData)!=null?p.cover_slideshow:p:p;if(!q||!q.isCoverSlideshowEnabled)return null;var r=q.shouldShowMenuNux?c("React").createElement(c("Image.react"),{src:h("115777"),style:{verticalAlign:"middle"}}):null,s=this.props.coreData.currentCoverType===c("PagesCoverType").COVER_SLIDESHOW?j._("Edit Slideshow"):j._("Create Slideshow");return c("React").createElement(n,{onclick:this.$PagesCoverEditMenu20},s,r)};o.prototype.$PagesCoverEditMenu22=function(){var p,q=(p=this.props.coverData)!=null?(p=p.cover_video)!=null?p.isFromParentPage:p:p;if(!this.$PagesCoverEditMenu4()||this.props.coreData.currentCoverType===c("PagesCoverType").COVER_VIDEO&&q||this.props.coreData.currentCoverType===c("PagesCoverType").COVER_SLIDESHOW)return null;return c("React").createElement(n,{onclick:this.$PagesCoverEditMenu23},j._("Reposition"))};o.prototype.$PagesCoverEditMenu24=function(){switch(this.props.coreData.eventTourBadgeInfo.eventTourBadgeStatus){case c("EventTourBadgeEnum").TOUR_BADGE_HIDDEN:return c("React").createElement(n,{onclick:this.$PagesCoverEditMenu25},j._("Show Tour Info"));case c("EventTourBadgeEnum").TOUR_BADGE_SHOWN:return c("React").createElement(n,{onclick:this.$PagesCoverEditMenu25},j._("Hide Tour Info"));default:return null}};o.prototype.$PagesCoverEditMenu27=function(){var p,q=(p=this.props.coverData)!=null?(p=p.cover_video)!=null?p.isFromParentPage:p:p;if(!this.$PagesCoverEditMenu4()||this.props.coreData.currentCoverType===c("PagesCoverType").COVER_VIDEO&&q)return null;return c("React").createElement(n,{"data-testid":c("PagesProfileTestID").COVER_PHOTO_REMOVE_MENU_ITEM,onclick:this.$PagesCoverEditMenu26},j._("Remove"))};o.prototype.render=function(){if(!this.props.coreData.canViewerEditProfile||!this.state.videoUploaderInitParams)return null;var p=c("React").createElement(c("ReactXUIMenu"),null,this.$PagesCoverEditMenu6(),this.$PagesCoverEditMenu7(),this.$PagesCoverEditMenu15(),this.$PagesCoverEditMenu19(),this.$PagesCoverEditMenu21(),this.$PagesCoverEditMenu22(),this.$PagesCoverEditMenu24(),this.$PagesCoverEditMenu27());return c("React").createElement(c("PopoverMenu.react"),{className:"_3ihv"+(!this.props.coreData.shouldShowEditMenuForAdmins?" hidden_elem":""),layerBehaviors:[c("ContextualDialogArrow")],menu:p,position:"below"},c("React").createElement(c("PagesCoverCameraButton.react"),{expanded:!this.$PagesCoverEditMenu4(),label:this.$PagesCoverEditMenu5(),shouldShowCoverSlideshowMenuOptionNux:this.props.coverData.cover_slideshow.isCoverSlideshowEnabled&&this.props.coverData.cover_slideshow.shouldShowMenuNux&&this.props.coreData.currentCoverType!==c("PagesCoverType").COVER_SLIDESHOW}),c("React").createElement(c("PagesCoverRemoveCoverConfirmationDialog.react"),{coreData:this.props.coreData,onToggle:this.$PagesCoverEditMenu10,pageID:this.props.pageID,shown:this.state.showRemoveCoverConfirmationDialog}),c("React").createElement(c("PagesCoverVideoBrowserDialog.react"),{dialogShown:this.state.showCoverVideoBrowserDialog,onConfirm:this.$PagesCoverEditMenu11,onToggle:this.$PagesCoverEditMenu9,pageID:this.props.pageID}))};f.exports=o}),null);
__d("PagesCoverPhotoStore",["FluxReduceStore","PagesCoverAction","PagesCoverDispatcher","idx"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("FluxReduceStore"));i=h&&h.prototype;j.prototype.getInitialState=function(){return{coverPhotoData:{focus:{height:0,width:0},id:"0",original:{height:0,width:0},uri:null},isEditable:false,isLoading:true,isPreviewMode:false,isOverlayEnabled:false,pageDescription:null,pageHasPhotos:false,pageID:"0",pagePrimaryButton:null,renderedHeight:0,renderedWidth:0}};j.prototype.reduce=function(k,l){__p&&__p();var m,n=null;switch(l.type){case c("PagesCoverAction").NEW_COVER_DATA:var o=(m=l.data)!=null?(m=m.coverData)!=null?m.cover_photo:m:m;if(o!==null)n=babelHelpers["extends"]({},o,{isLoading:false,isPreviewMode:false});break;case c("PagesCoverAction").PHOTO_SAVED:case c("PagesCoverAction").PHOTO_REMOVED:n=babelHelpers["extends"]({},k,l.data,{isLoading:false,isPreviewMode:false});break;case c("PagesCoverAction").PHOTO_UPLOADING:case c("PagesCoverAction").COVER_REMOVING:n=babelHelpers["extends"]({},k,{isPreviewMode:false});break;case c("PagesCoverAction").PHOTO_PREVIEWING:n=babelHelpers["extends"]({},k,l.data,{isLoading:false,isPreviewMode:true});break;case c("PagesCoverAction").PHOTO_SAVING:n=babelHelpers["extends"]({},k,l.data,{isLoading:true,isPreviewMode:false});break}return n||k};function j(){h.apply(this,arguments)}f.exports=new j(c("PagesCoverDispatcher"))}),null);
__d("XPagesCoverSlideshowFetchPrefilledPhotosAsyncController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/profile/cover_slideshow/prefilled_photos/",{page_id:{type:"FBID",required:true}})}),null);
__d("PagesCoverSlideshowStore",["fbt","AsyncRequest","FluxReduceStore","immutable","PagesCoverAction","PagesCoverDispatcher","PagesCoverSlideshowActionCreator","PagesLogger","PagesLoggerEventEnum","PagesLoggerEventTargetEnum","React","SimpleXUIDialog","XPagesCoverSlideshowFetchPrefilledPhotosAsyncController","idx"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k,l,m={pageID:0,isCoverSlideshowEnabled:false,items:[],isEditMode:false,maxNumberOfPhotosInSlideshow:0,currentIndex:0,thumbnailHeight:0,thumbnailWidth:0,showLoadingScreen:false,hasPendingChanges:false,nuxTourSteps:[],shouldShowNUXTour:false,isContentOptimizerOn:false,shouldShowLoadingScreenOnPickerPlaceholder:false,shouldShowMenuNux:false};i=babelHelpers.inherits(n,c("immutable").Record(m));j=i&&i.prototype;function n(){i.apply(this,arguments)}k=babelHelpers.inherits(o,c("FluxReduceStore"));l=k&&k.prototype;function o(){var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=l.constructor).call.apply(p,[this].concat(s)),this.$PagesCoverSlideshowStore6=new Set(),q}o.prototype.getInitialState=function(){return new n()};o.prototype.getCurrentState=function(){return{pageID:this.getState().get("pageID"),isCoverSlideshowEnabled:this.getState().get("isCoverSlideshowEnabled"),items:this.getState().get("items"),isEditMode:this.getState().get("isEditMode"),maxNumberOfPhotosInSlideshow:this.getState().get("maxNumberOfPhotosInSlideshow"),currentIndex:this.getState().get("currentIndex"),thumbnailHeight:this.getState().get("thumbnailHeight"),thumbnailWidth:this.getState().get("thumbnailWidth"),showLoadingScreen:this.getState().get("showLoadingScreen"),hasPendingChanges:this.getState().get("hasPendingChanges"),nuxTourSteps:this.getState().get("nuxTourSteps"),shouldShowNUXTour:this.getState().get("shouldShowNUXTour"),isContentOptimizerOn:this.getState().get("isContentOptimizerOn"),shouldShowLoadingScreenOnPickerPlaceholder:this.getState().get("shouldShowLoadingScreenOnPickerPlaceholder"),shouldShowMenuNux:this.getState().get("shouldShowMenuNux")}};o.prototype.$PagesCoverSlideshowStore7=function(){if(this.$PagesCoverSlideshowStore3===undefined||this.$PagesCoverSlideshowStore3===null){var p=c("XPagesCoverSlideshowFetchPrefilledPhotosAsyncController").getURIBuilder().setFBID("page_id",this.getState().get("pageID")).getURI();new(c("AsyncRequest"))().setURI(p).setHandler(function(q){c("PagesCoverSlideshowActionCreator").loadPrefilledItems(q.payload)}).send();return null}else return this.$PagesCoverSlideshowStore3};o.prototype.$PagesCoverSlideshowStore8=function(p,q,r){__p&&__p();var s=null;if(r<p.length)s=p.map(function(u,v){return r===v?q:u});else{s=Array.from(p);s.push(q);s}var t=s.map(function(u){return u.carouselData.coverPhotoData.id});if(s.length===new Set(t).size)return s;c("SimpleXUIDialog").show(h._("This photo has already been selected. Please try picking a different photo."),h._("Duplicated Photo"));return p};o.prototype.$PagesCoverSlideshowStore9=function(p,q,r){var s=Array.from(p);if(q===r)return p;var t=s.splice(q,1);s.splice(r,0,t[0]);return s};o.prototype.$PagesCoverSlideshowStore10=function(p,q){if(p<0)return 0;if(p>=q)return Math.max(q-1,0);return p};o.prototype.reduce=function(p,q){__p&&__p();var r,s=null,t=null,u=p.get("items"),v=p.get("currentIndex");switch(q.type){case c("PagesCoverAction").NEW_COVER_DATA:var w=(r=q.data)!=null?(r=r.coverData)!=null?r.cover_slideshow:r:r;if(w){p=p.set("items",w.items);p=p.set("isCoverSlideshowEnabled",w.isCoverSlideshowEnabled);p=p.set("maxNumberOfPhotosInSlideshow",w.maxNumberOfPhotosInSlideshow);p=p.set("thumbnailHeight",w.thumbnailHeight);p=p.set("thumbnailWidth",w.thumbnailWidth);this.$PagesCoverSlideshowStore1=Array.from(w.items);this.$PagesCoverSlideshowStore6.clear();p=p.set("isEditMode",false);p=p.set("showLoadingScreen",false);p=p.set("hasPendingChanges",false);p=p.set("shouldShowNUXTour",w.shouldShowNUXTour);p=p.set("isContentOptimizerOn",w.isContentOptimizerOn);p=p.set("shouldShowMenuNux",w.shouldShowMenuNux)}var x=q.data.pageID;if(x)p=p.set("pageID",x);break;case c("PagesCoverAction").SLIDESHOW_EDIT:p=p.set("isEditMode",true);break;case c("PagesCoverAction").SLIDESHOW_DISPLAY:p=p.set("isEditMode",false);break;case c("PagesCoverAction").SLIDESHOW_PHOTO_PREVIEWING:if(q.data){var y=q.data,z=y.itemData,A=y.slideshowPreviewItemIndex;s=this.$PagesCoverSlideshowStore8(u,z,A);p=p.set("items",s);p=p.set("hasPendingChanges",true);p=p.set("isContentOptimizerOn",false)}p=p.set("shouldShowLoadingScreenOnPickerPlaceholder",false);break;case c("PagesCoverAction").SLIDESHOW_PHOTO_UPLOADING:var B=q.data.uploadingIndex;if(B<u.length){t=babelHelpers["extends"]({},u[B],{shouldShowLoadingIndicator:true});s=this.$PagesCoverSlideshowStore8(u,t,B);p=p.set("items",s)}else p=p.set("shouldShowLoadingScreenOnPickerPlaceholder",true);p=p.set("hasPendingChanges",true);break;case c("PagesCoverAction").SLIDESHOW_CHANGE_CAROUSEL_INDEX:p=p.set("currentIndex",this.$PagesCoverSlideshowStore10(q.data.currentIndex,p.get("items").length));break;case c("PagesCoverAction").SLIDESHOW_ITEM_REPOSITIONED:var C=q.data.itemRepositionedIndex;if(!this.$PagesCoverSlideshowStore6.has(C)){this.$PagesCoverSlideshowStore6.add(C);c("PagesLogger").log(p.get("pageID"),c("PagesLoggerEventEnum").DRAG,c("PagesLoggerEventTargetEnum").PAGE_COVER_SLIDESHOW,null,[],{event_name:"reposition_slideshow_item"});p=p.set("hasPendingChanges",true)}break;case c("PagesCoverAction").SLIDESHOW_PHOTO_REMOVED:var D=q.data.removedIndex;s=Array.from(u);s.splice(D,1);p=p.set("items",s);p=p.set("hasPendingChanges",true);p=p.set("isContentOptimizerOn",false);if(v>D||v>=s.length)p=p.set("currentIndex",this.$PagesCoverSlideshowStore10(v-1,s.length));break;case c("PagesCoverAction").SLIDESHOW_EDITING_CANCELLED:s=Array.from(this.$PagesCoverSlideshowStore1);p=p.set("items",s);p=p.set("isEditMode",false);p=p.set("hasPendingChanges",false);p=p.set("currentIndex",this.$PagesCoverSlideshowStore10(Math.min(s.length-1,v),s.length));this.$PagesCoverSlideshowStore6.clear();break;case c("PagesCoverAction").SLIDESHOW_SAVING:p=p.set("isEditMode",false);p=p.set("showLoadingScreen",true);p=p.set("hasPendingChanges",false);break;case c("PagesCoverAction").SLIDESHOW_CHANGE_ORDER:var E=q.data,F=E.fromIndex,G=E.toIndex;s=this.$PagesCoverSlideshowStore9(u,F,G);p=p.set("items",s);p=p.set("hasPendingChanges",true);p=p.set("currentIndex",this.$PagesCoverSlideshowStore10(G,s.length));p=p.set("isContentOptimizerOn",false);break;case c("PagesCoverAction").SLIDESHOW_NUX_TOUR_ELEMENT_LOADED:if(p.get("shouldShowNUXTour")){var H=q.data,I=H.context,J=H.step,K=H.description,L=H.position;if(this.$PagesCoverSlideshowStore4===undefined||this.$PagesCoverSlideshowStore4===null)this.$PagesCoverSlideshowStore4=[];if(this.$PagesCoverSlideshowStore5===undefined||this.$PagesCoverSlideshowStore5===null)this.$PagesCoverSlideshowStore5=new Set();if(!this.$PagesCoverSlideshowStore5.has(J)){this.$PagesCoverSlideshowStore4.splice(J,0,{context:I,description:K,position:L});this.$PagesCoverSlideshowStore5.add(J);p=p.set("nuxTourSteps",this.$PagesCoverSlideshowStore4)}}break;case c("PagesCoverAction").SLIDESHOW_NUX_TOUR_FINISHED:p=p.set("shouldShowNUXTour",false);break;case c("PagesCoverAction").SLIDESHOW_TOGGLE_CONTENT_SWITCHER:var M=!!q.data;if(M){this.$PagesCoverSlideshowStore2=p.get("items");s=this.$PagesCoverSlideshowStore7();if(s!==null)p=p.set("items",s)}else if(this.$PagesCoverSlideshowStore2===undefined||this.$PagesCoverSlideshowStore2===null)this.$PagesCoverSlideshowStore2=p.get("items");else p=p.set("items",this.$PagesCoverSlideshowStore2);p=p.set("isContentOptimizerOn",M);p=p.set("hasPendingChanges",true);break;case c("PagesCoverAction").SLIDESHOW_PREFILLED_PHOTO_LOADED:var N=q.data.prefilledItems;this.$PagesCoverSlideshowStore3=N;p=p.set("items",N);break;default:return p}return p};f.exports=new o(c("PagesCoverDispatcher"))}),null);
__d("PagesCoverTrailerState",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({WATCH_TRAILER:"watch_trailer",RESUME_EPISODE:"resume_episode",LATEST_EPISODE:"latest_episode",LIVE_VIDEO:"live_video"})}),null);
__d("PagesCoverTrailerStore",["FluxReduceStore","PagesCoverAction","PagesCoverDispatcher","PagesCoverTrailerState","idx"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("FluxReduceStore"));i=h&&h.prototype;j.prototype.getInitialState=function(){return{showsData:{title:""},viewerCoverTrailerState:c("PagesCoverTrailerState").WATCH_TRAILER,isAdmin:false}};j.prototype.reduce=function(k,l){var m,n=null;switch(l.type){case c("PagesCoverAction").NEW_COVER_DATA:var o=(m=l.data)!=null?(m=m.coverData)!=null?m.cover_trailer:m:m;if(o!==null){n=babelHelpers["extends"]({},o);this.$PagesCoverTrailerStore1=n}break}return n||k};function j(){h.apply(this,arguments)}f.exports=new j(c("PagesCoverDispatcher"))}),null);
__d("PagesCoverVideoStore",["CoverVideoStatus","FluxReduceStore","PagesCoverAction","PagesCoverDispatcher","VideoPlayerOrigins","idx"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("FluxReduceStore"));i=h&&h.prototype;j.prototype.getInitialState=function(){return{status:c("CoverVideoStatus").PUBLISHED,isViewerAdmin:false,shouldShowChooseFromCoverVideoMenu:false,isFromParentPage:false,isParentLocationPage:false,shouldCoverVideoLoop:false}};j.prototype.reduce=function(k,l){__p&&__p();var m,n=null;switch(l.type){case c("PagesCoverAction").NEW_COVER_DATA:this.$PagesCoverVideoStore1=l.data.pageID;var o=(m=l.data)!=null?(m=m.coverData)!=null?m.cover_video:m:m;if(o)n=babelHelpers["extends"]({},k,o,{playerOrigin:c("VideoPlayerOrigins").PAGE_TIMELINE});break;case c("PagesCoverAction").VIDEO_START_UPLOAD:n=babelHelpers["extends"]({},k,{status:c("CoverVideoStatus").UPLOADING,progress:0});break;case c("PagesCoverAction").VIDEO_UPLOADING:n=babelHelpers["extends"]({},k,{status:c("CoverVideoStatus").UPLOADING,progress:l.data.progress});break;case c("PagesCoverAction").VIDEO_ENCODING:n=babelHelpers["extends"]({},k,{status:c("CoverVideoStatus").ENCODING,progress:l.data.progress});break;case c("PagesCoverAction").VIDEO_PREVIEWING:n=babelHelpers["extends"]({},k,l.data,{status:c("CoverVideoStatus").PREVIEWING});break;case c("PagesCoverAction").VIDEO_CHOOSING_THUMBNAIL:n=babelHelpers["extends"]({},k,l.data,{status:c("CoverVideoStatus").CHOOSING_THUMBNAIL});break;case c("PagesCoverAction").VIDEO_PUBLISHING:n=babelHelpers["extends"]({},k,{status:c("CoverVideoStatus").PUBLISHING});break;case c("PagesCoverAction").VIDEO_PUBLISHED:n=babelHelpers["extends"]({},k,{status:c("CoverVideoStatus").PUBLISHED},l.data);break;case c("PagesCoverAction").VIDEO_CANCELLING:default:n=k}return n||k};function j(){h.apply(this,arguments)}f.exports=new j(c("PagesCoverDispatcher"))}),null);
__d("PageOnTourOverlay.react",["cx","EventTourBadgeEnum","Link.react","PagesCoverCoreStore","React","XEventsTourPermalinkController","XUIText.react","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();function i(j){var k=c("PagesCoverCoreStore").getEventTourBadgeInfo(),l=k.tourID,m=k.title,n=k.subtitle,o=k.eventTourBadgeStatus;if(o!==c("EventTourBadgeEnum").TOUR_BADGE_SHOWN||l===null||m===null)return null;var p=c("XEventsTourPermalinkController").getURIBuilder().setFBID("tour_id",l).getURI(),q="_ncd";if(j.className)q=c("joinClasses")(q,j.className);return c("React").createElement("div",{className:q},c("React").createElement(c("Link.react"),{href:p},c("React").createElement(c("XUIText.react"),{color:"white",size:"header1"},m)),c("React").createElement("br",null),c("React").createElement(c("Link.react"),{href:p},c("React").createElement(c("XUIText.react"),{className:"_nce",size:"header3"},n)))}f.exports=i}),null);
__d("PagesCoverLoadingScreen.react",["cx","CenteredContainer.react","React","XUISpinner.react"],(function a(b,c,d,e,f,g,h){"use strict";var i=function i(j){var k=c("React").createElement(c("CenteredContainer.react"),{fullHeight:true,horizontal:true,vertical:true},c("React").createElement(c("XUISpinner.react"),{background:"light",size:"large"})),l=j.height,m=j.width;if(l&&m)return c("React").createElement("div",{style:{height:l,width:m}},k);return c("React").createElement("div",{className:"_2rc-"},k)};f.exports=i}),null);
__d("XPagesCoverOverlayEditAsyncController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/profile/cover_overlay_edit/",{})}),null);
__d("XPagesCoverOverlayRemoveAsyncController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/profile/cover_overlay_remove/",{})}),null);
__d("PagesCoverOverlay.react",["ix","cx","fbt","AsyncRequest","Image.react","LayerFadeOnHide","PageCallToActionRef","PageCTAAction.react","PagesEventObserver","PagesEventType","PagesLogger","PagesLoggerEventEnum","PagesLoggerEventTargetEnum","React","ShimButton.react","SimpleNUXMessage","SimpleNUXMessageTypes","XPagesCoverOverlayEditAsyncController","XPagesCoverOverlayRemoveAsyncController","XUIAmbientNUX.react","XUIText.react","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=100;k=babelHelpers.inherits(n,c("React").Component);l=k&&k.prototype;function n(o){__p&&__p();l.constructor.call(this,o);this.$PagesCoverOverlay7=function(p){var q=p.target;if(q instanceof HTMLTextAreaElement&&q.value.length<=m)this.setState({newDescription:q.value})}.bind(this);this.$PagesCoverOverlay11=function(){this.setState({isEditing:true,shouldShowNUX:false});return}.bind(this);this.$PagesCoverOverlay9=function(){this.setState({isEditing:false,newDescription:this.state.currentDescription||""})}.bind(this);this.$PagesCoverOverlay10=function(){__p&&__p();var p=null,q=null;if(!this.state.newDescription){p=c("XPagesCoverOverlayRemoveAsyncController").getURIBuilder().getURI();q=true}else{p=c("XPagesCoverOverlayEditAsyncController").getURIBuilder().getURI();q=this.state.newDescription}new(c("AsyncRequest"))().setURI(p).setData({page_id:this.props.pageID,description:q}).setHandler(function(r){if(r.payload.description!==null)this.setState({isEditing:false,newDescription:r.payload.description||"",currentDescription:r.payload.description})}.bind(this)).send()}.bind(this);this.$PagesCoverOverlay13=function(){c("SimpleNUXMessage").markMessageSeenByUser(c("SimpleNUXMessageTypes").PAGES_COVER_DESCRIPTION_CREATION_NUX);this.setState({shouldShowNUX:false})}.bind(this);this.state={isEditing:false,newDescription:this.props.description||"",currentDescription:this.props.description,shouldShowNUX:false}}n.prototype.componentDidMount=function(){if(this.$PagesCoverOverlay1())this.setState({shouldShowNUX:true})};n.prototype.componentWillReceiveProps=function(o){if(this.props.description===o.description)return;this.setState({newDescription:o.description||"",currentDescription:o.description})};n.prototype.render=function(){var o=this.props.description,p=!!o||this.$PagesCoverOverlay2();if(!p&&!this.props.isEditable)return null;return c("React").createElement("div",null,c("React").createElement("div",{className:"_4i3o"}),c("React").createElement("div",{className:"_4i3n"},this.$PagesCoverOverlay3(),this.$PagesCoverOverlay4(),this.$PagesCoverOverlay5(),this.$PagesCoverOverlay6()))};n.prototype.$PagesCoverOverlay3=function(){if(this.state.isEditing||!this.state.currentDescription)return null;c("PagesLogger").log(this.props.pageID,c("PagesLoggerEventEnum").IMPRESSION,c("PagesLoggerEventTargetEnum").PAGE_COVER_DESCRIPTION,c("PageCallToActionRef").PAGES_COVER_AREA_SURFACE);c("PagesEventObserver").notify(c("PagesEventType").COVER_AREA_DESCRIPTION_IMPRESSION,this.props.pageID);var o=this.$PagesCoverOverlay2();return c("React").createElement("div",{className:"_4i46"+(o?" _4i47":"")+(!o?" _4i4d":"")},c("React").createElement(c("XUIText.react"),null,this.state.currentDescription))};n.prototype.$PagesCoverOverlay4=function(){if(this.$PagesCoverOverlay2()){c("PagesLogger").log(this.props.pageID,c("PagesLoggerEventEnum").IMPRESSION,c("PagesLoggerEventTargetEnum").PAGE_COVER_CTA_BUTTON,c("PageCallToActionRef").PAGES_COVER_AREA_SURFACE);c("PagesEventObserver").notify(c("PagesEventType").COVER_AREA_CTA_IMPRESSION,this.props.pageID);return c("React").createElement(c("PageCTAAction.react"),babelHelpers["extends"]({},this.props.primaryButton,{className:"_1kp2 _4i44 _291t",surface:c("PageCallToActionRef").PAGES_COVER_AREA_SURFACE}))}return null};n.prototype.$PagesCoverOverlay5=function(){if(!this.props.isEditable||!this.state.isEditing)return null;var o=this.$PagesCoverOverlay2();return c("React").createElement("div",null,c("React").createElement("textarea",{ref:function p(q){q&&q.focus()},className:"_4i4e"+(o?" _4i47":"")+(!o?" _4i4d":""),maxLines:"3",value:this.state.newDescription,onChange:this.$PagesCoverOverlay7,onKeyDown:this.$PagesCoverOverlay8}))};n.prototype.$PagesCoverOverlay6=function(){if(!this.props.isEditable||this.props.isPreviewMode||this.props.isLoading)return null;if(this.state.isEditing)return c("React").createElement("div",null,c("React").createElement("div",{className:"_4i4f"},c("React").createElement("div",{className:"_4i4g"},c("React").createElement(c("XUIText.react"),null,j._("{current_char_num} \/ {max_char_num}",[j.param("current_char_num",this.state.newDescription.length),j.param("max_char_num",m)])))),c("React").createElement("div",{className:"_4i4p"},c("React").createElement(c("ShimButton.react"),{className:"_4i4r",onClick:this.$PagesCoverOverlay9},c("React").createElement(c("Image.react"),{src:h("127524")})),c("React").createElement(c("ShimButton.react"),{className:"_4i4r",onClick:this.$PagesCoverOverlay10},c("React").createElement(c("Image.react"),{src:h("114570")}))));return c("React").createElement(c("ShimButton.react"),{className:"_4i4p",onClick:this.$PagesCoverOverlay11},c("React").createElement("div",{className:"_4i4r"},c("React").createElement(c("Image.react"),{src:h("115342")})),c("React").createElement("div",{className:"_4i4s",ref:"coverEditButton"},c("React").createElement(c("XUIText.react"),null,j._("Edit"))),this.$PagesCoverOverlay12())};n.prototype.$PagesCoverOverlay8=function(o){if(o.keyCode==13)o.preventDefault()};n.prototype.$PagesCoverOverlay2=function(){return!!this.props.primaryButton&&this.props.primaryButton.__typename==="PageCTAAction"};n.prototype.$PagesCoverOverlay12=function(){var o=c("React").createElement("div",{className:"_308b"},j._("Make it easy for people to see what's important and take action on your Page. You can edit or remove this new description anytime, and it won't affect other descriptions on your Page."));return c("React").createElement(c("XUIAmbientNUX.react"),{behaviors:{LayerFadeOnHide:c("LayerFadeOnHide")},contextRef:function(){return this.refs.coverEditButton}.bind(this),onCloseButtonClick:this.$PagesCoverOverlay13,position:"above",alignment:"right",shown:this.state.shouldShowNUX},o)};n.prototype.$PagesCoverOverlay1=function(){if(this.props.isEditable)return!c("SimpleNUXMessage").hasUserSeenMessage(c("SimpleNUXMessageTypes").PAGES_COVER_DESCRIPTION_CREATION_NUX);return false};f.exports=n}),null);
__d("XPhotoPermalinkController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/{vanity}/photos/{?set_token}/{photo_id}/",{photo_id:{type:"Int"},set_token:{type:"String"},type:{type:"Enum",defaultValue:3,enumType:0},link_share:{type:"String"},subject:{type:"Int"},object_id:{type:"Int"},opaque_cursor:{type:"String"},legacy_user_id:{type:"Int"},legacy_photo_id:{type:"Int"},video_id:{type:"Int"},comment_id:{type:"Int"},notif_t:{type:"String"},is_notification_preview:{type:"Bool",defaultValue:false},force_theater:{type:"Bool",defaultValue:false},vanity:{type:"String"},reply_comment_id:{type:"Int"}})}),null);
__d("PagesCoverPhotoLink.react",["cx","Link.react","React","XPhotoPermalinkController"],(function a(b,c,d,e,f,g,h){"use strict";var i=function i(j){if(j.coverPhotoData.uri===null||j.isLoading||j.isPreviewMode)return c("React").Children.only(j.children);return c("React").createElement(c("Link.react"),{className:"_5q-4",href:c("XPhotoPermalinkController").getURIBuilder().setInt("photo_id",j.coverPhotoData.id).setString("vanity",j.pageID).getURI(),rel:"theater"},j.children)};f.exports=i}),null);
__d("XPagesCoverPhotoSaveAsyncController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/profile/cover_photo_save/",{focus_x:{type:"Float",required:true},focus_y:{type:"Float",required:true},page_id:{type:"FBID",required:true},photo_id:{type:"FBID",required:true}})}),null);
__d("PagesCoverPhoto.react",["cx","ActorURI","AsyncRequest","PagesCoverAction","PagesCoverDispatcher","PagesCoverOverlay.react","PagesCoverPhotoLink.react","ProfileHeaderCoverPhoto.react","React","XPagesCoverPhotoSaveAsyncController","XPagesCoverReloadController"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.render=function(){if(!this.$PagesCoverPhoto1()&&!this.props.isEditable)return null;return c("React").createElement("div",{className:"_2g7o"},c("React").createElement(c("PagesCoverPhotoLink.react"),this.props,c("React").createElement("div",null,c("React").createElement(c("ProfileHeaderCoverPhoto.react"),{coverPhotoData:this.props.coverPhotoData,emptyCover:this.$PagesCoverPhoto2(),height:this.props.renderedHeight,isLoading:this.props.isLoading,previewCancelHandler:this.$PagesCoverPhoto3.bind(this),previewMode:this.props.isPreviewMode,previewSaveHandler:this.$PagesCoverPhoto4.bind(this),ref:"coverPhoto",width:this.props.renderedWidth}))),this.props.isOverlayEnabled?c("React").createElement(c("PagesCoverOverlay.react"),{pageID:this.props.pageID,primaryButton:this.props.pagePrimaryButton,description:this.props.pageDescription,isEditable:this.props.isEditable,isPreviewMode:this.props.isPreviewMode,isLoading:this.props.isLoading}):null)};k.prototype.$PagesCoverPhoto1=function(){return this.props.coverPhotoData.uri!==null};k.prototype.$PagesCoverPhoto2=function(){return c("React").createElement("div",{className:"_5_yy _44oa"})};k.prototype.$PagesCoverPhoto3=function(){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").PHOTO_CANCEL});new(c("AsyncRequest"))().setURI(c("XPagesCoverReloadController").getURIBuilder().setFBID("page_id",this.props.pageID).getURI()).send()};k.prototype.$PagesCoverPhoto4=function(){var l=this.refs.coverPhoto.getDimensions().getRect().center;c("PagesCoverDispatcher").dispatch({data:{coverPhotoData:babelHelpers["extends"]({},this.props.coverPhotoData,{focus:{height:l.y,width:l.x}})},type:c("PagesCoverAction").PHOTO_SAVING});new(c("AsyncRequest"))().setURI(c("ActorURI").create(c("XPagesCoverPhotoSaveAsyncController").getURIBuilder().setFloat("focus_x",l.x).setFloat("focus_y",l.y).setFBID("page_id",this.props.pageID).setFBID("photo_id",this.props.coverPhotoData.id).getURI(),this.props.pageID)).send()};function k(){i.apply(this,arguments)}f.exports=k}),null);
__d("PagesCoverSlideshowButtonGroup.react",["cx","fbt","PagesCoverSlideshowActionCreator","React","SimpleXUIDialog","XUIButton.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").PureComponent);k=j&&j.prototype;function m(){__p&&__p();var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=k.constructor).call.apply(n,[this].concat(q)),this.$PagesCoverSlideshowButtonGroup1=function(){if(this.props.items.length===0)c("SimpleXUIDialog").show(i._("To save your slideshow, first add photos. To delete your cover photo, return to your Page and select Remove in the cover area."),i._("Slideshow Not Saved"));else if(this.$PagesCoverSlideshowButtonGroup2())c("SimpleXUIDialog").show(i._("You can't save duplicated photos in your slideshow."),i._("Duplicated Photo"));else{this.props.onSave();c("PagesCoverSlideshowActionCreator").onSlideshowSaving(this.props.pageID)}}.bind(this),o}m.prototype.$PagesCoverSlideshowButtonGroup2=function(){var n=this.props.items.map(function(o){return o.carouselData.coverPhotoData.id});return new Set(n).size!==n.length};m.prototype.render=function(){if(!this.props.isEditMode)return null;return c("React").createElement("span",{className:"_34p_"},c("React").createElement(c("XUIButton.react"),{disabled:!this.props.hasPendingChanges,label:i._("Cancel"),onClick:c("PagesCoverSlideshowActionCreator").confirmCancel,use:"default"}),c("React").createElement(c("XUIButton.react"),{disabled:!this.props.hasPendingChanges,label:i._("Save"),onClick:this.$PagesCoverSlideshowButtonGroup1,use:"confirm"}))};m.propTypes={pageID:l.string.isRequired,isEditMode:l.bool.isRequired,items:l.array.isRequired,onSave:l.func.isRequired,hasPendingChanges:l.bool.isRequired};f.exports=m}),null);
__d("PagesCoverSlideshowItemLoadingScreen.react",["cx","CenteredContainer.react","React","XUISpinner.react"],(function a(b,c,d,e,f,g,h){"use strict";function i(j){if(!j.shown)return null;return c("React").createElement(c("CenteredContainer.react"),{className:"_4g6t",fullHeight:true,horizontal:true,vertical:true},c("React").createElement(c("XUISpinner.react"),{background:"light",size:"large"}))}f.exports=i}),null);
__d("XPagesCoverSlideshowSaveAsyncController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/pages/profile/cover_slideshow/save/",{page_id:{type:"FBID",required:true},photo_id_vector:{type:"FBIDVector",required:true},focus_x_vector:{type:"FloatVector",required:true},focus_y_vector:{type:"FloatVector",required:true},is_content_optimizer_on:{type:"Bool",defaultValue:false}})}),null);
__d("PagesCoverSlideshowCarousel.react",["ix","cx","invariant","AsyncRequest","Image.react","Link.react","PagesCoverSlideshowActionCreator","PagesCoverSlideshowButtonGroup.react","PagesCoverSlideshowItemLoadingScreen.react","ProfileHeaderCoverPhoto.react","React","XPagesCoverSlideshowSaveAsyncController","XPhotoPermalinkController","XUICarousel.react","XUICarouselArrow.react","XUICarouselItem.react","XUICarouselLinks.react","emptyFunction","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("React").PropTypes,n={focus:{height:0,width:0},id:"0",original:{height:0,width:0},uri:null},o=820,p=312;k=babelHelpers.inherits(q,c("React").PureComponent);l=k&&k.prototype;function q(r){__p&&__p();l.constructor.call(this,r);this.state={showCarouselDotsIndicator:false};this.$PagesCoverSlideshowCarousel4=function(s){this.$PagesCoverSlideshowCarousel1=s;if(this.$PagesCoverSlideshowCarousel1){this.$PagesCoverSlideshowCarousel2=this.$PagesCoverSlideshowCarousel1.subscribe(["animation_start"],function(t,u){if(t==="animation_start")c("PagesCoverSlideshowActionCreator").changeCurrentIndex(this.props.pageID,u)}.bind(this));this.setState({showCarouselDotsIndicator:true})}}.bind(this);this.$PagesCoverSlideshowCarousel7=function(){__p&&__p();var s=[],t=[],u=[];for(var v=0;v<this.props.items.length;v++){var w=this.props.items[v],x=w.carouselData.coverPhotoData.id,y=this.$PagesCoverSlideshowCarousel3.get(x);!!y||j(0);var z=y.getDimensions().getRect().center;s.push(x);t.push(z.x);u.push(z.y)}var A=c("XPagesCoverSlideshowSaveAsyncController").getURIBuilder().setFBID("page_id",this.props.pageID).setFBIDVector("photo_id_vector",s).setFloatVector("focus_x_vector",t).setFloatVector("focus_y_vector",u).setBool("is_content_optimizer_on",this.props.isContentOptimizerOn).getURI();new(c("AsyncRequest"))(A).send()}.bind(this);this.$PagesCoverSlideshowCarousel3=new Map()}q.prototype.componentWillReceiveProps=function(r){if(this.$PagesCoverSlideshowCarousel1&&r.currentIndex!==this.props.currentIndex)this.$PagesCoverSlideshowCarousel1.setIndex(r.currentIndex)};q.prototype.componentWillUnmount=function(){if(this.$PagesCoverSlideshowCarousel1&&this.$PagesCoverSlideshowCarousel2)this.$PagesCoverSlideshowCarousel1.unsubscribe(this.$PagesCoverSlideshowCarousel2)};q.prototype.$PagesCoverSlideshowCarousel5=function(){if(!this.$PagesCoverSlideshowCarousel1||!this.state.showCarouselDotsIndicator)return null;return c("React").createElement(c("XUICarouselLinks.react"),{carousel:this.$PagesCoverSlideshowCarousel1,className:"_2yih"})};q.prototype.$PagesCoverSlideshowCarousel6=function(r,s){if(!s)return;this.$PagesCoverSlideshowCarousel3.set(r,s)};q.prototype.render=function(){var r=c("React").createElement(c("XUICarouselArrow.react"),{className:"_3-9a"},c("React").createElement(c("Image.react"),{src:h("114591")})),s=c("React").createElement(c("XUICarouselArrow.react"),{className:"_3-90"},c("React").createElement(c("Image.react"),{src:h("114601")})),t=this.props.items.map(function(u,v){var w=u.carouselData,x=c("React").createElement(c("ProfileHeaderCoverPhoto.react"),{coverPhotoData:w.coverPhotoData,height:w.renderedHeight,hideDefaultButtons:true,isLoading:w.isLoading,onMove:c("PagesCoverSlideshowActionCreator").onItemRepositioned,previewCancelHandler:c("emptyFunction"),previewMode:this.props.isEditMode,previewSaveHandler:c("emptyFunction"),ref:function(y){return this.$PagesCoverSlideshowCarousel6(w.coverPhotoData.id,y)}.bind(this),width:w.renderedWidth});if(!this.props.isEditMode)x=c("React").createElement(c("Link.react"),{className:"_5q-4",href:c("XPhotoPermalinkController").getURIBuilder().setInt("photo_id",w.coverPhotoData.id).setString("vanity",this.props.pageID).setString("set_token","p."+w.coverPhotoData.id).getURI(),rel:"theater"},x);return c("React").createElement(c("XUICarouselItem.react"),{className:"_626d",key:w.coverPhotoData.id},x,c("React").createElement(c("PagesCoverSlideshowItemLoadingScreen.react"),{shown:!!u.shouldShowLoadingIndicator}))}.bind(this));if(t.length===0)t.push(c("React").createElement(c("XUICarouselItem.react"),{className:"_626d",key:"empty_cover_photo_placeholder"},c("React").createElement(c("ProfileHeaderCoverPhoto.react"),{coverPhotoData:n,emptyCover:c("React").createElement("div",{className:"_5_yy _44oa"}),height:p,hideDefaultButtons:true,isLoading:false,previewCancelHandler:c("emptyFunction"),previewMode:false,previewSaveHandler:c("emptyFunction"),width:o})));return c("React").createElement("div",null,c("React").createElement(c("XUICarousel.react"),{arrows:[r,s],initialAutoplay:false,initialIndex:this.props.currentIndex,ref:this.$PagesCoverSlideshowCarousel4,resizeViewport:"fixed",viewportHeight:p,wrapAround:true},t),this.$PagesCoverSlideshowCarousel5(),c("React").createElement(c("PagesCoverSlideshowButtonGroup.react"),babelHelpers["extends"]({},this.props,{onSave:this.$PagesCoverSlideshowCarousel7})))};q.propTypes={items:m.array.isRequired,maxNumberOfPhotosInSlideshow:m.number.isRequired,photoPreviewData:m.object,currentIndex:m.number.isRequired,isEditMode:m.bool.isRequired,hasPendingChanges:m.bool.isRequired,isContentOptimizerOn:m.bool.isRequired};f.exports=q}),null);
__d("PagesCoverSlideshowItemEditMenu.react",["cx","fbt","ActorURI","ContextualDialogArrow","FileInput.react","FileInputUploader","PagesCoverSlideshowActionCreator","ReactXUIMenu","PhotoBrowserDialogEndpointType","PhotoBrowserDialogPhotoGeneratorType","PopoverMenu.react","React","XPhotoBrowserDialogController","ReactDOM","XPagesCoverPhotoUploadAsyncController"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("ReactXUIMenu").Item,m=c("React").PropTypes;j=babelHelpers.inherits(n,c("React").PureComponent);k=j&&j.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=k.constructor).call.apply(o,[this].concat(r)),this.$PagesCoverSlideshowItemEditMenu2=function(t){this.$PagesCoverSlideshowItemEditMenu1=t}.bind(this),this.$PagesCoverSlideshowItemEditMenu3=function(){var t=c("ActorURI").create(c("XPagesCoverPhotoUploadAsyncController").getURIBuilder().setFBID("page_id",this.props.pageID).setString("ref","pages_cover_slideshow_ref").setInt("index",this.props.index).getURI(),this.props.pageID),u=c("ReactDOM").findDOMNode(this.$PagesCoverSlideshowItemEditMenu1);new(c("FileInputUploader"))(u).setURI(t).setAllowCrossOrigin(true).send();c("PagesCoverSlideshowActionCreator").onPhotoUploading(this.props.index)}.bind(this),this.$PagesCoverSlideshowItemEditMenu4=function(){c("PagesCoverSlideshowActionCreator").onPhotoRemoved(this.props.index)}.bind(this),p}n.prototype.componentDidMount=function(){if(this.props.index!==0)return;var o=c("ReactDOM").findDOMNode(this);if(!(o instanceof Element)||!this.props.hasItem)return;c("PagesCoverSlideshowActionCreator").onNUXTourElementLoaded(o,2,i._("To choose your slideshow manually, add a new photo or choose an existing one. Slideshow images must be at least 820 pixels wide and 312 pixels tall."),"below")};n.prototype.$PagesCoverSlideshowItemEditMenu5=function(){var o=c("XPhotoBrowserDialogController").getURIBuilder().setEnum("endpoint",c("PhotoBrowserDialogEndpointType").PAGES_COVER_SLIDESHOW_JS).setEnum("generator",c("PhotoBrowserDialogPhotoGeneratorType").PAGE).setString("data","pages_cover_photo").setInt("id",this.props.pageID).setString("data",""+this.props.index).getURI();return c("React").createElement(l,{href:o,rel:"dialog"},i._("Choose From Photos"))};n.prototype.$PagesCoverSlideshowItemEditMenu6=function(){return c("React").createElement(l,{renderas:"label"},c("React").createElement(c("FileInput.react"),{accept:"image/*",display:"inline-block",name:"pages_cover_slideshow_photo_uploader",onChange:this.$PagesCoverSlideshowItemEditMenu3,ref:this.$PagesCoverSlideshowItemEditMenu2},c("React").createElement("a",{className:"_2ojv",href:"#"},i._("Upload Photo"))))};n.prototype.$PagesCoverSlideshowItemEditMenu7=function(){if(!this.props.hasItem)return null;return c("React").createElement(l,{onClick:this.$PagesCoverSlideshowItemEditMenu4},i._("Remove"))};n.prototype.$PagesCoverSlideshowItemEditMenu8=function(){return c("React").createElement(c("ReactXUIMenu"),null,this.$PagesCoverSlideshowItemEditMenu5(),this.$PagesCoverSlideshowItemEditMenu6(),this.$PagesCoverSlideshowItemEditMenu7())};n.prototype.render=function(){return c("React").createElement(c("PopoverMenu.react"),{layerBehaviors:[c("ContextualDialogArrow")],menu:this.$PagesCoverSlideshowItemEditMenu8(),position:"below"},this.props.icon)};n.propTypes={index:m.number.isRequired,pageID:m.string.isRequired,icon:m.object.isRequired,hasItem:m.bool.isRequired};f.exports=n}),null);
__d("PagesCoverSlideshowPlaceholder.react",["cx","React"],(function a(b,c,d,e,f,g,h){"use strict";function i(j){return c("React").createElement("div",{className:"_2aou",key:"placeholder"},c("React").createElement("div",{className:"_2ap1",style:{height:j.thumbnailHeight,width:j.thumbnailWidth}}))}f.exports=i}),null);
__d("PagesCoverSlideshowPlaceholderWithPicker.react",["ix","cx","fbt","CenteredContainer.react","Image.react","Link.react","PagesCoverSlideshowActionCreator","PagesCoverSlideshowItemEditMenu.react","React","ReactDOM","XUISpinner.react","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("React").PropTypes;k=babelHelpers.inherits(n,c("React").PureComponent);l=k&&k.prototype;n.prototype.$PagesCoverSlideshowPlaceholderWithPicker1=function(){if(this.props.shouldShowLoadingScreenOnPickerPlaceholder)return null;var o=c("React").createElement(c("CenteredContainer.react"),{className:"_30i-",style:{height:this.props.thumbnailHeight,width:this.props.thumbnailWidth},vertical:true},c("React").createElement(c("Image.react"),{src:h("123419")}));return c("React").createElement(c("PagesCoverSlideshowItemEditMenu.react"),{hasItem:false,icon:o,index:this.props.index,pageID:this.props.pageID})};n.prototype.$PagesCoverSlideshowPlaceholderWithPicker2=function(){if(!this.props.shouldShowLoadingScreenOnPickerPlaceholder)return null;return c("React").createElement(c("CenteredContainer.react"),{className:"_30i-",style:{height:this.props.thumbnailHeight,width:this.props.thumbnailWidth},vertical:true},c("React").createElement(c("XUISpinner.react"),{background:"light",size:"large"}))};n.prototype.render=function(){return c("React").createElement("div",{className:"_2aou",key:"picker"},c("React").createElement(c("Link.react"),null,this.$PagesCoverSlideshowPlaceholderWithPicker1(),this.$PagesCoverSlideshowPlaceholderWithPicker2()))};function n(){k.apply(this,arguments)}n.propTypes={index:m.number.isRequired,pageID:m.string.isRequired,thumbnailHeight:m.number.isRequired,thumbnailWidth:m.number.isRequired,shouldShowLoadingScreenOnPickerPlaceholder:m.bool.isRequired};f.exports=n}),null);
__d("PagesCoverSlideshowThumbnailItem.react",["cx","BackgroundImage.react","Link.react","PagesCoverSlideshowActionCreator","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.$PagesCoverSlideshowThumbnailItem1=function(){c("PagesCoverSlideshowActionCreator").changeCurrentIndex(this.props.pageID,this.props.index)}.bind(this),n}l.prototype.render=function(){return c("React").createElement("div",{className:"_2aou",key:this.props.thumbnailURI},c("React").createElement(c("Link.react"),{onClick:this.$PagesCoverSlideshowThumbnailItem1},c("React").createElement(c("BackgroundImage.react"),{alt:"pages_cover_photo_thumbnail",backgroundSize:"cover",className:this.props.isCurrent?"_4bou":"",height:this.props.thumbnailHeight,src:this.props.thumbnailURI,width:this.props.thumbnailWidth})))};l.propTypes={index:k.number.isRequired,isCurrent:k.bool.isRequired,pageID:k.string.isRequired,thumbnailWidth:k.number.isRequired,thumbnailHeight:k.number.isRequired,thumbnailURI:k.string.isRequired};f.exports=l}),null);
__d("PagesCoverSlideshowEditBar.react",["ix","cx","fbt","invariant","FBCircularGlyph.react","FBDraggableBar.react","FBDraggableItem.react","FBToggleSwitch.react","PagesCoverSlideshowActionCreator","PagesCoverSlideshowItemEditMenu.react","PagesCoverSlideshowPlaceholder.react","PagesCoverSlideshowPlaceholderWithPicker.react","PagesCoverSlideshowThumbnailItem.react","React","fbglyph"],(function a(b,c,d,e,f,g,h,i,j,k){"use strict";__p&&__p();var l,m,n=c("React").PropTypes;l=babelHelpers.inherits(o,c("React").PureComponent);m=l&&l.prototype;function o(){var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=m.constructor).call.apply(p,[this].concat(s)),this.$PagesCoverSlideshowEditBar3=function(u){u||u===0||k(0);c("PagesCoverSlideshowActionCreator").changeCurrentIndex(this.props.pageID,u)}.bind(this),this.$PagesCoverSlideshowEditBar4=function(u){c("PagesCoverSlideshowActionCreator").toggleContentOptimizer(this.props.pageID,u)}.bind(this),this.$PagesCoverSlideshowEditBar5=function(u,v){c("PagesCoverSlideshowActionCreator").reorderSlideshowItems(u,v,this.props.pageID)}.bind(this),q}o.prototype.$PagesCoverSlideshowEditBar1=function(p){if(!p)return;c("PagesCoverSlideshowActionCreator").onNUXTourElementLoaded(p,1,j._("You can rearrange the order of your slideshow by dragging the photos to the position where you want them."),"below")};o.prototype.$PagesCoverSlideshowEditBar2=function(p){if(!p)return;c("PagesCoverSlideshowActionCreator").onNUXTourElementLoaded(p,4,j._("To help get you started, we've chosen photos based on what performs well. If you let Facebook choose your slideshow, the photos may update based on your Page activity."),"left")};o.prototype.render=function(){__p&&__p();if(!this.props.isEditMode)return null;var p=this.props.items.map(function(t,s){var u=t.thumbnailData;return c("React").createElement(c("FBDraggableItem.react"),{index:s,key:u.thumbnailURI,onGrab:this.$PagesCoverSlideshowEditBar3},c("React").createElement(c("PagesCoverSlideshowThumbnailItem.react"),babelHelpers["extends"]({index:s,isCurrent:s===this.props.currentIndex,pageID:this.props.pageID},u)),c("React").createElement("div",{className:"_37bb"},c("React").createElement(c("PagesCoverSlideshowItemEditMenu.react"),babelHelpers["extends"]({},u,{hasItem:true,icon:c("React").createElement(c("FBCircularGlyph.react"),{circleSize:18,className:"_4boy",glyph:h("113738")}),index:s,pageID:this.props.pageID}))))}.bind(this)),q=[],r=this.props.maxNumberOfPhotosInSlideshow-p.length;if(r>0)q.push(c("React").createElement(c("PagesCoverSlideshowPlaceholderWithPicker.react"),{index:p.length,key:"pages_cover_slideshow_picker",pageID:this.props.pageID,shouldShowLoadingScreenOnPickerPlaceholder:this.props.shouldShowLoadingScreenOnPickerPlaceholder,thumbnailHeight:this.props.thumbnailHeight,thumbnailWidth:this.props.thumbnailWidth}));var s=p.length+q.length;while(q.length<r){q.push(c("React").createElement(c("PagesCoverSlideshowPlaceholder.react"),{key:"pages_cover_slideshow_placeholder"+s,thumbnailHeight:this.props.thumbnailHeight,thumbnailWidth:this.props.thumbnailWidth}));s++}return c("React").createElement("div",{ref:this.$PagesCoverSlideshowEditBar1},c("React").createElement("div",{className:"_3rgb"},j._("Choose photos you'd like to feature in your cover slideshow"),c("React").createElement("span",{className:"_3rgc",ref:this.$PagesCoverSlideshowEditBar2},c("React").createElement("span",{className:"_3-8s"},j._("Let Facebook Choose Photos")),c("React").createElement(c("FBToggleSwitch.react"),{animate:true,checked:this.props.isContentOptimizerOn,onToggle:this.$PagesCoverSlideshowEditBar4,tooltip:j._("Facebook can select photos for you based on what performs well. These photos may update based on your Page activity. To create your own slideshow, add or edit photos.")}))),c("React").createElement("div",{className:"_3rgd"},c("React").createElement(c("FBDraggableBar.react"),{onReorder:this.$PagesCoverSlideshowEditBar5},p),q))};o.propTypes={pageID:n.string.isRequired,items:n.array.isRequired,isEditMode:n.bool.isRequired,maxNumberOfPhotosInSlideshow:n.number.isRequired,currentIndex:n.number.isRequired,thumbnailHeight:n.number.isRequired,thumbnailWidth:n.number.isRequired,isContentOptimizerOn:n.bool.isRequired,shouldShowLoadingScreenOnPickerPlaceholder:n.bool.isRequired};f.exports=o}),null);
__d("PagesCoverSlideshowNUXTour.react",["AdsBlueTipTour.react","BasicFBNux","LayerFadeOnShow","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("React").PropTypes;h=babelHelpers.inherits(k,c("React").PureComponent);i=h&&h.prototype;k.prototype.$PagesCoverSlideshowNUXTour1=function(){c("BasicFBNux").onDismiss(5385)};k.prototype.$PagesCoverSlideshowNUXTour2=function(l){if(!l)return;c("BasicFBNux").onView(5385)};k.prototype.render=function(){if(this.props.steps.length===0||!this.props.shown)return null;var l=this.props.steps.map(function(m){return{content:m.description,context:m.context,position:m.position}});return c("React").createElement(c("AdsBlueTipTour.react"),{behaviors:{LayerFadeOnShow:c("LayerFadeOnShow")},highlightContext:false,onComplete:this.$PagesCoverSlideshowNUXTour1,onXOut:this.$PagesCoverSlideshowNUXTour1,ref:this.$PagesCoverSlideshowNUXTour2,steps:l})};function k(){h.apply(this,arguments)}k.propTypes={shown:j.bool.isRequired,steps:j.array.isRequired};f.exports=k}),null);
__d("PagesCoverSlideshow.react",["cx","PagesCoverSlideshowActionCreator","PagesCoverSlideshowCarousel.react","PagesCoverSlideshowEditBar.react","PagesCoverSlideshowItemLoadingScreen.react","PagesCoverSlideshowNUXTour.react","PagesLogger","PagesLoggerEventEnum","PagesLoggerEventTargetEnum","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.$PagesCoverSlideshow1=function(){if(this.props.hasPendingChanges)c("PagesCoverSlideshowActionCreator").confirmCancel();else c("PagesCoverSlideshowActionCreator").onEditingCancelled()}.bind(this),n}l.prototype.componentDidMount=function(){if(!this.props.isEditMode)c("PagesLogger").log(this.props.pageID,c("PagesLoggerEventEnum").IMPRESSION,c("PagesLoggerEventTargetEnum").PAGE_COVER_SLIDESHOW)};l.prototype.render=function(){if(!this.props.isCoverSlideshowEnabled)return null;return c("React").createElement("div",null,c("React").createElement("div",{className:"_626c"},c("React").createElement(c("PagesCoverSlideshowEditBar.react"),this.props),c("React").createElement(c("PagesCoverSlideshowCarousel.react"),this.props),c("React").createElement(c("PagesCoverSlideshowNUXTour.react"),{shown:this.props.shouldShowNUXTour&&this.props.isEditMode,steps:this.props.nuxTourSteps}),c("React").createElement(c("PagesCoverSlideshowItemLoadingScreen.react"),{shown:this.props.showLoadingScreen})),c("React").createElement("div",{className:this.props.isEditMode?"_i5t":"",onClick:this.$PagesCoverSlideshow1,role:"link",tabIndex:0}))};l.propTypes={pageID:k.string.isRequired,isCoverSlideshowEnabled:k.bool.isRequired,hasPendingChanges:k.bool.isRequired,shouldShowNUXTour:k.bool.isRequired,nuxTourSteps:k.array.isRequired,showLoadingScreen:k.bool.isRequired,isEditMode:k.bool.isRequired};f.exports=l}),null);
__d("PagesCoverVideoPlayer.react",["cx","Bootloader","CoverVideoUtil","OnVisible.react","PagesEventObserver","PagesEventType","PagesLogger","PagesLoggerEventEnum","PagesLoggerEventTargetEnum","React","ReactDOM","SubscriptionsHandler","TahoeVariables","URI","VideoComponentEmbeddedControls.react","VideoComponentPlayButton.react","VideoComponentWithLoopingPlayback.react","VideoPlayer.react","VideoPlayerLoggerSource","VideoPlayerReason"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=-100;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;function l(m){__p&&__p();j.constructor.call(this,m);this.$PagesCoverVideoPlayer5=function(){var n=this.$PagesCoverVideoPlayer2;if(!n.vpc.isState("playing")&&!n.vpc.isState("finished"))n.vpc.play(c("VideoPlayerReason").PAGE_VISIBILITY)}.bind(this);this.$PagesCoverVideoPlayer6=function(){var n=this.$PagesCoverVideoPlayer2;if(n.vpc.isState("playing"))n.vpc.pause(c("VideoPlayerReason").PAGE_VISIBILITY)}.bind(this);this.state={offsetType:null,offsetValue:null,videoData:null};this.$PagesCoverVideoPlayer1=new(c("SubscriptionsHandler"))()}l.prototype.componentDidMount=function(){if(this.props.videoID)c("CoverVideoUtil").fetchCoverVideoData(this.props.videoID).then(function(m){return this.setState(babelHelpers["extends"]({},m))}.bind(this)).done()};l.prototype.shouldComponentUpdate=function(m,n){var o=n.videoData;return!!o&&o.getVideoID()===m.videoID};l.prototype.componentWillReceiveProps=function(m){if(m.videoID&&this.props.videoID!==m.videoID)c("CoverVideoUtil").fetchCoverVideoData(m.videoID).then(function(n){return this.setState(babelHelpers["extends"]({},n))}.bind(this)).done()};l.prototype.componentWillUnmount=function(){this.$PagesCoverVideoPlayer1.release()};l.prototype.$PagesCoverVideoPlayer3=function(){c("PagesEventObserver").notify(c("PagesEventType").COVER_VIDEO_CLICK,this.props.pageID,{video_id:this.props.videoID});c("PagesLogger").log(this.props.pageID,c("PagesLoggerEventEnum").CLICK,c("PagesLoggerEventTargetEnum").PAGES_COVER_VIDEO,"page_header",["Pages","Pages: Engagement","pages web + m-site","pages surface"],{video_id:this.props.videoID})};l.prototype.$PagesCoverVideoPlayer4=function(){c("PagesEventObserver").notify(c("PagesEventType").COVER_VIDEO_IMPRESSION,this.props.pageID,{video_id:this.props.videoID});c("PagesLogger").log(this.props.pageID,c("PagesLoggerEventEnum").IMPRESSION,c("PagesLoggerEventTargetEnum").PAGES_COVER_VIDEO,"page_header",["Pages","Pages: Engagement","pages web + m-site","pages surface"],{video_id:this.props.videoID})};l.prototype.render=function(){__p&&__p();var m=this.state,n=m.offsetType,o=m.offsetValue,p=m.videoData;if(n===null||o===null||!p)return null;var q=this.props.shouldHideSoundControl?null:c("React").createElement(c("VideoComponentEmbeddedControls.react"),{hidePlaybackControl:false,hidePlaybackScrubber:true,hideRemainingTime:true,showFullscreenButton:false,showSettingsButton:false}),r=this.props.shouldCoverVideoLoop?c("React").createElement(c("VideoComponentWithLoopingPlayback.react"),{infiniteLooping:true}):null;this.$PagesCoverVideoPlayer4();return c("React").createElement(c("OnVisible.react"),{buffer:k,onHidden:this.$PagesCoverVideoPlayer6,onVisible:this.$PagesCoverVideoPlayer5},c("React").createElement(c("VideoPlayer.react"),{allowCrossPageTransition:true,autoplay:true,forceHD:true,height:this.props.containerHeight,offsetType:n,offsetValue:o,onVideoClick:function(){__p&&__p();var s=this.props,t=s.videoLinkData,u=s.playerOrigin;if(!t)return;if(this.$PagesCoverVideoPlayer2&&this.$PagesCoverVideoPlayer2.vpc&&!this.$PagesCoverVideoPlayer2.vpc.isState("playing"))return;var v=t.channelCaller;if(c("TahoeVariables").useTahoe)c("Bootloader").loadModules(["TahoeController"],function(w){w.openFromVideoLink(new(c("URI"))(t.href),{channelID:t.channelID,caller:v,origin:u})},"PagesCoverVideoPlayer.react");else c("Bootloader").loadModules(["VideoChannelHandleLink"],function(w){w.openChannel(t.channelID,v,p.getVideoID())},"PagesCoverVideoPlayer.react");this.$PagesCoverVideoPlayer3()}.bind(this),playerOrigin:this.props.playerOrigin,subOrigin:c("VideoPlayerLoggerSource").PAGES_COVER,ref:function(s){var t=c("ReactDOM").findDOMNode(s);if(!(t&&t instanceof Element))return;this.$PagesCoverVideoPlayer2=s;s.vpc&&s.vpc.setAllowCrossPageTransition(true)}.bind(this),startMuted:true,videoData:p,width:this.props.containerWidth},q,r,c("React").createElement(c("VideoComponentPlayButton.react"),{alsoVisibleWhen:"finished"})))};f.exports=l}),null);
__d("XHotLiveVideoPayloadController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/cdn/cacheable/hot_live_video_payload/{broadcast_id}/",{broadcast_id:{type:"Int",required:true}})}),null);
__d("HotLiveVideoPayloadManager",["Arbiter","AjaxRequest","XHotLiveVideoPayloadController"],(function a(b,c,d,e,f,g){__p&&__p();var h={_subscribedPayloads:{},subscribe:function i(j,k,l){__p&&__p();var m=false;if(j in this._subscribedPayloads){var n=this._subscribedPayloads[j];++n.count;if("lastPayload"in n&&k in n.lastPayload)l(n.lastPayload[k])}else{this._subscribedPayloads[j]={count:1,intervalHandle:window.setInterval(this._fetchPayload.bind(this,j),3e3)};m=true}var o=c("Arbiter").subscribe("HotLiveVideoPayloadManager/"+j+"/"+k,this._onCallback.bind(this,l));if(m)this._fetchPayload(j);return{arbiterToken:o,videoId:j,cancel:function p(){h.unsubscribe(this)}}},unsubscribe:function i(j){c("Arbiter").unsubscribe(j.arbiterToken);var k=this._subscribedPayloads[j.videoId];--k.count;if(k.count==0){if("intervalHandle"in k)window.clearInterval(k.intervalHandle);delete this._subscribedPayloads[j.videoId]}},_fetchPayload:function i(j){var k=c("XHotLiveVideoPayloadController").getURIBuilder().setInt("broadcast_id",j).getURI(),l=new(c("AjaxRequest"))("GET",k);l.streamMode=false;l.onJSON=this._onPayload.bind(this,j);l.onError=this._onError.bind(this,j);l.send()},_onPayload:function i(j,k){var l=this._subscribedPayloads[j];l.lastPayload=k.json;for(var m in k.json)c("Arbiter").inform("HotLiveVideoPayloadManager/"+j+"/"+m,k.json[m])},_onError:function i(j,k){if(k.status==404&&j in this._subscribedPayloads){var l=this._subscribedPayloads[j];if("intervalHandle"in l){window.clearInterval(l.intervalHandle);delete l.intervalHandle}}},_onCallback:function i(j,k,l){j(l)}};f.exports=h}),null);
__d("PublicLiveMapConstants",["cx","VideoPlayerLoggerSource"],(function a(b,c,d,e,f,g,h){"use strict";var i={DEFAULT_MAP_ZOOM:4,POPUP_POSITION_OFFSET:[0,0],POPUP_OPEN_TIMEOUT_MS:100,HOVER_INTENT_TIMEOUT_MS:100,DEBOUNCE_TIMER_MS:400,MINIMUM_VIDEO_SIZE_PX:400,COMMENT_INPUT_HEIGHT:48,TOP_N_TO_SHOW_IN_SIDEBAR:20,NUMBER_OF_CACHE_LEVELS:3,NUMBER_OF_VIEWERS_TO_SHOW:200,MARKER_STATUS:{SPECIAL_EVENT:"special_event"},FB_HEADER_HEIGHT:42,BROADCAST_MARKER_OPTIONS:{stroke:false,fill:"true",radius:4,pointerEvents:"all"},NON_INTERACTIVE_MARKER_OPTIONS:{stroke:false,fill:"true",fillOpacity:1,radius:2,pointerEvents:"none"},VIEWER_MARKER_OPTIONS:{stroke:false,fill:"true",fillOpacity:1,radius:3,pointerEvents:"none"},VIEWER_LINE_OPTIONS:{color:"#1c4f8c",weight:.9,opacity:.5,smoothFactor:0,pointerEvents:"none"},DEFAULT_VIDEOPORT_SIZE:{width:900,height:600},VIDEO_PLAYER_DIALOG:{VERT_PADDING:320,HORIZ_PADDING:320,COMMENT_WIDTH:350},TOOLTIP:{OFFSCREEN:-500,DEFAULT:{LEFT:-109,TOP:-110},BOUNDS:{LEFT_LIMIT:180,RIGHT_LIMIT:250,TOP_LIMIT:290},VIDEO_DIMENSIONS:{MAX_WIDTH:368,TOOLTIP_SIZE:218},DESCRIPTION_LINE_LENGTH:30,DESCRIPTION_LINE_HEIGHT:20,LEFT_EDGE_ADJUST:5,RIGHT_EDGE_ADJUST:-10,TOP_EDGE_ADJUST:28,SIDEBAR:{TOP:310,LEFT:265,RIGHT:"auto"}},MAP_CENTER_OPTIONS:{AMERICAS_CENTER:[17,-40],AFRO_EURO_CENTER:[20,0],APAC_CENTER:[10,116]},MAP_BOUNDS:[[-85,-Infinity],[85,+Infinity]],STANDARD_MAP_BOUNDS:{x:-180,y:-90,width:360,height:180},STANDARD_MAP_SEARCH_BOX:{x1:-180,y1:-90,x2:180,y2:90},POPULARITY_MARKERS:{ONE:{className:"_3avk _3avl",iconSize:[12,12],iconAnchor:[6,6]},TWO:{className:"_3avq _3avl",iconSize:[16,16],iconAnchor:[8,8]},THREE:{className:"_3avr _3avl",iconSize:[20,20],iconAnchor:[10,10]},FOUR:{className:"_1iq1 _3avl",iconSize:[20,20],iconAnchor:[10,10]}},SPECIAL_EVENT_MARKER:{className:"_t0m _3avl",iconSize:[20,20],iconAnchor:[10,10]},ZOOM_CONTROLS:{vertical:"bottom",horizontal:"right"},MAP_TYPE:{LEAFLET:"leaflet",WEBGL:"webgl"},VIEW_MODE:{MAP_VIEW:"map_view",LIST_VIEW:"list_view"},ZOOM_CUTOFF_FOR_CACHE:{DYNAMIC:6,LEVEL_2:5,LEVEL_3:6},POLLING_VIDEO_COUNT:{LEVEL_0:300,LEVEL_1:300,LEVEL_2:400,DYNAMIC:100},MIN_VIEWERS_FOR_DYNAMIC_FETCH:0,MAX_VIEWERS_FOR_DYNAMIC_FETCH:6,isInlinePlayer:function j(k){return k===c("VideoPlayerLoggerSource").LIVE_MAP_SIDEBAR||k===c("VideoPlayerLoggerSource").LIVE_MAP_LISTVIEW||k===c("VideoPlayerLoggerSource").LIVE_MAP_TOOLTIP||k===c("VideoPlayerLoggerSource").LIVE_MAP_TOOLTIP_FROM_LISTVIEW||k===c("VideoPlayerLoggerSource").LIVE_MAP_TOOLTIP_FROM_WEBGL||k===c("VideoPlayerLoggerSource").LIVE_MAP_TOOLTIP_FROM_MAP}};f.exports=i}),null);
__d("Keyframes.react",["Keyframes","React","createCancelableFunction"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;function j(l){var m=l.width,n=l.height,o={width:m||0,height:n||0};return c("React").createElement("div",{style:o})}h=babelHelpers.inherits(k,c("React").Component);i=h&&h.prototype;function k(){var l,m;for(var n=arguments.length,o=Array(n),p=0;p<n;p++)o[p]=arguments[p];return m=(l=i.constructor).call.apply(l,[this].concat(o)),this.state={renderer:null},m}k.prototype.seekToProgress=function(l){this.state.renderer&&this.state.renderer.seekToProgress(l)};k.prototype.componentDidMount=function(){this.$KeyframesReact4(this.props.source)};k.prototype.componentWillUnmount=function(){this.state.renderer&&this.state.renderer.pause();this.$KeyframesReact2&&this.$KeyframesReact2.cancel();this.$KeyframesReact3&&this.$KeyframesReact3.cancel()};k.prototype.componentDidUpdate=function(l,m){__p&&__p();if(this.props.source!==l.source||this.props.projectName!==l.projectName||this.props.assetName!==l.assetName||this.props.assetID!==l.assetID)this.$KeyframesReact4(this.props.source);else{var n=this.state.renderer;if(n!==m.renderer)this.$KeyframesReact5(m.renderer,n);else if(n){if(l.width!==this.props.width||l.height!==this.props.height){n.resetDimensions();if(this.props.width)n.setWidth(this.props.width);if(this.props.height)n.setHeight(this.props.height)}if(l.repeatCount!==this.props.repeatCount)n.repeatCount(this.props.repeatCount);if(l.onError!==this.props.onError)n.onError(this.props.onError);if(l.onRepeatEnd!==this.props.onRepeatEnd)n.onRepeatEnd(this.props.onRepeatEnd);if(l.onProgress!==this.props.onProgress)n.onProgress(this.props.onProgress);if(l.initialProgress!==this.props.initialProgress)n.seekToProgress(this.props.initialProgress);if(l.playing!==this.props.playing)if(this.props.playing)n.play();else{n.pause();if(this.props.resetOnPause)n.repeatCount(this.props.repeatCount).seekToProgress(this.props.initialProgress)}n.redrawIfNeeded()}}};k.prototype.$KeyframesReact5=function(l,m){__p&&__p();if(!this.$KeyframesReact1)return;if(m){m.onError(this.props.onError).onRepeatEnd(this.props.onRepeatEnd).onProgress(this.props.onProgress).repeatCount(this.props.repeatCount);if(this.props.width)m.setWidth(this.props.width);if(this.props.height)m.setHeight(this.props.height);if(this.props.initialProgress)m.seekToProgress(this.props.initialProgress);this.props.playing?m.play():m.pause();m.redrawIfNeeded()}if(l&&m)this.$KeyframesReact1.replaceChild(m.getElement(),l.getElement());else{l&&this.$KeyframesReact1.removeChild(l.getElement());m&&this.$KeyframesReact1.appendChild(m.getElement())}};k.prototype.$KeyframesReact6=function(l){this.setState({renderer:l});if(this.props.onLoad)this.props.onLoad(l)};k.prototype.$KeyframesReact7=function(){this.setState({renderer:null})};k.prototype.$KeyframesReact4=function(l){__p&&__p();this.$KeyframesReact2&&this.$KeyframesReact2.cancel();this.$KeyframesReact3&&this.$KeyframesReact3.cancel();if(!l){this.$KeyframesReact7();return}else{this.$KeyframesReact2=c("createCancelableFunction")(this.$KeyframesReact6.bind(this));this.$KeyframesReact3=c("createCancelableFunction")(this.$KeyframesReact7.bind(this));if(l instanceof ArrayBuffer)c("Keyframes").requestRendererFromBytes(l,this.$KeyframesReact8()).done(this.$KeyframesReact2,this.$KeyframesReact3);else if(this.props.unstable_packageIndex!=null)c("Keyframes").requestRendererFromPackage(l,this.props.unstable_packageIndex,{projectName:this.props.projectName,assetName:this.props.assetName||"__FIXME__missing_react_asset_name",packageName:this.props.unstable_packageName||"__FIXME__missing_react_package_name"}).done(this.$KeyframesReact2,this.$KeyframesReact3);else c("Keyframes").requestRenderer(l,this.$KeyframesReact8()).done(this.$KeyframesReact2,this.$KeyframesReact3)}};k.prototype.$KeyframesReact8=function(){if(this.props.assetID)return{projectName:this.props.projectName,assetID:this.props.assetID};return{projectName:this.props.projectName,assetName:this.props.assetName||"__FIXME__missing_react_asset_name"}};k.prototype.render=function(){var l=this.props,m=l.className,n=l.height,o=l.style,p=l.width;return c("React").createElement("div",{className:m,ref:function(q){return this.$KeyframesReact1=q}.bind(this),style:babelHelpers["extends"]({display:"inline-block",fontSize:0},o)},!this.state.renderer?this.props.placeholder||c("React").createElement(j,{width:p,height:n}):null)};k.defaultProps={initialProgress:0,resetOnPause:false,playing:true,repeatCount:Infinity};f.exports=k}),null);
__d("UFIReactionsAnimatedKeyframesIcon.react",["Keyframes.react","React","UFIReactionsKeyframesAssets","UFIReactionTypes"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").PureComponent);i=h&&h.prototype;j.supportsReaction=function(k){"use strict";return!!c("UFIReactionsKeyframesAssets").reactions[k]};j.prototype.render=function(){"use strict";var k=this.props,l=k.animate,m=k.className,n=k.maxSize,o=k.reactionID,p=k.usePackage,q=c("UFIReactionsKeyframesAssets").initialProgress[o]||0,r=p?c("UFIReactionsKeyframesAssets")["package"].name:undefined,s=p?c("UFIReactionsKeyframesAssets")["package"].ids[o]:undefined,t=p&&s!=null?c("UFIReactionsKeyframesAssets")["package"].uri:c("UFIReactionsKeyframesAssets").reactions[o];return!t?c("React").createElement("div",{style:{width:n,height:n}}):c("React").createElement(c("Keyframes.react"),{projectName:"feedback_reactions",assetName:c("UFIReactionTypes").reactions[o].name,className:m,source:t,width:n,height:n,playing:l,initialProgress:q,resetOnPause:true,unstable_packageName:r,unstable_packageIndex:s})};function j(){"use strict";h.apply(this,arguments)}j.defaultProps={usePackage:false};f.exports=j}),null);
__d("StreamingReaction",["cx","CSS","DOM","EventEmitter","FeedbackReactionType","Random","React","ReactDOM","Style","StreamingReactionsTrayEvents","UFIReactionsAnimatedKeyframesIcon.react","getVendorPrefixedName","queryThenMutateDOM"],(function a(b,c,d,e,f,g,h){__p&&__p();var i,j,k=c("getVendorPrefixedName")("transform"),l=-30,m=30,n=50;i=babelHelpers.inherits(o,c("EventEmitter"));j=i&&i.prototype;o.getReaction=function(p,q,r){__p&&__p();var s=arguments.length<=3||arguments[3]===undefined?"":arguments[3];"use strict";var t=p?o.friendElementQueue:o.anonElementQueue;if(t.length>0){var u=t.shift();u.removeSpecificData();u.addSpecificData(q,s);return u}else return new o(p,q,r,s)};o.clearQueue=function(){"use strict";o.anonElementQueue.length=0;o.friendElementQueue.length=0};function o(p,q,r){__p&&__p();var s=arguments.length<=3||arguments[3]===undefined?"":arguments[3];"use strict";j.constructor.call(this);this.$StreamingReaction1=r;this.setState("CONSTRUCTED");this.isFriend=p;this.type=q;this.profilePicUri=s;this.start=-1;this.randVerticalStartPositionAnon=this.$StreamingReaction6();this.randHorizontalStartPositionAnon=this.$StreamingReaction7();this.randShootUpHorizontalPosition=this.$StreamingReaction8();this.randShootUpMaxVerticalPosition=this.$StreamingReaction9();this.randAmp=this.$StreamingReaction10();this.randTimeOffsetMs=this.$StreamingReaction11();this.period=this.$StreamingReaction12(this.isFriend,this.randShootUpHorizontalPosition);this.anonWindDurationMs=this.$StreamingReaction1.anonWindDurationMs+this.randTimeOffsetMs;this.maxAnonWindDurationMs=this.$StreamingReaction1.anonWindDurationMs+this.$StreamingReaction1.durationsMs.ANON_WIND_MAX_OFFSET;this.shootUpDurationMs=this.$StreamingReaction1.durationsMs.SHOOT_UP;this.explosionDurationMs=this.$StreamingReaction1.durationsMs.EXPLOSION;this.explosionPauseDurationMs=this.$StreamingReaction1.durationsMs.EXPLOSION_PAUSE;this.morphShrinkDurationMs=this.$StreamingReaction1.durationsMs.MORPH/4;this.morphGrowDurationMs=this.$StreamingReaction1.durationsMs.MORPH/6;this.morphPauseDurationMs=this.$StreamingReaction1.durationsMs.MORPH_PAUSE;this.friendWindKeyDurationMs=this.$StreamingReaction1.friendWindDurationMs;this.shootUpVerticalPositionOffset=this.$StreamingReaction1.isVerticalReactionEnabled?65:15;c("queryThenMutateDOM")(function(){},this.createElem.bind(this))}o.prototype.createElem=function(){"use strict";__p&&__p();this.yAxisDiv=c("DOM").create("div");this.xAxisDiv=c("DOM").create("div");this.reactionElem=c("DOM").create("div");c("DOM").appendContent(this.xAxisDiv,this.reactionElem);c("DOM").appendContent(this.yAxisDiv,this.xAxisDiv);this.root=this.yAxisDiv;c("CSS").addClass(this.yAxisDiv,"_g19");c("CSS").addClass(this.xAxisDiv,"_g19");this.setReactionImage();var p=void 0,q=void 0,r=void 0;if(this.isFriend){this.$StreamingReaction13();this.setFireworksColors();this.root=c("DOM").create("div");c("DOM").appendContent(this.root,this.fireworks);c("DOM").appendContent(this.root,this.yAxisDiv);p=this.randShootUpHorizontalPosition;q=this.$StreamingReaction1.minY+l;r=this.$StreamingReaction1.minMorphScale;var s=this.$StreamingReaction1.shootUpScale;this.createFriendImage();c("Style").set(this.friendImg,k,"scale("+s+")")}else{if(this.$StreamingReaction1.isVerticalReactionEnabled){p=this.randHorizontalStartPositionAnon;q=this.$StreamingReaction1.minY}else{p=this.$StreamingReaction1.minX;q=this.randVerticalStartPositionAnon}r=this.$StreamingReaction1.globalScale}c("Style").set(this.reactionElem,k,"scale("+r+")");c("Style").set(this.yAxisDiv,"right",p+"px");c("Style").set(this.yAxisDiv,"bottom",q+"px");this.setState("RENDERED")};o.prototype.setAnimationX=function(p){"use strict";this.$StreamingReaction3=p};o.prototype.setAnimationY=function(p){"use strict";this.$StreamingReaction4=p};o.prototype.setAnimationScale=function(p){"use strict";this.$StreamingReaction5=p};o.prototype.getAnimationX=function(){"use strict";return this.$StreamingReaction3};o.prototype.getAnimationY=function(){"use strict";return this.$StreamingReaction4};o.prototype.getAnimationScale=function(){"use strict";return this.$StreamingReaction5};o.prototype.createFriendImage=function(){"use strict";this.friendImg=c("DOM").create("img");c("DOM").setAttributes(this.friendImg,{src:this.profilePicUri});c("DOM").appendContent(this.xAxisDiv,this.friendImg);c("Style").set(this.friendImg,k,"scale("+this.$StreamingReaction1.shootUpScale+")");c("Style").set(this.reactionElem,"opacity","0");c("CSS").addClass(this.friendImg,"_2-ai")};o.prototype.setFriendImage=function(p){"use strict";this.profilePicUri=p;c("DOM").setAttributes(this.friendImg,{src:this.profilePicUri})};o.prototype.setReactionImage=function(){"use strict";c("CSS").addClass(this.reactionElem,"_g19");if(this.$StreamingReaction1.isVerticalReactionEnabled&&this.isFriend)c("ReactDOM").render(c("React").createElement(c("UFIReactionsAnimatedKeyframesIcon.react"),{animate:true,className:"_2jry",maxSize:48,reactionID:c("FeedbackReactionType")[this.type],selectedIndex:0}),this.reactionElem);else c("CSS").addClass(this.reactionElem,this.getReactionImageClass(this.type))};o.prototype.setState=function(p){"use strict";var q=this.getState();this.$StreamingReaction2=p;if(q!=="FINISHED"&&p==="FINISHED"){var r=this.isFriend?o.friendElementQueue:o.anonElementQueue;r.push(this);this.$StreamingReaction2="RENDERED"}this.emit(c("StreamingReactionsTrayEvents").ReactionStateChange,this.getState())};o.prototype.getState=function(){"use strict";return this.$StreamingReaction2};o.prototype.addSpecificData=function(p,q){"use strict";this.type=p;this.profilePicUri=q;this.setReactionImage();if(this.isFriend){this.setFireworksColors();this.setFriendImage(q)}};o.prototype.removeSpecificData=function(){"use strict";this.removeReactionImage();if(this.isFriend)this.removeFireworksStyle()};o.prototype.removeReactionImage=function(){"use strict";c("CSS").removeClass(this.reactionElem,this.getReactionImageClass(this.type))};o.prototype.removeFireworksStyle=function(){"use strict";for(var p=0;p<this.fireworks.length;p++)c("CSS").removeClass(this.fireworks[p],this.getReactionFireworksClass(this.type,p))};o.prototype.$StreamingReaction13=function(){"use strict";__p&&__p();var p=[];for(var q=0,r;q<10;q++){r=c("DOM").create("div");c("CSS").addClass(r,"_3na5");c("Style").set(r,"right",this.randShootUpHorizontalPosition+22+"px");c("Style").set(r,"bottom",this.randShootUpMaxVerticalPosition-this.shootUpVerticalPositionOffset+"px");switch(q){case 1:c("CSS").addClass(r,"_3nab");break;case 2:c("CSS").addClass(r,"_3nad");break;case 3:c("CSS").addClass(r,"_3nae");break;case 4:c("CSS").addClass(r,"_3naf");break;case 5:c("CSS").addClass(r,"_3nag");break;case 6:c("CSS").addClass(r,"_3nah");break;case 7:c("CSS").addClass(r,"_3nak");break;case 8:c("CSS").addClass(r,"_3nam");break;case 9:c("CSS").addClass(r,"_3nan");break;default:break}p.push(r)}this.fireworks=p};o.prototype.setFireworksColors=function(){"use strict";for(var p=0;p<this.fireworks.length;p++)c("CSS").addClass(this.fireworks[p],this.getReactionFireworksClass(this.type,p))};o.prototype.getReactionImageClass=function(p){"use strict";__p&&__p();switch(p){case"LIKE":return"_2-am";case"HAHA":return"_2-an";case"WOW":return"_2-ao";case"LOVE":return"_2-ap";case"ANGER":return"_2-aq";case"SORRY":return"_2-ar";case"DOROTHY":return"_3men";default:throw new Error("Not a valid reaction type: "+p)}};o.prototype.getReactionFireworksClass=function(p,q){"use strict";__p&&__p();var r=q%2===0;if(r)if(this.type==="LIKE")return"_3na6";else if(this.type==="LOVE")return"_3na8";else if(this.type==="DOROTHY")return"_1l5u";else return"_3na9";else return"_3naa"};o.prototype.$StreamingReaction11=function(){"use strict";var p=this.$StreamingReaction1.durationsMs.ANON_WIND_MAX_OFFSET;return-1*p+c("Random").random()*p*2};o.prototype.$StreamingReaction10=function(){"use strict";var p=c("Random").random()>.5;return(p?1:-1)*(c("Random").random()*(1-.6)+.6)};o.prototype.$StreamingReaction12=function(p,q){"use strict";var r=p?this.$StreamingReaction1.maxX-q:this.$StreamingReaction1.maxX;return r};o.prototype.$StreamingReaction6=function(){"use strict";var p=(this.$StreamingReaction1.maxY-this.$StreamingReaction1.minY)/2;return~~(c("Random").random()*p)};o.prototype.$StreamingReaction7=function(){"use strict";var p=(this.$StreamingReaction1.maxX-this.$StreamingReaction1.minX)/2;return~~(c("Random").random()*p)};o.prototype.$StreamingReaction8=function(){"use strict";return c("Random").random()*(this.$StreamingReaction1.maxX/3)};o.prototype.$StreamingReaction9=function(){"use strict";var p=this.$StreamingReaction1.maxY-this.$StreamingReaction1.minY,q=void 0;if(this.$StreamingReaction1.isVerticalReactionEnabled)q=c("Random").random()*m+p+n;else{var r=1/3;q=c("Random").random()*(p*(1-r))+r*p-l}return q};o.anonElementQueue=[];o.friendElementQueue=[];f.exports=o}),null);
__d("StreamingReactionsTrayAnimation",["DOM","Set","StreamingReaction","StreamingReactionsTrayEvents"],(function a(b,c,d,e,f,g){__p&&__p();function h(i,j){"use strict";this.root=i;this.config=j;this.animating=false;this.reactions=new(c("Set"))()}h.prototype.addReaction=function(i,j){__p&&__p();var k,l=this,m=arguments.length<=2||arguments[2]===undefined?"":arguments[2];"use strict";if(this.animating)(function(){var n=c("StreamingReaction").getReaction(i,j,l.config,m);l.reactions.add(n);if(n.getState()==="RENDERED")l.buildAnimation(n);else n.once(c("StreamingReactionsTrayEvents").ReactionStateChange,function(o){if(o==="RENDERED")this.buildAnimation(n)}.bind(l))})()};h.prototype.start=function(){"use strict";this.animating=true};h.prototype.stop=function(){"use strict";__p&&__p();this.animating=false;c("StreamingReaction").clearQueue();for(var i=this.reactions,j=Array.isArray(i),k=0,i=j?i:i[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var l;if(j){if(k>=i.length)break;l=i[k++]}else{k=i.next();if(k.done)break;l=k.value}var m=l;if(m.getState()!=="CONSTRUCTED")c("DOM").remove(m.root)}this.reactions.clear()};h.prototype.clearCurrent=function(){"use strict";__p&&__p();c("StreamingReaction").clearQueue();for(var i=this.reactions,j=Array.isArray(i),k=0,i=j?i:i[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var l;if(j){if(k>=i.length)break;l=i[k++]}else{k=i.next();if(k.done)break;l=k.value}var m=l;if(m.getState()!=="CONSTRUCTED")c("DOM").remove(m.root)}this.reactions.clear()};h.prototype.setOnFinishHandler=function(i){"use strict";this.onFinishHandler=i};h.prototype.buildAnimation=function(i){"use strict";throw new Error("Function not implemented")};h.prototype.createOnFinishForReaction=function(i){"use strict";return function(j){this.onFinish(i,j)}.bind(this)};h.prototype.onFinish=function(i,j){"use strict";if(this.onFinishHandler)this.onFinishHandler();if(i.getState()!=="FINISHED")i.setState("FINISHED")};f.exports=h}),null);
__d("StreamingReactionsTrayAnonymousAnimation",["CSSAnimationBuilder","DOM","StreamingReactionsTrayAnimation"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("StreamingReactionsTrayAnimation"));i=h&&h.prototype;function j(k,l){"use strict";i.constructor.call(this,k,l)}j.prototype.addAnonReaction=function(k){"use strict";i.addReaction.call(this,false,k)};j.prototype.buildAnimation=function(k){"use strict";__p&&__p();if(!k.getAnimationY()){var l=k.anonWindDurationMs/1e3,m=k.maxAnonWindDurationMs/1e3,n=this.$StreamingReactionsTrayAnonymousAnimation1(k),o=this.$StreamingReactionsTrayAnonymousAnimation2(k);n=Math.round(n*100)/100;o=Math.round(o*100)/100;var p=c("CSSAnimationBuilder").keyframeAnimation(k.yAxisDiv),q=c("CSSAnimationBuilder").keyframeAnimation(k.xAxisDiv),r=c("CSSAnimationBuilder").keyframeAnimation(k.reactionElem);this.$StreamingReactionsTrayAnonymousAnimation3(q,n,l,m);this.$StreamingReactionsTrayAnonymousAnimation4(p,o,l,m,k);this.$StreamingReactionsTrayAnonymousAnimation5(r,l,m);k.setAnimationX(q);k.setAnimationY(p);k.setAnimationScale(r);if(this.animating)c("DOM").appendContent(this.root,k.root)}if(this.animating){k.setState("ANIMATING");k.getAnimationX().start();k.getAnimationY().start();k.getAnimationScale().start()}};j.prototype.$StreamingReactionsTrayAnonymousAnimation1=function(k){"use strict";return this.config.isVerticalReactionEnabled?k.randAmp*this.config.horizontalAnimationRange:-1*(this.config.maxX-this.config.minX)};j.prototype.$StreamingReactionsTrayAnonymousAnimation2=function(k){"use strict";return this.config.isVerticalReactionEnabled?-1*(this.config.maxY-this.config.minY):k.randAmp*(this.config.maxY-this.config.minY)/2};j.prototype.$StreamingReactionsTrayAnonymousAnimation4=function(k,l,m,n,o){"use strict";if(this.config.isVerticalReactionEnabled){k.defineKeyframes({"0%":{transform:"translateY("+0+"px)"},"100%":{transform:"translateY("+l+"px)"}});k.setDuration(m)}else{k.defineKeyframes({"0%":{transform:"translateY("+0+"px)","animation-timing-function":"ease-in-out"},"50%":{transform:"translateY("+l+"px)","animation-timing-function":"ease-in-out"},"100%":{transform:"translateY("+0+"px)"}});k.setDuration(n)}k.setIterationCount(1).setMemoize(false).setFinishedCallback(this.createOnFinishForReaction(o))};j.prototype.$StreamingReactionsTrayAnonymousAnimation3=function(k,l,m,n){"use strict";if(this.config.isVerticalReactionEnabled){k.defineKeyframes({"0%":{transform:"translateX("+0+"px)","animation-timing-function":"ease-in-out"},"50%":{transform:"translateX("+l+"px)"},"100%":{transform:"translateX("+0+"px)"}});k.setTimingFunction("cubic-bezier(0.215, 0.61, 0.355, 1)").setDuration(n)}else{k.defineKeyframes({"0%":{transform:"translateX("+0+"px)"},"100%":{transform:"translateX("+l*1.2+"px)"}});k.setTimingFunction(this.config.anonHorizontalCurve).setDuration(m)}k.setMemoize(false).setIterationCount(1)};j.prototype.$StreamingReactionsTrayAnonymousAnimation5=function(k,l,m){"use strict";__p&&__p();var n=this.config.globalScale;if(this.config.isVerticalReactionEnabled){k.defineKeyframes({"0%":{transform:"scale("+n+")"},"40%":{transform:"scale("+n+")",opacity:"1"},"100%":{transform:"scale("+.1+")",opacity:"0"}});k.setTimingFunction("cubic-bezier(0.215, 0.61, 0.355, 1)").setDuration(l)}else{k.defineKeyframes({"0%":{transform:"scale("+n+")"},"80%":{transform:"scale("+n+")"},"100%":{transform:"scale("+.1+")"}});k.setTimingFunction("linear").setDuration(l)}k.setMemoize(false).setIterationCount(1)};f.exports=j}),null);
__d("StreamingReactionsTrayConfig",["EventEmitter","StreamingReactionsAnimationConfig","StreamingReactionsTrayEvents","VideoPlayerLoggerSource"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("EventEmitter"));i=h&&h.prototype;function j(k,l,m,n){"use strict";__p&&__p();i.constructor.call(this);this.$StreamingReactionsTrayConfig1=c("StreamingReactionsAnimationConfig");this.durationsMs=this.$StreamingReactionsTrayConfig1.DURATIONS_MS;this.isVerticalReactionEnabled=n;this.updateDimensions(k,l);this.$StreamingReactionsTrayConfig2(m);this.globalScale=this.$StreamingReactionsTrayConfig1.SCALES.GLOBAL*this.$StreamingReactionsTrayConfig1.SCALES.SCALE_MULTIPLIER;this.shootUpScale=this.globalScale*this.$StreamingReactionsTrayConfig1.SCALES.SHOOT_UP;this.maxExplosionScale=this.globalScale*this.$StreamingReactionsTrayConfig1.SCALES.MAX_EXPLOSION;this.minMorphScale=this.globalScale*this.$StreamingReactionsTrayConfig1.SCALES.MIN_MORPH;this.scaleMultiplier=this.viewUpdateInterval=this.$StreamingReactionsTrayConfig1.THROTTLE.VIEW_UPDATE_INTERVAL;this.reactionStartAnimationRate=this.$StreamingReactionsTrayConfig1.THROTTLE.REACTION_START_ANIMATION_RATE;this.reactionBufferSize=this.$StreamingReactionsTrayConfig1.THROTTLE.REACTION_BUFFER_SIZE;this.maxAnonReactionsCount=this.$StreamingReactionsTrayConfig1.THROTTLE.MAX_REACTIONS_ON_SCREEN;this.reactionSelfFireworkAnimationThreshold=this.$StreamingReactionsTrayConfig1.THROTTLE.REACTION_CLICK_SELF_FIREWORK_ANIMATION_THRESHOLD;this.horizontalAnimationRange=this.$StreamingReactionsTrayConfig1.VERTICAL_REACTION_SCALES.HORIZONTAL_ANIMATION_RANGE;var o=this.$StreamingReactionsTrayConfig1.CURVES;this.anonHorizontalCurve="cubic-bezier("+o.ANON_HORIZONTAL.join(", ")+")";this.friendWindHorizontalCurve="cubic-bezier("+o.FRIEND_WIND_HORIZONTAL.join(", ")+")";this.shootUpVerticalCurve="cubic-bezier("+o.SHOOT_UP_VERTICAL.join(", ")+")";this.morphScaleCurve="cubic-bezier("+o.MORPH_SCALE.join(", ")+")";this.explosionScaleCurve="cubic-bezier("+o.EXPLOSION_SCALE.join(", ")+")";this.friendWindScaleCurve="cubic-bezier("+o.FRIEND_WIND_SCALE.join(", ")+")";this.friendWindVacuumZoneScaleCurve="cubic-bezier("+o.FRIEND_WIND_VACUUM_ZONE_SCALE.join(", ")+")"}j.prototype.updateSurface=function(k,l,m){"use strict";this.updateDimensions(k,l);this.$StreamingReactionsTrayConfig2(m);this.emit(c("StreamingReactionsTrayEvents").UpdateSurface)};j.prototype.$StreamingReactionsTrayConfig2=function(k){"use strict";__p&&__p();if(k===c("VideoPlayerLoggerSource").CHANNEL){this.anonWindDurationMs=this.$StreamingReactionsTrayConfig1.DURATIONS_MS.ANON_WIND_CHANNEL;this.friendWindDurationMs=this.$StreamingReactionsTrayConfig1.DURATIONS_MS.FRIEND_WIND_CHANNEL}else if(k===c("VideoPlayerLoggerSource").SNOWLIFT){this.anonWindDurationMs=this.$StreamingReactionsTrayConfig1.DURATIONS_MS.ANON_WIND_SNOWLIFT;this.friendWindDurationMs=this.$StreamingReactionsTrayConfig1.DURATIONS_MS.FRIEND_WIND_SNOWLIFT}else{this.anonWindDurationMs=this.$StreamingReactionsTrayConfig1.DURATIONS_MS.ANON_WIND_INLINE;this.friendWindDurationMs=this.$StreamingReactionsTrayConfig1.DURATIONS_MS.FRIEND_WIND_INLINE}};j.prototype.updateDimensions=function(k,l){"use strict";__p&&__p();var m=k,n=void 0;if(this.isVerticalReactionEnabled){n=l*this.$StreamingReactionsTrayConfig1.VERTICAL_REACTION_SCALES.HEIGHT_MULTIPLIER;this.maxX=m/2;this.minX=0;this.maxY=n+this.$StreamingReactionsTrayConfig1.VERTICAL_REACTIONS_OFFSETS_PX.POSITIVE_Y;this.minY=0-this.$StreamingReactionsTrayConfig1.VERTICAL_REACTIONS_OFFSETS_PX.NEGATIVE_Y}else{n=l;this.maxX=m+this.$StreamingReactionsTrayConfig1.OFFSETS_PX.POSITIVE_X;this.minX=0-this.$StreamingReactionsTrayConfig1.OFFSETS_PX.NEGATIVE_X;this.maxY=n+this.$StreamingReactionsTrayConfig1.OFFSETS_PX.POSITIVE_Y;this.minY=0-this.$StreamingReactionsTrayConfig1.OFFSETS_PX.NEGATIVE_Y}this.reactionsOffScreenX=m+21};f.exports=j}),null);
__d("StreamingReactionsTrayDiffuser",["BanzaiODS","Random","randomShuffle","setTimeout"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();c("BanzaiODS").setEntitySample("feedback",1e-4);function h(i,j,k,l){"use strict";__p&&__p();this.$StreamingReactionsTrayDiffuser1=i;this.$StreamingReactionsTrayDiffuser4=j;this.$StreamingReactionsTrayDiffuser12=k;this.$StreamingReactionsTrayDiffuser11=l;this.$StreamingReactionsTrayDiffuser10=this.$StreamingReactionsTrayDiffuser11.viewUpdateInterval;this.$StreamingReactionsTrayDiffuser7={};this.$StreamingReactionsTrayDiffuser6={};this.$StreamingReactionsTrayDiffuser2=[];this.$StreamingReactionsTrayDiffuser9=0;this.$StreamingReactionsTrayDiffuser5=this.$StreamingReactionsTrayDiffuser11.maxAnonReactionsCount;this.$StreamingReactionsTrayDiffuser3=this.$StreamingReactionsTrayDiffuser11.reactionBufferSize;this.$StreamingReactionsTrayDiffuser1.setOnFinishHandler(this.$StreamingReactionsTrayDiffuser13.bind(this))}h.prototype.clearCurrentReactions=function(){"use strict";this.$StreamingReactionsTrayDiffuser1.clearCurrent();this.$StreamingReactionsTrayDiffuser4.clearCurrent();this.$StreamingReactionsTrayDiffuser9=0};h.prototype.startAnimation=function(){"use strict";clearInterval(this.$StreamingReactionsTrayDiffuser8);this.$StreamingReactionsTrayDiffuser1.start();this.$StreamingReactionsTrayDiffuser4.start();this.$StreamingReactionsTrayDiffuser8=setInterval(this.$StreamingReactionsTrayDiffuser14.bind(this),this.$StreamingReactionsTrayDiffuser10)};h.prototype.stopAnimation=function(){"use strict";this.$StreamingReactionsTrayDiffuser1.stop();this.$StreamingReactionsTrayDiffuser4.stop();this.$StreamingReactionsTrayDiffuser9=0;clearInterval(this.$StreamingReactionsTrayDiffuser8)};h.prototype.pauseAnimation=function(){"use strict";clearInterval(this.$StreamingReactionsTrayDiffuser8)};h.prototype.clearBuffer=function(){"use strict";this.$StreamingReactionsTrayDiffuser2=[]};h.prototype.addOwnReaction=function(i,j,k){"use strict";if(k)this.$StreamingReactionsTrayDiffuser6[i]+=1;this.$StreamingReactionsTrayDiffuser15(i,j)};h.prototype.processPayload=function(i){"use strict";__p&&__p();var j=i.feedback_add_streaming_reaction_subscribe,k=j.reactor,l=j.reaction_info.reaction_type,m=k.is_viewer_friend;if(m)this.$StreamingReactionsTrayDiffuser15(l,k.profile_picture.uri);var n={},o=0;for(var p=j.reaction_counts,q=Array.isArray(p),r=0,p=q?p:p[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var s;if(q){if(r>=p.length)break;s=p[r++]}else{r=p.next();if(r.done)break;s=r.value}var t=s,u=t.reaction_info.reaction_type,v=t.count;if(m&&l)v--;if(this.$StreamingReactionsTrayDiffuser7[u]){var w=this.$StreamingReactionsTrayDiffuser7[u];if(this.$StreamingReactionsTrayDiffuser6[u])w+=this.$StreamingReactionsTrayDiffuser6[u];var x=w?Math.max(v-w,0):0;n[u]=x;o+=x}this.$StreamingReactionsTrayDiffuser7[u]=v}this.$StreamingReactionsTrayDiffuser16(n,o)};h.prototype.processVodPayload=function(i){"use strict";__p&&__p();var j={},k=0;for(var l=i.reactions,m=Array.isArray(l),n=0,l=m?l:l[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var o;if(m){if(n>=l.length)break;o=l[n++]}else{n=l.next();if(n.done)break;o=n.value}var p=o,q=p.reaction_type,r=p.count;j[q]=r;k+=r;for(var s=p.important_reactors,t=Array.isArray(s),u=0,s=t?s:s[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var v;if(t){if(u>=s.length)break;v=s[u++]}else{u=s.next();if(u.done)break;v=u.value}var w=v;this.$StreamingReactionsTrayDiffuser17(q,w.profile_picture_uri,i.length*1e3)}}this.clearBuffer();this.$StreamingReactionsTrayDiffuser16(j,k)};h.prototype.$StreamingReactionsTrayDiffuser16=function(i,j){__p&&__p();var k;"use strict";var l=[],m=this.$StreamingReactionsTrayDiffuser3-this.$StreamingReactionsTrayDiffuser2.length;if(m>0){var n=j>m,o=function o(t){var u=t[0],v=t[1];v=n?Math.floor(v/j*m):v;l=l.concat(Array.apply(undefined,Array(v)).map(function(){return u}))};for(var p=Object.entries(i),q=Array.isArray(p),r=0,p=q?p:p[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var s;if(q){if(r>=p.length)break;s=p[r++]}else{r=p.next();if(r.done)break;s=r.value}var t=s;o(t)}c("randomShuffle")(l);this.$StreamingReactionsTrayDiffuser2=this.$StreamingReactionsTrayDiffuser2.concat(l)}};h.prototype.$StreamingReactionsTrayDiffuser17=function(i,j,k){"use strict";var l=Math.floor(c("Random").random()*k);c("setTimeout")(function(){return this.addOwnReaction(i,j,false)}.bind(this),l)};h.prototype.$StreamingReactionsTrayDiffuser15=function(i,j){"use strict";this.$StreamingReactionsTrayDiffuser4.addFriendReaction(i,j);this.$StreamingReactionsTrayDiffuser12?c("BanzaiODS").bumpEntityKey("feedback","facecast_live_friend_reaction_rendered"):c("BanzaiODS").bumpEntityKey("feedback","facecast_vod_friend_reaction_rendered")};h.prototype.$StreamingReactionsTrayDiffuser14=function(){"use strict";if(this.$StreamingReactionsTrayDiffuser2.length>0&&this.$StreamingReactionsTrayDiffuser9<this.$StreamingReactionsTrayDiffuser5){this.$StreamingReactionsTrayDiffuser1.addAnonReaction(this.$StreamingReactionsTrayDiffuser2.shift());this.$StreamingReactionsTrayDiffuser9++;this.$StreamingReactionsTrayDiffuser12?c("BanzaiODS").bumpEntityKey("feedback","facecast_live_reaction_rendered"):c("BanzaiODS").bumpEntityKey("feedback","facecast_vod_reaction_rendered")}};h.prototype.$StreamingReactionsTrayDiffuser13=function(){"use strict";this.$StreamingReactionsTrayDiffuser9--};f.exports=h}),null);
__d("StreamingReactionsTrayFriendAnimation",["Arbiter","DOM","CSSAnimationBuilder","StreamingReactionsTrayAnimation","StreamingReactionsTrayEvents","queryThenMutateDOM"],(function a(b,c,d,e,f,g){__p&&__p();var h,i,j=10;h=babelHelpers.inherits(k,c("StreamingReactionsTrayAnimation"));i=h&&h.prototype;function k(l,m){"use strict";i.constructor.call(this,l,m)}k.prototype.addFriendReaction=function(l,m){"use strict";i.addReaction.call(this,true,l,m)};k.prototype.buildAnimation=function(l){"use strict";__p&&__p();this.incrementFireworksCount();var m=-1*l.randShootUpMaxVerticalPosition;m=Math.round(m*100)/100;var n=0,o=0;if(!this.config.isVerticalReactionEnabled){n=l.randAmp*(this.config.maxY-this.config.minY)/2;o=-1*(this.config.maxX-this.config.minX-l.randShootUpHorizontalPosition)}var p=this.config.globalScale,q=[l.shootUpDurationMs,l.explosionDurationMs*.15,l.explosionDurationMs*.85,l.explosionPauseDurationMs*.8,l.explosionPauseDurationMs*.2,l.morphShrinkDurationMs,l.morphGrowDurationMs,l.morphPauseDurationMs,l.friendWindKeyDurationMs*.5,l.friendWindKeyDurationMs*.3,l.friendWindKeyDurationMs*.2].map(function(P){return P/1e3}),r=q.reduce(function(P,Q){return P+Q}),s=q.map(function(P,Q,R){var S=(Q>0?R[Q-1]:0)+P;q[Q]=S;return S}).map(function(P){return P/r*100}),t=s[0],u=s[1],v=s[2],w=s[3],x=s[4],y=s[5],z=s[6],A=s[7],B=s[8],C=s[9],D=s[10],E=c("CSSAnimationBuilder").keyframeAnimation(l.yAxisDiv);E.defineKeyframe("0%",{transform:"translateY("+0+"px)","animation-timing-function":this.config.shootUpVerticalCurve}).defineKeyframe(t,{transform:"translateY("+m+"px)","animation-timing-function":"linear"}).defineKeyframe(A,{transform:"translateY("+m+"px)","animation-timing-function":"ease-in-out"}).defineKeyframe(B,{transform:"translateY("+(m+n)+"px)","animation-timing-function":"ease-in-out"}).defineKeyframe(D,{transform:"translateY("+m+"px)"});E.setDuration(r).setFinishedCallback(this.createOnFinishForReaction(l)).setIterationCount(1);var F=c("CSSAnimationBuilder").keyframeAnimation(l.xAxisDiv);F.defineKeyframe("0%",{transform:"translateX("+0+"px)"}).defineKeyframe(A,{transform:"translateX("+0+"px)"}).defineKeyframe(D,{transform:"translateX("+o+"px)"});F.setDuration(r).setTimingFunction(this.config.anonHorizontalCurve).setIterationCount(1);var G=c("CSSAnimationBuilder").keyframeAnimation(l.friendImg);G.defineKeyframe("0%",{transform:"scale("+this.config.shootUpScale+")","animation-timing-function":"linear"}).defineKeyframe(t,{transform:"scale("+this.config.shootUpScale+")","animation-timing-function":this.config.explosionScaleCurve}).defineKeyframe(v,{transform:"scale("+this.config.maxExplosionScale+")","animation-timing-function":"linear"}).defineKeyframe(x,{transform:"scale("+this.config.maxExplosionScale+")",opacity:"1","animation-timing-function":"linear"}).defineKeyframe(y,{transform:"scale("+this.config.minMorphScale+")",opacity:"0"}).defineKeyframe(D,{opacity:"0"});G.setDuration(r).setIterationCount(1);var H=c("CSSAnimationBuilder").keyframeAnimation(l.reactionElem);H.defineKeyframe("0%",{opacity:"0",transform:"scale("+this.config.minMorphScale+")","animation-timing-function":"linear"}).defineKeyframe(x,{opacity:"0",transform:"scale("+this.config.minMorphScale+")","animation-timing-function":"linear"}).defineKeyframe(y,{opacity:"1",transform:"scale("+this.config.minMorphScale+")","animation-timing-function":this.config.morphScaleCurve}).defineKeyframe(z,{opacity:"1",transform:"scale("+this.config.maxExplosionScale+")","animation-timing-function":"linear"}).defineKeyframe(B,{opacity:"1",transform:"scale("+p+")","animation-timing-function":"linear"}).defineKeyframe(C,{opacity:"1",transform:"scale("+p+")","animation-timing-function":"linear"}).defineKeyframe(D,{opacity:"1",transform:"scale("+.1+")","animation-timing-function":"linear"});H.setDuration(r).setIterationCount(1);var I=[];for(var J=l.fireworks,K=Array.isArray(J),L=0,J=K?J:J[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var M;if(K){if(L>=J.length)break;M=J[L++]}else{L=J.next();if(L.done)break;M=L.value}var N=M,O=c("CSSAnimationBuilder").keyframeAnimation(N);O.defineKeyframe("0%",{"background-position":"0px -36px",opacity:"0"}).defineKeyframe(u,{"background-position":"0px 36px",opacity:"0"}).defineKeyframe(w,{"background-position":"0px -36px",opacity:"1"}).defineKeyframe("100%",{"background-position":"0px -36px",opacity:"0"});O.setDuration(r).setIterationCount(1).setMemoize(false).setTimingFunction("cubic-bezier(0.075, 0.82, 0.165, 1)").setFinishedCallback(this.onFireworkFinish.bind(this));I.push(O)}if(this.animating)c("queryThenMutateDOM")(function(){},function(){__p&&__p();c("DOM").appendContent(this.root,l.root);l.setState("ANIMATING");for(var P=I,Q=Array.isArray(P),R=0,P=Q?P:P[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var S;if(Q){if(R>=P.length)break;S=P[R++]}else{R=P.next();if(R.done)break;S=R.value}var T=S;T.start()}F.start();E.start();G.start();H.start()}.bind(this))};k.prototype.onFireworkFinish=function(l){"use strict";this.decrementFireworksCount()};k.prototype.incrementFireworksCount=function(){"use strict";var l=k.fireWorksCount,m=l+j;c("Arbiter").inform(c("StreamingReactionsTrayEvents").FireworksAnimating,true);k.fireWorksCount=m};k.prototype.decrementFireworksCount=function(){"use strict";var l=k.fireWorksCount-1;if(l<1)c("Arbiter").inform(c("StreamingReactionsTrayEvents").FireworksAnimating,false);k.fireWorksCount=l};k.fireWorksCount=0;f.exports=k}),null);
__d("XVODStreamingReactionsAsyncController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/videos/vodreactions/",{eft_id:{type:"String",required:true},start_time:{type:"Float",required:true},end_time:{type:"Float",required:true}})}),null);
__d("VODReactionStream",["AsyncRequest","Map","SubscriptionsHandler","XVODStreamingReactionsAsyncController","setInterval"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(j,k){__p&&__p();this.videoPlayerController=j;this.diffuser=k;this.reactions=[];this.queueEndTime=0;this.currentRequest=null;this.subscriptions=new(c("SubscriptionsHandler"))();this.resetToTime(j.getCurrentTimePosition());this.subscriptions.addSubscriptions(j.addListener("seek",function(l){this.resetToTime(l.time)}.bind(this)));c("setInterval")(this.renderReactions.bind(this),800)}h.prototype.renderReactions=function(){if(!this.videoPlayerController.isState("playing")||this.videoPlayerController.isMuted())return;var j=this.videoPlayerController.getCurrentTimePosition(),k=Math.floor(j);this.onTimeUpdated(j);if(this.reactions[k]){this.diffuser.processVodPayload(this.reactions[k]);delete this.reactions[k]}};h.prototype.fetchNewReactions=function(j){__p&&__p();var k=j+60,l=c("XVODStreamingReactionsAsyncController").getURIBuilder().setString("eft_id",this.videoPlayerController.getVideoID()).setFloat("start_time",j).setFloat("end_time",k).getURI();if(this.currentRequest)this.currentRequest.abandon();this.currentRequest=new(c("AsyncRequest"))().setURI(l).setHandler(function(m){__p&&__p();var n=m.getPayload();if(n.reactionpayloads)for(var o=n.reactionpayloads,p=Array.isArray(o),q=0,o=p?o:o[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var r;if(p){if(q>=o.length)break;r=o[q++]}else{q=o.next();if(q.done)break;r=q.value}var s=r;this.reactions[s.start_time]=s}this.queueEndTime=k}.bind(this)).setFinallyHandler(function(){this.currentRequest=null}.bind(this));this.currentRequest.send()};h.prototype.onTimeUpdated=function(j){if(j<this.queueEndTime-15||this.currentRequest!==null)return;this.fetchNewReactions(this.queueEndTime)};h.prototype.resetToTime=function(j){this.fetchNewReactions(j)};h.prototype.stop=function(){this.subscriptions.release()};var i=new(c("Map"))();f.exports={start:function j(k,l){i.set(k,new h(k,l))},stop:function j(k){var l=i.get(k);if(!l)return;l.stop();i["delete"](k)}}}),null);
__d("StreamingReactionsTray",["Arbiter","FeedbackAddStreamingReactionSubscription","FeedbackReactionType","HotLiveVideoPayloadManager","PublicLiveMapConstants","Run","StreamingReactionsTrayAnonymousAnimation","StreamingReactionsTrayConfig","StreamingReactionsTrayDiffuser","StreamingReactionsTrayEvents","StreamingReactionsTrayFriendAnimation","Style","SubscriptionsHandler","UFIUIEvents","VideoPlayerLoggerSource","Visibility","VODReactionStream"],(function a(b,c,d,e,f,g){__p&&__p();function h(i,j,k,l,m,n,o,p,q,r){"use strict";__p&&__p();this.$StreamingReactionsTray7=i;this.$StreamingReactionsTray4=k;this.$StreamingReactionsTray20=0;this.$StreamingReactionsTray12=r;this.$StreamingReactionsTray18=p;this.$StreamingReactionsTray19=q;this.$StreamingReactionsTray21(k);var s=j?!!j.getOption("VideoWithLiveBroadcast","isLive"):true;this.$StreamingReactionsTray1=new(c("StreamingReactionsTrayDiffuser"))(new(c("StreamingReactionsTrayAnonymousAnimation"))(this.$StreamingReactionsTray7,this.$StreamingReactionsTray2),new(c("StreamingReactionsTrayFriendAnimation"))(this.$StreamingReactionsTray7,this.$StreamingReactionsTray2),s,this.$StreamingReactionsTray2);this.$StreamingReactionsTray17=new(c("SubscriptionsHandler"))();this.$StreamingReactionsTray10=j;this.$StreamingReactionsTray8=false;this.$StreamingReactionsTray9=false;this.$StreamingReactionsTray5=n;this.$StreamingReactionsTray6=o;this.$StreamingReactionsTray11=false;this.$StreamingReactionsTray13=l;this.$StreamingReactionsTray14=m;this.$StreamingReactionsTray22();c("Run").onLeave(this.$StreamingReactionsTray23.bind(this));var t=j?j.getOption("VideoWithVODBroadcast","isLiveVOD"):false;if(t&&j)c("VODReactionStream").start(j,this.$StreamingReactionsTray1)}h.prototype.$StreamingReactionsTray21=function(i){"use strict";var j=parseInt(c("Style").get(this.$StreamingReactionsTray7,"width"),10),k=parseInt(c("Style").get(this.$StreamingReactionsTray7,"height"),10);this.$StreamingReactionsTray3=i;if(this.$StreamingReactionsTray2)this.$StreamingReactionsTray2.updateSurface(j,k,this.$StreamingReactionsTray3);else this.$StreamingReactionsTray2=new(c("StreamingReactionsTrayConfig"))(j,k,this.$StreamingReactionsTray3,this.$StreamingReactionsTray12)};h.prototype.$StreamingReactionsTray24=function(){"use strict";if(this.$StreamingReactionsTray2){var i=parseInt(c("Style").get(this.$StreamingReactionsTray7,"width"),10),j=parseInt(c("Style").get(this.$StreamingReactionsTray7,"height"),10);this.$StreamingReactionsTray2.updateDimensions(i,j,this.$StreamingReactionsTray3)}};h.prototype.$StreamingReactionsTray25=function(i){"use strict";__p&&__p();return[i.addListener("unmuteVideo",function(){if(this.$StreamingReactionsTray26())this.$StreamingReactionsTray27()}.bind(this)),i.addListener("muteVideo",function(){if(this.$StreamingReactionsTray28())this.$StreamingReactionsTray29()}.bind(this)),i.addListener("changeVolume",function(){if(this.$StreamingReactionsTray26())this.$StreamingReactionsTray27()}.bind(this)),i.addListener("pausePlayback",function(){this.$StreamingReactionsTray30()}.bind(this)),i.addListener("beginPlayback",function(){if(this.$StreamingReactionsTray26())this.$StreamingReactionsTray27()}.bind(this)),i.addListener("seek",function(){this.$StreamingReactionsTray31()}.bind(this)),i.addListener("VideoChannelController/enterChannel",function(){this.$StreamingReactionsTray21(c("VideoPlayerLoggerSource").CHANNEL);this.$StreamingReactionsTray29()}.bind(this)),i.addListener("VideoChannelController/exitChannel",function(){this.$StreamingReactionsTray21(this.$StreamingReactionsTray4);if(this.$StreamingReactionsTray26())this.$StreamingReactionsTray27()}.bind(this)),i.addListener("beginPlayback",function(){if(this.$StreamingReactionsTray26())setTimeout(function(){this.$StreamingReactionsTray21(this.$StreamingReactionsTray3);this.$StreamingReactionsTray27()}.bind(this),100)}.bind(this)),i.addListener("finishPlayback",function(){this.$StreamingReactionsTray29()}.bind(this))]};h.prototype.$StreamingReactionsTray32=function(){"use strict";window.addEventListener("resize",function(){return this.$StreamingReactionsTray24()}.bind(this))};h.prototype.$StreamingReactionsTray22=function(){__p&&__p();var i;"use strict";var j=this.$StreamingReactionsTray10?this.$StreamingReactionsTray25(this.$StreamingReactionsTray10):[];if(!this.$StreamingReactionsTray10)this.$StreamingReactionsTray32();(i=this.$StreamingReactionsTray17).addSubscriptions.apply(i,j.concat([c("Arbiter").subscribe("VideoChannelView/opened",function(){this.$StreamingReactionsTray21(c("VideoPlayerLoggerSource").CHANNEL);this.$StreamingReactionsTray29()}.bind(this)),c("Arbiter").subscribe(c("StreamingReactionsTrayEvents").ResizeChannelViewWindow,function(){return this.$StreamingReactionsTray21(this.$StreamingReactionsTray3)}.bind(this)),c("Arbiter").subscribe("VideoChannelView/closed",function(){this.$StreamingReactionsTray21(this.$StreamingReactionsTray4);if(this.$StreamingReactionsTray26())this.$StreamingReactionsTray27()}.bind(this)),c("Arbiter").subscribe(c("StreamingReactionsTrayEvents").ShowChannelViewDetails,function(){if(this.$StreamingReactionsTray26())this.$StreamingReactionsTray27()}.bind(this)),c("Arbiter").subscribe(c("StreamingReactionsTrayEvents").HideChannelViewDetails,function(){this.$StreamingReactionsTray29()}.bind(this)),this.$StreamingReactionsTray2.addListener(c("StreamingReactionsTrayEvents").UpdateSurface,function(){return this.$StreamingReactionsTray1.clearCurrentReactions()}.bind(this)),c("Arbiter").subscribe(c("UFIUIEvents").ReactionButtonClicked,function(k,l){if(l.ft_id===this.$StreamingReactionsTray13)this.$StreamingReactionsTray33(l,true)}.bind(this)),c("Arbiter").subscribe(c("StreamingReactionsTrayEvents").AddReactionAnimate,function(k,l){this.$StreamingReactionsTray33(l,false)}.bind(this)),c("Arbiter").subscribe(c("StreamingReactionsTrayEvents").DisableReactions,function(){this.$StreamingReactionsTray11=true;this.$StreamingReactionsTray29()}.bind(this)),c("Arbiter").subscribe(c("StreamingReactionsTrayEvents").EnableReactions,function(){this.$StreamingReactionsTray11=false;if(this.$StreamingReactionsTray26())this.$StreamingReactionsTray27()}.bind(this)),c("Visibility").addListener(c("Visibility").HIDDEN,function(){this.$StreamingReactionsTray29()}.bind(this)),c("Arbiter").subscribe("ActorSelector/ActorSelected",function(k,l){if(this.$StreamingReactionsTray6[l.selectedActorID])this.$StreamingReactionsTray5=this.$StreamingReactionsTray6[l.selectedActorID]}.bind(this)),c("Visibility").addListener(c("Visibility").VISIBLE,function(){if(this.$StreamingReactionsTray26())this.$StreamingReactionsTray27()}.bind(this))]));if(this.$StreamingReactionsTray26())this.$StreamingReactionsTray27()};h.prototype.$StreamingReactionsTray23=function(){"use strict";this.$StreamingReactionsTray10&&c("VODReactionStream").stop(this.$StreamingReactionsTray10);this.$StreamingReactionsTray29();this.$StreamingReactionsTray17.release()};h.prototype.$StreamingReactionsTray34=function(){"use strict";this.$StreamingReactionsTray15=c("FeedbackAddStreamingReactionSubscription").subscribe(this.$StreamingReactionsTray13,this.$StreamingReactionsTray35.bind(this));this.$StreamingReactionsTray9=true};h.prototype.$StreamingReactionsTray36=function(){"use strict";this.$StreamingReactionsTray15&&this.$StreamingReactionsTray15.unsubscribe();this.$StreamingReactionsTray16&&c("HotLiveVideoPayloadManager").unsubscribe(this.$StreamingReactionsTray16);this.$StreamingReactionsTray9=false};h.prototype.$StreamingReactionsTray33=function(i,j){"use strict";__p&&__p();var k=Date.now(),l=k-this.$StreamingReactionsTray20;if(l<this.$StreamingReactionsTray2.reactionSelfFireworkAnimationThreshold)return;this.$StreamingReactionsTray20=k;var m=void 0;switch(i.reaction_type){case c("FeedbackReactionType").NONE:return;case c("FeedbackReactionType").LIKE:m="LIKE";break;case c("FeedbackReactionType").LOVE:m="LOVE";break;case c("FeedbackReactionType").WOW:m="WOW";break;case c("FeedbackReactionType").HAHA:m="HAHA";break;case c("FeedbackReactionType").SORRY:m="SORRY";break;case c("FeedbackReactionType").ANGER:m="ANGER";break;case c("FeedbackReactionType").DOROTHY:m="DOROTHY";break;default:throw new Error("Not a valid reaction type: "+i.reaction_type)}this.$StreamingReactionsTray1.addOwnReaction(m,this.$StreamingReactionsTray5,j)};h.prototype.$StreamingReactionsTray35=function(i){"use strict";if(this.$StreamingReactionsTray8&&this.$StreamingReactionsTray18)this.$StreamingReactionsTray1.processPayload(i)};h.prototype.$StreamingReactionsTray29=function(){"use strict";this.$StreamingReactionsTray8=false;if(this.$StreamingReactionsTray9)this.$StreamingReactionsTray36();this.$StreamingReactionsTray1.stopAnimation()};h.prototype.$StreamingReactionsTray30=function(){"use strict";this.$StreamingReactionsTray8=false;if(this.$StreamingReactionsTray9)this.$StreamingReactionsTray36();this.$StreamingReactionsTray1.pauseAnimation()};h.prototype.$StreamingReactionsTray27=function(){"use strict";if(this.$StreamingReactionsTray8)return;this.$StreamingReactionsTray8=true;if(!this.$StreamingReactionsTray9)this.$StreamingReactionsTray34();if(this.$StreamingReactionsTray19)this.$StreamingReactionsTray1.startAnimation()};h.prototype.$StreamingReactionsTray31=function(){"use strict";this.$StreamingReactionsTray1.clearBuffer()};h.prototype.$StreamingReactionsTray37=function(){"use strict";return!(this.$StreamingReactionsTray3===c("VideoPlayerLoggerSource").CHANNEL||this.$StreamingReactionsTray3===c("VideoPlayerLoggerSource").SNOWLIFT||this.$StreamingReactionsTray3===c("VideoPlayerLoggerSource").PERMALINK||this.$StreamingReactionsTray3===c("VideoPlayerLoggerSource").LIVE_CONTROL_PANEL||this.$StreamingReactionsTray3===c("VideoPlayerLoggerSource").CAMERA_POST||this.$StreamingReactionsTray3===c("VideoPlayerLoggerSource").TAHOE)};h.prototype.$StreamingReactionsTray26=function(){"use strict";return this.$StreamingReactionsTray37()?this.$StreamingReactionsTray38():this.$StreamingReactionsTray39()};h.prototype.$StreamingReactionsTray28=function(){"use strict";return this.$StreamingReactionsTray37()};h.prototype.$StreamingReactionsTray39=function(){"use strict";if(this.$StreamingReactionsTray11)return false;return this.$StreamingReactionsTray10?!this.$StreamingReactionsTray10.isState("finished"):true};h.prototype.$StreamingReactionsTray38=function(){"use strict";if(!this.$StreamingReactionsTray10)return true;var i=this.$StreamingReactionsTray10;return!i.isMuted()&&i.isState("playing")&&this.$StreamingReactionsTray3!==c("VideoPlayerLoggerSource").LIVE_MAP&&!c("PublicLiveMapConstants").isInlinePlayer(this.$StreamingReactionsTray3)};f.exports=h}),null);
__d("XLiveResetViewerCountAsyncController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/live/viewercount/reset/",{})}),null);
__d("XVideoLiveViewCountController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/video/liveviewcount/",{player_origin:{type:"Enum",enumType:1},video_id:{type:"String",required:true},source:{type:"String",required:true},unmuted:{type:"Bool",defaultValue:true},read_only:{type:"Bool",defaultValue:false}})}),null);
__d("VideoWithLiveBroadcast",["AsyncRequest","HTML","SubscriptionsHandler","Run","VideoPlayerLoggerEvent","XLiveResetViewerCountAsyncController","XVideoLiveViewCountController","BanzaiODS"],(function a(b,c,d,e,f,g){__p&&__p();function h(i){"use strict";__p&&__p();this.$VideoWithLiveBroadcast8=null;this.$VideoWithLiveBroadcast5=i;if(this.$VideoWithLiveBroadcast5.isState("playing"))this.$VideoWithLiveBroadcast9();this.$VideoWithLiveBroadcast2=false;this.$VideoWithLiveBroadcast1=true;this.$VideoWithLiveBroadcast6=null;this.$VideoWithLiveBroadcast4=new(c("SubscriptionsHandler"))();this.$VideoWithLiveBroadcast4.addSubscriptions(i.addListener("beginPlayback",this.$VideoWithLiveBroadcast9.bind(this)),i.addListener("pausePlayback",this.$VideoWithLiveBroadcast10.bind(this)),i.addListener("updateStatus",this.$VideoWithLiveBroadcast11.bind(this)),i.addListener("finishPlayback",this.$VideoWithLiveBroadcast12.bind(this)),i.addListener("unmuteVideo",this.$VideoWithLiveBroadcast13.bind(this)),i.addListener("muteVideo",this.$VideoWithLiveBroadcast14.bind(this)));i.registerOption("VideoWithLiveBroadcast","viewCount",this.getViewCount.bind(this));i.registerOption("VideoWithLiveBroadcast","isLive",function(){return true});c("Run").onLeave(function(){return this.leave()}.bind(this))}h.prototype.leave=function(){"use strict";this.$VideoWithLiveBroadcast15();this.$VideoWithLiveBroadcast4.release()};h.prototype.getViewCount=function(){"use strict";return this.$VideoWithLiveBroadcast6};h.prototype.$VideoWithLiveBroadcast16=function(i){"use strict";if(this.$VideoWithLiveBroadcast6!=i){this.$VideoWithLiveBroadcast6=i;this.$VideoWithLiveBroadcast5.emit("VideoWithLiveBroadcast/viewCountChange",i)}};h.prototype.$VideoWithLiveBroadcast12=function(){"use strict";this.$VideoWithLiveBroadcast5.logEvent(c("VideoPlayerLoggerEvent").PLAYING_LIVE_STOPPED);this.$VideoWithLiveBroadcast8=null;this.$VideoWithLiveBroadcast15()};h.prototype.$VideoWithLiveBroadcast17=function(){"use strict";if(this.$VideoWithLiveBroadcast7)return;this.$VideoWithLiveBroadcast18();this.$VideoWithLiveBroadcast7=setInterval(function(){return this.$VideoWithLiveBroadcast18()}.bind(this),3e3)};h.prototype.$VideoWithLiveBroadcast11=function(i){"use strict";__p&&__p();if(this.$VideoWithLiveBroadcast5.isState("playing")){if(this.$VideoWithLiveBroadcast8==null)this.$VideoWithLiveBroadcast8=i.position;if(this.$VideoWithLiveBroadcast8+3<=i.position){this.$VideoWithLiveBroadcast5.logEvent(c("VideoPlayerLoggerEvent").PLAYED_FOR_THREE_SECONDS);this.$VideoWithLiveBroadcast8=Infinity}}if(!this.$VideoWithLiveBroadcast5.isState("playing")){if(!this.$VideoWithLiveBroadcast3){c("BanzaiODS").bumpEntityKey("www_live_concurrent_viewer","non_playing_update_status");this.$VideoWithLiveBroadcast3=true}if(this.$VideoWithLiveBroadcast1&&!this.$VideoWithLiveBroadcast2)this.$VideoWithLiveBroadcast2=true}};h.prototype.$VideoWithLiveBroadcast15=function(){"use strict";this.$VideoWithLiveBroadcast7&&clearInterval(this.$VideoWithLiveBroadcast7);this.$VideoWithLiveBroadcast7=null};h.prototype.$VideoWithLiveBroadcast18=function(){"use strict";this.$VideoWithLiveBroadcast19(function(i){var j=c("HTML").replaceJSONWrapper(i).getRootNode();this.$VideoWithLiveBroadcast16(j)}.bind(this))};h.prototype.$VideoWithLiveBroadcast19=function(i){"use strict";this.$VideoWithLiveBroadcast5.emit("VideoWithLiveBroadcast/poll");var j=c("XVideoLiveViewCountController").getURIBuilder().setString("video_id",this.$VideoWithLiveBroadcast5.getVideoID()).setString("source",this.$VideoWithLiveBroadcast5.getSource()).setEnum("player_origin",this.$VideoWithLiveBroadcast5.getPlayerOrigin()).setBool("unmuted",!this.$VideoWithLiveBroadcast5.isMuted()).getURI();new(c("AsyncRequest"))().setMethod("GET").setURI(j).setReadOnly(true).setHandler(function(k){return i(k&&k.payload)}).send()};h.prototype.$VideoWithLiveBroadcast9=function(){"use strict";__p&&__p();if(this.$VideoWithLiveBroadcast5.isFacecastAudio()&&(this.$VideoWithLiveBroadcast5.isMuted()||!this.$VideoWithLiveBroadcast5.isState("playing")))return;this.$VideoWithLiveBroadcast8=null;if(this.$VideoWithLiveBroadcast1){this.$VideoWithLiveBroadcast5.logEvent(c("VideoPlayerLoggerEvent").PLAYING_LIVE_STARTED);this.$VideoWithLiveBroadcast1=false;c("BanzaiODS").bumpEntityKey("www_live_concurrent_viewer","begin_playback");if(!this.$VideoWithLiveBroadcast2)c("BanzaiODS").bumpEntityKey("www_live_concurrent_viewer","begin_playback_without_early_polling")}this.$VideoWithLiveBroadcast17()};h.prototype.$VideoWithLiveBroadcast10=function(){"use strict";this.$VideoWithLiveBroadcast8=null;this.$VideoWithLiveBroadcast15()};h.prototype.$VideoWithLiveBroadcast13=function(){"use strict";if(!this.$VideoWithLiveBroadcast5.isFacecastAudio())return;this.$VideoWithLiveBroadcast15();this.$VideoWithLiveBroadcast9()};h.prototype.$VideoWithLiveBroadcast14=function(){"use strict";if(!this.$VideoWithLiveBroadcast5.isFacecastAudio())return;new(c("AsyncRequest"))().setMethod("POST").setURI(c("XLiveResetViewerCountAsyncController").getURIBuilder().getURI()).setData({video_id:this.$VideoWithLiveBroadcast5.getVideoID()}).send()};f.exports=h}),null);
__d("PagesLiveCoverVideo.react",["React","VideoComponentContextMenu.react","VideoComponentCover.react","VideoComponentDebugOverlay.react","VideoComponentEmbeddedControls.react","VideoComponentErrorOverlay.react","VideoComponentLiveEndScreen.react","VideoComponentLiveInterruptedScreen.react","VideoComponentLiveVideoIndicator.react","VideoComponentPlayButton.react","VideoComponentStreamingReactionTray.react","VideoComponentVolumeStorage.react","VideoComponentWithFallbackMode.react","VideoComponentWithLiveBroadcast.react","VideoDataContainer.react","VideoPlayer.react","VideoPlayerOrigins"],(function a(b,c,d,e,f,g){"use strict";var h,i;h=babelHelpers.inherits(j,c("React").PureComponent);i=h&&h.prototype;j.prototype.render=function(){return c("React").createElement(c("VideoDataContainer.react"),{videoID:this.props.videoID},c("React").createElement(c("VideoPlayer.react"),{autoplay:true,height:this.props.renderedHeight,playerOrigin:c("VideoPlayerOrigins").INTERN,startMuted:true,videoData:c("VideoDataContainer.react").VIDEO_DATA_PLACEHOLDER},c("React").createElement(c("VideoComponentEmbeddedControls.react"),{showSettingsButton:true}),c("React").createElement(c("VideoComponentWithLiveBroadcast.react"),null),c("React").createElement(c("VideoComponentPlayButton.react"),null),c("React").createElement(c("VideoComponentCover.react"),null),c("React").createElement(c("VideoComponentLiveVideoIndicator.react"),null),c("React").createElement(c("VideoComponentDebugOverlay.react"),null),c("React").createElement(c("VideoComponentContextMenu.react"),null),c("React").createElement(c("VideoComponentLiveInterruptedScreen.react"),null),c("React").createElement(c("VideoComponentLiveEndScreen.react"),null),c("React").createElement(c("VideoComponentStreamingReactionTray.react"),null),c("React").createElement(c("VideoComponentVolumeStorage.react"),null),c("React").createElement(c("VideoComponentWithFallbackMode.react"),null),c("React").createElement(c("VideoComponentErrorOverlay.react"),null)))};function j(){h.apply(this,arguments)}f.exports=j}),null);
__d("ShowCreationFlowStep",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({RENDER_LANDING_PAGE:"render_landing_page",NAME_CLICK:"name_click",NAME_INPUT:"name_input",DESCRIPTION_CLICK:"description_click",DESCRIPTION_INPUT:"description_input",SHOW_ATTRIBUTION_SELECTED_FROM_MEDIA_MANAGER:"show_attribution_selected_from_media_manager",SHOW_CREATE_CLICK:"show_create_click",SHOW_CREATE_CLICK_FROM_MEDIA_MANAGER:"show_create_click_from_media_manager",SHOW_CREATE_SUCCESS:"show_create_success",SHOW_CREATE_SUCCESS_FROM_MEDIA_MANAGER:"show_create_success_from_media_manager",SHOW_CREATE_ERROR:"show_create_error",SHOW_CREATE_ERROR_FROM_MEDIA_MANAGER:"show_create_error_from_media_manager",SHOW_CREATE_INVALID_TITLE_FROM_MEDIA_MANAGER:"show_create_invalid_title_from_media_manager",SHOWS_ONBOARDING_CARD_CLICK:"shows_onboarding_card_click",PROFILE_PIC_ITEM_CLICK:"profile_pic_item_click",PROFILE_PIC_ITEM_FILE_SELECTED:"profile_pic_item_file_selected",SHOW_TRAILER_ITEM_CLICK:"show_trailer_item_click",SHOW_TRAILER_ITEM_FILE_SELECTED:"show_trailer_item_file_selected",SHOW_TRAILER_UPLOADED:"show_trailer_uploaded",SHOW_TRAILER_UPLOAD_CANCELLED:"show_trailer_upload_cancelled",SHOW_TRAILER_ENCODE_SUCCESS:"show_trailer_encode_success",SHOW_TRAILER_UPLOAD_NEW_CLICKED:"show_trailer_upload_new_clicked",SHOW_TRAILER_UPLOAD_NEW_FILE_SELECTED:"show_trailer_upload_new_file_selected",SHOWMARK_ITEM_CLICK:"showmark_item_click",SHOWMARK_FILE_SELECTED:"showmark_file_selected",SHOWMARK_FILE_CHANGED:"showmark_file_changed",SHOWMARK_DIALOG_CLOSED:"showmark_dialog_closed",SHOWMARK_UPLOAD_CLICKED:"showmark_upload_clicked",SHOWMARK_UPLOAD_CROPPED:"showmark_upload_cropped",SHOWMARK_UPLOAD_CROP_REVERTED:"showmark_upload_crop_reverted",SHOWMARK_UPLOAD_FAILED:"showmark_upload_failed",SHOWMARK_UPLOAD_SUCCESS:"showmark_upload_success",SHOWMARK_CHANGE_CLICK:"showmark_change_click",SHOWMARK_INVALID:"showmark_invalid",SHOWMARK_CREATION_TOGGLE:"showmark_creation_toggle",SHOWMARK_CREATION_TEMPLATE_SELECTED:"showmark_creation_template_selected",SHOWMARK_CREATION_UPLOAD:"showmark_creation_upload",CONVERSION_MENU_OPENED:"conversion_menu_opened",CONVERSION_MENU_CLOSED:"conversion_menu_closed",CONVERSION_APPLY_TEMPLATE_CLICKED:"conversion_apply_template_clicked",PUBLISH_BUTTON_CLICK:"publish_button_click",PUBLISH_CONFIRM_BUTTON_CLICK:"publish_confirm_button_click",PUBLISH_SUCCESS:"publish_success",UNPUBLISH_SUCCESS:"unpublish_success",PUBLISH_ERROR:"publish_error"})}),null);
__d("ShowsCreationLoggerUtils",["ShowCreationFlowTypedLogger"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h={log:function i(j,k,l){var m=new(c("ShowCreationFlowTypedLogger"))().setStep(j).setPageID(k);if(l)m=m.updateExtraData(l);m.log()},logError:function i(j,k,l,m){var n=new(c("ShowCreationFlowTypedLogger"))().setStep(j).setPageID(k).setError(l);if(m)n=n.updateExtraData(m);n.log()}};f.exports=h}),null);
__d("ShowmarkErrorDialog.react",["cx","ix","fbt","Image.react","Layout.react","React","XUIDialog.react","XUIDialogBody.react","XUIDialogButton.react","XUIDialogFooter.react","XUIDialogTitle.react"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("Layout.react").Column,n=500;k=babelHelpers.inherits(o,c("React").Component);l=k&&k.prototype;function o(p){l.constructor.call(this,p);this.hide=function(){this.setState({shown:false})}.bind(this);this.state={shown:false}}o.prototype.$ShowmarkErrorDialog1=function(){if(this.props.validationFailure==="transparent_and_white")return j._("A showmark must be an all-white graphic on a transparent background.");return null};o.prototype.$ShowmarkErrorDialog2=function(){if(this.props.validationFailure==="transparent_and_white")return j._("Your showmark Can't be Added in This Format");return null};o.prototype.render=function(){return c("React").createElement(c("XUIDialog.react"),{shown:this.state.shown,hideOnEscape:false,layerHideOnBlur:false,width:n},c("React").createElement(c("XUIDialogTitle.react"),null,c("React").createElement(c("Layout.react"),null,c("React").createElement(m,null,c("React").createElement(c("Image.react"),{className:"_3-90",src:i("26339")})),c("React").createElement(m,null,this.$ShowmarkErrorDialog2()))),c("React").createElement(c("XUIDialogBody.react"),null,this.$ShowmarkErrorDialog1(),c("React").createElement("div",{display:"block",className:"_3-8x"},j._("Make sure your showmark meets these requirements and try again."))),c("React").createElement(c("XUIDialogFooter.react"),null,c("React").createElement(c("XUIDialogButton.react"),{label:j._("OK"),onClick:this.hide})))};o.prototype.show=function(){this.setState({shown:true})};f.exports=o}),null);
__d("ShowmarkTemplate",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({RALEWAY:"RALEWAY",ASAPCONDENSED:"ASAPCONDENSED",MONTSERRAT:"MONTSERRAT",NOTOSERIF:"NOTOSERIF",ROBOTOSLAB:"ROBOTOSLAB",FREDOKAONE:"FREDOKAONE"})}),null);
__d("ShowmarkTemplateFontConfig",[],(function a(b,c,d,e,f,g){"use strict";var h=Object.freeze({ASAPCONDENSED:"Asap Condensed Medium",FREDOKAONE:"Fredoka One Regular",MONTSERRAT:"Montserrat Regular",NOTOSERIF:"Noto Serif Bold",RALEWAY:"Raleway ExtraBold",ROBOTOSLAB:"Roboto Slab Bold"});f.exports=h}),null);
__d("VideoShowsLogoFileInput.react",["FileInput.react","React"],(function a(b,c,d,e,f,g){"use strict";var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;j.prototype.render=function(){return c("React").createElement(c("FileInput.react"),{accept:"image/png",multiple:false,onChange:this.props.onFileChange,containerClassName:this.props.className},this.props.children)};function j(){h.apply(this,arguments)}f.exports=j}),null);
__d("XShowsLogoUploadController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/showpages/logo/upload/",{page_id:{type:"FBID"},crop_window:{type:"IntVector"},file_data_url:{type:"String"}})}),null);
__d("VideoShowsLogoUploadDialog.react",["ix","cx","fbt","cssVar","ActorURI","AdsXUIProgressBar.react","DOM","FileInputUploader","Image.react","Layout.react","LeftRight.react","Map","React","ReactDOM","ShowCreationFlowStep","ShowCreationFlowTypedLogger","ShowsConfig","ShowmarkErrorDialog.react","Text","VideoShowsLogoFileInput.react","XShowsLogoUploadController","XUICard.react","XUIDialog.react","XUIDialogBody.react","XUIDialogButton.react","XUIDialogFooter.react","XUIDialogTitle.react","XUIGrayText.react","XUIText.react","XUINotice.react","XUISpinner.react","PhotoZoomCropImagePreview.react","XUIButton.react","PhotoZoomCropDimensions","BasicVector","Link.react","ShowmarkTemplate","ShowmarkTemplateFontConfig","Grid.react","XUITextInput.react","canvasToBlob","SimpleNUXMessage","SimpleNUXMessageTypes","XUIAmbientNUX.react","fbglyph"],(function a(b,c,d,e,f,g,h,i,j,k){"use strict";__p&&__p();var l,m,n=c("Grid.react").GridItem,o=c("Layout.react").Column,p=c("Layout.react").FillColumn,q=900,r=270,s=84,t=144,u=45,v=24,w=3,x=720,y=225,z=215,A=110;l=babelHelpers.inherits(B,c("React").Component);m=l&&l.prototype;function B(C){__p&&__p();m.constructor.call(this,C);this.$VideoShowsLogoUploadDialog2=function(event){this.setState({uploadState:"loading"})}.bind(this);this.$VideoShowsLogoUploadDialog3=function(event){__p&&__p();var D=event.currentTarget.result,E=new Image();E.src=D;E.onload=function(){__p&&__p();var F=document.createElement("canvas");F.width=E.width;F.height=E.height;var G=F.getContext("2d");if(G==undefined)return;G.drawImage(E,0,0);var H=G.getImageData(0,0,E.width,E.height),I=H.data,J=0,K=0,L=c("ShowsConfig").countThreshold,M=E.width,N=0,O=E.height,P=0;for(var Q=0;Q<E.height;Q++)for(var R=0;R<E.width;R++){var S=E.width*Q+R,T=4*S;if(I[T+3]!=0){J++;if(R<M)M=R;if(R>N)N=R;if(Q<O)O=Q;if(Q>P)P=Q;var U=I[T],V=I[T+1],W=I[T+2],X=.2126*U+.7152*V+.0722*W;if(X>=250)K++}}if(J===E.width*E.height||J*L>=K*100){if(J===E.width*E.height)this.$VideoShowsLogoUploadDialog4(c("ShowCreationFlowStep").SHOWMARK_INVALID,new(c("Map"))([["reason","Not transparent"]]));else this.$VideoShowsLogoUploadDialog4(c("ShowCreationFlowStep").SHOWMARK_INVALID,new(c("Map"))([["reason","Not white"],["non transparent pixels",J],["whitePixels",K]]));var Y=c("React").createElement(c("ShowmarkErrorDialog.react"),{validationFailure:"transparent_and_white"});Y=c("ReactDOM").render(Y,c("DOM").create("div"));Y.show();this.setState({uploadState:null,url:null});return}var Z=null,$=null;if(M!==0||N!==E.width-1||O!==0||P!==E.height-1){$=[M,O,N,P];Z=new(c("PhotoZoomCropDimensions"))(new(c("BasicVector"))(E.width,E.height));Z.setCenter((M+N)/E.width/2,(O+P)/E.height/2);Z=this.$VideoShowsLogoUploadDialog5(Z,$,r,s);this.$VideoShowsLogoUploadDialog4(c("ShowCreationFlowStep").SHOWMARK_UPLOAD_CROPPED,{cropWindow:JSON.stringify($)})}this.setState({uploadState:"success",url:D,cropDims:Z,cropWindow:$})}.bind(this)}.bind(this);this.$VideoShowsLogoUploadDialog6=function(event){this.setState({uploadState:"failed"})}.bind(this);this.$VideoShowsLogoUploadDialog22=function(){this.$VideoShowsLogoUploadDialog4(c("ShowCreationFlowStep").SHOWMARK_CREATION_TOGGLE,new(c("Map"))([["is_creation",!this.state.useCreationTool]]));var D=!this.state.useCreationTool;if(D)this.$VideoShowsLogoUploadDialog23();this.setState({useCreationTool:D,templateSelected:D?c("ShowmarkTemplate").RALEWAY:null})}.bind(this);this.$VideoShowsLogoUploadDialog27=function(event){var D=event.currentTarget.value;if(D.length<=v)this.setState({templateText:D},this.$VideoShowsLogoUploadDialog26)}.bind(this);this.$VideoShowsLogoUploadDialog26=function(){__p&&__p();var D=this.state,E=D.templateSelected,F=D.templateText;if(!E||F.length<w||F.length>v)return;var G=c("DOM").create("canvas");G.width=x;G.height=y;var H=G.getContext("2d");H.fillStyle="#ffffff";H.textAlign="left";H.textBaseline="bottom";var I=z;H=this.$VideoShowsLogoUploadDialog28(H,I,E);while(H.measureText(F).width>x&&I>A){I--;H=this.$VideoShowsLogoUploadDialog28(H,I,E)}if(H.measureText(F).width<=x)H.fillText(F,0,y);else{var J=F.split(" "),K="";for(var L=J,M=Array.isArray(L),N=0,L=M?L:L[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var O;if(M){if(N>=L.length)break;O=L[N++]}else{N=L.next();if(N.done)break;O=N.value}var P=O;if(H.measureText(K+P).width<=x)K+=P+" ";else break}K=K.trim();var Q=F.slice(K.length).trim();if(H.measureText(Q).width>x){while(H.measureText(K+F[K.length]).width<=x)K+=F[K.length];Q=F.slice(K.length).trim();while(H.measureText(Q).width>x)Q=Q.slice(0,-1)}H.fillText(K,0,y-I);H.fillText(Q,0,y)}c("canvasToBlob")(G,"image/png").then(function(R){var S=new FileReader();S.onload=function(T){this.$VideoShowsLogoUploadDialog3(T);this.setState({file:new File([R],"temp-showmark.png"),fileInput:c("ReactDOM").findDOMNode(this.refs.showmarkCreationFileInput),fileDataURL:G.toDataURL()})}.bind(this);S.onprogress=this.$VideoShowsLogoUploadDialog2;S.onerror=this.$VideoShowsLogoUploadDialog6;S.readAsDataURL(R)}.bind(this)).done()}.bind(this);this.$VideoShowsLogoUploadDialog23=function(){c("SimpleNUXMessage").markMessageSeenByUser(c("SimpleNUXMessageTypes").SHOWMARK_CREATION_TOOL_NUX);this.setState({creationToolNuxShown:false})}.bind(this);this.$VideoShowsLogoUploadDialog35=function(){__p&&__p();this.$VideoShowsLogoUploadDialog4(c("ShowCreationFlowStep").SHOWMARK_UPLOAD_CLICKED,{cropWindow:JSON.stringify(this.state.cropWindow)});if(this.state.useCreationTool)this.$VideoShowsLogoUploadDialog4(c("ShowCreationFlowStep").SHOWMARK_CREATION_UPLOAD,new(c("Map"))([["template",this.state.templateSelected],["template_text",this.state.templateText]]));if(this.state.fileInput){this.setState({uploadToServerState:"loading"});var D=c("XShowsLogoUploadController").getURIBuilder().setFBID("page_id",this.props.pageID);if(this.state.cropWindow)D.setIntVector("crop_window",this.state.cropWindow);D=c("ActorURI").create(D.getURI(),this.props.pageID);var E=new(c("FileInputUploader"))(this.state.fileInput).setURI(D).setFiles({file:this.state.file}).setData({file_data_url:this.state.fileDataURL});E.subscribe("success",function(F,G){this.$VideoShowsLogoUploadDialog4(c("ShowCreationFlowStep").SHOWMARK_UPLOAD_SUCCESS,new(c("Map"))([["photo_id",G.photoID]]));this.setState({uploadToServerState:"success"});this.props.onSuccess()}.bind(this));E.subscribe("failure",function(F,G){this.$VideoShowsLogoUploadDialog4(c("ShowCreationFlowStep").SHOWMARK_UPLOAD_FAILED);this.setState({uploadToServerState:"failed"})}.bind(this));E.send()}}.bind(this);this.$VideoShowsLogoUploadDialog36=function(){this.$VideoShowsLogoUploadDialog4(c("ShowCreationFlowStep").SHOWMARK_DIALOG_CLOSED);this.props.hideDialog()}.bind(this);this.state={file:null,fileInput:null,fileDataURL:null,uploadToServerState:null,uploadState:null,url:C.existingLogoUrl,cropDims:null,cropWindow:null,useCreationTool:false,templateSelected:null,templateText:C.pageName.substr(0,v),creationToolNuxShown:!c("SimpleNUXMessage").hasUserSeenMessage(c("SimpleNUXMessageTypes").SHOWMARK_CREATION_TOOL_NUX)}}B.prototype.$VideoShowsLogoUploadDialog1=function(C){var D=C.files;if(!D||!D[0])return null;return D[0]};B.prototype.$VideoShowsLogoUploadDialog7=function(event,C){__p&&__p();event.preventDefault();var D=event.target,E=this.$VideoShowsLogoUploadDialog1(D);this.setState({fileInput:D,file:E});if(!E)return;var F=new FileReader();F.onload=this.$VideoShowsLogoUploadDialog3;F.onprogress=this.$VideoShowsLogoUploadDialog2;F.onerror=this.$VideoShowsLogoUploadDialog6;F.readAsDataURL(E);if(C)this.$VideoShowsLogoUploadDialog4(c("ShowCreationFlowStep").SHOWMARK_FILE_SELECTED);else this.$VideoShowsLogoUploadDialog4(c("ShowCreationFlowStep").SHOWMARK_FILE_CHANGED)};B.prototype.$VideoShowsLogoUploadDialog8=function(){return j._("Add Your Showmark")};B.prototype.$VideoShowsLogoUploadDialog9=function(){return j._("Showmarks highlight your show's brand. Your showmark appears as an overlay on top of your videos and thumbnails in the lower-left corner. Your showmark should be unique to your show.")};B.prototype.$VideoShowsLogoUploadDialog4=function(C,D){var E=new(c("ShowCreationFlowTypedLogger"))().setStep(C).setPageID(this.props.pageID);if(D)E=E.updateExtraData(D);E.log()};B.prototype.$VideoShowsLogoUploadDialog10=function(){return c("React").createElement("div",{className:"_45l_"},c("React").createElement(c("Layout.react"),null,c("React").createElement(o,null,c("React").createElement("div",{className:"_2gsu"},c("React").createElement(c("Image.react"),{className:"_45m2",src:h("134353")}))),c("React").createElement(p,null,c("React").createElement("div",{className:"_45m4"},this.$VideoShowsLogoUploadDialog9()))))};B.prototype.$VideoShowsLogoUploadDialog11=function(){return c("React").createElement("div",{className:"_2gzs"},c("React").createElement(c("XUIText.react"),{display:"block",headingLevel:1,weight:"bold",className:"_2gzt"},this.$VideoShowsLogoUploadDialog8()),c("React").createElement(c("XUIText.react"),{display:"block",className:"_2gzu"},this.$VideoShowsLogoUploadDialog9()))};B.prototype.$VideoShowsLogoUploadDialog5=function(C,D,E,F){var G=Math.min(Math.min(E/(D[2]-D[0]+1),F/(D[3]-D[1]+1)),1),H=C.clone();H.setSize((D[2]-D[0]+1)*G,(D[3]-D[1]+1)*G);H.setZoom(G);return H};B.prototype.$VideoShowsLogoUploadDialog12=function(){var C=this.state,D=C.cropWindow,E=C.cropDims,F=C.url;if(E&&D)E=this.$VideoShowsLogoUploadDialog5(E,D,t,u);var G=c("React").createElement("div",{className:"_16wy"},E?c("React").createElement(c("PhotoZoomCropImagePreview.react"),{dimensions:E,size:E.getSize(),src:String(F),className:"_16wz"}):c("React").createElement(c("Image.react"),{src:F,className:"_16wz"}));return c("React").createElement("div",{className:"_2gzw"},c("React").createElement(c("XUIText.react"),{display:"block",weight:"bold",className:"_2gzz"},j._("Preview of your showmark placement")),c("React").createElement(c("XUICard.react"),{background:"base-wash",className:"_2gz-"},c("React").createElement("div",{className:"_16w_"},c("React").createElement(c("Layout.react"),{className:"_16x1"},c("React").createElement(o,null,this.props.pageProfilePic?c("React").createElement(c("Image.react"),{src:this.props.pageProfilePic,className:"_4kh1"}):c("React").createElement("div",{className:"_4kh1"})),c("React").createElement(p,null,c("React").createElement(c("XUIText.react"),{weight:"bold"},this.props.pageName),c("React").createElement(c("Layout.react"),null,c("React").createElement(o,null,c("React").createElement(c("XUIGrayText.react"),{shade:"light",size:"meta1"},j._("2 hours ago"))),c("React").createElement(o,{className:"_3-8r"},c("React").createElement(c("XUIGrayText.react"),{shade:"light",size:"meta1"},"\xb7")),c("React").createElement(o,null,c("React").createElement(c("Image.react"),{className:"_4kh3",src:h("124639")})))),c("React").createElement(o,null,c("React").createElement(c("Image.react"),{src:h("125398")}))),c("React").createElement("div",{className:"_16x2"+(!!this.state.url?" _3d6w":"")},this.state.url?G:c("React").createElement(c("XUIText.react"),{className:"_16wy"},j._("Showmark").toString())),c("React").createElement("div",{className:"_16x5"},c("React").createElement(c("Layout.react"),null,c("React").createElement(p,null,c("React").createElement(c("XUIGrayText.react"),{className:"_16x6",display:"block",shade:"light",size:"meta1"},j._("LATEST EPISODE")),c("React").createElement(c("XUIText.react"),{display:"block",weight:"bold",className:"_16x8"},j._("Episode title"))),c("React").createElement(o,null,c("React").createElement(c("XUIButton.react"),{className:"_16x9",image:c("React").createElement(c("Image.react"),{src:h("121816")}),label:j._("Watchlist"),use:"default",href:"#"})))))),c("React").createElement("div",{className:"_2gz_"},this.$VideoShowsLogoUploadDialog13()))};B.prototype.$VideoShowsLogoUploadDialog14=function(){return c("React").createElement("div",{className:"_2g-0"},this.state.uploadToServerState==="loading"?c("React").createElement("div",{className:"_26of"},c("React").createElement(c("XUISpinner.react"),{className:"_26oj",background:"dark",size:"large"})):null,c("React").createElement(c("LeftRight.react"),null,this.$VideoShowsLogoUploadDialog15(),this.$VideoShowsLogoUploadDialog12()))};B.prototype.$VideoShowsLogoUploadDialog16=function(){return c("React").createElement(c("VideoShowsLogoFileInput.react"),{onFileChange:function(event){return this.$VideoShowsLogoUploadDialog7(event,true)}.bind(this),ref:"blankLogofileInput"},c("React").createElement("a",{href:"#"},c("React").createElement("div",{className:"_45m5"},c("React").createElement(c("Image.react"),{className:"_3-94",src:h("124971")}),c("React").createElement(c("XUIGrayText.react"),{shade:"medium",size:"header3",className:"_37a1"},j._("Click to upload or drag image")))))};B.prototype.$VideoShowsLogoUploadDialog17=function(){return c("React").createElement("div",null,c("React").createElement("div",{className:"_45m6"},c("React").createElement(c("Image.react"),{className:"_45m9",src:this.state.url})),c("React").createElement(c("VideoShowsLogoFileInput.react"),{onFileChange:function(event){return this.$VideoShowsLogoUploadDialog7(event,false)}.bind(this),ref:"changeLogofileInput"},c("React").createElement("a",{href:"#"},c("React").createElement(c("Layout.react"),{style:{marginTop:"12px"}},c("React").createElement(o,null,c("React").createElement(c("Image.react"),{src:h("126555")})),c("React").createElement(o,null,c("React").createElement(c("XUIGrayText.react"),{style:{paddingLeft:"4px"},shade:"light"},j._("Change Image")))))))};B.prototype.$VideoShowsLogoUploadDialog18=function(){var C=c("React").createElement(c("VideoShowsLogoFileInput.react"),{onFileChange:function(event){return this.$VideoShowsLogoUploadDialog7(event,false)}.bind(this),ref:"changeLogofileInput"},c("React").createElement(c("XUIButton.react"),{className:"_3-8y",image:c("React").createElement(c("Image.react"),{src:h("121748")}),label:j._("Change Showmark"),use:"default",href:"#"}));if(this.state.cropDims)C=c("React").createElement(c("Layout.react"),{className:"_3-8o"},c("React").createElement(o,null,c("React").createElement(c("Image.react"),{src:h("116731")})),c("React").createElement(p,{className:"_18p2"},c("React").createElement(c("XUIText.react"),{weight:"bold",display:"block"},j._("Showmark Cropped")),c("React").createElement(c("XUIText.react"),{display:"block"},j._("To make sure your showmark displays properly, your graphic was automatically cropped to remove any extra padding around the sides.")),c("React").createElement("div",null,c("React").createElement(c("XUIButton.react"),{className:"_3-8y _3-90",image:c("React").createElement(c("Image.react"),{src:h("120765")}),label:j._("Revert"),use:"default",href:"#",onClick:function(){this.$VideoShowsLogoUploadDialog4(c("ShowCreationFlowStep").SHOWMARK_UPLOAD_CROP_REVERTED);this.setState({cropDims:null,cropWindow:null})}.bind(this)}),C)));var D=this.state,E=D.cropDims,F=D.url;return c("React").createElement("div",null,c("React").createElement("div",{className:"_45m6"},E?c("React").createElement(c("PhotoZoomCropImagePreview.react"),{className:"_18p3",dimensions:E,size:E.getSize(),src:String(F)}):c("React").createElement(c("Image.react"),{className:"_45m9",src:F})),C)};B.prototype.$VideoShowsLogoUploadDialog19=function(){return c("React").createElement(c("AdsXUIProgressBar.react"),{className:"_45mb",striped:true,value:100})};B.prototype.$VideoShowsLogoUploadDialog20=function(){return c("React").createElement(c("XUINotice.react"),{style:{marginTop:"12px",marginRight:"12px"},use:"warn"},j._("There was an error adding your showmark. Please try again."))};B.prototype.$VideoShowsLogoUploadDialog21=function(){return c("React").createElement("ul",{className:"_2g-3"},c("React").createElement("li",{className:"_2g-4"},j._("At least 300 pixels high (recommended size: 900 X 300 pixels).")),c("React").createElement("li",{className:"_2g-4"},j._("An all-white graphic on a transparent background.")),c("React").createElement("li",{className:"_2g-4"},j._("PNG files only.")),c("React").createElement("li",{className:"_2g-4"},j._("Tightly cropped around the edges of your graphic so there's no extra padding on any side (see the white lines around the showmark below)."),c("React").createElement("div",{className:"_2g-5"},c("React").createElement("div",{className:"_2g-6"},j._("Showmark").toString()))))};B.prototype.$VideoShowsLogoUploadDialog24=function(){return c("React").createElement("div",null,c("React").createElement(c("XUIText.react"),{className:"_2g-8"},j._("ADD A SHOWMARK")),this.state.url?this.$VideoShowsLogoUploadDialog18():this.$VideoShowsLogoUploadDialog16(),this.state.uploadState==="loading"?this.$VideoShowsLogoUploadDialog19():null)};B.prototype.$VideoShowsLogoUploadDialog25=function(C){this.$VideoShowsLogoUploadDialog4(c("ShowCreationFlowStep").SHOWMARK_CREATION_TEMPLATE_SELECTED,new(c("Map"))([["template",C]]));this.setState({templateSelected:C},this.$VideoShowsLogoUploadDialog26)};B.prototype.$VideoShowsLogoUploadDialog28=function(C,D,E){C.font=D+"px "+c("ShowmarkTemplateFontConfig")[E];return C};B.prototype.componentDidUpdate=function(C,D){if(this.state.useCreationTool&&!D.useCreationTool)this.$VideoShowsLogoUploadDialog25(c("ShowmarkTemplate").RALEWAY)};B.prototype.$VideoShowsLogoUploadDialog29=function(C){return c("React").createElement("div",{className:"_3h-p"+(C===this.state.templateSelected?" _3h-q":""),onClick:function(){return this.$VideoShowsLogoUploadDialog25(C)}.bind(this),role:"radio","aria-checked":C===this.state.templateSelected,tabIndex:Object.values(c("ShowmarkTemplate")).indexOf(C)},c("React").createElement("span",{style:{fontFamily:c("ShowmarkTemplateFontConfig")[C]},className:"_3h-r"},"Abc"))};B.prototype.$VideoShowsLogoUploadDialog30=function(){var C=v-this.state.templateText.length;return c("React").createElement("div",{className:"_2put"},c("React").createElement(c("XUIText.react"),{className:"_2g-8"},j._("SELECT A SHOWMARK TEMPLATE")),c("React").createElement(c("Grid.react"),{cols:3,spacing:"pas",className:"_3-8o"},Object.keys(c("ShowmarkTemplate")).map(function(D){return c("React").createElement(n,{key:D},this.$VideoShowsLogoUploadDialog29(D))}.bind(this))),c("React").createElement(c("XUITextInput.react"),{className:"_2puu",value:this.state.templateText,onChange:this.$VideoShowsLogoUploadDialog27}),c("React").createElement(c("XUIText.react"),{size:"meta1",display:"block",className:"_3-8x"+(C<=0||this.state.templateText.length<w?" _2puw":"")},this.state.templateText.length>=w?j._({"*":"({number} characters remaining)","_1":"(1 character remaining)"},[j.plural(C,"number")]):j._("Showmark must be more than 3 characters")),c("React").createElement(c("VideoShowsLogoFileInput.react"),{ref:"showmarkCreationFileInput",onFileChange:function D(){},className:"hidden_elem"},c("React").createElement("a",{href:"#"})))};B.prototype.$VideoShowsLogoUploadDialog15=function(){var C=c("React").createElement(c("Link.react"),{href:"#",onClick:this.$VideoShowsLogoUploadDialog22,className:"_33xa",ref:"creationToolToggleLink"},this.state.useCreationTool?j._("Do you want to add your own showmark?"):j._("Don't have a showmark? Add a default showmark.")),D=c("React").createElement(c("XUIAmbientNUX.react"),{contextRef:function(){return this.refs.creationToolToggleLink}.bind(this),position:"below",shown:this.state.creationToolNuxShown,onCloseButtonClick:this.$VideoShowsLogoUploadDialog23},j._("New! If you don't have a showmark, Facebook can make one for you to get started."));return c("React").createElement("div",{className:"_2g-7"},c("React").createElement(c("XUIText.react"),{className:"_2g-8"},j._("SHOWMARK REQUIREMENTS")),this.$VideoShowsLogoUploadDialog21(),this.state.useCreationTool?this.$VideoShowsLogoUploadDialog30():this.$VideoShowsLogoUploadDialog24(),C,this.state.creationToolNuxShown?D:null)};B.prototype.$VideoShowsLogoUploadDialog31=function(){return c("React").createElement("div",{className:"_ixe"},c("React").createElement(c("Text"),{style:{fontWeight:"bold",marginBottom:"12px"}},j._("Your showmark should be:")),c("React").createElement("ul",{className:"_2hz8"},c("React").createElement("li",{className:"_2hza"},j._("At least 300 pixels high (recommended size: 900 X 300 pixels).")),c("React").createElement("li",{className:"_2hza"},j._("An all-white graphic on a transparent background.")),c("React").createElement("li",{className:"_2hza"},j._("PNG files only")),c("React").createElement("li",{className:"_2hza"},j._("Tightly cropped around the edges of your graphic so there's no extra padding or pixels on the side."))),this.state.url?this.$VideoShowsLogoUploadDialog17():this.$VideoShowsLogoUploadDialog16(),this.state.uploadState=="loading"?this.$VideoShowsLogoUploadDialog19():null)};B.prototype.$VideoShowsLogoUploadDialog32=function(){return c("React").createElement("div",{className:"_1qx9"},c("React").createElement(c("Layout.react"),null,c("React").createElement(o,null,c("React").createElement("div",{className:"_4kh1"})),c("React").createElement(p,null,c("React").createElement(c("XUIGrayText.react"),{shade:"light",size:"header4"},j._("Show name added a new episode")),c("React").createElement(c("Layout.react"),null,c("React").createElement(o,null,c("React").createElement(c("XUIGrayText.react"),{shade:"light",size:"meta1",className:"_3-90"},j._("2 hours ago"))),c("React").createElement(o,null,c("React").createElement(c("Image.react"),{className:"_4kh3",src:h("126241")})))),c("React").createElement(o,null,c("React").createElement(c("Image.react"),{src:h("125398")}))),c("React").createElement("div",{className:(this.state.url!=null?"_1qxa":"")+(this.state.url==null?" _1qxo":"")+" _1qxp"},this.state.url?c("React").createElement(c("Image.react"),{className:"_1qxq",src:this.state.url}):c("React").createElement("div",{className:"_4kh6"})))};B.prototype.$VideoShowsLogoUploadDialog33=function(){return c("React").createElement("div",{className:"_1qx7"},c("React").createElement(c("Text"),{className:"_3-94",style:{fontWeight:"bold"}},j._("Example of showmark placement")),c("React").createElement(c("Text"),{style:{display:"block"}},j._("This is how your showmark will appear on your videos in News Feed.")),c("React").createElement("div",{className:"_1qx8"},this.$VideoShowsLogoUploadDialog32(),this.$VideoShowsLogoUploadDialog32()))};B.prototype.$VideoShowsLogoUploadDialog34=function(){return c("React").createElement("div",{style:{padding:"18px"}},this.state.uploadToServerState==="loading"?c("React").createElement("div",{className:"_26of"},c("React").createElement(c("XUISpinner.react"),{className:"_26oj",background:"dark",size:"large"})):null,c("React").createElement(c("LeftRight.react"),null,this.$VideoShowsLogoUploadDialog31(),this.$VideoShowsLogoUploadDialog33()),this.state.uploadState==="failed"||this.state.uploadToServerState==="failed"?this.$VideoShowsLogoUploadDialog20():null)};B.prototype.$VideoShowsLogoUploadDialog13=function(){var C=this.state.uploadToServerState==="loading",D=this.state.useCreationTool&&(!this.state.templateSelected||this.state.templateText.length<w);return c("React").createElement(c("LeftRight.react"),null,c("React").createElement("span",null),c("React").createElement("span",null,c("React").createElement(c("XUIDialogButton.react"),{label:j._("Cancel"),action:"cancel",size:"large",use:"default",onClick:this.$VideoShowsLogoUploadDialog36,disabled:C}),c("React").createElement(c("XUIDialogButton.react"),{label:j._("Add Showmark"),action:"confirm",size:"large",use:"confirm",disabled:this.state.uploadState!=="success"||C||D,onClick:this.$VideoShowsLogoUploadDialog35})))};B.prototype.render=function(){return c("React").createElement("div",null,c("React").createElement(c("XUIDialog.react"),{width:q,shown:true,hideOnEscape:false,label:this.$VideoShowsLogoUploadDialog8(),layerHideOnBlur:false},c("React").createElement(c("XUIDialogBody.react"),{className:"_45me"},this.$VideoShowsLogoUploadDialog11(),this.$VideoShowsLogoUploadDialog14())))};f.exports=B}),null);
__d("VideoComponentShowmarkOverlay.react",["ix","cx","fbt","AbstractButton.react","AsyncRequest","Image.react","Layout.react","PopoverMenu.react","React","ReactXUIMenu","ShowCreationFlowStep","ShowsCreationLoggerUtils","VideoShowsLogoUploadDialog.react","XPagesCoverReloadController","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("Layout.react").Column,n=c("Layout.react").FillColumn,o=c("ReactXUIMenu").Item;k=babelHelpers.inherits(p,c("React").Component);l=k&&k.prototype;function p(q){__p&&__p();l.constructor.call(this,q);this.$VideoComponentShowmarkOverlay1=function(){c("ShowsCreationLoggerUtils").log(c("ShowCreationFlowStep").SHOWMARK_CHANGE_CLICK,this.props.pageID);this.setState({showEditShowMarkDialog:true})}.bind(this);this.$VideoComponentShowmarkOverlay2=function(){this.setState({showEditShowMarkDialog:false})}.bind(this);this.$VideoComponentShowmarkOverlay3=function(){new(c("AsyncRequest"))().setURI(c("XPagesCoverReloadController").getURIBuilder().setFBID("page_id",this.props.pageID).getURI()).send();this.$VideoComponentShowmarkOverlay2()}.bind(this);this.state={showEditShowMarkDialog:false}}p.prototype.$VideoComponentShowmarkOverlay4=function(){return c("React").createElement(c("Image.react"),{className:"_1o-v",src:this.props.showmarkURL})};p.prototype.$VideoComponentShowmarkOverlay5=function(){if(!this.props.isAdmin)return null;var q=c("React").createElement(c("ReactXUIMenu"),null,c("React").createElement(o,{onClick:this.$VideoComponentShowmarkOverlay1},j._("Change Showmark"))),r=c("React").createElement(c("Image.react"),{src:h("115342")}),s=j._("Edit showmark");return c("React").createElement("div",null,this.state.showEditShowMarkDialog?c("React").createElement(c("VideoShowsLogoUploadDialog.react"),{existingLogoUrl:this.props.showmarkUploadPreviewURL,pageID:this.props.pageID,pageName:this.props.pageName,pageProfilePic:this.props.pageProfilePic,hideDialog:this.$VideoComponentShowmarkOverlay2,onSuccess:this.$VideoComponentShowmarkOverlay3}):null,c("React").createElement("div",{className:"_2210"},c("React").createElement(c("PopoverMenu.react"),{menu:q,position:"below"},c("React").createElement(c("AbstractButton.react"),{className:"_2212",image:r,label:s,labelIsHidden:true,ref:"button",type:"button"}))))};p.prototype.render=function(){return c("React").createElement(c("Layout.react"),{className:"_2213"},c("React").createElement(m,null,this.$VideoComponentShowmarkOverlay4()),c("React").createElement(n,null,this.$VideoComponentShowmarkOverlay5()))};f.exports=p}),null);
__d("VideoComponentShowsTrailerOverlay.react",["ix","cx","fbt","ComposerEntryPointRef","ComposerXVideoUploadDialogController","ContextualDialogArrow","formatDurationSeconds","FileInput.react","Image.react","LeftRight.react","LineClamp.react","OptimisticVideoProgressBar.react","PagesCoverTrailerState","ProgressBar.react","PopoverMenu.react","ShowCreationFlowStep","ShowsCreationLoggerUtils","React","ReactXUIMenu","VideoComponent","VideoComponentShowmarkOverlay.react","VideoPlayerStates","XUIOverlayButton.react","fbglyph","joinClasses","DateConsts"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("ReactXUIMenu").Item,n=c("DateConsts").MS_PER_SEC;k=babelHelpers.inherits(o,c("React").Component);l=k&&k.prototype;function o(p){__p&&__p();l.constructor.call(this,p);this.$VideoComponentShowsTrailerOverlay4=function(){c("ShowsCreationLoggerUtils").log(c("ShowCreationFlowStep").SHOW_TRAILER_UPLOAD_NEW_CLICKED,this.props.pageID)}.bind(this);this.$VideoComponentShowsTrailerOverlay5=function(){c("ShowsCreationLoggerUtils").log(c("ShowCreationFlowStep").SHOW_TRAILER_UPLOAD_NEW_FILE_SELECTED,this.props.pageID);var q=this.refs.fileInput;if(!q)return;var r=q.getFileInput();c("ComposerXVideoUploadDialogController").showDialog({targetID:this.props.pageID,fileInput:r,composerEntryPointRef:c("ComposerEntryPointRef").PAGE_TRAILER})}.bind(this);this.state={vpc:null}}o.prototype.enable=function(p){this.setState({vpc:p})};o.prototype.disable=function(){};o.prototype.$VideoComponentShowsTrailerOverlay1=function(){var p=this.props.data.showsData,q=p.showmarkURL,r=p.showmarkUploadPreviewURL,s=p.title,t=p.profilePic;if(!q||!r)return null;return c("React").createElement(c("VideoComponentShowmarkOverlay.react"),{showmarkURL:q.toString(),showmarkUploadPreviewURL:r.toString(),pageID:this.props.pageID,pageName:s,pageProfilePic:t,isAdmin:this.props.isAdmin})};o.prototype.$VideoComponentShowsTrailerOverlay2=function(){var p=this.props.data.viewerCoverTrailerState;switch(p){case c("PagesCoverTrailerState").RESUME_EPISODE:return j._("Continue Watching");case c("PagesCoverTrailerState").LATEST_EPISODE:return j._("Latest Episode");case c("PagesCoverTrailerState").WATCH_TRAILER:return j._("Trailer")}return null};o.prototype.$VideoComponentShowsTrailerOverlay3=function(){var p=this.props.data,q=p.showsVideoData,r=p.viewerCoverTrailerState,s=r===c("PagesCoverTrailerState").WATCH_TRAILER,t=q?q.title:null;return c("React").createElement("div",{className:"_39rm"},this.$VideoComponentShowsTrailerOverlay1(),s?null:[c("React").createElement("div",{className:"_39ro",key:"title"},c("React").createElement(c("LineClamp.react"),{lines:2},t)),c("React").createElement("div",{className:"_39rn",key:"header"},this.$VideoComponentShowsTrailerOverlay2())])};o.prototype.$VideoComponentShowsTrailerOverlay6=function(){if(!this.props.isAdmin)return null;var p=c("React").createElement(c("ReactXUIMenu"),null,c("React").createElement(m,{renderas:"label"},c("React").createElement(c("FileInput.react"),{accept:"video/mp4, video/quicktime, video/*",ref:"fileInput",onClick:this.$VideoComponentShowsTrailerOverlay4,onChange:this.$VideoComponentShowsTrailerOverlay5},c("React").createElement("a",{style:{color:"inherit",textDecoration:"none"}},j._("Upload New Video")))));return c("React").createElement("div",{className:"_20kk"},c("React").createElement(c("PopoverMenu.react"),{layerBehaviors:[c("ContextualDialogArrow")],menu:p,position:"below"},c("React").createElement(c("XUIOverlayButton.react"),{className:"_20kl",image:c("React").createElement(c("Image.react"),{src:h("125727")}),label:j._("Change Trailer"),href:"#"})))};o.prototype.$VideoComponentShowsTrailerOverlay7=function(p){var q=c("React").createElement(c("Image.react"),{className:"_39rl",src:h("125848")});return c("React").createElement("div",{className:"_39rs"},q,c("React").createElement("span",{className:"_39rt"},c("formatDurationSeconds")(p/n)))};o.prototype.$VideoComponentShowsTrailerOverlay8=function(){var p=this.props.data,q=p.showsVideoData,r=p.viewerCoverTrailerState,s=q?q.duration:100,t=q?q.startTimestamp:40;return r===c("PagesCoverTrailerState").RESUME_EPISODE&&s&&t?c("React").createElement("div",{className:"_tn4"},c("React").createElement(c("ProgressBar.react"),{className:"_df_",max:s,min:0,value:t})):null};o.prototype.render=function(){var p=this.state.vpc&&this.state.vpc.getState()===c("VideoPlayerStates").PLAYING,q=this.props.isTrailer&&(!this.state.vpc||this.state.vpc.getState()===c("VideoPlayerStates").READY);return c("React").createElement("div",{className:c("joinClasses")("_39s3"+(!this.props.isTrailer&&p?" _s0s":"")+(q?" _31ye":""),this.props.className)},c("React").createElement("div",{className:"_39s4"}),c("React").createElement("div",{className:"_1fth"}),this.props.uploadedVideoData?c("React").createElement("div",{className:"_20km"},c("React").createElement(c("OptimisticVideoProgressBar.react"),{videoID:this.props.uploadedVideoData.videoID,videoAssetID:this.props.uploadedVideoData.videoAssetID,width:this.props.width,onReadyEvent:"pageTrailerVideoEncode/complete"})):null,c("React").createElement("div",{className:this.props.uploadedVideoData!=null?"hidden_elem":""},c("React").createElement(c("LeftRight.react"),{className:"_20kn _1fti"},c("React").createElement("div",{className:"_39s5"},this.$VideoComponentShowsTrailerOverlay3()),this.$VideoComponentShowsTrailerOverlay6())),this.$VideoComponentShowsTrailerOverlay8())};f.exports=c("VideoComponent").createContainer(o,{observedVpcEvents:["stateChange"]})}),null);
__d("VideoComponentShowsVideoLink.react",["cx","fbt","React","VideoComponent","VideoLink.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k;j=babelHelpers.inherits(l,c("React").Component);k=j&&j.prototype;l.prototype.enable=function(m){};l.prototype.disable=function(){};l.prototype.render=function(){var m=i._("Play episode");return c("React").createElement(c("VideoLink.react"),babelHelpers["extends"]({onClick:this.props.onClick,useTahoe:true},this.props.data),c("React").createElement("div",{className:"_1hvs"},c("React").createElement("i",{className:"_3htz _1jto"+(!this.props.hideButton?" _bsl":"")},c("React").createElement("input",{"aria-label":m,type:"button",className:"_yak"}))))};function l(){j.apply(this,arguments)}f.exports=c("VideoComponent").createContainer(l)}),null);
__d("VideoComponentShowsViewers.react",["cx","fbt","FacepileRounded.react","intlSummarizeNumber","React","VideoComponent","VideoPlayerStates"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=30;j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;function m(n){k.constructor.call(this,n);this.state={vpc:null}}m.prototype.enable=function(n){this.setState({vpc:n})};m.prototype.disable=function(){};m.prototype.$VideoComponentShowsViewers1=function(n){var o=n.map(function(p){return{image_src:"https://graph.facebook.com/"+p+"/picture?height="+l*2+"&width="+l*2,name:""}});return c("React").createElement(c("FacepileRounded.react"),{direction:"descending",className:"_1kox",imageSize:l,profiles:o})};m.prototype.render=function(){if(!this.props.data)return null;var n=this.props.data,o=n.friendList,p=n.friendCount,q=n.followerCount,r=this.state.vpc&&this.state.vpc.getState()===c("VideoPlayerStates").PLAYING,s=o==null||o.length===0?null:this.$VideoComponentShowsViewers1(o),t=p===0?c("React").createElement("span",{className:"_1koz"},i._({"*":"{fan_count} followers","_1":"1 follower"},[i.plural(q,"fan_count",c("intlSummarizeNumber")(q))])):c("React").createElement("span",{className:"_1koz"},i._({"*":{"*":"{fan_count} followers including {friend_count} friends","_1":"{fan_count} followers including 1 friend"},"_1":{"*":"1 follower including {friend_count} friends","_1":"1 follower including 1 friend"}},[i.plural(q,"fan_count",c("intlSummarizeNumber")(q)),i.plural(p,"friend_count",c("intlSummarizeNumber")(p))]));return c("React").createElement("div",{className:"_1ko-"+(this.props.hideOnPlay?" _s0r":"")+(this.props.hideOnPlay&&r?" _s0s":"")},s,t)};f.exports=c("VideoComponent").createContainer(m,{observedVpcEvents:["stateChange"]})}),null);
__d("VideoShowsAdminAddTrailer.react",["ix","cx","fbt","ComposerEntryPointRef","ComposerXVideoUploadDialogController","FileInput.react","Image.react","OptimisticVideoProgressBar.react","React","AbstractButton.react","Text.react","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l;k=babelHelpers.inherits(m,c("React").Component);l=k&&k.prototype;function m(n){l.constructor.call(this,n);this.$VideoShowsAdminAddTrailer1=function(){var o=this.refs.fileInput;if(!o)return;var p=o.getFileInput();c("ComposerXVideoUploadDialogController").showDialog({targetID:this.props.pageID,fileInput:p,composerEntryPointRef:c("ComposerEntryPointRef").PAGE_TRAILER})}.bind(this)}m.prototype.render=function(){if(!this.props.isAdmin)return null;return c("React").createElement("div",{style:{width:this.props.width,height:this.props.height},className:"_1ew_ _5-9f"},c("React").createElement("div",{className:"_5-9g"},c("React").createElement("div",{className:"_4xv5"},c("React").createElement(c("Image.react"),{className:"_4xv6",src:h("122642")})),c("React").createElement(c("Text.react"),{className:"_5-9h",style:{fontSize:16,fontWeight:"600",color:"white"}},j._("Introduce Your Show With a Trailer")),c("React").createElement(c("Text.react"),{className:"_40em"},j._("Your trailer is a 16:9 video used to promote your show across Facebook. It should be less than 2 minutes and 30 seconds long.")),c("React").createElement(c("Text.react"),{className:"_40em _3-8w"},j._("Your trailer and most recent episodes will play in this space.")),this.props.uploadedVideoData?null:c("React").createElement(c("FileInput.react"),{accept:"video/mp4, video/quicktime, video/*",ref:"fileInput",onChange:this.$VideoShowsAdminAddTrailer1},c("React").createElement(c("AbstractButton.react"),{className:"_5-9j",label:j._("Add Trailer"),href:"#"})),this.props.uploadedVideoData?c("React").createElement(c("OptimisticVideoProgressBar.react"),{videoID:this.props.uploadedVideoData.videoID,videoAssetID:this.props.uploadedVideoData.videoAssetID,width:this.props.width,onReadyEvent:"pageTrailerVideoEncode/complete"}):null))};f.exports=m}),null);
__d("VideoShowsTrailer.react",["cx","Arbiter","AsyncRequest","ComposerEntryPointRef","Map","OnVisible.react","PagesCoverTrailerState","PagesEventObserver","PagesEventType","React","ShowCreationFlowStep","ShowsCreationLoggerUtils","VideoComponentEmbeddedControls.react","VideoComponentShowsVideoLink.react","VideoComponentShowsViewers.react","VideoComponentShowsTrailerOverlay.react","VideoComponentWithLoopingPlayback.react","VideoComponentCover.react","VideoDataContainer.react","VideoPlayer.react","VideoPlayerOrigins","VideoPlayerReason","VideoShowsAdminAddTrailer.react","XPagesCoverReloadController","DateConsts","idx"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("DateConsts").MS_PER_SEC,l=-100;i=babelHelpers.inherits(m,c("React").Component);j=i&&i.prototype;function m(n){__p&&__p();j.constructor.call(this,n);this.$VideoShowsTrailer1=null;this.$VideoShowsTrailer2=null;this.$VideoShowsTrailer3=null;this.$VideoShowsTrailer4=false;this.$VideoShowsTrailer6=function(){var o=this.refs.player;if(o&&o.vpc.isState("playing")){this.$VideoShowsTrailer4=true;o.vpc.pause(c("VideoPlayerReason").PAGE_VISIBILITY)}}.bind(this);this.$VideoShowsTrailer7=function(){if(!this.$VideoShowsTrailer4)return;this.$VideoShowsTrailer4=false;var o=this.refs.player;o.vpc.play(c("VideoPlayerReason").PAGE_VISIBILITY)}.bind(this);this.$VideoShowsTrailer8=function(){this.$VideoShowsTrailer5("COVER_TRAILER_CLICK")}.bind(this);this.$VideoShowsTrailer9=function(){return c("VideoDataContainer.react").renderSpinner(this.props.renderedWidth,this.props.renderedHeight)}.bind(this);this.state={uploadedVideoData:null}}m.prototype.componentDidMount=function(){__p&&__p();this.$VideoShowsTrailer5("COVER_TRAILER_IMPRESSION");this.$VideoShowsTrailer1=c("Arbiter").subscribe("videoUpload/complete",function(n,o){var p=c("ComposerEntryPointRef").PAGE_TRAILER+"_"+this.props.pageID;if(o.originalComposerID==p){c("ShowsCreationLoggerUtils").log(c("ShowCreationFlowStep").SHOW_TRAILER_UPLOADED,this.props.pageID,new(c("Map"))([["video_id",o.videoID]]));this.setState({uploadedVideoData:o})}}.bind(this));this.$VideoShowsTrailer2=c("Arbiter").subscribe("pageTrailerVideoEncode/complete",function(n,o){c("ShowsCreationLoggerUtils").log(c("ShowCreationFlowStep").SHOW_TRAILER_ENCODE_SUCCESS,this.props.pageID,new(c("Map"))([["video_id",o.videoID]]));new(c("AsyncRequest"))().setURI(c("XPagesCoverReloadController").getURIBuilder().setFBID("page_id",this.props.pageID).getURI()).setHandler(function(p){this.setState({uploadedVideoData:null})}.bind(this)).send()}.bind(this));this.$VideoShowsTrailer3=c("Arbiter").subscribe("videoUpload/cancel",function(n,o){var p=c("ComposerEntryPointRef").PAGE_TRAILER+"_"+this.props.pageID;if(o.composerID==p)c("ShowsCreationLoggerUtils").log(c("ShowCreationFlowStep").SHOW_TRAILER_UPLOAD_CANCELLED,this.props.pageID)}.bind(this))};m.prototype.componentWillUnmount=function(){if(this.$VideoShowsTrailer1)c("Arbiter").unsubscribe(this.$VideoShowsTrailer1);if(this.$VideoShowsTrailer2)c("Arbiter").unsubscribe(this.$VideoShowsTrailer2);if(this.$VideoShowsTrailer3)c("Arbiter").unsubscribe(this.$VideoShowsTrailer3)};m.prototype.$VideoShowsTrailer5=function(n){var o,p,q=this.props.data;if(!q)return;var r=(o=q)!=null?(o=o.showsVideoData)!=null?o.videoID:o:o,s=(p=q)!=null?(p=p.showsVideoData)!=null?p.startTimestamp:p:p;c("PagesEventObserver").notify(c("PagesEventType")[n],this.props.pageID,{videoID:r,startTimestamp:s,viewerCoverTrailerState:q.viewerCoverTrailerState})};m.prototype.$VideoShowsTrailer10=function(){return this.props.data!=null&&this.props.data.viewerCoverTrailerState===c("PagesCoverTrailerState").WATCH_TRAILER};m.prototype.$VideoShowsTrailer11=function(){return this.$VideoShowsTrailer10()?c("React").createElement(c("VideoComponentEmbeddedControls.react"),{hidePlaybackControl:true,hideRemainingTime:true,showFullscreenButton:false,showSettingsButton:false}):null};m.prototype.render=function(){var n=this.props.data;if(!n)return null;var o=n.showsVideoData,p=n.videoLinkData,q=n.isAdmin;if(!o||!p)return c("React").createElement(c("VideoShowsAdminAddTrailer.react"),{isAdmin:q,uploadedVideoData:this.state.uploadedVideoData,width:this.props.renderedWidth,height:this.props.renderedHeight,pageID:this.props.pageID});var r=o.startTimestamp?o.startTimestamp/k:0;return c("React").createElement(c("OnVisible.react"),{className:"_28pj",buffer:l,onHidden:this.$VideoShowsTrailer6,onVisible:this.$VideoShowsTrailer7},c("React").createElement(c("VideoDataContainer.react"),{key:o.videoID,videoID:o.videoID,renderLoading:this.$VideoShowsTrailer9},c("React").createElement(c("VideoPlayer.react"),{allowCrossPageTransition:true,autoplay:this.$VideoShowsTrailer10(),forceHD:true,height:this.props.renderedHeight,offsetType:"vertical",playerOrigin:c("VideoPlayerOrigins").PAGE_TIMELINE,playerSuborigin:"page_header",ref:"player",startMuted:true,startTimestamp:r,videoData:c("VideoDataContainer.react").VIDEO_DATA_PLACEHOLDER,width:this.props.renderedWidth},c("React").createElement(c("VideoComponentCover.react"),{hiddenAfterFinish:true,showWhileBuffering:true}),c("React").createElement(c("VideoComponentShowsTrailerOverlay.react"),{data:n,isAdmin:q,isTrailer:this.$VideoShowsTrailer10(),pageID:this.props.pageID,uploadedVideoData:this.state.uploadedVideoData,width:this.props.renderedWidth}),c("React").createElement(c("VideoComponentShowsViewers.react"),{data:n.showsFollowerData,hideOnPlay:!this.$VideoShowsTrailer10()}),c("React").createElement(c("VideoComponentWithLoopingPlayback.react"),{forceLooping:true}),c("React").createElement(c("VideoComponentShowsVideoLink.react"),{data:n.videoLinkData,hideButton:this.$VideoShowsTrailer10(),onClick:this.$VideoShowsTrailer8}),this.$VideoShowsTrailer11())))};m.defaultProps={renderedHeight:461.25,renderedWidth:820};f.exports=m}),null);
__d("PagesCurrentCoverComponent.react",["cx","PageOnTourOverlay.react","PagesCoverLoadingScreen.react","PagesCoverPhoto.react","PagesCoverSlideshow.react","PagesCoverType","PagesCoverVideoPlayer.react","PagesLiveCoverVideo.react","React","VideoShowsTrailer.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();function i(j){__p&&__p();var k=null,l=null;switch(j.currentCoverType){case c("PagesCoverType").LOADING:k=c("React").createElement(c("PagesCoverLoadingScreen.react"),null);break;case c("PagesCoverType").COVER_LIVE_VIDEO:var m=j.coverData.cover_live_video,n=m.videoID,o=m.renderedHeight;if(n){k=c("React").createElement(c("PagesLiveCoverVideo.react"),{renderedHeight:o,videoID:n});l="_3wu6"}break;case c("PagesCoverType").COVER_TRAILER:k=c("React").createElement(c("VideoShowsTrailer.react"),{data:j.coverData.cover_trailer,pageID:j.pageID});l="_3wu6";break;case c("PagesCoverType").COVER_VIDEO:k=c("React").createElement(c("PagesCoverVideoPlayer.react"),j.coverData.cover_video);l="_3wu6";break;case c("PagesCoverType").COVER_SLIDESHOW:k=c("React").createElement(c("PagesCoverSlideshow.react"),babelHelpers["extends"]({pageID:j.pageID},j.coverData.cover_slideshow));break;case c("PagesCoverType").COVER_PHOTO:default:k=c("React").createElement(c("PagesCoverPhoto.react"),j.coverData.cover_photo)}return c("React").createElement("div",null,k,c("React").createElement(c("PageOnTourOverlay.react"),{className:l}))}f.exports=i}),null);
__d("PagesCoverVideoPreviewActionBar.react",["cx","React","XUIButton.react"],(function a(b,c,d,e,f,g,h){"use strict";var i=function i(j){return c("React").createElement("div",{className:"_2roy"},!j.leftElement?null:c("React").createElement("div",{className:"_1iaz"},j.leftElement),c("React").createElement("div",{className:"_1ia-"},c("React").createElement("span",{className:"_1ia_"},c("React").createElement(c("XUIButton.react"),{className:"_3-90",label:j.cancelButtonLabel,onClick:j.onCancelClick}),c("React").createElement(c("XUIButton.react"),{label:j.confirmButtonLabel,onClick:j.onConfirmClick,use:"confirm"}))))};f.exports=i}),null);
__d("PagesCoverVideoRepositionIndicator.react",["ix","cx","fbt","Image.react","React","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){"use strict";var k=function k(l){if(!l.shown)return null;return c("React").createElement("div",{className:"_1ge3"},c("React").createElement("div",{className:"_1geb"},c("React").createElement(c("Image.react"),{className:"_4l6j",src:h("114322")}),c("React").createElement("span",{className:"_4l6j"},j._("Drag to Reposition"))))};f.exports=k}),null);
__d("PagesCoverVideoPreview.react",["ix","cx","fbt","invariant","CenteredContainer.react","CoverVideoOffsetType","CoverVideoStatus","CoverVideoUtil","Image.react","PagesCoverVideoActionCreator","PagesCoverVideoPreviewActionBar.react","PagesCoverVideoRepositionIndicator.react","PagesCoverVideoConstant","React","XUISpinner.react","fbglyph"],(function a(b,c,d,e,f,g,h,i,j,k){"use strict";__p&&__p();var l,m,n=-1;l=babelHelpers.inherits(o,c("React").Component);m=l&&l.prototype;function o(p){__p&&__p();m.constructor.call(this,p);this.$PagesCoverVideoPreview7=function(q){if(this.state.offsetType===c("CoverVideoOffsetType").HORIZONTAL)this.$PagesCoverVideoPreview4=q.screenX;else if(this.state.offsetType===c("CoverVideoOffsetType").VERTICAL)this.$PagesCoverVideoPreview4=q.screenY;else k(0);this.$PagesCoverVideoPreview2=true}.bind(this);this.$PagesCoverVideoPreview8=function(q){__p&&__p();if(!this.$PagesCoverVideoPreview2)return;this.$PagesCoverVideoPreview4!==n||k(0);var r=0;if(this.state.offsetType===c("CoverVideoOffsetType").HORIZONTAL)r=q.screenX-this.$PagesCoverVideoPreview4;else if(this.state.offsetType===c("CoverVideoOffsetType").VERTICAL)r=q.screenY-this.$PagesCoverVideoPreview4;else k(0);var s=this.$PagesCoverVideoPreview1+r;if(s>0||s<this.state.minOffsetValue)return;this.$PagesCoverVideoPreview5=true;this.setState({offsetValue:s})}.bind(this);this.$PagesCoverVideoPreview9=function(q){this.$PagesCoverVideoPreview2=false;this.$PagesCoverVideoPreview4=n;this.$PagesCoverVideoPreview1=this.state.offsetValue}.bind(this);this.$PagesCoverVideoPreview10=function(q){this.$PagesCoverVideoPreview2=false;this.$PagesCoverVideoPreview4=-1;this.$PagesCoverVideoPreview1=this.state.offsetValue}.bind(this);this.$PagesCoverVideoPreview11=function(){var q=this.props,r=q.futureVideoID,s=q.pageID,t=q.isFromReposition;if(t&&s)c("PagesCoverVideoActionCreator").reloadCover(s);else if(r&&s)c("PagesCoverVideoActionCreator").cancelNewUploadingWithConfirmationDialog(s,r)}.bind(this);this.$PagesCoverVideoPreview12=function(){var q=this.props,r=q.futureVideoID,s=q.pageID;if(r&&s){var t=this.props,u=t.containerWidth,v=t.containerHeight;u&&v||k(0);c("PagesCoverVideoActionCreator").chooseThumbnail(r,s,this.state.offsetType,this.state.offsetValue,v,u)}else if(r&&s)c("PagesCoverVideoActionCreator").confirmPublishingVideo(s,r,this.state.offsetType,this.state.offsetValue,this.props.shouldCoverVideoLoop)}.bind(this);this.state={minOffsetValue:0,offsetType:c("CoverVideoOffsetType").VERTICAL,offsetValue:0,videoData:null,videoNewSize:0};this.$PagesCoverVideoPreview1=0;this.$PagesCoverVideoPreview2=false;this.$PagesCoverVideoPreview4=n;this.$PagesCoverVideoPreview5=false}o.prototype.componentDidMount=function(){__p&&__p();if(!this.props.futureVideoID)return;this.$PagesCoverVideoPreview3=true;c("CoverVideoUtil").fetchCoverVideoData(this.props.futureVideoID).then(function(p){if(!this.$PagesCoverVideoPreview3)return;var q=p.offsetValue,r=p.videoData;r||k(0);var s=this.$PagesCoverVideoPreview6(r),t=s.minOffsetValue,u=s.offsetType,v=s.videoNewSize;this.setState({minOffsetValue:t,offsetType:u,offsetValue:q||0,videoData:r,videoNewSize:v})}.bind(this)).done()};o.prototype.componentWillUnmount=function(){this.$PagesCoverVideoPreview3=false};o.prototype.$PagesCoverVideoPreview6=function(p){__p&&__p();var q=this.props,r=q.containerWidth,s=q.containerHeight;r&&s||k(0);var t=r/s,u=p.getAspectRatio(),v=null,w=null,x=null;if(u>t){v=c("CoverVideoOffsetType").HORIZONTAL;w=s;x=r-Math.floor(p.getOriginalWidth()*(s/p.getOriginalHeight()))}else{v=c("CoverVideoOffsetType").VERTICAL;w=r;x=s-Math.floor(p.getOriginalHeight()*(r/p.getOriginalWidth()))}return{minOffsetValue:x,offsetType:v,videoNewSize:w}};o.prototype.$PagesCoverVideoPreview13=function(){if(this.props.status!==c("CoverVideoStatus").PREVIEWING)return null;var p=j._("Cancel"),q=j._("Next"),r=!this.props.isParentLocationPage?null:j._("Your video will appear as the cover on this Page and on any other locations associated with this Page."),s=!this.props.isFromReposition?c("React").createElement("div",null,c("React").createElement("span",{className:"_2roz"},c("React").createElement(c("Image.react"),{src:h("115129")})),c("React").createElement("span",{className:"_2ro-"},c("PagesCoverVideoConstant").PREVIEW_TIP_FOR_CREATION,r)):c("React").createElement("div",null,c("React").createElement("span",{className:"_2roz"},c("React").createElement(c("Image.react"),{src:h("115129")})),c("React").createElement("span",{className:"_2ro-"},c("PagesCoverVideoConstant").PREVIEW_TIP_FOR_EDITING,r));return c("React").createElement(c("PagesCoverVideoPreviewActionBar.react"),{cancelButtonLabel:p,confirmButtonLabel:q,onCancelClick:this.$PagesCoverVideoPreview11,onConfirmClick:this.$PagesCoverVideoPreview12,leftElement:s})};o.prototype.$PagesCoverVideoPreview14=function(){return c("React").createElement(c("CenteredContainer.react"),{className:"_4fkc",fullHeight:true,horizontal:true,vertical:true},c("React").createElement(c("XUISpinner.react"),{background:"light",size:"large"}))};o.prototype.render=function(){__p&&__p();if(!this.state.videoData)return this.$PagesCoverVideoPreview14();var p=this.props,q=p.containerWidth,r=p.containerHeight;q&&r||k(0);this.props.status===c("CoverVideoStatus").PREVIEWING||this.props.status===c("CoverVideoStatus").PUBLISHING||k(0);var s=this.state.videoData.getRawData().hd_src;if(!s)return null;var t=this.state.offsetType===c("CoverVideoOffsetType").HORIZONTAL?this.state.videoNewSize:null,u=this.state.offsetType===c("CoverVideoOffsetType").VERTICAL?this.state.videoNewSize:null,v=this.state.offsetType===c("CoverVideoOffsetType").VERTICAL?this.state.offsetValue:0,w=this.state.offsetType===c("CoverVideoOffsetType").HORIZONTAL?this.state.offsetValue:0;return c("React").createElement("div",{style:{cursor:"move",height:r,overflow:"hidden",position:"relative",width:q}},c("React").createElement("video",{autoPlay:true,height:t,loop:this.props.shouldCoverVideoLoop,onMouseDown:this.$PagesCoverVideoPreview7,onMouseLeave:this.$PagesCoverVideoPreview10,onMouseMove:this.$PagesCoverVideoPreview8,onMouseUp:this.$PagesCoverVideoPreview9,src:s,style:{position:"absolute",top:v,left:w},width:u}),c("React").createElement(c("PagesCoverVideoRepositionIndicator.react"),{shown:!this.$PagesCoverVideoPreview5}),this.$PagesCoverVideoPreview13())};f.exports=o}),null);
__d("PagesCoverVideoProgressOverlay.react",["cx","fbt","invariant","CoverVideoStatus","ProgressBar.react","React"],(function a(b,c,d,e,f,g,h,i,j){__p&&__p();var k=function k(l){if(l.status!==c("CoverVideoStatus").UPLOADING&&l.status!==c("CoverVideoStatus").ENCODING)return null;l.progress===0||l.progress||j(0);var m=null;if(l.status===c("CoverVideoStatus").UPLOADING)m=i._("VIDEO UPLOADING {percentage (0-100) of uploading progress}\u0025",[i.param("percentage (0-100) of uploading progress",l.progress)]);else if(l.status===c("CoverVideoStatus").ENCODING)m=i._("VIDEO ENCODING {percentage (0-100) of encoding progress}\u0025",[i.param("percentage (0-100) of encoding progress",l.progress)]);return c("React").createElement("div",{className:"_2grf"},c("React").createElement("div",{className:"_2grg"},c("React").createElement(c("ProgressBar.react"),{isRounded:true,size:"small",value:l.progress}),c("React").createElement("div",{className:"_2grh"},m)))};f.exports=k}),null);
__d("PagesCoverVideoThumbnailPicker.react",["cx","fbt","ix","CenteredContainer.react","CoverVideoOffsetType","CoverVideoUtil","FBToggleSwitch.react","Image.react","PagesCoverVideoActionCreator","PagesCoverVideoPreviewActionBar.react","React","XUICarouselAnimator","XUICarousel.react","XUICarouselArrow.react","XUICarouselItem.react","XUISpinner.react","emptyFunction","nullthrows"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l;k=babelHelpers.inherits(m,c("React").Component);l=k&&k.prototype;function m(n){__p&&__p();l.constructor.call(this,n);this.$PagesCoverVideoThumbnailPicker4=function(){var o=this.state.thumbnails.length;if(o===0)return;var p=(this.state.currentThumbnailIndex-1+o)%o;this.setState({currentThumbnailIndex:p});this.$PagesCoverVideoThumbnailPicker1&&this.$PagesCoverVideoThumbnailPicker1.prev()}.bind(this);this.$PagesCoverVideoThumbnailPicker5=function(){var o=this.state.thumbnails.length;if(o===0)return;var p=(this.state.currentThumbnailIndex+1+o)%o;this.setState({currentThumbnailIndex:p});this.$PagesCoverVideoThumbnailPicker1&&this.$PagesCoverVideoThumbnailPicker1.next()}.bind(this);this.$PagesCoverVideoThumbnailPicker8=function(){var o=this.props,p=o.futureVideoID,q=o.pageID;c("PagesCoverVideoActionCreator").editCoverVideo(c("nullthrows")(q),c("nullthrows")(p))}.bind(this);this.$PagesCoverVideoThumbnailPicker9=function(){var o=this.props,p=o.futureVideoID,q=o.pageID,r=o.offsetType,s=o.offsetValue,t=this.state,u=t.thumbnails,v=t.currentThumbnailIndex,w=t.shouldCoverVideoLoop,x=u[v].id;c("PagesCoverVideoActionCreator").confirmPublishingVideo(c("nullthrows")(q),c("nullthrows")(p),c("nullthrows")(r),c("nullthrows")(s),c("nullthrows")(w),x)}.bind(this);this.$PagesCoverVideoThumbnailPicker10=function(){var o=this.state.shouldCoverVideoLoop;this.setState({shouldCoverVideoLoop:!o})}.bind(this);this.$PagesCoverVideoThumbnailPicker2()}m.prototype.$PagesCoverVideoThumbnailPicker2=function(){this.state={thumbnails:[],currentThumbnailIndex:0,animator:new(c("XUICarouselAnimator"))({type:"horizontal"}),shouldCoverVideoLoop:this.props.shouldCoverVideoLoop}};m.prototype.componentWillMount=function(){c("CoverVideoUtil").fetchCoverVideoData(c("nullthrows")(this.props.futureVideoID),true).then(function(n){return this.setState({thumbnails:n.thumbnails})}.bind(this)).done()};m.prototype.$PagesCoverVideoThumbnailPicker3=function(){return c("React").createElement(c("CenteredContainer.react"),{className:"_yd2",fullHeight:true,horizontal:true,vertical:true},c("React").createElement(c("XUISpinner.react"),{background:"light",size:"large"}))};m.prototype.$PagesCoverVideoThumbnailPicker6=function(){if(this.state.thumbnails.length===0)return null;return c("React").createElement("div",{className:"_4hmf"},i._({"*":"{the index of the current thumbnail} \/ {the total number of thumbnails} Thumbnails","_1":"{the index of the current thumbnail} \/ {the total number of thumbnails} Thumbnail"},[i.param("the index of the current thumbnail",this.state.currentThumbnailIndex+1),i.param("the total number of thumbnails",this.state.thumbnails.length),i.plural(this.state.thumbnails.length)]))};m.prototype.$PagesCoverVideoThumbnailPicker7=function(){__p&&__p();if(this.state.thumbnails.length===0)return null;var n=null,o=null,p=0,q=0;if(this.props.offsetType===c("CoverVideoOffsetType").VERTICAL){o=this.props.containerWidth;p=this.props.offsetValue}else{n=this.props.containerHeight;q=this.props.offsetValue}var r=this.state.thumbnails.map(function(u){return c("React").createElement(c("XUICarouselItem.react"),{key:u.id},c("React").createElement("div",{style:{height:this.props.containerHeight,position:"relative",textAlign:"center",width:this.props.containerWidth}},c("React").createElement(c("Image.react"),{style:{left:q,position:"absolute",top:p},height:n,src:u.url,width:o})))}.bind(this)),s=c("React").createElement(c("XUICarouselArrow.react"),{onClick:this.$PagesCoverVideoThumbnailPicker4},c("React").createElement(c("Image.react"),{alt:i._("Prev"),src:j("101565")})),t=c("React").createElement(c("XUICarouselArrow.react"),{onClick:this.$PagesCoverVideoThumbnailPicker5},c("React").createElement(c("Image.react"),{alt:i._("Next"),src:j("101566")}));return c("React").createElement(c("XUICarousel.react"),{animator:this.state.animator,arrows:[s,t],initialAutoplay:false,initialIndex:0,onItemClick:c("emptyFunction"),ref:function(u){return this.$PagesCoverVideoThumbnailPicker1=u}.bind(this),resizeViewport:"fixed",style:{height:this.props.containerHeight,width:this.props.containerWidth,position:"absolute"},wrapAround:true},r)};m.prototype.$PagesCoverVideoThumbnailPicker11=function(){var n=i._("Back"),o=i._("Publish"),p=c("React").createElement("div",{className:"_d-g"},c("React").createElement("span",{className:"_d-h"},c("React").createElement(c("FBToggleSwitch.react"),{checked:this.state.shouldCoverVideoLoop,onToggle:this.$PagesCoverVideoThumbnailPicker10})),c("React").createElement("span",{className:"_d-i"},i._("Automatically replay video in a loop")));return c("React").createElement(c("PagesCoverVideoPreviewActionBar.react"),{cancelButtonLabel:n,confirmButtonLabel:o,onCancelClick:this.$PagesCoverVideoThumbnailPicker8,onConfirmClick:this.$PagesCoverVideoThumbnailPicker9,leftElement:p})};m.prototype.render=function(){if(this.state.thumbnails.length===0)return this.$PagesCoverVideoThumbnailPicker3();return c("React").createElement("div",{className:"_5_lp",style:{height:this.props.containerHeight,width:this.props.containerWidth}},this.$PagesCoverVideoThumbnailPicker6(),this.$PagesCoverVideoThumbnailPicker7(),this.$PagesCoverVideoThumbnailPicker11())};f.exports=m}),null);
__d("PagesCoverVideoCreator.react",["cx","PagesCoverVideoProgressOverlay.react","PagesCoverVideoPreview.react","PagesCoverVideoThumbnailPicker.react","CoverVideoStatus","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=function i(j){__p&&__p();var k=null;switch(j.status){case c("CoverVideoStatus").UPLOADING:case c("CoverVideoStatus").ENCODING:k=c("React").createElement(c("PagesCoverVideoProgressOverlay.react"),j);break;case c("CoverVideoStatus").PREVIEWING:k=c("React").createElement(c("PagesCoverVideoPreview.react"),j);break;case c("CoverVideoStatus").CHOOSING_THUMBNAIL:k=c("React").createElement(c("PagesCoverVideoThumbnailPicker.react"),j);break;default:return null}var l=j.containerWidth,m=j.containerHeight;if(l!=null&&m!=null)return c("React").createElement("div",{style:{height:m,position:"relative",width:l}},k);return c("React").createElement("div",{className:"_5-qd"},k)};f.exports=i}),null);
__d("PagesFutureCoverComponent.react",["cx","PagesCoverPhoto.react","PagesCoverSlideshow.react","PagesCoverType","PagesCoverVideoCreator.react","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();function i(j){__p&&__p();if(j.coreData.currentCoverType===c("PagesCoverType").LOADING||!j.coreData.futureCoverType)return null;var k=null;switch(j.coreData.futureCoverType){case c("PagesCoverType").COVER_PHOTO:k=c("React").createElement(c("PagesCoverPhoto.react"),j.coverData.cover_photo);break;case c("PagesCoverType").COVER_VIDEO:k=c("React").createElement(c("PagesCoverVideoCreator.react"),j.coverData.cover_video);break;case c("PagesCoverType").COVER_SLIDESHOW:var l=j.coverData.cover_slideshow,m=l.currentIndex,n=l.isContentOptimizerOn,o=l.isCoverSlideshowEnabled,p=l.isEditMode,q=l.items,r=l.maxNumberOfPhotosInSlideshow,s=l.nuxTourSteps,t=l.pageID,u=l.shouldShowLoadingScreenOnPickerPlaceholder,v=l.shouldShowNUXTour,w=l.showLoadingScreen,x=l.thumbnailHeight,y=l.thumbnailWidth,z=l.shouldShowMenuNux;k=c("React").createElement(c("PagesCoverSlideshow.react"),{currentIndex:m,hasPendingChanges:true,isContentOptimizerOn:n,isCoverSlideshowEnabled:o,isEditMode:p,items:q,maxNumberOfPhotosInSlideshow:r,nuxTourSteps:s,pageID:t,shouldShowLoadingScreenOnPickerPlaceholder:u,shouldShowMenuNux:z,shouldShowNUXTour:v,showLoadingScreen:w,thumbnailHeight:x,thumbnailWidth:y});break}if(!k)return null;return c("React").createElement("div",{className:"_32bq"},k)}f.exports=i}),null);
__d("PagesLiveCoverVideoStore",["FluxReduceStore","immutable","PagesCoverAction","PagesCoverDispatcher"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j,k,l={videoID:null,canEnable:false,isEnabled:false,renderedWidth:812};h=babelHelpers.inherits(m,c("immutable").Record(l));i=h&&h.prototype;function m(){h.apply(this,arguments)}j=babelHelpers.inherits(n,c("FluxReduceStore"));k=j&&j.prototype;n.prototype.getInitialState=function(){return new m()};n.prototype.reduce=function(o,p){switch(p.type){case c("PagesCoverAction").NEW_COVER_DATA:var q=p.data.coverData.cover_live_video;o=new m(q);return o;case c("PagesCoverAction").LIVE_VIDEO_ENABLE:o=o.set("isEnabled",true);return o;case c("PagesCoverAction").LIVE_VIDEO_DISABLE:o=o.set("isEnabled",false);return o;default:return o}};function n(){j.apply(this,arguments)}f.exports=new n(c("PagesCoverDispatcher"))}),null);
__d("PagesCoverContainer.react",["cx","CenteredContainer.react","FluxContainer","PagesCoverAction","PagesCoverCoreStore","PagesCoverDispatcher","PagesCoverEditMenu.react","PagesCoverPhotoStore","PagesCoverSlideshowStore","PagesCoverTrailerStore","PagesCoverVideoStore","PagesCurrentCoverComponent.react","PagesFutureCoverComponent.react","PagesLiveCoverVideoStore","React","XUISpinner.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;l.getStores=function(){return[c("PagesCoverCoreStore"),c("PagesLiveCoverVideoStore"),c("PagesCoverPhotoStore"),c("PagesCoverSlideshowStore"),c("PagesCoverTrailerStore"),c("PagesCoverVideoStore")]};l.calculateState=function(){return{coreData:c("PagesCoverCoreStore").getState(),coverData:{cover_live_video:c("PagesLiveCoverVideoStore").getState(),cover_photo:c("PagesCoverPhotoStore").getState(),cover_slideshow:c("PagesCoverSlideshowStore").getCurrentState(),cover_trailer:c("PagesCoverTrailerStore").getState(),cover_video:c("PagesCoverVideoStore").getState()}}};l.prototype.componentWillMount=function(){c("PagesCoverDispatcher").explicitlyRegisterStores([c("PagesCoverCoreStore"),c("PagesLiveCoverVideoStore"),c("PagesCoverPhotoStore"),c("PagesCoverVideoStore"),c("PagesCoverTrailerStore"),c("PagesCoverSlideshowStore")])};l.prototype.componentDidMount=function(){c("PagesCoverDispatcher").dispatch({type:c("PagesCoverAction").NEW_COVER_DATA,data:this.props})};l.prototype.render=function(){if(!this.state.coreData.hasCoverSet&&!this.state.coreData.canViewerEditProfile)return null;var m=!this.state.coreData.shouldShowLoadingOverlay?null:c("React").createElement("div",{className:"_b1w"},c("React").createElement(c("CenteredContainer.react"),{fullHeight:true,horizontal:true,vertical:true},c("React").createElement(c("XUISpinner.react"),{background:"light",size:"large"})));return c("React").createElement("div",{className:"_5_yy"},c("React").createElement(c("PagesCurrentCoverComponent.react"),{coverData:this.state.coverData,currentCoverType:this.state.coreData.currentCoverType,pageID:this.props.pageID}),c("React").createElement(c("PagesFutureCoverComponent.react"),{coreData:this.state.coreData,coverData:this.state.coverData,pageID:this.props.pageID}),c("React").createElement(c("PagesCoverEditMenu.react"),babelHelpers["extends"]({pageID:this.props.pageID},this.state)),m)};function l(){i.apply(this,arguments)}l.propTypes={pageID:k.string.isRequired};f.exports=c("FluxContainer").create(l)}),null);
__d("PagesProfilePictureLink.react",["cx","fbt","Link.react","React","VideoData","XPhotoPermalinkController","XVideoPermalinkController"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j=function j(k){var l=k.children,m=k.loading,n=k.pageID,o=k.photoID,p=k.videoData,q=p!==null?new(c("VideoData"))(p).getVideoID():null;if(o===null&&q===null||m)return c("React").Children.only(l);var r=null;if(q!==null)r=c("XVideoPermalinkController").getURIBuilder().setString("vanity",n).setInt("video_id",q).getURI();else r=c("XPhotoPermalinkController").getURIBuilder().setInt("photo_id",o).setString("vanity",n).getURI();return c("React").createElement(c("Link.react"),{"aria-label":i._("Profile picture"),className:"_2dgj",href:r,rel:"theater"},k.children)};f.exports=j}),null);
__d("PagesProfilePicture.react",["cx","invariant","Image.react","PagesCoverType","PagesProfilePictureLink.react","ProfileHeaderSpinner.react","React","VideoData"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k;j=babelHelpers.inherits(l,c("React").Component);k=j&&j.prototype;l.prototype.render=function(){return c("React").createElement("div",{className:"_qa1"},c("React").createElement(c("PagesProfilePictureLink.react"),this.props,this.$PagesProfilePicture1()),c("React").createElement(c("ProfileHeaderSpinner.react"),{shown:this.props.loading}),this.$PagesProfilePicture2())};l.prototype.$PagesProfilePicture1=function(){if(this.props.videoData&&this.props.currentCoverType!==c("PagesCoverType").COVER_VIDEO){var m=new(c("VideoData"))(this.props.videoData);return c("React").createElement("video",{autoPlay:true,className:"_4jhq"+(this.props.loading?" _179t":""),height:this.props.size,loop:true,muted:true,poster:this.props.uri,src:m.getPlayableSrcSD(),width:this.props.size})}return c("React").createElement(c("Image.react"),{className:"_4jhq"+(this.props.loading?" _179t":""),height:this.props.size,src:this.props.uri,width:this.props.size})};l.prototype.$PagesProfilePicture2=function(){if(!this.props.editable||this.props.loading)return null;var m=this.props.modules.PagesProfilePictureEditMenu;m!=null||i(0);return c("React").createElement(m,this.props)};function l(){j.apply(this,arguments)}f.exports=l}),null);
__d("PagesProfilePictureStore",["FluxReduceStore","PagesCoverType","PagesHeaderDispatcher","PagesHeaderPayloadType"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("FluxReduceStore"));i=h&&h.prototype;j.prototype.getInitialState=function(){return{currentCoverType:c("PagesCoverType").COVER_PHOTO,editable:false,loading:false,modules:{PagesProfilePictureEditMenu:null},pageHasPhotos:false,pageID:"0",photoID:null,photoIsSquare:true,size:0,uri:null,videoData:null}};j.prototype.reduce=function(k,l){switch(l.type){case c("PagesHeaderPayloadType").PROFILE_PICTURE_DATA:return babelHelpers["extends"]({},k,l.data)}return k};function j(){h.apply(this,arguments)}f.exports=new j(c("PagesHeaderDispatcher"))}),null);
__d("PagesProfilePictureContainer.react",["FluxContainer","PagesHeaderDispatcher","PagesHeaderPayloadType","PagesProfilePicture.react","PagesProfilePictureStore","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;j.getStores=function(){return[c("PagesProfilePictureStore")]};j.calculateState=function(){return c("PagesProfilePictureStore").getState()};j.prototype.componentWillMount=function(){c("PagesHeaderDispatcher").explicitlyRegisterStore(c("PagesProfilePictureStore"));c("PagesHeaderDispatcher").dispatch({data:this.props,type:c("PagesHeaderPayloadType").PROFILE_PICTURE_DATA})};j.prototype.render=function(){return c("React").createElement(c("PagesProfilePicture.react"),this.state)};function j(){h.apply(this,arguments)}f.exports=c("FluxContainer").create(j)}),null);
__d("PagesUsername.react",["ix","cx","fbt","BootloadedComponent.react","ChatOpenTabEventLogger","FantaTabActions","Image.react","JSResource","Link.react","LoadingDialog.react","MercuryIDs","PageContentTabMessageOwnerDialog","React","TooltipLink.react","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l;k=babelHelpers.inherits(m,c("React").Component);l=k&&k.prototype;function m(n){l.constructor.call(this,n);this.state={showDialog:false}}m.prototype.render=function(){__p&&__p();var n=this.props.username;if(n!=null)return this.props.isMessagingEnabled?c("React").createElement(c("TooltipLink.react"),{className:"_2wmb",href:"#",onClick:this.$PagesUsername1(),position:"below",tooltip:this.$PagesUsername2(n)},c("React").createElement("span",null,c("React").createElement(c("Image.react"),{className:"_3mj1",src:h("123858")}),"@"+n)):c("React").createElement(c("TooltipLink.react"),{className:"_2wmb",href:"#",position:"below",tooltip:this.$PagesUsername2(n)},"@"+n);if(!this.props.editable)return null;var o=null;if(this.state.showDialog)o=c("React").createElement(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("PageUsernameEditDialog.react").__setRef("PagesUsername.react"),bootloadPlaceholder:c("React").createElement(c("LoadingDialog.react"),null),existingUsername:n,pageID:this.props.pageID,pageName:this.props.name,profilePictureSrc:this.props.usernameEditDialogProfilePictureURI,onDialogToggle:function(p){this.setState({showDialog:p})}.bind(this)});return c("React").createElement("div",null,c("React").createElement(c("Link.react"),{className:"_2wmb",onClick:function(){this.setState({showDialog:true})}.bind(this)},j._("Create Page \u0040Username")),o)};m.prototype.$PagesUsername2=function(n){if(this.props.editable&&!this.props.isMessagingEnabled)return j._("People can search for {username of a Page} to find your Page easily. You can change your \u0040username in the Page Info section.",[j.param("username of a Page","@"+n)]);return this.props.isMessagingEnabled&&this.props.editable?j._("Send {username of a Page} a message.",[j.param("username of a Page","@"+n)]):j._("Search for {username of a Page} on Facebook or in Messenger to find this Page easily.",[j.param("username of a Page","@"+n)])};m.prototype.$PagesUsername1=function(){__p&&__p();var n=this.props.isMessagingEnabled&&!this.props.showModal,o=this.props.isMessagingEnabled&&this.props.showModal;if(o)return function(event){c("PageContentTabMessageOwnerDialog").show(this.props.name,this.props.pageID)}.bind(this);else if(n)return function(event){var p=c("MercuryIDs").getThreadIDFromUserID(this.props.pageID);c("FantaTabActions").openTab(p);c("ChatOpenTabEventLogger").logUserClickOpen("page_username",this.props.pageID)}.bind(this);return null};f.exports=m}),null);
__d("XControllerWithPageTokenURIUpdater",[],(function a(b,c,d,e,f,g){var h={updateURI:function i(j){window.history&&window.history.replaceState(window.history.state,null,j)}};f.exports=h}),null);
__d("EntityTitle.react",["cx","csx","AutoScalingContent.react","CSS","DOMContainer.react","DOMQuery","React"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k;j=babelHelpers.inherits(l,c("React").Component);k=j&&j.prototype;function l(m){k.constructor.call(this,m);this.$EntityTitle1=function(n,o){this.setState({noResize:true});return 1}.bind(this);this.state={noResize:false}}l.prototype.render=function(){__p&&__p();var m=this.props.title;if(!this.props.autoScale||this.state.noResize)c("CSS").addClass(m,"_3d2d");if(!this.props.autoScale){c("CSS").addClass(m,"_3d2f");return c("React").createElement(c("DOMContainer.react"),null,m)}var n=c("DOMQuery").scry(m,"._3d2h *");if(n.length>0)c("CSS").addClass(m,"_3d2g");return c("React").createElement(c("AutoScalingContent.react"),{handleMinWidthRatioViolation:this.$EntityTitle1,minWidthRatio:.7},c("React").createElement(c("DOMContainer.react"),null,m))};l.defaultProps={autoScale:true};f.exports=l}),null);
__d("EntityPageLayoutDockingElement",["DockingElement","EntityPageDockingElementController"],(function a(b,c,d,e,f,g){"use strict";var h,i;h=babelHelpers.inherits(j,c("DockingElement"));i=h&&h.prototype;j.prototype.register=function(){c("EntityPageDockingElementController").register(this.__queryDOM.bind(this),this.__updateWithCache.bind(this))};function j(){h.apply(this,arguments)}f.exports=j}),null);
__d("EntityPageRenderer",["ReactDOM","ReactRenderer","XUISubNavigationLoader"],(function a(b,c,d,e,f,g){var h={constructAndRenderComponent:function i(j,k,l,m){c("XUISubNavigationLoader").onLeave(function(){c("ReactDOM").unmountComponentAtNode(l)});return c("ReactRenderer").constructAndRenderComponentAcrossTransitions(j,k,l,m)}};f.exports=h}),null);