1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[864],{1986:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var s=r(37876);r(14232);var a=r(20879),l=r(17416),n=r(96960);let d=e=>{let{children:t,title:r,ogImageText:d,description:i,keywords:o,supportedChainIds:c}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.A,{title:r,description:i,keywords:o,ogImageText:d}),(0,s.jsx)(n.A,{supportedChainIds:c}),(0,s.jsx)("main",{className:"w-full max-w-[66rem] mx-auto",children:t}),(0,s.jsx)(l.A,{})]})}},15263:(e,t,r)=>{"use strict";r.d(t,{X5:()=>a,hC:()=>n,oW:()=>d,zK:()=>l});var s=r(6381);let a=s.z.object({email:s.z.string().email().toLowerCase(),password:s.z.string()}),l=s.z.object({name:s.z.string(),email:s.z.string().email().toLowerCase(),password:s.z.string()}),n=s.z.object({email:s.z.string().email().toLowerCase()}),d=s.z.object({token:s.z.string(),password:s.z.string()})},21820:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/reset-password",function(){return r(52743)}])},31188:(e,t,r)=>{"use strict";r.d(t,{BT:()=>o,Wu:()=>c,ZB:()=>i,Zp:()=>n,aR:()=>d,wL:()=>u});var s=r(37876),a=r(14232),l=r(15565);let n=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",r),...a})});n.displayName="Card";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",r),...a})});d.displayName="CardHeader";let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("text-2xl font-semibold leading-none tracking-tight",r),...a})});i.displayName="CardTitle";let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",r),...a})});o.displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("p-6 pt-0",r),...a})});c.displayName="CardContent";let u=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,l.cn)("flex items-center p-6 pt-0",r),...a})});u.displayName="CardFooter"},52743:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSG:()=>C,default:()=>R});var s=r(37876),a=r(14232),l=r(48230),n=r.n(l),d=r(89099),i=r(62002),o=r(88992),c=r(71682),u=r(20143),m=r(1986),x=r(83539),f=r(66618),h=r(15491),p=r(15263),w=r(56041),g=r(91541),v=r(42298),j=r(31188),N=r(96412),b=r(75316),y=r(87496),k=r(61980),C=!0;function R(){var e,t;let{t:r}=(0,i.Bd)("auth");(0,x.A)({redirectIfFound:!0,redirectTo:"/"});let l=(0,d.useRouter)(),[C,R]=(0,a.useState)(""),[_,F]=(0,a.useState)(""),[A,z]=(0,a.useState)(h.i.isDev()?"dev":""),T=(0,o.mN)({resolver:(0,c.u)(p.oW),defaultValues:{token:null!=(t=null==l||null==(e=l.query)?void 0:e.token)?t:""}}),I=T.watch("password"),{strength:S,suggestions:B}=(0,k.A)(null!=I?I:""),E=async e=>{let{token:t,password:r}=e;if(F(""),A)try{await u.Ay.post("/internal/auth/reset",{token:t,password:r,htoken:A}),R("Password changed.")}catch(e){F((0,g.H)(e))}finally{window&&window.hcaptcha&&window.hcaptcha.reset()}else F("fill hCapcha!")};return(0,s.jsx)(m.A,{title:r("seo.title"),description:r("seo.description"),keywords:r("seo.keywords"),children:(0,s.jsx)("main",{className:"min-h-screen flex items-center justify-center",children:(0,s.jsxs)("div",{className:"w-full max-w-md px-4",children:[(0,s.jsx)("h1",{className:"text-3xl font-bold text-center mb-6",children:"Coinsamba"}),(0,s.jsx)(j.Zp,{children:(0,s.jsxs)(j.Wu,{className:"pt-6",children:[(0,s.jsx)(N.lV,{...T,children:(0,s.jsxs)("form",{onSubmit:T.handleSubmit(E),className:"space-y-4",children:[(0,s.jsx)(w.A,{hookForm:T,type:"text",name:"token",autoComplete:"off",placeholder:r("token")}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("label",{htmlFor:"password",className:"text-sm font-medium",children:r("password")}),(0,s.jsx)(y.A,{strength:S,showLabel:!0}),(0,s.jsx)(w.A,{hookForm:T,type:"password",name:"password",id:"password",autoComplete:"new-password"}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:r("choose-strong-password")}),B.length>0&&(0,s.jsx)("div",{className:"text-xs text-muted-foreground",children:(0,s.jsx)("ul",{className:"list-disc list-inside space-y-1",children:B.map((e,t)=>(0,s.jsx)("li",{children:e},t))})})]}),(0,s.jsx)(f.A,{setHToken:z}),(0,s.jsx)(v.$,{type:"submit",className:"w-full",children:r("reset-password")}
1),C&&(0,s.jsx)(b.Fc,{variant:"default",children:(0,s.jsx)(b.TN,{children:C})}),_&&(0,s.jsx)(b.Fc,{variant:"destructive",children:(0,s.jsx)(b.TN,{children:_})})]})}),(0,s.jsxs)("p",{className:"mt-4 text-center text-sm",children:[r("dont-has-account")," ",(0,s.jsx)(n(),{href:"/auth/register",className:"font-medium text-primary hover:underline",children:r("register-here")})]})]})})]})})})}},56041:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(37876),a=r(96412),l=r(67514);let n=function(e){let{name:t,hookForm:r,label:n,description:d,className:i,...o}=e;return(0,s.jsx)(a.zB,{control:r.control,name:t,render:e=>{let{field:t}=e;return(0,s.jsxs)(a.eI,{className:i,children:[n&&(0,s.jsx)(a.lR,{children:n}),(0,s.jsx)(a.MJ,{children:(0,s.jsx)(l.p,{...t,...o})}),d&&(0,s.jsx)(a.Rr,{children:d}),(0,s.jsx)(a.C5,{})]})}})}},61980:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(14232),a=r(2609),l=r.n(a);let n=e=>{let[t,r]=(0,s.useState)({strength:0,score:0,feedback:[],suggestions:[],crackTime:""});return(0,s.useEffect)(()=>{var t,s;if(!e)return void r({strength:0,score:0,feedback:[],suggestions:[],crackTime:""});let a=l()(e);r({strength:a.score,score:a.score,feedback:a.feedback.warning?[a.feedback.warning]:[],suggestions:null!=(t=a.feedback.suggestions)?t:[],crackTime:String(null!=(s=a.crack_times_display.offline_slow_hashing_1e4_per_second)?s:"")})},[e]),t}},66618:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var s=r(37876),a=r(14232),l=r(6214),n=r(15491),d=r(76369),i=r(62002),o=r(55235);let c=e=>{let{setHToken:t,size:r}=e,{t:c}=(0,i.Bd)("auth"),{darkMode:u}=(0,a.useContext)(o.B);return(0,s.jsx)(l.A,{id:"customHCaptcha",size:r||"normal",theme:u?"dark":"light",sitekey:n.i.hcaptchaKey,onVerify:e=>t(e),onExpire:()=>{window&&window.hcaptcha&&window.hcaptcha.reset(),(0,d.oR)({title:c("captcha-expired")})}})}},75316:(e,t,r)=>{"use strict";r.d(t,{Fc:()=>i,TN:()=>c,XL:()=>o});var s=r(37876),a=r(14232),l=r(47137),n=r(15565);let d=(0,l.F)("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),i=a.forwardRef((e,t)=>{let{className:r,variant:a,...l}=e;return(0,s.jsx)("div",{ref:t,role:"alert",className:(0,n.cn)(d({variant:a}),r),...l})});i.displayName="Alert";let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("h5",{ref:t,className:(0,n.cn)("mb-1 font-medium leading-none tracking-tight",r),...a})});o.displayName="AlertTitle";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("text-sm [&_p]:leading-relaxed",r),...a})});c.displayName="AlertDescription"},87496:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var s=r(37876);r(14232);let a=e=>{let{strength:t,className:r="",showLabel:a=!1,labelPosition:l="bottom"}=e,{width:n,color:d,label:i,textColor:o}=(e=>{switch(e){case 0:default:return{width:"w-0",color:"",label:"Muito fraca",textColor:"text-gray-400"};case 1:return{width:"w-1/4",color:"bg-red-500",label:"Fraca",textColor:"text-red-500"};case 2:return{width:"w-1/2",color:"bg-yellow-500",label:"Regular",textColor:"text-yellow-500"};case 3:return{width:"w-3/4",color:"bg-blue-500",label:"Boa",textColor:"text-blue-500"};case 4:return{width:"w-full",color:"bg-green-500",label:"Muito forte",textColor:"text-green-500"}}})(t);return(0,s.jsxs)("div",{className:"space-y-1 ".concat(r),children:[a&&"top"===l&&(0,s.jsx)("div",{className:"text-xs font-medium ".concat(o),children:i}),(0,s.jsx)("div",{className:"h-1 bg-gray-200 dark:bg-gray-700 rounded-full overflow-hidden",children:(0,s.jsx)("div",{className:"h-full transition-all duration-300 ease-in-out ".concat(n," ").concat(d)})}),a&&"bottom"===l&&(0,s.jsx)("div",{className:"text-xs font-medium ".concat(o),children:i})]})}},93732:(e,t,r)=>{"use strict";r.d(t,{J:()=>o});var s=r(37876),a=r(14232),l=r(59773),n=r(47137),d=r(15565);let i=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),o=a.forwardRef((e,t)=>
1{let{className:r,...a}=e;return(0,s.jsx)(l.b,{ref:t,className:(0,d.cn)(i(),r),...a})});o.displayName=l.b.displayName},96412:(e,t,r)=>{"use strict";r.d(t,{C5:()=>g,MJ:()=>p,Rr:()=>w,eI:()=>f,lR:()=>h,lV:()=>o,zB:()=>u});var s=r(37876),a=r(14232),l=r(82987),n=r(88992),d=r(15565),i=r(93732);let o=n.Op,c=a.createContext({}),u=e=>{let{...t}=e;return(0,s.jsx)(c.Provider,{value:{name:t.name},children:(0,s.jsx)(n.xI,{...t})})},m=()=>{let e=a.useContext(c),t=a.useContext(x),{getFieldState:r,formState:s}=(0,n.xW)(),l=r(e.name,s);if(!e)throw Error("useFormField should be used within <FormField>");let{id:d}=t;return{id:d,name:e.name,formItemId:"".concat(d,"-form-item"),formDescriptionId:"".concat(d,"-form-item-description"),formMessageId:"".concat(d,"-form-item-message"),...l}},x=a.createContext({}),f=a.forwardRef((e,t)=>{let{className:r,...l}=e,n=a.useId();return(0,s.jsx)(x.Provider,{value:{id:n},children:(0,s.jsx)("div",{ref:t,className:(0,d.cn)("space-y-2",r),...l})})});f.displayName="FormItem";let h=a.forwardRef((e,t)=>{let{className:r,...a}=e,{error:l,formItemId:n}=m();return(0,s.jsx)(i.J,{ref:t,className:(0,d.cn)(l&&"text-destructive",r),htmlFor:n,...a})});h.displayName="FormLabel";let p=a.forwardRef((e,t)=>{let{...r}=e,{error:a,formItemId:n,formDescriptionId:d,formMessageId:i}=m();return(0,s.jsx)(l.DX,{ref:t,id:n,"aria-describedby":a?"".concat(d," ").concat(i):"".concat(d),"aria-invalid":!!a,...r})});p.displayName="FormControl";let w=a.forwardRef((e,t)=>{let{className:r,...a}=e,{formDescriptionId:l}=m();return(0,s.jsx)("p",{ref:t,id:l,className:(0,d.cn)("text-sm text-muted-foreground",r),...a})});w.displayName="FormDescription";let g=a.forwardRef((e,t)=>{var r;let{className:a,children:l,...n}=e,{error:i,formMessageId:o}=m(),c=i?String(null!=(r=null==i?void 0:i.message)?r:""):l;return c?(0,s.jsx)("p",{ref:t,id:o,className:(0,d.cn)("text-sm font-medium text-destructive",a),...n,children:c}):null});g.displayName="FormMessage"}},e=>{e.O(0,[8585,4938,8523,2909,9015,1768,6381,7060,6214,2609,8260,5733,636,6593,8792],()=>e(e.s=21820)),_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.