PageSourceSearch

https://www.cnbcafrica.com/_next/static/chunks/583-dad152be6aa34b4c.js

js cnbcafrica.com collected 2026-10-02 02:24:38 UTC 24,546 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[583],{59622:function(e,t,n){var s=n(85893);n(67294);var r=n(41664),o=n.n(r),l=function(e){var t=e.title,n=e.href,r=e.linkLabel,l=e.as;return(0,s.jsxs)("div",{className:"mb-6",children:[(0,s.jsx)("div",{className:"h-1.5 w-16 bg-cnbc-yellow"}),(0,s.jsxs)("div",{className:"mt-2 flex items-baseline justify-between border-b border-gray-200 pb-3",children:[(0,s.jsx)(void 0===l?"h2":l,{className:"m-0 font-sans text-2xl md:text-3xl font-black uppercase tracking-tight text-cnbc-navy",children:t}),n&&(0,s.jsx)(o(),{href:n,children:(0,s.jsxs)("a",{href:n,className:"shrink-0 font-sans text-xs md:text-sm font-bold uppercase tracking-wide text-cnbc-dark-blue hover:text-cnbc-blue hover:underline",children:[void 0===r?"More":r," →"]})})]})]})};t.Z=l},20583:function(e,t,n){n.d(t,{Z:function(){return D}});var s=n(85893),r=n(67294),o=n(69111),l=function(e,t){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},a=function(){return(a=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c={Pixel:"Pixel",Percent:"Percent"},d={unit:c.Percent,value:.8};function h(e){return"number"==typeof e?{unit:c.Percent,value:100*e}:"string"==typeof e?e.match(/^(\d*(\.\d+)?)px$/)?{unit:c.Pixel,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:c.Percent,value:parseFloat(e)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),d):(console.warn("scrollThreshold should be string or number"),d)}var u=function(e){function t(t){var n=e.call(this,t)||this;return n.lastScrollTop=0,n.actionTriggered=!1,n.startY=0,n.currentY=0,n.dragging=!1,n.maxPullDownDistance=0,n.getScrollableTarget=function(){return n.props.scrollableTarget instanceof HTMLElement?n.props.scrollableTarget:"string"==typeof n.props.scrollableTarget?document.getElementById(n.props.scrollableTarget):(null===n.props.scrollableTarget&&console.warn("You are trying to pass scrollableTarget but it is null. This might\n        happen because the element may not have been added to DOM yet.\n        See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.\n      "),null)},n.onStart=function(e){!n.lastScrollTop&&(n.dragging=!0,e instanceof MouseEvent?n.startY=e.pageY:e instanceof TouchEvent&&(n.startY=e.touches[0].pageY),n.currentY=n.startY,n._infScroll&&(n._infScroll.style.willChange="transform",n._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},n.onMove=function(e){if(n.dragging)e instanceof MouseEvent?n.currentY=e.pageY:e instanceof TouchEvent&&(n.currentY=e.touches[0].pageY),!(n.currentY<n.startY)&&(n.currentY-n.startY>=Number(n.props.pullDownToRefreshThreshold)&&n.setState({pullToRefreshThresholdBreached:!0}),!(n.currentY-n.startY>1.5*n.maxPullDownDistance)&&n._infScroll&&(n._infScroll.style.overflow="visible",n._infScroll.style.transform="translate3d(0px, "+(n.currentY-n.startY)+"px, 0px)"))},n.onEnd=function(){n.startY=0,n.currentY=0,n.dragging=!1,n.state.pullToRefreshThresholdBreached&&(n.props.refreshFunction&&n.props.refreshFunction(),n.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){n._infScroll&&(n._infScroll.style.overflow="auto",n._infScroll.style.transform="none",n._infScroll.style.willChange="unset")})},n.onScrollListener=function(e){"function"==typeof n.props.onScroll&&setTimeout(function(){return n.props.onScroll&&n.props.onScroll(e)},0);var t=n.props.height||n._scrollableNode?e.target:document.documentElement.scrollTop?document.documentElement:document.body;!n.actionTriggered&&((n.props.inverse?n.isElementAtTop(t,n.props.scrollThreshold):n.isElementAtBottom(t,n.props.scrollThreshold))&&n.props.hasMore&&(n.actionTriggered=!0,n.setState({showLoader:!0}),n.props.next&&n.props.next()),n.lastScrollTop=t.scrollTop)},n.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:t.dataLength},n.throttledOnScrollListener=(function(e,t,n,s){var r,o=!1,l=0;function a(){r&&clearTimeout(r)}function c(){var c=this,d=Date.now()-l,h=arguments;function u(){l=Date.now(),n.apply(c,h)}!o&&(s&&!r&&u(),a(),void 0===s&&d>e?u():!0!==t&&(r=setTimeout(s?function(){r=void 0}:u,void 0===s?e-d:e)))}return"boolean"!=typeof t&&(s=n,n=t,t=void 0),c.cancel=function(){a(),o=!0},c})(150,n.onScrollListener).bind(n),n.onStart=n.onStart.bind(n),n.onMove=n.onMove.bind(n),n.onEnd=n.onEnd.bind(n),n}return!function(e,t){function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){if(void 0===this.props.dataLength)throw Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');
1if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),"number"==typeof this.props.initialScrollY&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),"function"!=typeof this.props.refreshFunction))throw Error('Mandatory prop "refreshFunction" missing.\n          Pull Down To Refresh functionality will not work\n          as expected. Check README.md for usage\'')},t.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},t.prototype.componentDidUpdate=function(e){this.props.dataLength!==e.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},t.getDerivedStateFromProps=function(e,t){return e.dataLength!==t.prevDataLength?a(a({},t),{prevDataLength:e.dataLength}):null},t.prototype.isElementAtTop=function(e,t){void 0===t&&(t=.8);var n=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,s=h(t);return s.unit===c.Pixel?e.scrollTop<=s.value+n-e.scrollHeight+1:e.scrollTop<=s.value/100+n-e.scrollHeight+1},t.prototype.isElementAtBottom=function(e,t){void 0===t&&(t=.8);var n=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,s=h(t);return s.unit===c.Pixel?e.scrollTop+n>=e.scrollHeight-s.value:e.scrollTop+n>=s.value/100*e.scrollHeight},t.prototype.render=function(){var e=this,t=a({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),n=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),s=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return r.createElement("div",{style:s,className:"infinite-scroll-component__outerdiv"},r.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(t){return e._infScroll=t},style:t},this.props.pullDownToRefresh&&r.createElement("div",{style:{position:"relative"},ref:function(t){return e._pullDown=t}},r.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!n&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},t}(r.Component),p=n(59622),m=n(41664),v=n.n(m),g=n(63719),f=n(40873),x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-|-$/g,"")},b=function(e){return(null==e?void 0:e.link)?(0,f.KA)(e.link):(null==e?void 0:e.uri)?e.uri:(null==e?void 0:e.id)&&(null==e?void 0:e.name)?"/media/".concat(e.id,"/").concat(x(e.name)):"#"},j=function(e){var t;return(0,f.D8)(e)||(null==e?void 0:e.image_resized_thumbnail)||(null==e?void 0:null===(t=e.featuredImage)||void 0===t?void 0:t.mediaItemUrl)||""},w=function(e){var t=e.duration;return t?(0,s.jsx)("span",{className:"absolute bottom-2 right-2 bg-black/75 px-1.5 py-0.5 font-sans text-[10px] font-bold text-white",children:t}):null},N=function(e){var t=e.video;
1if(!(null==t?void 0:t.created_at)&&!(null==t?void 0:t.date))return null;var n=new Date(t.created_at||t.date);return Number.isNaN(n.getTime())?null:(0,s.jsx)("div",{className:"font-sans text-[10px] font-bold uppercase tracking-wider text-gray-400",children:(0,g.Z)(n)})},y=function(e){var t=e.video,n=b(t),r=j(t);return(0,s.jsx)(v(),{href:n,children:(0,s.jsxs)("a",{href:n,className:"group block",children:[(0,s.jsxs)("div",{className:"relative w-full aspect-[16/9] overflow-hidden bg-gray-900",children:[r&&(0,s.jsx)("img",{className:"h-full w-full object-cover transition-transform duration-500 group-hover:scale-[1.02]",alt:(null==t?void 0:t.name)||"",src:r}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 to-transparent"}),(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,s.jsx)("span",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-cnbc-yellow text-lg font-black text-cnbc-navy shadow-md transition-transform duration-300 group-hover:scale-105",children:"▶"})}),(0,s.jsx)(w,{duration:null==t?void 0:t.duration})]}),(0,s.jsx)("h3",{className:"mt-4 mb-0 font-sans text-2xl xl:text-3xl font-extrabold leading-tight text-gray-900 group-hover:underline",dangerouslySetInnerHTML:{__html:null==t?void 0:t.name}}),(0,s.jsx)("div",{className:"mt-2",children:(0,s.jsx)(N,{video:t})})]})})},T=function(e){var t=e.video,n=e.isLast,r=b(t),o=j(t);return(0,s.jsx)("div",{className:n?"":"border-b border-gray-200 pb-4 mb-4",children:(0,s.jsx)(v(),{href:r,children:(0,s.jsxs)("a",{href:r,className:"group flex gap-3",children:[(0,s.jsxs)("div",{className:"relative h-16 w-28 shrink-0 overflow-hidden bg-gray-900",children:[o&&(0,s.jsx)("img",{className:"h-full w-full object-cover",alt:(null==t?void 0:t.name)||"",src:o}),(0,s.jsx)(w,{duration:null==t?void 0:t.duration})]}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("h3",{className:"m-0 font-sans text-base xl:text-lg font-bold leading-snug text-gray-900 line-clamp-3 group-hover:underline",dangerouslySetInnerHTML:{__html:null==t?void 0:t.name}}),(0,s.jsx)("div",{className:"mt-1.5",children:(0,s.jsx)(N,{video:t})})]})]})})})},k=function(e){var t=e.video,n=b(t),r=j(t);return(0,s.jsx)("div",{className:"mb-4 border-b border-gray-200 pb-4",children:(0,s.jsx)(v(),{href:n,children:(0,s.jsxs)("a",{href:n,className:"group flex gap-4 no-underline hover:no-underline",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("h3",{className:"m-0 font-sans text-lg font-bold leading-snug text-gray-900 group-hover:underline",dangerouslySetInnerHTML:{__html:null==t?void 0:t.name}}),(0,s.jsx)("div",{className:"mt-1.5",children:(0,s.jsx)(N,{video:t})})]}),r&&(0,s.jsxs)("div",{className:"relative h-20 w-28 shrink-0 overflow-hidden bg-gray-900",children:[(0,s.jsx)("img",{className:"h-full w-full object-cover",alt:(null==t?void 0:t.name)||"",src:r}),(0,s.jsx)(w,{duration:null==t?void 0:t.duration})]})]})})})},E=n(345),S=n(75684),L=n(88979),_=n(47652),D=function(e){var t=e.title,n=e.description,r=e.videos,l=e.pagination,a=void 0===l?null:l,c=e.isReady,d=e.hasMore,h=void 0!==d&&d,m=e.onLoadMore,v=void 0===m?null:m,g=e.banner,f=void 0===g?null:g,x=e.sidebarExtra;if(!(void 0===c||c))return(0,s.jsx)(_.Z,{});var b=r||[],j=b[0],w=b.slice(1,5),N=b.slice(5),D=(0,o.decode)(t||""),P=n?(0,o.decode)(String(n)).replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim():null,M="function"==typeof v&&!a,Y=N.length>0&&(0,s.jsxs)("div",{className:"mt-10",children:[(0,s.jsx)(p.Z,{title:"More"}),(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-10",children:N.map(function(e,t){return(0,s.jsx)(k,{video:e},e.id||e.link||t)})})]});return(0,s.jsxs)("div",{className:"container mx-auto pb-8",children:[(0,s.jsx)("div",{className:"px-4 xl:px-0",children:(0,s.jsx)(E.iF,{})}),(0,s.jsxs)("section",{className:"py-8 px-4 xl:px-0",children:[f&&(0,s.jsx)("div",{className:"mb-6 overflow-hidden",children:(0,s.jsx)("img",{src:f,alt:D,className:"h-auto w-full object-cover"})}),(0,s.jsx)(p.Z,{title:D,as:"h1"}),P&&(0,s.jsx)("p",{className:"mt-0 mb-8 max-w-3xl font-sans text-base leading-relaxed text-gray-600",children:P}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8",children:[(0,s.jsxs)("div",{className:"lg:col-span-8",children:[b.length>0&&(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-8",children:[(0,s.jsx)("div",{className:"md:col-span-7",children:j&&(0,s.jsx)(y,{video:j})}),(0,s.jsx)("div",{className:"md:col-span-5",children:w.map(function(e,t){return(0,s.jsx)(T,{video:e,isLast:t===w.length-1},e.id||e.link||t)})})]}),M?(0,s.jsx)(u,{dataLength:b.length,next:v,hasMore:h,loader:(0,s.jsx)("p",{className:"mt-6 font-sans text-sm font-bold uppercase tracking-wide text-gray-400",children:"Loading…"}),children:Y}):Y,M&&h&&(0,s.jsx)("button",{type:"button",onClick:v,className:"load-more mt-6",children:(0,s.jsx)("div",{className:"btn btn-alt listing-btn",children:(0,s.jsx)("span",{children:"Older Videos"})})}),(null==a?void 0:a.totalPages)>1&&(0,s.jsx)(L.Z,{size:"thin",pagination:a}),0===b.length&&(0,s.jsx)("p",{className:"py-12 text-center font-sans text-lg text-gray-500",children:"No videos available at the moment."})]}),(0,s.jsx)("aside",{className:"lg:col-span-4 lg:border-l lg:border-gray-200 lg:pl-8",children:(0,s.jsxs)("div",{className:"listing-sticky space-y-6",children:[void 0===x?null:x,(0,s.jsx)(E.rj,{}),(0,s.jsx)(S.Z,{}),(0,s.jsx)(E.Wt,{})]})})]})]})]})}},40873:function(e,t,n){n.d(t,{D8:function(){return h},KA:function(){return d},p7:function(){return u}});var s=n(59637),r=n(85893);n(67294);var o=n(41664),l=n.n(o),a=n(63719),c=n(59622),d=function(e){if(!e)return"#";try{return new URL(e).pathname}catch(t){return e}},h=function(e){return(null==e?void 0:e.poster)||(null==e?void 0:e.thumbnail)||""},u=function(e){var t=new Set;return((null==e?void 0:e.videoResults)||[]).slice(0,4).forEach(function(e){(e.videos||[]).slice(0,4).forEach(function(e){(null==e?void 0:e.id)&&t.add(e.id)})}),t},p=function(e){var t=e.videoLandingData,n=null==t?void 0:t.videoResults;if(!(null==n?void 0:n.length))return null;var o=n.slice(0,4).filter(function(e){var t;return null==e?void 0:null===(t=e.videos)||void 0===t?void 0:t.length});return(0,r.jsxs)("section",{className:"py-8 px-4 xl:px-0",children:[(0,r.jsx)(c.Z,{title:"CNBC Africa TV",href:"/shows",linkLabel:"All Shows"}),(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-x-8 gap-y-10",children:o.map(function(e,t){var n="/videos/".concat(e.tag.toLowerCase()),o=(0,s.Z)(e.videos.slice(0,4)),c=o[0],u=o.slice(1);return(0,r.jsxs)("div",{className:t>0?"lg:border-l lg:border-gray-200 lg:-ml-4 lg:pl-4":"",children:[(0,r.jsx)(l(),{href:n,children:(0,r.jsxs)("a",{href:n,className:"mb-4 flex items-center justify-between border-b-2 border-cnbc-yellow pb-2 hover:text-cnbc-dark-blue",children:[(0,r.jsx)("span",{className:"font-sans text-[13px] font-black uppercase tracking-wide text-gray-900",children:e.name}),(0,r.jsx)("span",{className:"font-sans text-xs font-bold text-gray-400",children:"→"})]})}),(0,r.jsx)(l(),{href:d(c.link),children:(0,r.jsxs)("a",{href:d(c.link),className:"group block",children:[(0,r.jsxs)("div",{className:"relative aspect-[16/9] overflow-hidden bg-gray-900",children:[(0,r.jsx)("img",{className:"h-full w-full object-cover transition-transform duration-500 group-hover:scale-[1.03]",alt:c.name,src:h(c)}),(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/40 to-transparent"})]}),(0,r.jsx)("h3",{className:"mt-3 mb-1 font-sans text-base font-extrabold leading-snug text-gray-900 line-clamp-2 min-h-[2.75em] group-hover:underline",children:c.name}),(0,r.jsx)("div",{className:"font-sans text-[10px] font-bold uppercase tracking-wider text-gray-400",children:(0,a.Z)(new Date(c.created_at))})]})}),u.map(function(e){return(0,r.jsx)(l(),{href:d(e.link),children:(0,r.jsxs)("a",{href:d(e.link),className:"group mt-4 flex gap-3 border-t border-gray-200 pt-4",children:[(0,r.jsx)("div",{className:"relative h-14 w-24 shrink-0 overflow-hidden bg-gray-900",children:(0,r.jsx)("img",{className:"h-full w-full object-cover",alt:e.name,src:h(e)})}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("h4",{className:"m-0 font-sans text-[13px] font-bold leading-snug text-gray-900 line-clamp-2 min-h-[2.75em] group-hover:underline",children:e.name}),(0,r.jsx)("div",{className:"mt-1 font-sans text-[10px] font-bold uppercase tracking-wider text-gray-400",children:(0,a.Z)(new Date(e.created_at))})]})]})},e.id)})]},e.tag)})})]})};t.ZP=p},75684:function(e,t,n){n.d(t,{Z:function(){return p}});var s=n(47568),r=n(97582),o=n(85893),l=n(60357),a=n.n(l),c=n(67294),d=n(41664),h=n.n(d),u=n(83613),p=function(){var e=(0,c.useState)([]),t=e[0],n=e[1],l=(0,c.useState)(!0),d=l[0],p=l[1],m=(0,c.useState)(null),v=m[0],g=m[1];(0,c.useEffect)(function(){var e;(e=(0,s.Z)(function(){var e,t,s,o,l;return(0,r.__generator)(this,function(e){switch(e.label){case 0:return e.trys.push([0,3,4,5]),p(!0),[4,fetch((0,u.TZ)(u.ZP.API_endpoints.events))];case 1:return[4,e.sent().json()];case 2:return t=e.sent(),s=new Date,o=t.filter(function(e){return new Date(e.startDate)>=s}).sort(function(e,t){return new Date(e.startDate)-new Date(t.startDate)}).slice(0,3),n(o),g(null),[3,5];case 3:return l=e.sent(),console.error("Error fetching events:",l),g("Failed to load events"),[3,5];case 4:return p(!1),[7];case 5:return[2]}})}),function(){return e.apply(this,arguments)})()},[]);var f=(0,o.jsx)(a(),{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 d?(0,o.jsxs)("div",{className:"upcoming-events-widget",children:[(0,o.jsxs)("div",{className:"upcoming-events-container",children:[(0,o.jsx)("h3",{className:"widget-title",children:"Upcoming Events"}),(0,o.jsx)("div",{className:"loading-state",children:(0,o.jsxs)("div",{className:"animate-pulse",children:[(0,o.jsx)("div",{className:"h-4 bg-gray-200 mb-2"}),(0,o.jsx)("div",{className:"h-3 bg-gray-200 mb-4"}),(0,o.jsx)("div",{className:"h-4 bg-gray-200 mb-2"}),(0,o.jsx)("div",{className:"h-3 bg-gray-200"})]})})]}),f]}):v?(0,o.jsxs)("div",{className:"upcoming-events-widget",children:[(0,o.jsxs)("div",{className:"upcoming-events-container",children:[(0,o.jsx)("h3",{className:"widget-title",children:"Upcoming Events"}),(0,o.jsx)("p",{className:"widget-status-text",children:v})]}),f]}):0===t.length?(0,o.jsxs)("div",{className:"upcoming-events-widget",children:[(0,o.jsxs)("div",{className:"upcoming-events-container",children:[(0,o.jsx)("h3",{className:"widget-title",children:"Upcoming Events"}),(0,o.jsx)("p",{className:"widget-status-text",children:"No upcoming events at this time."})]}),f]}):(0,o.jsxs)("div",{className:"upcoming-events-widget",children:[(0,o.jsxs)("div",{className:"upcoming-events-container",children:[(0,o.jsx)("h3",{className:"widget-title",children:"Upcoming Events"}),(0,o.jsx)("div",{className:"events-list",children:t.map(function(e,n){var s,r=(e.location||"").trim(),l=(e.eventType||"").trim(),a=r&&l?"".concat(r," | ").concat(l):r||l||"";return(0,o.jsxs)("div",{className:"event-item",children:[(0,o.jsxs)("div",{className:"event-content",children:[(0,o.jsx)("div",{className:"event-date",children:(s=e.startDate,new Date(s).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}))}),(0,o.jsx)("h4",{className:"event-title",children:(0,o.jsx)(h(),{href:"/events/".concat(e.slug),children:(0,o.jsx)("a",{className:"event-title-link",children:e.title})})}),a&&(0,o.jsx)("div",{className:"event-location",children:a})]}),n<t.length-1&&(0,o.jsx)("div",{className:"event-divider"})]},e._id)})}),(0,o.jsx)(h(),{href:"/events",children:(0,o.jsx)("a",{className:"view-all-events",children:"View All Events →"})})]}),f]})}},47652:function(e,t,n){var s=n(85893),r=n(43971),o=function(e,t){var n=parseInt(e.slice(1,3),16),s=parseInt(e.slice(3,5),16),r=parseInt(e.slice(5,7),16);return"rgba(".concat(n,",").concat(s,",").concat(r,",").concat(t,")")},l=function(e){e.state;var t,n=(0,r.ZP)().appData.theme;return(0,s.jsx)("div",{className:"loading",children:(0,s.jsx)("div",{className:"loading-inner",style:(t=n.colors.primary,{width:"".concat(240,"px"),height:"".concat(4,"px"),backgroundColor:"".concat(o(t,.2))}),children:(0,s.jsx)("div",{style:{backgroundColor:n.colors.primary},className:"loading-indicator"})})})};t.Z=l},88979:function(e,t,n){var s=n(85893),r=n(41664),o=n.n(r),l=n(11163),a=function(e){var t=e.pagination;(0,l.useRouter)();var n=null==t?void 0:t.baseUrl,r=parseInt(null==t?void 0:t.currentPage),a=parseInt(null==t?void 0:t.totalPages),c=n,d=n;return(null==t?void 0:t.hasPreviousPage)&&(c="".concat(n,"page/").concat(r-1,"/"),r-1==1&&(c="".concat(n))),(null==t?void 0:t.hasNextPage)&&(d="".concat(n,"page/").concat(r+1,"/")),(0,s.jsx)("div",{className:"block",children:(0,s.jsxs)("div",{className:"container mx-auto text-center wrap-paginators mt-5",children:[(0,s.jsx)("div",{className:"inline-block",children:(null==t?void 0:t.hasPreviousPage)&&r>1&&(0,s.jsx)(o(),{href:"".concat(c),children:(0,s.jsx)("a",{href:"".concat(c),children:(0,s.jsx)("div",{className:"btn btn-alt listing-btn",children:(0,s.jsx)("span",{children:"Newer Articles"})})})})}),(0,s.jsx)("div",{className:"inline-block",children:(null==t?void 0:t.hasNextPage)&&a!==r&&(0,s.jsx)(o(),{href:"".concat(d),children:(0,s.jsx)("a",{href:"".concat(d),children:(0,s.jsx)("div",{className:"btn btn-alt listing-btn",children:(0,s.jsx)("span",{children:"Older Articles"})})})})})]})})};t.Z=a},59637:function(e,t,n){n.d(t,{Z:function(){return a}});var s=n(39474),r=n(13375),o=n(53128),l=n(91566);function a(e){return(0,s.Z)(e)||(0,r.Z)(e)||(0,l.Z)(e,i)||(0,o.Z)()}}}]);

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.