1"use strict";(self["webpackChunkOneSub"]=self["webpackChunkOneSub"]||[]).push([[7572],{6751:function(e,t,s){s.r(t),s.d(t,{default:function(){return ne}});var i=function(){var e=this,t=e._self._c;return t("div",[t("div",[e.isLoggedIn?t("div",{staticClass:"dashboard-tabs"},[t("ul",[t("li",{class:{"active-tab":e.showWhen("report")},on:{click:function(t){return e.didSelectTab("report")}}},[e._v("Report")]),t("li",{class:{"active-tab":e.showWhen("history")},on:{click:function(t){return e.didSelectTab("history")}}},[e._v("History")])])]):e._e(),e.isLoggedIn?t("div",{staticClass:"dashboard-content",attrs:{id:"mobile"}},[t("ul",[e.showWhen("challenges")?t("li",[t("micro-challenges")],1):e._e(),e.showWhen("challenges")?t("li",[t("completed-challenges")],1):e._e(),e.showWhen("report")?t("div",{staticClass:"progress"},[t("li",[t("h2",[e._v("Reading Progress")]),t("p",[e._v("You're on a roll! Keep working on your daily reading progress and stay on track.")]),t("dial",{attrs:{size:"fill"}})],1)]):e._e(),e.showWhen("report")?t("li",[t("topic-coverage")],1):e._e(),e.showWhen("report")?t("li",[t("publisher-coverage")],1):e._e(),e.showWhen("history")?t("li",[t("reading-history")],1):e._e()])]):e._e(),e.isLoggedIn?e._e():t("div",{staticClass:"max-width margin-auto"},[e._m(0)]),e.isLoggedIn?e._e():t("div",[t("base-cta",{attrs:{type:"signUp"}})],1),e.isLoggedIn?t("div",{staticClass:"dashboard-content max-width margin-auto",attrs:{id:"desktop"}},[e._m(1),t("ul",[t("div",{staticClass:"progress"},[t("li",[t("h2",[e._v("Reading Progress")]),t("p",[e._v("You're on a roll! Keep working on your daily reading progress and stay on track.")]),t("dial",{attrs:{size:"fill"}})],1)]),t("div",[t("li",[t("topic-coverage")],1)]),t("div",[t("li",[t("publisher-coverage")],1)]),t("li",{staticClass:"grid-history"},[t("reading-history")],1)])]):e._e()])])},r=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"intro"},[t("h3",[e._v("What is OneSub?")]),t("p",[e._v("OneSub is a different kind of news aggregator that selects and presents news content with opposing points of view. ")]),t("p",[e._v("You get a real insight into what is - and isnât - the truth and you help support independent journalism.")])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"intro"},[t("h1",[e._v("Dashboard")]),t("p",[e._v(" An insight into your reading history, topics you have looked at throughout the week and top publishers you have been browsing. Take a look at the new challenges below to help balance you bias. ")])])}],n=(s(44114),s(37693)),o=(s(62010),function(){var e=this,t=e._self._c;
1return t("div",[t("h2",[e._v("Next Steps")]),t("p",[e._v("Take the next few steps to balance your bias and better engage in the news.")]),e._l(e.microChallenges,function(e){return t("div",{key:e.name},[t("micro-challenge",{attrs:{challenge:e}})],1)})],2)}),a=[],l=(s(52675),s(89463),function(){var e=this,t=e._self._c;return t("div",{staticClass:"challenge-wrapper"},[t("div",{staticClass:"challenge"},[t("div",{staticClass:"time-remaining",class:{completed:e.challenge.completed}},[e._v(e._s(e.timeRemaining))]),t("div",{staticClass:"challenge-copy"},[t("h4",[e._v(e._s(e.challenge.name))]),t("p",[e._v(e._s(e.challenge.description))]),t("div",{staticClass:"challenge-tasks"},e._l(e.challenge.challenges,function(e){return t("div",{key:e.code,staticClass:"task"},[t("challenge-task",{attrs:{task:e}})],1)}),0)])]),t("div",{staticClass:"challenge-status"},[t("global-svg",{attrs:{type:e.getChallengeStatus,width:"28px",height:"28px"}})],1)])}),c=[],u=s(74353),h=s.n(u),g=s(6279),d=s.n(g),p=function(){var e=this,t=e._self._c;return t("div",{staticClass:"task-wrapper"},[t("div",{staticClass:"task-status"},[t("global-svg",{attrs:{type:e.getTaskStatus,width:"20px",height:"20px"}})],1),t("div",{staticClass:"task-content"},[e._v(e._s(e.task.name))])])},v=[],y={props:["task"],computed:{getTaskStatus:function(){return this.task.completed?"task-complete":"task-pending"}}},f=y,m=s(81656),C=(0,m.A)(f,p,v,!1,null,"1f343516",null),_=C.exports;h().extend(d());var w={props:["challenge"],components:{ChallengeTask:_},computed:{timeRemaining:function(){var e=this.challenge.challenges[0].dates.end;if(this.challenge.completed&&!e)return"Completed";if(this.challenge.completed&&e){var t=h()().to(h()(e));return"Completed ".concat(t)}if(!e)return"Ongoing";if(e=h()(this.challenge.challenges[0].dates.end),e>h()()){var s=h()(e).fromNow(!0);return"Ends in "+s}var i=h()().to(h()(e));return"Ended "+i},getChallengeStatus:function(){return this.challenge.completed?"challenge-complete":"challenge-pending"}}},b=w,k=(0,m.A)(b,l,c,!1,null,"42e1dede",null),A=k.exports,S={components:{MicroChallenge:A},computed:{microChallenges:function(){return this.$store.getters.getMicroChallenges}}},T=S,x=(0,m.A)(T,o,a,!1,null,"79a51d4f",null),H=x.exports,P=function(){var e=this,t=e._self._c;return t("div",[t("h2",[e._v("Completed Steps ð")]),t("p",[e._v("Well done. These are the steps you've already completed.")]),e._l(e.completedChallenges,function(e){return t("div",{key:e.code},[t("micro-challenge",{attrs:{challenge:e}})],1)})],2)},L=[],$={components:{MicroChallenge:A},computed:{completedChallenges:function(){return this.$store.getters.getCompletedChallenges}}},I=$,W=(0,m.A)(I,P,L,!1,null,"109d7e1f",null),F=W.exports,M=function(){var e=this,t=e._self._c;return t("div",[t("h2",[e._v("Your topic coverage")]),t("p",[e._v("Based on the articles you've read, this is how the topics rank in coverage and bias.")]),e.getHistoryTopicCoverage?t("analysis-grid",{attrs:{data:e.getHistoryTopicCoverage}}):t("global-loader",{attrs:{color:"#101818",size:"20px"}})],1)},O=[],R=(s(16034),s(74640)),B={components:{AnalysisGrid:R.A},computed:{getHistoryTopicCoverage:function(){var e=this.$store.getters.getHistoryTopicCoverage;return Object.values(e).length>0&&e}}},U=B,G=(0,m.A)(U,M,O,!1,null,"32236ab2",null),z=G.exports,D=function(){var e=this,t=e._self._c;return t("div",[t("h2",[e._v("Your publisher coverage")]),t("p",[e._v("Based on the articles you've read, this is how the publishers rank in their coverage and bias.")]),e.getHistoryPublisherCoverage?t("analysis-grid",{attrs:{data:e.getHistoryPublisherCoverage}}):t("global-loader",{attrs:{color:"#101818",size:"20px"}})],1)},Y=[],E={components:{AnalysisGrid:R.A},computed:{getHistoryPublisherCoverage:function(){var e=this.$store.getters.getHistoryPublisherCoverage;return Object.values(e).length>0&&e}}},j=E,J=(0,m.A)(j,D,Y,!1,null,"1851da86",null),K=J.exports,N=(s(50778),function(){var e=this,t=e._self._c;return t("div",[t("h2",[e._v("Story History")]),t("p",[e._v("A view of the stories you have read recently.")]),t("div",{staticClass:"grid-stack"},e._l(e.getHistoryLinks,function(e,s){return t("div",{key:s,staticClass:"grid-stack-inner"},[t("story-stacked-small",{staticClass:"border-right",attrs:{story:e.story,withinStory:e.link.slug}})],1)}),0)])}),X=[],q=s(27450),Q={components:{StoryStackedSmall:q.A},mounted:function(){this.isLoggedIn&&n.A.getHistory()},computed:{isLoggedIn:function(){return this.$store.getters.isLoggedIn},getHistoryLinks:function(){return this.$store.getters.getHistory}},watch:{isLoggedIn:function(){this.isLoggedIn&&n.A.getHistory()}}},V=Q,Z=(0,m.A)(V,N,X,!1,null,"31787517",null),ee=Z.exports,te=s(11374),se={name:"Dashboard",components:{MicroChallenges:H,CompletedChallenges:F,TopicCoverage:z,PublisherCoverage:K,ReadingHistory:ee,BaseCta:te.A},data:function(){return{showingMore:!1,modifyLimit:5,topics:[],selectedTab:"report"}},mounted:function(){var e=this;window.setTimeout(function(){e.isLoggedIn||e.$store.commit("updateShowModal","skip")},3e3),n.A.getTopicCoverage(),n.A.getPublisherCoverage(),n.A.getD3GeoMap(),n.A.getReport()},computed:{isLoggedIn:function(){return this.$store.getters.isLoggedIn},storeAccount:function(){return this.$store.getters.getAccount},isAlpha:function(){return this.$store.getters.isAlpha},isBeta:function(){return this.$store.getters.isAlpha||this.$store.getters.isBeta},isPro:function(){return this.$store.getters.isPro}},methods:{showMoreAnalysis:function(){this.modifyLimit=1e4,this.showingMore=!0},clickTag:function(e){this.$router.push("/topic/".concat(e.code)),this.$emit("clickedTag",e)},getTopic:function(e){return this.$store.getters.getTopic(e)},showWhen:function(e){return e==this.selectedTab},didSelectTab:function(e){this.selectedTab=e}},watch:{isLoggedIn:function(){this.isLoggedIn&&(n.A.getD3GeoMap(),n.A.getReport(),n.A.getTopicCoverage(),n.A.getPublisherCoverage())}}},ie=se,re=(0,m.A)(ie,i,r,!1,null,"55efa454",null),ne=re.exports},11374:function(e,t,s){s.d(t,{A:function(){return c}});var i=function(){var e=this,t=e._self._c;return e.type?t("div",{staticClass:"cta-wrapper",class:[{light:e.light},e.colorClass]},[t("div",{staticClass:"inner"},[t("h3",{staticClass:"white",class:[{light:e.light},e.colorClass]},[e._v(e._s(e.getHeading()))]),t("p",{staticClass:"white align-mid",class:[{light:e.light},e.colorClass],domProps:{innerHTML:e._s(e.getCopy())}}),t("ul",{staticClass:"feature-marks vertical"},e._l(e.getFeatures(),function(s){return t("li",{key:s},[t("global-svg",{attrs:{type:"tick-single",height:"13px",color:e.getFeatureColour()}}),t("span",{class:[{light:e.light},e.colorClass]}
1,[e._v(e._s(s))])],1)}),0),e.getCTAHeading()?t("div",{staticClass:"action-stack"},[t("button",{staticClass:"action-btn inner",on:{click:function(t){return e.didSelectSignUp()}}},[t("span",{staticClass:"action-heading"},[e._v(e._s(e.getCTAHeading()))]),t("span",{staticClass:"action-copy"},[e._v(e._s(e.getCTACopy()))])])]):e._e(),"goPro"===e.type||"unlockReport"===e.type?t("div",{staticClass:"action-stack"},[t("button",{staticClass:"go-pro no-arrow",on:{click:function(t){return e.triggerGoPro()}}},[e._v("Go Pro")])]):e._e()])]):e._e()},r=[],n={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 e;return(null===(e=this.messages[this.type])||void 0===e?void 0:e.heading)||!1},getCopy:function(){var e;return(null===(e=this.messages[this.type])||void 0===e?void 0:e.copy)||!1},getCTAHeading:function(){var e,t;return(null===(e=this.messages[this.type])||void 0===e||null===(t=e.cta)||void 0===t?void 0:t.heading)||""},getCTACopy:function(){var e,t;return(null===(e=this.messages[this.type])||void 0===e||null===(t=e.cta)||void 0===t?void 0:t.copy)||""},getFeatures:function(){var e;return(null===(e=this.messages[this.type])||void 0===e?void 0:e.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"})}}},o=n,a=s(81656),l=(0,a.A)(o,i,r,!1,null,"73cefa16",null),c=l.exports},27450:function(e,t,s){s.d(t,{A:function(){return d}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"story-primary-wrapper storygrid-stacked-small"},[t("div",{staticClass:"primary-article"},[t("div",{staticClass:"image",on:{click:function(t){return e.didSelectStory(e.story.slug)}}},[t("div",{staticClass:"image-inner",style:{backgroundImage:"url("+e.story.image+")"}})]),t("div",{staticClass:"intro"},[t("div",{staticClass:"primary-content"},[t("primary-article",{attrs:{slug:e.fetchPrimary,story:e.story,headingSize:"medium"}})],1),e.story&&!e.withinStory?t("div",[t("more-sources",{attrs:{slug:e.fetchPrimary,story:e.story}}),t("alternative-articles",{attrs:{alternatives:e.fetchAlternatives,story:e.story}})],1):e._e()])])])},r=[],n=s(35419),o=s(83),a=s(42222),l=s(52540),c={name:"StoryStackedSmall",props:["story","withinStory"],mixins:[n.X],components:{PrimaryArticle:o.A,MoreSources:a.A,AlternativeArticles:l.A},computed:{fetchPrimary:function(){return this.withinStory?this.withinStory:this.story.primary_article?this.story.primary_article.slug:""},fetchAlternatives:function(){return this.story.alternative_articles}}},u=c,h=s(81656),g=(0,h.A)(u,i,r,!1,null,"38bab4ad",null),d=g.exports}}]); 2//# sourceMappingURL=view-Dashboard-vue-legacy.1a9aa394.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.