"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7718],{84326:function(e,t,a){var l;a.d(t,{Dj:function(){return n}});let n=((l={}).acfDisabled="acfDisabled",l.archived="archived",l.autoDraft="autoDraft",l.dpRewriteRepublish="dpRewriteRepublish",l.draft="draft",l.future="future",l.inherit="inherit",l.pending="pending",l.private="private",l.publish="publish",l.requestCompleted="requestCompleted",l.requestConfirmed="requestConfirmed",l.requestFailed="requestFailed",l.requestPending="requestPending",l.trash="trash",l)},87629:function(e,t,a){var l,n,r,i,s,o;a.r(t);let u=(r={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},i=[{alias:null,args:null,kind:"ScalarField",name:"headline",storageKey:null}],s=[l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"chorusId",storageKey:null}],{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ContentResourceAnalyticsContainer_contentResource",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},l,{alias:null,args:null,kind:"ScalarField",name:"wpId",storageKey:null},n,{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"resourceType",storageKey:null},r,{alias:null,args:null,kind:"ScalarField",name:"permalink",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"originalPublishedAt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"publishedAt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasAffiliateLinks",storageKey:null},{alias:null,args:null,concreteType:"CampaignResourceType",kind:"LinkedField",name:"primaryCampaign",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"advertiserName",storageKey:null},r],storageKey:null},{alias:null,args:null,concreteType:"ShareableDataType",kind:"LinkedField",name:"seo",plural:!1,selections:i,storageKey:null},{alias:null,args:null,concreteType:"ShareableDataType",kind:"LinkedField",name:"social",plural:!1,selections:i,storageKey:null},{alias:null,args:null,concreteType:"PromoDataType",kind:"LinkedField",name:"promo",plural:!1,selections:i,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"wordCount",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"PackageResourceType",kind:"LinkedField",name:"package",plural:!1,selections:s,storageKey:null},{alias:null,args:[{kind:"Literal",name:"first",value:100}],concreteType:"FeedContentStreamsConnection",kind:"LinkedField",name:"streams",plural:!1,selections:[{alias:null,args:null,concreteType:"StreamResourceType",kind:"LinkedField",name:"nodes",plural:!0,selections:s,storageKey:null}],storageKey:"streams(first:100)"},{alias:null,args:null,concreteType:"AuthorProfileResourceType",kind:"LinkedField",name:"authors",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"InternalCategoryResourceType",kind:"LinkedField",name:"internalCategories",plural:!0,selections:o=[{alias:null,args:null,kind:"ScalarField",name:"slug",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CategoryResourceType",kind:"LinkedField",name:"categories",plural:!0,selections:o,storageKey:null},{alias:null,args:null,concreteType:"CategoryResourceType",kind:"LinkedField",name:"primaryCategory",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"LiveStatusType",kind:"LinkedField",name:"liveStatus",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"startAt",storageKey:null}],storageKey:null}],type:"FeedContentResourceInterface",abstractKey:"__isFeedContentResourceInterface"},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"template",storageKey:null}],type:"PostResourceType",abstractKey:null}],type:"ContentResourceInterface",abstractKey:"__isContentResourceInterface"});u.hash="87d568b300904c7fc4bdd541f0f4e654",t.default=u},37762:function(e,t,a){var l,n=a(82201),r=a(86273),i=a(84326),s=a(92783),o=a(98411),u=a(88321),c=a(47382),d=a(45293),g=a(31218),p=a(92501),m=a(19738);t.Z=(0,g.n)(e=>{let t=(0,r.useFragment)((void 0!==l||(l=a(87629)).hash&&"87d568b300904c7fc4bdd541f0f4e654"!==l.hash&&console.error("The definition of 'ContentResourceAnalyticsContainer_contentResource' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),l),e.contentResource),g=(0,u.z$)(),y=(0,c.aC)(),h=(0,n.useRef)(!1),{communityConfig:{communityName:f},networkConfig:{networkName:k}}=(0,d.q)();return(0,n.useEffect)(()=>{if(!g||y.userLoading||t.status!==i.Dj.publish||h.current)return;let{id:e,wpId:a,resourceType:l,promo:n,social:r,seo:u,streams:c,authors:d,title:S,liveStatus:b,chorusId:C,hasAffiliateLinks:F,primaryCampaign:v,wordCount:L,package:T,template:w}=t,K=t.primaryCategory?.slug,P=(t.categories||[]).map(e=>e.slug);"package"===t.resourceType&&P.push(`package-${t.chorusId||t.id}`),T&&P.push(`package-${T.chorusId||T.id}`);let R=P.join(","),A=(t.internalCategories||[]).map(e=>{let{slug:t}=e;return t}).join(","),I="stream"!==l&&c?.nodes.length?c.nodes.map(e=>{let{id:t,chorusId:a}=e;return a?`${a}`:t}):[],D=[f.toLowerCase(),k.toLowerCase(),R,A,...I],x=t.originalPublishedAt?new Date(t.originalPublishedAt).toISOString():null,_=t.publishedAt?new Date(t.publishedAt).toISOString():null,j=y.user?.uid||y.viewer?.id||null,q={"All Categories":[...new Set(D.filter(Boolean))].join(","),Author:d?.map(e=>e.name).join(",")||"",Community:f.toLowerCase(),event:"dataLayer-initalized",Headline:S,"Inclusion of Commerce Disclosure":F,"Live Blog":!!b?.startAt,"Modified Date":_,Network:k.toLowerCase(),"Original Publish Time":x,"Page ID":C?`${C}`:e,"Page Type Category":"storytelling","Page Type":(0,p.C2)(l,!!w),"Post ID":a,"Promo Headline":n.headline,"SEO Headline":u.headline,"Social Headline":r.headline,"Story Streams":I.length?I.join(","):null,"Unique Pageload ID":(0,s.m3)(),"User ID":j?String(j):"Logged Out","Word Count":L,...o.HW};R.length>0&&(q.Categories=R),A.length>0&&(q["Internal Categories"]=A),K&&(q["Primary Category"]=K);let O=v?.advertiserName;O&&(q["Sponsored Post Advertiser"]=O,q={...q,...o.Hm});let B=(0,m.ej)("sailthru_hid");B&&(q["Sailthru User ID"]=B),q["Scroll Subscription"]=!!(0,m.ej)("scroll0"),h.current=!0,g.emit(q)},[g,y,t,f,k]),null},{context:"ContentResourceAnalyticsContainerErrorBoundary"})},34112:function(e,t,a){a.d(t,{Dp:function(){return f},Rz:function(){return d},TY:function(){return p},Xn:function(){return m},_1:function(){return b},an:function(){return g},lA:function(){return h},lc:function(){return i},tf:function(){return y},yw:function(){return k}});var l=a(27025),n=a.n(l),r=a(72964);let i=(e,t)=>({"@type":"Organization",name:e,logo:{"@type":"ImageObject",url:t?.url||"",width:t?.width?.toString()||"250",height:t?.height?.toString()||"250"}}),s=(e,t)=>{let{height:a,width:l}=(0,r.P_)(e,t);return{"@type":"ImageObject",url:t.url,height:a.toString(),width:l.toString()}},o=(e,t)=>{let a={headline:e.title,description:e.seo.description,datePublished:e.originalPublishedAt||"",dateModified:e.publishedAt||"",url:e.permalink,mainEntityOfPage:e.permalink,publisher:t,articleSection:e.primaryCategory.title,keywords:e.categories.map(e=>e.title),author:e.authors.map(e=>({"@type":"Person",name:e.name||"",url:e.permalink}))};return!1===e.isAccessibleForFree&&(a.isAccessibleForFree=!1),e.ledeMedia?.__typename==="LedeMediaImageType"&&(a.image=[s(e.ledeMedia.image,e.ledeMedia.image.thumbnails.social),s(e.ledeMedia.image,e.ledeMedia.image.thumbnails.horizontal),s(e.ledeMedia.image,e.ledeMedia.image.thumbnails.square)]),a},u=(e,t)=>({...o(e,t),speakable:{"@type":"SpeakableSpecification",xpath:["/html/head/title","/html/head/meta[@name='description']/@content"]},articleBody:e.seoArticleBody}),c=(e,t)=>{let a={"@type":"BlogPosting",...o(e,t)};return e.excerpt&&(a.articleBody=e.excerpt.map(e=>e.contents.plaintext).join("\n")),a},d=(e,t)=>{let a={"@context":"https://schema.org","@type":"LiveBlogPosting",...u(e,t),coverageStartTime:e.liveStatus.startAt||""};if(e.liveStatus.endAt&&(a.coverageEndTime=e.liveStatus.endAt),e.streamPosts){let l=e.streamPosts.nodes;a.liveBlogUpdate=n()(l).map(e=>c(e,t))}return a},g=(e,t)=>({"@context":"https://schema.org","@type":"NewsArticle",...u(e,t)}),p=(e,t)=>({"@context":"https://schema.org","@type":"AdvertiserContentArticle",...u(e,t)}),m=e=>({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((e,t)=>({"@type":"ListItem",position:t+1,name:e.category,item:e.url}))}),y=e=>({"@context":"https://schema.org","@type":"Person",name:e.name,jobTitle:e.title,image:e.profileImage?.thumbnails.square.url}),h=(e,t)=>({"@context":"https://schema.org","@type":"VideoObject",name:e.video?.title,description:e.caption.plaintext,thumbnailUrl:e.video?.poster?.thumbnails.horizontal.url,uploadDate:e.video?.publishedAt||"",contentUrl:t}),f=e=>{let t={"@context":"https://schema.org","@type":"Product",name:e.title};return e.retailLinks&&e.retailLinks.length>0&&(t.offers=e.retailLinks.map(e=>({"@type":"Offer",priceCurrency:"USD",price:e.salePrice||e.price,url:e.url,seller:{"@type":"Organization",name:e.retailer}}))),e.brand&&(t.brand={"@type":"Brand",name:e.brand.title}),e.showScores&&(t.review={"@type":"Review",reviewRating:{"@type":"Rating",ratingValue:e.score,bestRating:10,worstRating:1}}),t},k=e=>({"@context":"https://schema.org","@type":"ItemList",itemListElement:e.map((e,t)=>({"@type":"ListItem",position:t+1,item:f(e)}))}),S=e=>{switch(e){case"imageGif":return"image/gif";case"imageJpg":return"image/jpeg";case"imagePng":return"image/png";case"imageSvgXml":return"image/svg+xml";case"imageWebp":return"image/webp"}},b=e=>{let{image:t,imageThumbnail:a,placeholderImageUrl:l}=e;if(!t||!a)return{url:l};{let{width:e,height:l}=(0,r.P_)(t,a),{normalizedRatio:n}=a,i=e,s=l,o=a.url;if(e>r.Hx){i=r.Hx,s=Math.floor(r.Hx/n);let e=new URL(o),t=new URLSearchParams(e.search);t.has("w")||(t.set("w",`${r.Hx}`),e.search=t.toString(),o=e.toString())}return{url:o,height:s,width:i,alt:t.alt.length>0?t.alt:t.title,type:S(a.mimeType)}}}},56853:function(e,t,a){a.d(t,{Z:function(){return l}});function l({volumeEmbedHost:e,uuid:t,autoplay:a=!1,playerType:l}){return`${e}/embed/${t}?autoplay=${a?"true":"false"}&loop=true&placement=article&player_type=${l.toLowerCase()}&tracking=article:middle`}},25308:function(e,t){t.Z=e=>"https://volume.vox-cdn.com"}}]);