1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3756],{3209:(e,t,l)=>{"use strict";l.d(t,{BT:()=>c,Wu:()=>o,ZB:()=>i,Zp:()=>r,aR:()=>n});var s=l(5155);l(2115);var a=l(5016);function r(e){let{className:t,...l}=e;return(0,s.jsx)("div",{"data-slot":"card",className:(0,a.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...l})}function n(e){let{className:t,...l}=e;return(0,s.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...l})}function i(e){let{className:t,...l}=e;return(0,s.jsx)("div",{"data-slot":"card-title",className:(0,a.cn)("leading-none font-semibold",t),...l})}function c(e){let{className:t,...l}=e;return(0,s.jsx)("div",{"data-slot":"card-description",className:(0,a.cn)("text-muted-foreground text-sm",t),...l})}function o(e){let{className:t,...l}=e;return(0,s.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-6",t),...l})}},7053:()=>{},7251:(e,t,l)=>{"use strict";l.d(t,{A:()=>g});var s=l(5155),a=l(2168),r=l(451),n=l(2115),i=l(1714),c=l(7828),o=l(8735),d=l(1622),x=l(505),m=l(5016);l(7053);let u=n.memo(function(e){var t,l;let{data:a,dataIndex:r,isCenterSlide:n,swipeTo:i,slideIndex:c,CTALink:o}=e,d=(0,m.U$)(a[r].image),u=a[r].title,h=(null==(t=a[r])?void 0:t.startDate)||(null==(l=a[r])?void 0:l.createdAt),g=h?(0,m.r6)(h,!0):null;return(0,s.jsxs)("div",{className:"card-card",draggable:!1,children:[(0,s.jsx)("div",{className:"cover fill ".concat(n?"off":"on"),children:(0,s.jsx)("div",{className:"card-overlay fill",onClick:()=>{n||i(c)}})}),(()=>{let e="/"+[o||"",a[r].slug||""].filter(Boolean).map(e=>e.replace(/^\/+|\/+$/g,"")).join("/"),t="https://www.ukcybersecuritycouncil.org.uk".replace(/\/$/,""),l=t?"".concat(t).concat(e):e;return(0,s.jsxs)("a",{href:l,className:"relative w-full h-full overflow-hidden cursor-pointer",children:[(0,s.jsx)("img",{src:d,alt:u,className:"w-full h-full object-cover"}),(0,s.jsx)("span",{className:"pointer-events-none absolute inset-0 z-0 bg-black/60 md:bg-black/20","aria-hidden":"true"}),(0,s.jsx)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 z-10 w-full bg-gradient-to-t from-black/80 via-black/60 to-transparent text-white p-4 sm:p-5 md:p-6",children:(0,s.jsxs)("div",{className:"pointer-events-auto w-full max-w-full sm:max-w-[70%] space-y-2 sm:space-y-1",children:[(0,s.jsx)("p",{className:"text-base sm:text-lg md:text-xl font-bold leading-5 line-clamp-3",children:u}),g&&(0,s.jsx)("p",{className:"text-xs text-white/80 tracking-wide sm:text-sm",children:g}),(0,s.jsx)(x.t,{href:l,renderAs:"span",children:"Read More",className:"!mt-1 sm:!mt-0"})]})})]})})()]})});var h=l(8646);let g=e=>{let{limit:t,title:l,subtitle:x,dbTable:m,showTopDesign:g=!0,bgColor:p=a.o$.indigo,contentColor:v=a.o$.white,CTALink:f,CTAText:b,customCss:j="",items:w,onChange:N}=e,y=n.useRef(void 0),[k,C]=(0,n.useState)([]),A=Array.isArray(w)&&w.length>0,z=A?w:k;return(0,n.useEffect)(()=>{A||(async()=>{let e=await (0,r.tu)(m,{page:1,pageSize:null!=t?t:8});(null==e?void 0:e.items)&&C(e.items)})()},[m,t,A]),(0,s.jsxs)("div",{className:"",style:{backgroundColor:p},children:[g&&(0,s.jsx)("div",{className:"h-16 bg-white",children:(0,s.jsx)("div",{className:"max-w-7xl mx-auto bg-theme-indigo h-full w-full"})}),(0,s.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 md:px-12 lg:px-0",children:(0,s.jsx)(h.A,{text:l||"Events and Webinars",subText:x,as:"h2",size:"lg",align:"center",tight:!1,bgColor:p})}),(0,s.jsx)("section",{className:"py-8 sm:py-4 md:py-0 mb-0 px-4 sm:px-6 md:px-12 lg:px-0 mx-auto bg-theme-indigo ".concat(j),children:(0,s.jsxs)("div",{className:"p-5 sm:p-6 space-y-6 mb-0 rounded-md transition-colors",style:{backgroundColor:p},children:[0===z.length?(0,s.jsx)("div",{className:"text-center text-gray-500",children:(0,s.jsx)("p",{children:"No events found. Please check your database connection or table name."})}):(0,s.jsx)("div",{className:"w-full",role:"region","aria-label":"Event carousel",children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(i.u,{c
1arouselRef:y,render:(e,t)=>{let l=e,a=3;return l=e<640?Math.round(.9*e):e<900?Math.round(.55*e):e<1300?Math.min(1080,Math.round(.5*e)):Math.min(1320,Math.round(.5*e)),a=3,(0,s.jsx)(i.K,{ref:t,slideComponent:e=>(0,s.jsx)(u,{...e,CTALink:f}),slideWidth:l,carouselWidth:e,data:z,maxVisibleSlide:a,disableSwipe:!1,transitionTime:450})}}),(0,s.jsx)("button",{type:"button","aria-label":"Previous slide",className:"flex items-center justify-center absolute top-1/2 -translate-y-1/2 -left-8 lg:left-12 xl:left-20 w-9 h-9 lg:w-12 lg:h-12 xl:w-14 xl:h-14 text-white focus:outline-none focus-visible:ring-2 focus-visible:ring-theme-tangerine z-20",onClick:()=>{var e;return null==(e=y.current)?void 0:e.goBack()},children:(0,s.jsx)("span",{className:"block scale-105 sm:scale-115 lg:scale-125 xl:scale-140",children:(0,s.jsx)(c.A,{size:28})})}),(0,s.jsx)("button",{type:"button","aria-label":"Next slide",className:"flex items-center justify-center absolute top-1/2 -translate-y-1/2 -right-8 lg:right-12 xl:right-20 w-9 h-9 lg:w-12 lg:h-12 xl:w-14 xl:h-14 text-white focus:outline-none focus-visible:ring-2 focus-visible:ring-theme-tangerine z-20",onClick:()=>{var e;return null==(e=y.current)?void 0:e.goNext()},children:(0,s.jsx)("span",{className:"block scale-105 sm:scale-115 lg:scale-125 xl:scale-140",children:(0,s.jsx)(o.A,{size:28})})})]})}),b&&(0,s.jsx)("div",{className:"flex justify-center pt-2 md:pb-10",children:(0,s.jsx)(d.default,{ctaText:b,ctaLink:f||"",bgColor:"bg-theme-tangerine",size:"wide"})})]})})]})}},7828:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});var s=l(5155),a=l(2168);l(2115);let r=e=>{let{size:t=15,color:l=a.o$.tangerine,className:r}=e;return(0,s.jsx)("svg",{width:t,height:t,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:(0,s.jsx)("path",{d:"M9 4L9 11L4.5 7.5L9 4Z",fill:l||"currentColor"})})}},8122:(e,t,l)=>{"use strict";l.d(t,{E:()=>r});var s=l(5155),a=l(5016);function r(e){let{className:t,...l}=e;return(0,s.jsx)("div",{"data-slot":"skeleton",className:(0,a.cn)("bg-accent animate-pulse rounded-md",t),...l})}},9275:(e,t,l)=>{"use strict";l.d(t,{A:()=>o});var s=l(5155),a=l(2022);l(2115);var r=l(5016),n=l(2869),i=l(1622),c=l(2168);let o=e=>{let{bgColor:t=c.o$.gray,customCss:l="",dividerColor:o="#F58634",image:d,heading:x,content:m,ctaText:u,ctaLink:h,newTab:g}=e,{textColor:p,placeholderColor:v,borderColor:f,iconColor:b,isLight:j}=(0,r.MN)(t);return(0,s.jsx)("div",{className:(0,r.cn)("relative",p,l),style:{backgroundColor:t},children:(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-10 max-w-7xl mx-auto px-4 sm:px-6 py-8 lg:py-0",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-4 mt-10 md:mt-14 md:mr-12",children:[x&&(0,s.jsx)("h2",{className:(0,r.cn)("text-lg md:text-xl font-bold",p),children:x}),(0,s.jsx)("hr",{className:"h-[3px] w-full",style:{backgroundColor:o,border:"none"}}),(0,s.jsx)("div",{className:(0,r.cn)("text-sm md:text-base leading-relaxed",j?"opacity-80":"opacity-90"),dangerouslySetInnerHTML:{__html:(0,n.p)(m)}}),(0,s.jsx)("div",{className:"mt-4",children:u&&h&&(0,s.jsx)(i.default,{bgColor:j?"bg-[".concat(t,"]"):"bg-white/10",textColor:j?"text-theme-indigo":"text-white",ctaLink:h,ctaText:u,newTab:g})})]}),d&&(0,s.jsx)("div",{className:"relative w-full h-[260px] sm:h-[300px] lg:h-[420px] xl:h-[480px] lg:-top-24",children:(0,s.jsx)(a.default,{src:d||"/design/placeholder.png",alt:x,fill:!0,sizes:"(max-width:768px) 100vw, 50vw",className:"object-contain",priority:!0})})]})})}}}]);
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.