1"use strict";(self["webpackChunkOneSub"]=self["webpackChunkOneSub"]||[]).push([[982],{10838:function(t,e,i){var n=i(46518),o=i(43839).findLast,s=i(6469);n({target:"Array",proto:!0},{findLast:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),s("findLast")},43839:function(t,e,i){var n=i(76080),o=i(47055),s=i(48981),c=i(26198),a=function(t){var e=1===t;return function(i,a,r){var d,l,u=s(i),p=o(u),g=c(p),m=n(a,r);while(g-- >0)if(d=p[g],l=m(d,g,u),l)switch(t){case 0:return d;case 1:return g}return e?-1:void 0}};t.exports={findLast:a(0),findLastIndex:a(1)}},63874:function(t,e,i){i.d(e,{A:function(){return d}});i(44114);var n=function(){var t=this,e=t._self._c;return e("ul",{staticClass:"az-list"},t._l(t.az,function(i){return e("li",{key:i,class:{active:i===t.getLetter},on:{click:function(e){return t.$router.push("/topics/".concat(i))}}},[t._v(" "+t._s(t._f("upper")(i))+" ")])}),0)},o=[],s={data:function(){return{az:"ABCDEFGHIJKLMNOPQRSTUVWXYZ".toLocaleLowerCase().split("")}},computed:{getLetter:function(){return this.$route.params.subgroup}}},c=s,a=i(81656),r=(0,a.A)(c,n,o,!1,null,"6daa8d64",null),d=r.exports},67237:function(t,e,i){i.r(e),i.d(e,{default:function(){return C}});i(28706),i(62010);var n=function(){var t=this,e=t._self._c;return t.getGroup?e("div",{staticClass:"group-block",class:["mq-".concat(t.$mq)]},[e("topics-a-z"),e("div",{staticClass:"group-header"},[e("h1",{staticClass:"group-letter"},[t._v(t._s(t.getIndexTopicAZ))])]),t.getIndexTopTopics.length<=0||t.getIndexTopics.length<=0?e("div",[e("Fetching")],1):t._e(),e("ul",{staticClass:"index primary"},t._l(t.getIndexTopTopics,function(i,n){return e("li",{key:"index-topic-".concat(n,"-").concat(i.code).concat(i.byline),on:{click:function(e){return t.trackTopic(i.name)}}},[e("router-link",{staticClass:"topic-item",attrs:{to:"/topic/".concat(i.code)}},[e("div",{staticClass:"image"},[i.meta.image&&"https://nourished.news"!==i.meta.image?e("img",{attrs:{src:i.meta.image}}):t._e()]),e("span",{staticClass:"topic-name"},[t._v(t._s(i.name))])])],1)}),0),e("ul",{staticClass:"index"},t._l(t.getIndexTopics,function(i,n){return e("li",{key:"index-topic-".concat(n,"-").concat(i.code).concat(i.byline),on:{click:function(e){return t.trackTopic(i.name)}}},[e("router-link",{staticClass:"topic-item",attrs:{to:"/topic/".concat(i.code)}},[e("div",{staticClass:"image"},[i.meta.image&&"https://nourished.news"!==i.meta.image?e("img",{attrs:{src:i.meta.image}}):t._e()]),e("span",{staticClass:"topic-name"},[t._v(t._s(i.name))])])],1)}),0)],1):e("div",{staticClass:"topic-wrapper",class:["mq-".concat(t.$mq)]},[e("div",{staticClass:"desktop-topics-az"},[e("topics-a-z")],1),e("div",{staticClass:"desktop-group-wrapper"},[e("div",{staticClass:"group-section-wrapper"},[e("div",{staticClass:"section"},t._l(t.getSections,function(i){return e("div",{key:"sec-".concat(i.code),staticClass:"story-section-header",class:{active:i.code===t.headlineSection},on:{click:function(e){return t.setHeadlineSection(i.code)}}},[e("h2",[t._v(t._s(i.name))])])}),0),e("div",{staticClass:"story-section-wrap"},[e("TopicStories",{attrs:{section:t.getHeadlineSection}})],1)]),e("div",{staticClass:"topic-group-grid"},t._l(t.grouped,function(i){return e("div",{key:"trendgroup-".concat(i.code),staticClass:"topic-group",class:{expanded:t.expandedTopic===i.code}},[e("div",{staticClass:"trend-group-header",on:{click:function(e){t.expandedTopic=t.expandedTopic===i.code?"":i.code}}},[e("div",{staticClass:"content"},[e("h2",[t._v(t._s(i.name))])]),e("div",{staticClass:"icon",class:{expanded:t.expandedTopic===i.code}},[e("svg",{attrs:{width:"13",height:"7",viewBox:"0 0 13 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M7.15558 6.7437C6.79298 7.08543 6.20412 7.08543 5.84152 6.7437L0.271951 1.49473C-0.0906508 1.153 -0.0906508 0.598029 0.271951 0.256299C0.634553 -0.0854313 1.22342 -0.0854313 1.58602 0.256299L6.5 4.88743L11.414 0.259032C11.7766 -0.0826983 12.3654 -0.0826983 12.728 0.259032C13.0906 0.600762 13.0906 1.15573 12.728 1.49746L7.15849 6.74644L7.15558 6.7437Z",fill:"black"}})])])]),e("transition",{attrs:{name:"collapse"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.expandedTo
1pic===i.code,expression:"expandedTopic === group.code"}],staticClass:"topics"},t._l(i.topics,function(i,n){return e("TopicTag",{key:"trend-".concat(n,"-").concat(i.code).concat(i.byline),attrs:{"data-key":i.topic_code,data:i},on:{click:function(e){return t.trackTopic(i.name)}}})}),1)])],1)}),0)]),e("div",{staticClass:"mobile-group-wrapper"},[e("div",{staticClass:"mobile-topic-nav"},[t._l(t.getSections,function(i){return e("div",{key:"sec-".concat(i.code),staticClass:"mobile-topic-tag",class:{active:i.code===t.headlineSection},on:{click:function(e){return t.setHeadlineSection(i.code)}}},[t._v(" "+t._s(i.name_type)+" ")])}),t._l(t.grouped,function(i){return e("div",{key:"trendgroup-".concat(i.code),staticClass:"mobile-topic-tag",class:{active:i.code===t.headlineSection},on:{click:function(e){return t.setHeadlineSection(i.code)}}},[t._v(" "+t._s(i.name)+" ")])})],2),"domestic"===t.headlineSection||"foreign"===t.headlineSection?e("div",{staticClass:"story-section-wrap"},[e("TopicStories",{attrs:{section:t.getHeadlineSection}})],1):e("div",{staticClass:"story-section-wrap story-section-topics"},t._l(t.getHeadlineGroup.topics,function(i,n){return e("TopicTag",{key:"headlinetopic-".concat(n),attrs:{data:i},on:{click:function(e){return t.trackTopic(i.name)}}})}),1)])])},o=[],s=(i(50113),i(10838),i(74423),i(48598),i(44114),i(34782),i(26910),i(18111),i(20116),i(7588),i(33110),i(79432),i(26099),i(21699),i(23500),i(37693)),c=i(63874),a=i(45295),r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"stories",attrs:{id:"storiesGroup"}},[t._l(t.getStories,function(i,n){return e("div",{key:"sec-".concat(n,"-").concat(t.section.code,"-osx-").concat(i.slug),staticClass:"story",class:t.getReadState(i.slug),on:{click:function(e){return t.track(i.name)}}},[i.image?e("router-link",{staticClass:"story-image",attrs:{to:"/story/".concat(i.slug)}},[e("div",{staticClass:"inner-image",attrs:{onerror:"this.style.display='none'"}},[e("img",{attrs:{src:i.image,alt:i.name}})])]):t._e(),e("div",{staticClass:"story-content-wrapper"},[e("router-link",{attrs:{to:"/story/".concat(i.slug)}},[e("div",{staticClass:"story-content"},[i.name?e("h4",{staticClass:"story-name"},[t._v(t._s(i.name))]):t._e(),e("div",{staticClass:"story-meta-wrapper"},[e("span",{staticClass:"story-meta"},[e("svg",{attrs:{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M13.5938 7.5C13.5937 9.11616 12.9517 10.6661 11.8089 11.8089C10.6661 12.9517 9.11616 13.5938 7.5 13.5938C5.88384 13.5938 4.33387 12.9517 3.19107 11.8089C2.04827 10.6661 1.40625 9.11616 1.40625 7.5C1.40625 5.88384 2.04827 4.33387 3.19107 3.19107C4.33387 2.04827 5.88384 1.40625 7.5 1.40625C9.11616 1.40625 10.6661 2.04827 11.8089 3.19107C12.9517 4.33387 13.5937 5.88384 13.5938 7.5ZM0 7.5C0 9.48912 0.790176 11.3968 2.1967 12.8033C3.60322 14.2098 5.51088 15 7.5 15C9.48912 15 11.3968 14.2098 12.8033 12.8033C14.2098 11.3968 15 9.48912 15 7.5C15 5.51088 14.2098 3.60322 12.8033 2.1967C11.3968 0.790176 9.48912 0 7.5 0C5.51088 0 3.60322 0.790176 2.1967 2.1967C0.790176 3.60322 0 5.51088 0 7.5ZM6.79688 3.51562V7.5C6.79688 7.73438 6.91406 7.9541 7.11035 8.08594L9.92285 9.96094C10.2451 10.1777 10.6816 10.0898 10.8984 9.76465C11.1152 9.43945 11.0273 9.00586 10.7021 8.78906L8.20312 7.125V3.51562C8.20312 3.12598 7.88965 2.8125 7.5 2.8125C7.11035 2.8125 6.79688 3.12598 6.79688 3.51562Z",fill:"black"}})]),t._v(" "+t._s(t._f("ago")(i.last_published))+" ")]),"read"===t.getReadState(i.slug)?e("div",{staticClass:"story-meta read-state"},[t._v(" Read ")]):t._e(),"read"!==t.getReadState(i.slug)?e("span",{staticClass:"story-meta"},[t._v(t._s(i.cx_pub)+" sources")]):t._e(),"read"!==t.getReadState(i.slug)?e("div",{staticClass:"item-mood",class:t.getMood(i.mood).code},[e("div",{staticClass:"item-mood-marker"}),e("span",[t._v(t._s(t.getMood(i.mood).name))])]):t._e()]),i.stack?e("span",{staticClass:"story-stack"},[t._v(t._s(i.stack))]):t._e(),i.synopsis?e("span",{staticClass:"story-stack"},[t._v(t._s(i.synopsis))]):t._e()])]),e("ul",{staticClass:"meta",attrs:{title:t._f("date")(i.last_published)}},t._l(i.topics.slice(0,3),function(n,o){return e("li",{key:"story-".concat(o,"-").concat(i.slug,"-topic-").concat(n.topic_code)},[e("router-link",{attrs:{to:"/topic/".concat(n.topic_code)}},[t._v(" "+t._s(n.topic_name)+" ")])],1)}),0)],1)],1)}),"domestic"==t.section.code&&t.section.stories.length>t.iTruncateDomestic?e("div",{staticClass:"read-more-section"},[e("button",{on:{click:function(e){return t.expandSection()}}},[t._v("Show all "+t._s(t.section.stories.length)+" stories for "+t._s(t.section.name))])]):t._e()],2)},d=[],l=(i(62062),i(61701),{data:function(){return{iTruncateDomestic:1e3,expand:!1}},props:{section:{type:Object,default:null}},computed:{getStories:function(){var t=this,e=this.section.stories.map(function(e){var i,n;return null===(i=t.getEdition)||void 0===i||null===(n=i.stories)||void 0===n?void 0:n.find(function(t){return t.slug==e})}).sort(function(t,e){return new Date(t.last_published)>new Date(e.last_published)?-1:1});return e.slice(0,this.expand||"domestic"!=this.section.code?1e4:this.iTruncateDomestic)},getEdition:function(){return this.$store.getters.getLibraryItem("edition_v3")}},methods:{track:function(t){this.EventBus.$emit("track:event",{event:"headline-story",props:{mode:t},detail:{detail_char:t}})},expandSection:function(){this.expand=!0},getReadState:function(t){return this.$store.getters.readState(t).code},getMood:function(t){return t<-.25?{code:"negative",name:"Negative"}:t>.25?{code:"positive",name:"Positive"}:{code:"neutral",name:"Neutral"}}}}),u=l,p=i(81656),g=(0,p.A)(u,r,d,!1,null,"283f5c7e",null),m=g.exports,h=i(9148),v={components:{TopicsAZ:c.A,TopicTag:a.A,TopicStories:m,Fetching:h.A}
1,data:function(){return{headlineSection:"domestic",expandedTopic:"",expandedSections:{},oGroups:!1}},mounted:function(){var t=this;this.doLoad("mounted"),this.getSections.forEach(function(e){t.expandedSections[e.code]=!1})},computed:{getGroup:function(){return this.$route.params.subgroup||""},getHeadlineSection:function(){var t=this;return this.getEdition.sections.find(function(e){return e.code===t.headlineSection})},getIndexTopics:function(){var t,e=JSON.parse(JSON.stringify(this.$store.getters.getLibraryItem("topics_index",this.getGroup)))||[];return e=null===(t=e)||void 0===t?void 0:t.sort(function(t,e){return t.name.toUpperCase()>e.name.toUpperCase()?1:-1}),e},getIndexTopTopics:function(){var t;return(null===(t=this.$store.getters.getLibraryItem("topics_index",this.getGroup)||[])||void 0===t?void 0:t.slice(0,8))||[]},getIndexTopicAZ:function(){var t,e,i,n,o=this.getGroup.toUpperCase(),s=null===(t=this.getIndexTopics)||void 0===t||null===(e=t.find(Boolean))||void 0===e?void 0:e.name,c=null===(i=this.getIndexTopics)||void 0===i||null===(n=i.findLast(Boolean))||void 0===n?void 0:n.name;return s&&c?"".concat(o,": ").concat(s," to ").concat(c):"".concat(o,": ...")},getEdition:function(){return this.$store.getters.getLibraryItem("edition_v3")},getSections:function(){return this.getEdition.sections||[]},getTrendingTopics:function(){return this.$store.getters.getTrendingTopics},getHeadlineGroup:function(){var t=this,e=this.grouped.find(function(e){return e.code===t.headlineSection});return console.log("Group (".concat(this.headlineSection,") = "),e),e||{}},grouped:function(){var t,e,i;return null!==(t=this.getTrendingTopics)&&void 0!==t&&t.length&&null!==(e=this.getEdition)&&void 0!==e&&null!==(i=e.topics)&&void 0!==i&&i.length?(this.oGroups||this.buildGroups(),this.oGroups||[]):[]},getStories:function(t,e){var i=this.getStoriesFromSlug(e);return i.slice(0,this.expandedSections[t]?100:6)}},methods:{trackTopic:function(t){this.EventBus.$emit("track:event",{event:"headline-topic",props:{mode:t},detail:{detail_char:t}})},doLoad:function(){this.getGroup?s.A.getIndexTopics(this.getGroup):s.A.getTrendingTopics().then(function(){})},setHeadlineSection:function(t){this.headlineSection=t,window.scrollTo({top:0,behavior:"smooth"})},buildGroups:function(){var t=[],e=this.getTrendingTopics;t.push({name:"Trending",code:"trending",byline:"All kinds of topics trending right now.",topics:e});var i=this.getEdition.topics,n={};i.forEach(function(t){""!==t.meta.type&&(n[t.meta.type]||(n[t.meta.type]=[]),n[t.meta.type].push(t))});var o=[{name:"People",types:["person"],byline:"People mentioned in the most recent news."},{name:"Places",types:["country","location","administrativearea"],byline:"Countries trending around the world."},{name:"Everything Else",types:["*"],byline:"More important topics."}],s=[];o.forEach(function(e){var i={name:e.name,code:e.types.join(","),byline:e.byline,topics:[]};e.types.forEach(function(t){"*"!=t&&n[t]&&(s.push(t),n[t].forEach(function(e){var n;i.topics.push({type:t,name:e.meta.name,code:e.topic_code,byline:e.meta.byline,image:e.meta.image,cx:null===(n=e.stories)||void 0===n?void 0:n.cx})}))}),e.types.includes("*")&&Object.keys(n).forEach(function(t){s.includes(t)||n[t].forEach(function(e){var n;i.topics.push({type:t,name:e.meta.name,code:e.topic_code,byline:e.meta.byline,image:e.meta.image,cx:null===(n=e.stories)||void 0===n?void 0:n.cx})})}),t.push(i)}),t.forEach(function(t){t.topics=t.topics.sort(function(t,e){return t.cx>e.cx?-1:1}).slice(0,100)}),this.oGroups=t}},watch:{$route:function(){this.doLoad("$route")}}},f=v,_=(0,p.A)(f,n,o,!1,null,"443dee16",null),C=_.exports}}]); 2//# sourceMappingURL=view-Topics-vue-legacy.cff6b42a.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.