1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[298],{17:function(e,t,n){"use strict";var r=n(1664),a=n(6538),s=n(5999),i=n(5893);t.Z=function(e){var t=e.content,n=e.href,o=e.url,c=e.showLabel,d=void 0===c||c;return(0,i.jsxs)("div",{className:"card",children:[(0,i.jsxs)("div",{className:"image",children:[o.startsWith("http")&&(0,i.jsx)("a",{href:o,target:"_blank",rel:"noopener noreferrer",children:(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{media:"(min-width: 360px)",srcSet:t.articleMetadata.image.path}),(0,i.jsx)("img",{src:t.articleMetadata.image.path,alt:""})]})}),!o.startsWith("http")&&(0,i.jsx)(r.default,{href:n,as:o,children:(0,i.jsx)("a",{children:(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{media:"(min-width: 360px)",srcSet:s.fL+t.articleMetadata.image.path}),(0,i.jsx)("img",{src:s.fL+t.articleMetadata.image.path,alt:""})]})})}),d&&(0,i.jsx)("div",{className:"label",children:t.articleMetadata.section})]}),(0,i.jsxs)("div",{className:"meta",children:[(0,i.jsx)("img",{src:"".concat(s.fL,"/images/logos/n2k-box-black.svg"),alt:"N2K logo"}),(0,i.jsx)("div",{className:"meta-text",children:(0,a.getAge)(t.metadata.datePublished)})]}),(0,i.jsxs)("div",{className:"title",children:[o.startsWith("http")&&(0,i.jsx)("a",{href:o,target:"_blank",rel:"noopener noreferrer",children:t.articleMetadata.title}),!o.startsWith("http")&&(0,i.jsx)(r.default,{href:n,as:o,children:(0,i.jsx)("a",{children:t.articleMetadata.title})})]}),(0,i.jsxs)("div",{className:"description",children:[o.startsWith("http")&&(0,i.jsx)("a",{href:o,target:"_blank",rel:"noopener noreferrer",children:t.articleMetadata.description}),!o.startsWith("http")&&(0,i.jsx)(r.default,{href:n,as:o,children:(0,i.jsx)("a",{children:t.articleMetadata.description})})]})]})}},2640:function(e,t,n){"use strict";var r=n(17),a=n(5893);t.Z=function(e){var t=e.content,n=e.showLabel,s=void 0===n||n,i=t.articleMetadata.url.startsWith("http")?t.articleMetadata.url:"/newsletters/".concat(t.data.issueId,"/").concat(t.data.issueVolume,"/").concat(t.data.issueNumber);return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(r.Z,{content:t,url:i,href:"/newsletters/[issueId]/[issueVolume]/[issueNumber]",showLabel:s})})}},6:function(e,t,n){"use strict";var r=n(17),a=n(5893);t.Z=function(e){var t=e.content,n=e.showLabel,s=void 0===n||n,i=t.articleMetadata.url.startsWith("http")?t.articleMetadata.url:"/podcasts/".concat(t.data.showId,"/").concat(t.data.episode,"/notes");return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(r.Z,{content:t,url:i,href:"/podcasts/[show]/[episode]/[info]",showLabel:s})})}},2975:function(e,t,n){"use strict";var r=n(17),a=n(5893);t.Z=function(e){var t=e.content,n=e.showLabel,s=void 0===n||n,i=t.title.toLowerCase().replace(/[^a-zA-Z0-9-\s]/g,"").replace(/\s/g,"-"),o=t.articleMetadata.url.startsWith("http")?t.articleMetadata.url:"/stories/".concat(t.id,"/").concat(i);return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(r.Z,{content:t,url:o,href:"/stories/[cwid]/[title]",showLabel:s})})}},4048:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _}});var r,a=n(5861),s=n(5988),i=n(7757),o=n.n(i),c=n(7294),d=n(9063),l=n(2982),u=n(4942),m=n(168),h=n(4311),p=n(4382),f=n(2640),x=n(6),j=n(2975),g=n(804),b=n(6538),v=n(3346),w=n(5999),y=n(5893);function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){(0,u.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Z=(0,h.Ps)(r||(r=(0,m.Z)(["\n query GetAllContent($query: String, $options: QueryOptionsInput) {\n Contents(query: $query, options: $options) {\n items {\n ... on Content {\n id\n kind\n title\n metadata {\n datePublished\n }\n articleMetadata {\n section\n title\n url\n description\n image {\n path\n }\n }\n }\n ... on ContentNewsletter {\n data {\n date\n issueId\n issueVolume\n issueNumber\n }\n }\n ... on ContentStory {\n data {\n media {\n type\n source\n url\n }\n }\n }\n }\n pageInfo {\n size\n totalElements\n totalPages\n number\n }\n }\n }\n"]))),M=function(e){var t=e.section,n=((0,b.currentDateRoundedtoMinutes)(5),(0,p.aM)(Z,{variables:{options:{sort:"metadata.datePublished,desc",limit:6,page:0},query:'{"$and": [{"articleMetadata.section": "'.concat(t,'"},{"$or": [{"kind": "ContentNewsletter"}, {"kind": "ContentStory"}]}]}')},ssr:!0})),r=n.data,a=n.loading,s=n.error,i=n.fetchMore,o=n.networkStatus;if(3===o)return w.r8&&console.debug("Fetch More"),(0,y.jsx)("div",{children:"FetchMore"});if(4===o&&w.r8&&console.debug("Refetching"),a)return w.r8&&console.debug("Loading CardListSection..."),(0,y.jsx)(g.Z,{});if(s)return console.error("CardList Section: ERROR fetching data"),console.error(s),(0,y.jsx)(v.Z,{statusCode:400,message:s.message});return r.Contents&&r.Contents.pageInfo.size>0?(w.r8&&console.debug("==== Rendering CardListSection ====="),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"card-list-container",children:r.Contents.items.map((function(e){var t=null;switch(e.kind){case"ContentNewsletter":t=(0,y.jsx)(f.Z,{content:e},e.id);break;case"ContentPodcast":t=(0,y.jsx)(x.Z,{content:e},e.id);break;case"ContentStory":t=(0,y.jsx)(j.Z,{content:e},e.id);break;default:console.error("**** Unknown featured content type *****")}return t}))}),r.Contents.items.length<r.Contents.pageInfo.totalElements&&(0,y.jsxs)("div",{className:"load-more-container",children:[(0,y.jsx)("div",{className:"load-more-bar"}),(0,y.jsx)("div",{className:"button load-more",onClick:function(){i({variables:{options:{sort:"metadata.datePublished,desc",limit:6,page:r.Contents.pageInfo.number+1}},updateQuery:function(e,t){var n=t.fetchMoreResult;return n?N(N({},n),{},{Contents:N(N({},n.Contents),{},{items:[].concat((0,l.Z)(e.Contents.items),(0,l.Z)(n.Contents.items))})}):(console.error("Failed to get result on fetchMore"),e)}})},children:(0,y.jsx)("div",{children:"Load More"})})]})]})):void 0},O=n(2584),S=n(5548),k=n(4898),L=["Privacy","Research","Legal","Policy","Business","Disinformation","Story"],P=function(e){var t=e.section,n=(0,c.useContext)(O.Z);(0,c.useEffect)((function(){n.setTags(["page-".concat(t.toLowerCase())]),n.exec(),n.page.setTitle("Story"===t?"Stories":t),(0,k.rm)()}));"/".concat(t.toLowerCase());return(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)("div",{className:"jsx-1483919400 content-container-wrapper",children:[(0,y.jsx)("div",{className:"jsx-1483919400 dspotsa-container",children:(0,y.jsx)(S.Z,{spot:"HomeLeaderboard"})}),(0,y.jsxs)("div",{className:"jsx-1483919400 content-grid-container",children:[(0,y.jsxs)("div",{className:"jsx-1483919400 cards-container",children:[(0,y.jsx)("div",{className:"jsx-1483919400 pageTitle--lg mb20",children:"Story"===t?"Stories":t}),(0,y.jsx)(M,{section:t})]}),(0,y.jsxs)("div",{className:"jsx-1483919400 sidebar-container",children:[(0,y.jsx)("div",{className:"jsx-1483919400 dspotsa-container",children:(0,y.jsx)(S.Z,{spot:"HomeRail"})}),(0,y.jsx)("div",{className:"jsx-1483919400 piano-recommended"}),(0,y.jsx)("div",{className:"jsx-1483919400 piano-most-read"})]})]}),(0,y.jsx)(s.default,{id:"1483919400",children:[".recommended-container.jsx-1483919400{margin-bottom:2rem;}",".mread-container.jsx-1483919400{margin-bottom:2rem;}",".section-title.jsx-1483919400{padding:10px 0;margin-top:20px;}","@media (min-width:902px){.dspotsa-container.jsx-1483919400{margin-bottom:30px;}}","@media (max-width:901px){.content-grid-container.jsx-1483919400{grid-template-columns:1fr;}.cards-container.jsx-1483919400{grid-row:1/2;}.sidebar-container.jsx-1483919400{grid-row:2/3;}.mread-container.jsx-1483919400{height:287px;}.recommended-container.jsx-1483919400{height:504px;}}","@media (min-width:902px) and (max-width:1339px){.content-grid-container.jsx-1483919400{grid-template-columns:240px 576px;grid-column-gap:20px;margin:0;}}","@media (min-width:1340px){.content-grid-container.jsx-1483919400{grid-template-columns:23fr 55fr;}}","@media (min-width:902px){.content-grid-container.jsx-1483919400{grid-template-areas: 'sidebar content' 'sidebar .';}.cards-container.jsx-1483919400{grid-area:content;}.sidebar-container.jsx-1483919400{grid-area:sidebar;}}"]})]})})};P.getInitialProps=function(){var e=(0,a.Z)(o().mark((function e(t){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(n=t.query.section).charAt(0).toUpperCase()+n.slice(1).toLowerCase(),L.includes(n)||(n="Story"),e.abrupt("return",{section:n});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();var _=(0,d.Z)(P)},7611:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/section/[section]",function(){return n(4048)}])},907:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},2982:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(907);var a=n(181);function s(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,a.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},181:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(907);function a(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},function(e){e.O(0,[774,965,862,888,179],(function(){return t=7611,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.