1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="d938639c-1ae0-8e91-32db-8ba6e29cdbe4")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,726105,22211,e=>{"use strict";var t=e.i(478902),s=e.i(695287),n=e.i(862460),o=e.i(389959),r=e.i(197649);let i=e=>{let{className:s,children:n,onTabClick:i,activeTab:a,variant:l="default",defaultActiveTab:d,forwardRef:c}=e,u=(0,r.default)("mastl0",[{mastl1:"default"===l,"mastl2 mastl1":"secondary"===l}],s),m=o.default.Children.toArray(n).map((e,t)=>o.default.cloneElement(e,{tabID:e.props.tabID?e.props.tabID:t.toString(),active:d&&!a?e.props.tabID===d:e.props.tabID===a,variant:e.props.variant?e.props.variant:l,onTabClick:i}));return(0,t.jsx)("ul",{className:u,role:"tablist",ref:c,children:m})};var a=o;class l extends a.default.Component{handleTabClick=()=>{this.props.onTabClick&&this.props.onTabClick(this.props.tabID)};render(){let{className:e,children:s,tabID:n,active:o,variant:i,"aria-label":a,title:l,target:d,rel:c}=this.props,u=(0,r.default)("_1q1k89s2",{_1q1k89s3:"default"===i,"_1q1k89s4 _1q1k89s3":"secondary"===i,_1q1k89s1:o},e);return(0,t.jsx)("li",{className:"_1q1k89s0",children:this.props.href?(0,t.jsx)("a",{id:`tab-${n}`,href:this.props.href,className:u,"aria-label":a,title:l,target:d,rel:"_blank"===d?c||"noopener noreferrer":c,children:s}):(0,t.jsx)("button",{id:`tab-${n}`,type:"button",className:u,"aria-controls":`tabPane-${n}`,role:"tab","aria-selected":o,"aria-label":a,title:l,onClick:this.handleTabClick,children:s})},n)}}let d=e=>{let{className:t,children:s,tabID:n,"aria-labelledby":r,...i}=e;return(0,o.createElement)("section",{...i,className:t,key:n,id:`tabPane-${n}`,"aria-labelledby":r||`tab-${n}`,role:"tabpanel"},s)},c=e=>{let{children:s,activeTab:n,className:i,keepMounted:a=!1}=e,l=o.default.Children.toArray(s),[d,c]=(0,o.useState)(()=>new Set(n?[n]:[]));(0,o.useEffect)(()=>{a&&n&&c(e=>{if(e.has(n))return e;let t=new Set(e);return t.add(n),t})},[n,a]);let u=a?l.filter(e=>e.props.tabID===n||d.has(e.props.tabID)):l.filter(e=>e.props.tabID===n);return(0,t.jsx)(t.Fragment,{children:u.map((e,t)=>{let s=e.props.tabID?e.props.tabID:t.toString(),l=s===n;return o.default.cloneElement(e,{tabID:s,className:(0,r.default)(i,e.props.className),...a?{hidden:!l}:{}})})})};var u=e.i(174604),m=e.i(769861),h=e.i(447394),p=e.i(597406),x=e.i(396902),j=e.i(624334),f=e.i(430929),w=e.i(925677),g=e.i(579418),b=e.i(593296),v="_1exi9bp1",C="_1exi9bp2",y="_1exi9bp4",k="_1exi9bp5";let N={title:"Close comment stream",description:"This comment stream is currently open. By closing this comment stream, no new comments may be submitted and all previously submitted comments will still be displayed.",button:"Close Stream"},L={title:"Open Stream",description:"This comment stream is currently closed. By opening this comment stream new comments may be submitted and displayed.",button:"Open Stream"},S={title:"Pre-moderate all comments",description:"This comment stream is not currently pre-moderated. By turning on pre-moderate, moderators must approve any new comment before it is published and all previously submitted comments will still be displayed.",button:"Pre-moderate"},I={title:"Turn off pre-moderate all comments",description:"This comment stream is currently pre-moderated. By turning off pre-moderate, new comments will be published without needing moderator approval and all previously submitted comments will still be displayed.",button:"Turn off pre-moderate"},R=(0,s.observer)(function(){let{cycloneConfig:{serverURL:e}}=(0,x.useConfigContext)(),{user:s}=(0,p.useAuth)(),{repliesStore:n,externalRootStore:r}=(0,b.useStore)(),[i,a]=(0,o.useState)(!1),[l,d]=(0,o.useState)(!1),[c,R]=(0,o.useState)(null),_=n.root,A=_?.id,T=!!_?.repliesAreClosed,M=_?.premod===!0,D="boolean"==typeof _?.premod,z=_?.community?.id??r.communityID,E=s?.cycloneToken,P=!!(A&&z&&E&&!i),B=!!(A&&z&&E&&D&&!l),$=T?L:N,q=M?I:S;(0,o.useEffect)(()=>
2{if(!A||!z||!E||D)return;let t=!1;return(async()=>{try{let s=await (0,f.fetchExternalRootPremod)(z,A,e,E);if(t)return;let o=n.getPost(A)??_;s&&"boolean"==typeof s.premod?n.insert({...o,premod:s.premod}):R("Couldn't load pre-moderation status. Try again.")}catch{t||R("Couldn't load pre-moderation status. Try again.")}})(),()=>{t=!0}},[z,D,n,_,A,e,E]);let F=(0,o.useCallback)(async()=>{if(_?.id&&z&&E&&!i){a(!0),R(null);try{let t=T?await (0,w.openReplies)(z,_.id,e,E):await (0,j.closeReplies)(z,_.id,e,E);t?n.insert(t):R("Couldn't update comments. Try again.")}catch{R("Couldn't update comments. Try again.")}finally{a(!1)}}},[i,z,T,n,_?.id,e,E]),O=(0,o.useCallback)(async()=>{if(_?.id&&z&&E&&D&&!l){d(!0),R(null);try{let t=await (0,g.setContentPremod)(z,_.id,!M,e,E);t?n.insert(t):R("Couldn't update pre-moderation. Try again.")}catch{R("Couldn't update pre-moderation. Try again.")}finally{d(!1)}}},[z,M,D,l,n,_?.id,e,E]),U=(0,o.useCallback)(()=>{F()},[F]),V=(0,o.useCallback)(()=>{O()},[O]);return(0,t.jsxs)("div",{className:"_1exi9bp0",children:[c&&(0,t.jsx)(m.default,{className:"_1exi9bp3",color:"error",icon:(0,t.jsx)(u.default,{width:16,height:16}),role:"alert",children:c}),(0,t.jsxs)("section",{className:y,children:[(0,t.jsx)("h2",{className:v,children:$.title}),(0,t.jsx)("p",{className:C,children:$.description}),(0,t.jsx)(h.default,{className:k,displayType:"regular",size:"large",type:"button",uppercase:!0,text:$.button,disabled:!P,"aria-busy":i,onClick:U})]}),(0,t.jsxs)("section",{className:y,children:[(0,t.jsx)("h2",{className:v,children:q.title}),(0,t.jsx)("p",{className:C,children:q.description}),(0,t.jsx)(h.default,{className:k,displayType:"regular",size:"large",type:"button",uppercase:!0,text:q.button,disabled:!B,"aria-busy":l,onClick:V})]})]})}),_=({className:e,width:s,height:n})=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-0.25 -0.25 24.5 24.5",className:e,width:s,height:n,strokeWidth:"1.85",children:[(0,t.jsx)("defs",{}),(0,t.jsx)("title",{children:"time-reverse"}),(0,t.jsx)("polyline",{points:"9.163 17.603 12.162 14.603 12.163 9.603",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("polyline",{points:"14.158 6.853 10.158 3.603 14.658 0.853",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M3.707,18.6A9.837,9.837,0,1,0,10.221,3.635",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M6.852,4.937A9.97,9.97,0,0,0,3.809,7.873",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M2.336,11.5a10.211,10.211,0,0,0,.13,4.227",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]}),A=({className:e,width:s,height:n})=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-0.25 -0.25 24.5 24.5",className:e,width:s,height:n,fill:"none",strokeWidth:"1.9",children:[(0,t.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",d:"M17.75 14.75H10.75L4.75 19.25V14.75H2.25C1.45 14.75 0.75 14.05 0.75 13.25V2.25C0.75 1.45 1.45 0.75 2.25 0.75H17.75C18.55 0.75 19.25 1.45 19.25 2.25V13.25C19.25 14.05 18.65 14.75 17.75 14.75Z"}),(0,t.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",d:"M10.25 18.75H13.25L19.25 23.25V18.75H21.75C22.55 18.75 23.25 18.05 23.25 17.25V6.25C23.25 5.45 22.55 4.75 21.75 4.75"}),(0,t.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",d:"M15.25 4.75L10.05 9.45001L7.75 7.15002L4.75 9.95001"}),(0,t.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",d:"M11.75 4.75H15.25V8.25"})]});var T=e.i(576164);let M=({className:e,width:s,height:n})=>(0,t.jsx)("svg",{viewBox:"-0.25 -0.25 24.5 24.5",xmlns:"http://www.w3.org/2000/svg",className:e,width:s,height:n,strokeWidth:"1.8",children:(0,t.jsx)("path",{d:"M21.75,18.75H11.25l-6,4.5v-4.5h-3a1.5,1.5,0,0,1-1.5-1.5v-15A1.5,1.5,0,0,1,2.25.75h19.5a1.5,1.5,0,0,1,1.5,1.5v15A1.5,1.5,0,0,1,21.75,18.75Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),D=({rank:e,siteName:s,url:n,header:o,date:r,commentsCount:i})=>(0,t.jsx)("a",{href:n,children:(0,t.jsxs)("div",{className:"eda7jh0",children:[e&&(0,t.jsx)("div",{className:"eda7jh3",children:e}),(0,t.jsxs)("div",{children:[s&&(0,t.jsx)("div",{className:"eda7jh1",children:s}),(0,t.jsx)("h4",{className:"eda7jh2",children:o}),(0,t.jsxs)("div",{className:"eda7jh4",children:[r&&(0,t.jsx)("div",{className:"eda7jh5",children:(0,t.jsx)(T.default,{date:r})}),i&&(0,t.jsxs)("div",{className:"eda7jh6",children:[(0,t.jsx)(M,{width:14,height:14})," ",i]})]})]})]})}),z=({header:e,subHeader:s,Icon:n})=>(0,t.jsxs)("div",{className:"d49blj0",children:[(0,t.jsxs)("div",{className:"d49blj1",children:[n,(0,t.jsx)("h3",{className:"d49blj2",children:e})]}),(0,t.jsx)("div",{children:(0,t.jsx)("span",{className:"d49blj3",children:s})})]});var E=e.i(497625),P=e.i(740494),B=e.i(798240),$=e.i(415378),q=e.i(623690),F=e.i(52659),O=e.i(67655);let U=(0,s.observer)(function(){let{viewer:e}=(0,q.useCyclone)(),s=(0,o.useContext)($.default),{communityConfig:{communityOrigin:n,communityName:r},networkConfig:{networkName:i}}=(0,x.useConfigContext)(),{cycloneCommunityId:a}=(0,B.useCurrentCycloneCommunity)(),{viewerStore:l}=(0,b.useStore)();return((0,o.useEffect)(()=>{e&&!l.ongoingDiscussions.hasLoaded&&l.loadOngoingDiscussions()},[e,l,l.ongoingDiscussions.hasLoaded]),e?.profileURL)?(0,t.jsx)(F.default,{limit:5,children:(o,d)=>l.ongoingDiscussions.hasLoaded&&d?(0,t.jsxs)("div",{className:"dhqml80",children:[(0,t.jsxs)("section",{children:[(0,t.jsx)(z,{header:"Most active discussions",subHeader:` Ranked by comments on ${r} stories from the last 24 hours`,Icon:(0,t.jsx)(A,{width:18,height:18})}),null!==o&&o.length>0&&(0,t.jsx)("ul",{className:"dhqml81",children:o.map((e,n)=>(0,t.jsx)("li",{children:(0,t.jsx)(D,{rank:n+1,url:e.permalink,header:e.headline,date:e.timestamp,commentsCount:s&&s.getCommentCount(e.id)||e.commentCount||void 0})}
2,n))})]}),(0,t.jsxs)("section",{children:[(0,t.jsx)(z,{header:"My ongoing discussions",subHeader:`Where you've commented across ${i}`,Icon:(0,t.jsx)(_,{width:18,height:18})}),(0,t.jsx)("ul",{children:l.ongoingDiscussions.items.map(e=>e.rootAncestor&&e.community?(0,t.jsx)("li",{children:(0,t.jsx)(D,{siteName:a!==e.community.id?e.community.name:void 0,url:(0,P.getCycloneContentPostPath)(e.rootAncestor)||void 0,header:e.rootAncestor.title||"Title not available",date:e.createdAt,commentsCount:e.rootAncestor.replyCount||void 0})},e.id):null)}),0===l.ongoingDiscussions.items.length&&(0,t.jsx)("div",{className:"dhqml83",children:"You havenât participated in any discussions"}),(0,t.jsx)(h.default,{className:"dhqml82",displayType:"outlined",size:"regular",text:"View full comment history",href:(0,O.getRelativeURL)(`${e.profileURL}?tab=articleComments`,n),uppercase:!0})]})]}):(0,t.jsx)(E.CommentsLoading,{})}):(0,t.jsx)(E.CommentsLoading,{})}),V=({className:e,children:s,color:n,...o})=>{let i=(0,r.default)("_1nsat4w0",{_1nsat4w2:"grey"===n,_1nsat4w3:"inherit"===n},e);return(0,t.jsx)("span",{className:i,...o,children:(0,t.jsx)("span",{className:"_1nsat4w1",children:s})})};function H({className:e}){return(0,t.jsxs)("section",{className:(0,r.default)("_1soiwe10",e),children:[(0,t.jsxs)("p",{children:["Be respectful in your interactions with contributors and fellow fans."," ",(0,t.jsx)("a",{target:"_parent",href:"https://www.sbnation.com/pages/community-guidelines",children:"Go here to read our community guidelines."})," ","Trolling of any sort, especially going to rival sites and trolling, is expressly against the rules. If you do it, you'll most likely be permanently banned."]}),(0,t.jsxs)("p",{children:["⢠Go to the My Profile tab for your comment history",(0,t.jsx)("br",{}),"⢠C key scrolls forwards through comments / shift-C scrolls backwards",(0,t.jsx)("br",{}),"⢠Z key jumps to Next Unread / shift-A marks all comments on your screen as read"]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("a",{target:"_parent",href:"https://www.sbnation.com/pages/sb-nation-comment-section-tips",children:"More tips here."})," ","If youâd like to report a bug, email us at"," ",(0,t.jsx)("a",{target:"_parent",href:"mailto:[email protected]",children:"[email protected]"}),". If you have a moderation issue, please email"," ",(0,t.jsx)("a",{target:"_parent",href:"mailto:[email protected]",children:"[email protected]"}),"."]}),(0,t.jsxs)("p",{children:["Download the new SB Nation app:"," ",(0,t.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://apps.apple.com/app/apple-store/id6789240983?pt=541474&ct=comments_internal_header&mt=8",children:"iOS"})," ","|"," ",(0,t.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://play.google.com/store/apps/details?id=com.sbnation.app&referrer=utm_source%3Dcomments%26utm_campaign%3Dinternal_header",children:"Android"})]})]})}var W=e.i(334441);let Y={live:"Live",reconnecting:"Reconnectingâ¦",offline:"Offline"},Z=(0,s.observer)(function(){let e=(0,W.useOptionalCycloneWebsocketContext)();if(!e)return null;let s=e.manager.connectionState,n=Y[s];return(0,t.jsx)("span",{className:"_1n09egw0","data-connection-state":s,title:n,"aria-label":`Connection: ${n}`,role:"status","aria-live":"polite"})}),G=({className:e,width:s,height:n})=>(0,t.jsxs)("svg",{viewBox:"-0.25 -0.25 24.5 24.5",xmlns:"http://www.w3.org/2000/svg",className:e,width:s,height:n,strokeWidth:1.5,children:[(0,t.jsx)("path",{d:"M6 14.248L6 18.748 1.5 18.748",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M5.717,18.751A9.753,9.753,0,0,1,16.5,3",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M5.712,18.746A9.72,9.72,0,1,1,9,21",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]}),K=(0,s.observer)(function(){let{repliesStore:e}=(0,b.useStore)(),s=(0,W.useOptionalCycloneWebsocketContext)(),n=(0,o.useCallback)(async()=>{let t=await e.reload();"reloaded"===t?s?.resetReplyUpdateRefresh():"failed"===t&&e.setLastSyncOk(!1)},[e,s]);return(0,t.jsx)("button",{type:"button",className:"ln4rcf0",onClick:()=>void n(),disabled:e.isReloading,"aria-label":"Refresh comments",title:"Refresh comments",children:(0,t.jsx)(G,{className:"ln4rcf1"})})});e.i(523121);var Q=e.i(749309),J=e.i(221381),X=e.i(427920);let ee=({className:e,width:s,height:n})=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-0.25 -0.25 24.5 24.5",fill:"none",strokeWidth:"1.5px",className:e,width:s,height:n,
2children:[(0,t.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 18.75H11.25L5.25 23.25V18.75H2.25C1.85218 18.75 1.47064 18.592 1.18934 18.3107C0.908035 18.0294 0.75 17.6478 0.75 17.25V2.25C0.75 1.85218 0.908035 1.47064 1.18934 1.18934C1.47064 0.908035 1.85218 0.75 2.25 0.75H21.75C22.1478 0.75 22.5294 0.908035 22.8107 1.18934C23.092 1.47064 23.25 1.85218 23.25 2.25V17.25C23.25 17.6478 23.092 18.0294 22.8107 18.3107C22.5294 18.592 22.1478 18.75 21.75 18.75Z"}),(0,t.jsx)("path",{stroke:"currentColor",d:"M12.75 15C12.5429 15 12.375 14.8321 12.375 14.625C12.375 14.4179 12.5429 14.25 12.75 14.25"}),(0,t.jsx)("path",{stroke:"currentColor",d:"M12.75 15C12.9571 15 13.125 14.8321 13.125 14.625C13.125 14.4179 12.9571 14.25 12.75 14.25"}),(0,t.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M12.75 11.25V5.25"})]}),et=({className:e,width:s,height:n})=>(0,t.jsxs)("svg",{className:e,width:s,height:n,viewBox:"-0.25 -0.25 24.5 24.5",xmlns:"http://www.w3.org/2000/svg",strokeWidth:"2",children:[(0,t.jsx)("path",{d:"M3.375 7.875 A4.125 4.125 0 1 0 11.625 7.875 A4.125 4.125 0 1 0 3.375 7.875 Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M.75,20.25a6.75,6.75,0,0,1,13.5,0",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M14.251,4.416a4.125,4.125,0,1,1-.006,6.914",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M15,13.667a6.757,6.757,0,0,1,8.25,6.583",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]});var es=e.i(228837),en=e.i(722010),eo=e.i(349254),er=e.i(458225),ei=e.i(613329);let ea=({className:e})=>(0,t.jsxs)("svg",{className:e,viewBox:"-0.25 -0.25 24.5 24.5",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M21.75,8.25h-12l-4.5,4.5V8.25h-3a1.5,1.5,0,0,1-1.5-1.5V2.25A1.5,1.5,0,0,1,2.25.75h19.5a1.5,1.5,0,0,1,1.5,1.5v4.5A1.5,1.5,0,0,1,21.75,8.25Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M2.25,11.25a1.5,1.5,0,0,0-1.5,1.5v4.5a1.5,1.5,0,0,0,1.5,1.5h12l4.5,4.5v-4.5h3a1.5,1.5,0,0,0,1.5-1.5v-4.5a1.5,1.5,0,0,0-1.5-1.5H11.25",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]}),el=e=>{let{className:s,width:n,height:o}=e;return(0,t.jsxs)("svg",{viewBox:"-0.25 -0.25 24.5 24.5",xmlns:"http://www.w3.org/2000/svg",className:s,width:n,height:o,children:[(0,t.jsx)("path",{d:"M6.750 9.750 A5.250 5.250 0 1 0 17.250 9.750 A5.250 5.250 0 1 0 6.750 9.750 Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M18.913,20.876a9.746,9.746,0,0,0-13.826,0",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M0.750 12.000 A11.250 11.250 0 1 0 23.250 12.000 A11.250 11.250 0 1 0 0.750 12.000 Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})};var ed=e.i(452756),ec="_6oxnsb1",eu="_6oxnsb2";function em(){let e=(0,o.useCallback)(()=>{let e;e=(0,ed.scrollToId)("comments"),e?.getElementsByTagName("button")[0]?.focus()},[]),{viewer:s}=(0,q.useCyclone)(),{communityConfig:{communityOrigin:n}}=(0,x.useConfigContext)();return(0,t.jsxs)("ul",{className:"_6oxnsb0",children:[s&&(0,t.jsx)("li",{children:(0,t.jsxs)("a",{className:ec,href:(0,O.getRelativeURL)(`${s.profileURL}?tab=articleComments`,n),children:[(0,t.jsx)(el,{className:eu}),"Profile & Replies"]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:ec,onClick:e,children:[(0,t.jsx)(ea,{className:eu}),"Top of comments"]})})]})}let eh=(0,s.observer)(function({draftScopeId:e}){let{repliesStore:s}=(0,b.useStore)(),n=(0,o.useRef)(void 0),a=(0,o.useRef)(null),p=(0,o.useRef)(null),x=s.getPost(s.root?.id||""),j=x?.replyCount||0,f=(0,o.useCallback)(async()=>{n.current?.scrollToIndex({index:"LAST",behavior:"auto"}),p.current?.commands.focus(),a.current?.scrollIntoView({behavior:"auto",block:"center"});for(let e=0;e<5;e++)await (0,ei.wait)(100),a.current?.scrollIntoView({behavior:"auto",block:"center"})},[]),w=(0,o.useCallback)(()=>{f()},[f]),[g,v]=(0,o.useState)("allComments"),C=!!s.root?.repliesAreClosed,y=(0,t.jsx)(Q.CommentsComposer,{editorRef:p,parent:s.root,draftScopeId:e,onSubmit:e=>{e&&s.insert(e)},placeholderText:"Post a comment"}),k=0;return s.root&&"viewerCount"in s.root&&(k=s.root.viewerCount+1),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(H,{className:"xpazh03"}),C&&(0,t.jsx)(m.default,{classNameText:"xpazh04",icon:(0,t.jsx)(ee,{height:14,width:14}),children:"Comments are closed on this story."}),(0,t.jsx)(es.default,{}),!C&&(0,t.jsx)(m.default,{className:(0,r.default)("xpazh0h",0===k&&"xpazh0k"),
2classNameText:"xpazh0i",classNameIcon:"xpazh0l",icon:(0,t.jsx)(et,{width:18,height:18}),"aria-busy":0===k,children:(0,t.jsxs)("span",{className:"xpazh0j","aria-hidden":0===k,children:[(0,t.jsx)("span",{children:k<=1?"1 person viewing this discussion":`${k} people viewing this discussion`}),(0,t.jsx)(Z,{})]})}),!C&&s.currentSort!==en.ReplySort.OldestFirst&&(0,t.jsx)("div",{className:"xpazh0e xpazh0d",ref:a,children:y}),!C&&s.currentSort===en.ReplySort.OldestFirst&&(0,t.jsx)("div",{className:"xpazh00",children:(0,t.jsx)(h.default,{displayType:"outlined",className:"xpazh01",text:"Add a comment",size:"large",uppercase:!0,onClick:w,iconLeft:(0,t.jsx)(eo.default,{className:"xpazh02"})})}),(0,t.jsxs)("div",{className:"xpazh0b",children:[(0,t.jsx)(i,{activeTab:g,onTabClick:v,variant:"secondary",className:"xpazh05",children:(0,t.jsxs)(l,{tabID:"allComments",children:["All Comments"," ",(0,t.jsx)(V,{color:"allComments"===g?"inherit":"grey",children:(0,t.jsx)(er.default,{number:j,ariaLabel:`${j} total comments`})})]})}),(0,t.jsxs)("div",{className:"xpazh06",children:[(0,t.jsx)("div",{className:"xpazh07",children:(0,t.jsx)(K,{})}),(0,t.jsxs)("div",{className:"xpazh08",children:[(0,t.jsx)("div",{className:"xpazh09",children:"Sort by"}),(0,t.jsx)(J.RepliesSortSelect,{className:"xpazh0a"})]})]})]}),!1===s.lastSyncOk&&(0,t.jsx)(m.default,{className:"xpazh0c",color:"error",icon:(0,t.jsx)(u.default,{width:16,height:16}),role:"alert",children:"We couldn't load the latest comments. Use the refresh button to try again."}),(0,t.jsx)(c,{activeTab:g,children:(0,t.jsxs)(d,{tabID:"allComments",className:"xpazh0g",children:[(0,t.jsx)(X.default,{virtuosoRef:n}),(0,t.jsx)(es.default,{}),!C&&s.currentSort===en.ReplySort.OldestFirst&&(0,t.jsx)("div",{className:"xpazh0f xpazh0d",ref:a,children:y}),(0,t.jsx)(em,{})]})})]})}),ep=({className:e,width:s,height:n})=>(0,t.jsxs)("svg",{viewBox:"-0.25 -0.25 24.5 24.5",xmlns:"http://www.w3.org/2000/svg",className:e,width:s,height:n,children:[(0,t.jsx)("path",{d:"M9.362 20.628 A2.625 2.625 0 1 0 14.612 20.628 A2.625 2.625 0 1 0 9.362 20.628 Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M9.362 3.378 A2.625 2.625 0 1 0 14.612 3.378 A2.625 2.625 0 1 0 9.362 3.378 Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M9.362 12.003 A2.625 2.625 0 1 0 14.612 12.003 A2.625 2.625 0 1 0 9.362 12.003 Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]});function ex({className:e,showBorder:s,children:n}){return(0,t.jsx)("div",{className:(0,r.default)("_1juoz1l0",s&&"_1juoz1l1",e),children:n})}e.i(149891);var ej=e.i(876165),ef=e.i(862226);let ew=(0,s.observer)(function(){let e=(0,o.useRef)(void 0),{repliesStore:s,externalRootStore:r}=(0,b.useStore)(),i=(0,n.usePathname)(),[a,l]=(0,o.useState)(!1),d=(0,ef.useQuickPostReplyProps)(),c=(0,o.useMemo)(()=>s.focusedAncestors.filter(e=>e.type===en.ContentObjectType.QuickPost),[s.focusedAncestors]),u=(0,o.useCallback)(()=>{l(!0)},[]),h=[];c.length>0&&(h=a?c:[c[0]]),(0,o.useEffect)(()=>{s.expandedAncestors=c.length<=1||a},[c,s,a]);let p=(0,t.jsxs)("section",{className:"_1hqv7mz0",children:[(0,t.jsx)("div",{children:"You are currently viewing a single conversation"}),(0,t.jsx)("div",{children:(0,t.jsx)("a",{className:"_1hqv7mz1",href:`${i}#comments`,children:"View full discussion"})})]});if(s.hasErrors||r.hasErrors)return(0,t.jsxs)(t.Fragment,{children:[p,(0,t.jsx)(m.default,{children:"Sorry, we were unable to load the comments. Please refresh the page to try again."})]});if(!s.hasLoaded)return(0,t.jsxs)(t.Fragment,{children:[p,(0,t.jsx)(E.CommentsLoading,{})]});if(null===s.focusedReply)return(0,t.jsxs)(t.Fragment,{children:[p,(0,t.jsx)(m.default,{children:"This comment has been removed or does not exist."})]});let x=(0,t.jsx)(X.default,{virtuosoRef:e});return h.length>0&&(x=(0,t.jsx)(ex,{children:x})),(0,t.jsxs)(t.Fragment,{children:[p,h.map(e=>(0,t.jsx)(ex,{showBorder:!0,children:(0,t.jsx)(ej.default,{...d,quickPost:e,showReplyFeed:"just-posted",collapsible:!1,disableReplies:s.root?.repliesAreClosed,isAncestor:!0})},e.id)),c.length>1&&!a&&(0,t.jsxs)("button",{className:"_1hqv7mz2",onClick:u,children:[(0,t.jsx)(ep,{className:"_1hqv7mz3"}),(0,t.jsx)("span",{className:"_1hqv7mz4",children:"Show more of this conversation"})," ",(0,t.jsx)(V,{className:"_1hqv7mz5",color:"inherit",children:c.length-1})]}),x]})});var eg=e.i(395721),eb=e.i(211400),ev=e.i(225803);
2let eC=new Set(["ArrowDown","ArrowUp","End","Home","PageDown","PageUp"," "]);var ey=e.i(882302),ek=e.i(310282),eN=e.i(465149),eL=e.i(323157);e.i(807738);var eS=e.i(738886),eI="_17njid55",eR="_17njid56",e_="_17njid5a",eA="_17njid5e";let eT=(0,s.observer)(function({friendlyID:e,contentSource:s,permalink:r,canonicalCycloneCommunityId:i}){let a=(0,ey.normalizeCycloneStreamId)(e),l=(0,ey.toCycloneCountId)({streamId:e,contentSource:s}),{communityConfig:{communityOrigin:d},cycloneConfig:{serverURL:c},networkConfig:{networkId:u}}=(0,x.useConfigContext)(),{cycloneCommunityId:m}=(0,B.useCurrentCycloneCommunity)(),h=i??m,{user:p,viewer:j,viewerToken:f,authPending:w,loadPending:g,showLoggedInChrome:b}=(0,eb.useCycloneAuthGate)(),v=(0,n.useSearchParams)().get("commentID");!function(e,t=!0){(0,o.useLayoutEffect)(()=>{if(!t||window.location.hash!==`#${e}`)return;let s=document.getElementById(e);if(!s)return;let n=0,o=null,r=null,i=null,a=window.scrollY,l=!1,d=!0,c=document.documentElement.style,u=c.overflowAnchor;c.overflowAnchor="none";let m=()=>{d&&(d=!1,c.overflowAnchor=u,window.cancelAnimationFrame(n),window.removeEventListener("pointerdown",m,!0),window.removeEventListener("touchstart",m,!0),window.removeEventListener("wheel",m,!0),window.removeEventListener("keydown",h,!0),window.removeEventListener("scroll",p,!0),window.removeEventListener("hashchange",m),window.removeEventListener("popstate",m))},h=e=>{eC.has(e.key)&&m()},p=()=>{if(!l||null===o){a=window.scrollY;return}if(null!==i){i=null,a=window.scrollY;return}let e=s.getBoundingClientRect().top,t=window.scrollY-a,n=e-o;a=window.scrollY,Math.abs(t)>1&&1>=Math.abs(n+t)&&m()},x=e=>{if(!d||null===o||null===r)return;l=!0,i=null;let t=s.getBoundingClientRect().top-o;(Math.abs(t)>=.5&&(i=window.scrollY+t,window.scrollBy({behavior:"auto",top:t}),1>=Math.abs(window.scrollY-i)&&(i=null)),a=window.scrollY,e-r>=1e4)?m():n=window.requestAnimationFrame(x)};return window.addEventListener("pointerdown",m,!0),window.addEventListener("touchstart",m,{capture:!0,passive:!0}),window.addEventListener("wheel",m,{capture:!0,passive:!0}),window.addEventListener("keydown",h,!0),window.addEventListener("scroll",p,{capture:!0,passive:!0}),window.addEventListener("hashchange",m),window.addEventListener("popstate",m),s.scrollIntoView({behavior:"auto",block:"start"}),o=s.getBoundingClientRect().top,a=window.scrollY,r=performance.now(),n=window.requestAnimationFrame(x),m},[e,t])}("comments",!v);let[C,y]=(0,o.useState)("comments");(0,o.useEffect)(()=>{b||"comments"===C||y("comments")},[b,C]);let k=(0,o.useRef)(null),{rootStore:N}=(0,o.useMemo)(()=>({rootStore:new eL.RootStore(c,u,h)}),[h,u,c]),L=N.repliesStore.hasLoaded,S=(0,o.useCallback)(async()=>{await N.externalRootStore.loadExternalRoot(h,a,r),await N.repliesStore.loadReplies()},[N,h,a,r]);(0,o.useEffect)(()=>{v&&(0,ed.scrollToId)("comments")},[]),(0,ev.useCycloneThreadLoad)({rootStore:N,load:S,authPending:g,viewerToken:f}),(0,o.useEffect)(()=>{if(!L)return;if(!v){N.repliesStore.focusedReply&&N.repliesStore.setFocusedReply(null);return}if(N.repliesStore.focusedReply?.id===v)return;let e=N.repliesStore.getPost(v);e?N.repliesStore.setFocusedReply(e):N.repliesStore.focusedReply&&N.repliesStore.setFocusedReply(null)},[v,L,N]),(0,o.useLayoutEffect)(()=>{let e=k.current;if(!e)return;let t=()=>{N.repliesStore.setContainerWidth(e.offsetWidth)};t();let s=new window.ResizeObserver(()=>{t()});return s.observe(e),()=>{s.disconnect()}},[N.repliesStore,k]),function(e,t){let{updateCommentCount:s,setLastReadCount:n}=(0,$.useCycloneCommentsContext)();(0,o.useEffect)(()=>(0,ek.reaction)(()=>e.externalRootStore.externalRoot?.replyCount,e=>{t&&void 0!==e&&(s(t,e,Date.now()),n(t,e))},{fireImmediately:!0}),[e.externalRootStore,t,s,n])}(N,l);let I=N.repliesStore.root?.id,R=!g,_=R&&b,A=R&&!!j?.profileURL,T=R&&!!p,M=R&&(0,eg.isUserStaff)(j);(0,o.useEffect)(()=>{"configure"!==C||M||y("comments")},[C,M]);let D=j?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:eI,children:"Signed in as"}),(0,t.jsx)("div",{className:eR,children:j.username})]}):w?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:eI,children:"Logging in"}),(0,t.jsxs)("div",{className:`${eR} _17njid58`,"aria-label":"Making sure you're you...",children:["Making sure you're you",(0,t.jsxs)("span",{className:"_17njid59","aria-hidden":"true",children:[(0,t.jsx)("span",{className:e_,children:"."}),(0,t.jsx)("span",{className:`${e_} _17njid5b`,children:"."}),(0,t.jsx)("span",{className:`${e_} _17njid5c`,children:"."})]})]})]}):null,z=D&&(0,t.jsx)("div",{className:"_17njid53",children:(0,t.jsx)("div",{className:"_17njid54",children:D})});return(0,t.jsx)("div",{ref:k,className:"_17njid50",children:(0,t.jsx)(W.CycloneWebsocketProvider,{serverURL:c,repliesStore:N.repliesStore,viewerID:j?.id,enabled:!g&&!!I,ignoreLiveReplies:!!v,children:(0,t.jsx)(eM,{communityOrigin:d,renderedCycloneCommunityId:m,viewer:j,showDiscussionsTab:_,showProfileTab:A,showSettingsTab:T,showConfigureTab:M,signedInElement:z,activeTab:C,setActiveTab:y,focusedCommentID:v,rootStore:N,draftScopeId:a})})})}),eM=(0,s.observer)(function({communityOrigin:e,renderedCycloneCommunityId:s,viewer:n,showDiscussionsTab:o,showProfileTab:r,showSettingsTab:a,showConfigureTab:u,signedInElement:m,activeTab:h,setActiveTab:p,focusedCommentID:x,rootStore:j,draftScopeId:f}){let w=n?.role==="ADMIN"||n?.role==="MODERATOR"&&!!Array.isArray(n.moderatorScopes)&&(0===n.moderatorScopes.length||!!s&&n.moderatorScopes.some(e=>e.communityID===s));return(0,t.jsx)(b.StoreProvider,{store:j,children:(0,t.jsxs)(eN.ContentLocationProvider,{location:eN.ContentLocation.ArticleBody,children:[w&&(0,t.jsx)("div",{className:"_17njid51",children:(0,t.jsx)(eS.default,{displayType:"secondary",href:"/moderate",rel:"noopener noreferrer",target:"_blank",text:"Moderate"})}),(0,t.jsxs)(i,{activeTab:h,onTabClick:p,className:"_17njid5d",children:[(0,t.jsx)(l,{tabID:"comments",className:eA,children:"Comments"}),o&&(0,t.jsx)(l,{tabID:"discussions",className:eA,children:"Discussions"}),r&&n?.profileURL&&(0,t.jsx)(l,{tabID:"profile",className:eA,href:(0,O.getRelativeURL)(`${n.profileURL}?tab=articleComments`,e),target:"_blank",rel:"noopener noreferrer",children:"My Profile"}),a&&(0,t.jsx)(l,{tabID:"settings",className:eA,href:"/account/preferences",children:"Settings"}),u&&(0,t.jsx)(l,{tabID:"configure",className:eA,children:"Configure"})]}),"configure"!==h&&m,(0,t.jsxs)(c,{activeTab:h,keepMounted:!0,children:[(0,t.jsx)(d,{tabID:"comments",children:x?(0,t.jsx)(ew,{}):(0,t.jsx)(eh,{draftScopeId:f})}),(0,t.jsx)(d,{tabID:"discussions",children:(0,t.jsx)(U,{})}),(0,t.jsx)(d,{tabID:"configure",children:(0,t.jsx)(R,{})})]})]})})});e.s(["CommentStream",0,e=>{let s=`${e.contentSource}:${e.canonicalCycloneCommunityId??""}:${(0,ey.normalizeCycloneStreamId)(e.friendlyID)}`;return(0,t.jsx)(eT,{...e},s)}],726105),e.i(756788);var eD=e.i(903573);e.s(["getIn5CoralCommentId",0,function(e){let t,s;return(0,eD.getCoralIdFromNode)((s=(t=e.chorus_entry_id?.trim())?parseInt(t,10):NaN,{nodeId:e.uuid,chorus
2Id:Number.isNaN(s)?null:s}))},"getIn5CycloneCommentCountId",0,function(e){return(0,ey.toCycloneCountId)({streamId:e.uuid,contentSource:"in5"})}],22211)}]); 3 4//# debugId=d938639c-1ae0-8e91-32db-8ba6e29cdbe4 5//# sourceMappingURL=1_gd1m98o3wi6.js.map
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.