import{_ as N}from"./AdminLayout.vue_vue_type_script_setup_true_lang-DtHb-1yq.js";import{_ as S}from"./Button.vue_vue_type_script_setup_true_lang-CKPSvBok.js";import{_ as y}from"./Input.vue_vue_type_script_setup_true_lang-09owoR_-.js";import{i as U,m as t,b as C,E as i,a as o,e as l,t as c,n as T,v as _,F as a,h as u,w as m,d as b,g as n,s as p}from"./index-DF5uCdwt.js";import{_ as $}from"./Select.vue_vue_type_script_setup_true_lang-CygVv_b7.js";import{_ as B}from"./Switch.vue_vue_type_script_setup_true_lang-J_gM7TPs.js";import"./cn-2dOUpm6k.js";const L={class:"grid grid-cols-1 lg:grid-cols-[240px_1fr] gap-5"},R={class:"bg-[var(--wdot-bg)] border border-[var(--wdot-border)] rounded-[var(--wdot-radius-lg)] p-2.5 h-fit lg:sticky lg:top-5"},z=["onClick"],D={class:"bg-[var(--wdot-bg)] border border-[var(--wdot-border)] rounded-[var(--wdot-radius-lg)] p-8"},E={class:"text-[14px] font-bold"},F={class:"text-[12.5px] text-[var(--wdot-fg-muted)] mt-1"},P={class:"text-[22px] font-black tracking-[-0.02em] m-0 mb-1.5"},O=U({__name:"Settings",setup(W){const d=p("general"),v=[{key:"general",label:"일반 설정"},{key:"brand",label:"브랜드"},{key:"billing",label:"결제·요금제"},{key:"team",label:"팀·권한"},{key:"integrations",label:"통합·API"},{key:"notifications",label:"알림"},{key:"security",label:"보안"},{key:"legal",label:"법적 정보"}],f=p({emailNotif:!0,weeklyReport:!0,newsletter:!1,marketing:!1,twofa:!0}),g=p("W·Dot"),x=p("https://wdot.kr"),k=p("Asia/Seoul"),V=[{label:"Asia/Seoul (KST, +09:00)",value:"Asia/Seoul"},{label:"Asia/Tokyo (JST, +09:00)",value:"Asia/Tokyo"},{label:"America/Los_Angeles (PST)",value:"America/Los_Angeles"}];return(j,e)=>(t(),C(N,null,{breadcrumb:i(()=>[...e[3]||(e[3]=[n("홈 · ",-1),o("b",null,"설정",-1)])]),title:i(()=>[...e[4]||(e[4]=[n("설정",-1)])]),actions:i(()=>[u(m(S),{variant:"primary"},{default:i(()=>[...e[5]||(e[5]=[n("저장",-1)])]),_:1})]),default:i(()=>{var w;return[o("div",L,[o("nav",R,[(t(),l(a,null,c(v,s=>o("button",{key:s.key,class:T(["block w-full text-left px-3.5 py-[11px] rounded-lg text-[13px] font-semibold cursor-pointer",d.value===s.key?"bg-[var(--wdot-color-primary-50)] text-[var(--wdot-color-primary-700)] font-extrabold":"text-[var(--wdot-fg)] hover:bg-[var(--wdot-bg-subtle)]"]),onClick:r=>d.value=s.key},_(s.label),11,z)),64))]),o("div",D,[d.value==="general"?(t(),l(a,{key:0},[e[6]||(e[6]=o("h2",{class:"text-[22px] font-black tracking-[-0.02em] m-0 mb-1.5"},"일반 설정",-1)),e[7]||(e[7]=o("p",{class:"text-[13.5px] text-[var(--wdot-fg-muted)] m-0 mb-7"},"사이트의 기본 정보를 관리합니다.",-1)),u(m(y),{modelValue:g.value,"onUpdate:modelValue":e[0]||(e[0]=s=>g.value=s),label:"사이트 이름"},null,8,["modelValue"]),u(m(y),{modelValue:x.value,"onUpdate:modelValue":e[1]||(e[1]=s=>x.value=s),label:"사이트 URL",type:"url"},null,8,["modelValue"]),u(m($),{modelValue:k.value,"onUpdate:modelValue":e[2]||(e[2]=s=>k.value=s),options:V,label:"시간대"},null,8,["modelValue"])],64)):b("",!0),d.value==="notifications"?(t(),l(a,{key:1},[e[8]||(e[8]=o("h2",{class:"text-[22px] font-black tracking-[-0.02em] m-0 mb-1.5"},"알림 설정",-1)),e[9]||(e[9]=o("p",{class:"text-[13.5px] text-[var(--wdot-fg-muted)] m-0 mb-7"},"언제 알림을 받을지 선택하세요.",-1)),(t(!0),l(a,null,c(f.value,(s,r)=>(t(),l("div",{key:r,class:"flex items-center justify-between py-[18px] border-t border-[var(--wdot-border)] first:border-t-0"},[o("div",null,[o("div",E,[r==="emailNotif"?(t(),l(a,{key:0},[n("이메일 알림")],64)):r==="weeklyReport"?(t(),l(a,{key:1},[n("주간 리포트")],64)):r==="newsletter"?(t(),l(a,{key:2},[n("뉴스레터")],64)):r==="marketing"?(t(),l(a,{key:3},[n("마케팅 정보")],64)):r==="twofa"?(t(),l(a,{key:4},[n("2단계 인증")],64)):b("",!0)]),o("div",F,[r==="emailNotif"?(t(),l(a,{key:0},[n("중요한 변경사항을 이메일로 받습니다")],64)):r==="weeklyReport"?(t(),l(a,{key:1},[n("매주 월요일 사이트 통계를 받습니다")],64)):r==="newsletter"?(t(),l(a,{key:2},[n("W·Dot의 새 기능과 팁을 받습니다")],64)):r==="marketing"?(t(),l(a,{key:3},[n("제휴 혜택 및 광고성 메시지를 받습니다")],64)):r==="twofa"?(t(),l(a,{key:4},[n("로그인 시 추가 인증을 요청합니다")],64)):b("",!0)])]),u(m(B),{modelValue:f.value[r],"onUpdate:modelValue":A=>f.value[r]=A},null,8,["modelValue","onUpdate:modelValue"])]))),128))],64)):b("",!0),d.value!=="general"&&d.value!=="notifications"?(t(),l(a,{key:2},[o("h2",P,_((w=v.find(s=>s.key===d.value))==null?void 0:w.label),1),e[10]||(e[10]=o("p",{class:"text-[13.5px] text-[var(--wdot-fg-muted)] m-0 mb-7"},"이 영역의 설정은 추후 추가됩니다.",-1)),e[11]||(e[11]=o("div",{class:"py-12 text-center text-[var(--wdot-fg-muted)] bg-[var(--wdot-bg-subtle)] rounded-[var(--wdot-radius-md)]"}," 준비 중 ",-1))],64)):b("",!0)])])]}),_:1}))}});export{O as default};
