PageSourceSearch

https://malibutimes.com/assets/CorrectionsPage-CaxqRhcQ.js

js malibutimes.com collected 2026-09-24 19:12:56 UTC 2,843 bytes, 1 lines download raw bytes

1import{u as p,o as u,i as g,s as x,j as t,a as i,l as c,c as d}from"./index-obhH_LhV.js";import{b as s}from"./react-vendor-iJun6VP1.js";import{S as y}from"./SiteShell-DO5yyJRk.js";import"./supabase-vendor-o79c1kQX.js";import"./helpers-CddHt4ev.js";function z(){const n=p(),e=u(n),[a,f]=s.useState([]),[l,m]=s.useState(!0);s.useEffect(()=>{g({title:`Corrections — ${n.name}`,description:`Corrections and updates to published stories on ${n.name}`,siteName:n.name,type:"website"})},[n.name]),s.useEffect(()=>{if(!n.id)return;let o=!1;return(async()=>{const{data:r}=await x.from("stories").select("id, title, slug, correction_note, last_correction_at, updated_at, published_at").eq("site_id",n.id).not("correction_note","is",null).neq("correction_note","").order("updated_at",{ascending:!1}).limit(50);o||(f(r||[]),m(!1))})(),()=>{o=!0}},[n.id]);const h=o=>o?new Date(o).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):null;return t.jsx("div",{style:{minHeight:"100vh",background:e.color.paper,fontFamily:e.font.ui},children:t.jsx(y,{children:t.jsxs("main",{style:{maxWidth:e.maxW.text,margin:"0 auto",padding:`${i[7]}px ${i[6]}px`},children:[t.jsx("h1",{style:{fontSize:e.fs.h1,fontWeight:e.fw.bold,marginBottom:i[2],fontFamily:e.font.serif},children:"Corrections"}),t.jsx("p",{style:{fontSize:e.fs.body,color:e.color.inkLight,lineHeight:c.normal,marginBottom:i[7]},children:"We are committed to accuracy. When we make an error, we correct it here and in the original article."}),l&&t.jsx("p",{style:{fontSize:e.fs.body,color:e.color.inkFaint},children:"Loading corrections..."}),!l&&a.length===0&&t.jsxs("div",{style:{borderTop:`1px solid ${d.border}`,paddingTop:i[6]},children:[t.jsx("p",{style:{fontSize:e.fs.lead,fontFamily:e.font.serif,lineHeight:e.lh.h3,margin:`0 0 ${i[3]}px`},children:"The record is clean."}),t.jsxs("p",{style:{fontSize:e.fs.body,color:e.color.inkLight,lineHeight:c.normal,margin:0},children:["No corrections have been issued for ",n.name,". This page updates the moment one is."]})]}),!l&&a.length>0&&t.jsx("div",{style:{display:"flex",flexDirection:"column",gap:i[6]},children:a.map(o=>{const r=h(o.last_correction_at||o.updated_at);return t.jsxs("article",{style:{padding:i[6],border:`1px solid ${d.border}`,borderRadius:e.radius.sm,background:e.color.surface},children:[t.jsx("h2",{style:{fontSize:e.fs.h4,fontWeight:e.fw.bold,fontFamily:e.font.serif,marginBottom:i[2],lineHeight:e.lh.h3},children:t.jsx("a",{href:`/${o.slug}`,style:{color:e.color.ink,textDecoration:"none"},children:o.title})}),r&&t.jsxs("p",{style:{fontSize:e.fs.meta,color:e.color.inkFaint,marginBottom:i[4]},children:["Corrected ",r]}),t.jsx("p",{style:{fontSize:e.fs.body,lineHeight:c.normal,color:e.color.inkSoft,fontFamily:e.font.body,margin:0},children:o.correction_note})]},o.id)})})]})})})}export{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.