1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9742],{27627:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/forgot-password",function(){return r(76508)}])},88601:function(e,t,r){"use strict";var s=r(85893),i=r(93967),a=r.n(i);r(67294),t.Z=e=>{let{buttonType:t="primary",buttonProps:r,children:i}=e,{className:c,...l}=r||{};return(0,s.jsx)("button",{...l,className:a()("transition-all duration-300 flex items-center gap-x-2 justify-center px-[18px]",{primary:"border border-transparent bg-successButton hover:bg-successPrimary text-white rounded-xl py-[10px] font-semibold text-balance shadow-xs disabled:bg-disabled disabled:cursor-not-allowed disabled:border-componentBg disabled:text-grayWarm400",secondary:"border border-borderPrimary bg-ButtonSecondary text-textSecondary rounded-xl py-[10px] font-semibold text-balance disabled:cursor-not-allowed disabled:text-grayWarm400",danger:"border border-errorPrimary bg-errorPrimary hover:bg-errorHover text-white rounded-xl py-[10px] font-semibold text-balance disabled:bg-disabled disabled:cursor-not-allowed disabled:border-componentBg disabled:text-grayWarm400",success:"border border-successButton bg-successButton text-white rounded-xl py-[10px] font-semibold text-balance disabled:bg-disabled disabled:cursor-not-allowed disabled:border-componentBg disabled:text-grayWarm400",transparent:"border border-transparent bg-transparent text-textSecondary rounded-xl py-[10px] font-semibold text-balance disabled:cursor-not-allowed disabled:text-grayWarm400",white:"border border-borderPrimary bg-[#FFFFFF] text-textSecondary rounded-xl py-[10px] font-semibold text-balance disabled:cursor-not-allowed disabled:text-grayWarm400"}[t],{[c]:c}),children:i})}},11828:function(e,t,r){"use strict";var s=r(85893);r(67294),t.Z=e=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 11",fill:"none",...e,children:(0,s.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.596.39 4.436 7.3l-1.9-2.03c-.35-.33-.9-.35-1.3-.07-.39.29-.5.8-.26 1.21l2.25 3.66c.22.34.6.55 1.03.55.41 0 .8-.21 1.02-.55.36-.47 7.23-8.66 7.23-8.66.9-.92-.19-1.73-.91-1.03v.01Z",clipRule:"evenodd"})})},48002:function(e,t,r){"use strict";var s=r(85893);r(67294),t.Z=e=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 974.88 675",...e,children:[(0,s.jsxs)("defs",{children:[(0,s.jsx)("clipPath",{id:"a".concat(e.id),children:(0,s.jsx)("path",{d:"M99.148 235.387h106.43V418H99.148Zm0 0"})}),(0,s.jsx)("clipPath",{id:"b".concat(e.id),children:(0,s.jsx)("path",{d:"M205.25 339.809v69.336c0 7.558-9.145 11.359-14.492 6.011l-84.067-84.062a24.724 24.724 0 0 1-7.234-17.457V244.3c0-7.559 9.148-11.36 14.492-6.012l84.067 84.063a24.642 24.642 0 0 1 7.234 17.457"})}),(0,s.jsx)("clipPath",{id:"c".concat(e.id),children:(0,s.jsx)("path",{d:"M11 329.105h88.941V418H11Zm0 0"})}),(0,s.jsx)("clipPath",{id:"d".concat(e.id),children:(0,s.jsx)("path",{d:"M99.457 338.094V405c0 6.98-5.668 12.648-12.648 12.648H19.902c-7.558 0-11.359-9.148-6.015-14.496l71.074-71.074c5.348-5.344 14.496-1.566 14.496 6.016"})}),(0,s.jsx)("clipPath",{id:"e".concat(e.id),children:(0,s.jsx)("path",{d:"M255.621 235.273h171.871V417.73h-171.87Zm0 0"})}),(0,s.jsx)("clipPath",{id:"f".concat(e.id),children:(0,s.jsx)("path",{d:"M311.879 347.254h57.933l-29.097-79.234Zm-56.11 70.387 68.07-181.852h35.579l67.812 181.852h-31.953l-17.156-44.942h-74.555l-16.875 44.942Zm0 0"})}),(0,s.jsx)("clipPath",{id:"g".concat(e.id),children:(0,s.jsx)("path",{d:"M431 284.145h121.93v135.214H431Zm0 0"})}),(0,s.jsx)("clipPath",{id:"h".concat(e.id),children:(0,s.jsx)("path",{d:"M431.137 358.68v-74.04h28.043v70.926c0 26.153 10.308 39.227 30.922 39.227 10.734 0 19.132-3.84 25.207-11.55 6.078-7.708 9.082-18.403 9.082-32.079v-66.523h28.066v133h-27.809v-16.875c-10.046 12.3-23.726 18.445-41.054 18.445-15.59 0-28.235-4.77-37.922-14.281-9.684-9.512-14.555-24.95-14.555-46.25"})}),(0,s.jsx)("clipPath",{id:"i".concat(e.id),children:(0,s.jsx)("path",{d:"M571 247.492h62.57V417.73H571Zm0 0"})}),(0,s.jsx)("clipPath",{id:"j".concat(e.id),children:(0,s.jsx)("path",{d:"M571.203 381.547V247.492h28.32v37.149h32.47v24.671h-32.47v69.356c0 5.2 1.032 8.867 3.114 11.
1039 2.086 2.168 5.8 3.242 11.168 3.242h19.754v24.715h-25.98c-12.65 0-21.86-2.941-27.68-8.824-5.82-5.887-8.696-14.988-8.696-27.274"})}),(0,s.jsx)("clipPath",{id:"k".concat(e.id),children:(0,s.jsx)("path",{d:"M646 235.273h124V417.73H646Zm0 0"})}),(0,s.jsx)("clipPath",{id:"l".concat(e.id),children:(0,s.jsx)("path",{d:"M646.27 235.79h28.066v68.07c10.047-13.852 23.984-20.786 41.828-20.786 16.106 0 29.094 4.852 38.973 14.559 9.879 9.703 14.816 25.035 14.816 45.972v74.06h-28.066v-71.72c0-12.648-2.727-22.246-8.18-28.84-5.453-6.59-13.379-9.875-23.77-9.875-11.082 0-19.796 3.864-26.113 11.551-6.312 7.688-9.488 18.23-9.488 31.567v67.316H646.27Zm0 0"})}),(0,s.jsx)("clipPath",{id:"m".concat(e.id),children:(0,s.jsx)("path",{d:"M787 232.016h34.727V417.73H787Zm0 0"})}),(0,s.jsx)("clipPath",{id:"n".concat(e.id),children:(0,s.jsx)("path",{d:"M790.2 284.64h28.066v133.024h-28.067Zm2.085-23.511c-3.285-3.2-4.941-7.238-4.941-12.09 0-4.851 1.656-8.867 4.941-12.066 3.285-3.2 7.363-4.813 12.195-4.813s8.91 1.613 12.22 4.813c3.304 3.199 4.937 7.234 4.937 12.066 0 4.832-1.653 8.867-4.938 12.09-3.285 3.219-7.367 4.808-12.219 4.808-4.851 0-8.91-1.59-12.218-4.808"})}),(0,s.jsx)("clipPath",{id:"o".concat(e.id),children:(0,s.jsx)("path",{d:"M835.574 283H964v136.36H835.574Zm0 0"})}),(0,s.jsx)("clipPath",{id:"p".concat(e.id),children:(0,s.jsx)("path",{d:"M901.645 419.21c-20.098 0-36.118-6.1-48.055-18.315-11.942-12.22-17.93-28.711-17.93-49.497 0-20.613 6.098-37.148 18.313-49.62 12.218-12.477 28.367-18.704 48.445-18.704 16.789 0 30.488 4.336 41.055 12.988 10.562 8.657 17.242 20.7 20.011 36.118h-29.351c-1.914-7.965-5.625-14.149-11.168-18.575-5.54-4.421-12.559-6.613-21.043-6.613-11.25 0-20.313 4.125-27.14 12.348-6.829 8.223-10.262 18.918-10.262 32.082 0 12.988 3.414 23.555 10.261 31.691 6.852 8.137 15.89 12.219 27.14 12.219 8.485 0 15.505-2.254 21.044-6.766 5.543-4.507 9.168-10.648 10.91-18.445h29.61c-2.598 15.246-9.364 27.23-20.27 35.988-10.91 8.762-24.758 13.121-41.57 13.121"})})]}),(0,s.jsx)("g",{clipPath:"url(#a".concat(e.id,")"),children:(0,s.jsx)("g",{clipPath:"url(#b".concat(e.id,")"),children:(0,s.jsx)("path",{d:"M.66 225.063h215.242V428.39H.66Zm0 0"})})}),(0,s.jsx)("g",{clipPath:"url(#c".concat(e.id,")"),children:(0,s.jsx)("g",{clipPath:"url(#d".concat(e.id,")"),children:(0,s.jsx)("path",{d:"M.66 225.063h215.242V428.39H.66Zm0 0"})})}),(0,s.jsx)("g",{clipPath:"url(#e".concat(e.id,")"),children:(0,s.jsx)("g",{clipPath:"url(#f".concat(e.id,")"),children:(0,s.jsx)("path",{d:"M245.035 221.426h729.012v208.523H245.035Zm0 0"})})}),(0,s.jsx)("g",{clipPath:"url(#g".concat(e.id,")"),children:(0,s.jsx)("g",{clipPath:"url(#h".concat(e.id,")"),children:(0,s.jsx)("path",{d:"M245.035 221.426h729.012v208.523H245.035Zm0 0"})})}),(0,s.jsx)("g",{clipPath:"url(#i".concat(e.id,")"),children:(0,s.jsx)("g",{clipPath:"url(#j".concat(e.id,")"),children:(0,s.jsx)("path",{d:"M245.035 221.426h729.012v208.523H245.035Zm0 0"})})}),(0,s.jsx)("g",{clipPath:"url(#k".concat(e.id,")"),children:(0,s.jsx)("g",{clipPath:"url(#l".concat(e.id,")"),children:(0,s.jsx)("path",{d:"M245.035 221.426h729.012v208.523H245.035Zm0 0"})})}),(0,s.jsx)("g",{clipPath:"url(#m".concat(e.id,")"),children:(0,s.jsx)("g",{clipPath:"url(#n".concat(e.id,")"),children:(0,s.jsx)("path",{d:"M245.035 221.426h729.012v208.523H245.035Zm0 0"})})}),(0,s.jsx)("g",{clipPath:"url(#o".concat(e.id,")"),children:(0,s.jsx)("g",{clipPath:"url(#p".concat(e.id,")"),children:(0,s.jsx)("path",{d:"M245.035 221.426h729.012v208.523H245.035Zm0 0"})})})]})},43278:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var s=r(85893),i=r(25675),a=r.n(i);r(67294);var c={src:"/_next/static/media/LoginImage.63998b9a.jpg",height:2812,width:2250,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAIAAYDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAb/xAAVAQEBAAAAAAAAAAAAAAAAAAACA//aAAwDAQACEAMQAAABoAY//8QAFRABAQAAAAAAAAAAAAAAAAAAACL/2gAIAQEAAQUCp//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABgQAAIDAAAAAAAAAAAAAAAAAAABAiKB/9oACAEBAAY/Am5Ww//EABkQAQACAwAAAAAAAAAAAAAAAAERIQAxYf/aAAgBAQABPyEJIL7rHM//2gAMAwEAAgADAAAAEA//xAAVEQEBAAAAAAAAAAAAAAAAAAABAP/aAAgBAwEBPxBb/8QAFREBAQAAAAAAAAAAAAAAAAAAABH/2gAIAQIBAT8Qr//EABoQAQACAwEAAAAAAAAAAAAAAAERQQAhMVH/2gAIAQEAAT8QEzCBFA7Oq9vP/9k=",blurWidth:6,blurHeight:8},l=e=>{let{children:t}=e;return(0,s.jsxs)("div",{className:"grid md:grid-cols-2 min-h-screen",children:[(0,s.jsx)("div",{className:"flex items-center justify-center p-4 bg-bgPrimary",children:t}),(0,s.jsx)("div",{className:"hidden md:block relative",children:(0,s.jsx)(a(),{width:500,height:500,src:c,priority:!0,loading:"eager",alt:"",className:"absolute inset-0 w-full h-full object-cover"})})]})}},33460:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var s=r(85893);let i=e=>{let{children:t,className:r}=e;return(0,s.jsx)("p",{className:"text-textSm text-textTertiary ".concat(r),children:t})}},11576:function(e,t,r){"use strict";r.d(t,{c:function(){return i}});var s=r(85893);let i=e=>{let{children:t,className:r}=e;return(0,s.jsx)("h1",{className:"text-displayMd font-medium text-textPrimary leading-displayMd ".concat(r),children:t})}},52731:function(e,t,r){"use strict";var s=r(85893),i=r(93967),a=r.n(i);r(67294),t.Z=e=>{let{children:t,containerProps:r}=e;return(0,s.jsx)("div",{...r,className:a()("bg-bgPrimary p-6 lg:p-8 lg:rou
1nded-xl",null==r?void 0:r.className),children:t})}},76508:function(e,t,r){"use strict";r.r(t);var s=r(85893),i=r(88601),a=r(11828),c=r(56004),l=r(48002),d=r(43278),n=r(33460),A=r(11576),o=r(52731),h=r(20661),x=r(56312),u=r(2962),m=r(41664),p=r.n(m),g=r(11163),j=r(67294),b=r(87536),v=r(1604);let f=v.z.object({email:v.z.string().email()});t.default=()=>{var e;let[t,r]=(0,j.useState)(0),[m,v]=(0,j.useState)(""),w=(0,g.useRouter)(),{mutateAsync:y,isPending:P,isSuccess:B}=(0,h.NG)(),{register:E,handleSubmit:N,formState:{errors:Z,isValid:Q}}=(0,b.cI)({resolver:(0,x.F)(f),mode:"onChange"}),M=async e=>{try{await y({email:e.email}),v(e.email),r(30)}catch(e){console.error(e)}};return(0,j.useEffect)(()=>{if(t<=0)return;let e=setInterval(()=>{r(t=>t<=1?(clearInterval(e),0):t-1)},1e3);return()=>clearInterval(e)},[t]),(0,s.jsxs)(d.Z,{children:[(0,s.jsx)(u.PB,{title:"Forgot Password | Authic",defaultTitle:"Forgot Password | Authic",openGraph:{title:"Forgot Password | Authic",description:"If you forgot your password, you can reset it here."}}),(0,s.jsx)("div",{className:"grid place-items-center h-[calc(100%-110px)] relative",children:(0,s.jsxs)(o.Z,{containerProps:{className:"mx-auto w-[390px]"},children:[(0,s.jsx)(p(),{href:"/signin",children:(0,s.jsx)(l.Z,{width:150,className:"mx-auto"})}),B||m?(0,s.jsxs)("div",{className:"flex flex-col items-center",children:[(0,s.jsx)("div",{className:"h-10 w-10 rounded-xl flex items-center justify-center text-white font-extrabold text-xl bg-primary3 mb-3",children:(0,s.jsx)(a.Z,{})}),(0,s.jsx)(A.c,{className:"text-center",children:"Reset link sent"}),(0,s.jsx)(n.Z,{className:"text-center",children:"You will receive an email shortly with instructions to reset your password."})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(A.c,{className:"text-center",children:"Forgot password?"}),(0,s.jsx)(n.Z,{className:"text-center mt-2",children:"Enter the email you used to sign up and weâll send you instructions to reset your password."}),(0,s.jsxs)("form",{className:"flex flex-col gap-y-5 mt-8",onSubmit:N(M),children:[(0,s.jsx)(c.Z,{labelText:"Email",errorText:null===(e=Z.email)||void 0===e?void 0:e.message,inputProps:{type:"text",disabled:P,...E("email")}}),(0,s.jsxs)("div",{className:"mt-1 w-full flex flex-col gap-y-4",children:[(0,s.jsx)(i.Z,{buttonProps:{disabled:P||!Q,className:"w-full",type:"submit"},children:"Send"}),(0,s.jsx)(i.Z,{buttonType:"secondary",buttonProps:{className:"w-full",type:"button",onClick:()=>{w.push("/signin")}},children:"Back"})]})]})]}),B||m?0===t?(0,s.jsxs)("div",{className:"mt-10 text-center text-sm text-gray-600",children:["Didn't get an email?"," ",(0,s.jsx)("button",{onClick:()=>{if(r(30),m)return y({email:m})},className:"font-semibold underline hover:text-primary-dark",children:"Click to resend"})]}):(0,s.jsx)("div",{className:"mt-10 text-center text-sm text-green font-medium",children:(0,s.jsxs)("p",{children:["New link sent! Resend available in ",t," seconds"]})}):(0,s.jsxs)("div",{className:"mt-10 text-center text-sm text-gray-600",children:["Don't have an account?"," ",(0,s.jsx)(p(),{href:"/signup",className:"font-semibold underline hover:text-primary-dark",children:"Sign up here"})]})]})})]})}}},function(e){e.O(0,[7536,3760,2888,9774,179],function(){return e(e.s=27627)}),_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.