1import{r as n,j as e,B as d,t as x,C as we,m as Se,D as T,g as B,h as C,i as v,x as y,y as ke,n as I,z as V,E as De,F as Le,L as Ae,G as Re,H as Ee,a as W,u as Oe,I as Te,R as le,J as Be}from"./index-CnD64O-O.js";import{S as ce}from"./switch-B87kDLN-.js";import{T as Ie}from"./textarea-BniXL2Mu.js";import{L as oe}from"./label-BrNY7LbK.js";import{A,b as R}from"./alert-BrR5LqFa.js";import{C as ze,a as Ke,b as Pe}from"./collapsible-B1DsemOu.js";import{S as Xe,a as Fe,b as Me,c as $e,d as _e}from"./select-DM4MWNIY.js";import{r as Ue,g as Ve}from"./coupon-lXYTEYUv.js";import{I as We}from"./input-C48x21mA.js";import{T as He,a as qe,b as de}from"./tabs-D68MU1up.js";import{B as Ge}from"./badge-CYge-pgM.js";import{P as Qe}from"./v2-COOV2328.js";import{C as E}from"./circle-alert-DADdTjIo.js";import{R as O}from"./rotate-cw-sHUCLSB4.js";import{C as Ye}from"./credit-card-BSPaBLtw.js";import{g as Je,r as Ze}from"./pass-XDGNDxBN.js";import{C as es}from"./chevron-down-CjwehzcN.js";import"./index-QtH-xY58.js";import"./check-CSNy1TZ9.js";import"./chevron-up-Cgk6_S1X.js";import"./index-BdQq_4o_.js";import"./index-DxCoXAjk.js";import"./index-CW7ZL7oC.js";import"./index-D6trnHb-.js";import"./index-DJUfHlBW.js";function ss({onRegistered:t}){const[a,r]=n.useState(""),[c,l]=n.useState(!1),h=p=>{const m=p.replace(/[^A-Za-z0-9]/g,"").toUpperCase().slice(0,12),g=[];for(let i=0;i<m.length;i+=4)g.push(m.slice(i,i+4));return g.join("-")},o=p=>{r(h(p.target.value))},u=async()=>{if(a.replace(/-/g,"").length!==12){x.error("ì¿ í° ì½ë를 ì¬ë°ë¥´ê² ì
ë ¥í´ì£¼ì¸ì.");return}l(!0);try{await Ue(a),x.success("ì¿ í°ì´ ë±ë¡ëììµëë¤."),r(""),t()}catch(p){const m=p?.response?.data?.detail||"ì¿ í° ë±ë¡ì ì¤í¨íìµëë¤.";x.error(m)}finally{l(!1)}};return e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-sm font-medium",children:"ì¿ í° ë±ë¡"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(We,{placeholder:"XXXX-XXXX-XXXX",value:a,onChange:o,maxLength:14,className:"font-mono"}),e.jsx(d,{onClick:u,disabled:c,children:c?"ë±ë¡ ì¤...":"ë±ë¡"})]})]})}const ts={registered:{label:"ì¬ì©ê°ë¥",variant:"default"},used:{label:"ì¬ì©ìë£",variant:"secondary"},expired:{label:"ë§ë£",variant:"destructive"}};function as({status:t}){const a=ts[t];return e.jsx(Ge,{variant:a.variant,children:a.label})}function ns({coupon:t}){const a=r=>new Date(r).toLocaleDateString("ko-KR");return e.jsx(we,{className:t.status!=="registered"?"opacity-60":"",children:e.jsx(Se,{className:"flex items-center justify-between p-4",children:e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"text-lg font-semibold",children:[t.discountAmount.toLocaleString(),"ì í ì¸"]}),e.jsx(as,{status:t.status})]}),e.jsx("p",{className:"font-mono text-sm text-muted-foreground",children:t.code}),e.jsx("p",{className:"text-xs text-muted-foreground",children:t.usedAt?`ì¬ì©ì¼: ${a(t.usedAt)}`:`ë§ë£: ${a(t.expiresAt)}`})]})})})}function rs({coupons:t,usableCount:a}){const[r,c]=n.useState("usable");if(t.length===0)return e.jsx("p",{className:"py-4 text-center text-sm text-muted-foreground",children:"ë³´ì í ì¿ í°ì´ ììµëë¤."});const l=t.filter(o=>r==="usable"?o.status==="registered":o.status!=="registered"),h=t.length-a;return e.jsxs("div",{className:"space-y-3",children:[e.jsx(He,{value:r,onValueChange:o=>c(o),children:e.jsxs(qe,{className:"w-full",children:[e.jsxs(de,{value:"usable",className:"flex-1",children:["ì¬ì© ê°ë¥ (",a,")"]}),e.jsxs(de,{value:"used",className:"flex-1",children:["ì¬ì© ìë£ (",h,")"]})]})}),l.length>0?e.jsx("div",{className:"space-y-2",children:l.map(o=>e.jsx(ns,{coupon:o},o.id))}):e.jsx("p",{className:"py-4 text-center text-sm text-muted-foreground",children:r==="usable"?"ì¬ì© ê°ë¥í ì¿ í°ì´ ììµëë¤.":"ì¬ì© ìë£ë ì¿ í°ì´ ììµëë¤."})]})}function is({open:t,loading:a,onOpenChange:r,onConfirm:c}){const[l,h]=n.useState(!1),o=u=>{u||h(!1),r(u)};return e.jsx(T,{modal:!0,open:t,onOpenChange:o,children:e.jsxs(B,{className:"max-w-md",children:[e.jsx(C,{children:e.jsx(v,{children:"구ë
ì ì·¨ìíìê² ìµëê¹?"})}),e.jsx("div",{className:"py-2 space-y-2",children:e.jsxs("ul",{className:"space-y-2 text-body-sm text-foreground",children:[e.jsxs("li",{className:"flex gap-2",children:[e.jsx("span",{className:"shrink-0",children:"â¢"}),e.jsx("span",{children:"구ë
ì ì·¨ì ì¦ì í´ì§ë©ëë¤."})]}),e.jsxs("li",{className:"flex gap-2",children:[e.jsx("span",{className:"shrink-0",children:"â¢"}),e.jsx("span",{children:"ì·¨ì íìë 구ë
ííì ì´ì©íì¤ ì ììµëë¤."})]}),e.jsxs("li",{className:"flex gap-2",children:[e.jsx("span",{className:"shrink-0",children:"â¢"}),e.jsx("span",{children:"íë¶ ê¸ì¡ì í ì¸ ì ì© ì ì ìê° ê¸°ì¤ì¼ë¡ ì¼í ê³ì°ëì´ ê³µì ëë©°, ìì¬ ê¸ì¡ì ííì¬ íë¶ì´ ì§íë©ëë¤."})]})]})}),e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer pt-1",children:[e.jsx("input",{type:"checkbox",checked:l,onChange:u=>
1h(u.target.checked),className:"w-4 h-4 accent-primary cursor-pointer"}),e.jsx("span",{className:"text-body-sm",children:"ì ë´ì©ì íì¸íìì¼ë©° ëìí©ëë¤."})]}),e.jsxs(y,{className:"pt-2",children:[e.jsx(d,{variant:"outline",onClick:()=>o(!1),disabled:a,children:"ì·¨ì"}),e.jsx(d,{variant:"destructive",onClick:c,disabled:a||!l,children:a?"ì²ë¦¬ ì¤...":"구ë
í´ì "})]})]})})}function ls({billingKey:t,onOpenChange:a}){const{mutateAsync:r,isPending:c}=ke(),[l,h]=n.useState(null),o=t!==null,u=m=>{m||(a(!1),h(null))},p=async()=>{if(t)try{const m=await r(t.id);m.warning?h(m):(x.success("ì¹´ëê° ìì ëììµëë¤."),u(!1))}catch(m){x.error(m?.response?.data?.error||"ì¹´ë ìì ì ì¤í¨íìµëë¤.")}};return e.jsx(T,{modal:!0,open:o,onOpenChange:u,children:e.jsx(B,{className:"max-w-md",children:l?e.jsxs(e.Fragment,{children:[e.jsxs(C,{children:[e.jsx(v,{children:"ì¹´ëê° ìì ëììµëë¤"}),e.jsx(I,{children:l.warning})]}),l.affectedSubscriptions.length>0&&e.jsx("ul",{className:"space-y-1.5 py-1",children:l.affectedSubscriptions.map(m=>e.jsxs("li",{className:"flex items-center justify-between rounded-md border px-3 py-2 text-sm",children:[e.jsx("span",{className:"font-medium",children:m.planName}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:["ë¤ì ê²°ì ì¼ ",new Date(m.expiresAt).toLocaleDateString("ko-KR")]})]},m.id))}),e.jsx(y,{className:"pt-2",children:e.jsx(d,{onClick:()=>u(!1),children:"íì¸"})})]}):e.jsxs(e.Fragment,{children:[e.jsxs(C,{children:[e.jsx(v,{children:"ì¹´ë를 ìì íìê² ìµëê¹?"}),t&&e.jsxs(I,{children:[t.cardCompany," ",t.cardNumber]})]}),t?.inUse&&e.jsx("div",{className:"rounded-lg border border-destructive/20 bg-destructive/5 p-3 text-sm text-destructive",children:"ì´ ì¹´ëë¡ ìëê²°ì ì¤ì¸ 구ë
ì´ ììµëë¤. ìì í ë¤ì ë±ë¡íì§ ìì¼ë©´ ë¤ì ê°±ì ì¼ì ê²°ì ê° ì¤í¨íê³ êµ¬ë
ì´ ì¬ë±ë¡ íì ìíë¡ ì íë©ëë¤."}),e.jsxs(y,{className:"pt-2",children:[e.jsx(d,{variant:"outline",onClick:()=>u(!1),disabled:c,children:"ì·¨ì"}),e.jsx(d,{variant:"destructive",onClick:p,disabled:c,children:c?"ìì ì¤...":"ìì "})]})]})})})}function cs(){const t=V(i=>i.user),a=De(),{data:r,isLoading:c,isError:l,refetch:h}=Le(),[o,u]=n.useState(!1),[p,m]=n.useState(null),g=async()=>{if(t){u(!0);try{const i=await Qe.requestIssueBillingKey({storeId:"store-70f1da4a-e245-4eff-8cfd-aba0f3b8eb59",channelKey:"channel-key-8d67c0d3-2e80-4f38-b681-7e68589da8cb",billingKeyMethod:"CARD",customer:{customerId:`user_${t.pk}`},issueName:"ì
ì¹´ë°ë¯¸ ì 기결ì ë¹ë§í¤"});if(!i){x.error("ì¹´ë ë±ë¡ì´ ì·¨ìëììµëë¤.");return}if(i.code!==void 0){x.error(i.message??"ì¹´ë ë±ë¡ì ì¤í¨íìµëë¤.");return}const N=await Re(i.billingKey);a.invalidateQueries({queryKey:Ee}),x.success(N.replaced?`${N.cardCompany} ${N.cardNumber} ì¹´ëë¡ ë³ê²½ëììµëë¤.`:`${N.cardCompany} ${N.cardNumber} ì¹´ëê° ë±ë¡ëììµëë¤.`)}catch(i){console.error("í¬í¸ì ë¹ë§í¤ ë°ê¸ ìë¬:",i),x.error("ì¹´ë ë±ë¡ ìì² ì¤ ì¤ë¥ê° ë°ìíìµëë¤.")}finally{u(!1)}}};return e.jsxs("section",{className:"border-b pb-10 mb-10",children:[e.jsx("h2",{className:"text-base font-bold mb-5",children:"ê²°ì ì¹´ë"}),e.jsxs("div",{className:"space-y-3",children:[l&&e.jsxs(A,{variant:"destructive",children:[e.jsx(E,{className:"h-4 w-4"}),e.jsxs(R,{className:"flex items-center justify-between",children:[e.jsx("span",{children:"ì¹´ë ì 보를 ë¶ë¬ì¤ë ì¤ ì¤ë¥ê° ë°ìíìµëë¤."}),e.jsxs(d,{variant:"ghost",size:"sm",onClick:()=>h(),children:[e.jsx(O,{className:"h-3.5 w-3.5 mr-1"}),"ë¤ì ìë"]})]})]}),!l&&c&&e.jsx("div",{className:"flex justify-center py-4",children:e.jsx(Ae,{className:"h-5 w-5 animate-spin text-muted-foreground"})}),!l&&!c&&r?.length===0&&e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"ë±ë¡ë ì¹´ëê° ììµëë¤."}),e.jsx(d,{variant:"outline",size:"sm",onClick:g,disabled:o,children:o?"ë±ë¡ ì¤...":"ì¹´ë ë±ë¡í기"})]}),!l&&!c&&r?.map(i=>e.jsx("div",{className:"rounded-lg border p-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-muted",children:e.jsx(Ye,{className:"h-5 w-5 text-muted-foreground"})}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("p",{className:"text-sm font-medium",children:i.cardCompany}),i.inUse&&e.jsx("span",{className:"rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",children:"ìëê²°ì ì¤"})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:i.cardNumber})]})]}),e.jsx("div",{className:"flex gap-1",children:e.jsx(d,{variant:"outline",size:"sm",onClick:g,disabled:o,children:"ë³ê²½"})})]})},i.id))]}),e.jsx(ls,{billingKey:p,onOpenChange:i=>{i||m(null)}})]})}async function os(){const{data:t}=await W.get("/auth/consent/");return t}async function ds(t){const{data:a}=await W.patch("/auth/consent/",t);return a}
1const ms={dissatisfied:"ìë¹ì¤ ë¶ë§ì¡±",expensive:"ê°ê²©ì´ ë¹ì",rarely_used:"ê±°ì ì¬ì©íì§ ìì",switch_service:"ë¤ë¥¸ ìë¹ì¤ ì´ì©",other:"기í"};async function xs(t,a=""){const{data:r}=await W.delete("/auth/withdraw/",{data:{reason:t,detail:a}});return r}function us(t){const a=new Date(t).getTime()-Date.now();if(a<=0)return"ë§ë£ë¨";const r=Math.floor(a/(1e3*60*60)),c=Math.floor(a%(1e3*60*60)/(1e3*60));return r>0?`${r}ìê° ${c}ë¶ ë¨ì`:`${c}ë¶ ë¨ì`}function Xs(){const t=Oe(),a=V(s=>s.user),[r,c]=n.useState(null),[l,h]=n.useState(null),[o,u]=n.useState(!1),[p,m]=n.useState(""),[g,i]=n.useState(!1),[N,H]=n.useState(!1),[me,xe]=n.useState([]),[ue,he]=n.useState(0),[w,q]=n.useState(!1),[pe,G]=n.useState(!1),[fe,Q]=n.useState(!1),[Y,z]=n.useState(!1),[J,K]=n.useState(!1),[S,Z]=n.useState(!1),[je,k]=n.useState(!1),[P,D]=n.useState(null),[ge,X]=n.useState(!1),[b,F]=n.useState(""),[ee,M]=n.useState(""),[$,se]=n.useState(!1),Ne=V(s=>s.logout),_=n.useCallback(()=>{Je().then(s=>{u(s.verified),m(s.phone)}).catch(()=>{x.error("본ì¸ì¸ì¦ ìí를 ë¶ë¬ì¤ì§ 못íìµëë¤.")})},[]);n.useEffect(()=>{te(),_(),U(),ae()},[_]);const te=n.useCallback(()=>{q(!1),Te().then(s=>{const f=new Date,L=s.filter(j=>j.status==="active"&&new Date(j.expiresAt)>f);c(L.find(j=>j.plan.planType==="recurring")??null),h(L.find(j=>j.plan.planType==="one_time")??null)}).catch(()=>{q(!0)})},[]),U=n.useCallback(()=>{G(!1),Ve().then(s=>{xe(s.coupons),he(s.usableCount)}).catch(()=>{G(!0)})},[]),ae=n.useCallback(()=>{Q(!1),os().then(s=>{z(s.marketingConsent),K(s.adConsent)}).catch(()=>{Q(!0)})},[]),be=async()=>{try{await Ze(),_()}catch(s){x.error(s instanceof Error?s.message:"본ì¸ì¸ì¦ ìì² ì¤ ì¤ë¥ê° ë°ìíìµëë¤.")}},Ce=async()=>{H(!0);try{const s=await Be();c(null),i(!1),s.refundAmount>0?x.success(`구ë
ì´ ì¦ì í´ì§ëììµëë¤. ${s.refundAmount.toLocaleString()}ìì´ íë¶ë©ëë¤.`):x.success("íë¶ ê¸ì¡ ìì´ ì¦ì ì¤ì§ë©ëë¤.")}catch(s){s?.response?.status===502?x.error("ì¼ìì ì¸ ì¤ë¥ê° ë°ìíìµëë¤. ì ì í ë¤ì ìëí´ì£¼ì¸ì."):x.error("구ë
í´ì ì ì¤í¨íìµëë¤."),i(!1)}finally{H(!1)}},ne=(s,f)=>{if(!f){D(s),k(!0);return}re(s,f)},re=async(s,f)=>{const L=Y,j=J;Z(!0);try{const ie=await ds({[s]:f});z(ie.marketingConsent),K(ie.adConsent)}catch{z(L),K(j),x.error("ëì ì¤ì ë³ê²½ì ì¤í¨íìµëë¤.")}finally{Z(!1)}},ve=()=>{P&&re(P,!1),k(!1),D(null)},ye=async()=>{if(b){se(!0);try{await xs(b,ee),x.success("íìíí´ê° ìë£ëììµëë¤."),Ne(),t(le.HOME)}catch{x.error("íìíí´ì ì¤í¨íìµëë¤. ì ì í ë¤ì ìëí´ì£¼ì¸ì.")}finally{se(!1)}}};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"max-w-lg mx-auto px-4 py-12",children:[e.jsx("h1",{className:"text-xl font-semibold mb-10",children:"ë§ì´íì´ì§"}),e.jsxs("section",{className:"border-b pb-10 mb-10",children:[e.jsx("h2",{className:"text-base font-bold mb-5",children:"íìì ë³´"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"ì´ë¦"}),e.jsx("span",{className:"text-sm",children:a?.name||"â"})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"ì´ë©ì¼"}),e.jsx("span",{className:"text-sm",children:a?.email??"â"})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"ë¡ê·¸ì¸ ë°©ì"}),e.jsxs("span",{className:"text-sm",children:[a?.provider==="naver"&&"ë¤ì´ë²",a?.provider==="kakao"&&"ì¹´ì¹´ì¤",a?.provider==="google"&&"Google",!a?.provider&&"â"]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"ì íë²í¸"}),o?e.jsx("span",{className:"text-sm",children:p}):e.jsx(d,{variant:"outline",size:"sm",onClick:be,children:"ì íë²í¸ ì¸ì¦í기"})]})]})]}),e.jsxs("section",{className:"border-b pb-10 mb-10",children:[e.jsx("h2",{className:"text-base font-bold mb-5",children:"ì´ì© ì¤ì¸ ìí"}),e.jsxs("div",{className:"space-y-4",children:[w&&e.jsxs(A,{variant:"destructive",children:[e.jsx(E,{className:"h-4 w-4"}),e.jsxs(R,{className:"flex items-center justify-between",children:[e.jsx("span",{children:"구ë
ì 보를 ë¶ë¬ì¤ë ì¤ ì¤ë¥ê° ë°ìíìµëë¤."}),e.jsxs(d,{variant:"ghost",size:"sm",onClick:te,children:[e.jsx(O,{className:"h-3.5 w-3.5 mr-1"}),"ë¤ì ìë"]})]})]}),!w&&r?e.jsxs("div",{className:"rounded-lg border p-4 space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("p",{className:"text-sm font-medium",children:r.plan.name}),e.jsx("span",{className:"rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",children:"구ë
ì¤"})]}),e.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[r.plan.price.toLocaleStr
1ing(),"ì / ì · 매ì ìëê²°ì "]})]}),e.jsx(d,{variant:"outline",size:"sm",onClick:()=>i(!0),children:"구ë
í´ì "})]}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:["ë¤ì ê²°ì ì¼: ",new Date(r.expiresAt).toLocaleDateString("ko-KR")]})]}):null,!w&&l?e.jsxs("div",{className:"rounded-lg border p-4 space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("p",{className:"text-sm font-medium",children:l.plan.name}),e.jsx("span",{className:"rounded-full bg-blue-100 px-2 py-0.5 text-xs font-medium text-blue-600",children:"ì´ì© ì¤"})]}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:["ë§ë£: ",new Date(l.expiresAt).toLocaleString("ko-KR")," ","(",us(l.expiresAt),")"]})]}):null,!w&&!r&&!l&&e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"ì´ì© ì¤ì¸ ìíì´ ììµëë¤."}),e.jsx(d,{variant:"outline",size:"sm",onClick:()=>t(le.MEMBERSHIP),children:"ìí ìì보기"})]})]})]}),e.jsx(cs,{}),e.jsxs("section",{className:"border-b pb-10 mb-10",children:[e.jsx("h2",{className:"text-base font-bold mb-5",children:"ì¿ í°"}),e.jsxs("div",{className:"space-y-4",children:[e.jsx(ss,{onRegistered:U}),pe?e.jsxs(A,{variant:"destructive",children:[e.jsx(E,{className:"h-4 w-4"}),e.jsxs(R,{className:"flex items-center justify-between",children:[e.jsx("span",{children:"ì¿ í° ì 보를 ë¶ë¬ì¤ë ì¤ ì¤ë¥ê° ë°ìíìµëë¤."}),e.jsxs(d,{variant:"ghost",size:"sm",onClick:U,children:[e.jsx(O,{className:"h-3.5 w-3.5 mr-1"}),"ë¤ì ìë"]})]})]}):e.jsx(rs,{coupons:me,usableCount:ue})]})]}),e.jsx("section",{className:"border-b pb-10 mb-10",children:e.jsxs(ze,{children:[e.jsxs(Ke,{className:"flex w-full items-center justify-between cursor-pointer group",children:[e.jsx("h2",{className:"text-base font-bold",children:"ëì ê´ë¦¬"}),e.jsx(es,{className:"h-4 w-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]}),e.jsx(Pe,{className:"mt-5",children:fe?e.jsxs(A,{variant:"destructive",children:[e.jsx(E,{className:"h-4 w-4"}),e.jsxs(R,{className:"flex items-center justify-between",children:[e.jsx("span",{children:"ëì ì 보를 ë¶ë¬ì¤ë ì¤ ì¤ë¥ê° ë°ìíìµëë¤."}),e.jsxs(d,{variant:"ghost",size:"sm",onClick:ae,children:[e.jsx(O,{className:"h-3.5 w-3.5 mr-1"}),"ë¤ì ìë"]})]})]}):e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",children:"ë§ì¼í
íì© ëì"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"ë§ì¶¤í ì½í
ì¸ ì¶ì² ë° ìë¹ì¤ ê°ì ì íì©ë©ëë¤."})]}),e.jsx(ce,{checked:Y,onCheckedChange:s=>ne("marketingConsent",s),disabled:S})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",children:"ê´ê³ ì± ì ë³´ ìì ëì"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"ì´ë²¤í¸, íë¡ëª¨ì
ë±ì ì림ì ì´ë©ì¼/SMSë¡ ë°ìµëë¤."})]}),e.jsx(ce,{checked:J,onCheckedChange:s=>ne("adConsent",s),disabled:S})]})]})})]})}),e.jsx("div",{className:"flex justify-end",children:e.jsx(d,{variant:"link",size:"sm",className:"text-xs text-destructive opacity-60",onClick:()=>X(!0),children:"íìíí´"})})]}),e.jsx(T,{modal:!0,open:je,onOpenChange:s=>{s||(k(!1),D(null))},children:e.jsxs(B,{children:[e.jsxs(C,{children:[e.jsx(v,{children:"ëì í´ì "}),e.jsx(I,{children:P==="marketingConsent"?"ë§ì¼í
íì© ëì를 í´ì íìê² ìµëê¹? ë§ì¶¤í ì½í
ì¸ ì¶ì²ì ë°ì ì ìê² ë©ëë¤.":"ê´ê³ ì± ì ë³´ ìì ëì를 í´ì íìê² ìµëê¹? ì´ë²¤í¸ ë° íë¡ëª¨ì
ì림ì ë°ì ì ìê² ë©ëë¤."})]}),e.jsxs(y,{children:[e.jsx(d,{variant:"outline",onClick:()=>{k(!1),D(null)},children:"ì·¨ì"}),e.jsx(d,{variant:"destructive",onClick:ve,disabled:S,children:S?"ì²ë¦¬ ì¤...":"í´ì "})]})]})}),e.jsx(is,{open:g,loading:N,onOpenChange:i,onConfirm:Ce}),e.jsx(T,{modal:!0,open:ge,onOpenChange:s=>{s||(X(!1),F(""),M(""))},children:e.jsxs(B,{children:[e.jsxs(C,{children:[e.jsx(v,{children:"íìíí´"}),e.jsx(I,{children:"íí´ ì 모ë ë°ì´í°ê° ìì ëë©° 복구í ì ììµëë¤. íì± êµ¬ë
ì´ ìë ê²½ì° ìëì¼ë¡ í´ì§ë©ëë¤."})]}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(oe,{htmlFor:"withdraw-reason",children:"íí´ ì¬ì "}),e.jsxs(Xe,{value:b,onValueChange:s=>F(s),children:[e.jsx(Fe,{id:"withdraw-reason",children:e.jsx(Me,{placeholder:"íí´ ì¬ì 를 ì íí´ì£¼ì¸ì"})}),e.jsx($e,{children:Object.entries(ms).map(([s,f])=>e.jsx(_e,{value:s,children:f},s))})]})]}),b==="other"&&e.jsxs("div",{className:"space-y-2",children:[e.jsx(oe,{htmlFor:"withdraw-detail",children:"ìì¸ ì¬ì (ì í)"}),e.jsx(Ie,{id:"withdraw-detail",placeholder:"íí´ ì¬ì 를 ì
ë ¥í´ì£¼ì¸ì",value:ee,onChange:s=>M(s.target.value),rows:3})]})]}),e.jsxs(y,{children:[e.jsx(d,{variant:"outline",onClick:()=>{X(!1),F(""),M("")},disabled:$,children:"ì·¨ì"}),e.jsx(d,{variant:"destructive",onClick:ye,disabled:!b||$,children:$?"ì²ë¦¬ ì¤...":"íí´í기"})]})]})})]})}export{Xs 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.