1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,835740,e=>{"use strict";let t=(0,e.i(297590).default)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["FileText",0,t],835740)},488444,e=>{"use strict";var t=e.i(656447);e.s(["getMediaUrl",0,(e,a)=>{if(!e)return"";if(a&&""!==a&&(a=encodeURIComponent(a)),e.startsWith("http://")||e.startsWith("https://"))return a?`${e}?${a}`:e;let r=(0,t.getClientSideURL)();return a?`${r}${e}?${a}`:`${r}${e}`}])},870937,e=>{"use strict";var t=e.i(116069),a=e.i(530941),r=e.i(198914),i=e.i(29821),s=e.i(488444);let{breakpoints:l}={breakpoints:{"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640}};e.s(["ImageMedia",0,e=>{let n,o,c,{alt:d,fill:u,pictureClassName:h,imgClassName:m,priority:x,resource:p,size:g,src:f,loading:b,onLoad:v}=e,[y,w]=(0,i.useState)(!0),j=(0,i.useRef)(null),k=(0,i.useRef)(null),N=(0,i.useRef)(null),A=(0,i.useRef)(0),C=d,z=f||null;if(!z&&p&&"object"==typeof p){let{alt:e,height:t,url:a,width:r}=p;n=r,o=t,C=e||"",c=p.blurDataURL??void 0;let i=p.updatedAt;z=(0,s.getMediaUrl)(a,i)}let M="string"==typeof z?z:z?.src,T=(0,i.useCallback)(()=>{j.current&&(clearTimeout(j.current),j.current=null)},[]),P=(0,i.useCallback)((e=0)=>{T(),j.current=setTimeout(()=>{w(!1),j.current=null},Math.max(e-("u">typeof performance?performance.now()-A.current:0),0))},[T]),S=(0,i.useCallback)(e=>{let t=e??k.current,a=t?.currentSrc||t?.src||M;a&&N.current!==a&&(N.current=a,P(180),v?.())},[P,v,M]),R=(0,i.useCallback)(e=>{let t=e??k.current,a=t?.currentSrc||t?.src||M;a&&(N.current=a),P()},[P,M]);(0,i.useEffect)(()=>{T(),N.current=null,A.current="u">typeof performance?performance.now():Date.now(),w(!0);let e=k.current;e?.complete&&(e.naturalWidth>0?S(e):R(e))},[T,R,S,M]),(0,i.useEffect)(()=>()=>{T()},[T]);let $=(0,i.useCallback)(e=>{k.current=e,e?.complete&&(e.naturalWidth>0?S(e):R(e))},[R,S]);if(!z)return null;let E=g||Object.entries(l).map(([,e])=>`(max-width: ${e}px) ${2*e}w`).join(", "),U="object"==typeof z&&z&&"blurDataURL"in z?z.blurDataURL:void 0,I=c||U||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAL0lEQVQYlWN49+7dfwYGBgYmBgoAEwMDAyMDAwMDIyMjAyMTAwMDEwMFgGITAQAtjwMh8oCTDgAAAABJRU5ErkJggg==";return(0,t.jsxs)("picture",{className:(0,a.cn)("relative block overflow-hidden bg-white",u?"h-full w-full":"w-fit",h),children:[(0,t.jsx)("span",{"aria-hidden":"true",className:(0,a.cn)("pointer-events-none absolute inset-0 bg-cover bg-center bg-no-repeat transition-opacity duration-500 ease-out",y?"opacity-100":"opacity-0"),style:{backgroundImage:`url("${I}")`,filter:"blur(16px)",transform:"scale(1.08)"}}),(0,t.jsx)(r.default,{alt:C||"",className:(0,a.cn)("relative z-[1]",!u&&"max-w-full h-auto",m),fill:u,height:u?void 0:o,placeholder:"empty",priority:x,quality:75,loading:b||(x?void 0:"lazy"),sizes:E,src:z,width:u?void 0:n,ref:$,onLoad:e=>S(e.currentTarget),onError:e=>R(e.currentTarget)},M)]})}],870937)},122790,e=>{"use strict";var t=e.i(116069),a=e.i(530941),r=e.i(488444);e.s(["VideoMedia",0,e=>{let{onClick:i,resource:s,videoClassName:l,videoMode:n="background"}=e;if(s&&"object"==typeof s){let{alt:e,filename:o,mimeType:c,updatedAt:d,url:u}=s,h=(0,r.getMediaUrl)(u,d);if(!h)return null;let m="player"===n;return(0,t.jsxs)("video",{"aria-label":e||o||"Video",autoPlay:!m,className:(0,a.cn)(l),controls:m,loop:!m,muted:!m,onClick:i,playsInline:!0,preload:m?"metadata":"auto",children:[(0,t.jsx)("source",{src:h,type:c||void 0}),(0,t.jsx)("a",{href:h,children:"Download the video"})]})}return null}])},151641,e=>{"use strict";var t=e.i(116069),a=e.i(29821),r=e.i(530941),i=e.i(870937),s=e.i(122790);e.s(["Media",0,e=>{let{className:l,fill:n,htmlElement:o="div",resource:c}=e,d="object"==typeof c&&c?.mimeType?.includes("video"),u=o||a.Fragment;return(0,t.jsx)(u,{...null!==o?{className:(0,r.cn)(n&&"h-full w-full",l)}:{},children:d?(0,t.jsx)(s.VideoMedia,{...e}):(0,t.jsx)(i.ImageMedia,{...e})})}])},634855,e=>{"use strict";var t=e.i(116069);let a=(0,e.i(297590).default)("ImageOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83",key:"1bzlo9"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21",key:"1q0aeu"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15",key:"5mozeu"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",key:"mmje98"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9",key:"43el77"}]]);var r=e.i(530941);e.s(["ImageUnavailablePlaceholder",0,({className:e,iconClassName:i})=>(0,t.jsx)("div",{className:(0,r.cn)("absolute inset-0 flex items-center justify-center bg-gradient-to-br from-zinc-100 to-zinc-50 dark:from-zinc-800 dark:to-zinc-900",e),children:(0,t.jsx)("div",{className:"flex h-20 w-20 items-center justify-center rounded-full bg-accent/10",children:(0,t.jsx)(a,{className:(0,r.cn)("h-8 w-8 text-accent opacity-50",i)})})})],634855)},718358,e=>{"use strict";
1e.s(["filterPublicCategories",0,function(e){return e&&Array.isArray(e)?e.filter(e=>{if("object"!=typeof e||null===e)return!1;let t=e.type;return"public"===t||null==t}).map(e=>e):[]}])},208509,e=>{"use strict";let t=(0,e.i(297590).default)("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);e.s(["Hash",0,t],208509)},746028,e=>{"use strict";var t=e.i(116069),a=e.i(54253),r=e.i(530941),i=e.i(151641),s=e.i(634855),l=e.i(829441),n=e.i(718358),o=e.i(863135),c=e.i(208509);let d=(0,e.i(297590).default)("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);e.s(["BentoCard",0,function({doc:e,relationTo:u,showCategories:h,variant:m="standard",className:x}){let{slug:p,title:g,content:f,meta:b,type:v,publishedAt:y,sourcePublishedAt:w}=e,j=(0,n.filterPublicCategories)(e.categories),{description:k,image:N}=b||{},A=j&&j.length>0,C="featured"===m,z="list"===m,M="sidebar"===m,T=M?80:C?150:120,P=k||function(e,t){if(!e?.root)return"";let a=e=>"object"==typeof e&&null!==e,r=e=>a(e)?"string"==typeof e.text?e.text:Array.isArray(e.children)?e.children.map(r).filter(Boolean).join(" "):a(e.format)?r(e.format):"":"",i=r(e.root);return i=i.replace(/\s+/g," ").trim(),t&&i.length>t&&(i=i.substring(0,t).trim()+"..."),i}(f,T),S=P?.replace(/\s/g," "),R=S?S.length>T?S.substring(0,T).trim()+"...":S:null,$=v&&p&&("Blog"===v||"Programme"===v)?(0,l.getPostPath)(v,p,y,w):"categories"===u&&p?`/topics/${p}`:"posts"===u&&p?(0,l.getPostPath)("Blog",p,y,w):`/${u||""}/${p}`,E=N&&"string"!=typeof N;return M?(0,t.jsxs)(a.default,{href:$,className:(0,r.cn)("group flex gap-3 items-start",x),children:[(0,t.jsx)("div",{className:"relative w-16 h-16 flex-shrink-0 rounded-lg overflow-hidden bg-muted",children:E?(0,t.jsx)(i.Media,{resource:N,fill:!0,size:"64px",className:"w-full h-full",imgClassName:"object-cover w-full h-full transition-transform duration-300 group-hover:scale-105"}):(0,t.jsx)(s.ImageUnavailablePlaceholder,{className:"w-full h-full"})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("h4",{className:"text-sm font-medium leading-tight line-clamp-2 text-zinc-900 dark:text-zinc-100 group-hover:text-accent transition-colors duration-200",children:g}),R&&(0,t.jsx)("p",{className:"text-xs text-zinc-500 dark:text-zinc-400 line-clamp-2 mt-1 leading-relaxed",children:R})]})]}):(0,t.jsx)("div",{className:(0,r.cn)("h-full overflow-hidden rounded-2xl","bg-white dark:bg-zinc-900","border border-zinc-200 dark:border-zinc-800","shadow-sm hover:shadow-lg","transition-[transform,shadow,border-color] duration-300 ease-out","hover:border-accent/50 hover:-translate-y-1.5",C&&"md:col-span-2",x),children:(0,t.jsx)(a.default,{href:$,className:"block h-full group",children:(0,t.jsxs)("article",{className:(0,r.cn)("relative h-full",z?"flex flex-col md:flex-row md:h-48 lg:h-52":"flex flex-col"),children:[(0,t.jsxs)("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none z-10",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-accent/10 via-trans
1parent to-accent/5"}),(0,t.jsx)("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full",style:{background:"radial-gradient(600px circle at center, hsl(var(--accent) / 0.12), transparent 50%)"}})]}),(0,t.jsxs)("div",{className:(0,r.cn)("relative overflow-hidden bg-muted/20",z?"w-full h-48 md:w-64 md:h-full lg:w-80 shrink-0 border-b md:border-b-0 md:border-r border-zinc-100 dark:border-zinc-800":"w-full flex-1",!z&&(C?"min-h-56 md:min-h-64":"min-h-44")),children:[E?(0,t.jsxs)("div",{className:"absolute inset-0",children:[(0,t.jsx)(i.Media,{resource:N,fill:!0,size:"(min-width: 1024px) 600px, 100vw",className:"w-full h-full",imgClassName:"object-cover w-full h-full transition-transform duration-500 group-hover:scale-105"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/20 via-transparent to-transparent"})]}):(0,t.jsx)(s.ImageUnavailablePlaceholder,{}),(0,t.jsx)("div",{className:"absolute top-4 right-4 z-10",children:(0,t.jsx)("div",{className:"w-10 h-10 rounded-full bg-white dark:bg-zinc-800 shadow-lg flex items-center justify-center opacity-0 group-hover:opacity-100 scale-75 group-hover:scale-100 transition-[opacity,transform] duration-300 border border-zinc-200 dark:border-zinc-700",children:(0,t.jsx)(o.ArrowUpRight,{className:"w-4 h-4 text-accent"})})}),C&&(0,t.jsx)("div",{className:"absolute top-4 left-4 z-10",children:(0,t.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-accent text-accent-foreground text-xs font-semibold shadow-lg",children:[(0,t.jsx)(d,{className:"w-3 h-3"}),"Featured"]})}),h&&A&&(0,t.jsx)("div",{className:(0,r.cn)("absolute z-10 flex flex-wrap gap-1.5",z?"top-3 left-3":"bottom-3 left-3 right-3"),children:j?.slice(0,3).map((e,a)=>{let r=e?.title||"Untitled";return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full bg-white/95 dark:bg-zinc-950/85 shadow-sm shadow-black/[0.03] text-[10px] font-medium uppercase tracking-wide text-zinc-700 dark:text-zinc-200 max-w-[120px] truncate",title:r,children:[(0,t.jsx)(c.Hash,{className:"w-3 h-3 text-accent shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:r})]},a)})})]}),(0,t.jsxs)("div",{className:(0,r.cn)("p-5 bg-white dark:bg-zinc-900 flex flex-col",z&&"flex-1"),children:[(0,t.jsx)("h3",{className:(0,r.cn)("font-bold leading-snug text-zinc-900 dark:text-zinc-100 group-hover:text-accent transition-colors duration-200",C?"text-xl md:text-2xl":"text-lg",z&&"mb-2"),children:g}),R&&(0,t.jsx)("p",{className:(0,r.cn)("mt-2 text-sm text-zinc-600 dark:text-zinc-400 leading-relaxed",z&&"md:line-clamp-none"),children:R})]}),(0,t.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-1 bg-gradient-to-r from-transparent via-accent/50 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"})]})})})}],746028)},926413,e=>{"use strict";var t=e.i(903264),a=e.i(29821);e.s(["SetAdminContext",0,({collection:e,id:r})=>{let{setAdminContext:i,clearAdminContext:s}=(0,t.useAdminBar)();return(0,a.useEffect)(()=>(i({collection:e,id:r}),()=>s()),[e,r,i,s]),null}])},690514,e=>{"use strict";let t=(0,e.i(297590).default)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);e.s(["Search",0,t],690514)},100712,e=>{"use strict";let t=(0,e.i(297590).default)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,t],100712)},622453,725550,e=>{"use strict";var t=e.i(116069),a=e.i(530941),r=e.i(690514),i=e.i(835740),s=e.i(297590);let l=(0,s.default)("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]),n=(0,s.default)("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);e.s(["Layers",0,n],725550);let o=(0,s.default)("Compass",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76",key:"m9r19z"}]]),c=(0,a.cn)("size-12 grid place-items-center rounded-xl","bg-white dark:bg-zinc-900","border border-zinc-200 dark:border-zinc-800","shadow-lg ring-1 ring-black/5 dark:ring-white/5","transition duration-500 group-hover:duration-200");e.s(["EmptyState",0,({label:e,searchQuery:s,searchLabel:d,icons:u})=>{let h=!!s,[m,x,p]=u||(h?[r.Search,i.FileText,o]:[n,i.FileText,l]);return(0,t.jsxs)("div",{className:"py-20 flex flex-col items-center group cursor-default",role:"status","aria-live":"polite",children:[(0,t.jsxs)("div",{className:"flex justify-center isolate mb-8",children:[(0,t.jsx)("div",{className:(0,a.cn)(c,"relative left-2.5 top-1.5 -rotate-6","group-hover:-translate-x-5 group-hover:-rotate-12 group-hover:-translate-y-0.5"),children:(0,t.jsx)(m,{className:"w-5 h-5 text-muted-foreground transition-colors duration-300 group-hover:text-accent/70"})}),(0,t.jsx)("div",{className:(0,a.cn)(c,"relative z-10","group-hover:-translate-y-1.5"),children:(0,t.jsx)(x,{className:"w-5 h-5 text-muted-foreground transition-colors duration-300 group-hover:text-accent"})}),(0,t.jsx)("div",{className:(0,a.cn)(c,"relative right-2.5 top-1.5 rotate-6","group-hover:translate-x-5 group-hover:rotate-12 group-hover:-translate-y-0.5"),children:(0,t.jsx)(p,{className:"w-5 h-5 text-muted-foreground transition-colors duration-300 group-hover:text-accent/70"})})]}),(0,t.jsx)("p",{className:"text-foreground font-medium mb-1.5",children:h?"Nothing matched":"Nothing here yet"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground max-w-md text-center leading-relaxed",children:h?`No ${d||e} match "${s}".`:`${e} will appear here as they are published.`})]})}],622453)},559884,e=>{"use strict";
1var t=e.i(116069),a=e.i(29821),r=e.i(112086),i=e.i(140802),s=e.i(665143),l=e.i(690514),n=e.i(100712),o=e.i(297590);let c=(0,o.default)("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]),d=(0,o.default)("Rows3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]]),u=(0,o.default)("ArrowUpDown",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);var h=e.i(706631),m=e.i(530941),x=e.i(644937),p=e.i(755146);function g(){return(0,t.jsx)("div",{className:"w-px h-6 bg-border/50 mx-0.5 shrink-0"})}function f({search:e,hasQuery:a}){return(0,t.jsxs)("div",{className:(0,m.cn)("relative flex items-center transition-[width,padding] duration-300",a?"flex-1 sm:flex-none sm:w-64 px-3":["flex-1 px-3","sm:flex-none sm:w-10 sm:px-0","sm:focus-within:w-64 sm:focus-within:px-3"]),children:[(0,t.jsx)("div",{className:"absolute left-2.5 z-10 flex items-center justify-center w-6 h-6 pointer-events-none",children:(0,t.jsx)(l.Search,{className:"w-4 h-4 text-primary"})}),(0,t.jsx)("input",{type:"text",placeholder:e.placeholder??"Search...",value:e.value,onChange:t=>e.onChange(t.target.value),className:(0,m.cn)("w-full h-10 pl-9 bg-transparent border-none outline-none text-sm text-foreground placeholder:text-muted-foreground/50 transition-opacity duration-300",a?"opacity-100":"opacity-100 sm:opacity-0 sm:focus:opacity-100")}),(0,t.jsx)(i.AnimatePresence,{children:a&&(0,t.jsx)(r.motion.button,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},onClick:e.onClear,className:"absolute right-2 p-1.5 rounded-full bg-muted/50 hover:bg-muted transition-colors","aria-label":"Clear search",children:(0,t.jsx)(n.X,{className:"w-3.5 h-3.5 text-muted-foreground"})})})]})}function b({filters:e}){return(0,t.jsx)("div",{className:"flex flex-1 sm:flex-none items-center p-0.5 rounded-full bg-black/5 dark:bg-white/5",children:e.options.filter(e=>(e.count??1)>0).map(a=>(0,t.jsxs)("button",{onClick:()=>e.onChange(a.value),className:(0,m.cn)("flex flex-1 sm:flex-none items-center justify-center sm:justify-start gap-1 sm:gap-1.5 h-10 px-2.5 sm:px-3.5 rounded-full text-sm font-medium transition-[background-color,box-shadow,color] duration-300 cursor-pointer",e.value===a.value?"bg-background shadow-sm text-foreground":"text-muted-foreground hover:text-foreground/80"),children:[a.icon,(0,t.jsx)("span",{className:"hidden sm:inline",children:a.label}),null!=a.count&&(0,t.jsx)("span",{className:"text-xs opacity-60",children:a.count})]},a.value))})}function v({sort:e}){return(0,t.jsxs)(p.DropdownMenu,{children:[(0,t.jsx)(p.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)("button",{className:"flex items-center gap-2 h-10 px-3 sm:px-4 roun
1ded-full hover:bg-black/5 dark:hover:bg-white/5 transition-colors text-sm font-medium text-muted-foreground hover:text-foreground","aria-label":`Sort by ${e.options.find(t=>t.value===e.value)?.label}`,children:[(0,t.jsx)("span",{className:"hidden sm:inline",children:e.options.find(t=>t.value===e.value)?.label}),(0,t.jsx)(u,{className:"w-4 h-4 opacity-50"})]})}),(0,t.jsx)(p.DropdownMenuContent,{align:"center",className:"min-w-[140px]",children:e.options.map(a=>(0,t.jsxs)(p.DropdownMenuItem,{onClick:()=>e.onChange(a.value),className:"flex items-center justify-between",children:[a.label,e.value===a.value&&(0,t.jsx)(h.Check,{className:"w-4 h-4 text-accent"})]},a.value))})]})}function y({viewMode:e,onChange:a}){return(0,t.jsxs)("div",{className:"flex items-center p-0.5 rounded-full bg-black/5 dark:bg-white/5",children:[(0,t.jsx)("button",{onClick:()=>a("grid"),className:(0,m.cn)("flex items-center justify-center w-10 h-10 rounded-full transition-[background-color,box-shadow,color] duration-300","grid"===e?"bg-background shadow-sm text-foreground":"text-muted-foreground hover:text-foreground/80"),title:"Grid view","aria-label":"Grid view",children:(0,t.jsx)(c,{className:"w-4 h-4"})}),(0,t.jsx)("button",{onClick:()=>a("list"),className:(0,m.cn)("flex items-center justify-center w-10 h-10 rounded-full transition-[background-color,box-shadow,color] duration-300","list"===e?"bg-background shadow-sm text-foreground":"text-muted-foreground hover:text-foreground/80"),title:"List view","aria-label":"List view",children:(0,t.jsx)(d,{className:"w-4 h-4"})})]})}e.s(["ControlCapsule",0,function({search:e,sort:i,filters:l,viewMode:n,onViewModeChange:o,className:c}){let d=(0,s.useReducedMotion)(),u=!!e?.value,h=[];return e&&h.push((0,t.jsx)(f,{search:e,hasQuery:u},"search")),l&&h.push((0,t.jsx)(b,{filters:l},"filters")),i&&h.push((0,t.jsx)(v,{sort:i},"sort")),h.push((0,t.jsx)(y,{viewMode:n,onChange:o},"view")),(0,t.jsx)("div",{className:(0,m.cn)("sticky top-12 z-40 pointer-events-none",c),children:(0,t.jsx)(r.motion.div,{initial:!d&&{opacity:0,y:-20,scale:.95},animate:{opacity:1,y:0,scale:1},transition:{type:"spring",stiffness:400,damping:30,delay:2*x.STAGGER},className:(0,m.cn)("mx-auto pointer-events-auto","w-full sm:w-auto sm:max-w-fit"),children:(0,t.jsx)("div",{className:"flex items-center gap-1 sm:gap-1.5 p-1 sm:p-1.5 rounded-full bg-white/95 dark:bg-zinc-900/95 border border-black/5 dark:border-white/10 shadow-2xl shadow-black/10 ring-1 ring-black/5 dark:ring-white/5",children:h.map((e,r)=>(0,t.jsxs)(a.default.Fragment,{children:[r>0&&(0,t.jsx)(g,{}),e]},r))})})})}],559884)},4202,e=>{"use strict";var t=e.i(116069),a=e.i(112086),r=e.i(530941);let i=(0,e.i(297590).default)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var s=e.i(828818),l=e.i(347190);e.s(["AnimatedPagination",0,function({page:e,totalPages:n,basePath:o,className:c}){let d=(0,l.useRouter)(),u=e=>1===e?o:`${o}/page/${e}`,h=e>1,m=e<n,x=(()=>{let t=[];if(n<=5)return Array.from({length:n},(e,t)=>t+1);t.push(1),e>3&&t.push("ellipsis");let a=Math.max(2,e-1),r=Math.min(n-1,e+1);for(let e=a;e<=r;e++)t.push(e);return e<n-2&&t.push("ellipsis"),t.push(n),t})(),p=e/n*100;return(0,t.jsxs)("div",{className:(0,r.cn)("flex flex-col items-center gap-6",c),children:[(0,t.jsxs)("div",{className:"w-full max-w-xs",children:[(0,t.jsxs)("div",{className:"flex justify-between text-xs text-muted-foreground mb-2 font-mono",children:[(0,t.jsxs)("span",{children:["Page ",e]}),(0,t.jsxs)("span",{children:["of ",n]})]}),(0,t.jsx)("div",{className:"h-1 bg-muted/50 rounded-full overflow-hidden",children:(0,t.jsx)(a.motion.div,{className:"h-full bg-gradient-to-r from-accent to-accent/70 rounded-full",initial:{width:0},animate:{width:`${p}%`},transition:{duration:.5,ease:"easeOut"}})})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(a.motion.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>h&&d.push(u(e-1)),disabled:!h,className:(0,r.cn)("p-2.5 rounded-xl border transition-[border-color,background-color,color] duration-300",h?"bg-card/60 border-border/50 hover:border-accent/50 hover:bg-accent/10 text-foreground":"bg-muted/30 border-transparent text-muted-foreground
1/30 cursor-not-allowed"),children:(0,t.jsx)(i,{className:"w-4 h-4"})}),(0,t.jsx)("div",{className:"flex items-center gap-1.5 px-2",children:x.map((i,s)=>{if("ellipsis"===i)return(0,t.jsx)("span",{className:"px-2 text-muted-foreground/50",children:"···"},`ellipsis-${s}`);let l=i===e;return(0,t.jsxs)(a.motion.button,{whileHover:{scale:l?1:1.1},whileTap:{scale:.95},onClick:()=>d.push(u(i)),className:(0,r.cn)("relative w-10 h-10 rounded-xl text-sm font-medium transition-colors duration-300",l?"text-accent-foreground":"text-muted-foreground hover:text-foreground hover:bg-muted/50"),children:[l&&(0,t.jsx)(a.motion.div,{layoutId:"activePage",className:"absolute inset-0 bg-accent rounded-xl shadow-lg shadow-accent/30",transition:{type:"spring",stiffness:400,damping:30}}),(0,t.jsx)("span",{className:"relative z-10",children:i})]},i)})}),(0,t.jsx)(a.motion.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>m&&d.push(u(e+1)),disabled:!m,className:(0,r.cn)("p-2.5 rounded-xl border transition-[border-color,background-color,color] duration-300",m?"bg-card/60 border-border/50 hover:border-accent/50 hover:bg-accent/10 text-foreground":"bg-muted/30 border-transparent text-muted-foreground/30 cursor-not-allowed"),children:(0,t.jsx)(s.ChevronRight,{className:"w-4 h-4"})})]})]})}],4202)},701615,e=>{"use strict";var t=e.i(116069),a=e.i(29821),r=e.i(347190),i=e.i(112086),s=e.i(140802),l=e.i(665143),n=e.i(746028),o=e.i(4202),c=e.i(622453),d=e.i(530941),u=e.i(829441),h=e.i(644937),m=e.i(559884),x=e.i(130917);e.s(["PostsArchiveClient",0,({posts:e,title:p,type:g,searchQuery:f,sortBy:b,hideHero:v,PageClient:y,programmeSections:w})=>{let j,k=(0,l.useReducedMotion)(),N=(0,r.useRouter)(),A=(0,r.useSearchParams)(),C=(0,u.getPostPathPrefix)(g),z=e.page||1,M="Blog"===g?"articles":"programmes",T=(0,a.useRef)(null),[P,S]=(0,a.useState)(f),[R,$]=(0,a.useState)("grid"),E=(0,a.useCallback)((e,t=!1)=>{let a=new URLSearchParams(A.toString());void 0!==e.q&&(e.q?a.set("q",e.q):a.delete("q"),a.delete("page")),void 0!==e.sort&&(e.sort&&"newest"!==e.sort?a.set("sort",e.sort):a.delete("sort"));let r=a.toString();N.push(`${C}${r?`?${r}`:""}`,{scroll:!1}),t&&T.current&&setTimeout(()=>{T.current?.scrollIntoView({behavior:"smooth",block:"start"})},100)},[N,A,C]);return(0,a.useEffect)(()=>{let e=setTimeout(()=>{if(P!==f){let e=!!f,t=!!P;E({q:P},t&&!e)}},400);return()=>clearTimeout(e)},[P,f,E]),(0,a.useEffect)(()=>{if(f&&T.current){let e=setTimeout(()=>{T.current?.scrollIntoView({behavior:"smooth",block:"start"})},100);return()=>clearTimeout(e)}},[f]),(0,t.jsxs)("div",{className:"min-h-screen text-foreground selection:bg-accent/30 selection:text-accent-foreground",children:[!v&&(0,t.jsx)("section",{className:"relative pt-header-safe xl:pt-header",children:(0,t.jsx)("div",{className:"container relative z-10",children:(0,t.jsxs)("div",{className:"",children:[(0,t.jsx)(i.motion.h1,{initial:!k&&{opacity:0,y:h.OFFSET},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:h.DURATION.primary,delay:0*h.STAGGER,ease:h.EASE},className:(0,d.cn)((0,x.headingVariants)({level:"hero"}),"mb-6"),children:p}),(0,t.jsx)(i.motion.p,{initial:!k&&{opacity:0,y:h.OFFSET},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:h.DURATION.secondary,delay:+h.STAGGER,ease:h.EASE},className:(0,d.cn)((0,x.subtitleVariants)(),"max-w-7xl"),children:"Blog"==g?"Sharing the stories, the challenges we tackle, the breakthroughs we celebrate, and the purpose that keeps us moving forward. Whether you're curious about our latest projects, the values that shape our decisions, or the lessons we're learning along the way, this is where we open the door and invite you in. Dive in and discover what we're building, and why it matters.":"OpenDevEd partners with diverse organisations, governments, and education stakeholders to enhance accessibility in education and develop prosperous conditions that could benefit learning outcomes. Here, you will find information on our current and past programmes. Use the search option or click a thumbnail for more information."})]})})}),(0,t.jsx)("div",{className:"container relative z-10",children:y&&(0,t.jsx)(y,{})}),(0,t.jsxs)("section",{ref:T,className:"container relative z-10 pb-20 scroll-mt-4",children:[(0,t.jsx)(m.ControlCapsule,{className:"my-12",search:{value:P,onChange:S,onClear:()=>{S(""),E({q:""})}},sort:{value:b,options:[{value:"newest",label:"Newest"},{value:"oldest",label:"Oldest"},{value:"a-z",label:"A â Z"}],onChange:e=>{E({sort:e})}},viewMode:R,onViewModeChange:$}),e.docs.length>0?(0,t.jsxs)(t.Fragment,{children:["Programme"===g?(j=(w||[]).filter(e=>e.docs.length>0),(0,t.jsx)("div",{className:"space-y-16",children:j.map((e,a)=>{let r;return(0,t.jsxs)("div",{children:[(0,t.jsxs)(i.motion.h2,{initial:{opacity:0,x:-20}
1,animate:{opacity:1,x:0},className:"text-2xl md:text-3xl font-bold mb-8 text-foreground",children:[e.title,(0,t.jsxs)("span",{className:"ml-3 text-sm font-normal text-muted-foreground",children:["(",e.docs.length,")"]})]}),(r=e.docs,(0,t.jsx)(s.AnimatePresence,{mode:"wait",children:(0,t.jsx)(i.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.3},className:"grid"===R?"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 lg:gap-8":"flex flex-col gap-4",children:(0,t.jsx)(s.AnimatePresence,{children:r.map((e,r)=>{if("object"!=typeof e||null===e)return null;let s="grid"===R&&1===z&&0===r&&0===a;return(0,t.jsx)(i.motion.div,{layout:"position",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,scale:.9},className:`h-full ${s?"md:col-span-2":""}`,children:(0,t.jsx)(n.BentoCard,{doc:e,relationTo:"posts",showCategories:!0,variant:"list"===R?"list":s?"featured":"standard"})},e.slug||100*a+r)})})},R)}))]},e.slug)})})):(0,t.jsx)(s.AnimatePresence,{mode:"wait",children:(0,t.jsx)(i.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.3},className:"grid"===R?"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 lg:gap-8":"flex flex-col gap-4",children:(0,t.jsx)(s.AnimatePresence,{children:e.docs.map((e,a)=>{if("object"!=typeof e||null===e)return null;let r="grid"===R&&1===z&&0===a;return(0,t.jsx)(i.motion.div,{layout:"position",initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0,scale:.9},className:`h-full ${r?"md:col-span-2":""}`,children:(0,t.jsx)(n.BentoCard,{doc:e,relationTo:"posts",showCategories:!0,variant:"list"===R?"list":r?"featured":"standard"})},e.slug||a)})})},R)}),e.totalPages>1&&(0,t.jsx)(i.motion.div,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},className:"mt-20 md:mt-28",children:(0,t.jsx)(o.AnimatedPagination,{page:z,totalPages:e.totalPages,basePath:C})})]}):(0,t.jsx)(c.EmptyState,{label:"Blog"===g?"Articles":"Programmes",searchQuery:P,searchLabel:M})]}),(0,t.jsx)("div",{className:"h-16 md:h-24"})]})}])}]);
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.