1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{199:(e,t,l)=>{"use strict";function a(e,t){let l=null==e?void 0:e.deviceTarget;return!l||"all"===l||"tablet"===t||l===t}l.d(t,{J:()=>a})},1561:(e,t,l)=>{"use strict";l.d(t,{default:()=>u});var a=l(5155),r=l(5239),i=l(2619),s=l.n(i),n=l(7062),d=l(2115),c=l(7791),o=l(4639);let u=e=>{var t,l,i,u,x,p,h,C,m,g,f,v,w,j,b;let{data:y,slug:N}=e,[k,_]=(0,d.useState)(0),F=((e,t,l)=>{if(!t){var a,r;return function(e,t){if(!e)return"";let l=e.startsWith("/")?e.substring(1):e,a={podcast:"podcasts",category:"category",article:"article",news:"news",marketplace:"marketplace",event:"events"}[null==t?void 0:t.toLowerCase()];return"article"===a?(0,c.Rj)(y)||"#":a?"/".concat(a,"/").concat(l):"/".concat(l)}(e,null==y||null==(r=y.FeaturedCard)||null==(a=r.tag_list)?void 0:a.title)||"#"}let i=t.replace(/^\//,"").toLocaleLowerCase(),s=e.replace(/^\//,"");return"article"===i?(0,c.Rj)(l)||"#":"/".concat(i,"/").concat(s)})(null==y?void 0:y.slug,N,y),D=(null==y?void 0:y.initialPublishDate)||(null==y||null==(t=y.FeaturedCard)?void 0:t.parent_slug_for_old_data)||(null==y?void 0:y.createdAt),A=(0,o.dh)(D),H=[(null==y?void 0:y.FeaturedCard.image)?"".concat(n.Q).concat(y.FeaturedCard.image.url):null,(null==y?void 0:y.FeaturedCard.feature_img_url)?"".concat(n.wX,"/").concat(y.FeaturedCard.feature_img_url):null,"/images/Sector Fallback/Desktop.webp"].filter(Boolean);return(0,a.jsx)("div",{className:"flex flex-col items-center lg:h-full",children:(0,a.jsxs)(s(),{href:F||(null==y?void 0:y.slug)||(null==y||null==(l=y.FeaturedCard)?void 0:l.url)||"/",className:" w-full rounded-lg overflow-hidden lg:h-full",children:[(0,a.jsxs)("div",{className:"",children:[(0,a.jsx)("div",{className:"flex lg:justify-center items-center text-gray-500",children:(0,a.jsx)("div",{className:"flex gap-[4px] flex-wrap",children:null==(i=y.FeaturedCard.category_lists)?void 0:i.map((e,t)=>{var l;return(0,a.jsxs)("span",{className:"flex px-[10px] py-[4px] items-center gap-[5px] bg-[#E7EEF7] rounded-[8px] text-[12px] not-italic font-[700] leading-[120%] text-[#16253B]",children:[(null==e?void 0:e.icon)&&(0,a.jsx)(r.default,{src:"".concat(n.Q).concat(null==e||null==(l=e.icon)?void 0:l.url),alt:"icon",width:16,height:16}),(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:e.title}})]},t)})})}),(0,a.jsx)("h2",{className:"lg:text-[32px] md:text-[24px] text-[20px] font-[700] leading-[100%] text-[var(--color-text)] lg:text-center font-serif lg:py-[20px] py-[16px]",children:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return"";let t={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ",lsquo:"â",rsquo:"â",ldquo:"â",rdquo:"â",ndash:"â",mdash:"â"};return e.replace(/&(#?[\w\d]+);/g,(e,l)=>{if(l.startsWith("#")){let t=l.startsWith("#x")?parseInt(l.slice(2),16):parseInt(l.slice(1),10);return isNaN(t)?e:String.fromCharCode(t)}return t[l]||e})}(y.FeaturedCard.title)}),(0,a.jsx)("p",{className:"text-[16px] leading-[120%] font-[400] text-[var(--color-text)] text-center lg:block hidden",children:y.FeaturedCard.description}),(0,a.jsxs)("div",{className:"relative w-full rounded-lg overflow-hidden lg:mt-[20px]",children:[(0,a.jsx)(r.default,{src:H[k],alt:"Therapist with child",objectFit:"cover",height:550,width:700,priority:!0,fetchPriority:"high",className:"rounded-[8px] lg:h-[490px] h-[225px] object-cover",onError:()=>{k<H.length-1&&_(e=>e+1)}}),(null==(p=y.FeaturedCard)||null==(x=p.tag_list)||null==(u=x.icon)?void 0:u.url)&&(0,a.jsxs)("div",{className:"absolute top-0 left-0 bg-[#16253B] text-[#E7EEF7] text-[12px] font-[700] px-[10px] py-[4px] flex items-center rounded-tl-[8px] rounded-br-[8px] rounded-tr-none rounded-bl-none gap-[5px] leading-[120%]",children:[(0,a.jsx)(r.default,{src:"".concat(n.Q).concat(null==(C=y.FeaturedCard.tag_list)||null==(h=C.icon)?void 0:h.url),alt:"icon",width:16,height:16}),null==(g=y.FeaturedCard)||null==(m=g.tag_list)?void 0:m.title]})]})]}),(0,a.jsxs)("div",{className:"flex gap-2 lg:justify-between items-center lg:mt-[26px] mt-[12px] lg:mb-0 mb-[12px]",children:[((null==(f=y.FeaturedCard)?void 0:f.author_name)||(null==(v=y.FeaturedCard.GroupBtns)?void 0:v.find(e=>e.label.includes("By "))))&&(0,a.jsxs)("div",{className:"flex items-center text-[12px] not-italic font-normal leading-[120%] text-[var(--color-text)] gap-[4px]",children:[(0,a.jsxs)("svg",{className:"w-[16px] h-[16px]",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,a.jsx)("mask",{id:"mask0_643_7480",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:(0,a.jsx)("rect",{width:"16",height:"16",fill:"#D9D9D9"})}),(0,a.jsx)("g",{mask:"url(#mask0_643_7480)",children:(0,a.jsx)("path",{d:"M8 8.66667C8.64444 8.66667 9.19445 8.43889 9.65 7.98333C10.1056 7.52778 10.3333 6.97778 10.3333 6.33333C10.3333 5.68889 10.1056 5.13889 9.65 4.68333C9.19445 4.22778 8.64444 4 8 4C7.35556 4 6.80556 4.22778 6.35 4.68333C5.89444 5.13889 5.66667 5.68889 5.66667 6.33333C5.66667 6.97778 5.89444 7.52778 6.35 7.98333C6.80556 8.43889 7.35556 8.66667 8 8.66667ZM3.33333 14C2.96667 14 2.65278 13.8694 2.39167 13.6083C2.13056 13.3472 2 13.0333 2 12.6667V3.33333C2 2.96667 2.13056 2.65278 2.39167 2.39167C2.65278 2.13056 2.96667 2 3.33333 2H12.6667C13.0333 2 13.3472 2.13056 13.6083 2.39167C13.8694 2.65278 14 2.96667 14 3.33333V12.6667C14 13.0333 13.8694 13.3472 13.6083 13.6083C13.3472 13.8694 13.0333 14 12.6667 14H3.33333ZM3.33333 12.6667H12.6667V11.9C12.0667 11.3111 11.3694 10.8472 10.5
175 10.5083C9.78056 10.1694 8.92222 10 8 10C7.07778 10 6.21944 10.1694 5.425 10.5083C4.63056 10.8472 3.93333 11.3111 3.33333 11.9V12.6667Z",fill:"currentColor"})})]}),(null==(w=y.FeaturedCard)?void 0:w.author_name)||(null==(b=y.FeaturedCard.GroupBtns)||null==(j=b.find(e=>e.label.includes("By ")))?void 0:j.label)]}),A&&(0,a.jsxs)("div",{className:"flex items-center text-[12px] not-italic font-normal leading-[120%] text-[var(--color-text)] gap-[4px]",children:[(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,a.jsx)("mask",{id:"mask0_643_6281",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:(0,a.jsx)("rect",{width:"16",height:"16",fill:"#D9D9D9"})}),(0,a.jsx)("g",{mask:"url(#mask0_643_6281)",children:(0,a.jsx)("path",{d:"M3.33333 14.6666C2.96667 14.6666 2.65278 14.536 2.39167 14.2749C2.13056 14.0138 2 13.6999 2 13.3333V3.99992C2 3.63325 2.13056 3.31936 2.39167 3.05825C2.65278 2.79714 2.96667 2.66659 3.33333 2.66659H4V1.99992C4 1.81103 4.06389 1.6527 4.19167 1.52492C4.31944 1.39714 4.47778 1.33325 4.66667 1.33325C4.85556 1.33325 5.01389 1.39714 5.14167 1.52492C5.26944 1.6527 5.33333 1.81103 5.33333 1.99992V2.66659H10.6667V1.99992C10.6667 1.81103 10.7306 1.6527 10.8583 1.52492C10.9861 1.39714 11.1444 1.33325 11.3333 1.33325C11.5222 1.33325 11.6806 1.39714 11.8083 1.52492C11.9361 1.6527 12 1.81103 12 1.99992V2.66659H12.6667C13.0333 2.66659 13.3472 2.79714 13.6083 3.05825C13.8694 3.31936 14 3.63325 14 3.99992V13.3333C14 13.6999 13.8694 14.0138 13.6083 14.2749C13.3472 14.536 13.0333 14.6666 12.6667 14.6666H3.33333ZM3.33333 13.3333H12.6667V6.66658H3.33333V13.3333ZM8 9.33325C7.81111 9.33325 7.65278 9.26936 7.525 9.14159C7.39722 9.01381 7.33333 8.85547 7.33333 8.66658C7.33333 8.4777 7.39722 8.31936 7.525 8.19159C7.65278 8.06381 7.81111 7.99992 8 7.99992C8.18889 7.99992 8.34722 8.06381 8.475 8.19159C8.60278 8.31936 8.66667 8.4777 8.66667 8.66658C8.66667 8.85547 8.60278 9.01381 8.475 9.14159C8.34722 9.26936 8.18889 9.33325 8 9.33325ZM5.33333 9.33325C5.14444 9.33325 4.98611 9.26936 4.85833 9.14159C4.73056 9.01381 4.66667 8.85547 4.66667 8.66658C4.66667 8.4777 4.73056 8.3193
16 4.85833 8.19159C4.98611 8.06381 5.14444 7.99992 5.33333 7.99992C5.52222 7.99992 5.68056 8.06381 5.80833 8.19159C5.93611 8.31936 6 8.4777 6 8.66658C6 8.85547 5.93611 9.01381 5.80833 9.14159C5.68056 9.26936 5.52222 9.33325 5.33333 9.33325ZM10.6667 9.33325C10.4778 9.33325 10.3194 9.26936 10.1917 9.14159C10.0639 9.01381 10 8.85547 10 8.66658C10 8.4777 10.0639 8.31936 10.1917 8.19159C10.3194 8.06381 10.4778 7.99992 10.6667 7.99992C10.8556 7.99992 11.0139 8.06381 11.1417 8.19159C11.2694 8.31936 11.3333 8.4777 11.3333 8.66658C11.3333 8.85547 11.2694 9.01381 11.1417 9.14159C11.0139 9.26936 10.8556 9.33325 10.6667 9.33325ZM8 11.9999C7.81111 11.9999 7.65278 11.936 7.525 11.8083C7.39722 11.6805 7.33333 11.5221 7.33333 11.3333C7.33333 11.1444 7.39722 10.986 7.525 10.8583C7.65278 10.7305 7.81111 10.6666 8 10.6666C8.18889 10.6666 8.34722 10.7305 8.475 10.8583C8.60278 10.986 8.66667 11.1444 8.66667 11.3333C8.66667 11.5221 8.60278 11.6805 8.475 11.8083C8.34722 11.936 8.18889 11.9999 8 11.9999ZM5.33333 11.9999C5.14444 11.9999 4.98611 11.936 4.85833 11.8083C4.73056 11.6805 4.66667 11.5221 4.66667 11.3333C4.66667 11.1444 4.73056 10.986 4.85833 10.8583C4.98611 10.7305 5.14444 10.6666 5.33333 10.6666C5.52222 10.6666 5.68056 10.7305 5.80833 10.8583C5.93611 10.986 6 11.1444 6 11.3333C6 11.5221 5.93611 11.6805 5.80833 11.8083C5.68056 11.936 5.52222 11.9999 5.33333 11.9999ZM10.6667 11.9999C10.4778 11.9999 10.3194 11.936 10.1917 11.8083C10.0639 11.6805 10 11.5221 10 11.3333C10 11.1444 10.0639 10.986 10.1917 10.8583C10.3194 10.7305 10.4778 10.6666 10.6667 10.6666C10.8556 10.6666 11.0139 10.7305 11.1417 10.8583C11.2694 10.986 11.3333 11.1444 11.3333 11.3333C11.3333 11.5221 11.2694 11.6805 11.1417 11.8083C11.0139 11.936 10.8556 11.9999 10.6667 11.9999Z",fill:"currentColor"})})]}),A]})]}),(0,a.jsx)("p",{className:"text-[16px] leading-[120%] font-[400] text-[var(--color-text)] lg:hidden block",children:y.FeaturedCard.description})]})})}},1930:(e,t,l)=>{"use strict";l.d(t,{Qw:()=>s});var a=l(463),r=l.n(a),i=l(7062);async function s(e,t,l,a){var s;let n=l?Array.from(new Set([...l,"all_time"])):void 0,d=a?{$or:[{deviceTarget:{$eq:a}},{deviceTarget:{$eq:"all"}},{deviceTarget:{$null:!0}}]}:void 0,c=n?{$or:[{timeSegment:{$in:n}},{timeSegment:{$null:!0}}]}:void 0,o=c&&d?{$and:[c,d]}:null!=(s=null!=c?c:d)?s:void 0,u=r().stringify({sort:["initialPublishDate:desc","FeaturedCard.parent_slug_for_old_data:desc","createdAt:desc"],fields:["documentId","slug","createdAt","updatedAt","publishedAt","Articletitle","weekViewCount","initialPublishDate","timeSegment","deviceTarget"],filters:o,populate:{FeaturedCard:{fields:["title","url","description","parent_slug_for_old_data"],populate:{parent_slug_for_new_data:{fields:["title","slug"]}}}},pagination:{pageSize:t}},{encodeValuesOnly:!0}),x={"Content-Type":"application/json"};e&&(x["X-Forwarded-For"]=e);let p=await fetch("".concat(i.UB,"/api/featured-artcles?").concat(u),{headers:x,next:{revalidate:60}});if(!(null==p?void 0:p.ok)){let e=await p.text().catch(()=>"");throw Error("Failed to fetch articles list: ".concat(p.status," ").concat(p.statusText," ").concat(e))}return await p.json()}l(3618)},2514:(e,t,l)=>{"use strict";function a(){var e;return(e=window.innerWidth)<768?"mobile":e<1024?"tablet":"desktop"}l.d(t,{A:()=>a}),l(2115)},3508:(e,t,l)=>{Promise.resolve().then(l.t.bind(l,2619,23)),Promise.resolve().then(l.bind(l,8748)),Promise.resolve().then(l.bind(l,2970)),Promise.resolve().then(l.bind(l,5639)),Promise.resolve().then(l.bind(l,7565)),Promise.resolve().then(l.bind(l,6769)),Promise.resolve().then(l.bind(l,5807)),Promise.resolve().then(l.bind(l,1305)),Promise.resolve().then(l.bind(l,1561)),Promise.resolve().then(l.bind(l,6736)),Promise.resolve().then(l.bind(l,7409)),Promise.resolve().then(l.bind(l,7798)),Promise.resolve().then(l.bind(l,2271))},5807:(e,t,l)=>{"use strict";l.d(t,{default:()=>p});var a=l(5155),r=l(2115),i=l(2619),s=l.n(i),n=l(1930),d=l(7791),c=l(9576),o=l(199),u=l(2514);let x=e=>{let{title:t,index:l,description:r,url:i}=e;return(0,a.jsx)(s(),{href:i,className:"flex-shrink-0 w-[280px] bg-[#E7EEF7] rounded-[12px] p-[16px] mr-[12px] last:mr-[20px] h-[212px] w-[248px] overflow-y-auto scrollbar-hide",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"flex-shrink-0 pb-[12px]",children:(0,a.jsx)("div",{className:"w-[24px] h-[24px] flex justify-center items-center bg-[#4080BF] rounded-[4px] text-[#F4F6F7] text-[14px] font-[700] leading-[120%] font-sans",children:l+1})}),(0,a.jsxs)("div",{className:"pr-[10px]",children:[(0,a.jsx)("h3",{className:"text-[#16253B] font-[700] leading-[100%] pb-[12px] text-[16px] font-serif ",children:t}),(0,a.jsx)("p",{className:"text-[#16253B] text-[16px] leading-[120%] font-[400] ",children:r})]})]})})},p=e=>{let{latestNewsList:t,title:l,ArticleBtn:i,filterKey:p,deviceType:h}=e,C=h||(0,u.A)(),m=p?"Latest ".concat(p.charAt(0).toUpperCase()+p.slice(1)):(l&&l.trim(),l),g=e=>{if(!e||"object"!=typeof e)return[];let t=(e,t)=>(e||[]).map(e=>{var l,a;return{id:e.id,createdAt:e.createdAt,publishedAt:e.publishedAt,initialPublishDate:e.initialPublishDate,deviceTarget:e.deviceTarget,Latestnews:{title:null==(l=e.FeaturedCard)?void 0:l.title,de
1scription:null==(a=e.FeaturedCard)?void 0:a.description,url:((e,t,l)=>{if(!t)return"#";let a=t.replace(/^\//,"");return"article"===e?(0,d.Rj)(l)||"#":"/".concat(e,"/").concat(a)})(t,e.slug||e.FeaturedCard.url,e)},[t]:e}});return[...t(e.articles,"article"),...t(e.events,"events"),...t(e.podcasts,"podcast"),...t(e.marketplaces,"marketplace"),...t(e.news,"news")]},[f,v]=(0,r.useState)(()=>(Array.isArray(t)?t.map(e=>({...e,source:"initial"})):g(t).map(e=>({...e,source:"initial"}))).filter(e=>(0,o.J)(e,C)).slice(0,5)),w=(0,r.useMemo)(()=>(Array.isArray(t)?t.map(e=>({...e,source:"initial"})):g(t).map(e=>({...e,source:"initial"}))).filter(e=>(0,o.J)(e,C)),[t]);(0,r.useEffect)(()=>{(async()=>{if(f.length>=5)return;let e=e=>{var t,l,a;let r=e.initialPublishDate||(null==(l=e.article)||null==(t=l.FeaturedCard)?void 0:t.parent_slug_for_old_data)||(null==(a=e.event)?void 0:a.StartDate)||e.createdAt||null,i=r?Date.parse(r):NaN;return isNaN(i)?0:i},t=[...w];if(!(t.length>=5))try{let l=5-t.length,a=(0,c.jB)();t.sort((t,l)=>{let a=e(t);return e(l)-a});let[r]=await Promise.all([(0,n.Qw)(void 0,l,a,C)]),i=g({articles:(null==r?void 0:r.data)||[],podcasts:[],events:[],marketplaces:[],news:[]}).map(e=>({...e,source:"fetched"}));t=(e=>{let t=new Set;return e.filter(e=>!t.has(e.id)&&(t.add(e.id),!0))})([...t,...i]),v(t.slice(0,5))}catch(e){v(t.slice(0,5))}})()},[w]);let j=f.length>0?f.slice(0,5):w.slice(0,5),b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return"";let t={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ",lsquo:"â",rsquo:"â",ldquo:"â",rdquo:"â",ndash:"â",mdash:"â"};return e.replace(/&(#?[\w\d]+);/g,(e,l)=>{if(l.startsWith("#")){let t=l.startsWith("#x")?parseInt(l.slice(2),16):parseInt(l.slice(1),10);return isNaN(t)?e:String.fromCharCode(t)}return t[l]||e})};return(0,a.jsxs)("div",{className:"container ps-[20px] pr-0 rounded-[12px] overflow-hidden mb-[40px] ",children:[(0,a.jsx)("div",{className:" justify-between items-center w-full pr-[20px] pb-[24px] mx-auto ",children:(0,a.jsxs)("div",{className:"border-b border-b-[var(--color-border)] pb-[12px] w-full flex",children:[(0,a.jsx)("h2",{className:"text-[var(--color-text)] font-serif text-[32px] font-bold leading-[100%] ",children:m}),(0,a.jsx)(s(),{href:(null==i?void 0:i.url)||"",className:"bg-[#16253B] p-[8px] rounded-[8px] w-[40px] h-[40px] ml-auto",children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,a.jsx)("mask",{id:"mask0_1733_4521",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:(0,a.jsx)("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),(0,a.jsx)("g",{mask:"url(#mask0_1733_4521)",children:(0,a.jsx)("path",{d:"M16.1752 13.0001H5.00018C4.71685 13.0001 4.47935 12.9043 4.28768 12.7126C4.09602 12.5209 4.00018 12.2834 4.00018 12.0001C4.00018 11.7168 4.09602 11.4793 4.28768 11.2876C4.47935 11.0959 4.71685 11.0001 5.00018 11.0001H16.1752L11.2752 6.10011C11.0752 5.90011 10.9794 5.66678 10.9877 5.40011C10.996 5.13344 11.1002 4.90011 11.3002 4.70011C11.5002 4.51678 11.7335 4.42094 12.0002 4.41261C12.2668 4.40428 12.5002 4.50011 12.7002 4.70011L19.3002 11.3001C19.4002 11.4001 19.471 11.5084 19.5127 11.6251C19.5543 11.7418 19.5752 11.8668 19.5752 12.0001C19.5752 12.1334 19.5543 12.2584 19.5127 12.3751C19.471 12.4918 19.4002 12.6001 19.3002 12.7001L12.7002 19.3001C12.5168 19.4834 12.2877 19.5751 12.0127 19.5751C11.7377 19.5751 11.5002 19.4834 11.3002 19.3001C11.1002 19.1001 11.0002 18.8626 11.0002 18.5876C11.0002 18.3126 11.1002 18.0751 11.3002 17.8751L16.1752 13.0001Z",fill:"#F3F6FC"})})]})})]})}),(0,a.jsx)("div",{className:"-ml-[20px] w-[calc(100%+20px)]",children:(0,a.jsx)("div",{className:"flex overflow-x-auto scrollbar-hide scroll-smooth ps-[20px]",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:j.map((e,t)=>(0,a.jsx)(x,{index:t,title:b(e.Latestnews.title),description:e.Latestnews.description,url:e.Latestnews.url||"#"},e.id))})})]})}},6736:(e,t,l)=>{"use strict";l.d(t,{default:()=>h});var a=l(5155),r=l(2619),i=l.n(r),s=l(5239),n=l(7409),d=l(7062),c=l(2115),o=l(4639),u=l(7791),x=l(199),p=l(2514);function h(e){var t,l,r,h,C,m,g,f,v,w,j,b,y,N;let{data:k,deviceType:_}=e,F=_||(0,p.A)(),D=((null==k?void 0:k.marketplaces)||[]).filter(e=>(0,x.J)(e,F)),A=null==(t=D[0])?void 0:t.FeaturedCard,H=(e,t,l)=>{if(!t)return e||"#";let a=t.replace(/^\//,"").toLocaleLowerCase();if("article"===a)return(0,u.Rj)(l)||"#";let r=null==e?void 0:e.replace(/^\//,"");return"/".concat(a,"/").concat(r)},B=D.map(e=>{var t,l;return{...e.FeaturedCard,type:"article",parentId:e.id,documentId:e.documentId,publishDate:(null==e||null==(t=e.FeaturedCard)?void 0:t.parent_slug_for_old_data)||(null==e?void 0:e.publishedAt)||e.createdAt,icon:e.FeaturedCard.icon,tag_list:e.FeaturedCard.tag_list,url:H(e.FeaturedCard.url,"article",e),categories:e.FeaturedCard.category_lists,PodcastUrl:e.FeaturedCard.PodcastUrl,GroupBtns:null==(l=e.FeaturedCard.GroupBtns)?void 0:l.map(e=>({...e,icon:e.icon}))}}),M=(null==A?void 0:A.GroupBtns.find(e=>e.label.includes("By ")))||null;null==A||A.GroupBtns.find(e=>e.label.includes("min "));let S=(null==A?void 0:A.author_name)||(null==M?void 0:M.label),V=(null==B||null==(l=B[0])?void 0:l.publishDate)||(null==D||null==(r=D[0])?void 0:r.createdAt),Z=(0,o.dh)(V),L=H(null!=(N=null!=(y=null==D||null==(h=D[0])?void 0:h.slug)?y:null==A?void 0:A.url)?N:"","article",null==D?void 0:D[0]),P=[(null==A?void 0:A.image)?"".concat(d.Q).concat(A.image.url):null,(null==A?void 0:A.feature_img_url)?"".concat(d.wX,"/").concat(A.feature_img_url):null,"/images/Sector Fallback/Desktop.webp"].filter(
1Boolean),[T,q]=(0,c.useState)(0);return(0,a.jsxs)("div",{className:"container mx-auto lg:px-0 px-[20px] lg:pt-0 pt-[20px]",children:[(0,a.jsx)("div",{className:" justify-between items-center w-full lg:pb-[40px] pb-[20px] container mx-auto px-0 lg:mt-[40px] ",children:(0,a.jsxs)("div",{className:"border-b border-b-[var(--color-border)] pb-[12px] lg:pb-[20px] w-full flex",children:[(0,a.jsx)("h2",{className:"text-[var(--color-text)] font-serif text-[32px] lg:text-[36px] font-[700] leading-[100%] ",children:null==k?void 0:k.title}),(0,a.jsxs)(i(),{href:"/marketplace",className:"ml-auto text-[#F3F6FC] lg:w-[120px] h-[40px] w-[40px] text-center lg:y-[8px] lg:px-[16px] bg-[#213A59] flex justify-center items-center text-[16px] font-[400] leading-[120%] rounded-[8px] gap-[8px] hover:bg-[#264F7E] transition duration-300",children:[(0,a.jsx)("span",{className:"lg:block hidden",children:(null==k||null==(C=k.button)?void 0:C.label)||"View All"}),(null==k||null==(g=k.button)||null==(m=g.icon)?void 0:m.url)&&(0,a.jsx)(s.default,{src:"".concat(d.Q).concat(k.button.icon.url),alt:"icon",width:24,height:24})]})]})}),(0,a.jsxs)("div",{className:"grid ".concat(B.length>1?"lg:grid-cols-3":"lg:grid-cols-1"," grid-cols-1 lg:gap-[20px] lg:mb-[40px] lg:min-h-[500px]"),children:[(0,a.jsx)("div",{className:"col-span-2 lg:mb-auto mb-[12px] lg:h-full",children:(0,a.jsx)(i(),{href:L||"#",className:"no-underline block min-[1360px]:h-full",children:(0,a.jsxs)("div",{className:"min-[1024px]:max-[1359px]:block min-[1360px]:h-full lg:flex gap-[16px] bg-[var(--color-card-bg)] rounded-[8px] lg:p-[20px] p-[12px] cursor-pointer",children:[(0,a.jsxs)("div",{className:"flex flex-col lg:h-auto flex-1 min-[1024px]:max-[1359px]:mb-5",children:[(0,a.jsx)("div",{className:"flex gap-[4px] flex-wrap",children:null==A||null==(f=A.category_lists)?void 0:f.map((e,t)=>{var l;return(0,a.jsxs)("span",{className:"flex px-[10px] py-[4px] items-center gap-[5px] bg-[var(--color-surface-muted)] rounded-[8px] text-[12px] not-italic font-bold leading-[120%] text-[var(--color-brand-text)]",children:[(null==(l=e.icon)?void 0:l.url)&&(0,a.jsx)(s.default,{src:"".concat(d.Q).concat(e.icon.url),alt:e.title,width:16,height:16}),(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:e.title}})]},t)})}),(0,a.jsx)("h3",{className:"text-[var(--color-text)] lg:text-[18px] lg:py-[20px] py-[12px] text-[18px] not-italic font-[700] leading-[100%] font-serif",children:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return"";let t={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ",lsquo:"â",rsquo:"â",ldquo:"â",rdquo:"â",ndash:"â",mdash:"â"};return e.replace(/&(#?[\w\d]+);/g,(e,l)=>{if(l.startsWith("#")){let t=l.startsWith("#x")?parseInt(l.slice(2),16):parseInt(l.slice(1),10);return isNaN(t)?e:String.fromCharCode(t)}return t[l]||e})}(null==A?void 0:A.title)}),(0,a.jsx)("p",{className:"text-[16px] leading-[120%] font-[400] text-[var(--color-text)] pb-[20px] lg:block hidden",children:null==A?void 0:A.description}),(0,a.jsxs)("div",{className:"lg:flex gap-[8px] hidden",children:[S&&(0,a.jsxs)("div",{className:"flex items-center text-[12px] not-italic font-normal leading-[120%] text-[var(--color-text)] gap-[4px]",children:[(0,a.jsxs)("svg",{className:"w-[16px] h-[16px]",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,a.jsx)("mask",{id:"mask0_643_7480",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:(0,a.jsx)("rect",{width:"16",height:"16",fill:"#D9D9D9"})}),(0,a.jsx)("g",{mask:"url(#mask0_643_7480)",children:(0,a.jsx)("path",{d:"M8 8.66667C8.64444 8.66667 9.19445 8.43889 9.65 7.98333C10.1056 7.52778 10.3333 6.97778 10.3333 6.33333C10.3333 5.68889 10.1056 5.13889 9.65 4.68333C9.19445 4.22778 8.64444 4 8 4C7.35556 4 6.80556 4.22778 6.35 4.68333C5.89444 5.13889 5.66667 5.68889 5.66667 6.33333C5.66667 6.97778 5.89444 7.52778 6.35 7.98333C6.80556 8.43889 7.35556 8.66667 8 8.66667ZM3.33333 14C2.96667 14 2.65278 13.8694 2.39167 13.6083C2.13056 13.3472 2 13.0333 2 12.6667V3.33333C2 2.96667 2.13056 2.65278 2.39167 2.39167C2.65278 2.13056 2.96667 2 3.33333 2H12.6667C13.0333 2 13.3472 2.13056 13.6083 2.39167C13.8694 2.65278 14 2.96667 14 3.33333V12.6667C14 13.0333 13.8694 13.3472 13.6083 13.6083C13.3472 13.8694 13.0333 14 12.6667 14H3.33333ZM3.33333 12.6667H12.6667V11.9C12.0667 11.3111 11.3694 10.8472 10.5
175 10.5083C9.78056 10.1694 8.92222 10 8 10C7.07778 10 6.21944 10.1694 5.425 10.5083C4.63056 10.8472 3.93333 11.3111 3.33333 11.9V12.6667Z",fill:"currentColor"})})]}),S]}),Z&&(0,a.jsxs)("div",{className:"flex items-center text-[12px] not-italic font-normal leading-[120%] text-[var(--color-text)] gap-[4px] ",children:[(0,a.jsxs)("svg",{className:"w-[16px] h-[16px]",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,a.jsx)("mask",{id:"mask0_643_7485",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:(0,a.jsx)("rect",{width:"16",height:"16",fill:"#D9D9D9"})}),(0,a.jsx)("g",{mask:"url(#mask0_643_7485)",children:(0,a.jsx)("path",{d:"M3.33333 14C2.96667 14 2.65278 13.8694 2.39167 13.6083C2.13056 13.3472 2 13.0333 2 12.6667V3.33333C2 2.96667 2.13056 2.65278 2.39167 2.39167C2.65278 2.13056 2.96667 2 3.33333 2H12.6667C13.0333 2 13.3472 2.13056 13.6083 2.39167C13.8694 2.65278 14 2.96667 14 3.33333V12.6667C14 13.0333 13.8694 13.3472 13.6083 13.6083C13.3472 13.8694 13.0333 14 12.6667 14H3.33333ZM5.33333 11.3333H8.66667C8.85556 11.3333 9.01389 11.2694 9.14167 11.1417C9.26944 11.0139 9.33333 10.8556 9.33333 10.6667C9.33333 10.4778 9.26944 10.3194 9.14167 10.1917C9.01389 10.0639 8.85556 10 8.66667 10H5.33333C5.14444 10 4.98611 10.0639 4.85833 10.1917C4.73056 10.3194 4.66667 10.4778 4.66667 10.6667C4.66667 10.8556 4.73056 11.0139 4.85833 11.1417C4.98611 11.2694 5.14444 11.3333 5.33333 11.3333ZM5.33333 8.66667H10.6667C10.8556 8.66667 11.0139 8.60278 11.1417 8.475C11.2694 8.34722 11.3333 8.18889 11.3333 8C11.3333 7.81111 11.2694 7.65278 11.1417 7.525C11.0139 7.39722 10.8556 7.33333 10.6667 7.33333H5.33333C5.14444 7.33333 4.98611 7.39722 4.85833 7.525C4.73056 7.65278 4.66667 7.81111 4.66667 8C4.66667 8.18889 4.73056 8.34722 4.85833 8.475C4.98611 8.60278 5.14444 8.66667 5.33333 8.66667ZM5.33333 6H10.6667C10.8556 6 11.0139 5.93611 11.1417 5.80833C11.2694 5.68056 11.3333 5.52222 11.3333 5.33333C11.3333 5.14444 11.2694 4.98611 11.1417 4.85833C11.0139 4.73056 10.8556 4.66667 10.6667 4.66667H5.33333C5.14444 4.66667 4.98611 4.73056 4.85833 4.85833C4.73056 4.98611 4.66667 5.14444 4.66667 5.33333C4.66667 5.52222 4.73056 5.68056 4.85833 5.80833C4.98611 5.93611 5.14444 6 5.33333 6Z",fill:"currentColor"})})]}),Z]})]}),(0,a.jsx)("div",{className:"mt-auto min-[1024px]:max-[1359px]:hidden lg:flex justify-start hidden",children:(0,a.jsx)("div",{className:"bg-[#FFC300] w-[40px] h-[40px] rounded-[8px] flex justify-center items-center cursor-pointer",children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,a.jsx)("mask",{id:"mask0_643_7711",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:(0,a.jsx)("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),(0,a.jsx)("g",{mask:"url(#mask0_643_7711)",children:(0,a.jsx)("path",{d:"M16.175 13H5C4.71667 13 4.47917 12.9042 4.2875 12.7125C4.09583 12.5208 4 12.2833 4 12C4 11.7167 4.09583 11.4792 4.2875 11.2875C4.47917 11.0958 4.71667 11 5 11H16.175L11.275 6.09999C11.075 5.89999 10.9792 5.66665 10.9875 5.39999C10.9958 5.13332 11.1 4.89999 11.3 4.69999C11.5 4.51665 11.7333 4.42082 12 4.41249C12.2667 4.40415 12.5 4.49999 12.7 4.69999L19.3 11.3C19.4 11.4 19.4708 11.5083 19.5125 11.625C19.5542 11.7417 19.575 11.8667 19.575 12C19.575 12.1333 19.5542 12.2583 19.5125 12.375C19.4708 12.4917 19.4 12.6 19.3 12.7L12.7 19.3C12.5167 19.4833 12.2875 19.575 12.0125 19.575C11.7375 19.575 11.5 19.4833 11.3 19.3C11.1 19.1 11 18.8625 11 18.5875C11 18.3125 11.1 18.075 11.3 17.875L16.175 13Z",fill:"#16253B"})})]})})})]}),(0,a.jsx)(s.default,{src:P[T],alt:(null==A?void 0:A.title)||"Featured marketplace item",height:500,width:600,onError:()=>{T<P.length-1&&q(T+1)},className:"rounded-[8px] w-[535px] lg:h-[432px] h-[200px] min-[1360px]:h-full object-contain bg-[var(--color-surface-muted)]"}),S&&(0,a.jsxs)("div",{className:"flex gap-[8px] lg:hidden block mt-[12px]",children:[S&&(0,a.jsxs)("div",{className:"flex items-center text-[12px] not-italic font-normal leading-[120%] text-[var(--color-text)] gap-[4px]",children:[(0,a.jsxs)("svg",{className:"w-[16px] h-[16px]",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,a.jsx)("mask",{id:"mask0_643_7480",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:(0,a.jsx)("rect",{width:"16",height:"16",fill:"#D9D9D9"})}),(0,a.jsx)("g",{mask:"url(#mask0_643_7480)",children:(0,a.jsx)("path",{d:"M8 8.66667C8.64444 8.66667 9.19445 8.43889 9.65 7.98333C10.1056 7.52778 10.3333 6.97778 10.3333 6.33333C10.3333 5.68889 10.1056 5.13889 9.65 4.68333C9.19445 4.22778 8.64444 4 8 4C7.35556 4 6.80556 4.22778 6.35 4.68333C5.89444 5.13889 5.66667 5.68889 5.66667 6.33333C5.66667 6.97778 5.89444 7.52778 6.35 7.98333C6.80556 8.43889 7.35556 8.66667 8 8.66667ZM3.33333 14C2.96667 14 2.65278 13.8694 2.39167 13.6083C2.13056 13.3472 2 13.0333 2 12.6667V3.33333C2 2.96667 2.13056 2.65278 2.39167 2.39167C2.65278 2.13056 2.96667 2 3.33333 2H12.6667C13.0333 2 13.3472 2.13056 13.6083 2.39167C13.8694 2.65278 14 2.96667 14 3.33333V12.6667C14 13.0333 13.8694 13.3472 13.6083 13.6083C13.3472 13.8694 13.0333 14 12.6667 14H3.33333ZM3.33333 12.6667H12.6667V11.9C12.0667 11.3111 11.3694 10.8472 10.5
175 10.5083C9.78056 10.1694 8.92222 10 8 10C7.07778 10 6.21944 10.1694 5.425 10.5083C4.63056 10.8472 3.93333 11.3111 3.33333 11.9V12.6667Z",fill:"currentColor"})})]}),S]}),Z&&(0,a.jsxs)("div",{className:"flex items-center text-[12px] not-italic font-normal leading-[120%] text-[var(--color-text)] gap-[4px]",children:[(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,a.jsx)("mask",{id:"mask0_643_6281",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:(0,a.jsx)("rect",{width:"16",height:"16",fill:"#D9D9D9"})}),(0,a.jsx)("g",{mask:"url(#mask0_643_6281)",children:(0,a.jsx)("path",{d:"M3.33333 14.6666C2.96667 14.6666 2.65278 14.536 2.39167 14.2749C2.13056 14.0138 2 13.6999 2 13.3333V3.99992C2 3.63325 2.13056 3.31936 2.39167 3.05825C2.65278 2.79714 2.96667 2.66659 3.33333 2.66659H4V1.99992C4 1.81103 4.06389 1.6527 4.19167 1.52492C4.31944 1.39714 4.47778 1.33325 4.66667 1.33325C4.85556 1.33325 5.01389 1.39714 5.14167 1.52492C5.26944 1.6527 5.33333 1.81103 5.33333 1.99992V2.66659H10.6667V1.99992C10.6667 1.81103 10.7306 1.6527 10.8583 1.52492C10.9861 1.39714 11.1444 1.33325 11.3333 1.33325C11.5222 1.33325 11.6806 1.39714 11.8083 1.52492C11.9361 1.6527 12 1.81103 12 1.99992V2.66659H12.6667C13.0333 2.66659 13.3472 2.79714 13.6083 3.05825C13.8694 3.31936 14 3.63325 14 3.99992V13.3333C14 13.6999 13.8694 14.0138 13.6083 14.2749C13.3472 14.536 13.0333 14.6666 12.6667 14.6666H3.33333ZM3.33333 13.3333H12.6667V6.66658H3.33333V13.3333ZM8 9.33325C7.81111 9.33325 7.65278 9.26936 7.525 9.14159C7.39722 9.01381 7.33333 8.85547 7.33333 8.66658C7.33333 8.4777 7.39722 8.31936 7.525 8.19159C7.65278 8.06381 7.81111 7.99992 8 7.99992C8.18889 7.99992 8.34722 8.06381 8.475 8.19159C8.60278 8.31936 8.66667 8.4777 8.66667 8.66658C8.66667 8.85547 8.60278 9.01381 8.475 9.14159C8.34722 9.26936 8.18889 9.33325 8 9.33325ZM5.33333 9.33325C5.14444 9.33325 4.98611 9.26936 4.85833 9.14159C4.73056 9.01381 4.66667 8.85547 4.66667 8.66658C4.66667 8.4777 4.73056 8.3193
16 4.85833 8.19159C4.98611 8.06381 5.14444 7.99992 5.33333 7.99992C5.52222 7.99992 5.68056 8.06381 5.80833 8.19159C5.93611 8.31936 6 8.4777 6 8.66658C6 8.85547 5.93611 9.01381 5.80833 9.14159C5.68056 9.26936 5.52222 9.33325 5.33333 9.33325ZM10.6667 9.33325C10.4778 9.33325 10.3194 9.26936 10.1917 9.14159C10.0639 9.01381 10 8.85547 10 8.66658C10 8.4777 10.0639 8.31936 10.1917 8.19159C10.3194 8.06381 10.4778 7.99992 10.6667 7.99992C10.8556 7.99992 11.0139 8.06381 11.1417 8.19159C11.2694 8.31936 11.3333 8.4777 11.3333 8.66658C11.3333 8.85547 11.2694 9.01381 11.1417 9.14159C11.0139 9.26936 10.8556 9.33325 10.6667 9.33325ZM8 11.9999C7.81111 11.9999 7.65278 11.936 7.525 11.8083C7.39722 11.6805 7.33333 11.5221 7.33333 11.3333C7.33333 11.1444 7.39722 10.986 7.525 10.8583C7.65678 10.7305 7.81111 10.6666 8 10.6666C8.18889 10.6666 8.34722 10.7305 8.475 10.8583C8.60278 10.986 8.66667 11.1444 8.66667 11.3333C8.66667 11.5221 8.60278 11.6805 8.475 11.8083C8.34722 11.936 8.18889 11.9999 8 11.9999ZM5.33333 11.9999C5.14444 11.9999 4.98611 11.936 4.85833 11.8083C4.73056 11.6805 4.66667 11.5221 4.66667 11.3333C4.66667 11.1444 4.73056 10.986 4.85833 10.8583C4.98611 10.7305 5.14444 10.6666 5.33333 10.6666C5.52222 10.6666 5.68056 10.7305 5.80833 10.8583C5.93611 10.986 6 11.1444 6 11.3333C6 11.5221 5.93611 11.6805 5.80833 11.8083C5.68056 11.936 5.52222 11.9999 5.33333 11.9999ZM10.6667 11.9999C10.4778 11.9999 10.3194 11.936 10.1917 11.8083C10.0639 11.6805 10 11.5221 10 11.3333C10 11.1444 10.0639 10.986 10.1917 10.8583C10.3194 10.7305 10.4778 10.6666 10.6667 10.6666C10.8556 10.6666 11.0139 10.7305 11.1417 10.8583C11.2694 10.986 11.3333 11.1444 11.3333 11.3333C11.3333 11.5221 11.2694 11.6805 11.1417 11.8083C11.0139 11.936 10.8556 11.9999 10.6667 11.9999Z",fill:"currentColor"})})]}),Z]})]})]})})}),B.length>1&&(0,a.jsx)("div",{className:"flex flex-col lg:gap-[20px] gap-[12px]",children:B.slice(1,4).map(e=>(0,a.jsx)(n.default,{data:e},e.id))})]}),(0,a.jsxs)(i(),{href:(null==k||null==(v=k.button)?void 0:v.url)||"/marketplace",className:"text-[#F3F6FC] text-center py-[8px] px-[16px] bg-[#213A59] flex justify-center items-center h-[40px] text-[16px] font-[400] leading-[120%] mb-[40px] w-full rounded-[8px] mt-[20px] gap-[8px] lg:hidden block",children:[null==k||null==(w=k.button)?void 0:w.label,(null==k||null==(b=k.button)||null==(j=b.icon)?void 0:j.url)?(0,a.jsx)(s.default,{src:"".concat(d.Q).concat(k.button.icon.url),alt:"icon",width:24,height:24}):(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:[(0,a.jsx)("mask",{id:"mask0_1733_498",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"25",height:"24",children:(0,a.jsx)("rect",{x:"0.5",width:"24",height:"24",fill:"#D9D9D9"})}),(0,a.jsx)("g",{mask:"url(#mask0_1733_498)",children:(0,a.jsx)("path",{d:"M16.6752 13.0001H5.5002C5.21687 13.0001 4.97937 12.9043 4.7877 12.7126C4.59603 12.5209 4.5002 12.2834 4.5002 12.0001C4.5002 11.7168 4.59603 11.4793 4.7877 11.2876C4.97937 11.0959 5.21687 11.0001 5.5002 11.0001H16.6752L11.7752 6.10011C11.5752 5.90011 11.4794 5.66678 11.4877 5.40011C11.496 5.13344 11.6002 4.90011 11.8002 4.70011C12.0002 4.51678 12.2335 4.42094 12.5002 4.41261C12.7669 4.40428 13.0002 4.50011 13.2002 4.70011L19.8002 11.3001C19.9002 11.4001 19.971 11.5084 20.0127 11.6251C20.0544 11.7418 20.0752 11.8668 20.0752 12.0001C20.0752 12.1334 20.0544 12.2584 20.0127 12.3751C19.971 12.4918 19.9002 12.6001 19.8002 12.7001L13.2002 19.3001C13.0169 19.4834 12.7877 19.5751 12.5127 19.5751C12.2377 19.5751 12.0002 19.4834 11.8002 19.3001C11.6002 19.1001 11.5002 18.8626 11.5002 18.5876C11.5002 18.3126 11.6002 18.0751 11.8002 17.8751L16.6752 13.0001Z",fill:"currentColor"})})]})]})]})}},6769:(e,t,l)=>{"use strict";l.d(t,{default:()=>C});var a=l(5155),r=l(2115),i=l(2619),s=l.n(i),n=l(5239),d=l(7062),c=l(1930),o=l(7791),u=l(9576),x=l(199),p=l(2514);let h=e=>{let{title:t,description:l,index:r,url:i}=e;return(0,a.jsxs)(s(),{href:i||"#",className:"flex mb-[27.5px] gap-[12px] last:mb-0 no-underline",children:[(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)("div",{className:"w-[20px] h-[20px] flex flex-col justify-center items-center gap-[10px] bg-[#4080BF] rounded-[4px] text-[#F4F6F7] text-[14px] mt-[2px]",children:r+1})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-[#16253B] font-[700] leading-[100%] font-serif mb-[12px] text-[16px] ",children:t}),(0,a.jsx)("p",{className:"text-[#16253B] text-[16px] leading-[120%] font-[400]",children:l})]})]})},C=e=>{var t;let{latestNewsList:l,title:i,ArticleBtn:C,filterKey:m,deviceType:g}=e,f=g||(0,p.A)(),v=m?"Latest ".concat(m.charAt(0).toUpperCase()+m.slice(1)):(i&&i.trim(),i),w=e=>{if(!e||"object"!=typeof e)return[];let t=(e,t)=>(e||[]).map(e=>{var l,a;return{id:e.id,createdAt:e.createdAt,publishedAt:e.publishedAt,updatedAt:e.updatedAt,initialPublishDate:e.initialPublishDate,deviceTarget:e.deviceTarget,Latestnews:{title:null==(l=e.FeaturedCard)?void 0:l.title,de
1scription:null==(a=e.FeaturedCard)?void 0:a.description,url:((e,t,l)=>{if(!t)return"#";let a=t.replace(/^\//,"");return"article"===e?(0,o.Rj)(l)||"#":"/".concat(e,"/").concat(a)})(t,(null==e?void 0:e.slug)||e.FeaturedCard.url,e)},[t]:e}});return[...t(e.articles,"article"),...t(e.events,"events"),...t(e.podcasts,"podcast"),...t(e.marketplaces,"marketplace"),...t(e.news,"news")]},j=(Array.isArray(l)?l.map(e=>({...e,source:"initial"})):w(l).map(e=>({...e,source:"initial"}))).filter(e=>(0,x.J)(e,f)),[b,y]=(0,r.useState)(()=>j.slice(0,5)),[N,k]=(0,r.useState)(!1);(0,r.useEffect)(()=>{(async()=>{if(b.length>=5)return;let e=[...j],t=e=>{var t,l,a;let r=e.initialPublishDate||(null==(l=e.article)||null==(t=l.FeaturedCard)?void 0:t.parent_slug_for_old_data)||(null==(a=e.event)?void 0:a.StartDate)||e.createdAt||null,i=r?Date.parse(r):NaN;return isNaN(i)?0:i};if(e.length>=5)return y(e.slice(0,5));try{k(!0);let l=5-e.length;e.sort((e,l)=>{let a=t(e);return t(l)-a});let a=(0,u.jB)(),[r]=await Promise.all([(0,c.Qw)(void 0,l,a,f)]),i=w({articles:(null==r?void 0:r.data)||[],podcasts:[],events:[],marketplaces:[],news:[]}).map(e=>({...e,source:"fetched"}));e=(e=>{let t=new Set;return e.filter(e=>!t.has(e.id)&&(t.add(e.id),!0))})([...e,...i]),y(e.slice(0,5))}catch(t){y(e.slice(0,5))}finally{k(!1)}})()},[]);let _=b.length>0?b.slice(0,5):j.slice(0,5),F=m?"All ".concat(m.charAt(0).toUpperCase()+m.slice(1)):(null==C?void 0:C.label)||"",D=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return"";let t={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ",lsquo:"â",rsquo:"â",ldquo:"â",rdquo:"â",ndash:"â",mdash:"â"};return e.replace(/&(#?[\w\d]+);/g,(e,l)=>{if(l.startsWith("#")){let t=l.startsWith("#x")?parseInt(l.slice(2),16):parseInt(l.slice(1),10);return isNaN(t)?e:String.fromCharCode(t)}return t[l]||e})};return(0,a.jsxs)("div",{className:"flex flex-col bg-[#E7EEF7] rounded-[8px] p-6 justify-between items-start h-full",children:[(0,a.jsxs)("div",{className:"h-auto w-full",children:[(0,a.jsx)("h2",{className:"text-2xl not-italic font-bold leading-[100%] text-[#16253B] mb-[27.5px] font-serif",children:v}),(0,a.jsx)("div",{className:"w-full lg:max-h-[588px] min-[1024px]:max-[1140px]:max-h-[640px] overflow-y-auto scrollbar-hide",children:N&&0===_.length?(0,a.jsxs)("div",{className:"w-full lg:h-[576px] flex justify-center items-center flex-col gap-1",children:[(0,a.jsx)(n.default,{src:"/images/loadingSVG.svg",alt:"loading",width:50,height:50}),(0,a.jsx)("h2",{className:"text-[#16253B] font-bold leading-[100%] text-xl",children:"Loading..."})]}):null==_?void 0:_.map((e,t)=>(0,a.jsx)(h,{index:t,title:D(e.Latestnews.title),description:e.Latestnews.description,url:e.Latestnews.url||"#"},e.id))})]}),C&&C.url&&(0,a.jsx)("div",{className:"w-full",children:(0,a.jsxs)(s(),{href:m?"/":(null==C?void 0:C.url)?"".concat(C.url):"/",passHref:!0,className:"flex mt-[27.5px] leading-[120%] px-[16px] py-[8px] justify-center items-center gap-[8px] flex-shrink-0 self-stretch border border-[#16253B] rounded-lg text-[#16253B] font-[400] hover:bg-[#A8C3E0] transition-colors duration-300",scroll:!0,children:[F,(null==(t=C.icon)?void 0:t.url)&&(0,a.jsx)(n.default,{src:"".concat(d.Q).concat(C.icon.url),alt:C.label||"button-icon",width:24,height:24})]})})]})}},8748:(e,t,l)=>{"use strict";l.d(t,{default:()=>o});var a=l(5155),r=l(5239),i=l(7062),s=l(2619),n=l.n(s),d=l(2115),c=l(4639);function o(e){let{data:t}=e,[l,s]=(0,d.useState)(0),o=(!t?[]:Array.isArray(t)||t&&"object"==typeof t&&"slides"in t?t:[]).filter(e=>e&&e.image&&e.image.url);return((0,d.useEffect)(()=>{if(!o.length)return;let e=setInterval(()=>{s(e=>(e+1)%o.length)},1e4);return()=>clearInterval(e)},[o.length]),o&&0!==o.length)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:" lg:block hidden",children:(0,a.jsx)("div",{className:"relative w-full overflow-hidden rounded-lg ",children:(0,a.jsx)("div",{className:"relative w-full h-auto",children:o.map((e,t)=>(0,a.jsx)(n(),{href:(0,c.dW)(e.url),target:"_blank",className:" inset-0 transition-opacity duration-700 ease-in-out ".concat(t===l?"block opacity-100 pointer-events-auto":"hidden opacity-0 pointer-events-none"),children:e.image.url?(0,a.jsx)(r.default,{src:"".concat(i.Q).concat(e.image.url),alt:"slider",quality:100,width:1400,height:400,className:"w-full h-auto object-fill rounded-[8px]"}):(0,a.jsx)("div",{className:"w-full lg:h-[271px] h-[279px] object-cover rounded-[8px] bg-[var(--color-surface-muted)]"})},"desktop-".concat(t,"-").concat(e.id)))})})}),(0,a.jsx)("div",{className:"lg:hidden block",children:(0,a.jsx)("div",{className:"relative w-full overflow-hidden rounded-lg ",children:(0,a.jsx)("div",{className:"relative w-full h-auto",children:o.map((e,t)=>{var s;let d=(null==(s=e.MobileImage)?void 0:s.url)||e.image.url;return(0,a.jsx)(n(),{href:(0,c.dW)(e.url),target:"_blank",className:" inset-0 transition-opacity duration-700 ease-in-out ".concat(t===l?"block opacity-100 pointer-events-auto":"hidden opacity-0 pointer-events-none"),children:(0,a.jsx)(r.default,{src:"".concat(i.Q).concat(d),alt:"slider",quality:100,width:1400,height:400,className:"w-full h-auto object-fill"})},"mobile-".concat(t,"-").concat(e.id))})})})})]}):null}},9576:(e,t,l)=>{"use strict";function a(e){let t=e||function(){let e=new Date().getHours();return e>=5&&e<12?"morning":e>=12&&e<18?"afternoon":"evening"}(),l=new Date().getDay();return 0===l||6===l?"weekend"===t?["weekend"]:[t,"weekend"]:[t]}l.d(t,{jB:()=>a})}},e=>{e.O(0,[7911,1141,5366,1122,228,1305,687,1082,8441,1255,7358],()=>e(e.s=3508)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.