"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([["2000"],{75886:function(e,i,n){n.r(i),n.d(i,{default:()=>I});var t=n(52322),a=n(17845),r=n(11233),d=n(56111),l=n(73302),o=n(57046),s=n(69414),m=n(70992),c=n(83628),p=n(79644),u=n(78943);let k=u.ZP.div.withConfig({componentId:"sc-321178bb-0"})(["border-top:1px solid ",";margin-top:24px;"],e=>e.theme.colorLightAccent),v=u.ZP.header.withConfig({componentId:"sc-321178bb-1"})(["margin:24px 0;"]),g=u.ZP.h2.withConfig({componentId:"sc-321178bb-2"})(["color:",";font-size:18px;letter-spacing:1.5px;line-height:28px;text-transform:uppercase;"],e=>e.theme.colorBrand),h=u.ZP.div.withConfig({componentId:"sc-321178bb-3"})(["@media ","{&:nth-child(4){display:none;}}"],p.Z.query.medium),x=u.ZP.figure.withConfig({componentId:"sc-321178bb-4"})(["margin:0 0 12px;"]),b=u.ZP.img.withConfig({componentId:"sc-321178bb-5"})(["aspect-ratio:16 / 9;display:block;height:auto;object-fit:cover;width:100%;"]),f=u.ZP.div.withConfig({componentId:"sc-321178bb-6"})([""]),y=u.ZP.h5.withConfig({componentId:"sc-321178bb-7"})(["color:",";font-family:",";font-size:13px;font-weight:400;line-height:16px;margin:0 0 8px;"],p.Z.colorMid,p.Z.fontPrimary),N=u.ZP.a.withConfig({componentId:"sc-321178bb-8"})(["align-items:center;color:",";display:inline-flex;gap:4px;text-decoration:none;transition:color .2s ease-out;svg{height:12px;width:12px;}&:focus,&:hover{color:",";text-decoration-color:",";text-decoration-line:underline;}"],e=>e.theme.colorBrand,e=>e.theme.colorStoryTileHeadlineHover,e=>e.theme.colorStoryTileHeadlineHoverUnderline),S=u.ZP.h3.withConfig({componentId:"sc-321178bb-9"})(["a{text-decoration:none;}"]),P=u.ZP.div.withConfig({componentId:"sc-321178bb-10"})(["display:grid;gap:24px;grid-template-columns:repeat(2,1fr);@media ","{grid-template-columns:repeat(3,1fr);}",""],p.Z.query.medium,({$stacked:e,theme:i})=>e&&(0,u.iv)(["display:flex;flex-direction:column;","{border-bottom:1px solid ",";display:flex;flex-direction:row-reverse;padding-bottom:16px;}",":last-child{border-bottom:0;margin-bottom:12px;padding-bottom:0;}","{height:80px;margin-left:16px;width:80px;}","{line-height:20px;}"],h,i.colorLightAccent,h,b,S));var D=n(50041),T=n(28067),j=n(2784),w=n(17741);let Z={kind:"Document",definitions:[{kind:"OperationDefinition",name:{kind:"Name",value:"DomainRecommendsQuery"},directives:[],variableDefinitions:[{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"brand"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Brand"}}}},{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"provider"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AssetsByThirdPartyProvider"}}}},{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"assetsByThirdParty"},arguments:[{kind:"Argument",name:{kind:"Name",value:"brand"},value:{kind:"Variable",name:{kind:"Name",value:"brand"}}},{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"Variable",name:{kind:"Name",value:"provider"}}},{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"assets"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"asset"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"headlines"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"headline"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"featuredImages"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"landscape16x9"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"altText"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"urls"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"external"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:272,source:{body:"query DomainRecommendsQuery($brand:Brand!,$provider:AssetsByThirdPartyProvider!,$type:String!){assetsByThirdParty(brand:$brand,provider:$provider,type:$type){assets{asset{headlines{headline}}featuredImages{landscape16x9{data{altText}url}}id urls{external}}error{message}}}"}}},_=({asset:e,index:i})=>{let n=e.featuredImages?.landscape16x9?.url||"",a=e.featuredImages?.landscape16x9?.data?.altText||"",d=e.asset?.headlines?.headline,s=e.urls?.external;return(0,t.jsxs)(h,{"data-an-position":i+1,"data-testid":"story-tile",children:[(0,t.jsx)(x,{children:(0,t.jsx)("a",{href:s,rel:"noopener noreferrer",tabIndex:-1,target:"_blank",children:(0,t.jsx)(b,{alt:a,src:n})})}),(0,t.jsxs)(f,{children:[(0,t.jsx)(y,{children:(0,t.jsxs)(N,{href:s,rel:"noopener noreferrer",target:"_blank",children:["Domain ",(0,t.jsx)(r.Z,{})]})}),(0,t.jsx)(S,{as:o.Headline,headlineSizes:l.Mo.XXS_XXS_XXS,children:(0,t.jsx)("a",{"data-testid":"article-link",href:s,rel:"noopener noreferrer",target:"_blank",children:d})})]})]},e.id)},I=({asset:e,rightRail:i})=>{let n=!(0,c.gg)(e),{brand:{shortSiteName:r}}=(0,d.Z)(),[l,{data:o,error:p}]=(e=>{let[i,n]=(0,D.t)(Z,{fetchPolicy:"no-cache"}),t=(0,w.w)(e);return[(0,j.useCallback)(()=>i({context:{clientName:"api-front"},variables:{brand:t,provider:T.hl.Domain,type:"recommended"}}),[i,t]),n]})(r),{ref:u}=(0,m.YD)({rootMargin:"0px 0px 500px 0px",triggerOnce:!0,skip:n,onChange:e=>{!n&&e&&l()}});if(n)return null;let h=p||o?.assetsByThirdParty?.error;if(h)return s.Y.error("DomainRecommends failure",a.log.EventType("domainRecommends","error"),a.log.Error(h)),null;if(!o)return(0,t.jsx)("div",{ref:u});let x=o?.assetsByThirdParty?.assets??[];if(0===x.length)return null;let b=x.slice(0,4);return(0,t.jsxs)(k,{className:"noPrint",children:[(0,t.jsx)(v,{children:(0,t.jsx)(g,{children:"Domain Recommends"})}),(0,t.jsx)(P,{$stacked:i,children:b.map((e,i)=>(0,t.jsx)(_,{asset:e,index:i},e.id))})]})}}}]);