PageSourceSearch

https://cnbc.africa/_next/static/chunks/pages/live-20e71e53c30e813b.js

js cnbc.africa collected 2026-09-30 10:07:22 UTC 13,921 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9154],{14634:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/live",function(){return n(25713)}])},12458:function(e,t,n){"use strict";n.d(t,{Z:function(){return i.Z}});var i=n(46237)},38660:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var i=n(85893),r=n(9008),a=n.n(r),o=n(83613);function s(e){var t="string"==typeof e?e:null==e?void 0:e.src;if(t)try{var n=new URL(t,o.ZP.url);return/^https?:$/.test(n.protocol)?n.toString():void 0}catch(i){return}}function c(e){var t=e.seo,n=void 0===t?{}:t,r=n.article,o=n.canonical,c=n.description,l=n.keywords,d=n.og,u=void 0===d?{}:d,m=n.robots,p=n.title,g=n.twitter,v=void 0===g?{}:g,h=s(u.imageUrl),f=s(u.imageSecureUrl)||h,x=s(v.imageUrl)||h;return(0,i.jsxs)(a(),{children:[p&&(0,i.jsx)("title",{children:p}),c&&(0,i.jsx)("meta",{name:"description",content:c}),o&&(0,i.jsx)("link",{rel:"canonical",href:o}),m&&(0,i.jsx)("meta",{name:"robots",content:m}),l&&(0,i.jsx)("meta",{name:"keywords",content:l}),l&&(0,i.jsx)("meta",{name:"news_keywords",content:l}),(u.title||p)&&(0,i.jsx)("meta",{property:"og:title",content:u.title||p}),(u.description||c)&&(0,i.jsx)("meta",{property:"og:description",content:u.description||c}),(u.url||o)&&(0,i.jsx)("meta",{property:"og:url",content:u.url||o}),u.type&&(0,i.jsx)("meta",{property:"og:type",content:u.type}),u.siteName&&(0,i.jsx)("meta",{property:"og:site_name",content:u.siteName}),h&&(0,i.jsx)("meta",{property:"og:image",content:h}),f&&(0,i.jsx)("meta",{property:"og:image:secure_url",content:f}),u.imageWidth&&(0,i.jsx)("meta",{property:"og:image:width",content:u.imageWidth}),u.imageHeight&&(0,i.jsx)("meta",{property:"og:image:height",content:u.imageHeight}),v.cardType&&(0,i.jsx)("meta",{name:"twitter:card",content:v.cardType}),v.username&&(0,i.jsx)("meta",{name:"twitter:site",content:v.username}),v.username&&(0,i.jsx)("meta",{name:"twitter:creator",content:v.username}),(v.title||u.title||p)&&(0,i.jsx)("meta",{name:"twitter:title",content:v.title||u.title||p}),(v.description||u.description||c)&&(0,i.jsx)("meta",{name:"twitter:description",content:v.description||u.description||c}),x&&(0,i.jsx)("meta",{name:"twitter:image",content:x}),(null==r?void 0:r.author)&&(0,i.jsx)("meta",{property:"article:author",content:r.author}),(null==r?void 0:r.publisher)&&(0,i.jsx)("meta",{property:"article:publisher",content:r.publisher}),(null==r?void 0:r.publishedTime)&&(0,i.jsx)("meta",{property:"article:published_time",content:r.publishedTime}),(null==r?void 0:r.modifiedTime)&&(0,i.jsx)("meta",{property:"article:modified_time",content:r.modifiedTime})]})}},25657:function(e,t,n){"use strict";var i=n(85893),r=n(6903),a=n(9800),o=function(e){var t=e.name;return(0,i.jsx)(r.Ad,{id:a.J[t],width:"auto",height:"auto",style:{padding:"12px"}})};t.Z=o},75684:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var i=n(47568),r=n(97582),a=n(85893),o=n(60357),s=n.n(o),c=n(67294),l=n(41664),d=n.n(l),u=n(83613),m=function(){var e=(0,c.useState)([]),t=e[0],n=e[1],o=(0,c.useState)(!0),l=o[0],m=o[1],p=(0,c.useState)(null),g=p[0],v=p[1];(0,c.useEffect)(function(){var e;(e=(0,i.Z)(function(){var e,t,i,a,o;return(0,r.__generator)(this,function(e){switch(e.label){case 0:return e.trys.push([0,3,4,5]),m(!0),[4,fetch((0,u.TZ)(u.ZP.API_endpoints.events))];case 1:return[4,e.sent().json()];case 2:return t=e.sent(),i=new Date,n(a=t.filter(function(e){return new Date(e.startDate)>=i}).sort(function(e,t){return new Date(e.startDate)-new Date(t.startDate)}).slice(0,3)),v(null),[3,5];case 3:return o=e.sent(),console.error("Error fetching events:",o),v("Failed to load events"),[3,5];case 4:return m(!1),[7];case 5:return[2]}})}),function(){return e.apply(this,arguments)})()},[]);var h=(0,a.jsx)(s(),{id:"bda3169ed2ce5880",children:".upcoming-events-widget{width:100%;margin-bottom:1.5rem}.upcoming-events-widget .upcoming-events-container{background-color:#fff;padding:10px 14px 14px;color:#212424}.upcoming-events-widget .widget-title{font-size:18px;font-weight:900;text-transform:uppercase;color:#002f6c;letter-spacing:.44px;margin:0 0 8px;text-align:left;border-top:6px solid#002f6c;padding-top:6px}.upcoming-events-widget .events-list{margin-bottom:8px}.upcoming-events-widget .event-content{padding:2px 0 8px}.upcoming-events-widget .event-date{font-size:11px;color:#747474;font-weight:700;text-transform:uppercase;letter-spacing:1.2px;margin-bottom:2px}.upcoming-events-widget .event-title{font-size:16px;font-weight:700;color:#212424;line-height:1.25;margin:0 0 2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.upcoming-events-widget .event-title-link{color:inherit;text-decoration:none}.upcoming-events-widget .event-title-link:hover{color:#005594}.upcoming-events-widget .event-location{font-size:13px;color:#747474;margin-bottom:0;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.upcoming-events-widget .event-divider{height:1px;background-color:#e2e2e2;margin:0 0 8px}.upcoming-events-widget .view-all-events{display:inline-block;color:#005594;font-size:13px;font-weight:700;text-decoration:none}.upcoming-events-widget .view-all-events:hover{color:#002f6c;text-decoration:underline}.upcoming-events-widget .widget-status-text{font-size:13px;color:#747474;margin:0}.upcoming-events-widget .loading-state{padding:.5rem 0}@media(max-width:768px){.upcoming-events-widget{margin-top:1.5rem;margin-bottom:2rem}}"});return l?(0,a.jsxs)("div",{className:"upcoming-events-widget",children:[(0,a.jsxs)("div",{className:"upcoming-events-container",children:[(0,a.jsx)("h3",{className:"widget-title",children:"Upcoming Events"}),(0,a.jsx)("div",{className:"loading-state",children:(0,a.jsxs)("div",{className:"animate-pulse",children:[(0,a.jsx)("div",{className:"h-4 bg-gray-200 mb-2"}),(0,a.jsx)("div",{className:"h-3 bg-gray-200 mb-4"}),(0,a.jsx)("div",{className:"h-4 bg-gray-200 mb-2"}),(0,a.jsx)("div",{className:"h-3 bg-gray-200"})]})})]}),h]}):g?(0,a.jsxs)("div",{className:"upcoming-events-widget",children:[(0,a.jsxs)("div",{className:"upcoming-events-container",children:[(0,a.jsx)("h3",{className:"widget-title",children:"Upcoming Events"}),(0,a.jsx)("p",{className:"widget-status-text",children:g})]}),h]}):0===t.length?(0,a.jsxs)("div",{className:"upcoming-events-widget",children:[(0,a.jsxs)("div",{className:"upcoming-events-container",children:[(0,a.jsx)("h3",{className:"widget-title",children:"Upcoming Events"}),(0,a.jsx)("p",{className:"widget-status-text",children:"No upcoming events at this time."})]}),h]}):(0,a.jsxs)("div",{className:"upcoming-events-widget",children:[(0,a.jsxs)("div",{className:"upcoming-events-container",children:[(0,a.jsx)("h3",{className:"widget-title",children:"Upcoming Events"}),(0,a.jsx)("div",{className:"events-list",children:t.map(function(e,n){var i,r=(e.location||"").trim(),o=(e.eventType||"").trim(),s=r&&o?"".concat(r," | ").concat(o):r||o||"";return(0,a.jsxs)("div",{className:"event-item",children:[(0,a.jsxs)("div",{className:"event-content",children:[(0,a.jsx)("div",{className:"event-date",children:(i=e.startDate,new Date(i).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}))}),(0,a.jsx)("h4",{className:"event-title",children:(0,a.jsx)(d(),{href:"/events/".concat(e.slug),children:(0,a.jsx)("a",{className:"event-title-link",children:e.title})})}),s&&(0,a.jsx)("div",{className:"event-location",children:s})]}),n<t.length-1&&(0,a.jsx)("div",{className:"event-divider"})]},e._id)})}),(0,a.jsx)(d(),{href:"/events",children:(0,a.jsx)("a",{className:"view-all-events",children:"View All Events →"})})]}),h]})}},21292:function(e,t,n){"use strict";n.d(t,{U:function(){return s}});var i=n(83613),r=n(69111);function a(e){return"string"!=typeof e?"":(0,r.decode)(e).replace(/<[^>]*>/g," ").replace(/\u00a0/g," ").replace(/\s+/g," ").trim()}function o(e){return e&&"/"!==e&&e.replace(/\/+$/,"")||"/"}function s(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=r.title,c=r.description,l=r.path,d=r.canonical,u=r.image,m=r.type,p=void 0===m?"website":m,g=r.robots,v=r.article,h=r.keywords,f=(t=a(s)||i.ZP.siteTitle,n=" | ".concat(i.ZP.siteTitle),t===i.ZP.siteTitle||t.endsWith(n)?t:"".concat(t).concat(n)),x=a(c)||i.ZP.description,w=function(e,t){try{if(t){var n=new URL(t,i.ZP.url);if(!/^https?:$/.test(n.protocol))throw Error("Invalid protocol");return n.pathname=o(n.pathname),n.hash="",n.toString()}
1var r=new URL(e||"/",i.ZP.url),a=new URL(i.ZP.url);return a.pathname=o(r.pathname),a.search="",a.hash="",a.toString()}catch(s){return i.ZP.url}}(l,d),j=function(e){var t=("string"==typeof e?e:void 0)||(null==e?void 0:e.sourceUrl)||(null==e?void 0:e.mediaItemUrl)||(null==e?void 0:e.url)||(null==e?void 0:e.src)||i.ZP.defaultOgImage;try{var n=new URL(t,i.ZP.url);return/^https?:$/.test(n.protocol)?n.toString():i.ZP.defaultOgImage}catch(r){return i.ZP.defaultOgImage}}(u),b=Array.isArray(h)?h.filter(Boolean).join(", "):a(h);return{title:f,description:x,canonical:w,robots:function(e){if(!e||"string"==typeof e)return e||"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:30";var t=e.noindex?"noindex":"index",n=e.nofollow?"nofollow":"follow";return"".concat(t,", ").concat(n,", max-snippet:-1, max-image-preview:large, max-video-preview:30")}(g),keywords:b,og:{title:f,description:x,url:w,siteName:i.ZP.siteTitle,type:p,imageUrl:j,imageSecureUrl:j},twitter:{title:f,description:x,cardType:"summary_large_image",username:i.ZP.twitterUsername,imageUrl:j},article:"article"===p?v:void 0}}},25713:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return d}});var i=n(85893),r=n(12458),a=n(345),o=n(75684),s=n(38660),c=n(21292),l=function(e){var t=e.videoId,n=e.thumbnail,l=(0,c.U)({title:"Watch CNBC Africa Live",description:"Watch CNBC Africa live for breaking business news, financial market coverage, interviews, and analysis from across the continent.",path:"/live",image:n});return(0,i.jsxs)(r.Z,{darkTheme:!0,children:[(0,i.jsx)(s.Z,{seo:l}),(0,i.jsxs)("div",{className:"container mx-auto",children:[(0,i.jsx)(a.iF,{}),(0,i.jsxs)("div",{className:"flex flex-wrap overflow-hidden sm:-mx-4",children:[(0,i.jsxs)("div",{className:"w-full overflow-hidden sm:px-4 lg:w-2/3",children:[t?(0,i.jsx)("div",{className:"relative w-full",style:{aspectRatio:"16/9"},children:(0,i.jsx)("iframe",{className:"absolute inset-0 w-full h-full",src:"https://www.youtube.com/embed/".concat(t),title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})}):(0,i.jsx)("div",{className:"relative w-full bg-black text-white flex items-center justify-center",style:{aspectRatio:"16/9"},children:(0,i.jsxs)("div",{className:"px-4 text-center",children:[(0,i.jsx)("div",{className:"text-lg font-semibold mb-2",children:"Live stream unavailable"}),(0,i.jsx)("div",{children:"Please try again later."})]})}),(0,i.jsx)(a.rj,{})]}),(0,i.jsxs)("div",{className:"w-full overflow-hidden sm:px-4 lg:w-1/3",children:[(0,i.jsx)(o.Z,{}),(0,i.jsx)(a.Wt,{})]})]})]})]})},d=!0;t.default=l},345:function(e,t,n){"use strict";n.d(t,{KO:function(){return l},L:function(){return d},Wt:function(){return m},fX:function(){return g},iF:function(){return s},om:function(){return u},rj:function(){return p}});var i=n(85893),r=n(25657),a=n(67294);function o(){var e=(0,a.useState)({width:void 0,height:void 0}),t=e[0],n=e[1];return(0,a.useEffect)(function(){var e=function(){n({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),e(),function(){return window.removeEventListener("resize",e)}},[]),t}var s=function(){var e=(0,a.useState)({isReady:!1}),t=e[0],n=e[1],s=o(),c="mobile-ad";return s.width<576?c="mobile-ad":s.width>=576&&s.width<=1040&&s.height<800&&s.height>600?c="leader-ad":s.width>1040&&(c="large-top-ad"),(0,a.useEffect)(function(){var e=setTimeout(function(){n({isReady:!0})},0);return function(){return clearTimeout(e)}},[]),(0,i.jsx)("div",{className:"ad-slot-top",align:"center",children:t.isReady?(0,i.jsx)(r.Z,{name:c}):null})},c=function(e){var t=e.large,n=e.leader,s=e.mobile,c=(0,a.useState)(!1),l=c[0],d=c[1],u=o(),m=s;return(u.width<576?m=s:u.width>=576&&u.width<=1040?m=n:u.width>1040&&(m=t),(0,a.useEffect)(function(){var e=setTimeout(function(){d(!0)},8);return function(){return clearTimeout(e)}},[]),l&&void 0!==u.width)?(0,i.jsx)("div",{align:"center",className:"py-4",children:(0,i.jsx)(r.Z,{name:m},m)}):null},l=function(){return(0,i.jsx)(c,{large:"large-middle-ad",leader:"leader-middle-ad",mobile:"mobile-middle-ad"})},d=function(){return(0,i.jsx)(c,{large:"large-middle-two-ad",leader:"leader-middle-two-ad",mobile:"mobile-middle-two-ad"})},u=function(){return(0,i.jsx)(c,{large:"large-bottom-ad",leader:"leader-bottom-ad",mobile:"mobile-bottom-ad"})},m=function(){var e=(0,a.useState)(!1),t=e[0],n=e[1],s=o(),c=void 0!==s.width&&s.width>700?"half-ad":"mpu-ad";return((0,a.useEffect)(function(){var e=setTimeout(function(){n(!0)},8);return function(){return clearTimeout(e)}},[]),t&&void 0!==s.width)?(0,i.jsx)("div",{align:"center",className:"py-4",children:(0,i.jsx)(r.Z,{name:c},c)}):null},p=function(){var e=(0,a.useState)(!1),t=e[0],n=e[1];return(0,a.useEffect)(function(){var e=setTimeout(function(){n(!0)},8);return function(){return clearTimeout(e)}},[]),t?(0,i.jsx)("div",{align:"center",className:"py-4",children:(0,i.jsx)(r.Z,{name:"mpu-ad-1"})}):null},g=function(){var e=(0,a.useState)(!1),t=e[0],n=e[1];return(0,a.useEffect)(function(){var e=setTimeout(function(){n(!0)},8);return function(){return clearTimeout(e)}},[]),t?(0,i.jsx)("div",{align:"center",children:(0,i.jsx)(r.Z,{name:"mpu-ad-2"})}):null}}},function(e){e.O(0,[4043,1664,1379,9111,5146,6237,9774,2888,179],function(){return e(e.s=14
1634)}),_N_E=e.O()}]);

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.