1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./B7lTcWLE.js","./entry.DgOxuhhz.css"])))=>i.map(i=>d[i]); 2import{f as oe,g as ae,i as D,j as ne,h as L,H as re,k as $,J as le,o as i,A as ie,w as de,l as t,c as d,a as e,m as u,B as f,t as a,F as ce,G as pe,K as P,C as U,a1 as W,d as g,aI as ue,p as ge,r as y,D as k,b6 as ye,E as xe,n as I}from"./B7lTcWLE.js";import{_ as be}from"./BfTd0heG.js";import{_ as he}from"./9kH9da6O.js";import{_ as me}from"./D1Pm6yEE.js";import{g as fe}from"./DcyFxn_G.js";import{u as _e}from"./BdHRgecS.js";import{u as ve}from"./BaOwb4yO.js";import"./C0zBP92y.js";import"./BTac8wpf.js";import"./CWSkLNqi.js";import"./D85vAAFp.js";import"./i8AIuk5g.js";const we={key:0,class:"sticky top-0 z-50 flex items-center gap-1 bg-white border-b border-gray-100 px-2 py-3"},ke={class:"overflow-hidden rounded-2xl border border-gray-200 bg-white"},Ce={class:"border-b border-gray-100 px-6 py-4"},Be={class:"text-[14px] font-bold text-gray-900"},Ve={class:"mt-0.5 text-[12px] text-gray-400"},Ae={class:"px-6 py-4"},je={class:"grid grid-cols-2 gap-2 sm:grid-cols-3"},Ne=["onClick"],Se={key:0,class:"mt-3 text-[11px] leading-[1.5] text-gray-400"},Ee={key:0,class:"overflow-hidden rounded-2xl border border-gray-200 bg-white"},Ye={class:"border-b border-gray-100 px-6 py-4"},De={class:"text-[14px] font-bold text-gray-900"},Le={class:"mt-0.5 text-[12px] text-gray-400"};const $e={class:"flex cursor-pointer items-center justify-between border-b border-gray-50 px-6 py-4"},Pe={class:"text-[14px] font-semibold text-gray-800"},Ue={class:"mt-0.5 text-[12px] text-gray-400"},We={class:"relative ml-4 shrink-0"},Ie={class:"flex cursor-pointer items-center justify-between px-6 py-4"},Me={class:"relative ml-4 shrink-0"},Te={key:1,class:"overflow-hidden rounded-2xl border border-gray-200 bg-white"},Fe={class:"border-b border-gray-100 px-6 py-4"},Re={class:"text-[14px] font-bold text-gray-900"},qe={class:"text-[14px] font-semibold text-gray-800"},ze={class:"text-[14px] font-semibold text-wowple-500"},He={class:"overflow-hidden rounded-2xl border border-gray-200 bg-white"},Ke={class:"border-b border-gray-100 px-6 py-4"},Oe={class:"text-[14px] font-bold text-gray-900"},Ge={class:"divide-y divide-gray-50"},Je={class:"flex items-center justify-between px-6 py-3.5"},Qe={class:"text-[13px] text-gray-500"},Xe={class:"flex items-center gap-2"},Ze={class:"text-[13px] font-medium text-gray-800"},et={key:1,class:"rounded-full bg-gray-100 px-2 py-0.5 text-[11px] font-medium text-gray-400"},tt={class:"flex items-center justify-between px-6 py-3.5"},st={class:"text-[13px] text-gray-500"},ot={class:"text-[13px] font-medium text-gray-800"},at={class:"flex items-center justify-between px-6 py-3.5"},nt={class:"text-[13px] text-gray-500"},rt={class:"text-[13px] font-medium text-gray-800"},lt={class:"text-[13px] text-gray-500"},it={class:"text-[13px] text-gray-500"},dt={class:"text-[13px] text-gray-500"},ct={class:"text-[13px] text-gray-500"},pt={class:"pb-2 text-center text-[11px] text-gray-300"},Bt=oe({__name:"index",setup(ut){const{t:n,locale:C,setLocale:M}=ae();_e({title:n("header.drawer.settings"),noindex:!0});const{isLoggedIn:B}=D(),{isWowpleApp:b}=ne(),{openWebView:T,openSubWebView:V,closeWebView:F,markAsSubWebView:R,clearSubWebViewFlag:q}=ge(),_=y(!1),A=y("terms");function h(o){b.value?V(fe(o)):(A.value=o,_.value=!0)}const z=L(),m=k(()=>b.value&&z.query.source==="app");function H(o){M(o),ye(o)}const j=[{code:"ko",label:"íêµì´",beta:!1},{code:"en",label:"English",beta:!0},{code:"ja",label:"æ¥æ¬èª",beta:!0},{code:"zh-CN",label:"䏿(ç®ä½)",beta:!0},{code:"zh-TW",label:"䏿(ç¹é«)",beta:!0},{code:"vi",label:"Tiếng Viá»t",beta:!0}],K=k(()=>j.some(o=>o.beta)),{profile:x}=D(),v=y(!0),c=y(!1),p=y(!1),N=y(null);re(x,o=>{o&&(p.value=o.smsAgreeYn==="Y",c.value=o.emailAgreeYn==="Y",v.value=o.pushAgreeYn==="Y")},{immediate:!0});async function S(o,s){N.value=o;const l=s?"Y":"N";try{const{apiUpdateAgreements:w}=await xe(async()=>{const{apiUpdateAgreements:te}=await import("./B7lTcWLE.js").then(se=>se.bH);return{apiUpdateAgreements:te}},__vite__mapDeps([0,1]),import.meta.url);(await w(o==="sms"?{smsAgreeYn:l}:o==="email"?{emailAgreeYn:l}:{pushAgreeYn:l})).result_cd!=="0000"?(o==="sms"&&(p.value=!s),o==="email"&&(c.value=!s),o==="push"&&(v.value=!s)):x.value&&(o==="sms"&&(x.value.smsAgreeYn=l),o==="email"&&(x.value.emailAgreeYn=l),o==="push"&&(x.value.pushAgreeYn=l))}catch{o==="sms"&&(p.value=!s),o==="email"&&(c.value=!s),o==="push"&&(v.value=!s)}finally{N.value=null}}function O(){b.value?T("/mypage/change-password"):I("/mypage/change-password")}function G(){b.value?V("/mypage/withdraw?subwebview=1"):I("/mypage/withdraw")}const E=k(()=>L().query.subwebview==="1");$(()=>{E.value&&R?.()}),le(()=>{E.value&&q?.()});const{currentVersion:J,showUpdateButton:Q,showLatestBadge:X,checkForUpdate:Z,openStore:Y}=ve();return $(()=>{Z()}),(o,s)=>{const l=be,w=he;return i(),ie(ue(t(m)?"div":me),{class:f(t(m)?"mx-auto max-w-[640px]":"")},{default:de(()=>[t(m)?(i(),d("div",we,[e("button",{type:"button","aria-label":"ë¤ë¡ê°ê¸°",class:"flex h-10 w-10 items-center justify-center text-gray-700",onClick:s[0]||(s[0]=r=>t(F)())},[...s[13]||(s[13]=[e("svg",{width:"10",height:"18",viewBox:"0 0 10 18",fill:"none","aria-hidden":"true"},[e("path",{d:"M9 1L1 9l8 8",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])]),s[14]||(s[14]=e("h1",{class:"text-[17px] font-bold text-gray-900"},"ì¤ì ",-1))])):u("",!0),e("div",{class:f(t(m)?"px-4 py-4 space-y-4":"space-y-4")},[e("div",ke,[e("div",Ce,[e("h2",Be,a(t(n)("mypage.settings.language")),1),e("p",Ve,a(t(n)("mypage.settings.languageDesc")),1
2)]),e("div",Ae,[e("div",je,[(i(),d(ce,null,pe(j,r=>e("button",{key:r.code,type:"button",class:f(["flex items-center justify-center gap-2 rounded-xl border py-2.5 text-[13px] font-medium transition-all active:scale-95",t(C)===r.code?"border-gray-900 bg-gray-900 text-white shadow-sm":"border-gray-200 text-gray-600 hover:border-gray-300 hover:bg-gray-50"]),onClick:ee=>H(r.code)},[e("span",null,a(r.label),1),r.beta?(i(),d("span",{key:0,class:f(["shrink-0 rounded px-1 py-px text-[9px] font-bold uppercase leading-[1.5] tracking-wide",t(C)===r.code?"bg-white/25 text-white":"bg-gray-100 text-gray-400"])},a(t(n)("mypage.settings.languageBeta")),3)):u("",!0)],10,Ne)),64))]),t(K)?(i(),d("p",Se,a(t(n)("mypage.settings.languageBetaNote")),1)):u("",!0)])]),t(B)?(i(),d("div",Ee,[e("div",Ye,[e("h2",De,a(t(n)("mypage.settings.notifications")),1),e("p",Le,a(t(n)("mypage.settings.notificationsDesc")),1)]),u("",!0),e("label",$e,[e("div",null,[e("p",Pe,a(t(n)("mypage.settings.emailNotification")),1),e("p",Ue,a(t(n)("mypage.settings.emailDesc")),1)]),e("div",We,[P(e("input",{"onUpdate:modelValue":s[3]||(s[3]=r=>U(c)?c.value=r:null),type:"checkbox",class:"sr-only peer",onChange:s[4]||(s[4]=r=>S("email",t(c)))},null,544),[[W,t(c)]]),s[17]||(s[17]=e("div",{class:"h-6 w-11 rounded-full bg-gray-200 transition-colors peer-checked:bg-gray-900"},null,-1)),s[18]||(s[18]=e("div",{class:"absolute left-0.5 top-0.5 h-5 w-5 rounded-full bg-white shadow transition-transform peer-checked:translate-x-5"},null,-1))])]),e("label",Ie,[s[21]||(s[21]=e("div",null,[e("p",{class:"text-[14px] font-semibold text-gray-800"},"SMS ê´ê³ ìì "),e("p",{class:"mt-0.5 text-[12px] text-gray-400"},"í ì¸ íí, ì´ë²¤í¸ ë± ë§ì¼í
ì 보를 SMSë¡ ë°ìµëë¤")],-1)),e("div",Me,[P(e("input",{"onUpdate:modelValue":s[5]||(s[5]=r=>U(p)?p.value=r:null),type:"checkbox",class:"sr-only peer",onChange:s[6]||(s[6]=r=>S("sms",t(p)))},null,544),[[W,t(p)]]),s[19]||(s[19]=e("div",{class:"h-6 w-11 rounded-full bg-gray-200 transition-colors peer-checked:bg-gray-900"},null,-1)),s[20]||(s[20]=e("div",{class:"absolute left-0.5 top-0.5 h-5 w-5 rounded-full bg-white shadow transition-transform peer-checked:translate-x-5"},null,-1))])])])):u("",!0),t(B)?(i(),d("div",Te,[e("div",Fe,[e("h2",Re,a(t(n)("mypage.settings.account")),1)]),e("button",{type:"button",class:"flex w-full items-center justify-between border-b border-gray-50 px-6 py-4 hover:bg-gray-50 active:bg-gray-100 transition-colors",onClick:O},[e("span",qe,a(t(n)("mypage.settings.changePassword")),1),g(l,{width:"15",height:"15",class:"text-gray-300","aria-hidden":"true"})]),e("button",{type:"button",class:"flex w-full items-center justify-between px-6 py-4 hover:bg-red-50 active:bg-red-100 transition-colors",onClick:G},[e("span",ze,a(t(n)("mypage.settings.deleteAccount")),1),g(l,{width:"15",height:"15",class:"text-gray-300","aria-hidden":"true"})])])):u("",!0),e("div",He,[e("div",Ke,[e("h2",Oe,a(t(n)("legal.serviceInfo")),1)]),e("div",Ge,[e("div",Je,[e("span",Qe,a(t(n)("legal.versionLabel")),1),e("div",Xe,[e("span",Ze,a(t(J)),1),t(Q)?(i(),d("button",{key:0,type:"button",class:"rounded-full bg-wowple-500 px-2.5 py-1 text-[11px] font-semibold text-white transition-colors hover:bg-wowple-600",onClick:s[7]||(s[7]=(...r)=>t(Y)&&t(Y)(...r))},a(t(n)("legal.updateButton")),1)):t(X)?(i(),d("span",et,a(t(n)("legal.latestBadge")),1)):u("",!0)])]),e("div",tt,[e("span",st,a(t(n)("legal.companyLabel")),1),e("span",ot,a(t(n)("legal.companyName")),1)]),e("div",at,[e("span",nt,a(t(n)("legal.csLabel")),1),e("span",rt,a(t(n)("legal.csNumber")),1)]),e("button",{type:"button",class:"flex w-full items-center justify-between border-t border-gray-50 px-6 py-3.5 hover:bg-gray-50 transition-colors",onClick:s[8]||(s[8]=r=>h("terms"))},[e("span",lt,a(t(n)("legal.terms")),1),g(l,{width:"14",height:"14",class:"text-gray-300","aria-hidden":"true"})]),e("button",{type:"button",class:"flex w-full items-center justify-between px-6 py-3.5 hover:bg-gray-50 transition-colors",onClick:s[9]||(s[9]=r=>h("privacy"))},[e("span",it,a(t(n)("legal.privacy")),1),g(l,{width:"14",height:"14",class:"text-gray-300","aria-hidden":"true"})]),e("button",{type:"button",class:"flex w-full items-center justify-between px-6 py-3.5 hover:bg-gray-50 transition-colors",onClick:s[10]||(s[10]=r=>h("location"))},[e("span",dt,a(t(n)("legal.locationTerms")),1),g(l,{width:"14",height:"14",class:"text-gray-300","aria-hidden":"true"})]),e("button",{type:"button",class:"flex w-full items-center justify-between px-6 py-3.5 hover:bg-gray-50 transition-colors",onClick:s[11]||(s[11]=r=>h("policy"))},[e("span",ct,a(t(n)("legal.policy")),1),g(l,{width:"14",height:"14",class:"text-gray-300","aria-hidden":"true"})])])]),g(w,{open:t(_),type:t(A),onClose:s[12]||(s[12]=r=>_.value=!1)},null,8,["open","type"]),e("p",pt,a(t(n)("legal.copyright")),1)],2)]),_:1},8,["class"])}}});
2export{Bt 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.