PageSourceSearch

https://newneek.co/_next/static/chunks/pages/forgot-ee67f611a4df3066.js

js newneek.co collected 2026-09-24 10:13:07 UTC 11,466 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8625],{23278:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/forgot",function(){return r(86976)}])},16172:function(e,t,r){"use strict";r.d(t,{Hm:function(){return a},Qs:function(){return c},VN:function(){return o},s3:function(){return i}});var s=r(36492),l=r(48228),n=r(58010);let i=()=>(0,s.a)({queryKey:["/community/profiles/my"],queryFn:()=>(0,n.TH)()}),a=e=>(0,l.D)({mutationFn:e=>(0,n.LI)(e),...e}),o=e=>(0,l.D)({mutationFn:e=>(0,n.OM)(e),...e}),c=e=>(0,l.D)({mutationFn:e=>(0,n.tm)(e),...e})},59350:function(e,t,r){"use strict";var s=r(85893),l=r(67294),n=r(59500);let i=l.forwardRef((e,t)=>{let{className:r,suffixIcon:l,type:i,...a}=e;return(0,s.jsxs)("div",{className:"relative w-full",children:[(0,s.jsx)("input",{type:i,className:(0,n.cn)("flex h-12 w-full rounded-lg border border-gray-300 bg-white px-4 py-3 text-sm text-gray-900 outline-none placeholder:text-gray-400 focus:border-gray-500 focus:ring-0 disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-500",r,l&&"pr-12"),ref:t,...a}),l&&(0,s.jsx)("div",{className:"absolute right-0 top-0 px-4 py-[14px]",children:l})]})});i.displayName="Input",t.Z=i},91471:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var s=r(85893);function l(e){return(0,s.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,s.jsx)("circle",{cx:"10",cy:"10",r:"8",fill:"#E4E5E5"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5948 6.46392C13.3019 6.17103 12.827 6.17103 12.5341 6.46392L6.52372 12.4743C6.23082 12.7672 6.23082 13.2421 6.52372 13.535C6.81661 13.8279 7.29148 13.8279 7.58438 13.535L13.5948 7.52458C13.8877 7.23169 13.8877 6.75682 13.5948 6.46392Z",fill:"#77797B"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.40522 6.46392C6.69811 6.17103 7.17298 6.17103 7.46588 6.46392L13.4763 12.4743C13.7692 12.7672 13.7692 13.2421 13.4763 13.535C13.1834 13.8279 12.7085 13.8279 12.4156 13.535L6.40522 7.52458C6.11232 7.23169 6.11232 6.75682 6.40522 6.46392Z",fill:"#77797B"})]})}},47630:function(e,t,r){"use strict";var s=r(85893),l=r(67294),n=r(87536),i=r(59500);let a=n.RV,o=l.createContext({}),c=()=>{let e=l.useContext(o),t=l.useContext(d),{getFieldState:r,formState:s}=(0,n.Gc)(),i=r(e.name,s);if(!e)throw Error("useFormField should be used within <FormField>");let{id:a}=t;return{id:a,name:e.name,formItemId:"".concat(a,"-form-item"),formDescriptionId:"".concat(a,"-form-item-description"),formMessageId:"".concat(a,"-form-item-message"),...i}},d=l.createContext({}),u=l.forwardRef((e,t)=>{let{className:r,...n}=e,i=l.useId();return(0,s.jsx)(d.Provider,{value:{id:i},children:(0,s.jsx)("div",{ref:t,className:r,...n})})});u.displayName="FormItem";let m=l.forwardRef((e,t)=>{let{className:r,...l}=e,{formItemId:n}=c();return(0,s.jsx)("label",{ref:t,className:(0,i.cn)("mb-1 inline-block text-xs font-bold text-gray-500",r),htmlFor:n,...l})});m.displayName="FormLabel";let x=l.forwardRef((e,t)=>{let{...r}=e,{error:l,formItemId:n,formDescriptionId:i,formMessageId:a}=c();return(0,s.jsx)("div",{ref:t,id:n,"aria-describedby":l?"".concat(i," ").concat(a):"".concat(i),"aria-invalid":!!l,...r})});x.displayName="FormControl";let f=l.forwardRef((e,t)=>{let{className:r,...l}=e,{formDescriptionId:n}=c();return(0,s.jsx)("p",{ref:t,id:n,className:(0,i.cn)("text-muted-foreground text-sm",r),...l})});f.displayName="FormDescription";let h=l.forwardRef((e,t)=>{let{className:r,children:l,...n}=e,{error:a,formMessageId:o}=c(),d=a?String(null==a?void 0:a.message):l;return d?(0,s.jsx)("p",{ref:t,id:o,className:(0,i.cn)("mt-2 text-xs font-medium text-[#E4291E]",r),...n,children:d}):null});h.displayName="FormMessage",t.Z=Object.assign(a,{Item:u,Label:m,Control:x,Description:f,Message:h,Field:e=>{let{...t}=e;return(0,s.jsx)(o.Provider,{value:{name:t.name},children:(0,s.jsx)(n.Qr,{...t})})}})},77421:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});
1var s=r(85893),l=r(59500),n=r(2737),i=r(48772),a=r(11041);function o(e){let{className:t,underHeader:r,children:o}=e,{status:c}=(0,n.Z)();return(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(a.Z,{}),r,(0,s.jsx)("main",{className:(0,l.cn)("relative flex min-h-screen w-full flex-1 flex-col","mx-auto my-0",t),children:o}),(0,s.jsx)(i.Z,{})]})}},86976:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return R}});var s=r(85893),l=r(71525),n=r(56312),i=r(41664),a=r.n(i),o=r(11163),c=r(67294),d=r(87536),u=r(1604),m=r(16172),x=r(80113),f=r(81303),h=r(64698),p=r(59350),v=r(71623),j=r(91471),g=r(59500);function y(e){let{className:t,...r}=e;return(0,s.jsx)("svg",{className:(0,g.cn)("text-error",t),xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",...r,children:(0,s.jsx)("path",{d:"M14 0C21.732 0 28 6.26801 28 14C28 21.732 21.732 28 14 28C6.26801 28 0 21.732 0 14C0 6.26801 6.26801 0 14 0ZM13.2998 18.5996C12.8583 18.5997 12.5003 18.9579 12.5 19.3994V20.7998C12.5001 21.2415 12.8581 21.5995 13.2998 21.5996H14.7002C15.1418 21.5995 15.4999 21.2415 15.5 20.7998V19.3994C15.4997 18.958 15.1417 18.5998 14.7002 18.5996H13.2998ZM13.2998 6.59961C12.8583 6.59972 12.5003 6.95793 12.5 7.39941V15.3994C12.5 15.8412 12.8581 16.1991 13.2998 16.1992H14.7002C15.1419 16.1991 15.5 15.8412 15.5 15.3994V7.39941C15.4997 6.95793 15.1417 6.59971 14.7002 6.59961H13.2998Z",fill:"currentColor"})})}function w(e){let{className:t,...r}=e;return(0,s.jsx)("svg",{className:(0,g.cn)(t),xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...r,children:(0,s.jsxs)("g",{transform:"translate(1.3333 4.5)",stroke:"#FF6B00",strokeWidth:"1.5",strokeMiterlimit:"10",children:[(0,s.jsx)("path",{d:"M19.4167 0.75H1.91667C1.27233 0.75 0.75 1.30964 0.75 2V13.25C0.75 13.9404 1.27233 14.5 1.91667 14.5H19.4167C20.061 14.5 20.5833 13.9404 20.5833 13.25V2C20.5833 1.30964 20.061 0.75 19.4167 0.75Z"}),(0,s.jsx)("path",{d:"M0.75 0.75L9.92 8.85C10.3517 9.225 10.97 9.225 11.4017 8.85L20.5833 0.75"}),(0,s.jsx)("path",{d:"M7.77354 7.36249L0.750207 14.5"}),(0,s.jsx)("path",{d:"M13.5601 7.36249L20.5835 14.5"})]})})}var N=r(18560);let C={"verify-required":"인증된 이메일이 아니에요\n비밀번호 재설정을 위해\n인증이 필요해요","verify-mail-sent":"인증 메일을 보냈어요\n인증 후 비밀번호 찾기를\n다시 시도해주세요","reset-link-sent":"새 비밀번호를 만들 수 있도록\n링크를 보냈어요"};function b(e){let{state:t,isSending:r=!1,onClose:l,onSendVerifyEmail:n}=e,[i,a]=(0,c.useState)({step:"verify-required",email:""});null!==t&&t!==i&&a(t);let o="verify-required"===i.step;return(0,s.jsx)(N.Z,{isShow:null!==t,onClose:l,dialogClassName:"mx-4 max-h-none w-[335px] md:max-h-none md:w-[343px]",children:(0,s.jsxs)("div",{className:"flex flex-col gap-6 p-6",children:[(0,s.jsxs)("div",{className:"flex flex-col items-center text-center",children:[o?(0,s.jsx)(y,{className:"size-7"}):(0,s.jsx)("div",{className:"flex size-10 items-center justify-center rounded-lg bg-primary-basic/[0.08]",children:(0,s.jsx)(w,{className:"size-6"})}),(0,s.jsx)("h3",{className:"mt-3 whitespace-pre-line text-xl font-bold text-gray-700",children:C[i.step]}),(0,s.jsx)("p",{className:"mt-2 break-all text-base text-gray-600",children:i.email})]}),(0,s.jsx)("footer",{className:"flex gap-2",children:o?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v.Z,{className:"flex-1",variant:"secondary",size:"lg",onClick:l,children:"닫기"}),(0,s.jsx)(v.Z,{className:"flex-1",variant:"primary",size:"lg",disabled:r,onClick:n,children:"인증 메일 보내기"})]}):(0,s.jsx)(v.Z,{className:"flex-1",variant:"primary",size:"lg",onClick:l,children:"확인"})})]})})}var Z=r(47630);let k=u.z.object({email:u.z.string().email()}),F={400:"이메일 발송에 실패했어요",404:"없는 계정이에요",409:"이미 인증된 이메일이에요. 비밀번호 찾기를 다시 시도해주세요",429:"조금 전에 인증 메일을 보냈어요. 잠시 후 다시 시도해주세요"},L=["email-signin","find-account"];function _(e){return"string"==typeof e&&L.includes(e)?e:"unknown"}function E(){let e=(0,o.useRouter)(),{showSnackbar:t}=(0,h.Z)(),[r,i]=(0,c.useState)(null),u=(0,c.useRef)(!1),g=(0,d.cI)({resolver:(0,n.F)(k),defaultValues:{email:""}}),y=g.watch("email"),w=(0,m.Hm)({onSuccess:(t,r)=>{i({step:"reset-link-sent",email:r.email}),x.Z.track(f.U.viewPasswordResetLinkSent,{entry_path:_(e.query.from),after_verification_flow:u.current})},onError:(r,s)=>{var n,a;let{status:o,data:c}=null!==(n=r.response)&&void 0!==n?n:{};422===o?(i({step:"verify-required",email:s.email}),u.current=!0,x.Z.track(f.U.viewEmailVerificationRequired,{entry_path:_(e.query.from)})):400===o?t({type:"error",message:"이메일 발송에 실패했어요"}):404===o?t({type:"error",message:"없는 계정이에요"}):t({type:"error",message:null!==(a=null==c?void 0:c.detail)&&void 0!==a?a:l.N3})}}),N=(0,m.VN)({onSuccess:(t,r)=>{x.Z.track(f.U.clickSendVerificationEmail,{entry_path:_(e.query.from),result:"success"}),i(e=>null!==e&&e.email===r.email?{...e,step:"verify-mail-sent"}:e)},onError:(r,s)=>{var n,a;let{status:o}=null!==(n=r.response)&&void 0!==n?n:{};x.Z.track(f.U.clickSendVerificationEmail,{entry_path:_(e.query.from),result:void 0===o?"failed":429===o?"cooldown":409===o?"already-verified":"failed"});let c=409===o;
1t({type:c?"success":"error",message:null!==(a=F[o])&&void 0!==a?a:l.N3}),c&&i(e=>null!==e&&e.email===s.email?null:e)}});async function C(e){let{email:t}=e;w.mutate({email:t})}return(0,s.jsxs)("div",{className:"mx-auto w-full max-w-[335px] py-10 md:py-16",children:[(0,s.jsx)(Z.Z,{...g,children:(0,s.jsxs)("form",{className:"flex flex-col gap-10",onSubmit:g.handleSubmit(C),children:[(0,s.jsxs)("div",{className:"space-y-3 text-center",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:"비밀번호 찾기"}),(0,s.jsx)("p",{className:"text-sm text-gray-500",children:"인증된 이메일로만 비밀번호 찾기를 진행할 수 있어요"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"mb-4",children:(0,s.jsx)(Z.Z.Field,{control:g.control,name:"email",render:e=>{let{field:t}=e;return(0,s.jsxs)(Z.Z.Item,{children:[(0,s.jsx)(Z.Z.Label,{children:"이메일"}),(0,s.jsx)(Z.Z.Control,{children:(0,s.jsx)(p.Z,{...t,type:"text",autoCapitalize:"none",placeholder:"이메일을 입력해 주세요",suffixIcon:t.value&&(0,s.jsx)(j.Z,{className:"cursor-pointer",role:"button",onClick:()=>g.setValue("email","")})})}),(0,s.jsx)(Z.Z.Message,{})]})}})}),(0,s.jsx)("div",{className:"mb-5 flex flex-col",children:(0,s.jsx)(v.Z,{type:"submit",size:"lg",disabled:!y||w.isLoading||N.isLoading,children:w.isLoading?"로딩중..":"링크 전송"})}),(0,s.jsxs)("div",{className:"flex space-x-2.5 py-1 center",children:[(0,s.jsx)("span",{className:"text-sm text-gray-450",children:"이메일 주소가 떠오르지 않나요?"}),(0,s.jsx)(a(),{className:"text-sm text-primary-basic underline",href:"/sign-up",children:"새로 가입하기"})]})]})]})}),(0,s.jsx)(b,{state:r,isSending:N.isLoading,onClose:()=>i(null),onSendVerifyEmail:()=>{r&&N.mutate({email:r.email})}})]})}var M=r(77421);function R(){return(0,s.jsx)(E,{})}R.getLayout=e=>(0,s.jsx)(M.Z,{children:e})}},function(e){e.O(0,[6911,1509,6492,9433,1206,3726,7320,2868,103,3002,1404,4989,4301,3760,1796,8766,7308,7091,2888,9774,179],function(){return e(e.s=23278)}),_N_E=e.O()}]);

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.