PageSourceSearch

https://time.com/replatform/_next/static/chunks/05fv9zdgr6heq.js

js time.com collected 2026-09-24 07:34:57 UTC 25,448 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,880438,e=>{"use strict";e.i(247167);var t=e.i(843476),r=e.i(271645),a=e.i(682108),s=e.i(495277),i=e.i(957786),l=e.i(387644),n=e.i(815316),o=e.i(19477),c=e.i(212044),d=e.i(360365),u=e.i(778497);let m="Something went wrong. Try again.",p={success:!1,error:{message:""}},f=({pubId:e,variationSlug:f,instanceId:h,newsletterTitle:v,ctaLabel:y,hideTermsDisclaimer:b=!1})=>{let[j,w]=(0,r.useState)(!1),[N,k]=(0,r.useState)(""),[_,S]=(0,r.useState)(p),[C,E]=(0,r.useState)(!1),[P,I]=(0,r.useState)(!1),[T,F]=(0,r.useState)(!1),L=(0,r.useRef)(null),M=(0,r.useRef)(null),{executeRecaptcha:R}=(0,a.useGoogleReCaptcha)(),{country:A,needsExplicitOptIn:z,showConsentCheckbox:O}=(0,d.default)(),$=!z||P,U=_.success,W=_.error?.message??"",D=!!W&&!j,q=`newsletter-breaker-error-${h}`,B=`newsletter-breaker-consent-error-${h}`,G={utm_source_pg:"web",utm_medium_pg:"article",utm_campaign_pg:"module",utm_content_pg:"newsletter-breaker",utm_term_pg:f},J=[{name:"utm_source_pg",value:G.utm_source_pg},{name:"utm_medium_pg",value:G.utm_medium_pg},{name:"utm_campaign_pg",value:G.utm_campaign_pg},{name:"utm_content_pg",value:G.utm_content_pg},{name:"utm_term_pg",value:G.utm_term_pg},{name:"marketing",value:$?"True":"False"},...A?[{name:"country_marketing",value:A}]:[]],K=(0,r.useCallback)(async()=>R?R("newsletter_subscribe"):"",[R]),Y=async t=>{if(t.preventDefault(),O&&!P){F(!0),M.current?.focus();return}F(!1),w(!0),E(!1),S({success:!1,error:{message:""}});try{let t=await K();if(!t){S({success:!1,error:{message:"reCAPTCHA is not ready. Please try again."}}),w(!1);return}let r=await fetch("/api/newsletter-subscribe/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:N,pubIds:[e],recaptchaToken:t,custom_fields:J})}),a=await r.json();S(a.success?a:{success:!1,error:{...a.error,message:r.status>=500||!a.error?.message?m:a.error.message}}),a.success?((0,l.sendGTMEvent)({event:o.eventName.NEWSLETTER_SIGNUP,...G}),(0,l.sendGTMEvent)({event:"newsletterBanner_signup",clickText:v}),(0,c.marfeelTrackConversion)("Newsletter Signup Beehiiv")):E(!0)}catch(e){(0,u.logError)({message:"[NewsletterBreaker]: Subscribe request failed",error:e}),S({success:!1,error:{message:m}}),E(!0)}finally{w(!1)}};return(0,r.useEffect)(()=>{W&&C&&L.current?.focus()},[W,C]),(0,t.jsxs)("div",{className:"relative w-full sm:max-w-[301px]",children:[!U&&(0,t.jsxs)("form",{onSubmit:e=>{Y(e)},children:[(0,t.jsxs)("div",{className:"flex flex-col items-stretch gap-2 sm:flex-row sm:items-center",children:[(0,t.jsx)(i.Input,{ref:L,disabled:j,name:"email",type:"email",placeholder:"[email protected]","aria-invalid":D,"aria-describedby":W?q:void 0,className:(0,n.cn)("h-10 w-full border-warm-grey-2 bg-white text-grey-1 sm:max-w-[201px]",D&&"border-brand-red"),required:!0,value:N,onChange:e=>k(e.target.value)}),(0,t.jsx)(s.default,{size:"md",type:"submit",disabled:j,"aria-busy":j,className:"h-10 w-full px-4 py-3 sm:w-[92px]",children:y})]}),O&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("label",{className:"mt-2 flex items-start gap-2 font-graphik-compact text-[0.75rem] font-normal leading-[140%] text-grey-1",children:[(0,t.jsx)("input",{ref:M,type:"checkbox",checked:P,"aria-invalid":T,"aria-describedby":T?B:void 0,onChange:e=>{I(e.target.checked),e.target.checked&&F(!1)},className:(0,n.cn)("mt-px size-3 shrink-0 appearance-none rounded-sm border border-grey-1 checked:bg-grey-1",T&&"border-brand-red")}),"Yes, I agree to receive promotions and news from Time."]}),T&&(0,t.jsx)("p",{id:B,role:"alert",className:"mt-1 font-graphik-compact text-caption-small text-brand-red",children:"Please agree to receive promotions to sign up."})]}),!b&&(0,t.jsxs)("p",{className:"mt-2 font-graphik-compact text-[0.625rem] font-normal leading-[140%] text-grey-1",children:["By signing up you are agreeing to our"," ",(0,t.jsx)("a",{href:"https://legal.time.com/terms-of-service/",className:"underline",target:"_blank",rel:"noreferrer",children:"Terms of Service"})," ","and"," ",(0,t.jsx)("a",{href:"https://legal.time.com/us-privacy-policy/",className:"underline",target:"_blank",rel:"noreferrer",children:"Privacy Policy"}),"."]}),W&&(0,t.jsx)(x,{errorId:q,errorMessage:W})]}),(0,t.jsx)(g,{isSuccess:U})]})},g=(0,r.memo)(({isSuccess:e})=>(0,t.jsx)("div",{"aria-live":"assertive",className:(0,n.cn)(!e&&"sr-only",e&&"block rounded-sm bg-ivory-white px-3 py-2 text-center font-graphik-compact text-t4 text-black-coffee"),children:e?"Thank you for signing up!":""}));g.displayName="SuccessMessage";let x=(0,r.memo)(({errorId:e,errorMessage:r})=>(0,t.jsx)("p",{id:e,role:"alert",className:"absolute -bottom-5 left-0 font-graphik-compact text-caption-small text-brand-red",tabIndex:-1,
1children:r}));x.displayName="ErrorMessage",e.s(["default",0,e=>(0,t.jsx)(a.GoogleReCaptchaProvider,{reCaptchaKey:"6LeRFYwsAAAAAKWh_7LgTKJe13srl-Zw0P0KsECT",useEnterprise:!0,children:(0,t.jsx)(f,{...e})})])},5e3,e=>{"use strict";var t=e.i(843476),r=e.i(285385),a=e.i(815316),s=e.i(797510);e.s(["default",0,({src:e,credit:i="",caption:l="",imageParentClass:n,imageClass:o,captionClass:c,creditClass:d,figCaptionClass:u,className:m,fill:p=!0,...f})=>(0,t.jsxs)("figure",{className:m,children:[(0,t.jsx)("div",{className:(0,a.cn)("relative w-full",n),children:(0,t.jsx)(r.default,{src:e,fill:p,className:(0,a.cn)("object-cover",o),...f})}),(i||l)&&(0,t.jsxs)("figcaption",{className:(0,a.cn)("rich-text mt-1 font-graphik-compact text-caption-small",u),children:[l&&(0,t.jsx)("span",{className:(0,a.cn)("text-grey-1",c),children:(0,t.jsx)(s.SanitizedPlainText,{text:l})}),i&&(0,t.jsx)("span",{className:(0,a.cn)("mt-1 italic text-grey-1",d,{"ml-2":l}),children:(0,t.jsx)(s.SanitizedPlainText,{text:i})})]})]})])},586119,e=>{"use strict";var t=e.i(843476),r=e.i(752472),a=e.i(815316),s=e.i(3303),i=e.i(271645);e.i(480712);var l=e.i(311066),n=e.i(374774);let o="data:text/vtt;charset=utf-8,"+encodeURIComponent("WEBVTT\n\n");function c({mediaId:e,posterImage:s,vertical:i,className:l}){if(!e.trim())return null;let n=`${r.JW_PLAYER_MANIFEST_URL}${e}.m3u8`,d=`${r.JW_PLAYER_VIDEO_URL}${e}.mp4`;return(0,t.jsxs)("video",{className:(0,a.cn)("h-full w-full bg-black-coffee object-contain",{"aspect-9/16":i,"aspect-video":!i},l),controls:!0,playsInline:!0,preload:"metadata",poster:s,"data-testid":"jw-native-fallback-video",children:[(0,t.jsx)("source",{src:n,type:"application/x-mpegURL"}),(0,t.jsx)("source",{src:d,type:"video/mp4"}),(0,t.jsx)("track",{kind:"captions",srcLang:"en",label:"English",src:o})]})}var d=e.i(778497),u=e.i(212044);e.s(["default",0,function({mediaId:e,playlistId:o,autostart:m=!1,disableAds:p=!1,noRec:f=!1,vertical:g=!1,dynamicAspect:x=!1,floatingPlayer:h=!1,muted:v=!1,loop:y=!1,aspect_ratio:b,posterImage:j,generateSEOMetadata:w=!1,className:N,playerInstanceRef:k,captionFile:_,fallbackMediaId:S,playerLibraryId:C,onComplete:E,onPlaylistItem:P,...I}){let T=(0,i.useId)(),F=`jwplayer-${T}`,L=`https://cdn.jwplayer.com/libraries/${C??r.JW_MAIN_PLAYER_ID}.js`,[M,R]=(0,i.useState)(!1),[A,z]=(0,i.useState)(!1),[O,$]=(0,i.useState)(!0),[U,W]=(0,i.useState)(!1),[D,q]=(0,i.useState)(null),B=(0,i.useRef)(null),G=(0,i.useRef)(!0),J=(0,i.useRef)(!1),K=(0,i.useRef)(!1),Y=(0,i.useRef)(null),V=D??(S?.trim()||e.trim()||o?.trim()||"");return((0,i.useEffect)(()=>{if(!(A&&M))return;let e=setInterval(()=>{if(!window.google?.ima)return;window.google.ima.settings.setFeatureFlags({force_ad_request_wait_gpt_sync:!0});let t=F.replaceAll(/([,.:[\]])/g,String.raw`\$1`),r=document.querySelector(`#${t}`);if(!r)return;let a=new window.google.ima.AdDisplayContainer(r),s=new window.google.ima.AdsLoader(a),i=new window.google.ima.AdsRequest;s.requestAds(i),clearInterval(e)},100);return()=>clearInterval(e)},[A,M,F]),(0,i.useEffect)(()=>(G.current=!0,()=>{G.current=!1,B.current&&(B.current.remove(),B.current=null)}),[]),U&&V)?(0,t.jsx)("div",{className:(0,a.cn)("relative m-auto flex w-full bg-black-coffee",{"aspect-9/16":g,"aspect-video":!g},N),"data-testid":"video-container",children:(0,t.jsx)(c,{mediaId:V,posterImage:j,vertical:g,className:"m-auto"})}):(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:(0,a.cn)("relative m-auto w-full overflow-hidden bg-black-coffee",!x&&(g?"aspect-9/16":"aspect-video"),N),"data-testid":"video-container",children:[(0,t.jsx)("div",{id:F,className:(0,a.cn)("z-0 min-h-0 min-w-0",x?"absolute inset-0 size-full":"relative size-full")}),(0,t.jsx)("div",{ref:Y,"data-testid":"video-loading-overlay",style:{display:O?"flex":"none"},className:"pointer-events-none absolute inset-0 z-10 items-center justify-center bg-black-coffee",children:O&&(0,t.jsx)(l.default,{isVideo:!0})})]}),!M&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.default,{id:`jwplayer-script-${e}-${T}`,src:L,onError:()=>{W(!0),$(!1)},onLoad:()=>{(async()=>{let t=t=>{(0,d.logWarn)({message:"[Video]: JW player setup failed; switching to native fallback",error:t,context:{mediaId:e}}),G.current&&(W(!0),$(!1))},a=e=>{e.remove(),B.current===e&&(B.current=null),k&&k.current===e&&(k.current=null)},s=()=>{Y.current&&(Y.current.style.display="none"),$(!1)},i=()=>{Y.current&&(Y.current.style.display="flex"),$(!0)},l=async({setupMediaId:e,setupPlaylistId:o,hasAttemptedPlaylistFallback:c})=>{let N=!1,S=!1,C=o?.trim()??"",T=!c&&!!C,L=async e=>{!T||N||(N=!0,G.current&&(q(C),(0,d.logWarn)({message:"[JW]: Contentstack playlist ID resolved as a media ID fallback",context:{playlistId:o,mediaId:C}}),a(e),K.current=!1,J.current=!1,$(!0),await l({setupMediaId:C,setupPlaylistId:void 0,hasAttemptedPlaylistFallback:!0})))},M=await (0,r.setUpPlayer)(F,{mediaId:e,playlistId:o,autostart:m,disableAds:p,noRec:f,vertical:g,dynamicAspect:x,floatingPlayer:h,generateSEOMetadata:w,muted:v,loop:y,aspect_ratio:b,posterImage:j,captionFile:_,...I},{onSetupError:(e,r)=>{if(G.current&&!N&&!S){if(!T||102404!==e.code){S=!0,a(r),t(e);return}L(r).catch(t)}}});if(!N&&!S){if(!G.current)return void M?.remove();if(!M){W(!0),$(!1);return}for(let e of(M.on("buffer",()=>{document.querySelector("#scale-agent-overlay-container")?.dataset.isexpanded==="true"&&"function"==typeof M.pause&&M.pause()}),["ready","firstFrame","error","adStarted"]))M.on(e,s);for(let e of(M.on("playlistItem",()=>{if(J.current=!0,!K.current){K.current=!0;return}i()}),M.on("firstFrame",()=>{J.current=!1,(0,u.marfeelTrackConversion)("video play JWplayer")}),["adComplete","adSkipped","adError"]))M.on(e,()=>{J.current&&i()});E&&M.on("complete",E),P&&M.on("playlistItem",({index:e,item:t})=>P({index:e,mediaId:t?.mediaid,item:t})),k&&(k.current=M),B.current=M,T&&(0,r.isJwPlaylistMissing)(C).then(e=>{e&&L(M).catch(t)}),(0,n.setPageLevelTargetingKeyVal)(n.CustomTargetingKey.VIDEO_ON_PAGE,"true"),R(!0)}};try{await l({setupMediaId:e,setupPlaylistId:o,hasAttemptedPlaylistFallback:!1})}catch(e){t(e)}})()}}),!p&&(0,t.jsx)(s.default,{id:"ima-adaptor",src:"https://static.adsafeprotected.com/vans-adapter-google-ima.js","data-
1purposes":"behavioral_advertising",onLoad:()=>z(!0)})]})]})}],586119)},713588,e=>{"use strict";var t=e.i(843476);e.s(["default",0,({ref:e,className:r,...a})=>(0,t.jsx)("div",{ref:e,className:r,...a})])},10197,e=>{"use strict";var t=e.i(843476),r=e.i(815316);let a=({children:e,className:a,component:s="div",noDefaultClass:i=!1,...l})=>(0,t.jsx)(s,{className:(0,r.cn)("grid gap-x-4",{"grid-cols-4 lg:grid-cols-12":!i},a),...l,children:e});a.displayName="Grid",e.s(["default",0,a])},622270,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(475254);let s=(0,a.default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),i=(0,a.default)("flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]),l=(0,a.default)("loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]),n=(0,a.default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);var o=e.i(37727),c=e.i(522016),d=Object.defineProperty,u=(e,t)=>d(e,"name",{value:t,configurable:!0});function m(e,a=[]){let s=[];function i(a,i){let l=r.createContext(i);l.displayName=a+"Context";let n=s.length;s=[...s,i];let o=u(a=>{let{scope:s,children:i,...o}=a,c=s?.[e]?.[n]||l,d=r.useMemo(()=>o,Object.values(o));return(0,t.jsx)(c.Provider,{value:d,children:i})},"Provider");function c(t,s,o={}){let{optional:d=!1}=o,u=s?.[e]?.[n]||l,m=r.useContext(u);if(m)return m;if(void 0!==i)return i;if(!d)throw Error(`\`${t}\` must be used within \`${a}\``)}return o.displayName=a+"Provider",u(c,"useContext"),[o,c]}u(i,"createContext");let l=u(()=>{let t=s.map(e=>r.createContext(e));return u(function(a){let s=a?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...a,[e]:s}}),[a,s])},"useScope")},"createScope");return l.scopeName=e,[i,p(l,...a)]}function p(...e){let t=e[0];if(1===e.length)return t;let a=u(()=>{let a=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return u(function(e){let s=a.reduce((t,{useScope:r,scopeName:a})=>{let s=r(e)[`__scope${a}`];return{...t,...s}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])},"useComposedScopes")},"createScope");return a.scopeName=t.scopeName,a}function f(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}u(function(e,a){let s=r.createContext(a);s.displayName=e+"Context";let i=u(e=>{let{children:a,...i}=e,l=r.useMemo(()=>i,Object.values(i));return(0,t.jsx)(s.Provider,{value:l,children:a})},"Provider");function l(t,i={}){let{optional:n=!1}=i,o=r.useContext(s);if(o)return o;if(void 0!==a)return a;if(!n)throw Error(`\`${t}\` must be used within \`${e}\``)}return i.displayName=e+"Provider",u(l,"useContext"),[i,l]},"createContext"),u(m,"createContextScope"),u(p,"composeContextScopes"),(0,Object.defineProperty)(f,"name",{value:"useCallbackRef",configurable:!0});var g=globalThis?.document?r.useLayoutEffect:()=>{},x=e.i(174080),h=e.i(991918),v=Object.defineProperty,y=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,a)=>{let s=(0,h.createSlot)(`Primitive.${a}`),i=r.forwardRef((e,r)=>{let{asChild:i,...l}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(i?s:a,{...l,ref:r})});return i.displayName=`Primitive.${a}`,{...e,[a]:i}},{});v(function(e,t){e&&x.flushSync(()=>e.dispatchEvent(t))},"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var b=Object.defineProperty,j=(e,t)=>b(e,"name",{value:t,configurable:!0}),w="Avatar",[N,k]=m(w),_=[0,()=>void 0],[S,C]=N(w),E=r.forwardRef(j(function(e,a){let{__scopeAvatar:s,...i}=e,[l,n]=r.useState("idle"),[o,c]=F();return(0,t.jsx)(S,{scope:s,imageLoadingStatus:l,setImageLoadingStatus:n,imageCount:o,setImageCount:c,children:(0,t.jsx)(y.span,{...i,ref:a})})},"Avatar")),P=r.forwardRef(j(function(e,a){let{__scopeAvatar:s,src:i,onLoadingStatusChange:l,...n}=e,o=C("AvatarImage",s);L(o.setImageCount);let c=I(i,{referrerPolicy:n.referrerPolicy,crossOrigin:n.crossOrigin,loadingStatus:o.imageLoadingStatus,set
1LoadingStatus:o.setImageLoadingStatus}),d=f(e=>{l?.(e)}),u=r.useRef(c);return g(()=>{let e=u.current;u.current=c,c!==e&&d(c)},[c,d]),"loaded"===c?(0,t.jsx)(y.img,{...n,ref:a,src:i}):null},"AvatarImage"));function I(e,{loadingStatus:t,setLoadingStatus:r,referrerPolicy:a,crossOrigin:s}){return g(()=>{if(!e)return void r("error");let t=new window.Image,i=j(e=>{r(T(e.currentTarget))},"handleLoad"),l=j(()=>r("error"),"handleError");return t.addEventListener("load",i),t.addEventListener("error",l),a&&(t.referrerPolicy=a),t.crossOrigin=s??null,t.src=e,r(T(t)),()=>{t.removeEventListener("load",i),t.removeEventListener("error",l),r("idle")}},[e,s,a,r]),t}function T(e){return e.complete?e.naturalWidth>0?"loaded":"error":"loading"}function F(){return _}function L(e){}j(I,"useImageLoadingStatus"),j(T,"getImageLoadingStatus"),j(F,"useImageCount"),j(L,"useUpdateImageCount");var M=e.i(815316),R=e.i(285385);let A=(0,r.memo)((0,r.forwardRef)(({className:e,...r},a)=>(0,t.jsx)(E,{ref:a,className:(0,M.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...r})));A.displayName=E.displayName;let z=(0,r.memo)((0,r.forwardRef)(({className:e,...r},a)=>(0,t.jsx)(R.default,{ref:a,className:(0,M.cn)("aspect-square h-full w-full object-cover",e),...r})));z.displayName=P.displayName;var O=e.i(397099),$=e.i(245423);let U=(0,a.default)("bell-off",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]]);var W=e.i(324402),D=e.i(778497);let q=({onFollowToggle:e,isFollowing:a=!1,className:s,size:i="md",onLoginStart:n,onLoginDisplayed:o})=>{let[c,d]=(0,r.useState)(!1),{user:u,displayLoginForm:m}=(0,W.default)(),p=async()=>{try{u?await e():(n?.(),m({displayMode:"modal",loginDisplayed:o,onLoggedIn:async t=>{let r=t.user.uid||t.user.sub;await (0,O.checkUserExists)(r)||await (0,O.createFirebaseUser)({...t.user,uid:r}),await e(t)}}))}catch(e){(0,D.logError)({message:"[FollowButton]: Toggle handler failed",error:e,context:{isFollowing:a,hasUser:!!u}}),d(!1)}finally{u&&d(!1)}},f={sm:"size-3",md:"size-4",lg:"size-5"};return(0,t.jsx)("button",{type:"button",onClick:()=>void p(),disabled:c,className:(0,M.cn)("mb-5 inline-flex w-full items-center justify-center gap-2 bg-black font-graphik text-white hover:bg-black/90 focus:outline-none focus-visible:ring-2 focus-visible:ring-black focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-70",{sm:"px-3 py-1.5 text-xs",md:"px-4 py-3 text-sm",lg:"px-6 py-4 text-base"}[i],s),"aria-pressed":a,"aria-busy":c,children:c?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(l,{className:(0,M.cn)("animate-spin",f[i]),"aria-hidden":"true"}),(0,t.jsx)("span",{children:"Processing…"})]}):a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(U,{className:f[i],"aria-hidden":"true"}),(0,t.jsx)("span",{children:"Unfollow"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)($.Bell,{className:f[i],"aria-hidden":"true"}),(0,t.jsx)("span",{children:"Follow"})]})})};var B=e.i(963219),G=e.i(669138),J=e.i(387644),K=e.i(19477),Y=e.i(618566);e.s(["default",0,({followedObjectType:e,followedObject:a,defaultFollowed:d,className:u="",isOpen:m=!1,size:p="base",variant:f="icon",onDarkBackground:g=!1})=>{let[x,h]=(0,r.useState)(m),[v,y]=(0,r.useState)(!1),b=(0,r.useRef)(null),[j,w]=(0,r.useState)(d),N=(0,r.useRef)(null),{follow:k,unfollow:_,isObjectFollowed:S}=(0,O.default)(),{pianoPreview:C}=(0,G.useFeatureFlags)(),E=(0,Y.usePathname)(),P=()=>{b.current&&(clearTimeout(b.current),b.current=null)},I=()=>{P(),y(!1),h(!1)};(0,r.useEffect)(()=>P,[]);let T={base:"size-4",large:"size-4"},F="section"===e?"section":"tag"===e?"tag":"author";(0,r.useEffect)(()=>{let t=!0;return(async()=>{if(!0===d)return w(!0);if(!1===d)return w(!1);try{let r=await S(a.id,e);t&&w(r)}catch(t){(0,D.logError)({message:"[FollowModal]: Failed to check follow status",error:t,context:{followedObjectId:a.id,followedObjectType:e}}),w(!1)}})(),()=>{t=!1}},[S,a.id,e,d]),(0,r.useEffect)(()=>{let e=N.current;e&&(x?e.open||e.showModal():e.open&&e.close())},[x]),(0,r.useEffect)(()=>{let e=N.current;if(!e)return;let t=e=>{e.preventDefault(),h(!1)},r=t=>{let r=e.getBoundingClientRect();t.clientX>=r.left&&t.clientX<=r.right&&t.clientY>
1=r.top&&t.clientY<=r.bottom||h(!1)};return e.addEventListener("cancel",t),e.addEventListener("click",r),()=>{e.removeEventListener("cancel",t),e.removeEventListener("click",r)}},[]);let L=async t=>{let r=!j;(0,D.logDebug)({message:"[FollowModalTrigger] onFollowToggle",context:{nextIsFollowing:r,followedObject:a}});let s=void 0===a.id||null===a.id?"":String(a.id).trim(),i=(a.name??"").trim();if(!s||"0"===s||!i)return void(0,D.logError)({message:"[FollowModal]: refusing to follow/unfollow item with missing uid or name",context:{followedObjectType:e,followedObject:a}});w(r),r&&(0,J.sendGTMEvent)({event:K.eventName.FOLLOW_CLICK,..."author"===e?{author:i}:{topic:i},pagePath:E});let l={type:e,title:i,url:a.url,system:{uid:s}},n=t?.user?.uid||t?.user?.sub;try{await (r?k:_)(l,n)}catch(t){(0,D.logError)({message:"[FollowModal]: Follow/unfollow toggle failed",error:t,context:{nextIsFollowing:r,followedObjectType:e,uid:n}}),w(j)}},R=e=>{e.preventDefault(),e.stopPropagation(),h(e=>!e)};return C?(0,t.jsxs)("div",{className:`relative inline-block ${u}`,children:["label"===f?(0,t.jsxs)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":x,"aria-controls":"follow-centered-modal",onClick:R,className:(0,M.cn)("inline-flex items-center justify-center gap-2",{base:"px-3 py-1.5 text-xs",large:"px-4 py-2 text-sm"}[p],"font-graphik text-white","bg-black hover:bg-black/90","rounded-full","focus:outline-none focus-visible:ring-2 focus-visible:ring-black focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-70"),children:[j?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{children:["Following ",a.name]}),(0,t.jsx)(s,{className:T[p],"aria-hidden":"true"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{children:["Follow ",a.name]}),(0,t.jsx)(n,{className:T[p],"aria-hidden":"true"})]}),(0,t.jsx)("span",{className:"sr-only",children:"Open follow modal"})]}):(0,t.jsxs)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":x,"aria-controls":"follow-centered-modal",onClick:R,className:(0,M.cn)("flex items-center justify-center rounded-full",g?"bg-transparent":(0,M.cn)("text-white",j?"bg-red-600":"bg-black"),{base:"size-5",large:"size-6"}[p]),children:[j?(0,t.jsx)(s,{className:T[p],"aria-hidden":"true"}):(0,t.jsx)(n,{className:T[p],"aria-hidden":"true"}),(0,t.jsx)("span",{className:"sr-only",children:"Open follow modal"})]}),(0,t.jsx)("dialog",{ref:N,id:"follow-centered-modal",className:"fixed inset-0 z-[299999] hidden place-items-center bg-transparent font-normal backdrop:bg-black/40 open:flex open:items-center open:justify-center",children:(0,t.jsxs)("div",{className:"relative z-[9999999] w-[min(92vw,560px)] overflow-hidden rounded-2xl bg-white shadow-2xl",role:"document",children:[v?(0,t.jsxs)("div",{className:"absolute inset-0 z-10 flex flex-col items-center justify-center gap-3 bg-white/95 text-center",role:"status","aria-live":"polite",children:[(0,t.jsx)(l,{className:"size-6 animate-spin text-red-600","aria-hidden":"true"}),(0,t.jsx)("p",{className:"font-graphik text-sm text-gray-700",children:"Opening sign in…"})]}):null,(0,t.jsxs)("div",{className:"flex items-center gap-2 bg-red-600 p-4 text-white",children:[(0,t.jsx)(i,{className:"size-4","aria-hidden":"true"}),(0,t.jsx)("p",{className:"font-graphik text-xs",children:"Personalized Content"})]}),(0,t.jsx)("button",{type:"button",onClick:()=>h(!1),className:"absolute right-3 top-3 rounded p-1 text-white","aria-label":"Close modal",children:(0,t.jsx)(o.X,{className:"size-5"})}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-6 p-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[a?.thumbnail?(0,t.jsx)(A,{className:"size-12 overflow-hidden rounded-xl ring-1 ring-gray-200",children:(0,t.jsx)(z,{width:48,height:48,src:a.thumbnail,alt:a.name})}):null,(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h2",{className:"truncate font-editorial text-xl normal-case",children:a.name}),a.title?(0,t.jsx)("p",{className:"truncate text-xs text-gray-600",children:a.title}):null]})]}),(0,t.jsxs)("p",{className:"mt-4 whitespace-normal text-sm normal-case text-gray-700",children:["Follow this ",F," to personalize your feed and get instant alerts."]})]}),(0,t.jsxs)("div",{className:"flex flex-col justify-between",children:[(0,t.jsx)(q,{onFollowToggle:L,isFollowing:j,onLoginStart:()=>{y(!0),P(),b.current=setTimeout(I,3e3)},onLoginDisplayed:I}),(0,t.jsx)(c.default,{href:B.PathNames.MY_FEED,onClick:()=>h(!1),className:"inline-flex w-full items-center justify-center gap-2 border border-red-600 bg-white px-4 py-2 font-graphik text-sm normal-case text-red-700",children:"Go to your personalized feed"}),(0,t.jsxs)("div",{className:"mt-6 text-xs text-gray-600",children:[(0,t.jsx)("p",{className:"mb-3 font-medium text-gray-800",children:"WHY FOLLOW?"}),(0,t.jsxs)("ul",{className:"list-disc space-y-1 pl-5 normal-case",children:[(0,t.jsx)("li",{children:"Custom Feed: See the stories that matter most to you."}),(0,t.jsx)("li",{children:"Smart Alerts: Get notified about major news as it happens."})]})]})]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between border-t px-4 py-3",children:[(0,t.jsxs)("p",{className:"text-xs text-gray-600",children:["Update your preferences in"," ",(0,t.jsx)(c.default,{className:"text-brand-red",href:B.PathNames.ACCOUNT_PREFERENCES,children:"Account Settings"})]}),(0,t.jsx)("button",{type:"button",onClick:()=>h(!1),className:"rounded-md px-3 py-1.5 text-xs text-gray-700 hover:bg-gray-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-red-600 focus-visible:ring-offset-2",children:"Close"})]})]})})]}):null}],622270)}]);

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.