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:()=>h});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,g=(null==(t=a[r])?void 0:t.startDate)||(null==(l=a[r])?void 0:l.createdAt),h=g?(0,m.r6)(g,!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}),h&&(0,s.jsx)("p",{className:"text-xs text-white/80 tracking-wide sm:text-sm",children:h}),(0,s.jsx)(x.t,{href:l,renderAs:"span",children:"Read More",className:"!mt-1 sm:!mt-0"})]})})]})})()]})});var g=l(8646);let h=e=>{let{limit:t,title:l,subtitle:x,dbTable:m,showTopDesign:h=!0,bgColor:p=a.o$.indigo,contentColor:b=a.o$.white,CTALink:v,CTAText:f,customCss:j="",items:w,onChange:N}=e,y=n.useRef(void 0),[k,C]=(0,n.useState)([]),_=Array.isArray(w)&&w.length>0,z=_?w:k;return(0,n.useEffect)(()=>{_||(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,_]),(0,s.jsxs)("div",{className:"",style:{backgroundColor:p},children:[h&&(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)(g.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:v}),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})})})]})}),f&&(0,s.jsx)("div",{className:"flex justify-center pt-2 md:pb-10",children:(0,s.jsx)(d.default,{ctaText:f,ctaLink:v||"",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:()=>d});var s=l(5155),a=l(2022);l(2115);var r=l(5016),n=l(2869),i=l(1622),c=l(2168);function o(){let e="pointer-events-none absolute h-10 w-10 border-theme-green sm:h-14 sm:w-14";return(0,s.jsxs)("div",{className:"pointer-events-none absolute inset-[10%] z-10",children:[(0,s.jsx)("span",{className:(0,r.cn)(e,"left-0 top-0 border-l-4 border-t-4")}),(0,s.jsx)("span",{className:(0,r.cn)(e,"right-0 top-0 border-r-4 border-t-4")}),(0,s.jsx)("span",{className:(0,r.cn)(e,"bottom-0 left-0 border-b-4 border-l-4")}),(0,s.jsx)("span",{className:(0,r.cn)(e,"bottom-0 right-0 border-b-4 border-r-4")})]})}let d=e=>{let{bgColor:t=c.o$.gray,customCss:l="",dividerColor:d="#F58634",image:x,heading:m,content:u,ctaText:g,ctaLink:h,newTab:p,hideDivider:b=!1,imageAlt:v,showImageFrame:f=!1,rightBgColor:j,largeText:w=!1}=e,{textColor:N,isLight:y}=(0,r.MN)(t),k=f||!!j,C=v||m||"",_=(0,s.jsxs)("div",{className:(0,r.cn)("flex flex-col gap-4",k?"mx-auto w-full max-w-xl justify-center px-4 py-12 sm:px-8 lg:ml-auto lg:mr-0 lg:py-16 lg:pl-6 lg:pr-12":"mt-10 md:mt-14 md:mr-12"),children:[m&&(0,s.jsx)("h2",{className:(0,r.cn)("text-lg font-bold md:text-xl",N),children:m}),!b&&(0,s.jsx)("hr",{className:"h-[3px] w-full",style:{backgroundColor:d,border:"none"}}),(0,s.jsx)("div",{className:(0,r.cn)("[&_p+p]:mt-4 [&_strong]:font-bold",w?"text-lg leading-snug sm:text-xl lg:text-2xl [&_p+p]:text-base [&_p+p]:leading-relaxed lg:[&_p+p]:text-lg":"text-sm leading-relaxed md:text-base",y?"opacity-80":w?"":"opacity-90"),dangerouslySetInnerHTML:{__html:(0,n.p)(u)}}),g&&h&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(i.default,{bgColor:y?"bg-[".concat(t,"]"):"bg-white/10",textColor:y?"text-theme-indigo":"text-white",ctaLink:h,ctaText:g,newTab:p})})]});return k?(0,s.jsx)("div",{className:(0,r.cn)("relative",l),children:(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2",children:[(0,s.jsx)("div",{className:(0,r.cn)("flex",N),style:{backgroundColor:t},children:_}),x&&(0,s.jsxs)("div",{className:"relative min-h-[280px] w-full sm:min-h-[360px] lg:min-h-[460px]",style:j?{backgroundColor:j}:void 0,children:[(0,s.jsx)(a.default,{src:x,alt:C,fill:!0,sizes:"(max-width:1024px) 100vw, 50vw",className:f?"object-cover":"object-contain",priority:!0}),f&&(0,s.jsx)(o,{})]})]})}):(0,s.jsx)("div",{className:(0,r.cn)("relative",N,l),style:{backgroundColor:t},children:(0,s.jsxs)("div",{className:"mx-auto grid max-w-7xl grid-cols-1 gap-10 px-4 py-8 sm:px-6 lg:grid-cols-2 lg:py-0",children:[_,x&&(0,s.jsx)("div",{className:"relative h-[260px] w-full sm:h-[300px] lg:-top-24 lg:h-[420px] xl:h-[480px]",children:(0,s.jsx)(a.default,{src:x,alt:C,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.