1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[716],{1716:function(e,t,r){Promise.resolve().then(r.bind(r,1523)),Promise.resolve().then(r.bind(r,49)),Promise.resolve().then(r.bind(r,9357)),Promise.resolve().then(r.bind(r,8682)),Promise.resolve().then(r.bind(r,8572)),Promise.resolve().then(r.bind(r,6121)),Promise.resolve().then(r.bind(r,389)),Promise.resolve().then(r.bind(r,8646)),Promise.resolve().then(r.bind(r,9057)),Promise.resolve().then(r.bind(r,1803)),Promise.resolve().then(r.bind(r,1551)),Promise.resolve().then(r.bind(r,6428)),Promise.resolve().then(r.bind(r,8748)),Promise.resolve().then(r.bind(r,8999)),Promise.resolve().then(r.bind(r,8915)),Promise.resolve().then(r.bind(r,4680)),Promise.resolve().then(r.bind(r,2155)),Promise.resolve().then(r.bind(r,4620)),Promise.resolve().then(r.bind(r,1853)),Promise.resolve().then(r.bind(r,6638)),Promise.resolve().then(r.bind(r,6158)),Promise.resolve().then(r.bind(r,9611)),Promise.resolve().then(r.bind(r,1464)),Promise.resolve().then(r.bind(r,4065)),Promise.resolve().then(r.bind(r,6691)),Promise.resolve().then(r.bind(r,9332)),Promise.resolve().then(r.bind(r,9762)),Promise.resolve().then(r.bind(r,7964)),Promise.resolve().then(r.bind(r,8751)),Promise.resolve().then(r.bind(r,3205)),Promise.resolve().then(r.bind(r,3011)),Promise.resolve().then(r.bind(r,3583)),Promise.resolve().then(r.bind(r,2175)),Promise.resolve().then(r.bind(r,4551)),Promise.resolve().then(r.bind(r,7748)),Promise.resolve().then(r.bind(r,4928)),Promise.resolve().then(r.bind(r,92)),Promise.resolve().then(r.bind(r,3465)),Promise.resolve().then(r.bind(r,5793)),Promise.resolve().then(r.bind(r,8898)),Promise.resolve().then(r.bind(r,5547)),Promise.resolve().then(r.bind(r,197)),Promise.resolve().then(r.bind(r,11)),Promise.resolve().then(r.bind(r,8641)),Promise.resolve().then(r.bind(r,8440)),Promise.resolve().then(r.bind(r,591)),Promise.resolve().then(r.bind(r,9631)),Promise.resolve().then(r.bind(r,5652)),Promise.resolve().then(r.bind(r,7993)),Promise.resolve().then(r.bind(r,6231)),Promise.resolve().then(r.bind(r,488)),Promise.resolve().then(r.bind(r,8773)),Promise.resolve().then(r.bind(r,7097)),Promise.resolve().then(r.bind(r,1475)),Promise.resolve().then(r.bind(r,3139)),Promise.resolve().then(r.bind(r,7691)),Promise.resolve().then(r.bind(r,2296)),Promise.resolve().then(r.bind(r,68)),Promise.resolve().then(r.bind(r,2371)),Promise.resolve().then(r.bind(r,895)),Promise.resolve().then(r.bind(r,2868)),Promise.resolve().then(r.bind(r,5861))},1632:function(e,t,r){"use strict";var s=r(7437),a=r(3145),l=r(2265);t.Z=e=>{let{src:t,alt:r,width:n,height:i,className:o="",fill:c=!1,sizes:x,priority:d=!1,quality:p=75,placeholder:m="empty",style:f,onLoad:u,onError:h,...g}=e,[b,w]=(0,l.useState)(!1),[v,j]=(0,l.useState)(!1);if(b)return(0,s.jsx)("img",{src:t,alt:r,className:o,style:f,onLoad:u,onError:h,...g});let y={src:t,alt:r,className:o,quality:p,priority:d,placeholder:m,style:f,onLoad:()=>{j(!0),null==u||u()},onError:()=>{w(!0),null==h||h()},...g};return c?(0,s.jsx)(a.default,{...y,fill:!0,sizes:x||"100vw"}):(0,s.jsx)(a.default,{...y,width:n||800,height:i||600,sizes:x})}},9357:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(29),l=r.n(a),n=r(2265),i=r(3448),o=r(2534),c=r(7562),x=r(3145),d=r(7648),p=r(9794),m=r(9764),f=r(7795);r(7354),r(6968),r(6889),t.default=e=>{let{lang:t,...r}
1=e,[a,u]=(0,n.useState)([]),[h,g]=(0,n.useState)(!0),[b,w]=(0,n.useState)(null),[v,j]=(0,n.useState)(new Set),y=(0,n.useRef)(null),N=(0,i.yP)(r,"title",t),_=(0,i.yP)(r,"background",t);(0,n.useEffect)(()=>{!async function(){try{let e=await fetch("/api/articles");if(!e.ok)throw Error("HTTP error! Status: ".concat(e.status));let t=await e.json();u(Array.isArray(t)?t:[]),w(null)}catch(e){console.error("Failed to load articles:",e),w(e instanceof Error?e.message:"Failed to load articles"),u([])}finally{g(!1)}}()},[]);let k=(e,r)=>{if("fr"===t){let t="".concat(r,"_fr");if(void 0!==e[t]&&null!==e[t]&&""!==e[t])return e[t]}return e[r]||""},P=e=>"fr"===t?e.link_fr&&""!==e.link_fr&&"#"!==e.link_fr?e.link_fr:e.link&&""!==e.link&&"#"!==e.link?e.link:e.permalink||"#":e.link||e.permalink||"#",F=e=>"fr"!==t?e.pdf||"":e.pdf_fr&&""!==e.pdf_fr&&"#"!==e.pdf_fr?e.pdf_fr:e.pdf&&""!==e.pdf&&"#"!==e.pdf?e.pdf:"",C=a.map(e=>{let r=P(e);return{id:e.id,title:k(e,"title"),content:k(e,"content"),featured_image:e.featured_image||"",article_categories:e.article_categories||[],link:(e=>{if(!e||"#"===e)return"#";let r=e.startsWith("/")?e.substring(1):e;return r.startsWith("http")||r.startsWith("blog/")?e:"/".concat(t,"/blog/").concat(r)})(r),pdf:F(e)}}),S=e=>{let t=e.replace(/<[^>]*>?/gm,"");return t.length>100?t.substring(0,100)+"...":t},D=e=>e.length>60,E=e=>{j(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r})},A=()=>{var e;null===(e=y.current)||void 0===e||e.slidePrev()},B=()=>{var e;null===(e=y.current)||void 0===e||e.slideNext()}
1,L="\n .articles-swiper .swiper-slide {\n height: auto;\n }\n \n .articles-swiper .swiper-wrapper {\n align-items: stretch;\n }\n ";return(0,s.jsxs)("section",{id:"articles-section",style:_?{backgroundImage:"url(".concat(_,")"),backgroundSize:"cover",backgroundPosition:"center"}:{background:"radial-gradient(62.1% 62.1% at 36.64% 37.9%, #AE548F 0%, #31509E 100%)"},className:"jsx-".concat(L.__hash)+" py-12 sm:py-16 md:py-24 px-4 sm:px-6 md:px-10 relative overflow-hidden",children:[(0,s.jsx)(l(),{id:L.__hash,children:L}),(0,s.jsxs)("div",{className:"jsx-".concat(L.__hash)+" mx-auto max-w-[1600px] flex flex-wrap justify-start",children:[(0,s.jsxs)("div",{className:"jsx-".concat(L.__hash)+" flex flex-col md:flex-row w-full flex-grow justify-between items-center mb-8 md:mb-12 max-w-[1302px] lg:pl-[88px]",children:[(0,s.jsx)("div",{className:"jsx-".concat(L.__hash)+" w-full md:w-auto",children:N&&(0,s.jsx)("h2",{className:"jsx-".concat(L.__hash)+" font-header text-2xl sm:text-3xl md:text-[36px] font-extrabold leading-tight sm:leading-[38px] uppercase text-white text-center md:text-left",children:(0,c.ZP)(N)})}),(0,s.jsx)("div",{className:"jsx-".concat(L.__hash)+" mt-4 md:mt-0",children:(0,s.jsxs)(p.default,{href:"/articles",className:"inline-block font-sans font-semibold text-base leading-6 flex items-center text-white pb-3 border-b border-white hover:opacity-80 transition-opacity duration-300",children:[(0,o.i)("common","seeAll",t)||"See all",(0,s.jsx)("div",{className:"jsx-".concat(L.__hash)+" ml-2 flex items-center justify-center",children:(0,s.jsx)(x.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,className:"invert",style:{verticalAlign:"middle"}})})]})})]}),(0,s.jsx)("div",{className:"jsx-".concat(L.__hash)+" mt-8 md:mt-12 relative w-full mx-auto",children:h?(0,s.jsxs)("div",{className:"jsx-".concat(L.__hash)+" text-center py-8 text-white",children:[(0,s.jsx)("div",{className:"jsx-".concat(L.__hash)+" inline-block w-8 h-8 border-4 border-white/30 border-t-white rounded-full animate-spin"}),(0,s.jsx)("p",{className:"jsx-".concat(L.__hash)+" mt-2",children:"fr"===t?"Chargement...":"Loading..."})]}):b?(0,s.jsxs)("div",{className:"jsx-".concat(L.__hash)+" text-center py-8 text-white",children:[(0,s.jsx)("p",{className:"jsx-".concat(L.__hash),children:"fr"===t?"Erreur de chargement":"Error loading articles"}),(0,s.jsx)("p",{className:"jsx-".concat(L.__hash)+" text-sm opacity-75",children:b})]}):C.length>0?(0,s.jsxs)("div",{className:"jsx-".concat(L.__hash)+" flex flex-row gap-[40px] items-center",children:[(0,s.jsxs)("div",{className:"jsx-".concat(L.__hash)+" hidden md:flex flex-col items-center justify-center gap-[10px] min-w-[48px]",children:[(0,s.jsx)("button",{onClick:A,"aria-label":"fr"===t?"Article pr\xe9c\xe9dent":"Previous article",className:"jsx-".concat(L.__hash)+" w-12 h-12 flex items-center justify-center rounded-full bg-white/60 backdrop-blur-[15px] transition-all duration-300 hover:bg-white/80",children:(0,s.jsx)("div",{className:"jsx-".concat(L.__hash)+" w-6 h-6 relative rotate-180 flex items-center justify-center",children:(0,s.jsx)(x.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{verticalAlign:"middle"}})})}),(0,s.jsx)("button",{onClick:B,"aria-label":"fr"===t?"Article suivant":"Next article",className:"jsx-".concat(L.__hash)+" w-12 h-12 flex items-center justify-center rounded-full bg-white/60 backdrop-blur-[15px] transition-all duration-300 hover:bg-white/80",children:(0,s.jsx)("div",{className:"jsx-".concat(L.__hash)+" w-6 h-6 relative flex items-center justify-center",children:(0,s.jsx)(x.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{verticalAlign:"middle"}})})})]}),(0,s.jsxs)("div",{className:"jsx-".concat(L.__hash)+" flex-grow overflow-hidden",children:[(0,s.jsx)(m.tq,{modules:[f.W_,f.pt],spaceBetween:20,slidesPerView:1,breakpoints:{320:{slidesPerView:1,spaceBetween:20},768:{slidesPerView:2,spaceBetween:30},1024:{slidesPerView:2,spaceBetween:40},1200:{slidesPerView:3,spaceBetween:40},1400:{slidesPerView:3,spaceBetween:40}},onSwiper:e=>{y.current=e},autoplay:{delay:1e4,disableOnInteraction:!1,pauseOnMouseEnter:!0},loop:!1,grabCursor:!0,className:"articles-swiper w-full",style:{overflow:"visible"},children:C.map(e=>{let r=v.has(e.id),a=D(e.title);return(0,s.jsx)(m.o5,{children:(0,s.jsxs)("div",{className:"jsx-".concat(L.__hash)+" article-card flex flex-col justify-between w-full h-full min-h-[400px] p-4 border border-white rounded-lg backdrop-blur-sm shadow-lg",children:[(0,s.jsx)("div",{className:"jsx-".concat(L.__hash)+" mb-auto",children:e.article_categories&&e.article_categories.length>0&&(0,s.jsx)("div",{className:"jsx-".concat(L.__hash)+" flex flex-row flex-wrap gap-2 justify-start",children:e.article_categories.map((e,t)=>(0,s.jsx)("div",{className:"jsx-".concat(L.__hash)+" flex justify-center items-center px-2 py-1 bg-white backdrop-blur-md rounded-lg",children:(0,s.jsx)("span",{className:"jsx-".concat(L.__hash)+" font-sans font-semibold text-xs sm:text-sm text-[#23243B]",children:e})},"category-".concat(t)))})}),(0,s.jsxs)("div",{className:"jsx-".concat(L.__hash)+" mt-auto",children:[e.featured_image&&(0,s.jsx)("div",{className:"jsx-".concat(L.__hash)+" relative h-[150px] w-full overflow-hidden rounded-md mb-3",children:(0,s.jsx)("img",{src:e.featured_image,alt:e.title,className:"jsx-".concat(L.__hash)+" object-cover w-full h-full hover:scale-105 transition-transform duration-500"})}),(0,s.jsx)("div",{onMouseEnter:()=>a&&E(e.id),onMouseLeave:()=>a&&E(e.id),className:"jsx-".concat(L.__hash)+" "+"font-header font-extrabold text-xl sm:text-2xl leading-9 uppercase text-white mb-3 ".concat(!r&&a?"line-clamp-3 max-h-[108px] overflow-hidden":""),children:(0,c.ZP)(e.title)}),(0,s.jsx)("div",{className:"jsx-".concat(L.__hash)+" font-sans font-normal text-sm sm:text-base leading-6 text-[#DAD9D6] mb-4 line-clamp-3 max-h-[72px] overflow-hidden",children:S(e.content)}),(0,s.jsxs)("div",{className:"jsx-".concat(L.__hash)+" flex justify-between items-center",children:[e.pdf&&(0,s.jsxs)("a",{href:e.pdf,target:"_blank",rel:"noopener noreferrer",className:"jsx-".concat(L.__hash)+" inline-flex items-center py-2 sm:py-3 border-b border-white group",children:[(0,s.jsx)("span",{className:"jsx-".concat(L.__hash)+" font-sans font-semibold text-sm sm:text-base text-white mr-2 group-hover:opacity-80",children:"PDF"}),(0,s.jsx)(x.default,{src:"/images/tabler-icon-file-download.svg",alt:"",width:16,height:16,className:"invert"})]}),(0,s.jsxs)(d.default,{href:e.link,target:"_blank",className:"inline-flex items-center py-2 sm:py-3 border-b border-white group ml-auto",children:[(0,s.jsx)("span",{className:"jsx-".concat(L.__hash)+" font-sans font-semibold text-sm sm:text-base text-white mr-2 group-hover:opacity-80",children:(0,o.i)("common","readMore",t)||"Read more"}),(0,s.jsx)(x.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,className:"invert transition-transform duration-300 group-hover:translate-x-1"})]})]})]})]})},"article-".concat(e.id))})}),(0,s.jsxs)("div",{className:"jsx-".concat(L.__hash)+" flex md:hidden justify-center items-center gap-4 mt-6",children:[(0,s.jsx)("button",{onClick:A,"aria-label":"fr"===t?"Article pr\xe9c\xe9dent":"Previous article",className:"jsx-".concat(L.__hash)+" w-12 h-12 flex items-center justify-center rounded-full bg-white/60 backdrop-blur-[15px] transition-all duration-300 hover:bg-white/80",children:(0,s.jsx)("div",{className:"jsx-".concat(L.__hash)+" w-6 h-6 relative rotate-180 flex items-center justify-center",children:(0,s.jsx)(x.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{verticalAlign:"middle"}})})}),(0,s.jsx)("button",{onClick:B,"aria-label":"fr"===t?"Article suivant":"Next article",className:"jsx-".concat(L.__hash)+" w-12 h-12 flex items-center justify-center rounded-full bg-white/60 backdrop-blur-[15px] transition-all duration-300 hover:bg-white/80",children:(0,s.jsx)("div",{className:"jsx-".concat(L.__hash)+" w-6 h-6 relative flex items-center justify-center",children:(0,s.jsx)(x.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{verticalAlign:"middle"}})})})]})]})]}):(0,s.jsxs)("div",{className:"jsx-".concat(L.__hash)+" text-center py-8 sm:py-12 text-white",children:[(0,s.jsx)("p",{className:"jsx-".concat(L.__hash)+" text-xl sm:text-2xl mb-2",children:"fr"===t?"Aucun article trouv\xe9":"No articles found"}),(0,s.jsx)("p",{className:"jsx-".concat(L.__hash)+" opacity-80",children:"fr"===t?"Revenez bient\xf4t pour de nouveaux articles":"Check back soon for new articles"})]})})]})]})}},8682:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(3145),o=r(7562),c=r(7648);t.default=e=>{let{lang:t,...r}=e,[x,d]=(0,a.useState)([]),[p,m]=(0,a.useState)([]),[f,u]=(0,a.useState)(!0),[h,g]=(0,a.useState)(null),[b,w]=(0,a.useState)(15),[v,j]=(0,a.useState)(""),[y,N]=(0,a.useState)(new Set),_=(0,l.yP)(r,"title",t);(0,l.yP)(r,"background",t);let k=(0,n.i)("common","loading",t)||"Loading...",P=(0,n.i)("common","error",t)||"Error loading articles",F=(0,n.i)("common","noResults",t)||"No articles found",C=(0,n.i)("common","checkBack",t)||"Please check back later",S=(0,n.i)("common","loadMore",t)||"LOAD MORE",D="fr"===t?"Recherche":"Search";(0,a.useEffect)(()=>{!async function(){try{let e=await fetch("/api/articles");if(!e.ok)throw Error("HTTP error! Status: ".concat(e.status));let t=await e.json();d(Array.isArray(t)?t:[]),m(Array.isArray(t)?t:[]),g(null)}catch(e){console.error("Failed to load articles:",e),g(e instanceof Error?e.message:"Failed to load articles"),d([]),m([])}finally{u(!1)}}()},[]);let E=(e,r)=>{if("fr"===t){let t="".concat(r,"_fr");if(void 0!==e[t]&&null!==e[t]&&""!==e[t])return e[t]}return e[r]||""},A=e=>"fr"!==t?e.link||e.permalink||"#":e.link_fr&&""!==e.link_fr&&"#"!==e.link_fr?e.link_fr:e.link&&""!==e.link&&"#"!==e.link?e.link:e.permalink||"#",B=e=>"fr"!==t?e.pdf||"":e.pdf_fr&&""!==e.pdf_fr&&"#"!==e.pdf_fr?e.pdf_fr:e.pdf&&""!==e.pdf&&"#"!==e.pdf?e.pdf:"";(0,a.useEffect)(()=>{v.trim()?m(x.filter(e=>{let t=E(e,"title"),r=E(e,"content"),s=v.toLowerCase();return t.toLowerCase().includes(s)||r.toLowerCase().includes(s)||e.article_categories&&e.article_categories.some(e=>e.toLowerCase().includes(s))})):m(x),w(15)},[v,x,t]);let L=p.map(e=>({id:e.id,title:E(e,"title"),content:E(e,"content"),featured_image:e.featured_image||"",article_categories:e.article_categories||[],link:A(e),pdf:B(e)})),M=L.slice(0,b),I=L.length>b,O=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:120,r=e.replace(/<[^>]*>/g,"");return r.length>t?r.substring(0,t).trim()+"...":r},R=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:80;return e.length>t},Z=e=>{N(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r})};return(0,s.jsx)("section",{id:"articles-archive",className:"py-[40px] px-[20px] sm:py-[60px] sm:px-[30px] md:py-[96px] md:px-[40px] bg-[#F3F3F2]",children:(0,s.jsxs)("div",{className:"mx-auto max-w-[1187px]",children:[_&&(0,s.jsx)("div",{className:"text-center mb-[48px]",children:(0,s.jsx)("h2",{className:"font-header text-4xl sm:text-5xl md:text-6xl lg:text-[64px] font-light leading-[1.12] text-[#314F9D] uppercase",children:(0,o.ZP)(_)})}),(0,s.jsx)("div",{className:"flex justify-end mb-[48px]",children:(0,s.jsxs)("div",{className:"flex items-center gap-[8px] px-[16px] py-[8px] w-[205px] h-[34px] border border-[#314F9D] backdrop-blur-[7.5px] rounded-[8px]",children:[(0,s.jsx)("div",{className:"flex items-center justify-center w-[18px] h-[18px] min-w-[18px] min-h-[18px]",children:(0,s.jsx)(i.default,{src:"/images/search-navy.svg",alt:"Search",width:18,height:18})}
1),(0,s.jsx)("input",{type:"text",placeholder:D,value:v,onChange:e=>{j(e.target.value)},className:"flex-1 bg-transparent font-barlow font-semibold text-[14px] leading-[17px] text-[#314F9D] placeholder:text-[#314F9D] border-none outline-none"})]})}),(0,s.jsx)("div",{className:"mb-[48px]",children:f?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("div",{className:"inline-block w-8 h-8 border-4 border-[#314F9D]/30 border-t-[#314F9D] rounded-full animate-spin"}),(0,s.jsx)("p",{className:"mt-2 text-[#314F9D]",children:k})]}):h?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#E53E3E]",children:P}),(0,s.jsx)("p",{className:"mb-4 text-[#38393A]",children:h})]}):M.length>0?(0,s.jsx)("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(min(250px,100%),320px))] lg:grid-cols-[repeat(auto-fit,minmax(min(250px,100%),369px))] gap-x-[20px] gap-y-[20px] sm:gap-x-[30px] sm:gap-y-[28px] md:gap-x-[40px] md:gap-y-[38px] justify-items-center justify-center",children:M.map(e=>{let r=y.has(e.id),a=R(e.title);return(0,s.jsxs)("div",{className:"w-full min-h-[400px] h-auto bg-white border border-[#23243B] rounded-[8px] p-[16px] flex flex-col justify-between group relative",children:[(0,s.jsx)("div",{className:"flex justify-start gap-[8px] mb-[16px]",children:e.article_categories&&e.article_categories.length>0&&e.article_categories.slice(0,2).map((e,t)=>(0,s.jsx)("div",{className:"bg-[#23243B] backdrop-blur-[7.5px] rounded-[8px] px-[8px] py-[4px]",children:(0,s.jsx)("span",{className:"font-barlow font-semibold text-[14px] leading-[17px] text-white",children:e})},"category-".concat(t)))}),(0,s.jsxs)("div",{className:"flex flex-col justify-end h-full",children:[(0,s.jsx)("div",{className:"font-nunito-sans font-extrabold text-[24px] leading-[36px] uppercase text-[#23243B] mb-[16px] transition-all duration-500 ease-in-out ".concat(!r&&a?"overflow-hidden":""),style:!r&&a?{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",maxHeight:"108px"}:{},onMouseEnter:()=>a&&Z(e.id),onMouseLeave:()=>a&&Z(e.id),children:(0,o.ZP)(e.title)}),(0,s.jsx)("p",{className:"font-barlow font-normal text-[16px] leading-[24px] text-[#23243B] overflow-hidden",style:{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",maxHeight:"72px"},children:O(e.content)})]}),(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[e.pdf&&(0,s.jsxs)("a",{href:e.pdf,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center py-[12px] border-b border-[#23243B] hover:opacity-80 transition-opacity duration-300 group",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B] mr-2",children:"PDF"}),(0,s.jsx)(i.default,{src:"/images/tabler-icon-file-download.svg",alt:"",width:20,height:20})]}),(0,s.jsxs)(c.default,{href:e.link,className:"inline-flex items-center py-[12px] border-b border-[#23243B] hover:opacity-80 transition-opacity duration-300 group ml-auto",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B] mr-2",children:(0,n.i)("common","readMore",t)||"Read more"}),(0,s.jsx)(i.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,className:"transition-transform duration-300 group-hover:translate-x-1"})]})]})]},e.id)})}):(0,s.jsxs)("div",{className:"text-center py-12",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#314F9D]",children:F}),(0,s.jsx)("p",{className:"opacity-80 text-[#38393A]",children:C})]})}),I&&!f&&!h&&(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsxs)("button",{onClick:()=>{w(e=>e+15)},className:"flex items-center justify-center gap-[8px] px-[16px] py-[8px] w-auto h-[39px] border border-[#23243B] rounded-[8px] bg-transparent hover:bg-[#23243B] hover:text-white transition-all duration-300 group",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B] group-hover:text-white",children:S}),(0,s.jsx)("div",{className:"flex items-center justify-center w-[20px] h-[20px]",children:(0,s.jsx)(i.default,{src:"/images/plus.svg",alt:"",width:20,height:20,className:"group-hover:filter group-hover:brightness-0 group-hover:invert"})})]})})]})})}},8572:function(e,t,r){"use strict";r.r(t),r.d(t,{tagTranslations:function(){return p}});var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(3145),o=r(7648),c=r(1632),x=r(3735),d=r(7562);let p={"#AccessibleForAll":"#AccessibleForAll","#CDNdiversity":"#CDNdiversity","#Neurodiversity":"#neurodiverse","Accenture Canada":"Accenture Canada",Accessibility:"Accessibilit\xe9",Administration:"Administration",Ageism:"Ageism",Alberta:"Alberta",Analytics:"Analytics","Anne-Marie Pham":"Anne-Marie Pham","Anti-Asian racism":"Racisme anti-asiatique","Asian Heritage Month":"Mois du patrimoine asiatique","Awards of Success":"Awards of Success","Awards of Success 2019":"Prix de la r\xe9ussite 2019","Bench Canada":"Bench","Benchmarking study":"\xc9tude comparative",BeYourself:"#BeYourself",Blog:"Blog",BLOOM:"BLOOM","BLOOM! 2017":"BLOOM! 2017","Body Diversity":"Body Diversity","Brave spaces":"Espaces d'encouragement",Calgary:"Calgary","Calgary Stampede":"Calgary Stampede",Canada:"Canada","Canada Business Corporations Act":"Loi canadienne sur les soci\xe9t\xe9s par actions","Canadian Centre for Diversity and Inclusion":"Centre canadien pour la diversit\xe9 et l'inclusion","Canadian Certified Inclusion Professional":"Canadian Certified Inclusion Professional","Career Opportunities":"Career Opportunity","Career Opportunity":"Career Opportunity","Carmina Ravanera":"Carmina Ravanera",CBCA:"CBCA",CCDI:"CCDI","CCDI blog":"CCDI blog",CCIP:"CCIP",CDNlaw:"CDNlaw",Census:"Recensement","Centennial Certificate in Leadership and Inclusion":"Certificat en leadership et inclusion du C
1oll\xe8ge Centennial","Centennial College":"Centennial College","Community of Practice":"Community of Practice",COPE:"COPE",Coronavirus:"Coronavirus","COVID-19":"COVID-19","Culture Meter":"Indice de la culture",DEAM:"DEAM",DEI:"DEI",DEIA:"D\xc9IA","Disability Employment Awareness Month":"Mois de la sensibilisation \xe0 l'emploi des personnes en situation de handicap",Discrimination:"Discrimination",Diversity:"Diversit\xe9","Diversity by the Numbers":"Diversit\xe9 par les nombres","Diversity in the legal profession":"Diversity in the legal profession","Diversity Measurement":"Diversity Measurement","Diversity and inclusion":"Diversit\xe9 et inclusion","Diversity and Inclusion Strategy":"Diversity and Inclusion Strategy","Diversity designation":"Diversity designation",eLearning:"eLearning","Employee Resource Group":"Groupe-ressources des employ\xe9s","Employer Partners":"Employer Partners","Employment Equity Act":"Loi sur \xe9quit\xe9 en mati\xe8re d'emploi"};t.default=e=>{let{lang:t,...r}=e,m=(e,t)=>"fr"===t&&e.name_fr?e.name_fr:"fr"===t&&p[e.name]?p[e.name]:e.name,[f,u]=(0,a.useState)([]),[h,g]=(0,a.useState)(!0),[b,w]=(0,a.useState)(null),[v,j]=(0,a.useState)(1),[y,N]=(0,a.useState)(!0),[_,k]=(0,a.useState)(!1),[P,F]=(0,a.useState)(0),C=(0,l.yP)(r,"title",t),S="fr"===t?"fr":"en",D=(0,n.i)("common","loading",S),E=(0,n.i)("common","error",S),A=(0,n.i)("insights","noInsights",S),B=(0,n.i)("insights","checkBackInsights",S),L=(0,n.i)("common","readMore",S),M=(0,n.i)("common","loadMore",S)||"Load more",I=["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"],O=e=>{if(!e)return"";let t=new Date(e);if("fr"!==S)return t.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});{let e=t.getDate(),r=I[t.getMonth()].toLowerCase(),s=t.getFullYear();return"".concat(e," ").concat(r," ").concat(s)}},R=["rgba(249, 138, 60, 0.8)","rgba(139, 69, 19, 0.8)","rgba(99, 179, 228, 0.8)","rgba(50, 81, 158, 0.8)","rgba(245, 135, 32, 0.8)","rgba(174, 84, 143, 0.8)"],Z=e=>R[e%R.length];(0,a.useEffect)(()=>{!async function(){try{var e,t,r,s;let a=await fetch("/api/insights?per_page=12&page=1");if(!a.ok)throw Error("HTTP error! Status: ".concat(a.status));let l=await a.json(),n=l.blogs||[];u(n),F((null===(e=l.pagination)||void 0===e?void 0:e.total)||0),N((null===(t=l.pagination)||void 0===t?void 0:t.has_more)||!1),w(null),console.log("BlogArchive: Initial load - received ".concat(n.length," blogs, has more: ").concat(null===(r=l.pagination)||void 0===r?void 0:r.has_more,", total: ").concat(null===(s=l.pagination)||void 0===s?void 0:s.total))}catch(e){console.error("Failed to load blogs:",e),w(e instanceof Error?e.message:"Failed to load blogs"),u([]),N(!1),F(0)}finally{g(!1)}}()},[]);let T=f.map(e=>{var r;let s=(null===(r=e.acf)||void 0===r?void 0:r.featured_image_override)||e.featured_image;return{id:e.id,title:"fr"===t&&e.title_fr?e.title_fr:e.title,content:"fr"===t&&e.content_fr?e.content_fr:e.content,featured_image:s,date:O(e.date),permalink:e.permalink,categories:e.categories||[]}}),z=async()=>{if(_||!y)return;k(!0);let e=v+1;try{console.log("BlogArchive: Loading page ".concat(e));let s=await fetch("/api/insights?per_page=12&page=".concat(e));if(s.ok){var t,r;let a=await s.json(),l=a.blogs||[];console.log("BlogArchive: Received ".concat(l.length," blogs for page ").concat(e)),l.length>0&&(u(e=>{let t=[...e,...l];return console.log("BlogArchive: Total blogs now: ".concat(t.length)),t}),j(e)),N((null===(t=a.pagination)||void 0===t?void 0:t.has_more)||!1),console.log("BlogArchive: Has more blogs: ".concat(null===(r=a.pagination)||void 0===r?void 0:r.has_more))}else console.log("BlogArchive: API returned status ".concat(s.status," - treating as end of pagination")),N(!1)}catch(e){console.error("BlogArchive: Error loading more blogs:",e),N(!1)}finally{k(!1)}},W=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:25,r=e.replace(/<[^>]*>?/gm,"").split(" ").slice(0,t).join(" "),s=r.lastIndexOf(".");return -1===s?r:r.substring(0,s+1)},q=e=>{if(!e)return"";let t=e.replace(/<[^>]*>/g,"").trim();return t?t.toLowerCase().replace(/[à áâãäå]/g,"a").replace(/[èéêë]/g,"e").replace(/[ìÃîï]/g,"i").replace(/[òóôõö]/g,"o").replace(/[ùúûü]/g,"u").replace(/[ç]/g,"c").replace(/[ñ]/g,"n").replace(/[ÿ]/g,"y").replace(/[·]/g,"").replace(/['']/g,"").replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""):""},H=(e,r)=>{let s;if(!e)return"#";try{s=new URL(e).pathname}catch(t){s=e}let a=s.startsWith("/")?s.substring(1):s;
1if("fr"===t&&r){let e=q(r);if(e)return"/fr/blog/".concat(e)}return a.startsWith("http")||a.startsWith("blog/")?s:"/".concat(t,"/blog/").concat(a)};return(0,s.jsx)("section",{className:"py-[96px] px-[40px] bg-white",children:(0,s.jsxs)("div",{className:"mx-auto max-w-[1464px]",children:[C&&(0,s.jsx)("div",{className:"mb-[48px] text-center",children:(0,s.jsx)("h1",{className:"font-header font-extrabold text-4xl md:text-5xl lg:text-[64px] leading-[72px] tracking-[0.02em] uppercase text-[#314F9D]",children:C})}),h?(0,s.jsx)("div",{className:"text-center py-[48px]",children:(0,s.jsx)("div",{className:"font-barlow font-normal text-[16px] leading-[24px] text-[#38393A]",children:D})}):b?(0,s.jsx)("div",{className:"text-center py-[48px]",children:(0,s.jsxs)("div",{className:"font-barlow font-normal text-[16px] leading-[24px] text-red-500 mb-4",children:[E,": ",b]})}):0===T.length?(0,s.jsxs)("div",{className:"text-center py-[48px]",children:[(0,s.jsx)("div",{className:"font-barlow font-normal text-[16px] leading-[24px] text-[#38393A] mb-4",children:A}),(0,s.jsx)("div",{className:"font-barlow font-normal text-[14px] leading-[20px] text-[#666666]",children:B})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-[48px] mb-[64px]",children:T.map((e,t)=>{let r=f[t];return(0,s.jsxs)("div",{className:"blog-card flex flex-col",children:[(0,s.jsxs)("div",{className:"relative w-full overflow-hidden rounded-[8px] h-[374px]",children:[e.featured_image?(0,s.jsx)(c.Z,{src:e.featured_image,alt:e.title,fill:!0,className:"object-cover",sizes:"(max-width: 768px) 100vw, (max-width: 1024px) 50vw, 33vw"}):(0,s.jsx)(x.Z,{configName:"default",alt:"".concat(e.title," placeholder")}),e.categories.length>0&&(0,s.jsx)("div",{className:"absolute top-[24px] left-[24px] flex flex-col justify-center items-center px-[8px] py-[4px] rounded-[8px] backdrop-blur-[7.5px] z-10",style:{backgroundColor:Z(e.categories[0].id)},children:(0,s.jsx)("span",{className:"font-barlow font-semibold text-[14px] leading-[17px] text-white whitespace-nowrap",children:m(e.categories[0],S)})})]}),e.date&&(0,s.jsx)("div",{className:"mt-[32px] font-header font-light text-[24px] leading-[24px] ".concat("en"===S?"uppercase":""," text-[#314F9D]"),children:e.date}),(0,s.jsx)(o.default,{href:H(e.permalink,null==r?void 0:r.title_fr),className:"mt-[16px] block hover:opacity-80 transition-opacity duration-300",children:(0,s.jsx)("h2",{className:"font-header font-extrabold text-[24px] leading-[36px] uppercase text-black",children:(0,d.ZP)(e.title)})}),(0,s.jsx)("div",{className:"mt-[16px] mb-[16px] font-barlow font-normal text-[16px] leading-[24px] text-[#38393A]",children:W(e.content,25)}),(0,s.jsx)("div",{className:"mt-auto",children:(0,s.jsxs)(o.default,{href:H(e.permalink,null==r?void 0:r.title_fr),className:"blog-read-more font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B] pb-[12px] border-b border-[#23243B] hover:opacity-80 transition-opacity duration-300 group inline-flex items-center",children:[L,(0,s.jsx)("div",{className:"ml-2 flex items-center justify-center transition-transform duration-300 group-hover:translate-x-1",children:(0,s.jsx)(i.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{verticalAlign:"middle"}})})]})})]},e.id)})}),y&&(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)("button",{onClick:z,disabled:_,className:"flex items-center justify-center gap-[8px] px-[16px] py-[8px] w-auto h-[39px] border border-[#23243B] rounded-[8px] bg-transparent hover:bg-[#23243B] hover:text-white transition-all duration-300 group disabled:opacity-50 disabled:cursor-not-allowed",children:_?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"w-4 h-4 border-2 border-[#23243B]/30 border-t-[#23243B] rounded-full animate-spin group-hover:border-white/30 group-hover:border-t-white"}),(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B] group-hover:text-white",children:"Loading..."})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B] group-hover:text-white",children:M}),(0,s.jsx)("div",{className:"flex items-center justify-center w-[20px] h-[20px]",children:(0,s.jsx)(i.default,{src:"/images/plus.svg",alt:"",width:20,height:20,className:"group-hover:filter group-hover:brightness-0 group-hover:invert"})})]})})})]})]})})}},6121:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(3145),o=r(7562),c=r(9764),x=r(7795);r(7354),r(6968),t.default=e=>{let{lang:t,...r}=e,[d,p]=(0,a.useState)([]),[m,f]=(0,a.useState)([]),[u,h]=(0,a.useState)(!0),[g,b]=(0,a.useState)(null),[w,v]=(0,a.useState)(null),[j,y]=(0,a.useState)(!1),N=(0,a.useRef)(null),_=(0,a.useRef)(null),k=(0,a.useRef)(!1),P=(0,n.i)("common","loading",t)||"Loading...",F=(0,n.i)("common","error",t)||"Error loading board members",C=(0,n.i)("teamMembers","noMembers",t)||"No board members found",S=(0,n.i)("teamMembers","checkBack",t)||"Please check back later",D=(0,l.yP)(r,"title",t),E=(0,l.yP)(r,"content",t);(0,a.useEffect)(()=>{f(d)},[d]),(0,a.useEffect)(()=>{let e=e=>{N.current&&!N.current.contains(e.target)&&y(!1)};return j&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[j]),(0,a.useEffect)(()=>(j?document.body.style.overflow="hidden":document.body.style.overflow="auto",()=>{document.body.style.overflow="auto"}),[j]),(0,a.useEffect)(()=>{(async function(){try{let e=await fetch("/api/team-members?category=board-of-directors");if(!e.ok)try{let t=await e.json();throw Error("API Error (".concat(e.status,"): ").concat(t.message||t.error||"Unknown error"))}catch(t){throw Error("HTTP error! Status: ".concat(e.status," ").concat(e.statusText))}let t=await e.json();if(!Array.isArray(t))throw Error("Invalid response format from API");p(t),b(null)}catch(e){console.error("Failed to load board members:",e),b(e instanceof Error?e.message:"Failed to load board members"),p([])}finally{h(!1)}})()},[]);let A=(e,r)=>{let s="".concat(r,"_fr");return"fr"===t&&e[s]?e[s]:e[r]||""},B=m.map(e=>({id:e.id,title:A(e,"title"),content:A(e,"content"),featured_image:e.featured_image||"",position:A(e,"position"),extended_position:A(e,"extended_position"),permalink:e.permalink||"#"})),L=e=>e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g," ").trim();(0,a.useEffect)(()=>
1{if(u||j||0===B.length||k.current)return;let e=new URLSearchParams(window.location.search).get("person");if(!e)return;let t=L(e.replace(/-/g," ")),r=null,s=-1;for(let e of B){let a=L(e.title),l=0;if(a===t)l=100;else if(a.startsWith(t)||t.startsWith(a))l=90;else if(a.includes(t)||t.includes(a))l=80;else{let e=new Set(a.split(" ")),r=new Set(t.split(" ")),s=0;e.forEach(e=>{r.has(e)&&s++});let n=e.size;r.forEach(t=>{!e.has(t)&&n++}),l=n?Math.round(s/n*70):0}l>s&&(s=l,r=e)}if(r&&s>=60){let e=d.find(e=>e.id===r.id);e?M(e):(v(r),y(!0)),k.current=!0;let t=new URL(window.location.href);t.searchParams.delete("person"),window.history.replaceState(null,"",t.toString())}},[u,j,B,d]);let M=e=>{v(e),y(!0)};return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("section",{id:"board-members",className:"pt-[96px] pr-[20px] pb-[96px] pl-[20px] md:pr-[40px] md:pl-[40px] bg-[#F3F3F2]",children:[(0,s.jsxs)("div",{className:"mx-auto max-w-[1600px]",children:[(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row justify-between items-start lg:items-end mb-[48px]",children:[(0,s.jsxs)("div",{className:"pl-0 sm:pl-[70px] max-w-[710px] lg:max-w-[60%] mb-8 lg:mb-0",children:[D&&(0,s.jsx)("div",{className:"two-col-simple-content",children:(0,s.jsx)("h3",{className:"font-header font-light text-[36px] leading-[38px] text-[#314F9D] uppercase",children:(0,o.ZP)(D)})}),E&&(0,s.jsx)("div",{className:"mt-[16px] font-sans font-normal text-[16px] leading-[24px] text-[#242424] two-col-simple-content",children:(0,o.ZP)(E)})]}),(0,s.jsxs)("div",{className:"flex self-center lg:self-end pr-0 sm:pr-[70px] space-x-[10px]",children:[(0,s.jsx)("button",{onClick:()=>{var e;null===(e=_.current)||void 0===e||e.slidePrev()},className:"w-12 h-12 flex items-center justify-center rounded-full bg-[#383838]/60 transition-all duration-300 hover:bg-[#383838]/80","aria-label":"fr"===t?"Pr\xe9c\xe9dent":"Previous",children:(0,s.jsx)("div",{className:"w-6 h-6 relative rotate-180 flex items-center justify-center",children:(0,s.jsx)(i.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{filter:"brightness(0) invert(1)"}})})}),(0,s.jsx)("button",{onClick:()=>{var e;null===(e=_.current)||void 0===e||e.slideNext()},className:"w-12 h-12 flex items-center justify-center rounded-full bg-[#383838]/60 transition-all duration-300 hover:bg-[#383838]/80","aria-label":"fr"===t?"Suivant":"Next",children:(0,s.jsx)("div",{className:"w-6 h-6 relative flex items-center justify-center",children:(0,s.jsx)(i.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{filter:"brightness(0) invert(1)"}})})})]})]}),(0,s.jsx)("div",{className:"board-members-slider-container overflow-hidden",children:u?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("div",{className:"inline-block w-8 h-8 border-4 border-[#314F9D]/30 border-t-[#314F9D] rounded-full animate-spin"}),(0,s.jsx)("p",{className:"mt-2 text-[#314F9D]",children:P})]}):g?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#E53E3E]",children:F}),(0,s.jsx)("p",{className:"mb-4 text-[#38393A]",children:g}),(0,s.jsx)("div",{className:"p-4 bg-gray-100 rounded-md text-left max-w-2xl mx-auto",children:(0,s.jsx)("p",{className:"font-mono text-sm text-[#38393A]",children:"â ï¸ Please contact the site administrator with this error message."})})]}):B.length>0?(0,s.jsx)("div",{className:"relative",children:(0,s.jsx)(c.tq,{modules:[x.W_,x.pt],spaceBetween:20,slidesPerView:1,breakpoints:{320:{slidesPerView:1,spaceBetween:20,slidesPerGroup:1},640:{slidesPerView:2,spaceBetween:20,slidesPerGroup:1},768:{slidesPerView:3,spaceBetween:20,slidesPerGroup:1},1024:{slidesPerView:4,spaceBetween:20,slidesPerGroup:1},1280:{slidesPerView:6,spaceBetween:20,slidesPerGroup:1}},onSwiper:e=>{_.current=e},autoplay:{delay:8e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},loop:!1,grabCursor:!0,className:"board-members-swiper w-full",style:{overflow:"visible"},children:B.map(e=>(0,s.jsx)(c.o5,{children:(0,s.jsx)("div",{className:"px-[10px]",children:(0,s.jsxs)("div",{className:"flex flex-col items-center mx-auto cursor-pointer group",onClick:()=>{let t=d.find(t=>
1t.id===e.id);t&&M(t)},children:[(0,s.jsxs)("div",{className:"relative w-full max-w-[233px] h-[318px] rounded-[8px] overflow-hidden member-image-container",children:[e.featured_image?(0,s.jsx)("img",{src:e.featured_image,alt:e.title,className:"w-full h-full object-cover"}):(0,s.jsx)("div",{className:"w-full h-full bg-gray-200 flex items-center justify-center",children:(0,s.jsxs)("svg",{width:"80",height:"80",viewBox:"0 0 24 24",fill:"none",className:"text-gray-400",children:[(0,s.jsx)("path",{d:"M12 12C14.7614 12 17 9.76142 17 7C17 4.23858 14.7614 2 12 2C9.23858 2 7 4.23858 7 7C7 9.76142 9.23858 12 12 12Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M12 14C7.58172 14 4 17.5817 4 22H20C20 17.5817 16.4183 14 12 14Z",fill:"currentColor"})]})}),(0,s.jsx)("div",{className:"absolute top-[16px] left-[16px] w-[48px] h-[48px] rounded-full bg-white/60 flex items-center justify-center plus-icon-container",children:(0,s.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M9 1.5V16.5",stroke:"#383838",strokeWidth:"2",strokeLinecap:"round"}),(0,s.jsx)("path",{d:"M16.5 9L1.5 9",stroke:"#383838",strokeWidth:"2",strokeLinecap:"round"})]})})]}),(0,s.jsx)("p",{className:"mt-[14px] font-header font-semibold text-[18px] leading-[22px] text-center text-[#242424] transition-colors duration-300 group-hover:text-[#314F9D]",children:e.title}),(0,s.jsx)("p",{className:"mt-[4px] font-sans font-normal text-[16px] leading-[20px] text-center text-[#242424]",children:e.position})]})})},e.id))})}):(0,s.jsxs)("div",{className:"text-center py-12",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#314F9D]",children:C}),(0,s.jsx)("p",{className:"opacity-80 text-[#38393A]",children:S})]})})]}),j&&w&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50",children:(0,s.jsxs)("div",{ref:N,className:"relative bg-[#23243B] w-full max-w-[750px] max-h-[750px] overflow-y-auto rounded-md",children:[(0,s.jsx)("button",{className:"absolute top-[20px] right-[20px] md:top-[41px] md:right-[65px] z-10",onClick:()=>{y(!1),k.current=!0;{let e=new URL(window.location.href);e.searchParams.has("person")&&(e.searchParams.delete("person"),window.history.replaceState(null,"",e.toString()))}},children:(0,s.jsx)(i.default,{src:"/images/cross.svg",alt:"Close",width:23,height:23})}),(0,s.jsxs)("div",{className:"p-[24px] md:p-[56px]",children:[(0,s.jsxs)("div",{className:"flex flex-col md:flex-row gap-[40px] mb-[40px]",children:[(0,s.jsx)("div",{className:"flex-shrink-0",children:(0,s.jsx)("div",{className:"w-[170px] h-[212px] rounded-[8px] overflow-hidden",children:w.featured_image?(0,s.jsx)("img",{src:w.featured_image,alt:A(w,"title"),className:"w-full h-full object-cover"}):(0,s.jsx)("div",{className:"w-full h-full bg-gray-600 flex items-center justify-center",children:(0,s.jsxs)("svg",{width:"80",height:"80",viewBox:"0 0 24 24",fill:"none",className:"text-gray-400",children:[(0,s.jsx)("path",{d:"M12 12C14.7614 12 17 9.76142 17 7C17 4.23858 14.7614 2 12 2C9.23858 2 7 4.23858 7 7C7 9.76142 9.23858 12 12 12Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M12 14C7.58172 14 4 17.5817 4 22H20C20 17.5817 16.4183 14 12 14Z",fill:"currentColor"})]})})})}),(0,s.jsxs)("div",{className:"flex flex-col justify-end",children:[(0,s.jsx)("h2",{className:"font-header font-extrabold text-[28px] leading-[32px] md:text-[36px] md:leading-[38px] uppercase text-white",children:A(w,"title")}),(0,s.jsx)("p",{className:"mt-[8px] font-sans font-normal text-[18px] leading-[24px] md:text-[20px] md:leading-[32px] text-[#63B3E4]",children:A(w,"position")}),(0,s.jsx)("p",{className:"mt-[8px] font-sans font-normal text-[14px] leading-[17px] text-left text-[#ffffff]",children:(0,o.ZP)(A(w,"extended_position"))})]})]}),(0,s.jsx)("div",{className:"w-full h-[1px] bg-white/20 mb-[40px]"}),(0,s.jsx)("div",{className:"text-base text-[#ffffff] [&_p]:mb-[24px]",children:(0,o.ZP)(A(w,"content"))})]})]})})]})})}},389:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(7562),o=r(3145);t.default=e=>{let{lang:t,...r}=e,c=(0,l.yP)(r,"title",t),[x,d]=(0,a.useState)(0),[p,m]=(0,a.useState)([]),[f,u]=(0,a.useState)(!1),[h,g]=(0,a.useState)(!1),[b,w]=(0,a.useState)(!1),[v,j]=(0,a.useState)("right"),[y,N]=(0,a.useState)(!1),[_,k]=(0,a.useState)(null),[P,F]=(0,a.useState)(null),C=(0,a.useRef)(null),[S,D]=(0,a.useState)(!1),[E,A]=(0,a.useState)(null),[B,L]=(0,a.useState)(0),[M,I]=(0,a.useState)(0),O
1=[];if(Array.isArray(r.postings))O=r.postings;else if("object"==typeof r.postings&&null!==r.postings)Array.isArray(r.postings.postings)&&(O=r.postings.postings);else if("string"==typeof r.postings)try{let e=JSON.parse(r.postings);Array.isArray(e)&&(O=e)}catch(e){console.error("Failed to parse postings JSON:",e)}let R=(e,r)=>{let s="fr"===t?"".concat(r,"_fr"):r;if(e[s]&&""!==e[s])return e[s];if(e[r])return e[r];if(e.acf){if(e.acf[s]&&""!==e.acf[s])return e.acf[s];if(e.acf[r])return e.acf[r]}return""};(0,a.useEffect)(()=>{w(!0)},[]),(0,a.useEffect)(()=>{let e=()=>{u(window.innerWidth<640),g(window.innerWidth>=640&&window.innerWidth<1024)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,a.useEffect)(()=>{if(!b||0===O.length)return;let e=f?1:2,r=Math.ceil(O.length/e);if(p.length>0)N(!0),setTimeout(()=>{let s=x%r*e,a=[],l=Math.min(e,O.length);for(let e=0;e<l;e++){let t=(s+e)%O.length;a.push({...O[t],slideId:t,isNew:!0})}m(a),N(!1);let n="fr"===t?"Diapositive ".concat(x+1," sur ").concat(r):"Slide ".concat(x+1," of ").concat(r),i=document.getElementById("career-slider-announcer");i&&(i.textContent=n)},300);else{let t=x%r*e,s=[],a=Math.min(e,O.length);for(let e=0;e<a;e++){let r=(t+e)%O.length;r<O.length&&s.push({...O[r],slideId:r,isNew:!1})}m(s)}},[x,O,f,b,t]);let Z=e=>{y||(D(!0),A(e),L(0),document.body.style.userSelect="none")},T=e=>{var t;S&&null!==E&&!y&&L((e-E)/((null===(t=C.current)||void 0===t?void 0:t.offsetWidth)||1)*100)},z=()=>{if(S&&!y){if(D(!1),document.body.style.userSelect="",Math.abs(B)>(f?15:10)){let e=f?1:2,t=Math.ceil(O.length/e);B>0&&x>0?(j("left"),d(e=>e<=0?t-1:e-1)):B<0&&x<t-1&&(j("right"),d(e=>e>=t-1?0:e+1))}A(null),L(0),I(0)}},W=(0,a.useCallback)(e=>{S&&(e.preventDefault(),T(e.clientX))},[S,E]),q=(0,a.useCallback)(e=>{S&&(e.preventDefault(),z())},[S,B,x,O.length,f,y]),H=(0,a.useCallback)(()=>{if(O.length<=(f?1:2)||y)return;let e=f?1:2,t=Math.ceil(O.length/e);j("right"),d(e=>e>=t-1?0:e+1)},[O.length,f,y]),U=(0,a.useCallback)(()=>{if(O.length<=(f?1:2)||y)return;let e=f?1:2,t=Math.ceil(O.length/e);j("left"),d(e=>e<=0?t-1:e-1)},[O.length,f,y]);if((0,a.useEffect)(()=>{if(S)return document.addEventListener("mousemove",W),document.addEventListener("mouseup",q),document.addEventListener("mouseleave",q),()=>{document.removeEventListener("mousemove",W),document.removeEventListener("mouseup",q),document.removeEventListener("mouseleave",q)}},[S,W,q]),!b)return null;let J=(0,n.i)("common","learnMore",t)||"Learn more",Y=(0,n.i)("common","noOpportunities",t)||"No opportunities available at this time.";return(0,s.jsxs)("section",{id:"career-opportunities",className:"flex flex-col items-center pb-24 gap-14 w-full bg-white",children:[(0,s.jsx)("div",{id:"career-slider-announcer",className:"sr-only","aria-live":"polite","aria-atomic":"true"}),(0,s.jsx)("div",{className:"w-full max-w-[1544px] flex flex-col items-start p-4 sm:p-10 gap-10 bg-[#F3F3F2] rounded-2xl",children:(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row items-stretch gap-10 w-full flex-wrap",children:[(0,s.jsxs)("div",{className:"flex flex-col justify-between items-start gap-10 w-full sm:w-[642px]",children:[c&&(0,s.jsx)("h2",{className:"strong-override-blue",children:(0,i.ZP)(c)}),O.length>(f?1:2)&&(0,s.jsxs)("div",{className:"navigation flex flex-row items-end gap-4 w-full mt-auto",children:[(0,s.jsx)("div",{className:"flex-grow border-b border-[#314F9D] border-opacity-100"}),(0,s.jsxs)("div",{className:"flex space-x-2.5",children:[(0,s.jsx)("button",{onClick:U,className:"w-10 h-10 md:w-14 md:h-14 flex items-center justify-center rounded-full bg-[#383838]/60 transition-all duration-300 hover:bg-[#383838]/80 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500","aria-label":"fr"===t?"Pr\xe9c\xe9dent":"Previous",disabled:y,children:(0,s.jsx)("div",{className:"w-5 h-5 md:w-5 md:h-5 relative rotate-180 flex items-center justify-center",children:(0,s.jsx)(o.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{filter:"brightness(0) invert(1)"}})})}),(0,s.jsx)("button",{onClick:H,className:"w-10 h-10 md:w-14 md:h-14 flex items-center justify-center rounded-full bg-[#383838]/60 transition-all duration-300 hover:bg-[#383838]/80 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500","aria-label":"fr"===t?"
1Suivant":"Next",disabled:y,children:(0,s.jsx)("div",{className:"w-5 h-5 md:w-5 md:h-5 relative flex items-center justify-center",children:(0,s.jsx)(o.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{filter:"brightness(0) invert(1)"}})})})]})]})]}),(0,s.jsx)("div",{ref:C,className:"flex flex-col sm:flex-row w-full sm:flex-1 min-w-[280px] overflow-hidden select-none ".concat(S?"transition-none":""),onMouseDown:e=>{e.preventDefault(),Z(e.clientX)},onTouchStart:e=>{Z(e.touches[0].clientX),F(null),k(e.targetTouches[0].clientX)},onTouchMove:e=>{T(e.touches[0].clientX),F(e.targetTouches[0].clientX)},onTouchEnd:e=>{if(z(),!_||!P||y)return;let t=_-P;t>50?H():t<-50&&U()},"aria-roledescription":"carousel","aria-label":"fr"===t?"Opportunit\xe9s de carri\xe8re":"Career Opportunities",children:(0,s.jsx)("div",{className:"w-full flex flex-col sm:flex-row gap-4 sm:gap-6 justify-between",children:p.length>0?p.map((e,t)=>{let r=R(e,"posting_title"),a=R(e,"content"),l=R(e,"link"),n="\n flex flex-col justify-between p-6 gap-8 bg-white rounded-lg \n w-full ".concat(1===O.length?"sm:w-full":"sm:w-[calc(50%-12px)]"," min-h-[280px] shadow-sm hover:shadow-md\n transition-shadow duration-300 ").concat(f?"mb-4":"","\n ").concat(y?"card-out-".concat(v):e.isNew?"card-in-".concat(v):"","\n ");return(0,s.jsxs)("div",{className:n,role:"group","aria-labelledby":"posting-title-".concat(t),children:[(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[r&&(0,s.jsx)("h3",{id:"posting-title-".concat(t),className:"text-xl font-semibold break-words",children:r}),a&&(0,s.jsx)("div",{className:"job-content",children:(0,i.ZP)(a)})]}),l&&(0,s.jsx)("div",{className:"flex justify-left mt-auto",children:(0,s.jsxs)("a",{href:l,className:"group flex flex-row items-center justify-center py-3 gap-2 border-b border-[#23243B] transition-all hover:opacity-80 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",target:"_blank",rel:"noopener noreferrer","aria-label":"".concat(J,": ").concat(r),children:[(0,s.jsx)("span",{children:J}),(0,s.jsx)(o.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,className:"transition-transform duration-300 group-hover:translate-x-1"})]})})]},"posting-".concat(e.slideId||t))}):(0,s.jsx)("div",{className:"flex justify-center items-center w-full min-h-[280px] bg-white rounded-lg p-6 shadow-sm",children:(0,s.jsx)("p",{className:"text-center text-gray-500",children:Y})})})})]})})]})}},8646:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562);t.default=e=>{let{lang:t,...r}=e,[i,o]=(0,a.useState)(!1),[c,x]=(0,a.useState)(null),d=[];if(Array.isArray(r.faqs))d=r.faqs;else if("object"==typeof r.faqs&&null!==r.faqs)Array.isArray(r.faqs.faqs)&&(d=r.faqs.faqs);else if("string"==typeof r.faqs)try{let e=JSON.parse(r.faqs);Array.isArray(e)&&(d=e)}catch(e){console.error("Failed to parse FAQ JSON:",e)}if((0,a.useEffect)(()=>{o(!0)},[]),!i)return null;let p=(0,l.yP)(r,"title",t),m=(0,l.yP)(r,"left_col_content",t),f=(0,l.yP)(r,"right_col_content",t),u=p?p.replace(/<\/?p[^>]*>/gi,"").trim():"",h=e=>{x(c===e?null:e)};return(0,s.jsx)("section",{id:"ccip-faq",className:"py-[96px] px-[40px] bg-[#F3F3F2]",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1256px]",children:(0,s.jsxs)("div",{className:"flex flex-col items-start gap-[64px] w-full",children:[u&&(0,s.jsx)("div",{className:"flex flex-col items-center w-full flex-none order-0 flex-grow-0",children:(0,s.jsx)("h2",{className:"strong-override-blue font-header font-light text-[36px] leading-[38px] text-center uppercase text-[#314F9D] max-w-[626px]",children:(0,n.ZP)(u)})}),(m||f)&&(0,s.jsxs)("div",{className:"flex flex-col md:flex-row items-start gap-[40px] w-full flex-none order-1 self-stretch flex-grow-0",children:[m&&(0,s.jsx)("div",{className:"flex flex-col items-start gap-[16px] w-full md:w-[608px] flex-shrink order-0 flex-grow-0",children:(0,s.jsx)("div",{className:"font-sans font-normal text-[16px] leading-[24px] text-[#424242] w-full",children:(0,n.ZP)(m)})}),f&&(0,s.jsx)("div",{className:"flex flex-col items-start gap-[16px] w-full md:w-[608px] flex-shrink order-1 flex-grow-0",children:(0,s.jsx)("div",{className:"font-sans font-normal text-[16px] leading-[24px] text-[#424242] w-full",children:(0,n.ZP)(f)})})]}),d.length>0&&(0,s.jsx)("div",{className:"flex flex-col items-start w-full flex-none order-2 flex-grow-0",children:d.map((e,r)=>{let a=e.hasOwnProperty("faq_title")?e:e.acf||e,l="fr"===t&&a.faq_title_fr?a.faq_title_fr:a.faq_title||"",i="fr"===t&&a.faq_content_fr?a.faq_content_fr:a.faq_content||"",o=c===r;return(0,s.jsxs)("div",{className:"flex flex-col items-start w-full border-t border-[#DAD9D6] last:border-b",children:[(0,s.jsxs)("button",{onClick:()=>h(r),className:"flex flex-row justify-between items-center py-6 w-full text-left hover:bg-[#DAD9D6]/10 transition-all duration-300",children:[(0,s.jsx)("div",{className:"flex-1 pr-4 w-full max-w-full mx-auto",children:(0,s.jsx)("h3",{className:"font-header font-extrabold text-[18px] leading-[20px] flex items-end tracking-[0.02em] uppercase text-[#23243B]",children:(0,n.ZP)(l)})}),(0,s.jsx)("div",{className:"flex-none w-8 h-8 flex items-center justify-center mx-auto",children:(0,s.jsxs)("div",{className:"relative w-4 h-4",children:[(0,s.jsx)("div",{className:"absolute top-1/2 left-0 w-4 h-[1.5px] bg-[#23243B] transform -translate-y-1/2"}),(0,s.jsx)("div",{className:"absolute left-1/2 top-0 w-[1.5px] h-4 bg-[#23243B] transform -translate-x-1/2 transition-all duration-300 ".concat(o?"opacity-0 rotate-90":"opacity-100 rotate-0")})]})})]}),(0,s.jsx)("div",{className:"w-full overflow-hidden transition-all duration-300 ease-in-out ".concat(o?"max-h-[500px] opacity-100 pb-6":"max-h-0 opacity-0"),children:(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("div",{className:"font-sans font-normal text-[16px] leading-[24px] text-[#23243B] [&_ul]:list-disc [&_ul]:pl-6 [&_ul]:mb-4 [&_li]:mb-1",children:(0,n.ZP)(i)})})})]},"faq-".concat(r))})})]})})})}},9057:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(7562),o=r(3145),c=r(3735);t.default=e=>{let{lang:t,...r}=e,[x,d]=(0,a.useState)([]),[p,m]=(0,a.useState)(!0),[f,u]=(0,a.useState)(null),[h,g]=(0,a.useState)(0),b=(0,a.useRef)(null),[w,v]=(0,a.useState)(null),[j,y]=(0,a.useState)(null),[N,_]=(0,a.useState)(!1),k=(0,l.yP)(r,"title",t),P=r.background_image||"";(0,a.useEffect)(()=>{let e=()=>{_(window.innerWidth>=1024)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,a.useEffect)(()=>{(async function(){try{let e=await fetch("/api/swoogo/events");if(!e.ok){let t="";try{let r=await e.json();t=(null==r?void 0:r.message)||(null==r?void 0:r.error)||JSON.stringify(r)}catch(r){try{t=await e.text()}catch(e){t=""}}throw Error("HTTP ".concat(e.status,": ").concat(t))}let t=await e.json();console.log("CommunityofPractice component - Raw events data:",t);let r=Array.isArray(t)?t.filter(e=>(console.log("Checking event:",e.id,e.title,"categories:",e.categories),!!(e.categories&&Array.isArray(e.categories)&&e.categories.some(e=>e&&e.name?e.name.toLowerCase().includes("community")&&e.name.toLowerCase().includes("practice"):!!e&&!!e.slug&&(e.slug.toLowerCase().includes("community-of-practice")||e.slug.toLowerCase().includes("community_of_practice")||e.slug.toLowerCase().includes("community")&&e.slug.toLowerCase().includes("practice")))))):[];console.log("CommunityofPractice component - Filtered community events:",r),d(r),u(null)}catch(e){console.error("Failed to load community of practice events:",e),u(e instanceof Error?e.message:"Failed to load community of practice events"),d([])}finally{m(!1)}})()},[]);let F=e=>{if(!e)return null;try{let t=String(e).trim();if(/^\d{8}$/.test(t)){let e=parseInt(t.substring(0,4),10),r=parseInt(t.substring(4,6),10)-1,s=parseInt(t.substring(6,8),10);return new Date(e,r,s,0,0,0,0)}let r=t.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(r){let e=parseInt(r[1],10),t=parseInt(r[2],10)-1,s=parseInt(r[3],10);return new Date(e,t,s,0,0,0,0)}let s=new Date(t);if(!isNaN(s.getTime()))return new Date(s.getFullYear(),s.getMonth(),s.getDate(),0,0,0,0)}catch(e){}return null},C=(0,a.useMemo)(()=>{let e=new Date;return e.setHours(0,0,0,0),x.map(e=>{let r=F(e.date),s=("fr"===t&&e.title_fr?e.title_fr:e.title).replace(/<\/?p[^>]*>/gi,"").trim();return{id:e.id,title:s,content:"fr"===t&&e.content_fr?e.content_fr:e.content,featured_image:e.featured_image,date:e.date,link:e.link,categories:e.categories,designation:e.designation,dateObj:r}}).filter(t=>!(!t.dateObj||t.title&&t.title.toLowerCase().includes("press release"))&&t.dateObj.getTime()>=e.getTime()).sort((e,t)=>
1e.dateObj?t.dateObj?e.dateObj.getTime()-t.dateObj.getTime():-1:1)},[x,t]),S=(0,a.useMemo)(()=>{let e=N?8:4;return C.length<=e?C:C.slice(h,h+e)},[C,h,N]),D=()=>{let e=C.length,t=N?8:4;0===e||h+t>=e||g(r=>Math.min(r+1,e-t))},E=()=>{h<=0||g(e=>Math.max(e-1,0))},A=function(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2?arguments[2]:void 0;if(!e)return{month:"",day:"",year:"",formatted:""};try{let a;let l=e instanceof Date?e:F(e);if(!l||isNaN(l.getTime()))return console.warn("Failed to parse date in formatDate:",e),{month:"",day:"",year:"",formatted:""};let n="fr"===t||"FR"===s,i=l.toLocaleString(n?"fr-CA":"en-US",{month:"long"}),o=l.getDate(),c=l.getFullYear(),x=n?i.toLowerCase():i.toUpperCase();return a=r?n?"".concat(o," ").concat(x," ").concat(c):"".concat(x," ").concat(o,", ").concat(c):n?"".concat(o," ").concat(x):"".concat(x," ").concat(o),{month:x,day:o.toString(),year:c.toString(),formatted:a}}catch(t){return console.warn("Error in formatDate:",t,e),{month:"",day:"",year:"",formatted:""}}},[B,L]=(0,a.useState)(0);return(0,a.useEffect)(()=>{L(e=>e+1)},[h]),(0,s.jsxs)("section",{id:"community-of-practice-section",className:"relative py-[96px] px-[40px]",style:{backgroundImage:P?"url(".concat(P,")"):"none",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundColor:P?"transparent":"#314F9D"},children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/50"}),(0,s.jsxs)("div",{className:"container relative z-10 mx-auto max-w-[1350px]",children:[k&&(0,s.jsx)("div",{className:"max-w-[1350px] mx-auto",children:(0,s.jsx)("h2",{className:"font-header text-4xl sm:text-5xl md:text-6xl lg:text-[72px] lg:pl-[94px] font-light leading-[1] text-white text-left strong-override",children:(0,i.ZP)(k)})}),(0,s.jsx)("div",{className:"mt-[48px] flex justify-center",children:p?(0,s.jsxs)("div",{className:"text-center py-8 text-white",children:[(0,s.jsx)("div",{className:"inline-block w-8 h-8 border-4 border-white/30 border-t-white rounded-full animate-spin"}),(0,s.jsx)("p",{className:"mt-2",children:"fr"===t?"Chargement...":"Loading..."})]}):f?(0,s.jsxs)("div",{className:"text-center py-8 text-white",children:[(0,s.jsx)("p",{children:"fr"===t?"Erreur de chargement":"Error loading community of practice events"}),(0,s.jsx)("p",{className:"text-sm opacity-75",children:f})]}):C.length>0?(0,s.jsxs)("div",{ref:b,className:"community-events-columns max-w-[1350px] flex flex-col lg:flex-row gap-[40px] mx-auto w-full",onTouchStart:e=>{y(null),v(e.targetTouches[0].clientX)},onTouchMove:e=>{y(e.targetTouches[0].clientX)},onTouchEnd:()=>{if(!w||!j)return;let e=w-j;e>50?D():e<-50&&E()},children:[(0,s.jsxs)("div",{className:"flex flex-row lg:flex-col items-center justify-center gap-[10px] h-full min-w-[48px]",children:[(0,s.jsx)("button",{onClick:E,className:"w-12 h-12 flex items-center justify-center rounded-full bg-white/60 backdrop-blur-[15px] transition-all duration-300 hover:bg-white/80","aria-label":"fr"===t?"\xc9v\xe9nement pr\xe9c\xe9dent":"Previous event",children:(0,s.jsx)("div",{className:"w-6 h-6 relative rotate-180 flex items-center justify-center",children:(0,s.jsx)(o.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{verticalAlign:"middle"}})})}),(0,s.jsx)("button",{onClick:D,className:"w-12 h-12 flex items-center justify-center rounded-full bg-white/60 backdrop-blur-[15px] transition-all duration-300 hover:bg-white/80","aria-label":"fr"===t?"\xc9v\xe9nement suivant":"Next event",children:(0,s.jsx)("div",{className:"w-6 h-6 relative flex items-center justify-center",children:(0,s.jsx)(o.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{verticalAlign:"middle"}})})})]}),(0,s.jsxs)("div",{className:"flex flex-wrap flex-grow w-full max-w-full",children:[C[0]&&(0,s.jsxs)("div",{className:"flex flex-col xl:flex-row gap-[40px] animate-fadeIn",children:[(0,s.jsx)("div",{className:"flex-shrink-0 xl:flex-shrink",children:(0,s.jsx)("div",{className:"w-full xl:w-[716px] xl:min-w-[400px] xl:max-w-[716px] h-[402px] xl:h-auto xl:aspect-[716/402] rounded-[8px] overflow-hidden animate-fadeIn",children:C[0].featured_image?(0,s.jsx)("img",{src:C[0].featured_image,alt:C[0].title,className:"w-full h-full object-cover"}):(0,s.jsx)(c.Z,{configName:"default",alt:"CCDI Logo"})})}),(0,s.jsxs)("div",{className:"flex flex-col justify-start flex-grow xl:min-w-[300px]",children:[C[0].dateObj&&(0,s.jsx)("div",{className:"font-header font-light text-[24px] leading-[24px] text-white ".concat("en"===t&&"FR"!==C[0].designation?"uppercase":""," animate-fadeInUp mb-4"),children:A(C[0].dateObj,!0,C[0].designation).formatted}),(0,s.jsx)("h3",{className:"mt-[16px] font-header font-extrabold text-xl sm:text-2xl md:text-3xl lg:text-[32px] xl:text-[36px] leading-tight md:leading-[36px] xl:leading-[40px] text-white uppercase animate-fadeInUp break-words",children:(0,s.jsx)("a",{href:(()=>{let e=C[0].link||"#",t="FR"===C[0].designation;return(0,l.kb)(e,t?"fr":"en")})(),className:"inline-flex justify-center items-center transition-all duration-300 group text-white",children:(0,i.ZP)(C[0].title)})}),(0,s.jsx)("div",{className:"mt-[16px] font-sans font-normal text-[16px] leading-[24px] text-white line-clamp-3 animate-fadeInUp",children:(e=>{let t=e.replace(/<[^>]*>?/gm,"");return t.length>180?t.substring(0,180)+"...":t})(C[0].content)}),(0,s.jsx)("div",{className:"mt-[32px] animate-fadeInUp",style:{animationDelay:"0.3s"},children:(0,s.jsx)("a",{href:(()=>{let e=C[0].link||"#",t="FR"===C[0].designation;return(0,l.kb)(e,t?"fr":"en")})(),className:"inline-flex justify-center items-center px-4 py-2 bg-transparent border border-white rounded-lg hover:bg-white/10 transition-all duration-300 group",children:(0,s.jsx)("span",{className:"font-sans text-base font-semibold text-white relative pr-6 after:content-[''] after:absolute after:right-0 after:top-1/2 after:-translate-y-1/2 after:w-[13px] after:h-[13px] after:bg-[url('/images/arrow-right-white.svg')] after:bg-contain after:bg-no-repeat after:transition-all after:duration-300 group-hover:after:translate-x-1",children:(0,n.i)("common","registerNow",t)||"Register now"})})})]})]},"featured-event-".concat(B)),(0,s.jsx)("div",{className:"mt-[64px] w-full",children:(0,s.jsx)("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(250px,1fr))] auto-rows-max gap-[24px]",children:S.map((e,r)=>{var a;let{month:n,day:o}=A(null!==(a=e.dateObj)&&void 0!==a?a:void 0,!1,e.designation);return(0,s.jsxs)("a",{href:(()=>{let t=e.link||"#",r="FR"===e.designation;return(0,l.kb)(t,r?"fr":"en")}
1)(),className:" p-[24px] cursor-pointer transition-all duration-300 min-h-[284px] flex flex-col justify-between h-full border-b border-solid border-white hover:border hover:border-white hover:rounded-[8px] hover:bg-[#78B0E9]/10 block ",children:[n&&o&&(0,s.jsx)("div",{className:"text-white",children:"fr"===t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"font-header font-light text-[16px] md:text-[20px] 2xl:text-[24px] leading-[16px] md:leading-[20px] 2xl:leading-[24px]",children:n}),(0,s.jsx)("div",{className:"font-header font-extrabold text-[32px] md:text-[48px] 2xl:text-[64px] leading-[36px] md:leading-[56px] 2xl:leading-[72px] flex items-end letter-spacing-[0.02em] uppercase",children:o})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"font-header font-light text-[16px] md:text-[20px] 2xl:text-[24px] leading-[16px] md:leading-[20px] 2xl:leading-[24px] uppercase",children:n}),(0,s.jsx)("div",{className:"font-header font-extrabold text-[32px] md:text-[48px] 2xl:text-[64px] leading-[36px] md:leading-[56px] 2xl:leading-[72px] flex items-end letter-spacing-[0.02em] uppercase",children:o})]})}),(0,s.jsx)("h4",{className:"font-header font-extrabold text-[18px] leading-[20px] flex items-end letter-spacing-[0.02em] uppercase text-white mt-auto break-words",children:(0,i.ZP)(e.title)})]},"event-card-".concat(e.id))})})})]})]}):(0,s.jsxs)("div",{className:"text-center py-12 text-white",children:[(0,s.jsx)("p",{className:"text-2xl mb-2",children:"fr"===t?"Aucun \xe9v\xe9nement de communaut\xe9 de pratique \xe0 venir trouv\xe9":"No upcoming community of practice events found"}),(0,s.jsx)("p",{className:"opacity-80",children:"fr"===t?"Revenez bient\xf4t pour les prochains \xe9v\xe9nements de communaut\xe9 de pratique":"Check back soon for upcoming community of practice events"})]})})]})]})}},1803:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265);let l=e=>{let{targetValue:t,suffix:r="",duration:l=2e3,shouldAnimate:n=!1}=e,[i,o]=(0,a.useState)(0),[c,x]=(0,a.useState)(!1),[d,p]=(0,a.useState)(!1),m=(0,a.useRef)(null),f=(0,a.useRef)();(0,a.useEffect)(()=>{if(n&&!d){let e=new IntersectionObserver(t=>{t[0].isIntersecting&&t[0].intersectionRatio>.5&&(u(),p(!0),e.disconnect())},{threshold:[.5]});return m.current&&e.observe(m.current),()=>e.disconnect()}},[n,d]),(0,a.useEffect)(()=>()=>{f.current&&cancelAnimationFrame(f.current)},[]);let u=()=>{if(c)return;x(!0);let e=Date.now(),r=()=>{let s=Math.min((Date.now()-e)/l,1);o(Math.floor(0+(t-0)*(1-Math.pow(1-s,3)))),s<1?f.current=requestAnimationFrame(r):(o(t),x(!1))};f.current=requestAnimationFrame(r)};return(0,s.jsxs)("span",{ref:m,className:"font-sans font-extrabold text-[48px] sm:text-[56px] md:text-[64px] leading-[54px] sm:leading-[64px] md:leading-[72px] tracking-[0.02em] uppercase text-[#314F9D] inline-block text-center",style:{fontVariantNumeric:"tabular-nums"},children:[i,r]})},n=e=>{let{value:t,suffix:r,title:a,shouldAnimate:n=!1}=e;return(0,s.jsxs)("div",{className:"flex flex-row items-center mx-8 min-w-max w-auto gap-8",children:[(0,s.jsx)("div",{className:"inline-block",children:(0,s.jsx)(l,{targetValue:t,suffix:r||"",duration:2500,shouldAnimate:n})}),a&&(0,s.jsx)("div",{className:"mt-2 text-center w-auto",children:(0,s.jsx)("span",{className:"font-sans font-light text-[28px] sm:text-[32px] md:text-[36px] leading-[30px] sm:leading-[34px] md:leading-[38px] uppercase text-[#314F9D] block",children:a})}),(0,s.jsx)("div",{className:"flex items-center mx-12",children:(0,s.jsx)("div",{className:"w-[6px] h-[6px] rounded-full bg-[#314F9D]"})})]})},i=e=>{let{children:t,pauseOnHover:r=!0}=e,l=(0,a.useRef)(null),n=(0,a.useRef)(null),[i,o]=(0,a.useState)(!1),c=(0,a.useRef)(),x=(0,a.useRef)(0);(0,a.useEffect)(()=>{let e=()=>{if(!i&&n.current){x.current-=.75;let e=n.current.children[0];e&&Math.abs(x.current)>=e.offsetWidth&&(n.current.appendChild(e),x.current+=e.offsetWidth),n.current.style.transform="translateX(".concat(x.current,"px)")}c.current=requestAnimationFrame(e)};return c.current=requestAnimationFrame(e),()=>{c.current&&cancelAnimationFrame(c.current)}},[i]);
1let d=a.Children.map(t,(e,t)=>(0,s.jsx)("div",{className:"flex-shrink-0",children:e},"seamless-".concat(t)));return(0,s.jsx)("div",{ref:l,className:"w-full overflow-hidden",onMouseEnter:()=>{r&&o(!0)},onMouseLeave:()=>{r&&o(!1)},children:(0,s.jsx)("div",{ref:n,className:"flex",style:{width:"max-content",willChange:"transform"},children:Array.from({length:6},(e,t)=>null==d?void 0:d.map((e,r)=>a.cloneElement(e,{key:"copy-".concat(t,"-item-").concat(r)}))).flat()})})};t.default=e=>{let{lang:t,...r}=e,[l,o]=(0,a.useState)(!1),[c,x]=(0,a.useState)(!1),[d,p]=(0,a.useState)(!1),m=(0,a.useRef)(null),f=[];if(Array.isArray(r.counters))f=r.counters;else if("fr"===t&&Array.isArray(r.counters_fr))f=r.counters_fr;else if("object"==typeof r.counters&&null!==r.counters)Array.isArray(r.counters.counters)&&(f=r.counters.counters);else if("string"==typeof r.counters)try{let e=JSON.parse(r.counters);Array.isArray(e)&&(f=e)}catch(e){console.error("Failed to parse counters JSON:",e)}return((0,a.useEffect)(()=>{o(!0)},[]),(0,a.useEffect)(()=>{if(!l||!m.current)return;let e=setTimeout(()=>{x(!0),setTimeout(()=>{p(!0)},500)},2e3),t=new IntersectionObserver(t=>{let r=t[0];r.isIntersecting&&r.intersectionRatio>=.1&&(clearTimeout(e),x(!0),setTimeout(()=>{p(!0)},500))},{threshold:[.1,.2,.3],rootMargin:"0px"});return m.current&&t.observe(m.current),()=>{clearTimeout(e),m.current&&t.unobserve(m.current)}},[l]),l)?c?f&&0!==f.length?(0,s.jsx)("section",{ref:m,id:"counter-section",className:"py-[16px] px-4 sm:px-[40px] sm:pb-[60px] md:pb-[100px] lg:pb-[100px] overflow-hidden",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1600px] relative",children:(0,s.jsxs)(i,{pauseOnHover:!0,children:[f.map((e,t)=>{let r=e.hasOwnProperty("number")?e:e.acf||e,l=Number(r.number)||0;return(0,s.jsx)(a.Fragment,{children:(0,s.jsx)(n,{value:l,suffix:r.suffix,title:r.title,shouldAnimate:d})},"counter-".concat(t))}),(0,s.jsx)("div",{className:"w-20"})]})})}):(0,s.jsx)("section",{className:"py-[16px] px-4 sm:px-[40px] sm:pb-[60px] md:pb-[100px] lg:pb-[100px]",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1600px]",children:(0,s.jsx)("div",{className:"text-center py-8",children:(0,s.jsx)("div",{className:"font-sans text-[#314F9D]",children:"No counters found."})})})}):(0,s.jsx)("section",{ref:m,id:"counter-section",className:"py-[16px] px-4 sm:px-[40px] sm:pb-[60px] md:pb-[100px] lg:pb-[100px]",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1600px]",children:(0,s.jsx)("div",{className:"text-center py-8",children:(0,s.jsx)("div",{className:"font-sans text-[#314F9D]",children:"Loading counters..."})})})}):null}},1551:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562);t.default=e=>{let{lang:t,...r}=e,[i,o]=(0,a.useState)(!1),c=(0,l.yP)(r,"content",t),x=(0,l.yP)(r,"registration",t);return((0,a.useEffect)(()=>{o(!0)},[]),i)?(0,s.jsx)("section",{id:"donate-blurb-section",className:"pt-[36px] sm:pt-[54px] md:pt-[72px] px-[20px] sm:px-[40px] pb-[48px] sm:pb-[72px] md:pb-[96px]",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1404px]",children:(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row items-end gap-[34px] sm:gap-[51px] md:gap-[68px] w-full",children:[c&&(0,s.jsx)("div",{className:"w-full lg:w-[546px] lg:flex-shrink-0",children:(0,s.jsx)("div",{className:"font-sans font-normal text-[16px] sm:text-[18px] md:text-[20px] leading-[24px] sm:leading-[28px] md:leading-[32px] text-[#424242]",children:(0,n.ZP)(c)})}),x&&(0,s.jsx)("div",{className:"w-full lg:w-[702px] lg:flex-shrink-0",children:(0,s.jsx)("div",{className:"flex flex-col items-start gap-[16px] w-full",children:(0,s.jsx)("div",{className:"font-sans font-normal text-[16px] sm:text-[18px] md:text-[20px] leading-[24px] sm:leading-[28px] md:leading-[32px] text-[#424242] w-full",children:x})})})]})})}):null}},6428:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(9794),i=r(7562);let o=e=>{let{image:t,subtitle:r,content:a,index:l}=e;return(0,s.jsxs)("div",{className:"group relative flex flex-col justify-end items-start p-[20px] sm:p-[25px] md:p-[30px] w-full sm:w-auto
1sm:min-w-[280px] sm:max-w-[294px] min-h-[280px] sm:min-h-[300px] md:min-h-[322px] bg-[#DAD9D6] rounded-[16px] transition-all duration-500 hover:bg-[#63B3E4]",children:[t&&(0,s.jsx)("div",{className:"flex flex-col items-start mb-[10px] w-[100px] sm:w-[115px] md:w-[130px] max-w-[130px] h-[100px] sm:h-[115px] md:h-[130px] transition-all duration-500",children:(0,s.jsx)("div",{className:"flex flex-col justify-center items-center w-full h-full",children:(0,s.jsx)("img",{src:t,alt:r||"Drive Change Icon",className:"w-full h-full object-contain"})})}),r&&(0,s.jsx)("h3",{className:"font-sans font-extrabold text-[16px] sm:text-[17px] md:text-[18px] leading-[18px] sm:leading-[19px] md:leading-[20px] tracking-[0.02em] uppercase text-[#23243B] w-full self-stretch transition-all duration-500",children:r}),a&&(0,s.jsx)("div",{className:"mt-[12px] max-h-0 opacity-0 overflow-hidden transition-all duration-500 ease-out group-hover:max-h-[500px] group-hover:opacity-100",children:(0,s.jsx)("div",{className:"font-sans text-[16px] leading-[22px] font-normal tracking-[0px] text-[#23243B] w-full transform translate-y-full transition-all duration-500 ease-out group-hover:translate-y-0",children:(0,i.ZP)(a)})})]})};t.default=e=>{let{lang:t,...r}=e,[c,x]=(0,a.useState)(!1),d=(0,l.yP)(r,"title",t),p=(0,l.yP)(r,"content",t),m=(0,l.yP)(r,"button",t),f=(0,l.yP)(r,"button_url",t),u=[];if(Array.isArray(r.cards))u=r.cards;else if(Array.isArray(r.cards_fr))u=r.cards_fr;else if("object"==typeof r.cards&&null!==r.cards)Array.isArray(r.cards.cards)&&(u=r.cards.cards);else if("string"==typeof r.cards)try{let e=JSON.parse(r.cards);Array.isArray(e)&&(u=e)}catch(e){console.error("Failed to parse cards JSON:",e)}return((0,a.useEffect)(()=>{x(!0)},[]),c)?(0,s.jsx)("section",{id:"drive-change-section",className:"py-[32px] md:py-[48px] lg:py-[64px] px-[20px] sm:px-[40px] bg-[#F3F3F2]",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1336px]",children:(0,s.jsxs)("div",{className:"flex flex-col items-center gap-[40px] md:gap-[60px] lg:gap-[80px]",children:[d&&(0,s.jsx)("div",{className:"flex flex-col items-start w-full max-w-[689px] mx-auto",children:(0,s.jsx)("h2",{className:"strong-override-blue font-sans font-light text-[24px] sm:text-[30px] md:text-[36px] leading-[26px] sm:leading-[32px] md:leading-[38px] uppercase text-[#314F9D] pl-[20px] sm:pl-[40px] w-full",children:(0,i.ZP)(d)})}),(0,s.jsx)("div",{className:"flex flex-col sm:flex-row justify-center items-start flex-wrap gap-[20px] sm:gap-[30px] lg:gap-[40px] w-full",children:u&&u.length>0?u.map((e,r)=>{let a=e.hasOwnProperty("image")||e.hasOwnProperty("subtitle")||e.hasOwnProperty("content")?e:e.acf||e,n=(0,l.yP)(a,"image",t),i=(0,l.yP)(a,"subtitle",t),c=(0,l.yP)(a,"content",t);return(0,s.jsx)(o,{image:n,subtitle:i,content:c,index:r},"drive-change-card-".concat(r))}):(0,s.jsx)("div",{className:"text-center py-8 w-full",children:"No cards found. Check browser console for debugging information."})}),(p||m)&&(0,s.jsxs)("div",{className:"flex flex-col items-center gap-[24px] sm:gap-[36px] md:gap-[48px] w-full max-w-[689px] mx-auto",children:[p&&(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("div",{className:"text-[#424242] text-base sm:text-lg md:text-[20px] leading-[28px] md:leading-[32px] text-center",children:(0,i.ZP)(p)})}),m&&f&&(0,s.jsx)("div",{className:"w-full flex justify-center",children:(0,s.jsx)(n.default,{href:f,className:"inline-block text-center px-4 py-2 gap-2 w-auto min-w-[176px] h-auto bg-[#F58720] hover:bg-[#B93C95] rounded-lg transition-all duration-300 group/button",children:(0,s.jsx)("span",{className:"font-sans text-base font-semibold leading-[23px] text-[#23243B] group-hover/button:text-white transition-colors duration-300 relative pr-6 after:content-[''] after:absolute after:right-0 after:top-1/2 after:-translate-y-1/2 after:w-[13px] after:h-[13px] after:bg-[url('/images/arrow-right.svg')] group-hover/button:after:bg-[url('/images/arrow-right-white.svg')] after:bg-contain after:bg-no-repeat after:transition-all after:duration-300 group-hover/button:after:translate-x-1",children:m})})})]})]})})}):null}},8915:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562);t.default=e=>{let{lang:t,...r}=e,[i,o]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{o(!0)},[]),!i)return null;
1let c=(0,l.yP)(r,"background",t),x=(0,l.yP)(r,"title",t),d=(0,l.yP)(r,"content",t),p=(0,l.yP)(r,"button_text",t),m=(0,l.yP)(r,"button_link",t)||"#",f=!!p;return(0,s.jsx)("section",{id:"event-ticket-cta",className:"flex flex-row justify-center items-start py-[40px] px-[20px] sm:py-[50px] sm:px-[30px] md:py-[60px] md:px-[40px] lg:py-[70px] lg:px-[40px] w-full h-auto min-h-[404px]",style:c?{backgroundImage:"url(".concat(c,")"),backgroundSize:"cover",backgroundPosition:"center",backgroundBlendMode:"overlay"}:{background:""},children:(0,s.jsx)("div",{className:"flex flex-col justify-center items-center py-[32px] px-0 sm:py-[40px] md:py-[48px] w-full max-w-[1132px] h-auto min-h-[264px] bg-gradient-to-r from-white/20 to-white/20 rounded-lg",children:(0,s.jsxs)("div",{className:"flex flex-col justify-center items-center py-0 px-[40px] sm:px-[60px] md:px-[80px] lg:px-[96px] gap-[20px] sm:gap-[25px] md:gap-[30px] w-full h-auto min-h-[168px]",children:[(0,s.jsxs)("div",{className:"flex flex-col justify-center items-center p-0 gap-[12px] sm:gap-[13px] md:gap-[15px] w-full max-w-[940px] h-auto min-h-[99px]",children:[x&&(0,s.jsx)("div",{className:"w-full h-auto min-h-[36px] flex-none order-0 self-stretch flex-grow-0",children:(0,s.jsx)("h2",{className:"font-nunito font-extrabold text-[20px] sm:text-[24px] md:text-[28px] lg:text-[32px] leading-[24px] sm:leading-[28px] md:leading-[32px] lg:leading-[36px] text-center uppercase text-white",children:x})}),d&&(0,s.jsx)("div",{className:"w-full h-auto min-h-[48px] flex-none order-1 self-stretch flex-grow-0",children:(0,s.jsx)("div",{className:"font-barlow font-normal text-[14px] sm:text-[15px] md:text-[16px] leading-[20px] sm:leading-[22px] md:leading-[24px] text-center text-white",children:(0,n.ZP)(d)})})]}),f&&(0,s.jsx)("div",{className:"flex-none order-1 flex-grow-0",children:(0,s.jsx)("a",{href:m,className:"inline-flex justify-center items-center px-4 py-2 gap-2 w-auto min-w-[160px] h-[39px] bg-[#F58720] hover:bg-[#B93C95] rounded-lg transition-all duration-300 group","aria-label":p,children:(0,s.jsx)("span",{className:"font-barlow text-base font-semibold text-[#23243B] group-hover:text-white transition-colors duration-300 relative pr-6 after:content-[''] after:absolute after:right-0 after:top-1/2 after:-translate-y-1/2 after:w-[13px] after:h-[13px] after:bg-[url('/images/arrow-right.svg')] group-hover:after:bg-[url('/images/arrow-right-white.svg')] after:bg-contain after:bg-no-repeat after:transition-all after:duration-300 group-hover:after:translate-x-1",children:p})})})]})})})}},8748:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(7562),o=r(3145),c=r(3735);t.default=e=>{let{lang:t,...r}=e,[x,d]=(0,a.useState)([]),[p,m]=(0,a.useState)(!0),[f,u]=(0,a.useState)(null),[h,g]=(0,a.useState)(0),b=(0,a.useRef)(null),[w,v]=(0,a.useState)(null),[j,y]=(0,a.useState)(null),N=(0,l.yP)(r,"title",t),_=r.background_image||"";(0,a.useEffect)(()=>{!async function(){try{let e=await fetch("/api/swoogo/events");if(!e.ok){let t="";try{let r=await e.json();t=(null==r?void 0:r.message)||(null==r?void 0:r.error)||JSON.stringify(r)}catch(r){try{t=await e.text()}catch(e){t=""}}throw Error("HTTP ".concat(e.status,": ").concat(t))}let t=await e.json();d(Array.isArray(t)?t:[]),u(null)}catch(e){console.error("Failed to load events:",e),u(e instanceof Error?e.message:"Failed to load events"),d([])}finally{m(!1)}}()},[]);let k=e=>{if(!e)return null;try{let t=String(e).trim();if(/^\d{8}$/.test(t)){let e=parseInt(t.substring(0,4),10),r=parseInt(t.substring(4,6),10)-1,s=parseInt(t.substring(6,8),10);return new Date(e,r,s,0,0,0,0)}let r=t.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(r){let e=parseInt(r[1],10),t=parseInt(r[2],10)-1,s=parseInt(r[3],10);return new Date(e,t,s,0,0,0,0)}let s=new Date(t);if(!isNaN(s.getTime()))return new Date(s.getFullYear(),s.getMonth(),s.getDate(),0,0,0,0)}catch(e){}return null},P=(0,a.useMemo)(()=>{let e=new Date;return e.setHours(0,0,0,0),x.map(e=>{let r=k(e.date),s=("fr"===t&&e.title_fr?e.title_fr:e.title).replace(/<\/?p[^>]*>/gi,"").trim();return{id:e.id,title:s,content:"fr"===t&&e.content_fr?e.content_fr:e.content,featured_image:e.featured_image,date:e.date,designation:e.designation,link:e.link,dateObj:r}}).filter(t=>!(!t.dateObj||t.title&&t.title.toLowerCase().includes("press release"))&&t.dateObj.getTime()>=e.getTime()).sort((e,r)=>{if(!e.dateObj)return 1;if(!r.dateObj)return -1;let s=new Date(e.dateObj.getFullYear(),e.dateObj.getMonth(),e.dateObj.getDate()),a=new Date(r.dateObj.getFullYear(),r.dateObj.getMonth(),r.dateObj.getDate()),l=s.getTime()-a.getTime();if(0!==l)return l;let n="fr"===t&&"FR"===e.designation||"en"===t&&"FR"!==e.designation,i="fr"===t&&"FR"===r.designation||"en"===t&&"FR"!==r.designation;return n&&!i?-1:!n&&i?1:0})},[x,t]),F=(0,a.useMemo)(()=>P.length<=4?P:P.slice(h,h+4),[P,h]),C=()=>{let e=P.length;0===e||h+4>=e||g(t=>Math.min(t+1,e-4))},S=()=>{h<=0||g(e=>Math.max(e-1,0))},D=function(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return{month:"",day:"",year:"",formatted:""};try{let s;let a=k(e);if(!a||isNaN(a.getTime()))return console.warn("Failed to parse date in formatDate:",e),{month:"",day:"",year:"",formatted:""};
1let l=a.toLocaleString("fr"===t?"fr-CA":"en-US",{month:"long"}),n=a.getDate(),i=a.getFullYear(),o="fr"===t?l.toLowerCase():l.toUpperCase();return s=r?"fr"===t?"".concat(n," ").concat(o," ").concat(i):"".concat(o," ").concat(n,", ").concat(i):"fr"===t?"".concat(n," ").concat(o):"".concat(o," ").concat(n),{month:o,day:n.toString(),year:i.toString(),formatted:s}}catch(t){return console.warn("Error in formatDate:",t,e),{month:"",day:"",year:"",formatted:""}}},[E,A]=(0,a.useState)(0);return(0,a.useEffect)(()=>{A(e=>e+1)},[h]),(0,s.jsxs)("section",{id:"events-section",className:"relative py-[96px] px-[40px]",style:{backgroundImage:_?"url(".concat(_,")"):"none",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundColor:_?"transparent":"#314F9D"},children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/50"}),(0,s.jsxs)("div",{className:"container relative z-10 mx-auto max-w-[1601px]",children:[N&&(0,s.jsx)("div",{className:"max-w-[1336px] mx-auto",children:(0,s.jsx)("h2",{className:"font-header text-4xl sm:text-5xl md:text-6xl lg:text-[72px] font-light leading-[1] text-white text-left",children:(0,i.ZP)(N)})}),(0,s.jsx)("div",{className:"mt-[48px] flex justify-center",children:p?(0,s.jsxs)("div",{className:"text-center py-8 text-white",children:[(0,s.jsx)("div",{className:"inline-block w-8 h-8 border-4 border-white/30 border-t-white rounded-full animate-spin"}),(0,s.jsx)("p",{className:"mt-2",children:"fr"===t?"Chargement...":"Loading..."})]}):f?(0,s.jsxs)("div",{className:"text-center py-8 text-white",children:[(0,s.jsx)("p",{children:"fr"===t?"Erreur de chargement":"Error loading events"}),(0,s.jsx)("p",{className:"text-sm opacity-75",children:f})]}):P.length>0?(0,s.jsxs)("div",{ref:b,className:"events-columns max-w-[1336px] flex flex-col md:flex-row gap-[51px] mx-auto w-full md:flex-nowrap flex-wrap md:items-start items-center",onTouchStart:e=>{y(null),v(e.targetTouches[0].clientX)},onTouchMove:e=>{y(e.targetTouches[0].clientX)},onTouchEnd:()=>{if(!w||!j)return;let e=w-j;e>50?C():e<-50&&S()},children:[(0,s.jsxs)("div",{className:"flex flex-row md:flex-col items-left gap-[10px] self-start min-w-[48px] order-2 md:order-1 mx-auto",children:[(0,s.jsx)("button",{onClick:S,className:"w-12 h-12 flex items-center justify-center rounded-full bg-white/60 backdrop-blur-[15px] transition-all duration-300 hover:bg-white/80","aria-label":(0,n.i)("events","previousEvent",t)||"Previous event",children:(0,s.jsx)("div",{className:"w-6 h-6 relative rotate-180 flex items-center justify-center",children:(0,s.jsx)(o.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{verticalAlign:"middle"}})})}),(0,s.jsx)("button",{onClick:C,className:"w-12 h-12 flex items-center justify-center rounded-full bg-white/60 backdrop-blur-[15px] transition-all duration-300 hover:bg-white/80","aria-label":(0,n.i)("events","nextEvent",t)||"Next event",children:(0,s.jsx)("div",{className:"w-6 h-6 relative flex items-center justify-center",children:(0,s.jsx)(o.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{verticalAlign:"middle"}})})})]}),P[0]&&(0,s.jsx)("div",{className:"2xl:flex-grow md:flex-shrink max-w-[100%] md:max-w-[501px] animate-fadeIn order-3 md:order-2 w-auto",children:(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("div",{className:"w-full h-[351px] rounded-[8px] overflow-hidden animate-fadeIn",children:P[0].featured_image?(0,s.jsx)("img",{src:P[0].featured_image,alt:P[0].title,className:"w-full h-full object-cover"}):(0,s.jsx)(c.Z,{configName:"default",alt:"CCDI Logo"})}),P[0].date&&(0,s.jsx)("div",{className:"mt-[24px] font-header font-light text-[24px] leading-[24px] text-white ".concat("en"===t?"uppercase":""," animate-fadeInUp"),children:D(P[0].date,!0).formatted}),(0,s.jsx)("h3",{className:"mt-[16px] font-header font-extrabold text-xl sm:text-2xl md:text-3xl lg:text-[32px] xl:text-[36px] leading-tight md:leading-[36px] xl:leading-[40px] text-white uppercase animate-fadeInUp",children:(0,i.ZP)(P[0].title)}),(0,s.jsx)("div",{className:"mt-[16px] font-sans font-normal text-[16px] leading-[24px] text-white line-clamp-3 animate-fadeInUp",children:(e=>{let t=e.replace(/<[^>]*>?/gm,"");return t.length>180?t.substring(0,180)+"...":t})(P[0].content)}),(0,s.jsx)("div",{className:"mt-[32px] animate-fadeInUp",style:{animationDelay:"0.3s"},children:(0,s.jsx)("a",{href:P[0].link||"#",className:"inline-flex justify-center items-center px-4 py-2 bg-[#F58720] hover:bg-[#B93C95] rounded-lg transition-all duration-300 group",children:(0,s.jsx)("span",{className:"font-sans text-base font-semibold text-[#23243B] group-hover:text-white transition-colors duration-300 relative pr-6 after:content-[''] after:absolute after:right-0 after:top-1/2 after:-translate-y-1/2 after:w-[13px] after:h-[13px] after:bg-[url('/images/arrow-right.svg')] group-hover:after:bg-[url('/images/arrow-right-white.svg')] after:bg-contain after:bg-no-repeat after:transition-all after:duration-300 group-hover:after:translate-x-1",children:(0,n.i)("common","registerNow",t)||"Register now"})})})]})},"featured-event-".concat(E)),(0,s.jsx)("div",{className:"md:flex-grow events-cards-container order-1 md:order-3 min-w-[100px]",children:(0,s.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-1 lg:grid-cols-2 gap-[12px] md:gap-[24px]",children:F.map((e,r)=>{let{month:a,day:l}=D(e.date);return(0,s.jsxs)("a",{href:e.link||"#",className:" p-[12px] md:p-[24px] curs
1or-pointer transition-all duration-300 w-full min-h-[180px] md:min-h-[200px] lg:min-h-[240px] flex flex-col justify-between h-full border-b border-solid border-white hover:border hover:border-white hover:rounded-[8px] hover:bg-[#78B0E9]/10 block ",children:[a&&l&&(0,s.jsx)("div",{className:"text-white",children:"fr"===t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"font-header font-extrabold text-[24px] md:text-[32px] lg:text-[48px] leading-[28px] md:leading-[36px] lg:leading-[56px] flex items-end letter-spacing-[0.02em] uppercase",children:l}),(0,s.jsx)("div",{className:"font-header font-light text-[14px] md:text-[16px] lg:text-[20px] leading-[14px] md:leading-[16px] lg:leading-[20px]",children:a})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"font-header font-light text-[14px] md:text-[16px] lg:text-[20px] leading-[14px] md:leading-[16px] lg:leading-[20px] uppercase",children:a}),(0,s.jsx)("div",{className:"font-header font-extrabold text-[24px] md:text-[32px] lg:text-[48px] leading-[28px] md:leading-[36px] lg:leading-[56px] flex items-end letter-spacing-[0.02em] uppercase",children:l})]})}),(0,s.jsx)("h4",{className:"font-header font-extrabold text-[14px] md:text-[16px] lg:text-[18px] leading-[16px] md:leading-[18px] lg:leading-[20px] flex items-end letter-spacing-[0.02em] uppercase text-white mt-auto",children:(0,i.ZP)(e.title)})]},"event-card-".concat(e.id))})})})]}):(0,s.jsxs)("div",{className:"text-center py-12 text-white",children:[(0,s.jsx)("p",{className:"text-2xl mb-2",children:"fr"===t?"Aucun \xe9v\xe9nement trouv\xe9":"No events found"}),(0,s.jsx)("p",{className:"opacity-80",children:"fr"===t?"Revenez bient\xf4t pour les \xe9v\xe9nements \xe0 venir":"Check back soon for upcoming events"})]})})]})]})}},8999:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(3145),o=r(9794),c=r(7562);t.default=e=>{let{lang:t,...r}=e,[x,d]=(0,a.useState)([]),[p,m]=(0,a.useState)([]),[f,u]=(0,a.useState)(!0),[h,g]=(0,a.useState)(null),[b,w]=(0,a.useState)("grid"),[v,j]=(0,a.useState)(!1),[y,N]=(0,a.useState)(""),[_,k]=(0,a.useState)([]),[P,F]=(0,a.useState)(new Date),[C,S]=(0,a.useState)(9),D=["#314F9D","#63B3E4","#F58720","#B93C95"],E=["#B93C95","#314F9D","#63B3E4","#F58720"];(0,a.useEffect)(()=>{let e=()=>{let e=window.innerWidth<768;j(e),e&&w("grid")};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,a.useEffect)(()=>{(async function(){try{let e=await fetch("/api/swoogo/events");if(!e.ok){let t="";try{let r=await e.json();t=(null==r?void 0:r.message)||(null==r?void 0:r.error)||JSON.stringify(r)}catch(r){try{t=await e.text()}catch(e){t=""}}throw Error("HTTP ".concat(e.status,": ").concat(t))}let t=await e.json();d(Array.isArray(t)?t:[]);let r=new Map;t.forEach(e=>{e.categories&&Array.isArray(e.categories)&&e.categories.forEach(e=>{e.name&&e.name.toLowerCase().includes("press release")||e.slug&&(e.slug.toLowerCase().includes("press-release")||e.slug.toLowerCase().includes("press_release"))||r.has(e.slug)||r.set(e.slug,{id:e.id,slug:e.slug,name:e.name,name_fr:e.name_fr||e.name,color:e.color||D[r.size%D.length]})})}
1),m(Array.from(r.values())),g(null)}catch(e){console.error("Failed to load events:",e),g(e instanceof Error?e.message:"Failed to load events"),d([]),m([])}finally{u(!1)}})()},[]);let A=e=>{if(!e)return null;try{let t=String(e).trim();if(/^\d{8}$/.test(t)){let e=parseInt(t.substring(0,4),10),r=parseInt(t.substring(4,6),10)-1,s=parseInt(t.substring(6,8),10);return new Date(e,r,s,0,0,0,0)}let r=t.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(r){let e=parseInt(r[1],10),t=parseInt(r[2],10)-1,s=parseInt(r[3],10);return new Date(e,t,s,0,0,0,0)}let s=new Date(t);if(!isNaN(s.getTime()))return new Date(s.getFullYear(),s.getMonth(),s.getDate(),0,0,0,0)}catch(e){}return null},B=(0,a.useMemo)(()=>x.map(e=>{let r=A(e.date);return{...e,title:"fr"===t&&e.title_fr?e.title_fr:e.title,content:"fr"===t&&e.content_fr?e.content_fr:e.content,dateObj:r}}),[x,t]),L=(0,a.useMemo)(()=>{let e=new Date;return e.setHours(0,0,0,0),B.filter(t=>{let r=!y||t.title.toLowerCase().includes(y.toLowerCase())||t.content.toLowerCase().includes(y.toLowerCase()),s=0===_.length||t.categories&&t.categories.some(e=>_.includes(e.slug));if(t.categories&&t.categories.some(e=>{let r=((null==e?void 0:e.name)||"").toLowerCase(),s=((null==e?void 0:e.slug)||"").toLowerCase();return r.includes("press-release")||r.includes("press release")||s.includes("press-release")||s.includes("press_release")||t.title&&t.title.toLowerCase().includes("press release")}))return!1;let a="calendar"===b||!t.dateObj||t.dateObj>=e;return r&&s&&a}).sort((e,r)=>{if(!e.dateObj||!r.dateObj)return 0;let s=new Date(e.dateObj.getFullYear(),e.dateObj.getMonth(),e.dateObj.getDate()),a=new Date(r.dateObj.getFullYear(),r.dateObj.getMonth(),r.dateObj.getDate()),l=s.getTime()-a.getTime();if(0!==l)return l;let n="fr"===t&&"FR"===e.designation||"en"===t&&"FR"!==e.designation,i="fr"===t&&"FR"===r.designation||"en"===t&&"FR"!==r.designation;return n&&!i?-1:!n&&i?1:0})},[B,y,_,b]),M="grid"===b?L.slice(0,C):L,I="grid"===b&&L.length>C;(0,a.useEffect)(()=>{S(9)},[b,y,_]);let O=(0,a.useMemo)(()=>{let e=P.getFullYear(),t=P.getMonth(),r=new Date(e,t,1),s=new Date(r);s.setDate(s.getDate()-r.getDay());let a=[],l=new Date;for(let e=0;e<42;e++){let r=new Date(s);r.setDate(s.getDate()+e);let n=L.filter(e=>{if(!e.dateObj)return!1;let t=new Date(e.dateObj),s=new Date(r);return t.setHours(0,0,0,0),s.setHours(0,0,0,0),t.getTime()===s.getTime()});a.push({date:r.getDate(),month:r.getMonth(),year:r.getFullYear(),isCurrentMonth:r.getMonth()===t,isToday:r.toDateString()===l.toDateString(),events:n})}return a},[P,L]),R=e=>{if(!e)return{month:"",day:"",year:""};try{let r="fr"===t,s=e.toLocaleString(r?"fr-CA":"en-US",{month:"long"}),a=e.getDate(),l=e.getFullYear();return{month:r?s.toLowerCase():s.toUpperCase(),day:a.toString(),year:l.toString()}}catch(e){return{month:"",day:"",year:""}}},Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:120,r=e.replace(/<[^>]*>?/gm,"");return r.length>t?r.substring(0,t)+"...":r},T=e=>e.color||D[0],z=e=>{let t=p.find(t=>t.slug===e);return t&&t.color||D[0]},W=e=>{let r="fr"===t&&e.name_fr?e.name_fr:e.name;if("fr"===t){let t=(r||"").toLowerCase();if("webinars"===t||"webinar"===t||t.includes("webinar"))return"Webinaire";if("community-of-practice"===(e.slug||"").toLowerCase().replace(/_/g,"-"))return"Communaut\xe9 de pratique"}return r},q=e=>{let t;if(!e)return"#";try{t=new URL(e).pathname}catch(r){t=e}return t},H=(e,t)=>{let r=q(e);return(0,l.kb)(r,"FR"===t?"fr":"en")},U=e=>{k(t=>t.includes(e)?[]:[e])},J="fr"===t?["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"]:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Y="fr"===t?["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]:["January","February","March","April","May","June","July","August","September","October","November","December"];return f?(0,s.jsx)("section",{className:"py-24 px-10 bg-[#F3F3F2]",children:(0,s.jsx)("div",{className:"max-w-[1314px] mx-auto",children:(0,s.jsxs)("div",{className:"flex justify-center items-center",children:[(0,s.jsx)("div",{className:"inline-block w-8 h-8 border-4 border-[#314F9D]/30 border-t-[#314F9D] rounded-full animate-spin"}),(0,s.jsx)("p",{className:"ml-4 text-[#314F9D]",children:"fr"===t?"Chargement des \xe9v\xe9nements...":"Loading events..."})]})})}):h?(0,s.jsx)("section",{className:"py-24 px-10 bg-[#F3F3F2]",children:(0,s.jsx)("div",{className:"max-w-[1314px] mx-auto",children:(0,s.jsxs)("div",{className:"text-center py-8 text-[#314F9D]",children:["fr"===t?"Erreur lors du chargement des \xe9v\xe9nements":"Error loading events",h?(0,s.jsx)("p",{className:"text-sm opacity-75 mt-2 break-words",children:h}):null]})})}):(0,s.jsx)("section",{className:"py-24 px-10 bg-[#F3F3F2]",children:(0,s.jsxs)("div",{className:"max-w-[1314px] mx-auto",children:[(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row justify-between items-start lg:items-center gap-4 mb-16",children:[(0,s.jsxs)("div",{className:"flex items-center gap-4 ".concat(v?"hidden":""),children:[(0,s.jsx)("button",{onClick:()=>w("grid"),className:"flex items-center justify-center px-4 py-2 rounded-lg border transition-all ".concat("grid"===b?"bg-[#23243B] border-[#23243B] text-[#63B3E4]":"bg-transparent border-[#314F9D] text-[#314F9D]"),children:(0,s.jsx)("span",{className:"font-sans font-semibold text-sm",children:"fr"===t?"GRILLE":"GRI
1D"})}),(0,s.jsx)("button",{onClick:()=>w("calendar"),className:"flex items-center justify-center px-4 py-2 rounded-lg border transition-all ".concat("calendar"===b?"bg-[#23243B] border-[#23243B] text-[#63B3E4]":"bg-transparent border-[#314F9D] text-[#314F9D]"),children:(0,s.jsx)("span",{className:"font-sans font-semibold text-sm",children:"fr"===t?"CALENDRIER":"CALENDAR"})})]}),(0,s.jsxs)("div",{className:"flex items-center px-4 py-2 border border-[#314F9D] rounded-lg min-w-[205px]",children:[(0,s.jsxs)("svg",{className:"w-[18px] h-[18px] mr-2",viewBox:"0 0 18 18",fill:"none",children:[(0,s.jsx)("circle",{cx:"8.25",cy:"8.25",r:"6.75",stroke:"#314F9D",strokeWidth:"1.35"}),(0,s.jsx)("path",{d:"M14.25 14.25L17.25 17.25",stroke:"#314F9D",strokeWidth:"1.35",strokeLinecap:"round"})]}),(0,s.jsx)("input",{type:"text",placeholder:"fr"===t?"Rechercher...":"Search...",value:y,onChange:e=>N(e.target.value),className:"flex-1 bg-transparent outline-none font-sans font-semibold text-sm text-[#314F9D] placeholder-[#314F9D]"})]})]}),(0,s.jsx)("div",{className:"mb-9",children:(0,s.jsx)("div",{className:"flex flex-wrap items-center gap-6",children:p.map(e=>(0,s.jsxs)("button",{onClick:()=>U(e.slug),className:"flex items-center gap-2 ".concat(_.includes(e.slug)?"opacity-100":"opacity-50 hover:opacity-100"," transition-opacity"),children:[(0,s.jsx)("div",{className:"w-[25px] h-[25px] rounded-lg",style:{backgroundColor:T(e)}}),(0,s.jsx)("span",{className:"font-sans font-semibold text-sm leading-none text-[#23243B]",children:W(e)})]},e.id))})}),"calendar"!==b||v?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"grid sm:grid-cols-[repeat(auto-fit,minmax(392px,1fr))] grid-cols-[repeat(auto-fit,minmax(250px,1fr))] gap-x-10 gap-y-[38px] items-stretch mb-[48px]",children:M.map(e=>{var r;let a=R(null!==(r=e.dateObj)&&void 0!==r?r:null),l=e.categories&&e.categories.length>0?e.categories[0]:null,n=l?z(l.slug):"#23243B";return(0,s.jsxs)(o.default,{href:H(e.link||"#",e.designation),className:"min-h-[228px] h-auto border-2 rounded-lg p-4 flex flex-col relative bg-white group hover:shadow-lg transition-shadow duration-300 cursor-pointer",style:{borderColor:n},children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[e.dateObj&&(0,s.jsx)("div",{className:"bg-[#38383899] rounded-lg px-2 py-1 flex items-center gap-2 sm:h-[25px] min-h-[25px] h-auto",children:(0,s.jsx)("span",{className:"font-sans font-semibold text-sm leading-[100%] text-white ".concat("en"===t?"uppercase":""),children:"fr"===t?"".concat(a.day," ").concat(a.month," ").concat(a.year):"".concat(a.month," ").concat(a.day,", ").concat(a.year)})}),e.designation&&(0,s.jsx)("div",{className:"bg-[#38383899] rounded-lg px-2 py-1 flex items-center gap-2 h-[25px]",children:(0,s.jsx)("span",{className:"font-sans font-semibold text-sm leading-[100%] text-white",children:e.designation})}),e.categories&&e.categories.slice(0,2).map(e=>(0,s.jsx)("div",{className:"flex items-center justify-center bg-[#38383899] rounded-lg px-2 py-1 h-[25px]",children:(0,s.jsx)("span",{className:"font-sans font-semibold text-sm leading-[100%] text-white uppercase",children:W(e)})},e.id))]}),(0,s.jsxs)("div",{className:"mt-auto",children:[(0,s.jsx)("h3",{className:"font-header text-lg leading-[20px] tracking-[0.02em] uppercase font-extrabold text-[#23243B] mb-2 line-clamp-3 transition-all duration-300",children:(0,c.ZP)(e.title)}),(0,s.jsx)("p",{className:"font-sans text-base leading-[24px] font-normal text-[#23243B]",children:Z(e.content)})]})]},e.id)})}),I&&!f&&!h&&(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsxs)("button",{onClick:()=>{S(e=>e+9)},className:"flex items-center justify-center gap-[8px] px-[16px] py-[8px] w-auto h-[39px] border border-[#23243B] rounded-[8px] bg-transparent hover:bg-[#23243B] hover:text-white transition-all duration-300 group",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B] group-hover:text-white",children:(0,n.i)("common","loadMore",t)||"LOAD MORE"}),(0,s.jsx)("div",{className:"flex items-center justify-center w-[20px] h-[20px]",children:(0,s.jsx)(i.default,{src:"/images/plus.svg",alt:"",width:20,height:20,className:"group-hover:filter group-hover:brightness-0 group-hover:invert"})})]})})]}):(0,s.jsxs)("div",{className:"bg-white rounded-lg p-6 lg:p-12",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("h2",{className:"font-header font-extrabold text-4xl leading-10 uppercase text-[#23243B]",children:Y[P.getMonth()]}),(0,s.jsx)("span",{className:"font-header font-light text-4xl leading-10 uppercase text-[#314F9D]",children:P.getFullYear()})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("button",{onClick:()=>{F(new Date(P.getFullYear(),P.getMonth()-1,1))},className:"w-6 h-6 flex items-center justify-center text-[#252525] hover:text-[#314F9D] transition-colors",children:(0,s.jsx)("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"
1currentColor",children:(0,s.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})})}),(0,s.jsx)("button",{onClick:()=>{F(new Date(P.getFullYear(),P.getMonth()+1,1))},className:"w-6 h-6 flex items-center justify-center text-[#252525] hover:text-[#314F9D] transition-colors",children:(0,s.jsx)("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"currentColor",children:(0,s.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})})})]})]}),(0,s.jsxs)("div",{className:"calendar-grid",children:[(0,s.jsx)("div",{className:"grid grid-cols-7 gap-0 mb-2",children:J.map(e=>(0,s.jsx)("div",{className:"h-6 flex items-center justify-center",children:(0,s.jsx)("span",{className:"font-lato text-xs text-[#252525] opacity-50",children:e})},e))}),(0,s.jsx)("div",{className:"grid grid-cols-7 gap-0",children:O.map((e,t)=>(0,s.jsxs)("div",{className:"min-h-[118px] p-[2px] border-t border-[#DAD9D6] flex flex-col items-center gap-[2px] bg-white ".concat(e.isCurrentMonth?"":"opacity-50"),style:{width:"174px"},children:[(0,s.jsx)("div",{className:"w-6 h-6 flex items-center justify-center bg-white",children:e.isToday?(0,s.jsx)("div",{className:"relative w-[18px] h-[18px] bg-[#252525] rounded-full flex items-center justify-center",children:(0,s.jsx)("span",{className:"font-lato text-[10px] text-white leading-[125%] text-center",children:e.date})}):(0,s.jsx)("span",{className:"font-lato text-[10px] leading-[125%] text-center ".concat(e.isCurrentMonth?"text-[#252525]":"text-[#252525] opacity-50"),children:e.date})}),(0,s.jsxs)("div",{className:"flex flex-col items-stretch gap-[2px] w-full",children:[e.events.slice(0,3).map((t,r)=>{let a=t.id%E.length,l=E[a],n=["#FEE6C9","#FFD9D9","#D2F0FF"].includes(l)?"#23243B":"#FFFFFF";return(0,s.jsx)("a",{href:H(t.link||"#",t.designation),className:"flex flex-col items-start p-1 gap-[10px] w-[170px] rounded-[2px] hover:opacity-80 transition-opacity cursor-pointer h-auto",style:{backgroundColor:l},children:(0,s.jsxs)("div",{className:"flex flex-row items-start gap-2 w-full",children:[(0,s.jsxs)("span",{className:"font-barlow text-xs leading-[14px] flex items-center",style:{color:n},children:["[",t.designation,"]"]}),(0,s.jsx)("span",{className:"font-barlow font-semibold text-xs leading-[14px] flex items-center flex-grow flex-wrap h-auto",style:{color:n,WebkitLineClamp:0===r&&e.events.length>1?2:1,WebkitBoxOrient:"vertical",overflow:"hidden"},children:(0,c.ZP)(t.title)})]})},t.id)}),e.events.length>3&&(0,s.jsx)("div",{className:"text-right mt-1",children:(0,s.jsxs)("span",{className:"text-xs text-[#252525] opacity-70",children:["+",e.events.length-3," more"]})})]})]},t))})]})]}),0===M.length&&!f&&(0,s.jsx)("div",{className:"text-center py-12",children:(0,s.jsx)("p",{className:"font-sans text-lg text-[#252525] opacity-70",children:"fr"===t?"Aucun \xe9v\xe9nement trouv\xe9.":"No events found."})})]})})}},4680:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(7562),o=r(3145);t.default=e=>{let{lang:t,...r}=e,c=(e,t)=>e,x=(0,l.yP)(r,"title",t),[d,p]=(0,a.useState)([]),[m,f]=(0,a.useState)(!0),[u,h]=(0,a.useState)(!1),[g,b]=(0,a.useState)(""),[w,v]=(0,a.useState)(!1),[j,y]=(0,a.useState)(12),[N,_]=(0,a.useState)(""),[k,P]=(0,a.useState)(""),[F,C]=(0,a.useState)(!1),[S,D]=(0,a.useState)([]),[E,A]=(0,a.useState)(!0),[B,L]=(0,a.useState)(null);(0,a.useEffect)(()=>{(async function(){try{A(!0);let e=await fetch("/api/partners?endpoint=industries&lang=".concat(t));if(!e.ok){console.warn("Industries endpoint not available, will derive from partners"),A(!1);return}let r=await e.json();if(Array.isArray(r)){let e=r.map(e=>({...e,name:(e.name,e.name)})).sort((e,r)=>e.name.localeCompare(r.name,"fr"===t?"fr":"en",{sensitivity:"base"}));D(e)}}catch(e){console.warn("Failed to fetch industries upfront:",e),L(e instanceof Error?e.message:"Failed to fetch industries")}finally{A(!1)}})()},[t]),(0,a.useEffect)(()=>{let e=1,r=!1;async function s(){h(!0);try{for(;!r;){let a=await fetch("/api/partners?page=".concat(e,"&per_page=12&lang=").concat(t));if(!a.ok)throw Error("Failed to fetch partners page ".concat(e,": ").concat(a.statusText));let l=await a.json();if(r)return;if(l.partners&&Array.isArray(l.partners)&&l.partners.length>0){var s;let t=l.partners.map(e=>({...e,title:"string"==typeof e.title?(0,i.ZP)(e.title).toString():e.title,title_fr:e.title_fr&&"string"==typeof e.title_fr?(0,i.ZP)(e.title_fr).toString():e.title_fr,industries:e.industries.map(e=>({...e,name:"string"==typeof e.name?(0,i.ZP)(e.name).toString():e.name}))}));if(p(e=>[...e,...t]),!(null===(s=l.pagination)||void 0===s?void 0:s.has_more)){v(!0);break}e++,await new Promise(e=>setTimeout(e,100))}else{v(!0);break}}}catch(e){r||console.error("Error loading additional partner pages:",e)}finally{r||h(!1)}}return async function(){try{f(!0);let l=await fetch("/api/partners?page=1&per_page=12&lang=".concat(t));if(!l.ok)throw Error("Failed to fetch partners: ".concat(l.statusText));let n=await l.json();if(r)return;if(n.partners&&Array.isArray(n.partners)){var a;let t=n.partners.map(e=>({...e,title:"string"==typeof e.title?(0,i.ZP)(e.title).toString():e.title,title_fr:e.title_fr&&"string"==typeof e.title_fr?(0,i.ZP)(e.title_fr).toString():e.title_fr,industries:e.industries.map(e=>({...e,name:"string"==typeof e.name?(0,i.ZP)(e.name).toString():e.name}))}));p(t),b(""),f(!1),(null===(a=n.pagination)||void 0===a?void 0:a.has_more)?(e=2,s()):v(!0)}else{if(Array.isArray(n)){let e=n.map(e=>({...e,title:"string"==typeof e.title?(0,i.ZP)(e.title).toString():e.title,title_fr:e.title_fr&&"string"==typeof e.title_fr?(0,i.ZP)(e.title_fr).toString():e.title_fr,industries:e.industries.map(e=>({...e,name:"string"==typeof e.name?(0,i.ZP)(e.name).toString():e.name}))}));p(e),v(!0)}f(!1)}}catch(e){r||(console.error("Error fetching first page of partners:",e),b("Failed to load partners. Please try again later."),f(!1))}}(),()=>{r=!0}},[t]);let M=(0,a.useMemo)(()=>d&&0!==d.length?Array.from(new Set(d.map(e=>{let r=(("fr"===t&&e.title_fr?e.title_fr:e.title)||"").trim().charAt(0).toUpperCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"");return/^[A-Z]$/.test(r)?r:null}).filter(e=>!!e))).sort((e,r)=>e.localeCompare(r,"fr"===t?"fr":"en",{sensitivity:"base"})):[],[d,t]),I=(0,a.useMemo)(()=>{let e=[];
1if(S.length>0)e=S;else{if(!d||0===d.length)return[];e=d.flatMap(e=>e.industries).reduce((e,t)=>(t.name&&""!==t.name.trim()&&!e.some(e=>e.id===t.id)&&e.push(t),e),[])}return"fr"===t?e.sort((e,t)=>{let r=c(e.name,"fr"),s=c(t.name,"fr");return r.localeCompare(s,"fr",{sensitivity:"base"})}):e.sort((e,t)=>e.name.localeCompare(t.name,"en",{sensitivity:"base"}))},[S,d,t,c]),O=(0,a.useMemo)(()=>d&&0!==d.length?d.filter(e=>{let r=(("fr"===t&&e.title_fr?e.title_fr:e.title)||"").trim().charAt(0).toUpperCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),s=!N||r===N,a=!k||e.industries.some(e=>e.slug===k);return s&&a}):[],[d,N,k,t]);(0,a.useEffect)(()=>{y(12)},[N,k]);let R=O.slice(0,j),Z=O.length>j,T=()=>{_(""),P(""),y(12)},z=(0,a.useMemo)(()=>{let e="fr"===t?"FILTRER PAR INDUSTRIE":"FILTER BY INDUSTRY";if(!k)return e;let r=I.find(e=>e.slug===k);return r?c(r.name,t):e},[k,I,t]);return(0,s.jsx)("section",{id:"existing-partners-section",className:"pt-[72px] pr-[40px] pb-[72px] pl-[40px] bg-[#F3F3F2] z-10",children:(0,s.jsxs)("div",{className:"container mx-auto max-w-[1440px]",children:[x&&(0,s.jsx)("h2",{className:"font-header font-light text-[32px] leading-[36px] uppercase text-[#314F9D] pl-[111px] pt-[111px] max-lg:pl-[60px] max-lg:pt-[60px] max-md:text-[28px] max-md:leading-[32px] max-md:text-center max-md:pl-0 max-md:pt-[40px] max-sm:text-[24px] max-sm:leading-[28px] [&_strong]:font-bold [&_strong]:text-[#23243B] [&_strong]:tracking-[0.02em] [&_strong]:text-[32px] max-md:[&_strong]:text-[28px] max-sm:[&_strong]:text-[24px] [&_b]:font-bold [&_b]:text-[#23243B] [&_b]:tracking-[0.02em] [&_b]:text-[32px] max-md:[&_b]:text-[28px] max-sm:[&_b]:text-[24px]",children:(0,i.ZP)(x?x.replace(/<\/?p>/g,""):"")}),(0,s.jsxs)("div",{className:"mt-[48px] bg-white px-[69px] py-[48px] max-lg:px-[40px] max-lg:py-[40px] max-md:px-[30px] max-md:py-[30px] max-sm:px-[20px] max-sm:py-[20px]",children:[(0,s.jsxs)("div",{className:"flex flex-wrap justify-between items-end mb-[32px]",children:[(0,s.jsxs)("div",{className:"mb-4 md:mb-0",children:[(0,s.jsx)("div",{className:"font-sans font-normal text-base leading-6 text-[#23243B]",children:"fr"===t?"FILTRER LE NOM":"FILTER NAME"}),(0,s.jsxs)("div",{className:"mt-2 flex flex-wrap gap-2",children:[M.map(e=>(0,s.jsx)("button",{className:"font-sans font-semibold text-base leading-[23px] transition-all duration-200 hover:scale-110 ".concat(N===e?"text-[#314F9D]":"text-[#63B3E4]"," hover:text-[#314F9D]"),onClick:()=>_(t=>t===e?"":e),children:e},e)),N&&(0,s.jsxs)("button",{className:"font-sans font-normal text-base leading-[23px] text-gray-500 hover:text-gray-700 ml-2",onClick:T,children:["(","fr"===t?"Effacer":"Clear",")"]})]})]}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("button",{className:"flex items-center font-sans font-semibold text-[14px] leading-[17px] text-[#314F9D] px-[16px] py-[8px] border border-[#314F9D] rounded min-w-[187px] h-[34px]",onClick:()=>C(!F),children:(0,s.jsxs)("div",{className:"flex items-center justify-center w-full",children:[(0,s.jsx)("div",{className:"flex items-center justify-center w-[18px] h-[18px] mr-[8px] flex-shrink-0",children:(0,s.jsx)(o.default,{src:"/images/down.svg",alt:"Dropdown Arrow",width:10,height:6,className:"text-[#314F9D]"})}),(0,s.jsx)("span",{className:"truncate",children:z})]})}),F&&(0,s.jsx)("div",{className:"absolute right-0 mt-1 min-w-[220px] max-w-[300px] bg-white border border-[#314F9D] rounded shadow-lg z-10 max-h-[300px] overflow-y-auto scrollbar-thin scrollbar-thumb-[rgba(49,79,157,0.5)] scrollbar-thumb-rounded-lg",children:(0,s.jsxs)("ul",{children:[(0,s.jsx)("li",{className:"px-4 py-2 hover:bg-gray-100 cursor-pointer border-b border-gray-200 font-sans font-semibold text-[14px] leading-[17px] text-[#314F9D]",onClick:()=>{P(""),C(!1)},children:"fr"===t?"Toutes les industries":"All Industries"}),I.map(e=>(0,s.jsx)("li",{className:"px-4 py-2 hover:bg-gray-100 cursor-pointer font-sans text-[14px] leading-[17px] ".concat(k===e.slug?"font-semibold text-[#314F9D]":"font-normal text-[#23243B]"),onClick:()=>{P(e.slug),C(!1)},children:c(e.name,t)},e.id))]})})]})]}),(0,s.jsx)("div",{className:"mt-[32px]",children:m?(0,s.jsxs)("div",{className:"w-full text-center py-8",children:[(0,s.jsx)("div",{className:"inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-[#314F9D]"}),(0,s.jsx)("p",{className:"mt-2 text-gray-600",children:"fr"===t?"Chargement des partenaires...":"Loading partners..."})]}):g?(0,s.jsx)("div",{className:"w-full text-center py-8 text-red-500",children:g}):R.length>0?(0,s.jsxs)(s.Fragment,{children:[u&&(0,s.jsx)("div",{className:"mb-6 text-center",children:(0,s.jsxs)("div",{className:"inline-flex items-center px-4 py-2 bg-blue-50 text-[#314F9D] rounded-md",children:[(0,s.jsx)("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-[#314F9D] mr-2"}),(0,s.jsx)("span",{className:"text-sm",children:"fr"===t?"Chargement de plus de partenaires... (".concat(d.length," charg\xe9s)"):"Loading more partners... (".concat(d.length," loaded)")})]})}),(0,s.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-8 justify-items-center",children:R.map(e=>(0,s.jsx)("a",{href:e.link,className:"w-[150px] h-[150px] p-[15px] flex items-center justify-center",target:"_blank",rel:"noopener noreferrer",title:"fr"===t&&e.title_fr?e.title_fr:e.title,children:(0,s.jsx)("img",{src:e.featured_image,alt:"fr"===t&&e.title_fr?e.title_fr:e.title,className:"w-full h-full object-contain filter grayscale brightness-110 opacity-80 hover:grayscale-0 hover:brightness-100 hover:opacity-100 transition-all duration-300"})},"partner-".concat(e.id)))}),Z&&!m&&!g&&(0,s.jsx)("div",{className:"flex justify-center mt-[32px]",children:(0,s.jsxs)("button",{onClick:()=>{y(e=>e+12)},className:"flex items-center justify-center gap-[8px] px-[16px] py-[8px] w-auto h-[39px] border border-[#23243B] rounded-[8px] bg-transparent hover:bg-[#23243B] hover:text-white transition-all duration-300 group",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B] group-hover:text-white",children:(0,n.i)("common","loadMore",t)||"LOAD MORE"}),(0,s.jsx)("div",{className:"flex items-center justify-center w-[20px] h-[20px]",children:(0,s.jsx)(o.default,{src:"/images/plus.svg",alt:"",width:20,height:20,className:"group-hover:filter group-hover:brightness-0 group-hover:invert"})})]})})]}):(0,s.jsxs)("div",{className:"w-full text-center py-8 text-gray-500",children:["fr"===t?"Aucun partenaire trouv\xe9 correspondant aux filtres s\xe9lectionn\xe9s.":"No partners found matching the selected filters.",(0,s.jsx)("button",{className:"block mx-auto mt-4 text-[#63B3E4] hover:text-[#314F9D]",onClick:T,children:"fr"===t?"Effacer les filtres":"Clear filters"})]})})]})]})})}},2155:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562);t.default=e=>{let{lang:t,...r}=e,[i,o]=(0,a.useState)(!1),[c,x]=(0,a.useState)(""),[d,p]=(0,a.useState)(null),m=[];
1if(Array.isArray(r.faq))m=r.faq;else if("object"==typeof r.faq&&null!==r.faq)Array.isArray(r.faq.faq)&&(m=r.faq.faq);else if("string"==typeof r.faq)try{let e=JSON.parse(r.faq);Array.isArray(e)&&(m=e)}catch(e){console.error("Failed to parse FAQ JSON:",e)}if((0,a.useEffect)(()=>{o(!0)},[]),(0,a.useEffect)(()=>{if(m.length>0&&!c){let e=m[0],r=e.hasOwnProperty("faq_category")?e:e.acf||e;x("fr"===t&&r.faq_category_fr?r.faq_category_fr:r.faq_category||"")}},[m,c,t]),!i)return null;let f=(0,l.yP)(r,"title",t),u=m.map((e,r)=>{let s=e.hasOwnProperty("faq_category")?e:e.acf||e;return"fr"===t&&s.faq_category_fr?s.faq_category_fr:s.faq_category||""}).filter(Boolean),h=m.find(e=>{let r=e.hasOwnProperty("faq_category")?e:e.acf||e;return("fr"===t&&r.faq_category_fr?r.faq_category_fr:r.faq_category||"")===c}),g=[];if(h){let e=h.hasOwnProperty("faq_category")?h:h.acf||h;Array.isArray(e.faq_list)?g=e.faq_list:"object"==typeof e.faq_list&&null!==e.faq_list&&Array.isArray(e.faq_list.faq_list)&&(g=e.faq_list.faq_list)}let b=e=>{x(e),p(null)},w=e=>{p(d===e?null:e)};return(0,s.jsx)("section",{id:"faqs",className:"py-[72px] px-[40px] bg-[#DAD9D6]/30",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1256px]",children:(0,s.jsxs)("div",{className:"flex flex-col items-start gap-[64px] w-full",children:[f&&(0,s.jsx)("div",{className:"flex-none order-0 flex-grow-0",children:(0,s.jsx)("h2",{className:"font-nunito font-extrabold text-[24px] sm:text-[28px] md:text-[32px] leading-[28px] sm:leading-[32px] md:leading-[36px] flex items-end uppercase text-[#23243B]",children:f})}),u.length>0&&(0,s.jsx)("div",{className:"flex flex-row justify-center items-center flex-wrap gap-[16px] w-full flex-none order-1 flex-grow-0",children:u.map((e,t)=>{let r=e===c;return(0,s.jsx)("button",{onClick:()=>b(e),className:"flex flex-col justify-center items-center py-2 px-4 gap-[10px] h-[33px] rounded-lg backdrop-blur-[7.5px] transition-all duration-300 ".concat(r?"bg-[#23243B] text-[#63B3E4]":"border border-[#314F9D] text-[#314F9D] hover:bg-[#314F9D]/5"),children:(0,s.jsx)("span",{className:"font-barlow font-semibold text-[14px] leading-[17px] whitespace-nowrap",children:e})},"category-".concat(t))})}),g.length>0&&(0,s.jsx)("div",{className:"flex flex-col items-start w-full flex-none order-2 flex-grow-0",children:g.map((e,r)=>{let a=e.hasOwnProperty("title")?e:e.acf||e,l="fr"===t&&a.title_fr?a.title_fr:a.title||"",i="fr"===t&&a.content_fr?a.content_fr:a.content||"",o=d===r;return(0,s.jsxs)("div",{className:"flex flex-col items-start w-full border-t border-[#DAD9D6] last:border-b",children:[(0,s.jsxs)("button",{onClick:()=>w(r),className:"flex flex-row justify-between items-center py-6 w-full text-left hover:bg-[#DAD9D6]/10 transition-all duration-300",children:[(0,s.jsx)("div",{className:"flex-1 pr-4",children:(0,s.jsx)("h3",{className:"font-nunito font-extrabold text-[16px] sm:text-[18px] leading-[18px] sm:leading-[20px] flex items-end tracking-[0.02em] uppercase text-[#23243B]",children:l})}),(0,s.jsx)("div",{className:"flex-none w-8 h-8 flex items-center justify-center",children:(0,s.jsxs)("div",{className:"relative w-4 h-4",children:[(0,s.jsx)("div",{className:"absolute top-1/2 left-0 w-4 h-[1.5px] bg-[#23243B] transform -translate-y-1/2"}),(0,s.jsx)("div",{className:"absolute left-1/2 top-0 w-[1.5px] h-4 bg-[#23243B] transform -translate-x-1/2 transition-all duration-300 ".concat(o?"opacity-0 rotate-90":"opacity-100 rotate-0")})]})})]}),(0,s.jsx)("div",{className:"w-full overflow-hidden transition-all duration-300 ease-in-out ".concat(o?"max-h-[500px] opacity-100":"max-h-0 opacity-0"),children:(0,s.jsx)("div",{className:"pb-6",children:(0,s.jsx)("div",{className:"font-barlow font-normal text-[14px] sm:text-[16px] leading-[20px] sm:leading-[24px] text-[#23243B]",children:(0,n.ZP)(i)})})})]},"faq-".concat(r))})})]})})})}},4620:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562),i=r(8975);t.default=e=>{let{lang:t,...r}=e,[o,c]=(0,a.useState)(!1),[x,d]=(0,a.useState)(null),[p,m]=(0,a.useState)(!1),f=e=>{if(!e)return e;let t={},r=0,s=e.replace(/<script[^>]*>[\s\S]*?<\/script>/gi,e=>{let s="__SCRIPT_PLACEHOLDER_".concat(r,"__");return t[s]=e,r++,s});return s=s.replace(/<p>\s*(__SCRIPT_PLACEHOLDER_\d+__)\s*<\/p>/gi,"$1").replace(/<br\s*\/?>\s*(__SCRIPT_PLACEHOLDER_\d+__)/gi,"$1").replace(/(__SCRIPT_PLACEHOLDER_\d+__)\s*<br\s*\/?>/gi,"$1").replace(/(?:^|>|\s+)(hbspt\.forms\.create\s*\(\s*\{[^}]*\}\s*\)\s*;?)(?=\s|<|$)/gi,"").replace(/\s+/g," ").trim(),Object.keys(t).forEach(e
1=>{s=s.replace(e,t[e])}),s};if((0,a.useEffect)(()=>{c(!0);let e=f((0,l.yP)(r,"form",t)||"");if(e){if(e.includes("<iframe")||e.includes("</iframe>")||e.includes("<div")||e.includes("<script")||e.includes("<style")||e.includes("<")||e.includes(">"))m(!0),d(null);else{let t=e.match(/id=["']?(\d+)["']?/);t&&t[1]?(d(parseInt(t[1],10)),m(!1)):(m(!0),d(null))}}},[r,t]),(0,a.useEffect)(()=>{if(o&&p&&f((0,l.yP)(r,"form",t)||"")){let e=document.querySelector("#form-section .form-wysiwyg-content");if(e){let t=e.querySelectorAll("script:not([data-executed])"),r=[],s=[];t.forEach(e=>{e.setAttribute("data-executed","true"),e.src?r.push(e):e.textContent&&s.push(e)});let a=async()=>{let t=r.map(e=>new Promise((t,r)=>{if(document.head.querySelector('script[src="'.concat(e.src,'"]'))){t();return}let s=document.createElement("script");s.src=e.src,s.async=!0,e.charset&&(s.charset=e.charset),e.type&&(s.type=e.type),s.onload=()=>{t()},s.onerror=()=>r(Error("Failed to load script: ".concat(e.src))),document.head.appendChild(s)}));try{await Promise.all(t);let r=async()=>{if(s.some(e=>{let t=e.textContent||"";return t.includes("$(")||t.includes("jQuery(")||t.includes("ccdi_web_init")||t.includes("ccdi_web_data")})&&"function"==typeof window.ensureJQuery)try{await window.ensureJQuery(),console.log("jQuery ensured for form scripts")}catch(e){console.error("Failed to ensure jQuery:",e)}s.forEach((t,r)=>{try{let r=t.textContent||"";if(r.includes("hbspt.forms.create")){let t=e.querySelector(".hbspt-form");t&&t.id&&(r=r.replace(/hbspt\.forms\.create\s*\(\s*\{([^}]+)\}\s*\)/,(e,r)=>{let s='target: "#'.concat(t.id,'"');return r.trim()?"hbspt.forms.create({".concat(r,", ").concat(s,"})"):"hbspt.forms.create({".concat(s,"})")}))}Function(r)()}catch(e){console.error("Error executing inline script ".concat(r+1,":"),e)}})};setTimeout(()=>{r()},500)}catch(t){console.error("Error loading external scripts:",t),(async()=>{if(s.some(e=>{let t=e.textContent||"";return t.includes("$(")||t.includes("jQuery(")||t.includes("ccdi_web_init")||t.includes("ccdi_web_data")})&&"function"==typeof window.ensureJQuery)try{await window.ensureJQuery(),console.log("jQuery ensured for fallback form scripts")}catch(e){console.error("Failed to ensure jQuery for fallback:",e)}s.forEach((t,r)=>{try{let r=t.textContent||"";if(r.includes("hbspt.forms.create")){let t=e.querySelector(".hbspt-form");t&&t.id&&(r=r.replace(/hbspt\.forms\.create\s*\(\s*\{([^}]+)\}\s*\)/,(e,r)=>{let s='target: "#'.concat(t.id,'"');return r.trim()?"hbspt.forms.create({".concat(r,", ").concat(s,"})"):"hbspt.forms.create({".concat(s,"})")}))}Function(r)()}catch(e){console.error("Error executing fallback inline script ".concat(r+1,":"),e)}})})()}};r.length>0?a():(async()=>{if(s.some(e=>{let t=e.textContent||"";return t.includes("$(")||t.includes("jQuery(")||t.includes("ccdi_web_init")||t.includes("ccdi_web_data")})&&"function"==typeof window.ensureJQuery)try{await window.ensureJQuery(),console.log("jQuery ensured for immediate form scripts")}catch(e){console.error("Failed to ensure jQuery for immediate scripts:",e)}s.forEach((t,r)=>{try{let r=t.textContent||"";if(r.includes("hbspt.forms.create")){let t=e.querySelector(".hbspt-form");t&&t.id&&(r=r.replace(/hbspt\.forms\.create\s*\(\s*\{([^}]+)\}\s*\)/,(e,r)=>{let s='target: "#'.concat(t.id,'"');return r.trim()?"hbspt.forms.create({".concat(r,", ").concat(s,"})"):"hbspt.forms.create({".concat(s,"})")}))}Function(r)()}catch(e){console.error("Error executing immediate inline script ".concat(r+1,":"),e)}})})()}}},[o,p,r,t]),!o)return null;let u=(0,l.yP)(r,"title",t),h=(0,l.yP)(r,"content",t),g=f((0,l.yP)(r,"form",t)||""),b=r.background||"#FFFFFF",w=r.form_bg||"#DAD9D6",v=r.title_font_size,j=r.title_font_weight,y=r.title_line_height,N=r.title_color,_=h||"",k={};v&&(k.fontSize=v),j&&(k.fontWeight=j),y&&(k.lineHeight=y),N&&(k.color=N);let P="font-header max-w-[774px] mx-auto text-center uppercase";return j||(P+=" font-extrabold"),v||(P+=" text-[24px]"),y||(P+=" leading-[36px]"),N||(P+=" text-[#23243B]"),(0,s.jsx)("section",{id:"form-section",className:"py-[100px] px-4 sm:px-[40px]",style:{backgroundColor:b},children:(0,s.jsxs)("div",{className:"container mx-auto max-w-[1680px]",children:[u&&(0,s.jsx)("h2",{className:P,style:k,children:(0,n.ZP)(u)}),_&&(0,s.jsx)("div",{className:"mt-4 max-w-[800px] mx-auto text-center",children:(0,s.jsx)("div",{className:"form-content font-sans text-base leading-6 text-[#424242]",children:(0,n.ZP)(_)})}),(0,s.jsx)("div",{className:"".concat(_?"mt-16":"mt-12"," max-w-[1054px] mx-auto"),children:p&&g?(0,s.jsx)("div",{className:"rounded-[20px] p-6 md:p-10 w-full",style:{backgroundColor:w},children:(0,s.jsx)("div",{className:"form-wysiwyg-content",dangerouslySetInnerHTML:{__html:g}})}):x?(0,s.jsx)("div",{className:"rounded-[20px] p-6 md:p-10 w-full",style:{backgroundColor:w},children:(0,s.jsx)(i.p,{formId:x,lang:t})}):(0,s.jsx)("div",{className:"rounded-[20px] p-6 md:p-10 text-center font-sans",style:{backgroundColor:w},children:"fr"===t?"Aucun contenu de formulaire trouv\xe9.":"No form content found."})})]})})}},1853:function(e,t,r){"use strict";r.r(t);var s=r(7437);r(2265);var a=r(3448),l=r(7562);t.default=e=>{let{lang:t,...r}=e,n=(0,a.yP)(r,"title",t),i=[];if(Array.isArray(r.logos))i=r.logos;else if("object"==typeof r.logos&&null!==r.logos)Array.isArray(r.logos.logos)&&(i=r.logos.logos);else if("string"==typeof r.logos)try{let e=JSON.parse(r.logos);Array.isArray(e)&&(i=e)}catch(e){console.error("Failed to parse logos JSON:",e)}return(0,s.jsx)("section",{id:"founding-partners-section",className:"pt-[80px] pr-[40px] pb-[96px] pl-[40px]",children:(0,s.jsxs)("div",{className:"container mx-auto max-w-[1278px] p-[69px] pb-[48px] bg-[#F3F3F2]",children:[n&&(0,s.jsx)("h3",{className:"font-header font-light text-[32px] leading-[36px] uppercase text-[#314F9D] pl-[43px] max-md:text-[28px] max-md:leading-[32px] max-md:text-center max-md:pl-0 max-sm:text-[24px] max-sm:leading-[28px] [&_strong]:font-bold [&_strong]:text-[#23243B] [&_strong]:tracking-[0.02em] [&_strong]:text-[32px] max-md:[&_strong]:text-[28px] max-sm:[&_strong]:text-[24px] [&_b]:font-bold [&_b]:text-[#23243B] [&_b]:tracking-[0.02em] [&_b]:text-[32px] max-md:[&_b]:text-[28px] max-sm:[&_b]:text-[24px]",children:(0,l.ZP)(n)}),(0,s.jsx)("div",{className:"mt-[32px]",children:i&&i.length>0?(0,s.jsx)("div",{className:"grid grid-cols-6 gap-x-[48px] gap-y-0 justify-items-center max-xl:grid-cols-4 max-lg:grid-cols-3 max-lg:gap-x-[48px] max-lg:gap-y-[20px] max-md:grid-cols-2 max-md:gap-x-[30px] max-md:gap-y-[20px] max-sm:grid-cols-1",children:i.map((e,r)=>{let a=e.hasOwnProperty("image")?e:e.acf||e,l="fr"===t&&a.image_fr?a.image_fr:a.image||"",n="fr"===t&&a.link_fr?a.link_fr:
1a.link||"#";return(0,s.jsx)("a",{href:n,className:"w-[150px] h-[150px] p-[15px] flex items-center justify-center transition-all duration-300 hover:scale-105 max-md:w-[130px] max-md:h-[130px]",target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)("img",{src:l,alt:"Founding Partner Logo",className:"w-full h-full object-contain filter grayscale brightness-110 opacity-80 hover:grayscale-0 hover:brightness-100 hover:opacity-100 transition-all duration-300"})},"founding-partner-".concat(r))})}):(0,s.jsx)("div",{className:"w-full text-center py-8 text-gray-500",children:"No founding partners found"})})]})})}},6638:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562);t.default=e=>{let{lang:t,...r}=e,[i,o]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{o(!0)},[]),!i)return null;let c=(0,l.yP)(r,"background_image",t),x=(0,l.yP)(r,"title",t),d=(0,l.yP)(r,"subtitle",t),p=x&&x?x.replace(/^<p[^>]*>|<\/p>$/g,""):"";return(0,s.jsxs)("section",{className:"relative w-full text-white bg-cover bg-center bg-no-repeat overflow-hidden pt-[156px] md:pt-0 md:min-h-[600px] md:max-h-[600px]",style:{backgroundImage:"url(".concat(c||"",")")},children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black bg-opacity-30 z-0"}),(0,s.jsxs)("div",{className:"relative z-10 container mx-auto px-4 sm:px-6 lg:px-[2.5rem] md:flex md:flex-col md:min-h-[600px] md:max-h-[600px] md:pt-20 max-w-[1680px]",children:[(0,s.jsxs)("div",{className:"md:flex md:flex-col md:flex-grow md:justify-end",children:[(0,s.jsx)("div",{className:"w-full mb-12 sm:mb-24",children:p&&(0,s.jsx)("h1",{className:"font-header text-4xl md:text-6xl lg:text-[100px] xl:text-[100px] 2xl:text-[100px] font-light leading-none tracking-[-0.02em] text-white [&_strong]:font-accent [&_strong]:font-bold [&_strong]:leading-none [&_strong]:tracking-normal [&_strong]:inline [&_a]:inline-flex [&_a]:flex-wrap [&_a]:max-w-full text-[clamp(2rem,5vw,4rem)] md:text-[clamp(3rem,6vw,6rem)] lg:text-[clamp(4rem,8vw,100px)]",children:(0,n.ZP)(p)})}),(0,s.jsx)("div",{className:"mt-0 pb-12 sm:pb-[55px]",children:(0,s.jsx)("div",{className:"w-full flex flex-col md:flex-row items-start md:items-end",children:(0,s.jsxs)("div",{className:"flex-grow w-full",children:[d&&(0,s.jsx)("div",{className:"w-full pb-4 sm:pb-6",children:(0,s.jsx)("p",{className:"font-sans text-[20px] sm:text-[24px] font-normal leading-normal text-white",children:d})}),(0,s.jsx)("div",{className:"border-b border-white"})]})})})]})," "]})," "]})}},6158:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562);t.default=e=>{let{lang:t,...r}=e,[i,o]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{o(!0)},[]),!i)return null;let c=(0,l.yP)(r,"title",t),x=[];if(Array.isArray(r.points))x=r.points;else if("object"==typeof r.points&&null!==r.points)Array.isArray(r.points.points)&&(x=r.points.points);else if("string"==typeof r.points)try{let e=JSON.parse(r.points);Array.isArray(e)&&(x=e)}catch(e){console.error("Failed to parse points JSON:",e)}return(0,s.jsx)("section",{id:"help-points",className:"py-[64px] px-[40px] pb-[96px] bg-[#F3F3F2]",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1326px]",children:(0,s.jsxs)("div",{className:"flex flex-col justify-center items-center gap-[50px]",children:[c&&(0,s.jsx)("div",{className:"w-full max-w-[415px]",children:(0,s.jsx)("h2",{className:"font-header text-[20px] sm:text-[22px] md:text-[24px] font-extrabold leading-[30px] sm:leading-[33px] md:leading-[36px] uppercase text-[#1D1D1B] text-center",children:c})}),x&&x.length>0&&(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("div",{className:"flex flex-row flex-wrap justify-center items-start align-content-start gap-[32px]",children:x.map((e,r)=>{let a=e.hasOwnProperty("title")?e:e.acf||e;"fr"===t&&a.title_fr?a.title_fr:a.title;let l="fr"===t&&a.subtitle_fr?a.subtitle_fr:a.subtitle||"",i="fr"===t&&a.content_fr?a.content_fr:a.content||"",o=String(r+1).padStart(2,"0");return(0,s.jsxs)("div",{className:"flex flex-col gap-[20px] w-full max-w-[413px] min-w-[300px]",children:[(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("div",{className:"font-sans text-[18px] font-normal leading-[22px] text-[#F58720]",children:o})}),(0,s.jsx)("div",{className:"w-full h-[1px] bg-[#1D1D1B]"}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-[10px] w-full",children:[l&&(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("h3",{className:"font-sans text-[18px] font-semibold leading-[22px] text-[#1D1D1B]",children:l})}),i&&(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("div",{className:"font-sans text-[16px] font-normal leading-[24px] text-[#1D1D1B]",children:(0,n.ZP)(i)})})]})]},"point-".concat(r))})})})]})})})}},9611:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562);t.default=e=>{let{lang:t,...r}=e,[i,o]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{o(!0)},[]),!i)return null;
1let c=(0,l.yP)(r,"title",t),x=[];if(Array.isArray(r.points))x=r.points;else if("object"==typeof r.points&&null!==r.points)Array.isArray(r.points.points)&&(x=r.points.points);else if("string"==typeof r.points)try{let e=JSON.parse(r.points);Array.isArray(e)&&(x=e)}catch(e){console.error("Failed to parse points JSON:",e)}return(0,s.jsx)("section",{id:"help-points-gida",className:"py-[96px] px-0 bg-white",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1406px] px-[40px]",children:(0,s.jsxs)("div",{className:"flex flex-col items-center gap-[96px]",children:[c&&(0,s.jsx)("div",{className:"w-full max-w-[850 px]",children:(0,s.jsx)("h2",{className:"font-header text-[24px] sm:text-[28px] md:text-[32px] font-light leading-[28px] sm:leading-[32px] md:leading-[36px] uppercase text-[#314F9D] text-center max-md:text-[20px] max-md:leading-[28px] max-sm:text-[18px] max-sm:leading-[26px] [&_strong]:font-bold [&_strong]:text-[#23243B] [&_strong]:tracking-[0.02em] [&_strong]:text-[24px] sm:[&_strong]:text-[28px] md:[&_strong]:text-[32px] max-md:[&_strong]:text-[20px] max-md:[&_strong]:leading-[28px] max-sm:[&_strong]:text-[18px] max-sm:[&_strong]:leading-[26px] [&_b]:font-bold [&_b]:text-[#23243B] [&_b]:tracking-[0.02em] [&_b]:text-[24px] sm:[&_b]:text-[28px] md:[&_b]:text-[32px] max-md:[&_b]:text-[20px] max-md:[&_b]:leading-[28px] max-sm:[&_b]:text-[18px] max-sm:[&_b]:leading-[26px]",children:(0,n.ZP)(c)})}),x&&x.length>0&&(0,s.jsx)("div",{className:"w-full max-w-[1323px]",children:(0,s.jsx)("div",{className:"flex flex-row flex-wrap justify-start items-start align-content-start gap-[32px]",children:x.map((e,r)=>{let a=e.hasOwnProperty("title")?e:e.acf||e;"fr"===t&&a.title_fr?a.title_fr:a.title;let l="fr"===t&&a.subtitle_fr?a.subtitle_fr:a.subtitle||"",i="fr"===t&&a.content_fr?a.content_fr:a.content||"",o=String(r+1).padStart(2,"0");return(0,s.jsxs)("div",{className:"flex flex-col items-start gap-[20px] w-full max-w-[413px] min-w-[300px]",children:[(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("div",{className:"font-sans text-[18px] font-normal leading-[22px] text-[#F58720] text-left",children:o})}),(0,s.jsx)("div",{className:"w-full h-[1px] bg-[#1D1D1B]"}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-[10px] w-full",children:[l&&(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("h3",{className:"font-sans text-[18px] font-semibold leading-[22px] text-[#1D1D1B]",children:l})}),i&&(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("div",{className:"font-sans text-[16px] font-normal leading-[24px] text-[#1D1D1B]",children:(0,n.ZP)(i)})})]})]},"point-".concat(r))})})})]})})})}},1464:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(9794),o=r(7562);let c=()=>!1;t.default=e=>{let{lang:t,...r}=e,[x,d]=(0,a.useState)(!1),[p,m]=(0,a.useState)(!1),[f,u]=(0,a.useState)(!1),[h,g]=(0,a.useState)(!1),b=(0,a.useRef)(null),w=(0,a.useRef)(null);c(),(0,a.useEffect)(()=>{d(!0)},[]);let v=(0,l.yP)(r,"background_image",t),j=(0,l.yP)(r,"background_video",t),y=(0,l.yP)(r,"title",t),N=(0,l.yP)(r,"subtitle",t),_=r.button,k=(0,l.yP)(r,"button_link",t),P=(0,n.i)("common","learnMoreUpper",t)||"Learn More",F=k||"#",C="_self";if("string"==typeof _)P=(0,l.yP)(r,"button",t)||P;else if(_&&"object"==typeof _){P=(0,l.yP)(_,"title",t)||P;let e=(0,l.yP)(_,"url",t);F=k||e||"#",C=(0,l.yP)(_,"target",t)||"_self"}let S=!!(r.button||r.button_link),D=j&&!f;(0,a.useEffect)(()=>{if(!x||!w.current)return;let e=new IntersectionObserver(e=>{e.forEach(e=>{g(e.isIntersecting)})},{threshold:.1,rootMargin:"50px"});return e.observe(w.current),()=>e.disconnect()},[x]);let E=(0,a.useCallback)(()=>{m(!0),b.current&&b.current.play().catch(e=>{b.current&&(b.current.muted=!0,b.current.play().catch(()=>{u(!0)}))})},[]),A=(0,a.useCallback)(()=>{u(!0),m(!1)},[]);return((0,a.useEffect)(()=>{b.current&&p&&(h?b.current.play().catch(()=>{}):b.current.pause())},[h,p]),x)?(0,s.jsxs)("section",{ref:w,className:"relative w-full text-white bg-cover bg-center bg-no-repeat overflow-hidden pt-[150px] h-[95vh]",style:{backgroundImage:"url(".concat(v||"",")")},children:[D&&(0,s.jsxs)("video",{ref:b,className:"absolute inset-0 w-full h-full object-cover z-0 transition-opacity duration-500 ".concat(p?"o
1pacity-100":"opacity-0"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"metadata",poster:v,onCanPlay:E,onError:A,style:{objectFit:"cover",objectPosition:"center"},children:[(0,s.jsx)("source",{src:j,type:"video/mp4"}),j&&j.includes(".mp4")&&(0,s.jsx)("source",{src:j.replace(".mp4",".webm"),type:"video/webm"}),"Your browser does not support the video tag."]}),(0,s.jsx)("div",{className:"absolute inset-0 bg-black bg-opacity-30 z-1"}),(0,s.jsxs)("div",{className:"relative z-10 container mx-auto px-4 sm:px-6 lg:px-[2.5rem] md:flex md:flex-col h-full",children:[(0,s.jsxs)("div",{className:"md:flex md:flex-col md:flex-grow md:justify-end",children:[(0,s.jsx)("div",{className:"w-full mb-6 sm:mb-12 md:mb-16 lg:mb-20 xl:mb-24",children:y&&(0,s.jsx)("h1",{className:"font-header text-4xl md:text-6xl lg:text-[116px] xl:text-[116px] 2xl:text-[116px] font-light leading-none tracking-[-0.02em] text-white [&_strong]:font-accent [&_strong]:font-bold [&_strong]:leading-none [&_strong]:tracking-normal [&_strong]:inline [&_a]:inline-flex [&_a]:flex-wrap [&_a]:max-w-full text-[clamp(2rem,5vw,4rem)] md:text-[clamp(3rem,6vw,6rem)] lg:text-[clamp(4rem,8vw,116px)]",children:(0,o.ZP)(y)})}),(0,s.jsx)("div",{className:"mt-0 pb-12 sm:pb-[101px]",children:(0,s.jsxs)("div",{className:"w-full flex flex-col md:flex-row items-start md:items-end",children:[(0,s.jsxs)("div",{className:"flex-grow w-full md:w-auto mb-6 md:mb-0",children:[N&&(0,s.jsx)("div",{className:"w-full pb-4 sm:pb-6",children:(0,s.jsx)("p",{className:"font-sans text-[20px] sm:text-[24px] font-normal leading-normal text-white",children:N})}),(0,s.jsx)("div",{className:"border-b border-white"})]}),(0,s.jsx)("div",{className:"hidden md:block w-6"}),S&&(0,s.jsx)(i.default,{href:F,className:"mt-6 md:mt-0 flex flex-row justify-center items-center px-4 py-2 gap-2 w-auto min-w-[176px] h-auto bg-[#F58720] hover:bg-[#B93C95] rounded-lg transition-all duration-300 group",..."_blank"===C?{target:C,rel:"noopener noreferrer"}:{},children:(0,s.jsx)("span",{className:"font-sans text-base font-semibold leading-[23px] text-[#23243B] group-hover:text-white transition-colors duration-300 relative pr-6 after:content-[''] after:absolute after:right-0 after:top-1/2 after:-translate-y-1/2 after:w-[13px] after:h-[13px] after:bg-[url('/images/arrow-right.svg')] group-hover:after:bg-[url('/images/arrow-right-white.svg')] after:bg-contain after:bg-no-repeat after:transition-all after:duration-300 group-hover:after:translate-x-1",children:P})})]})})]})," "]})," "]}):null}},4065:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(7562),o=r(3145),c=r(1632);t.default=e=>{let{lang:t,...r}=e,x=(0,l.yP)(r,"title",t),[d,p]=(0,a.useState)(0),[m,f]=(0,a.useState)(!1),u=(0,a.useRef)(null),[h,g]=(0,a.useState)(!1),[b,w]=(0,a.useState)(null),[v,j]=(0,a.useState)(0),[y,N]=(0,a.useState)(0);(0,a.useEffect)(()=>{let e=()=>{f(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let _=[];if(Array.isArray(r.reports))_=r.reports;else if("object"==typeof r.reports&&null!==r.reports)Array.isArray(r.reports.reports)&&(_=r.reports.reports);else if("string"==typeof r.reports)try{let e=JSON.parse(r.reports);Array.isArray(e)&&(_=e)}catch(e){console.error("Failed to parse reports JSON:",e)}let k=(e,r)=>{let s="fr"===t?"".concat(r,"_fr"):r;if(e[s]&&""!==e[s])return e[s];if(e[r])return e[r];if(e.acf){if(e.acf[s]&&""!==e.acf[s])return e.acf[s];if(e.acf[r])return e.acf[r]}return""},P=(0,a.useCallback)(()=>{_.length<=1||p(e=>e>=_.length-1?0:e+1)},[_.length]),F=(0,a.useCallback)(()=>{_.length<=1||p(e=>e<=0?_.length-1:e-1)},[_.length]),C=()=>m?100:60,S=()=>-d*C(),D=e=>{g(!0),w(e),N(S()),j(0),document.body.style.userSelect="none"},E=e=>{var t;h&&null!==b&&j((e-b)/((null===(t=u.current)||void 0===t?void 0:t.offsetWidth)||1)*100)},A=()=>{h&&(g(!1),document.body.style.userSelect="",Math.abs(v)>(m?15:10)&&(v>0&&d>0?F():v<0&&d<_.length-1&&P()),w(null),j(0),N(0))},B=(0,a.useCallback)(e=>{h&&(e.preventDefault(),E(e.clientX))},[h,b]),L=(0,a.useCallback)(e=>{h&&(e.preventDefault(),A())},[h,v,d,_.length]);return(0,a.useEffect)(()=>
1{if(h)return document.addEventListener("mousemove",B),document.addEventListener("mouseup",L),document.addEventListener("mouseleave",L),()=>{document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",L),document.removeEventListener("mouseleave",L)}},[h,B,L]),(0,s.jsx)("section",{id:"impact-report",className:"pt-[96px] pr-[20px] pb-[96px] pl-[20px] md:pr-[40px] md:pl-[40px] bg-transparent",children:(0,s.jsxs)("div",{className:"mx-auto max-w-[1600px]",children:[(0,s.jsxs)("div",{className:"max-w-[1504px] mx-auto mt-[52px] flex items-bottom justify-between",children:[x&&(0,s.jsx)("h2",{className:"font-header text-4xl sm:text-5xl md:text-6xl lg:text-[72px] font-light leading-[1] text-[#314F9D] text-center md:text-left strong-override-blue",children:(0,i.ZP)(x)}),(0,s.jsxs)("div",{className:"flex self-end space-x-[10px]",children:[(0,s.jsx)("button",{onClick:F,className:"w-10 h-10 md:w-12 md:h-12 flex items-center justify-center rounded-full bg-[#383838]/60 transition-all duration-300 hover:bg-[#383838]/80","aria-label":"fr"===t?"Pr\xe9c\xe9dent":"Previous",disabled:_.length<=1,children:(0,s.jsx)("div",{className:"w-5 h-5 md:w-6 md:h-6 relative rotate-180 flex items-center justify-center",children:(0,s.jsx)(o.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{filter:"brightness(0) invert(1)"}})})}),(0,s.jsx)("button",{onClick:P,className:"w-10 h-10 md:w-12 md:h-12 flex items-center justify-center rounded-full bg-[#383838]/60 transition-all duration-300 hover:bg-[#383838]/80","aria-label":"fr"===t?"Suivant":"Next",disabled:_.length<=1,children:(0,s.jsx)("div",{className:"w-5 h-5 md:w-6 md:h-6 relative flex items-center justify-center",children:(0,s.jsx)(o.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{filter:"brightness(0) invert(1)"}})})})]})]}),(0,s.jsx)("div",{className:"mt-[30px] md:mt-[54px]",children:_&&_.length>0?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"overflow-x-visible",children:(0,s.jsx)("div",{ref:u,className:"flex ".concat(h?"transition-none":"transition-all duration-500 ease-in-out"," select-none"),style:{transform:"translateX(".concat(S()+v,"%)")},onMouseDown:e=>{e.preventDefault(),D(e.clientX)},onTouchStart:e=>{D(e.touches[0].clientX)},onTouchMove:e=>{E(e.touches[0].clientX)},onTouchEnd:e=>{A()},children:_.map((e,r)=>{let a=k(e,"image"),l=k(e,"year"),x=k(e,"content"),d=k(e,"report"),p=k(e,"report_text")||(0,n.i)("common","downloadReport",t)||"Download Report";return(0,s.jsx)("div",{className:"flex-shrink-0 ".concat(m?"w-full":"w-[60%]"," pr-6 transition-transform duration-500"),children:(0,s.jsxs)("div",{className:"w-full max-w-[984px] mx-auto flex flex-col lg:flex-row",children:[(0,s.jsx)("div",{className:"relative w-full lg:w-[504px] h-[300px] md:h-[400px] lg:h-[578px] overflow-hidden rounded-lg",children:(0,s.jsx)(c.Z,{src:a,alt:"".concat(l," Impact Report"),fill:!0,className:"object-cover transition-all duration-300 hover:scale-105",sizes:"(max-width: 768px) 100vw, (max-width: 1024px) 504px, 504px"})}),(0,s.jsxs)("div",{className:"w-full lg:w-[480px] p-[24px] sm:p-[40px] lg:p-[60px_60px_80px_80px] flex flex-col items-start justify-start bg-white",children:[l&&(0,s.jsx)("h3",{className:"font-header font-light text-[28px] sm:text-[32px] lg:text-[36px] leading-[30px] sm:leading-[34px] lg:leading-[38px] uppercase text-[#314F9D]",children:l}),x&&(0,s.jsx)("div",{className:"mt-[12px] sm:mt-[16px] font-sans font-normal text-[16px] sm:text-[18px] leading-[20px] sm:leading-[22px] text-[#23243B]",children:(0,i.ZP)(x)}),d&&"#"!==d&&(0,s.jsxs)("a",{href:d,className:"mt-[20px] sm:mt-[32px] inline-block font-sans font-semibold text-[16px] leading-[23px] flex items-center text-[#23243B] pb-[8px] sm:pb-[12px] border-b border-[#23243B] hover:opacity-80 transition-all duration-300 group",target:"_blank",rel:"noopener noreferrer",children:[p,(0,s.jsx)("div",{className:"ml-2 flex items-center justify-center",children:(0,s.jsx)(o.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{verticalAlign:"middle"},className:"transition-transform duration-300 group-hover:translate-x-1"})})]})]})]})},"report-".concat(r))})})})}):(0,s.jsx)("div",{className:"w-full text-center py-8 text-gray-500",children:"fr"===t?"Aucun rapport trouv\xe9":"No reports found"})}),(0,s.jsx)("div",{className:"max-w-[1504px] mx-auto mt-[52px] flex items-center",children:(0,s.jsx)("div",{className:"flex-grow",children:(0,s.jsx)("div",{className:"border-b border-[#314F9D] h-[40p
1x] md:h-[56px] border-opacity-100"})})})]})})}},6691:function(e,t,r){"use strict";r.r(t),r.d(t,{tagTranslations:function(){return m}});var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(3145),o=r(7648),c=r(9794),x=r(1632),d=r(3735),p=r(7562);let m={"#AccessibleForAll":"#AccessibleForAll","#CDNdiversity":"#CDNdiversity","#Neurodiversity":"#neurodiverse","Accenture Canada":"Accenture Canada",Accessibility:"Accessibilit\xe9",Administration:"Administration",Ageism:"Ageism",Alberta:"Alberta",Analytics:"Analytics","Anne-Marie Pham":"Anne-Marie Pham","Anti-Asian racism":"Racisme anti-asiatique","Asian Heritage Month":"Mois du patrimoine asiatique","Awards of Success":"Awards of Success","Awards of Success 2019":"Prix de la r\xe9ussite 2019","Bench Canada":"Bench","Benchmarking study":"\xc9tude comparative",BeYourself:"#BeYourself",Blog:"Blog",BLOOM:"BLOOM","BLOOM! 2017":"BLOOM! 2017","Body Diversity":"Body Diversity","Brave spaces":"Espaces d'encouragement",Calgary:"Calgary","Calgary Stampede":"Calgary Stampede",Canada:"Canada","Canada Business Corporations Act":"Loi canadienne sur les soci\xe9t\xe9s par actions","Canadian Centre for Diversity and Inclusion":"Centre canadien pour la diversit\xe9 et l'inclusion","Canadian Certified Inclusion Professional":"Canadian Certified Inclusion Professional","Career Opportunities":"Career Opportunity","Career Opportunity":"Career Opportunity","Carmina Ravanera":"Carmina Ravanera",CBCA:"CBCA",CCDI:"CCDI","CCDI blog":"CCDI blog",CCIP:"CCIP",CDNlaw:"CDNlaw",Census:"Recensement","Centennial Certificate in Leadership and Inclusion":"Certificat en leadership et inclusion du Coll\xe8ge Centennial","Centennial College":"Centennial College","Community of Practice":"Community of Practice",COPE:"COPE",Coronavirus:"Coronavirus","COVID-19":"COVID-19","Culture Meter":"Indice de la culture",DEAM:"DEAM",DEI:"DEI",DEIA:"D\xc9IA","Disability Employment Awareness Month":"Mois de la sensibilisation \xe0 l'emploi des personnes en situation de handicap",Discrimination:"Discrimination",Diversity:"Diversit\xe9","Diversity by the Numbers":"Diversit\xe9 par les nombres","Diversity in the legal profession":"Diversity in the legal profession","Diversity Measurement":"Diversity Measurement","Diversity and inclusion":"Diversit\xe9 et inclusion","Diversity and Inclusion Strategy":"Diversity and Inclusion Strategy","Diversity designation":"Diversity designation",eLearning:"eLearning","Employee Resource Group":"Groupe-ressources des employ\xe9s","Employer Partners":"Employer Partners","Employment Equity Act":"Loi sur \xe9quit\xe9 en mati\xe8re d'emploi"};t.default=e=>{let{lang:t,...r}=e,f=(e,t)=>"fr"===t&&e.name_fr?e.name_fr:"fr"===t&&m[e.name]?m[e.name]:e.name,[u,h]=(0,a.useState)([]),[g,b]=(0,a.useState)(!0),[w,v]=(0,a.useState)(null),[j,y]=(0,a.useState)(0),N=(0,a.useRef)([]);(0,l.yP)(r,"title",t);let _="fr"===t?"fr":"en",k=(0,n.i)("common","loading",_),P=(0,n.i)("common","error",_),F=(0,n.i)("insights","noInsights",_),C=(0,n.i)("insights","checkBackInsights",_),S=(0,n.i)("common","readMore",_),D=(0,n.i)("common","seeAll",_)||"See all",E=["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"],A=e=>{if(!e)return"";let t=new Date(e);if("fr"!==_)return t.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});{let e=t.getDate(),r=E[t.getMonth()].toLowerCase(),s=t.getFullYear();return"".concat(e," ").concat(r," ").concat(s)}};(0,a.useEffect)(()=>{!async function(){try{var e,t,r;let s=await fetch("/api/insights?per_page=3&page=1");if(!s.ok)throw Error("HTTP error! Status: ".concat(s.status));let a=await s.json();h(a.blogs||[]),y((null===(e=a.pagination)||void 0===e?void 0:e.total)||0),v(null),console.log("Insights component: Loaded ".concat((null===(t=a.blogs)||void 0===t?void 0:t.length)||0," insights out of ").concat((null===(r=a.pagination)||void 0===r?void 0:r.total)||0," total"))}catch(e){console.error("Failed to load insights:",e),v(e instanceof Error?e.message:"Failed to load insights"),h([]),y(0)}finally{b(!1)}}()},[]);let B=[{bg:"#1f4e3d",text:"#ffffff"},{bg:"#2c1810",text:"#ffffff"},{bg:"#1e3a8a",text:"#ffffff"},{bg:"#7c2d12",text:"#ffffff"},{bg:"#581c87",text:"#ffffff"},{bg:"#0c4a6e",text:"#ffffff"}],L=e=>B[e%B.length],M=()=>
1{if(window.innerWidth<768)return;N.current.forEach(e=>{e&&(e.style.height="auto")});let e=0;N.current.forEach(t=>{if(t){let r=t.offsetHeight;r>e&&(e=r)}}),e>0&&N.current.forEach(t=>{t&&(t.style.height="".concat(e,"px"))})};(0,a.useEffect)(()=>{if(!g&&u.length>0){requestAnimationFrame(()=>{M()});let e=()=>{window.innerWidth>=768?M():N.current.forEach(e=>{e&&(e.style.height="auto")})};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}},[g,u]);let I=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:25,r=e.replace(/<[^>]*>?/gm,"").split(" ").slice(0,t).join(" "),s=r.lastIndexOf(".");return -1===s?r:r.substring(0,s+1)},O=u.map(e=>{var r;let s=(null===(r=e.acf)||void 0===r?void 0:r.featured_image_override)||e.featured_image;return{id:e.id,title:"fr"===t&&e.title_fr?e.title_fr:e.title,content:"fr"===t&&e.content_fr?e.content_fr:e.content,featured_image:s,date:A(e.date),permalink:e.permalink,categories:e.categories||[]}}),R=e=>{if(!e)return"";let t=e.replace(/<[^>]*>/g,"").trim();return t?t.toLowerCase().replace(/[à áâãäå]/g,"a").replace(/[èéêë]/g,"e").replace(/[ìÃîï]/g,"i").replace(/[òóôõö]/g,"o").replace(/[ùúûü]/g,"u").replace(/[ç]/g,"c").replace(/[ñ]/g,"n").replace(/[ÿ]/g,"y").replace(/[·]/g,"").replace(/['']/g,"").replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""):""},Z=(e,r)=>{let s;if(!e)return"#";try{s=new URL(e).pathname}catch(t){s=e}let a=s.startsWith("/")?s.substring(1):s;if("fr"===t&&r){let e=R(r);if(e)return"/fr/blog/".concat(e)}return a.startsWith("http")||a.startsWith("blog/")?s:"/".concat(t,"/blog/").concat(a)},T=O.length>0,z=O.slice(0,3);return(0,s.jsx)("section",{className:"py-[96px] px-[40px] bg-white",children:(0,s.jsxs)("div",{className:"mx-auto max-w-[1464px]",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 mb-[48px]",children:[(0,s.jsx)("div",{className:"flex items-center",children:(0,s.jsx)("h2",{className:"font-header font-extrabold text-4xl md:text-5xl lg:text-[64px] leading-[72px] tracking-[0.02em] uppercase text-[#314F9D] z-10 max-sm:text-[36px] max-sm:leading-[48px]",children:"fr"===_?"Perspectives":"Insights"})}),(0,s.jsx)("div",{className:"flex items-end justify-start md:justify-end mt-4 md:mt-0",children:(0,s.jsxs)(c.default,{href:"/".concat(t,"/blog"),className:"inline-block font-barlow font-semibold text-[16px] leading-[23px] flex items-center text-[#23243B] pb-[12px] border-b border-[#23243B] hover:opacity-80 transition-opacity duration-300 group",children:[D,(0,s.jsx)("div",{className:"ml-2 flex items-center justify-center transition-transform duration-300 group-hover:translate-x-1",children:(0,s.jsx)(i.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{verticalAlign:"middle"}})})]})})]}),g?(0,s.jsx)("div",{className:"text-center py-[48px]",children:(0,s.jsx)("div",{className:"font-barlow font-normal text-[16px] leading-[24px] text-[#38393A]",children:k})}):w?(0,s.jsx)("div",{className:"text-center py-[48px]",children:(0,s.jsxs)("div",{className:"font-barlow font-normal text-[16px] leading-[24px] text-red-500 mb-4",children:[P,": ",w]})}):T?(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-[46.6fr_26.7fr_26.7fr] gap-[48px]",children:z.map((e,t)=>{let r=u[t];return(0,s.jsxs)("div",{ref:e=>{N.current[t]=e},className:"insights-card flex flex-col",children:[(0,s.jsxs)("div",{className:"relative w-full overflow-hidden rounded-[8px] h-[374px]",children:[e.featured_image?(0,s.jsx)(x.Z,{src:e.featured_image,alt:e.title,fill:!0,className:"object-cover",sizes:"(max-width: 768px) 100vw, (max-width: 1024px) 50vw, 33vw"}):(0,s.jsx)(d.Z,{configName:"default",alt:"".concat(e.title," placeholder")}),e.categories.length>0&&(()=>{let t=L(e.categories[0].id);return(0,s.jsx)("div",{className:"absolute top-[24px] left-[24px] flex flex-col justify-center items-center px-[8px] py-[4px] rounded-[8px] backdrop-blur-[7.5px] z-10",style:{backgroundColor:t.bg},children:(0,s.jsx)("span",{className:"font-barlow font-semibold text-[14px] leading-[17px] whitespace-nowrap",style:{color:t.text},children:f(e.categories[0],_)})})})()]}),e.date&&(0,s.jsx)("div",{className:"mt-[32px] font-header font-light text-[24px] leading-[24px] ".concat("en"===_?"uppercase":""," text-[#314F9D]"),children:e.date}),(0,s.jsx)(o.default,{href:Z(e.permalink,null==r?void 0:r.title_fr),className:"mt-[16px] block hover:opacity-80 transition-opacity duration-300",children:(0,s.jsx)("h3",{className:"font-header font-extrabold text-[24px] leading-[36px] uppercase text-black",children:(0,p.ZP)(e.title)})}),(0,s.jsx)("div",{className:"mt-[16px] mb-[16px] font-barlow font-normal text-[16px] leading-[24px] text-[#38393A]",children:I(e.content,0===t?40:25)}),(0,s.jsx)("div",{className:"mt-auto",children:(0,s.jsxs)(o.default,{href:Z(e.permalink,null==r?void 0:r.title_fr),className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B] pb-[12px] border-b border-[#23243B] hover:opacity-80 transition-opacity duration-300 group inline-flex items-center w-auto mt-4",children:[S,(0,s.jsx)("div",{className:"ml-2 flex items-center justify-center transition-transform duration-300 group-hover:translate-x-1",children:(0,s.jsx)(i.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{verticalAlign:"middle"}})})]})})]},e.id)})}):(0,s.jsxs)("div",{className:"text-center py-[48px]",children:[(0,s.jsx)("div",{className:"font-barlow font-normal text-[16px] leading-[24px] text-[#38393A] mb-4",children:F}),(0,s.jsx)("div",{className:"font-barlow font-normal text-[14px] leading-[20px] text-[#666666]",children:C})]})]})})}},9332:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562),i=r(1632);let o=e=>e&&""!==e&&"false"!==e&&"null"!==e&&"undefined"!==e&&("string"!=typeof e||""!==e.trim())?"string"==typeof e?e:String(e):null,c=e=>
1{let t=o(e);return t&&(t.startsWith("http://")||t.startsWith("https://")||t.startsWith("/"))?t:null},x=e=>e?e.replace(/^<p[^>]*>|<\/p>$/g,""):"";t.default=e=>{let{lang:t,...r}=e,[d,p]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{p(!0)},[]),!d)return null;let m=c((0,l.yP)(r,"image",t)),f=o((0,l.yP)(r,"title",t)),u=o((0,l.yP)(r,"content",t)),h=o((0,l.yP)(r,"address",t)),g=o((0,l.yP)(r,"phone",t)),b=o((0,l.yP)(r,"email",t)),w=o((0,l.yP)(r,"maps_link",t))||"#",v=f?x(f):"",j="fr"===t?"Google Cartes":"Google Maps";return(0,s.jsx)("section",{id:"location",className:"relative w-full bg-white lg:px-0 px-10",children:(0,s.jsxs)("div",{className:"container mx-auto max-w-[1680px] relative",children:[(0,s.jsxs)("div",{className:"hidden 2xl:block relative w-full h-full min-h-[500px] lg:min-h-[590px]",children:[m&&(0,s.jsx)("div",{className:"absolute inset-0 w-[calc(100%+5rem)] ml-[-2.5rem] lg:w-[100%] h-full",children:(0,s.jsx)(i.Z,{src:m,alt:"",width:1162,height:590,className:"object-cover w-full h-full",sizes:"(max-width: 768px) 100vw, (max-width: 1024px) 1162px, 1162px"})}),(0,s.jsx)("div",{className:"absolute mx-auto mx-0 right-[108px] top-[77px] w-[575px] bg-[#23243B] rounded-lg z-30",children:(0,s.jsx)("div",{className:"p-[45px_68px] flex flex-col gap-[10px]",children:(0,s.jsx)("div",{className:"flex flex-col gap-[24px]",children:(0,s.jsxs)("div",{className:"flex flex-col gap-[48px]",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-[24px]",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-[16px]",children:[v&&(0,s.jsx)("h3",{className:"font-header text-[36px] font-light leading-[38px] uppercase text-white",children:(0,n.ZP)(v)}),u&&(0,s.jsx)("div",{className:"text-white text-[16px] leading-[24px] font-sans",children:u})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-[16px]",children:[h&&(0,s.jsxs)("div",{className:"flex items-start gap-[16px]",children:[(0,s.jsx)("div",{className:"flex-shrink-0 w-6 h-6 mt-1",children:(0,s.jsx)("img",{src:"/images/office.svg",alt:"",width:24,height:24,className:"w-6 h-6"})}),(0,s.jsx)("div",{className:"text-white text-[14px] leading-[17px] font-sans whitespace-pre-line",children:h})]}),g&&(0,s.jsxs)("div",{className:"flex items-center gap-[16px]",children:[(0,s.jsx)("div",{className:"flex-shrink-0 w-6 h-6",children:(0,s.jsx)("img",{src:"/images/phone.svg",alt:"",width:24,height:24,className:"w-6 h-6"})}),(0,s.jsx)("a",{href:"tel:".concat(g),className:"text-white text-[14px] leading-[17px] font-sans hover:text-[#63B3E4] transition-colors",children:g})]}),b&&(0,s.jsxs)("div",{className:"flex items-center gap-[16px]",children:[(0,s.jsx)("div",{className:"flex-shrink-0 w-6 h-6",children:(0,s.jsx)("img",{src:"/images/mail.svg",alt:"",width:24,height:24,className:"w-6 h-6"})}),(0,s.jsx)("a",{href:"mailto:".concat(b),className:"text-white text-[14px] leading-[17px] font-sans hover:text-[#63B3E4] transition-colors",children:b})]})]})]}),(0,s.jsx)("div",{className:"flex justify-start",children:(0,s.jsx)("a",{href:w,target:"_blank",rel:"noopener noreferrer",className:"inline-flex justify-center items-center px-4 py-2 min-w-[160px] h-[39px] bg-[#F58720] hover:bg-[#B93C95] rounded-lg transition-all duration-300 group",children:(0,s.jsx)("span",{className:"font-sans text-base font-semibold text-[#23243B] group-hover:text-white transition-colors duration-300 relative pr-6 after:content-[''] after:absolute after:right-0 after:top-1/2 after:-translate-y-1/2 after:w-[13px] after:h-[13px] after:bg-[url('/images/arrow-right.svg')] group-hover:after:bg-[url('/images/arrow-right-white.svg')] after:bg-contain after:bg-no-repeat after:transition-all after:duration-300 group-hover:after:translate-x-1",children:j})})})]})})})})]}),(0,s.jsxs)("div",{className:"block 2xl:hidden",children:[m&&(0,s.jsx)("div",{className:"relative w-full h-[400px] sm:h-[500px] lg:h-[590px] overflow-hidden rounded-lg",children:(0,s.jsx)(i.Z,{src:m,alt:"",fill:!0,className:"object-cover object-center",sizes:"(max-width: 768px) 100vw, (max-width: 1024px) 100vw, 100vw"})}),(0,s.jsx)("div",{className:"w-full max-w-[575px] mx-auto mt-6 sm:mt-8 lg:mt-10 mb-6 sm:mb-8 lg:mb-10 bg-[#23243B] rounded-lg",children:(0,s.jsx)("div",{className:"p-[30px] sm:p-[35px] lg:p-[45px] flex flex-col gap-6 lg:gap-[10px]",children:(0,s.jsx)("div",{className:"flex flex-col gap-6 lg:gap-[24px]",children:(0,s.jsxs)("div",{className:"flex flex-col gap-6 lg:gap-[48px]",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-4 lg:gap-[24px]",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 lg:gap-[16px]",children:[v&&(0,s.jsx)("h3",{className:"font-header text-[24px] sm:text-[28px] lg:text-[36px] font-light leading-[28px] sm:leading-[32px] lg:leading-[38px] uppercase text-white",children:(0,n.ZP)(v)}),u&&(0,s.jsx)("div",{className:"text-white text-[14px] sm:text-[15px] lg:text-[16
1px] leading-[20px] sm:leading-[22px] lg:leading-[24px] font-sans",children:u})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 lg:gap-[16px]",children:[h&&(0,s.jsxs)("div",{className:"flex items-start gap-3 lg:gap-[16px]",children:[(0,s.jsx)("div",{className:"flex-shrink-0 w-6 h-6 mt-1",children:(0,s.jsx)("img",{src:"/images/office.svg",alt:"",width:24,height:24,className:"w-6 h-6"})}),(0,s.jsx)("div",{className:"text-white text-[12px] sm:text-[13px] lg:text-[14px] leading-[15px] sm:leading-[16px] lg:leading-[17px] font-sans whitespace-pre-line",children:h})]}),g&&(0,s.jsxs)("div",{className:"flex items-center gap-3 lg:gap-[16px]",children:[(0,s.jsx)("div",{className:"flex-shrink-0 w-6 h-6",children:(0,s.jsx)("img",{src:"/images/phone.svg",alt:"",width:24,height:24,className:"w-6 h-6"})}),(0,s.jsx)("a",{href:"tel:".concat(g),className:"text-white text-[12px] sm:text-[13px] lg:text-[14px] leading-[15px] sm:leading-[16px] lg:leading-[17px] font-sans hover:text-[#63B3E4] transition-colors",children:g})]}),b&&(0,s.jsxs)("div",{className:"flex items-center gap-3 lg:gap-[16px]",children:[(0,s.jsx)("div",{className:"flex-shrink-0 w-6 h-6",children:(0,s.jsx)("img",{src:"/images/mail.svg",alt:"",width:24,height:24,className:"w-6 h-6"})}),(0,s.jsx)("a",{href:"mailto:".concat(b),className:"text-white text-[12px] sm:text-[13px] lg:text-[14px] leading-[15px] sm:leading-[16px] lg:leading-[17px] font-sans hover:text-[#63B3E4] transition-colors",children:b})]})]})]}),(0,s.jsx)("div",{className:"flex justify-start",children:(0,s.jsx)("a",{href:w,target:"_blank",rel:"noopener noreferrer",className:"inline-flex justify-center items-center px-4 py-2 min-w-[160px] h-[39px] bg-[#F58720] hover:bg-[#B93C95] rounded-lg transition-all duration-300 group",children:(0,s.jsx)("span",{className:"font-sans text-base font-semibold text-[#23243B] group-hover:text-white transition-colors duration-300 relative pr-6 after:content-[''] after:absolute after:right-0 after:top-1/2 after:-translate-y-1/2 after:w-[13px] after:h-[13px] after:bg-[url('/images/arrow-right.svg')] group-hover:after:bg-[url('/images/arrow-right-white.svg')] after:bg-contain after:bg-no-repeat after:transition-all after:duration-300 group-hover:after:translate-x-1",children:j})})})]})})})})]})]})})}},9762:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(7562),o=r(1632);let c=function(){let{initialPerPage:e=24,industryFilter:t,searchQuery:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[s,l]=(0,a.useState)([]),[n,i]=(0,a.useState)(!1),[o,c]=(0,a.useState)(null),[x,d]=(0,a.useState)(null),[p,m]=(0,a.useState)(1),f=(0,a.useCallback)(async function(s){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{i(!0),c(null);let n=new URLSearchParams({page:s.toString(),per_page:e.toString()});t&&n.append("industry",t),r&&n.append("search",r);let o=await fetch("/api/partners?".concat(n.toString()));if(!o.ok)throw Error("Failed to fetch partners: ".concat(o.statusText));let x=await o.json();a?l(e=>[...e,...x.partners]):l(x.partners),d(x.pagination),m(s)}catch(e){console.error("Error fetching partners:",e),c(e instanceof Error?e.message:"Failed to fetch partners")}finally{i(!1)}},[e,t,r]);(0,a.useEffect)(()=>{m(1),f(1,!1)},[f]);let u=(0,a.useCallback)(()=>{(null==x?void 0:x.has_more)&&!n&&f(p+1,!0)},[null==x?void 0:x.has_more,n,p,f]),h=(0,a.useCallback)(()=>{m(1),f(1,!1)},[f]);return{partners:s,loading:n,error:o,hasMore:(null==x?void 0:x.has_more)||!1,loadMore:u,refresh:h,pagination:x}},x=()=>(0,s.jsx)("div",{className:"flex items-center justify-center w-[120px] h-[120px] p-[15px] transition-all duration-300 animate-pulse",children:(0,s.jsx)("div",{className:"bg-gray-200 rounded h-16 w-full"})}),d=e=>{let{onClick:t,loading:r,hasMore:a,lang:l}=e;return a?(0,s.jsx)("div",{className:"flex justify-center mt-8",children:(0,s.jsx)("button",{onClick:t,disabled:r,className:"px-6 py-3 bg-[#314F9D] text-white rounded-md hover:bg-[#2a4389] disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:r?(0,n.i)("common","loading",l)||"Loading...":(0,n.i)("common","loadMore",l)||"Load More"})}):null};var p=e=>{let{lang:t,mode:r="static",industry_filter:n,search_query:p,per_page:m=24,...f}=e,u=(0,l.yP)(f,"title",t),[h,g]=(0,a.useState)(!1),b=(0,a.useRef)(null),{partners:w,loading:v,error:j,hasMore:y,loadMore:N,pagination:_}=c({initialPerPage:m,industryFilter:n,searchQuery:p});(0,a.useEffect)(()=>
1{if(!h||!b.current||!y||v)return;let e=new IntersectionObserver(e=>{e[0].isIntersecting&&N()},{threshold:.1});return e.observe(b.current),()=>e.disconnect()},[h,y,v,N]);let k=[];if("static"===r){if(Array.isArray(f.logos))k=f.logos;else if("fr"===t&&Array.isArray(f.logos_fr))k=f.logos_fr;else if("object"==typeof f.logos&&null!==f.logos)Array.isArray(f.logos.logos)&&(k=f.logos.logos);else if("string"==typeof f.logos)try{let e=JSON.parse(f.logos);Array.isArray(e)&&(k=e)}catch(e){console.error("Failed to parse logos JSON:",e)}}let P="dynamic"===r?w:k;return(0,s.jsx)("section",{id:"logos-section",className:"pt-[32px] pr-[40px] pb-[72px] pl-[40px]",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1601px] p-[48px] bg-[#F3F3F2] rounded-md",children:(0,s.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,s.jsxs)("div",{className:"md:w-1/3 mb-10 md:mb-0",children:[u&&(0,s.jsx)("h2",{className:"font-header text-4xl sm:text-5xl md:text-6xl lg:text-[72px] font-light leading-[1] text-[#314F9D] text-center md:text-left max-lg:max-w-full max-md:text-[48px] max-md:text-center max-sm:text-[36px] [&_strong]:font-bold [&_strong]:text-[#23243B] [&_strong]:tracking-[0.02em] [&_strong]:text-4xl sm:[&_strong]:text-5xl md:[&_strong]:text-6xl lg:[&_strong]:text-[72px] max-md:[&_strong]:text-[48px] max-sm:[&_strong]:text-[36px] [&_b]:font-bold [&_b]:text-[#23243B] [&_b]:tracking-[0.02em] [&_b]:text-4xl sm:[&_b]:text-5xl md:[&_b]:text-6xl lg:[&_b]:text-[72px] max-md:[&_b]:text-[48px] max-sm:[&_b]:text-[36px]",children:(0,i.ZP)(u)}),"dynamic"===r&&_&&(0,s.jsxs)("div",{className:"mt-6 text-sm text-gray-600",children:[(0,s.jsxs)("p",{children:["Showing ",P.length," of ",_.total," partners"]}),(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsxs)("label",{className:"flex items-center",children:[(0,s.jsx)("input",{type:"checkbox",checked:h,onChange:e=>g(e.target.checked),className:"mr-2"}),(0,s.jsx)("span",{className:"text-xs",children:"Enable infinite scroll"})]})})]})]}),(0,s.jsx)("div",{className:"md:w-2/3 md:pl-12",children:(0,s.jsxs)("div",{className:"rounded-md",children:["dynamic"===r&&j&&(0,s.jsxs)("div",{className:"w-full text-center py-8 text-red-500",children:["Error loading partners: ",j]}),"dynamic"===r&&v&&0===P.length&&(0,s.jsx)("div",{className:"grid grid-cols-4 gap-x-12 gap-y-12 max-lg:grid-cols-3 max-md:grid-cols-2 max-md:justify-items-center max-sm:grid-cols-1",children:Array.from({length:m}).map((e,t)=>(0,s.jsx)(x,{},"skeleton-".concat(t)))}),P&&P.length>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"grid grid-cols-4 gap-x-12 gap-y-12 max-lg:grid-cols-3 max-md:grid-cols-2 max-md:justify-items-center max-sm:grid-cols-1",children:[P.map((e,a)=>{let l="",n="#",i="Logo";if("dynamic"===r)l=e.featured_image||"",n="fr"===t?e.link_fr||e.link||"#":e.link||"#",i="fr"===t?e.title_fr||e.title||"Partner Logo":e.title||"Partner Logo";else{let r=e.hasOwnProperty("image")?e:e.acf||e;l=r.image||"",n="fr"===t?r.link_fr||r.link||"#":r.link||"#",i="Partner Logo"}return(0,s.jsx)("a",{href:n,className:"flex items-center justify-center w-[120px] h-[120px] p-[15px] transition-all duration-300 hover:scale-105",target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)(o.Z,{src:l,alt:i,width:200,height:100,className:"max-w-full max-h-full filter grayscale brightness-110 opacity-80 hover:grayscale-0 hover:brightness-100 hover:opacity-100 transition-all duration-300",sizes:"(max-width: 768px) 150px, 200px"})},"logo-".concat(r,"-").concat(a))}),"dynamic"===r&&v&&P.length>0&&(0,s.jsx)(s.Fragment,{children:Array.from({length:6}).map((e,t)=>(0,s.jsx)(x,{},"loading-skeleton-".concat(t)))})]}),"dynamic"===r&&h&&y&&(0,s.jsx)("div",{ref:b,className:"h-4 mt-8"}),"dynamic"===r&&!h&&(0,s.jsx)(d,{onClick:N,loading:v,hasMore:y,lang:t})]}):!v&&(0,s.jsx)("div",{className:"w-full text-center py-8 text-gray-500",children:"dynamic"===r?"No partners found":"No logos found"})]})})]})})})}},7964:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(3145),o=r(7562);t.default=e=>{let{lang:t,...r}=e,[c,x]=(0,a.useState)([]),[d,p]=(0,a.useState)([]),[m,f]=(0,a.useState)([]),[u,h]=(0,a.useState)("all"),[g,b]=(0,a.useState)(!0),[w,v]=(0,a.useState)(null),[j,y]=(0,a.useState)(15),N=(0,l.yP)(r,"title",t);(0,l.yP)(r,"background",t);let _=(0,n.i)("common","loading",t)||"Loading...",k=(0,n.i)("common","error",t)||"Error loading media",P=(0,n.i)("common","noResults",t)||"No media found",F=(0,n.i)("common","checkBack",t)||"Please check back later",C=(0,n.i)("common","loadMoreUpper",t)||"LOAD MORE",S=(0,n.i)("common","viewAll",t)||"VIEW ALL",D=e=>"fr"===t&&({"Byline articles":"Articles sign\xe9s","In the media":"Dans les m\xe9dias"})[e]||e;(0,a.useEffect)(()=>{!async function(){try{let[e,t]=await Promise.all([fetch("/api/media-centre"),fetch("/api/media-centre?endpoint=categories")]);if(!e.ok)throw Error("Media API Error (".concat(e.status,"): ").concat(e.statusText));if(!t.ok)throw Error("Categories API Error (".concat(t.status,"): ").concat(t.statusText));let r=await e.json(),s=await t.json();if(!Array.isArray(r))throw Error("Invalid media response format from API");if(!Array.isArray(s))throw Error("Invalid categories response format from API");x(r),p(r),f(s),v(null)}catch(e){console.error("Failed to load media data:",e),v(e instanceof Error?e.message:"Failed to load media data"),x([]),p([]),f([])}finally{b(!1)}}()},[]);let E=(e,r)=>{if("fr"===t){let t="".concat(r,"_fr");if(void 0!==e[t]&&null!==e[t]&&""!==e[t])return e[t]}return e[r]||""};(0,a.useEffect)(()=>{let e=c;"all"!==u&&(e=e.filter(e=>e.media_categories&&e.media_categories.some(e=>e.slug===u))),p(e),y(15)},[u,c]);let A=d.map(e=>({id:e.id,title:E(e,"title"),content:E(e,"content"),date:e.date,media_categories:e.media_categories||[],link:e.link||e.permalink||"#"})).sort((e,t)=>
1{let r=new Date("2025-06-16"),s=new Date(e.date),a=new Date(t.date),l=s>r,n=a>r;if(l&&n)return a.getTime()-s.getTime();if(l&&!n)return -1;if(!l&&n)return 1;let i=e.media_categories.some(e=>"in-the-media"===e.slug),o=t.media_categories.some(e=>"in-the-media"===e.slug);return i===o?a.getTime()-s.getTime():i&&!o?-1:!i&&o?1:a.getTime()-s.getTime()}),B=A.slice(0,j),L=A.length>j,M=e=>{h(e)},I=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:120,r=e.replace(/<[^>]*>/g,"");return r.length>t?r.substring(0,t).trim()+"...":r};return(0,s.jsx)("section",{id:"media-archive",className:"py-[40px] px-[20px] sm:py-[60px] sm:px-[30px] md:py-[96px] md:px-[40px] bg-[#F3F3F2]",children:(0,s.jsxs)("div",{className:"mx-auto max-w-[1256px]",children:[N&&(0,s.jsx)("div",{className:"text-center mb-[48px]",children:(0,s.jsx)("h2",{className:"font-header text-4xl sm:text-5xl md:text-6xl lg:text-[64px] font-light leading-[1.12] text-[#314F9D] uppercase",children:(0,o.ZP)(N)})}),(0,s.jsx)("div",{className:"flex justify-start items-start mb-[64px]",children:(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-[16px] max-w-[800px]",children:[(0,s.jsx)("button",{onClick:()=>M("all"),className:"flex flex-col justify-center items-center px-[16px] py-[8px] rounded-[8px] transition-all duration-300 ".concat("all"===u?"bg-[#23243B] text-[#63B3E4]":"border border-[#314F9D] bg-transparent text-[#314F9D] hover:bg-[#314F9D] hover:text-white"),children:(0,s.jsx)("span",{className:"font-barlow font-semibold text-[14px] leading-[17px] whitespace-nowrap uppercase",children:S})}),m.map(e=>(0,s.jsx)("button",{onClick:()=>M(e.slug),className:"flex flex-col justify-center items-center px-[16px] py-[8px] rounded-[8px] transition-all duration-300 ".concat(u===e.slug?"bg-[#23243B] text-[#63B3E4]":"border border-[#314F9D] bg-transparent text-[#314F9D] hover:bg-[#314F9D] hover:text-white"),children:(0,s.jsx)("span",{className:"font-barlow font-semibold text-[14px] leading-[17px] whitespace-nowrap",children:D(e.name)})},e.id))]})}),(0,s.jsx)("div",{className:"mb-[48px]",children:g?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("div",{className:"inline-block w-8 h-8 border-4 border-[#314F9D]/30 border-t-[#314F9D] rounded-full animate-spin"}),(0,s.jsx)("p",{className:"mt-2 text-[#314F9D]",children:_})]}):w?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#E53E3E]",children:k}),(0,s.jsx)("p",{className:"mb-4 text-[#38393A]",children:w})]}):B.length>0?(0,s.jsx)("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(min(250px,100%),320px))] lg:grid-cols-[repeat(auto-fit,minmax(min(250px,100%),392px))] gap-x-[20px] gap-y-[20px] sm:gap-x-[30px] sm:gap-y-[28px] md:gap-x-[40px] md:gap-y-[38px] justify-items-center justify-center",children:B.map(e=>(0,s.jsxs)("div",{className:"w-full min-h-[228px] h-auto bg-white border border-[#23243B] rounded-[8px] p-[16px] flex flex-col justify-between",children:[(0,s.jsx)("div",{className:"flex justify-start gap-[8px]",children:e.media_categories&&e.media_categories.length>0&&(0,s.jsx)(s.Fragment,{children:e.media_categories.slice(0,1).map((e,t)=>(0,s.jsx)("div",{className:"bg-[rgba(56,56,56,0.6)] backdrop-blur-[7.5px] rounded-[8px] px-[8px] py-[4px]",children:(0,s.jsx)("span",{className:"font-barlow font-semibold text-[14px] leading-[17px] text-white",children:D(e.name)})},"category-".concat(t)))})}),(0,s.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[(0,s.jsx)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",className:"font-nunito-sans font-extrabold text-[18px] leading-[20px] uppercase text-[#23243B] hover:opacity-80 transition-opacity duration-300",children:(0,o.ZP)(e.title)}),(0,s.jsx)("p",{className:"font-barlow font-normal text-[16px] leading-[24px] text-[#23243B]",children:I(e.content)})]})]},e.id))}):(0,s.jsxs)("div",{className:"text-center py-12",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#314F9D]",children:P}),(0,s.jsx)("p",{className:"opacity-80 text-[#38393A]",children:F})]})}),L&&!g&&!w&&(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsxs)("button",{onClick:()=>{y(e=>e+15)},className:"flex items-center justify-center gap-[8px] px-[16px] py-[8px] w-auto h-[39px] border border-[#23243B] rounded-[8px] bg-transparent hover:bg-[#23243B] hover:text-white transition-all duration-300 group",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B] group-hover:text-white",children:C}),(0,s.jsx)("div",{className:"flex items-center justify-center w-[20px] h-[20px]",children:(0,s.jsx)(i.default,{src:"/images/plus.svg",alt:"",width:20,height:20,className:"group-hover:filter group-hover:brightness-0 group-hover:invert"})})]})})]})})}},8751:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(3145),o=r(7562),c=r(9794);t.default=e=>{let{lang:t,...r}=e,[x,d]=(0,a.useState)([]),[p,m]=(0,a.useState)("all"),[f,u]=(0,a.useState)(""),[h,g]=(0,a.useState)(4),[b,w]=(0,a.useState)(!1),v=(0,l.yP)(r,"sign_up_title",t),j=(0,l.yP)(r,"sign_up_content",t),y=(0,l.yP)(r,"subscribe_button_text",t),N=(0,l.yP)(r,"subscribe_button_link",t),_=r.newsletters||[],k=(0,n.i)("common","loadMoreUpper",t)||"LOAD MORE",P=(0,n.i)("common","search",t)||"Search",F=(0,n.i)("common","view",t)||"View",C=y||("fr"===t?"
1Souscrire":"Subscribe"),S=e=>{if("fr"!==t)return e;let r=e;return Object.entries({January:"janvier",February:"f\xe9vrier",March:"mars",April:"avril",May:"mai",June:"juin",July:"juillet",August:"ao\xfbt",September:"septembre",October:"octobre",November:"novembre",December:"d\xe9cembre"}).forEach(e=>{let[t,s]=e;r=r.replace(t,s)}),r},D=e=>(0,l.yP)(e,"title",t)||e.title,E=e=>"fr"===t&&e.link_fr?e.link_fr:e.link,A=e=>{let t=e.split(" ");return t[t.length-1]||""},B=(0,a.useMemo)(()=>_&&0!==_.length?Array.from(new Set(_.map(e=>A(e.date)))).sort((e,t)=>parseInt(t)-parseInt(e)):[],[_]);(0,a.useEffect)(()=>{let e=_;f.trim()&&(e=e.filter(e=>{let t=D(e),r=S(e.date);return t.toLowerCase().includes(f.toLowerCase())||r.toLowerCase().includes(f.toLowerCase())||e.title.toLowerCase().includes(f.toLowerCase())||e.date.toLowerCase().includes(f.toLowerCase())})),"all"!==p&&(e=e.filter(e=>A(e.date)===p)),d(e),g(4)},[f,p,_]);let L=x.slice(0,h),M=x.length>h,I=e=>{m(e),w(!1)},O=N||("fr"===t?"/souscrire":"/subscribe"),R=(0,a.useMemo)(()=>"all"===p?(0,n.i)("common","filterByYear",t)||"FILTER BY YEAR":p,[p]);return(0,s.jsx)("section",{id:"newsletter-archive",className:"pt-[83px] px-[40px] pb-[115px] bg-[#F3F3F2]",children:(0,s.jsx)("div",{className:"mx-auto max-w-[1502px] relative",children:(0,s.jsxs)("div",{className:"flex items-start gap-[68px] lg:flex-nowrap lg:flex-row flex-col flex-wrap",children:[(0,s.jsx)("div",{className:"lg:w-[519px] w-full bg-[#314F9D] rounded-[8px] p-[40px_44px] flex flex-col gap-[28px] max-w-full",children:(0,s.jsxs)("div",{className:"flex flex-col gap-[24px]",children:[v&&(0,s.jsx)("h2",{className:"font-nunito-sans font-extrabold text-[24px] leading-[36px] uppercase text-white",children:(0,o.ZP)(v)}),(0,s.jsxs)("div",{className:"flex flex-col gap-[24px]",children:[j&&(0,s.jsx)("div",{className:"font-barlow font-normal text-[16px] leading-[24px] text-white",children:(0,o.ZP)(j)}),(0,s.jsx)("div",{className:"flex",children:(0,s.jsxs)(c.default,{href:O,"aria-label":"fr"===t?"S'abonner \xe0 l'infolettre":"Subscribe to newsletter",className:"group inline-flex items-center gap-[8px] px-[16px] py-[10px] rounded-[8px] bg-white text-[#314F9D] font-barlow font-semibold text-[14px] leading-[20px] hover:opacity-90 transition",children:[(0,s.jsx)("span",{children:C}),(0,s.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 14 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"transition-colors duration-300 text-[#314F9D] group-hover:text-[#F58720]","aria-hidden":"true",children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4746 6.50039C13.4746 6.14601 13.1873 5.85872 12.8329 5.85872H1.16628C0.811893 5.85872 0.524609 6.14601 0.524609 6.50039C0.524609 6.85477 0.811893 7.14206 1.16628 7.14206H12.8329C13.1873 7.14206 13.4746 6.85477 13.4746 6.50039Z",fill:"currentColor"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.54588 0.21333C6.2953 0.463917 6.2953 0.870198 6.54588 1.12078L11.9255 6.50039L6.54588 11.88C6.2953 12.1306 6.2953 12.5369 6.54588 12.7875C6.79647 13.038 7.20275 13.038 7.45334 12.7875L13.2867 6.95412C13.5373 6.70353 13.5373 6.29725 13.2867 6.04666L7.45334 0.21333C7.20275 -0.037256 6.79647 -0.037256 6.54588 0.21333Z",fill:"currentColor"})]})]})})]})]})}),(0,s.jsxs)("div",{className:"flex-1 lg:pl-[93px] w-[822px] lg:border-l lg:border-[#00000033] max-w-full",children:[(0,s.jsxs)("div",{className:"flex justify-between items-start mb-[36px] lg:flex-nowrap flex-wrap gap-[16px]",children:[(0,s.jsxs)("div",{className:"flex items-center gap-[8px] px-[16px] py-[8px] w-[205px] h-[34px] border border-[#314F9D] backdrop-blur-[7.5px] rounded-[8px]",children:[(0,s.jsx)("div",{className:"flex items-center justify-center w-[18px] h-[18px] min-w-[18px] min-h-[18px]",children:(0,s.jsx)(i.default,{src:"/images/search-navy.svg",alt:"Search",width:18,height:18})}),(0,s.jsx)("input",{type:"text",placeholder:P,value:f,onChange:e=>{u(e.target.value)},className:"flex-1 bg-transparent font-barlow font-semibold text-[14px] leading-[17px] text-[#314F9D] placeholder:text-[#314F9D] border-none outline-none"})]}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("button",{className:"flex items-center font-barlow font-semibold text-[14px] leading-[17px] text-[#314F9D] px-[16px] py-[8px] border border-[#314F9D] rounded-[8px] min-w-[145px] h-[34px]",onClick:()=>w(!b),children:(0,s.jsxs)("div",{className:"flex items-center justify-center w-full",children:[(0,s.jsx)("div",{className:"flex items-center justify-center w-[18px] h-[18px] mr-[8px] flex-shrink-0",children:(0,s.jsx)(i.default,{src:"/images/down.svg",alt:"Dropdown Arrow",width:10,height:6,className:"text-[#314F9D]"})}),(0,s.jsx)("span",{className:"truncate",children:R})]})}),b&&(0,s.jsx)("div",{className:"absolute right-0 mt-1 min-w-[160px] max-w-[200px] bg-white border border-[#314F9D] rounded shadow-lg z-10",children:(0,s.jsxs)("ul",{children:[(0,s.jsx)("li",{className:"px-4 py-2 hover:bg-gray-100 cursor-pointer border-b border-gray-200 font-barlow font-semibold text-[14px] leading-[17px] text-[#314F9D]",onClick:()=>I("all"),children:"fr"===t?"Toutes les ann\xe9es":"All Years"}),B.map(e=>(0,s.jsx)("li",{className:"px-4 py-2 hover:bg-gray-100 cursor-pointer font-barlow text-[14px] leading-[17px] ".concat(p===e?"font-semibold text-[#314F9D]":"font-normal text-[#23243B]"),onClick:()=>I(e),children:e},e))]})})]})]}),(0,s.jsx)("div",{className:"flex flex-col gap-[10px] mb-[48px]",children:L.length>0?L.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center justify-between px-[30px] py-[20px] bg-[rgba(218,217,214,0.3)] rounded-[10px]",children:[(0,s.jsxs)("div",{className:"flex items-center gap-[18px]",children:[(0,s.jsx)("div",{className:"flex items-center justify-center w-[24px] h-[16.62px] flex-shrink-0",children:(0,s.jsx)(i.default,{src:"/images/newspaper.svg",alt:"",width:24,height:16.62})}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("h3",{className:"font-header font-extrabold text-[18px] leading-[20px] uppercase text-[#23243B] tracking-[0.02em]",children:D(e)}),(0,s.jsx)("p",{className:"font-header text-[18px] leading-[20px] text-[#23243B] tracking-[0.02em]",children:S(e.date)})]})]}),(0,s.jsxs)("a",{href:E(e),target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-[8px] border-b border-[#23243B] pb-[12px] hover:opacity-80 transition-all duration-300 group",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B]",children:F}),(0,s.jsx)(i.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,className:"transition-transform duration-300 group-hover:translate-x-1"})]})]},t)):(0,s.jsxs)("div",{className:"text-center py-12",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#314F9D]",children:"No newsletters found"}),(0,s.jsx)("p",{className:"opacity-80 text-[#38393A]",children:(0,n.i)("common","tryAdjusting",t)||"Please try adjusting your search or filters"})]})}),M&&(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsxs)("button",{onClick:()=>{g(e=>e+4)},className:"flex items-center justify-center gap-[8px] px-[16px] py-[8px] w-auto h-[39px] border border-[#23243B] rounded-[8px] bg-transparent hover:bg-[#23243B] hover:text-white transition-all duration-300 group",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B] group-hover:text-white",children:k}),(0,s.jsx)("div",{className:"flex items-center justify-center w-[20px] h-[20px]",children:(0,s.jsx)(i.default,{src:"/images/plus.svg",alt:"",width:20,height:20,className:"group-hover:filter group-hover:brightness-0 group-hover:invert"})})]})})]})]})})})}},3205:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562);t.default=e=>{let{lang:t,...r}=e,[i,o]=(0,a.useState)(!1),[c,x]=(0,a.useState)(!1),[d]=(0,a.useState)(()=>"one-col-simple-".concat(Date.now(),"-").concat(Math.floor(1e4*Math.random()))),p=e=>{if(!e)return e;let t={},r=0,s=e.replace(/<script[^>]*>[\s\S]*?<\/script>/gi,e=>{let s="__SCRIPT_PLACEHOLDER_".concat(r,"__");return t[s]=e,r++,s});return s=s.replace(/<p>\s*(__SCRIPT_PLACEHOLDER_\d+__)\s*<\/p>/gi,"$1").replace(/<br\s*\/?>\s*(__SCRIPT_PLACEHOLDER_\d+__)/gi,"$1").replace(/(__SCRIPT_PLACEHOLDER_\d+__)\s*<br\s*\/?>/gi,"$1").replace(/(?:^|>|\s+)(hbspt\.forms\.create\s*\(\s*\{[^}]*\}\s*\)\s*;?)(?=\s|<|$)/gi,"").replace(/\s+/g," ").trim(),Object.keys(t).forEach(e
1=>{s=s.replace(e,t[e])}),s};if((0,a.useEffect)(()=>{o(!0);let e=p((0,l.yP)(r,"content",t)||"");e&&x(e.includes("<iframe")||e.includes("</iframe>")||e.includes("<div")||e.includes("<script")||e.includes("<style")||e.includes("<")||e.includes(">"))},[r,t]),(0,a.useEffect)(()=>{if(i&&c){let e=p((0,l.yP)(r,"content",t)||"");if(e){let t=document.querySelector("#".concat(d," .one-col-simple-wysiwyg-content"));if(t){let r;let s=/<script[^>]*src=["']([^"']+)["'][^>]*><\/script>/gi,a=[],l=[];for(;null!==(r=s.exec(e));){let e=r[1];a.push(e)}let n=/<script(?![^>]*src=)[^>]*>([\s\S]*?)<\/script>/gi;for(;null!==(r=n.exec(e));){let e=r[1].trim();e&&l.push(e)}if(l.some(e=>e.includes("hbspt.forms.create"))){let e=t.querySelector(".hbspt-form");e?e.id||(e.id="hbspt-form-".concat(d)):((e=document.createElement("div")).className="hbspt-form",e.id="hbspt-form-".concat(d),t.appendChild(e))}let i=async()=>{let e=a.map(e=>new Promise((t,r)=>{if(document.head.querySelector('script[src="'.concat(e,'"]'))){t();return}let s=document.createElement("script"),a=e;a.startsWith("//")&&(a="https:"+a),s.src=a,s.async=!0,s.charset="utf-8",s.type="text/javascript",s.onload=()=>{t()},s.onerror=t=>{r(Error("Failed to load script: ".concat(e)))},document.head.appendChild(s)}));try{await Promise.all(e);let r=async()=>{if(l.some(e=>e.includes("$(")||e.includes("jQuery(")||e.includes("ccdi_web_init")||e.includes("ccdi_web_data"))&&"function"==typeof window.ensureJQuery)try{await window.ensureJQuery()}catch(e){console.error("Failed to ensure jQuery:",e)}l.forEach((e,r)=>{try{let r=e;if(e.includes("hbspt.forms.create")){let s=t.querySelector(".hbspt-form");s&&s.id&&(r=e.replace(/hbspt\.forms\.create\s*\(\s*\{([^}]*)\}\s*\)/,(e,t)=>{let r='target: "#'.concat(s.id,'"');return t.trim()?"hbspt.forms.create({".concat(t,", ").concat(r,"})"):"hbspt.forms.create({".concat(r,"})")}))}Function(r)()}catch(e){console.error("Error executing inline script ".concat(r+1,":"),e)}})};setTimeout(()=>{r()},500)}catch(e){console.error("Error loading external scripts:",e),(async()=>{if(l.some(e=>e.includes("$(")||e.includes("jQuery(")||e.includes("ccdi_web_init")||e.includes("ccdi_web_data"))&&"function"==typeof window.ensureJQuery)try{await window.ensureJQuery()}catch(e){console.error("Failed to ensure jQuery for fallback:",e)}l.forEach((e,r)=>{try{let r=e;if(e.includes("hbspt.forms.create")){let s=t.querySelector(".hbspt-form");s&&s.id&&(r=e.replace(/hbspt\.forms\.create\s*\(\s*\{([^}]*)\}\s*\)/,(e,t)=>{let r='target: "#'.concat(s.id,'"');return t.trim()?"hbspt.forms.create({".concat(t,", ").concat(r,"})"):"hbspt.forms.create({".concat(r,"})")}))}Function(r)()}catch(e){console.error("Error executing fallback inline script ".concat(r+1,":"),e)}})})()}};a.length>0?i():l.length>0&&l.forEach((e,r)=>{try{let r=e;if(e.includes("hbspt.forms.create")){let s=t.querySelector(".hbspt-form");s&&s.id&&(r=e.replace(/hbspt\.forms\.create\s*\(\s*\{([^}]*)\}\s*\)/,(e,t)=>{let r='target: "#'.concat(s.id,'"');return t.trim()?"hbspt.forms.create({".concat(t,", ").concat(r,"})"):"hbspt.forms.create({".concat(r,"})")}))}Function(r)()}catch(e){console.error("Error executing immediate inline script ".concat(r+1,":"),e)}})}}}},[i,c,r,t]),!i)return null;let m=p((0,l.yP)(r,"content",t)||""),f=r.background||"#F3F3F2";return(0,s.jsx)("section",{id:d,className:"py-[70px] px-[40px]",style:{backgroundColor:f},children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1024px]",children:(0,s.jsx)("div",{className:"flex flex-col items-center w-full",children:m&&(0,s.jsx)("div",{className:"w-full",children:c?(0,s.jsx)("div",{className:"one-col-simple-wysiwyg-content font-sans font-normal text-[16px] leading-[24px] text-[#424242] [&_h2]:font-header [&_h2]:text-[28px] [&_h2]:sm:text-[32px] [&_h2]:md:text-[36px] [&_h2]:lg:text-[36px] [&_h2]:font-light [&_h2]:leading-[1.1] [&_h2]:text-[#314F9D] [&_h2]:uppercase [&_h2]:mb-[24px] [&_h2]:mt-[32px] [&_h2]:first:mt-0 [&_h2]:border-l-4 [&_h2]:border-[#F58720] [&_h2]:pl-[16px] [&_h2]:bg-gradient-to-r [&_h2]:from-[#F58720]/10 [&_h2]:to-transparent [&_h2]:py-[8px] [&_h2]:rounded-r-[4px] [&_h3]:font-header [&_h3]:text-[24px] [&_h3]:sm:text-[28px] [&_h3]:md:text-[32px] [&_h3]:font-light [&_h3]:leading-[1.2] [&_h3]:text-[#314F9D] [&_h3]:uppercase [&_h3]:mb-[16px] [&_h3]:mt-[24px] [&_h3]:first:mt-0 [&_h2_strong]:font-bold [&_h2_strong]:text-[#23243B] [&_h2_strong]:tracking-[0.02em] [&_h2_b]:font-bold [&_h2_b]:text-[#23243B] [&_h2_b]:tracking-[0.02em] [&_h3_strong]:font-bold [&_h3_strong]:text-[#23243B] [&_h3_strong]:tracking-[0.01em] [&_h3_b]:font-bold [&_h3_b]:text-[#23243B] [&_h3_b]:tracking-[0.01em]",dangerouslySetInnerHTML:{__html:m}}):(0,s.jsx)("div",{className:"one-col-simple-content font-sans font-normal text-[16px] leading-[24px] text-[#424242] [&_h2]:font-header [&_h2]:text-[28px] [&_h2]:sm:text-[32px] [&_h2]:md:text-[36px] [&_h2]:lg:text-[36px] [&_h2]:font-light [&_h2]:leading-[1.1] [&_h2]:text-[#314F9D] [&_h2]:uppercase [&_h2]:mb-[24px] [&_h2]:mt-[32px] [&_h2]:first:mt-0 [&_h2]:border-l-4 [&_h2]:border-[#F58720] [&_h2]:pl-[16px] [&_h2]:bg-gradient-to-r [&_h2]:from-[#F58720]/10 [&_h2]:to-transparent [&_h2]:py-[8px] [&_h2]:rounded-r-[4px] [&_h3]:font-header [&_h3]:text-[24px] [&_h3]:sm:text-[28px] [&_h3]:md:text-[32px] [&_h3]:font-light [&_h3]:leading-[1.2] [&_h3]:text-[#314F9D] [&_h3]:uppercase [&_h3]:mb-[16px] [&_h3]:mt-[24px] [&_h3]:first:mt-0 [&_h2_strong]:font-bold [&_h2_strong]:text-[#23243B] [&_h2_strong]:tracking-[0.02em] [&_h2_b]:font-bold [&_h2_b]:text-[#23243B] [&_h2_b]:tracking-[0.02em] [&_h3_strong]:font-bold [&_h3_strong]:text-[#23243B] [&_h3_strong]:tracking-[0.01em] [&_h3_b]:font-bold [&_h3_b]:text-[#23243B] [&_h3_b]:tracking-[0.01em]",children:(0,n.ZP)(m)})})})})})}},3011:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(2534),n=r(3145),i=r(7562),o=r(9376);t.default=e=>{let{lang:t,...r}=e,[c,x]=(0,a.useState)([]),[d,p]=(0,a.useState)(!0),[m,f]=(0,a.useState)(null),[u,h]=(0,a.useState)(""),[g,b]=(0,a.useState)(!1),[w,v]=(0,a.useState)(5),[j,y]=(0,a.useState)(null),[N,_]=(0,a.useState)(!1),[k,P]=(0,a.useState)(!1),F=(0,o.useSearchParams)(),C=(0,a.useRef)(null),S=(0,l.i)("common","loading",t)||"Loading...",D=(0,l.i)("common","error",t)||"Error loading podcasts",E=(0,l.i)("podcasts","noPodcasts",t)||"No podcasts found",A=(0,l.i)("podcasts","checkBack",t)||"Please check back later",B=(0,l.i)("common","loadMore",t)||"Load more",L="fr"===t?"Toutes les saisons":"All Seasons",M="fr"===t?"\xc9PISODES":"EPISODES";(0,a.useEffect)(()=>{let e=F.get("highlight");if(e){let t=parseInt(e,10);!isNaN(t)&&t>0&&(y(t),v(20))}},[F]),(0,a.useEffect)(()=>{(async function(){try{let e=await fetch("/api/podcasts");if(!e.ok)throw Error("Podcasts API Error (".concat(e.status,"): ").concat(e.statusText));let r=await e.json();if(!Array.isArray(r))throw Error("Invalid podcasts response format from API");let s="fr"===t?"FR":"EN",a=r.filter(e=>e.designation===s&&!1===e.archive);x(a),f(null)}catch(e){console.error("Failed to load podcasts data:",e),f(e instanceof Error?e.message:"Failed to load podcasts data"),x([])}finally{p(!1)}})()},[t]);let I=(0,a.useMemo)(()=>c&&0!==c.length?Array.from(new Set(c.map(e=>{let r=e.title.match(/(Season|Saison)\s+(\d+)/i);if(r){let e=r[2];
1return"fr"===t?"Saison ".concat(e):"Season ".concat(e)}return null}).filter(Boolean))).sort((e,t)=>{let r=parseInt(e.replace(/(Season|Saison)\s+/i,""));return parseInt(t.replace(/(Season|Saison)\s+/i,""))-r}):[],[c,t]),O=(0,a.useMemo)(()=>{if(!u)return c;let e=u.match(/(Season|Saison)\s+(\d+)/i);if(e){let t=e[2];return c.filter(e=>e.title.match(RegExp("(Season|Saison)\\s+".concat(t),"i")))}return c.filter(e=>e.title.toLowerCase().includes(u.toLowerCase()))},[c,u]),R=(0,a.useMemo)(()=>{let e=w;if(j){let t=O.findIndex(e=>e.id===j);t>=0&&(e=Math.max(e,t+1))}return O.slice(0,e)},[O,w,j]),Z=O.length>R.length;(0,a.useEffect)(()=>{v(5)},[u]),(0,a.useEffect)(()=>{F.get("highlight")||(y(null),_(!1),P(!1))},[F]);let T=(0,a.useCallback)(()=>{if(!j||N||!C.current)return!1;let e=C.current.getBoundingClientRect().top+window.pageYOffset-120;return console.log("Scrolling to highlighted podcast:",j,"at position:",e),window.scrollTo({top:e,behavior:"smooth"}),_(!0),!0},[j,N]);(0,a.useEffect)(()=>{if(C.current&&j&&!N){let e=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&(P(!0),requestAnimationFrame(()=>{T()}),e.disconnect())})},{threshold:.1});return e.observe(C.current),()=>e.disconnect()}},[j,N,T]),(0,a.useEffect)(()=>{if(!d&&!m&&j&&!N&&c.length>0){let e=0,t=()=>{e++,!(C.current&&T())&&(e<5?requestAnimationFrame(()=>{setTimeout(t,50*e)}):(console.warn("Final fallback scroll attempt for podcast:",j),C.current&&T()))},r=setTimeout(t,100);return()=>clearTimeout(r)}},[d,m,j,N,c,T]),(0,a.useEffect)(()=>{if(!d&&!m&&j&&!N&&R.length>0&&R.some(e=>e.id===j)){let e=setTimeout(()=>{N||T()},200);return()=>clearTimeout(e)}},[d,m,j,N,R,T]);let z=u||L;return(0,s.jsx)("section",{id:"podcast-archive-section",className:"py-[96px] px-[40px] bg-[#F3F3F2] flex justify-center items-center",children:(0,s.jsxs)("div",{className:"w-full max-w-[1327px] min-h-0 bg-white rounded-[8px] p-[40px] flex flex-col justify-end gap-[64px]",children:[(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row lg:justify-between lg:items-start gap-[24px] lg:gap-0 w-full max-w-[1247px] mx-auto",children:[(0,s.jsx)("h2",{className:"font-header font-extrabold text-[28px] lg:text-[36px] leading-[30px] lg:leading-[38px] uppercase text-[#23243B]",children:M}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)("button",{className:"flex items-center justify-center px-[16px] py-[8px] gap-[8px] w-auto h-[34px] border border-[#314F9D] rounded-[8px] backdrop-blur-[7.5px] hover:bg-gray-100 transition-all duration-300",onClick:()=>b(!g),children:[(0,s.jsx)("div",{className:"flex items-center justify-center w-[18px] h-[18px]",children:(0,s.jsx)(n.default,{src:"/images/down.svg",alt:"Dropdown Arrow",width:10,height:6,className:"text-[#314F9D]"})}),(0,s.jsx)("span",{className:"font-sans font-semibold text-[14px] leading-[17px] text-[#314F9D] truncate",children:z})]}),g&&(0,s.jsx)("div",{className:"absolute right-0 mt-1 min-w-[150px] bg-white border border-[#314F9D] rounded shadow-lg z-10",children:(0,s.jsxs)("ul",{children:[(0,s.jsx)("li",{className:"px-4 py-2 hover:bg-gray-100 cursor-pointer border-b border-gray-200",onClick:()=>{h(""),b(!1)},children:(0,s.jsx)("span",{className:"font-sans font-semibold text-[14px] leading-[17px] text-[#314F9D]",children:L})}),I.map(e=>(0,s.jsx)("li",{className:"px-4 py-2 hover:bg-gray-100 cursor-pointer",onClick:()=>{h(e),b(!1)},children:(0,s.jsx)("span",{className:"font-sans text-[14px] leading-[17px] ".concat(u===e?"font-semibold text-[#314F9D]":"font-normal text-[#23243B]"),children:e})},e))]})})]})]}),(0,s.jsx)("div",{className:"w-full max-w-[1256px] mx-auto",children:d?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("div",{className:"inline-block w-8 h-8 border-4 border-[#314F9D]/30 border-t-[#314F9D] rounded-full animate-spin"}),(0,s.jsx)("p",{className:"mt-2 text-[#314F9D]",children:S})]}):m?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#E53E3E]",children:D}),(0,s.jsx)("p",{className:"mb-4 text-[#38393A]",children:m})]}):R.length>0?(0,s.jsx)("div",{className:"flex flex-col gap-[16px]",children:R.map(e=>{let r=j===e.id;return(0,s.jsxs)("div",{ref:r?C:null,className:"w-full flex flex-col border-b border-gray-200 last:border-b-0 pb-[16px] last:pb-0 transition-all duration-500 ".concat(r?"bg-[#314F9D]/5 border-l-4 border-l-[#314F9D] pl-4 rounded-r-lg shadow-md":""),children:[(0,s.jsx)("h3",{className:"font-header font-extrabold text-[12px] lg:text-[14px] leading-[18px] lg:leading-[20px] mb-[16px] ".concat(r?"text-[#314F9D]":"text-[#23243B]"),children:(0,i.ZP)(e.title)}
1),(0,s.jsx)("div",{className:"font-sans text-[14px] lg:text-[16px] leading-[20px] lg:leading-[24px] overflow-hidden ".concat(r?"text-[#314F9D]":"text-[#23243B]"),children:(0,i.ZP)(e.content)}),r&&(0,s.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,s.jsx)("div",{className:"w-2 h-2 bg-[#314F9D] rounded-full animate-pulse"}),(0,s.jsx)("span",{className:"text-xs font-semibold text-[#314F9D]",children:"fr"===t?"Podcast mis en \xe9vidence":"Highlighted Podcast"})]})]},e.id)})}):(0,s.jsxs)("div",{className:"text-center py-12",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#314F9D]",children:E}),(0,s.jsx)("p",{className:"opacity-80 text-[#38393A]",children:A})]})}),Z&&!d&&!m&&(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsxs)("button",{onClick:()=>{v(e=>e+5)},className:"flex items-center justify-center gap-[8px] px-[16px] py-[8px] w-auto h-[39px] border border-[#23243B] rounded-[8px] hover:bg-[#23243B] hover:text-white transition-all duration-300 group",children:[(0,s.jsx)("span",{className:"font-sans font-semibold text-[16px] leading-[23px] text-[#23243B] group-hover:text-white",children:B}),(0,s.jsx)("div",{className:"flex items-center justify-center w-[20px] h-[20px]",children:(0,s.jsx)(n.default,{src:"/images/plus.svg",alt:"",width:20,height:20,className:"group-hover:filter group-hover:brightness-0 group-hover:invert"})})]})})]})})}},3583:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(2534),n=r(3145),i=r(7562),o=r(9376);t.default=e=>{let{lang:t,...r}=e,[c,x]=(0,a.useState)([]),[d,p]=(0,a.useState)(!0),[m,f]=(0,a.useState)(null),[u,h]=(0,a.useState)(""),[g,b]=(0,a.useState)(!1),[w,v]=(0,a.useState)(5),[j,y]=(0,a.useState)(null),[N,_]=(0,a.useState)(!1),[k,P]=(0,a.useState)(!1),F=(0,o.useSearchParams)(),C=(0,a.useRef)(null),S=(0,l.i)("common","loading",t)||"Loading...",D=(0,l.i)("common","error",t)||"Error loading podcasts",E=(0,l.i)("podcasts","noPodcasts",t)||"No podcasts found",A=(0,l.i)("podcasts","checkBack",t)||"Please check back later",B=(0,l.i)("common","loadMore",t)||"Load more",L="fr"===t?"Toutes les saisons":"All Seasons",M="fr"===t?" PISODES":"EPISODES";(0,a.useEffect)(()=>{let e=F.get("highlight");if(e){let t=parseInt(e,10);!isNaN(t)&&t>0&&(y(t),v(20))}},[F]),(0,a.useEffect)(()=>{(async function(){try{let e=await fetch("/api/podcasts");if(!e.ok)throw Error("Podcasts API Error (".concat(e.status,"): ").concat(e.statusText));let r=await e.json();if(!Array.isArray(r))throw Error("Invalid podcasts response format from API");let s="fr"===t?"FR":"EN",a=r.filter(e=>e.designation===s&&!0===e.archive);x(a),f(null)}catch(e){console.error("Failed to load podcasts data:",e),f(e instanceof Error?e.message:"Failed to load podcasts data"),x([])}finally{p(!1)}})()},[t]);let I=(0,a.useMemo)(()=>c&&0!==c.length?Array.from(new Set(c.map(e=>{let r=e.title.match(/(Season|Saison)\s+(\d+)/i);if(r){let e=r[2];return"fr"===t?"Saison ".concat(e):"Season ".concat(e)}return null}).filter(Boolean))).sort((e,t)=>{let r=parseInt(e.replace(/(Season|Saison)\s+/i,""));return parseInt(t.replace(/(Season|Saison)\s+/i,""))-r}):[],[c,t]),O=(0,a.useMemo)(()=>{if(!u)return c;let e=u.match(/(Season|Saison)\s+(\d+)/i);if(e){let t=e[2];return c.filter(e=>e.title.match(RegExp("(Season|Saison)\\s+".concat(t),"i")))}return c.filter(e=>e.title.toLowerCase().includes(u.toLowerCase()))},[c,u]),R=(0,a.useMemo)(()=>{let e=w;if(j){let t=O.findIndex(e=>e.id===j);t>=0&&(e=Math.max(e,t+1))}return O.slice(0,e)},[O,w,j]),Z=O.length>R.length;(0,a.useEffect)(()=>{v(5)},[u]),(0,a.useEffect)(()=>{F.get("highlight")||(y(null),_(!1),P(!1))},[F]);let T=(0,a.useCallback)(()=>{if(!j||N||!C.current)return!1;let e=C.current.getBoundingClientRect().top+window.pageYOffset-120;return console.log("Scrolling to highlighted podcast:",j,"at position:",e),window.scrollTo({top:e,behavior:"smooth"}),_(!0),!0},[j,N]);(0,a.useEffect)(()=>{if(C.current&&j&&!N){let e=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&(P(!0),requestAnimationFrame(()=>{T()}),e.disconnect())})},{threshold:.1});return e.observe(C.current),()=>e.disconnect()}},[j,N,T]),(0,a.useEffect)(()=>
1{if(!d&&!m&&j&&!N&&c.length>0){let e=0,t=()=>{e++,!(C.current&&T())&&(e<5?requestAnimationFrame(()=>{setTimeout(t,50*e)}):(console.warn("Final fallback scroll attempt for podcast:",j),C.current&&T()))},r=setTimeout(t,100);return()=>clearTimeout(r)}},[d,m,j,N,c,T]),(0,a.useEffect)(()=>{if(!d&&!m&&j&&!N&&R.length>0&&R.some(e=>e.id===j)){let e=setTimeout(()=>{N||T()},200);return()=>clearTimeout(e)}},[d,m,j,N,R,T]);let z=u||L;return(0,s.jsx)("section",{id:"podcast-archive-section",className:"py-[96px] px-[40px] bg-[#F3F3F2] flex justify-center items-center",children:(0,s.jsxs)("div",{className:"w-full max-w-[1327px] min-h-0 bg-white rounded-[8px] p-[40px] flex flex-col justify-end gap-[64px]",children:[(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row lg:justify-between lg:items-start gap-[24px] lg:gap-0 w-full max-w-[1247px] mx-auto",children:[(0,s.jsx)("h2",{className:"font-header font-extrabold text-[28px] lg:text-[36px] leading-[30px] lg:leading-[38px] uppercase text-[#23243B]",children:M}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)("button",{className:"flex items-center justify-center px-[16px] py-[8px] gap-[8px] w-auto h-[34px] border border-[#314F9D] rounded-[8px] backdrop-blur-[7.5px] hover:bg-gray-100 transition-all duration-300",onClick:()=>b(!g),children:[(0,s.jsx)("div",{className:"flex items-center justify-center w-[18px] h-[18px]",children:(0,s.jsx)(n.default,{src:"/images/down.svg",alt:"Dropdown Arrow",width:10,height:6,className:"text-[#314F9D]"})}),(0,s.jsx)("span",{className:"font-sans font-semibold text-[14px] leading-[17px] text-[#314F9D] truncate",children:z})]}),g&&(0,s.jsx)("div",{className:"absolute right-0 mt-1 min-w-[150px] bg-white border border-[#314F9D] rounded shadow-lg z-10",children:(0,s.jsxs)("ul",{children:[(0,s.jsx)("li",{className:"px-4 py-2 hover:bg-gray-100 cursor-pointer border-b border-gray-200",onClick:()=>{h(""),b(!1)},children:(0,s.jsx)("span",{className:"font-sans font-semibold text-[14px] leading-[17px] text-[#314F9D]",children:L})}),I.map(e=>(0,s.jsx)("li",{className:"px-4 py-2 hover:bg-gray-100 cursor-pointer",onClick:()=>{h(e),b(!1)},children:(0,s.jsx)("span",{className:"font-sans text-[14px] leading-[17px] ".concat(u===e?"font-semibold text-[#314F9D]":"font-normal text-[#23243B]"),children:e})},e))]})})]})]}),(0,s.jsx)("div",{className:"w-full max-w-[1256px] mx-auto",children:d?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("div",{className:"inline-block w-8 h-8 border-4 border-[#314F9D]/30 border-t-[#314F9D] rounded-full animate-spin"}),(0,s.jsx)("p",{className:"mt-2 text-[#314F9D]",children:S})]}):m?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#E53E3E]",children:D}),(0,s.jsx)("p",{className:"mb-4 text-[#38393A]",children:m})]}):R.length>0?(0,s.jsx)("div",{className:"flex flex-col gap-[16px]",children:R.map(e=>{let r=j===e.id;return(0,s.jsxs)("div",{ref:r?C:null,className:"w-full flex flex-col border-b border-gray-200 last:border-b-0 pb-[16px] last:pb-0 transition-all duration-500 ".concat(r?"bg-[#314F9D]/5 border-l-4 border-l-[#314F9D] pl-4 rounded-r-lg shadow-md":""),children:[(0,s.jsx)("h3",{className:"font-header font-extrabold text-[12px] lg:text-[14px] leading-[18px] lg:leading-[20px] mb-[16px] ".concat(r?"text-[#314F9D]":"text-[#23243B]"),children:(0,i.ZP)(e.title)}),(0,s.jsx)("div",{className:"font-sans text-[14px] lg:text-[16px] leading-[20px] lg:leading-[24px] overflow-hidden ".concat(r?"text-[#314F9D]":"text-[#23243B]"),children:(0,i.ZP)(e.content)}),r&&(0,s.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,s.jsx)("div",{className:"w-2 h-2 bg-[#314F9D] rounded-full animate-pulse"}),(0,s.jsx)("span",{className:"text-xs font-semibold text-[#314F9D]",children:"fr"===t?"Podcast mis en vidence":"Highlighted Podcast"})]})]},e.id)})}):(0,s.jsxs)("div",{className:"text-center py-12",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#314F9D]",children:E}),(0,s.jsx)("p",{className:"opacity-80 text-[#38393A]",children:A})]})}),Z&&!d&&!m&&(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsxs)("button",{onClick:()=>{v(e=>e+5)},className:"flex items-center justify-center gap-[8px] px-[16px] py-[8px] w-auto h-[39px] border border-[#23243B] rounded-[8px] hover:bg-[#23243B] hover:text-white transition-all duration-300 group",children:[(0,s.jsx)("span",{className:"font-sans font-semibold text-[16px] leading-[23px] text-[#23243B] group-hover:text-white",children:B}),(0,s.jsx)("div",{className:"flex items-center justify-center w-[20px] h-[20px]",children:(0,s.jsx)(n.default,{src:"/images/plus.svg",alt:"",width:20,height:20,className:"group-hover:filter group-hover:brightness-0 group-hover:invert"})})]})})]})})}},4551:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562),i=r(1632);t.default=e=>{let{lang:t,...r}=e,[o,c]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{c(!0)},[]),!o)return null;let x=(0,l.yP)(r,"title",t),d=[];if(Array.isArray(r.subscriptions))d=r.subscriptions;else if("fr"===t&&Array.isArray(r.subscriptions_fr))d=r.subscriptions_fr;else if("object"==typeof r.subscriptions&&null!==r.subscriptions)Array.isArray(r.subscriptions.subscriptions)&&(d=r.subscriptions.subscriptions);else if("string"==typeof r.subscriptions)try{let e=JSON.parse(r.subscriptions);Array.isArray(e)&&(d=e)}catch(e){console.error("Failed to parse subscriptions JSON:",e)}return(0,s.jsx)("section",{id:"podcast-subscribe-section",className:"px-[40px] py-0 pt-[40px] pb-[24px]",children:(0,s.jsxs)("div",{className:"mx-auto max-w-[1600px]",children:[x&&(0,s.jsx)("div",{className:"mb-[24px]",children:(0,s.jsx)("div",{className:"w-full max-w-[1600px] mx-auto",children:(0,s.jsx)("h3",{className:"font-header font-extrabold text-[32px] leading-[36px] uppercase text-[#23243B] w-full",children:(0,n.ZP)(x)})})}),d&&d.length>0&&(0,s.jsx)("div",{className:"relative w-full max-w-[1600px] mx-auto",children:(0,s.jsxs)("div",{className:"relative w-full min-h-[75px]",children:[(0,s.jsx)("div",{className:"absolute inset-0 z-10 pointer-events-none"}),(0,s.jsx)("div",{className:"flex flex-wrap items-center justify-around ga
1p-y-[24px] gap-x-[24px] min-h-[75px] py-2",children:d.map((e,t)=>{let r=e.hasOwnProperty("image")?e:e.acf||e,a=r.image||"",l=r.link||"#";return a?(0,s.jsx)("a",{href:l,className:"flex items-center justify-center h-[75px] flex-shrink-0",target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)(i.Z,{src:a,alt:"Podcast Subscription Platform",width:75,height:75,className:"min-h-[75px] max-w-[150px] w-auto h-auto object-contain hover:opacity-80 transition-opacity duration-300",sizes:"(max-width: 768px) 75px, 75px"})},"subscription-".concat(t)):null})})]})})]})})}},2175:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(3145),o=r(9794),c=r(7562);t.default=e=>{let{lang:t,...r}=e,[x,d]=(0,a.useState)([]),[p,m]=(0,a.useState)(!0),[f,u]=(0,a.useState)(null),[h,g]=(0,a.useState)(""),[b,w]=(0,a.useState)(!1),[v,j]=(0,a.useState)(4),y=(0,n.i)("common","loading",t)||"Loading...",N=(0,n.i)("common","error",t)||"Error loading podcasts",_=(0,n.i)("podcasts","noPodcasts",t)||"No podcasts found",k=(0,n.i)("podcasts","checkBack",t)||"Please check back later",P=(0,n.i)("common","seeAll",t)||"SEE ALL",F=(0,n.i)("common","loadMore",t)||"Load more",C=(0,n.i)("common","allSeasons",t)||"All Seasons",S=(0,l.yP)(r,"title",t)||"Podcasts";(0,a.useEffect)(()=>{!async function(){try{let e=await fetch("/api/podcasts");if(!e.ok)throw Error("Podcasts API Error (".concat(e.status,"): ").concat(e.statusText));let r=await e.json();if(!Array.isArray(r))throw Error("Invalid podcasts response format from API");let s="fr"===t?"FR":"EN",a=r.filter(e=>e.designation===s&&!1===e.archive);d(a),u(null)}catch(e){console.error("Failed to load podcasts data:",e),u(e instanceof Error?e.message:"Failed to load podcasts data"),d([])}finally{m(!1)}}()},[t]);let D=(0,a.useMemo)(()=>x&&0!==x.length?Array.from(new Set(x.map(e=>{let r=e.title.match(/(Season|Saison)\s+(\d+)/i);if(r){let e=r[2];return"fr"===t?"Saison ".concat(e):"Season ".concat(e)}return null}).filter(Boolean))).sort((e,t)=>{let r=parseInt(e.replace(/(Season|Saison)\s+/i,""));return parseInt(t.replace(/(Season|Saison)\s+/i,""))-r}):[],[x,t]),E=(0,a.useMemo)(()=>{if(!h)return x;let e=h.match(/(Season|Saison)\s+(\d+)/i);if(e){let t=e[2];return x.filter(e=>e.title.match(RegExp("(Season|Saison)\\s+".concat(t),"i")))}return x.filter(e=>e.title.toLowerCase().includes(h.toLowerCase()))},[x,h]),A=E.slice(0,v),B=E.length>v;(0,a.useEffect)(()=>{j(4)},[h]);let L=h||C;return(0,s.jsx)("section",{id:"podcasts-section",className:"py-[96px] px-[40px] lg:px-[40px] bg-[#DAD9D6] flex justify-center items-center",children:(0,s.jsxs)("div",{className:"w-full max-w-[1335px] min-h-[540px] bg-white rounded-[8px] p-[20px] lg:py-[40px] flex flex-col justify-end gap-[48px]",children:[(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row lg:justify-between lg:items-start gap-[24px] lg:gap-0 w-full max-w-[1255px] mx-auto",children:[(0,s.jsx)("h2",{className:"font-nunito-sans font-extrabold text-[28px] lg:text-[36px] leading-[30px] lg:leading-[38px] uppercase text-[#23243B]",children:(0,c.ZP)(S)}),(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-end gap-[16px] lg:gap-[24px]",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)("button",{className:"flex items-center justify-center px-[16px] py-[8px] gap-[8px] w-auto h-[34px] border border-[#314F9D] rounded-[8px] backdrop-blur-[7.5px] hover:bg-gray-100 transition-all duration-300",onClick:()=>w(!b),children:[(0,s.jsx)("div",{className:"flex items-center justify-center w-[18px] h-[18px]",children:(0,s.jsx)(i.default,{src:"/images/down.svg",alt:"Dropdown Arrow",width:10,height:6,className:"text-[#314F9D]"})}),(0,s.jsx)("span",{className:"font-barlow font-semibold text-[14px] leading-[17px] text-[#314F9D] truncate",children:L})]}),b&&(0,s.jsx)("div",{className:"absolute right-0 mt-1 min-w-[150px] bg-white border border-[#314F9D] rounded shadow-lg z-10",children:(0,s.jsxs)("ul",{children:[(0,s.jsx)("li",{className:"px-4 py-2 hover:bg-gray-100 cursor-pointer border-b border-gray-200",onClick:()=>{g(""),w(!1)},children:(0,s.jsx)("span",{className:"font-barlow font-semibold text-[14px] leading-[17px] text-[#314F9D]",children:C})}),D.map(e=>(0,s.jsx)("li",{className:"px-4 py-2 hover:bg-gray-100 cursor-pointer",onClick:()=>{g(e),w(!1)},children:(0,s.jsx)("span",{className:"font-barlow text-[14px] leading-[17px] ".concat(h===e?"font-semibold text-[#314F9D]":"font-normal text-[#23243B]"),children:e})},e))]})})]}),(0,s.jsxs)(o.default,{href:"/podcast",className:"flex items-center gap-[8px] border-b border-[#23243B] hover:opacity-80 transition-opacity duration-300 w-fit lg:w-auto h-[47px] justify-center",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B] w-auto",children:P}),(0,s.jsx)("div",{className:"flex items-center justify-center w-[20px] h-[20px]",children:(0,s.jsx)(i.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13})})]})]})]}),(0,s.jsx)("div",{className:"w-full max-w-[1296px] mx-auto",children:p?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("div",{className:"inline-block w-8 h-8 border-4 border-[#314F9D]/30 border-t-[#314F9D] rounded-full animate-spin"}),(0,s.jsx)("p",{className:"mt-2 text-[#314F9D]",children:y})]}):f?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#E53E3E]",children:N}),(0,s.jsx)("p",{className:"mb-4 text-[#38393A]",children:f})]}):A.length>0?(0,s.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-x-[20px] lg:gap-x-[40px] gap-y-[16px]",children:A.map(e=>(0,s.jsxs)("div",{className:"w-full lg:w-[628px] h-auto lg:h-[278px] flex flex-col max-w-full",children:[(0,s.jsx)("h3",{className:"font-nunito-sans font-extrabold text-[12px] lg:text-[14px] leading-[18px] lg:leading-[20px] text-[#23243B] mb-[16px]",children:(0,c.ZP)(e.title)}),(0,s.jsx)("div",{className:"flex-1 font-barlow text-[14px] lg:text-[16
1px] leading-[20px] lg:leading-[24px] text-[#23243B] overflow-hidden pr-[20px] mt-auto",children:(0,c.ZP)(e.content)})]},e.id))}):(0,s.jsxs)("div",{className:"text-center py-12",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#314F9D]",children:_}),(0,s.jsx)("p",{className:"opacity-80 text-[#38393A]",children:k})]})}),B&&!p&&!f&&(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsxs)("button",{onClick:()=>{j(e=>e+4)},className:"flex items-center justify-center gap-[8px] px-[16px] py-[8px] w-auto h-[39px] border border-[#23243B] rounded-[8px] hover:bg-[#23243B] hover:text-white transition-all duration-300 group",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B] group-hover:text-white",children:F}),(0,s.jsx)("div",{className:"flex items-center justify-center w-[20px] h-[20px]",children:(0,s.jsx)(i.default,{src:"/images/plus.svg",alt:"",width:20,height:20,className:"group-hover:filter group-hover:brightness-0 group-hover:invert"})})]})})]})})}},7748:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(2534),n=r(3145),i=r(7562);t.default=e=>{let{lang:t,...r}=e,[o,c]=(0,a.useState)([]),[x,d]=(0,a.useState)([]),[p,m]=(0,a.useState)(!0),[f,u]=(0,a.useState)(null),[h,g]=(0,a.useState)(""),[b,w]=(0,a.useState)([]),[v,j]=(0,a.useState)(9),y=["#314F9D","#63B3E4","#F58720","#B93C95"];(0,a.useEffect)(()=>{!async function(){try{let e=await fetch("/api/events");if(!e.ok)throw Error("HTTP error! Status: ".concat(e.status));let t=await e.json(),r=Array.isArray(t)?t.filter(e=>!!(e.categories&&Array.isArray(e.categories)&&e.categories.some(e=>e&&e.name?e.name.toLowerCase().includes("press-release")||e.name.toLowerCase().includes("press release"):!!e&&!!e.slug&&(e.slug.toLowerCase().includes("press-release")||e.slug.toLowerCase().includes("press_release")))||e.title&&e.title.toLowerCase().includes("press release"))):[];c(r);let s=new Map;r.forEach(e=>{e.categories&&Array.isArray(e.categories)&&e.categories.forEach(e=>{s.has(e.slug)||s.set(e.slug,{id:e.id,slug:e.slug,name:e.name,name_fr:e.name_fr||e.name,color:e.color||y[s.size%y.length]})})}),d(Array.from(s.values())),u(null)}catch(e){console.error("Failed to load press releases:",e),u(e instanceof Error?e.message:"Failed to load press releases"),c([]),d([])}finally{m(!1)}}()},[]);let N=(0,a.useMemo)(()=>o.map(e=>{let r=null;if(e.date)try{let t=e.date.toString();if(/^\d{8}$/.test(t)){let e=parseInt(t.substring(0,4)),s=parseInt(t.substring(4,6))-1,a=parseInt(t.substring(6,8));r=new Date(e,s,a)}else r=new Date(t),isNaN(r.getTime())&&(r=new Date(t+"T00:00:00"))}catch(t){console.warn("Failed to parse date:",e.date,t),r=null}return{...e,title:"fr"===t&&e.title_fr?e.title_fr:e.title,content:"fr"===t&&e.content_fr?e.content_fr:e.content,dateObj:r}}),[o,t]),_=(0,a.useMemo)(()=>(new Date().setHours(0,0,0,0),N.filter(e=>{let t=!h||e.title.toLowerCase().includes(h.toLowerCase())||e.content.toLowerCase().includes(h.toLowerCase()),r=0===b.length||e.categories&&e.categories.some(e=>b.includes(e.slug));return t&&r&&!0}).sort((e,t)=>e.dateObj&&t.dateObj?t.dateObj.getTime()-e.dateObj.getTime():0)),[N,h,b]),k=_.slice(0,v),P=_.length>v;(0,a.useEffect)(()=>{j(9)},[h,b]);let F=e=>{if(!e)return{month:"",day:"",year:""};try{let r="fr"===t,s=e.toLocaleString(r?"fr-CA":"en-US",{month:"long"}),a=e.getDate(),l=e.getFullYear();return{month:r?s.toLowerCase():s.toUpperCase(),day:a.toString(),year:l.toString()}}catch(e){return{month:"",day:"",year:""}}},C=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:120,r=e.replace(/<[^>]*>?/gm,"");return r.length>t?r.substring(0,t)+"...":r},S=e=>{let t=x.find(t=>t.slug===e);return t&&t.color||y[0]},D=e=>"fr"===t&&e.name_fr?e.name_fr:e.name;return p?(0,s.jsx)("section",{className:"py-24 px-10 bg-[#F3F3F2]",children:(0,s.jsx)("div",{className:"max-w-[1314px] mx-auto",children:(0,s.jsxs)("div",{className:"flex justify-center items-center",children:[(0,s.jsx)("div",{className:"inline-block w-8 h-8 border-4 border-[#314F9D]/30 border-t-[#314F9D] rounded-full animate-spin"}),(0,s.jsx)("p",{className:"ml-4 text-[#314F9D]",children:"fr"===t?"Chargement des communiqu\xe9s...":"Loading press releases..."})]})})}):f?(0,s.jsx)("section",{className:"py-24 px-10 bg-[#F3F3F2]",children:(0,s.jsx)("div",{className:"max-w-[1314px] mx-auto",children:(0,s.jsx)("div",{className:"text-center py-8 text-[#314F9D]",children:"fr"===t?"Erreur lors du chargement des communiqu\xe9s":"Error loading press releases"})})}):(0,s.jsx)("section",{className:"py-24 px-10 bg-[#F3F3F2]",children:(0,s.jsxs)("div",{className:"max-w-[1314px] mx-auto",children:[(0,s.jsx)("div",{className:"flex flex-col lg:flex-row justify-end items-start lg:items-center gap-4 mb-16",children:(0,s.jsxs)("div",{className:"flex items-center px-4 py-2 border border-[#314F9D] rounded-lg min-w-[205px]",children:[(0,s.jsxs)("svg",{className:"w-[18px] h-[18px] mr-2",viewBox:"0 0 18 18",fill:"none",children:[(0,s.jsx)("circle",{cx:"8.25",cy:"8.25",r:"
16.75",stroke:"#314F9D",strokeWidth:"1.35"}),(0,s.jsx)("path",{d:"M14.25 14.25L17.25 17.25",stroke:"#314F9D",strokeWidth:"1.35",strokeLinecap:"round"})]}),(0,s.jsx)("input",{type:"text",placeholder:"fr"===t?"Rechercher...":"Search...",value:h,onChange:e=>g(e.target.value),className:"flex-1 bg-transparent outline-none font-sans font-semibold text-sm text-[#314F9D] placeholder-[#314F9D]"})]})}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"grid sm:grid-cols-[repeat(auto-fit,minmax(392px,1fr))] grid-cols-[repeat(auto-fit,minmax(250px,1fr))] gap-x-10 gap-y-[38px] items-stretch mb-[48px] max-w-full",children:k.map(e=>{let r=F(e.dateObj),a=e.categories&&e.categories.length>0?e.categories[0]:null,l=a?S(a.slug):"#23243B";return(0,s.jsxs)("div",{className:"min-h-[228px] h-auto border-2 rounded-lg p-4 flex flex-col relative bg-white group hover:shadow-lg transition-shadow duration-300 cursor-pointer max-w-[500px]",style:{borderColor:l},children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[e.dateObj&&(0,s.jsx)("div",{className:"bg-[#38383899] rounded-lg px-2 py-1 flex items-center gap-2 sm:h-[25px] min-h-[25px] h-auto",children:(0,s.jsx)("span",{className:"font-sans font-semibold text-sm leading-[100%] text-white ".concat("en"===t?"uppercase":""),children:"fr"===t?"".concat(r.day," ").concat(r.month," ").concat(r.year):"".concat(r.month," ").concat(r.day,", ").concat(r.year)})}),e.designation&&(0,s.jsx)("div",{className:"bg-[#38383899] rounded-lg px-2 py-1 flex items-center gap-2 h-[25px]",children:(0,s.jsx)("span",{className:"font-sans font-semibold text-sm leading-[100%] text-white",children:e.designation})}),e.categories&&e.categories.slice(0,2).map((e,t)=>(0,s.jsx)("div",{className:"flex items-center justify-center bg-[#38383899] rounded-lg px-2 py-1 h-[25px]",children:(0,s.jsx)("span",{className:"font-sans font-semibold text-sm leading-[100%] text-white uppercase",children:D(e)})},e.id))]}),(0,s.jsxs)("div",{className:"mt-auto",children:[(0,s.jsx)("h3",{className:"font-header text-lg leading-[20px] tracking-[0.02em] uppercase font-extrabold text-[#23243B] mb-2",children:(0,i.ZP)(e.title)}),(0,s.jsx)("p",{className:"font-sans text-base leading-[24px] font-normal text-[#23243B] mb-4",children:C(e.content)}),(0,s.jsxs)("div",{className:"flex gap-[16px]",children:["EN"===e.designation&&e.pdf&&(0,s.jsxs)("a",{href:e.pdf,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-[8px] border-b border-[#23243B] pb-[12px] hover:opacity-80 transition-opacity duration-300",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B]",children:"English"}),(0,s.jsx)(n.default,{src:"/images/tabler-icon.svg",alt:"",width:20,height:20})]}),"FR"===e.designation&&e.pdf&&(0,s.jsxs)("a",{href:e.pdf,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-[8px] border-b border-[#23243B] pb-[12px] hover:opacity-80 transition-opacity duration-300",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B]",children:"Fran\xe7ais"}),(0,s.jsx)(n.default,{src:"/images/tabler-icon.svg",alt:"",width:20,height:20})]}),"EN"!==e.designation&&"FR"!==e.designation&&(0,s.jsxs)(s.Fragment,{children:[e.pdf&&(0,s.jsxs)("a",{href:e.pdf,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-[8px] border-b border-[#23243B] pb-[12px] hover:opacity-80 transition-opacity duration-300",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B]",children:"English"}),(0,s.jsx)(n.default,{src:"/images/tabler-icon.svg",alt:"",width:20,height:20})]}),e.pdf&&(0,s.jsxs)("a",{href:e.pdf,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-[8px] border-b border-[#23243B] pb-[12px] hover:opacity-80 transition-opacity duration-300",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B]",children:"Fran\xe7ais"}),(0,s.jsx)(n.default,{src:"/images/tabler-icon.svg",alt:"",width:20,height:20})]})]})]})]})]},e.id)})}
1),P&&!p&&!f&&(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsxs)("button",{onClick:()=>{j(e=>e+9)},className:"flex items-center justify-center gap-[8px] px-[16px] py-[8px] w-auto h-[39px] border border-[#23243B] rounded-[8px] bg-transparent hover:bg-[#23243B] hover:text-white transition-all duration-300 group",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B] group-hover:text-white",children:(0,l.i)("common","loadMore",t)||"LOAD MORE"}),(0,s.jsx)("div",{className:"flex items-center justify-center w-[20px] h-[20px]",children:(0,s.jsx)(n.default,{src:"/images/plus.svg",alt:"",width:20,height:20,className:"group-hover:filter group-hover:brightness-0 group-hover:invert"})})]})})]}),0===k.length&&!p&&(0,s.jsx)("div",{className:"text-center py-12",children:(0,s.jsx)("p",{className:"font-sans text-lg text-[#252525] opacity-70",children:"fr"===t?"Aucun communiqu\xe9 trouv\xe9.":"No press releases found."})})]})})}},4928:function(e,t,r){"use strict";r.r(t),r.d(t,{reportCategoryTranslations:function(){return o}});var s=r(7437),a=r(2265),l=r(2534),n=r(3145),i=r(7562);let o={"Diversity Calendar":"Calendrier de la diversit\xe9","Educational guides":"Guides p\xe9dagogiques",General:"Global","Glossary of terms":"Glossaire des termes"};t.default=e=>{let{lang:t,...r}=e,c=(e,t)=>{if("fr"===t){if(e.name_fr&&""!==e.name_fr.trim())return e.name_fr;let t=Object.keys(o).find(t=>t.toLowerCase()===e.name.toLowerCase());if(t)return o[t]}return e.name},[x,d]=(0,a.useState)([]),[p,m]=(0,a.useState)([]),[f,u]=(0,a.useState)([]),[h,g]=(0,a.useState)("all"),[b,w]=(0,a.useState)(!0),[v,j]=(0,a.useState)(null),[y,N]=(0,a.useState)(15),[_,k]=(0,a.useState)(null),[P,F]=(0,a.useState)(!1),C=(0,l.i)("common","loading",t)||"Loading...",S=(0,l.i)("common","error",t)||"Error loading reports",D=(0,l.i)("reports","noReports",t)||"No reports found",E=(0,l.i)("reports","checkBack",t)||"Please check back later",A=(0,l.i)("common","viewAll",t)||"SEE ALL",B=(0,l.i)("common","loadMoreUpper",t)||"LOAD MORE",L=(0,l.i)("reports","updated",t)||("fr"===t?"mis \xe0 jour":"updated"),M=(e,t)=>{if(!e)return"";try{let r=new Date(e);if(isNaN(r.getTime()))return e;let s=r.toLocaleDateString("fr"===t?"fr-FR":"en-US",{year:"numeric",month:"long",day:"numeric"});return"fr"===t?s.toLowerCase():s}catch(t){return e}};(0,a.useEffect)(()=>{(async function(){try{let[e,t]=await Promise.all([fetch("/api/resources-reports"),fetch("/api/resources-reports?endpoint=categories")]);if(!e.ok)throw Error("Reports API Error (".concat(e.status,"): ").concat(e.statusText));if(!t.ok)throw Error("Categories API Error (".concat(t.status,"): ").concat(t.statusText));let r=await e.json(),s=await t.json();if(!Array.isArray(r))throw Error("Invalid reports response format from API");if(!Array.isArray(s))throw Error("Invalid categories response format from API");d(r),m(r),u(s),j(null)}catch(e){console.error("Failed to load reports data:",e),j(e instanceof Error?e.message:"Failed to load reports data"),d([]),m([]),u([])}finally{w(!1)}})()},[]),(0,a.useEffect)(()=>{"all"===h?m(x):m(x.filter(e=>e.categories&&e.categories.some(e=>e.slug===h))),N(15)},[h,x]);let I=p.filter(e=>"fr"!==t||e.title_fr&&""!==e.title_fr.trim()||e.url_fr&&""!==e.url_fr.trim()||e.url_text_fr&&""!==e.url_text_fr.trim()||e.form_fr&&""!==e.form_fr.trim()).map(e=>({id:e.id,title:"fr"===t&&e.title_fr?e.title_fr:e.title,date:M(e.date,t),url:e.url,url_fr:e.url_fr,url_text:e.url_text,url_text_fr:e.url_text_fr,form:e.form,form_fr:e.form_fr,permalink:e.permalink,categories:e.categories})),O=I.slice(0,y),R=I.length>y,Z=e=>{g(e)},T=e=>{let t="";e.form_fr&&""!==e.form_fr.trim()?t=e.form_fr:e.form&&""!==e.form.trim()&&(t=e.form),t&&(k({content:t,title:e.title}),F(!0))};return(0,a.useEffect)(()=>{if(P&&_){let e=document.querySelector(".form-wysiwyg-content");if(e){let t=e.querySelectorAll("script:not([data-executed])"),r=[],s=[];t.forEach(e=>{e.setAttribute("data-executed","true"),e.src?r.push(e):e.textContent&&s.push(e)});let a=async()=>{let e=r.map(e=>new Promise((t,r)=>{if(document.head.querySelector('script[src="'.concat(e.src,'"]'))){t();return}let s=document.createElement("script");s.src=e.src,s.async=!0,e.charset&&(s.charset=e.charset),e.type&&(s.type=e.type),s.onload=()=>{t()},s.onerror=()=>r(Error("Failed to load script: ".concat(e.src))),document.head.appendChild(s)}));
1try{await Promise.all(e),s.forEach((e,t)=>{try{let t=e.textContent||"";Function(t)()}catch(e){console.error("Error executing inline script ".concat(t+1,":"),e)}})}catch(e){console.error("Error loading external scripts:",e),s.forEach((e,t)=>{try{let t=e.textContent||"";Function(t)()}catch(e){console.error("Error executing fallback inline script ".concat(t+1,":"),e)}})}};r.length>0?a():s.forEach((e,t)=>{try{let t=e.textContent||"";Function(t)()}catch(e){console.error("Error executing immediate inline script ".concat(t+1,":"),e)}})}}},[P,_]),(0,s.jsxs)("section",{id:"reports-archive",className:"py-[40px] px-[20px] sm:py-[60px] sm:px-[30px] md:py-[96px] md:px-[40px] bg-[#F3F3F2]",children:[(0,s.jsxs)("div",{className:"mx-auto max-w-[1190px]",children:[(0,s.jsx)("div",{className:"flex justify-center mb-[48px]",children:(0,s.jsxs)("div",{className:"flex flex-wrap justify-center items-center gap-[16px]",children:[(0,s.jsx)("button",{onClick:()=>Z("all"),className:"flex flex-col justify-center items-center px-[16px] py-[8px] rounded-[8px] transition-all duration-300 ".concat("all"===h?"bg-[#23243B] text-[#F58720]":"border border-[#314F9D] bg-transparent text-[#314F9D] hover:bg-[#314F9D] hover:text-white"),children:(0,s.jsx)("span",{className:"font-barlow font-semibold text-[14px] leading-[17px] whitespace-nowrap uppercase",children:A})}),f.map(e=>(0,s.jsx)("button",{onClick:()=>Z(e.slug),className:"flex flex-col justify-center items-center px-[16px] py-[8px] rounded-[8px] transition-all duration-300 ".concat(h===e.slug?"bg-[#23243B] text-[#F58720]":"border border-[#314F9D] bg-transparent text-[#314F9D] hover:bg-[#314F9D] hover:text-white"),children:(0,s.jsx)("span",{className:"font-barlow font-semibold uppercase text-[14px] leading-[17px] whitespace-nowrap",children:c(e,t)})},e.id))]})}),(0,s.jsx)("div",{className:"mb-[48px]",children:b?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("div",{className:"inline-block w-8 h-8 border-4 border-[#314F9D]/30 border-t-[#314F9D] rounded-full animate-spin"}),(0,s.jsx)("p",{className:"mt-2 text-[#314F9D]",children:C})]}):v?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#E53E3E]",children:S}),(0,s.jsx)("p",{className:"mb-4 text-[#38393A]",children:v})]}):O.length>0?(0,s.jsx)("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(min(250px,100%),320px))] lg:grid-cols-[repeat(auto-fit,minmax(min(250px,100%),370px))] gap-x-[20px] gap-y-[20px] sm:gap-x-[30px] sm:gap-y-[28px] md:gap-x-[40px] md:gap-y-[38px] justify-items-center justify-center",children:O.map(e=>(0,s.jsxs)("div",{className:"w-full min-h-[250px] h-auto bg-white border border-[#23243B] rounded-[8px] p-[16px] flex flex-col",children:[(0,s.jsx)("div",{className:"flex justify-start mb-auto pb-[16px]",children:e.categories.length>0&&(0,s.jsx)("div",{className:"bg-[rgba(56,56,56,0.6)] backdrop-blur-[7.5px] rounded-[8px] px-[8px] py-[4px]",children:(0,s.jsx)("span",{className:"font-barlow font-semibold text-[14px] leading-[17px] text-white uppercase",children:(()=>{let r=e.categories[0].name,s=f.find(t=>t.slug===e.categories[0].slug);if(s)return c(s,t);if("fr"===t){let e=Object.keys(o).find(e=>e.toLowerCase()===r.toLowerCase());if(e)return o[e]}return r})()})})}),(0,s.jsxs)("div",{className:"flex flex-col justify-end",children:[(0,s.jsxs)("div",{className:"mb-[16px]",children:[(0,s.jsx)("h3",{className:"font-nunito-sans font-extrabold text-[18px] leading-[20px] uppercase text-[#23243B] mb-[8px]",children:(0,i.ZP)(e.title)}),(0,s.jsxs)("p",{className:"font-barlow font-normal text-[16px] leading-[24px] text-[#23243B]",children:["(",L," ",e.date,")"]})]}),(0,s.jsx)("div",{className:"flex gap-[16px]",children:"fr"===t&&e.form_fr&&""!==e.form_fr.trim()||"en"===t&&e.form&&""!==e.form.trim()?(0,s.jsxs)(s.Fragment,{children:[e.form&&""!==e.form.trim()&&(0,s.jsxs)("button",{onClick:()=>T({...e,form:e.form,form_fr:""}),className:"flex items-center gap-[8px] border-b border-[#23243B] pb-[12px] hover:opacity-80 transition-opacity duration-300",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B]",children:"English"}),(0,s.jsx)(n.default,{src:"/images/tabler-icon.svg",alt:"",width:20,height:20})]}),e.form_fr&&""!==e.form_fr.trim()&&(0,s.jsxs)("button",{onClick:()=>T({...e,form:"",form_fr:e.form_fr}),className:"flex items-center gap-[8px] border-b border-[#23243B] pb-[12px] hover:opacity-80 transition-opacity duration-300",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B]",children:"Fran\xe7ais"}),(0,s.jsx)(n.default,{src:"/images/tabler-icon.svg",alt:"",width:20,height:20})]})]}):(0,s.jsxs)(s.Fragment,{children:[(e.url&&""!==e.url.trim()||e.url_text&&""!==e.url_text.trim())&&(0,s.jsxs)("a",{href:e.url&&""!==e.url.trim()?e.url:e.url_text,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-[8px] border-b border-[#23243B] pb-[12px] hover:opacity-80 transition-opacity duration-300",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B]",children:"English"}),(0,s.jsx)(n.default,{src:"/images/tabler-icon.svg",alt:"",width:20,height:20})]}),(e.url_fr&&""!==e.url_fr.trim()||e.url_text_fr&&""!==e.url_text_fr.trim())&&(0,s.jsxs)("a",{href:e.url_fr&&""!==e.url_fr.trim()?e.url_fr:e.url_text_fr,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-[8px] border-b border-[#23243B] pb-[12px] hover:opacity-80 transition-opacity duration-300",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B]",children:"Fran\xe7ais"}),(0,s.jsx)(n.default,{src:"/images/tabler-icon.svg",alt:"",width:20,height:20})]})]})})]})]},e.id))}):(0,s.jsxs)("div",{className:"text-center py-12",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#314F9D]",children:D}),(0,s.jsx)("p",{className:"opacity-80 text-[#38393A]",children:E})]})}),R&&!b&&!v&&(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsxs)("button",{onClick:()=>{N(e=>e+15)},className:"flex items-center justify-center gap-[8px] px-[16px] py-[8px] w-auto min-w-[160px] h-[39px] border border-[#23243B] rounded-[8px] bg-transparent hover:bg-[#23243B] hover:text-white transition-all duration-300 group",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B] group-hover:text-white",children:B}),(0,s.jsx)("div",{className:"flex items-center justify-center w-[20px] h-[20px]",children:(0,s.jsx)(n.default,{src:"/images/plus.svg",alt:"",width:20,height:20,className:"group-hover:filter group-hover:brightness-0 group-hover:invert"})})]})})]}),P&&_&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50",children:(0,s.jsxs)("div",{className:"relative bg-white w-full max-w-[1054px] max-h-[90vh] overflow-y-auto rounded-[20px] shadow-xl",children:[(0,s.jsx)("button",{className:"absolute top-[20px] right-[20px] z-10 bg-gray-100 rounded-full p-2 shadow-md hover:bg-gray-200 transition-colors border border-gray-300",onClick:()=>{F(!1),k(null)},children:(0,s.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M18 6L6 18M6 6L18 18",stroke:"#23243B",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,s.jsx)("div",{className:"p-6 md:p-10",children:(0,s.jsx)("div",{className:"form-wysiwyg-content",dangerouslySetInnerHTML:{__html:_.content}})})]})})]})}},92:function(e,t,r){"use strict";r.r(t),r.d(t,{reportCategoryTranslations:function(){return p}});var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(3145),o=r(9794),c=r(7562),x=r(9764),d=r(7795);r(7354),r(6968);let p={"Diversity Calendar":"Calendrier de la diversit\xe9","Educational guides":"Guides p\xe9dagogiques",General:"Global","Glossary of terms":"Glossaire des termes"};t.default=e=>{let{lang:t,...r}=e,m=(e,t)=>
1{if("fr"===t){if(e.name_fr&&""!==e.name_fr.trim())return e.name_fr;let t=Object.keys(p).find(t=>t.toLowerCase()===e.name.toLowerCase());if(t)return p[t]}return e.name},[f,u]=(0,a.useState)([]),[h,g]=(0,a.useState)([]),[b,w]=(0,a.useState)([]),[v,j]=(0,a.useState)("all"),[y,N]=(0,a.useState)(!0),[_,k]=(0,a.useState)(null),P=(0,a.useRef)(null),[F,C]=(0,a.useState)(null),[S,D]=(0,a.useState)(!1),E=(0,n.i)("common","loading",t)||"Loading...",A=(0,n.i)("common","error",t)||"Error loading reports",B=(0,n.i)("reports","noReports",t)||"No reports found",L=(0,n.i)("reports","checkBack",t)||"Please check back later",M=(0,n.i)("common","seeAll",t)||"See all",I=(0,n.i)("reports","updated",t)||("fr"===t?"mis \xe0 jour":"updated"),O=(0,l.yP)(r,"title",t)||("fr"===t?"Ressources et Rapports":"Resources & Reports"),R=(e,t)=>{if(!e)return"";try{let r=new Date(e);if(isNaN(r.getTime()))return e;let s={year:"numeric",month:"long",day:"numeric"};if("fr"===t)return r.toLocaleDateString("fr-FR",s).toLowerCase();return r.toLocaleDateString("en-US",s)}catch(t){return e}};(0,a.useEffect)(()=>{(async function(){try{let[e,t]=await Promise.all([fetch("/api/resources-reports"),fetch("/api/resources-reports?endpoint=categories")]);if(!e.ok)throw Error("Reports API Error (".concat(e.status,"): ").concat(e.statusText));if(!t.ok)throw Error("Categories API Error (".concat(t.status,"): ").concat(t.statusText));let r=await e.json(),s=await t.json();if(!Array.isArray(r))throw Error("Invalid reports response format from API");if(!Array.isArray(s))throw Error("Invalid categories response format from API");u(r),g(r),w(s),k(null)}catch(e){console.error("Failed to load reports data:",e),k(e instanceof Error?e.message:"Failed to load reports data"),u([]),g([]),w([])}finally{N(!1)}})()},[]),(0,a.useEffect)(()=>{"all"===v?g(f):g(f.filter(e=>e.categories&&e.categories.some(e=>e.slug===v))),P.current&&P.current.slideTo(0)},[v,f]);let Z=h.filter(e=>"fr"!==t||e.title_fr&&""!==e.title_fr.trim()||e.url_fr&&""!==e.url_fr.trim()||e.url_text_fr&&""!==e.url_text_fr.trim()||e.form_fr&&""!==e.form_fr.trim()).map(e=>({id:e.id,title:"fr"===t&&e.title_fr?e.title_fr:e.title,date:R(e.date,t),url:e.url,url_fr:e.url_fr,url_text:e.url_text,url_text_fr:e.url_text_fr,form:e.form,form_fr:e.form_fr,permalink:e.permalink,categories:e.categories})),T=e=>{j(e)},z=e=>{let t="";e.form_fr&&""!==e.form_fr.trim()?t=e.form_fr:e.form&&""!==e.form.trim()&&(t=e.form),t&&(C({content:t,title:e.title}),D(!0))};return(0,a.useEffect)(()=>{if(S&&F){let e=document.querySelector(".form-wysiwyg-content");if(e){let t=e.querySelectorAll("script:not([data-executed])"),r=[],s=[];t.forEach(e=>{e.setAttribute("data-executed","true"),e.src?r.push(e):e.textContent&&s.push(e)});let a=async()=>{let e=r.map(e=>new Promise((t,r)=>{if(document.head.querySelector('script[src="'.concat(e.src,'"]'))){t();return}let s=document.createElement("script");s.src=e.src,s.async=!0,e.charset&&(s.charset=e.charset),e.type&&(s.type=e.type),s.onload=()=>{t()},s.onerror=()=>r(Error("Failed to load script: ".concat(e.src))),document.head.appendChild(s)}));try{await Promise.all(e),s.forEach((e,t)=>{try{let t=e.textContent||"";Function(t)()}catch(e){console.error("Error executing inline script ".concat(t+1,":"),e)}})}catch(e){console.error("Error loading external scripts:",e),s.forEach((e,t)=>{try{let t=e.textContent||"";Function(t)()}catch(e){console.error("Error executing fallback inline script ".concat(t+1,":"),e)}})}};r.length>0?a():s.forEach((e,t)=>{try{let t=e.textContent||"";Function(t)()}catch(e){console.error("Error executing immediate inline script ".concat(t+1,":"),e)}})}}},[S,F]),(0,s.jsxs)("section",{id:"reports-slider",className:"py-[96px] px-[40px] bg-[#F3F3F2]",children:[(0,s.jsxs)("div",{className:"mx-auto max-w-[1680px]",children:[(0,s.jsx)("div",{className:"flex justify-center mb-[48px]",children:(0,s.jsx)("h2",{className:"font-nunito-sans font-extrabold text-[36px] leading-[38px] uppercase text-[#314F9D] text-center",children:(0,c.ZP)(O)})}),(0,s.jsx)("div",{className:"flex justify-center mb-[48px]",children:(0,s.jsxs)("div",{className:"flex flex-wrap justify-center items-center gap-[16px] max-w-[1256px]",children:[(0,s.jsx)("button",{onClick:()=>T("all"),className:"flex flex-col justify-center items-center px-[16px] py-[8px] rounded-[8px] transition-all duration-300 ".concat("all"===v?"bg-[#23243B] text-[#F58720]":"border border-[#314F9D] bg-transparent text-[#314F9D] hover:bg-[#314F9D] hover:text-white"),children:(0,s.jsx)("span",{className:"font-barlow font-semibold text-[14px] leading-[17px] whitespace-nowrap uppercase",children:M})}),b.map(e=>(0,s.jsx)("button",{onClick:()=>T(e.slug),className:"flex flex-col justify-center items-center px-[16px] py-[8px] rounded-[8px] transition-all duration-300 ".concat(v===e.slug?"bg-[#23243B] text-[#F58720]":"border border-[#314F9D] bg-transparent text-[#314F9D] hover:bg-[#314F9D] hover:text-white"),children:(0,s.jsx)("span",{className:"font-barlow font-semibold text-[14px] leading-[17px] whitespace-nowrap uppercase",children:m(e,t)})},e.id))]})}),(0,s.jsx)("div",{className:"reports-slider-container overflow-hidden mb-[48px] max-w-[1573px] lg:ml-[60px]",children:y?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("div",{className:"inline-block w-8 h-8 border-4 border-[#314F9D]/30 border-t-[#314F9D] rounded-full animate-spin"}),(0,s.jsx)("p",{className:"mt-2 text-[#314F9D]",children:E})]}):_?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#E53E3E]",children:A}),(0,s.jsx)("p",{className:"mb-4 text-[#38393A]",children:_})]}):Z.length>0?(0,s.jsx)("div",{className:"relative",children:(0,s.jsx)(x.tq,{modules:[d.W_,d.pt],spaceBetween:20,slidesPerView:1,breakpoints:{320:{slidesPerView:1,spaceBetween:20},768:{slidesPerView:2,spaceBetween:30},1024:{slidesPerView:2,spaceBetween:40},1200:{slidesPerView:3,spaceBetween:40},1400:{slidesPerView:3,spaceBetween:40}},onSwiper:e=>{P.current=e},autoplay:{delay:8e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},loop:!1,grabCursor:!0,className:"w-full",style:{overflow:"visible"},children:Z.map(e=>(0,s.jsx)(x.o5,{children:(0,s.jsxs)("div",{className:"flex-shrink-0 w-full h-auto min-h-[250px] bg-white border border-[#23243B] rounded-[8px] p-[16px] flex flex-col",children:[(0,s.jsx)("div",{className:"flex justify-start mb-auto pb-[16px]",children:e.categories.length>0&&(0,s.jsx)("div",{className:"bg-[rgba(56,56,56,0.6)] backdrop-blur-[7.5px] rounded-[8px] px-[8px] py-[4px]",children:(0,s.jsx)("span",{className:"font-barlow font-semibold text-[14px] leading-[17px] text-white uppercase",children:(()=>{let r=e.categories[0].name,s=b.find(t=>t.slug===e.categories[0].slug);
1if(s)return m(s,t);if("fr"===t){let e=Object.keys(p).find(e=>e.toLowerCase()===r.toLowerCase());if(e)return p[e]}return r})()})})}),(0,s.jsxs)("div",{className:"flex flex-col justify-end",children:[(0,s.jsxs)("div",{className:"mb-[16px]",children:[(0,s.jsx)("h3",{className:"font-nunito-sans font-extrabold text-[18px] leading-[20px] uppercase text-[#23243B] mb-[8px]",children:(0,c.ZP)(e.title)}),(0,s.jsxs)("p",{className:"font-barlow font-normal text-[16px] leading-[24px] text-[#23243B]",children:["(",I," ",e.date,")"]})]}),(0,s.jsx)("div",{className:"flex gap-[16px]",children:"fr"===t&&e.form_fr&&""!==e.form_fr.trim()||"en"===t&&e.form&&""!==e.form.trim()?(0,s.jsxs)(s.Fragment,{children:[e.form&&""!==e.form.trim()&&(0,s.jsxs)("button",{onClick:()=>z({...e,form:e.form,form_fr:""}),className:"flex items-center gap-[8px] border-b border-[#23243B] pb-[12px] hover:opacity-80 transition-opacity duration-300",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B]",children:"English"}),(0,s.jsx)(i.default,{src:"/images/tabler-icon.svg",alt:"",width:20,height:20})]}),e.form_fr&&""!==e.form_fr.trim()&&(0,s.jsxs)("button",{onClick:()=>z({...e,form:"",form_fr:e.form_fr}),className:"flex items-center gap-[8px] border-b border-[#23243B] pb-[12px] hover:opacity-80 transition-opacity duration-300",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B]",children:"Fran\xe7ais"}),(0,s.jsx)(i.default,{src:"/images/tabler-icon.svg",alt:"",width:20,height:20})]})]}):(0,s.jsxs)(s.Fragment,{children:[(e.url&&""!==e.url.trim()||e.url_text&&""!==e.url_text.trim())&&(0,s.jsxs)("a",{href:e.url&&""!==e.url.trim()?e.url:e.url_text,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-[8px] border-b border-[#23243B] pb-[12px] hover:opacity-80 transition-opacity duration-300",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B]",children:"English"}),(0,s.jsx)(i.default,{src:"/images/tabler-icon.svg",alt:"",width:20,height:20})]}),(e.url_fr&&""!==e.url_fr.trim()||e.url_text_fr&&""!==e.url_text_fr.trim())&&(0,s.jsxs)("a",{href:e.url_fr&&""!==e.url_fr.trim()?e.url_fr:e.url_text_fr,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-[8px] border-b border-[#23243B] pb-[12px] hover:opacity-80 transition-opacity duration-300",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B]",children:"Fran\xe7ais"}),(0,s.jsx)(i.default,{src:"/images/tabler-icon.svg",alt:"",width:20,height:20})]})]})})]})]})},e.id))})}):(0,s.jsxs)("div",{className:"text-center py-12",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#314F9D]",children:B}),(0,s.jsx)("p",{className:"opacity-80 text-[#38393A]",children:L})]})}),(0,s.jsxs)("div",{className:"flex justify-between items-center max-w-[1573px] lg:ml-[60px]",children:[(0,s.jsxs)("div",{className:"flex space-x-[10px]",children:[(0,s.jsx)("button",{onClick:()=>{var e;null===(e=P.current)||void 0===e||e.slidePrev()},className:"w-[56px] h-[56px] flex items-center justify-center rounded-full bg-[rgba(56,56,56,0.6)] transition-all duration-300 hover:bg-[rgba(56,56,56,0.8)]","aria-label":"fr"===t?"Pr\xe9c\xe9dent":"Previous",children:(0,s.jsx)("div",{className:"w-5 h-5 relative rotate-180 flex items-center justify-center",children:(0,s.jsx)(i.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{filter:"brightness(0) invert(1)"}})})}),(0,s.jsx)("button",{onClick:()=>{var e;null===(e=P.current)||void 0===e||e.slideNext()},className:"w-[56px] h-[56px] flex items-center justify-center rounded-full bg-[rgba(56,56,56,0.6)] transition-all duration-300 hover:bg-[rgba(56,56,56,0.8)]","aria-label":"fr"===t?"Suivant":"Next",children:(0,s.jsx)("div",{className:"w-5 h-5 relative flex items-center justify-center",children:(0,s.jsx)(i.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{filter:"brightness(0) invert(1)"}})})})]}),(0,s.jsxs)(o.default,{href:"/resources-reports",className:"flex items-center gap-[8px] border-b border-[#23243B] pb-[12px] hover:opacity-80 transition-opacity duration-300",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B]",children:M}),(0,s.jsx)("div",{className:"flex items-center justify-center",children:(0,s.jsx)(i.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13})})]})]})]}),S&&F&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50",children:(0,s.jsxs)("div",{className:"relative bg-white w-full max-w-[1054px] max-h-[90vh] overflow-y-auto rounded-[20px] shadow-xl",children:[(0,s.jsx)("button",{className:"absolute top-[20px] right-[20px] z-10 bg-gray-100 rounded-full p-2 shadow-md hover:bg-gray-200 transition-colors border border-gray-300",onClick:()=>{D(!1),C(null)},children:(0,s.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M18 6L6 18M6 6L18 18",stroke:"#23243B",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,s.jsx)("div",{className:"p-6 md:p-10",children:(0,s.jsx)("div",{className:"form-wysiwyg-content",dangerouslySetInnerHTML:{__html:F.content}})})]})})]})}},3465:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(9794),o=r(7562);t.default=e=>{let{lang:t,...r}=e,[c,x]=(0,a.useState)(!1),d=(0,l.yP)(r,"title",t),p=(0,l.yP)(r,"content",t),m=(0,l.yP)(r,"button",t),f=(0,l.yP)(r,"button_url",t),u=[];
1if(Array.isArray(r.cards))u=r.cards;else if(Array.isArray(r.cards_fr))u=r.cards_fr;else if("object"==typeof r.cards&&null!==r.cards)Array.isArray(r.cards.cards)&&(u=r.cards.cards);else if("string"==typeof r.cards)try{let e=JSON.parse(r.cards);Array.isArray(e)&&(u=e)}catch(e){console.error("Failed to parse cards JSON:",e)}if((0,a.useEffect)(()=>{x(!0)},[]),!c)return null;let h=(0,n.i)("common","moreInfo",t)||"More info";return(0,s.jsx)("section",{id:"sponsor-cards-section",className:"pt-[36px] sm:pt-[54px] md:pt-[72px] px-[20px] sm:px-[40px] pb-[48px] sm:pb-[72px] md:pb-[96px] bg-[#F3F3F2]",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1596px]",children:(0,s.jsxs)("div",{className:"flex flex-col items-start gap-[24px] sm:gap-[36px] md:gap-[48px]",children:[d&&(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("h2",{className:"strong-override-blue 2xl:text-left text-center font-sans font-light text-[24px] sm:text-[30px] md:text-[36px] leading-[26px] sm:leading-[32px] md:leading-[38px] uppercase text-[#314F9D]",children:(0,o.ZP)(d)})}),p&&(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("div",{className:"text-[#424242] text-base sm:text-lg md:text-[20px] leading-[28px] md:leading-[32px] 2xl:text-left text-center",children:(0,o.ZP)(p)})}),(0,s.jsx)("div",{className:"flex flex-col sm:flex-row sm:flex-wrap 2xl:justify-start justify-center items-center sm:items-stretch gap-[20px] sm:gap-[30px] lg:gap-[40px] w-full",children:u&&u.length>0?u.map((e,r)=>{let a=e.hasOwnProperty("image")||e.hasOwnProperty("subtitle")||e.hasOwnProperty("link")?e:e.acf||e,n=(0,l.yP)(a,"image",t),o=(0,l.yP)(a,"subtitle",t),c="fr"===t&&a.link_fr?a.link_fr:a.link||"#";return c?(0,s.jsx)(i.default,{href:c,className:"w-full sm:w-[calc(50%-15px)] lg:w-[calc(25%-30px)] sm:min-w-[369px] min-w-[250px] h-[400px] sm:h-[450px] lg:h-[501px] rounded-[8px] overflow-hidden transition-all duration-500 hover:shadow-xl group",target:"_blank",rel:"noopener noreferrer",children:(0,s.jsxs)("div",{className:"relative w-full h-full p-[16px] sm:p-[20px] md:p-[24px] flex flex-col justify-end bg-cover bg-center bg-no-repeat rounded-[8px] transform transition-transform duration-500 group-hover:scale-[1.03] group-hover:brightness-105",style:{backgroundImage:n?"linear-gradient(180deg, rgba(49, 79, 157, 0) 33.59%, #314F9D 86.48%), url(".concat(n,")"):"linear-gradient(180deg, rgba(49, 79, 157, 0) 33.59%, #314F9D 86.48%)",backgroundColor:"#314F9D",backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat"},children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/20 via-transparent to-transparent transition-all duration-500 group-hover:bg-[#314F9D]/60"}),o&&(0,s.jsx)("h3",{className:"relative z-10 font-sans font-extrabold text-[24px] sm:text-[30px] md:text-[36px] leading-[26px] sm:leading-[32px] md:leading-[38px] uppercase text-white w-full transition-all duration-500 transform group-hover:translate-y-[-60px]",children:o}),(0,s.jsx)("div",{className:"absolute bottom-[16px] sm:bottom-[20px] md:bottom-[24px] left-[16px] sm:left-[20px] md:left-[24px] z-10 opacity-0 transform translate-y-full transition-all duration-500 ease-out group-hover:opacity-100 group-hover:translate-y-0",children:(0,s.jsxs)("span",{className:"inline-block text-white font-medium pb-[12px] border-b border-white",children:[h,(0,s.jsx)("svg",{className:"inline-block ml-2 w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14 5l7 7m0 0l-7 7m7-7H3"})})]})})]})},"sponsor-card-".concat(r)):(0,s.jsx)("div",{className:"w-full sm:w-[calc(50%-15px)] lg:w-[calc(25%-30px)] max-w-[369px] h-[400px] sm:h-[450px] lg:h-[501px] rounded-[8px] overflow-hidden transition-all duration-500 hover:shadow-xl group",children:(0,s.jsxs)("div",{className:"relative w-full h-full p-[16px] sm:p-[20px] md:p-[24px] flex flex-col justify-end bg-cover bg-center bg-no-repeat rounded-[8px] transform transition-transform duration-500 group-hover:scale-[1.03] group-hover:brightness-105",style:{backgroundImage:n?"linear-gradient(180deg, rgba(49, 79, 157, 0) 33.59%, #314F9D 86.48%), url(".concat(n,")"):"linear-gradient(180deg, rgba(49, 79, 157, 0) 33.59%, #314F9D 86.48%)",backgroundColor:"#314F9D",backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat"},children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/20 via-trans
1parent to-transparent transition-all duration-500 group-hover:bg-[#314F9D]/60"}),o&&(0,s.jsx)("h3",{className:"relative z-10 font-sans font-extrabold text-[24px] sm:text-[30px] md:text-[36px] leading-[26px] sm:leading-[32px] md:leading-[38px] uppercase text-white w-full transition-all duration-500 transform group-hover:translate-y-[-60px]",children:o}),(0,s.jsx)("div",{className:"absolute bottom-[16px] sm:bottom-[20px] md:bottom-[24px] left-[16px] sm:left-[20px] md:left-[24px] z-10 opacity-0 transform translate-y-full transition-all duration-500 ease-out group-hover:opacity-100 group-hover:translate-y-0",children:(0,s.jsxs)("span",{className:"inline-block text-white font-medium pb-[12px] border-b border-white",children:[h,(0,s.jsx)("svg",{className:"inline-block ml-2 w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14 5l7 7m0 0l-7 7m7-7H3"})})]})})]})},"sponsor-card-".concat(r))}):(0,s.jsx)("div",{className:"text-center py-8 w-full",children:"No cards found. Check browser console for debugging information."})}),(p||m)&&(0,s.jsxs)("div",{className:"flex flex-col items-center gap-[24px] sm:gap-[36px] md:gap-[48px] w-full max-w-[689px] mx-auto",children:[p&&(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("div",{className:"text-[#424242] text-base sm:text-lg md:text-[20px] leading-[28px] md:leading-[32px] text-center",children:(0,o.ZP)(p)})}),m&&f&&(0,s.jsx)("div",{className:"w-full flex justify-center",children:(0,s.jsx)(i.default,{href:f,className:"inline-block text-center px-4 py-2 gap-2 w-auto min-w-[176px] h-auto bg-[#F58720] hover:bg-[#B93C95] rounded-lg transition-all duration-300 group/button",children:(0,s.jsx)("span",{className:"font-sans text-base font-semibold leading-[23px] text-[#23243B] group-hover/button:text-white transition-colors duration-300 relative pr-6 after:content-[''] after:absolute after:right-0 after:top-1/2 after:-translate-y-1/2 after:w-[13px] after:h-[13px] after:bg-[url('/images/arrow-right.svg')] group-hover/button:after:bg-[url('/images/arrow-right-white.svg')] after:bg-contain after:bg-no-repeat after:transition-all after:duration-300 group-hover/button:after:translate-x-1",children:m})})})]})]})})})}},5793:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562),i=r(1632);t.default=e=>{let{lang:t,...r}=e,[o,c]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{c(!0)},[]),!o)return null;let x=(0,l.yP)(r,"title",t),d=(0,l.yP)(r,"content",t),p=(0,l.yP)(r,"cta_subtitle",t),m=(0,l.yP)(r,"button_text",t),f=(0,l.yP)(r,"button_link",t)||"#",u=(0,l.yP)(r,"sub_content",t),h=(0,l.yP)(r,"image",t),g=h&&"string"==typeof h&&""!==h.trim()?h:null;return(0,s.jsx)("section",{id:"sponsorship",className:"py-[70px] px-[40px]",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1406px]",children:(0,s.jsxs)("div",{className:"bg-[#F3F3F2] overflow-hidden rounded-[8px] flex flex-col md:flex-row md:flex-nowrap flex-wrap md:justify-between md:items-center gap-0 min-h-[364px]",children:[(0,s.jsx)("div",{className:"flex flex-col justify-center items-start px-[40px] md:px-[75px] md:pr-[13.5px] py-[40px] md:py-[13.5px] gap-[30px] flex-grow md:flex-none md:w-[722px] md:h-auto",children:(0,s.jsxs)("div",{className:"flex flex-col items-start gap-[15px] w-full md:w-[607px]",children:[x&&(0,s.jsx)("h3",{className:"font-header font-extrabold text-[24px] md:text-[32px] leading-[28px] md:leading-[36px] uppercase text-[#1D1D1B] w-full",children:(0,n.ZP)(x)}),d&&(0,s.jsx)("div",{className:"font-sans font-normal text-[14px] md:text-[16px] leading-[20px] md:leading-[24px] text-[#1D1D1B] w-full",children:(0,n.ZP)(d)}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-[15px] w-full",children:[p&&(0,s.jsx)("p",{className:"font-sans font-normal text-[16px] md:text-[18px] leading-[20px] md:leading-[22px] text-[#314F9D] w-full",children:p}),m&&(0,s.jsx)("a",{href:f,className:"inline-flex justify-center items-center px-[16px] py-[8px] bg-[#F58720] hover:bg-[#B93C95] rounded-[8px] transition-all duration-300 group min-w-[160px] h-[39px]",children:(0,s.jsx)("span",{className:"font-sans text-[16px] font-semibold text-[#23243B] group-hover:text-white transition-colors duration-300 relative pr-6 after:content-[''] after:absolute after:right-0 after:top-1/2 after:-translate-y-1/2 after:w-[13px] after:h-[13px] after:bg-[url('/images/arrow-right.svg')] group-hover:after:bg-[url('/images/arrow-right-white.svg')] after:bg-contain after:bg-no-repeat after:transition-all after:duration-300 group-hover:after:translate-x-1",children:m})})]}),u&&(0,s.jsx)("div",{className:"font-sans font-normal text-[14px] md:text-[16
1px] leading-[20px] md:leading-[24px] text-[#1D1D1B] w-full",children:(0,n.ZP)(u)})]})}),g&&(0,s.jsxs)("div",{className:"relative w-full md:w-[684px] h-[250px] max-h-[100%] md:h-[450px] md:flex-none md:order-1 overflow-hidden rounded-b-[8px] md:rounded-b-none md:rounded-r-[8px]",children:[(0,s.jsx)(i.Z,{src:g,alt:"",fill:!0,className:"object-cover",sizes:"(max-width: 768px) 100vw, 684px"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-[rgba(243,243,242,0.2)] to-[rgba(243,243,242,0.2)] md:bg-gradient-to-l md:from-transparent md:via-transparent md:to-[#F3F3F2]"})]})]})})})}},8898:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(2534),n=r(3145),i=r(7562);t.default=e=>{let{lang:t,...r}=e,[o,c]=(0,a.useState)([]),[x,d]=(0,a.useState)([]),[p,m]=(0,a.useState)(!0),[f,u]=(0,a.useState)(null),[h,g]=(0,a.useState)(null),[b,w]=(0,a.useState)(!1),v=(0,a.useRef)(null),j=(0,a.useRef)(!1);(0,l.i)("teamMembers","title",t);let y=(0,l.i)("common","loading",t)||"Loading...",N=(0,l.i)("common","error",t)||"Error loading team members",_=(0,l.i)("teamMembers","noMembers",t)||"No team members found",k=(0,l.i)("teamMembers","checkBack",t)||"Please check back later";(0,a.useEffect)(()=>{let e=e=>{v.current&&!v.current.contains(e.target)&&w(!1)};return b&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[b]),(0,a.useEffect)(()=>(b?document.body.style.overflow="hidden":document.body.style.overflow="auto",()=>{document.body.style.overflow="auto"}),[b]),(0,a.useEffect)(()=>{d(o)},[o]),(0,a.useEffect)(()=>{(async function(){try{let e=await fetch("/api/team-members?category=general");if(!e.ok)try{let t=await e.json();throw Error("API Error (".concat(e.status,"): ").concat(t.message||t.error||"Unknown error"))}catch(t){throw Error("HTTP error! Status: ".concat(e.status," ").concat(e.statusText))}let t=await e.json();if(!Array.isArray(t))throw Error("Invalid response format from API");c(t),u(null)}catch(e){console.error("Failed to load team members:",e),u(e instanceof Error?e.message:"Failed to load team members"),c([])}finally{m(!1)}})()},[]);let P=(e,r)=>{let s="".concat(r,"_fr");return"fr"===t&&e[s]?e[s]:e[r]||""},F=x.map(e=>({id:e.id,title:P(e,"title"),content:P(e,"content"),featured_image:e.featured_image||"",position:P(e,"position"),extended_position:P(e,"extended_position"),permalink:e.permalink||"#"})).sort((e,t)=>{let r=e=>{var t,r;let s=e.trim().split(" ");return(null===(t=s[1])||void 0===t?void 0:t.toLowerCase())||(null===(r=s[0])||void 0===r?void 0:r.toLowerCase())||""},s=r(e.title),a=r(t.title);return s.localeCompare(a)}),C=e=>e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g," ").trim();(0,a.useEffect)(()=>{if(p||b||0===F.length||j.current)return;let e=new URLSearchParams(window.location.search).get("person");if(!e)return;let t=C(e.replace(/-/g," ")),r=null,s=-1;for(let e of F){let a=C(e.title),l=0;if(a===t)l=100;else if(a.startsWith(t)||t.startsWith(a))l=90;else if(a.includes(t)||t.includes(a))l=80;else{let e=new Set(a.split(" ")),r=new Set(t.split(" ")),s=0;e.forEach(e=>{r.has(e)&&s++});let n=e.size;r.forEach(t=>{!e.has(t)&&n++}),l=n?Math.round(s/n*70):0}l>s&&(s=l,r=e)}if(r&&s>=60){g(r),w(!0),j.current=!0;let e=new URL(window.location.href);e.searchParams.delete("person"),window.history.replaceState(null,"",e.toString())}},[p,b,F]);let S=e=>{g(e),w(!0)};return(0,s.jsxs)("section",{id:"team-members",className:"pt-[32px] pr-[20px] pb-[96px] pl-[20px] md:pr-[40px] md:pl-[40px]",children:[(0,s.jsx)("div",{className:"mx-auto max-w-[1252px]",children:p?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("div",{className:"inline-block w-8 h-8 border-4 border-[#314F9D]/30 border-t-[#314F9D] rounded-full animate-spin"}),(0,s.jsx)("p",{className:"mt-2 text-[#314F9D]",children:y})]}):f?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#E53E3E]",children:N}),(0,s.jsx)("p",{className:"mb-4 text-[#38393A]",children:f}),(0,s.jsx)("div",{className:"p-4 bg-gray-100 rounded-md text-left max-w-2xl mx-auto",children:(0,s.jsx)("p",{className:"font-mono text-sm text-[#38393A]",children:"â ï¸ Please contact the site administrator with this error message."})})]}):F.length>0?(0,s.jsx)("div",{className:"grid ".concat((F.length,"grid-cols-[repeat(auto-fit,minmax(200px,1fr))] sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6")," sm:gap-[20px] gap-[10px]"),children:F.map(e=>(0,s.jsxs)("div",{className:"flex flex-col items-center w-full max-w-[176px] mx-auto cursor-pointer group",onClick:()=>S(e),children:[(0,s.jsx)("div",{className:"relative w-full max-w-[176px] h-[240px] rounded-[8px] overflow-hidden member-image-container",children:e.featured_image?(0,s.jsx)("img",{src:e.featured_image,alt:e.title,className:"w-full h-full object-cover"}):(0,s.jsx)("div",{className:"w-full h-full bg-gray-200 flex items-center justify-center",children:(0,s.jsxs)("svg",{width:"80",height:"80",viewBox:"0 0 24 24",fill:"none",className:"text-gray-400",children:[(0,s.jsx)("path",{d:"M12 12C14.7614 12 17 9.76142 17 7C17 4.23858 14.7614 2 12 2C9.23858 2 7 4.23858 7 7C7 9.76142 9.23858 12 12 12Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M12 14C7.58172 14 4 17.5817 4 22H20C20 17.5817 16.4183 14 12 14Z",fill:"currentColor"})]})})}),(0,s.jsx)("h3",{className:"mt-[14px] font-header font-semibold text-[18px] leading-[22px] text-center text-[#242424] transition-colors duration-300 group-hover:text-[#314F9D]",children:e.title}),(0,s.jsx)("p",{className:"mt-[4px] font-sans font-normal text-[14px] leading-[17px] text-center text-[#242424]",children:e.position})]},e.id))}):(0,s.jsxs)("div",{className:"text-center py-12",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#314F9D]",children:_}),(0,s.jsx)("p",{className:"opacity-80 text-[#38393A]",children:k})]})}),b&&h&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50",children:(0,s.jsxs)("div",{ref:v,className:"relative bg-[#23243B] w-full max-w-[750px] max-h-[750px] overflow-y-auto rounded-md",children:[(0,s.jsx)("button",{className:"absolute top-[20px] right-[20px] md:top-[41px] md:right-[65px] z-10",onClick:()=>{w(!1),j.current=!0;{let e=new URL(window.location.href);e.searchParams.has("person")&&(e.searchParams.delete("person"),window.history.replaceState(null,"",e.toString()))}},children:(0,s.jsx)(n.default,{src:"/images/cross.svg",alt:"Close",width:23,height:23})}),(0,s.jsxs)("div",{className:"p-[24px] md:p-[56px]",children:[(0,s.jsxs)("div",{className:"flex flex-col md:flex-row gap-[40px] mb-[40px]",children:[(0,s.jsx)("div",{className:"flex-shrink-0",children:(0,s.jsx)("div",{className:"w-[170px] h-[212px] rounded-[8px] overflow-hidden",children:h.featured_image?(0,s.jsx)("img",{src:h.featured_image,alt:h.title,className:"w-full h-full object-cover"}):(0,s.jsx)("div",{className:"w-full h-full bg-gray-600 flex items-center justify-center",children:(0,s.jsxs)("svg",{width:"80",height:"80",viewBox:"0 0 24 24",fill:"none",className:"text-gray-400",children:[(0,s.jsx)("path",{d:"M12 12C14.7614 12 17 9.76142 17 7C17 4.23858 14.7614 2 12 2C9.23858 2 7 4.23858 7 7C7 9.76142 9.23858 12 12 12Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M12 14C7.58172 14 4 17.5817 4 22H20C20 17.5817 16.4183 14 12 14Z",fill:"currentColor"})]})})})}),(0,s.jsxs)("div",{className:"flex flex-col justify-end",children:[(0,s.jsx)("h2",{className:"font-header font-extrabold text-[28px] leading-[32px] md:text-[36px] md:leading-[38px] uppercase text-white",children:(0,i.ZP)(h.title)}),(0,s.jsx)("p",{className:"mt-[8px] font-sans font-normal text-[18px] leading-[24px] md:text-[20px] md:leading-[32px] text-[#63B3E4]",children:h.position}),h.extended_position&&!h.position&&(0,s.jsx)("h4",{className:"font-header text-[#ffffff] mb-4 text-[14px]",children:(0,i.ZP)(h.extended_position)})]})]}),(0,s.jsx)("div",{className:"w-full h-[1px] bg-white/20 mb-[40px]"}),(0,s.jsx)("div",{className:"font-sans font-normal text-[16px] leading-[24px] text-white modal-content",children:(0,s.jsx)("div",{className:"text-base text-[#ffffff] [&_p]:mb-[24px]",children:(0,i.ZP)(h.content)})})]})]})})]})}},5547:function(e,t,r){"use strict";r.r(t);var s=r(7437);r(2265);var a=r(3448),l=r(2534),n=r(9794),i=r(7562);t.default=e=>{let{lang:t,...r}=e,o=(0,a.yP)(r,"title",t),c=[];if(Array.isArray(r.blocks))c=r.blocks;else if("fr"===t&&Array.isArray(r.blocks_fr))c=r.blocks_fr;else if("object"==typeof r.blocks&&null!==r.blocks)Array.isArray(r.blocks.blocks)&&(c=r.blocks.blocks);else if("string"==typeof r.blocks)try{let e=JSON.parse(r.blocks);Array.isArray(e)&&(c=e)}catch(e){console.error("Failed to parse blocks JSON:",e)}let x=c.slice(0,3),d=["rgba(120, 41, 107, 0) 33.59%, #78296B 86.48%","rgba(46, 80, 159, 0) 33.59%, #2E509F 86.48%","rgba(34, 35, 58, 0) 33.59%, #22233A 86.48%"],p=e=>["group-hover:bg-[#78296B]/75","group-hover:bg-[#2E509F]/75","group-hover:bg-[#22233A]/75"][e]||"group-hover:bg-[#78296B]/75",m=e=>{if(!e)return!1;let t=e.toLowerCase();return t.includes("donate")||t.includes("don")};return(0,s.jsx)("section",{id:"three-col-get-involved",className:"pt-[72px] pr-[40px] pb-[96px] pl-[40px] bg-[#F3F3F2]",children:(0,s.jsxs)("div",{className:"container mx-auto max-w-[1601px]",children:[o&&(0,s.jsx)("h2",{className:"font-header text-4xl sm:text-5xl md:text-6xl lg:text-[72px] font-light leading-[1] text-[#314F9D] text-center lg:text-left",children:(0,i.ZP)(o)}),(0,s.jsx)("div",{className:"mt-[48px] flex flex-col items-center lg:flex-row lg:items-stretch gap-8 lg:gap-[40px]",children:x&&x.length>0?x.map((e,r)=>{let i=e.hasOwnProperty("image")?e:e.acf||e,o=i.image||"",c=(0,a.yP)(i,"block_t
1itle",t)||"",x=(0,a.yP)(i,"block_link",t)||"#",f=(0,a.yP)(i,"block_link_name",t)||(0,l.i)("common","learnMore",t)||"Learn more",u=2===r?"w-full max-w-[413px] lg:max-w-[615px]":"w-full max-w-[413px]",h=m(f),g=d[r%d.length];return(0,s.jsx)(n.default,{href:x,className:"".concat(u," h-[400px] sm:h-[480px] lg:h-[560px] rounded-lg overflow-hidden transition-all duration-500 hover:shadow-xl group"),children:(0,s.jsxs)("div",{className:"relative w-full h-full p-[32px] flex flex-col justify-end bg-cover bg-center bg-no-repeat rounded-lg transform transition-transform duration-500 group-hover:scale-[1.03] group-hover:brightness-105",style:{backgroundImage:"linear-gradient(180deg, ".concat(g,"), url(").concat(o,")")},children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-black/20 to-black/5 transition-all duration-500 ".concat(p(r))}),(0,s.jsx)("h3",{className:"relative z-10 font-sans font-extrabold text-2xl sm:text-3xl md:text-[36px] leading-[38px] text-white max-w-[350px] transition-all duration-500 transform group-hover:translate-y-[-60px]",children:c}),h?(0,s.jsx)("div",{className:"absolute bottom-[32px] left-[32px] z-10 opacity-0 transform translate-y-full transition-all duration-500 ease-out group-hover:opacity-100 group-hover:translate-y-0",children:(0,s.jsx)("div",{className:"inline-block text-center px-4 py-2 gap-2 w-auto min-w-[176px] h-auto bg-[#F58720] hover:bg-[#B93C95] rounded-lg transition-all duration-300 group/button",children:(0,s.jsx)("span",{className:"font-sans text-base font-semibold leading-[23px] text-[#23243B] group-hover/button:text-white transition-colors duration-300 relative pr-6 after:content-[''] after:absolute after:right-0 after:top-1/2 after:-translate-y-1/2 after:w-[13px] after:h-[13px] after:bg-[url('/images/arrow-right.svg')] group-hover/button:after:bg-[url('/images/arrow-right-white.svg')] after:bg-contain after:bg-no-repeat after:transition-all after:duration-300 group-hover/button:after:translate-x-1",children:f})})}):(0,s.jsx)("div",{className:"absolute bottom-[32px] left-[32px] z-10 opacity-0 transform translate-y-full transition-all duration-500 ease-out group-hover:opacity-100 group-hover:translate-y-0",children:(0,s.jsxs)("span",{className:"inline-block text-white font-medium pb-[12px] border-b border-white",children:[f,(0,s.jsx)("svg",{className:"inline-block ml-2 w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14 5l7 7m0 0l-7 7m7-7H3"})})]})})]})},"block-".concat(r))}):(0,s.jsx)("div",{className:"w-full text-center py-8 text-gray-500",children:(0,l.i)("common","noFoundMessage",t)||"No blocks found"})})]})})}},197:function(e,t,r){"use strict";r.r(t);var s=r(7437);r(2265);var a=r(3448),l=r(2534),n=r(9794);t.default=e=>{let{lang:t,...r}=e,i=[];if(Array.isArray(r.blocks))i=r.blocks;else if("object"==typeof r.blocks&&null!==r.blocks)Array.isArray(r.blocks.blocks)&&(i=r.blocks.blocks);else if("string"==typeof r.blocks)try{let e=JSON.parse(r.blocks);Array.isArray(e)&&(i=e)}catch(e){console.error("Failed to parse blocks JSON:",e)}let o=["rgba(120, 41, 107, 0) 33.59%, #78296B 86.48%","rgba(46, 80, 159, 0) 33.59%, #2E509F 86.48%","rgba(34, 35, 58, 0) 33.59%, #22233A 86.48%"],c=e=>{let t=["group-hover:bg-[#78296B]/75","group-hover:bg-[#2E509F]/75","group-hover:bg-[#22233A]/75"];return t[e%t.length]};return(0,s.jsx)("section",{id:"three-col-learning",className:"py-[96px] px-[40px] bg-white",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1256px]",children:(0,s.jsx)("div",{className:"flex flex-wrap lg:flex-nowrap items-center gap-[40px] justify-center",children:i&&i.length>0?i.map((e,r)=>{let i=e.hasOwnProperty("image")?e:e.acf||e,x=i.image||"",d=(0,a.yP)(i,"block_title",t)||"",p=i.block_link||"#",m=o[r%o.length],f=(0,l.i)("common","moreInfo",t)||"More info";return(0,s.jsx)(n.default,{href:p,className:"flex-1 md:min-w-[300px] min-w-[200px] max-w-[392px] lg:h-[532px] h-[300px] rounded-[8px] overflow-hidden transition-all duration-500 hover:shadow-xl group",children:(0,s.jsxs)("div",{className:"relative w-full h-full p-[24px] flex flex-col justify-end bg-cover bg-center bg-no-repeat rounded-[8px] transform transition-transform duration-500 group-hover:scale-[1.03] group-hover:brightness-105",style:{backgroundImage:"linear-gradient(180deg, ".concat(m,"), url(").concat(x,")")},children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-black/20 to-black/5 transition-all duration-500 ".concat(c(r))}),(0,s.jsx)("h3",{className:"relative z-10 font-sans font-extrabold text-[36px] leading-[38px] text-white uppercase w-full max-w-[344px] transition-all duration-500 transform group-hover:translate-y-[-60px]",children:d}),(0,s.jsx)("div",{className:"absolute bottom-[24px] left-[24px] z-10 opacity-0 transform translate-y-full transition-all duration-500 ease-out group-hover:opacity-100 group-hover:translate-y-0",children:(0,s.jsxs)("span",{className:"inline-block text-white font-medium pb-[12px] border-b border-white",children:[f,(0,s.jsx)("svg",{className:"inline-block ml-2 w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14 5l7 7m0 0l-7 7m7-7H3"})})]})})]})},"block-".concat(r))}):(0,s.jsx)("div",{className:"w-full text-center py-8 text-gray-500",children:"No blocks foun
1d"})})})})}},11:function(e,t,r){"use strict";r.r(t);var s=r(7437);r(2265);var a=r(3448),l=r(7562),n=r(9794);t.default=e=>{let{lang:t,...r}=e,i=(0,a.yP)(r,"title",t),o=[];if(Array.isArray(r.blocks))o=r.blocks;else if("object"==typeof r.blocks&&null!==r.blocks)Array.isArray(r.blocks.blocks)&&(o=r.blocks.blocks);else if("string"==typeof r.blocks)try{let e=JSON.parse(r.blocks);Array.isArray(e)&&(o=e)}catch(e){console.error("Failed to parse blocks JSON:",e)}let c=o.slice(0,3);return(0,s.jsx)("section",{id:"three-col-see-different",className:"pt-[72px] px-[40px] pb-[96px] bg-[#F3F3F2]",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1256px]",children:(0,s.jsxs)("div",{className:"flex flex-col items-center gap-[48px]",children:[i&&(0,s.jsx)("div",{className:"w-full max-w-[594px]",children:(0,s.jsx)("h2",{className:"font-header font-extrabold text-[18px] leading-[20px] text-center tracking-[0.02em] uppercase text-[#314F9D]",children:(0,l.ZP)(i)})}),(0,s.jsx)("div",{className:"flex flex-wrap lg:flex-nowrap items-start gap-[40px] justify-center w-full",children:c&&c.length>0?c.map((e,r)=>{let l=e.hasOwnProperty("image")?e:e.acf||e,i=l.image||"",o=(0,a.yP)(l,"block_t
1itle",t)||"",c=l.block_link||"#";return(0,s.jsx)(n.default,{href:c,target:"_blank",className:"flex-1 min-w-[300px] max-w-[393px] h-[200px] rounded-[8px] overflow-hidden transition-all duration-300 hover:shadow-xl group",children:(0,s.jsx)("div",{className:"relative w-full h-full p-[24px] flex flex-col justify-end bg-cover bg-center bg-no-repeat rounded-[8px]",style:{backgroundImage:"url(".concat(i,")")},children:(0,s.jsx)("div",{className:"relative z-10 flex flex-row items-center gap-[24px] w-full",children:(0,s.jsx)("div",{className:"flex flex-col items-start gap-[16px] flex-grow",children:(0,s.jsx)("h3",{className:"font-header font-extrabold text-[36px] leading-[38px] text-white uppercase max-w-[200px]",children:o})})})})},"block-".concat(r))}):(0,s.jsx)("div",{className:"w-full text-center py-8 text-gray-500",children:"No blocks found"})})]})})})}},8641:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(9776),o=r(3145),c=r(7562);t.default=e=>{let{lang:t,...r}=e,[x,d]=(0,a.useState)([]),[p,m]=(0,a.useState)([]),[f,u]=(0,a.useState)(!0),[h,g]=(0,a.useState)(null),[b,w]=(0,a.useState)(15),[v,j]=(0,a.useState)(""),y=(0,l.yP)(r,"title",t);(0,l.yP)(r,"background",t);let N=(0,n.i)("common","loading",t)||"Loading...",_=(0,n.i)("common","error",t)||"Error loading toolkits",k=(0,n.i)("common","noResults",t)||"No toolkits found",P=(0,n.i)("common","checkBack",t)||"Please check back later",F=(0,n.i)("common","loadMoreUpper",t)||"LOAD MORE",C=(0,n.i)("common","search",t)||"Search";(0,a.useEffect)(()=>{!async function(){try{let e=await fetch("/api/toolkits");if(!e.ok)throw Error("HTTP error! Status: ".concat(e.status));let t=await e.json();d(Array.isArray(t)?t:[]),m(Array.isArray(t)?t:[]),g(null)}catch(e){console.error("Failed to load toolkits:",e),g(e instanceof Error?e.message:"Failed to load toolkits"),d([]),m([])}finally{u(!1)}}()},[]);let S=(e,r)=>{if("fr"===t){let t="".concat(r,"_fr");if(void 0!==e[t]&&null!==e[t]&&""!==e[t])return e[t]}return e[r]||""};(0,a.useEffect)(()=>{v.trim()?m(x.filter(e=>{let t=S(e,"title"),r=v.toLowerCase();return t.toLowerCase().includes(r)})):m(x),w(15)},[v,x,t]);let D=p.map(e=>({id:e.id,title:S(e,"title"),url:e.url?(0,i.AC)(e.url):"",url_fr:e.url_fr?(0,i.AC)(e.url_fr):"",permalink:e.permalink||"#"})),E=D.slice(0,b),A=D.length>b,B=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:120;return e.length<=t?e:e.substring(0,t).trim()+"..."};return(0,s.jsx)("section",{id:"toolkits-archive",className:"py-[40px] px-[20px] sm:py-[60px] sm:px-[30px] md:py-[96px] md:px-[40px] bg-[#F3F3F2]",children:(0,s.jsxs)("div",{className:"mx-auto max-w-[1187px]",children:[y&&(0,s.jsx)("div",{className:"text-center mb-[48px]",children:(0,s.jsx)("h2",{className:"font-header text-4xl sm:text-5xl md:text-6xl lg:text-[64px] font-light leading-[1.12] text-[#314F9D] uppercase",children:(0,c.ZP)(y)})}),(0,s.jsx)("div",{className:"flex justify-end mb-[48px]",children:(0,s.jsxs)("div",{className:"flex items-center gap-[8px] px-[16px] py-[8px] w-[205px] h-[34px] border border-[#314F9D] backdrop-blur-[7.5px] rounded-[8px]",children:[(0,s.jsx)("div",{className:"flex items-center justify-center w-[18px] h-[18px] min-w-[18px] min-h-[18px]",children:(0,s.jsx)(o.default,{src:"/images/search-navy.svg",alt:"Search",width:18,height:18})}),(0,s.jsx)("input",{type:"text",placeholder:C,value:v,onChange:e=>{j(e.target.value)},className:"flex-1 bg-transparent font-barlow font-semibold text-[14px] leading-[17px] text-[#314F9D] placeholder:text-[#314F9D] border-none outline-none"})]})}),(0,s.jsx)("div",{className:"mb-[48px]",children:f?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("div",{className:"inline-block w-8 h-8 border-4 border-[#314F9D]/30 border-t-[#314F9D] rounded-full animate-spin"}),(0,s.jsx)("p",{className:"mt-2 text-[#314F9D]",children:N})]}):h?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#E53E3E]",children:_}),(0,s.jsx)("p",{className:"mb-4 text-[#38393A]",children:h})]}):E.length>0?(0,s.jsx)("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(min(250px,100%),320px))] lg:grid-cols-[repeat(auto-fit,minmax(min(250px,100%),369px))] gap-x-[20px] gap-y-[20px] sm:gap-x-[30px] sm:gap-y-[28px] md:gap-x-[40px] md:gap-y-[38px] justify-items-center justify-center",children:E.map(e=>(0,s.jsx)("div",{className:"w-full min-h-[250px] h-auto bg-white border border-[#23243B] rounded-[8px] p-[16px] flex flex-col justify-end group",children:(0,s.jsxs)("div",{className:"flex flex-col justify-end h-full",children:[(0,s.jsx)("div",{className:"mb-[16px]",children:(0,s.jsxs)("h3",{className:"font-nunito-sans font-extrabold text-[18px] leading-[20px] uppercase text-[#23243B] mb-[8px] overflow-hidden",title:e.title,style:{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",lineHeight:"20px",maxHeight:"60px"},children:[(0,s.jsx)("span",{className:"group-hover:hidden",children:B(e.title)}),(0,s.jsx)("span",{className:"hidden group-hover:block",children:e.title})]})}),(0,s.jsxs)("div",{className:"flex gap-[16px]",children:[e.url&&(0,s.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-[8px] border-b border-[#23243B] pb-[12px] hover:opacity-80 transition-opacity duration-300",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B]",children:"English"}),(0,s.jsx)(o.default,{src:"/images/tabler-icon.svg",alt:"",width:20,height:20})]}),e.url_fr&&(0,s.jsxs)("a",{href:e.url_fr,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-[8px] border-b border-[#23243B] pb-[12px] hover:opacity-80 transition-opacity duration-300",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B]",children:"Francais"}),(0,s.jsx)(o.default,{src:"/images/tabler-icon.svg",alt:"",width:20,height:20})]})]})]})},e.id))}):(0,s.jsxs)("div",{className:"text-center py-12",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#314F9D]",children:k}),(0,s.jsx)("p",{className:"opacity-80 text-[#38393A]",children:P})]})}),A&&!f&&!h&&(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsxs)("button",{onClick:()=>{w(e=>e+15)},className:"flex items-center justify-center gap-[8px] px-[16px] py-[8px] w-auto h-[39px] border border-[#23243B] rounded-[8px] bg-transparent hover:bg-[#23243B] hover:text-white transition-all duration-300 group",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B] group-hover:text-white",children:F}),(0,s.jsx)("div",{className:"flex items-center justify-center w-[20px] h-[20px]",children:(0,s.jsx)(o.default,{src:"/images/plus.svg",alt:"",width:20,height:20,className:"group-hover:filter group-hover:brightness-0 group-hover:invert"})})]})})]})})}},8440:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(9776),o=r(3145),c=r(9794),x=r(7562),d=r(9764),p=r(7795);r(7354),r(6968),t.default=e=>{let{lang:t,...r}=e,[m,f]=(0,a.useState)([]),[u,h]=(0,a.useState)(!0),[g,b]=(0,a.useState)(null),w=(0,a.useRef)(null),v=(0,n.i)("common","loading",t)||"Loading...",j=(0,n.i)("common","error",t)||"Error loading toolkits",y=(0,n.i)("toolkits","noToolkits",t)||"No toolkits found",N=(0,n.i)("toolkits","checkBack",t)||"Please check back later",_=(0,n.i)("common","seeAll",t)||"See all",k=(0,l.yP)(r,"title",t)||("fr"===t?"Bo\xeete \xe0 outils":"Toolkits");(0,a.useEffect)(()=>{!async function(){try{let e=await fetch("/api/toolkits");if(!e.ok)throw Error("Toolkits API Error (".concat(e.status,"): ").concat(e.statusText));let t=await e.json();if(!Array.isArray(t))throw Error("Invalid toolkits response format from API");f(t),b(null)}catch(e){console.error("Failed to load toolkits data:",e),b(e instanceof Error?e.message:"Failed to load toolkits data"),f([])}finally{h(!1)}}()},[]);let P=m.map(e=>({id:e.id,title:"fr"===t&&e.title_fr?e.title_fr:e.title,url:e.url?(0,i.AC)(e.url):"",url_fr:e.url_fr?(0,i.AC)(e.url_fr):"",permalink:e.permalink})),F=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:120;return e.length<=t?e:e.substring(0,t).trim()+"..."};return(0,s.jsx)("section",{id:"toolkits-slider",className:"py-[96px] px-[40px] bg-[#F3F3F2]",children:(0,s.jsxs)("div",{className:"mx-auto max-w-[1680px]",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center mb-[48px] max-w-[1404px] mx-auto",children:[(0,s.jsx)("h2",{className:"font-nunito-sans font-extrabold text-[36px] leading-[38px] uppercase text-[#314F9D]",children:(0,x.ZP)(k)}),(0,s.jsxs)(c.default,{href:"/toolkits",className:"flex items-center gap-[8px] border-b border-[#23243B] pb-[12px] hover:opacity-80 transition-opacity duration-300",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B]",children:_}),(0,s.jsx)("div",{className:"flex items-center justify-center",children:(0,s.jsx)(o.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13})})]})]}),(0,s.jsxs)("div",{className:"flex flex-col md:flex-row gap-[24px] md:gap-[40px] max-w-[1573px] mx-auto",children:[(0,s.jsx)("div",{className:"flex flex-row md:flex-col justify-center md:justify-end items-center md:items-start min-h-auto md:min-
1h-[250px] order-2 md:order-1",children:(0,s.jsxs)("div",{className:"flex flex-row md:flex-col space-x-[10px] md:space-x-0 md:space-y-[10px]",children:[(0,s.jsx)("button",{onClick:()=>{var e;null===(e=w.current)||void 0===e||e.slidePrev()},className:"w-[56px] h-[56px] flex items-center justify-center rounded-full bg-[rgba(56,56,56,0.6)] transition-all duration-300 hover:bg-[rgba(56,56,56,0.8)]","aria-label":(0,n.i)("common","previous",t)||"Previous",children:(0,s.jsx)("div",{className:"w-5 h-5 relative rotate-180 flex items-center justify-center",children:(0,s.jsx)(o.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{filter:"brightness(0) invert(1)"}})})}),(0,s.jsx)("button",{onClick:()=>{var e;null===(e=w.current)||void 0===e||e.slideNext()},className:"w-[56px] h-[56px] flex items-center justify-center rounded-full bg-[rgba(56,56,56,0.6)] transition-all duration-300 hover:bg-[rgba(56,56,56,0.8)]","aria-label":(0,n.i)("common","next",t)||"Next",children:(0,s.jsx)("div",{className:"w-5 h-5 relative flex items-center justify-center",children:(0,s.jsx)(o.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{filter:"brightness(0) invert(1)"}})})})]})}),(0,s.jsx)("div",{className:"flex-1 overflow-hidden order-1 md:order-2",children:u?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("div",{className:"inline-block w-8 h-8 border-4 border-[#314F9D]/30 border-t-[#314F9D] rounded-full animate-spin"}),(0,s.jsx)("p",{className:"mt-2 text-[#314F9D]",children:v})]}):g?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#E53E3E]",children:j}),(0,s.jsx)("p",{className:"mb-4 text-[#38393A]",children:g})]}):P.length>0?(0,s.jsx)("div",{className:"relative",children:(0,s.jsx)(d.tq,{modules:[p.W_,p.pt],spaceBetween:20,slidesPerView:1,breakpoints:{320:{slidesPerView:1,spaceBetween:20},768:{slidesPerView:2,spaceBetween:30},1024:{slidesPerView:2,spaceBetween:40},1200:{slidesPerView:3,spaceBetween:40},1400:{slidesPerView:3,spaceBetween:40}},onSwiper:e=>{w.current=e},autoplay:{delay:8e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},loop:!1,grabCursor:!0,className:"w-full",style:{overflow:"visible"},children:P.map(e=>(0,s.jsx)(d.o5,{children:(0,s.jsx)("div",{className:"flex-shrink-0 w-full h-[250px] bg-white border border-[#23243B] rounded-[8px] p-[16px] flex flex-col justify-end group",children:(0,s.jsxs)("div",{className:"flex flex-col justify-end",children:[(0,s.jsx)("div",{className:"mb-[16px]",children:(0,s.jsxs)("h3",{className:"font-nunito-sans font-extrabold text-[18px] leading-[20px] uppercase text-[#23243B] mb-[8px] overflow-hidden",title:e.title,style:{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",lineHeight:"20px",maxHeight:"60px"},children:[(0,s.jsx)("span",{className:"group-hover:hidden",children:F(e.title)}),(0,s.jsx)("span",{className:"hidden group-hover:block",children:e.title})]})}),(0,s.jsxs)("div",{className:"flex gap-[16px]",children:[e.url&&(0,s.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-[8px] border-b border-[#23243B] pb-[12px] hover:opacity-80 transition-opacity duration-300",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B]",children:"English"}),(0,s.jsx)(o.default,{src:"/images/tabler-icon.svg",alt:"",width:20,height:20})]}),e.url_fr&&(0,s.jsxs)("a",{href:e.url_fr,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-[8px] border-b border-[#23243B] pb-[12px] hover:opacity-80 transition-opacity duration-300",children:[(0,s.jsx)("span",{className:"font-barlow font-semibold text-[16px] leading-[23px] text-[#23243B]",children:"Francais"}),(0,s.jsx)(o.default,{src:"/images/tabler-icon.svg",alt:"",width:20,height:20})]})]})]})})},e.id))})}):(0,s.jsxs)("div",{className:"text-center py-12",children:[(0,s.jsx)("p",{className:"text-2xl mb-2 text-[#314F9D]",children:y}),(0,s.jsx)("p",{className:"opacity-80 text-[#38393A]",children:N})]})})]})]})})}},591:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562);let i=e=>
1{let{image:t,cardTitle:r,cardSubtitle:a,content:l,buttonLink:i,buttonText:o,index:c}=e,x=0===c;return(0,s.jsxs)("div",{className:"flex flex-col justify-end items-start p-6 w-full min-w-[280px] max-w-[607px] h-[320px] rounded-lg flex-1 bg-cover bg-center bg-no-repeat relative ".concat(t?"":x?"bg-[#314F9D]":"bg-[#78296B]"),style:t?{backgroundImage:"url(".concat(t,")")}:{},children:[t&&(0,s.jsx)("div",{className:"absolute inset-0 rounded-lg ".concat(x?"bg-[#314F9D]":"bg-[#78296B]"," bg-opacity-75")}),(0,s.jsxs)("div",{className:"flex flex-col items-start w-full relative z-10",children:[r&&(0,s.jsx)("h3",{className:"font-header font-extrabold text-2xl sm:text-3xl lg:text-[36px] leading-[38px] uppercase text-white",children:r}),a&&(0,s.jsx)("h4",{className:"font-header font-extrabold text-base sm:text-lg leading-5 tracking-[0.02em] uppercase text-white w-full mt-4",children:a}),l&&(0,s.jsx)("div",{className:"font-sans font-normal text-base leading-6 text-white w-full",children:(0,n.ZP)(l)}),o&&i&&(0,s.jsx)("a",{href:i,className:"flex justify-center items-center px-4 py-2 gap-2 min-w-[160px] h-[39px] border border-white rounded-lg hover:bg-white hover:text-[#314F9D] transition-all duration-200 group mt-4",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"font-sans font-semibold text-base leading-[23px] text-center text-white group-hover:text-[#314F9D] transition-colors duration-200",children:o}),(0,s.jsxs)("svg",{width:"14",height:"13",viewBox:"0 0 14 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"text-white group-hover:text-[#314F9D] transition-all duration-200 group-hover:translate-x-1",children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4746 6.50039C13.4746 6.14601 13.1873 5.85872 12.8329 5.85872H1.16628C0.811893 5.85872 0.524609 6.14601 0.524609 6.50039C0.524609 6.85477 0.811893 7.14206 1.16628 7.14206H12.8329C13.1873 7.14206 13.4746 6.85477 13.4746 6.50039Z",fill:"currentColor"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.54588 0.21333C6.2953 0.463917 6.2953 0.870198 6.54588 1.12078L11.9255 6.50039L6.54588 11.88C6.2953 12.1306 6.2953 12.5369 6.54588 12.7875C6.79647 13.038 7.20275 13.038 7.45334 12.7875L13.2867 6.95412C13.5373 6.70353 13.5373 6.29725 13.2867 6.04666L7.45334 0.21333C7.20275 -0.037256 6.79647 -0.037256 6.54588 0.21333Z",fill:"currentColor"})]})]})})]})]})};t.default=e=>{let{lang:t,...r}=e,[o,c]=(0,a.useState)(!1),x=(0,l.yP)(r,"title",t),d=[];if(Array.isArray(r.cards))d=r.cards;else if("fr"===t&&Array.isArray(r.cards_fr))d=r.cards_fr;else if("object"==typeof r.cards&&null!==r.cards)Array.isArray(r.cards.cards)&&(d=r.cards.cards);else if("string"==typeof r.cards)try{let e=JSON.parse(r.cards);Array.isArray(e)&&(d=e)}catch(e){console.error("Failed to parse cards JSON:",e)}return((0,a.useEffect)(()=>{c(!0)},[]),o)?(0,s.jsx)("section",{id:"two-col-cards-section",className:"py-[72px] px-[40px] pb-[96px] bg-[#F3F3F2]",children:(0,s.jsxs)("div",{className:"container mx-auto max-w-[1256px]",children:[x&&(0,s.jsx)("div",{className:"flex justify-center mb-12",children:(0,s.jsx)("h2",{className:"font-header font-extrabold text-lg leading-5 text-center tracking-[0.02em] uppercase text-[#314F9D] max-w-[594px]",children:(0,n.ZP)(x)})}),(0,s.jsx)("div",{className:"flex flex-col lg:flex-row items-stretch gap-8 lg:gap-[40px] w-full justify-center",children:d&&d.length>0?d.map((e,r)=>{let a=e.hasOwnProperty("card_title")?e:e.acf||e,n=(0,l.yP)(a,"image",t),o=(0,l.yP)(a,"card_title",t),c=(0,l.yP)(a,"card_subtitle",t),x=(0,l.yP)(a,"content",t),d=(0,l.yP)(a,"button_link",t),p=(0,l.yP)(a,"button_text",t);return(0,s.jsx)(i,{image:n,cardTitle:o,cardSubtitle:c,content:x,buttonLink:d,buttonText:p,index:r},"card-".concat(r))}):(0,s.jsx)("div",{className:"text-center py-8 w-full",children:"No cards found. Check browser console for debugging information."})})]})}):null}},9631:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(7562),o=r(1632),c=r(9794);let x=e=>e&&""!==e&&"false"!==e&&"null"!==e&&"undefined"!==e&&("string"!=typeof e||""!==e.trim())?"string"==typeof e?e:String(e):null,d=e=>{if(!e||""===e||"false"===e||"null"===e||"undefined"===e||!1===e||null==e||"string"==typeof e&&""===e.trim())return null;let t="string"==typeof e?e.trim():String(e);return"false"===t||"null"===t||"undefined"===t||"0"===t||"false"===t||""===t?null:t.startsWith("http://")||t.startsWith("https://")||t.startsWith("/")?t:null},p=e=>"boolean"==typeof e?e:"string"==typeof e?"true"===e.toLowerCase()||"1"===e:"number"==typeof e&&1===e,m=e=>!!e&&(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("mailto:")||e.startsWith("tel:")),f=e=>{if(!e)return{html:"",hasReadMore:!1};if(e.split(/\s+/).length<=55)return{html:e,hasReadMore:!1};let t=e.split(/\s+/).slice(0,55).join(" "),r=t.match(/[^.!?]*[.!?][^<>]*$/);return{html:r?t.slice(0,r.index)+r[0]+" ...":t+" ...",hasReadMore:!0,fullContent:e}};t.default=e=>{let{lang:t,...r}=e,[u,h]=(0,a.useState)(!1),[g,b]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{h(!0)},[]),!u)return null;let w=x((0,l.yP)(r,"title",t)),v=x((0,l.yP)(r,"content",t)),j=d((0,l.yP)(r,"image",t)),y=p(r.reversed),N=x((0,l.yP)(r,"button_text",t)),_=x((0,l.yP)(r,"button_link",t)),
1k=x(r.title_font_size),P=x(r.title_line_height),F=p((0,l.yP)(r,"read_more",t)),C=p((0,l.yP)(r,"stylized",t)),S=F?f(v||void 0):{html:v||"",hasReadMore:!1},D=g&&S.fullContent?S.fullContent:S.html,E=!!(N&&_),A=(0,n.i)("common","readMoreUpper",t)||"READ MORE",B=w&&w?w.replace(/^<p[^>]*>|<\/p>$/g,""):"",L={};if(k){let e="string"==typeof k&&k.includes("px")?"".concat(.6*parseInt(k),"px"):k;if(L.fontSize="clamp(".concat(e,", 4vw, ").concat(k,")"),P){let e="string"==typeof P&&P.includes("px")?"".concat(.6*parseInt(P),"px"):P;L.lineHeight="clamp(".concat(e,", 4vw, ").concat(P,")")}}else P&&(L.lineHeight=P);return C?(0,s.jsxs)("section",{id:"two-col-image-content",className:"relative pt-8 sm:pt-12 md:pt-16 lg:pt-[133px] mb-4 sm:mb-6 md:mb-8 lg:mb-[40px] pr-2 sm:pr-4 md:pr-6 lg:pr-[40px] pb-0 pl-0",children:[(0,s.jsx)("div",{className:"absolute w-[1506px] ".concat(y?"right-0":"left-0"," bg-[rgba(218,217,214,0.2)] hidden md:block"),style:{height:"calc(100% - 93px)",bottom:"-40px",top:"unset",borderRadius:y?"0px 0px 0px 20px":"0px 0px 20px 0px"}}),(0,s.jsx)("div",{className:"container mx-auto max-w-[1396px] relative z-10",children:(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row justify-center items-center ".concat(j?"gap-6 sm:gap-8 md:gap-12 lg:gap-[138px]":"gap-0"),children:[j&&(0,s.jsx)("div",{className:"w-full lg:w-[680px] flex-shrink-0 order-1 lg:".concat(y?"order-1":"order-2"," lg:-mt-[70px]"),children:(0,s.jsx)("div",{className:"w-full max-w-[680px] h-[200px] sm:h-[250px] md:h-[300px] lg:h-[490px] mx-auto lg:mx-0 overflow-hidden rounded-[8px]",children:j&&"false"!==j&&"null"!==j&&"undefined"!==j&&j.length>0&&(j.startsWith("http")||j.startsWith("/"))?(0,s.jsx)(o.Z,{src:j,alt:"",width:680,height:490,className:"object-cover w-full h-full",sizes:"(max-width: 768px) 100vw, (max-width: 1024px) 680px, 680px"}):(0,s.jsx)("div",{className:"w-full h-full bg-gray-200 flex items-center justify-center",children:(0,s.jsx)("span",{className:"text-gray-500",children:"No image available"})})})}),(0,s.jsxs)("div",{className:"w-full ".concat(j?"lg:w-[578px]":"lg:w-full lg:max-w-[800px]"," flex flex-col gap-3 sm:gap-4 md:gap-6 lg:gap-[32px] pt-4 sm:pt-6 md:pt-8 lg:pt-[52px] px-5 order-2 lg:").concat(y?"order-2":"order-1"),children:[B&&(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("h2",{className:"font-header font-light leading-[1] uppercase text-[#314F9D] text-center lg:text-left [&_strong]:font-bold [&_strong]:text-[#23243B] [&_strong]:tracking-[0.02em] [&_b]:font-bold [&_b]:text-[#23243B] [&_b]:tracking-[0.02em] ".concat(k?""
1:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl xl:text-6xl 2xl:text-[72px]"),style:L,children:(0,i.ZP)(B)})}),D&&(0,s.jsxs)("div",{className:"w-full flex flex-col items-start",children:[(0,s.jsx)("div",{className:"text-[#1D1D1B] text-[16px] sm:text-[16px] leading-[22px] sm:leading-[24px] text-center lg:text-left font-sans w-full max-sm:text-[16px] max-sm:leading-[24px] two-col-image-content [&_h3]:font-header [&_h3]:text-2xl [&_h3]:sm:text-3xl [&_h3]:md:text-4xl [&_h3]:lg:text-[36px] [&_h3]:font-light [&_h3]:leading-[1.2] [&_h3]:uppercase [&_h3]:text-[#314F9D] [&_h3]:text-center [&_h3]:lg:text-left [&_h3_strong]:font-bold [&_h3_strong]:text-[#23243B] [&_h3_strong]:tracking-[0.02em] [&_h3_b]:font-bold [&_h3_b]:text-[#23243B] [&_h3_b]:tracking-[0.02em]",children:(0,i.ZP)(D)}),F&&S.hasReadMore&&!g&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)("button",{onClick:()=>b(!0),className:"inline-flex justify-center items-center font-sans text-base font-semibold text-[#23243B]",children:A})})]}),E&&_&&(0,s.jsx)("div",{className:"flex justify-center lg:justify-start",children:m(_)?(0,s.jsx)("a",{href:_,target:"_blank",rel:"noopener noreferrer",className:"inline-flex justify-center items-center px-4 py-2 bg-[#F58720] hover:bg-[#B93C95] rounded-lg transition-all duration-300 group",children:(0,s.jsx)("span",{className:"font-sans text-base font-semibold text-[#23243B] group-hover:text-white transition-colors duration-300 relative pr-6 after:content-[''] after:absolute after:right-0 after:top-1/2 after:-translate-y-1/2 after:w-[13px] after:h-[13px] after:bg-[url('/images/arrow-right.svg')] group-hover:after:bg-[url('/images/arrow-right-white.svg')] after:bg-contain after:bg-no-repeat after:transition-all after:duration-300 group-hover:after:translate-x-1",children:N})}):(0,s.jsx)(c.default,{href:_,className:"inline-flex justify-center items-center px-4 py-2 bg-[#F58720] hover:bg-[#B93C95] rounded-lg transition-all duration-300 group",children:(0,s.jsx)("span",{className:"font-sans text-base font-semibold text-[#23243B] group-hover:text-white transition-colors duration-300 relative pr-6 after:content-[''] after:absolute after:right-0 after:top-1/2 after:-translate-y-1/2 after:w-[13px] after:h-[13px] after:bg-[url('/images/arrow-right.svg')] group-hover:after:bg-[url('/images/arrow-right-white.svg')] after:bg-contain after:bg-no-repeat after:transition-all after:duration-300 group-hover:after:translate-x-1",children:N})})})]})]})})]}):(0,s.jsx)("section",{id:"two-col-image-content",className:"pt-12 sm:pt-16 md:pt-20 lg:pt-[70px] px-4 sm:px-6 md:px-8 lg:px-[40px] pb-12 sm:pb-16 md:pb-20 lg:pb-[106px]",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1251px]",children:(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row justify-between items-center lg:items-center ".concat(j?"gap-6 sm:gap-8 md:gap-12 lg:gap-[125px] xl:gap-[149px]":"gap-0"),children:[(0,s.jsxs)("div",{className:"w-full ".concat(j?"lg:w-auto lg:max-w-[639px]":"lg:w-full lg:max-w-[800px]"," flex flex-col gap-4 sm:gap-6 md:gap-8 lg:gap-[47px] ").concat(y?"order-2 lg:order-2":"order-2 lg:order-1"),children:[B&&(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("h2",{className:"font-header font-light leading-[1] uppercase text-[#314F9D] text-center lg:text-left [&_strong]:font-bold [&_strong]:text-[#23243B] [&_strong]:tracking-[0.02em] [&_b]:font-bold [&_b]:text-[#23243B] [&_b]:tracking-[0.02em] ".concat(k?""
1:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl xl:text-6xl 2xl:text-[72px]"),style:L,children:(0,i.ZP)(B)})}),D&&(0,s.jsxs)("div",{className:"w-full ".concat(j?"lg:max-w-[499px]":"lg:max-w-full"," flex flex-col items-start"),children:[(0,s.jsx)("div",{className:"text-[#1D1D1B] text-[16px] sm:text-[18px] leading-[20px] sm:leading-[22px] text-center lg:text-left font-sans w-full max-sm:text-[16px] max-sm:leading-[24px] [&_h3]:font-header [&_h3]:text-2xl [&_h3]:sm:text-3xl [&_h3]:md:text-4xl [&_h3]:lg:text-[36px] [&_h3]:font-light [&_h3]:leading-[1.2] [&_h3]:uppercase [&_h3]:text-[#314F9D] [&_h3]:text-center [&_h3]:lg:text-left [&_h3_strong]:font-bold [&_h3_strong]:text-[#23243B] [&_h3_strong]:tracking-[0.02em] [&_h3_b]:font-bold [&_h3_b]:text-[#23243B] [&_h3_b]:tracking-[0.02em]",children:(0,i.ZP)(D)}),F&&S.hasReadMore&&!g&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)("button",{onClick:()=>b(!0),className:"inline-flex justify-center items-center font-sans text-base font-semibold text-[#23243B]",children:A})})]}),E&&_&&(0,s.jsx)("div",{className:"flex justify-center lg:justify-start",children:m(_)?(0,s.jsx)("a",{href:_,target:"_blank",rel:"noopener noreferrer",className:"inline-flex justify-center items-center px-4 py-2 bg-[#F58720] hover:bg-[#B93C95] rounded-lg transition-all duration-300 group",children:(0,s.jsx)("span",{className:"font-sans text-base font-semibold text-[#23243B] group-hover:text-white transition-colors duration-300 relative pr-6 after:content-[''] after:absolute after:right-0 after:top-1/2 after:-translate-y-1/2 after:w-[13px] after:h-[13px] after:bg-[url('/images/arrow-right.svg')] group-hover:after:bg-[url('/images/arrow-right-white.svg')] after:bg-contain after:bg-no-repeat after:transition-all after:duration-300 group-hover:after:translate-x-1",children:N})}):(0,s.jsx)(c.default,{href:_,className:"inline-flex justify-center items-center px-4 py-2 bg-[#F58720] hover:bg-[#B93C95] rounded-lg transition-all duration-300 group",children:(0,s.jsx)("span",{className:"font-sans text-base font-semibold text-[#23243B] group-hover:text-white transition-colors duration-300 relative pr-6 after:content-[''] after:absolute after:right-0 after:top-1/2 after:-translate-y-1/2 after:w-[13px] after:h-[13px] after:bg-[url('/images/arrow-right.svg')] group-hover:after:bg-[url('/images/arrow-right-white.svg')] after:bg-contain after:bg-no-repeat after:transition-all after:duration-300 group-hover:after:translate-x-1",children:N})})})]}),j&&(0,s.jsx)("div",{className:"w-full lg:w-auto lg:max-w-[493px] flex-shrink-0 ".concat(y?"order-1 lg:order-1":"order-1 lg:order-2"),children:(0,s.jsx)("div",{className:"w-full max-w-[493px] h-[250px] sm:h-[300px] md:h-[350px] lg:h-[552px] mx-auto lg:mx-0 overflow-hidden rounded-[8px]",children:j&&"false"!==j&&"null"!==j&&"undefined"!==j&&j.length>0&&(j.startsWith("http")||j.startsWith("/"))?(0,s.jsx)(o.Z,{src:j,alt:"",width:493,height:552,className:"object-cover w-full h-full",sizes:"(max-width: 768px) 100vw, (max-width: 1024px) 493px, 493px"}):(0,s.jsx)("div",{className:"w-full h-full bg-gray-200 flex items-center justify-center",children:(0,s.jsx)("span",{className:"text-gray-500",children:"No image available"})})})})]})})})}},5652:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562),i=r(257);let o=e=>{if(!e)return e;for(let t of["https://new-api.ccdi.ca",i.env.NEXT_PUBLIC_WORDPRESS_API_URL,i.env.WORDPRESS_API_URL].filter(e=>!!e))if(e.startsWith(t)){let r=e.replace(t,"");return r.startsWith("/")?r:"/".concat(r)}return e},c=()=>({replace:e=>{if(e instanceof n.W_&&"a"===e.name){var t;let r=null===(t=e.attribs)||void 0===t?void 0:t.href;if(r){let t=o(r);t!==r&&(e.attribs.href=t)}}}});t.default=e=>{let{lang:t,...r}=e,[i,o]=(0,a.useState)(!1),[x,d]=(0,a.useState)(!1),[p,m]=(0,a.useState)({}),[f,u]=(0,a.useState)("desktop"),h=(0,a.useRef)(null),g=(0,a.useRef)(null),b=(0,a.useRef)(null),w=c();(0,a.useEffect)(()=>{let e=()=>{let e=window.innerWidth;e<640?u("mobile"):e<768?u("tablet"):u("desktop")};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let v=(0,a.useCallback)(()=>({top:200,bottom:200,left:0,right:40}),[]),j=(0,a.useCallback)(()=>
1{if(!h.current||!g.current||!b.current)return;let e=h.current,t=g.current,r=b.current,s=v(),a=e.getBoundingClientRect(),l=t.getBoundingClientRect(),n=window.innerHeight,i=r.offsetHeight;if("desktop"!==f||!(a.top<=n&&a.bottom>=0)){d(!1),m({});return}a.top,s.top,a.bottom,s.bottom;let o=l.top,c=l.bottom,x=n/2,p=c<=x+i/2;o<=x-i/2&&!p?(d(!0),m({position:"fixed",top:"50%",transform:"translateY(-50%)",left:"".concat(l.left,"px"),width:"".concat(l.width,"px"),zIndex:10})):p?(d(!1),m({position:"absolute",bottom:"0",left:"0",transform:"none",width:"100%",zIndex:10})):(d(!1),m({position:"absolute",top:"0",left:"0",transform:"none",width:"100%",zIndex:10}))},[f,v]);if((0,a.useEffect)(()=>(o(!0),window.addEventListener("scroll",j,{passive:!0}),j(),()=>{window.removeEventListener("scroll",j)}),[j]),!i)return null;let y=(0,l.yP)(r,"title",t),N=(0,l.yP)(r,"main_content",t),_=(0,l.yP)(r,"subtitle",t),k=(0,l.yP)(r,"sub_content",t),P=(0,l.yP)(r,"left_content",t),F=e=>e?e.replace(/<\/?p>/g,""):"",C=F(y||""),S=F(_||"");return(0,s.jsx)("section",{ref:h,id:"two-col-ind",className:"py-[200px] px-[40px] pl-0 md:overflow-visible relative",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1680px] relative z-10 flex flex-wrap",children:(0,s.jsxs)("div",{className:"flex flex-col md:flex-row gap-6 md:gap-[80px] w-full",children:[P&&(0,s.jsx)("div",{ref:g,className:"flex-0 relative w-full md:w-[45%] md:min-w-[45%] mt-10 md:mt-0 order-2 md:order-1",style:{minHeight:"100vh"},children:(0,s.jsx)("div",{ref:b,style:p,children:(0,s.jsx)("div",{className:"font-sans text-sm sm:text-base md:text-[16px] leading-[20px] md:leading-[24px] text-[#1D1D1B] [&_img]:rounded-lg [&_img]:max-w-full [&_img]:h-auto",children:(0,n.ZP)(P,w)})})}),(0,s.jsxs)("div",{className:"w-full md:w-[55%] md:flex-shrink-1 md:flex-grow-1 lg:max-w-[780px] order-1 md:order-2 two-col-ind-content md:px-0 px-[20px]",children:[C&&(0,s.jsx)("h2",{className:"font-header text-4xl sm:text-5xl md:text-[64px] font-light leading-tight md:leading-[72px] text-[#314F9D] uppercase strong-override-blue",children:(0,n.ZP)(C,w)}),N&&(0,s.jsx)("div",{className:"mt-[10px]",children:(0,s.jsx)("div",{className:"font-sans text-base sm:text-lg md:text-[20px] leading-[24px] md:leading-[32px] text-[#1D1D1B] [&_img]:rounded-lg [&_img]:max-w-full [&_img]:h-auto",children:(0,n.ZP)(N,w)})}),S&&(0,s.jsx)("div",{className:"mt-[96px] md:mt-[96px] sm:mt-[60px] strong-override-blue",children:(0,s.jsx)("h3",{className:"font-header text-2xl sm:text-3xl md:text-[36px] font-light leading-tight md:leading-[38px] text-[#314F9D] uppercase",children:(0,n.ZP)(S,w)})}),k&&(0,s.jsx)("div",{className:"mt-[24px]",children:(0,s.jsx)("div",{className:"two-col-ind-sub-content font-sans text-sm sm:text-base md:text-[16px] leading-[20px] md:leading-[24px] text-[#1D1D1B] [&_img]:rounded-lg [&_img]:max-w-full [&_img]:h-auto",children:(0,n.ZP)(k,w)})})]})]})})})}},7993:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(9794),o=r(7562),c=r(1632);t.default=e=>{let{lang:t,...r}=e,[x,d]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{d(!0)},[]),!x)return null;let p=(0,l.yP)(r,"image_1",t),m=(0,l.yP)(r,"image_2",t),f=(0,l.yP)(r,"image_3",t),u=(0,l.yP)(r,"title",t),h=(0,l.yP)(r,"content",t),g=(0,l.yP)(r,"button_url",t)||"#",b=(0,l.yP)(r,"button_text",t)||(0,n.i)("common","learnMoreUpper",t)||"Learn More",w=!!(r.button_text||r.button_url);return(0,s.jsx)("section",{id:"two-col-masonry-content",className:"py-10 px-4 sm:py-12 md:pt-[72px] md:pr-[40px] md:pb-[16px] md:pl-[40px]",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1406px]",children:(0,s.jsxs)("div",{className:"flex flex-col 2xl:flex-row md:gap-8 lg:gap-[137px]",children:[(0,s.jsx)("div",{className:"hidden 2xl:block w-full 2xl:w-[calc(60%-68.5px)] md:min-w-[400px] lg:min-w-[500px] 2xl:min-w-0 relative",children:(0,s.jsxs)("div",{className:"flex justify-center flex-col items-center md:items-start md:flex-row lg:flex-row 2xl:flex-row md:gap-[40px] gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-[24px] w-full md:w-auto md:pt-[138px] lg:pt-[138px] 2xl:pt-[138px] md:flex-shrink-0",children:[p&&(0,s.jsx)("div",{className:"relative w-full max-w-[272px] min-w-[200px] h-[200px] sm:h-[272px] md:w-[272px] overflow-hidden mx-auto md:mx-0 rounded-[8px]",children:(0,s.jsx)(c.Z,{src:p,alt:"",fill:!0,className:"object-cover",sizes:"(max-width: 768px) 272px, 272px"})}),m&&(0,s.jsx)("div",{className:"relative w-full max-w-[272px] min-w-[200px] h-[200px] sm:h-[272px] md:w-[272px] overflow-hidden mx-auto md:mx-0 rounded-[8px]",children:(0,s.jsx)(c.Z,{src:m,alt:"",fill:!0,className:"object-cover",sizes:"(max-width: 768px) 272px, 272px"})})]}),f&&(0,s.jsx)("div",{className:"relative flex-shrink-0 flex-grow-0
1w-full max-w-[410px] min-w-[200px] h-[300px] sm:h-[400px] md:h-[547px] md:w-[410px] overflow-hidden mx-auto md:mx-0 mt-4 md:mt-0 lg:mt-0 2xl:mt-0 rounded-[8px]",children:(0,s.jsx)(c.Z,{src:f,alt:"",fill:!0,className:"object-cover",sizes:"(max-width: 768px) 100vw, (max-width: 1024px) 410px, 410px"})})]})}),(0,s.jsxs)("div",{className:"w-full 2xl:w-[calc(40%-68.5px)] mt-10 md:mt-10 2xl:mt-0",children:[u&&(0,s.jsx)("div",{className:"mt-8 md:mt-0 2xl:pt-[127px] lg:pt-[60px] md:pt-[40px]",children:(0,s.jsx)("h2",{className:"font-header text-4xl sm:text-5xl md:text-6xl lg:text-[72px] font-light leading-[1] text-[#314F9D] text-center md:text-left",children:(0,o.ZP)(u)})}),h&&(0,s.jsx)("div",{className:"mt-6 md:mt-[24px]",children:(0,s.jsx)("div",{className:"masonry-content text-[#424242] text-base sm:text-lg md:text-[20px] leading-[28px] md:leading-[32px] text-center md:text-left",children:(0,o.ZP)(h)})}),w&&(0,s.jsx)("div",{className:"mt-8 md:mt-[48px] flex justify-center md:justify-start",children:(0,s.jsx)(i.default,{href:g,className:"inline-flex justify-center items-center px-4 py-2 bg-[#F58720] hover:bg-[#B93C95] rounded-lg transition-all duration-300 group",children:(0,s.jsx)("span",{className:"font-sans text-base font-semibold text-[#23243B] group-hover:text-white transition-colors duration-300 relative pr-6 after:content-[''] after:absolute after:right-0 after:top-1/2 after:-translate-y-1/2 after:w-[13px] after:h-[13px] after:bg-[url('/images/arrow-right.svg')] group-hover:after:bg-[url('/images/arrow-right-white.svg')] after:bg-contain after:bg-no-repeat after:transition-all after:duration-300 group-hover:after:translate-x-1",children:b})})})]})]})})})}},6231:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562),i=r(1632);t.default=e=>{let{lang:t,...r}=e,[o,c]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{c(!0)},[]),!o)return null;let x=(0,l.yP)(r,"image_1",t),d=(0,l.yP)(r,"image_2",t),p=(0,l.yP)(r,"image_3",t),m=(0,l.yP)(r,"title",t),f=(0,l.yP)(r,"content",t);return(0,s.jsx)("section",{id:"two-col-masonry-content-classic",className:"pt-24 px-10 pb-12",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1464px]",children:(0,s.jsxs)("div",{className:"flex flex-col xl:flex-row gap-6 xl:gap-10",children:[(0,s.jsx)("div",{className:"w-full xl:w-[780px] flex-shrink-0",children:(0,s.jsxs)("div",{className:"flex flex-col md:flex-row gap-6 md:gap-10",children:[x&&(0,s.jsx)("div",{className:"relative w-full md:w-[370px] h-[300px] md:h-[472px] overflow-hidden rounded-[8px]",children:(0,s.jsx)(i.Z,{src:x,alt:"",fill:!0,className:"object-cover",sizes:"(max-width: 768px) 100vw, 370px"})}),(0,s.jsxs)("div",{className:"w-full md:w-[370px] flex flex-col gap-9",children:[d&&(0,s.jsx)("div",{className:"relative w-full md:w-[232px] h-[200px] md:h-[218px] overflow-hidden rounded-[8px] mx-auto md:mx-0",children:(0,s.jsx)(i.Z,{src:d,alt:"",fill:!0,className:"object-cover",sizes:"(max-width: 768px) 232px, 232px"})}),p&&(0,s.jsx)("div",{className:"relative w-full md:w-[370px] h-[250px] md:h-[305px] overflow-hidden rounded-[8px]",children:(0,s.jsx)(i.Z,{src:p,alt:"",fill:!0,className:"object-cover",sizes:"(max-width: 768px) 100vw, 370px"})})]})]})}),(0,s.jsxs)("div",{className:"w-full xl:w-[644px] mt-8 xl:mt-0 flex flex-col gap-6",children:[m&&(0,s.jsx)("div",{children:(0,s.jsx)("h2",{className:"font-header text-4xl sm:text-5xl md:text-6xl lg:text-[64px] font-light leading-[1.12] text-[#314F9D] text-center md:text-left uppercase",children:(0,n.ZP)(m)})}),f&&(0,s.jsx)("div",{className:"mt-2 md:mt-8",children:(0,s.jsx)("div",{className:"text-[#23243B] text-base sm:text-lg md:text-[18px] leading-[22px] text-center md:text-left",children:(0,n.ZP)(f)})})]})]})})})}},488:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562),i=r(1632);t.default=e=>{let{lang:t,...r}=e,[o,c]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{c(!0)},[]),!o)return null;let x=(0,l.yP)(r,"image_1",t),d=(0,l.yP)(r,"image_2",t),p=(0,l.yP)(r,"image_3",t),m=(0,l.yP)(r,"title",t),f=(0,l.yP)(r,"content",t);return(0,s.jsx)("section",{id:"two-col-masonry-content-gida-variant",className:"py-24 px-4 sm:px-6 lg:px-10",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1464px]",children:(0,s.jsxs)("div",{className:"flex flex-col 2xl:flex-row items-center gap-6 2xl:gap-10",children:[(0,s.jsx)("div",{className:"w-full 2xl:w-[780p
1x] flex-shrink-0",children:(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row items-center justify-center 2xl:justify-start gap-6 lg:gap-10",children:[(0,s.jsxs)("div",{className:"hidden lg:flex w-full lg:w-[370px] flex-col items-center lg:items-end justify-center gap-6 lg:gap-9",children:[x&&(0,s.jsx)("div",{className:"relative w-full max-w-[232px] lg:w-[232px] h-[180px] sm:h-[200px] lg:h-[218px] overflow-hidden rounded-[8px] flex-shrink-0",children:(0,s.jsx)(i.Z,{src:x,alt:"",fill:!0,className:"object-cover",sizes:"(max-width: 768px) 232px, 232px"})}),d&&(0,s.jsx)("div",{className:"relative w-full max-w-[370px] lg:w-[370px] h-[250px] sm:h-[280px] lg:h-[305px] overflow-hidden rounded-[8px] flex-shrink-0",children:(0,s.jsx)(i.Z,{src:d,alt:"",fill:!0,className:"object-cover",sizes:"(max-width: 768px) 370px, 370px"})})]}),p&&(0,s.jsx)("div",{className:"w-full lg:w-[370px] flex justify-center lg:justify-start items-center",children:(0,s.jsx)("div",{className:"relative w-full max-w-[370px] lg:w-[370px] h-[350px] sm:h-[400px] lg:h-[472px] overflow-hidden rounded-[8px] flex-shrink-0",children:(0,s.jsx)(i.Z,{src:p,alt:"",fill:!0,className:"object-cover",sizes:"(max-width: 768px) 370px, 370px"})})})]})}),(0,s.jsxs)("div",{className:"w-full 2xl:w-[644px] mt-8 2xl:mt-0 flex flex-col justify-center gap-6 2xl:gap-8",children:[m&&(0,s.jsx)("div",{children:(0,s.jsx)("h2",{className:"font-header text-3xl sm:text-4xl md:text-5xl lg:text-6xl 2xl:text-[64px] font-light leading-[1.12] text-[#314F9D] text-center 2xl:text-left uppercase strong-override-blue",children:(0,n.ZP)(m)})}),f&&(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"text-[#23243B] text-base sm:text-lg md:text-[18px] leading-[22px] text-center 2xl:text-left",children:(0,n.ZP)(f)})})]})]})})})}},8773:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562),i=r(3145);t.default=e=>{let{lang:t,...r}=e,[o,c]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{c(!0)},[]),!o)return null;let x=(0,l.yP)(r,"image_1",t)||"",d=(0,l.yP)(r,"image_2",t)||"",p=(0,l.yP)(r,"content_1",t)||"",m=(0,l.yP)(r,"image_3",t)||"",f=(0,l.yP)(r,"content_2",t)||"",u=(0,l.yP)(r,"button",t)||"",h=r.acf||r,g="fr"===t&&h.button_link_fr?h.button_link_fr:h.button_link||"#",b=[];if(Array.isArray(r.points))b=r.points;else if("object"==typeof r.points&&null!==r.points)Array.isArray(r.points.points)&&(b=r.points.points);else if("string"==typeof r.points)try{let e=JSON.parse(r.points);Array.isArray(e)&&(b=e)}catch(e){console.error("Failed to parse points JSON:",e)}let w=!!u;return(0,s.jsx)("section",{id:"two-col-practitioner",className:"pt-0 px-4 sm:pr-0 pb-[60px] pt-[24px] sm:pb-[96px] sm:pt-[48px] sm:pl-[40px] md:pl-[100px] lg:pl-[212px]",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1480px]",children:(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row lg:gap-8 xl:gap-[153px]",children:[(0,s.jsxs)("div",{className:"w-full lg:w-auto lg:max-w-[400px] xl:max-w-[500px] flex-shrink-1 lg:flex-shrink-1",children:[(0,s.jsxs)("div",{className:"mt-[0px] lg:mt-[187px]",children:[(0,s.jsxs)("div",{className:"block sm:hidden lg:block",children:[(0,s.jsx)("div",{className:"flex justify-center",children:x&&(0,s.jsx)("div",{className:"relative w-full max-w-[280px] lg:max-w-[400px] xl:max-w-[500px]",children:(0,s.jsx)(i.default,{src:x,width:279,height:373,className:"w-[240px] h-[320px] lg:w-[279px] lg:h-[373px] mx-auto rounded-lg object-cover",priority:!0,alt:"Practitioner visual representation 1"})})}),(0,s.jsx)("div",{className:"hidden lg:block mt-[142px] flex justify-center",children:d&&(0,s.jsx)("div",{className:"relative w-full max-w-[400px] xl:max-w-[500px]",children:(0,s.jsx)(i.default,{src:d,width:500,height:300,className:"w-full h-[200px] lg:h-[300px] max-w-[500px] rounded-lg object-cover",alt:"Practitioner visual representation 2"})})})]}),(0,s.jsx)("div",{className:"hidden sm:block lg:hidden",children:(0,s.jsxs)("div",{className:"flex justify-center gap-4 md:gap-6",children:[x&&(0,s.jsx)("div",{className:"relative flex-1 max-w-[180px] md:max-w-[220px]",children:(0,s.jsx)(i.default,{src:x,width:279,height:373,className:"w-full h-[200px] md:h-[240px] rounded-lg object-cover",priority:!0,alt:"Practitioner visual representation 1"})}),d&&(0,s.jsx)("div",{className:"relative flex-1 max-w-[180px] md:max-w-[250px]",children:(0,s.jsx)(i.default,{src:d,width:500,height:300,className:"w-full h-[150px] md:h-[180px] rounded-lg object-cover",alt:"Practitioner visual representation 2"})})]})})]}),p&&(0,s.jsx)("div",{className:"mt-[30px] sm:mt-[40px] lg:mt-[48px]",children:(0,s.jsx)("div",{className:"font-sans text-base leading-6 text-[#23243B] [&_a]:font-barlow [&_a]:font-semibold [&_a]:text-base [&_a]:leading-[19px] [&_a]:underline [&_a]:text-[#314F9D] [&_a]:flex-none [&_a]:order-0 [&_a]:self-stretch [&_a]:flex-grow-0 [&_h2]:font-header [&_h2]:font-light [&_h2]:leading-[1] [&_h2]:uppercase [&_h2]:text-[#314F9D] [&_h2]:text-center [&_h2]:lg:text-left [&_h2_strong]:font-bold [&_h2_strong]:text-[#23243B] [&_h2_strong]:tracking-[0.02em] [&_h2_b]:font-bold [&_h2_b]:text-[#23243B] [&_h2_b]:tracking-[0.02em] [&_h2]:mb-6 [&_h2]:text-[36px]",children:(0,n.ZP)(p
1)})})]}),(0,s.jsxs)("div",{className:"w-[66%] mt-10 lg:mt-0 lg:flex-shrink-0 max-w-[832px]",children:[m&&(0,s.jsx)("div",{className:"relative w-full",children:(0,s.jsx)(i.default,{src:m,width:1e3,height:500,className:"w-full h-[300px] sm:h-[400px] lg:h-[505px] max-w-[832px] rounded-lg object-cover",priority:!0,alt:"Practitioner main visual"})}),f&&(0,s.jsx)("div",{className:"mt-[40px] sm:mt-[60px] md:mt-[80px] lg:mt-[96px] flex flex-col items-start gap-4 max-w-[606px]",children:(0,s.jsx)("div",{className:"font-sans text-base leading-6 text-[#23243B] [&_h2]:font-header [&_h2]:font-light [&_h2]:leading-[1] [&_h2]:uppercase [&_h2]:text-[#314F9D] [&_h2]:text-center [&_h2]:lg:text-left [&_h2_strong]:font-bold [&_h2_strong]:text-[#23243B] [&_h2_strong]:tracking-[0.02em] [&_h2_b]:font-bold [&_h2_b]:text-[#23243B] [&_h2_b]:tracking-[0.02em] [&_h2]:mb-6 [&_h2]:text-[36px]",children:(0,n.ZP)(f)})}),b&&b.length>0&&(0,s.jsx)("div",{className:"mt-[30px] sm:mt-[40px] lg:mt-[48px] w-full max-w-[606px]",children:(0,s.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-y-[24px] gap-x-[20px] sm:gap-x-[24px] lg:gap-x-[36px]",children:b.map((e,r)=>{let a=e.hasOwnProperty("title")?e:e.acf||e,l="fr"===t&&a.title_fr?a.title_fr:a.title||"",i="fr"===t&&a.subtitle_fr?a.subtitle_fr:a.subtitle||"",o="fr"===t&&a.content_fr?a.content_fr:a.content||"";return(0,s.jsxs)("div",{className:"flex flex-col w-full min-w-[250px] sm:min-w-[285px]",children:[l&&(0,s.jsx)("div",{className:"font-sans font-normal text-lg leading-[22px] text-[#F58720]",children:l}),(0,s.jsx)("div",{className:"mt-[20px] h-[1px] w-full bg-[#1D1D1B]"}),i&&(0,s.jsx)("div",{className:"mt-[20px] font-sans font-semibold text-lg leading-[22px] text-[#1D1D1B]",children:i}),o&&(0,s.jsx)("div",{className:"mt-[10px] font-sans font-normal text-base leading-6 text-[#1D1D1B]",children:(0,n.ZP)(o)})]},"point-".concat(r))})})}),w&&(0,s.jsx)("div",{className:"mt-[30px] sm:mt-[40px] lg:mt-[48px] flex justify-center max-w-[606px]",children:(0,s.jsx)("a",{href:g,className:"flex justify-center items-center py-2 px-4 gap-2 w-auto h-[39px] border border-[#23243B] rounded-lg transition-all duration-300 hover:bg-[#23243B]/5","aria-label":u,children:(0,s.jsx)("span",{className:"font-sans font-semibold text-base leading-[23px] text-[#23243B]",children:u})})})]})]})})})}},7097:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(7562);let o=e=>{if(!e)return{html:"",hasReadMore:!1};if(e.split(/\s+/).length<=55)return{html:e,hasReadMore:!1};let t=e.split(/\s+/).slice(0,55).join(" "),r=t.match(/[^.!?]*[.!?][^<>]*$/);return{html:r?t.slice(0,r.index)+r[0]+" ...":t+" ...",hasReadMore:!0,fullContent:e}},c=e=>"boolean"==typeof e?e:"string"==typeof e?"true"===e.toLowerCase()||"1"===e:"number"==typeof e&&1===e;t.default=e=>{let{lang:t,...r}=e,[x,d]=(0,a.useState)(!1),[p,m]=(0,a.useState)(!1),[f,u]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{d(!0)},[]),!x)return null;let h=(0,l.yP)(r,"column_1",t),g=(0,l.yP)(r,"column_2",t),b=c((0,l.yP)(r,"toggle_readmore",t)),w=b?o(h):{html:h||"",hasReadMore:!1},v=b?o(g):{html:g||"",hasReadMore:!1},j=p&&w.fullContent?w.fullContent:w.html,y=f&&v.fullContent?v.fullContent:v.html,N=(0,n.i)("common","readMoreUpper",t)||"READ MORE";return(0,s.jsx)("section",{id:"two-col-simple",className:"pt-[96px] pr-[40px] pb-[32px] pl-[40px]",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1252px]",children:(0,s.jsxs)("div",{className:"flex flex-col md:flex-row md:gap-8 lg:gap-[80px]",children:[h&&(0,s.jsx)("div",{className:"w-full md:w-1/2 mb-8 md:mb-0",children:(0,s.jsxs)("div",{className:"two-col-simple-content",children:[(0,i.ZP)(j),b&&w.hasReadMore&&!p&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)("button",{onClick:()=>m(!0),className:"inline-flex justify-center items-center font-sans text-base font-semibold text-[#23243B]",children:N})})]})}),g&&(0,s.jsx)("div",{className:"w-full md:w-1/2",children:(0,s.jsxs)("div",{className:"two-col-simple-content",children:[(0,i.ZP)(y),b&&v.hasReadMore&&!f&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)("button",{onClick:()=>u(!0),className:"inline-flex justify-center items-center font-sans text-base font-semibold text-[#23243B]",children:N})})]})})]})})})}},1475:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562);t.default=e=>{let{lang:t,...r}=e,[i,o]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{o(!0)},[]),!i)return null;
1let c=(0,l.yP)(r,"column_1",t),x=(0,l.yP)(r,"column_2",t);return(0,s.jsx)("section",{id:"two-col-simple-5545",className:"pt-12 px-10 pb-24",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1464px]",children:(0,s.jsxs)("div",{className:"flex flex-col md:flex-row md:gap-[56px]",children:[c&&(0,s.jsx)("div",{className:"w-full md:w-[55%] lg:max-w-[778px] mb-8 md:mb-0",children:(0,s.jsx)("div",{className:"two-col-simple-content",children:(0,n.ZP)(c)})}),x&&(0,s.jsx)("div",{className:"w-full md:w-[45%] lg:max-w-[630px]",children:(0,s.jsx)("div",{className:"two-col-simple-content",children:(0,n.ZP)(x)})})]})})})}},3139:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562);t.default=e=>{let{lang:t,...r}=e,[i,o]=(0,a.useState)(!1),[c,x]=(0,a.useState)(!1),[d,p]=(0,a.useState)({}),[m,f]=(0,a.useState)("desktop"),u=(0,a.useRef)(null),h=(0,a.useRef)(null),g=(0,a.useRef)(null);(0,a.useEffect)(()=>{let e=()=>{let e=window.innerWidth;e<640?f("mobile"):e<768?f("tablet"):f("desktop")};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let b=(0,a.useCallback)(()=>({top:200,bottom:200,left:40,right:0}),[]),w=(0,a.useCallback)(()=>{if(!u.current||!h.current||!g.current)return;let e=u.current,t=h.current,r=g.current,s=b(),a=e.getBoundingClientRect(),l=t.getBoundingClientRect(),n=window.innerHeight,i=r.offsetHeight;if("desktop"!==m||!(a.top<=n&&a.bottom>=0)){x(!1),p({});return}a.top,s.top,a.bottom,s.bottom;let o=l.top,c=l.bottom,d=n/2,f=c<=d+i/2;o<=d-i/2&&!f?(x(!0),p({position:"fixed",top:"50%",transform:"translateY(-50%)",left:"".concat(l.left,"px"),width:"".concat(l.width,"px"),zIndex:10})):f?(x(!1),p({position:"absolute",bottom:"0",left:"0",transform:"none",width:"100%",zIndex:10})):(x(!1),p({position:"absolute",top:"0",left:"0",transform:"none",width:"100%",zIndex:10}))},[m,b]);if((0,a.useEffect)(()=>(o(!0),window.addEventListener("scroll",w,{passive:!0}),w(),()=>{window.removeEventListener("scroll",w)}),[w]),!i)return null;let v=(0,l.yP)(r,"title",t),j=(0,l.yP)(r,"main_content",t),y=(0,l.yP)(r,"button",t)||"",N=(0,l.yP)(r,"button_link",t)||"#",_=(0,l.yP)(r,"subtitle",t),k=(0,l.yP)(r,"sub_content",t),P=(0,l.yP)(r,"right_content",t),F=e=>e?e.replace(/<\/?p>/g,""):"",C=F(v||""),S=F(_||"");return(0,s.jsx)("section",{ref:u,id:"two-col-success-stories",className:"py-[200px] pl-[40px] pr-0 md:overflow-visible relative",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1680px] relative z-10",children:(0,s.jsxs)("div",{className:"flex flex-col md:flex-row gap-6 md:gap-[80px]",children:[(0,s.jsxs)("div",{className:"w-full md:w-[55%] md:flex-shrink-0 md:flex-grow-0 lg:max-w-[780px]",children:[C&&(0,s.jsx)("h2",{className:"font-header text-4xl sm:text-5xl md:text-[64px] font-light leading-tight md:leading-[72px] text-[#314F9D] uppercase strong-override-blue",children:(0,n.ZP)(C)}),j&&(0,s.jsx)("div",{className:"mt-[10px]",children:(0,s.jsx)("div",{className:"font-sans text-base sm:text-lg md:text-[20px] leading-[24px] md:leading-[32px] text-[#1D1D1B]",children:(0,n.ZP)(j)})}),!!y&&(0,s.jsx)("div",{className:"mt-[30px]",children:(0,s.jsx)("a",{href:N,className:"inline-flex justify-center items-center px-8 py-2 min-w-[120px] bg-[#F58720] hover:bg-[#B93C95] rounded-lg transition-all duration-300 group",children:(0,s.jsx)("span",{className:"font-sans text-base font-semibold text-[#23243B] group-hover:text-white transition-colors duration-300 relative pr-6 after:content-[''] after:absolute after:right-0 after:top-1/2 after:-translate-y-1/2 after:w-[13px] after:h-[13px] after:bg-[url('/images/arrow-right.svg')] group-hover:after:bg-[url('/images/arrow-right-white.svg')] after:bg-contain after:bg-no-repeat after:transition-all after:duration-300 group-hover:after:translate-x-1",children:y})})}),S&&(0,s.jsx)("div",{className:"mt-[96px] md:mt-[96px] sm:mt-[60px] strong-override-blue",children:(0,s.jsx)("h3",{className:"font-header text-2xl sm:text-3xl md:text-[36px] font-light leading-tight md:leading-[38px] text-[#314F9D] uppercase",children:(0,n.ZP)(S)})}),k&&(0,s.jsx)("div",{className:"mt-[24px]",children:(0,s.jsx)("div",{className:"success-stories-content font-sans text-sm sm:text-base md:text-[16
1px] leading-[20px] md:leading-[24px] text-[#1D1D1B]",children:(0,n.ZP)(k)})})]}),P&&(0,s.jsx)("div",{ref:h,className:"flex-0 relative w-full md:w-[45%] md:min-w-[45%] mt-10 md:mt-0",style:{minHeight:"100vh"},children:(0,s.jsx)("div",{ref:g,style:d,children:(0,s.jsx)("div",{className:"success-stories-content font-sans text-sm sm:text-base md:text-[16px] leading-[20px] md:leading-[24px] text-[#1D1D1B]",children:(0,n.ZP)(P)})})})]})})})}},7691:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562),i=r(3145),o=r(9794);t.default=e=>{var t,r,c,x;let{lang:d,...p}=e,[m,f]=(0,a.useState)(!1),[u,h]=(0,a.useState)([]),[g,b]=(0,a.useState)(!1),[w,v]=(0,a.useState)(null),[j,y]=(0,a.useState)(null),[N,_]=(0,a.useState)(!1),k=(0,a.useRef)(null);(0,a.useEffect)(()=>{f(!0)},[]);let P=[];if(Array.isArray(p.presenters))P=p.presenters;else if("fr"===d&&Array.isArray(p.presenters_fr))P=p.presenters_fr;else if("object"==typeof p.presenters&&null!==p.presenters){let e=p.presenters;Array.isArray(e.presenters)&&(P=e.presenters)}if(0===P.length&&(Array.isArray(p.speakers)?P=p.speakers:"fr"===d&&Array.isArray(p.speakers_fr)&&(P=p.speakers_fr)),0===P.length&&p.acf&&(Array.isArray(p.acf.presenters)?P=p.acf.presenters:"fr"===d&&Array.isArray(p.acf.presenters_fr)?P=p.acf.presenters_fr:Array.isArray(p.acf.speakers)?P=p.acf.speakers:"fr"===d&&Array.isArray(p.acf.speakers_fr)&&(P=p.acf.speakers_fr)),(0,a.useEffect)(()=>{(async()=>{if(P&&Array.isArray(P)&&0!==P.length){b(!0),v(null);try{let e=P.map(async e=>{try{let t="object"==typeof e?e.ID||e.id:e;if(t){let e=await fetch("/api/team-members/".concat(t));if(!e.ok)throw Error("Failed to fetch presenter ".concat(t));return await e.json()}return console.warn("Could not fetch complete data for presenter:",e),e}catch(e){return console.error("Error fetching presenter:",e),null}}),t=(await Promise.all(e)).filter(e=>null!==e);h(t)}catch(e){console.error("Failed to load presenters:",e),v(e instanceof Error?e.message:"Failed to load presenters")}finally{b(!1)}}})()},[P,d]),(0,a.useEffect)(()=>{let e=e=>{k.current&&!k.current.contains(e.target)&&_(!1)};return N&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[N]),(0,a.useEffect)(()=>(N?document.body.style.overflow="hidden":document.body.style.overflow="auto",()=>{document.body.style.overflow="auto"}),[N]),!m)return null;let F=(0,l.yP)(p,"image_1",d)||"",C=(0,l.yP)(p,"image_2",d)||"",S=(0,l.yP)(p,"content_1",d)||"",D=(0,l.yP)(p,"image_3",d)||"",E=(0,l.yP)(p,"content_2",d)||"",A=(0,l.yP)(p,"button",d)||"",B=(0,l.yP)(p,"button_link",d)||"#",L=!!A,M=(e,t)=>{let r="".concat(t,"_fr");if(e.acf){if("fr"===d&&e.acf[r])return e.acf[r];if(e.acf[t])return e.acf[t]}return"fr"===d&&e[r]?e[r]:e[t]?e[t]:"title"===t&&e.title?e.title:"position"===t&&e.position?e.position:""},I=e=>{y(e),_(!0)};return(0,s.jsxs)("section",{id:"two-col-unconference",className:"pt-0 px-4 pl-[40px] lg:pl-0 pb-[60px] pt-[24px] sm:pb-[96px] sm:pt-[48px] sm:pr-[40px] lg:pr-[212px]",children:[(0,s.jsx)("div",{className:"container mx-auto max-w-[1480px]",children:(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row lg:gap-8 xl:gap-[153px]",children:[(0,s.jsxs)("div",{className:"lg:w-[66%] w-full mt-10 lg:mt-0 lg:flex-shrink-0 max-w-[832px] lg:mx-0 mx-auto",children:[F&&(0,s.jsx)("div",{className:"relative w-full",children:(0,s.jsx)(i.default,{src:F,width:1e3,height:500,className:"w-full h-[300px] sm:h-[400px] lg:h-[505px] max-w-[832px] rounded-lg object-cover",priority:!0,alt:"Unconference main visual"})}),S&&(0,s.jsx)("div",{className:"mt-[40px] ml-auto sm:mt-[60px] md:mt-[80px] lg:mt-[104px] flex flex-col items-start gap-4 max-w-[606px]",children:(0,s.jsx)("div",{className:"font-sans text-base leading-6 text-[#23243B] [&_h3]:font-header [&_h3]:text-2xl [&_h3]:sm:text-3xl [&_h3]:md:text-4xl [&_h3]:lg:text-[36px] [&_h3]:font-light [&_h3]:leading-[1.2] [&_h3]:uppercase [&_h3]:text-[#314F9D] [&_h3]:text-center [&_h3]:lg:text-left [&_h3_strong]:font-bold [&_h3_strong]:text-[#23243B] [&_h3_strong]:tracking-[0.02em] [&_h3_b]:font-bold [&_h3_b]:text-[#23243B] [&_h3_b]:tracking-[0.02em] [&_p]:font-barlow [&_p]:font-normal [&_p]:text-[16
1px] sm:[&_p]:text-[17px] lg:[&_p]:text-[18px] [&_p]:leading-[20px] sm:[&_p]:leading-[21px] lg:[&_p]:leading-[22px] [&_p]:text-[#23243B] [&_img]:rounded-lg [&_img]:max-w-full [&_img]:h-auto [&_img]:object-cover [&_ul]:list-disc [&_ul]:pl-6 [&_ul]:space-y-2 [&_ul]:my-4",children:(0,n.ZP)(S)})})]}),(0,s.jsxs)("div",{className:"w-full lg:w-auto lg:max-w-[400px] xl:max-w-[500px] flex-shrink-1 lg:flex-shrink-1",children:[(0,s.jsxs)("div",{className:"mt-[60px] sm:mt-[100px] md:mt-[150px] lg:mt-[21px] flex flex-col items-end gap-[60px] sm:gap-[80px] md:gap-[100px] lg:gap-[142px] lg:items-end items-center ",children:[C&&(0,s.jsx)("div",{className:"relative w-full max-w-[400px] lg:max-w-[500px]",children:(0,s.jsx)(i.default,{src:C,width:279,height:373,className:"w-[279px] h-[373px] mx-auto rounded-lg object-cover",priority:!0,alt:"Unconference visual representation 1"})}),D&&(0,s.jsx)("div",{className:"relative w-full max-w-[400px] lg:max-w-[500px] lg:visible hidden",children:(0,s.jsx)(i.default,{src:D,width:500,height:300,className:"w-full h-[200px] lg:h-[300px] rounded-lg object-cover",alt:"Unconference visual representation 2"})})]}),E&&(0,s.jsx)("div",{className:"mt-[30px] sm:mt-[40px] lg:mt-[48px] lg:text-left text-center flex lg:justify-start justify-center",children:(0,s.jsx)("div",{className:"font-barlow font-normal text-[16px] sm:text-[17px] lg:text-[18px] leading-[20px] sm:leading-[21px] lg:leading-[22px] text-[#23243B] max-w-[497px] [&_h3]:font-header [&_h3]:text-2xl [&_h3]:sm:text-3xl [&_h3]:md:text-4xl [&_h3]:lg:text-[36px] [&_h3]:font-light [&_h3]:leading-[1.2] [&_h3]:uppercase [&_h3]:text-[#314F9D] [&_h3]:text-center [&_h3]:lg:text-left [&_h3_strong]:font-bold [&_h3_strong]:text-[#23243B] [&_h3_strong]:tracking-[0.02em] [&_h3_b]:font-bold [&_h3_b]:text-[#23243B] [&_h3_b]:tracking-[0.02em] [&_b]:font-semibold [&_strong]:font-semibold [&_img]:rounded-lg [&_img]:max-w-full [&_img]:h-auto [&_img]:object-cover [&_ul]:list-disc [&_ul]:pl-6 [&_ul]:space-y-2 [&_ul]:my-4",children:(0,n.ZP)(E)})}),L&&(0,s.jsx)("div",{className:"mt-[16px] flex justify-center w-full",children:(0,s.jsx)("a",{href:B,className:"flex justify-center items-center py-2 px-4 gap-2 min-w-[160px] h-[39px] border border-[#23243B] rounded-lg transition-all duration-300 hover:bg-[#23243B]/5","aria-label":A,children:(0,s.jsx)("span",{className:"font-barlow font-semibold text-base leading-[23px] text-[#23243B]",children:A})})}),g&&(0,s.jsx)("div",{className:"mt-[60px] sm:mt-[80px] lg:mt-[96px] flex flex-col items-center gap-[32px] w-full",children:(0,s.jsx)("div",{className:"text-center w-full py-8",children:(0,s.jsx)("div",{className:"font-sans text-base text-[#23243B]",children:"fr"===d?"Chargement des pr\xe9sentateurs...":"Loading presenters..."})})}),w&&(0,s.jsx)("div",{className:"mt-[60px] sm:mt-[80px] lg:mt-[96px] flex flex-col items-center gap-[32px] w-full",children:(0,s.jsx)("div",{className:"text-center w-full py-8",children:(0,s.jsx)("div",{className:"font-sans text-base text-red-600",children:w})})}),!g&&!w&&u.length>0&&(0,s.jsxs)("div",{className:"mt-[60px] sm:mt-[80px] lg:mt-[96px] flex flex-col items-center gap-[32px] w-full",children:[(0,s.jsx)("div",{className:"flex flex-wrap gap-[24px] justify-center w-full",children:u.map((e,t)=>{var r,a;return(0,s.jsx)("div",{className:"relative w-[176px] flex-shrink-0",children:(0,s.jsxs)("div",{className:"cursor-pointer group",onClick:()=>I(e),children:[(0,s.jsxs)("div",{className:"relative w-[176px] h-[203px] rounded-[8px] overflow-hidden member-image-container",children:[e.featured_image||(null===(r=e.acf)||void 0===r?void 0:r.featured_image)?(0,s.jsx)("img",{src:e.featured_image||(null===(a=e.acf)||void 0===a?void 0:a.featured_image)||"",alt:M(e,"title"),className:"w-full h-full object-cover"}):(0,s.jsx)("div",{className:"w-full h-full bg-gray-200 flex items-center justify-center",children:(0,s.jsxs)("svg",{width:"80",height:"80",viewBox:"0 0 24 24",fill:"none",className:"text-gray-400",children:[(0,s.jsx)("path",{d:"M12 12C14.7614 12 17 9.76142 17 7C17 4.23858 14.7614 2 12 2C9.23858 2 7 4.23858 7 7C7 9.76142 9.23858 12 12 12Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M12 14C7.58172 14 4 17.5817 4 22H20C20 17.5817 16.4183 14 12 14Z",fill:"currentColor"})]})}),(0,s.jsx)("div",{className:"absolute top-[8px] right-[8px] w-[48px] h-[48px] rounded-full bg-white/60 flex items-center justify-center plus-icon-container backdrop-blur-[7.5px]",children:(0,s.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M10 2.5V17.5",stroke:"#23243B",strokeWidth:"1.25",strokeLinecap:"round"}),(0,s.jsx)("path",{d:"M17.5 10L2.5 10",stroke:"#23243B",strokeWidth:"1.25",strokeLinecap:"round"})]})})]}),(0,s.jsx)("div",{className:"mt-[8px] font-sans font-semibold text-[20px] leading-[32px] text-[#1D1D1B] w-[176px] transition-colors duration-300 group-hover:text-[#314F9D]",children:M(e,"title")})]})},e.id||t)})}),(0,s.jsx)("div",{className:"mt-[32px] flex justify-center w-full",children:(0,s.jsx)(o.default,{href:"/unconference-speakers",className:"inline-flex justify-center items-center px-[36px] py-2 bg-[#F58720] hover:bg-[#B93C95] rounded-lg transition-all duration-300 group",children:(0,s.jsx)("span",{className:"font-sans text-base font-semibold text-[#23243B] group-hover:text-white transition-colors duration-300 relative pr-6 after:content-[''] after:absolute after:right-0 after:top-1/2 after:-translate-y-1/2 after:w-[13px] after:h-[13px] after:bg-[url('/images/arrow-right.svg')] group-hover:after:bg-[url('/images/arrow-right-white.svg')] after:bg-contain after:bg-no-repeat after:transition-all after:duration-300 group-hover:after:translate-x-1",children:"fr"===d?"Explorer d'autres conf\xe9renciers":"Explore other speakers"})})})]})]})]})}),N&&j&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50",children:(0,s.jsxs)("div",{ref:k,className:"relative bg-[#23243B] w-full max-w-[750px] max-h-[750px] overflow-y-auto rounded-md",children:[(0,s.jsx)("button",{className:"absolute top-[20px] right-[20px] md:top-[41px] md:right-[65px] z-10",onClick:()=>{_(!1),y(null)},children:(0,s.jsx)(i.default,{src:"/images/cross.svg",alt:"Close",width:23,height:23})}),(0,s.jsxs)("div",{className:"p-[24px] md:p-[56px]",children:[(0,s.jsxs)("div",{className:"flex flex-col md:flex-row gap-[40px] mb-[40px]",children:[(0,s.jsx)("div",{className:"flex-shrink-0",children:(0,s.jsx)("div",{className:"w-[170px] h-[212px] rounded-[8px] overflow-hidden",children:j.featured_image||(null===(t=j.acf)||void 0===t?void 0:t.featured_image)?(0,s.jsx)("img",{src:j.featured_image||(null===(r=j.acf)||void 0===r?void 0:r.featured_image)||"",alt:M(j,"title"),className:"w-full h-full object-cover"}):(0,s.jsx)("div",{className:"w-full h-full bg-gray-600 flex items-center justify-center",children:(0,s.jsxs)("svg",{width:"80",height:"80",viewBox:"0 0 24 24",fill:"none",className:"text-gray-400",children:[(0,s.jsx)("path",{d:"M12 12C14.7614 12 17 9.76142 17 7C17 4.23858 14.7614 2 12 2C9.23858 2 7 4.23858 7 7C7 9.76142 9.23858 12 12 12Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M12 14C7.58172 14 4 17.5817 4 22H20C20 17.5817 16.4183 14 12 14Z",fill:"currentColor"})]})})})}),(0,s.jsxs)("div",{className:"flex flex-col justify-end",children:[(0,s.jsx)("h2",{className:"font-header font-extrabold text-[28px] leading-[32px] md:text-[36px] md:leading-[38px] uppercase text-white",children:M(j,"title")}),(0,s.jsx)("p",{className:"mt-[8px] font-sans font-normal text-[18px] leading-[24px] md:text-[20px] md:leading-[32px] text-[#63B3E4]",children:M(j,"position")})]})]}),(0,s.jsx)("div",{className:"w-full h-[1px] bg-white/20 mb-[40px]"}),(0,s.jsx)("div",{className:"text-base text-[#ffffff] [&_p]:mb-[24px] [&_a]:text-[#F58720] [&_a]:underline [&_a]:underline-offset-2 [&_a:hover]:text-[#63B3E4]",children:(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:"fr"===d&&(null===(c=j.acf)||void 0===c?void 0:c.content_fr)?j.acf.content_fr:j.content||(null===(x=j.acf)||void 0===x?void 0:x.content)||j.content_fr||""}})})]})]})})]})}},2296:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562);let i=e=>e?e.replace(/^<p[^>]*>/,"").replace(/<\/p>$/,""):"";t.default=e=>{let{lang:t,...r}=e,[o,c]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{c(!0)},[]),!o)return null;let x=(0,l.yP)(r,"title",t),d=(0,l.yP)(r,"subtitle",t),p=(0,l.yP)(r,"content",t),m=i(x);return(0,s.jsx)("section",{id:"unconference-blurb",className:"pt-[96px] pr-[40px] pb-[96px] pl-[40px]",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1250px]",children:(0,s.jsxs)("div",{className:"flex flex-col items-end gap-[47px] w-full h-auto min-h-[281px]",children:[m&&(0,s.jsx)("div",{className:"w-full flex-none order-0 self-stretch flex-grow-0",children:(0,s.jsx)("div",{className:"strong-override-blue font-nunito font-light uppercase text-[#314F9D] break-words overflow-hidden ".concat("fr"===t?"text-[36px] sm:text-[42px] md:text-[48px] lg:text-[54px] leading-[40px] sm:leading-[46px] md:leading-[52px] lg:leading-[58px]":"text-[40px] sm:text-[48px] md:text-[56px] lg:text-[64px] leading-[44px] sm:leading-[52px] md:leading-[62px] lg:leading-[72px]"),children:(0,n.ZP)(m)})}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-[16px] w-full max-w-[713px] h-auto min-h-[162px] flex-none order-1 flex-grow-0 ml-0 lg:ml-[538px]",children:[d&&(0,s.jsx)("div",{className:"w-full h-auto min-h-[36px] flex-none order-0 self-stretch flex-grow-0",children:(0,s.jsx)("div",{className:"font-nunito font-extrabold text-[18px] sm:text-[20px] md:text-[22px] lg:text-[24px] leading-[24px] sm:leading-[28px] md:leading-[32px] lg:leading-[36px] uppercase text-[#314F9D]",children:d})}),p&&(0,s.jsx)("div",{className:"w-full h-auto min-h-[110px] flex-none order-1
1self-stretch flex-grow-0",children:(0,s.jsx)("div",{className:"font-barlow font-normal text-[16px] sm:text-[17px] lg:text-[18px] leading-[20px] sm:leading-[21px] lg:leading-[22px] text-[#1D1D1B] [&_ul]:list-disc [&_ul]:pl-6 [&_ul]:space-y-2 [&_ul]:my-4",children:(0,n.ZP)(p)})})]})]})})})}},68:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3145);t.default=e=>{var t,r,n,i;let{lang:o,...c}=e,[x,d]=(0,a.useState)(!1),[p,m]=(0,a.useState)([]),[f,u]=(0,a.useState)(!1),[h,g]=(0,a.useState)(null),[b,w]=(0,a.useState)(null),[v,j]=(0,a.useState)(!1),y=(0,a.useRef)(null);(0,a.useEffect)(()=>{d(!0)},[]);let N=[];if(Array.isArray(c.presenters))N=c.presenters;else if("fr"===o&&Array.isArray(c.presenters_fr))N=c.presenters_fr;else if("object"==typeof c.presenters&&null!==c.presenters){let e=c.presenters;Array.isArray(e.presenters)&&(N=e.presenters)}if(0===N.length&&(Array.isArray(c.speakers)?N=c.speakers:"fr"===o&&Array.isArray(c.speakers_fr)&&(N=c.speakers_fr)),0===N.length&&c.acf&&(Array.isArray(c.acf.presenters)?N=c.acf.presenters:"fr"===o&&Array.isArray(c.acf.presenters_fr)?N=c.acf.presenters_fr:Array.isArray(c.acf.speakers)?N=c.acf.speakers:"fr"===o&&Array.isArray(c.acf.speakers_fr)&&(N=c.acf.speakers_fr)),(0,a.useEffect)(()=>{(async()=>{if(N&&Array.isArray(N)&&0!==N.length){u(!0),g(null);try{let e=N.map(async e=>{try{let t="object"==typeof e?e.ID||e.id:e;if(t){let e=await fetch("/api/team-members/".concat(t));if(!e.ok)throw Error("Failed to fetch presenter ".concat(t));return await e.json()}return console.warn("Could not fetch complete data for presenter:",e),e}catch(e){return console.error("Error fetching presenter:",e),null}}),t=(await Promise.all(e)).filter(e=>null!==e);m(t)}catch(e){console.error("Failed to load presenters:",e),g(e instanceof Error?e.message:"Failed to load presenters")}finally{u(!1)}}})()},[N,o]),(0,a.useEffect)(()=>{let e=e=>{y.current&&!y.current.contains(e.target)&&j(!1)};return v&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[v]),(0,a.useEffect)(()=>(v?document.body.style.overflow="hidden":document.body.style.overflow="auto",()=>{document.body.style.overflow="auto"}),[v]),!x)return null;let _=(e,t)=>{let r="".concat(t,"_fr");if(e.acf){if("fr"===o&&e.acf[r])return e.acf[r];if(e.acf[t])return e.acf[t]}return"fr"===o&&e[r]?e[r]:e[t]?e[t]:"title"===t&&e.title?e.title:"position"===t&&e.position?e.position:""},k=e=>{w(e),j(!0)};return(0,s.jsxs)("section",{id:"unconference-speakers",className:"py-12 sm:py-16 md:py-20 lg:py-[96px] px-4 sm:px-6 md:px-8 lg:px-[40px]",children:[(0,s.jsxs)("div",{className:"container mx-auto max-w-[1200px]",children:[f&&(0,s.jsx)("div",{className:"flex flex-col items-center gap-[32px] w-full",children:(0,s.jsx)("div",{className:"text-center w-full py-8",children:(0,s.jsx)("div",{className:"font-sans text-base text-[#23243B]",children:"fr"===o?"Chargement des pr\xe9sentateurs...":"Loading presenters..."})})}),h&&(0,s.jsx)("div",{className:"flex flex-col items-center gap-[32px] w-full",children:(0,s.jsx)("div",{className:"text-center w-full py-8",children:(0,s.jsx)("div",{className:"font-sans text-base text-red-600",children:h})})}),!f&&!h&&p.length>0&&(0,s.jsx)("div",{className:"flex flex-col items-center gap-[32px] w-full",children:(0,s.jsx)("div",{className:"flex flex-wrap gap-[24px] justify-center w-full",children:p.map((e,t)=>{var r,a;return(0,s.jsx)("div",{className:"relative w-[176px] flex-shrink-0",children:(0,s.jsxs)("div",{className:"cursor-pointer group",onClick:()=>k(e),children:[(0,s.jsxs)("div",{className:"relative w-[176px] h-[203px] rounded-[8px] overflow-hidden member-image-container",children:[e.featured_image||(null===(r=e.acf)||void 0===r?void 0:r.featured_image)?(0,s.jsx)("img",{src:e.featured_image||(null===(a=e.acf)||void 0===a?void 0:a.featured_image)||"",alt:_(e,"title"),className:"w-full h-full object-cover"}):(0,s.jsx)("div",{className:"w-full h-full bg-gray-200 flex items-center justify-center",children:(0,s.jsxs)("svg",{width:"80",height:"80",viewBox:"0 0 24 24",fill:"none",className:"text-gray-400",children:[(0,s.jsx)("path",{d:"M12 12C14.7614 12 17 9.76142 17 7C17 4.23858 14.7614 2 12 2C9.23858 2 7 4.23858 7 7C7 9.76142 9.23858 12 12 12Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M12 14C7.58172 14 4 17.5817 4 22H20C20 17.5817 16.4183 14 12 14Z",fill:"currentColor"})]})}),(0,s.jsx)("div",{className:"absolute top-[8px] right-[8px] w-[48px] h-[48px] rounded-full bg-white/60 flex items-center justify-center plus-icon-container backdrop-blur-[7.5px]",children:(0,s.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M10 2.5V17.5",stroke:"#23243B",strokeWidth:"1.25",strokeLinecap:"round"}),(0,s.jsx)("path",{d:"M17.5 10L2.5 10",stroke:"#23243B",strokeWidth:"1.25",strokeLinecap:"round"})]})})]}),(0,s.jsx)("div",{className:"mt-[8px] font-sans font-semibold text-[20px] leading-[32px] text-[#1D1D1B] w-[176px] transition-colors duration-300 group-hover:text-[#314F9D]",children:_(e,"title")})]})},e.id||t)})})})]}),v&&b&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50",children:(0,s.jsxs)("div",{ref:y,className:"relative bg-[#23243B] w-full max-w-[750px] max-h-[750px] overflow-y-auto rounded-md",children:[(0,s.jsx)("button",{className:"absolute top-[20px] right-[20px] md:top-[41px] md:right-[65px] z-10",onClick:()=>{j(!1),w(null)},children:(0,s.jsx)(l.default,{src:"/images/cross.svg",alt:"Close",width:23,height:23})}),(0,s.jsxs)("div",{className:"p-[24px] md:p-[56px]",children:[(0,s.jsxs)("div",{className:"flex flex-col md:flex-row gap-[40px] mb-[40px]",children:[(0,s.jsx)("div",{className:"flex-shrink-0",children:(0,s.jsx)("div",{className:"w-[170px] h-[212px] rounded-[8px] overflow-hidden",children:b.featured_image||(null===(t=b.acf)||void 0===t?void 0:t.featured_image)?(0,s.jsx)("img",{src:b.featured_image||(null===(r=b.acf)||void 0===r?void 0:r.featured_image)||"",alt:_(b,"title"),className:"w-full h-full object-cover"}):(0,s.jsx)("div",{className:"w-full h-full bg-gray-600 flex items-center justify-center",children:(0,s.jsxs)("svg",{width:"80",height:"80",viewBox:"0 0 24 24",fill:"none",className:"text-gray-400",children:[(0,s.jsx)("path",{d:"M12 12C14.7614 12 17 9.76142 17 7C17 4.23858 14.7614 2 12 2C9.23858 2 7 4.23858 7 7C7 9.76142 9.23858 12 12 12Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M12 14C7.58172 14 4 17.5817 4 22H20C20 17.5817 16.4183 14 12 14Z",fill:"currentColor"})]})})})}),(0,s.jsxs)("div",{className:"flex flex-col justify-end",children:[(0,s.jsx)("h2",{className:"font-header font-extrabold text-[28px] leading-[32px] md:text-[36px] md:leading-[38px] uppercase text-white",children:_(b,"title")}),(0,s.jsx)("p",{className:"mt-[8px] font-sans font-normal text-[18px] leading-[24px] md:text-[20px] md:leading-[32px] text-[#63B3E4]",children:_(b,"position")})]})]}),(0,s.jsx)("div",{className:"w-full h-[1px] bg-white/20 mb-[40px]"}),(0,s.jsx)("div",{className:"text-base text-[#ffffff] [&_p]:mb-[24px] [&_a]:text-[#F58720] [&_a]:underline [&_a]:underline-offset-2 [&_a:hover]:text-[#63B3E4]",children:(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:"fr"===o&&(null===(n=b.acf)||void 0===n?void 0:n.content_fr)?b.acf.content_fr:b.content||(null===(i=b.acf)||void 0===i?void 0:i.content)||b.content_fr||""}})})]})]})})]})}},2371:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562);t.default=e=>{let{lang:t,...r}=e,[i,o]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{o(!0)},[]),!i)return null;
1let c=r.background,x=r.embed_code,d=(0,l.yP)(r,"content",t);return(0,s.jsx)("section",{id:"video-text",className:"py-[72px] px-10",style:{background:c?"url(".concat(c,") center/cover, radial-gradient(62.1% 62.1% at 36.64% 37.9%, #AE548F 0%, #31509E 100%)"):"radial-gradient(62.1% 62.1% at 36.64% 37.9%, #AE548F 0%, #31509E 100%)"},children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1464px]",children:(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row justify-center items-center gap-8 lg:gap-24",children:[x&&(0,s.jsx)("div",{className:"w-full lg:w-[651px] flex-shrink-0",children:(0,s.jsx)("div",{className:"relative w-full",children:(0,n.ZP)(x)})}),d&&(0,s.jsx)("div",{className:"w-full lg:w-[377px] flex-shrink-0",children:(0,s.jsx)("div",{className:"text-white text-base sm:text-lg md:text-[18px] leading-[22px] text-center lg:text-left font-sans",children:(0,n.ZP)(d)})})]})})})}},895:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562);let i=e=>e?e.replace(/^<p[^>]*>/,"").replace(/<\/p>$/,""):"";t.default=e=>{let{lang:t,...r}=e,[o,c]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{c(!0)},[]),!o)return null;let x=(0,l.yP)(r,"title",t),d=(0,l.yP)(r,"content_1",t),p=(0,l.yP)(r,"content_2",t),m=i(x);return(0,s.jsx)("section",{id:"webinar-blurb",className:"pt-[96px] pr-[40px] pb-[96px] pl-[40px]",children:(0,s.jsx)("div",{className:"container mx-auto max-w-[1250px]",children:(0,s.jsxs)("div",{className:"flex flex-col items-start gap-[48px] w-full",children:[m&&(0,s.jsx)("div",{className:"w-full flex-none order-0 self-stretch flex-grow-0",children:(0,s.jsx)("h2",{className:"strong-override-blue font-nunito font-light text-[40px] sm:text-[48px] md:text-[56px] lg:text-[64px] leading-[44px] sm:leading-[52px] md:leading-[62px] lg:leading-[72px] uppercase text-[#314F9D]",children:(0,n.ZP)(m)})}),(0,s.jsxs)("div",{className:"flex flex-col md:flex-row items-start gap-[16px] w-full max-w-[1034px] flex-wrap order-1 flex-grow-0",children:[d&&(0,s.jsx)("div",{className:"w-full md:w-[509px] flex-none order-0 flex-grow-1",children:(0,s.jsx)("div",{className:"font-barlow font-normal text-[16px] sm:text-[17px] lg:text-[18px] leading-[20px] sm:leading-[21px] lg:leading-[22px] text-[#1D1D1B] [&_a]:font-barlow [&_a]:font-semibold [&_a]:text-[16px] sm:[&_a]:text-[17px] lg:[&_a]:text-[18px] [&_a]:leading-[20px] sm:[&_a]:leading-[21px] lg:[&_a]:leading-[22px] [&_a]:underline [&_a]:text-[#314F9D]",children:(0,n.ZP)(d)})}),p&&(0,s.jsx)("div",{className:"w-full md:w-[509px] flex-none order-1 flex-grow-1",children:(0,s.jsx)("div",{className:"font-barlow font-normal text-[16px] sm:text-[17px] lg:text-[18px] leading-[20px] sm:leading-[21px] lg:leading-[22px] text-[#23243B] [&_a]:font-barlow [&_a]:font-semibold [&_a]:text-[16px] sm:[&_a]:text-[17px] lg:[&_a]:text-[18px] [&_a]:leading-[20px] sm:[&_a]:leading-[21px] lg:[&_a]:leading-[22px] [&_a]:underline [&_a]:text-[#314F9D]",children:(0,n.ZP)(p)})})]})]})})})}},2868:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(2534),i=r(7562),o=r(3145),c=r(3735);t.default=e=>{let{lang:t,...r}=e,[x,d]=(0,a.useState)([]),[p,m]=(0,a.useState)(!0),[f,u]=(0,a.useState)(null),[h,g]=(0,a.useState)(0),b=(0,a.useRef)(null),[w,v]=(0,a.useState)(null),[j,y]=(0,a.useState)(null),[N,_]=(0,a.useState)(!1),k=(0,l.yP)(r,"title",t),P=r.background_image||"";(0,a.useEffect)(()=>{let e=()=>{_(window.innerWidth>=1024)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,a.useEffect)(()=>{(async function(){try{let e=await fetch("/api/swoogo/events");if(!e.ok){let t="";try{let r=await e.json();t=(null==r?void 0:r.message)||(null==r?void 0:r.error)||JSON.stringify(r)}catch(r){try{t=await e.text()}catch(e){t=""}}throw Error("HTTP ".concat(e.status,": ").concat(t))}let t=await e.json();console.log("Webinars component - Raw events data:",t);let r=Array.isArray(t)?t.filter(e=>(console.log("Checking event:",e.id,e.title,"categories:",e.categories),!!(e.categories&&Array.isArray(e.categories)&&e.categories.some(e=>e&&e.name?e.name.toLowerCase().includes("webinar"):!!e&&!!e.slug&&e.slug.toLowerCase().includes("webinar"))||e.title&&e.title.toLowerCase().includes("webinar")))):[];console.log("Webinars component - Filtered webinars:",r),d(r),u(null)}catch(e){console.error("Failed to load webinars:",e),u(e instanceof Error?e.message:"Failed to load webinars"),d([])}finally{m(!1)}})()},[]);let F=e=>{if(!e)return null;try{let t=String(e).trim();if(/^\d{8}$/.test(t)){let e=parseInt(t.substring(0,4),10),r=parseInt(t.substring(4,6),10)-1,s=parseInt(t.substring(6,8),10);return new Date(e,r,s,0,0,0,0)}let r=t.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(r){let e=parseInt(r[1],10),t=parseInt(r[2],10)-1,s=parseInt(r[3],10);return new Date(e,t,s,0,0,0,0)}let s=new Date(t);if(!isNaN(s.getTime()))return new Date(s.getFullYear(),s.getMonth(),s.getDate(),0,0,0,0)}catch(e){}return null},C=(0,a.useMemo)(()=>{let e=new Date;return e.setHours(0,0,0,0),x.map(e=>{let r=F(e.date),s=("fr"===t&&e.title_fr?e.title_fr:e.title).replace(/<\/?p[^>]*>/gi,"").trim();return{id:e.id,title:s,content:"fr"===t&&e.content_fr?e.content_fr:e.content,featured_image:e.featured_image,date:e.date,link:e.link,categories:e.categories,designation:e.designation,dateObj:r}}).filter(t=>!(!t.dateObj||t.title&&t.title.toLowerCase().includes("press release"))&&t.dateObj.getTime()>=e.getTime()).sort((e,r)=>{if(!e.dateObj)return 1;if(!r.dateObj)return -1;let s=new Date(e.dateObj.getFullYear(),e.dateObj.getMonth(),e.dateObj.getDate()),a=new Date(r.dateObj.getFullYear(),r.dateObj.getMonth(),r.dateObj.getDate()),l=s.getTime()-a.getTime();if(0!==l)return l;let n="fr"===t&&"FR"===e.designation||"en"===t&&"FR"!==e.designation,i="fr"===t&&"FR"===r.designation||"en"===t&&"FR"!==r.designation;return n&&!i?-1:!n&&i?1:0})},[x,t]),S=(0,a.useMemo)(()=>{let e=N?8:4;return C.length<=e?C:C.slice(h,h+e)},[C,h,N]),D=()=>{let e=C.length,t=N?8:4;0===e||h+t>=e||g(r=>Math.min(r+1,e-t))},E=()=>{h<=0||g(e=>Math.max(e-1,0))},A=function(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2?arguments[2]:void 0;if(!e)return{month:"",day:"",year:"",formatted:""};try{let a;let l=e instanceof Date?e:F(e);if(!l||isNaN(l.getTime()))return console.warn("Failed to parse date in formatDate:",e),{month:"",day:"",year:"",formatted:""};
1let n="fr"===t||"FR"===s,i=l.toLocaleString(n?"fr-CA":"en-US",{month:"long"}),o=l.getDate(),c=l.getFullYear(),x=n?i.toLowerCase():i.toUpperCase();return a=r?n?"".concat(o," ").concat(x," ").concat(c):"".concat(x," ").concat(o,", ").concat(c):n?"".concat(o," ").concat(x):"".concat(x," ").concat(o),{month:x,day:o.toString(),year:c.toString(),formatted:a}}catch(t){return console.warn("Error in formatDate:",t,e),{month:"",day:"",year:"",formatted:""}}},[B,L]=(0,a.useState)(0);return(0,a.useEffect)(()=>{L(e=>e+1)},[h]),(0,s.jsxs)("section",{id:"webinars-section",className:"relative py-[96px] px-[40px]",style:{backgroundImage:P?"url(".concat(P,")"):"none",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundColor:P?"transparent":"#314F9D"},children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/50"}),(0,s.jsxs)("div",{className:"container relative z-10 mx-auto max-w-[1350px]",children:[k&&(0,s.jsx)("div",{className:"max-w-[1350px] mx-auto",children:(0,s.jsx)("h2",{className:"font-header text-4xl sm:text-5xl md:text-6xl lg:text-[72px] lg:pl-[94px] font-light leading-[1] text-white text-left strong-override",children:(0,i.ZP)(k)})}),(0,s.jsx)("div",{className:"mt-[48px] flex justify-center",children:p?(0,s.jsxs)("div",{className:"text-center py-8 text-white",children:[(0,s.jsx)("div",{className:"inline-block w-8 h-8 border-4 border-white/30 border-t-white rounded-full animate-spin"}),(0,s.jsx)("p",{className:"mt-2",children:"fr"===t?"Chargement...":"Loading..."})]}):f?(0,s.jsxs)("div",{className:"text-center py-8 text-white",children:[(0,s.jsx)("p",{children:"fr"===t?"Erreur de chargement":"Error loading webinars"}),(0,s.jsx)("p",{className:"text-sm opacity-75",children:f})]}):C.length>0?(0,s.jsxs)("div",{ref:b,className:"webinars-columns max-w-[1350px] flex flex-col lg:flex-row gap-[40px] mx-auto w-full",onTouchStart:e=>{y(null),v(e.targetTouches[0].clientX)},onTouchMove:e=>{y(e.targetTouches[0].clientX)},onTouchEnd:()=>{if(!w||!j)return;let e=w-j;e>50?D():e<-50&&E()},children:[(0,s.jsxs)("div",{className:"flex flex-row lg:flex-col items-center justify-center gap-[10px] h-full min-w-[48px]",children:[(0,s.jsx)("button",{onClick:E,className:"w-12 h-12 flex items-center justify-center rounded-full bg-white/60 backdrop-blur-[15px] transition-all duration-300 hover:bg-white/80","aria-label":"fr"===t?"Webinaire pr\xe9c\xe9dent":"Previous webinar",children:(0,s.jsx)("div",{className:"w-6 h-6 relative rotate-180 flex items-center justify-center",children:(0,s.jsx)(o.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{verticalAlign:"middle"}})})}),(0,s.jsx)("button",{onClick:D,className:"w-12 h-12 flex items-center justify-center rounded-full bg-white/60 backdrop-blur-[15px] transition-all duration-300 hover:bg-white/80","aria-label":"fr"===t?"Webinaire suivant":"Next webinar",children:(0,s.jsx)("div",{className:"w-6 h-6 relative flex items-center justify-center",children:(0,s.jsx)(o.default,{src:"/images/arrow-right.svg",alt:"",width:13,height:13,style:{verticalAlign:"middle"}})})})]}),(0,s.jsxs)("div",{className:"flex flex-wrap flex-grow w-full max-w-full",children:[C[0]&&(0,s.jsxs)("div",{className:"flex flex-col xl:flex-row gap-[40px] animate-fadeIn",children:[(0,s.jsx)("div",{className:"flex-shrink-0 xl:flex-shrink",children:(0,s.jsx)("div",{className:"w-full xl:w-[716px] xl:min-w-[400px] xl:max-w-[716px] h-[402px] xl:h-auto xl:aspect-[716/402] rounded-[8px] overflow-hidden animate-fadeIn",children:C[0].featured_image?(0,s.jsx)("img",{src:C[0].featured_image,alt:C[0].title,className:"w-full h-full object-cover"}):(0,s.jsx)(c.Z,{configName:"default",alt:"CCDI Logo"})})}),(0,s.jsxs)("div",{className:"flex flex-col justify-start flex-grow xl:min-w-[300px]",children:[C[0].dateObj&&(0,s.jsx)("div",{className:"font-header font-light text-[24px] leading-[24px] text-white ".concat("en"===t&&"FR"!==C[0].designation?"uppercase":""," animate-fadeInUp mb-4"),children:A(C[0].dateObj,!0,C[0].designation).formatted}),(0,s.jsx)("h3",{className:"mt-[16px] font-header font-extrabold text-xl sm:text-2xl md:text-3xl lg:text-[32px] xl:text-[36px] leading-tight md:leading-[36px] xl:leading-[40px] text-white uppercase animate-fadeInUp break-words",children:(0,s.jsx)("a",{href:(()=>{let e=C[0].link||"#",t="FR"===C[0].designation;return(0,l.kb)(e,t?"fr":"en")})(),className:"inline-flex justify-center items-center transition-all duration-300 group text-white",children:(0,i.ZP)(C[0].title)})}),(0,s.jsx)("div",{className:"mt-[16px] font-sans font-normal text-[16px] leading-[24px] text-white line-clamp-3 animate-fadeInUp",children:(e=>{let t=e.replace(/<[^>]*>?/gm,"");return t.length>180?t.substring(0,180)+"...":t})(C[0].content)}),(0,s.jsx)("div",{className:"mt-[32px] animate-fadeInUp",style:{animationDelay:"0.3s"},children:(0,s.jsx)("a",{href:C[0].link||"#",className:"inline-flex justify-center items-center px-4 py-2 bg-transparent border border-white rounded-lg hover:bg-white/10 transition-all duration-300 group",children:(0,s.jsx)("span",{className:"font-sans text-base font-semibold text-white relative pr-6 after:content-[''] after:absolute after:right-0 after:top-1/2 after:-translate-y-1/2 after:w-[13px] after:h-[13px] after:bg-[url('/images/arrow-right-white.svg')] after:bg-contain after:bg-no-repeat after:transition-all after:duration-300 group-hover:after:translate-x-1",children:(0,n.i)("common","registerNow",t)||"Register now"})})})]})]},"featured-webinar-".concat(B)),(0,s.jsx)("div",{className:"mt-[64px] w-full",children:(0,s.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 auto-rows-max gap-[24px]",children:S.map((e,r)=>{var a;let{month:n,day:o}=A(null!==(a=e.dateObj)&&void 0!==a?a:void 0,!1,e.designation),c=(()=>{let t=e.link||"#",r="FR"===e.designation;return(0,l.kb)(t,r?"fr":"en")})();
1return(0,s.jsxs)("a",{href:c,className:" p-[24px] cursor-pointer transition-all duration-300 min-h-[284px] flex flex-col justify-between h-full border-b border-solid border-white hover:border hover:border-white hover:rounded-[8px] hover:bg-[#78B0E9]/10 block ",children:[n&&o&&(0,s.jsx)("div",{className:"text-white",children:"fr"===t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"font-header font-light text-[14px] md:text-[16px] lg:text-[20px] leading-[14px] md:leading-[16px] lg:leading-[20px]",children:n}),(0,s.jsx)("div",{className:"font-header font-extrabold text-[24px] md:text-[32px] lg:text-[48px] leading-[28px] md:leading-[36px] lg:leading-[56px] flex items-end letter-spacing-[0.02em] uppercase",children:o})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"font-header font-light text-[14px] md:text-[16px] lg:text-[20px] leading-[14px] md:leading-[16px] lg:leading-[20px] uppercase",children:n}),(0,s.jsx)("div",{className:"font-header font-extrabold text-[24px] md:text-[32px] lg:text-[48px] leading-[28px] md:leading-[36px] lg:leading-[56px] flex items-end letter-spacing-[0.02em] uppercase",children:o})]})}),(0,s.jsx)("h4",{className:"font-header font-extrabold text-[14px] md:text-[16px] lg:text-[18px] leading-[16px] md:leading-[18px] lg:leading-[20px] flex items-end letter-spacing-[0.02em] uppercase text-white mt-auto break-words",children:(0,i.ZP)(e.title)})]},"webinar-card-".concat(e.id))})})})]})]}):(0,s.jsxs)("div",{className:"text-center py-12 text-white",children:[(0,s.jsx)("p",{className:"text-2xl mb-2",children:"fr"===t?"Aucun webinaire \xe0 venir trouv\xe9":"No upcoming webinars found"}),(0,s.jsx)("p",{className:"opacity-80",children:"fr"===t?"Revenez bient\xf4t pour les prochains webinaires":"Check back soon for upcoming webinars"})]})})]})]})}},5861:function(e,t,r){"use strict";r.r(t);var s=r(7437),a=r(2265),l=r(3448),n=r(7562),i=r(1632);let o=e=>e?e.replace(/<p[^>]*>/g,"").replace(/<\/p>/g,"").trim():"",c=(e,t,r)=>{let[s,l]=(0,a.useState)(96),n=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(!e||!n.current)return;let s={lg:96,md:48,sm:40,base:32},a=s.base;r?a=s.lg:window.innerWidth>=768?a=s.md:window.innerWidth>=640&&(a=s.sm);let i=t;r||(i=window.innerWidth>=768?Math.min(t,window.innerWidth-80):window.innerWidth>=640?Math.min(t,window.innerWidth-60):Math.min(t,window.innerWidth-40));let o=document.createElement("div");o.style.position="absolute",o.style.visibility="hidden",o.style.height="auto",o.style.width="auto",o.style.whiteSpace="nowrap",o.style.fontFamily="var(--font-header)",o.style.fontWeight="300",o.style.textTransform="uppercase",o.style.letterSpacing="-0.02em",o.style.lineHeight="1";let c=e.replace(/<[^>]*>/g,"");o.textContent=c,document.body.appendChild(o);let x=16,d=a,p=a;for(;x<=d;){let e=Math.floor((x+d)/2);o.style.fontSize="".concat(e,"px"),o.offsetWidth<=i?(p=e,x=e+1):d=e-1}document.body.removeChild(o),l(Math.max(p,r?48:24))},[e,t,r]),{fontSize:s,measureRef:n}};t.default=e=>{let{lang:t,...r}=e,[x,d]=(0,a.useState)(!1),[p,m]=(0,a.useState)(!1),[f,u]=(0,a.useState)(null),[h,g]=(0,a.useState)(0),[b,w]=(0,a.useState)(!1),[v,j]=(0,a.useState)(!1),[y,N]=(0,a.useState)({}),_=(0,a.useRef)(null),k=(0,a.useRef)(null),P=(0,a.useRef)(null),F=(0,l.yP)(r,"title",t),C=(0,l.yP)(r,"image",t),S=(0,l.yP)(r,"content_1",t),D=(0,l.yP)(r,"content_2",t),E=(0,l.yP)(r,"content_3",t),A=F?o(F):"",{fontSize:B,measureRef:L}=c(A,632,b),M=()=>{m(!0)},I=(0,a.useCallback)(()=>{w(window.innerWidth>=1024)},[]),O=(0,a.useCallback)(()=>{if(!_.current||!P.current||!b)return;let e=_.current,t=P.current,r=e.getBoundingClientRect(),s=t.getBoundingClientRect(),a=window.innerHeight,l=window.innerWidth>=768?180:window.innerWidth>=640?120:215;window.innerWidth;let n=r.top+l,i=r.bottom-l;r.right;let o=0;n<=a&&i>=0&&(o=Math.min(Math.max(0,a-n)/(i-n+a),1)),g(o);let c=s.top,x=s.bottom,d=a/2,p=x<=d+320;c<=d-320&&!p?(j(!0),N({position:"fixed",top:"50%",transform:"translateY(-50%)",left:"".concat(s.left,"px"),width:"".concat(s.width,"px"),zIndex:15})):p?(j(!1),N({position:"absolute",bottom:"0",right:"0",transform:"none",width:"100%",zIndex:15})):(j(!1),N({position:"absolute",top:"0",right:"0",transform:"none",width:"100%",zIndex:15}))},[b]);return((0,a.useEffect)(()=>(d(!0),I(),window.addEventListener("resize",I),window.addEventListener("scroll",O,{passive:!0}),O(),()=>{window.removeEventListener("resize",I),window.removeEventListener("scroll",O)}),[I,O]),x)?(0,s.jsxs)("section",{ref:_,id:"who-we-are",className:"relative overflow-hidden py-0",style:{minHeight:"100vh"},children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-[#23243B] pointer-events-none transition-opacity duration-150 ease-out",style:{opacity:Math.min(1.25*h,1)}}),(0,s.jsx)("div",{ref:L,className:"absolute -top-full opacity-0 pointer-events-none"}),(0,s.jsx)("div",{className:"py-[215px] md:py-[180px] sm:py-[120px] px-[40px] sm:px-[20px] relative z-10",children:(0,s.jsxs)("div",{className:"container mx-auto max-w-[1522px] relative",children:[(0,s.jsx)("div",{className:"hidden lg:block",children:(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsxs)("div",{className:"w-full max-w-[740px] mr-[40px]",children:[A&&(0,s.jsx)("div",{className:"static z-10 max-w-[632px] mb-8",children:(0,s.jsx)("h2",{className:"font-header font-light leading-none tracking-[-0.02em] uppercase text-white whitespace-nowrap [&_a]:inline-flex [&_a]:flex-wrap [&_a]:max-w-full",style:{fontSize:"".concat(B,"px")},children:(0,n.ZP)(A)})}),S&&(0,s.jsx)("div",{className:"mb-[215px] who-we-are-content",children:(0,n.ZP)(S)}),D&&(0,s.jsx)("div",{className:"mb-[215px] max-w-[716px] who-we-are-content",children:(0,n.ZP)(D)}),E&&(0,s.jsx)("div",{className:"max-w-[716px] who-we-are-content",children:(0,n.ZP)(E)})]}),(0,s.jsx)("div",{ref:P,className:"flex-0 relative w-full md:w-[600px] md:min-w-[600px] ml-auto",style:{minHeight:"100vh"},children:(0,s.jsx)("div",{ref:k,style:y,children:C&&(0,s.jsx)("div",{className:"relative w-full md:w-[520px] md:min-w-[520px] h-[640px] ml-auto",children:(0,s.jsx)(i.Z,{src:C,alt:"Who We Are",fill:!0,className:"object-cover rounded-lg",sizes:"520px",onLoad:M,onError:()=>u("Failed to load image")})})})})]})}),(0,s.jsxs)("div",{className:"block lg:hidden",children:[(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row lg:gap-[40px] lg:justify-between",children:[(0,s.jsx)("div",{className:"w-full lg:w-auto lg:max-w-[740px] mb-12 lg:mb-0 flex items-center order-2 lg:order-1",children:S&&(0,s.jsx)("div",{className:"who-we-are-content",children:(0,n.ZP)(S)})}),(0,s.jsxs)("div",{className:"w-full lg:w-full relative mb-8 lg:mb-0 order-1 lg:order-2 flex flex-wrap justify-center lg:justify-end",children:[A&&(0,s.jsx)("div",{className:"relative mb-8 z-10 w-full h-auto",children:(0,s.jsx)("h2",{className:"flex flex-wrap font-header font-light leading-none tracking-[-0.02em] uppercase text-white whitespace-wrap h-auto w-full text-center text-2xl sm:text-3xl md:text-4xl [&_a]:inline-flex [&_a]:flex-wrap [&_a]:max-w-full",children:(0,n.ZP)(A)})}),C&&(0,s.jsx)("div",{className:"relative w-full max-w-[520px] h-[300px] sm:h-[480px] md:h-[640px]",children:(0,s.jsx)(i.Z,{src:C,alt:"Who We Are",fill:!0,className:"object-cover rounded-lg",sizes:"(max-width: 768px) 100vw, (max-width: 1024px) 520px, 520px",onLoad:M,onError:()=>u("Failed to load image")})})]})]}),D&&(0,s.jsx)("div",{className:"mt-[215px] md:mt-[160px] sm:mt-[100px] max-w-[716px]",children:(0,s.jsx)("div",{className:"who-we-are-content",children:(0,n.ZP)(D)})}),E&&(0,s.jsx)("div",{className:"mt-[215px] md:mt-[160px] sm:mt-[100px] max-w-[716px]",children:(0,s.jsx)("div",{className:"who-we-are-content",children:(0,n.ZP)(E)})})]}),f&&(0,s.jsx)("div",{className:"text-white bg-red-600 p-4 mt-4 rounded relative z-20",children:f})]})})]}):null}},9776:function(e,t,r){"use strict";r.d(t,{AC:function(){return a}});var s=r(257);function a(e){if(!e)return e;let t=(s.env.NEXT_PUBLIC_WORDPRESS_API_URL||s.env.WORDPRESS_API_URL||"https://new-api.ccdi.ca").replace(/\/wp-json\/?$/,"");if(e.includes("ccdi.ca/media/")){let r=e.split("/media/")[1];return"".concat(t,"/wp-content/uploads/").concat(r)}if(e.includes("ccdi.ca/uploads/")){let r=e.split("/uploads/")[1];return"".concat(t,"/wp-content/uploads/").concat(r)}if(e.includes("ccdi.ca/files/")){let r=e.split("/files/")[1];return"".concat(t,"/wp-content/uploads/").concat(r)}if(e.startsWith("/media/")){let r=e.replace("/media/","");return"".concat(t,"/wp-content/uploads/").concat(r)}if(e.startsWith("/uploads/")){let r=e.replace("/uploads/","");return"".concat(t,"/wp-content/uploads/").concat(r)}if(e.startsWith("/files/")){let r=e.replace("/files/","");return"".concat(t,"/wp-content/uploads/").concat(r)}if(e.startsWith("/documents/")){let r=e.replace("/documents/","");return"".concat(t,"/wp-content/uploads/documents/").concat(r)}if(e.startsWith("/pdfs/")){let r=e.replace("/pdfs/","");return"".concat(t,"/wp-content/uploads/pdfs/").concat(r)}return e.startsWith("/wp-content/uploads/")?"".concat(t).concat(e):e}}}]);
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.