(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{48312:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return a(62129)}])},19606:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var a in t)Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}(t,{default:function(){return o},noSSR:function(){return i}});let n=a(38754);a(85893),a(67294);let r=n._(a(6119));function l(e){return{default:(null==e?void 0:e.default)||e}}function i(e,t){return delete t.webpack,delete t.modules,e(t)}function o(e,t){let a=r.default,n={loading:e=>{let{error:t,isLoading:a,pastDelay:n}=e;return null}};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e});let o=(n={...n,...t}).loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?a({...n,loader:()=>null!=o?o().then(l):Promise.resolve(l(()=>null))}):(delete n.webpack,delete n.modules,i(a,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16725:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});let n=a(38754)._(a(67294)).default.createContext(null)},6119:function(e,t,a){"use strict";/** @copyright (c) 2017-present James Kyle <me@thejameskyle.com> MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE */Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let n=a(38754)._(a(67294)),r=a(16725),l=[],i=[],o=!1;function s(e){let t=e(),a={loading:!0,loaded:null,error:null};return a.promise=t.then(e=>(a.loading=!1,a.loaded=e,e)).catch(e=>{throw a.loading=!1,a.error=e,e}),a}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function u(e){return function(e,t){let a=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),l=null;function s(){if(!l){let t=new d(e,a);l={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return l.promise()}if(!o){let e=a.webpack?a.webpack():a.modules;e&&i.push(t=>{for(let a of e)if(t.includes(a))return s()})}function u(e,t){!function(){s();let e=n.default.useContext(r.LoadableContext);e&&Array.isArray(a.modules)&&a.modules.forEach(t=>{e(t)})}();let i=n.default.useSyncExternalStore(l.subscribe,l.getCurrentValue,l.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:l.retry}),[]),n.default.useMemo(()=>{var t;return i.loading||i.error?n.default.createElement(a.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:l.retry}):i.loaded?n.default.createElement((t=i.loaded)&&t.default?t.default:t,e):null},[e,i])}return u.preload=()=>s(),u.displayName="LoadableComponent",n.default.forwardRef(u)}(s,e)}function c(e,t){let a=[];for(;e.length;){let n=e.pop();a.push(n(t))}return Promise.all(a).then(()=>{if(e.length)return c(e,t)})}u.preloadAll=()=>new Promise((e,t)=>{c(l).then(e,t)}),u.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let a=()=>(o=!0,t());c(i,e).then(a,a)})),window.__NEXT_PRELOADREADY=u.preloadReady;let b=u},14525:function(e,t,a){"use strict";var n=a(67294);class r extends n.Component{static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.error("Uncaught error:",e,t)}render(){return this.state.hasError?null:this.props.children}constructor(e){super(e),this.state={hasError:!1}}}t.Z=r},60078:function(e,t,a){"use strict";a.d(t,{D7:function(){return h},ZP:function(){return _}});var n=a(85893);a(67294);var r=a(8207),l=a(5152),i=a.n(l),o=a(41664),s=a.n(o),d=a(25675),u=a.n(d),c=a(82922),b=a(14525);let p={week_mvp_widget:i()(()=>a.e(7974).then(a.bind(a,37974)),{loadableGenerated:{webpack:()=>[37974]}}),event_links_widget:i()(()=>a.e(5869).then(a.bind(a,85869)),{loadableGenerated:{webpack:()=>[85869]}}),power_rankings_widget:i()(()=>a.e(8947).then(a.bind(a,18947)),{loadableGenerated:{webpack:()=>[18947]}}),youtube_videos_widget:i()(()=>a.e(4918).then(a.bind(a,74918)),{loadableGenerated:{webpack:()=>[74918]}}),quick_links_widget:i()(()=>a.e(9171).then(a.bind(a,49171)),{loadableGenerated:{webpack:()=>[49171]}}),news_carousel:i()(()=>Promise.all([a.e(8330),a.e(9111),a.e(6891),a.e(6342)]).then(a.bind(a,26342)),{loadableGenerated:{webpack:()=>[26342]}}),ad_card:e=>{let{image_url:t,link:a}=e;return a&&t?(0,n.jsx)(s(),{passHref:!0,href:a,target:"_blank",rel:"noopener noreferrer",style:{position:"relative",width:"100%",lineHeight:0},children:(0,n.jsx)(u(),{priority:!0,src:t,alt:"takeover",width:0,height:0,sizes:"100vw",style:{width:"100%",height:"auto",borderRadius:4},quality:100})}):null},scoreboard_tombstone:i()(()=>a.e(6194).then(a.bind(a,96194)),{loadableGenerated:{webpack:()=>[96194]}}),match_recap_tombstone:i()(()=>Promise.all([a.e(2843),a.e(3152)]).then(a.bind(a,41818)),{loadableGenerated:{webpack:()=>[41818]}}),poll_tombstone:i()(()=>Promise.all([a.e(2331),a.e(8438),a.e(3143)]).then(a.bind(a,73143)),{loadableGenerated:{webpack:()=>[73143]}}),team_news_tombstone:i()(()=>a.e(8344).then(a.bind(a,68344)),{loadableGenerated:{webpack:()=>[68344]}}),player_news_tombstone:i()(()=>a.e(8635).then(a.bind(a,80075)),{loadableGenerated:{webpack:()=>[80075]}}),stat_leaders_tombstone:i()(()=>a.e(4306).then(a.bind(a,54306)),{loadableGenerated:{webpack:()=>[54306]}}),news_tombstone:i()(()=>a.e(3519).then(a.bind(a,13519)),{loadableGenerated:{webpack:()=>[13519]}}),trivia_tombstone:i()(()=>Promise.all([a.e(2331),a.e(5109)]).then(a.bind(a,95109)),{loadableGenerated:{webpack:()=>[95109]}}),standings_tombstone:i()(()=>a.e(2554).then(a.bind(a,52554)),{loadableGenerated:{webpack:()=>[52554]}}),top_headlines_widget:i()(()=>a.e(8283).then(a.bind(a,18283)),{loadableGenerated:{webpack:()=>[18283]}}),player_transfer_widget:i()(()=>a.e(5583).then(a.bind(a,75583)),{loadableGenerated:{webpack:()=>[75583]}}),popular_players_widget:i()(()=>a.e(2555).then(a.bind(a,12555)),{loadableGenerated:{webpack:()=>[12555]}}),fantasy_widget:i()(()=>Promise.all([a.e(3249),a.e(8188),a.e(9302),a.e(6788),a.e(2440)]).then(a.bind(a,52440)),{loadableGenerated:{webpack:()=>[52440]}}),socials_widget:i()(()=>a.e(3689).then(a.bind(a,13689)),{loadableGenerated:{webpack:()=>[13689]}}),ad:i()(()=>Promise.resolve().then(a.bind(a,27896)),{loadableGenerated:{webpack:()=>[27896]}})},h={week_mvp_widget:i()(()=>a.e(7974).then(a.bind(a,37974)),{loadableGenerated:{webpack:()=>[37974]},ssr:!1}),event_links_widget:i()(()=>a.e(5869).then(a.bind(a,85869)),{loadableGenerated:{webpack:()=>[85869]},ssr:!1}),power_rankings_widget:i()(()=>a.e(8947).then(a.bind(a,18947)),{loadableGenerated:{webpack:()=>[18947]},ssr:!1}),youtube_videos_widget:i()(()=>a.e(4918).then(a.bind(a,74918)),{loadableGenerated:{webpack:()=>[74918]},ssr:!1}),quick_links_widget:i()(()=>a.e(9171).then(a.bind(a,49171)),{loadableGenerated:{webpack:()=>[49171]},ssr:!1}),news_carousel:i()(()=>Promise.all([a.e(8330),a.e(9111),a.e(6891),a.e(6342)]).then(a.bind(a,26342)),{loadableGenerated:{webpack:()=>[26342]},ssr:!1}),ad_card:e=>{let{image_url:t,link:a}=e;return a&&t?(0,n.jsx)(s(),{passHref:!0,href:a,target:"_blank",rel:"noopener noreferrer",style:{position:"relative",width:"100%",lineHeight:0},children:(0,n.jsx)(u(),{priority:!0,src:t,alt:"takeover",width:0,height:0,sizes:"100vw",style:{width:"100%",height:"auto",borderRadius:4},quality:100})}):null},scoreboard_tombstone:i()(()=>a.e(6194).then(a.bind(a,96194)),{loadableGenerated:{webpack:()=>[96194]},ssr:!1}),match_recap_tombstone:i()(()=>Promise.all([a.e(2843),a.e(3152)]).then(a.bind(a,41818)),{loadableGenerated:{webpack:()=>[41818]},ssr:!1}),poll_tombstone:i()(()=>Promise.all([a.e(2331),a.e(8438),a.e(3143)]).then(a.bind(a,73143)),{loadableGenerated:{webpack:()=>[73143]},ssr:!1}),team_news_tombstone:i()(()=>a.e(8344).then(a.bind(a,68344)),{loadableGenerated:{webpack:()=>[68344]},ssr:!1}),player_news_tombstone:i()(()=>a.e(8635).then(a.bind(a,80075)),{loadableGenerated:{webpack:()=>[80075]},ssr:!1}),stat_leaders_tombstone:i()(()=>a.e(4306).then(a.bind(a,54306)),{loadableGenerated:{webpack:()=>[54306]},ssr:!1}),news_tombstone:i()(()=>a.e(3519).then(a.bind(a,13519)),{loadableGenerated:{webpack:()=>[13519]},ssr:!1}),trivia_tombstone:i()(()=>Promise.all([a.e(2331),a.e(5109)]).then(a.bind(a,95109)),{loadableGenerated:{webpack:()=>[95109]},ssr:!1}),standings_tombstone:i()(()=>a.e(2554).then(a.bind(a,52554)),{loadableGenerated:{webpack:()=>[52554]},ssr:!1}),top_headlines_widget:i()(()=>a.e(8283).then(a.bind(a,18283)),{loadableGenerated:{webpack:()=>[18283]},ssr:!1}),player_transfer_widget:i()(()=>a.e(5583).then(a.bind(a,75583)),{loadableGenerated:{webpack:()=>[75583]},ssr:!1}),popular_players_widget:i()(()=>a.e(2555).then(a.bind(a,12555)),{loadableGenerated:{webpack:()=>[12555]},ssr:!1}),fantasy_widget:i()(()=>Promise.all([a.e(3249),a.e(8188),a.e(9302),a.e(6788),a.e(2440)]).then(a.bind(a,52440)),{loadableGenerated:{webpack:()=>[52440]},ssr:!1}),socials_widget:i()(()=>a.e(3689).then(a.bind(a,13689)),{loadableGenerated:{webpack:()=>[13689]},ssr:!1}),ad:i()(()=>Promise.resolve().then(a.bind(a,27896)),{loadableGenerated:{webpack:()=>[27896]},ssr:!1})},m=(0,c.k)(()=>({grid:{display:"grid",width:"100%",gap:16,gridTemplateColumns:"calc(25% - 16px) 50% calc(25% - 16px)","@media (max-width: 1280px)":{gridTemplateColumns:"100%"}},gridItem1:{order:1,"@media (max-width: 1280px)":{order:2}},gridItem2:{order:2,"@media (max-width: 1280px)":{order:1}},gridItem3:{order:3,"@media (max-width: 1280px)":{order:3}},verticalWrapper:{display:"flex",flexDirection:"column",gap:16,justifyContent:"start"}}));function _(e){let{layout:t}=e,{classes:a}=m();return(0,n.jsx)("div",{className:a.grid,children:Object.keys(t).map((e,a)=>(0,n.jsx)("div",{className:"classes.gridItem".concat(a+1),children:(0,n.jsx)(r.K,{gap:1===a?8:16,children:t[e].map((e,t)=>{let a=p[e.component];return a?(0,n.jsx)(b.Z,{children:(0,n.jsx)(a,{...e.props||{}})},t):(console.log('Component "'.concat(e.component,'" is not registered.')),null)})})},a))})}},68273:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}});var n=a(85893),r=a(67294),l=a(1506);function i(e){let{height:t,width:a,style:i}=e,[o,s]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{let e=setTimeout(()=>{s(!1)},2e3);return()=>clearTimeout(e)},[]),(0,n.jsx)(l.O,{h:t,w:a,style:i,visible:o})}},62129:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return y},default:function(){return x}});var n=a(85893),r=a(78964),l=a(9008),i=a.n(l),o=a(95429),s=a(15345),d=a(67294),u=a(36281);async function c(){let e=new Date().toISOString();return await u.OQ.from("takeovers").select("*").eq("is_active",!0).lte("start_datetime",e).gte("end_datetime",e).order("start_datetime",{ascending:!0}).limit(1)}let b=()=>{let[e,t]=(0,d.useState)();return(0,d.useEffect)(()=>{let e=async()=>{let{data:e}=await c();e&&t(e[0])},a=u.OQ.channel("takeovers").on("postgres_changes",{event:"*",schema:"public",table:"takeovers"},t=>{console.log("Change received!",t),e()}).subscribe();return e(),()=>{u.OQ.removeChannel(a)}},[]),e};var p=a(25675),h=a.n(p),m=a(41664),_=a.n(m),w=a(68273);function f(e){let{takeoverLink:t,takeoverImage:a,isSide:r,isTop:l}=e,[i,o]=(0,d.useState)(!1);return((0,d.useEffect)(()=>{{let e=new window.Image;e.src=a,e.onload=()=>o(!0)}},[a]),r)?(0,n.jsx)("div",{style:{position:"relative",minHeight:25,aspectRatio:"22/63"},children:(0,n.jsxs)(_(),{href:t,passHref:!0,target:"_blank",children:[!i&&(0,n.jsx)(w.Z,{style:{width:"100%",borderRadius:4,aspectRatio:"22/63"}}),i&&(0,n.jsx)(h(),{priority:!0,src:a,alt:"takeover",width:0,height:0,sizes:"100vw",style:{width:"100%",height:"auto",borderRadius:4,display:i?"block":"none"},quality:100,onLoad:()=>o(!0)})]})}):l?(0,n.jsx)("div",{style:{position:"relative",width:"100%",aspectRatio:"1080/100",maxWidth:760,marginRight:"auto"},children:(0,n.jsx)(_(),{href:t,passHref:!0,target:"_blank",children:(0,n.jsx)(h(),{priority:!0,src:a,alt:"takeover",width:0,height:0,sizes:"100vw",style:{width:"100%",height:"auto",borderRadius:4,display:i?"block":"none"},quality:100})})}):(0,n.jsx)("div",{style:{position:"relative",minHeight:25},children:(0,n.jsx)(_(),{href:t,passHref:!0,target:"_blank",children:(0,n.jsx)(h(),{priority:!0,src:a,alt:"takeover",width:0,height:0,sizes:"100vw",style:{width:"100%",height:"auto",borderRadius:4,display:i?"block":"none"},quality:100})})})}var g=a(41990),k=a(60078),y=!0;function x(e){let{template:t,isFallback:a,fallbackError:l}=e,d=(0,r.a)("(max-width: ".concat(1280,"px)")),u=(0,r.a)("(max-width: ".concat(1280,"px)")),c=b();return a&&console.log("DISPLAYING FALLBACK TEMPLATE: ",l),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i(),{children:[(0,n.jsx)("title",{children:"Breaking Point"}),(0,n.jsx)("meta",{name:"description",content:"The Hub of Competitive Call of Duty & #CDL2024 | Stats\uD83D\uDCCA, News\uD83D\uDDDE️, & More"}),(0,n.jsx)("meta",{property:"og:title",content:"Breaking Point: Competitive Call of Duty Forum"}),(0,n.jsx)("meta",{property:"og:description",content:"Stay ahead in the world of Call of Duty eSports with the latest news, stats, and updates on CDL 2024 and CDL 2025."}),(0,n.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,n.jsx)("meta",{property:"og:image",content:"/BPFlatLogoDark.png"}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),(0,n.jsx)("meta",{property:"og:site_name",content:"Breaking Point"}),(0,n.jsx)("meta",{property:"og:url",content:"https://www.breakingpoint.gg"}),(0,n.jsx)("link",{rel:"canonical",href:"https://www.breakingpoint.gg"}),(0,n.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,n.jsx)("meta",{name:"twitter:site",content:"@GGBreakingPoint"})]}),d&&(0,n.jsx)(s.h,{showAnyway:!0}),(0,n.jsx)(g.Z,{children:(0,n.jsxs)(o.k,{direction:"column",w:"100%",gap:16,children:[c&&c.desktop_header&&c.link&&(0,n.jsx)(f,{takeoverImage:c.desktop_header,takeoverLink:c.link}),(0,n.jsx)(k.ZP,{layout:u?t.mobile_structure:t.desktop_structure})]})})]})}},5152:function(e,t,a){e.exports=a(19606)},9008:function(e,t,a){e.exports=a(37219)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=48312)}),_N_E=e.O()}]);