webpackJsonp([28],{"./generated/javascripts/templates/closure/no-i18n/tiger/components/post/stream-item.js":function(a,b,c){var d,e;d=[c("./public/javascripts/tiger.js"),c("./public/javascripts/mantle.js"),c("./public/javascripts/lib/amd-wrapped/soy/goog.js"),c("./public/javascripts/lib/amd-wrapped/soy/soy.js"),c("./public/javascripts/lib/amd-wrapped/soy/soydata.js")],e=function(a,b,c,d,e){if("undefined"==typeof a)var a={};"undefined"==typeof a.components&&(a.components={}),"undefined"==typeof a.components.post&&(a.components.post={}),a.components.post.stream_item=function(b,c,e){var f="",g=""+d.$$escapeHtml(b.post.isBillboardPost&&b.post.showByline&&""!=b.post.byline?" billboard":"")+d.$$escapeHtml("true"==b.stream?" stream":"")+d.$$escapeHtml(null!=b.post.repost?" streamshare":"");f+=null==b.index||0!=b.index||b.post.sponsored||b.post.isPromoted?"":'
'+a.components.ad.mobile(null,null,e)+"
";var h=e.features.mobile_homepage_ad_frequency_b?[3,7,11,15,19]:e.features.mobile_homepage_ad_frequency_c?[4,9,14,19]:[];if(f+='"+a.components.post.stream_card(b,null,e),null!=b.index){var i=h,j=i.length;if(j>0)for(var k=0;k'+a.components.ad.mobile(null,null,e)+"
":"")+(l==b.index&&19==b.index?''+a.components.ad.mobileBottom(null,null,e)+"
":"")}else f+=(2!=b.index||b.post.sponsored||b.post.isPromoted?"":''+a.components.ad.mobile(null,null,e)+"
")+(13!=b.index||b.post.sponsored||b.post.isPromoted?"":''+a.components.ad.mobileBottom(null,null,e)+"
")}return f+=""},c.DEBUG&&(a.components.post.stream_item.soyTemplateName="tiger.components.post.stream_item"),a.components.post.stream_card=function(b,c,e){var f="",g=!0,h=null!=(null==b.post?null:b.post.repost),i=b.post.aboveHeadline||b.post.leftOfHeadline||b.post.sharingMainImage,j=""+("Liveblog"==(null==b.post.discussionSettings?null:b.post.discussionSettings.mode)?d.$$escapeHtml(b.post.discussionSettings.status):d.$$escapeHtml(b.post.qaStatus)),k=""+("DRAFT"==b.post.status?"status-draft":"SCHEDULED"==b.post.status?"status-scheduled":"status-published"),l=b.post.aboveHeadline&&!b.forcedCompact,m=(l?" stream-item__embiggened ":" stream-item__compact"+(b.forcedCompact?" stream-item__compact--permalink ":"")+" ")+"postlist__item js_post_item "+d.$$escapeHtml(k)+" post-item-"+d.$$escapeHtml(b.pageType)+(b.post.isPromoted?" js_promoted":"");return f+='"+(l?a.components.post.stream_embiggened_card({blog:b.blog,discussionStatus:j,index:b.index,lazyload:g,pageType:b.pageType,parentBlog:b.parentBlog,post:b.post,postBody:b.postBody,truncatedAuthors:b.truncatedAuthors},null,e):a.components.post.stream_compact_card({blog:b.blog,discussionStatus:j,index:b.index,lazyload:g,pageType:b.pageType,parentBlog:b.parentBlog,post:b.post,postBody:b.postBody,forcedCompact:b.forcedCompact,truncatedAuthors:b.truncatedAuthors},null,e))+(b.post.trackingPixel?' ':"")+" "},c.DEBUG&&(a.components.post.stream_card.soyTemplateName="tiger.components.post.stream_card"),a.components.post.stream_embiggened_card=function(b,c,d){var e="",f=(null==b.blog?null:b.blog.blogGroup)||(null==b.blog?null:b.blog.properties.blogGroup),g=(null==b.post?null:b.post.defaultBlogGroup)==f,h=null!=(null==b.post?null:b.post.repost),i=b.post.sponsored,j=!(null!=b.discussionStatus)||i||(null==b.post?null:b.post.storyType)||h,k=b.post.aboveHeadline||b.post.leftOfHeadline||b.post.sharingMainImage,l=b.post.frontpageVideo;return e+=''+(j?a.components.post.stream_card_meta({blog:b.blog,discussionStatus:b.discussionStatus,index:b.index,pageType:b.pageType,parentBlog:b.parentBlog,post:b.post,extraClasses:"hide-for-large-up",isMobile:!0},null,d):"")+a.components.post.stream_card_media({hasImage:k,hasVideo:l,index:b.index,lazyload:b.lazyload,post:b.post},null,d)+(j?a.components.post.stream_card_meta({blog:b.blog,discussionStatus:b.discussionStatus,index:b.index,pageType:b.pageType,parentBlog:b.parentBlog,post:b.post,extraClasses:"hide-for-large-down"},null,d):"")+a.components.post.stream_card_title(b,null,d)+(k||l?a.components.post.stream_card_byline(b,null,d)+(b.postBody?a.components.post.stream_card_excerpt(b,null,d):""):(b.postBody?a.components.post.stream_card_excerpt(b,null,d):"")+a.components.post.stream_card_byline(b,null,d))+"
"},c.DEBUG&&(a.components.post.stream_embiggened_card.soyTemplateName="tiger.components.post.stream_embiggened_card"),a.components.post.stream_compact_card=function(b,c,e){var f="",g=b.post.aboveHeadline||b.post.leftOfHeadline||b.post.sharingMainImage,h=b.post.frontpageVideo,i=b.post.headline,j=(null==b.blog?null:b.blog.blogGroup)||(null==b.blog?null:b.blog.properties.blogGroup),k=(null==b.post?null:b.post.defaultBlogGroup)==j,l=null!=(null==b.post?null:b.post.repost),m=b.post.sponsored,n=!(null!=b.discussionStatus)||m||(null==b.post?null:b.post.storyType)||l,o=e.features.new_permalink_embiggened,p=""+(b.forcedCompact?" stream-item__container--permalink"+(o?" stream-item__container--permalink--embiggened":""):"");return f+=''+(g||h?(b.forcedCompact?'
'+(n?a.components.post.stream_card_meta({blog:b.blog,discussionStatus:b.discussionStatus,index:b.index,pageType:b.pageType,parentBlog:b.parentBlog,post:b.post,extraClasses:"",isMobile:!0,forcedCompact:b.forcedCompact},null,e)+' | ':"")+a.components.post.stream_card_meta_timestamp({index:b.index,isShared:l,pageType:b.pageType,post:b.post},null,e)+"
":"")+(b.forcedCompact?'
':"")+'
'+(b.forcedCompact?"":n?a.components.post.stream_card_meta({blog:b.blog,discussionStatus:b.discussionStatus,index:b.index,pageType:b.pageType,parentBlog:b.parentBlog,post:b.post,extraClasses:"hide-for-large-up",isMobile:!0},null,e):"")+a.components.post.stream_card_media({hasImage:g,hasVideo:h,index:b.index,lazyload:b.lazyload,post:b.post,forcedCompact:b.forcedCompact},null,e)+"
":"")+'
'+(n?a.components.post.stream_card_meta({blog:b.blog,discussionStatus:b.discussionStatus,index:b.index,pageType:b.pageType,parentBlog:b.parentBlog,post:b.post,extraClasses:"hide-for-large-down",isMobile:!0,forcedCompact:b.forcedCompact},null,e):"")+(i?a.components.post.stream_card_title(b,null,e):a.components.post.stream_card_title({index:b.index,post:b.post,extraClasses:"card-headline__no-headline"},null,e))+(i?"":b.postBody?a.components.post.stream_card_excerpt({postBody:b.postBody,extraClasses:"card-excerpt__no-title"},null,e):"")+a.components.post.stream_card_byline(b,null,e)+(i&&!b.forcedCompact&&b.postBody?a.components.post.stream_card_excerpt({postBody:b.postBody,extraClasses:"hide-for-large-up"},null,e):"")+"
"+(b.forcedCompact?"
":"")+"
"},c.DEBUG&&(a.components.post.stream_compact_card.soyTemplateName="tiger.components.post.stream_compact_card"),a.components.post.stream_card_media=function(b,c,f){var g='';if(b.hasVideo&&!b.forcedCompact)if(b.post.frontpageVideo.isLooping)g+="
';else if(f.features.stream_video_thumbnail){g+='
"}else g+='
';else g+=b.hasImage&&(b.post.aboveHeadline||b.post.leftOfHeadline)?a.components.post.mediautils.streamImageContainer({lazyload:b.lazyload,image:b.post.aboveHeadline?b.post.aboveHeadline:b.post.leftOfHeadline,permalink:b.post.securePermalink,isPromoted:b.post.promotedPost,isAboveHeadline:b.post.aboveHeadline,storyTypeIndex:b.index,score:b.post.reviewScore,forcedCompact:b.forcedCompact},null,f):a.components.post.mediautils.streamImageContainer({lazyload:b.lazyload,image:b.post.customSharingMainImage?b.post.customSharingMainImage:b.post.sharingMainImage,permalink:b.post.securePermalink,isPromoted:b.post.promotedPost,isAboveHeadline:b.post.aboveHeadline,storyTypeIndex:b.index,score:b.post.reviewScore},null,f);return g+="
"},c.DEBUG&&(a.components.post.stream_card_media.soyTemplateName="tiger.components.post.stream_card_media"),a.components.post.stream_card_meta=function(b,c,e){var f="",g=(null==b.post?null:b.post.defaultBlogGroup)==(null==b.blog?null:b.blog.blogGroup),h=null!=(null==b.post?null:b.post.repost),i=b.post.sponsored,j=b.parentBlog&&b.parentBlog.displayName!=b.blog.displayName?b.parentBlog.displayName+" | "+b.post.defaultBlogDisplayName:b.post.defaultBlogDisplayName;return f+='"},c.DEBUG&&(a.components.post.stream_card_meta.soyTemplateName="tiger.components.post.stream_card_meta"),a.components.post.stream_card_title=function(a,b,c){var f="",g=""+d.$$filterNormalizeUri(a.post.securePermalink);return g=e.VERY_UNSAFE.$$ordainSanitizedUriForInternalBlocks(g),f+='"},c.DEBUG&&(a.components.post.stream_card_title.soyTemplateName="tiger.components.post.stream_card_title"),a.components.post.stream_card_byline=function(b,c,f){var g="",h=null!=(null==b.post?null:b.post.repost),i=b.post.sponsored||b.post.isPromoted,j=""+(b.post.promotionByline&&""!=b.post.promotionByline?d.$$escapeHtml(b.post.promotionByline):b.post.author&&b.post.author.displayName?d.$$escapeHtml(b.post.author.displayName):""),k=b.post.sponsored,l=""+(b.post.showByline&&""==b.post.byline&&(null==b.post.author?null:b.post.author.avatar)?"//kinja.com/"+d.$$escapeHtml(b.post.author.screenName):"");l=e.VERY_UNSAFE.$$ordainSanitizedHtmlForInternalBlocks(l);var m=b.post.byline&&""!=b.post.byline?b.post.byline:b.post.author.displayName,n=b.post.authors,o=b.post.defaultBlogId&&86286==b.post.defaultBlogId,p=h&&!o,q=b.post.showByline&&b.post.byline,r=(b.post.hideAuthorInfo||h&&!p)&&!k&&!q;return g+='"},c.DEBUG&&(a.components.post.stream_card_byline.soyTemplateName="tiger.components.post.stream_card_byline"),a.components.post.stream_card_meta_author=function(a,b,c){var e='"},c.DEBUG&&(a.components.post.stream_card_meta_author.soyTemplateName="tiger.components.post.stream_card_meta_author"),a.components.post.stream_card_meta_timestamp=function(b,c,f){var g='',h=""+d.$$filterNormalizeUri(b.post.securePermalink);return h=e.VERY_UNSAFE.$$ordainSanitizedUriForInternalBlocks(h),g+='"+("permalink"==b.pageType?b.isShared?a.messages.time.relativeTime({type:b.post.repost.repostTime.relative.type,amount:b.post.repost.repostTime.relative.amount,hmma:b.post.repost.repostTime.hmma,day:b.post.repost.repostTime.day,Mddyyhmma:b.post.repost.repostTime.Mddyyhmma,timestamp:b.post.repost.repostTime.timestamp},null,f):a.messages.time.relativeTime({type:b.post.publishTime.relative.type,amount:b.post.publishTime.relative.amount,hmma:b.post.publishTime.hmma,day:b.post.publishTime.day,Mddyyhmma:b.post.publishTime.Mddyyhmma,timestamp:b.post.publishTime.timestamp},null,f):"DRAFT"==b.post.status?"Draft: "+d.$$escapeHtml(d.$$formatTime(b.post.publishTime.timestamp,"M/dd/yy h:mma",b.post.publishTime.timezone,"en-US")):"SCHEDULED"==b.post.status?"Scheduled: "+d.$$escapeHtml(d.$$formatTime(b.post.publishTime.timestamp,"M/dd/yy h:mma",b.post.publishTime.timezone,"en-US")):b.isShared?a.messages.time.relativeTime({type:b.post.repost.repostTime.relative.type,amount:b.post.repost.repostTime.relative.amount,hmma:b.post.repost.repostTime.hmma,day:b.post.repost.repostTime.day,Mddyyhmma:b.post.repost.repostTime.Mddyyhmma,timestamp:b.post.repost.repostTime.timestamp},null,f):a.messages.time.relativeTime({type:b.post.publishTime.relative.type,amount:b.post.publishTime.relative.amount,hmma:b.post.publishTime.hmma,day:b.post.publishTime.day,Mddyyhmma:b.post.publishTime.Mddyyhmma,timestamp:b.post.publishTime.timestamp},null,f))+" "},c.DEBUG&&(a.components.post.stream_card_meta_timestamp.soyTemplateName="tiger.components.post.stream_card_meta_timestamp"),a.components.post.stream_card_excerpt=function(a,b,c){return'"},c.DEBUG&&(a.components.post.stream_card_excerpt.soyTemplateName="tiger.components.post.stream_card_excerpt"),a.components.post.stream_card_meta_tools=function(b,c,e){var f="",g=b.post.replyCount?b.post.replyCount:0;f+='"},c.DEBUG&&(a.components.post.stream_card_meta_tools.soyTemplateName="tiger.components.post.stream_card_meta_tools")}.apply(b,d),!(void 0!==e&&(a.exports=e))},"./public/javascripts/app/post/post.permalinkRecirc.module.es6":function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b}function e(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var f=e(c("./node_modules/lodash/find.js")),g=e(c("./public/javascripts/lib/jquery.js")),h=e(c("./public/javascripts/model/post/Post.js")),i=e(c("./public/javascripts/apiclient/post.js")),j=e(c("./public/javascripts/apiclient/comment.js")),k=c("./public/javascripts/apiclient/blog.es6"),l=e(c("./public/javascripts/singleton/WindowController.js")),m=e(c("./public/javascripts/module/readingList/PermalinkReadingListItem.es6")),n=e(c("./public/javascripts/singleton/Feature.js")),o=d(c("./public/javascripts/module/ads/singleton/BulbsDynamicAdsHelper.es6")),p=e(c("./public/javascripts/lib/ads/src/Eventify.js")),q=e(c("./public/javascripts/module/readingList/utils/extractPromotionInformation.es6")),r=e(c("./public/javascripts/module/readingList/ScrollReadingListItem.es6")),s=e(c("./public/javascripts/module/readingList/PermalinkRecircAdBreak.es6")),t=e(c("./public/javascripts/apiclient/likestate.js")),u=e(c("./public/javascripts/app/post/mixins/post.successMessage.js")),v=e(c("./public/javascripts/singleton/CurrentUser.js")),w=e(c("./public/javascripts/gawkerlib/DetectAdBlocker.es6"));c("./generated/javascripts/templates/closure/no-i18n/tiger/messages/postAction.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/branding/gmg-avatars.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/post/type/scrollListItem.js");var x={readingList:[],nativePromotionIndices:[2,5],secondScrollExcerptCutoff:320,start:function a(b){var c=this,d=document.querySelector(".js_reading-list"),e=(0,g.default)(d.children[0]),f="collapse"===b.model.get("adZone")||"partners"===b.model.get("adZone");if(d){if(b&&this.readingList.push(b),this.readingListItems=d.querySelectorAll(".js_reading-list-item.reading-list-item-compact"),this.initReadingListLength=this.readingListItems.length,!n.default.isOn("new_permalink_b")||n.default.isOn("eu_disabled")||f||(0,w.default)())this.createWaypointForSecondScrollPost(e,null);else{var h=(0,g.default)(".js_ad-infinite-promotion .js_slot-displayed iframe");if(h&&h.length)this.createWaypointForSecondScrollPost(e,h[0]);else{var i=(0,g.default)(".js_ad-infinite-promotion")[0];i&&p.default.bindDomEvent(i,"kinjaads.INFINITE_PROMOTION.slotrenderended",function(){var a=(0,g.default)(".js_ad-infinite-promotion .js_slot-displayed iframe");c.createWaypointForSecondScrollPost(e,a)})}}return this}},insertPromotionalPostContainer:function a(b,c,d){var e=this,f=(0,g.default)(".js_second-scroll");c&&"dummy"!==c.contentType?this.fetchPost(c.id).then(function(a){var g=a.model.get("plaintext");g&&g.length&&g.length>e.secondScrollExcerptCutoff&&a.model.set("plaintext",g.substring(0,e.secondScrollExcerptCutoff+1).trim()+"...");var h=new r.default({model:a.model,el:f,index:e.readingList.length,initReadingListLength:e.initReadingListLength,maxReturned:e.maxReturned,isLoadMore:!1,renderLoadNextButton:e.renderLoadNextButton,onClickLoadNext:e.onClickLoadNext,noAd:!0,isForcedFeaturedPost:n.default.isOn("new_permalink_b_featured"),isNewPermalink:!0,postPosition:1});h.render(),e.createWaypointForCompactPosts(b,d,c)}):this.createWaypointForCompactPosts(b,d,c)},createWaypointForSecondScrollPost:function a(b,c){var d=this;window.requestAnimationFrame(function(){var a=l.default.registerWaypoint(b,"150%",function(){var e=(0,q.default)(c),f=!!e&&"dummy"===e.contentType,g=d.getForcedSecondScrollPostId(),h=!c||!e||!e.id||f,i={};g?i.id=g:h?i.id=d.readingListItems[0].dataset.postId:i=e,d.insertPromotionalPostContainer(b,i,h),a.destroy()})})},insertNativePromotion:function a(b,c){var d=document.createElement("div"),e=document.createElement("div"),f="native_below_article",g=this.nativePromotionIndices.indexOf(c)+1;d.classList.add("ad-promotions-container","ad-promotions-container--hidden","postlist__item","row"),e.classList.add("dfp"),e.dataset.adUnit="NATIVE_BELOW_ARTICLE",e.dataset.targeting=JSON.stringify({pos:f,ad_index:g,pp_position:c}),e.dataset.articlePosition=2,d.appendChild(e),b.before(d),p.default.bindDomEvent(d,"kinjaads.NATIVE_BELOW_ARTICLE.slotrenderended",function(a){var c="loaded"===a.target.dataset.adLoadState;c&&(b.addClass("reading-list-item-compact--hidden"),d.classList.remove("ad-promotions-container--hidden"))}),o.loadAd(e)},createWaypointForCompactPosts:function a(b,c,d){var e=this;window.requestAnimationFrame(function(){var a=l.default.registerWaypoint(b,"150%",function(){var b=(0,g.default)(".js_reading-list-compact__ad-break"),f=e.getForcedRecircPostId(),h=Array.from(e.readingListItems);c&&(h[0].dataset.postId=h[h.length-1].dataset.postId),h.pop();var i=h.map(function(a,b){var c=parseInt(a.dataset.postId,10)||parseInt(a.attributes.id,10);return 0===b&&f&&(c=f),e.fetchPost(c,(0,g.default)(a),!0)});if((0,w.default)()&&b){var j=document.querySelector(".js_reading-list");(0,g.default)(j.querySelector(".reading-list-item-compact--last")).removeClass("reading-list-item-compact--last"),b[1].setAttribute("style","display: none;")}Promise.all(i).then(function(a){a.forEach(function(a,b){e.createArticle(a.$el,a.model,b)}),Array.from(b).forEach(function(a){var b=l.default.registerWaypoint((0,g.default)(a),"100%",function(){e.createAdBreak(a,d),b.destroy()})})}),a.destroy()})})},createArticle:function a(b,c,d){var e=b.data("postType");this.readingList.some(function(a){return a.model.id===c.id})||(e&&c.set("postType",e),this.nativePromotionIndices.indexOf(d)!==-1&&window.BULBS_ELEMENTS_ADS_MANAGER&&this.insertNativePromotion(b,d),this.renderItem(c,b,d))},addSinglePostGAEvents:function a(b,c){b.find(".card-meta__author a").on("click",function(a){var b=a.target.href,d=b.indexOf("#")!==-1?b.substring(0,b.indexOf("#")):b;window.ga("send","event","Permalink page click', 'stream author click - ".concat(c),d)}),b.find(".js_storytype-type").on("click",function(a){var b=a.target.href,d=b.indexOf("#")!==-1?b.substring(0,b.indexOf("#")):b;window.ga("send","event","Permalink page click","stream story type click - ".concat(c),d)}),b.find(".js_stream-image").on("click",function(a){window.ga("send","event","Permalink page click","stream post click - ".concat(c),(0,g.default)(a.target).parent().parent().parent()[0].href)}),b.find(".js_entry-title a").on("click",function(a){window.ga("send","event","Permalink page click","stream post click - ".concat(c),a.target.href)}),b.find(".js_publish_time").on("click",function(a){window.ga("send","event","Permalink page click","stream post click - ".concat(c),a.target.href)}),b.find(".js_meta__data--comment").on("click",function(a){window.ga("send","event","Permalink page click","stream comments click - ".concat(c),a.target.href)})},createAdBreak:function a(b,c){var d=new s.default({el:b,post:c,articlePosition:2});d.render(),Array.from(b.querySelectorAll(".dfp")).forEach(o.loadAd)},fetchPost:function a(b,c,d){var e=this,j=(0,g.default)('[data-post-id="'+b+'"]').index()+1,l=d?i.default.readNonFull:i.default.readFull;return new Promise(function(a){l({id:b,postPosition:j}).then(function(a){return new h.default(a)}).then(function(d){var g=(0,f.default)(d.get("blogs"),function(a){return a.id===d.get("defaultBlogId")});d.set("defaultBlogGroup",g.properties.blogGroup),(0,k.getParentOf)({blogId:d.get("defaultBlogId")}).then(function(f){d.set("parentBlogId",f),e.fetchCuratedReplyCounts(b).then(function(b){d.set({curatedReplyCounts:b}),a({model:d,$el:c})},function(a){console.warn(a)})})})})},fetchCuratedReplyCounts:function a(b){return new Promise(function(a,c){j.default.getCuratedReplyCount({postId:b}).then(function(b){a(b)},function(a){c(a)})})},likePost:function a(b,c){c.model.get("liked")===!0?(c.model.set({liked:!1}),i.default.unlike({postId:c.model.id}).then(function(){u.default._displaySuccessMessage(tiger.messages.postAction.postDeleted),(0,g.default)(b).removeClass("active");var a=(0,g.default)(b).find(".js_like_count");parseInt(a.text())-1<1?a.text("Save"):a.text(parseInt(a.text())-1)},function(){u.default._displaySuccessMessage(tiger.messages.postAction.postSavedError,{saving:!1})})):(window.ga("send","event","Recommendation","Post Recommended",c.model.attributes.permalink),i.default.like({postId:c.model.id}).then(function(){b.className=b.className+" active",c.model.set({liked:!0}),u.default._displaySuccessMessage(tiger.messages.postAction.postSaved,{screenName:v.default.get("screenName")},{timeout:7e3});var a=(0,g.default)(b).find(".js_like_count");"Save"===a.text()?a.text("1"):a.text(parseInt(a.text())+1)},function(){u.default._displaySuccessMessage(tiger.messages.postAction.postSavedError,{saving:!0})}))},userLikeFlow:function a(b,c,d){var e=this;t.default.getForPosts({postIds:b.id}).then(function(a){b.set({liked:!!a.length});var f=d();b.get("liked")===!0&&c.find(".js_like_icon").addClass("active"),c.find(".js_like_icon").on("click",function(a){a.preventDefault(),e.likePost(a.currentTarget,f)})})},renderItem:function a(b,c,d){var e=this;if(v.default._loggedIn)this.userLikeFlow(b,c,function(){var a=new m.default({model:b,el:c,index:e.readingList.length,initReadingListLength:e.initReadingListLength,maxReturned:e.maxReturned,renderLoadNextButton:e.renderLoadNextButton,onClickLoadNext:e.onClickLoadNext});return e.readingList.push(a),a.render(),e.addSinglePostGAEvents(a.$el,d),a});else{var f=new m.default({model:b,el:c,index:this.readingList.length,initReadingListLength:this.initReadingListLength,maxReturned:this.maxReturned,renderLoadNextButton:this.renderLoadNextButton,onClickLoadNext:this.onClickLoadNext});this.readingList.push(f),f.render(),this.addSinglePostGAEvents(f.$el,d),c.find(".js_like_icon").on("click",function(a){a.preventDefault(),v.default.requireLogin("likePost").done(function(){e.likePost(a.currentTarget,f)})})}},getForcedSecondScrollPostId:function a(){return location.hash.indexOf("___permalink_forced_second_scroll=")!==-1?parseInt(location.hash.split("___permalink_forced_second_scroll=")[1],10):null},getForcedRecircPostId:function a(){return location.hash.indexOf("___permalink_forced_recirc=")!==-1?parseInt(location.hash.split("___permalink_forced_recirc=")[1],10):null}};b.default=x,a.exports=b.default},"./public/javascripts/module/readingList/PermalinkReadingListItem.es6":function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=c("./public/javascripts/lib/backbone.marionette.js"),f=c("./packages/kinja-components/utils/string.js"),g=d(c("./public/javascripts/singleton/Utils.js")),h=d(c("./public/javascripts/lib/underscore.js"));
c("./generated/javascripts/templates/closure/no-i18n/tiger/components/post/stream-item.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/post/list-item.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/post/pe-list-item.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/post/type/featuredScrollListItem.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/post/type/scrollListItem.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/post/type/permalink.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/post/type/permalinkDefault.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/post/type/permalinkFeatured.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/post/type/permalinkVideo.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/header/magazineFeaturedHeader.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/post/button/reply-button.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/post/button/fb-like.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/post/story-type.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/post/post.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/post/header.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/post/meta.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/ad/ads.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/icons/discussion/usage.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/relatedPosts/module.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/relatedPosts/item.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/featuredPost/featuredPostFeaturedMedia.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/featuredPost/featuredPostTitle.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/post/media-utils.js"),c("./generated/javascripts/templates/closure/no-i18n/tiger/components/header/videoHeader.js");var i=e.Layout.extend({getTemplate:function a(){return tiger.components.post.stream_item},serializeData:function a(){if(this&&this.options){var b=this.options.model.get("authors").map(function(a){return a.displayName}),c=this.options.model.get("authors").slice(0,(0,f.truncateStringArray)(b).length);return{blog:this._getBlog(),index:this.options.index,lazyload:!0,pageType:g.default.getKinjaMeta().pageType,parentBlog:this.options.model.get("parentBlogId"),post:this.model.toJSON(!1),postBody:this.model.get("shortExcerpt"),forcedCompact:!0,truncatedAuthors:c}}},hidePromotedLabelIfNecessary:function a(){var b=this.model.get("defaultBlogRecircGroup");b&&"fmgNonSatire"===b&&this.postRegion.getEl(".meta__label--sponsored").hide()},_getBlog:function a(){if(this.$el.attr("data-promoted"))return g.default.getKinjaMeta().blog;var b=this.model.get("defaultBlogId");return h.default.find(this.model.get("blogs"),function(a){return a.id===b})}}),j=i;b.default=j,a.exports=b.default},"./public/javascripts/module/readingList/PermalinkRecircAdBreak.es6":function(a,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var d=c("./public/javascripts/lib/backbone.marionette.js");c("./generated/javascripts/templates/closure/no-i18n/tiger/components/post/type/scrollListItem.js");var e=d.Layout.extend({getTemplate:function a(){return tiger.components.post.type.permalinkRecircAdBreak},serializeData:function a(){return{articlePosition:this.options&&this.options.articlePosition,post:this.options&&this.options.post?this.options.post:void 0}}}),f=e;b.default=f,a.exports=b.default}});
//# sourceMappingURL=28.4401ec666e9e1237ece5.en-US.js.map