1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[288],{4263:function(t,e,a){var s=a(821),o=["id","data-post"],r=["href"];var n=a(9669),l=a.n(n),i={class:"ex__th position-absolute top-0 start-0 bottom-0 end-0 mb-0"},c=["src","srcset","alt"],u={class:"ex__hd d-flex flex-column justify-content-center align-items-center h-100 py-6 py-md-0 text-center text-white"},p=["src"],d=["innerHTML"],m=["innerHTML"],f=["innerHTML"],h={key:2,class:"ex__aus mt-5 mt-md-6 mb-2 font-sans fs-8 fs-md-6"},g=(0,s.Uk)("By "),_=["innerHTML"],x=["datetime","innerHTML"];var v={props:{post:{type:Object,required:!0,default:null},logo:{type:String,required:!0,default:null}},methods:{exclusiveCategory:function(t){return"Featured ".concat(t.cat)}}},y=a(3744);var k={components:{"app-display-post":(0,y.Z)(v,[["render",function(t,e,a,o,r,n){return(0,s.wg)(),(0,s.iD)(s.HY,null,[(0,s._)("figure",i,[(0,s._)("img",{class:"ex__img w-100 h-100",src:a.post.src,srcset:a.post.srcset,alt:a.post.alt,loading:"lazy"},null,8,c)]),(0,s._)("header",u,[a.logo?((0,s.wg)(),(0,s.iD)("img",{key:0,class:"ex__logo mt-4 mt-md-0",src:a.logo,alt:"Truthout white t logo",width:"19",height:"35",loading:"lazy"},null,8,p)):(0,s.kq)("",!0),a.post.cat?((0,s.wg)(),(0,s.iD)("span",{key:1,class:"ex__cat text-uppercase font-sans mt-4 mt-md-6 mb-2 mb-md-4",innerHTML:n.exclusiveCategory(a.post)},null,8,d)):(0,s.kq)("",!0),(0,s._)("h2",{class:"ex__ti my-5 my-md-6",innerHTML:a.post.title},null,8,m),(0,s._)("div",{class:"ex__excerpt mt-1",innerHTML:a.post.excerpt},null,8,f),a.post.authors?((0,s.wg)(),(0,s.iD)("div",h,[g,(0,s._)("span",{class:"ex__aus__au",innerHTML:a.post.authors},null,8,_)])):(0,s.kq)("",!0),a.post.date?((0,s.wg)(),(0,s.iD)("time",{key:3,class:"ex__pubdate visually-hidden",datetime:a.post.meta_date,itemprop:"datePublished",innerHTML:a.post.date},null,8,x)):(0,s.kq)("",!0)])],64)}]])},data:function(){return{post:[],errors:[],articleData:articleData,storageName:"exclusiveArticles",isDataAvailable:!1}},mounted:function(){this.loadPosts()},methods:{dataPostAttr:function(t){return"exclusive-post_id-".concat(t.id)},updateUrlProtocol:function(t){return t.replace(/^http:\/\//i,"https://")},loadPosts:function(){var t=this,e="".concat(articleData.restUrl,"/truthout/v1/exclusives");l().get(e,{params:{}}).then((function(e){e.data&&(t.isDataAvailable=!0,t.rotateArticle(e.data))})).catch((function(t){console.error(t)}))},rotateArticle:function(t){var e,a=localStorage.getItem(this.storageName),s="article-".concat(articleData.ID),o=Object.keys(t).filter((function(t){return t!==s}));if(a)try{var r=JSON.parse(a);a=(e=o,r.every((function(t){return e.includes(t)})))?r:o}catch(t){console.log("Article rotator error: No articles found.")}a&&a.length||(a=o);var n=a[Math.floor(Math.random()*a.length)],l=t[n],i=a.indexOf(n);i>-1&&a.splice(i,1),localStorage.setItem(this.storageName,JSON.stringify(a)),l&&(this.post=l)}}};var b=(0,y.Z)(k,[["render",function(t,e,a,n,l,i){var c=(0,s.up)("app-display-post");return t.post?((0,s.wg)(),(0,s.iD)("article",{key:0,id:t.post.id,"data-post":i.dataPostAttr(t.post),class:"ex"},[(0,s._)("a",{class:"ex__link position-relative d-flex flex-column align-items-center overflow-hidden py-6 px-3",href:t.post.permalink},[(0,s.Wm)(c,{post:t.post,logo:i.updateUrlProtocol(t.articleData.logo)},null,8,["post","logo"])],8,r)],8,o)):(0,s.kq)("",!0)}]]);(0,s.ri)({el:"#exclusivesBlock",components:{"app-exclusives-block":b}}).mount("#exclusivesBlock")}},function(t){t.O(0,[941],(function(){return e=4263,t(t.s=e);var e}));t.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.