You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
21 KiB
JavaScript
1 line
21 KiB
JavaScript
5 years ago
|
(window.__twttrll=window.__twttrll||[]).push([[6],{180:function(e,t,i){var r=i(0);e.exports=function(e){return r.isType("string",e)}},189:function(e,t){var i=/^(dark|light)$/;e.exports=function(e){return i.test(e)}},207:function(e,t,i){var r=i(0);e.exports=function(e){var t={transparent:!1,hideBorder:!1,hideHeader:!1,hideFooter:!1,hideScrollBar:!1};return e=e||"",r.contains(e,"transparent")&&(t.transparent=!0),r.contains(e,"noborders")&&(t.hideBorder=!0),r.contains(e,"noheader")&&(t.hideHeader=!0),r.contains(e,"nofooter")&&(t.hideFooter=!0),r.contains(e,"noscrollbar")&&(t.hideScrollBar=!0),t}},208:function(e,t,i){var r=i(10),n=i(34),s=i(4),o=i(0),a="is-openedAbove",d="is-openedBelow";e.exports=function(e){e.selectors({shareMenuOpener:".js-showShareMenu",shareMenu:".timeline-ShareMenu",shareMenuTimelineHeader:".timeline-Header",shareMenuTimelineFooter:".timeline-Footer"}),e.define("getHeaderHeight",function(){var e=this.selectOne("shareMenuTimelineHeader");return e?e.getBoundingClientRect().height:0}),e.define("getFooterHeight",function(){var e=this.selectOne("shareMenuTimelineFooter");return e?e.getBoundingClientRect().height:0}),e.define("getShareMenuPositionClass",function(e){var t=e.getBoundingClientRect(),i=t.top-this.getHeaderHeight();return this.sandbox.height-t.bottom-this.getFooterHeight()<i?a:d}),e.after("render",function(){this.on("click","shareMenuOpener",function(e,t){var i,a=this,d=n.closest(this.selectors.shareMenu,e.target,this.el);function l(){r.remove(d,i),a.el.removeEventListener("click",l,!1),s.removeEventListener("click",l,!1)}e.preventDefault(),d&&(i=this.getShareMenuPositionClass(t),r.add(d,i),o.async(function(){a.el.addEventListener("click",l,!1),s.addEventListener("click",l,!1)}))})})}},209:function(e){e.exports={INITIAL:1,NEWER:2,OLDER:3}},210:function(e,t,i){var r=i(74),n=i(3),s=i(5);e.exports=function(e){e.selectors({followButton:".follow-button"}),e.define("handleFollowButtonClick",function(e,t){var i=n.intentForFollowURL(t.href);s.asBoolean(t.getAttribute("data-age-gate"))||r.open(i,this.sandbox.sandboxEl,e)}),e.after("render",function(){this.on("click","followButton",function(e,t){this.handleFollowButtonClick(e,t)})})}},211:function(e,t,i){var r=i(34),n=i(10);e.exports=function(e){e.selectors({mediaCard:".MediaCard",mediaCardNsfwDismissalTarget:".MediaCard-dismissNsfw"}),e.define("dismissNsfwWarning",function(e,t){var i=r.closest(this.selectors.mediaCard,t,this.el);i&&n.remove(i,"is-nsfw")}),e.after("render",function(){this.on("click","mediaCardNsfwDismissalTarget",this.dismissNsfwWarning)})}},212:function(e,t,i){var r,n,s=i(10),o=i(32),a=i(174),d=i(34),l=i(71),c=i(18),u=i(11),h=i(199),f=i(6),m={autoplay:"1"},p="js-forceRedraw";e.exports=a.couple(i(213),function(e){function t(e){var t=e.createElement("div");return t.className="MediaCard-mediaAsset",t}e.params({lang:{required:!0,transform:l.matchLanguage,fallback:"en"},videoPlayerBorderRadius:{fallback:{}},videoPlayerBranding:{fallback:!0}}),e.selectors({mediaAsset:".MediaCard-mediaAsset",cardInterstitial:".js-cardPlayerInterstitial",wvpInterstitial:".js-playableMediaInterstitial",sourceIdInfo:".js-tweetIdInfo"}),e.define("videoPlayerOptions",function(){var e=(this.scribeData()||{}).widget_origin,t=this.scribeNamespace()||{};return{addBranding:this.params.videoPlayerBranding,borderRadius:this.params.videoPlayerBorderRadius,languageCode:this.params.lang,widgetOrigin:e,autoPlay:!0,scribeContext:{page:t.page,client:t.client}}}),e.define("replaceInterstitialWithMedia",function(e,t){return f.all([this.restoreLastMediaInterstitial(),c.write(function(){r=e,n=e.parentNode,e.parentNode.replaceChild(t,e)})])}),e.define("restoreLastMediaInterstitial",function(){var e;return r&&n?(e=n.firstElementChild,h.remove(e),c.write(function(){n.replaceChild(r,e)})):f.resolve()}),e.define("playWebVideoPlayerMediaAsset",function(e,t){var i,r=d.closest(this.selectors.sourceIdInfo,t,this.el),n=r.getAttribute("data-tweet-id"),s=h.insertForTweet;return n||(n=r.getAttribute("data-event-id"),s=h.insertForEvent),n?(e.preventDefault(),i=this.selectOne(r,this.selectors.wvpI
|