(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7922],{56176:function(e){var t;t=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,o){var r=n.prototype,i=r.format;o.en.formats=e,r.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n,o,r=this.$locale().formats,s=(n=t,o=void 0===r?{}:r,n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})}));return i.call(this,s)}}},e.exports=t()},70592:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/posts/[slug]",function(){return n(39430)}])},32689:function(e,t,n){"use strict";n.d(t,{V:function(){return j}});var o=n(85893),r=n(67294),i=n(65984),s=n(39484),a=n(8207),l=n(95429),c=n(54410),d=n(24920),u=n(76556),m=n(63991),h=n(39332),p=n(8243),f=n(29425),g=n(19815),x=n(33482),v=n(11849),y=n(5921);let j=e=>{let{rootType:t,rootId:n,setNumComments:j}=e,_=(0,i.rZ)(),w=(0,s.X)(),{features:k}=(0,g.c)(),S=!!(null==k?void 0:k.comments),b=!!(null==k?void 0:k.comment_hyperlinks),C=(0,h.useSearchParams)(),[E,L]=(0,r.useState)(null),{comments:M,rootCommentId:T,numComments:D,changeRootComment:Y,gotoLastRootComment:N,addComment:P,deleteComment:B,likeComment:R,dislikeComment:Z,isCreateCommentLoading:I,isLoadingInitially:z}=(0,p.K)({rootId:n,rootType:t});return((0,x.B)(M.map(e=>({rootType:"comment",rootId:e.id}))),(0,r.useEffect)(()=>{(null==C?void 0:C.get("commentsFocused"))&&(null==E||E.scrollIntoView({behavior:"smooth",block:"start",inline:"start"}))},[C,E,z]),(0,r.useEffect)(()=>{j&&j(M.length)},[M.length,j]),S)?(0,o.jsxs)(a.K,{p:16,style:{backgroundColor:"dark"===w.colorScheme?_.colors.dark[8]:_.colors.gray[1],borderRadius:4},ref:e=>L(e),children:[(0,o.jsxs)(l.k,{align:"center",gap:4,children:[(0,o.jsx)(m.fu1,{size:24,style:{marginBottom:3}}),(0,o.jsxs)(c.x,{fz:"md",fw:"bold",my:"auto",children:[D," Comment",(0,f._x)(D)]})]}),(0,o.jsx)(v.X,{addComment:P,loading:I}),void 0!==T&&(0,o.jsx)(d.z,{variant:"light",onClick:N,children:"Back"}),z?(0,o.jsx)(l.k,{align:"center",justify:"center",children:(0,o.jsx)(u.a,{})}):M.filter(e=>void 0===T?!e.parent_comment_id:e.id===T).map(e=>(0,o.jsx)(y.s,{comment:e,comments:M,addComment:P,addCommentLoading:I,deleteComment:B,likeComment:R,dislikeComment:Z,changeRootComment:Y,hyperlinksEnabled:b},e.id))]}):(0,o.jsx)(o.Fragment,{})}},68273:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(85893),r=n(67294),i=n(1506);function s(e){let{height:t,width:n,style:s}=e,[a,l]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{let e=setTimeout(()=>{l(!1)},2e3);return()=>clearTimeout(e)},[]),(0,o.jsx)(i.O,{h:t,w:n,style:s,visible:a})}},8243:function(e,t,n){"use strict";n.d(t,{K:function(){return d}});var o=n(67294),r=n(96486),i=n.n(r),s=n(34762),a=n(45956),l=n(79014),c=n(81247);let d=e=>{let{rootId:t,rootType:n,realtime:r=!1,optimisticLoadPosition:d="beginning"}=e,{session:u,isAdmin:m}=(0,s.kP)(),{showLoginModal:h,showUsernameModal:p}=(0,a.o)(),{data:f=[],refetch:g,isLoading:x}=l.S.comments.findComments.useQuery({rootType:n,rootId:t});(0,c.n)({tableName:"comments",callback:()=>g(),filter:"root_id=eq.".concat(n,"-").concat(t),enabled:r});let[v,y]=(0,o.useState)([]),j=l.S.comments.createComment.useMutation(),_=l.S.comments.deleteComment.useMutation(),w=l.S.comments.likeComment.useMutation();return{rootCommentId:v[v.length-1],numComments:f.length,rootNavigationHistory:v,changeRootComment:e=>{y([...v,e])},gotoLastRootComment:()=>{v.pop(),y([...v])},addComment:(e,o,r)=>{var s,a;if(!(null==u?void 0:null===(s=u.user)||void 0===s?void 0:s.id)){h();return}if(!(null==u?void 0:null===(a=u.userProfile)||void 0===a?void 0:a.display_name)){p();return}o&&j.mutate({rootId:t,rootType:n,parentCommentId:e,content:o},{onSuccess:t=>{let n="beginning"===d;if(null!==e){let o=i().findIndex(f,{id:e});f.splice(n?o+1:f.length,0,t)}else n?f.unshift(t):f.push(t);r()},onError:()=>g()})},deleteComment:e=>{var t;((null==u?void 0:null===(t=u.user)||void 0===t?void 0:t.id)===e.author_id||m)&&(e.deleted=!0,e.author_id=void 0,e.user_profiles=void 0,_.mutate({id:e.id},{onError:()=>g()}))},likeComment:e=>{var t;if(!(null==u?void 0:null===(t=u.user)||void 0===t?void 0:t.id)){h();return}let n=1;!1===e.liked?n=2:!0===e.liked&&(n=-1);let o=!e.liked||null;e.score+=n,e.liked=o,w.mutate({commentId:e.id,liked:o},{onError:()=>g()})},dislikeComment:e=>{var t;if(!(null==u?void 0:null===(t=u.user)||void 0===t?void 0:t.id)){h();return}let n=-1;!0===e.liked?n=-2:!1===e.liked&&(n=1);let o=!1===e.liked&&null;e.score+=n,e.liked=o,w.mutate({commentId:e.id,liked:o},{onError:()=>g()})},comments:f,refetch:g,isCreateCommentLoading:j.isLoading||x,isLoadingInitially:x}}},19815:function(e,t,n){"use strict";n.d(t,{c:function(){return i}});var o=n(79014),r=n(38751);let i=()=>{let{data:e,...t}=(0,r.J)("/featurestatuses",()=>o.b.cached.features.fetchFeatures.query());return{...t,features:e}}},33482:function(e,t,n){"use strict";n.d(t,{B:function(){return i}});var o=n(67294),r=n(79014);let i=e=>{let t=r.S.useUtils(),n=r.S.reactions.fetchReactionsForRoots.useMutation();(0,o.useEffect)(()=>{n.mutate({roots:e},{onSuccess:e=>{e.forEach((e,n)=>{t.reactions.fetchReactionsForRoot.setData({rootId:n.rootId,rootType:n.rootType},e)})}})},[e.length])}},26398:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var o=n(85893),r=n(41664),i=n.n(r),s=n(43078),a=n(28008),l=n(54410),c=n(356),d=n(24920);let u=(0,n(82922).k)(e=>({root:{paddingTop:80,paddingBottom:80},label:{textAlign:"center",fontWeight:900,fontSize:160,lineHeight:1,marginBottom:e.spacing.xl,color:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[2]},title:{fontFamily:"Greycliff CF, ".concat(e.fontFamily),textAlign:"center",fontWeight:900,fontSize:32},description:{maxWidth:500,margin:"auto",marginTop:e.spacing.xl,marginBottom:e.spacing.xl}}));function m(){let{classes:{root:e,label:t,title:n,description:r}}=u();return(0,o.jsxs)(s.W,{className:e,children:[(0,o.jsx)("div",{className:t,children:"403"}),(0,o.jsx)(a.D,{className:n,children:"You have found a forbidden place."}),(0,o.jsx)(l.x,{color:"dimmed",size:"lg",ta:"center",className:r,children:"Unfortunately, this is only a 403 page. If you suspect you should have access to this route, please contact an administrator"}),(0,o.jsx)(i(),{href:"/",passHref:!0,children:(0,o.jsx)(c.Z,{justify:"center",children:(0,o.jsx)(d.z,{variant:"subtle",size:"md",children:"Take me back to home page"})})})]})}},39430:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return A},default:function(){return H}});var o=n(85893),r=n(9008),i=n.n(r),s=n(95429),a=n(67294),l=n(20745),c=n(65984),d=n(39484),u=n(54410),m=n(24710),h=n(38878),p=n(24920),f=n(28008),g=n(356),x=n(90512),v=n(90987),y=n(43362),j={root:"m_849cf0da"};let _={underline:"hover"},w=(0,y.b)((e,t)=>{let{underline:n,className:r,unstyled:i,mod:s,...a}=(0,v.w)("Anchor",_,e);return(0,o.jsx)(u.x,{component:"a",ref:t,className:(0,x.Z)({[j.root]:!i},r),...a,mod:[{underline:n},s],__staticSelector:"Anchor",unstyled:i})});w.classes=j,w.displayName="@mantine/core/Anchor";var k=n(49746),S=n(63991),b=n(41664),C=n.n(b),E=n(27484),L=n.n(E),M=n(34762),T=n(78964),D=n(11163),Y=n(68273);function N(){let e=(0,a.useRef)(null),t=(0,T.a)("(max-width: ".concat(1024,"px)")),[n,r]=(0,a.useState)(!1),i=(0,D.useRouter)(),l=()=>{let t=e.current;if(t&&window.top){window.top.__vm_add=window.top.__vm_add||[],window.top.__vm_add.push(t);let e=()=>{t.children.length>0&&r(!0)},n=new MutationObserver(t=>{t.forEach(t=>{"childList"===t.type&&e()})});return n.observe(t,{childList:!0,subtree:!0}),e(),()=>{window.top&&(window.top.__vm_remove=window.top.__vm_remove||[],window.top.__vm_remove.push(t)),n.disconnect()}}};return(0,a.useEffect)(()=>{let e=l();return()=>{e&&e()}},[i.pathname]),(0,o.jsx)(s.k,{style:{alignItems:"center",justifyContent:"center"},children:t?(0,o.jsxs)("div",{style:{position:"relative",margin:"auto"},children:[!n&&(0,o.jsx)(Y.Z,{height:100,width:320}),(0,o.jsx)("div",{style:{display:n?"block":"none",width:320,height:100},className:"vm-placement","data-id":"657186fe4ecfa2596a09d57d",ref:e})]}):(0,o.jsxs)("div",{style:{position:"relative",margin:"auto"},children:[!n&&(0,o.jsx)(Y.Z,{height:250,width:300}),(0,o.jsx)("div",{style:{display:n?"block":"none",width:300,height:250},className:"vm-placement","data-id":"657186d14ecfa2596a09d57b",ref:e})]})})}var P=n(52056),B=n(27896);let R=n(56176);function Z(e){let{post:t}=e,n=(0,c.rZ)(),r=(0,d.X)(),{isAdmin:i,isEditor:x}=(0,M.kP)();if((0,a.useEffect)(()=>{let e;let t=[];return e=setTimeout(()=>{document.querySelectorAll("*").forEach(e=>{Array.from(e.childNodes).forEach(e=>{if(3===e.nodeType){var n,r;if(null===(n=e.nodeValue)||void 0===n?void 0:n.includes("AD GOES HERE")){let n=document.createElement("div");n.classList.add("ad-container"),e.replaceWith(n);let r=(0,l.createRoot)(n);r.render((0,o.jsx)(N,{})),t.push(r)}else if(null===(r=e.nodeValue)||void 0===r?void 0:r.includes("TAKEOVER GOES HERE")){let n=document.createElement("div");n.classList.add("takeover-ad-container"),e.replaceWith(n);let r=(0,l.createRoot)(n);r.render((0,o.jsx)(B.Z,{placementId:"657186fe4ecfa2596a09d57d",hybridBanner:!0})),t.push(r)}}})})},1e3),()=>{clearTimeout(e),t.forEach(e=>e.unmount())}},[null==t?void 0:t.content]),!t)return(0,o.jsx)(u.x,{children:"Sorry, there was a problem with finding this post"});let v=t.post_tags_tag.map(e=>(0,o.jsx)("div",{children:(0,o.jsx)(C(),{href:"/news/tag/".concat(e.post_tags.tag_slug),passHref:!0,children:(0,o.jsx)(m.C,{component:"a",variant:"dark"===r.colorScheme?"light":"outline",color:"blue",style:{cursor:"pointer"},children:e.post_tags.tag_name})})},e.post_tags.id)),y=t.post_categories_category.map(e=>(0,o.jsx)("div",{children:(0,o.jsx)(C(),{href:"/news/category/".concat(e.post_categories.category_slug),passHref:!0,children:(0,o.jsx)(m.C,{component:"a",variant:"dark"===r.colorScheme?"light":"outline",style:{cursor:"pointer"},children:e.post_categories.category_name})})},e.post_categories.id)),j=t.users.user_profiles;return(0,o.jsxs)(h.Z,{radius:"md",style:{backgroundColor:"dark"===r.colorScheme?n.colors.dark[8]:n.colors.gray[1]},children:[(0,o.jsx)(C(),{href:"/news",style:{color:"dark"===r.colorScheme?"white":"black",textDecoration:"inherit",width:"100%"},children:(0,o.jsxs)(p.z,{w:"100%",variant:"light",color:"gray",style:{boxShadow:"0px 0px 5px 0px rgba(0,0,0,0.25)",color:"dark"===r.colorScheme?"white":"black"},children:[(0,o.jsx)(S.D6v,{})," News"]})}),(0,o.jsxs)(h.Z.Section,{inheritPadding:!0,py:"xs",children:[(0,o.jsxs)(s.k,{justify:"space-between",children:[(0,o.jsx)(f.D,{order:1,children:t.title}),(i||x)&&(0,o.jsx)(C(),{href:"/admin/posts/".concat(t.slug,"/edit"),children:(0,o.jsx)(p.z,{fz:"xl",children:"Edit"})})]}),(0,o.jsxs)(s.k,{justify:"space-between",children:[(0,o.jsxs)(g.Z,{gap:"xs",wrap:"nowrap",children:[(0,o.jsx)(u.x,{children:(0,o.jsx)(C(),{href:"/profile/".concat(null==j?void 0:j.id),passHref:!0,children:(0,o.jsx)(w,{children:(null==j?void 0:j.display_name)||""})})}),(0,o.jsx)(u.x,{children:"•"}),(0,o.jsx)(u.x,{children:L()(t.published_at).format("LLL")})]}),(0,o.jsx)(P.Z,{rootType:"post",rootId:t.id,size:20,iconSize:13.6,showDefaultReactions:!1})]})]}),(0,o.jsx)(h.Z.Section,{withBorder:!0,inheritPadding:!0,py:"xs",children:(0,o.jsx)(k.l,{children:(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:t.content}})})}),(0,o.jsx)(h.Z.Section,{withBorder:!0,inheritPadding:!0,py:"xs",children:(0,o.jsxs)(g.Z,{children:[y," ",v]})})]})}L().extend(R);var I=n(32689),z=n(26398),A=!0;function H(e){let{post:t}=e,n=(null==t?void 0:t.title)?"".concat(null==t?void 0:t.title," | Call of Duty League News | Breaking Point"):"Call of Duty League News | Breaking Point",r="Get all the latest news, including match scores, statistics, and more at Breaking Point, the premier destination for Call of Duty esports news.",a="Call of Duty, Call of Duty League, Breaking Point, CDL, match, scores, statistics, esports, news, articles, esports, ".concat(null==t?void 0:t.title,", article"),{isAdmin:l,isEditor:c}=(0,M.kP)();return t&&("publish"===t.post_status||l&&c)?(0,o.jsxs)(s.k,{direction:"column",gap:8,children:[(0,o.jsxs)(i(),{children:[(0,o.jsx)("title",{children:n}),(0,o.jsx)("meta",{name:"description",content:r}),(0,o.jsx)("meta",{name:"keywords",content:a}),(0,o.jsx)("meta",{property:"og:title",content:n}),(0,o.jsx)("meta",{property:"og:description",content:r}),(0,o.jsx)("meta",{property:"og:image",content:(null==t?void 0:t.image)||"/default-og-image.jpg"}),(0,o.jsx)("meta",{property:"og:type",content:"website"}),(0,o.jsx)("meta",{property:"og:site_name",content:"Breaking Point"}),(0,o.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,o.jsx)("meta",{name:"twitter:site",content:"@GGBreakingPoint"}),(0,o.jsx)("meta",{name:"twitter:title",content:n}),(0,o.jsx)("meta",{name:"twitter:description",content:r}),(0,o.jsx)("meta",{name:"twitter:image",content:(null==t?void 0:t.image)||"/default-og-image.jpg"})]}),(0,o.jsx)(Z,{post:t}),t&&(0,o.jsx)(I.V,{rootType:"post",rootId:t.id})]}):(0,o.jsx)(z.default,{})}},9008:function(e,t,n){e.exports=n(37219)},49746:function(e,t,n){"use strict";n.d(t,{l:function(){return d}});var o=n(85893);n(67294);var r=n(90987),i=n(46976),s=n(58278),a=n(9535),l={root:"m_d6493fad"};let c={},d=(0,a.d5)((e,t)=>{let n=(0,r.w)("TypographyStylesProvider",c,e),{classNames:a,className:d,style:u,styles:m,unstyled:h,...p}=n,f=(0,i.y)({name:"TypographyStylesProvider",classes:l,props:n,className:d,style:u,classNames:a,styles:m,unstyled:h});return(0,o.jsx)(s.x,{ref:t,...f("root"),...p})});d.classes=l,d.displayName="@mantine/core/TypographyStylesProvider"}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=70592)}),_N_E=e.O()}]);