1import{p as h,u as e,E as o,g as f}from"./vendor.e04b3739.js";import{h as p,I as w,b as g,e as b,f as y}from"./password-strength.0f983a9e.js";import{L as N,F as v}from"./unauthenticated-router.5c52f28b.js";import{u as k,I as S,aK as L}from"./index.46404e5f.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};s["__faroBundleId_Mono:Partners Dashboard"]="17902984398790ed93b013d"}catch{}})();const P=()=>{const{isLoading:s,error:t,makeRequest:i}=k(L),[r,a]=h(!1),n=p({initialValues:{email:""},onSubmit:l,validationSchema:M});async function l(c){const[x,u]=await i(c);x&&!u&&a(!0)}const{handleSubmit:m,getFieldProps:d}=n;return e(f,{children:e("div",{className:"fixed inset-0 flex flex-col items-center justify-between pt-15 pb-10 px-4 sm:px-6 lg:px-8 sign-in-bg",children:e("div",{className:"relative flex justify-center items-center w-full max-w-[440px] bg-white rounded-pre-xl px-6 py-8 sm:py-10",children:e("div",{className:"max-w-[280px] sm:max-w-xs w-full flex flex-col justify-between items-center flex-grow",children:[e("figure",{className:"mb-12 sm:mb-15",children:e("img",{className:"mx-auto h-3 w-auto",src:N,alt:"Mono"})}),e(v,{message:t==null?void 0:t.message,className:"w-full"}),r&&e("div",{className:"absolute p-2.5 bg-green-750 h-full max-h-[68px] top-7.5 mx-7.5 shadow-custom rounded-midi",children:[e("div",{className:"max-w-[80%]",children:[e("h2",{className:"text-xs sm:text-xxxs md:text-xxs font-bold text-white font-headline",children:"Reset Link Sent!"}),e("p",{className:"text-xs sm:text-xxxs md:text-xxs font-medium text-white font-body",children:"If we found an account associated with that email, you\u2019ll receive password reset instructions."})]}),e("div",{onClick:()=>a(!1),className:"absolute right-3.75 top-6.25 cursor-pointer",children:e("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M9 1L1 9",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M1 1L9 9",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})})]}),e("h2",{className:"text-center text-2xl sm:text-3xl md:text-4lg font-medium text-gray-900 font-headline",children:"Reset your password"}),e("p",{className:"text-grey-text mt-2 text-1sm sm:text-base",children:"Provide the email on your account and we\u2019ll send detals to reset your password"}),e("form",{onSubmit:m,className:"w-full mt-10 sm:mt-12.5",children:[e(w,{autoComplete:"current-email",id:"email",type:"email",label:"Email",...d("email")}),e(g,{dimension:"lg",isBlock:!0,type:"submit",isLoading:s,className:"mt-5",children:"Reset password"})]}),e("div",{className:"text-grey-text mt-10 sm:mt-12.5 font-medium text-sm sm:text-1sm",children:["New to Mono?"," ",e(o,{href:"/signup",className:"text-primary-500 cursor-pointer font-medium hover:text-primary-100 inline-flex items-center",children:["Create account",e(S,{name:"arrow-right",strokeWidth:"1",className:"w-4 ml-1"})]})]}),e("div",{className:"text-grey-text mt-5 sm:mt-6.25 font-bold text-base sm:text-1sm",children:e(o,{href:"/login",className:"text-primary-500 cursor-pointer font-bold hover:text-primary-100 inline-flex items-center",children:"Return to Login"})})]})})})})},M=b().shape({email:y().email().required()});export{P 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.