48 lines
80 KiB
Plaintext
48 lines
80 KiB
Plaintext
;/*FB_PKG_DELIM*/
|
|
|
|
__d("BUIPrivateDisabledContext",["react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=s.createContext(void 0);l.default=u}),98);
|
|
__d("XBasicFBNuxDismissControllerRouteBuilder",["jsRouteBuilder"],(function(t,n,r,o,a,i,l){var e=r("jsRouteBuilder")("/ajax/megaphone/dismiss_fbnux/",Object.freeze({}),void 0),s=e;l.default=s}),98);
|
|
__d("XBasicFBNuxViewControllerRouteBuilder",["jsRouteBuilder"],(function(t,n,r,o,a,i,l){var e=r("jsRouteBuilder")("/ajax/megaphone/view_fbnux/",Object.freeze({}),void 0),s=e;l.default=s}),98);
|
|
__d("BasicFBNux",["AsyncRequest","XBasicFBNuxDismissControllerRouteBuilder","XBasicFBNuxViewControllerRouteBuilder"],(function(t,n,r,o,a,i,l){function e(e,t){e.subscribe("hide",function(){return u(t)})}function s(e){var t=r("XBasicFBNuxViewControllerRouteBuilder").buildUri({nux_id:e});new(r("AsyncRequest"))().setURI(t).send()}function u(e){var t=r("XBasicFBNuxDismissControllerRouteBuilder").buildUri({nux_id:e});new(r("AsyncRequest"))().setURI(t).send()}l.subscribeHide=e,l.onView=s,l.onDismiss=u}),98);
|
|
__d("ReactBrowserEventEmitter_DO_NOT_USE",["ReactDOM"],(function(t,n,r,o,a,i){"use strict";var e=n("ReactDOM").__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;a.exports=e.ReactBrowserEventEmitter}),null);
|
|
__d("ReactLayerCommon",["invariant","ReactDOM","SubscriptionsHandler","cr:1487782","emptyFunction","react","warning"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=n("react")),u=function(t){t.isPropagationStopped=n("emptyFunction").thatReturnsTrue},c=(function(e){function t(){return e.apply(this,arguments)||this}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.render=function(){return s.jsx("div",{onClick:u,onBlur:u,onDoubleClick:u,onFocus:u,onKeyDown:u,onKeyPress:u,onKeyUp:u,onMouseDown:u,onMouseMove:u,onMouseUp:u,children:this.props.children})},t})(s.Component),d={makeInitialSubscriptions:function(t,r){var e=new(n("SubscriptionsHandler"));return r.onToggle&&(d.layerSubscribe(t,e,"show",function(){return r.onToggle(!0)}),d.layerSubscribe(t,e,"hide",function(){return r.onToggle(!1)})),r.onBlur&&d.layerSubscribe(t,e,"blur",function(e,t){return r.onBlur(t)}),r.onHide&&d.layerSubscribe(t,e,"runhide",function(e,t){return r.includeHideSource?r.onHide(t):r.onHide()}),e},layerSubscribe:function(t,r,o,a){var e=t.subscribe||t.addListener;r.addSubscriptions(e.call(t,o,function(e,t){if(n("cr:1487782")==null)a(e,t);else{var r=n("cr:1487782").isEnabled();r&&a(e,t)}}))},render:function(t,r){var e=n("ReactDOM").createPortal(s.jsx(c,{children:t}),r);return e===void 0&&n("ReactDOM").createPortal._isMockFunction&&(e=null),e},diffBehaviors:function(t,n,r){var e;for(e in t)t[e]&&!n[e]&&r.disableBehavior(t[e]);for(e in n){var o=t[e],a=n[e];if(o&&a){o===a||l(0,120,e);continue}o&&r.disableBehavior(o),a&&r.enableBehavior(a)}}};a.exports=d}),null);
|
|
__d("ReactLayer",["invariant","ExecutionEnvironment","OnUseEffectUnmount.react","ReactLayerCommon","createReactClass_DEPRECATED","emptyFunction","getObjectValues","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=e||(e=n("react")),c={componentDidMount:function(){this.layer||(this.layer=this.createLayer(this._layerContainer)),this.layer||l(0,2397),this.layerSubscriptions||(this.layerSubscriptions=n("ReactLayerCommon").makeInitialSubscriptions(this.layer,this.props)),this._resetBehaviors()},componentDidUpdate:function(t){this.receiveProps(this.props,t)},_onUnmount:function(){this.layerSubscriptions&&(this.layerSubscriptions.release(),this.layerSubscriptions=null),this.layer&&(this.layer.destroy(),this.layer=null)},_createLayerContainer:function(){this._layerContainer==null&&(this._layerContainer=document.createElement("div"))},render:function(){return(s||(s=n("ExecutionEnvironment"))).canUseDOM?(this._createLayerContainer(),u.jsxs(u.Fragment,{children:[u.jsx(n("OnUseEffectUnmount.react"),{callback:this._onUnmount}),n("ReactLayerCommon").render(this.props.children,this._layerContainer)]})):null},enumerateBehaviors:function(t){return t=this.getEffectiveBehaviors(t),n("getObjectValues")(t).filter(n("emptyFunction").thatReturnsArgument)},_resetBehaviors:function(){this._diffBehaviors({},this.props.behaviors)},updateBehaviors:function(t,n){this._diffBehaviors(t,n)},_diffBehaviors:function(t,r){t=this.getEffectiveBehaviors(t),r=this.getEffectiveBehaviors(r),n("ReactLayerCommon").diffBehaviors(t,r,this.layer)},getEffectiveBehaviors:function(t){return this.getDefaultEnabledBehaviors?babelHelpers.extends({},this.getDefaultEnabledBehaviors(),t):t||{}},layerSubscribe:function(t,r){n("ReactLayerCommon").layerSubscribe(this.layer,this.layerSubscriptions,t,r)}},d={createClass:function(t){return n("createReactClass_DEPRECATED")({mixins:[c,t]})}};a.exports=d}),null);
|
|
__d("ContextualLayer.react",["ContextualLayer","ReactBrowserEventEmitter_DO_NOT_USE","ReactDOM_DEPRECATED","ReactLayer","Style","prop-types","react","warning"],(function(t,n,r,o,a,i){var e,l=e||(e=n("react")),s=n("ReactLayer").createClass({propTypes:{contextRef:n("prop-types").func,excludeFromHeroVC:n("prop-types").bool,context:function(t,n,r){if(t.context==null==(t.contextRef==null))return new Error("Exactly one of `context` or `contextRef` must be set on `"+(r+"`."));var e=t[n];if(e!=null){if(typeof e!="object")return new Error("Invalid `"+n+"` supplied to `"+r+"`, expected a React component.");if(l.isValidElement(e))return new Error("Invalid `"+n+"` supplied to `"+r+"`, expected a React component instance. You're passing a React descriptor.")}}},immutableProps:{modal:null},createLayer:function(t){var e=this,r=this._getContextNode(),o={context:r,contextBounds:this.props.contextBounds,"data-testid":this.props["data-testid"],position:this.props.position,alignment:this.props.alignment,offsetX:this.props.offsetX,offsetY:this.props.offsetY,addedBehaviors:this.enumerateBehaviors(this.props.behaviors),shouldSetARIAProperties:this.props.shouldSetARIAProperties,isStrictlyControlled:this.props.isStrictlyControlled,excludeFromHeroVC:this.props.excludeFromHeroVC},a=new(n("ContextualLayer"))(o,t);return this._node=t,this._matchContextSize(this.props),this.props.contextBounds&&a.setContextWithBounds(r,this.props.contextBounds),this._resizeSubscription=a.subscribe("resize",function(t,r){var o=n("ReactBrowserEventEmitter_DO_NOT_USE").isEnabled();o&&e.props.onResize&&e.props.onResize(r)}),a.conditionShow(this.props.shown),a},componentWillUnmount:function(){this._resizeSubscription&&(this._resizeSubscription.unsubscribe(),this._resizeSubscription=null)},receiveProps:function(t,n){this.updateBehaviors(n.behaviors,t.behaviors);var e=this._getContextNode();t.contextBounds?this.layer.setContextWithBounds(e,t.contextBounds):this.layer.setContext(e),this._matchContextSize(t),this.layer.setPosition(t.position),this.layer.setAlignment(t.alignment),this.layer.setOffsetX(t.offsetX),this.layer.setOffsetY(t.offsetY),this.layer.conditionShow(t.shown)},getDefaultEnabledBehaviors:function(){return n("ContextualLayer").getDefaultBehaviorsAsObject()},_getContextNode:function(){var e;return this.props.context?e=this.props.context:this.props.contextRef&&(e=this.props.contextRef()),e!=null&&e.nodeType!==1&&(e=n("ReactDOM_DEPRECATED").findDOMNode_DEPRECATED(e)),e},_matchContextSize:function(t){var e=this._node,r=this._getContextNode();t.containerWidthMatchContext&&n("Style").set(e,"width",r.offsetWidth+"px"),t.containerHeightMatchContext&&n("Style").set(e,"height",r.offsetHeight+"px")}});a.exports=s}),null);
|
|
__d("DocumentFocusForAdsVideoAutoplayRule",["VideoAutoplayRule"],(function(t,n,r,o,a,i,l){"use strict";var e=(function(e){function t(t){return e.call(this,t)||this}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.calculateAutoplayScore=function(){return this.isEnabled()?this.$DocumentFocusForAdsVideoAutoplayRule$p_1():1},n.$DocumentFocusForAdsVideoAutoplayRule$p_1=function(){var e=this.videoUnit.getVideoPlayerController(),t=!!(e&&e.isAd());return t?document.hasFocus()?1:0:1},t})(r("VideoAutoplayRule"));l.default=e}),98);
|
|
__d("EmbeddedVideoPauseOverlay",["cx","fbt","Arbiter","CSS","DOM","DOMDimensions","EventListener","throttle"],(function(t,n,r,o,a,i,l,s){var e="_3bw",u=(function(){"use strict";function t(e,t,r,o,a,i,l,u,c){var d=this;this.$1=t,this.$2=e,this.$3=r,this.$4=o,this.$5=a,this.$6=i,this.$7=l,this.$8=u,this.$9=0,c?(this.$10=c.showOnlyOnFullscreen,this.$11=c.showOnEndscreen):(this.$10=!1,this.$11=!0),this.$12=s._(/*BTDS*/"Tetszik"),this.$13=s._(/*BTDS*/"M\u00e9gsem tetszik"),this.$14=s._(/*BTDS*/"Share"),this.$15(),this.$2.addListener("beginPlayback",this.$16.bind(this)),this.$2.addListener("pausePlayback",this.$17.bind(this)),this.$2.addListener("finishPlayback",this.$17.bind(this)),this.$2.addListener("toggleFullscreen",this.$18.bind(this)),n("EventListener").listen(this.$2.getRootNode(),"mousemove",n("throttle")(this.$19.bind(this),200)),n("EventListener").listen(this.$2.getRootNode(),"mouseenter",function(){d.$20=!0}),n("EventListener").listen(this.$2.getRootNode(),"mouseleave",function(){d.$2.isState("playing")&&(d.$20=!1,d.$21())}),n("Arbiter").subscribe("embeddedUfiToggle",function(){d.$22(),d.$23()}),n("EventListener").listen(window,"resize",n("throttle")(function(){d.$23()},100))}var r=t.prototype;return r.$16=function(){this.$22(),this.$23(),this.$19()},r.$22=function(){var e;this.$2.isFullscreen()?e=64:e=32,this.$15(),this.$9=n("DOMDimensions").getElementDimensions(this.$3).width+n("DOMDimensions").getElementDimensions(this.$4).width+e},r.$23=function(){if(!this.$2.isState("destroyed")){var e=n("DOMDimensions").getElementDimensions(this.$2.getRootNode()).width,t=e<this.$9;t?this.$24():this.$15()}},r.$15=function(){this.$6&&n("DOM").setContent(this.$6,this.$14),this.$7&&n("DOM").setContent(this.$7,this.$12),this.$8&&n("DOM").setContent(this.$8,this.$13),this.$5&&this.$5.showText()},r.$24=function(){this.$6&&n("DOM").setContent(this.$6,null),this.$7&&n("DOM").setContent(this.$7,null),this.$8&&n("DOM").setContent(this.$8,null),this.$5&&this.$5.hideText()},r.$25=function(){return this.$10&&!this.$2.isFullscreen()?!1:this.$2.isState("playing")&&this.$20||this.$2.isState("paused")||this.$26&&this.$2.isState("finished")},r.$19=function(){var e=this;this.$25()&&(this.$27(),clearTimeout(this.$28),this.$28=setTimeout(function(){e.$2.isState("playing")&&e.$21()},3e3))},r.$18=function(){this.$25()?this.$27():this.$21()},r.$17=function(){this.$25()?this.$27():this.$21()},r.$27=function(){n("CSS").removeClass(this.$1,e)},r.$21=function(){n("CSS").addClass(this.$1,e)},t})();a.exports=u}),130);
|
|
__d("RealtimeEntityPresenceTypedLogger",["Banzai","GeneratedLoggerUtils"],(function(t,n,r,o,a,i){"use strict";var e=(function(){function e(){this.$1={}}var t=e.prototype;return t.log=function(t){n("GeneratedLoggerUtils").log("logger:RealtimeEntityPresenceLoggerConfig",this.$1,n("Banzai").BASIC,t)},t.logVital=function(t){n("GeneratedLoggerUtils").log("logger:RealtimeEntityPresenceLoggerConfig",this.$1,n("Banzai").VITAL,t)},t.logImmediately=function(t){n("GeneratedLoggerUtils").log("logger:RealtimeEntityPresenceLoggerConfig",this.$1,{signal:!0},t)},t.clear=function(){return this.$1={},this},t.getData=function(){return babelHelpers.extends({},this.$1)},t.updateData=function(t){return this.$1=babelHelpers.extends({},this.$1,t),this},t.setAction=function(t){return this.$1.action=t,this},t.setActionReason=function(t){return this.$1.action_reason=t,this},t.setAppID=function(t){return this.$1.app_id=t,this},t.setCapabilities=function(t){return this.$1.capabilities=t,this},t.setClientSubscriptionID=function(t){return this.$1.client_subscription_id=t,this},t.setClientTimeMs=function(t){return this.$1.client_time_ms=t,this},t.setEntityHandler=function(t){return this.$1.entity_handler=t,this},t.setEntityID=function(t){return this.$1.entity_id=t,this},t.setEntityType=function(t){return this.$1.entity_type=t,this},t.setEventSource=function(t){return this.$1.event_source=t,this},t.setExceptionMessage=function(t){return this.$1.exception_message=t,this},t.setExceptionType=function(t){return this.$1.exception_type=t,this},t.setGatewayConnected=function(t){return this.$1.gateway_connected=t,this},t.setSequenceID=function(t){return this.$1.sequence_id=t,this},t.setSessionID=function(t){return this.$1.session_id=t,this},t.setSourceHost=function(t){return this.$1.source_host=t,this},t.setSourceTwTaskHandle=function(t){return this.$1.source_tw_task_handle=t,this},t.setTopic=function(t){return this.$1.topic=t,this},t.setUserAgentString=function(t){return this.$1.user_agent_string=t,this},t.setUserFbid=function(t){return this.$1.user_fbid=t,this},e})(),l={action:!0,action_reason:!0,app_id:!0,capabilities:!0,client_subscription_id:!0,client_time_ms:!0,entity_handler:!0,entity_id:!0,entity_type:!0,event_source:!0,exception_message:!0,exception_type:!0,gateway_connected:!0,sequence_id:!0,session_id:!0,source_host:!0,source_tw_task_handle:!0,topic:!0,user_agent_string:!0,user_fbid:!0};i.default=e}),66);
|
|
__d("EntityPresenceLogger",["BladeRunnerStreamStatus","CurrentUser","EntityPresenceConfig","Random","RealtimeEntityPresenceTypedLogger","RequestStreamCommonRequestStreamCommonTypes","UserAgentData","gkx"],(function(t,n,r,o,a,i,l){"use strict";var e="client",s=(function(){function t(e,t,n,r){this.entityType=e,this.entityID=t,this.subscriptionID=n,this.shouldLog=this.$1(),this.sequenceID=0,this.appID=r}var n=t.prototype;return n.logEnter=function(t){this.shouldLog&&this.$2().setAction("enter").setSequenceID(++this.sequenceID).setCapabilities(t).log()},n.logReconnect=function(t){this.shouldLog&&this.$2().setAction("enter").setActionReason("reconnect").setSequenceID(++this.sequenceID).setCapabilities(t).log()},n.logSubscribeCallback=function(t){this.shouldLog&&this.$2().setAction("subscribe_completed").setActionReason(t?"succeeded":"failed").log()},n.logPing=function(){this.shouldLog&&this.$2().setAction("ping").setSequenceID(++this.sequenceID).log()},n.logSkippedPing=function(){this.shouldLog&&this.$2().setAction("skipped_ping").setSequenceID(this.sequenceID).log()},n.logChangeCapabilities=function(t){this.shouldLog&&this.$2().setAction("change_capabilities").setSequenceID(++this.sequenceID).setCapabilities(t).log()},n.logLeave=function(){this.shouldLog&&this.$2().setAction("leave").setSequenceID(++this.sequenceID).log()},n.logFlowStatus=function(t){if(this.shouldLog){var e="unknown";switch(t){case o("BladeRunnerStreamStatus").StreamStatus.ACCEPTED:e="accepted";break;case o("BladeRunnerStreamStatus").StreamStatus.REJECTED:e="rejected";break;case o("BladeRunnerStreamStatus").StreamStatus.STARTED:e="started";break;case o("BladeRunnerStreamStatus").StreamStatus.STOPPED:e="stopped";break;case o("BladeRunnerStreamStatus").StreamStatus.CLOSED:e="closed";break}this.$2().setAction("flow_"+e).log()}},n.logDGWFlowStatus=function(t){if(this.shouldLog){var e="unknown";switch(t){case o("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.Accepted:e="accepted";break;case o("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.Started:e="started";break;case o("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.Stopped:e="stopped";break}this.$2().setAction("flow_"+e).log()}},n.logUnsubscribeCallback=function(t){this.shouldLog&&this.$2().setAction("unsubscribe_completed").setActionReason(t?"succeeded":"failed").log()},n.getLogInfo=function(){return this.shouldLog?{client_subscription_id:this.subscriptionID,sequence_id:this.sequenceID.toString()}:null},n.getLogInfoMQTT=function(){return this.shouldLog?{clientSubscriptionId:this.subscriptionID,sequenceId:this.sequenceID}:null},n.$1=function(){return r("gkx")("25813")?!0:r("gkx")("25814")?o("Random").random()<(Object.prototype.hasOwnProperty.call(r("EntityPresenceConfig").samplingRateOverride,this.entityType)?r("EntityPresenceConfig").samplingRateOverride[this.entityType]:r("EntityPresenceConfig").sessionLoggingSamplingRate):!1},n.$2=function(){return new(r("RealtimeEntityPresenceTypedLogger"))().setEntityType(this.entityType).setEntityID(this.entityID).setClientSubscriptionID(this.subscriptionID).setClientTimeMs(Date.now()).setEventSource(e).setAppID(this.appID).setUserFbid(r("CurrentUser").getID()).setUserAgentString(r("UserAgentData").browserName+"/"+(r("UserAgentData").browserFullVersion||""))},t})();l.default=s}),98);
|
|
__d("EntityPresenceClient",["$InternalEnum","Deferred","EntityPresenceLogger","ODS","RequestStreamCommonRequestStreamCommonTypes","TransportSelectingClientSingleton","UserActivity","clearInterval","justknobx","setInterval","uuidv4"],(function(t,n,r,o,a,i,l){"use strict";var e,s="219994525426954",u="realtime.entity_presence.js_client",c=n("$InternalEnum").Mirrored(["ON_TAB_ONLY","ALWAYS"]);function d(t,n,a,i){i===void 0&&(i=c.ON_TAB_ONLY);var l=r("uuidv4")(),d=new(r("EntityPresenceLogger"))(t,n,l,s);d.logEnter(a),(e||(e=o("ODS"))).bumpEntityKey(3291,u,t+".enter");var m=function(){switch(i){case c.ON_TAB_ONLY:return r("UserActivity").isOnTab();case c.ALWAYS:return!0}};return f(t,n,a,m,d,i)}function m(t,n,a,i,l,s,c){var d=r("TransportSelectingClientSingleton").requestStream({method:"EntityPresence:"+t},JSON.stringify({entity_type:t,entity_id:n,capabilities:a!=null?a:null,log_info:i.getLogInfo(),disable_hibernate_mode:c}),{onFlowStatus:function(t){s(t),i.logDGWFlowStatus(t)}});d.then(function(e){l(e)}).catch(function(){(e||(e=o("ODS"))).bumpEntityKey(3291,u,t+".stream_connection.failed"),l(null)})}function p(e,t,n,a){return r("setInterval")(function(){if(t()&&e()!==null&&n()===o("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.Started){var r;a.logPing(),(r=e())==null||r.amendWithoutAck("")}else a.logSkippedPing()},3e3)}function _(e,t,n,a,i){return r("setInterval")(function(){!t()&&e()!=null&&n()===o("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.Started?a():t()&&n()===o("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.Stopped&&i()},3e3)}function f(t,n,a,i,l,s){var d,f,g=new(r("Deferred")),h=function(t){f=t,g.resolve()},y=function(t){d=t},C=function(){return d},b=function(){return f},v=r("justknobx")._("1755"),S=function(){m(t,n,a,l,h,y,v)},R=function(){var e;(e=f)==null||e.cancel()};S();var L=null;return v?s===c.ON_TAB_ONLY&&(L=_(b,i,C,R,S)):L=p(b,i,C,l),{entityID:n,capabilities:a,changeCapabilities:function(r){var n;return l.logChangeCapabilities(r),f===null?(e||(e=o("ODS"))).bumpEntityKey(3291,u,t+".change_capabilities.failed"):(e||(e=o("ODS"))).bumpEntityKey(3291,u,t+".change_capabilities"),(n=f)==null?void 0:n.amendWithAck(JSON.stringify({capabilities:r}))},leave:function(){var n;l.logLeave(),(e||(e=o("ODS"))).bumpEntityKey(3291,u,t+".leave"),(n=f)==null||n.cancel(),r("clearInterval")(L)},getPromise:function(){return g.getPromise()}}}l.EntityPresenceActivityPolicy=c,l.enter=d}),98);
|
|
__d("FBCircularGlyph.react",["cx","Image.react","joinClasses","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e=["circleSize","glyph","glyphSize"],u,c=u||(u=o("react")),d=(function(t){function n(){return t.apply(this,arguments)||this}babelHelpers.inheritsLoose(n,t);var o=n.prototype;return o.render=function(){var t=this.props,n=t.circleSize,o=t.glyph,a=t.glyphSize,i=babelHelpers.objectWithoutPropertiesLoose(t,e);return c.jsx("div",babelHelpers.extends({},i,{className:r("joinClasses")("_32qy",i.className),style:babelHelpers.extends({width:n,height:n},i.style),children:c.jsx("div",{className:"xbudbmw x10l6tqk xwa60dl",children:c.jsx("div",{className:"x1m55yg7 x1p8t5lp x1vrad04 x1n2onr6",children:c.jsx(r("Image.react"),{src:o,width:a,height:a})})})}))},n})(c.Component);l.default=d}),98);
|
|
__d("FBClipboardLink.react",["cx","fbt","Clipboard","DOMContainer.react","Event","KeyEventController","ReactDOM_DEPRECATED","SubscriptionsHandler","Tooltip.react","isKeyActivation","joinClasses","react","stylex"],(function(t,n,r,o,a,i,l,s,u){var e,c,d=c||(c=o("react")),m=(function(t){function n(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return e=t.call.apply(t,[this].concat(r))||this,e.$1=d.createRef(),e.state={copied:!1,supported:o("Clipboard").isSupported()},e.$2=null,e.$3=null,e.$5=function(t){t.clipboardData&&(t.clipboardData.setData("text/html",e.$8()),t.clipboardData.setData("text",e.$9()),t.preventDefault())},e.$7=function(){return e.state.supported?e.state.copied?e.props.tooltipSuccess:e.props.tooltip:"Unsupported in this browser"},e.$4=function(){e.$3&&(window.clearTimeout(e.$3),e.$3=null)},e.$10=function(){e.$3=window.setTimeout(e.$11,e.props.tooltipSuccessDuration)},e.$6=function(t){var n=o("ReactDOM_DEPRECATED").findDOMNode_DEPRECATED(e.$1.current),r=o("Clipboard").copy(e.$8(),n);e.$4(),e.setState({copied:!0,supported:r}),e.$10(),e.props.onComplete&&e.props.onComplete(r),e.props.stopPropagation&&t.stopPropagation(),e.props.preventDefaultOnClick&&t.preventDefault()},e.$11=function(){e.$4(),e.setState({copied:!1})},babelHelpers.assertThisInitialized(e)||babelHelpers.assertThisInitialized(e)}babelHelpers.inheritsLoose(n,t);var a=n.prototype;return a.componentWillUnmount=function(){this.$4(),this.$2&&this.$2.release()},a.componentDidMount=function(){if(this.props.type==="html"){var e=o("ReactDOM_DEPRECATED").findDOMNode_DEPRECATED(this);this.$2=this.$2||new(r("SubscriptionsHandler")),this.$2.addSubscriptions(r("Event").listen(e,"copy",this.$5))}this.props.hotkey&&(this.$2=this.$2||new(r("SubscriptionsHandler")),this.$2.addSubscriptions(r("KeyEventController").registerKey(this.props.hotkey,this.$6)))},a.render=function(){var t=this,n=r("joinClasses")(this.props.className,"_xd6"),o=this.props.children||this.props.label;return!o&&this.props.childrenDONOTUSE&&(o=d.jsx(r("DOMContainer.react"),{children:this.props.childrenDONOTUSE})),d.jsx(r("Tooltip.react"),babelHelpers.extends({},this.props,{tabIndex:0,className:n,tooltip:this.$7(),"data-pitloot-persistonclick":!0,onClick:this.$6,onKeyPress:function(n){return r("isKeyActivation")(n)&&t.$6()},position:this.props.position,alignH:this.props.alignment,role:"button",children:d.jsx("div",{ref:this.$1,className:r("joinClasses")("_2lj1",(e||(e=r("stylex")))(this.props.innerXStyle)),children:o})}))},a.$8=function(){return this.props.getValue?this.props.getValue():this.props.value},a.$9=function(){return this.props.plainTextValue!=null?this.props.plainTextValue:this.$8()},n})(d.PureComponent);m.defaultProps={tooltip:u._(/*BTDS*/"A sz\u00f6veg m\u00e1sol\u00e1sa a v\u00e1g\u00f3lapra"),tooltipSuccess:u._(/*BTDS*/"Sz\u00f6veg a v\u00e1g\u00f3lapra m\u00e1solva"),tooltipSuccessDuration:1e3,type:"string"},l.default=m}),226);
|
|
__d("FeedVideoClickToPlayController",["DocumentFocusForAdsVideoAutoplayRule","Event","VideoPlayerExperiments","destroyOnUnload","setImmediate","throttle"],(function(t,n,r,o,a,i,l){var e=null,s=(function(){function t(){var t=this;this.$4=new Set,this.$3=null,this.$2=null,this.$1=null,r("destroyOnUnload")(function(){t.$4.clear(),t.$2&&(t.$2.remove(),t.$2=null),t.$3&&(t.$3.disconnect(),t.$3=null),t.$1&&(t.$1.remove(),t.$1=null),t===e&&(e=null)})}var n=t.prototype;return n.addVideoUnit=function(t){var e=this;if(r("VideoPlayerExperiments").useBringYourOwnAutoplayRule&&r("VideoPlayerExperiments").pauseAdIfNoDocumentFocus){var n=new(r("DocumentFocusForAdsVideoAutoplayRule"))(t);t.registerAutoplayRule(n)}this.$5()||this.$6(),this.$7()||this.$8(),t.addListener("beginPlayback",function(n){var r=n.reason;(r==="user_initiated"||r==="loop_initiated")&&e.$4.add(t)}),t.addListener("turnOffAutoplay",function(n){var r=n.reason;r==="unmuted"&&e.$4.add(t)}),t.getVideoPlayerController().isState("playing")&&!t.isAutoplayable()&&this.$4.add(t),t.addListener("pausePlayback",function(){e.$4.delete(t)}),t.addListener("finishPlayback",function(){e.$4.delete(t)})},t.registerVideoUnit=function(r){e==null&&(e=new t),e.addVideoUnit(r)},n.$6=function(){var e=this;this.$2&&this.$2.remove(),this.$2=r("Event").listen(window,"scroll",r("throttle")(function(){return e.onWindowEvent()},200))},n.$8=function(){var e=this;this.$1&&this.$1.remove(),this.$1=r("Event").listen(window,"resize",r("throttle")(function(){return e.onWindowEvent()},200))},n.$5=function(){return!!this.$2},n.$7=function(){return!!this.$1},n.$9=function(t){t.pause("autoplay_initiated"),r("VideoPlayerExperiments").noAbortLoadingInFeedClickToPlay||t.abortLoading(),this.$4.delete(t)},n.onWindowEvent=function(){var e=this;this.$4.forEach(function(t){if(t&&!t.isVisible()&&!t.getIsInChannel()){var n=t.getVideoPlayerController();n.isAd()||r("VideoPlayerExperiments").pauseWhenOffscreen?r("VideoPlayerExperiments").slidingWNSv3?r("setImmediate")(function(){t&&!t.isVisible()&&!t.getIsInChannel()&&e.$9(t)}):e.$9(t):n.isMuted()&&n.isState("playing")&&(e.$9(t),n.emit("resumeAutoplay"))}})},t})();l.default=s}),98);
|
|
__d("LitestandStoryInsertionStatus",["ArbiterMixin"],(function(t,n,r,o,a,i,l){var e="check",s={registerBlocker:function(n){return s.subscribe(e,function(e,t){t.can_insert&&n()&&(t.can_insert=!1)})},canInsert:function(){var t={can_insert:!0};return s.inform(e,t),t.can_insert}};Object.assign(s,r("ArbiterMixin"));var u=s;l.default=u}),98);
|
|
__d("VideoAutoplayPlayerBase",["EventEmitter","FBLogger"],(function(t,n,r,o,a,i,l){"use strict";var e=(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,t.wasVisible=!1,t.$VideoAutoplayPlayerBase$p_1=[],babelHelpers.assertThisInitialized(t)||babelHelpers.assertThisInitialized(t)}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.isVisible=function(){throw new Error("Should be overridden")},n.getDistanceToViewport=function(){throw new Error("Should be overridden")},n.getVideoPlayerController=function(){return r("FBLogger")("video").warn(["VideoAutoplayPlayerBase.getVideoPlayerController()","was called and returned null."].join(" ")),null},n.logDisplayed=function(){throw new Error("Should be overridden")},n.playWithoutUnmute=function(t){throw new Error("Should be overridden")},n.pause=function(t){throw new Error("Should be overridden")},n.isAutoplayable=function(){throw new Error("Should be overridden")},n.getDOMPosition=function(){throw new Error("Should be overridden")},n.isLooping=function(){throw new Error("Should be overridden")},n.isState=function(t){throw new Error("Should be overridden")},n.preload=function(){throw new Error("Should be overridden")},n.isMuted=function(){throw new Error("Should be overridden")},n.isPlaying=function(){throw new Error("Should be overridden")},n.shouldPauseWhenScrolledOffscreen=function(){throw new Error("Should be overridden")},n.getAutoplayRules=function(){return this.$VideoAutoplayPlayerBase$p_1},n.registerAutoplayRule=function(t){this.$VideoAutoplayPlayerBase$p_1.push(t)},n.shouldImmediatelyAutoplayOnRegister=function(){return!1},t})(r("EventEmitter"));l.default=e}),98);
|
|
__d("FeedVideoPlayerController",["csx","DOM","DOMQuery","LitestandStoryInsertionStatus","Run","SubscriptionsHandler","VideoAutoplayPlayerBase","VideoPlayerApiEvents","VideoPlayerExperiments","VideoPlayerLoggerErrorStates","VideoPlayerLoggerErrors","getElementPosition","getViewportDimensions"],(function(t,n,r,o,a,i,l,s){"use strict";var e=42,u=(function(t){function n(e,n){var a;return a=t.call(this)||this,a.$FeedVideoPlayerController$p_1=n,a.$FeedVideoPlayerController$p_2=e,a.$FeedVideoPlayerController$p_3=new Set,a.$FeedVideoPlayerController$p_1.viewport_autoplay||a.$FeedVideoPlayerController$p_3.add("server_blocked"),a.$FeedVideoPlayerController$p_12=r("VideoPlayerExperiments").autoplayUntilHalfGone?.5:1,a.$FeedVideoPlayerController$p_4=a.isAutoplayable(),a.$FeedVideoPlayerController$p_6=n.controller,a.$FeedVideoPlayerController$p_10=!!n.startsMuted,a.$FeedVideoPlayerController$p_13=!1,a.$FeedVideoPlayerController$p_7=a.isAutoplayable(),(a.$FeedVideoPlayerController$p_6.getIsInChannel()||a.$FeedVideoPlayerController$p_6.isState("playing")&&!a.$FeedVideoPlayerController$p_6.isMuted())&&(a.$FeedVideoPlayerController$p_7=!1),a.$FeedVideoPlayerController$p_6.registerOption("FeedAutoplay","isAutoplaying",function(){return a.$FeedVideoPlayerController$p_7},function(e){a.$FeedVideoPlayerController$p_7=e}),a.$FeedVideoPlayerController$p_6.registerOption("FeedAutoplay","isVisibleForAutoplay",function(){return a.isVisible()}),a.$FeedVideoPlayerController$p_6.registerOption("FeedAutoplay","shouldOpenSidePaneInChannelView",function(){return n.autoPlayWithChannelViewOrSnowlift}),a.$FeedVideoPlayerController$p_6.registerOption("FeedAutoplay","isFilteredByWarningScreen",function(){return a.$FeedVideoPlayerController$p_13},function(e){a.$FeedVideoPlayerController$p_13=e}),a.$FeedVideoPlayerController$p_6.setLogEntryPropertyGetters({autoplay_eligible:function(){return a.isAutoplayable()},autoplay_failure_reasons:function(){return JSON.stringify(Array.from(a.$FeedVideoPlayerController$p_3))}}),a.$FeedVideoPlayerController$p_14(),o("Run").onLeave(function(){a.$FeedVideoPlayerController$p_5.release()}),a.isState("fallback")?(a.$FeedVideoPlayerController$p_15(),a.$FeedVideoPlayerController$p_16(),babelHelpers.assertThisInitialized(a)):(a.$FeedVideoPlayerController$p_5.addSubscriptions(r("LitestandStoryInsertionStatus").registerBlocker(function(){return a.isState("playing")})),a)}babelHelpers.inheritsLoose(n,t);var a=n.prototype;return a.$FeedVideoPlayerController$p_17=function(){return this.$FeedVideoPlayerController$p_6.isState("destroyed")},a.getDistanceToViewport=function(){if(this.$FeedVideoPlayerController$p_17())return-1/0;if(this.$FeedVideoPlayerController$p_6.isFullscreen())return 0;var e=r("getViewportDimensions")().height,t=this.getDOMPosition();if(t.height===0)return-1/0;var n=t.y+(1-this.$FeedVideoPlayerController$p_12)*t.height;return n-e/2},a.isVisible=function(){if(this.$FeedVideoPlayerController$p_17())return!1;if(this.$FeedVideoPlayerController$p_6.isFullscreen())return!0;if(this.$FeedVideoPlayerController$p_6.hasDialog()&&!this.$FeedVideoPlayerController$p_6.isTahoe())return!1;var t=r("getViewportDimensions")().height,n=r("getViewportDimensions")().width,o=this.getDOMPosition();if(o.height===0)return!1;var a=o.y-e+(1-this.$FeedVideoPlayerController$p_12)*o.height,i=o.y+this.$FeedVideoPlayerController$p_12*o.height,l=o.x+(1-this.$FeedVideoPlayerController$p_12)*o.width,s=o.x+this.$FeedVideoPlayerController$p_12*o.width;if(a<0||i>=t||l<0||s>=n)return!1;var u=this.$FeedVideoPlayerController$p_18();return u!==null?this.$FeedVideoPlayerController$p_19(o,r("getElementPosition")(u)):!0},a.$FeedVideoPlayerController$p_18=function(){var e=o("DOMQuery").scry(this.$FeedVideoPlayerController$p_2.video_container,"^div._1yj5");return e.length>0?e[0]:null},a.$FeedVideoPlayerController$p_19=function(t,n){var e=t.x,r=t.x+t.width,o=n.x,a=n.x+n.width;return o<e&&r<a},a.isAutoplayable=function(){return this.$FeedVideoPlayerController$p_1.viewport_autoplay&&!this.$FeedVideoPlayerController$p_9&&!this.$FeedVideoPlayerController$p_3.size&&!this.$FeedVideoPlayerController$p_13},a.getCurrentTimePosition=function(){return this.$FeedVideoPlayerController$p_6.getCurrentTimePosition()},a.playWithoutUnmute=function(t){this.$FeedVideoPlayerController$p_6.play(t)},a.getVideoID=function(){return this.$FeedVideoPlayerController$p_6.getVideoID()},a.$FeedVideoPlayerController$p_20=function(){this.$FeedVideoPlayerController$p_16()},a.$FeedVideoPlayerController$p_14=function(){var e=this;this.$FeedVideoPlayerController$p_5=new(r("SubscriptionsHandler"));var t=[["finishPlayback",function(){return e.$FeedVideoPlayerController$p_21()}],["turnOffAutoplay",function(t){var n=null;t&&(n=t.reason),e.$FeedVideoPlayerController$p_22(n)}],["unmuteVideo",function(){return e.$FeedVideoPlayerController$p_23()}],["stateChange",function(){return e.$FeedVideoPlayerController$p_24()}],["switchVideo",function(){return e.$FeedVideoPlayerController$p_20()}],["fallbackPlay",function(){return e.$FeedVideoPlayerController$p_25()}],["buffered",function(){return e.$FeedVideoPlayerController$p_16()}],["buffering",function(){return e.$FeedVideoPlayerController$p_16()}],["beginPlayback",function(t){var n=t.reason;return e.$FeedVideoPlayerController$p_26(n)}],["toggleFullscreen",function(){return e.$FeedVideoPlayerController$p_27()}],["resumeAutoplay",function(t){var n=null;t&&(n=t.reason),e.$FeedVideoPlayerController$p_28(n)}],["crossfadeWatchAndScroll",function(){return e.$FeedVideoPlayerController$p_29()}],["enterWatchAndScroll",function(){return e.$FeedVideoPlayerController$p_29()}],["exitWatchAndScroll",function(){return e.$FeedVideoPlayerController$p_30()}],["muteVideo",function(){return e.$FeedVideoPlayerController$p_31()}]],n=function(n){return e.emit.bind(e,n)};this.$FeedVideoPlayerController$p_5.addSubscriptions.apply(this.$FeedVideoPlayerController$p_5,t.map(function(t){var n=t[0],r=t[1];return e.$FeedVideoPlayerController$p_6.addListener(n,r)}).concat(r("VideoPlayerApiEvents").map(function(t){return e.$FeedVideoPlayerController$p_6.addListener(t,n(t))})))},a.$FeedVideoPlayerController$p_31=function(){r("VideoPlayerExperiments").fixFeedVideosPlayOffscreen&&this.$FeedVideoPlayerController$p_32("unmuted")},a.$FeedVideoPlayerController$p_30=function(){r("VideoPlayerExperiments").fixFeedVideosPlayOffscreen&&(this.$FeedVideoPlayerController$p_32("watch_and_scroll"),this.$FeedVideoPlayerController$p_6&&this.$FeedVideoPlayerController$p_6.isMuted()&&this.$FeedVideoPlayerController$p_32("unmuted"))},a.$FeedVideoPlayerController$p_29=function(){r("VideoPlayerExperiments").fixFeedVideosPlayOffscreen&&(this.$FeedVideoPlayerController$p_33("watch_and_scroll"),this.$FeedVideoPlayerController$p_32("manually_paused"))},a.$FeedVideoPlayerController$p_27=function(){this.$FeedVideoPlayerController$p_10&&this.$FeedVideoPlayerController$p_6.unmute()},a.$FeedVideoPlayerController$p_24=function(){this.$FeedVideoPlayerController$p_17()||(this.$FeedVideoPlayerController$p_6.isState("fallback")&&this.$FeedVideoPlayerController$p_15(),!this.$FeedVideoPlayerController$p_6.isState("loading")&&this.$FeedVideoPlayerController$p_8&&(clearTimeout(this.$FeedVideoPlayerController$p_8),this.$FeedVideoPlayerController$p_8=null),this.$FeedVideoPlayerController$p_16())},a.$FeedVideoPlayerController$p_26=function(t){r("VideoPlayerExperiments").fixFeedVideosPlayOffscreen&&this.$FeedVideoPlayerController$p_32("manually_paused"),t==="user_initiated"&&this.$FeedVideoPlayerController$p_10&&this.$FeedVideoPlayerController$p_6.unmute()},a.preload=function(){this.$FeedVideoPlayerController$p_6.preload&&this.$FeedVideoPlayerController$p_6.preload()},a.logDisplayed=function(){this.$FeedVideoPlayerController$p_6.logEvent("displayed",{autoplay_reason:this.$FeedVideoPlayerController$p_1.autoplay_reason})},a.$FeedVideoPlayerController$p_25=function(){var e={error:o("VideoPlayerLoggerErrors").ENTERED_FALLBACK,state:o("VideoPlayerLoggerErrorStates").PLAYBACK_FAILURE};this.$FeedVideoPlayerController$p_6.logEvent("error",e)},a.$FeedVideoPlayerController$p_23=function(){r("VideoPlayerExperiments").slidingWNSv3&&this.$FeedVideoPlayerController$p_6.isAd()&&(this.$FeedVideoPlayerController$p_12=.5),this.$FeedVideoPlayerController$p_10=!1,this.$FeedVideoPlayerController$p_7=!1},a.$FeedVideoPlayerController$p_21=function(){var e=this.$FeedVideoPlayerController$p_6.getOption("Looping","isLooping");e||this.$FeedVideoPlayerController$p_33("has_seen_finished")},a.$FeedVideoPlayerController$p_15=function(){this.$FeedVideoPlayerController$p_11={isAutoplaying:this.$FeedVideoPlayerController$p_7,preventAutoplay:this.$FeedVideoPlayerController$p_9},this.$FeedVideoPlayerController$p_33("fallback")},a.$FeedVideoPlayerController$p_33=function(t){this.$FeedVideoPlayerController$p_9=!0,t&&this.$FeedVideoPlayerController$p_3.add(t),this.$FeedVideoPlayerController$p_7=!1},a.$FeedVideoPlayerController$p_28=function(t){this.$FeedVideoPlayerController$p_32(t)},a.$FeedVideoPlayerController$p_32=function(t){t?this.$FeedVideoPlayerController$p_3.delete(t):(this.$FeedVideoPlayerController$p_3.delete("unmuted"),this.$FeedVideoPlayerController$p_3.delete("has_seen_finished"),this.$FeedVideoPlayerController$p_3.delete("manually_paused")),this.$FeedVideoPlayerController$p_9=this.$FeedVideoPlayerController$p_3.size>0,this.$FeedVideoPlayerController$p_7=!this.$FeedVideoPlayerController$p_9},a.$FeedVideoPlayerController$p_22=function(t){r("VideoPlayerExperiments").enableAutoplayOnUnmutedVideos&&t==="unmuted"||(this.$FeedVideoPlayerController$p_33(t),this.$FeedVideoPlayerController$p_7=!1)},a.$FeedVideoPlayerController$p_16=function(){this.$FeedVideoPlayerController$p_34()},a.getDOMPosition=function(){return this.$FeedVideoPlayerController$p_6.getDOMPosition()},a.isLooping=function(){return!!this.$FeedVideoPlayerController$p_6.getOption("Looping","isLooping")},a.pause=function(t){this.$FeedVideoPlayerController$p_6.pause(t)},a.$FeedVideoPlayerController$p_35=function(){this.$FeedVideoPlayerController$p_14(),this.$FeedVideoPlayerController$p_3.delete("fallback"),this.$FeedVideoPlayerController$p_7=this.$FeedVideoPlayerController$p_11.isAutoplaying,this.$FeedVideoPlayerController$p_9=this.$FeedVideoPlayerController$p_11.preventAutoplay},a.$FeedVideoPlayerController$p_34=function(){var e=this;if(this.isState("fallback")){this.$FeedVideoPlayerController$p_5.release();var t=this.$FeedVideoPlayerController$p_2;if(t.fallback_link&&(r("DOM").remove(this.$FeedVideoPlayerController$p_6.getVideoNode()),r("DOM").replace(t.video_container,t.fallback_link),r("DOM").appendContent(t.fallback_link,t.video_container)),this.$FeedVideoPlayerController$p_6.isFallbackRecoverable())this.$FeedVideoPlayerController$p_35();else var n=this.$FeedVideoPlayerController$p_6.addListener("VideoPlayerFallbackEvents/recover",function(){e.$FeedVideoPlayerController$p_35(),n.remove()})}},a.isState=function(t){return this.$FeedVideoPlayerController$p_6.isState(t)},a.getSource=function(){return this.$FeedVideoPlayerController$p_6.getSource()},a.getIsInChannel=function(){return this.$FeedVideoPlayerController$p_6.getIsInChannel()},a.getVideoPlayerController=function(){return this.$FeedVideoPlayerController$p_6},a.abortLoading=function(){this.$FeedVideoPlayerController$p_1.abort_loading_blocked||this.$FeedVideoPlayerController$p_6.abortLoading()},a.isMuted=function(){return this.$FeedVideoPlayerController$p_6.isMuted()},a.isPlaying=function(){return this.$FeedVideoPlayerController$p_6.isState("playing")},a.shouldPauseWhenScrolledOffscreen=function(){return!!r("VideoPlayerExperiments").enableAutoplayOnUnmutedVideos},n})(r("VideoAutoplayPlayerBase"));l.default=u}),98);
|
|
__d("GeoBaseHintSingletonRefContext",["react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=s.createContext({current:void 0}),c=u;l.default=c}),98);
|
|
__d("focusWithinLayer",["DOMQuery","Focus","TabbableElements","getActiveElement"],(function(t,n,r,o,a,i,l){function e(e,t){var n=o("DOMQuery").scry(e,".autofocus")[0],a=!0;if(n)n.tabIndex!==0&&(a=!1);else{var i=r("getActiveElement")();if(o("DOMQuery").isNodeOfType(i,["input","textarea"]))return;for(var l=o("TabbableElements").find(e),s=0;s<l.length;s++){var u=l[s];if(u.tagName!=="A"||u.getAttribute("role")==="button"||u.getAttribute("role")==="menuitem"){n=l[s];break}}}n?a?o("Focus").set(n,t):o("Focus").setWithoutOutline(n):e.offsetWidth||(e.tabIndex=-1,o("Focus").setWithoutOutline(e))}l.default=e}),98);
|
|
__d("LayerAutoFocus",["focusWithinLayer"],(function(t,n,r,o,a,i,l){var e=(function(){function e(e){this.$2=null,this.$1=e,this.$2=null}var t=e.prototype;return t.enable=function(){var e=this;this.$2=this.$1.subscribe("aftershow",function(){return e.$3()})},t.disable=function(){this.$2&&this.$2.unsubscribe(),this.$2=null},t.$3=function(){var e=this.$1.getRoot();e&&r("focusWithinLayer")(e,!0)},e})();l.default=e}),98);
|
|
__d("getContextualLayerCursorOffset",[],(function(t,n,r,o,a,i){"use strict";function e(e,t,n){var r=e.getOrientation(),o=r.getPosition(),a=r.getAlignment(),i=e.getContent().getBoundingClientRect(),l=e.getContext().getBoundingClientRect(),s=t-l.left,u=n-l.top;switch(a){case"left":s-=i.width;break;case"center":s-=l.width*.5;break;case"right":s-=l.width-i.width;break;default:throw new Error("invalid alignment")}switch(o){case"above":break;case"left":s+=i.width,u-=i.height*.5;break;case"right":s-=i.width,u-=i.height*.5;break;case"below":u-=l.height;break;default:throw new Error("invalid position")}return{offsetX:s,offsetY:u}}i.default=e}),66);
|
|
__d("MountedContextMenu.react",["ContextualLayer.react","DOMQuery","Event","Focus","LayerHideOnEscape","PopoverMenu.react","ReactDOM_DEPRECATED","SubscriptionsHandler","getContextualLayerCursorOffset","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t=e.call.apply(e,[this].concat(r))||this,t.state={shown:!1,lastOpenedX:0,lastOpenedY:0,offsetX:0,offsetY:0},t.refs_fakeTrigger=null,t.menuLayerRefHandler=function(e){t.refs_menuLayer=e},t.$6=function(e){var n=e.clientX,r=e.clientY;e.preventDefault(),e.stopPropagation(),t.showAt(n,r)},t.$7=function(e){var n=t.$3(),r=n&&o("DOMQuery").contains(n,e.target),a=e.button===0;r&&a||t.hide()},t.$8=function(){t.props.disableFocusOutline===!0&&o("Focus").setWithoutOutline(t.$2())},t.$9=function(){var e=t.$2();t.props.disableFocusOutline===!0?o("Focus").setWithoutOutline(e):o("Focus").set(e),t.state.shown&&t.hide()},t.$10=function(){t.hide()},babelHelpers.assertThisInitialized(t)||babelHelpers.assertThisInitialized(t)}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.$2=function(){return this.props.mountedTriggerElem},n.$3=function(){var e=this.refs_popover.getMenu();return e&&e.getRoot()},n.$4=function(){return this.refs_menuLayer.layer},n.renderLayers=function(){var e=this;return s.jsx(r("ContextualLayer.react"),{alignment:"right",behaviors:[r("LayerHideOnEscape")],contextRef:function(){return e.$2()},offsetX:this.state.offsetX,offsetY:this.state.offsetY,position:"below",ref:this.menuLayerRefHandler,shown:this.state.shown,children:s.jsx(r("PopoverMenu.react"),{alignh:"left",menu:this.props.menu,position:"below",ref:function(n){return e.refs_popover=n},children:s.jsx("div",{className:"x1rg5ohu xqtp20y x16dsc37 xnalus7",ref:function(n){return e.refs_fakeTrigger=n}})})},"menu")},n.render=function(){return this.props.mountedTriggerElem?s.jsx("span",{children:this.renderLayers()}):null},n.$5=function(t,n){var e=this.$4(),o=r("getContextualLayerCursorOffset")(e,t,n),a=o.offsetX,i=o.offsetY;e.setOffsetX(a).setOffsetY(i),this.setState({offsetX:a,offsetY:i})},n.componentDidMount=function(){var e=this,t,n=this.$2(),a=o("ReactDOM_DEPRECATED").findDOMNode_DEPRECATED(this.refs_fakeTrigger),i=this.$4(),l=this.refs_popover;this.$1=new(r("SubscriptionsHandler")),this.$1.addSubscriptions((t=r("Event")).listen(n,"contextmenu",this.$6),t.listen(document.body,"mousedown",this.$7),t.listen(n,"focus",this.$8),t.listen(a,"focus",this.$9),t.listen(window,"blur",this.$10),i.subscribe("show",function(){var t=e.state.lastOpenedX,n=e.state.lastOpenedY;e.$5(t,n),l.showPopover()}),i.subscribe("hide",function(){l.hidePopover()}))},n.componentWillUnmount=function(){this.$1&&this.$1.release()},n.show=function(){this.setState({shown:!0})},n.showAt=function(t,n){this.setState({lastOpenedX:t,lastOpenedY:n}),this.show()},n.hide=function(){this.setState({shown:!1})},t})(s.Component);l.default=u}),98);
|
|
__d("PlayerKeyboardControls.react",["cx","ix","CenteredContainer.react","Event","EventListener","FBCircularGlyph.react","Image.react","Keys","LiveRewindUtils","LiveVideoPlayerActions","ReactDOM_DEPRECATED","clamp","joinClasses","react"],(function(t,n,r,o,a,i,l,s,u){var e,c=e||(e=o("react")),d=10,m=.1,p=(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,t.state={action:null},babelHelpers.assertThisInitialized(t)||babelHelpers.assertThisInitialized(t)}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.componentDidMount=function(){this.$1=r("EventListener").listen(this.props.controller.getRootNode(),"keydown",this.$2.bind(this))},n.componentWillUnmount=function(){this.$1&&this.$1.remove()},n.$3=function(){if(this.props.isLiveRewindEnabled){var e=this.props.controller,t=e.getCurrentTimePosition();this.setState({action:"pause"}),e.pause("user_initiated"),o("LiveVideoPlayerActions").setIsRewound(e,!0),o("LiveRewindUtils").logLiveRewindEvent("pause",e,null,t,null,t)}},n.$4=function(){if(this.props.isLiveRewindEnabled){var e=this.props.controller,t=e.getCurrentTimePosition();this.setState({action:"play"}),e.play("user_initiated"),o("LiveRewindUtils").logLiveRewindEvent("play",e,null,t,null,t)}},n.$5=function(){return this.props.seekFrameWhenPaused&&!this.props.controller.isState("playing")?1/30:this.props.seekIncrement},n.$2=function(t){var e=this.props.controller,n=this.props.controller.getSource()==="tahoe";if(!(this.props.isFullscreenRequired&&!e.isFullscreen())){var a=e.getCurrentTimePosition(),i=e.getVolume();switch(r("Event").getKeyCode(t)){case r("Keys").SPACE:if(n&&t.preventDefault(),e.isState("playing")){if(this.props.isLiveStreaming){this.$3();break}this.setState({action:"pause"}),e.pause("user_initiated")}else{if(this.props.isLiveStreaming){this.$4();break}this.setState({action:"play"}),e.play("user_initiated")}break;case r("Keys").LEFT:if(this.props.isLiveStreaming){this.props.isLiveRewindEnabled&&(o("LiveRewindUtils").seekBack(e),this.setState({action:"rewind"}));break}this.setState({action:"rewind"}),e.seek(a-this.$5());break;case r("Keys").RIGHT:if(this.props.isLiveStreaming){this.props.isLiveRewindEnabled&&(o("LiveRewindUtils").seekForward(e),this.setState({action:"forward"}));break}this.setState({action:"forward"}),e.seek(a+this.$5());break;case r("Keys").UP:if(!e.isBroadcaster()&&e.isAudioBlocked())break;n&&t.preventDefault();var l=Math.min(i+m,1);this.setState({action:"volume-up"}),e.setVolume(l),e.isMuted()&&e.unmute();break;case r("Keys").DOWN:if(!e.isBroadcaster()&&e.isAudioBlocked())break;n&&t.preventDefault();var s=Math.max(i-m,0);s<.001?(this.setState({action:"mute"}),e.mute()):(this.setState({action:"volume-down"}),e.setVolume(s));break;case r("Keys").M:if(!e.isBroadcaster()&&e.isAudioBlocked())break;e.isMuted()?(this.setState({action:"unmute"}),e.unmute()):(this.setState({action:"mute"}),e.mute());break;case r("Keys").F:e.isFullscreen()?this.setState({action:"exit-fs"}):this.setState({action:"enter-fs"}),setTimeout(function(){return e.toggleFullscreen()},100);break;case r("Keys").COMMA:this.props.enablePlaybackRateControl&&e.setPlaybackRate(r("clamp")(e.getPlaybackRate()/2,.5,1));break;case r("Keys").PERIOD:this.props.enablePlaybackRateControl&&e.setPlaybackRate(r("clamp")(e.getPlaybackRate()*2,1,2));break}}},n.render=function(){if(!this.state.action)return null;var e=this.props.controller,t="",n="",a=null;switch(this.state.action){case"play":t=u("476305");break;case"pause":t=u("476304");break;case"rewind":t=u("476307"),n="_380-",e.isState("playing")?a=this.props.seekIncrement!==d?null:c.jsx(r("Image.react"),{className:"_pa6",src:u("476306")}):a=this.props.seekFrameWhenPaused?null:c.jsx(r("Image.react"),{className:"_pa6",src:u("476306")});break;case"forward":t=u("476308"),n="_3813",e.isState("playing")?a=this.props.seekIncrement!==d?null:c.jsx(r("Image.react"),{className:"_pa6",src:u("476306")}):a=this.props.seekFrameWhenPaused?null:c.jsx(r("Image.react"),{className:"_pa6",src:u("476306")});break;case"volume-up":case"unmute":t=u("476301");break;case"volume-down":t=u("476302");break;case"mute":t=u("476303");break;case"enter-fs":t=u("476310");break;case"exit-fs":t=u("476309");break}var i=c.jsx(r("FBCircularGlyph.react"),{circleSize:120,className:r("joinClasses")(n,"_3814"),glyph:t,ref:function(t){var e=o("ReactDOM_DEPRECATED").findDOMNode_DEPRECATED(t);!e||!n||(e.classList.remove(n),e.offsetWidth,e.classList.add(n))}});return c.jsx(r("CenteredContainer.react"),{className:"_3815 _381b",fullHeight:!0,horizontal:!0,ref:function(t){var e=o("ReactDOM_DEPRECATED").findDOMNode_DEPRECATED(t);e&&(e.classList.remove("_381b"),e.offsetWidth,e.classList.add("_381b"))},vertical:!0,children:c.jsxs("div",{children:[i,a]})})},t})(c.Component);p.defaultProps={enablePlaybackRateControl:!1,isFullscreenRequired:!1,seekIncrement:d,seekFrameWhenPaused:!1},l.default=p}),98);
|
|
__d("UFI2VideoPlayerRegistry",["EventEmitter","ViewportBounds","destroyOnUnload","getOrCreateDOMID"],(function(t,n,r,o,a,i,l){"use strict";var e=new(r("EventEmitter")),s=new Map,u=new Map,c=new Map,d=new Map,m=new Set,p=new Map;r("destroyOnUnload")(function(){e.removeAllListeners(),s.clear(),u.clear(),c.clear(),d.clear(),m.clear()});function _(e){for(var t=e,n=[];t;)n.unshift(t),t=t.parentElement;return n}function f(e,t){var n=_(e),r=null,o=null;return t.forEach(function(e){for(var t=e[0],a=e[1],i=_(t),l=0;l<n.length;++l){if(n[l]!==i[l]){(o===null||l>o)&&(o=l,r=a);break}l===n.length-1&&(o===null||l>o)&&(o=l,r=a)}}),r}function g(e,t){var n=_(e),r=null,o=null;return t.forEach(function(e){for(var t=e[0],a=e[1],i=_(t),l=0;l<n.length;++l)if(n[l]!==i[l]){(o===null||l>o)&&(o=l,r=a);break}}),r}var h={_associateUFIController:function(n,o){var t=n.getInstanceID(),a=h.findVideoPlayerControllerForElement(n.getRootNode(),o);if(!(!a||a.isState("destroyed"))){var i=u.get(t);if(i){if(!i.isState("destroyed")&&r("getOrCreateDOMID")(i.getRootNode())===r("getOrCreateDOMID")(a.getRootNode()))return;e.emit(t+"/unregister")}u.set(t,a),e.emit(t+"/register",a)}},addOnRegisterListener:function(t){m.add(t)},findVideoPlayerControllerForElement:function(t,n){var e=d.get(n);return e?e.length===1?e[0]:t?f(t,e.filter(function(e){return!e.isState("destroyed")}).map(function(e){return[e.getRootNode(),e]})):null:null},getAvailableUFIController:function(t){var e=p.get(t);if(e)return e;var n=s.get(t.getVideoID());if(!n)return null;if(n.length===1?e=n[0]:e=g(t.getRootNode(),n.map(function(e){return[e.getRootNode(),e]})),e){var r=h.findVideoPlayerControllerForElement(e.getRootNode(),t.getVideoID());if(r!==t)return null;p.set(t,e)}return e},getAvailableVideoPlayerController:function(t){return u.get(t)},getAvailableVideoPlayerControllerForElement:function(t,n){if(!t)return null;var e=c.get(n)||new Map,o=r("getOrCreateDOMID")(t),a=e.get(o)||h.findVideoPlayerControllerForElement(t,n);return e.set(o,a),c.set(n,e),a},getAvailableVideoPlayerControllerTime:function(t){var e=h.getAvailableVideoPlayerController(t);if(!e)return null;var n=e.getCurrentTimePosition();return n>=0?Math.floor(n):null},getAvailableVideoPlayerControllerTimeForElement:function(t,n){if(!t)return null;var e=h.getAvailableVideoPlayerControllerForElement(t,n);if(!e)return null;var r=e.getCurrentTimePosition();return r>=0?Math.floor(r):null},registerUFIController:function(n,r,o){var t=n.getInstanceID(),a=n.getFluentContentToken();if(!(a==null||a==="")){var i=s.get(a);i?i.push(n):(i=[n],s.set(a,i)),e.addListener(t+"/register",r),e.addListener(t+"/unregister",o),h._associateUFIController(n,a)}},registerVideoPlayerController:function(t){var e=t.getVideoID(),n=d.get(e);n?n.push(t):(n=[t],d.set(e,n),c.delete(e)),m.forEach(function(e){return e()});var r=s.get(e);r&&r.forEach(function(t){return h._associateUFIController(t,e)})},removeOnRegisterListener:function(t){m.delete(t)},scrollToAvailableVideo:function(t){var e=h.getAvailableVideoPlayerController(t);if(e){var n=r("ViewportBounds").getElementPosition(e.getRootNode());window.scroll(0,n.y)}},seekAvailableVideoPlayerController:function(t,n){var e=h.getAvailableVideoPlayerController(t);e&&["ready","playing","paused","finished"].includes(e.getState())&&(e.pause("seek_initiated"),e.seek(n),e.play("seek_initiated"))},setAvailableVideoPlayerControllerSphericalViewport:function(t,n){var e=h.getAvailableVideoPlayerController(t);e&&e.emit("SphericalVideoViewportTagComment/click",n)},unregisterVideoPlayerControllerForElement:function(t,n){var e=d.get(n);if(e){var r=h.findVideoPlayerControllerForElement(t,n);if(r!=null){var o=e.findIndex(function(e){return e.getRootNode()===r.getRootNode()});e.splice(o,1),d.set(n,e)}}}},y=h;l.default=y}),98);
|
|
__d("VODPresenceCVCDisplayStage",[],(function(t,n,r,o,a,i){var e=Object.freeze({PRE_ENTER:"pre_enter",POST_ENTER:"post_enter"});i.default=e}),66);
|
|
__d("VideoPlayerHTML5ContextMenu.react",["cx","fbt","ContextualLayer.react","DOMQuery","Event","FBClipboardLink.react","Focus","FullScreen","Keys","LayerAutoFocus","LayerHideOnEscape","MountedContextMenu.react","ODS","ReactDOM_DEPRECATED","ReactXUIMenu","SubscriptionsHandler","URI","VideoPermalinkURI","VideoPlayerExperiments","getFullScreenElement","react"],(function(t,n,r,o,a,i,l,s,u){"use strict";var e,c,d,m=c||(c=o("react")),p=.35,_=6,f=60,g=(function(t){function n(){for(var e,n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a))||this,e.state={permalinkVisible:!1,fullscreened:!1,screenWidth:screen.width,screenHeight:screen.height},e.refs_copyPermalinkMenuItem=null,e.refs_menu=null,e.$2=function(){var t=r("getFullScreenElement")(),n=e.props.rootContainer,a=!!(r("FullScreen").isFullScreen()&&t&&n&&o("DOMQuery").contains(t,n));e.setState({fullscreened:a})},e.$7=function(){e.props.onTogglePause&&e.props.onTogglePause()},e.$8=function(){e.props.onToggleMute&&e.props.onToggleMute()},e.$4=function(){o("Focus").set(o("ReactDOM_DEPRECATED").findDOMNode_DEPRECATED(e.refs_permalinkText)),e.setState({permalinkVisible:!0})},e.$3=function(){e.setState({permalinkVisible:!1})},e.$9=function(){o("ReactDOM_DEPRECATED").findDOMNode_DEPRECATED(e.refs_permalinkText).select()},e.$10=function(t){r("Event").getKeyCode(t)===r("Keys").ESC&&e.setState({permalinkVisible:!1})},e.$11=function(e){e.preventDefault()},e.$14=function(){(d||(d=o("ODS"))).bumpEntityKey(2079,"videos","copy_video_url.click")},babelHelpers.assertThisInitialized(e)||babelHelpers.assertThisInitialized(e)}babelHelpers.inheritsLoose(n,t);var a=n.prototype;return a.componentDidMount=function(){var e=this.refs_permalinkLayer.layer;this.$1=new(r("SubscriptionsHandler")),this.$1.addSubscriptions(r("FullScreen").subscribe("changed",this.$2),e.subscribe("hide",this.$3),e.subscribe("show",this.$4)),this.props.initialPosition&&this.refs_menu.showAt(this.props.initialPosition.x,this.props.initialPosition.y)},a.componentWillUnmount=function(){this.$1&&this.$1.release()},a.$5=function(){return this.props.paused?u._(/*BTDS*/"Lej\u00e1tsz\u00e1s"):u._(/*BTDS*/"Sz\u00fcneteltet\u00e9s")},a.$6=function(){return this.props.muted?u._(/*BTDS*/"N\u00e9m\u00edt\u00e1s kikapcsol\u00e1sa"):u._(/*BTDS*/"N\u00e9m\u00edt\u00e1s")},a.hidePermalinkOverlay=function(){this.$3()},a.$12=function(){var e,t;if(this.state.fullscreened)e=this.state.screenWidth,t=this.state.screenHeight;else{var n=this.props.rootContainer.getBoundingClientRect();e=n.width,t=n.height}return{width:e,height:t}},a.$13=function(t){var e=this,n=this.props.permalinkURL;if(n){var r={width:t+"px"};return m.jsxs("div",{className:"_26oo",style:r,children:[m.jsx("input",{className:"_26op autofocus",onFocus:this.$9,onKeyDown:this.$10,onMouseUp:this.$11,readOnly:!0,ref:function(n){return e.refs_permalinkText=n},type:"text",value:n}),m.jsx("button",{className:"_26oq",onClick:this.$3,children:u._(/*BTDS*/"Bez\u00e1r\u00e1s")})]})}return null},a.renderLayers=function(){var e=this,t=this.props.permalinkURL&&this.state.permalinkVisible,n=0,o=0,a=null,i=this.$12(),l=i.height,s=i.width,u=s*p;return n=s/2-u/2,o=-l+_,this.state.fullscreened&&(o+=f),a=this.$13(u),m.jsx(r("ContextualLayer.react"),{alignment:"left",behaviors:[r("LayerHideOnEscape"),r("LayerAutoFocus")],contextRef:function(){return e.props.videoContainer},offsetX:n,offsetY:o,position:"below",ref:function(n){return e.refs_permalinkLayer=n},shown:t,children:a},"permalinkOverlay")},a.$15=function(){var t=this;if(!this.props.permalinkURL)return null;var n=new(e||(e=r("URI")))(this.props.permalinkURL);return o("VideoPermalinkURI").isValid(n)?(n.addQueryData("t",this.props.getVideoCurrentTimePosition()),m.jsx(r("ReactXUIMenu").Item,{ref:function(n){return t.refs_copyPermalinkMenuItem=n},children:m.jsx(r("FBClipboardLink.react"),{onComplete:this.$14,tooltip:null,tooltipSuccess:null,value:n.toString(),children:u._(/*BTDS*/"Vide\u00f3 URL-c\u00edm\u00e9nek m\u00e1sol\u00e1sa a jelenlegi id\u0151ponttal")})})):null},a.$16=function(){var e=this;return this.props.permalinkURL?r("VideoPlayerExperiments").copyLinkInContextMenu?m.jsx(r("ReactXUIMenu").Item,{ref:function(n){return e.refs_copyPermalinkMenuItem=n},children:m.jsx(r("FBClipboardLink.react"),{onComplete:this.$14,tooltip:null,tooltipSuccess:null,value:this.props.permalinkURL,children:u._(/*BTDS*/"Vide\u00f3 URL-c\u00edm\u00e9nek m\u00e1sol\u00e1sa")})}):m.jsx(r("ReactXUIMenu").Item,{onclick:this.$4,ref:function(n){return e.refs_permalinkMenuItem=n},children:u._(/*BTDS*/"Vide\u00f3 URL-c\u00edme")}):null},a.render=function(){var e=this,t=this.props.paused!==null&&m.jsx(r("ReactXUIMenu").Item,{onclick:this.$7,children:this.$5()}),n=this.props.isLive?null:this.$15(),o=m.jsxs(r("ReactXUIMenu"),{children:[t,m.jsx(r("ReactXUIMenu").Item,{onclick:this.$8,children:this.$6()}),this.$16(),n,this.props.children]});return m.jsxs("span",{children:[m.jsx(r("MountedContextMenu.react"),{mountedTriggerElem:this.props.videoContainer,menu:o,ref:function(n){return e.refs_menu=n}}),this.renderLayers()]})},n})(m.Component);l.default=g}),226);
|
|
__d("VideoContextMenu",["Bootloader","CurrentUser","EventListener","ReactDOM_DEPRECATED","URI","UserAgent","VideoPlayerHTML5ContextMenu.react","isFacebookURI","react"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=o("react")),c=/(instagram)/g,d=(function(){function t(t,n,a){var i=this;if(this.$10=function(){for(var e in i.$8){var t=i.$8[e].name,n=i.$8[e].option,r=i.$8[e].description,o=i.$8[e].closeMessage;i.$2.hasOption(t,n)?i.$13(t,n,r,o):i.$12(t,n)}i.$9()},this.$9=function(){i.$6&&i.$14()},this.$11=function(e){var t=/^a$/i.test(e.target.nodeName||""),n=t||r("CurrentUser").isEmployee()&&(r("UserAgent").isPlatform("Mac OS X")?e.getModifiers().meta:e.getModifiers().ctrl);n&&i.$6?(o("ReactDOM_DEPRECATED").unmountComponentAtNode_DEPRECATED(i.$4),delete i.$6):!n&&!i.$6&&(e.preventDefault(),i.$14(e))},this.$8={debugOverlay:{name:"DebugOverlay",option:"hidden",description:"Employee Debug Info",closeMessage:"Hide Debug Information"},statsForNerds:{name:"StatsForNerds",option:"hidden",description:"Show video stats",closeMessage:"Hide video stats"}},this.$2=t,this.$3=a,this.$4=n,this.$1={},this.$5=null,this.$3.permalinkURL){var l=new(e||(e=r("URI")))(this.$3.permalinkURL).getQualifiedURI();(!r("isFacebookURI")(l)||l.getSubdomain()==="developers"||l.getSubdomain()==="ai"||l.getSubdomain()==="sparkar")&&(l.setSubdomain("www"),l.setDomain(l.getDomain().replace(c,"facebook"))),this.$5=l.toString()}var s=["muteVideo","unmuteVideo","changeVolume","beginPlayback","pausePlayback","finishPlayback","adBreakIndicatorShowing"];["enterWatchAndScroll","exitWatchAndScroll"].forEach(function(e){return t.addListener(e,function(){i.$6&&i.$6.hidePermalinkOverlay(),i.$9()})}),t.addListener("optionsChange",this.$10),this.$10(),s.forEach(function(e){return t.addListener(e,i.$9)}),r("EventListener").listen(this.$2.getRootNode(),"contextmenu",this.$11)}var n=t.prototype;return n.setPermalinkURL=function(t){this.$5=t,this.$9()},n.$12=function(t,n){this.$7&&this.$7.removeMenuItem(t,n)},n.$13=function(t,n,o,a){var e=this;r("Bootloader").loadModules(["VideoComponentOptionMenuItems"],function(r){e.$7||(e.$7=new r(e.$2,e.$9)),e.$7.addComponentOptionMenuItem(t,n,o,a)},"VideoContextMenu")},n.$15=function(t,n){if(this.$7)return this.$7.getComponentOptionMenuItem(t,n)},n.$14=function(t){var e=this,n=this.$15(this.$8.debugOverlay.name,this.$8.debugOverlay.option),a=this.$15(this.$8.statsForNerds.name,this.$8.statsForNerds.option),i=this.$2.getRootNode(),l=this.$2.getContainerNode(),s=function(){return Math.round(e.$2.getCurrentTimePosition())};this.$6=o("ReactDOM_DEPRECATED").render_DEPRECATED(u.jsxs(r("VideoPlayerHTML5ContextMenu.react"),{rootContainer:i,videoContainer:l,paused:this.$16()?null:!this.$2.isState("playing"),muted:this.$2.isMuted(),permalinkURL:this.$5,initialPosition:t?{x:t.clientX,y:t.clientY}:void 0,getVideoCurrentTimePosition:s,onTogglePause:function(){return e.$17()},onToggleMute:function(){return e.$18()},isLive:this.$2.isLiveVideo(),children:[n,a]}),this.$4)},n.$16=function(){if(this.$2.getOption("VideoContextMenu","disablePlayPauseMenuItem")||this.$2.getOption("VideoContextMenu","disablePauseMenuItem")&&!this.$2.isState("paused"))return!0;var e=this.$2.getOption("VideoWithCommercialBreak","controller");return!!(e&&e.getIsDuringTransition())},n.$18=function(){this.$2.isMuted()?this.$2.unmute():this.$2.mute()},n.$17=function(){this.$2.isState("playing")?this.$2.pause("user_initiated"):this.$2.play("user_initiated")},t})();l.default=d}),98);
|
|
__d("VideoFeedRegister",["invariant","Bootloader","FeedVideoPlayerController","VideoAutoplayControllerX","VideoPlayerExperiments","VideoPlayerFeedRegisterConfig"],(function(t,n,r,o,a,i,l,s){function e(e,t){var n=t.controller;t.controller.getOption("VideoWithInstreamVideo","enabled")&&(t.controller=t.controller.getOption("VideoWithInstreamVideo","controller"));var o=new(r("FeedVideoPlayerController"))(e,t);if(t.controller.registerOption("WatchAndScroll","isEligible",function(){return t.wnsEnabled}),t.controller.registerOption("GamingVideo","isGamingVideo",function(){return t.isGamingVideo}),t.channelVersion){t.channelVersion==="channel_view"&&(t.channelModule||s(0,12396));var a=t.channelModule;if((t.channelVersion!=="channel_view"||!a.getInteraction())&&r("VideoPlayerFeedRegisterConfig").watchAndScrollModule&&r("VideoPlayerFeedRegisterConfig").watchAndScrollModule.isActive()){r("VideoPlayerFeedRegisterConfig").watchAndScrollModule.registerChannelVideoController(t.controller);return}t.channelVersion==="channel_view"&&a.registerVideoController(t.controller)}else{var i=o.getVideoPlayerController();i&&i.runOnApiReady(function(){r("VideoAutoplayControllerX").registerVideoUnit(o)})}t.wnsEnabled&&r("VideoPlayerFeedRegisterConfig").watchAndScrollModule&&r("VideoPlayerFeedRegisterConfig").watchAndScrollModule.registerVideoController(t.controller,t.videoChannelCaller,r("VideoPlayerFeedRegisterConfig").watchAndScrollV3,r("VideoPlayerFeedRegisterConfig").wnsChannelsIntegrationEnabled),!r("VideoPlayerExperiments").disableDisableOffscreenPlayModule&&r("VideoPlayerFeedRegisterConfig").disableOffscreenPlayModule&&r("VideoPlayerFeedRegisterConfig").disableOffscreenPlayModule.registerVideoUnit(o),t.autoPlayWithChannelViewOrSnowlift&&n.runOnApiReady(function(){r("Bootloader").loadModules(["PhotoSnowlift"],function(e){return e.bootstrap(n.getVideoURL())},"VideoFeedRegister")})}l.registerVideoUnit=e}),98);
|
|
__d("VideoPlayerRegistry",["EventEmitter","Promise","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e,s=new Set,u=new(r("EventEmitter")),c="added",d="removed";function m(e,t){return u.addListener(e,t)}function p(e,t){return u.once(e,t)}function _(e){return s.has(e)}function f(e){return _(e)?!1:(s.add(e),u.emit(c,e),!0)}function g(e){return _(e)?(s.delete(e),u.emit(d,e),!0):!1}function h(){return s.size}function y(){return Array.from(s)}function C(e){return b.apply(this,arguments)}function b(){return b=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t){var r=null;return y().forEach(function(e){e.getByRootNode()===t&&(r=e)}),r==null&&(r=yield new(e||(e=n("Promise")))(function(e,n){var r=m(c,function(n){n.getRootNode()===t&&(r.remove(),e(n))})})),r}),b.apply(this,arguments)}l.ADDED=c,l.REMOVED=d,l.addListener=m,l.once=p,l.has=_,l.add=f,l.remove=g,l.count=h,l.getList=y,l.getByRootNode=C}),98);
|
|
__d("VideoPlayerRegistryComponent",["invariant","SubscriptionsHandler","VideoPlayerRegistry"],(function(t,n,r,o,a,i,l,s){var e=(function(){function e(e){this.$1=e||null,this.$2=new(r("SubscriptionsHandler")),this.$1&&this.$3()}var t=e.prototype;return t.destroy=function(){this.$4(),this.$1=null},t.getController=function(){var e=this.$1;return e||s(0,2032),e},t.enable=function(t){this.$1&&this.$1!==t&&this.$4(),this.$1=t,this.$3()},t.disable=function(t){this.$4()},t.$3=function(){var e=this,t=this.getController();o("VideoPlayerRegistry").add(t),this.$2.addSubscriptions(t.addListener("stateChange",function(){t.isState("destroyed")&&e.destroy()}))},t.$4=function(){var e=this.getController();this.$2.release(),this.$2.engage(),o("VideoPlayerRegistry").remove(e)},e})();l.default=e}),98);
|
|
__d("VideoScrubberPreviewComponent",[],(function(t,n,r,o,a,i){var e=(function(){function e(t,n){var r=this;if(!n)throw new Error("VideoScrubberPreview Component config null.");this.$3=n,this.$4=t,this.$1=n.hasPreviewThumbnails,this.$2=e.getSpriteURIs(n.spriteIndexToURIMap),this.$5(),this.$4.addListener("switchedToFullVideo",function(){return r.$5()})}var t=e.prototype;return t.hasPreviewThumbnails=function(){return this.$1},t.$5=function(){var e=this;this.$4.registerOption("VideoScrubberPreviewComponent","scrubberPreviewSprites",function(){return e.getSprites()}),this.$4.registerOption("VideoScrubberPreviewComponent","hasPreviewThumbnails",function(){return e.hasPreviewThumbnails()}),this.$4.registerOption("VideoScrubberPreviewComponent","previewThumbnailInformation",function(){return e.getPreviewThumbnailInformation()})},t.getSprites=function(){return this.$2},t.getPreviewThumbnailInformation=function(){return this.hasPreviewThumbnails()?this.$3.imagesPerColumn=this.$3.maxImagesPerSprite/this.$3.imagesPerRow:this.$3.imagesPerColumn=0,this.$3},e.getSpriteURIs=function(t){var e=new Map;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.set(parseInt(n,10),t[n]);return e},e})();i.default=e}),66);
|
|
__d("VideoUpdateStateDirectory",["VideoStateDirectory"],(function(t,n,r,o,a,i,l){"use strict";var e=(function(){function e(){var e=this;this.$2=function(){var t=e.$1,n=t.getVideoID(),o=t.getCurrentTimePosition(),a=t.getPlaybackDuration();r("VideoStateDirectory").setPlaybackState(n,o,a)}}var t=e.prototype;return t.enable=function(t){this.$1=t,t.addListener("finishPlayback",this.$2),t.addListener("pausePlayback",this.$2)},t.disable=function(){},e})();l.default=e}),98);
|
|
__d("VideoVODCVCFetchingQuery_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="9946967182016276"}),null);
|
|
__d("VideoVODCVCFetchingQuery.graphql",["VideoVODCVCFetchingQuery_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e={defaultValue:null,kind:"LocalArgument",name:"prev_cvc"},t={defaultValue:null,kind:"LocalArgument",name:"stage"},r={defaultValue:null,kind:"LocalArgument",name:"video_asset_id"},o={defaultValue:null,kind:"LocalArgument",name:"video_id"},a=[{alias:null,args:[{kind:"Variable",name:"prev_cvc",variableName:"prev_cvc"},{kind:"Variable",name:"stage",variableName:"stage"},{kind:"Variable",name:"video_asset_id",variableName:"video_asset_id"},{kind:"Variable",name:"video_id",variableName:"video_id"}],concreteType:"VODPresenceCVCResponse",kind:"LinkedField",name:"vod_presence_cvc",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"cvc",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"next_poll_ms",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_displayed",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"video_asset_id",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[e,t,r,o],kind:"Fragment",metadata:null,name:"VideoVODCVCFetchingQuery",selections:a,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[o,t,r,e],kind:"Operation",name:"VideoVODCVCFetchingQuery",selections:a},params:{id:n("VideoVODCVCFetchingQuery_facebookRelayOperation"),metadata:{},name:"VideoVODCVCFetchingQuery",operationKind:"query",text:null}}})();a.exports=e}),null);
|
|
__d("VideoVODCVCFetching",["RelayFBEnvironment","RelayModern","Run","SubscriptionsHandler","VODPresenceCVCDisplayStage","VideoVODCVCFetchingQuery.graphql","clearTimeout","keyMirror","promiseDone","setTimeout"],(function(t,n,r,o,a,i,l){"use strict";var e=r("keyMirror")(r("VODPresenceCVCDisplayStage")),s=1e4,u=(function(){function t(e){var t=this;this.$1=null,this.$3=null,this.$4=null,this.$5=s,this.$6=!1,this.$10=function(){t.$6=!0,r("clearTimeout")(t.$4)},!(e.isAd()||e.isLiveVideo())&&(this.$7=e,e.registerOption("VideoVODCVCFetching","cvcData",function(){return t.$1}),this.$2=new(r("SubscriptionsHandler")),this.$2.addSubscriptions(e.addListener("beginPlayback",function(){t.$3=null}),e.addListener("updateStatus",function(n){e.isState("playing")&&(t.$3===null&&(t.$3=n.position),t.$3+3<=n.position&&(t.$3=1/0,t.$9(e)))}),e.addListener("pausePlayback",this.$10),e.addListener("finishPlayback",function(){return!e.getOption("Looping","isLooping")&&t.$10()}),e.addListener("becomeInvisible",this.$10)),o("Run").onLeave(function(){return t.cleanOnLeave()}))}var n=t.prototype;return n.cleanOnLeave=function(){this.$2&&this.$2.release(),this.$10(),this.$7&&this.$7.hasOption("VideoVODCVCFetching","cvcData")&&this.$7.unregisterOption("VideoVODCVCFetching","cvcData")},n.$9=function(n){this.$6=!1,this.$11(n,e.POST_ENTER)},n.getQueryPromise=function(t,n,a,i){return o("RelayModern").fetchQuery(r("RelayFBEnvironment"),r("VideoVODCVCFetchingQuery.graphql"),{video_id:t.getVideoID(),stage:n,video_asset_id:a,prev_cvc:i})},n.$11=function(n,o){var t,a=this,i=this.getQueryPromise(n,o,this.$8,(t=this.$1)==null?void 0:t.viewerCount);r("promiseDone")(i,function(t){if(!a.$6){var i=t.vod_presence_cvc;if(i){var l=i.cvc||0,u=i.is_displayed,c=i.next_poll_ms||s;a.$8=i.video_asset_id,a.$1={viewerCount:l,showVODIndicator:u},n.emit("VideoVODCVC/viewCountChange",a.$1),c>=0&&o===e.POST_ENTER&&(a.$4=r("setTimeout")(function(){return a.$11(n,o)},c))}}},function(e){a.$6||(a.$4=r("setTimeout")(function(){return a.$11(n,o)},a.$5),a.$5=Math.min(Number.MAX_SAFE_INTEGER,2*a.$5))})},t})();l.default=u}),98);
|
|
__d("VideoVODCVCSubscription",["EntityPresenceClient","Int64","Run","SubscriptionsHandler"],(function(t,n,r,o,a,i,l){"use strict";var e=42,s=7,u=5,c=(function(){function t(e){var t=this;this.$7=function(){t.$5=null,t.$4&&(t.$4&&t.$4.leave(),t.$4=null)},!(e.isAd()||e.isLiveVideo())&&(this.$1=new(r("SubscriptionsHandler")),this.$4=null,this.$2=e,this.$3=this.$2.getPlayerOrigin(),this.$5=null,this.$1.addSubscriptions(e.addListener("beginPlayback",function(){t.$5=null}),e.addListener("updateStatus",function(e){t.$2.isState("playing")&&(t.$5===null&&(t.$5=e.position),t.$5+3<=e.position&&(t.$5=1/0,t.$6()))}),e.addListener("pausePlayback",this.$7),e.addListener("finishPlayback",function(){return!e.getOption("Looping","isLooping")&&t.$7()}),e.addListener("becomeInvisible",this.$7),e.addListener("seekEnd",this.$7),e.addListener("TahoeController/exitTahoe",this.$7)),o("Run").onLeave(function(){return t.cleanOnLeave()}))}var n=t.prototype;return n.cleanOnLeave=function(){this.$7(),this.$1&&this.$1.release()},n.$6=function(){this.$4||(this.$4=o("EntityPresenceClient").enter("vod",this.$2.getVideoID(),this.getLoggingCapabilitiesForEntityPresence().toString()))},n.getLoggingCapabilitiesForEntityPresence=function(){var t,n=(t=r("Int64")).fromInt(0);n=t.fromString(Date.now().toString());var o=7;n=n.shiftLeft(o),n=n.add(t.fromInt(1));var a=64-(e+s+u+o);return n=n.shiftLeft(a),n=n.shiftLeft(u),n=n.add(t.fromInt(this.mapPlayerFormatToCapabilityBits(this.$2.getPlayerFormat()))),n=n.shiftLeft(s),n=n.add(t.fromInt(this.mapPlayerOriginToCapabilityBits(this.$3))),n},n.mapPlayerOriginToCapabilityBits=function(t){if(t===null)return 0;switch(t){case"commerce":return 12;case"direct_inbox":return 4;case"events":return 18;case"explorefeed":return 19;case"fb_stories":return 5;case"group":return 11;case"instant_articles":return 16;case"instant_shopping":return 16;case"live_chaining":return 22;case"living_room":return 9;case"living_room_recap":return 8;case"media_gallery":return 3;case"movie_checkout_flow":return 21;case"newsfeed":return 13;case"notifications":return 7;case"page_timeline":return 17;case"permalink":return 15;case"photosfeed":return 14;case"saved":return 23;case"search":return 20;case"top_live_bookmark":return 1;case"user_timeline":return 24;case"video_home":return 2;case"unknown":default:return 0}},n.mapPlayerFormatToCapabilityBits=function(t){if(t===null)return 0;switch(t){case"inline":return 1;case"snowlift":return 2;case"permalink":return 3;case"channel":return 4;case"full_screen":return 5;case"social_player":return 6;case"tv":return 7;case"misc":return 8;case"watch_scroll":return 9;case"watch_scroll_app_background":return 10;case"watch_and_go":return 11;case"watch_and_browse":return 12;case"canvas":return 13;case"tahoe":return 14;case"fb_stories":return 15;default:return 0}},t})();l.default=c}),98);
|
|
__d("VideoVODCVCUI.react",["ix","Image.react","intlSummarizeNumber","react","vulture"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c=(function(e){function t(){return e.apply(this,arguments)||this}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.render=function(){return r("vulture")("VqWMMW6mMUc-u_j7qd4_xWfYfnY="),u.jsxs("div",{className:"xo6aett xjwep3j x1t39747 x1wcsgtt x1pczhz8 xyxa9uu x1f6kntn xnl36cx x1iorvi4 x1icxu4v xjkvuk6 x25sj25",children:[u.jsx(r("Image.react"),{className:"x1p8j9ns x1n8ftqi",src:s("488783")}),r("intlSummarizeNumber")(this.props.viewerCount)]})},t})(u.PureComponent);l.default=c}),98);
|
|
__d("VideoVODIndicator.react",["cx","fbt","BasicFBNux","JSResource","SubscriptionsHandler","TooltipData","VideoVODCVCUI.react","joinClasses","lazyLoadComponent","react","vulture"],(function(t,n,r,o,a,i,l,s,u){"use strict";var e,c=e||(e=o("react")),d=r("lazyLoadComponent")(r("JSResource")("XUIAmbientNUX.react").__setRef("VideoVODIndicator.react")),m=6171,p=!1,_=(function(e){function t(t){var n;n=e.call(this,t)||this,n.$2=null,n.state={showVODIndicator:!1,isDisplayingAdBreak:!1,viewerCount:null,showNUX:!1},n.$3=function(){o("BasicFBNux").onDismiss(m),n.setState({showNUX:!1})};var r=n.props.vpc;if(n.props.renderLocation==="tahoeBackAffordance"){var a=r.getOption("VideoVODCVCFetching","cvcData");a&&(n.state.showVODIndicator=a.showVODIndicator,n.state.viewerCount=a.viewerCount)}return n}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.initSubscriptions=function(t){var e=this;this.$2=new(r("SubscriptionsHandler")),this.$2.addSubscriptions(t.addListener("VideoVODCVC/viewCountChange",function(t){e.setState({showVODIndicator:t.showVODIndicator,viewerCount:t.viewerCount})}),t.addListener("finishPlayback",function(){return!t.getOption("Looping","isLooping")&&e.setState({showVODIndicator:!1})}),t.addListener("commercialBreak/vodBreakStarting",function(){e.setState({isDisplayingAdBreak:!0})}),t.addListener("commercialBreak/showUFI",function(){e.setState({isDisplayingAdBreak:!1})}))},n.releaseSubscriptions=function(){this.$2&&this.$2.release()},n.componentDidMount=function(){this.initSubscriptions(this.props.vpc)},n.componentWillUnmount=function(){this.releaseSubscriptions()},n.render=function(){var e=this;if(!this.state.showVODIndicator||!this.state.viewerCount||this.state.isDisplayingAdBreak)return null;r("vulture")("CE-q_tGS7veb3O1MpClG4GDBLIg=");var t=null,n=null;return this.state.showNUX?(n=c.jsx(c.Suspense,{fallback:null,children:c.jsx(d,{contextRef:function(){return e.$1},position:"right",shown:!0,onCloseButtonClick:this.$3,children:u._(/*BTDS*/"L\u00e1thatod, \u00e9ppen h\u00e1nyan n\u00e9zik ezt a vide\u00f3t.")})}),p||(p=!0,o("BasicFBNux").onView(m))):t=o("TooltipData").propsFor(u._(/*BTDS*/"A jelenlegi n\u00e9z\u0151k sz\u00e1ma"),"right"),c.jsxs("div",babelHelpers.extends({className:r("joinClasses")("_75ug"+(this.props.renderLocation==="tahoeBackAffordance"?" _7348":"")+(this.props.renderLocation==="videoHomeFeedUnit"?" _72u5":"")+(this.props.renderLocation==="videoNewsFeedUnit"?" _75uh":"")+" uiContextualLayerParent")},t,{children:[c.jsx(r("VideoVODCVCUI.react"),{ref:function(n){return e.$1=n},viewerCount:this.state.viewerCount}),n]}))},t})(c.Component);l.default=_}),226);
|
|
__d("VideoWithFluentUFISupport",["UFI2VideoPlayerRegistry"],(function(t,n,r,o,a,i,l){var e=function(t){r("UFI2VideoPlayerRegistry").registerVideoPlayerController(t)};l.default=e}),98);
|
|
__d("VideoWithLoopingPlayback",["setImmediate"],(function(t,n,r,o,a,i,l){var e=(function(){function e(e,t,n){var o=this;t===void 0&&(t=-1),n===void 0&&(n=!1),this.$5=!1,this.$8=function(){var e,t=o.$1.getOption("FeedAutoplay","isVisibleForAutoplay"),n=o.$1.getOption("WatchAndScroll","isActive"),a=o.$1.getIsInChannel(),i=o.$1.getSource()==="tahoe",l=(e=o.$1.getVideoNodeNullable())==null?void 0:e.loop;o.$7&&l===!1||!o.$5&&(t||t===void 0)&&!n&&!a&&!i&&(!o.$4||o.$3<o.$4)&&(r("setImmediate")(function(){return o.$1.play("loop_initiated")}),o.$3++,o.$4&&o.$3===o.$4-1&&(o.$1.setOption("Looping","isLooping",!1),o.setVideoNodeLoop(!1)))},this.$1=e,this.$2=!0,this.$3=1,this.$4=t>-1?t:null,this.$6=this.$1.addListener("finishPlayback",this.$8),this.$1.registerOption("Looping","isLooping",function(){return o.$2},function(e){return o.$9(e)}),this.$1.registerOption("Looping","disabled",function(){return o.$5},function(e){return o.$5=e}),this.$7=n,this.setVideoNodeLoop(!0)}var t=e.prototype;return t.setVideoNodeLoop=function(t){if(this.$7){var e=this.$1.getVideoNodeNullable();e!=null&&(e.loop=t)}},t.destroy=function(){this.$6!=null&&(this.$6.remove(),this.$6=null),this.$1.hasOption("Looping","isLooping")&&this.$1.unregisterOption("Looping","isLooping"),this.$1.hasOption("Looping","disabled")&&this.$1.unregisterOption("Looping","disabled")},t.isLooping=function(){return this.$2},t.getLoopCount=function(){return this.$3},t.getMaxLoopCount=function(){return this.$4},t.setMaxLoopCount=function(t){this.$4=t>-1?t:null},t.$9=function(t){this.$2=t},e})();l.default=e}),98);
|
|
__d("XVideoWithRapidFeedbackAsyncControllerRouteBuilder",["jsRouteBuilder"],(function(t,n,r,o,a,i,l){var e=r("jsRouteBuilder")("/video/instream_video/rapid_feedback/async/",Object.freeze({is_indicator_shown:!1,is_ad_complete:!1}),void 0),s=e;l.default=s}),98);
|
|
__d("onViewportChanged",["EventListener","emptyFunction","getViewportDimensions","nullthrows","requestAnimationFrame"],(function(t,n,r,o,a,i,l){var e=[],s=!1,u=null,c,d;function m(){var e=r("getViewportDimensions").withoutScrollbars();return{top:0,bottom:e.height,left:0,right:e.width}}function p(t,n){var o={transform:n||r("emptyFunction").thatReturnsArgument,callback:t,needsUpdate:!0};return e.push(o),b(),f(),{remove:_.bind(null,o),scheduleCheck:y.bind(null,o)}}function _(t){var n=e.indexOf(t);n!==-1&&(e.splice(n,1),e.length===0&&(g(),u=null))}function f(){d||(d=r("EventListener").capture(window,"scroll",C),c=r("EventListener").capture(window,"resize",h))}function g(){d!==null&&(d.remove(),d=null),c!=null&&(c.remove(),c=null)}function h(){u=null,C()}function y(e){e.needsUpdate=!0,b()}function C(){e.map(function(e){return e.needsUpdate=!0}),b()}function b(){s||(s=!0,r("requestAnimationFrame")(function(){s=!1,S()}))}function v(e){return e.needsUpdate?(e.needsUpdate=!1,!0):!1}function S(){u||(u=m());var t=e.filter(v),n=t.map(function(e){return e.transform.call(null,r("nullthrows")(u))});t.forEach(function(e,t){return e.callback.call(null,n[t])})}l.default=p}),98);
|
|
__d("VideoWithRapidFeedback",["AsyncRequest","DateConsts","ScriptPath","ViewportTrackingHelper","XVideoWithRapidFeedbackAsyncControllerRouteBuilder","onViewportChanged"],(function(t,n,r,o,a,i,l){var e=10*o("DateConsts").MS_PER_SEC,s=(function(){function t(e,t){var n=this;this.$1=e,this.$2=t,this.$3=0,this.$4=0,this.$6=!1,this.$7=!1,e.isState("playing")&&this.$8(),e.addListener("beginPlayback",function(){return n.$8()}),e.addListener("pausePlayback",function(){return n.$9()}),e.addListener("commercialBreak/vodBreakStarting",function(){return n.$10()}),e.addListener("commercialBreak/showUFI",function(){return n.$11()}),this.$5=this.$12(),r("onViewportChanged")(function(){return n.$13()})}var n=t.prototype;return n.$8=function(){this.$3===0&&(this.$3=Date.now())},n.$9=function(){this.$3>0&&(this.$4+=Date.now()-this.$3),this.$3=0},n.$10=function(){this.$6=!0},n.$11=function(){this.$6&&(this.$7=!0)},n.$13=function(){if(!this.$1.isState("destroyed")){var t=this.$5;if(this.$5=this.$12(),t&&!this.$5){var n=this.$4;this.$3>0&&(n+=Date.now()-this.$3),n>e&&(this.$4=0,this.$3=0,this.$14())}}},n.$12=function(){return o("ViewportTrackingHelper").isVisible(this.$1.getRootNode(),0)},n.$14=function(){var e=null,t=null,n=null,a=null,i=null,l=null,s=this.$1.getOption("VideoWithInstreamVideo","controller");if(s){var u=s.getMostRecentAdInfo();u&&u.adClientToken&&(e=u.adClientToken,t=Date.now()-u.adStartPlayingTimeMs,n=u.adPositionInVideoMs,a=u.playerOrigin,i=u.playerSubOrigin,l=u.playerFormat)}var c={ad_type:this.$2,video_id:this.$1.getVideoID(),is_indicator_shown:this.$6,is_ad_complete:this.$7},d=o("ScriptPath").getScriptPath();d!=null&&(c.script_path=d),e!=null&&(c.ad_client_token=e),t!=null&&(c.elapsed_time_since_ad=t),n!=null&&(c.ad_position_in_video=n),l!=null&&(c.player_format=l),a!=null&&(c.player_origin=a),i!=null&&(c.player_sub_origin=i);var m=r("XVideoWithRapidFeedbackAsyncControllerRouteBuilder").buildUri(c);new(r("AsyncRequest"))(m).send()},t})();l.default=s}),98);
|
|
__d("VideoWithSequentialAutoplay",["Arbiter","SubscriptionsHandler","VideoPlayerHTML5Experiments","destroyOnUnload"],(function(t,n,r,o,a,i){var e=(function(){"use strict";function e(e,t){var r=this;if(this.$1=e,this.$2=t,this.$3=new(n("SubscriptionsHandler")),n("VideoPlayerHTML5Experiments").displayLoopingWhenAutoplayNextVideo&&this.$2&&this.$2!=="0")if(this.$1.hasOption("Looping","disabled"))this.$1.setOption("Looping","disabled",!0);else{var o=this.$1.addListener("optionsChange",function(){r.$1.hasOption("Looping","disabled")&&(r.$1.setOption("Looping","disabled",!0),o.remove())});this.$3.addSubscriptions(o)}this.$1.addListener("finishPlayback",this.$4.bind(this)),this.$3.addSubscriptions(n("Arbiter").subscribe("nextVideoAutoplay",function(e,t){t.nextVideoID==r.$1.getVideoID()&&r.$1.play("autoplay_initiated")})),n("destroyOnUnload")(function(){return r.$3.release()})}var t=e.prototype;return t.$4=function(){n("Arbiter").inform("nextVideoAutoplay",{nextVideoID:this.$2})},e})();a.exports=e}),null); |