1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DJ08PeAM.js","assets/rolldown-runtime-QTnfLwEv.js","assets/vendor-supabase-Yo2Fyd6_.js","assets/vendor-CTuuM_sk.js","assets/vendor-radix-BRBNJGhr.js","assets/vendor-icons-DLJSs3VG.js","assets/vendor-react-DEFR299t.js"])))=>i.map(i=>d[i]); 2import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{yt as t}from"./vendor-CTuuM_sk.js";import{l as n}from"./vendor-radix-BRBNJGhr.js";import{n as r}from"./vendor-supabase-Yo2Fyd6_.js";import{Ct as i,Fn as a,Gn as o,Nt as s,Ot as c,Rn as l,V as u,_ as d,ar as f,ct as p,ft as m,jt as h,mn as g,rn as _,sr as v,t as y,ur as b,wt as x,z as ee}from"./vendor-icons-DLJSs3VG.js";import{$n as te,$r as S,Bi as C,Ci as w,Di as ne,Gi as T,Gt as re,Ht as E,Ii as D,In as O,Ji as k,Jt as ie,Ki as ae,Kt as A,Qi as j,Qn as oe,Qr as M,Qt as se,Si as ce,Ti as N,Tn as P,Ut as le,Wt as ue,Xn as de,Xt as F,Yn as fe,Yt as pe,Zt as me,_i as I,_n as he,an as ge,ci as _e,gi as ve,hi as ye,in as be,li as xe,nn as Se,oi as L,on as Ce,qt as we,rn as Te,si as Ee,sn as R,ti as z,tn as De,ui as B,un as V,xi as Oe,yi as ke,zt as Ae}from"./index-DJ08PeAM.js";import{t as H}from"./brief-cover-Ca43mPFT.js";import{n as je}from"./reading-signals-CPAMYwrf.js";import{n as U}from"./reader-tier-B7bmoZ1T.js";import{n as Me}from"./client-DeybM5Qx.js";import{t as Ne}from"./company-context.queries-CUgUJluS.js";import{l as Pe,n as W,r as Fe,s as Ie}from"./poll-history-BAVenkjz.js";import{n as G}from"./share-log-D2vjSpBM.js";import{t as Le}from"./related-log-rxxTdY1G.js";import{t as Re}from"./author-bio-C0qdiS1l.js";import{t as ze}from"./article-faq-fVk7dxqb.js";import{t as Be}from"./pull-quote-BlktS9a6.js";var K=e(t(),1),q=n();function Ve({className:e=``}){return(0,q.jsxs)(`section`,{"aria-label":`The Retail Brief weekly audio briefing`,className:`overflow-hidden rounded-2xl p-6 text-white shadow-[0_24px_50px_-32px_rgba(0,0,0,0.6)] ${e}`,style:{backgroundImage:`linear-gradient(145deg,#FE1918,#D81211)`},children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(`span`,{className:`h-px flex-1 bg-white/35`,"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:`font-sans text-[10px] font-bold uppercase tracking-[0.2em] text-white`,children:`Weekly audio briefing`}),(0,q.jsx)(`span`,{className:`h-px flex-1 bg-white/35`,"aria-hidden":`true`})]}),(0,q.jsx)(j,{to:`/the-retail-brief`,className:`mt-6 block`,children:(0,q.jsx)(H,{square:!0,showMeta:!0,className:`w-full`})}),(0,q.jsx)(`p`,{className:`mt-6 text-sm leading-relaxed text-white`,children:`Five to seven minutes on what moved Asian retail this week: markets, expansions and people moves, read for you every Sunday.`}),(0,q.jsxs)(j,{to:`/the-retail-brief`,className:`mt-6 inline-flex w-full items-center justify-center gap-2 rounded-lg bg-white px-4 py-3.5 font-sans text-[11px] font-bold uppercase tracking-[0.12em] text-brand shadow-lg transition-transform duration-200 hover:-translate-y-0.5`,children:[(0,q.jsx)(p,{className:`h-4 w-4 fill-current`,"aria-hidden":`true`}),`Listen to this week's brief`]}),(0,q.jsx)(`p`,{className:`mt-4 text-center font-sans text-[10px] uppercase tracking-[0.18em] text-white`,children:`New episode every Sunday`})]})}var J={id:`free`,name:`Free account`,price:`â¬0`,billing:null,summary:`Unlimited articles instead of 10 a month, one episode of The Retail Brief a month, the newsletters (Mon, Wed and the Friday Weekly Wrap) and a personalised My Retail feed.`,includes:[`Unlimited articles, the 10-a-month cap disappears`,`One episode of The Retail Brief a month`,`Newsletter on Monday, Wednesday and Friday, opt in or out whenever you like`,`My Retail: a feed built from what you follow`,`Saved articles synced across your devices`,`Follow topics, markets and companies`,`Deal & Expansion Tracker preview and one saved alert`],cta:{label:`Join free`,to:`/register`,search:{next:`/my-retail`,source:`why_join`},rationale:`Free forever. Verify your email and you are in.`}},Y={id:`executive`,name:`Executive Membership`,price:`â¬250`,billing:`per year, renews annually`,summary:`The complete Deal & Expansion Tracker: every opening, closing, market entry, acquisition, investment and partnership we report, structured and searchable.`,includes:[`Everything in the free account, without the caps`,`Unlimited episodes of The Retail Brief, no monthly quota`,`Full access to the Research desk, quarterly reports and the Retail Academy`,`Full Deal & Expansion Tracker with all available history`,`Advanced filters: type, company, sector, market, city, date, amount, status`,`Company timelines and side-by-side comparisons`,`Unlimited saved searches with immediate, daily or weekly alerts`,`CSV exports of your result sets`,`Premium monthly intelligence report`,z,`Enhanced My Retail intelligence modules`,`Self-service billing, invoices and cancellation`],cta:{label:`Join Executive`,to:`/membership`,rationale:`â¬250 a year. Cancel any time; access runs to the end of the paid period.`}};function X(e){switch(e){case`anonymous`:case`newsletter`:return J;case`free`:return Y;default:return null}}function He({placement:e,className:t=``}){let{tier:n,ready:r}=U(),i=r?X(n):null,o=(0,K.useRef)(null);return(0,K.useEffect)(()=>
2{if(!i)return;let t=`${e}:${i.id}`;o.current!==t&&(o.current=t,D(`conversion_module_view`,{placement:e,reader_tier:n,offer_tier:i.id}))},[i,e,n]),r?!i||n===`anonymous`?null:(0,q.jsx)(`section`,{className:`hairline-t hairline-b bg-muted/40 ${t}`,"aria-label":`Next step`,children:(0,q.jsx)(`div`,{className:`container-editorial py-10 md:py-14`,children:(0,q.jsx)(`div`,{className:`overflow-hidden rounded-xl border border-border bg-background shadow-sm`,children:(0,q.jsxs)(`div`,{className:`grid md:grid-cols-[minmax(0,1.55fr)_minmax(0,1fr)]`,children:[(0,q.jsxs)(`div`,{className:`min-w-0 p-6 md:p-8`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,q.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 bg-brand/10 px-2.5 py-1 font-sans text-[10px] font-bold uppercase tracking-[0.22em] text-brand`,children:[(0,q.jsx)(g,{className:`h-3 w-3`,"aria-hidden":!0}),i.name]}),(0,q.jsx)(`span`,{className:`font-sans text-[11px] font-semibold uppercase tracking-[0.18em] text-ink-muted`,children:i.price})]}),(0,q.jsx)(`h2`,{className:`mt-4 font-serif text-2xl font-bold leading-[1.15] tracking-tight md:text-[2rem]`,children:i.name}),(0,q.jsx)(`p`,{className:`mt-3 max-w-xl text-sm leading-relaxed text-ink-muted`,children:i.summary}),(0,q.jsx)(`ul`,{className:`mt-6 grid gap-x-6 gap-y-2.5 sm:grid-cols-2`,children:i.includes.slice(0,4).map(e=>(0,q.jsxs)(`li`,{className:`flex items-start gap-2.5 text-sm leading-snug`,children:[(0,q.jsx)(`span`,{className:`mt-0.5 grid h-4 w-4 shrink-0 place-items-center rounded-full bg-brand/10`,children:(0,q.jsx)(a,{className:`h-3 w-3 text-brand`,"aria-hidden":!0})}),(0,q.jsx)(`span`,{className:`min-w-0`,children:e})]},e))})]}),(0,q.jsxs)(`div`,{className:`flex flex-col justify-center gap-3 border-t border-border bg-muted/50 p-6 md:border-l md:border-t-0 md:p-8`,children:[(0,q.jsxs)(j,{to:i.cta.to,search:i.cta.search??{},onClick:()=>D(`conversion_module_click`,{placement:e,reader_tier:n,offer_tier:i.id}),className:`group inline-flex min-h-12 w-full items-center justify-center gap-2 bg-brand px-6 font-sans text-sm font-bold uppercase tracking-wide text-brand-foreground transition hover:opacity-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-2`,children:[i.cta.label,(0,q.jsx)(v,{className:`h-4 w-4 transition-transform group-hover:translate-x-0.5`,"aria-hidden":!0})]}),(0,q.jsx)(`p`,{className:`text-xs leading-relaxed text-ink-muted`,children:i.cta.rationale}),(0,q.jsx)(j,{to:`/membership`,className:`font-sans text-[11px] font-semibold uppercase tracking-[0.14em] text-ink-muted underline-offset-4 hover:text-brand hover:underline`,children:`Compare all three`})]})]})})})}):(0,q.jsx)(`div`,{className:t,style:{minHeight:220},"aria-hidden":!0})}function Ue({targetSelector:e=`article`}){let[t,n]=(0,K.useState)(0);return(0,K.useEffect)(()=>{let t=0,r=()=>{t=0;let r=document.querySelector(e);if(!r)return n(0);let i=r.getBoundingClientRect(),a=window.innerHeight,o=i.height-a;if(o<=0)return n(i.top<0?100:0);n(Math.min(Math.max(-i.top,0),o)/o*100)},i=()=>{t||=requestAnimationFrame(r)};return r(),window.addEventListener(`scroll`,i,{passive:!0}),window.addEventListener(`resize`,i),()=>{window.removeEventListener(`scroll`,i),window.removeEventListener(`resize`,i),t&&cancelAnimationFrame(t)}},[e]),(0,q.jsx)(`div`,{"aria-hidden":!0,className:`pointer-events-none fixed inset-x-0 top-0 z-40 h-[3px] bg-transparent`,children:(0,q.jsx)(`div`,{className:`h-full bg-brand transition-[width] duration-100 ease-out`,style:{width:`${t}%`}})})}function We({entries:e}){let t=S(),[n,r]=(0,K.useState)(e[0]?.id??null);return(0,K.useEffect)(()=>{if(!e.length)return;let t=new IntersectionObserver(e=>{let t=e.filter(e=>e.isIntersecting).sort((e,t)=>e.boundingClientRect.top-t.boundingClientRect.top);t[0]&&r(t[0].target.id)},{rootMargin:`-96px 0px -70% 0px`,threshold:[0,1]});for(let n of e){let e=document.getElementById(n.id);e&&t.observe(e)}return()=>t.disconnect()},[e]),e.length?(0,q.jsxs)(`nav`,{"aria-label":`In this article`,className:`text-sm`,children:[(0,q.jsxs)(`p`,{className:`category-eyebrow mb-3 flex items-center gap-2`,children:[(0,q.jsx)(`span`,{className:`h-px w-6 bg-brand`}),M(t,`inThisArticle`)]}),(0,q.jsx)(`ul`,{className:`space-y-1.5 border-l border-hairline pl-4`,children:e.map(e=>{let t=n===e.id;return(0,q.jsx)(`li`,{className:e.level===3?`pl-3`:``,children:(0,q.jsx)(`a`,{href:`#${e.id}`,onClick:()=>D(`toc_click`,{section_id:e.id,section_title:e.text,section_level:e.level}),className:`block leading-snug transition-colors `+(t?`font-semibold text-brand`:`text-ink-muted hover:text-foreground`),children:e.text})},e.id)})})]}):null}function Ge({post:e,fromSlug:t,position:n=0}){let r=B(e),i=I(e)[0],a=w(e),{ref:o,prefetchProps:s}=A(e.slug),c=()=>Le({module:`inline`,position:n,fromSlug:t,toSlug:e.slug,toTitle:a});return(0,q.jsxs)(`aside`,{ref:o,"aria-label":`Related read`,className:`my-10 border-y border-foreground
2/70 py-6 not-prose`,children:[(0,q.jsxs)(`p`,{className:`category-eyebrow mb-3 flex items-center gap-2`,children:[(0,q.jsx)(`span`,{className:`h-px w-6 bg-brand`}),`Related read`]}),(0,q.jsxs)(j,{to:`/$slug`,params:{slug:e.slug},onClick:c,onAuxClick:c,...s,"data-related-module":`inline`,"data-related-position":n,className:`group grid gap-5 sm:grid-cols-[160px_1fr] sm:items-center`,children:[r?(0,q.jsx)(`div`,{className:`overflow-hidden rounded-md bg-muted`,children:(0,q.jsx)(`img`,{src:r.src,alt:r.alt,loading:`lazy`,decoding:`async`,onError:Ee,className:`aspect-[4/3] w-full object-cover transition-transform duration-500 group-hover:scale-[1.04]`})}):null,(0,q.jsxs)(`div`,{className:`min-w-0`,children:[i?(0,q.jsx)(`p`,{className:`text-[10px] font-bold uppercase tracking-wide text-brand font-sans`,children:i.name}):null,(0,q.jsx)(`h3`,{className:`mt-1.5 font-serif text-xl font-bold leading-snug tracking-tight group-hover:text-brand md:text-2xl`,children:a})]})]})]})}function Ke({title:e}){let t=S(),[n,r]=(0,K.useState)(``),[i,o]=(0,K.useState)(!1);(0,K.useEffect)(()=>{r(window.location.href)},[]);let c=encodeURIComponent(e),l=encodeURIComponent(n),u=(t,n)=>{G(t,e),window.open(n,`_blank`,`noopener,noreferrer,width=600,height=520`)},f=async()=>{G(`copy`,e);try{await navigator.clipboard.writeText(n),o(!0),setTimeout(()=>o(!1),1600)}catch{}},p=`group flex h-11 w-11 items-center justify-center rounded-full border border-brand/30 bg-card text-brand transition-all hover:border-brand hover:bg-brand hover:text-brand-foreground hover:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand`;return(0,q.jsx)(`div`,{className:`hidden xl:block`,children:(0,q.jsxs)(`div`,{className:`sticky top-32 flex flex-col items-center gap-3`,children:[(0,q.jsx)(`span`,{className:`mb-2 text-[10px] font-bold uppercase tracking-wide text-brand font-sans`,children:M(t,`share`)}),(0,q.jsx)(`button`,{className:p,onClick:()=>u(`twitter`,`https://twitter.com/intent/tweet?text=${c}&url=${l}`),"aria-label":`Share on X / Twitter`,children:(0,q.jsx)(d,{className:`h-4 w-4 transition-transform group-hover:scale-110`})}),(0,q.jsx)(`button`,{className:p,onClick:()=>u(`linkedin`,`https://www.linkedin.com/sharing/share-offsite/?url=${l}`),"aria-label":`Share on LinkedIn`,children:(0,q.jsx)(h,{className:`h-4 w-4 transition-transform group-hover:scale-110`})}),(0,q.jsx)(`button`,{className:p,onClick:()=>u(`facebook`,`https://www.facebook.com/sharer/sharer.php?u=${l}`),"aria-label":`Share on Facebook`,children:(0,q.jsx)(_,{className:`h-4 w-4 transition-transform group-hover:scale-110`})}),(0,q.jsx)(`a`,{className:p,href:`mailto:?subject=${c}&body=${l}`,"aria-label":`Share by email`,onClick:()=>G(`email`,e),children:(0,q.jsx)(x,{className:`h-4 w-4 transition-transform group-hover:scale-110`})}),(0,q.jsx)(`button`,{className:p,onClick:f,"aria-label":`Copy link`,children:i?(0,q.jsx)(a,{className:`h-4 w-4 text-brand`}):(0,q.jsx)(s,{className:`h-4 w-4 transition-transform group-hover:scale-110`})})]})})}function qe(e){if(!e)return null;try{let t=new URL(e),n=t.hostname.replace(/^www\./,``);if(n!==`retailnews.asia`&&n!==`crm.retailnews.asia`)return null;let r=t.pathname.split(`/`).filter(Boolean),i=r[r.length-1];return i&&!i.includes(`.`)?i:null}catch{return null}}function Z({label:e,value:t,delta:n}){let r=!!n&&n.trim().startsWith(`-`);return(0,q.jsxs)(`div`,{className:`flex items-baseline justify-between gap-3 border-b border-hairline py-2 last:border-b-0`,children:[(0,q.jsx)(`span`,{className:`text-[11px] font-bold uppercase tracking-wide text-ink-muted font-sans`,children:e}),(0,q.jsxs)(`span`,{className:`flex items-baseline gap-2 text-right`,children:[(0,q.jsx)(`span`,{className:`font-serif text-base font-bold tabular-nums`,children:t}),n?(0,q.jsx)(`span`,{className:`text-[11px] font-bold tabular-nums ${r?`text-brand`:`text-emerald-600 dark:text-emerald-400`}`,children:n}):null]})]})}function Je({tags:e,title:t,currentSlug:n,variant:r=`rail`,toc:i,category:a}){let{data:s}=T(Ne(n?{articleSlug:n,title:t,tags:e,category:a}:null)),c=s?.context??null,l=!!s?.isCompany,u=s?.scope===`category`,d=s?.scope===`latest`,p=!!s?.isCategoryLink,m=s?.subject??{name:`Retail in Asia`,slug:``}
2,h=i?.length?(0,q.jsx)(We,{entries:i}):null;if(!m.slug&&!c)return h;let g=c?.profile??null,_=!!g&&(!!g.revenue_value||g.store_count!=null||g.markets!=null||!!g.ticker);if(!_&&!c?.stories.length)return h;let v=m,y=v.slug?l&&!u&&!d?{to:`/companies/$company`,params:{company:v.slug}}:p?{to:`/category/$slug`,params:{slug:v.slug}}:{to:`/tag/$slug`,params:{slug:v.slug}}:{to:`/`};return(0,q.jsxs)(`section`,{"aria-label":`About ${v.name}`,className:`border border-hairline bg-card ${r===`inline`?`my-8 lg:hidden`:``}`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-2 border-l-4 border-brand bg-brand px-3 py-2`,children:[(0,q.jsx)(o,{className:`h-3.5 w-3.5 text-white`,"aria-hidden":!0}),(0,q.jsx)(`p`,{className:`text-[11px] font-bold uppercase tracking-wide text-white font-sans`,children:l&&!u&&!d?`Company profile`:`Topic profile`})]}),(0,q.jsxs)(`div`,{className:`p-4`,children:[(0,q.jsxs)(`div`,{className:`flex items-start gap-3`,children:[g?.logo_url?(0,q.jsx)(`img`,{src:g.logo_url,alt:``,width:40,height:40,loading:`lazy`,decoding:`async`,className:`h-10 w-10 shrink-0 object-contain`}):null,(0,q.jsxs)(`div`,{className:`min-w-0`,children:[(0,q.jsx)(j,{...y,className:`font-serif text-xl font-bold leading-tight hover:text-brand`,children:v.name}),(0,q.jsx)(`p`,{className:`mt-0.5 text-[11px] uppercase tracking-wide text-ink-muted font-sans`,children:[g?.legal_name,g?.hq_country,g?.sector??c?.sector??`Topic`].filter(Boolean).join(` · `)})]})]}),g?.summary?(0,q.jsx)(`p`,{className:`mt-3 text-sm leading-snug text-foreground/80`,children:g.summary}):null,_?(0,q.jsxs)(`div`,{className:`mt-4`,children:[g?.revenue_value?(0,q.jsx)(Z,{label:g.revenue_label||`Revenue`,value:g.revenue_value,delta:g.revenue_delta}):null,g?.store_count==null?null:(0,q.jsx)(Z,{label:`Stores`,value:g.store_count.toLocaleString(`en-GB`),delta:g.store_delta}),g?.markets==null?null:(0,q.jsx)(Z,{label:`Markets`,value:String(g.markets)}),g?.employees?(0,q.jsx)(Z,{label:`Employees`,value:g.employees}):null,g?.ticker?(0,q.jsx)(Z,{label:`Listing`,value:g.ticker}):null]}):null,c?.moves.length?(0,q.jsxs)(`div`,{className:`mt-4 border-t border-hairline pt-3`,children:[(0,q.jsx)(`p`,{className:`text-[11px] font-bold uppercase tracking-wide text-ink-muted font-sans`,children:`Latest people move`}),c.moves.slice(0,1).map(e=>{let t=`${e.person_name}${e.new_role?`, ${e.new_role}`:``}`,n=`mt-1 block text-sm font-semibold leading-snug hover:text-brand`,r=qe(e.source_url);return r?(0,q.jsx)(j,{to:`/$slug`,params:{slug:r},className:n,children:t},e.slug):e.source_url?(0,q.jsx)(`a`,{href:e.source_url,target:`_blank`,rel:`noopener noreferrer nofollow`,className:n,children:t},e.slug):(0,q.jsx)(j,{to:`/people-moves`,className:n,children:t},e.slug)})]}):null,c?.stories.length?(0,q.jsxs)(`div`,{className:`mt-4 border-t border-hairline pt-3`,children:[(0,q.jsx)(`p`,{className:`text-[11px] font-bold uppercase tracking-wide text-ink-muted font-sans`,children:`Latest stories`}),(0,q.jsx)(`ol`,{className:`mt-2 flex flex-col`,children:c.stories.map((e,t)=>(0,q.jsxs)(`li`,{className:`flex gap-3 border-b border-hairline py-2 last:border-b-0`,children:[(0,q.jsx)(`span`,{className:`font-serif text-sm font-bold tabular-nums text-brand/70`,children:String(t+1).padStart(2,`0`)}),(0,q.jsx)(j,{to:`/$slug`,params:{slug:e.slug},className:`text-sm font-semibold leading-snug hover:text-brand`,children:e.title})]},e.slug))})]}):null,(0,q.jsxs)(j,{...y,className:`mt-4 inline-flex items-center gap-1.5 text-[11px] font-bold uppercase tracking-wide text-brand hover:underline font-sans`,children:[l&&!u&&!d?`Full ${v.name} dossier`:`All ${v.name} coverage`,c?.storyCount?` (${c.storyCount})`:``,(0,q.jsx)(f,{className:`h-3.5 w-3.5`,"aria-hidden":!0})]}),g?.source_url?(0,q.jsxs)(`p`,{className:`mt-3 text-[10px] leading-snug text-ink-muted`,children:[`Figures:`,` `,(0,q.jsx)(`a`,{href:g.source_url,target:`_blank`,rel:`noopener noreferrer nofollow`,className:`underline hover:text-brand`,children:g.source_note||g.fiscal_year||`company filing`}),g.verified_at?` · verified ${new Date(g.verified_at).toLocaleDateString(`en-GB`,{month:`short`,year:`numeric`})}`:``]}):null,i?.length?(0,q.jsx)(`div`,{className:`mt-5 border-t border-hairline pt-5`,children:(0,q.jsx)(We,{entr
2ies:i})}):null]})]})}function Ye(e){let t=(0,K.useRef)(null),n=(0,K.useRef)(null);(0,K.useEffect)(()=>{if(!e||typeof window>`u`)return;let r=e.publishedAt?Math.max(0,Math.round((Date.now()-new Date(e.publishedAt).getTime())/864e5)):null;C({content_type:`article`,article_slug:e.slug,article_title:e.title,content_category:e.category??`uncategorised`,content_categories:e.categories.slice(0,5).join(`|`)||void 0,content_tags:e.tags.slice(0,8).join(`|`)||void 0,content_author:e.author??`unknown`,author_type:e.authorType,word_count:e.wordCount,reading_minutes:e.readingMinutes,content_age_days:r??void 0,published_at:e.publishedAt??void 0,content_locale:e.locale,is_sponsored:e.sponsored,is_translated:!!e.translated}),t.current!==e.slug&&(t.current=e.slug,D(`article_view`,{}));let i=Math.max(20,Math.round(e.readingMinutes*60/2)),a=0,o=Date.now(),s=!1,c=()=>{let e=document.documentElement.scrollHeight-window.innerHeight;(e<=0?100:window.scrollY/e*100)>=75&&(s=!0),l()},l=()=>{if(n.current===e.slug||!s)return;let t=Date.now();document.visibilityState===`visible`&&(a+=t-o),o=t,!(a/1e3<i)&&(n.current=e.slug,D(`article_read`,{engaged_seconds:Math.round(a/1e3),percent_scrolled:75}))},u=window.setInterval(l,5e3);return window.addEventListener(`scroll`,c,{passive:!0}),()=>{window.clearInterval(u),window.removeEventListener(`scroll`,c)}},[e?.slug,e?.locale])}function Xe({bullets:e}){return!e||e.length<2?null:(0,q.jsxs)(`aside`,{className:`my-8 border-l-[3px] border-brand bg-muted/50 px-5 py-5 sm:px-6`,children:[(0,q.jsxs)(`p`,{className:`flex items-center gap-2 text-sm font-medium italic text-brand font-serif`,children:[(0,q.jsx)(y,{className:`h-3.5 w-3.5`,"aria-hidden":!0}),`Why it matters`]}),(0,q.jsx)(`ul`,{className:`mt-4 space-y-3`,children:e.map((e,t)=>(0,q.jsxs)(`li`,{className:`flex gap-3 text-[0.95rem] leading-relaxed text-foreground`,children:[(0,q.jsx)(`span`,{"aria-hidden":!0,className:`mt-[0.55rem] h-1.5 w-1.5 shrink-0 rounded-full bg-brand`}),(0,q.jsx)(`span`,{children:e})]},t))}),(0,q.jsx)(`p`,{className:`mt-4 text-[10px] uppercase tracking-[0.08em] text-ink-muted font-serif`,children:`Retail News Asia newsroom analysis`})]})}function Ze({text:e,authorName:t}){let n=(e??``).trim();return n.length<80?null:(0,q.jsxs)(`aside`,{className:`my-12 border-y-2 border-brand bg-brand/[0.04] px-5 py-7 sm:px-7`,children:[(0,q.jsxs)(`p`,{className:`flex items-center gap-2 text-sm font-semibold text-brand font-serif`,children:[(0,q.jsx)(m,{className:`h-3.5 w-3.5`,"aria-hidden":!0}),`What this means`]}),(0,q.jsx)(`p`,{className:`mt-4 font-serif text-[1.05rem] leading-relaxed text-foreground`,children:n}),t&&(0,q.jsx)(`p`,{className:`mt-5 text-[10px] uppercase tracking-[0.08em] text-ink-muted font-serif`,children:t})]})}function Qe({badge:e}){return e?(0,q.jsxs)(j,{to:/ma|merger|acquisition|funding/i.test(e.eventType)?`/deals`:`/tracker`,className:`group my-8 flex items-center gap-3 border border-brand/40 bg-brand/5 px-4 py-3 transition hover:bg-brand/10`,children:[(0,q.jsx)(`span`,{className:`flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-brand text-white`,children:(0,q.jsx)(b,{className:`h-4 w-4`,"aria-hidden":!0})}),(0,q.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,q.jsx)(`span`,{className:`block text-[10px] font-bold uppercase tracking-[0.08em] text-brand font-serif`,children:e.label}),(0,q.jsx)(`span`,{className:`mt-0.5 block truncate text-sm text-foreground`,children:e.headline})]}),(0,q.jsx)(v,{className:`h-4 w-4 shrink-0 text-brand transition group-hover:translate-x-0.5`,"aria-hidden":!0})]}):null}var Q=`rna_voter_key`;function $e(){if(typeof window>`u`)return``;try{let e=localStorage.getItem(Q);return e||(e=crypto.randomUUID().replace(/-/g,``),localStorage.setItem(Q,e)),e}catch{return``}}function et(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return t>>>0}var tt=15673;function nt(e,t){let n=tt+et(e)%8893,r=t.map((t,n)=>1+et(`${e}:${t}:${n}`)%1e3/1e3),i=r.reduce((e,t)=>e+t,0),a={},o=0;return t.forEach((e,s)=>{let c=s===t.length-1?n-o:Math.round(r[s]/i*n);a[e]=c,o+=c}),a}function rt({slug:e,question:t,options:n}){let r=k(F),i=k(me),[o,s]=K.useState(null),[c,u]=K.useState(null);K.useEffect(()=>{let t=!0;return r({data:{slug:e,voterKey:$e()||void 0}}).then(e=>{t&&s(e)}).catch(()=>{}),()=>{t=!1}},[e,r]);let d=o?.myChoice??null,f=async t=>{let n=$e();if(!(!n||d)){u(t);
2try{s(await i({data:{slug:e,choice:t,voterKey:n}})),W(e,t)}catch{}finally{u(null)}}},p=K.useMemo(()=>nt(e,n),[e,n]),m=e=>(p[e]??0)+(o?.counts?.[e]??0),h=n.reduce((e,t)=>e+m(t),0);return(0,q.jsxs)(`section`,{className:`my-12 border border-hairline bg-muted/40 px-5 py-6 sm:px-6`,children:[(0,q.jsxs)(`p`,{className:`flex items-center gap-2 text-sm font-semibold text-brand font-serif`,children:[(0,q.jsx)(l,{className:`h-3.5 w-3.5`,"aria-hidden":!0}),`Reader pulse`]}),(0,q.jsx)(`h3`,{className:`mt-3 font-serif text-xl font-bold leading-snug sm:text-2xl`,children:t}),(0,q.jsx)(`div`,{className:`mt-5 space-y-2.5`,children:n.map(e=>{let t=m(e),n=h>0?Math.round(t/h*100):0,r=d===e;return d?(0,q.jsxs)(`div`,{className:`relative overflow-hidden border border-hairline bg-card`,children:[(0,q.jsx)(`span`,{"aria-hidden":!0,className:`absolute inset-y-0 left-0 `+(r?`bg-brand/20`:`bg-muted`),style:{width:`${n}%`}}),(0,q.jsxs)(`div`,{className:`relative flex items-center justify-between gap-3 px-4 py-2.5`,children:[(0,q.jsxs)(`span`,{className:`flex items-center gap-2 text-sm font-medium`,children:[r?(0,q.jsx)(a,{className:`h-3.5 w-3.5 text-brand`,"aria-hidden":!0}):null,e]}),(0,q.jsxs)(`span`,{className:`text-[11px] font-bold text-ink-muted font-mono`,children:[n,`%`]})]})]},e):(0,q.jsxs)(`button`,{type:`button`,onClick:()=>void f(e),disabled:c!==null,className:`flex w-full items-center justify-between gap-3 border border-hairline bg-card px-4 py-2.5 text-left text-sm font-medium transition hover:border-brand hover:text-brand disabled:opacity-60`,children:[e,(0,q.jsx)(`span`,{className:`text-[10px] uppercase tracking-[0.08em] text-ink-muted font-serif`,children:`Vote`})]},e)})}),(0,q.jsxs)(`p`,{className:`mt-4 text-[10px] uppercase tracking-[0.08em] text-ink-muted font-serif`,children:[h.toLocaleString(`en-US`),` votes so far`]})]})}function it(){let e=typeof window<`u`?window.location.pathname:`/`;return(0,q.jsx)(`div`,{className:`relative mx-auto mt-10 w-full max-w-3xl`,children:(0,q.jsxs)(`div`,{className:`border-y-4 border-y-brand bg-card p-8 text-center shadow-sm`,children:[(0,q.jsx)(c,{className:`mx-auto h-8 w-8 text-brand`,"aria-hidden":!0}),(0,q.jsx)(`h2`,{className:`mt-4 font-serif text-2xl font-bold tracking-tight`,children:`You've read your 10 free articles this month`}),(0,q.jsx)(`p`,{className:`mx-auto mt-2 max-w-md text-sm text-ink-muted`,children:`Create a free account to keep reading unlimited articles from across Asian retail.`}),(0,q.jsxs)(`div`,{className:`mt-6 flex flex-wrap items-center justify-center gap-3`,children:[(0,q.jsx)(j,{to:`/register`,search:{next:e,source:`article_limit`},className:`inline-flex min-h-11 items-center bg-brand px-6 text-sm font-bold uppercase tracking-wide text-brand-foreground hover:opacity-90 font-sans`,children:`Create free account`}),(0,q.jsx)(j,{to:`/auth`,className:`inline-flex min-h-11 items-center px-4 text-sm font-bold uppercase tracking-wide text-ink-muted underline-offset-4 hover:text-brand hover:underline font-sans`,children:`Sign in`})]})]})})}var at=`rna_limits_v1`,ot={articles:10,podcasts:0};function st(){let e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}`}function $(){return{month:st(),articles:[],podcasts:[]}}function ct(){if(typeof window>`u`)return $();try{let e=window.localStorage.getItem(at);if(!e)return $();let t=JSON.parse(e);return t.month===st()?{month:t.month,articles:Array.isArray(t.articles)?t.articles:[],podcasts:Array.isArray(t.podcasts)?t.podcasts:[]}:$()}catch{return $()}}function lt(e){if(!(typeof window>`u`))try{window.localStorage.setItem(at,JSON.stringify(e))}catch{}}function ut(e){if(!e)return;let t=ct();t.articles.includes(e)||(t.articles.push(e),lt(t))}function dt(){return ct().articles.length}function ft(){return dt()>=ot.articles}function pt(){return!0}function mt(){return{articles:{used:ct().articles.length,limit:ot.articles},podcasts:{used:0,limit:0}}}function ht(){let[e,t]=(0,K.useState)(`loading`),[n,r]=(0,K.useState)(mt());return(0,K.useEffect)(()=>{let e=!0,n=()=>{};return L().then(i=>{if(!e)return;let a=async()=>{let{data:n}=await i.auth.getUser();e&&(n.user?t(`signed-in`):(t(`anonymous`),r(mt())))};a();let{data:o}=i.auth.onAuthStateChange(e=>{(e===`SIGNED_IN`||e===`SIGNED_OUT`||e===`USER_UPDATED`)&&a()});n=()=>o.subscription.unsubscribe()}),()=>{e=!1,n()}},[]),{status:e,counts:n,limited:{articles:e===`anonymous`&&ft(),podcasts:e===`anonymous`&&pt()}}}function gt(){let e=E.useLoaderData(),{slug:t}=E.useParams(),n=E.useSearch();return e?.kind===`category`&&e.category?(0,q.jsx)(V,{data:e.category,page:n.page,slug:t}):(0,q.jsx)(_t,{})}function _t(){let{post:e,generatedFaq:t}=E.useLoaderData(),{slug:n}=E.useParams(),{data:r}=T({...le(n),enabled:!e,retry:4,retryDelay:e=>Math.min(1e3*2**e,8e3)}),i=e??r??null;return i?(0,q.jsx)(vt,{post:i,slug:n}):(0,q.jsx)(R,{})}function vt({post:e,slug:t}){let n=E.useLoaderData(),a=n.generatedFaq??[],o=n.insight??null,{data:s=[]}=T(re(t,e)),{data:c}=T({queryKey:[`article-related-fallback`],queryFn:async()=>{let{getPosts:e}=await r(async()=>{let{getPosts:e}=await import(`./index-DJ08PeAM.js`).then(e=>e.wi);return{getPosts:e}},__vite__mapDeps([0,1,2,3,4,5,6]));return(await e({perPage:8})).items??[]},enabled:s.length===0,staleTime:300*1e3}),l=s.length?s:(c??[]).filter(e=>e.slug!==t).slice(0,6),{data:u=[]}=T({queryKey:[`virtual-authors`,`active`],queryFn:()=>oe(!0),initialData:fe,initialDataUpdatedAt:0,staleTime:600*1e3}),d=K.useMemo(()=>te(u,e.id),[u,e.id]),f=ae(),p=we(l.map(e=>e.slug)),m=K.useCallback((e,n,r)=>{let i=()=>Le({module:e,position:n,fromSlug:t,toSlug:r.slug,toTitle:w(r)}),a=()=>ue(f,r.slug,{immediate:!0});return{onClick:i,onAuxClick:i,onMouseEnter:a,onFocus:a,onTouchStart:a}},[t,f]),h=w(e),g=B(e),_=ve(e),v=d?{slug:d.slug,name:d.name,description:d.bio??``,avatarUrl:de(d.avatar_url),title:d.title,isVirtual:!0}
2:_?{slug:_.slug,name:_.name,description:_.description??``,avatarUrl:_.avatar_urls?.[`96`]??null,title:null,isVirtual:!1}:null,y=I(e),b=ke(e),x=y[0],S=[...b,...y].map(e=>ne(e.slug)).find(e=>!!e)??null,C=S?Pe(S):null,D=Oe(e.content.rendered),k=_e(ce(e.content.rendered),h);xe(e,240),K.useEffect(()=>{je({categories:y.map(e=>e.slug),tags:b.map(e=>e.slug)}),Ie({slug:e.slug,title:h,image:g?.src??null,category:x?.name??null}),Me.auth.getUser().then(({data:t})=>{t.user||ut(e.slug)})},[e.id]);let A=K.useMemo(()=>De(k),[k]),{data:M}=T({queryKey:[`article-faq`,e.slug],queryFn:()=>se({data:{slug:e.slug}}),enabled:!A.length&&!a.length,staleTime:3600*1e3,retry:1}),{data:le}=T({queryKey:[`article-insight`,e.slug],queryFn:()=>ie({data:{slug:e.slug}}),enabled:!o?.bullets?.length||!o?.take,staleTime:3600*1e3,retry:1}),F=le??(o?.bullets?.length?o:null),{data:me}=T({queryKey:[`article-context`,e.slug],queryFn:()=>pe({data:{slug:e.slug}}),staleTime:1800*1e3,retry:1}),L=A.length?A:a.length?a:M??[],{html:R,toc:z}=K.useMemo(()=>Te(A.length?Ce(k):k),[k,A.length]),V=K.useMemo(()=>L.length?[...z,{id:`faq`,text:`Questions & Answers`,level:2},...L.map(e=>({id:e.id,text:e.question,level:3}))]:z,[z,L]),H=K.useMemo(()=>e.content.rendered.replace(/<[^>]+>/g,` `).split(/\s+/).filter(Boolean).length,[e.content.rendered]),U=K.useMemo(()=>H>=450?Se(R,{skipFirstParagraphs:2}):null,[R,H]),Ne=H>=1600?3:H>=1e3?2:+(H>=600),W=l.slice(0,Ne),G=K.useMemo(()=>W.length>0?ge(R,W.length+1):[R],[R,W.length]),[J,Y]=K.useMemo(()=>{let e=G[0]??``;if(!U)return[e,``];let t=ge(e,2);return[t[0]??e,t[1]??``]},[G[0],U]),[X]=K.useMemo(()=>be(G[0]??``,1),[G[0]]),{limited:qe}=ht(),Z=qe.articles,Q=K.useMemo(()=>ye(e),[e]);return Ye(K.useMemo(()=>({slug:t,title:h,category:x?.name??null,categories:y.map(e=>e.name),tags:b.map(e=>e.name),author:v?.name??null,authorType:v?v.isVirtual?`virtual`:`wp`:`none`,wordCount:H,readingMinutes:D,publishedAt:e.date??null,locale:`en`,sponsored:Q}),[t,h,x?.name,y,b,v,H,D,e.date,Q])),(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Ue,{targetSelector:`article`}),(0,q.jsx)(`div`,{className:`border-b border-hairline bg-muted/30`,children:(0,q.jsxs)(`article`,{className:`container-editorial grid gap-8 py-12 lg:grid-cols-[minmax(0,1fr)_320px] xl:grid-cols-[80px_minmax(0,1fr)_320px] xl:gap-10`,children:[(0,q.jsx)(`div`,{className:`hidden xl:block`,children:(0,q.jsx)(Ke,{title:h,slug:t})}),(0,q.jsxs)(`div`,{className:`min-w-0`,children:[Q?(0,q.jsxs)(`div`,{className:`mb-6 flex items-center gap-2 border-l-4 border-amber-500 bg-amber-500/10 px-4 py-2 text-[11px] font-bold uppercase tracking-wide text-amber-900 dark:text-amber-200 font-sans`,children:[(0,q.jsx)(ee,{className:`h-3.5 w-3.5`}),`Sponsored content, paid partner post`]}):null,(0,q.jsxs)(`header`,{className:`mx-auto w-full max-w-4xl text-center`,children:[x?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{className:`mx-auto mb-4 block h-px w-16 bg-brand`,"aria-hidden":`true`}),(0,q.jsx)(j,{to:`/$slug`,params:{slug:x.slug},className:`category-eyebrow hover:underline`,children:x.name})]}):null,(0,q.jsx)(`h1`,{className:`mt-4 text-[2.5rem] font-bold leading-[1.05] tracking-tight md:text-5xl lg:text-[3.5rem]`,children:h}),(0,q.jsxs)(`div`,{className:`mt-6 flex flex-wrap items-center justify-center gap-x-4 gap-y-2 text-[11px] uppercase tracking-wide text-ink-muted font-sans`,children:[v?(0,q.jsxs)(`span`,{className:`normal-case tracking-normal text-sm`,children:[`By`,` `,(0,q.jsx)(j,{to:`/author/$slug`,params:{slug:v.slug},className:`rounded-sm font-semibold text-foreground outline-none hover:text-brand hover:underline focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-2 focus-visible:ring-offset-background`,children:v.name})]}):null,S&&C?(0,q.jsxs)(j,{to:`/markets/$country`,params:{country:S},className:`inline-flex items-center gap-1.5 rounded-sm font-semibold uppercase tracking-wide outline-none hover:text-brand focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-2 focus-visible:ring-offset-background`,title:`More retail news from ${C}`,children:[(0,q.jsx)(i,{className:`h-3 w-3 shrink-0 text-brand`,"aria-hidden":`true`}),(0,q.jsx)(`span`,{children:C})]}
2):null,(0,q.jsx)(O,{post:e,showUpdated:!0,showTime:!0,className:`text-[11px]`}),(0,q.jsxs)(`span`,{className:`flex items-center gap-3`,children:[(0,q.jsx)(yt,{title:h}),(0,q.jsx)(`span`,{className:`text-hairline`,"aria-hidden":`true`,children:`|`}),(0,q.jsx)(Fe,{article:{slug:e.slug,title:h,image:g?.src,category:x?.name}})]})]})]}),g?(0,q.jsxs)(`figure`,{className:`mx-auto mt-10 w-full max-w-5xl`,children:[(0,q.jsx)(`div`,{className:`relative aspect-[16/9] w-full overflow-hidden rounded-lg bg-muted shadow-sm`,children:(0,q.jsx)(`img`,{src:g.src,srcSet:g.srcSet||void 0,sizes:`(min-width: 1280px) 960px, (min-width: 1024px) 70vw, 100vw`,alt:g.alt||h,width:g.width,height:g.height,fetchPriority:`high`,decoding:`async`,onError:Ee,className:`h-full w-full object-cover`})}),g.caption?(0,q.jsx)(`figcaption`,{className:`mt-2 text-[11px] leading-snug text-ink-muted font-sans`,children:g.caption}):null]}):null,(0,q.jsxs)(`div`,{className:`mx-auto mt-10 w-full max-w-3xl`,children:[V.length>=2?(0,q.jsxs)(`details`,{className:`mb-8 border border-hairline bg-card p-5 lg:hidden`,children:[(0,q.jsxs)(`summary`,{className:`cursor-pointer text-[11px] font-bold uppercase tracking-wide text-brand font-sans`,children:[`In this article (`,V.length,`)`]}),(0,q.jsx)(`div`,{className:`mt-4`,children:(0,q.jsx)(We,{entries:V})})]}):null,Z?(0,q.jsxs)(q.Fragment,{children:[X?(0,q.jsxs)(`div`,{className:`relative`,children:[(0,q.jsx)(`div`,{className:`editorial-prose editorial-lede`,dangerouslySetInnerHTML:{__html:X}}),(0,q.jsx)(`div`,{className:`pointer-events-none absolute inset-x-0 bottom-0 h-32 bg-gradient-to-t from-background to-transparent`,"aria-hidden":`true`})]}):null,(0,q.jsx)(`div`,{children:(0,q.jsx)(it,{})})]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Xe,{bullets:F?.bullets??[]}),(0,q.jsx)(Qe,{badge:me?.tracker??null}),J?(0,q.jsx)(`div`,{className:`editorial-prose editorial-lede`,dangerouslySetInnerHTML:{__html:J}}):null,U?(0,q.jsx)(Be,{text:U}):null,Y?(0,q.jsx)(`div`,{className:`editorial-prose`,dangerouslySetInnerHTML:{__html:Y}}):null,(0,q.jsx)(`div`,{className:`my-8 lg:hidden`,children:(0,q.jsx)(P,{size:`mobile-320x100`,id:`article-inline-mobile`,visibilityClassName:`flex lg:hidden`})}),G.slice(1).map((e,n)=>(0,q.jsxs)(K.Fragment,{children:[(0,q.jsx)(`div`,{className:`editorial-prose`,dangerouslySetInnerHTML:{__html:e}}),n===0&&!Z?(0,q.jsx)(Je,{tags:b,title:h,currentSlug:t,category:x?{name:x.name,slug:x.slug}:null,variant:`inline`}):null,W[n]?(0,q.jsx)(Ge,{post:W[n],fromSlug:t,position:n}):null]},n+1)),(0,q.jsx)(Ze,{text:F?.take??null,authorName:v?.name??null}),(0,q.jsx)(ze,{items:L}),F?.poll?(0,q.jsx)(rt,{slug:e.slug,question:F.poll.question,options:F.poll.options}):null]}),b.length?(0,q.jsxs)(`div`,{className:`sr-only`,"aria-hidden":`false`,children:[(0,q.jsx)(`p`,{children:`Tags`}),(0,q.jsx)(`ul`,{children:b.map(e=>(0,q.jsx)(`li`,{children:(0,q.jsx)(j,{to:`/tag/$slug`,params:{slug:e.slug},children:e.name})},e.id))})]}):null,v?(0,q.jsxs)(`aside`,{className:`mt-14 border-t-2 border-foreground pt-8`,children:[(0,q.jsx)(`p`,{className:`category-eyebrow mb-6`,children:`About the author`}),(0,q.jsxs)(`div`,{className:`flex flex-col gap-5 sm:flex-row sm:items-start sm:gap-6`,children:[(0,q.jsx)(j,{to:`/author/$slug`,params:{slug:v.slug},"aria-label":`${v.name}, author profile`,tabIndex:-1,className:`block shrink-0 rounded-full outline-none ring-offset-2 ring-offset-background transition hover:opacity-90 focus-visible:ring-2 focus-visible:ring-brand`,children:v.avatarUrl?(0,q.jsx)(`img`,{src:v.avatarUrl,alt:v.name,width:80,height:80,loading:`lazy`,decoding:`async`,className:`h-20 w-20 rounded-full object-cover ring-1 ring-border`}):(0,q.jsx)(`div`,{className:`flex h-20 w-20 items-center justify-center rounded-full bg-brand text-lg font-bold uppercase text-white`,children:v.name.split(` `).map(e=>e[0]).slice(0,2).join(``)})}),(0,q.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,q.jsx)(`p`,{className:`font-serif text-2xl font-bold leading-tight`,children:(0,q.jsx)(j,{to:`/author/$slug`,params:{slug:v.slug},className:`rounded-sm outline-none hover:text-brand hover:underline focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-2 focus-visible:ring-offset-background`,children:v.name})}),(0,q.jsxs)(`p`,{className:`mt-1 text-[11px] font-bold uppercase tracking-wide text-ink-muted font-sans`,children:[v.title??`Contributor`,` · RetailNews.asia`]}),(0,q.jsx)(Re,{text:v.description,authorName:v.name,authorSlug:v.slug,authorTitle:v.title,articleSlug:e.slug,articleId:e.id,location:`article`})]})]})]}):null]})]}),(0,q.jsx)(`aside`,{className:`hidden lg:block`,children:(0,q.jsxs)(`div`,{className:`sticky top-32 flex flex-col gap-8`,children:[Z?null:(0,q.jsx)(`div`,{className:`overflow-hidden border border-hairline bg-card shadow-sm`,children:(0,q.jsx)(Je,{tags:b,title:h,currentSlug:t,category:x?{name:x.name,slug:x.slug}:null,toc:V.length>=2?V:void 0})}),(0,q.jsx)(P,{size:`sidebar-300x600`,priority:!0}),(0,q.jsx)(Ve,{}),(0,q.jsx)(P,{size:`sidebar-300x250`}),(0,q.jsx)(P,{size:`sidebar-300x250`,id:`article-sidebar-mpu-2`})]})})]})}),l.length?(0,q.jsx)(`section`,{ref:p,className:`hairline-t bg-gradient-to-b from-muted/40 via-background to-background`,children:(0,q.jsxs)(`div`,{className:`container-editorial py-16`,children:[(0,q.jsxs)(`div`,{className:`mb-10 flex items-end justify-between gap-6`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsxs)(`p`,{className:`mb-2 flex items-center gap-3 text-sm font-medium italic text-brand font-serif`,children:[(0,q.jsx)(`span`,{className:`h-px w-8 bg-brand`}),`Continue reading`]}),(0,q.jsx)(`h2`,{className:`mt-3 font-serif text-3xl md:text-4xl font-bold tracking-tight`,children:`More from the newsroom`})]}),(0,q.jsxs)(j,{to:`/`,className:`hidden md:inline-flex items-center gap-2 text-[11px] font-bold uppercase tracking-wide text-ink-muted hover:text-brand font-sans`,children:[`All coverage`,(0,q.jsx)(`span`,{"aria-hidden":!0,
2children:`â`})]})]}),(0,q.jsx)(he,{}),(()=>{let[e,...t]=l.slice(0,6),n=t.slice(0,2),r=t.slice(2,5),i=e?B(e):null,a=e?I(e)[0]:null;return(0,q.jsxs)(`div`,{className:`grid gap-10 lg:grid-cols-12`,children:[e?(0,q.jsxs)(j,{to:`/$slug`,params:{slug:e.slug},...m(`footer-lead`,0,e),className:`group lg:col-span-7 block`,children:[(0,q.jsxs)(`div`,{className:`relative overflow-hidden`,children:[i?(0,q.jsx)(Ae,{src:i.src,srcSet:i.srcSet||void 0,sizes:`(min-width: 1280px) 400px, (min-width: 1024px) 33vw, (min-width: 640px) 50vw, 100vw`,alt:i.alt||w(e),aspect:`aspect-[16/10]`,imgClassName:`object-cover transition-transform duration-[900ms] ease-out group-hover:scale-[1.03]`,loading:`lazy`}):(0,q.jsx)(`div`,{className:`aspect-[16/10] bg-muted`}),(0,q.jsx)(`div`,{className:`pointer-events-none absolute inset-x-0 bottom-0 h-1/2 bg-gradient-to-t from-black/70 to-transparent`}),a?(0,q.jsx)(`span`,{className:`absolute left-4 top-4 bg-brand px-2.5 py-1 text-[10px] font-bold uppercase tracking-wide text-white font-sans`,children:N(a.name)}):null]}),(0,q.jsx)(`h3`,{className:`mt-5 font-serif text-2xl md:text-3xl font-bold leading-[1.15] tracking-tight group-hover:text-brand`,children:w(e)}),(0,q.jsx)(`p`,{className:`mt-3 line-clamp-2 text-[15px] leading-relaxed text-ink-muted`,children:xe(e,180)}),(0,q.jsx)(O,{post:e,hideYear:!0,showAuthor:!0,className:`mt-4`})]}):null,n.length?(0,q.jsx)(`div`,{className:`lg:col-span-5 flex flex-col divide-y divide-hairline`,children:n.map((e,t)=>{let n=B(e),r=I(e)[0];return(0,q.jsxs)(j,{to:`/$slug`,params:{slug:e.slug},...m(`footer-side`,t,e),className:`group grid grid-cols-[128px_1fr] gap-4 py-5 first:pt-0 last:pb-0`,children:[(0,q.jsx)(`div`,{className:`overflow-hidden`,children:n?(0,q.jsx)(Ae,{src:n.src,srcSet:n.srcSet||void 0,sizes:`(min-width: 1280px) 400px, (min-width: 1024px) 33vw, (min-width: 640px) 50vw, 100vw`,alt:n.alt||w(e),aspect:`aspect-square`,imgClassName:`object-cover transition-transform duration-700 ease-out group-hover:scale-105`,loading:`lazy`}):(0,q.jsx)(`div`,{className:`aspect-square bg-muted`})}),(0,q.jsxs)(`div`,{className:`flex flex-col justify-between`,children:[(0,q.jsxs)(`div`,{children:[r?(0,q.jsx)(`p`,{className:`text-[10px] font-bold uppercase tracking-wide text-brand font-sans`,children:N(r.name)}):null,(0,q.jsx)(`h3`,{className:`mt-1.5 font-serif text-[17px] font-bold leading-snug tracking-tight group-hover:text-brand`,children:w(e)})]}),(0,q.jsx)(O,{post:e,size:`xs`,hideYear:!0,showAuthor:!0,className:`mt-3`})]})]},e.id)})}):null,r.length?(0,q.jsxs)(`div`,{className:`lg:col-span-12 hairline-t pt-8 mt-2`,children:[(0,q.jsx)(`p`,{className:`category-eyebrow mb-5`,children:`Also worth your time`}),(0,q.jsx)(`ol`,{className:`grid gap-6 md:grid-cols-3`,children:r.map((e,t)=>{let n=I(e)[0];return(0,q.jsx)(`li`,{className:`group`,children:(0,q.jsxs)(j,{to:`/$slug`,params:{slug:e.slug},...m(`footer-tail`,t,e),className:`grid grid-cols-[auto_1fr] gap-4`,children:[(0,q.jsx)(`span`,{className:`font-serif text-4xl font-bold leading-none text-brand/30 transition-colors group-hover:text-brand`,children:String(t+1).padStart(2,`0`)}),(0,q.jsxs)(`div`,{children:[n?(0,q.jsx)(`p`,{className:`text-[10px] font-bold uppercase tracking-wide text-ink-muted font-sans`,children:N(n.name)}):null,(0,q.jsx)(`h3`,{className:`mt-1 font-serif text-[16px] font-bold leading-snug tracking-tight group-hover:text-brand`,children:w(e)}),(0,q.jsx)(O,{post:e,hideYear:!0,showAuthor:!0,className:`mt-2`})]})]})},e.id)})})]}):null]})})()]})}):null,(0,q.jsx)(He,{placement:`article_end`})]})}function yt({title:e}){let[t,n]=K.useState(!1),[r,i]=K.useState(!1),a=K.useRef(null);K.useEffect(()=>{if(!t)return;let e=e=>{a.current&&!a.current.contains(e.target)&&n(!1)},r=e=>{e.key===`Escape`&&n(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,r),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,r)}},[t]);let o=typeof window<`u`?window.location.href:``,s=encodeURIComponent(e),c=encodeURIComponent(o),l=async()=>{if(typeof navigator<`u`&&typeof navigator.share==`function`)try{await navigator.share({title:e,url:o}),G(`native`,e);return}catch{}n(e=>!e)},d=async()=>{G(`copy`,e);try{await navigator.clipboard.writeText(o),i(!0),setTimeout(()=>i(!1),1600)}catch{let e=document.createElement(`textarea`);e.value=o,document.body.appendChild(e),e.select();try{document.execCommand(`copy`),i(!0),setTimeout(()=>i(!1),1600)}catch{}document.body.removeChild(e)}},f=(t,r)=>{G(t,e),window.open(r,`_blank`,`noopener,noreferrer,width=600,height=520`),n(!1)},p=`flex w-full items-center gap-2 px-3 py-2 text-left text-xs font-medium uppercase tracking-wider text-ink hover:bg-muted`;return(0,q.jsxs)(`div`,{ref:a,className:`relative inline-block`,children:[(0,q.jsxs)(`button`,{type:`button`,onClick:l,"aria-haspopup":`menu`,"aria-expanded":t,className:`inline-flex items-center gap-1 text-xs font-semibold uppercase tracking-wide text-brand hover:underline font-sans`,children:[(0,q.jsx)(u,{className:`h-3.5 w-3.5`}),` Share`]}),t&&(0,q.jsxs)(`div`,{role:`menu`,className:`absolute right-0 z-30 mt-2 w-52 overflow-hidden rounded-md border border-border bg-background shadow-lg`,children:[(0,q.jsx)(`button`,{className:p,onClick:()=>f(`twitter`,`https://twitter.com/intent/tweet?text=${s}&url=${c}`),children:`X / Twitter`}),(0,q.jsx)(`button`,{className:p,onClick:()=>f(`linkedin`,`https://www.linkedin.com/sharing/share-offsite/?url=${c}`),children:`LinkedIn`}),(0,q.jsx)(`button`,{className:p,onClick:()=>f(`facebook`,`https://www.facebook.com/sharer/sharer.php?u=${c}`),children:`Facebook`}),(0,q.jsx)(`button`,{className:p,onClick:()=>
2f(`whatsapp`,`https://api.whatsapp.com/send?text=${s}%20${c}`),children:`WhatsApp`}),(0,q.jsx)(`a`,{className:p,href:`mailto:?subject=${s}&body=${c}`,onClick:()=>{G(`email`,e),n(!1)},children:`Email`}),(0,q.jsx)(`button`,{className:p,onClick:d,children:r?`Link copied â`:`Copy link`})]})]})}export{gt as component}; 3//# sourceMappingURL=_slug-MnugbjiI.js.map
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.