import{_ as b}from"./AdminLayout.vue_vue_type_script_setup_true_lang-DtHb-1yq.js";import{_ as n}from"./Button.vue_vue_type_script_setup_true_lang-CKPSvBok.js";import{_ as f}from"./Card.vue_vue_type_script_setup_true_lang-D4PxcbNb.js";import{_ as v}from"./Badge.vue_vue_type_script_setup_true_lang-Ciy8TpTM.js";import{i as c,m as u,b as x,E as r,a as e,e as _,t as w,h as o,k as h,w as l,g as d,v as i,F as y}from"./index-DF5uCdwt.js";import"./cn-2dOUpm6k.js";const k={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4"},$={class:"absolute top-3 right-3"},B={class:"p-4"},C={class:"font-bold text-[14.5px] m-0 mb-1"},V={class:"text-[11.5px] text-[var(--wdot-fg-muted)] font-mono m-0 mb-3"},F={class:"flex items-center justify-between text-[11px] text-[var(--wdot-fg-muted)]"},L={class:"text-[var(--wdot-fg)]"},A=c({__name:"PageList",setup(N){const m=[{id:1,title:"홈",slug:"/",status:"published",visits:"12.4K",updated:"오늘 14:32",thumb:"linear-gradient(135deg, #36a3fa, #0f5fa8)"},{id:2,title:"5월 행사",slug:"/event/may",status:"published",visits:"3.2K",updated:"어제",thumb:"linear-gradient(135deg, #ff6b6b, #c1272d)"},{id:3,title:"회사 소개",slug:"/about",status:"published",visits:"847",updated:"3일 전",thumb:"linear-gradient(135deg, #34d399, #047857)"},{id:4,title:"신메뉴 안내",slug:"/menu/new",status:"draft",visits:"—",updated:"10분 전",thumb:"linear-gradient(135deg, #fbcfe8, #9d174d)"},{id:5,title:"고객 문의",slug:"/contact",status:"published",visits:"421",updated:"1주 전",thumb:"linear-gradient(135deg, #fde68a, #a16207)"},{id:6,title:"FAQ",slug:"/faq",status:"draft",visits:"—",updated:"2주 전",thumb:"linear-gradient(135deg, #c7d2fe, #4338ca)"}],g=a=>a==="published"?"success":a==="draft"?"warning":"neutral",p=a=>({published:"발행됨",draft:"초안",hold:"보류"})[a]??a;return(a,t)=>(u(),x(b,null,{breadcrumb:r(()=>[...t[2]||(t[2]=[d("홈 · ",-1),e("b",null,"페이지",-1)])]),title:r(()=>[...t[3]||(t[3]=[d("페이지",-1)])]),actions:r(()=>[o(l(n),{variant:"outline"},{default:r(()=>[...t[4]||(t[4]=[d("📁 폴더 만들기",-1)])]),_:1}),o(l(n),{variant:"primary",onClick:t[0]||(t[0]=s=>a.$router.push("/pages/new"))},{default:r(()=>[...t[5]||(t[5]=[d("+ 새 페이지",-1)])]),_:1})]),default:r(()=>[e("div",k,[e("button",{class:"border-2 border-dashed border-[var(--wdot-border-strong)] rounded-[var(--wdot-radius-lg)] min-h-[260px] grid place-items-center bg-[var(--wdot-bg)] hover:border-[var(--wdot-color-primary-500)] hover:bg-[var(--wdot-color-primary-50)] transition-colors cursor-pointer",onClick:t[1]||(t[1]=s=>a.$router.push("/pages/new"))},[...t[6]||(t[6]=[e("div",{class:"text-center"},[e("div",{class:"w-14 h-14 mx-auto rounded-full bg-[var(--wdot-color-primary-100)] text-[var(--wdot-color-primary-600)] grid place-items-center text-2xl font-bold mb-3"},"+"),e("div",{class:"font-bold text-[14px]"},"새 페이지 만들기"),e("div",{class:"text-[12px] text-[var(--wdot-fg-muted)] mt-1"},"템플릿 또는 빈 페이지에서 시작")],-1)])]),(u(),_(y,null,w(m,s=>o(l(f),{key:s.id,hoverable:"",padding:"none"},{default:r(()=>[e("div",{class:"aspect-[16/10] relative",style:h({background:s.thumb})},[e("div",$,[o(l(v),{variant:g(s.status)},{default:r(()=>[d(i(p(s.status)),1)]),_:2},1032,["variant"])])],4),e("div",B,[e("h3",C,i(s.title),1),e("p",V,i(s.slug),1),e("div",F,[e("span",null,[t[7]||(t[7]=d("방문 ",-1)),e("b",L,i(s.visits),1)]),e("span",null,i(s.updated),1)])])]),_:2},1024)),64))])]),_:1}))}});export{A as default};
