1import{u as y,j as r,N as $}from"./vendor-react-CpS8flwk.js";import{R as S}from"./ReadNext-CFfk7lnO.js";import{as as P,at as R,au as k,av as E,s as L,t as q,w,x as T,W as O,aw as b,S as c,y as A,ax as D,ay as C,az as M,aA as j}from"./app-BR_qaoAt.js";import{S as I}from"./SEO-DC0MZMdj.js";import{f as F}from"./authors-DpzXskx5.js";import{w as h,h as J,E as K,b as _}from"./ReportParts-B00ULbYB.js";const B={en:{kicker:"Research finding",research:"Reports",answerLabel:"The short answer",fromReport:"From the report",readSection:"Read the full section",moreSections:"Also in the report",question:"Question this page answers",licence:`Published under ${j}. Reuse the figures with attribution to PEKO and a link to this page.`,published:"Published",otherLanguage:"Tiếng Viá»t",dataLabel:"Machine-readable findings"},vi:{kicker:"Sá» liá»u nghiên cứu",research:"Báo cáo",answerLabel:"Trả lá»i ngắn",fromReport:"TrÃch từ báo cáo",readSection:"Äá»c nguyên mục trong báo cáo",moreSections:"Mục liên quan trong báo cáo",question:"Câu há»i trang nà y trả lá»i",licence:`Công bá» theo giấy phép ${j}. Dùng lại sá» liá»u thì ghi nguá»n PEKO kèm liên kết tá»i trang nà y.`,published:"Công bá»",otherLanguage:"English",dataLabel:"Dữ liá»u máy Äá»c ÄÆ°á»£c"}},H={en:[{href:"/data/fnb-retention-sea-2026-findings.json",label:"JSON"},{href:"/data/fnb-retention-sea-2026-findings.csv",label:"CSV"}],vi:[{href:"/data/fnb-retention-vietnam-2026-findings.json",label:"JSON"},{href:"/data/fnb-retention-vietnam-2026-findings.csv",label:"CSV"}]};function Z({slug:e,locale:l}={}){const s=y(),i=e??s.pathname.replace(/\/+$/,"").split("/").pop()??"",o=l??(s.pathname.startsWith("/vi/")?"vi":"en"),t=P(i,o);return t?r.jsx(W,{data:t}):r.jsx($,{to:o==="vi"?"/vi/bao-cao":"/reports",replace:!0})}const V={en:["January","February","March","April","May","June","July","August","September","October","November","December"],vi:["tháng 1","tháng 2","tháng 3","tháng 4","tháng 5","tháng 6","tháng 7","tháng 8","tháng 9","tháng 10","tháng 11","tháng 12"]},N=(e,l)=>{const[s,i,o]=e.split("-").map(Number),t=V[l][(i||1)-1];return l==="vi"?`${o} ${t}, ${s}`:`${o} ${t} ${s}`};function W({data:e}){var p;const l=B[e.locale],s=R(e),i=k(e),o=E(e),t=F(b.slug),m=s?`${s.path}#${e.anchor}`:"/reports",d=e.locale==="en"?e:i,g=e.locale==="vi"?e:i,v=L([q(),w(),T([{name:e.locale==="vi"?"Trang chá»§":"Home",url:e.locale==="vi"?"/vi":"/"},{name:l.research,url:(s==null?void 0:s.indexPath)??"/reports"},{name:e.title,url:e.path}]),O({headline:e.title,description:e.seoDescription,url:e.path,authorName:t.name,authorSlug:b.slug,datePublished:e.datePublished,dateModified:e.dateModified,image:s?`${c.url}${s.ogImage}`:void 0}),A([{q:e.faq.q,a:e.faq.a}])]);return r.jsxs(r.Fragment,{children:[r.jsx(I,{title:e.seoTitle,description:e.seoDescription,canonical:`${c.url}${e.path}`,jsonLd:v,locales:[e.locale],hreflangOverride:[...d?[{code:"en",href:`${c.url}${d.path}`}]:[],...g?[{code:"vi",href:`${c.url}${g.path}`}]:[],{code:"x-default",href:`${c.url}${(d??e).path}`}],image:s?`${c.url}${s.ogImage}`:void 0,imageAlt:`${e.title} â PEKO research`}),r.jsxs("article",{className:"container mx-auto max-w-3xl py-16 md:py-20",children:[r.jsxs("p",{className:"font-mono text-xs uppercase tracking-widest text-muted-foreground",children:[r.jsx("a",{href:(s==null?void 0:s.indexPath)??"/reports",className:"hover:text-foreground",children:l.research})," / ",l.kicker]}),r.jsx("h1",{className:"mt-4 font-display text-3xl leading-tight md:text-4xl",children:e.title}),r.jsxs("aside",{"data-peko-liftable":"",className:"mt-6 border-l-4 border-primary bg-secondary/40 p-5","aria-label":l.answerLabel,children:[r.jsxs("p",{className:"font-mono text-[11px] uppercase tracking-widest text-muted-foreground",children:[l.answerLabel," · ",N(e.dateModified,e.locale)]}),r.jsx("p",{className:"mt-2 text-lg leading-relaxed text-foreground",children:h(e.lift,e.locale)})]}),r.jsxs("p",{className:"mt-4 text-sm text-muted-foreground",children:[l.fromReport,":"," ",r.jsxs("a",{href:m,className:"text-primary hover:underline",children:[s==null?void 0:s.title," â ",e.anchorLabel]})]}),r.jsx("div",{className:"mt-10 space-y-5",children:e.blocks.map((n,a)=>
1{if(n.kind==="h2")return r.jsx("h2",{id:n.id,className:"scroll-mt-28 pt-4 font-display text-2xl md:text-3xl",children:n.text},n.id);if(n.kind==="p")return r.jsx("p",{className:"leading-relaxed text-foreground/85",children:h(n.text,e.locale)},a);if(n.kind==="quote")return r.jsx("blockquote",{className:"border-l-2 border-primary/50 pl-4 leading-relaxed text-foreground",cite:`${c.url}${m}`,children:h(n.text,e.locale)},a);if(n.kind==="ul")return r.jsx("ul",{className:"list-disc space-y-2 pl-6 text-foreground/85",children:n.items.map((u,x)=>r.jsx("li",{className:"leading-relaxed",children:h(u,e.locale)},x))},a);if(n.kind==="ol")return r.jsx("ol",{className:"list-decimal space-y-2 pl-6 text-foreground/85",children:n.items.map((u,x)=>r.jsx("li",{className:"leading-relaxed",children:h(u,e.locale)},x))},a);const f=D(e,n);return f?r.jsx(J,{table:f,locale:e.locale,fallbackCaption:`${s==null?void 0:s.title} â ${e.anchorLabel}`},a):null})}),r.jsxs("section",{"aria-labelledby":"question",className:"mt-12 border border-border p-6",children:[r.jsx("h2",{id:"question",className:"scroll-mt-28 font-display text-xl",children:l.question}),r.jsx("p",{className:"mt-4 font-medium text-foreground",children:e.faq.q}),r.jsx("p",{className:"mt-2 leading-relaxed text-muted-foreground",children:e.faq.a})]}),r.jsx("div",{className:"mt-10",children:s?r.jsx(K,{note:s.content.evidenceNote,locale:e.locale}):null}),r.jsx("div",{className:"mt-10",children:o.length>0&&s?r.jsx(_,{sources:o,locale:e.locale}):null}),r.jsxs("section",{className:"mt-10 border-t border-border pt-6 text-sm",children:[r.jsxs("p",{children:[r.jsx("a",{href:m,className:"text-primary hover:underline",children:l.readSection})," â ",s==null?void 0:s.title]}),(p=e.moreAnchors)!=null&&p.length&&s?r.jsxs("p",{className:"mt-2 text-muted-foreground",children:[l.moreSections,":"," ",e.moreAnchors.map((n,a)=>r.jsxs("span",{children:[a>0&&" · ",r.jsx("a",{href:`${s.path}#${n.anchor}`,className:"text-primary hover:underline",children:n.label})]},n.anchor))]}):null,r.jsxs("p",{className:"mt-2 text-muted-foreground",children:[l.dataLabel,":"," ",H[e.locale].map((n,a)=>r.jsxs("span",{children:[a>0&&" · ",r.jsx("a",{href:n.href,className:"text-primary hover:underline",children:n.label})]},n.href))]}),i?r.jsx("p",{className:"mt-2 text-muted-foreground",children:r.jsx("a",{href:i.path,className:"text-primary hover:underline",children:l.otherLanguage})}):null,r.jsxs("p",{className:"mt-4 text-xs text-muted-foreground",children:[l.published," ",r.jsx("time",{dateTime:e.datePublished,children:N(e.datePublished,e.locale)})," · ",r.jsx("a",{href:`/authors/${t.slug}`,className:"hover:text-foreground",children:t.name})," · ",r.jsx("a",{href:C,rel:"license nofollow noopener",className:"hover:text-foreground",children:l.licence})]})]})]}),r.jsx(S,{lang:e.locale==="vi"?"vi":"en",path:e.path,tags:[e.slug,e.title],same:M(e.locale).map(n=>({to:n.path,label:n.title})),ctaText:e.locale==="vi"?"Xem PEKO biến những con sá» nà y thà nh lượt khách quay lại":"See how PEKO turns these numbers into repeat visits"})]})}export{W as ResearchArticle,Z as default};
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.