PageSourceSearch

https://global-leaders-main-site.lovable.app/assets/InsightsFeatureLayout-BxpGJe3J.js

js global-leaders-main-site.lovable.app collected 2026-10-03 03:27:43 UTC 4,814 bytes, 1 lines download raw bytes

1import{n as e,t}from"./jsx-runtime-D3jfb0Ew.js";import{t as n}from"./router-compat-B21NJtx7.js";import{t as r}from"./createLucideIcon-DdN9KZOh.js";var i=r(`book`,[[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}]]);e();var a={version:1,asset_id:`28dca26a-237c-4820-8b30-1ac0c1c7f074`,project_id:`d634d925-9800-4a3b-bb62-59dccca8e749`,url:`/__l5e/assets-v1/28dca26a-237c-4820-8b30-1ac0c1c7f074/insights-featured.jpg`,r2_key:`a/v1/d634d925-9800-4a3b-bb62-59dccca8e749/28dca26a-237c-4820-8b30-1ac0c1c7f074/insights-featured.jpg`,original_filename:`insights-featured.jpg`,size:265096,content_type:`image/jpeg`,created_at:`2026-09-28T15:47:39Z`},o={version:1,asset_id:`e0dbe29e-5e96-4702-bfec-b9c6245c7b1b`,project_id:`d634d925-9800-4a3b-bb62-59dccca8e749`,url:`/__l5e/assets-v1/e0dbe29e-5e96-4702-bfec-b9c6245c7b1b/insights-secondary.jpg`,r2_key:`a/v1/d634d925-9800-4a3b-bb62-59dccca8e749/e0dbe29e-5e96-4702-bfec-b9c6245c7b1b/insights-secondary.jpg`,original_filename:`insights-secondary.jpg`,size:436024,content_type:`image/jpeg`,created_at:`2026-09-28T15:47:43Z`},s=t(),c={"how-to-create-a-roundtable-dinner":a.url,"which-events-do-executive-leaders-attend-":o.url},l={"how-to-create-a-roundtable-dinner":`62% 10%`,"which-events-do-executive-leaders-attend-":`72% 0%`},u=e=>new Date(e).toLocaleDateString(`en-GB`,{year:`numeric`,month:`long`,day:`numeric`}),d=e=>e?e.startsWith(`http`)||e.startsWith(`/`)?e:e.includes(`blog-assets/`)?`https://raklhkmqkzfhbrwowrdc.supabase.co/storage/v1/object/public/${e}`:e.includes(`blog-images/`)?`https://raklhkmqkzfhbrwowrdc.supabase.co/storage/v1/object/public/blog-assets/${e}`:`https://raklhkmqkzfhbrwowrdc.supabase.co/storage/v1/object/public/blog-assets/blog-images/${e}`:`/placeholder.svg`,f=({to:e})=>(0,s.jsxs)(n,{to:e,className:`flex items-center text-muted-foreground hover:text-foreground text-xs font-medium transition-colors`,children:[`Read more`,(0,s.jsx)(i,{size:14,className:`ml-1`})]}),p=({category:e})=>(0,s.jsx)(`span`,{className:`border border-border/70 bg-background/70 backdrop-blur-sm text-foreground text-[0.6875rem] font-semibold px-2 py-0.5 rounded`,children:e}),m=e=>({href:`/blog/${e.slug||e.id}`,image:d(e.slug&&c[e.slug]||e.featured_image),imagePosition:l[e.slug||e.id]||`50% 50%`,title:e.title,excerpt:e.excerpt,category:e.category,date:u(e.publish_date)}),h=({posts:e})=>{let t=e[0]?m(e[0]):null,r=e.slice(1,3).map(m);return t?(0,s.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-2 gap-6`,children:[(0,s.jsxs)(`div`,{className:`group bg-background text-foreground rounded-xl overflow-hidden border border-border/60 hover:border-border transition-colors flex flex-col`,children:[(0,s.jsxs)(n,{to:t.href,className:`block relative overflow-hidden`,children:[(0,s.jsx)(`img`,{src:t.image,alt:t.title,style:{objectPosition:t.imagePosition},className:`w-full h-48 md:h-64 object-cover transition-transform duration-300 group-hover:scale-105`,loading:`lazy`,onError:e=>{let t=e.target;t.src=`/placeholder.svg`}}),(0,s.jsx)(`div`,{className:`absolute top-3 right-3`,children:(0,s.jsx)(p,{category:t.category})})]}),(0,s.jsxs)(`div`,{className:`p-6 md:p-8`,children:[(0,s.jsx)(n,{to:t.href,children:(0,s.jsx)(`h3`,{className:`text-xl md:text-2xl font-semibold text-foreground mb-3 group-hover:opacity-70 transition-opacity`,children:t.title})}),(0,s.jsx)(`p`,{className:`text-muted-foreground text-[0.9375rem] mb-5 line-clamp-3 leading-relaxed`,children:t.excerpt}),(0,s.jsx)(`div`,{className:`flex items-center justify-end`,children:(0,s.jsx)(f,{to:t.href})})]})]}),r.length>0&&(0,s.jsx)(`div`,{className:`flex flex-col gap-6`,children:r.map(e=>(0,s.jsxs)(`div`,{className:`group bg-background text-foreground rounded-xl overflow-hidden border border-border/60 hover:border-border transition-colors flex flex-col flex-grow`,children:[(0,s.jsxs)(n,{to:e.href,className:`block relative overflow-hidden`,children:[(0,s.jsx)(`img`,{src:e.image,alt:e.title,style:{objectPosition:e.imagePosition},className:`w-full h-48 md:h-64 object-cover transition-transform duration-300 group-hover:scale-105`,loading:`lazy`,onError:e=>{let t=e.target;t.src=`/placeholder.svg`}}),(0,s.jsx)(`div`,{className:`absolute top-3 right-3`,children:(0,s.jsx)(p,{category:e.category})})]}),(0,s.jsxs)(`div`,{className:`p-5 md:p-6 flex flex-col flex-grow`,children:[(0,s.jsx)(n,{to:e.href,children:(0,s.jsx)(`h3`,{className:`text-lg font-semibold text-foreground mb-2 group-hover:opacity-70 transition-opacity line-clamp-2`,children:e.title})}),(0,s.jsx)(`p`,{className:`text-muted-foreground text-[0.9375rem] mb-4 line-clamp-2 leading-relaxed`,children:e.excerpt}),(0,s.jsx)(`div`,{className:`flex items-center justify-end mt-auto`,children:(0,s.jsx)(f,{to:e.href})})]})]},e.href))})]}):null};export{h as t};

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.