1import{j as e,an as g,D as p,bY as b,ep as f,bV as i,dE as v,eq as j,dJ as N,L as u,er as w,dO as A,es as k}from"./index-DI8w2tsm.js";import{u as P}from"./use-document-title-CDUQ9Gpa.js";import{u as L,e as C}from"./structuredData-BdEdJU8r.js";import{h as _}from"./heroOverlay-C0zjNtIX.js";import{s as I}from"./sanitizeHtml-_Xv54j28.js";import{A as T}from"./arrow-left-Cgt5Z8xL.js";function B(){const a=g()??"",[o]=p(),l=w()?"":`/d/${a}`,s=o.startsWith(l)&&o.slice(l.length)||"/",x=b(),{data:t,isLoading:y}=f(a,{path:s},{query:{enabled:!!a&&s!=="/",queryKey:k(a,{path:s}),retry:A}}),{branding:r}=x,h={color:r.primaryColor};if(P([t?.title,r.directoryName]),L("advice-article",t?C(t,i(a,s),{directoryName:r.directoryName,logoUrl:r.logoUrl}):null),v({entityType:"advice_article",entityId:t?.id??null,surface:"advice_detail"}),y)return e.jsx(j,{});if(!t)return e.jsx(N,{title:"Article not found",message:"This advice article may have been removed or the link is out of date. Browse our advice to find guidance on courses, applications, and more.",links:[{label:"Browse advice",href:i(a,"/advice"),primary:!0}]});const n=i(a,"/advice"),c=t.topic?`Back to ${t.topic}`:"Back to advice",d=r.heroImageUrl,m=t.body?t.imageUrl?`<img src="${t.imageUrl}" alt="" />${t.body}`:t.body:"";return e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"relative overflow-hidden text-white",style:{backgroundColor:"#2a2a2a"},children:[d&&e.jsx("div",{"aria-hidden":!0,className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:`url(${d})`}}),r.heroImageFilterAmount>0&&e.jsx("div",{"aria-hidden":!0,className:"absolute inset-0",style:{backgroundColor:_(r.heroImageFilterAmount)}}),e.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-6 py-12 md:py-16 w-full",children:[e.jsxs(u,{href:n,className:"inline-flex items-center text-white/80 hover:text-white text-sm transition-colors mb-4",children:[e.jsx(T,{className:"w-4 h-4 mr-2"})," ",c]}),e.jsx("h1",{className:"font-sans text-[28px] md:text-[42px] font-bold leading-[1.15] tracking-normal max-w-[820px]",children:t.title})]})]}),e.jsxs("article",{className:"max-w-3xl mx-auto px-6 py-10 md:py-12 flex-1 w-full",children:[t.excerpt&&e.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed mb-8 border-l-4 pl-4",style:{borderColor:r.primaryColor},children:t.excerpt}),m?e.jsx("div",{className:"prose prose-gray max-w-none leading-relaxed text-base [&_img]:rounded-card [&_img]:my-6 [&_img]:w-full [&_img]:h-auto",dangerouslySetInnerHTML:{__html:I(m)}}):e.jsx("p",{className:"text-muted-foreground italic",children:"No content yet."}),e.jsx("div",{className:"mt-12 pt-6 border-t border-border",children:e.jsxs(u,{href:n,className:"text-sm font-medium hover:underline",style:h,children:["â ",c]})})]})]})}function S(){return e.jsx(B,{})}export{S 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.