!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"substack@538433c"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fec54ede-5cb3-422c-98f4-dba77349b729",e._sentryDebugIdIdentifier="sentry-dbid-fec54ede-5cb3-422c-98f4-dba77349b729")}catch(e){}}();"use strict";(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["53928"],{80051:function(e,t,n){n.d(t,{A:()=>i});let i={hrSmall:"hrSmall-vexZ_n",hrLarge:"hrLarge-BvxHXj"}},92019:function(e,t,n){n.d(t,{A:()=>i});let i={closeButton:"closeButton-sWEbg8",topBorder:"topBorder-KUCJGm",headerWrap:"headerWrap-XiofWk",headerWrapInner:"headerWrapInner-AyNoB3",halfAndHalf:"halfAndHalf-PdPWS0",halfAndHalfInner:"halfAndHalfInner-HtCF77",appLogin:"appLogin-lMyU8f",leftContent:"leftContent-X6zgb0",header:"header-pOFVdu",headerTitle:"headerTitle-XdY9Qw",form:"form-GABFlv",rightContent:"rightContent-_eeeAR",splashCaption:"splashCaption-WhhERh",splashShadow:"splashShadow-tWZ3d9",checkEmailBlock:"checkEmailBlock-naM_v5",welcomeHeader:"welcomeHeader-iAQwzr",benefits:"benefits-wnPw_B",benefitCheck:"benefitCheck-owCfZQ",siteButton:"siteButton-QZ1kc5",inputWrap:"inputWrap-aO2eYW",input:"input-KqPf6J",inputLeftAligned:"inputLeftAligned-BhqfT0",submitButton:"submitButton-EPqiX6",plansScreen:"plansScreen-yK228e",plansScreenPromotional:"plansScreenPromotional-UsMRaV",plansScreenInner:"plansScreenInner-NewQtR",plansScreenInnerAnnualPromotion:"plansScreenInnerAnnualPromotion-eB9kDW",plansScreenInnerSingleScreen:"plansScreenInnerSingleScreen-O1Uq3U",upgradeHeader:"upgradeHeader-TC_4Dh",upgradeDivider:"upgradeDivider-oZ3GS_",otherOptionsDividerMobile:"otherOptionsDividerMobile-r2ohMZ",otherOptionsDivider:"otherOptionsDivider-rSPnPs",planBoxes:"planBoxes-CQu3I3",planBox:"planBox-GqWX0B",selected:"selected-klFkYP",subscriptionTypeButton:"subscriptionTypeButton-I05IPv",continueButton:"continueButton-C380iH",bestValue:"bestValue-XY11fU",bestValueWithToggle:"bestValueWithToggle-pz1Vf2",bestValueRibbon:"bestValueRibbon-F2mlPs",bestValueRibbonImg:"bestValueRibbonImg-JH1emf",bestValueRibbonText:"bestValueRibbonText-KF2zV_",promotionPlanButtonDeselected:"promotionPlanButtonDeselected-gu3Etj",foundingField:"foundingField-JhuscX",hiddenFoundingInput:"hiddenFoundingInput-jvDrjy",giftSubscriptionWrapper:"giftSubscriptionWrapper-fGv1Ix",backButton:"backButton-omzuaJ",backButtonIcon:"backButtonIcon-bY2dtv",inlineUnderline:"inlineUnderline-PH5kwP",hrSpaced:"hrSpaced-UrvUOO",toggleBox:"toggleBox-vV0Vdf",orSeparator:"orSeparator-J4t55s",promotionPlanBox:"promotionPlanBox-xShfEJ",promotionPlanBoxAccent:"promotionPlanBoxAccent-whNdaW",promotionPlanBoxDefault:"promotionPlanBoxDefault-mJiWOS",planIntervalToggle:"planIntervalToggle-ICCvgA"}},21919:function(e,t,n){n.d(t,{G:()=>ex});var i=n(69277),r=n(70408),l=n(4006),a=n(32485),s=n.n(a),o=n(17402),c=n(85902),d=n(13950),u=n(48697),h=n(87677),p=n(41880),m=n(27402),f=n(15894),g=n(25006),v=n(85478),w=n(68349),b=n(35369),y=n(83357),Y=n(39318);let k="sectionHeader-SaffPx",C="menuItem-hysuKg",S="menuLink-ozbRwR",x="section-_DFyFI",I=e=>{let{user:t,rightPosition:n=40,onClose:i}=e,r=(0,v.mJ)(),a=(0,o.useRef)(null),s=(0,g.df)();(0,m.A)(a,i||(()=>{}));let c=[{label:"Account settings",href:r.getConfigFor("enable_account_settings_revamp")?"/settings?tab=account":"/account"},{label:"Your subscription",href:"/settings?tab=subscription"}],d=[{label:"Publisher Dashboard",href:s?(0,Y.Z96)(s,{addBase:!0}):"/publish/home",type:"arrow"}];return(0,l.FD)("div",{ref:a,className:"container-kiojnB",style:{right:n},children:[(0,l.FD)("div",{className:"navHeader-DEKkxz",children:[(0,l.Y)("div",{className:"email-Zv4V4i",children:(0,l.Y)(f.T,{preset:"detail-small",children:null==t?void 0:t.email})}),(0,l.Y)(b.$n,{className:"closeButton-DEAPoB",priority:"tertiary",onClick:i,children:(0,l.Y)(u.A,{})})]}),(0,l.Y)(p.Rm,{}),(0,l.Y)("div",{className:k,children:(0,l.Y)(f.T,{preset:"lg-preview-byline",children:"Content"})}),(0,l.Y)("div",{className:x,children:(0,l.Y)("ul",{children:[{label:"Your newsletters",href:"/settings?tab=newsletters"},{label:"Upcoming livestreams",href:"/livestream"},{label:"Podcast feeds",href:"/settings?tab=podcastFeeds"}].map(e=>(0,l.Y)("li",{className:C,children:(0,l.Y)(y.N,{className:S,href:e.href,onClick:i,children:(0,l.Y)(f.T,{preset:"lg-preview-byline",style:{fontWeight:400},children:e.label})})},e.label))})}),(0,l.Y)("div",{className:k,children:(0,l.Y)(f.T,{preset:"lg-preview-byline",children:"Account"})}),(0,l.Y)("div",{className:x,children:(0,l.FD)("ul",{children:[c.map(e=>(0,l.Y)("li",{className:C,children:(0,l.Y)(y.N,{className:S,"data-native":!0,href:e.href,onClick:i,children:(0,l.Y)("span",{children:(0,l.Y)(f.T,{preset:"lg-preview-byline",style:{fontWeight:400},children:e.label})})})},e.label)),(0,l.Y)("li",{className:C,children:(0,l.FD)("button",{className:S,style:{background:"none",border:"none",padding:0,width:"100%",textAlign:"left"},onClick:()=>{(0,w.V2)((0,Y.bgT)({for_pub:null==s?void 0:s.subdomain,redirect:"/"})),null==i||i()},children:[(0,l.Y)("span",{children:(0,l.Y)(f.T,{preset:"lg-preview-byline",style:{fontWeight:400},children:"Sign out"})}),(0,l.Y)(h.A,{})]})})]})}),t.is_admin&&(0,l.FD)(l.FK,{children:[(0,l.Y)("div",{className:k,children:(0,l.Y)(f.T,{preset:"lg-preview-byline",children:"Admin"})}),(0,l.Y)("div",{className:x,children:(0,l.Y)("ul",{children:d.map(e=>(0,l.FD)("li",{className:C,children:[(0,l.Y)(f.T,{as:"a",className:S,href:e.href,preset:"lg-preview-byline",style:{fontWeight:400},target:"_blank",onClick:i,children:e.label}),"arrow"===e.type&&(0,l.Y)(h.A,{})]},e.label))})})]})]})};var _=n(98188),T=n(79454),F=n(60141),A=n(28911);let B=e=>{let{extraLink:t,extraText:n,onClose:i}=e,[r,a]=(0,o.useState)(n),[s,c]=(0,o.useState)(t),[d,u]=(0,o.useState)(!1),h=(0,o.useRef)(null),p=async e=>{e.preventDefault(),u(!0),await (0,T.Cr)({extraText:r,extraLink:s}),u(!1),window.location.reload()};return(0,l.FD)(A.aF,{initialFocus:h,isOpen:!0,width:400,onClose:i,children:[(0,l.Y)(A.rQ,{title:"Edit Extra Box",onClose:i}),(0,l.Y)(A.cw,{children:(0,l.FD)("form",{id:"fp-extra-box-edit-form",onSubmit:p,children:[(0,l.Y)(F.A,{inputRef:h,label:"Extra box text",paddingBottom:16,value:r,onChange:a}),(0,l.Y)(F.A,{label:"Extra box link",paddingBottom:24,value:s,onChange:c})]})}),(0,l.Y)(A.jl,{primaryButton:(0,l.Y)(b.$n,{disabled:d,form:"fp-extra-box-edit-form",priority:"primary",type:"submit",children:"Save"}),secondaryButton:(0,l.Y)(b.$n,{disabled:d,priority:"secondary",onClick:i,children:"Cancel"})})]})};var N=n(53989),D=n(76977),E=n(63136),P=n(92636),R=n(39891);let W=(0,o.forwardRef)((e,t)=>{var n,i;let{hide:r,user:a,transparentBackground:s}=e,[c,d]=(0,o.useState)(!1),u=!!(null==a?void 0:a.is_contributor),{getSettingFor:h}=(0,N.Pu)(),p=null!=(n=h("homepage_message_link"))?n:"",m=null!=(i=h("homepage_message_text"))?i:"";return(0,l.FD)(D.Ye,{ref:t,className:"extraBox-dn8mfG",paddingX:8,position:"relative",style:r?{position:"absolute",opacity:0,zIndex:-1,pointerEvents:"none"}:void 0,children:[p&&m?(0,l.Y)("a",{"data-native":!0,href:p,rel:"noopener noreferrer",style:{textDecoration:"none"},target:"_blank",children:(0,l.FD)(D.Ye,{children:[(0,l.Y)("img",{className:"extraImg-td6pDU",height:32,src:(0,R.dJ)("".concat((0,P.Ew)(),"/img/thefp/extra.png"),null,{height:64,crop:"limit"}),width:177}),(0,l.Y)(D.Ye,{alignItems:"center",alignSelf:"stretch",className:"extraText-o5UKW8",color:s?"white":"primary",paddingX:12,children:m})]})}):u?(0,l.Y)(D.Ye,{alignItems:"center",className:"emptyText-h51Fd7",paddingX:40,paddingY:4,children:(0,l.Y)(E.EY.B4,{children:"No extra box text set"})}):null,u&&(0,l.Y)("div",{className:"extraBoxEdit-wmHvd5",style:{position:"absolute",top:0,right:8},children:(0,l.Y)(b.K0,{priority:"primary-mono",size:"sm",onClick:()=>{d(!0)},children:(0,l.Y)(_.A,{size:16})})}),u&&c&&(0,l.Y)(B,{extraLink:p,extraText:m,onClose:()=>{d(!1)}})]})});var H=n(49869),L=n(49807);let M=e=>{let{activeLiveStream:t,pub:n}=e,i=(0,L.QMq)({pub:n});return(0,l.FD)(D.Ye,{alignItems:"center",as:"a",bg:"primary",className:"container-DyfmA8","data-native":!0,gap:16,href:i,padding:8,children:[(0,l.FD)(D.Ye,{alignItems:"center",gap:8,children:[(0,l.Y)("div",{className:"dot-Ll_ssD"}),(0,l.Y)(f.T,{preset:"detail-large",children:"Live!"})]}),(0,l.Y)(V,{text:t.liveStream.title})]})},V=e=>{let{text:t}=e,n=(0,o.useRef)(null),i=(0,o.useRef)(null),{width:r}=(0,H.w)({containerRef:i}),{width:a}=(0,H.w)({containerRef:n}),c=Math.max(r-a,0);return(0,l.Y)("div",{ref:n,className:"titleOuterContainer-o42q6r",style:{"--max-width":"".concat(a,"px")},children:(0,l.Y)("div",{ref:i,className:"titleInnerContainer-P_fW5r",children:(0,l.Y)("div",{className:s()("title-R5RE0b",{"titleScrollShort-KdgSJi":c>0&&c<80,"titleScrollMedium-GvLmeR":c>=80&&c<120,"titleScrollLong-qA9hMO":c>=120}),children:t})})})};var O=n(98445),z=n(72102),j=n(75107),U=n(15734),J=n.n(U),K=n(84605),q=n(99145),G=n(12501),X=n(57820);let Q="cbs-homepage-post-ids";function Z(e){let{isOpen:t,onClose:n,onSave:a}=e,{iString:s}=(0,K.GO)(),[c,d]=(0,o.useState)([]),[u,h]=(0,o.useState)({}),[p,m]=(0,o.useState)(!1),[f,g]=(0,o.useState)(!1),[v,w]=(0,o.useState)(!1),[y,k]=(0,o.useState)(null),{open:C}=(0,q.v9)(),S=()=>{g(!1),n()},{result:x,isLoading:I,refetch:_}=(0,G.st)({pathname:"/api/v1/islands/client/config?key=".concat(Q),auto:!1}),F=async e=>{if(0===e.length)return{posts:[]};try{let t=e.map(e=>"post_ids[]=".concat(e)).join("&"),n=await fetch("/api/v1/islands/client/posts/by-ids?".concat(t));if(!n.ok)throw Error("Failed to fetch post details: ".concat(n.status," ").concat(n.statusText));return await n.json()}catch(e){throw Error(e instanceof Error?e.message:"Unknown error occurred while fetching post details")}};(0,o.useEffect)(()=>{t&&!f?(g(!0),_()):!t&&f&&(d([]),h({}),w(!1),k(null),g(!1))},[t]),(0,o.useEffect)(()=>{var e,t;if(null==x||null==(t=x.config)||null==(e=t.value)?void 0:e.post_ids){let e=x.config.value.post_ids;d(e),k(null),w(!0),F(e).then(e=>{if(null==e?void 0:e.posts){let t={};e.posts.forEach(e=>{t[e.id]=e.title}),h(e=>(0,i._)({},e,t))}}).catch(e=>{k(e.message||"Failed to load post details")}).finally(()=>{w(!1)})}else null===x&&(d([]),h({}),w(!1),k(null))},[x]);let B=async()=>{m(!0);try{if(!(await fetch("/api/v1/islands/client/config?key=".concat(Q),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:{post_ids:c}})})).ok)throw Error("Failed to save CBS homepage posts");null==a||a(),S()}catch(e){}finally{m(!1)}},N=(e,t)=>{let n=[...c],[i]=n.splice(e,1);void 0!==i&&(n.splice(t,0,i),d(n))};return(0,l.FD)(A.aF,{isOpen:f,onClose:S,width:800,children:[(0,l.Y)(A.rQ,{title:s("Manage CBS News Homepage Posts"),onClose:S}),(0,l.Y)(A.cw,{children:(0,l.Y)(D.I1,{gap:24,children:I||v?(0,l.Y)(D.Ye,{justifyContent:"center",padding:20,children:(0,l.Y)(X.y$,{size:24})}):y?(0,l.FD)(D.I1,{gap:16,alignItems:"center",padding:20,children:[(0,l.Y)(E.EY.B3,{color:"primary",weight:"semibold",children:(0,l.Y)(E.EY,{translated:!0,children:"Error loading post details"})}),(0,l.Y)(E.EY.B4,{color:"secondary",align:"center",children:y})]}):(0,l.FD)(D.I1,{gap:16,children:[(0,l.FD)(D.Ye,{justifyContent:"space-between",alignItems:"center",children:[(0,l.FD)(E.EY.B2,{weight:"semibold",children:[(0,l.Y)(E.EY,{translated:!0,children:"CBS Homepage Posts"})," (",c.length,"/",3,")"]}),(0,l.Y)(b.$n,{size:"sm",priority:"primary",onClick:e=>{e.preventDefault(),g(!1),C({postsOnly:!0,onSelectResult:async e=>{let{result:t,onClose:n}=e;if("post"===t.type){let e=(0,Y.Gn4)(t.post.url);if(!e){n(),g(!0);return}let l=await (0,T.N7)({slug:e});if(!l){n(),g(!0);return}let a=l.id;!c.includes(a)&&c.length<3&&(d(e=>[...e,a]),l.title&&h(e=>(0,r._)((0,i._)({},e),{[a]:l.title})))}n(),g(!0)},onClose:()=>{g(!0)}})},disabled:c.length>=3||I||v,children:(0,l.Y)(E.EY,{translated:!0,children:"Add Post"})})]}),0===c.length?(0,l.Y)(E.EY.B3,{color:"secondary",children:(0,l.Y)(E.EY,{translated:!0,children:'No posts selected. Click "Add Post" to search and add posts to the CBS News homepage.'})}):(0,l.Y)(D.I1,{gap:8,children:c.map((e,t)=>(0,l.FD)(D.Ye,{gap:12,padding:12,bg:"elevated",radius:"md",justifyContent:"space-between",alignItems:"center",children:[(0,l.Y)(E.EY.B3,{weight:"semibold",children:u[e]||"Post ID: ".concat(e)}),(0,l.FD)(D.Ye,{gap:8,children:[t>0&&(0,l.Y)(b.$n,{size:"sm",priority:"tertiary",onClick:()=>N(t,t-1),children:"↑"}),tN(t,t+1),children:"↓"}),(0,l.Y)(b.$n,{size:"sm",priority:"tertiary",onClick:()=>{d(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},children:(0,l.Y)(E.EY,{translated:!0,children:"Remove"})})]})]},e))})]})})}),(0,l.Y)(A.jl,{secondaryButton:(0,l.Y)(b.$n,{priority:"tertiary",onClick:S,children:(0,l.Y)(E.EY,{translated:!0,children:"Cancel"})}),primaryButton:(0,l.Y)(b.$n,{priority:"primary",onClick:B,loading:p,disabled:0===c.length||I||v||!!y,children:(0,l.Y)(E.EY,{translated:!0,children:"Save CBS Homepage Posts"})})})]})}var $=n(36339),ee=n(84713),et=n(38685),en=n(65590),ei=n(75999),er=n(68410),el=n(17028),ea=n(16291),es=n(39862),eo=n(41086),ec=n(22092),ed=n(57324);let eu={expandedOuterContainer:"expandedOuterContainer-LHHKf7",container:"container-gCc6uu",expanded:"expanded-WwqmJz",menu:"menu-Jl0crV",menuImage:"menuImage-_JUkHc",menuBlock:"menuBlock-SnplMc",closeIcon:"closeIcon-VGOyzP",menuContent:"menuContent-W_K9BI",menuHeadingRow:"menuHeadingRow-dlFFJ8",menuHeading:"menuHeading-a2Dg_e",menuChildren:"menuChildren-NF1EV5",misc:"misc-kqyTXF",miscLink:"miscLink-qPZOfP",socialIcon:"socialIcon-SJIJw8"},eh=e=>{let{pub:t,showCustomerSupportModeModal:n,user:i,color:r,isAboveHeaderImage:a,isAmerica250:c,logoOnly:d,onToggleMenu:h,isToggled:p,freeSignup:m}=e,g=(null==i?void 0:i.is_contributor)||(null==i?void 0:i.is_admin)||(null==i?void 0:i.is_author),v=(null==i?void 0:i.is_global_admin)&&!(null==i?void 0:i.is_admin),b=(null==i?void 0:i.is_global_admin)&&(null==i?void 0:i.is_admin)&&!(null==i?void 0:i.is_author),[y,k]=(0,o.useState)(!!(n&&v)),[C,S]=(0,o.useState)(!1),x=v||b,I=(0,o.useCallback)(async()=>{try{await J().del("/api/v1/customer_support_mode"),document.location.href="proxy.php?url=/"}catch(e){alert((0,w.uX)(e))}},[]),_=(0,o.useCallback)(async()=>{k(!0)},[]),{open:T}=(0,q.v9)(),F=[{id:"Search",primary:{title:"Search",onClick:T,TrailingIcon:O.A}},{id:"Topics",primary:{title:"Topics"},children:[{title:"America at 250",url:"/america250"},{title:"Antisemitism",url:"/s/antisemitism"},{title:"California",url:"/s/california"},{title:"Canada",url:"/s/canada"},{title:"Culture",url:"/s/culture"},{title:"Education",url:"/s/education"},{title:"Faith",url:"/s/faith"},{title:"Free Speech",url:"/s/free-speech"},{title:"Health",url:"/s/health-and-self-improvement"},{title:"History",url:"/s/history"},{title:"International",url:"/s/international"},{title:"Israel",url:"/s/israel-and-antisemitism"},{title:"New York",url:"/s/new-york"},{title:"Parenting",url:"/s/parenting"},{title:"Sex and Gender",url:"/s/sex-and-gender"},{title:"Tech and Business",url:"/s/tech-and-business"},{title:"U.S. Politics",url:"/s/us-politics"}]},{id:"Columns",primary:{title:"Columns"},children:[{title:"Ancient Wisdom",url:"/s/ancient-wisdom"},{title:"Bari Weiss",url:"/w/bari-weiss"},{title:"Jed Rubenfeld",url:"/w/jed-rubenfeld"},{title:"Niall Ferguson",url:"/w/niall-ferguson"},{title:"Second Thought",url:"/s/second-thought"},{title:"TGIF",url:"/s/tgif"},{title:"The Front Page",url:"/s/the-front-page"},{title:"The Pursuit of Happiness with Arthur Brooks",url:"/s/the-pursuit-of-happiness-with-arthur"},{title:"Things Worth Remembering",url:"/s/things-worth-remembering"},{title:"Tough Love with Abigail Shrier",url:"/s/tough-love-with-abigail-shrier"},{title:"Two Drinks",url:"/s/two-drinks"},{title:"Tyler Cowen Must Know",url:"/s/tyler-cowen-must-know"},{title:"The Weekend Press",url:"/s/the-weekend-press"}]},{id:"Podcasts",primary:{title:"Podcasts",url:"/podcasts"},children:[{title:"Honestly",url:"/listen/honestly"},{title:"Breaking History",url:"/listen/breaking-history"},{title:"Conversations with Coleman",url:"/listen/conversations-with-coleman"},{title:"Free Press Interviews",url:"/s/the-free-press-interviews"},{title:"Free Press Investigates",url:"/listen/the-free-press-investigates"},{title:"Old School with Shilo Brooks",url:"/listen/old-school-with-shilo-brooks"},{title:"Raising Parents",url:"/listen/raising-parents-with-emily-oster"},{title:"School of War",url:"/listen/school-of-war"},{title:"Witch Trials of J.K.\xa0Rowling",url:"/listen/the-witch-trials-of-jk-rowling"}]},{id:"Video",primary:{title:"Video",url:"/videos"},children:[{title:"The Free Press Live",url:"/s/the-free-press-live"},{title:"Ben Meets America",url:"/s/ben-meets-america"},{title:"FP in Israel",url:"/s/fp-in-israel"},{title:"Hezbollah’s Hostages",url:"/s/hezbollahs-hostages"},{title:"Swing State Debates",url:"/s/swing-state-debates"}]},{id:"Latest",primary:{title:"Latest",url:"/archive"}},{id:"Events",primary:{title:"Events",url:"/events"},children:Object.entries(es.n).map(e=>{let[t,n]=e;return{title:n,url:"/events?series=".concat(t)}})},{id:"Newsletters",primary:{title:"Newsletters",url:"/newsletters"}},{id:"Who We Are",primary:{title:"Who We Are",url:"/who-we-are"}},{id:"Shop",primary:{title:"Shop",url:"https://shop.thefp.com/"}},{id:"Support",primary:{title:"Support Us",url:"/support-us"}},{id:"About",primary:{title:"About"},children:[{title:"Careers",url:"/p/careers"},{title:"About Us",url:"/about"},{title:"FAQ",url:"/p/faq"},{title:"Company News",url:"/t/company-news"}]}],B=[{Component:eg,url:"https://www.facebook.com/@readthefreepress"},{Component:et.A,url:"https://x.com/TheFP"},{Component:ee.A,url:"https://www.instagram.com/thefreepress"},{Component:en.A,url:"https://www.youtube.com/@thefreepress"}],[N,D]=(0,o.useState)("");ev(p);let{cancel:E}=ew(p,()=>h(!1)),{isMobile:P}=(0,er.sM)();return(0,l.FD)(el.fI,{className:s()({[eu.expandedOuterContainer]:!P}),children:[(0,l.FD)("div",{className:s()(eu.container,{[eu.expanded]:p}),children:[(0,l.FD)(el.fI,{alignItems:"center",className:eu.menuHeaderRow,flex:"fill",paddingLeft:12,children:[!d&&(0,l.Y)(el.K0,{priority:"quaternary",onClick:e=>h(e=>!e),children:p?(0,l.Y)(u.A,{className:eu.closeIcon,stroke:"white"}):(0,l.Y)(ef,{color:r})}),(0,l.Y)("a",{href:"/",children:(0,l.Y)(ei.u,{className:eu.menuImage,isAboveHeaderImage:!p&&a,isAmerica250:c})})]}),p&&(0,l.FD)(el.VP,{className:s()(eu.menuContent,{[eu.expanded]:p}),paddingBottom:P?120:20,onClickCapture:E,children:[(0,l.Y)("div",{className:eu.menu,children:F.map((e,t)=>{let n,i=N===e.id;return(0,l.Y)(ep,{firstColumnEntries:"Columns"===e.id?8:void 0,handleCloseMenu:()=>h(!1),isExpanded:i,links:e,onSectionClick:e.primary.onClick?e.primary.onClick:(n=e.id,()=>D(e=>e===n?"":n))},t)})}),(0,l.FD)(el.VP,{className:eu.misc,children:[(0,l.FD)(el.VP,{children:[(0,l.Y)(f.T,{color:"accent",preset:"caption",children:"Account"}),i||m?(0,l.Y)(f.T,{as:"a",className:eu.miscLink,color:"white",href:(0,Y.bgT)({for_pub:null==t?void 0:t.subdomain}),preset:"list-item-menu",children:"Sign Out"}):(0,l.Y)(f.T,{as:"a",className:eu.miscLink,color:"white","data-native":!0,href:(0,ec._)(t,{isSignInAttempt:!0,next:document.location.href,utm_source:ed.VU.menu}),preset:"list-item-menu",children:"Sign In / Subscribe"})]}),g&&(0,l.FD)(el.VP,{children:[(0,l.Y)(f.T,{color:"accent",preset:"caption",children:"Admin"}),(0,l.Y)(f.T,{as:"a",className:eu.miscLink,color:"white",href:(0,Y.Z96)(t,{addBase:!0}),preset:"list-item-menu",target:"_blank",children:"Publisher Dashboard"}),(0,l.Y)(f.T,{as:"a",className:eu.miscLink,color:"white",href:"#",preset:"list-item-menu",onClick:()=>S(!0),children:"Manage CBS News Homepage"})]}),x&&(0,l.Y)(em,{canTurnOnCustomerSupportMode:v,canTurnOffCustomerSupportMode:b,enableCustomerServiceMode:_,disableCustomerServiceMode:I,pub:t}),(0,l.FD)(el.VP,{children:[(0,l.Y)(f.T,{color:"accent",preset:"caption",children:"Follow Us"}),(0,l.Y)(el.fI,{children:B.map(e=>(0,l.Y)(el.K0,{href:e.url,localNavigation:!1,priority:"quaternary",children:(0,l.Y)(e.Component,{className:eu.socialIcon,size:20})}))})]}),(0,l.FD)(f.T,{color:"white",preset:"misc-sans",children:["\xa9",(0,ea.A)().format("YYYY")," The Free Press. All Rights Reserved."]})]})]})]}),v&&(0,l.Y)(A.aF,{isOpen:y,onClose:()=>k(!1),children:(0,l.Y)($.A,{redirect:(0,eo.y)("redirect")||"/publish/home",requiresMfa:i.requires_global_admin_mfa_challenge,onClose:()=>k(!1)})}),g&&(0,l.Y)(Z,{isOpen:C,onClose:()=>S(!1)})]})},ep=e=>{let{links:{primary:t,children:n},firstColumnEntries:a,onSectionClick:o,isExpanded:c,handleCloseMenu:d}=e,[u,h]=[[],[]];if(n&&n.length>0){let e=Math.ceil(n.length/2);u=n.slice(0,a||e),h=n.slice(a||e)}return(0,l.FD)(el.VP,{className:eu.menuBlock,children:[(0,l.FD)(el.fI,{className:eu.menuHeadingRow,children:[(0,l.Y)(el.az,{display:"flex",flex:"grow",onClick:null==t.url?o:void 0,children:(0,l.Y)(f.T,(0,r._)((0,i._)({},null!=t.url?{as:"a",href:t.url,onClick:d}:{},t.isNative?{native:!0}:void 0),{align:"left",className:eu.menuHeading,color:"white",preset:"h4-sans-regular-menu",children:t.title}))}),null!=n&&n.length>0&&(0,l.Y)(el.fI,{display:"flex",flex:"grow",justifyContent:"end",onClick:o,children:c?(0,l.Y)(z.A,{stroke:"white"}):(0,l.Y)(j.A,{stroke:"white"})}),t.TrailingIcon&&(0,l.Y)(el.fI,{display:"flex",flex:"grow",justifyContent:"end",onClick:o,children:(0,l.Y)(t.TrailingIcon,{color:"white"})})]}),null!=n&&n.length>0&&(0,l.Y)(el.az,{as:"ul",className:s()(eu.menuChildren,{[eu.expanded]:c}),children:[u,h].map(e=>(0,l.Y)(el.az,{direction:"column",display:"flex",children:e.map((e,t)=>(0,l.Y)(el.az,{as:"li",margin:0,maxWidth:160,padding:0,paddingBottom:16,children:(0,l.Y)(f.T,{as:"a",color:"white",href:e.url,preset:"list-item-menu",onClick:d,children:e.title})},t))}))})]})},em=e=>{let{canTurnOnCustomerSupportMode:t,canTurnOffCustomerSupportMode:n,enableCustomerServiceMode:i,disableCustomerServiceMode:r,pub:a}=e;return(0,l.FD)(el.VP,{children:[(0,l.Y)(f.T,{color:"accent",preset:"caption",children:"Support"}),t&&(0,l.Y)(el.QW,{textAlign:"left",onClick:i,children:(0,l.Y)(f.T,{as:"span",className:eu.miscLink,color:"white",preset:"list-item-menu",children:"Enter Support Mode"})}),n&&(0,l.Y)(el.QW,{textAlign:"left",onClick:r,children:(0,l.Y)(f.T,{className:eu.miscLink,color:"white",preset:"list-item-menu",children:"Exit Support Mode"})}),a&&(0,l.Y)(f.T,{as:"a",className:eu.miscLink,color:"white","data-native":!0,href:"".concat((0,L.$_T)({subdomain:"admin"}),"/publications/").concat(a.id),preset:"list-item-menu",children:"Open in Underground"})]})},ef=e=>{let{color:t="#161613"}=e;return(0,l.FD)("svg",{fill:t,height:"24",viewBox:"0 0 55 24",width:"55",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.Y)("rect",{height:"2",stroke:"none",width:"55"}),(0,l.Y)("rect",{height:"2",stroke:"none",width:"55",y:"11"}),(0,l.Y)("rect",{height:"2",stroke:"none",width:"55",y:"22"})]})},eg=e=>{let{color:t="var(--color-fg-primary)",size:n=20,className:i}=e;return(0,l.Y)("svg",{className:i,fill:t,height:n,viewBox:"0 0 14 28",width:n/2,xmlns:"http://www.w3.org/2000/svg",children:(0,l.Y)("path",{d:"M10.1777 5.92254H13.3983V0.898163H9.14605C5.13157 0.898163 3.34959 2.66507 3.34959 6.0515V9.27213H0V14.2965H3.34959V27.6949H8.37397V14.2965H12.9981L13.3983 9.27213H8.37397V7.41143C8.37397 6.34459 9.14605 5.92254 10.1777 5.92254Z",fill:t,stroke:"none"})})};function ev(e){let t=(0,o.useRef)(0);(0,o.useEffect)(()=>{if(!e)return;let n=document.getElementsByTagName("html")[0],i=document.getElementsByTagName("body")[0];if(!i||!n)return;let r=document.documentElement.clientWidth,l=window.innerWidth-r;return t.current=window.scrollY,i.style.paddingRight=l>0?"".concat(l,"px"):"",i.style.position="fixed",i.style.overflow="hidden",i.style.top="-".concat(t.current,"px"),i.style.maxWidth="100vw",i.style.width="".concat(r,"px"),()=>{i.style.paddingRight="",i.style.position="",i.style.overflow="",i.style.top="",i.style.maxWidth="",i.style.width="",window.scrollTo(0,t.current)}},[e])}let ew=(e,t)=>{let n=(0,o.useRef)(!0);return(0,o.useEffect)(()=>{let i=()=>{!0===n.current?t():n.current=!0};return e?document.addEventListener("click",i):document.removeEventListener("click",i),()=>{document.removeEventListener("click",i)}},[e,t,n]),{cancel:()=>n.current=!1,shouldCloseOnNextClick:n}};var eb=n(60986),ey=n(53293),eY=n(49984),ek=n(74322),eC=n(44333);let eS={container:"container-SgmYZ_",america250:"america250-cWjgrd",america250Dark:"america250Dark-fYS9zj",containerInner:"containerInner-wLwiB2",logo:"logo-PsC1lM",transparentContainer:"transparentContainer-unsPGx"},ex=e=>{let{activeLiveStream:t,freeSignup:n,pub:a,showCustomerSupportModeModal:u,user:h,logoOnly:p}=e,m=(0,ek.P)(),{iString:g}=(0,K.GO)(),{isMobile:v,isDesktop:b}=(0,er.sM)(),{theme:y}=(0,ey.T)(),{url:k,path:C}=(0,eC.zy)(),{activeLiveStream:S}=(0,eb.u)({preloadedLiveStream:t,pub:a}),[x,_]=(0,o.useState)(!0),T=(0,o.useRef)(null),F=(0,o.useRef)(null),A=(0,o.useRef)(null),B=(0,o.useRef)(null),N=C.startsWith("/p/")&&!(C.match(/\/p\/[^/]+\/comment\/[\d]+/)||C.match(/\/p\/[^/]+\/comments/)),E="/videos"===C,P="/newsletters"===C,R="/america250"===C&&!k.includes("eventId="),H="/america250"===C&&k.includes("eventId="),L="/events"===C,V=E||v&&P,[O,z]=(0,o.useState)(N&&(null==y?void 0:y.header_variant)==="full-width-image"),[j,U]=(0,o.useState)(!1),[J,q]=(0,o.useState)(!1),G=!!(E||O||R||H||L),X=!h&&!n,Q=!(null==h?void 0:h.is_founding),Z=!v,$=!!h,ee=69;S&&!b&&(ee+=62),(e=>{let{containerRef:t,force:n,headerHeight:i,disable:r}=e,l=(0,o.useRef)(0),a=(0,o.useRef)(0);(0,o.useEffect)(()=>{let e=()=>{if(!t.current)return;let e=l.current,n=Math.max(document.documentElement.scrollTop||document.body.scrollTop,0);l.current=n;let s="fixed"===t.current.style.position;if(n<=0||0>=(0,w.A9)())a.current=0,t.current.style.position="fixed",t.current.style.top="";else if(r)a.current=0,t.current.style.position="absolute",t.current.style.top="";else if(n>=(0,w.A9)());else if(nn?(a.current=n,t.current.style.position="fixed",t.current.style.top=""):(!a.current||a.currente&&(s&&a.current>=0?(a.current=n,t.current.style.top="".concat(n,"px"),t.current.style.position=""):a.currentwindow.removeEventListener("scroll",e)},[t,r,n,i])})({containerRef:T,force:j?"top":void 0,headerHeight:ee,disable:V}),(0,o.useEffect)(()=>{var e;let t=N&&(null==y?void 0:y.header_variant)==="full-width-image"&&!j;if(!T.current)return;(null!=(e=document.documentElement.scrollTop)?e:document.body.scrollTop)===0&&z(t);let n=()=>{if(!t)return;let e=Math.max(document.documentElement.scrollTop||document.body.scrollTop,0),{height:n}=(0,eY.V5)({theme:"full-width-image",isMobile:v});e>n?z(!1):z(!0)};return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)},[v,y,N,j]),(0,o.useEffect)(()=>{if(S)return;let e=T.current,t=F.current,n=A.current,i=B.current;if(!e||!t||!n||!i)return;let r=()=>{let r=e.offsetWidth;_(t.offsetWidth+n.offsetWidth+i.offsetWidth<=r)},l=new ResizeObserver(r);return l.observe(e),l.observe(t),l.observe(n),l.observe(i),r(),()=>{l.disconnect()}},[S]);let et={preset:"detail-small",whiteSpace:"nowrap"};return ev(!!J),(0,l.FD)(d.DH,{children:[m&&(0,l.Y)(c.mg,{children:(0,l.Y)("meta",{content:"app-id=6742335623",name:"apple-itunes-app"})}),(0,l.FD)(D.pT,{ref:T,alignItems:"stretch",className:s()(eS.container,{[eS.transparentContainer]:G&&!H&&!R&&!L,[eS.america250]:R,[eS.america250Dark]:H||L}),direction:b?"row":"column",gap:16,justifyContent:p?"start":"center",children:[(0,l.FD)(D.Ye,{alignItems:"center",className:eS.containerInner,gap:24,height:64,justifyContent:"space-between",position:"relative",children:[(0,l.Y)(D.Ye,{ref:F,alignItems:"center",alignSelf:"start",className:s()({[String(eS.logoOnly)]:p}),paddingLeft:12*!!p,position:"relative",children:(0,l.Y)(eh,{color:G?"white":void 0,freeSignup:n,isAboveHeaderImage:G,isAmerica250:R,isToggled:j,logoOnly:p,pub:a,showCustomerSupportModeModal:u,user:h,onToggleMenu:U})}),!p&&S&&b&&(0,l.Y)(M,{activeLiveStream:S,pub:a}),!p&&!S&&(0,l.Y)(W,{ref:B,hide:!x||v,transparentBackground:G,user:h}),!p&&(0,l.FD)(D.Ye,{ref:A,alignItems:"center",gap:v?16:40,position:"relative",children:[Z&&(0,l.Y)(f.T,(0,r._)((0,i._)({},et),{as:"a",color:G?"white":"primary",href:"/newsletters",children:g("Newsletters")})),X&&(0,l.Y)(f.T,(0,r._)((0,i._)({},et),{as:"a",color:G?"white":"primary","data-native":!0,href:(0,ec._)(a,{isSignInAttempt:!0,next:document.location.href}),children:g("Sign In")})),$&&(0,l.Y)(f.T,(0,r._)((0,i._)({},et),{"aria-expanded":J,"aria-haspopup":"true",as:"button",color:G?"white":"primary",style:{background:"none",border:"none",cursor:"pointer"},onClick:()=>{q(!J)},children:g("Account")})),Q&&(0,l.Y)(f.T,(0,r._)((0,i._)({},et),{as:"a",color:G?"white":"accent",href:(null==h?void 0:h.is_subscribed)?"".concat((0,Y.$_T)(a),"/settings?tab=subscription&open_change_plan=true"):(0,Y.eV6)(a,{utm_source:ed.VU.menu,simple:!0,next:document.location.href,referring_pub_ids:(0,eo.y)("referring_pub_ids"),addBase:!0}),children:g(n||(null==h?void 0:h.is_free_subscribed)?"Upgrade":"Subscribe")}))]}),J&&h&&(0,l.Y)(I,{rightPosition:0,user:h,onClose:()=>q(!1)})]}),S&&!b&&(0,l.Y)(D.Ye,{justifyContent:"center",paddingBottom:8,paddingX:28,children:(0,l.Y)(M,{activeLiveStream:S,pub:a})})]}),(0,l.Y)("div",{style:{height:ee}})]})}},75999:function(e,t,n){n.d(t,{u:()=>o});var i=n(4006),r=n(86500),l=n(68410),a=n(92636),s=n(39891);let o=e=>{var t;let{isAmerica250:n,className:o,forceMobile:c,height:d=64,isAboveHeaderImage:u}=e,{isMobile:h}=(0,l.sM)(),p=c||h,m=(t=!!u,n?p?"thefp-logo-a250-small.svg":"thefp-wordmark-a250.svg":t?p?"thefp-logo-inverted.svg":"thefp-wordmark-inverted-v2.svg":p?"thefp-logo.svg":"thefp-wordmark.svg"),f=p?Math.round(1.42*d):Math.round(3.68*d);return(0,i.Y)("img",{alt:"The Free Press",className:o,height:d,src:(0,s.dJ)("".concat((0,a.Ew)(),"/img/thefp/").concat(m),null,{height:2*d,crop:"limit"}),width:f,onClick:()=>{(0,r.u4)(r.qY.NAV_BAR_HOME_LINK_CLICKED)}})}},4317:function(e,t,n){n.d(t,{g:()=>s});var i=n(4006),r=n(68410),l=n(76977),a=n(49807);function s(){let{isMobile:e}=(0,r.sM)();return e?null:(0,i.Y)(l.I1,{className:"".concat("rightContent-n3kmO8"," ").concat("cbsVideo-xG9KEj"),children:(0,i.Y)("video",{autoplay:!0,loop:!0,muted:!0,playsInline:!0,src:(0,a.dJ9)("https://substack-post-media.s3.us-east-1.amazonaws.com/public/assets/the-fp/cbs_landing_desktop.mp4")})})}},98695:function(e,t,n){n.d(t,{p:()=>a});var i=n(4006),r=n(15894),l=n(76977);let a=e=>{let{activeTabId:t,tabs:n,onClick:a}=e;return(0,i.Y)(l.Ye,{children:n.map(e=>{let n=e.id===t;return(0,i.FD)(l.Ye,{className:"tab-pM6nuT",cursor:"pointer",padding:16,position:"relative",role:"button",onClick:()=>{a(e.id)},children:[(0,i.Y)(r.T,{preset:"detail-large",children:e.title}),n&&(0,i.Y)("div",{className:"activeIndicator-xV5j6c"})]})})})}},15894:function(e,t,n){n.d(t,{T:()=>c});var i=n(69277),r=n(32641),l=n(32485),a=n.n(l),s=n(17402),o=n(16389);let c=e=>{let{align:t,as:n="div",children:l,clamp:c,className:d,color:u="primary",innerRef:h,preset:p,whiteSpace:m,wrap:f}=e,g=(0,r._)(e,["align","as","children","clamp","className","color","innerRef","preset","whiteSpace","wrap"]),v=a()(d,o.A.container,o.A["preset-".concat(p)],o.A["color-".concat(u)],t&&o.A["align-".concat(t)],c&&o.A.clamp,c&&o.A["clamp-".concat(c)],f&&o.A["wrap-".concat(f)],m&&o.A["white-space-".concat(m)]);return(0,s.createElement)(n,(0,i._)({className:v,ref:h},g),l)}},60986:function(e,t,n){n.d(t,{u:()=>s});var i=n(17402),r=n(79454),l=n(43296),a=n(55714);let s=e=>{let{preloadedLiveStream:t,pub:n}=e,s=(0,l.XW)(),[o,c]=(0,i.useState)(null!=t?t:null);return(0,i.useEffect)(()=>{if(!s)return;if(o)return null==s?void 0:s.listen({[(0,a.sl)({streamId:o.liveStream.id})]:e=>{var t;let{data:n}=e;(null==n||null==(t=n.message)?void 0:t.type)==="live-stream:ended"&&c(null)}});let e=async()=>{try{let e=await (0,r.zG)({pub:n});c(e)}catch(e){console.error("Error fetching active live stream:",e)}};return e(),null==s?void 0:s.listen({["publication:".concat(n.id)]:async t=>{var n;let{data:i}=t;(null==i||null==(n=i.message)?void 0:n.type)==="publication:live-stream-started"&&await e()}})},[o,n,n.id,s]),{activeLiveStream:o}}},49869:function(e,t,n){n.d(t,{w:()=>r});var i=n(17402);let r=e=>{let{containerRef:t,defaultWidth:n,defaultHeight:r}=e,[l,a]=(0,i.useState)(null!=n?n:0),[s,o]=(0,i.useState)(null!=r?r:0),[c,d]=(0,i.useState)(0);return(0,i.useEffect)(()=>{let e=new ResizeObserver(()=>{if(t.current){let e=t.current.getBoundingClientRect();a(t.current.offsetWidth),o(t.current.offsetHeight),d(e.top)}});return t.current&&e.observe(t.current),()=>{e.disconnect()}},[t]),{width:l,height:s,boundingTop:c}}},73443:function(e,t,n){n.d(t,{k:()=>A});var i=n(69277),r=n(70408),l=n(79785),a=n(4006),s=n(45773),o=n(80697),c=n(87677),d=n(17402),u=n(63446),h=n(4317),p=n(15894),m=n(84605),f=n(12501),g=n(68410),v=n(76977),w=n(56458),b=n(92019);function y(){let e=(0,l._)(["Stay Informed on What"]);return y=function(){return e},e}function Y(){let e=(0,l._)(["Matters to You"]);return Y=function(){return e},e}function k(){let e=(0,l._)(["Time for a quick update?"]);return k=function(){return e},e}function C(){let e=(0,l._)(["Choose the topics and columns you want in your inbox. No noise, just the stories you care about."]);return C=function(){return e},e}function S(){let e=(0,l._)(["Make sure you're getting the stories you care about most. Pick the topics and columns you want more (or less) of."]);return S=function(){return e},e}function x(){let e=(0,l._)(["Skip for now"]);return x=function(){return e},e}function I(){let e=(0,l._)(["Continue"]);return I=function(){return e},e}function _(){let e=(0,l._)(["Continue"]);return _=function(){return e},e}function T(){let e=(0,l._)(["Skip for now"]);return T=function(){return e},e}let F=["us-politics","history","culture","international","free-speech","health-and-self-improvement","tech-and-business","education","israel-and-antisemitism","faith","parenting","sex-and-gender","antisemitism","new-york","california","canada","the-pursuit-of-happiness-with-arthur","tough-love-with-abigail-shrier","tyler-cowen-must-know","two-drinks","second-thought","ancient-wisdom"],A=e=>{let{pub:t,isNewSubscriber:n,fullScreen:l,onSubmit:A,onSkip:B}=e,{isMobile:N}=(0,g.sM)(),{iTemplate:D}=(0,m.GO)(),[E,P]=(0,d.useState)(new Set),[R,W]=(0,d.useState)(!1),{refetch:H}=(0,f.st)({pathname:"/api/v1/user-setting",method:"PUT",auto:!1});(0,d.useEffect)(()=>{N&&"undefined"!=typeof window&&window.scrollTo(0,0),async function(){await H({json:{type:"hasSeenOnboardingNewslettersScreen",value_bool:!0}})}()},[N]);let L=(0,d.useMemo)(()=>{var e;let n=(0,w.Jh)({pub:t,includeMainPub:!1,excludePodcasts:!0}).map(e=>(0,r._)((0,i._)({},e),{selected:e.defaultOn})),l=new Map;null==(e=t.sections)||e.forEach(e=>{l.set(e.id,e.slug)});let a=new Map;return n.forEach(e=>{if(e.sectionId){let t=l.get(e.sectionId);t&&a.set(t,e)}}),F.map(e=>a.get(e)).filter(e=>!!e)},[t]),{result:M,isLoading:V}=(0,f.st)({pathname:"/api/v1/subscription",auto:!0});(0,d.useEffect)(()=>{if(!V&&(null==M?void 0:M.email_settings)){let e=Object.keys(M.email_settings).filter(e=>"individual"===M.email_settings[e]).map(e=>Number(e)),t=L.map(e=>e.sectionId).filter(Boolean),n=e.filter(e=>t.includes(e));P(new Set(n)),n.length>0&&W(!0)}},[null==M?void 0:M.email_settings,V,L]);let O=e=>{let{isNewSubscriber:t}=e;return(0,a.FD)(a.FK,{children:[(0,a.FD)(v.I1,{gap:16,children:[(0,a.Y)(p.T,{preset:"h3-compressed",children:t?(0,a.FD)(a.FK,{children:[D(y()),(0,a.Y)("br",{}),D(Y())]}):D(k())}),(0,a.Y)(p.T,{preset:"d1-sans-regular",children:t?D(C()):D(S())})]}),(0,a.Y)(v.Ye,{gap:8,wrap:"wrap",justifyContent:"center",children:L.map(e=>(0,a.Y)(u.v,{size:"md",style:{borderRadius:"50px",padding:"8px 8px 8px 10px",border:(null==e?void 0:e.sectionId)&&E.has(null==e?void 0:e.sectionId)?"1px solid transparent":void 0},variant:(null==e?void 0:e.sectionId)&&E.has(null==e?void 0:e.sectionId)?"primary":"outline",onClick:()=>(e=>{if(!e)return;let t=new Set(E);E.has(e)?t.delete(e):t.add(e),P(t)})(e.sectionId),children:(0,a.FD)(v.Ye,{gap:4,alignItems:"center",children:[e.name," ",(null==e?void 0:e.sectionId)&&E.has(null==e?void 0:e.sectionId)?(0,a.Y)(s.A,{size:16}):(0,a.Y)(o.A,{size:16})]})}))}),N?(0,a.FD)(v.I1,{gap:8,children:[(0,a.FD)(u.v,{variant:"primary",onClick:()=>A(Array.from(E),L.filter(e=>e.sectionId&&!E.has(e.sectionId)).map(e=>e.sectionId)),disabled:0===E.size&&!R,children:[D(_())," ",(0,a.Y)(c.A,{})]}),(0,a.Y)(u.v,{variant:"tertiary",onClick:B,style:{textDecoration:"underline"},children:D(T())})]}):(0,a.FD)(a.FK,{children:[(0,a.Y)("div",{style:{height:"1px",backgroundColor:"#BEBDB8",width:"100%"}}),(0,a.FD)(v.Ye,{style:{justifyContent:"space-between",width:"100%"},children:[(0,a.Y)(u.v,{variant:"tertiary",onClick:B,style:{textDecoration:"underline"},children:D(x())}),(0,a.FD)(u.v,{style:{width:212,padding:16},variant:"primary",onClick:()=>A(Array.from(E),L.filter(e=>e.sectionId&&!E.has(e.sectionId)).map(e=>e.sectionId)),disabled:0===E.size&&!R,children:[D(I())," ",(0,a.Y)(c.A,{})]})]})]})]})};return l?(0,a.Y)(v.Ye,{className:b.A.halfAndHalf,justifyContent:"center",children:(0,a.FD)(v.Ye,{className:b.A.halfAndHalfInner,children:[(0,a.Y)(v.I1,{className:b.A.leftContent,gap:N?24:40,style:{paddingRight:"32px"},children:(0,a.Y)(O,{isNewSubscriber:n})}),(0,a.Y)(h.g,{})]})}):(0,a.Y)(v.I1,{gap:N?24:40,children:(0,a.Y)(O,{isNewSubscriber:n})})}},39862:function(e,t,n){n.d(t,{n:()=>i});let i={"the-america-debates":"The America Debates","the-freedom-debates":"The Freedom Debates","the-free-press-presents-america-at-250":"The Free Press Presents: America at 250","the-free-press-book-club":"The Free Press Book Club"}}}]);