PageSourceSearch

https://nourished.news/images/app/js/view-ThreadList-vue-legacy.4ddf2193.js

js nourished.news collected 2026-09-24 11:01:55 UTC 20,141 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunkOneSub"]=self["webpackChunkOneSub"]||[]).push([[7266],{11374:function(t,e,s){s.d(e,{A:function(){return c}});var a=function(){var t=this,e=t._self._c;return t.type?e("div",{staticClass:"cta-wrapper",class:[{light:t.light},t.colorClass]},[e("div",{staticClass:"inner"},[e("h3",{staticClass:"white",class:[{light:t.light},t.colorClass]},[t._v(t._s(t.getHeading()))]),e("p",{staticClass:"white align-mid",class:[{light:t.light},t.colorClass],domProps:{innerHTML:t._s(t.getCopy())}}),e("ul",{staticClass:"feature-marks vertical"},t._l(t.getFeatures(),function(s){return e("li",{key:s},[e("global-svg",{attrs:{type:"tick-single",height:"13px",color:t.getFeatureColour()}}),e("span",{class:[{light:t.light},t.colorClass]},[t._v(t._s(s))])],1)}),0),t.getCTAHeading()?e("div",{staticClass:"action-stack"},[e("button",{staticClass:"action-btn inner",on:{click:function(e){return t.didSelectSignUp()}}},[e("span",{staticClass:"action-heading"},[t._v(t._s(t.getCTAHeading()))]),e("span",{staticClass:"action-copy"},[t._v(t._s(t.getCTACopy()))])])]):t._e(),"goPro"===t.type||"unlockReport"===t.type?e("div",{staticClass:"action-stack"},[e("button",{staticClass:"go-pro no-arrow",on:{click:function(e){return t.triggerGoPro()}}},[t._v("Go Pro")])]):t._e()])]):t._e()},i=[],r={props:["light"],mounted:function(){this.$store.getters.isLoggedIn?this.$store.getters.isPro?this.type=!1:(this.type="goPro",this.color="green"):(this.type="signUp",this.color="yellow")},data:function(){return{type:"",messages:{signUp:{code:"sign-up",heading:"Believe in better news.",copy:"\n            OneSub exists to fix the way we read the news.  We will stop the rise in click-bait and fake news with <u>your help</u>.\n            Join OneSub for free today.  Subscribe when you're ready.\n          ",features:{first:"100% tracker & ad-free.",second:"100's of trusted sources.",third:"Free trial forever."},cta:{heading:"Sign up for Free",copy:"We will never sell your data."}},goPro:{code:"go-pro",heading:"Fight advertising.  Fix news.",copy:"We will only fix the news when newspapers can survive without adverts.<br/>We all have a responsibility to be part of the solution.",features:{first:"I believe in better news.",second:"OneSub passes on 80% of its income.",third:"I can cancel any time."}},goShare:{code:"go-share",heading:"Help tell the world about OneSub. 💛",copy:"\n            OneSub exists to fix the way we read the news.  We will stop the rise in click-bait and fake news with <u>your help</u>.\n            Join OneSub for free today.  Subscribe when you're ready.\n          ",features:{first:"100% tracker & ad-free.",second:"100's of trusted sources.",third:"Free trial forever."}},unlockReport:{code:"unlock-report",heading:"Unlock your full report",copy:"The report contains multiple features to enhance your understanding of the news landscape allowing you to fully balance your diet of the news.",features:{first:"Understand news bias",
1second:"Find missed viewpoints",third:"Understand topic coverage"}}}}},computed:{colorClass:function(){return this.color?this.color:"signUp"===this.type?"yellow":"green"}},methods:{getHeading:function(){var t;return(null===(t=this.messages[this.type])||void 0===t?void 0:t.heading)||!1},getCopy:function(){var t;return(null===(t=this.messages[this.type])||void 0===t?void 0:t.copy)||!1},getCTAHeading:function(){var t,e;return(null===(t=this.messages[this.type])||void 0===t||null===(e=t.cta)||void 0===e?void 0:e.heading)||""},getCTACopy:function(){var t,e;return(null===(t=this.messages[this.type])||void 0===t||null===(e=t.cta)||void 0===e?void 0:e.copy)||""},getFeatures:function(){var t;return(null===(t=this.messages[this.type])||void 0===t?void 0:t.features)||"false"},getFeatureColour:function(){switch(this.colorClass){case"red":return"#14B31F";case"green":return"#14B31F";case"yellow":return"#FFDE00";case"blue":return"#00397C"}},didSelectSignUp:function(){this.$store.commit("updateShowModal","skip")},triggerGoPro:function(){this.EventBus.$emit("didSelectSubscribe",{didSelect:"true"})}}},n=r,o=s(81656),l=(0,o.A)(n,a,i,!1,null,"73cefa16",null),c=l.exports},29201:function(t,e,s){s.d(e,{A:function(){return c}});s(62010);var a=function(){var t=this,e=t._self._c;return t.profile?e("div",[e("router-link",{staticClass:"person-wrapper",attrs:{to:"~".concat(t.profile.screen_name)}},[t.profile.avatar?e("div",{staticClass:"profile-image-container"},[e("img",{staticClass:"image profile-image",attrs:{src:t.profile.avatar}})]):e("div",{staticClass:"image placeholder-img"},[t._v("ELSE")]),e("div",{staticClass:"person-data small"},[e("span",{staticClass:"name"},[t._v(t._s(t.profile.name))])])])],1):e("div",[t.person?e("router-link",{staticClass:"person-wrapper",attrs:{to:"/topic/"+t.person.topic_code}},[t.person.meta.image?e("img",{staticClass:"image",attrs:{src:t.person.meta.image}}):e("div",{staticClass:"image placeholder-img"}),e("div",{staticClass:"person-data"},[e("span",{staticClass:"name"},[t._v(t._s(t.person.meta.name||t.person.topic_name))]),e("span",{staticClass:"title"},[t._v(t._s(t.person.meta.byline))])])]):t._e()],1)},i=[],r={props:["person","profile"]},n=r,o=s(81656),l=(0,o.A)(n,a,i,!1,null,"66c39d9f",null),c=l.exports},30339:function(t,e,s){s.r(e),s.d(e,{default:function(){return w}});s(44114),s(62010);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"open-study-wrapper"},[e("section",{staticClass:"leader"},[this.error?e("div",{staticClass:"inner-leader max-width"},[t._m(0)]):e("div",{staticClass:"inner-leader max-width"},[e("div",{staticClass:"inner-copy"},[e("div",{staticClass:"wrapper"},[e("div",{staticClass:"image"},[t.getProfile.avatar?e("img",{staticClass:"avatar",attrs:{src:t.getProfile.avatar,alt:t.getProfile.name}}):t._e()]),e("div",{staticClass:"profile"},[e("div",{staticClass:"profile-name"},[e("h2",{domProps:{innerHTML:t._s(t.getProfile.name)}}),t.doesFollow||t.myProfile?t._e():e("button",{staticClass:"btn btn-meta follower follow",on:{click:function(e){return t.didSelectFollow()}}},[t._v("Follow")]),t.isLoggedIn&&t.doesFollow&&!t.myProfile?e("button",{staticClass:"btn btn-meta follower following",on:{click:function(e){return t.didSelectUnfollow()},mouseover:function(e){return t.handleFollowHover(!0)},mouseleave:function(e){return t.handleFollowHover(!1)}}},[t._v(t._s(t.followButton))]):t._e()]),e("div",{staticClass:"meta"},[e("span",{staticClass:"inner-meta"},[t._v("@"+t._s(t.getProfile.screen_name))]),e("span",{staticClass:"inner-meta"},[t._v("Joined "+t._s(t._f("ago")(t.getProfile.created_at)))])]),e("p",{staticClass:"leader-p",domProps:{innerHTML:t._s(this.$options.filters.handles(t.getProfile.bio))}})])])]),e("div",{staticClass:"stats header-stats no-margin h-stack"},[e("div",{staticClass:"stack-inner align-mid"},[e("span",{staticClass:"stat"},[t._v(t._s(t.getStats.followers))]),e("span",{staticClass:"detail social"},[t._v("Followers")])]),e("div",{staticClass:"stack-inner align-mid"},[e("span",{staticClass:"stat"},[t._v(t._s(t.getStats.following))]),e("span",{staticClass:"detail social"},[t._v("Following")])]),e("div",{staticClass:"stack-inner no-divider align-mid"},[t.getProfile.stats?e("span",{staticClass:"stat"},[t._v(t._s(t.getProfile.stats.thread_count))]):t._e(),e("span",{staticClass:"detail social"},[t._v(t._s(t.getThreadStatHeading))])])])])]),e("div",{staticClass:"action-stack max-width"},[t.threadsRequested?t._e():e("div",{staticClass:"social-share action-btn"},[e("div",{staticClass:"inner-social"},[e("div",{staticClass:"content",on:{click:function(e){return t.$router.push("/threads")}}},[e("h4",[t._v("Join OneSub Threads")])])])])]),t.hasFetched?e("div",{staticClass:"max-width threads-wrapper"},[t.getLiveThreads&&t.getLiveThreads.length>0?e("section",{staticClass:"threads"},t._l(t.getLiveThreads,function(t){return e("div",{key:t.slug,staticClass:"single-thread"},[e("single-thread",{attrs:{thread:t,hideAuthor:"false"}})],1)}),0):t._e(),!t.getLiveThreads||t.getLiveThreads.length<1?e("section",{staticClass:"threads"},[e("div",{staticClass:"empty-threads"},[e("h4",[t._v("No threads yet 😢")]),e("p",[t._v(t._s(t.getProfile.name)+" has not posted any threads yet. Check back soon.")
1])])]):t._e(),t.getLiveThreads||t.getDraftThreads?e("section",{staticClass:"threads-meta"},[t.myProfile?e("div",{staticClass:"inner share"},[e("h4",[t._v("Build your following")]),e("p",[t._v("Share your profile to your other networks.")]),e("div",{staticClass:"social-list"},[e("div",{staticClass:"social-btn",on:{click:function(e){return t.didSelectSocial("twitter")}}},[e("global-svg",{attrs:{type:"twitter",color:"#000B22",width:"15px",height:"18px"}})],1),e("div",{staticClass:"social-btn",on:{click:function(e){return t.didSelectSocial("facebook")}}},[e("global-svg",{attrs:{type:"facebook",color:"#000B22",width:"8px",height:"18px"}})],1),e("div",{staticClass:"social-btn",on:{click:function(e){return t.didSelectSocial("linkedin")}}},[e("global-svg",{attrs:{type:"linkedin",color:"#000B22",width:"15px",height:"18px"}})],1)])]):t._e(),e("div",{staticClass:"breaker"}),e("div",{staticClass:"inner"},[e("ThreadFollow",{attrs:{mode:"followers",screen_name:t.getProfile.screen_name}})],1),e("div",{staticClass:"breaker"}),e("div",{staticClass:"inner"},[e("ThreadFollow",{attrs:{mode:"following",screen_name:t.getProfile.screen_name}})],1),e("div",{staticClass:"breaker"}),t.myProfile?e("div",{staticClass:"inner"},[t._m(1),e("div",{staticClass:"threads"},t._l(t.getDraftThreads,function(s){return e("div",{key:s.slug,staticClass:"single-thread"},[e("thread-summary",{attrs:{thread:s,author:t.getProfile,draft:"true"}})],1)}),0)]):t._e()]):t._e()]):t._e(),t.getThreads&&!t.isLoggedIn?e("div",{staticClass:"max-width cta-wrapper"},[e("base-cta",{attrs:{type:"signUp",light:"true"}})],1):t._e(),t.getThreads&&t.showProPromo?e("div",{staticClass:"max-width cta-wrapper"},[e("base-cta",{attrs:{type:"goPro",light:"true"}})],1):t._e()])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"inner-copy"},[e("h1",[t._v("🙈 Oops.")]),e("p",{staticClass:"leader-p"},[t._v("We can't find the profile you're looking for.")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"intro draft"},[e("h4",[t._v("Drafts")]),e("p",[t._v("Draft threads you've created which are not yet published.")])])}],r=(s(28706),s(2008),s(18111),s(22489),s(26099),s(37693)),n=s(11374),o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"thread-wrapper"},[e("a",{staticClass:"content",attrs:{href:"/~".concat(t.author.screen_name,"/").concat(t.thread.slug)},on:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.didSelectThread()}}},[e("div",{staticClass:"inner",class:{draft:t.draft}},[e("div",[e("h2",{class:{draft:t.draft}},[t._v(" "+t._s(t.thread.name)+" ")]),t.thread.text&&!t.draft?e("p",[t._v(t._s(t.thread.text))]):t._e()])]),!t.draft&&t.thread.element_count>1?e("div",{staticClass:"image"},[e("img",{attrs:{src:t.thread.image,alt:t.thread.name}})]):t._e()]),e("div",{staticClass:"actions",class:{draft:t.draft}},[e("div",{staticClass:"meta"},[e("div",{staticClass:"meta-inner",class:{draft:t.draft},attrs:{title:"This thread conains "+t.thread.element_count+" articles"}},[e("global-svg",{attrs:{type:"articles",height:"12px"}}),e("span",{staticClass:"date"},[t._v(t._s(t.thread.element_count)+" articles")])],1),e("div",{staticClass:"meta-inner",class:{draft:t.draft},attrs:{title:"Created at "+t.thread.created}},[e("global-svg",{attrs:{type:"clock",height:"12px"}}),e("span",{staticClass:"date"},[t._v(t._s(t._f("ago")(t.thread.created)))])],1),e("div",{staticClass:"meta-inner",class:{draft:t.draft},attrs:{title:"Last updated at "+t.thread.updated}},[e("global-svg",{attrs:{type:"edited",width:"12px",height:"12px"}}),e("span",{staticClass:"date"},[t._v(t._s(t._f("ago")(t.thread.updated)))])],1)])])])},l=[],c={props:["thread","author","draft"],mounted:function(){},computed:{myPaper:function(){var t;return this.$store.getters.screenName&&(null===(t=this.thread.author)||void 0===t?void 0:t.screen_name)==this.$store.getters.screenName}},methods:{didSelectThread:function(){this.$router.push("~".concat(this.thread.author.screen_name,"/").concat(this.thread.slug))}}},d=c,h=s(81656),u=(0,h.A)(d,o,l,!1,null,"529d91fd",null),f=u.exports,p=s(44441),g=s(96264),m={name:"ThreadList",components:{BaseCta:n.A,ThreadSummary:f,SingleThread:p.A,ThreadFollow:g.A},data:function(){return{error:!1,profile:{},threads:[],followHover:!1,unfollowConfirm:!1,hasFetched:!1}},computed:{xname:function(){return this.$route.params.xname},doesFollow:function(){return this.$store.getters.checkFollowing(this.xname)},followButton:function(){return this.unfollowConfirm?"Are you sure?":!0===this.followHover?"Unfollow":"Following"},myProfile:function(){return this.$store.getters.screenName&&this.xname==this.$store.getters.screenName},getProfile:function(){return this.profile||{}},getStats:function(){return this.getProfile.stats||{}},getThreadStatHeading:function(){return this.getProfile.stats&&1===this.getProfile.stats.thread_count?"Thread":"Threads"},getThreads:function(){return this.threads||[]},getLiveThreads:function(){return this.threads?this.threads.filter(function(t){return!0===t.public}):null},getDraftThreads:function(){return this.threads?this.threads.filter(function(t){return!1===t.public}):null},isLoggedIn:function(){return this.$store.getters.isLoggedIn},showProPromo:function(){return this.$store.getters.showProPromo},threadsRequested:function(){return this.$store.getters.getAccountFlag("threads_request")},threadsActive:function(){return this.$store.getters.getAccountFlag("threads_active")},hasApp:function(){return this.$store.getters.hasApp}},mounted:function(){this.load()},methods:{didSelectFollow:function(){var t=this;this.isLoggedIn?r.A.followUser(this.xname).then(function(){t.profile.stats.followers+=1}):this.$store.commit("updateShowModal","skip")},didSelectUnfollow:function(){var t=this;this.isLoggedIn&&(this.unfollowConfirm?r.A.unfollowUser(this.xname).then(function(){t.unfollowConfirm=!1,t.profile.stats.followers-=1}):this.unfollowConfirm=!0)},handleFollowHover:function(t){this.followHover=t},didSelectSocial:function(t){var e,s,a,i,r,n,o="".concat(document.location.origin,"/~").concat(this.getProfile.screen_name),l="Join me on @onesub_threads";switch(t){case"twitter":i="https://twitter.com/share?text=".concat(l,"&url=").concat(o),this.hasApp?this.EventBus.$emit("appCallback",{type:"socialCallback",data:{social:"twitter",type:"link",link:i}}):(s=window.open("".concat(i),"_blank"),s.focus());break;case"facebook":r="https://www.facebook.com/sharer/sharer.php?u=".concat(o),this.hasApp?this.EventBus.$emit("appCallback",{type:"socialCallback",data:{social:"facebook",type:"link",link:r}}):(e=window.open("".concat(r),"_blank"),e.focus());break;case"linkedin":n="https://www.linkedin.com/sharing/share-offsite/?url=".concat(o),this.hasApp?this.EventBus.$emit("appCallback",{type:"socialCallback",data:{social:"linkedin",type:"link",link:n}}):(a=window.open("".concat(n),"_blank"),a.focus());break}},load:function(){var t=this;this.myProfile?r.A.getThreadsMine().then(function(e){t.hasFetched=!0,t.error=e.error,t.profile=e.profile,t.threads=e.threads}).catch(function(t){console.error(t)}):(r.A.getThreadsScreenName(this.xname).then(function(e){t.hasFetched=!0,t.error=e.error,t.profile=e.profile,t.threads=e.threads}).catch(function(t){console.error(t)}),r.A.checkIfFollowing(this.xname))}},watch:{xname:function(){this.load()}}},v=m,_=(0,h.A)(v,a,i,!1,null,"3a35e48e",null),w=_.exports},44441:function(t,e,s){s.d(e,{A:function(){return P}});s(62010);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"thread-wrapper"},[t.hideAuthor?t._e():e("div",{staticClass:"author"},[e("person",{attrs:{type:"profile",profile:t.thread.author,small:"true",showFollow:t.showFollow}})],1),e("div",{staticClass:"thread",on:{click:function(e){return t.didSelectThread()}}},[e("div",{staticClass:"inner-thread"},[e("span",{staticClass:"title"},[t._v(t._s(t.thread.name))]),e("span",{staticClass:"summary"},[t._v(t._s(t.thread.text))])]),t.thread.image?e("image-stack",{attrs:{images:t.thread.element_images}}):t._e()],1),e("div",[e("meta-timeline",{attrs:{created:t.thread.created,updated:t.thread.updated,clips:t.thread.element_c
1ount}})],1)])},i=[],r=(s(28706),s(44114),s(29201)),n=(s(89195),function(){var t=this,e=t._self._c;return t.filterImages()?e("div",{staticClass:"image-stack-wrapper",class:{small:t.small}},t._l(t.filterImages(),function(t,s){return e("div",{key:t+s,staticClass:"inner-image",style:{backgroundImage:"url(".concat(t,")")},attrs:{div:""}})}),0):t._e()}),o=[],l=(s(74423),s(18111),s(7588),s(26099),s(21699),s(23500),{props:["images","small"],methods:{filterImages:function(){var t=[];return this.images?(this.images.forEach(function(e){e.includes("article-fallback")||t.push(e)}),t||[]):[]}}}),c=l,d=s(81656),h=(0,d.A)(c,n,o,!1,null,"f66ecbc8",null),u=h.exports,f=function(){var t=this,e=t._self._c;return e("div",{staticClass:"meta-timeline-wrapper"},[e("global-svg",{staticClass:"inner-meta inner-svg",attrs:{type:"clock",height:"12px",color:"blue"}}),e("div",{staticClass:"inner-meta"},[t._v(t._s(t.formatDate(t.created)))]),e("global-svg",{staticClass:"inner-meta inner-svg",attrs:{type:"stretch-arrow",height:"10px",color:"blue"}}),e("div",{staticClass:"inner-meta"},[t._v(t._s(t.formatDate(t.updated)))]),e("div",{staticClass:"inner-meta"},[t._v("|")]),e("global-svg",{staticClass:"inner-meta inner-svg",attrs:{type:"articles",height:"12px",color:"blue"}}),e("div",{staticClass:"inner-meta"},[t._v(t._s(t.clips)+" Clips")])],1)},p=[],g=s(74353),m=s.n(g),v=s(6279),_=s.n(v);m().extend(_());var w={props:["created","updated","clips"],methods:{formatDate:function(t){return m()(t).format("DD MMMM")}}},C=w,y=(0,d.A)(C,f,p,!1,null,"0598847e",null),b=y.exports,k={props:["thread","showFollow","hideAuthor"],components:{Person:r.A,ImageStack:u,MetaTimeline:b},methods:{didSelectThread:function(){this.$router.push("/~".concat(this.thread.author.screen_name,"/").concat(this.thread.slug))}}},S=k,x=(0,d.A)(S,a,i,!1,null,"c6dbbc7c",null),P=x.exports},89195:function(t,e,s){var a=s(46518),i=s(77240),r=s(23061);a({target:"String",proto:!0,forced:r("small")},{small:function(){return i(this,"small","","")}})},96264:function(t,e,s){s.d(e,{A:function(){return d}});s(62010);var a=function(){var t=this,e=t._self._c;return"followers"===t.mode||"following"===t.mode?e("div",{staticClass:"follow-wrapper"},[e("div",{staticClass:"follow-header"},[e("h3",[t._v(t._s(t.getModeHeading))]),e("div",{staticClass:"counter"},[t._v(t._s(t.users.length))])]),e("div",{staticClass:"follow-profiles"},t._l(t.users,function(s,a){return e("div",{key:a,staticClass:"inner-profile"},[e("div",{staticClass:"tooltip"},[e("div",{staticClass:"inner"},[e("div",{staticClass:"lead"},[e("span",{staticClass:"name"},[t._v(t._s(s.profile.name))]),e("span",{staticClass:"handle"},[t._v("@"+t._s(s.profile.screen_name))])]),s.friends?t._e():e("button",{staticClass:"blue"},[t._v("Follow")])])]),e("router-link",{attrs:{to:"~".concat(s.profile.screen_name)}},[e("img",{class:{friends:s.friends,not_friends:!s.friends},attrs:{src:s.profile.avatar}})])],1)}),0)]):t._e()},i=[],r=s(37693),n={props:{mode:String,screen_name:String},data:function(){return{}},computed:{getModeHeading:function(){switch(this.mode){case"following":return"@".concat(this.screen_name," is following");case"followers":return"@".concat(this.screen_name,"'s followers")}return""},users:function(){return this.screen_name&&this.$store.getters.getLibraryItem(this.mode,this.screen_name)||null}},mounted:function(){if(!this.screen_name)throw"No screen_name? ".concat(this.screen_name);this.getScreenNameData(this.screen_name)},methods:{getScreenNameData:function(t){if(t)switch(this.mode){case"following":r.A.getFollowing(t);break;case"followers":r.A.getFollowers(t);break;default:throw"Unknown mode ".concat(this.mode)}}},watch:{screen_name:function(t){this.getScreenNameData(t)}}},o=n,l=s(81656),c=(0,l.A)(o,a,i,!1,null,"f15c104a",null),d=c.exports}}]);
2//# sourceMappingURL=view-ThreadList-vue-legacy.4ddf2193.js.map

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.