PageSourceSearch

https://jugeo.co.kr/_next/static/immutable/chunks/247inrb8y72hm.js

js jugeo.co.kr collected 2026-09-24 11:03:36 UTC 49,429 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,386853,e=>{"use strict";var t=e.i(843476),n=e.i(522016),r=e.i(152236);let i="inline-flex h-[52px] w-[180px] max-w-full shrink-0 select-none items-center justify-center gap-2.5 rounded-xl px-4 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/60 focus-visible:ring-offset-2";function s({icon:e,topLabel:n,bottomLabel:i,muted:a=!1}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:(0,r.cn)("flex h-6 w-6 shrink-0 items-center justify-center",a&&"opacity-60"),"aria-hidden":"true",children:e}),(0,t.jsxs)("span",{className:"flex flex-col items-start leading-none",children:[(0,t.jsx)("span",{className:(0,r.cn)("text-[10px] font-medium tracking-wide",a?"text-muted-foreground":"text-white/70 dark:text-slate-500"),children:n}),(0,t.jsx)("span",{className:"mt-0.5 text-[15px] font-semibold leading-tight",children:i})]})]})}function a({href:e,ariaLabel:l,icon:o,topLabel:d,bottomLabel:c,className:u,onClick:m}){return e?(0,t.jsx)(n.default,{href:e,target:"_blank",rel:"noopener noreferrer","aria-label":l,onClick:m,className:(0,r.cn)(i,"bg-slate-900 text-white shadow-sm ring-1 ring-inset ring-white/10 hover:bg-slate-800 dark:bg-white dark:text-slate-900 dark:ring-black/[0.06] dark:hover:bg-slate-100",u),children:(0,t.jsx)(s,{icon:o,topLabel:d,bottomLabel:c})}):(0,t.jsx)("span",{"aria-label":l,"aria-disabled":"true",className:(0,r.cn)(i,"cursor-default bg-muted/60 text-muted-foreground ring-1 ring-inset ring-border",u),children:(0,t.jsx)(s,{icon:o,topLabel:d,bottomLabel:c,muted:!0})})}function l(){return(0,t.jsx)("svg",{viewBox:"0 0 384 512",fill:"currentColor",className:"h-[22px] w-[22px]","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C73.3 141.2 24 184.1 24 271.4c0 25.8 4.7 52.5 14.1 80 12.6 36.1 58 124.6 105.4 123.1 24.8-.6 42.3-17.6 74.5-17.6 31.2 0 47.4 17.6 74.4 17.6 47.8-.7 88.9-81.2 100.9-117.4-64.1-30.2-60.6-88.5-60.6-89zM254.1 89.1c30.4-36.1 27.6-69 26.7-80.8-26.8 1.6-57.8 18.3-75.5 38.9-19.5 22.1-31 49.4-28.5 80.2 29 2.2 55.5-12.7 77.3-38.3z"})})}function o({href:e,className:n,onClick:r}){return(0,t.jsx)(a,{href:e,onClick:r,className:n,icon:(0,t.jsx)(l,{}),ariaLabel:e?"App Store에서 주거나침반 앱 설치":"App Store 출시 예정",topLabel:e?"Download on the":"출시 예정",bottomLabel:"App Store"})}function d(){return(0,t.jsx)("svg",{viewBox:"0 0 512 512",fill:"currentColor",className:"h-[22px] w-[22px]","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M325.3 234.3L104.6 13l280.8 161.2-60.1 60.1zM47 0C34 6.8 25.3 19.2 25.3 35.3v441.3c0 16.1 8.7 28.5 21.7 35.3l256.6-256L47 0zm425.2 225.6l-58.9-34.1-65.7 64.5 65.7 64.5 60.1-34.1c18-14.3 18-46.5-1.2-60.8zM104.6 499l280.8-161.2-60.1-60.1L104.6 499z"})})}function c({href:e,className:n,onClick:r}){return(0,t.jsx)(a,{href:e,onClick:r,className:n,icon:(0,t.jsx)(d,{}),ariaLabel:"Google Play에서 주거나침반 앱 설치",topLabel:"GET IT ON",bottomLabel:"Google Play"})}var u=e.i(981123),m=e.i(773384);e.s(["ResponsiveStoreBadges",0,function({androidHref:e,iosHref:n,className:i}){let s=(0,m.useHydrated)()?(0,u.getInstallSurface)({userAgent:navigator.userAgent,isAppEmbed:"true"===new URLSearchParams(window.location.search).get("app")||document.documentElement.classList.contains("app-embed")}):"unknown";return"app_embed"===s?null:(0,t.jsx)("div",{className:(0,r.cn)("flex flex-col items-start gap-2 sm:flex-row sm:flex-wrap",i),"aria-label":"앱 다운로드 링크",children:"ios_mobile"===s?(0,t.jsx)(o,{href:n}):"android_mobile"===s?(0,t.jsx)(c,{href:e}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o,{href:n}),(0,t.jsx)(c,{href:e})]})})}],386853)},227720,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(522016),i=e.i(618566),s=e.i(972520),a=e.i(463059),l=e.i(790597),o=e.i(403014),o=o,d=e.i(346897);let c=(0,e.i(475254).default)("MessageSquareText",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M13 8H7",key:"14i4kc"}],["path",{d:"M17 12H7",key:"16if0g"}]]);var u=e.i(555436),m=e.i(239616),g=e.i(643531),f=e.i(95187);let h=(0,f.createServerReference)("00b1ef80269385bd3f53866a755da53e87daecfc61",f.callServer,void 0,f.findSourceMapURL,"getHomePersonal");var x=e.i(466691),p=e.i(718879),b=e.i(988204);let y="/favorites",v="저장 공고 전체",j="/announcements",N="공고 둘러보기";function w(e){return[{label:"관심 지역 고르기",href:"/settings/regions",done:e.regions},{label:"자격 조건 넣기",href:"/profile/conditions",done:e.conditions},{label:"알림 켜기",href:"/settings/alerts",done:e.alerts}]}function k(e){return w(e).filter(e=>e.done).length}var S=e.i(152236);let L="hm:home-personal-variant",C=()=>()=>{};function D(){try{return"user"===localStorage.getItem(L)?"user":"anon"}catch{return"anon"}}let H="flex min-h-14 items-center gap-3 rounded-lg p-3.5 transition-colors motion-reduce:transition-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",A="inline-flex min-h-11 shrink-0 items-center gap-0.5 whitespace-nowrap rounded-md px-1.5 text-sm font-medium text-muted-foreground transition-colors motion-reduce:transition-none hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2";
1function $(){let[e,r]=(0,n.useState)({phase:"loading"}),i=(0,n.useSyncExternalStore)(C,D,()=>"anon");(0,n.useEffect)(()=>{let e=!0;return h().then(t=>{if(e){r(t?{phase:"user",data:t}:{phase:"anon"});try{localStorage.setItem(L,t?"user":"anon")}catch{}}}).catch(()=>{e&&r({phase:"failed"})}),()=>{e=!1}},[]);let s="loading"===e.phase;return(0,t.jsxs)("section",{"aria-label":"내 맞춤 정보","aria-busy":s,className:"mt-6 grid rounded-xl border border-border bg-card p-5 text-left",children:[(0,t.jsx)("div",{"aria-hidden":"true",className:(0,S.cn)("[grid-area:1/1] transition-opacity duration-[120ms] motion-reduce:transition-none",s?"opacity-100":"pointer-events-none opacity-0"),children:(0,t.jsx)(B,{variant:i})}),(0,t.jsxs)("div",{className:(0,S.cn)("[grid-area:1/1] transition-[opacity,transform] duration-[180ms] ease-[cubic-bezier(.2,0,0,1)] motion-reduce:transition-none",s?"translate-y-1 opacity-0":"translate-y-0 opacity-100"),children:["user"===e.phase&&(0,t.jsx)(T,{data:e.data}),"anon"===e.phase&&(0,t.jsx)(M,{}),"failed"===e.phase&&(0,t.jsx)(E,{})]})]})}function T({data:e}){var n,i;let s=function(e,t){if(t<=0||0===e.length)return null;let n=e.length>2?`관심 지역 ${e.length}곳`:e.join("·");return`${n}에 이번 주 새 공고 ${t}건`}(e.regions,e.newCount);if(!(e.deadlines.length>0||null!==s||null!==e.resume)){let n=3===k(e.checklist)?{title:"지금 챙길 공고가 없어요",description:"설정은 다 해두셨어요. 관심 지역에 새 공고가 뜨면 알려드릴게요."}:{title:"아직 비어 있어요. 3분이면 맞춤 공고가 켜집니다",description:"관심 지역과 자격 조건을 넣으면 마감·신규 공고를 알아서 골라 드려요."},i=k(e.checklist),s=i>=3;return(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-lg font-semibold leading-7 text-foreground",children:n.title}),(0,t.jsx)("p",{className:"mt-1.5 text-sm leading-6 text-muted-foreground",children:n.description}),s&&(0,t.jsxs)(r.default,{href:j,className:(0,S.cn)(H,"mt-3 border border-border hover:bg-muted/30"),children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 text-sm font-semibold text-foreground",children:N}),(0,t.jsx)(a.ChevronRight,{className:"h-4 w-4 shrink-0 text-muted-foreground","aria-hidden":"true"})]}),!s&&(0,t.jsxs)("div",{className:"mt-4 flex items-center gap-3",children:[(0,t.jsx)("div",{"aria-hidden":"true",className:"h-1.5 flex-1 overflow-hidden rounded-full bg-muted",children:(0,t.jsx)("div",{className:"h-full rounded-full bg-primary transition-[width] duration-300 motion-reduce:transition-none",style:{width:`${i/3*100}%`}})}),(0,t.jsxs)("span",{className:"shrink-0 text-[13px] font-bold text-muted-foreground",children:[i,"/3 완료"]})]}),!s&&(0,t.jsx)("ul",{className:"mt-3 grid gap-2",children:w(e.checklist).map(e=>e.done?(0,t.jsxs)("li",{className:(0,S.cn)(H,"bg-muted text-muted-foreground"),children:[(0,t.jsx)(g.Check,{className:"h-4 w-4 shrink-0 text-primary","aria-hidden":"true"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 text-sm font-semibold",children:e.label}),(0,t.jsx)("span",{className:"sr-only",children:"완료"})]},e.href):(0,t.jsx)("li",{children:(0,t.jsxs)(r.default,{href:e.href,className:(0,S.cn)(H,"border border-border hover:bg-muted/30"),children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 text-sm font-semibold text-foreground",children:e.label}),(0,t.jsx)(a.ChevronRight,{className:"h-4 w-4 shrink-0 text-muted-foreground","aria-hidden":"true"})]})},e.href))})]})}return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold leading-7 text-foreground",children:(n=e.name,(i=e.soonCount)>0?`${n}님, 지금 챙길 건 ${i}건이에요`:`${n}님, 오늘은 급한 마감이 없어요`)}),(0,t.jsxs)(r.default,{href:y,className:A,children:[v,(0,t.jsx)(a.ChevronRight,{className:"h-4 w-4","aria-hidden":"true"})]})]}),(0,t.jsxs)("div",{className:"mt-3 grid gap-3",children:[e.deadlines.length>0&&(0,t.jsx)("div",{className:"grid gap-3 lg:grid-cols-2",children:e.deadlines.map(e=>(0,t.jsx)(R,{card:e},e.key))}),s&&(0,t.jsxs)(r.default,{href:`/announcements?region=${encodeURIComponent(e.regions.join(","))}&sort=latest`,className:(0,S.cn)(H,"border border-border hover:bg-muted/30"),children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 text-sm font-semibold text-foreground",children:s}),(0,t.jsx)("span",{className:"shrink-0 text-[13px] font-bold text-primary",children:"보기"})]}),e.resume&&(0,t.jsxs)(r.default,{href:e.resume.href,className:(0,S.cn)(H,"bg-muted hover:bg-muted/70"),children:[(0,t.jsx)("span",{className:"shrink-0 text-sm font-semibold text-muted-foreground",children:"이어서 보기"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm text-foreground",children:e.resume.title}),(0,t.jsx)(a.ChevronRight,{className:"h-4 w-4 shrink-0 text-muted-foreground","aria-hidden":"true"})]})]})]})}function R({card:e}){let n=(0,p.getDDayBadgeFromDiff)(e.daysLeft)?.label??"",i=(0,b.formatDeadline)(e.endDate);return(0,t.jsxs)(r.default,{href:e.href,className:"rounded-lg border border-border p-3.5 transition-colors motion-reduce:transition-none hover:bg-muted/30 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",children:[(0,t.jsxs)("span",{className:"inline-flex items-center rounded-md border border-urgency-critical-border bg-urgency-critical-bg px-2 py-0.5 text-xs font-bold text-urgency-critical",children:[(0,t.jsxs)("span",{className:"sr-only",children:[0===e.daysLeft?"오늘 마감":`마감 ${e.daysLeft}일 전`,i?`, ${i}`:""]}),(0,t.jsxs)("span",{"aria-hidden":"true",children:[n,i?` \xb7 ${i} 마감`:""]})]}),(0,t.jsx)("p",{className:"mt-2 line-clamp-2 text-[15px] font-bold leading-[22px] text-foreground",children:e.title}),(0,t.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:[e.agency,e.region?` \xb7 ${e.regi
1on}`:""]})]})}function M(){return(0,t.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,t.jsxs)("p",{className:"min-w-0 text-[15px] leading-6 text-foreground",children:[(0,t.jsx)("b",{className:"font-bold",children:"관심 지역을 저장하면"})," 새 공고와 마감일을 홈에서 바로 볼 수 있어요."]}),(0,t.jsxs)("div",{className:"flex shrink-0 flex-wrap items-center gap-3",children:[(0,t.jsxs)(r.default,{href:"/announcements",className:A,children:["먼저 공고 둘러보기",(0,t.jsx)(a.ChevronRight,{className:"h-4 w-4","aria-hidden":"true"})]}),(0,t.jsx)(x.Button,{asChild:!0,className:"min-h-11 font-bold",children:(0,t.jsx)(r.default,{href:"/login?callbackUrl=/settings/regions",children:"관심 지역 설정하기"})})]})]})}function E(){return(0,t.jsxs)("div",{role:"status",className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h2",{className:"text-base font-semibold leading-6 text-foreground",children:"내 맞춤 정보는 잠시 후 다시 보여드릴게요"}),(0,t.jsx)("p",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:"저장한 공고와 관심 지역은 그대로예요. 아래에서 바로 이어서 볼 수 있어요."})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3",children:[(0,t.jsx)(x.Button,{asChild:!0,className:"min-h-11 font-bold",children:(0,t.jsx)(r.default,{href:y,children:v})}),(0,t.jsxs)(r.default,{href:j,className:A,children:[N,(0,t.jsx)(a.ChevronRight,{className:"h-4 w-4","aria-hidden":"true"})]})]})]})}function B({variant:e}){return(0,t.jsx)("div",{className:"animate-skeleton",children:"anon"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("div",{className:"h-6 w-3/5 rounded-md bg-muted"}),(0,t.jsx)("div",{className:"mt-1 h-6 w-4/5 rounded-md bg-muted"})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3",children:[(0,t.jsx)("div",{className:"h-11 w-36 rounded-md bg-muted"}),(0,t.jsx)("div",{className:"h-11 w-28 rounded-md bg-muted"})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-7 w-2/5 rounded-md bg-muted"}),(0,t.jsxs)("div",{className:"mt-3 grid gap-3",children:[(0,t.jsxs)("div",{className:"grid gap-3 lg:grid-cols-2",children:[(0,t.jsx)("div",{className:"h-[104px] rounded-lg bg-muted"}),(0,t.jsx)("div",{className:"h-[104px] rounded-lg bg-muted"})]}),(0,t.jsx)("div",{className:"h-14 rounded-lg bg-muted"}),(0,t.jsx)("div",{className:"h-14 rounded-lg bg-muted"})]})]})})}var I=e.i(385978);function _({id:e,title:n,level:i=2,description:s,icon:l,href:o,linkLabel:d="전체 보기",action:c,className:u}){let m=c??(o?(0,t.jsxs)(r.default,{href:o,className:"inline-flex min-h-11 shrink-0 items-center gap-0.5 whitespace-nowrap rounded-md px-1.5 text-sm font-medium text-muted-foreground transition-colors hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",children:[d,(0,t.jsx)(a.ChevronRight,{className:"h-4 w-4","aria-hidden":"true"})]}):null);return(0,t.jsxs)("div",{className:(0,S.cn)("mb-3 flex gap-x-3 gap-y-3",c?"flex-col md:flex-row md:items-end md:justify-between":"min-h-11 items-center justify-between",u),children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[l?(0,t.jsx)(I.Jugeo3DIcon,{name:l,className:"h-6 w-6",sizes:"24px"}):null,(0,t.jsx)(3===i?"h3":"h2",{id:e,className:(0,S.cn)("min-w-0 truncate leading-tight text-foreground",3===i?"text-base font-semibold md:text-lg":"text-xl font-bold"),children:n})]}),s?(0,t.jsx)("p",{className:"mt-1 text-sm font-medium leading-relaxed text-muted-foreground",children:s}):null]}),m]})}var F=e.i(835244),P=e.i(173547);let z=`ring-1 ${p.DDAY_TONE_CLASS.critical}`,O=[{label:"서울",href:"/announcements?region=%EC%84%9C%EC%9A%B8",count:0},{label:"경기",href:"/announcements?region=%EA%B2%BD%EA%B8%B0",count:0},{label:"인천",href:"/announcements?region=%EC%9D%B8%EC%B2%9C",count:0},{label:"부산",href:"/announcements?region=%EB%B6%80%EC%82%B0",count:0},{label:"대구",href:"/announcements?region=%EB%8C%80%EA%B5%AC",count:0},{label:"그 외 지역",href:"/announcements?scope=all",count:0,muted:!0}
1],U=[{label:"행복주택",kind:"임대",href:"/announcements/type/haengbok-jutaek",description:"청년·신혼·고령",graphic:"happyHousing"},{label:"공공분양",kind:"분양",href:V("공공분양"),description:"청약홈 공고",graphic:"publicSale"},{label:"국민임대",kind:"임대",href:"/announcements/type/gugmin-imdae",description:"장기 거주형",graphic:"nationalRental"},{label:"민간분양",kind:"분양",href:V("민간분양"),description:"모집공고 확인",graphic:"privateSale"},{label:"청년매입",desktopLabel:"청년 매입임대",kind:"임대",href:"/announcements/type/cheongnyeon-maeip-imdae",description:"대학생·취업준비생",graphic:"youthPurchase"},{label:"무순위",kind:"분양",href:V("무순위"),description:"잔여세대 확인",graphic:"unrankedSale"}],q=["임대","분양"].map(e=>({kind:e,items:U.filter(t=>t.kind===e)})),G=[{value:"all",label:"전체 공고",shortLabel:"전체"},{value:"rent",label:"임대 공고",shortLabel:"임대"},{value:"sale",label:"분양 공고",shortLabel:"분양"}],K=[{label:"관심 지역",href:"/announcements",Icon:d.MapPin},{label:"저장 공고",href:"/favorites",Icon:l.Heart},{label:"홈",href:"/",Icon:o.default,active:!0},{label:"커뮤니티",href:"/community",Icon:c},{label:"설정",href:"/settings/regions",Icon:m.Settings}];function V(e){return`/sale-announcements?q=${encodeURIComponent(e)}`}function Q(e){return`${e.toLocaleString()}건`}function J(e){if(!e)return 1/0;let t=new Date(e).getTime();return Number.isFinite(t)?t:1/0}function Y(e){return e?new Intl.DateTimeFormat("ko-KR",{timeZone:"Asia/Seoul",month:"numeric",day:"numeric",weekday:"short"}).format(new Date(e)):"일정 미정"}let Z={label:"",className:""};function X(e){if(null===e)return Z;if(e<=0)return{label:"오늘 마감",className:z};let t=(0,p.getDDayBadgeFromDiff)(e);
1return t&&"normal"!==t.urgency&&"closed"!==t.urgency?{label:t.label,className:`ring-1 ${p.DDAY_TONE_CLASS[t.urgency]}`}:Z}function W(e){return e.map(e=>{let t=X(e.daysUntilDeadline??null);return{id:e.id,title:e.title,href:e.href,badge:t.label,badgeClassName:t.className,source:e.source,meta:e.meta,kind:e.kind,sortTime:J(e.eventDate),dateLabel:e.dateLabel??null}})}function ee(e,t){return"rent"===t?e.filter(e=>"임대"===e.kind):"sale"===t?e.filter(e=>"분양"===e.kind):e}function et({value:e,onChange:n}){return(0,t.jsx)("div",{"data-home-announcement-scope-filter":!0,className:"border-b border-border",children:(0,t.jsx)("div",{role:"group",className:"flex gap-5 md:gap-6","aria-label":"홈 공고 유형 필터",children:G.map(r=>{let i=e===r.value;return(0,t.jsxs)("button",{type:"button","aria-pressed":i,onClick:()=>n(r.value),className:`-mb-px inline-flex min-h-11 items-center whitespace-nowrap border-b-2 px-0.5 text-[15px] font-semibold transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ${i?"border-foreground text-foreground":"border-transparent text-muted-foreground hover:border-border hover:text-foreground"}`,children:[r.shortLabel,(0,t.jsxs)("span",{className:"sr-only",children:[" ",r.label.slice(r.shortLabel.length)]})]},r.value)})})})}function en({category:e}){return(0,t.jsxs)(r.default,{href:e.href,className:"group flex min-w-0 flex-col rounded-xl border border-border bg-card p-2.5 text-left transition-colors hover:border-primary/30 hover:bg-primary/[0.04] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 md:p-4",children:[(0,t.jsx)("span",{className:"relative flex h-10 w-10 items-center justify-center rounded-[10px] bg-secondary md:h-12 md:w-12",children:(0,t.jsx)(I.Jugeo3DIcon,{name:e.graphic,className:"h-[54px] w-[54px] md:h-16 md:w-16",sizes:"(min-width: 768px) 64px, 54px"})}),(0,t.jsx)("span",{className:"mt-2.5 block text-xs font-semibold leading-tight text-foreground group-hover:text-primary md:hidden",children:e.label}),(0,t.jsx)("span",{className:"mt-3 hidden text-[15px] font-semibold leading-tight text-foreground group-hover:text-primary md:block",children:e.desktopLabel??e.label}),(0,t.jsx)("span",{className:"mt-1 hidden truncate text-xs font-medium text-muted-foreground md:block",children:e.description})]})}function er({item:e,trailing:n}){return(0,t.jsx)("li",{className:"border-t border-border/70 first:border-t-0",children:(0,t.jsxs)(r.default,{href:e.href,className:"group flex min-h-16 min-w-0 items-center gap-4 px-4 py-3 transition-colors hover:bg-primary/[0.04] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring md:px-5",children:[(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("span",{className:"line-clamp-2 text-[15px] font-semibold leading-snug text-foreground group-hover:text-primary",children:[e.badge?(0,t.jsx)("span",{className:`mr-2 inline-flex min-h-6 items-center justify-center rounded-md px-2 align-[-3px] text-xs font-bold ${e.badgeClassName}`,children:e.badge}):null,e.title]}),(0,t.jsx)("span",{className:"mt-1 block truncate text-[13px] font-medium text-muted-foreground",children:[[e.source,e.kind].filter(Boolean).join(" · "),e.meta].filter(Boolean).join(" · ")})]}),"date"===n&&e.dateLabel?(0,t.jsx)("span",{className:"shrink-0 text-[13px] font-medium text-muted-foreground",children:e.dateLabel}):(0,t.jsx)(a.ChevronRight,{className:"h-5 w-5 shrink-0 text-muted-foreground/70 transition-transform group-hover:translate-x-0.5 group-hover:text-primary","aria-hidden":"true"})]})})}function ei({emptyText:e,emptyHref:n,emptyLinkLabel:i}){return(0,t.jsxs)("div",{className:"rounded-xl border border-dashed border-border bg-card px-4 py-6",children:[(0,t.jsx)("p",{className:"text-sm font-medium text-foreground",children:e}),(0,t.jsxs)(r.default,{href:n,className:"mt-3 inline-flex min-h-11 items-center gap-1 rounded-full px-2 text-sm font-semibold text-primary transition-colors hover:bg-primary/10 hover:text-primary/85",children:[i,(0,t.jsx)(s.ArrowRight,{className:"h-3.5 w-3.5","aria-hidden":"true"})]})]})}function es({id:e,title:n,href:r,items:i,emptyText:s,emptyHref:a,emptyLinkLabel:l}){return(0,t.jsxs)("section",{id:e,"aria-labelledby":e?`${e}-heading`:void 0,"data-home-deadline-list":!0,className:"min-w-0 scroll-mt-24",children:[(0,t.jsx)(_,{id:e?`${e}-heading`:void 0,title:n,icon:"alarmClock",href:r}),i.length>0?(0,t.jsx)("ul",{className:"overflow-hidden rounded-xl border border-border bg-card",children:i.map(e=>(0,t.jsx)(er,{item:e,trailing:"chevron"},e.id))}):(0,t.jsx)(ei,{emptyText:s,emptyHref:a,emptyLinkLabel:l})]})}function ea({title:e,href:n,items:r,emptyText:i,emptyHref:s,emptyLinkLabel:a}){return(0,t.jsxs)("section",{"aria-labelledby":"home-new-list-heading","data-home-new-list":!0,className:"min-w-0",children:[(0,t.jsx)(_,{id:"home-new-list-heading",title:e,icon:"sparkle",href:n}),r.length>0?(0,t.jsx)("ul",{className:"overflow-hidden rounded-xl border border-border bg-card",children:r.map(e=>(0,t.jsx)(er,{item:e,trailing:"date"},e.id))}):(0,t.jsx)(ei,{emptyText:i,emptyHref:s,emptyLinkLabel:a})]})}function el(){return(0,t.jsx)("nav",{"aria-label":"홈 하단 바로가기","data-home-mobile-bottom-nav":!0,"data-mobile-bottom-bar":!0,className:"fixed inset-x-0 bottom-0 z-40 border-t border-border/70 bg-background/95 px-2 pb-[calc(env(safe-area-inset-bottom)+0.5rem)] pt-2 shadow-[0_-8px_24px_rgba(20,30,50,0.08)] backdrop-blur md:hidden",children:(0,t.jsx)("div",{className:"mx-auto grid max-w-md grid-cols-5 ga
1p-1",children:K.map(({label:e,href:n,Icon:i,active:s})=>(0,t.jsxs)(r.default,{href:n,"aria-current":s?"page":void 0,className:`flex min-h-14 flex-col items-center justify-center gap-1 rounded-lg text-xs font-bold transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ${s?"text-primary":"text-muted-foreground hover:bg-secondary hover:text-foreground"}`,children:[(0,t.jsx)("span",{className:`inline-flex h-6 w-6 items-center justify-center rounded-md ${s?"bg-primary/10":""}`,children:(0,t.jsx)(i,{className:"h-4 w-4","aria-hidden":"true"})}),e]},e))})})}e.s(["HomeCommunitySection",0,function({communityPosts:e,showCommunityModule:n}){let i=e.slice(0,3).map(e=>({id:`${e.sourceType}:${e.sourceId}`,href:e.destinationUrl,contextName:e.targetTitle??("question"===e.contentKind?"질문":"경험·후기"),replyLabel:"question"===e.contentKind?"답변":"댓글",title:e.title||e.bodyPreview,commentCount:e.replyCount}));return(0,t.jsx)(t.Fragment,{children:n&&(0,t.jsx)("section",{"aria-labelledby":"home-community-heading","data-home-community-panel":!0,className:"px-4 pb-12 md:pb-16",children:(0,t.jsxs)("div",{className:"mx-auto max-w-5xl",children:[(0,t.jsx)(_,{id:"home-community-heading",title:"커뮤니티 최근 글",icon:"speechBubbles",href:"/community"}),i.length>0?(0,t.jsx)("ul",{className:"overflow-hidden rounded-xl border border-border bg-card",children:i.map(e=>{var n;return(0,t.jsx)("li",{className:"border-t border-border/70 first:border-t-0",children:(0,t.jsxs)(r.default,{href:e.href,className:"group flex min-h-14 min-w-0 items-center gap-4 px-4 py-3 transition-colors hover:bg-primary/[0.04] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring md:px-5",children:[(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"line-clamp-1 block text-[15px] font-semibold leading-snug text-foreground group-hover:text-primary",children:e.title}),(0,t.jsxs)("span",{className:"mt-1 block truncate text-[13px] font-medium text-muted-foreground",children:[e.contextName," · ",e.replyLabel," ",(n=e.commentCount)>=1e4?`${(n/1e4).toFixed(1)}만`:n>=1e3?`${(n/1e3).toFixed(1)}천`:n.toLocaleString()]})]}),(0,t.jsx)(a.ChevronRight,{className:"h-5 w-5 shrink-0 text-muted-foreground/70 transition-transform group-hover:translate-x-0.5 group-hover:text-primary","aria-hidden":"true"})]})},e.id)})}):(0,t.jsxs)("div",{className:"rounded-xl border border-dashed border-border bg-card px-4 py-6",children:[(0,t.jsx)("p",{className:"text-sm font-medium text-foreground",children:"아직 보여줄 커뮤니티 글이 없습니다."}),(0,t.jsxs)(r.default,{href:"/community",className:"mt-3 inline-flex min-h-11 items-center gap-1 rounded-full px-2 text-sm font-semibold text-primary transition-colors hover:bg-primary/10 hover:text-primary/85",children:["커뮤니티 둘러보기",(0,t.jsx)(s.ArrowRight,{className:"h-3.5 w-3.5","aria-hidden":"true"})]})]})]})})})},"HomeExploreConsole",0,function({closingSoonAnnouncements:e,acceptingAnnouncements:s,latestOpportunities:a,saleDeadlineOpportunities:l,regionSummaries:o,stats:d,saleStats:c}){let m=(0,i.useRouter)(),[g,f]=(0,n.useState)("all"),h=d.active+c.active,x=d.deadlineSoon+c.deadlineSoon,p=(0,n.useMemo)(()=>{let t;return(t=e.slice(0,3).map(e=>{let t=X(e.dDay);return{id:e.id,title:e.title,href:`/announcements/${e.id}`,badge:t.label,badgeClassName:t.className,source:e.organization,meta:[e.region,e.housingType,`${Y(e.deadline)} 마감`].filter(Boolean).join(" · "),kind:"임대",sortTime:J(e.deadline)}})).length>0?t:s.slice(0,3).map(e=>{let t=X(e.daysUntilDeadline);return{id:e.id,title:e.title,href:`/announcements/${e.id}`,badge:t.label,badgeClassName:t.className,source:e.organization,meta:[e.region,`${Y(e.endDate)}까지 접수`].filter(Boolean).join(" · "),kind:"임대",sortTime:J(e.endDate)}})},[e,s]),b=(0,n.useMemo)(()=>W(l),[l]),y=(0,n.useMemo)(()=>ee([...p,...b].sort((e,t)=>(e.sortTime??1/0)-(t.sortTime??1/0)),g).slice(0,3),[g,p,b]),v=(0,n.useMemo)(()=>W(a),[a]),j=(0,n.useMemo)(()=>ee(v,g).slice(0,5),[g,v]),N="rent"===g?{noun:"임대 공고",deadlineHref:"/announcements?sort=deadline",latestHref:"/announcements?sort=latest",emptyHref:"/announcements?status=accepting"}:"sale"===g?{noun:"분양 공고",deadlineHref:"/sale-announcements?sort=deadline",latestHref:"/sale-announcements?sort=latest",emptyHref:"/sale-announcements?status=accepting"}:{noun:"전체 공고",deadlineHref:"/announcements?sort=deadline",latestHref:"/announcements?sort=latest",emptyHref:"/announcements?status=accepting"},w=o.length>0?o:O;return(0,t.jsxs)("section",{"aria-label":"청약 기회 탐색",className:"px-4 pb-20 pt-10 md:pb-16 md:pt-14",children:[(0,t.jsxs)("div",{className:"mx-auto max-w-5xl",children:[(0,t.jsxs)("div",{className:"mx-auto max-w-3xl text-center",children:[(0,t.jsx)("p",{className:"text-sm font-medium text-muted-foreground",children:"공공임대·분양 공고를 한곳에서"}),(0,t.jsxs)("h1",{className:"mt-2 text-[1.625rem] font-bold leading-tight tracking-tight text-foreground md:text-[2.25rem]",children:["내 조건에 맞는 집을",(0,t.jsx)("br",{className:"sm:hidden"})," 더 빨리 찾아보세요"]}),(0,t.jsx)("p",{className:"mx-auto mt-3 max-w-xl text-sm leading-6 text-muted-foreground md:text-[15px]",children:"LH·SH·GH·IH 임대와 청약홈 분양 공고를 모아 자격조건 · 일정 · 임대료 · 분양가를 비교하기 쉽게 정리했어요."}),(0,t.jsxs)("form",{action:"/announcements",method:"get",className:"mt-6 flex items-center gap-2 rounded-xl border border-input bg-card p-1.5 text-left transition-colors focus-within:border-primary/40 focu
1s-within:ring-4 focus-within:ring-primary/10",onSubmit:e=>{let t=new FormData(e.currentTarget).get("q");"string"==typeof t&&(e.preventDefault(),m.push((0,F.homeAnnouncementSearchHref)(t)))},children:[(0,t.jsx)("label",{htmlFor:"home-announcement-search",className:"sr-only",children:"공고 검색"}),(0,t.jsx)("p",{id:"home-announcement-search-help",className:"sr-only",children:"지역, 주택 유형, 대상, 접수 상태를 함께 입력할 수 있습니다."}),(0,t.jsx)(u.Search,{className:"ml-2.5 h-5 w-5 shrink-0 text-muted-foreground","aria-hidden":"true"}),(0,t.jsx)("input",{id:"home-announcement-search",name:"q",type:"search","aria-describedby":"home-announcement-search-help",placeholder:"지역, 단지명, 유형으로 검색",className:"min-h-11 min-w-0 flex-1 bg-transparent px-1 text-base font-medium text-foreground outline-none placeholder:text-muted-foreground"}),(0,t.jsx)("button",{type:"submit","aria-label":"검색어 제출",className:"inline-flex min-h-11 shrink-0 items-center justify-center rounded-lg bg-primary px-4 text-sm font-bold text-primary-foreground transition-colors hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 md:px-5",children:"검색"})]}),(0,t.jsx)("ul",{className:"-mx-4 mt-3 flex gap-2 overflow-x-auto px-4 pb-1 [scrollbar-width:none] md:mx-0 md:flex-wrap md:justify-center md:overflow-visible md:px-0 md:pb-0",children:P.EXAMPLE_QUERIES.slice(0,4).map(e=>(0,t.jsx)("li",{className:"shrink-0",children:(0,t.jsx)(r.default,{href:(0,F.homeAnnouncementSearchHref)(e),className:"inline-flex min-h-11 items-center whitespace-nowrap rounded-lg border border-border bg-card px-3 text-[13px] font-medium text-foreground transition-colors hover:border-primary/40 hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 md:min-h-9",children:e})},e))}),(0,t.jsxs)("p",{className:"mt-4 text-[13px] font-medium text-muted-foreground",children:["현재 공고중"," ",(0,t.jsx)("b",{className:"font-bold text-foreground",children:Q(h)}),x>0?(0,t.jsxs)(t.Fragment,{children:[" · ","7일 내 마감"," ",(0,t.jsx)("b",{className:"font-bold text-foreground",children:Q(x)})]}):null]})]}),(0,t.jsx)("div",{className:"mt-10 grid gap-6 md:grid-cols-2 md:gap-8",children:q.map(e=>(0,t.jsxs)("div",{role:"group","aria-labelledby":`home-category-group-${e.kind}`,children:[(0,t.jsx)("p",{id:`home-category-group-${e.kind}`,className:"mb-2 text-[13px] font-bold text-muted-foreground",children:e.kind}),(0,t.jsx)("div",{className:"grid grid-cols-3 gap-2 md:gap-3",children:e.items.map(e=>(0,t.jsx)(en,{category:e},e.label))})]},e.kind))}),(0,t.jsxs)("section",{"aria-label":"지금 확인할 공고","data-home-opportunity-feed":!0,className:"mt-10 md:mt-12",children:[(0,t.jsx)(et,{value:g,onChange:f}),(0,t.jsxs)("div",{className:"mt-5 grid gap-6 lg:grid-cols-2 lg:gap-8",children:[(0,t.jsx)(es,{id:"deadline-list",title:"마감 임박",href:N.deadlineHref,items:y,emptyText:`현재 ${N.noun} 중 마감 임박 공고가 없습니다.`,emptyHref:N.emptyHref,emptyLinkLabel:`${N.noun} 보기`}),(0,t.jsx)(ea,{title:"새 공고",href:N.latestHref,items:j,emptyText:`표시할 ${N.noun}가 없습니다.`,emptyHref:N.emptyHref,emptyLinkLabel:`${N.noun} 보기`})]})]}),(0,t.jsx)($,{}),(0,t.jsxs)("section",{"aria-label":"지역별 공고",className:"mt-10 md:mt-12",children:[(0,t.jsx)(_,{title:"지역별 공고",href:"/announcements?scope=all",linkLabel:"전체 지역"}),(0,t.jsx)("div",{"data-home-region-grid":!0,className:"grid grid-cols-2 overflow-hidden rounded-xl border border-border bg-card md:grid-cols-4",children:w.map((e,n)=>(0,t.jsxs)(r.default,{href:e.href,className:`flex min-h-[54px] items-center justify-between gap-2 border-border/70 px-4 py-3 text-left transition-colors hover:bg-primary/[0.04] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring md:px-5 ${n>=2?n>=4?"border-t":"border-t md:border-t-0":""} ${n%2==1?"border-l":n%4!=0?"md:border-l":""} ${e.muted?"text-muted-foreground hover:text-primary":"text-foreground"}`,children:[(0,t.jsx)("span",{className:"min-w-0 truncate text-[15px] font-semibold",children:e.label}),e.muted?null:(0,t.jsx)("span",{className:"shrink-0 text-[13px] font-medium text-muted-foreground",children:e.count>0?Q(e.count):"공고 보기"})]},e.label))})]})]}),(0,t.jsx)(el,{})]})}],227720)},385978,e=>{"use strict";
1var t=e.i(843476),n=e.i(657688),r=e.i(152236);let i={aiAnalysis:"/images/ui-icon-ai-analysis-clay.webp",calendarTicket:"/images/ui-icon-calendar-ticket-clay.webp",competitionGauge:"/images/ui-icon-competition-gauge-clay.webp",errorHouse:"/images/ui-icon-error-house-clay.webp",favoriteDocument:"/images/ui-icon-favorite-document-clay.webp",loadingHouse:"/images/ui-icon-loading-house-clay.webp",mapBuilding:"/images/ui-icon-map-building-clay.webp",notificationCalendar:"/images/ui-icon-notification-calendar-clay.webp",onboardingPath:"/images/ui-icon-onboarding-path-clay.webp",regionCompass:"/images/ui-icon-region-compass-clay.webp",saleVerified:"/images/ui-icon-sale-verified-clay.webp",searchDocument:"/images/ui-icon-search-document-clay.webp",happyHousing:"/images/ui-icon-happy-housing-clay.webp",publicSale:"/images/ui-icon-public-sale-clay.webp",nationalRental:"/images/ui-icon-national-rental-clay.webp",privateSale:"/images/ui-icon-private-sale-clay.webp",youthPurchase:"/images/ui-icon-youth-purchase-clay.webp",unrankedSale:"/images/ui-icon-unranked-sale-clay.webp",agencyRow:"/images/ui-icon-agency-row-clay.webp",folderTypes:"/images/ui-icon-folder-types-clay.webp",applicationSteps:"/images/ui-icon-application-steps-clay.webp",newlywedRings:"/images/ui-icon-newlywed-rings-clay.webp",youthSafe:"/images/ui-icon-youth-safe-clay.webp",bookmarkDocument:"/images/ui-icon-bookmark-document-clay.webp",alarmBell:"/images/ui-icon-alarm-bell-clay.webp",mobilePhone:"/images/ui-icon-mobile-phone-clay.webp",compass:"/images/ui-icon-compass-clay.webp",sparkle:"/images/ui-icon-sparkle-clay.webp",alarmClock:"/images/ui-icon-alarm-clock-clay.webp",speechBubbles:"/images/ui-icon-speech-bubbles-clay.webp"};e.s(["Jugeo3DIcon",0,function({name:e,className:s="h-16 w-16",imageClassName:a,sizes:l="64px",priority:o=!1}){return(0,t.jsx)("span",{"aria-hidden":"true",className:(0,r.cn)("relative inline-flex shrink-0 overflow-visible",s),children:(0,t.jsx)(n.default,{src:i[e],alt:"",fill:!0,sizes:l,priority:o,loading:o?void 0:"lazy",className:(0,r.cn)("object-contain",a)})})}])},718879,e=>{"use strict";var t=e.i(516350);let n="bg-muted text-muted-foreground";function r(e){return null===e?null:e<0?{label:"마감",urgency:"closed",className:n}:0===e?{label:"D-Day",urgency:"critical",className:"bg-urgency-critical-bg text-urgency-critical font-bold animate-urgency"}:e<=3?{label:`D-${e}`,urgency:"critical",className:"bg-urgency-critical-bg text-urgency-critical font-bold"}:e<=7?{label:`D-${e}`,urgency:"warning",className:"bg-urgency-warning-bg text-urgency-warning font-bold"}:{label:`D-${e}`,urgency:"normal",className:n}}e.s(["DDAY_TONE_CLASS",0,{critical:"bg-urgency-critical-bg text-urgency-critical ring-urgency-critical-border",warning:"bg-urgency-warning-bg text-urgency-warning ring-urgency-warning-border",normal:"bg-secondary text-secondary-foreground ring-border/70",closed:"bg-muted text-muted-foreground ring-border/60"},"getDDayBadge",0,function(e,n=new Date){return r((0,t.daysUntilKst)(e,n))},"getDDayBadgeFromDiff",0,r,"getOrgBadgeColor",0,function(e){switch(e.toUpperCase()){case"LH":return"bg-org-lh/10 text-org-lh font-bold";case"SH":return"bg-org-sh/10 text-org-sh font-bold";case"GH":return"bg-org-gh/10 text-org-gh font-bold";case"IH":return"bg-org-ih/10 text-org-ih font-bold";default:return"bg-muted text-muted-foreground font-bold"}}])},835244,173547,e=>{"use strict";let t=/공공분양|민간분양|분양주택|일반분양|분양\s*아파트|분양\s*광고/,n=["강남구","강동구","강북구","강서구","관악구","광진구","구로구","금천구","노원구","도봉구","동대문구","동작구","마포구","서대문구","서초구","성동구","성북구","송파구","양천구","영등포구","용산구","은평구","종로구","중구","중랑구"],r={서울:"서울특별시",부산:"부산광역시",대구:"대구광역시",인천:"인천광역시",광주:"광주광역시",대전:"대전광역시",울산:"울산광역시",세종:"세종특별자치시",경기:"경기도",강원:"강원특별자치도",충북:"충청북도",충남:"충청남도",전북:"전북특별자치도",전남:"전라남도",경북:"경상북도",경남:"경상남도",제주:"제주특별자치도"},i=["아파트","오피스텔","빌라","주택","원룸/투룸","기숙사"],s={청년:"청년",신혼:"신혼부부",신혼부부:"신혼부부",다자녀:"다자녀",고령자:"고령자",노인:"고령자",어르신:"고령자",저소득:"저소득층",저소득층:"저소득층",무주택:"무주택세대주",무주택자:"무주택세대주",장애인:"장애인",국가유공자:"국가유공자",한부모:"한부모가정"},a={공고중:"open",공고:"open",예정:"open",예정된:"open",ê³§:"open",모집중:"accepting",접수중:"accepting",진행중:"accepting",마감:"closed",종료:"closed",마감된:"closed"},l={LH:"LH",lh:"LH",SH:"SH",sh:"SH",GH:"GH",gh:"GH",IH:"IH",ih:"IH",한국토지주택공사:"LH",서울주택도시공사:"SH",경기주택도시공사:"GH"},o={아파트:"아파트",오피스텔:"오피스텔",빌라:"빌라",주택:"주택",원룸:"원룸/투룸",투룸:"원룸/투룸",원룸투룸:"원룸/투룸",기숙사:"기숙사",행복주택:"행복주택",국민임대:"국민임대",공공임대:"공공임대",영구임대:"영구임대",매ìž
1…임대:"매입임대",전세임대:"전세임대",공공분양:"공공분양"};function d(e){let t=e.match(/(\d+(?:\.\d+)?)\s*억\s*(?:(\d+(?:\.\d+)?)\s*천)?\s*(?:만)?\s*원?|(\d+(?:\.\d+)?)\s*천\s*(?:만)?\s*원?|(\d+(?:\.\d+)?)\s*만\s*원?|(\d+(?:\.\d+)?)\s*원/);if(!t)return null;if(t[1]){let e=1e4*parseFloat(t[1]);return t[2]&&(e+=1e3*parseFloat(t[2])),e}return t[3]?1e3*parseFloat(t[3]):t[4]?parseFloat(t[4]):t[5]?parseFloat(t[5])/1e4:null}function c(e){let t=e.trim(),c={regions:[],housingTypes:[],targetGroups:[],maxDeposit:null,maxMonthlyRent:null,status:null,sourceSite:null};if(!t)return{structuredFilters:c,remainingQuery:"",hasStructuredFilters:!1};for(let e of[/보증금\s*(\d+(?:\.\d+)?\s*(?:억(?:\s*\d+(?:\.\d+)?\s*천)?|천|만)\s*(?:만)?\s*원?)\s*(?:이하|이내|미만|까지)?/,/보증금\s*(\d+)\s*(?:이하|이내|미만|까지)?/]){let n=t.match(e);if(n){let e=d(n[1]);null!==e&&(c.maxDeposit=e,t=t.replace(n[0]," "))}}for(let e of[/월세\s*(\d+(?:\.\d+)?\s*(?:억(?:\s*\d+(?:\.\d+)?\s*천)?|천|만)\s*(?:만)?\s*원?)\s*(?:이하|이내|미만|까지)?/,/월세\s*(\d+)\s*(?:만\s*원?)?\s*(?:이하|이내|미만|까지)?/]){let n=t.match(e);if(n){let e=d(n[1]);null!==e&&(c.maxMonthlyRent=e,t=t.replace(n[0]," "))}}for(let[e,n]of Object.entries(l)){let r=RegExp(`\\b${u(e)}\\b`,"gi");if(r.test(t)){c.sourceSite=n,t=t.replace(r," ");break}}for(let[e,n]of Object.entries(a))if(t.includes(e)){c.status=n,t=t.replace(e," ");break}for(let e of n)t.includes(e)&&(c.regions.push(e),t=t.replace(e," "));for(let[e,n]of Object.entries(r))t.includes(e)&&(c.regions.some(t=>t===n||t===e)||c.regions.push(e),t=t.replace(RegExp(u(e),"g")," "));for(let[e,n]of Object.entries(o))t.includes(e)&&(c.housingTypes.includes(n)||c.housingTypes.push(n),t=t.replace(RegExp(u(e),"g")," "));for(let e of i)t.includes(e)&&!c.housingTypes.includes(e)&&(c.housingTypes.push(e),t=t.replace(RegExp(u(e),"g")," "));for(let[e,n]of Object.entries(s))t.includes(e)&&(c.targetGroups.includes(n)||c.targetGroups.push(n),t=t.replace(RegExp(u(e),"g")," "));t=t.replace(/\s+/g," ").trim();let m=c.regions.length>0||c.housingTypes.length>0||c.targetGroups.length>0||null!==c.maxDeposit||null!==c.maxMonthlyRent||null!==c.status||null!==c.sourceSite;return{structuredFilters:c,remainingQuery:t,hasStructuredFilters:m}}function u(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function m(e){if(null===e||!Number.isFinite(e))return;let t=Math.round(e);return t>0?t:void 0}function g(e){let{structuredFilters:t,remainingQuery:n}=c(e.trim()),i=t.regions.filter(e=>e in r);return{q:Array.from(new Set([n,...t.regions.filter(e=>!(e in r)),...t.housingTypes.filter(e=>!e.includes("/")),...t.targetGroups,...t.sourceSite?[t.sourceSite]:[]].flatMap(e=>e.split(/\s+/)).filter(Boolean))).join(" "),region:i[0],status:t.status??void 0,deposit:m(t.maxDeposit),rent:m(t.maxMonthlyRent)}}function f(e){return t.test(e)}function h(e){let{q:t,region:n,status:r}=g(e),i=new URLSearchParams;t&&i.set("q",t),n&&i.set("region",n),r&&"open"!==r&&i.set("status",r);let s=i.toString();return s?`/sale-announcements?${s}`:"/sale-announcements"}e.s(["EXAMPLE_QUERIES",0,["서울 청년 행복주택","보증금 3천만원 이하 신혼부부","경기 공공임대 접수중","인천 오피스텔 월세 50만원","LH 국민임대 청년","강남구 공공분양"],"REGION_SHORT_MAP",0,r,"parseSearchQuery",0,c],173547),e.s(["homeAnnouncementSearchHref",0,function(e){return f(e)?h(e):function(e){let{q:t,region:n,status:r,deposit:i,rent:s}=g(e),a=new URLSearchParams;t&&a.set("q",t),n&&a.set("region",n),r&&a.set("status",r),i&&a.set("deposit",String(i)),s&&a.set("rent",String(s));let l=a.toString();return l?`/announcements?${l}`:"/announcements"}(e)},"isSaleQuery",0,f,"saleAnnouncementListHref",0,h,"toAnnouncementListQuery",0,g],835244)},972520,e=>{"use strict";let t=(0,e.i(475254).default)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,t],972520)},643531,e=>{"use strict";let t=(0,e.i(475254).default)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",0,t],643531)},463059,e=>{"use strict";let t=(0,e.i(475254).default)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],463059)},790597,e=>{"use strict";let t=(0,e.i(475254).default)("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);e.s(["Heart",0,t],790597)},403014,e=>{"use strict";let t=(0,e.i(475254).default)("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);e.s(["default",0,t])},346897,e=>{"use strict";let t=(0,e.i(475254).default)("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);e.s(["MapPin",0,t],346897)},555436,e=>{"use strict";let t=(0,e.i(475254).default)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);e.s(["Search",0,t],555436)},239616,e=>{"use strict";let t=(0,e.i(475254).default)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Settings",0,t],239616)},95187,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={callServer:function(){return s.callServer},createServerReference:function(){return l.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let s=e.r(132120),a=e.r(92245),l=e.r(235326)},794909,(e,t,n)=>{"use strict";e.i(247167),Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return c},getImageProps:function(){return d}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let s=e.r(555682),a=e.r(908927),l=e.r(605500),o=s._(e.r(1948));function d(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[384,640,768,1024,1200],imageSizes:[16,24,32,40,48,56,64,96,128,256,320],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let c=l.Image},657688,(e,t,n)=>{t.exports=e.r(794909)},516350,e=>{"use strict";let t=/^\d{4}-\d{2}-\d{2}$/;function n(e){let t=Date.parse(e);return Number.isFinite(t)?new Date(t):null}function r(e){return e?t.test(e)?n(`${e}T23:59:59.999+09:00`):n(e):null}function i(e){return Math.floor((e.getTime()+324e5)/864e5)}function s(e,t){return i(t)-i(e)}function a(e=new Date){return new Date(e.getTime()+324e5).toISOString().slice(0,10)}function l(e){let t=new Date(e.getTime()+324e5);return{hour:t.getUTCHours(),minute:t.getUTCMinutes()}}e.s(["daysUntilKst",0,function(e,t=new Date){if(!e)return null;let n=r(e.includes("T")?e:e.replace(/\./g,"-"));return n?s(t,n):null},"differenceInKoreanCalendarDays",0,s,"koreaClockParts",0,l,"koreaClockString",0,function(e){let{hour:t,minute:n}=l(e);return`${t<12?"오전":"오후"} ${t%12||12}:${String(n).padStart(2,"0")}`},"koreaDateString",0,a,"koreaMonthDayString",0,function(e){let[,t,n]=a(e).split("-");return`${Number(t)}월 ${Number(n)}일`},"parseKstDayEnd",0,r,"parseKstDayStart",0,function(e){return e?t.test(e)?n(`${e}T00:00:00.000+09:00`):n(e):null}])},988204,e=>{"use strict";function t(e){if(!e)return 0;let t=new Date(e).getTime();return Number.isNaN(t)?0:t}let n={rental:"공공임대",sale:"분양"},r={open:"접수중",soon:"마감임박",closed:"마감"},i=new Intl.DateTimeFormat("ko-KR",{month:"long",day:"numeric",weekday:"short",timeZone:"Asia/Seoul"});e.s(["SAVED_DOMAIN_LABEL",0,n,"SAVED_SORT_OPTIONS",0,[{value:"deadline",label:"마감 임박순"},{value:"saved",label:"저장한 순"},{value:"viewed",label:"최근 본 순"}],"SAVED_STATUS_LABEL",0,r,"filterSavedAnnouncements",0,function(e,t){let n=t.query?.trim().toLowerCase()??"";return e.filter(e=>{var r;return("all"===t.domain||e.domain===t.domain)&&("open"!==t.status||"closed"!==e.status)&&("soon"!==t.status||"soon"===e.status)&&("closed"!==t.status||"closed"===e.status)&&(!n||!![(r=e).title,r.agency,...r.regions].join(" ").toLowerCase().includes(n))})},"formatDeadline",0,function(e){if(!e)return null;let t=new Date(e.includes("T")?e:e.replace(/\./g,"-"));return Number.isNaN(t.getTime())?null:i.format(t)},"savedActiveFilterLabels",0,function(e){let t=e.query.trim();return[t?`"${t}" 검색`:null,"all"!==e.status?r[e.status]:null,"all"!==e.domain?n[e.domain]:null].filter(e=>null!==e)},"savedAnnouncementTarget",0,function(e){return{type:"sale"===e.domain?"sale_announcement":"announcement",id:e.id}},"savedFilteredEmptyDescription",0,function(e){if(0!==e.length)return`${e.join(" + ")} 조건을 함께 걸면 결과가 없어요.`},"sortSavedAnnouncements",0,function(e,n){let r=[...e];return"viewed"===n?r.sort((e,n)=>{let r,i;return r=t(e.viewedAt),(r!==(i=t(n.viewedAt))?i-r:t(n.savedAt)-t(e.savedAt))||e.key.localeCompare(n.key)}):"saved"===n?r.sort((e,n)=>t(n.savedAt)-t(e.savedAt)||e.key.localeCompare(n.key)):r.sort((e,n)=>(function(e,n){let r=Number("closed"===e.status)-Number("closed"===n.status);if(0!==r)return r;if("closed"===e.status){let t=Number(n.applied)-Number(e.applied);return 0!==t?t:(n.daysLeft??-1/0)-(e.daysLeft??-1/0)}let i=e.daysLeft??1/0,s=n.daysLeft??1/0;return i!==s?i-s:t(n.savedAt)-t(e.savedAt)})(e,n)||e.key.localeCompare(n.key))},"summarizeSavedAnnouncements",0,function(e,t="all"){let n="all"===t?e:e.filter(e=>e.domain===t);return{total:e.length,rental:e.filter(e=>"rental"===e.domain).length,sale:e.filter(e=>"sale"===e.domain).length,scopedTotal:n.length,open:n.filter(e=>
1"closed"!==e.status).length,soon:n.filter(e=>"soon"===e.status).length,closed:n.filter(e=>"closed"===e.status).length}}])}]);

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.