1import{r as g,g as j,f as u,j as e,C as N,a as v,b as I,F as w}from"./index-B5vA2KtO.js";import{H as C}from"./heart-DxmoF3gA.js";const E={ë³µì§:{icon:e.jsx(C,{size:13}),color:"oklch(0.38 0.12 150)",label:"ë³µì§ ì ì²"},êµì¡:{icon:e.jsx(w,{size:13}),color:"oklch(0.38 0.12 230)",label:"êµì¡Â·ë¬¸í"},ìì :{icon:e.jsx(I,{size:13}),color:"oklch(0.45 0.18 25)",label:"ìì ·ì¬ë"},êµíµ:{icon:e.jsx(v,{size:13}),color:"oklch(0.38 0.12 230)",label:"êµíµÂ·ìí"}},y=["ë³µì§","êµì¡","ìì ","êµíµ"],A=new Set(y),x=/ì±ë£|ë§ì³¤|ë§ë¬´ë¦¬|ê°ìµíë¤|ì´ë ¸ë¤|ì§ííë¤|기ë
ì|íì½ì|ê°ë´í/,R=/모ì§|ì ì²|ì ì|ì§ì|ê³µê³ |ìë´|ìë°©|ëë¹|주ì|ì ê²|ì´ì|ë³´ê¸|ë³ê²½|ìí/,L=[{id:"living-extra-1",category:"ë³µì§",categoryColor:"oklch(0.38 0.12 150)",tag:"ìíì ë³´",title:"ë구 'ì±
ì½ë ë구' 구민ëìì§ì â 주민ì´ë©´ ì±
1ê¶ ë¬´ë£",summary:"ê´ì£¼ ë구 주민·íì·ì§ì¥ì¸Â·ì¬ì
ì ë구ë ì±
1ê¶ ë¬´ë£ ì§ì. ë구 ëìê´ ííì´ì§ìì ì ì².",body:["ê´ì£¼ ëêµ¬ê° '2026 ì±
ì½ë ë구' 구민ëìì§ìì¬ì
ì ì²ì ë°ê³ ìë¤. ë구 주민, íì, ì§ì¥ì¸, ì¬ì
ì ë구ë ì±
1ê¶ì 무ë£ë¡ ì§ìë°ì ì ìë¤.","ì ì² ë°©ë²: ë구 ëìê´ ííì´ì§ ëë ì§ì ìì 방문. ì§ì ëì 목ë¡ì ë구 ëìê´ ííì´ì§ìì íì¸ ê°ë¥íë¤."],source:"ê´ì£¼ê´ìì ë구ì²",sourceUrl:"#",publishedAt:"05. 15",region:"ê´ì£¼ê´ìì ë구",relatedLinks:[{label:"ë구 ëìê´ ì ì² ìë´",url:"#"}]},{id:"living-extra-2",category:"ìì ",categoryColor:"oklch(0.45 0.18 25)",tag:"ìíì ë³´",title:"ì¬ë¦ì² ì°ì¬í êµë¯¼íëìë ¹ â 5/15~10/15 ì§ì¤ ëë¹",summary:"ì¬ë¦ì² ì§ì¤í¸ì°Â·ííì¼ë¡ ì¸í ì°ì¬í í¼í´ ìë°©. ì°ì¬íì ë³´ìì¤í
(sansatai.forest.go.kr)ìì ìí ì§ì íì¸ ê°ë¥.",body:["ê´ì£¼ ëêµ¬ê° 5ì 15ì¼ë¶í° 10ì 15ì¼ê¹ì§ ì¬ë¦ì² ì§ì¤í¸ì°Â·ííì¼ë¡ ì¸í ì°ì¬í í¼í´ ìë°©ì ìí êµë¯¼íëìë ¹ì ìë´íê³ ìë¤.","ì°ì¬í ìí ì§ìì ì°ì¬íì ë³´ìì¤í
(sansatai.forest.go.kr)ìì íì¸í ì ìì¼ë©°, ìí ì§í ë°ê²¬ ì ì¦ì 119ì ì ê³ í´ì¼ íë¤."],source:"ê´ì£¼ê´ìì ë구ì²",sourceUrl:"#",publishedAt:"05. 15",region:"ê´ì£¼ê´ìì ë구",relatedLinks:[{label:"ì°ì¬íì ë³´ìì¤í
",url:"https://sansatai.forest.go.kr"}]},{id:"living-extra-3",category:"êµíµ",categoryColor:"oklch(0.38 0.12 230)",tag:"ìíì ë³´",title:"êµíµì½ì ì´ëí¸ì ì¤ë¬¸ì¡°ì¬ â ê´ì£¼ ì§íì² ìë¹ì¤ ê°ì ì견 ìë ´",summary:"ê´ì£¼ëìì² ëê³µì¬ê° êµíµì½ì ì´ëí¸ì ì¤ë¬¸ì¡°ì¬ë¥¼ ì§í ì¤ì´ë¤. ì¥ì ì¸Â·ë
¸ì¸Â·ìì°ë¶ ë± êµíµì½ìì ì견ì ë°ìí´ ìë¹ì¤ë¥¼ ê°ì íë¤.",body:["ê´ì£¼ëìì² ëê³µì¬ê° ë í¸ë¦¬íê³ ìì í ê´ì£¼ ì§íì² ì ë§ë¤ê¸° ìí´ êµíµì½ì ì´ëí¸ì ì¤ë¬¸ì¡°ì¬ë¥¼ ì§ííê³ ìë¤.","ì¥ì ì¸, ë
¸ì¸, ìì°ë¶ ë± êµíµì½ìë¼ë©´ ë구ë ì°¸ì¬í ì ìì¼ë©°, ì¡°ì¬ ê²°ê³¼ë ìë¹ì¤ ê°ì ì ë°ìëë¤."],source:"ê´ì£¼ëìì² ëê³µì¬",sourceUrl:"#",publishedAt:"05. 19",region:"ê´ì£¼ê´ìì"}];function b(t){if(x.test(t.title))return!1;const r=`${t.title} ${t.summary} ${t.body.join(" ")}`;return!x.test(r)||R.test(r)}function S(t,r){const i=u(r).filter(b);if(t.length===0)return i;const m=new Set(t.map(a=>a.category)),f=i.filter(a=>!m.has(a.category));return[...t,...f]}function F({region:t,onArticleClick:r}){const[i,m]=g.useState([]),a=[...j(),...L],k=u(i).filter(b),p=S(k,a);g.useEffect(()=>{let l=!1;async function s(){const o=new URLSearchParams({kind:"living",region:t}),h=await fetch(`/api/news-feed?${o.toString()}`,{cache:"no-store"});if(!l)try{if(h.ok){const c=await h.json();Array.isArray(c.articles)&&c.articles.length>0&&m(c.articles)}}catch(c){console.warn("[living-info] keeping fallback data:",c)}}s();const d=setInterval(()=>void s(),600*1e3);return()=>{l=!0,clearInterval(d)}},[t]);const n={};return p.forEach(l=>{const s=l.category;A.has(s)&&(n[s]||(n[s]=[]),n[s].push(l))}),e.jsxs("div",{className:"news-card animate-card-enter overflow-hidden",children:[e.jsxs("div",{className:"px-5 py-2.5 flex items-center justify-between",style:{borderBottom:"2px s
1olid oklch(0.18 0.04 250)"},children:[e.jsxs("div",{children:[e.jsx("div",{className:"section-label",children:"LIVING INFO"}),e.jsx("div",{className:"text-xl font-black mt-0.5",style:{fontFamily:"Noto Sans KR, sans-serif",color:"oklch(0.13 0.05 255)"},children:"ìíì ë³´"})]}),e.jsx("span",{className:"text-sm font-medium",style:{color:"oklch(0.55 0.01 240)"},children:"ë³µì§ Â· êµì¡ · ìì · êµíµ ê³µì§"})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 divide-x",style:{borderColor:"oklch(0.93 0.003 240)"},children:y.map(l=>{const s=E[l],d=(n[l]??[]).slice(0,3);return e.jsxs("div",{className:"p-5",children:[e.jsxs("div",{className:"flex items-center gap-1.5 mb-3",children:[e.jsx("span",{style:{color:s.color},children:s.icon}),e.jsx("span",{className:"text-sm font-bold",style:{color:s.color},children:s.label})]}),e.jsxs("div",{className:"flex flex-col gap-3",children:[d.length===0&&e.jsx("p",{className:"text-sm",style:{color:"oklch(0.65 0.01 240)"},children:"í´ë¹ ì ë³´ ìì"}),d.map(o=>e.jsxs("button",{onClick:()=>r(o),className:"text-left group w-full",children:[e.jsx("p",{className:"text-base font-bold mb-1 leading-snug group-hover:underline",style:{fontFamily:"Noto Sans KR, sans-serif",color:"oklch(0.13 0.05 255)",lineHeight:"1.55",textDecorationColor:s.color},children:o.title}),e.jsx("p",{className:"text-sm mb-1.5",style:{color:"oklch(0.45 0.01 240)",fontFamily:"Noto Sans KR, sans-serif",lineHeight:"1.6",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:o.summary}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-xs",style:{color:"oklch(0.62 0.01 240)"},children:["ì¶ì²: ",o.source]}),e.jsx(N,{size:11,style:{color:"oklch(0.72 0.01 240)"}})]})]},o.id))]})]},l)})})]})}export{F 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.