import{_ as f}from"./AdminLayout.vue_vue_type_script_setup_true_lang-DtHb-1yq.js";import{_ as u}from"./Button.vue_vue_type_script_setup_true_lang-CKPSvBok.js";import{_ as b}from"./Badge.vue_vue_type_script_setup_true_lang-Ciy8TpTM.js";import{i as k,m,b as w,E as s,h as o,a,w as n,g as r,v as l,e as p,s as g}from"./index-DF5uCdwt.js";import{_ as y,a as h}from"./Pagination.vue_vue_type_script_setup_true_lang-DUEFd5YL.js";import"./cn-2dOUpm6k.js";import"./Checkbox.vue_vue_type_script_setup_true_lang-HEQfofy8.js";const V={class:"font-semibold text-[13px]"},j={class:"text-[10px] text-[var(--wdot-fg-muted)] mt-0.5"},B={class:"text-[10px] bg-[var(--wdot-bg-subtle)] px-1.5 py-0.5 rounded"},$={class:"text-xs"},C={key:0},N={key:1,class:"text-[var(--wdot-fg-muted)]"},E={class:"flex items-center justify-between mt-5"},I={class:"text-xs text-[var(--wdot-fg-muted)]"},R=k({__name:"Banners",setup(S){const c=g(1),d=g([{id:1,name:"여름 시즌 할인",slot:"home_main",image:"summer-sale.jpg",url:"/event/summer",start:"2026-05-01",end:"2026-08-31",status:"active",impressions:8247,clicks:124},{id:2,name:"신규 회원 환영",slot:"side_banner",image:"welcome.jpg",url:"/signup",start:"2026-01-01",end:"2026-12-31",status:"active",impressions:12847,clicks:412},{id:3,name:"VIP 멤버십 안내",slot:"post_bottom",image:"vip.jpg",url:"/vip",start:"2026-04-15",end:"2026-06-30",status:"active",impressions:5247,clicks:87},{id:4,name:"이벤트 종료 (봄)",slot:"home_main",image:"spring.jpg",url:"/event/spring",start:"2026-03-01",end:"2026-04-30",status:"expired",impressions:18247,clicks:412},{id:5,name:"런칭 예정 — 신기능",slot:"board_top",image:"launch.jpg",url:"/launch",start:"2026-06-01",end:"2026-07-31",status:"scheduled",impressions:0,clicks:0}]),v=[{key:"preview",label:"미리보기",width:"80px"},{key:"name",label:"이름",sortable:!0},{key:"slot",label:"슬롯",align:"center"},{key:"period",label:"기간"},{key:"ctr",label:"CTR",align:"right"},{key:"status",label:"상태",align:"center"},{key:"actions",label:"",width:"100px",align:"right"}],_=i=>i==="active"?"success":i==="scheduled"?"warning":"neutral",x=i=>i==="active"?"운영중":i==="scheduled"?"예약":"종료";return(i,e)=>(m(),w(f,null,{breadcrumb:s(()=>[...e[1]||(e[1]=[r("광고 · ",-1),a("b",null,"배너",-1)])]),title:s(()=>[...e[2]||(e[2]=[r("배너 관리",-1)])]),actions:s(()=>[o(n(u),{variant:"outline"},{default:s(()=>[...e[3]||(e[3]=[r("CSV 내보내기",-1)])]),_:1}),o(n(u),{variant:"primary"},{default:s(()=>[...e[4]||(e[4]=[r("+ 새 배너",-1)])]),_:1})]),default:s(()=>[o(n(y),{columns:v,rows:d.value,"row-key":"id"},{"cell-preview":s(({row:t})=>[...e[5]||(e[5]=[a("div",{class:"w-14 h-9 rounded bg-gradient-to-br from-[var(--wdot-color-primary-200)] to-[var(--wdot-color-primary-500)] grid place-items-center text-white text-[10px] font-bold"}," IMG ",-1)])]),"cell-name":s(({row:t})=>[a("div",V,l(t.name),1),a("div",j,l(t.url),1)]),"cell-slot":s(({row:t})=>[a("code",B,l(t.slot),1)]),"cell-period":s(({row:t})=>[a("div",$,l(t.start)+" ~ "+l(t.end),1)]),"cell-ctr":s(({row:t})=>[t.impressions?(m(),p("span",C,l((t.clicks/t.impressions*100).toFixed(2))+"%",1)):(m(),p("span",N,"—"))]),"cell-status":s(({row:t})=>[o(n(b),{variant:_(t.status)},{default:s(()=>[r(l(x(t.status)),1)]),_:2},1032,["variant"])]),"cell-actions":s(()=>[...e[6]||(e[6]=[a("button",{class:"text-[12px] text-[var(--wdot-color-primary-600)] font-semibold"},"편집",-1)])]),_:1},8,["rows"]),a("div",E,[a("div",I,"총 "+l(d.value.length)+"건",1),o(n(h),{modelValue:c.value,"onUpdate:modelValue":e[0]||(e[0]=t=>c.value=t),total:d.value.length,"per-page":20},null,8,["modelValue","total"])])]),_:1}))}});export{R as default};
