(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9742],{6218:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/forgot-password",function(){return s(27083)}])},12774:function(e,t,s){"use strict";var n=s(14224);s(55822);var i=s(50959),r=i&&"object"==typeof i&&"default"in i?i:{default:i},o=void 0!==n&&n.env&&!0,a=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,s=t.name,n=void 0===s?"stylesheet":s,i=t.optimizeForSpeed,r=void 0===i?o:i;c(a(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",c("boolean"==typeof r,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=r,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l=document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t=e.prototype;return t.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(o||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,s){return"number"==typeof s?e._serverSheet.cssRules[s]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),s},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},t.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},t.insertRule=function(e,t){if(c(a(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var s=this.getSheet();"number"!=typeof t&&(t=s.cssRules.length);try{s.insertRule(e,t)}catch(t){return o||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},t.replaceRule=function(e,t){if(this._optimizeForSpeed){var s=this.getSheet();if(t.trim()||(t=this._deletedRulePlaceholder),!s.cssRules[e])return e;s.deleteRule(e);try{s.insertRule(t,e)}catch(n){o||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),s.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];c(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},t.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},t.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},t.cssRules=function(){var e=this;return this._tags.reduce(function(t,s){return s?t=t.concat(Array.prototype.map.call(e.getSheetForTag(s).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},t.makeStyleTag=function(e,t,s){t&&c(a(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return s?i.insertBefore(n,s):i.appendChild(n),n},function(e,t){for(var s=0;s<t.length;s++){var n=t[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,[{key:"length",get:function(){return this._rulesCount}}]),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var u=function(e){for(var t=5381,s=e.length;s;)t=33*t^e.charCodeAt(--s);return t>>>0},d={};function h(e,t){if(!t)return"jsx-"+e;var s=String(t),n=e+s;return d[n]||(d[n]="jsx-"+u(e+"-"+s)),d[n]}function m(e,t){var s=e+t;return d[s]||(d[s]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[s]}var p=function(){function e(e){var t=void 0===e?{}:e,s=t.styleSheet,n=void 0===s?null:s,i=t.optimizeForSpeed,r=void 0!==i&&i;this._sheet=n||new l({name:"styled-jsx",optimizeForSpeed:r}),this._sheet.inject(),n&&"boolean"==typeof r&&(this._sheet.setOptimizeForSpeed(r),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var s=this.getIdAndRules(e),n=s.styleId,i=s.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var r=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=r,this._instancesCounts[n]=1},t.remove=function(e){var t=this,s=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(s in this._instancesCounts,"styleId: `"+s+"` not found"),this._instancesCounts[s]-=1,this._instancesCounts[s]<1){var n=this._fromServer&&this._fromServer[s];n?(n.parentNode.removeChild(n),delete this._fromServer[s]):(this._indices[s].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[s]),delete this._instancesCounts[s]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],s=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return s[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,s;return t=this.cssRules(),void 0===(s=e)&&(s={}),t.map(function(e){var t=e[0],n=e[1];return r.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:s.nonce?s.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,s=e.dynamic,n=e.id;if(s){var i=h(n,s);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return m(i,e)}):[m(i,t)]}}return{styleId:h(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),f=i.createContext(null);f.displayName="StyleSheetContext";var _=r.default.useInsertionEffect||r.default.useLayoutEffect,x=new p;function v(e){var t=x||i.useContext(f);return t&&_(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}v.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},t.style=v},33526:function(e,t,s){"use strict";e.exports=s(12774).style},27083:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return p}});var n=s(11527),i=s(33526),r=s.n(i),o=s(51597),a=s(1012),l=s(8818),c=s(97458),u=s.n(c),d=s(84632),h=s.n(d),m=s(50959);function p(){let[e,t]=(0,m.useState)(""),s=(0,l.c)({initialValues:{email:"",password:"",otp:""}}),i=async()=>{let{email:e}=s.values,{data:n,error:i}=await a.O.auth.resetPasswordForEmail(e,{redirectTo:"".concat("https://webhook.alvas.ai","/reset")});n?t("Success! Check your email for a reset link."):t("Failed to reset password.")};return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"jsx-3d4023158b57822e h-screen bg-center bg-no-repeat bg-contain bg-stone-950",children:[(0,n.jsxs)(u(),{children:[(0,n.jsx)("title",{className:"jsx-3d4023158b57822e",children:"Forgot Password - Alvas.ai"}),(0,n.jsx)("meta",{name:"robots",content:"noindex",className:"jsx-3d4023158b57822e"}),(0,n.jsx)("meta",{name:"description",content:"Hyper-personalized content, crafted uniquely for each receiver, fueled by AI for optimal engagement and conversion.",className:"jsx-3d4023158b57822e"}),(0,n.jsx)("meta",{property:"og:title",content:"Login - Alvas.ai",className:"jsx-3d4023158b57822e"}),(0,n.jsx)("meta",{property:"og:description",content:"Hyper-personalized content, crafted uniquely for each receiver, fueled by AI for optimal engagement and conversion.",className:"jsx-3d4023158b57822e"}),(0,n.jsx)("meta",{property:"og:url",content:"https://alvas.ai/login",className:"jsx-3d4023158b57822e"}),(0,n.jsx)("meta",{property:"og:image",content:"https://alvas.ai/og-image.png",className:"jsx-3d4023158b57822e"}),(0,n.jsx)("meta",{property:"og:type",content:"website",className:"jsx-3d4023158b57822e"})]}),(0,n.jsx)(r(),{id:"3d4023158b57822e",children:"html{background-color:#0f0f0f}"}),(0,n.jsxs)("div",{className:"jsx-3d4023158b57822e flex flex-col justify-center flex-1 min-h-full px-6 pb-12 lg:px-8",children:[(0,n.jsxs)("div",{className:"jsx-3d4023158b57822e sm:mx-auto sm:w-full sm:max-w-xl",children:[(0,n.jsx)(h(),{width:240,height:240,className:"w-auto h-12 mx-auto",src:"/logo/white.png",alt:"Alvas.ai"}),(0,n.jsx)("h2",{className:"jsx-3d4023158b57822e mt-10 text-2xl font-bold leading-9 tracking-tight text-center text-white",children:"Explore the future of email marketing"})]}),(0,n.jsx)("div",{className:"jsx-3d4023158b57822e mt-10 sm:mx-auto sm:w-full sm:max-w-sm",children:(0,n.jsxs)("div",{className:"jsx-3d4023158b57822e space-y-6",children:[(0,n.jsxs)("div",{className:"jsx-3d4023158b57822e",children:[(0,n.jsx)("label",{htmlFor:"email",className:"jsx-3d4023158b57822e block text-sm font-medium leading-6 text-white",children:"Email address"}),(0,n.jsx)("div",{className:"jsx-3d4023158b57822e mt-2",children:(0,n.jsx)(o.I,{required:!0,id:"email",name:"email",className:"w-full rounded-md border border-zinc-600 focus:border-zinc-400 bg-white/5 py-1.5 text-white shadow-sm pointer-events-auto sm:text-sm sm:leading-6",value:s.values.email,onChange:e=>s.setFieldValue("email",e.currentTarget.value),type:"email",placeholder:"Email"})})]}),(0,n.jsxs)("button",{onClick:()=>i(),className:"jsx-3d4023158b57822e relative inline-block w-full p-px text-xs font-semibold leading-6 text-white no-underline rounded-full shadow-2xl  bg-slate-800 group shadow-zinc-900\n                ",children:[(0,n.jsx)("span",{className:"jsx-3d4023158b57822e absolute inset-0 overflow-hidden rounded-full",children:(0,n.jsx)("span",{className:"jsx-3d4023158b57822e absolute inset-0 rounded-full bg-[image:radial-gradient(75%_100%_at_50%_0%,rgba(56,189,248,0.6)_0%,rgba(56,189,248,0)_75%)] opacity-0 transition-opacity duration-500 group-hover:opacity-100"})}),(0,n.jsx)("div",{className:"jsx-3d4023158b57822e relative z-10 flex items-center justify-center w-full px-4 py-1.5 space-x-2 text-center rounded-full bg-zinc-950 ring-1 ring-white/10 ",children:(0,n.jsx)("span",{className:"jsx-3d4023158b57822e",children:"Reset password"})}),(0,n.jsx)("span",{className:"jsx-3d4023158b57822e absolute -bottom-0 left-[1.125rem] h-px w-[calc(100%-2.25rem)] bg-gradient-to-r from-violet-400/0 via-violet-400/90 to-violet-400/0 transition-opacity duration-500 group-hover:opacity-40"})]}),(0,n.jsx)("p",{className:"jsx-3d4023158b57822e text-white text-sm text-center mt-3",children:e})]})})," ",(0,n.jsx)("div",{className:"jsx-3d4023158b57822e",children:(0,n.jsxs)("p",{className:"jsx-3d4023158b57822e mt-6 text-sm text-center text-zinc-400",children:["Remember your password?"," ",(0,n.jsx)("a",{href:"/login",className:"jsx-3d4023158b57822e font-normal leading-6 text-white pointer-events-auto hover:underline ",children:"Sign in"})]})})]})]})})}},55822:function(){}},function(e){e.O(0,[8818,2888,9774,179],function(){return e(e.s=6218)}),_N_E=e.O()}]);