1import{r as c,c as h,j as e}from"./query-vendor-BS8gUs9c.js";import{B as d,t as l,a0 as f,A as E,$ as g,a1 as N,V as j}from"./index-KwN3I3dg.js";import{d as y,c as R,D as S,a as b,b as v}from"./dialog-DKA-DF2T.js";import{I as C}from"./input-uIFnJag6.js";import{P as _}from"./regex-a__dKAfZ.js";import"./react-vendor-C4FtHTWF.js";import"./fontawesome-vendor-BdY8sAXA.js";import"./utils-vendor-C71UEUXU.js";import"./radix-vendor-CcO60r1q.js";const B=({onDismiss:o,onSaved:x,role:m})=>{const[t,p]=c.useState(""),[s,i]=c.useState(!1),n=h(),r=_.test(t),u=async()=>{if(!r){l.error("íìì´ ì¬ë°ë¥´ì§ ììì. ì: 010-1234-5678");return}i(!0);try{const a=new FormData;a.append("tel",t),await f(E.AUTH.PATCH_MEMBER_INFO,a),l.success("í´ëí° ë²í¸ë¥¼ ì ì¥íì´ì."),m==="USER"?n.invalidateQueries({queryKey:g}):(n.invalidateQueries({queryKey:N}),j.getState().checkReadiness()),x()}catch{l.error("ì ì¥ì ì¤í¨íì´ì. ì ì í ë¤ì ìëí´ ì£¼ì¸ì.")}finally{i(!1)}};return e.jsx(y,{open:!0,onOpenChange:a=>!a&&o(),children:e.jsxs(R,{className:"w-[min(90%,360px)] rounded-2xl p-6 bg-background",children:[e.jsxs(S,{className:"text-left",children:[e.jsx(b,{className:"text-xl font-bold text-text-primary",children:"í´ëí° ë²í¸ë¥¼ ë±ë¡í´ 주ì¸ì"}),e.jsx(v,{className:"text-sm pt-1 text-text-secondary leading-relaxed",children:"ìë´ ìì½Â·ì¤ì ì림 ìì ì ìí´ í´ëí° ë²í¸ê° íìí´ì. ì§ê¸ ë°ë¡ ë±ë¡íë©´ ë í¸íê² ì´ì©í ì ìì´ì."})]}),e.jsxs("div",{className:"space-y-2 py-4",children:[e.jsx(C,{placeholder:"010-0000-0000",value:t,onChange:a=>p(a.target.value),inputMode:"tel",className:"h-12 text-base",disabled:s,"aria-label":"í´ëí° ë²í¸ ì
ë ¥"}),t&&!r&&e.jsx("p",{className:"text-xs text-status-error",children:"íìì´ ì¬ë°ë¥´ì§ ììì. ì: 010-1234-5678"})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(d,{variant:"outline",className:"flex-1 h-12",onClick:o,disabled:s,children:"ëì¤ì í기"}),e.jsx(d,{onClick:u,disabled:s||!r,className:"flex-1 h-12 font-bold",children:s?"ì ì¥ ì¤...":"ë±ë¡í기"})]})]})})};export{B 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.