PageSourceSearch

https://www.ukcybersecuritycouncil.org.uk/_next/static/chunks/app/layout-980259615c195c91.js

js ukcybersecuritycouncil.org.uk collected 2026-10-02 15:05:37 UTC 49,803 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{452:(e,t,a)=>{"use strict";a.d(t,{default:()=>s});var r=a(2115);function n(e){let t=new Map,a={getItem(e){let a=t.get(String(e));return void 0===a?null:a},setItem(e,a){t.set(String(e),String(a))},removeItem(e){t.delete(String(e))},clear(){t.clear()},key(e){var a;return null!=(a=Array.from(t.keys())[e])?a:null},get length(){return t.size}};try{Object.defineProperty(window,e,{value:a,configurable:!0,enumerable:!0,writable:!0})}catch(t){window[e]=a}}function s(){return(0,r.useEffect)(()=>{try{let e="__safestorage_test__";try{window.localStorage.setItem(e,"1"),window.localStorage.removeItem(e)}catch(e){console.warn("[SAFE-STORAGE] localStorage unavailable, installing polyfill",e),n("localStorage")}try{window.sessionStorage.setItem(e,"1"),window.sessionStorage.removeItem(e)}catch(e){console.warn("[SAFE-STORAGE] sessionStorage unavailable, installing polyfill",e),n("sessionStorage")}}catch(e){console.error("[SAFE-STORAGE] Unexpected error during init",e)}},[]),null}},883:(e,t,a)=>{"use strict";a.d(t,{iy:()=>l,j2:()=>c,qb:()=>d,ri:()=>m,uI:()=>u,vD:()=>h});var r=a(2168),n=a(5222);let s={credentials:"include",cache:"no-store"},i=null;function o(e){let t=new Headers(e);for(let[e,a]of Object.entries(r.qY))t.set(e,a);return t}async function l(e,t){let a=await fetch("/api/auth/member/login",{...s,method:"POST",headers:o({...r.eT}),body:(0,n.hR)({email:e,password:t})}),i=await a.json();if(!a.ok)throw Error(i.error||"Invalid login");return i.requiresMfa?{requiresMfa:!0,tempToken:i.tempToken,message:i.message}:{requiresMfa:!1}}async function c(e,t){let a=await fetch("/api/auth/member/verify-mfa",{...s,method:"POST",headers:o({...r.eT}),body:(0,n.hR)({mfaCode:e,tempToken:t})}),i=await a.json();if(!a.ok)throw Error(i.error||"Invalid MFA code");return i}async function d(e,t,a){let i=await fetch("/api/auth/member/register",{...s,method:"POST",headers:o({...r.eT}),body:(0,n.hR)({email:e,password:t,name:a})});if(!i.ok)throw Error("Registration failed");return i.json()}async function m(){await fetch("/api/auth/logout",{...s,method:"POST",headers:o()})}async function u(){if(i)return i;i=(async()=>{if(!(await fetch("/api/auth/refresh",{...s,method:"POST",headers:o()})).ok)throw Error("No refresh token")})();try{await i}finally{i=null}}async function p(){return fetch("/api/auth/me",s)}async function h(){let e=await p();if(401===e.status)try{await u(),e=await p()}catch(e){return null}return e.ok?(await e.json()).user:null}},1290:()=>{},1622:(e,t,a)=>{"use strict";a.d(t,{default:()=>c});var r=a(5155),n=a(8661),s=a.n(n);a(2115);var i=a(2821),o=a(5967);let l={small:{padding:"py-[4px] pl-[8px] pr-[14px] lg:py-[5px] lg:pl-[10px] lg:pr-[20px]",backPadding:"py-[4px] pr-[8px] pl-[14px] lg:py-[5px] lg:pr-[10px] lg:pl-[20px]",text:"text-[10px] lg:text-[11px] tracking-wide font-[300]",borderWidth:"p-[1px]"},medium:{padding:"py-[6px] pl-[10px] pr-[18px] lg:py-[8px] lg:pl-[10px] lg:pr-[25px]",backPadding:"py-[6px] pr-[10px] pl-[18px] lg:py-[8px] lg:pr-[10px] lg:pl-[25px]",text:"text-[11px] lg:text-xs tracking-wide font-[350]",borderWidth:"p-[2px]"},wide:{padding:"py-[10px] pl-[22px] pr-[40px] lg:py-[14px] lg:pl-[35px] lg:pr-[55px]",backPadding:"py-[10px] pr-[22px] pl-[40px] lg:py-[14px] lg:pr-[35px] lg:pl-[55px]",text:"text-[11px] lg:text-xs tracking-wide lg:tracking-widest font-[350]",borderWidth:"p-[2px]"},reg:{padding:"py-[10px] pl-[10px] pr-[20px] lg:py-[14px] lg:pl-[12px] lg:pr-[28px]",backPadding:"py-[10px] pr-[10px] pl-[20px] lg:py-[14px] lg:pr-[12px] lg:pl-[28px]",text:"text-[11px] lg:text-xs tracking-wide font-[350]",borderWidth:"p-[2px]"}},c=e=>{let{ctaText:t,ctaLink:a,bgColor:n="bg-theme-indigo",textColor:c="text-white",borderColor:d="bg-theme-tangerine",size:m="medium",customCss:u="",newTab:p=!1,direction:h="forward",hoverStyle:f="arrowSlide",disabled:x=!1,onClick:g}=e,b=l[m],v="back"===h,w=v?b.backPadding:b.padding,{text:j,borderWidth:y}=b,N=v?"clip-arrow-back":"clip-arrow",k=n.includes("transparent"),C=(0,o.v)(a);return(0,r.jsxs)("div",{className:"jsx-772318a094715a5c "+((0,i.A)("theme-btn-wrapper inline-block",N,k?"bg-transparent":d,k?d.startsWith("bg-")?d.replace("bg-","border-"):"border-current":y,k&&"border-2",x&&"pointer-events-none opacity-60",{lift:"tb-lift",arrowSlide:"tb-arrow",wipe:"tb-wipe",underline:"tb-underline",pulse:"tb-pulse",skew:"tb-ske
1w",none:"tb-none"}[f])||""),children:[C?(0,r.jsx)("a",{href:C,target:p?"_blank":void 0,rel:p?"noopener noreferrer":void 0,"aria-disabled":x,tabIndex:x?-1:void 0,onClick:x?void 0:g,className:"jsx-772318a094715a5c "+((0,i.A)("theme-btn uppercase font-bold cursor-pointer relative overflow-hidden",N,n,c,w,j,"w-full block",u)||""),children:(0,r.jsx)("span",{className:"jsx-772318a094715a5c theme-btn-inner relative z-10",children:t})}):(0,r.jsx)("button",{type:"button",disabled:x,onClick:x?void 0:g,className:"jsx-772318a094715a5c "+((0,i.A)("theme-btn uppercase font-bold cursor-pointer relative overflow-hidden",N,n,c,w,j,"w-full block",x&&"cursor-not-allowed",u)||""),children:(0,r.jsx)("span",{className:"jsx-772318a094715a5c theme-btn-inner relative z-10",children:t})}),(0,r.jsx)(s(),{id:"772318a094715a5c",children:'.clip-arrow.jsx-772318a094715a5c{clip-path:polygon(0 0,85%0,100%50%,85%100%,0 100%)}.clip-arrow-back.jsx-772318a094715a5c{clip-path:polygon(15%0,100%0,100%100%,15%100%,0 50%)}.theme-btn-wrapper.jsx-772318a094715a5c{position:relative}.theme-btn.jsx-772318a094715a5c{transition:background-color 160ms ease,color 160ms ease}.theme-btn-inner.jsx-772318a094715a5c{display:inline-flex;align-items:center;justify-content:center;transition:transform 160ms ease}.tb-lift.jsx-772318a094715a5c .theme-btn.jsx-772318a094715a5c{transition:transform 160ms ease,background-color 160ms ease,color 160ms ease,box-shadow 200ms ease}.tb-lift.jsx-772318a094715a5c:hover .theme-btn.jsx-772318a094715a5c{transform:translatey(-2px);box-shadow:0 4px 10px -4px rgba(0,0,0,.45)}.tb-lift.jsx-772318a094715a5c:active .theme-btn.jsx-772318a094715a5c{transform:translatey(0);box-shadow:0 2px 4px -2px rgba(0,0,0,.4)}.tb-arrow.jsx-772318a094715a5c:hover .theme-btn-inner.jsx-772318a094715a5c{transform:translatex(2px)}.tb-arrow.clip-arrow-back.jsx-772318a094715a5c:hover .theme-btn-inner.jsx-772318a094715a5c{transform:translatex(-2px)}.tb-wipe.jsx-772318a094715a5c{position:relative}.tb-wipe.jsx-772318a094715a5c::after{content:"";position:absolute;inset:0;border:2px solid currentColor;-webkit-mask:linear-gradient(90deg,#000 30%,transparent 60%);mask:linear-gradient(90deg,#000 30%,transparent 60%);opacity:0;transform:translatex(-25%);transition:opacity 180ms ease,transform 380ms ease;pointer-events:none}.tb-wipe.jsx-772318a094715a5c:hover::after{opacity:1;transform:translatex(0)}.tb-underline.jsx-772318a094715a5c{position:relative}.tb-underline.jsx-772318a094715a5c .theme-btn.jsx-772318a094715a5c::after{content:"";position:absolute;left:10px;right:28px;bottom:6px;height:2px;background:currentColor;transform:scalex(0);transform-origin:left;transition:transform 220ms ease;opacity:.75}.tb-underline.jsx-772318a094715a5c:hover .theme-btn.jsx-772318a094715a5c::after{transform:scalex(1)}.tb-pulse.jsx-772318a094715a5c{position:relative}.tb-pulse.jsx-772318a094715a5c .theme-btn.jsx-772318a094715a5c::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 85%50%,rgba(255,255,255,.35),transparent 65%);opacity:0;transform:scale(.8);transition:opacity 220ms ease,transform 300ms ease;pointer-events:none}.tb-pulse.jsx-772318a094715a5c:hover .theme-btn.jsx-772318a094715a5c::before{opacity:.9;transform:scale(1)}.tb-pulse.jsx-772318a094715a5c:active .theme-btn.jsx-772318a094715a5c::before{opacity:.5;transform:scale(.92)}.tb-skew.jsx-772318a094715a5c .theme-btn.jsx-772318a094715a5c{transition:transform 160ms ease,background-color 160ms ease,color 160ms ease}.tb-skew.jsx-772318a094715a5c:hover .theme-btn.jsx-772318a094715a5c{transform:skewx(-3deg)translatey(-1px)}.tb-skew.jsx-772318a094715a5c:active .theme-btn.jsx-772318a094715a5c{transform:skewx(-1deg)translatey(0)}.tb-none.jsx-772318a094715a5c .theme-btn.jsx-772318a094715a5c{}@media(prefers-reduced-motion:reduce){.theme-btn.jsx-772318a094715a5c,.theme-btn.jsx-772318a094715a5c *.jsx-772318a094715a5c{transition:none!important;animation:none!important;transform:none!important}.tb-lift.jsx-772318a094715a5c:hover .theme-btn.jsx-772318a094715a5c,.tb-arrow.jsx-772318a094715a5c:hover .theme-btn-inner.jsx-772318a094715a5c,.tb-wipe.jsx-772318a094715a5c::after,.tb-underline.jsx-772318a094715a5c .theme-btn.jsx-772318a094715a5c::after,.tb-pulse.jsx-772318a094715a5c .theme-btn.jsx-772318a094715a5c::before,.tb-skew.jsx-772318a094715a5c:hover .theme-btn.jsx-772318a094715a5c{transform:none!important}.tb-wipe.jsx-772318a094715a5c::after,.tb-underline.jsx-772318a094715a5c .theme-btn.jsx-772318a094715a5c::after,.tb-pulse.jsx-772318a094715a5c .theme-btn.jsx-772318a094715a5c::before{opacity:0!important}}'})]})}},2022:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5155),n=a(5239),s=a(5016),i=a(2115);let o="/design/placeholder.png";function l(e){let{src:t,onError:a,className:l,style:c,...d}=e,[m,u]=(0,i.useState)(!1),p=(0,i.useCallback)(e=>{m||u(!0),null==a||a(e)},[m,a]),h=!!d.priority,f="string"==typeof t&&t.endsWith(".svg"),x="string"!=typeof t,g=h||f||x||d.blurDataURL||d.placeholder?{}:{placeholder:"blur",blurDataURL:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNlNWU3ZWIiLz48L3N2Zz4="};if("string"==typeof t){let e=m?o:("string"!=typeof t?"":t.startsWith("/base/")||t.startsWith("/cms/")||t.startsWith("/dv/")||t.startsWith("/")?t:(0,s.U$)(t))||o;return(0,r.jsx)(n.default,{src:e,className:l,style:c,onError:p,...g,...d})}return(0,r.jsx)(n.default,{src:t,className:l,style:c,onError:p,...g,...d})}},3017:(e,t,a)=>{"use strict";a.d(t,{O:()=>l});var r=a(2168);let n=[/^script error\.?$/i,/^javascript error:\s*script error\.?\s*on line 0$/i],s=[/ResizeObserver loop completed with undelivered notifications/i,/Failed to connect to MetaMask/i,/Object Not Found Matching Id:\d+,\s*MethodName:update,\s*ParamCount:\d+/i,/can(?:not|'t) redefine(?: non-configurable)? property(?:\s|:)\s*Symbol\.hasInstance/i,/Loading chunk [\w.-]+ failed/i,/ChunkLoadError/i,/Failed to fetch dynamically imported module/i,/error loading dynamically imported module/i,/Importing a module script failed/i,/reading ['"]M_ID['"]/i],i=/(?:chrome|moz|safari|ms-browser)-extension:\/\/|webkit-masked-url:\/\/hidden/i;function o(e){return null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?e:Array.isArray(e)?e.map(e=>o(e)):e instanceof Error?{name:e.name,message:e.message,stack:e.stack}:"object"==typeof e?Object.fromEntries(Object.entries(e).map(e=>
1{let[t,a]=e;return[t,o(a)]})):String(e)}async function l(e){var t,a,l,c;let d=(c=e.error)?c instanceof Error?c:Error("string"==typeof c?c:JSON.stringify(o(c))):null;if(function(e){var t,a,r;let o=null==(t=e.area)?void 0:t.trim().toLowerCase(),l=null==(a=e.title)?void 0:a.trim().toLowerCase(),c=null==(r=e.message)?void 0:r.trim().toLowerCase();if("window.error"===e.area&&[e.message,e.errorMessage].filter(e=>"string"==typeof e&&e.trim().length>0).some(e=>n.some(t=>t.test(e)))||"window.unhandledrejection"===o&&"unhandled promise rejection"===l&&"unhandled promise rejection"===c||function(e){if("frontend.secureFetch"!==e.area)return!1;let t=(e.message||e.errorMessage||"").trim();return"AbortError"===(e.errorName||"").trim()||/^failed to fetch$/i.test(t)||/^load failed$/i.test(t)||/^networkerror when attempting to fetch resource\.?$/i.test(t)||/^network request failed$/i.test(t)}(e))return!0;let d=new WeakSet,m=[e.area,e.title,e.message,e.errorName,e.errorMessage,e.stack,e.url,function e(t,a){if(null==t)return"";if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)return String(t);if(t instanceof Error){var r;return[t.name,t.message,null!=(r=t.stack)?r:""].join(" ")}return Array.isArray(t)?t.map(t=>e(t,a)).join(" "):"object"==typeof t?a.has(t)?"[Circular]":(a.add(t),Object.values(t).map(t=>e(t,a)).join(" ")):String(t)}(e.details,d)].filter(e=>"string"==typeof e&&e.trim().length>0).join(" ");return!!function(e,t){var a;let r=null==(a=e.area)?void 0:a.trim().toLowerCase();return("window.error"===r||"window.unhandledrejection"===r)&&(i.test(t)||i.test(e.stack||""))}(e,m)||s.some(e=>e.test(m))}({area:e.area,title:e.title,message:e.message,errorName:null==d?void 0:d.name,errorMessage:null==d?void 0:d.message,stack:null==d?void 0:d.stack,url:window.location.href,details:e.details}))return;let m=JSON.stringify({source:"frontend",area:e.area,title:e.title,message:e.message,severity:null!=(t=e.severity)?t:"error",fingerprint:e.fingerprint,requestMethod:e.requestMethod,requestPath:null!=(a=e.requestPath)?a:window.location.pathname,url:window.location.href,userAgent:window.navigator.userAgent,errorName:null==d?void 0:d.name,errorMessage:null==d?void 0:d.message,stack:null==d?void 0:d.stack,details:o(null!=(l=e.details)?l:{})});try{if("function"==typeof navigator.sendBeacon&&navigator.sendBeacon("/api/analytics/issues",new Blob([m],{type:"application/json"})))return;await fetch("/api/analytics/issues",{method:"POST",headers:{"Content-Type":"application/json",...r.qY},body:m,keepalive:!0})}catch(e){}}},3209:(e,t,a)=>{"use strict";a.d(t,{BT:()=>l,Wu:()=>c,ZB:()=>o,Zp:()=>s,aR:()=>i});var r=a(5155);a(2115);var n=a(5016);function s(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card",className:(0,n.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...a})}function i(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-header",className:(0,n.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),...a})}function o(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-title",className:(0,n.cn)("leading-none font-semibold",t),...a})}function l(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-description",className:(0,n.cn)("text-muted-foreground text-sm",t),...a})}function c(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-content",className:(0,n.cn)("px-6",t),...a})}},3417:(e,t,a)=>{"use strict";a.d(t,{CookieConsent:()=>o});var r=a(5155),n=a(2115),s=a(7003),i=a(3209);function o(){let[e,t]=(0,n.useState)(!1),[a,o]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{localStorage.getItem("cookie-consent")||t(!0)},[]),e)?(0,r.jsx)("div",{className:"fixed bottom-0 left-2 right-2 z-50",children:(0,r.jsx)(i.Zp,{className:"w-full my-2 sm:my-4 p-4 sm:p-6 bg-white border shadow-lg",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4 sm:gap-6",children:[(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)("h3",{className:"font-semibold text-base sm:text-lg mb-2",children:"We use cookies"}),(0,r.jsx)("p",{className:"text-xs sm:text-sm text-gray-600 leading-relaxed",children:"We use cookies to enhance your browsing experience and analyze our website traffic. These include essential cookies for site functionality and analytics cookies to help us understand how visitors interact with our website. You can choose to accept or reject non-e
1ssential cookies."}),(0,r.jsxs)("p",{className:"text-xs text-gray-500 mt-2",children:["Read our"," ",(0,r.jsx)("a",{href:"/legal/website-privacy-policy",className:"underline hover:text-gray-700",children:"Privacy Policy"})," ","for more information."]})]}),(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2 sm:gap-3 w-full sm:w-auto",children:[(0,r.jsx)(s.$,{variant:"outline",onClick:()=>{o(!0),localStorage.setItem("cookie-consent","rejected"),t(!1),document.cookie="_ga=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",document.cookie="_ga_"+"G-NM49TWNRLT".replace("G-","")+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",document.cookie="_gid=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",document.cookie="ga_client_id=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"},disabled:a,className:"w-full sm:w-auto text-sm sm:text-base whitespace-nowrap",children:"Reject Analytics"}),(0,r.jsx)(s.$,{onClick:()=>{o(!0),localStorage.setItem("cookie-consent","accepted"),t(!1),window.location.reload()},disabled:a,className:"w-full sm:w-auto text-sm sm:text-base whitespace-nowrap bg-theme-indigo hover:bg-theme-indigo90",children:"Accept All Cookies"})]})]})})}):null}},5692:(e,t,a)=>{"use strict";a.d(t,{nD:()=>l,ub:()=>m,As:()=>c,$m:()=>d});var r=a(5155),n=a(2115),s=a(9012),i=a(5016);let o=e=>{let{size:t=15,color:a="#E96A14"}=e;return(0,r.jsx)("svg",{width:t,height:t,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M4 6L11 6L7.5 10.5L4 6Z",fill:a})})},l=s.bL,c=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.q7,{ref:t,className:(0,i.cn)("",a),...n})});c.displayName="AccordionItem";let d=n.forwardRef((e,t)=>{let{className:a,children:n,iconCss:l,size:c=24,...d}=e;return(0,r.jsx)(s.Y9,{className:"flex",children:(0,r.jsxs)(s.l9,{ref:t,className:(0,i.cn)("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:no-underline text-left group",a),...d,children:[n,(0,r.jsx)("span",{className:"transition-transform duration-300 group-data-[state=open]:rotate-180",children:(0,r.jsx)(o,{size:c})})]})})});d.displayName=s.l9.displayName;let m=n.forwardRef((e,t)=>{let{className:a,children:n,...o}=e;return(0,r.jsx)(s.UC,{ref:t,className:"overflow-hidden text-sm will-change-[height] data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...o,children:(0,r.jsx)("div",{className:(0,i.cn)("pb-4 pt-0",a),children:n})})});m.displayName=s.UC.displayName},5734:(e,t,a)=>{"use strict";a.d(t,{default:()=>i});var r=a(2115),n=a(8231),s=a(3017);function i(){return(0,r.useEffect)(()=>{(0,n.nW)();let e=e=>{(0,n.JE)(e.error,e.message)||(0,s.O)({area:"window.error",title:"Unhandled browser error",message:e.message||"Unhandled browser error",severity:"critical",error:e.error,details:{filename:e.filename,lineNumber:e.lineno,columnNumber:e.colno}})},t=e=>{let t=e.reason instanceof Error?e.reason:Error("string"==typeof e.reason?e.reason:"Unhandled promise rejection");(0,n.JE)(t,t.message)||(0,s.O)({area:"window.unhandledrejection",title:"Unhandled promise rejection",message:t.message,severity:"critical",error:t})};return window.addEventListener("error",e),window.addEventListener("unhandledrejection",t),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",t)}},[]),null}},5967:(e,t,a)=>{"use strict";a.d(t,{v:()=>n});let r=/^(javascript|data|vbscript):/i;function n(e){if(!e)return;let t=e.trim();if(!(!t||t.startsWith("//"))){if(t.startsWith("/")||t.startsWith("#"))return t;if(!r.test(t))try{let e=new URL(t);if("http:"===e.protocol||"https:"===e.protocol||"mailto:"===e.protocol||"tel:"===e.protocol)return t}catch(e){if(t.startsWith("mailto:")||t.startsWith("tel:"))return t}}}},6170:(e,t,a)=>{"use strict";a.d(t,{p:()=>i});var r=a(5155),n=a(2115),s=a(5016);let i=n.forwardRef(function(e,t){let{className:a,type:n,theme:i,...o}=e;return(0,r.jsx)("input",{ref:t,type:n,"data-slot":"input",className:(0,s.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 aria-invalid:border-destructive","dark"===i&&"selection:bg-theme-tangerine selection:text-theme-indigo focus-visible:border-gray-500 focus-visible:ring-0",a),...o})})},7003:(e,t,a)=>{"use strict";a.d(t,{$:()=>l,r:()=>o});var r=a(5155);a(2115);var n=a(2467),s=a(3101),i=a(5016);let o=(0,s.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function l(e){let{className:t,variant:a,size:s,asChild:l=!1,...c}=e,d=l?n.DX:"button";return(0,r.jsx)(d,{"data-slot":"button",className:(0,i.cn)(o({variant:a,size:s,className:t})),...c})}},7346:(e,t,a)=>{"use strict";a.d(t,{$:()=>o,F:()=>i});var r=a(5155);a(2115);var n=a(5841),s=a(5016);function i(e){let{className:t,children:a,...i}=e;return(0,r.jsxs)(n.bL,{"data-slot":"scroll-area",className:(0,s.cn)("relative",t),...i,children:[(0,r.jsx)(n.LM,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:a}),(0,r.jsx)(o,{}),(0,r.jsx)(n.OK,{})]})}function o(e){let{className:t,orientation:a="vertical",...i}=e;return(0,r.jsx)(n.VM,{"data-slot":"scroll-area-scrollbar",orientation:a,className:(0,s.cn)("flex touch-none p-px transition-colors select-none","vertical"===a&&"h-full w-2.5 border-l border-l-transparent","horizontal"===a&&"h-2.5 flex-col border-t border-t-transparent",t),...i,children:(0,r.jsx)(n.lr,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}},7588:(e,t,a)=>{"use strict";a.d(t,{a:()=>n});var r=a(2115);function n(){let[e,t]=r.useState(void 0);return r.useEffect(()=>{let e=window.matchMedia("(max-width: ".concat(767,"px)")),a=()=>{t(window.innerWidth<768)};return e.addEventListener("change",a),t(window.innerWidth<768),()=>e.removeEventListener("change",a)},[]),!!e}},7705:(e,t,a)=>{Promise.resolve().then(a.t.bind(a,1290,23)),Promise.resolve().then(a.bind(a,9626)),Promise.resolve().then(a.bind(a,3417)),Promise.resolve().then(a.bind(a,5734)),Promise.resolve().then(a.bind(a,9628)),Promise.resolve().then(a.bind(a,452)),Promise.resolve().then(a.bind(a,9943)),Promise.resolve().then(a.t.bind(a,5074,23)),Promise.resolve().then(a.bind(a,8720))},8231:(e,t,a)=>{"use strict";a.d(t,{JE:()=>i,nW:()=>o,oz:()=>s});let r="ukcsc:chunk-load-reload",n=/Loading chunk [\w.-]+ failed|ChunkLoadError|Failed to fetch dynamically imported module|error loading dynamically imported module|Importing a module script failed/i;function s(e,t){let a=[t,!e?"":"string"==typeof e?e:e instanceof Error?[e.name,e.message].filter(
1Boolean).join(" "):"object"==typeof e?[e.name,e.message].filter(e=>"string"==typeof e&&e.trim().length>0).join(" "):String(e)].filter(e=>"string"==typeof e&&e.trim().length>0).join(" ");return n.test(a)}function i(e,t){if(!s(e,t))return!1;try{if("1"===sessionStorage.getItem(r))return!1;sessionStorage.setItem(r,"1")}catch(e){}return window.location.reload(),!0}function o(){try{sessionStorage.removeItem(r)}catch(e){}}},9626:(e,t,a)=>{"use strict";a.d(t,{default:()=>i});var r=a(5155),n=a(8321);let s="G-NM49TWNRLT",i=function(){return s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.default,{src:"https://www.googletagmanager.com/gtag/js?id=".concat(s),strategy:"afterInteractive"}),(0,r.jsx)(n.default,{id:"google-analytics",strategy:"afterInteractive",children:"\n                    window.dataLayer = window.dataLayer || [];\n                    function gtag(){dataLayer.push(arguments);}\n                    gtag('js', new Date());\n                    \n                    // Check cookie consent and configure accordingly\n                    const consent = localStorage.getItem('cookie-consent');\n                    \n                    if (consent === 'accepted') {\n                        // Full analytics with consent - still privacy-focused\n                        gtag('config', '".concat(s,"', {\n                            anonymize_ip: false,\n                            allow_google_signals: true,\n                            allow_ad_personalization_signals: true,\n                            send_page_view: true\n                        });\n                    } else {\n                        // Anonymous analytics without consent (minimal data)\n                        gtag('config', '").concat(s,"', {\n                            anonymize_ip: true,\n                            allow_google_signals: false,\n                            allow_ad_personalization_signals: false,\n                            client_storage: 'none',\n                            send_page_view: true\n                        });\n                    }\n                ")})]}):null}},9628:(e,t,a)=>{"use strict";a.d(t,{default:()=>ee});var r=a(5155),n=a(2115),s=a(7394),i=a(5016);let o=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.bL,{ref:t,className:(0,i.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",a),...n})});o.displayName=s.bL.displayName;let l=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s._V,{ref:t,className:(0,i.cn)("aspect-square h-full w-full",a),...n})});l.displayName=s._V.displayName;let c=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.H4,{ref:t,className:(0,i.cn)("flex h-full w-full items-center justify-center rounded-full bg-muted",a),...n})});c.displayName=s.H4.displayName;var d=a(5692),m=a(7627),u=a(7937),p=a(5917),h=a(9051);let f=m.bL,x=m.l9,g=m.YJ;m.ZL,m.Pb,m.z6,n.forwardRef((e,t)=>{let{className:a,inset:n,children:s,...o}=e;return(0,r.jsxs)(m.ZP,{ref:t,className:(0,i.cn)("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",n&&"pl-8",a),...o,children:[s,(0,r.jsx)(u.A,{className:"ml-auto"})]})}).displayName=m.ZP.displayName,n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(m.G5,{ref:t,className:(0,i.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...n})}).displayName=m.G5.displayName;let b=n.forwardRef((e,t)=>{let{className:a,sideOffset:n=4,...s}=e;return(0,r.jsx)(m.ZL,{children:(0,r.jsx)(m.UC,{ref:t,sideOffset:n,className:(0,i.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...s})})});b.displayName=m.UC.displayName;let v=n.forwardRef((e,t)=>{let{className:a,inset:n,...s}=e;return(0,r.jsx)(m.q7,{ref:t,className:(0,i.cn)("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",n&&"pl-8",a),...s})});v.displayName=m.q7.displayName,n.forwardRef((e,t)=>{let{className:a,children:n,checked:s,...o}=e;return(0,r.jsxs)(m.H_,{ref:t,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:s,...o,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(m.VF,{children:(0,r.jsx)(p.A,{className:"h-4 w-4"})})}),n]})}).displayName=m.H_.displayName,n.forwardRef((e,t)=>{let{className:a,children:n,...s}=e;return(0,r.jsxs)(m.hN,{ref:t,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...s,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(m.VF,{children:(0,r.jsx)(h.A,{className:"h-2 w-2 fill-current"})})}),n]})}).displayName=m.hN.displayName;let w=n.forwardRef((e,t)=>{let{className:a,inset:n,...s}=e;return(0,r.jsx)(m.JU,{ref:t,className:(0,i.cn)("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",a),...s})});w.displayName=m.JU.displayName;let j=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(m.wv,{ref:t,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",a),...n})});j.displayName=m.wv.displayName;var y=a(4637),N=a(3101),k=a(2022);function C(e){let{className:t,children:a,viewport:n=!0,...s}=e;return(0,r.jsxs)(y.bL,{"data-slot":"navigation-menu","data-viewport":n,className:(0,i.cn)("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",t),...s,children:[a,n&&(0,r.jsx)(I,{})]})}function S(e){let{className:t,...a}=e;return(0,r.jsx)(y.B8,{"data-slot":"navigation-menu-list",className:(0,i.cn)("group flex flex-1 list-none items-center justify-center gap-1",t),...a})}function A(e){let{className:t,...a}=e;return(0,r.jsx)(y.q7,{"data-slot":"navigation-menu-item",className:(0,i.cn)("relative",t),...a})}let E=(0,N.F)("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-transparent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");function _(e){let{className:t,children:a,...n}=e;return(0,r.jsxs)(y.l9,{"data-slot":"navigation-menu-trigger",className:(0,i.cn)(E(),"group",t),...n,children:[a,(0,r.jsx)(k.default,{src:"/design/nav-dropdown.png",height:12,width:11,alt:"Dropdown Icon",className:"relative -mt-[2px] ml-2 transition duration-100 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function z(e){let{className:t,...a}=e;return(0,r.jsx)(y.UC,{"data-slot":"navigation-menu-content",className:(0,i.cn)("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto","group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",t),...a})}function I(e){let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,i.cn)("absolute top-full left-0 isolate z-50 flex justify-center"),children:(0,r.jsx)(y.LM,{"data-slot":"navigation-menu-viewport",className:(0,i.cn)("origin-top-center bg-none text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-none border-none shadow-none md:w-[var(--radix-navigation-menu-viewport-width)]",t),...a})})}var L=a(7346),P=a(7588),T=a(6651),R=a(9540),M=a(4054),W=a(5993),O=a(69),U=a(5867),$=a(6551),D=a(8435),F=a(4926),q=a(5229),J=a(2619),Z=a.n(J),G=a(1622),B=a(7003),H=a(6170),V=a(9943),Y=a(63);let K=e=>{var t;let{columns:a,ctaLink:s="#",ctaText:m="GET IN TOUCH"}=e,{push:u}=(0,Y.useRouter)(),{user:p,logout:h}=((0,P.a)(),(0,V.A)()),y=(null==p?void 0:p.memberType)==="professional"||(null==p?void 0:p.memberType)==="both"||(null==p||null==(t=p.roles)?void 0:t.includes("professional")),N=(0,Y.usePathname)(),E="/search"===N||(null==N?void 0:N.startsWith("/search/")),[I,J]=n.useState(!1),[K,Q]=n.useState(!1),[X,ee]=n.useState(""),et=n.useRef(null),ea=e=>{let t=e.trim();if(Q(!1),ee(""),t.length<2)return void u("/search");u("/search?q=".concat(encodeURIComponent(t)))},er=()=>{J(!1),Q(!0)},en=()=>{Q(!1),ee("")};return n.useEffect(()=>{I&&J(!1),Q(!1),ee("")},[N]),n.useEffect(()=>{if(K){var e;null==(e=et.current)||e.focus()}},[K]),n.useEffect(()=>{I||K?document.body.classList.add("overflow-hidden"):document.body.classList.remove("overflow-hidden");let e=e=>{"Escape"===e.key&&(K?en():J(!1))};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e),document.body.classList.remove("overflow-hidden")}},[I,K]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"text-white flex items-center py-6 absolute top-0 left-0 right-0 w-full z-50 max-w-[83rem] mx-auto",children:[(0,r.jsx)(Z(),{href:"/",className:"font-bold px-4 sm:px-6 whitespace-nowrap flex items-center shrink-0",children:(0,r.jsx)(k.default,{src:"/design/logo.png",alt:"The UK Cyber Security Council logo",width:140,height:40,priority:!0,className:"inline-block mr-2 object-contain h-8 w-auto sm:h-10 max-w-[140px] shrink-0"})}),(0,r.jsxs)("div",{className:"ml-auto pr-4 xl:hidden flex items-center gap-1",children:[!E&&(0,r.jsx)(B.$,{type:"button",variant:"ghost",size:"icon","aria-label":"Open search","aria-expanded":K,className:"text-white hover:bg-transparent hover:text-theme-tangerine",onClick:er,children:(0,r.jsx)(T.A,{className:"h-6 w-6"})}),(0,r.jsx)(B.$,{variant:"ghost",size:"icon","aria-label":"Open menu","aria-controls":"mobile-nav","aria-expanded":I,className:"text-white hover:bg-white/10",onClick:()=>J(!0),children:(0,r.jsx)(R.A,{className:"h-6 w-6"})})]}),(0,r.jsx)(C,{className:"ml-auto hidden xl:flex flex-none max-w-none",viewport:!1,children:(0,r.jsxs)(S,{className:"flex flex-nowrap items-center gap-2 xl:gap-3 2xl:gap-4 px-3 2xl:px-4 flex-none",children:[a.map(e=>(0,r.jsx)(A,{className:"relative shrink-0",children:e.children&&e.children.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_,{className:"text-white hover:text-white focus:text-white data-[state=open]:text-white font-medium bg-transparent hover:bg-transparent data-[state=open]:hover:bg-transparent data-[state=open]:focus:bg-transparent data-[state=open]:bg-transparent px-3 2xl:px-4 text-sm",children:e.title}),(0,r.jsx)(z,{className:"!bg-theme-indigo !text-white min-w-[400px] rounded-md p-2 shadow-lg !border-0 !ring-0",children:(0,r.jsx)("ul",{className:"flex flex-col space-y-1 min-w-[400px]",children:e.children.map(e=>{var t;return(0,r.jsx)(Z(),{href:null!=(t=e.url)?t:"",className:"block px-4 py-2 hover:bg-white/10 rounded-md whitespace-nowrap text-sm",children:(0,r.jsx)("span",{children:e.title})},e.id)})})})]}):(e.url,(0,r.jsx)(Z(),{href:e.url||"#",className:"text-white text-sm font-medium px-3 2xl:px-4 cursor-pointer whitespace-nowrap",children:""+e.title}))},e.id)),!E&&(0,r.jsx)(B.$,{type:"button",variant:"ghost",size:"icon","aria-label":"Open search","aria-expanded":K,className:"text-white hover:bg-transparent hover:text-theme-tangerine shrink-0",onClick:er,children:(0,r.jsx)(T.A,{className:"h-5 w-5"})}),(0,r.jsx)("div",{className:"shrink-0",children:(0,r.jsx)(G.default,{ctaLink:s,ctaText:m})}),p&&(0,r.jsxs)(f,{children:[(0,r.jsx)(x,{asChild:!0,className:"border-none shrink-0",children:(0,r.jsxs)(B.$,{size:"lg",className:"data-[state=open]:bg-theme-indigo90 data-[state=open]:text-white/90 border-none shrink-0",children:[(0,r.jsxs)(o,{className:"h-8 w-8 rounded-full bg-theme-indigo90",children:[(0,r.jsx)(l,{src:null==p?void 0:p.avatar,alt:(null==p?void 0:p.name)||"User"}),(0,r.jsx)(c,{className:"rounded-full bg-theme-indigo90",children:(0,i.l_)((null==p?void 0:p.name)||"Member")})]}),(0,r.jsx)(M.A,{className:"ml-auto size-4"})]})}),(0,r.jsxs)(b,{className:"w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg",side:"bottom",align:"end",sideOffset:4,children:[(0,r.jsx)(w,{className:"p-0 font-normal",children:(0,r.jsxs)("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:[(0,r.jsxs)(o,{className:"h-8 w-8 rounded-lg bg-theme-indigo90",children:[(0,r.jsx)(l,{src:(null==p?void 0:p.avatar)||"",alt:(null==p?void 0:p.name)||"User"}),(0,r.jsx)(c,{className:"rounded-lg bg-theme-indigo90 text-white",children:(0,i.l_)((null==p?void 0:p.name)||"M")})]}),(0,r.jsxs)("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[(0,r.jsx)("span",{className:"truncate font-semibold",children:null==p?void 0:p.name}),(0,r.jsx)("span",{className:"truncate text-xs",children:null==p?void 0:p.email})]})]})}),(0,r.jsx)(j,{}),(0,r.jsxs)(g,{children:["/members"!==N&&(0,r.jsxs)(v,{className:"cursor-pointer",onClick:()=>u("/members"),children:[(0,r.jsx)(W.A,{}),"Member Area"]}),(0,r.jsxs)(v,{className:"cursor-pointer",onClick:()=>u("/members/profile"),children:[(0,r.jsx)(O.A,{}),"Manage Account"]}),(0,r.jsxs)(v,{className:"cursor-pointer",onClick:()=>u("/members/change-password"),children:[(0,r.jsx)(U.A,{}),"Change Password"]}),(0,r.jsxs)(v,{className:"cursor-pointer",onClick:()=>u("/members/ethical-declaration"),children:[(0,r.jsx)($.A,{}),"Ethical Declaration"]}),y&&(0,r.jsxs)(v,{className:"cursor-pointer",onClick:()=>u("/members/manage-titles"),children:[(0,r.jsx)(D.A,{}),"View Your Professional Titles"]})]}),(0,r.jsx)(j,{}),(0,r.jsxs)(v,{onClick:()=>{h().then(()=>u("/members/login"))},children:[(0,r.jsx)(F.A,{}),"Log out"]})]})]})]})})]}),(0,r.jsxs)("div",{role:K?"dialog":void 0,"aria-modal":!!K||void 0,"aria-label":K?"Search the site":void 0,"aria-hidden":!K,inert:!K,className:"fixed inset-0 z-[70] ".concat(K?"":"pointer-events-none invisible"),children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-black/50 transition-opacity duration-300 ".concat(K?"opacity-100":"opacity-0"),onClick:en,"aria-hidden":"true"}),(0,r.jsx)("div",{className:"absolute top-0 left-0 right-0 h-1/2 bg-theme-indigo90 text-white shadow-xl transition-transform duration-300 ease-out ".concat(K?"translate-y-0":"-translate-y-full"),children:(0,r.jsxs)("div",{className:"h-full max-w-[83rem] mx-auto px-6 md:px-10 flex flex-col",children:[(0,r.jsx)("div",{className:"flex items-center justify-end pt-6",children:(0,r.jsx)(B.$,{type:"button",variant:"ghost",size:"icon","aria-label":"Close search",className:"text-white hover:bg-transparent hover:text-theme-tangerine",onClick:en,children:(0,r.jsx)(q.A,{className:"h-6 w-6"})})}),(0,r.jsxs)("form",{className:"flex-1 flex flex-col justify-center gap-6 pb-10",onSubmit:e=>{e.preventDefault(),ea(X)},children:[(0,r.jsx)("label",{htmlFor:"site-search-input",className:"text-sm uppercase tracking-widest text-white/70",children:"Search"}),(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 items-start sm:items-center",children:[(0,r.jsxs)("div",{className:"relative flex-1 w-full",children:[(0,r.jsx)(T.A,{className:"pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 h-6 w-6 text-theme-tangerine","aria-hidden":"true"}),(0,r.jsx)(H.p,{id:"site-search-input",ref:et,theme:"dark",type:"search",value:X,onChange:e=>ee(e.target.value),placeholder:"What are you looking for?","aria-label":"Search the site",autoComplete:"off",className:"h-14 roun
1ded-none border-0 border-b border-white/30 bg-transparent pl-10 text-xl md:text-2xl text-white caret-white placeholder:text-white/40 focus-visible:border-theme-tangerine focus-visible:ring-theme-tangerine/40 focus-visible:ring-[3px]"})]}),(0,r.jsx)("div",{className:"w-fit shrink-0",children:(0,r.jsx)(G.default,{ctaText:"Search",bgColor:"bg-theme-tangerine",textColor:"text-theme-indigo",borderColor:"bg-theme-tangerine",size:"wide",onClick:e=>{e.preventDefault(),ea(X)}})})]})]})]})})]}),(0,r.jsxs)("div",{id:"mobile-nav",role:"dialog","aria-modal":"true",className:"xl:hidden fixed inset-0 z-[60] ".concat(I?"":"pointer-events-none"),children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-black/50 transition-opacity duration-300 ".concat(I?"opacity-100":"opacity-0"),onClick:()=>J(!1),"aria-hidden":"true"}),(0,r.jsxs)("div",{className:"absolute right-0 top-0 h-full w-[85%] max-w-sm bg-theme-indigo text-white shadow-xl transition-transform duration-300 ".concat(I?"translate-x-0":"translate-x-full"),children:[(0,r.jsxs)("div",{className:"flex items-center justify-between px-6 py-5 border-b border-white/10",children:[(0,r.jsx)(Z(),{href:"/",className:"flex items-center gap-2",onClick:()=>J(!1),children:(0,r.jsx)(k.default,{src:"/design/logo.png",priority:!0,alt:"UKCSC",width:120,height:34,className:"h-auto"})}),(0,r.jsx)(B.$,{variant:"ghost",size:"icon","aria-label":"Close menu",className:"text-white hover:bg-white/10",onClick:()=>J(!1),children:(0,r.jsx)(q.A,{className:"h-6 w-6"})})]}),(0,r.jsx)(L.F,{className:"h-[calc(100%-4.25rem)]",children:(0,r.jsxs)("div",{className:"px-6 py-4",children:[!E&&(0,r.jsxs)(B.$,{type:"button",variant:"secondary",className:"mb-4 w-full justify-start",onClick:er,children:[(0,r.jsx)(T.A,{className:"mr-2 h-4 w-4"})," Search the site"]}),(null==N?void 0:N.startsWith("/members"))&&p&&(0,r.jsxs)("div",{className:"mb-4 rounded-lg bg-white/5 p-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsxs)(o,{className:"h-10 w-10 rounded-full bg-theme-indigo90",children:[(0,r.jsx)(l,{src:(null==p?void 0:p.avatar)||"",alt:(null==p?void 0:p.name)||"User"}),(0,r.jsx)(c,{className:"rounded-full bg-theme-indigo90",children:(0,i.l_)((null==p?void 0:p.name)||"M")})]}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("p",{className:"text-sm font-semibold truncate",children:null==p?void 0:p.name}),(0,r.jsx)("p",{className:"text-xs text-white/80 truncate",children:null==p?void 0:p.email})]})]}),(0,r.jsxs)("div",{className:"mt-3 grid grid-cols-1 gap-2",children:["/members"!==N&&(0,r.jsxs)(B.$,{variant:"secondary",className:"justify-start",onClick:()=>{J(!1),u("/members")},children:[(0,r.jsx)(O.A,{className:"mr-2 h-4 w-4"})," Dashboard"]}),(0,r.jsxs)(B.$,{variant:"secondary",className:"justify-start",onClick:()=>{J(!1),u("/members/profile")},children:[(0,r.jsx)(O.A,{className:"mr-2 h-4 w-4"})," Account"]}),(0,r.jsxs)(B.$,{variant:"secondary",className:"justify-start",onClick:()=>{J(!1),u("/members/change-password")},children:[(0,r.jsx)(U.A,{className:"mr-2 h-4 w-4"})," Change Password"]}),(0,r.jsxs)(B.$,{variant:"secondary",className:"justify-start",onClick:()=>{J(!1),u("/members/ethical-declaration")},children:[(0,r.jsx)($.A,{className:"mr-2 h-4 w-4"})," Ethical Declaration"]}),y&&(0,r.jsxs)(B.$,{variant:"secondary",className:"justify-start",onClick:()=>{J(!1),u("/members/manage-titles")},children:[(0,r.jsx)(D.A,{className:"mr-2 h-4 w-4"})," View Your Professional Titles"]}),(0,r.jsxs)(B.$,{variant:"destructive",className:"justify-start",onClick:()=>{J(!1),h().then(()=>u("/members/login"))},children:[(0,r.jsx)(F.A,{className:"mr-2 h-4 w-4"})," Log out"]})]})]}),(0,r.jsx)("nav",{className:"space-y-2",children:(0,r.jsx)(d.nD,{type:"single",collapsible:!0,className:"w-full",children:a.map(e=>{if(e.children&&e.children.length>0){var t;return(0,r.jsxs)(d.As,{value:"mobile-".concat(e.id),className:"border-b border-white/10",children:[(0,r.jsx)(d.$m,{className:"px-1 py-3 text-base font-medium",children:e.title}),(0,r.jsx)(d.ub,{className:"pb-3",children:(0,r.jsx)("div",{className:"pl-2 flex flex-col",children:null==(t=e.children)?void 0:t.map(e=>{var t;return(0,r.jsx)(Z(),{href:null!=(t=e.url)?t:"#",className:"px-2 py-2 rounded hover:bg-white/10",onClick:()=>J(!1),children:e.title},"mobile-".concat(e.id))})})})]},"mobile-".concat(e.id))}return(0,r.jsx)("div",{className:"border-b border-white/10",children:(0,r.jsx)(Z(),{href:e.url||"#",className:"block px-1 py-3 text-base font-medium hover:bg-white/10 rounded",onClick:()=>J(!1),children:e.title})},"mobile-".concat(e.id))})})}),(0,r.jsx)("div",{className:"mt-6",children:(0,r.jsx)(G.default,{ctaLink:s,ctaText:m})})]})})]})]})]})}
1,Q="nav_columns_v1",X="nav_settings_v1",ee=()=>{let[e,t]=(0,n.useState)([]),[a,s]=(0,n.useState)(null),[i,o]=(0,n.useState)(!0),[l,c]=(0,n.useState)("");(0,n.useEffect)(()=>{try{{let e=Date.now(),a=sessionStorage.getItem(Q);if(a)try{let r=JSON.parse(a);(null==r?void 0:r.data)&&Array.isArray(r.data)&&e-(r.ts||0)<36e5&&t(r.data)}catch(e){}let r=sessionStorage.getItem(X);if(r)try{let t=JSON.parse(r);(null==t?void 0:t.data)&&e-(t.ts||0)<36e5&&s(t.data)}catch(e){}if(sessionStorage.getItem(Q)&&sessionStorage.getItem(X)){let t=(()=>{try{let t=JSON.parse(sessionStorage.getItem(Q));return t&&e-(t.ts||0)<36e5}catch(e){return!1}})(),a=(()=>{try{let t=JSON.parse(sessionStorage.getItem(X));return t&&e-(t.ts||0)<36e5}catch(e){return!1}})();t&&a&&o(!1)}}}catch(e){}let e=async()=>{try{let e=await fetch("/api/settings"),{settings:t}=await e.json();s(t);try{sessionStorage.setItem(X,JSON.stringify({data:t,ts:Date.now()}))}catch(e){}}catch(e){c("An error occurred while fetching settings")}finally{o(!1)}};(async()=>{try{let e=await fetch("/api/navigation/column?withchildren=true"),a=await e.json();if(e.ok){t(a.columns);try{sessionStorage.setItem(Q,JSON.stringify({data:a.columns,ts:Date.now()}))}catch(e){}}else c(a.error||"Failed to fetch navigation")}catch(e){c("An error occurred while fetching navigation")}finally{o(!1)}})(),e()},[]);let d=!i&&!l&&e.length>0&&a;return((0,n.useEffect)(()=>{d&&(window.__navReady=!0,window.dispatchEvent(new Event("nav-ready")))},[d]),d)?(0,r.jsx)(K,{columns:e,ctaLink:null==a?void 0:a.navCtaUrl,ctaText:null==a?void 0:a.navCtaText}):null}},9943:(e,t,a)=>{"use strict";a.d(t,{A:()=>d,AuthProvider:()=>c});var r=a(5155),n=a(883),s=a(63),i=a(2115);let o=(0,i.createContext)(null);function l(){try{localStorage.removeItem("user")}catch(e){}}function c(e){let{children:t}=e,[a,c]=(0,i.useState)(null),[d,m]=(0,i.useState)(!0),u=(0,s.useRouter)(),p=(0,s.usePathname)(),[h,f]=(0,i.useState)(null),x=(null==p?void 0:p.startsWith("/members"))&&!(null==p?void 0:p.startsWith("/members/login"))&&!(null==p?void 0:p.startsWith("/members/reset-password")),g=(0,i.useCallback)(()=>{c(null),f(null),l(),x&&u.push("/members/login")},[x,u]),b=(0,i.useCallback)(e=>{c(e),f("session")},[]),v=async()=>{try{l();let e=await (0,n.vD)();if(!(null==e?void 0:e.email))return void(x?g():(c(null),f(null),l()));b(e)}catch(e){if(e instanceof Error&&"No refresh token"===e.message)return void g();x&&g()}finally{m(!1)}};(0,i.useEffect)(()=>{v()},[]);let w=async()=>{try{await (0,n.ri)()}finally{c(null),f(null),l()}},j=async(e,t)=>{let a=await (0,n.iy)(e,t);if(a.requiresMfa)return a;let r=await (0,n.vD)();return(null==r?void 0:r.email)&&b(r),r},y=async(e,t)=>{await (0,n.j2)(e,t);let a=await (0,n.vD)();return(null==a?void 0:a.email)&&b(a),a},N=async(e,t,a)=>(0,n.qb)(e,t,a),k=(0,i.useCallback)(async()=>{try{let e=await (0,n.vD)();if(!(null==e?void 0:e.email))return x&&g(),null;return b(e),e}catch(e){if(e instanceof Error&&["Refresh failed","No refresh token"].includes(e.message))return g(),null;throw e}},[b,x,g]),C=(0,i.useCallback)(async e=>{try{let e=await k();if(null==e?void 0:e.email)return}catch(e){}let t={...a,...e};(null==t?void 0:t.email)&&b(t)},[b,k,a]);return(0,r.jsx)(o.Provider,{value:{user:a,loading:d,loginAsMember:j,verifyMfaCode:y,registerMember:N,logout:w,token:h,setUserProfile:C,refreshUser:k},children:t})}let d=()=>{let e=(0,i.useContext)(o);if(!e)throw Error("useAuth must be used within AuthProvider");return e}}},e=>{e.O(0,[1741,7e3,3380,2162,6087,4199,176,3642,9012,5841,1576,9160,8441,1255,7358],()=>e(e.s=7705)),_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.