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
24 KiB
JavaScript
1 line
24 KiB
JavaScript
5 years ago
|
(window.__twttrll=window.__twttrll||[]).push([[0],{174:function(t,e,r){var i=r(40),n=r(177),o=r(7);(i=Object.create(i)).build=o(i.build,null,n),t.exports=i},175:function(t,e,r){var i=r(38),n=r(21),o=r(36),s=r(0),a=r(7),c=r(35),u=r(5),l=r(181);t.exports=function(t){t.params({partner:{fallback:a(c.val,c,"partner")}}),t.define("scribeItems",function(){return{}}),t.define("scribeNamespace",function(){return{client:"tfw"}}),t.define("scribeData",function(){return{widget_origin:o.rootDocumentLocation(),widget_frame:o.isFramed()&&o.currentDocumentLocation(),widget_partner:this.params.partner,widget_site_screen_name:l(c.val("site")),widget_site_user_id:u.asNumber(c.val("site:id")),widget_creator_screen_name:l(c.val("creator")),widget_creator_user_id:u.asNumber(c.val("creator:id"))}}),t.define("scribe",function(t,e,r){t=s.aug(this.scribeNamespace(),t||{}),e=s.aug(this.scribeData(),e||{}),i.scribe(t,e,!1,r)}),t.define("scribeInteraction",function(t,e,r){var i=n.extractTermsFromDOM(t.target);i.action=t.type,"url"===i.element&&(i.element=n.clickEventElement(t.target)),this.scribe(i,e,r)})}},176:function(t,e,r){var i=r(5),n=r(0);t.exports=function(t){t.define("widgetDataAttributes",function(){return{}}),t.define("setDataAttributes",function(){var t=this.sandbox.sandboxEl;n.forIn(this.widgetDataAttributes(),function(e,r){i.hasValue(r)&&t.setAttribute("data-"+e,r)})}),t.after("render",function(){this.setDataAttributes()})}},177:function(t,e,r){var i=r(41),n=r(0),o=r(178);function s(){i.apply(this,arguments),this.Widget=this.Component}s.prototype=Object.create(i.prototype),n.aug(s.prototype,{factory:o,build:function(){return i.prototype.build.apply(this,arguments)},selectors:function(t){var e=this.Widget.prototype.selectors;t=t||{},this.Widget.prototype.selectors=n.aug({},t,e)}}),t.exports=s},178:function(t,e,r){var i=r(6),n=r(37),o=r(42),s=r(0),a=r(7),c=r(179),u="twitter-widget-";t.exports=function(){var t=o();function e(e,r){t.apply(this,arguments),this.id=u+c(),this.sandbox=r}return e.prototype=Object.create(t.prototype),s.aug(e.prototype,{selectors:{},hydrate:function(){return i.resolve()},prepForInsertion:function(){},render:function(){return i.resolve()},show:function(){return i.resolve()},resize:function(){return i.resolve()},select:function(t,e){return 1===arguments.length&&(e=t,t=this.el),t?(e=this.selectors[e]||e,s.toRealArray(t.querySelectorAll(e))):[]},selectOne:function(){return this.select.apply(this,arguments)[0]},selectLast:function(){return this.select.apply(this,arguments).pop()},on:function(t,e,r){var i,o=this.el;this.el&&(t=(t||"").split(/\s+/),2===arguments.length?r=e:i=e,i=this.selectors[i]||i,r=a(r,this),t.forEach(i?function(t){n.delegate(o,t,i,r)}:function(t){o.addEventListener(t,r,!1)}))}}),e}},179:function(t,e){var r=0;t.exports=function(){return String(r++)}},181:function(t,e){t.exports=function(t){return t&&"@"===t[0]?t.substr(1):t}},182:function(t,e,r){var i=r(72);t.exports=function(t){return t?(t=Array.isArray(t)?t:[t]).reduce(function(t,e){var r=e.getAttribute("data-tweet-id"),n=e.getAttribute("data-rendered-tweet-id")||r;return e.getAttribute("data-tweet-item-type")===i.QUOTE_TWEET.toString()?t[r]={item_type:i.QUOTE_TWEET}:r===n?t[n]={item_type:i.TWEET}:r&&(t[n]={item_type:i.RETWEET,target_type:i.TWEET,target_id:r}),t},{}):{}}},183:function(t,e,r){var i=r(71),n=r(186),o=r(7),s=r(73);function a(t,e,r,o){var a,c;return r=function(t){return"dark"===t?"dark":"light"}(r),a=i.isRtlLang(e)?"rtl":"ltr",c=[t,o?n.holdback_css:n.css,r,a,"css"].join("."),s.resourceBaseUrl+(o?"/holdback":"")+"/css/"+c}t.exports={dmButton:function(){return s.resourceBaseUrl+"/css/"+["dm_button",n.css,"css"].join(".")},tweet:o(a,null,"tweet"),timeline:o(a,null,"timeline"),video:o(a,null,"video"),moment:o(a,null,"moment"),grid:o(a,null,"grid"),periscopeOnAir:function(){return s.resourceBaseUrl+"/css/"+["periscope_on_air",n.css,"css"].join(".")}}},184:function(t,e,r){var i=r(34),n=r(174),o=r(182);t.exports=n.couple(r(175),function(t){t.selectors({tweetIdInfo:".js-tweetIdInfo",quotedTweetInfo:'[data-tweet-item-type="23"]'}),t.define("scri
|