1import{j as t,bt as d,B as o,bR as j,T as h,b5 as m,a8 as p,aQ as g,f as y,a9 as c,P as x,I as b,aZ as r,Q as G,bW as w}from"./index-tSDSGNZs.js";import{a as S}from"./newsActions-BOpBY0Qi.js";function v({title:i,subTitle:a,thumbnail:n}){return t.jsx(d,{spacing:2,children:t.jsxs(d,{direction:"row",spacing:2,alignItems:"center",children:[n&&t.jsx(o,{component:"img",src:`${j}${n}`,alt:i,sx:{width:72,height:72,borderRadius:1,objectFit:"cover"}}),t.jsxs(o,{children:[t.jsx(h,{variant:"h4",fontWeight:700,children:i}),a&&t.jsx(h,{variant:"body2",color:"text.secondary",children:m(a)})]})]})})}function R(){const i=p(),{id:a}=g(),n=y(),[e,u]=c.useState(null),[f,l]=c.useState(!1);return c.useEffect(()=>{if(!a)return;(async()=>{l(!0);try{const s=await S(a);s!=null&&s.content&&u(s)}catch(s){s.response.status==404&&n.push("/404"),console.error("Failed to fetch guide:",s)}finally{l(!1)}})()},[a]),e?f?t.jsx(x,{children:t.jsx(r,{item:!0,xs:12,mt:3,children:t.jsx(w,{variant:"rectangular",width:"100%",height:200})})}):t.jsx(x,{title:i.formatMessage({id:"guides"}),children:t.jsx(b,{sx:{p:4},children:t.jsxs(r,{container:!0,spacing:3,children:[t.jsx(r,{item:!0,xs:12,mb:1,children:t.jsx(v,{title:e==null?void 0:e.title,subTitle:e==null?void 0:e.creationDate,thumbnail:e==null?void 0:e.thumbnailFilePath})}),t.jsx(r,{item:!0,xs:12,children:t.jsx(G,{})}),t.jsx(r,{item:!0,xs:12,children:t.jsx(o,{sx:{whiteSpace:"pre-wrap","& img":{maxWidth:"100%",borderRadius:1}},dir:"auto",dangerouslySetInnerHTML:{__html:e==null?void 0:e.content}})})]})})}):null}export{R 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.