1import{r as e,t}from"./jsx-runtime-DGeXAQPT.js";import{t as n}from"./react-BhjfaixL.js";import{m as r,n as i,t as a}from"./site-footer-BdRXNrYe.js";import{H as o,b as s,c,o as l,s as u,u as d}from"./index-CiNuOnDw.js";var f=e(n(),1),p=t();function m({title:e}){let[t,n]=(0,f.useState)(``);(0,f.useEffect)(()=>{n(window.location.href)},[]);function r(n){let r=encodeURIComponent(t);return n===`x`?`https://twitter.com/intent/tweet?url=${r}&text=${encodeURIComponent(e)}`:n===`linkedin`?`https://www.linkedin.com/sharing/share-offsite/?url=${r}`:`https://www.facebook.com/sharer/sharer.php?u=${r}`}let i=`grid size-9 place-items-center rounded-full border border-border text-xs font-bold transition-colors hover:border-primary hover:text-primary`;return(0,p.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,p.jsx)(`span`,{className:`text-xs font-semibold uppercase tracking-wide text-muted-foreground`,children:`Share`}),(0,p.jsx)(`a`,{className:i,href:r(`x`),target:`_blank`,rel:`noreferrer`,"aria-label":`Share on X`,children:`X`}),(0,p.jsx)(`a`,{className:i,href:r(`linkedin`),target:`_blank`,rel:`noreferrer`,"aria-label":`Share on LinkedIn`,children:`in`}),(0,p.jsx)(`a`,{className:i,href:r(`facebook`),target:`_blank`,rel:`noreferrer`,"aria-label":`Share on Facebook`,children:`f`}),(0,p.jsx)(`button`,{type:`button`,className:i,"aria-label":`Copy link`,onClick:()=>{navigator.clipboard.writeText(window.location.href),d.success(`Link copied`)},children:`â§`})]})}function h(e){return new Date(e).toLocaleDateString(`en-GB`,{day:`numeric`,month:`long`,year:`numeric`,timeZone:`UTC`})}function g(){let{slug:e}=l.useParams(),{data:t}=r(u(e)),{data:n}=r(c),{data:d}=r(s);if(!t)return null;let f=n.filter(e=>e.slug!==t.slug).slice(0,4);return(0,p.jsxs)(`div`,{children:[(0,p.jsx)(i,{menu:d.content.menu}),(0,p.jsx)(`main`,{className:`pb-24 pt-36`,children:(0,p.jsxs)(`div`,{className:`shell grid gap-14 lg:grid-cols-[minmax(0,1fr)_320px]`,children:[(0,p.jsxs)(`article`,{children:[(0,p.jsx)(o,{to:`/blog`,className:`text-sm font-semibold text-primary`,children:`â All articles`}),(0,p.jsx)(`p`,{className:`eyebrow mt-6 text-primary`,children:h(t.published_at)}),(0,p.jsx)(`h1`,{className:`display-lg mt-3`,children:t.title}),(0,p.jsxs)(`div`,{className:`mt-7 flex flex-wrap items-center justify-between gap-5 border-y border-border py-5`,children:[(0,p.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,p.jsx)(`span`,{className:`grid size-11 place-items-center rounded-full bg-primary font-display text-base font-bold text-primary-foreground`,children:`NB`}),(0,p.jsxs)(`div`,{children:[(0,p.jsx)(`p`,{className:`text-sm font-bold`,children:`Next Business Media`}),(0,p.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Editorial team`})]})]}),(0,p.jsx)(m,{title:t.title})]}),t.featured_image?(0,p.jsx)(`img`,{src:t.featured_image,alt:t.title,className:`mt-9 aspect-[16/9] w-full rounded-3xl object-cover`}):null,(0,p.jsx)(`div`,{className:`post-body mt-10`,dangerouslySetInnerHTML:{__html:t.content_html??``}})]}),(0,p.jsxs)(`aside`,{className:`grid h-fit gap-6 lg:sticky lg:top-28`,children:[(0,p.jsxs)(`section`,{className:`card-elevated p-7`,children:[(0,p.jsx)(`h2`,{className:`font-display text-lg font-extrabold uppercase tracking-tight`,children:`About the author`}),(0,p.jsx)(`p`,{className:`mt-4 text-sm text-muted-foreground`,children:`Next Business Media produces the AgriNext Awards & Conference series and reports on how enterprises put artificial intelligence to work across the Middle East, Asia and the US.`}),(0,p.jsx)(o,{to:`/blog`,className:`mt-5 inline-block text-sm font-semibold text-primary hover:underline`,children:`More from this author â`})]}),(0,p.jsxs)(`section`,{className:`card-elevated p-7`,children:[(0,p.jsx)(`h2`,{className:`font-display text-lg font-extrabold uppercase tracking-tight`,children:`Most recent`}),(0,p.jsx)(`ul`,{className:`mt-5 grid gap-5`,children:f.map(e=>(0,p.jsx)(`li`,{children:(0,p.jsxs)(o,{to:`/$slug`,params:{slug:e.slug},className:`group flex gap-3`,children:[e.featured_image?(0,p.jsx)(`img`,{src:e.featured_image,alt:``,loading:`lazy`,className:`size-16 shrink-0 rounded-xl object-cover`}):null,(0,p.jsxs)(`span`,{children:[(0,p.jsx)(`span`,{className:`line-clamp-2 text-sm font-semibold leading-snug group-hover:text-primary`,children:e.title}),(0,p.jsx)(`span`,{className:`mt-1 block text-xs text-muted-foreground`,children:h(e.published_at)})]})]})},e.slug))})]}),(0,p.jsxs)(`section`,{className:`card-elevated bg-ink p-7 text-ink-foreground`,children:[(0,p.jsx)(`h2`,{className:`font-display text-lg font-extrabold uppercase tracking-tight`,children:`Stay updated`}
1),(0,p.jsx)(`p`,{className:`mt-3 text-sm text-ink-foreground/75`,children:`Get edition announcements, speaker reveals and AgriNext analysis in your inbox.`}),(0,p.jsx)(o,{to:`/blog`,className:`mt-5 inline-flex rounded-full bg-primary px-6 py-3 text-sm font-semibold uppercase tracking-wide text-primary-foreground`,children:`Read the blog`})]})]})]})}),(0,p.jsx)(a,{content:d.content.footer,logoUrl:d.content.menu.logoUrl})]})}export{g as component};
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.