PageSourceSearch

https://hellowisp.com/_next/static/chunks/pages/forgot-password-3ec3400dd568882c.js

js hellowisp.com collected 2026-09-24 09:03:22 UTC 11,994 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="063197ec-0f51-4722-886f-f2b970cfa015",e._sentryDebugIdIdentifier="sentry-dbid-063197ec-0f51-4722-886f-f2b970cfa015")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[461],{448:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/forgot-password",function(){return r(2409)}])},1797:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});let o={src:"/_next/static/media/login.c636dfa6.jpg",height:836,width:1200,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/v/2wBDAQoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/v/wgARCAAGAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAT/xAAUAQEAAAAAAAAAAAAAAAAAAAAC/9oADAMBAAIQAxAAAACQB//EAB0QAAEEAgMAAAAAAAAAAAAAAAIDBQYSAAEEFTL/2gAIAQEAAT8Ac4w4s0eV5XY23UTVTHxU8//EABcRAAMBAAAAAAAAAAAAAAAAAAADMoH/2gAIAQIBAT8AXOn/xAAXEQADAQAAAAAAAAAAAAAAAAAAAQIh/9oACAEDAQE/ALen/9k=",blurWidth:8,blurHeight:6}},2268:(e,t,r)=>{"use strict";r.d(t,{Ak:()=>o,B_:()=>n,VQ:()=>i});var o=function(e){return e.PRIMARY="button-primary",e.PRIMARY_DESTRUCTIVE="button-primary-destructive",e.SECONDARY="button-secondary",e.SECONDARY_DESTRUCTIVE="button-secondary-destructive",e.TERTIARY="button-tertiary",e.TERTIARY_DESTRUCTIVE="button-tertiary-destructive",e.QUATERNARY="button-quaternary",e.QUATERNARY_DESTRUCTIVE="button-quaternary-destructive",e.HERO="button-hero",e.HERO_DESTRUCTIVE="button-hero-destructive",e.PRODUCT_FLOW_OPTION="button-product-flow-option",e.PRIMARY_INACTIVE="button-primary-inactive",e.SECONDARY_INACTIVE="button-secondary-inactive",e.TERTIARY_INACTIVE="button-tertiary-inactive",e.QUATERNARY_INACTIVE="button-quaternary-inactive",e.HERO_INACTIVE="button-hero-inactive",e}({});let n={"button-primary":"button-primary-inactive","button-primary-destructive":"button-primary-inactive","button-primary-inactive":"button-primary-inactive","button-secondary":"button-secondary-inactive","button-secondary-destructive":"button-secondary-inactive","button-secondary-inactive":"button-secondary-inactive","button-tertiary":"button-tertiary-inactive","button-tertiary-destructive":"button-tertiary-inactive","button-tertiary-inactive":"button-tertiary-inactive","button-quaternary":"button-quaternary-inactive","button-quaternary-destructive":"button-quaternary-inactive","button-quaternary-inactive":"button-quaternary-inactive","button-hero":"button-hero-inactive","button-hero-destructive":"button-hero-inactive","button-hero-inactive":"button-hero-inactive","button-product-flow-option":"button-product-flow-option",DEFAULT:"button-disabled"};var i=function(e){return e.RESET="reset",e.SUBMIT="submit",e.BUTTON="button",e}({})},2409:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSG:()=>w,default:()=>y});var o=r(7876),n=r(8992),i=r(4587),a=r.n(i),s=r(9099),l=r(7287),c=r(6011),u=r(5565),d=r(3053),A=r(1897),b=r(5857),g=r(7905),v=r(8960),h=r(1797),m=r(3080);let f={title:"Forgot Password"};var w=!0;let y=e=>{let{headerData:t}=e,r=(0,s.useRouter)(),{showToast:i}=(0,v.d)(),w=(0,m.g)(),{register:y,handleSubmit:p,formState:{errors:R}}=(0,n.mN)();return(0,o.jsx)(A.i,{headerData:t,title:f.title,children:(0,o.jsxs)("section",{className:"account-body flex md:flex-row flex-col-reverse gap-y-4",children:[(0,o.jsx)("div",{className:"md:w-7/12 osm:w-full h-full relative",children:(0,o.jsx)(a(),{priority:!0,src:h,alt:"",objectFit:"cover",objectPosition:"center",layout:"fill",quality:100})}),(0,o.jsx)("div",{className:"md:w-5/12 w-full flex justify-center items-center",children:(0,o.jsxs)("div",{className:"md:w-5/6 w-full px-3 grid gap-y-2 osm:px-5 osm:my-6",children:[(0,o.jsx)(a(),{unoptimized:!0,width:85,height:36,src:"/images/logo/wisp-logo-primary-red.svg",alt:"Wisp Logo",className:"hidden md:block"}),(0,o.jsx)("h4",{className:"font-light","data-cy":"forgot-password-page-heading",children:"Reset your password"}),(0,o.jsxs)("form",{className:"form mt-2 md:w-3/4",onSubmit:p(e=>{let{email:t}=e;w.info("Sending password reset link",{email:t}),(0,l.BD)(t).then(async e=>{i({title:e.message||"Password reset link has been sent to your email",type:"success"}),await r.push("/login")}
1).catch(e=>{var t,r;w.error("Error sending password reset link",{error_message:(0,c.u1)(e),error:e}),i({type:"error",title:(null==e||null==(r=e.response)||null==(t=r.data)?void 0:t.message)||"Error while sending password reset link"})})}),children:[(0,o.jsx)(b.L,{children:(0,o.jsx)(g.j,{required:!0,type:"email",label:"Email Address",autoComplete:"off","data-cy":"email-input",...y("email",{required:c.yI.REQUIRED}),error:R.email})}),(0,o.jsx)("div",{className:"grid items-center justify-end",children:(0,o.jsx)(u.e,{href:"/login",className:"checkbox-link","data-cy":"back-to-login-link",children:"Back to login"})}),(0,o.jsx)(d.$n,{variant:d.Ak.PRIMARY,type:"submit","data-cy":"reset-password-submit",className:"mt-6 w-full",children:"Reset Password"})]})]})})]})})}},2604:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>u,SM:()=>i,T9:()=>l,jf:()=>c,xm:()=>s});var o=r(2268),n=r(557);let i=e=>{let{variant:t,disabled:r}=e;return r?t in o.B_?o.B_[t]:o.B_.DEFAULT:t},a=new Set([o.Ak.PRIMARY,o.Ak.PRIMARY_DESTRUCTIVE,o.Ak.PRIMARY_INACTIVE,o.Ak.HERO,o.Ak.HERO_DESTRUCTIVE,o.Ak.HERO_INACTIVE]),s=e=>a.has(e),l=e=>{var t,r,o,n;let i=null!=(t=e.borderColor)?t:e.textColor,a=null!=(n=null!=(o=null!=(r=e.borderHoverColor)?r:e.textHoverColor)?o:e.borderColor)?n:e.textColor;return Object.fromEntries(Object.entries({"--button-text-color":e.textColor,"--button-bg-color":e.buttonColor,"--button-text-hover-color":e.textHoverColor,"--button-bg-hover-color":e.buttonHoverColor,"--button-border-color":i,"--button-border-hover-color":a}).filter(e=>{let[,t]=e;return void 0!==t}))};function c(e){var t;return{"customizable-button-color":!!e.textColor,"customizable-button-background":!!e.buttonColor,"customizable-button-color-hover":!!e.textHoverColor,"customizable-button-background-hover":!!e.buttonHoverColor,"customizable-button-border":!!(null!=(t=e.borderColor)?t:e.textColor)}}let u=e=>{switch(e){case n.so.Primary:return o.Ak.PRIMARY;case n.so.Secondary:return o.Ak.SECONDARY;case n.so.Tertiary:return o.Ak.TERTIARY;default:return}}},3053:(e,t,r)=>{"use strict";r.d(t,{$n:()=>o.$,Ak:()=>n.Ak});var o=r(9695);r(7498);var n=r(2268);r(2604)},3080:(e,t,r)=>{"use strict";r.d(t,{g:()=>s});var o=r(4232),n=r(792),i=function(e){return e.DEBUG="debug",e.INFO="info",e.WARN="warn",e.ERROR="error",e}(i||{});class a{static getInstance(){return a.instance||(a.instance=new a("hellowisp-com")),a.instance}isDatadogAvailable(){return!!window.DD_LOGS}constructor(e){var t=this;this.serviceName=e,this.initialized=!1,this.debug=(e,t)=>{this.logMessage("debug",e,t)},this.info=(e,t)=>{this.logMessage("info",e,t)},this.warn=(e,t)=>{this.logMessage("warn",e,t)},this.error=(e,t)=>{this.logMessage("error",e,t)},this.addContext=e=>{if(!this.initialized)return void console.warn("Logger not initialized or running on server");if(window.DD_RUM)try{let t={...e,environment:n.yZ||"development"};window.DD_RUM.addContext(t)}catch(e){console.error("Failed to add context in Datadog:",e)}else console.warn("Datadog RUM is not available")},this.clearUserContext=()=>{if(!this.initialized)return void console.warn("Logger not initialized or running on server");if(window.DD_RUM)try{window.DD_RUM.removeContext(["patient_id","email"])}catch(e){console.error("Failed to remove context in Datadog:",e)}else console.warn("Datadog RUM is not available")},this.trackAction=(e,t)=>{if(!this.initialized)return void console.warn("Logger not initialized or running on server");if(window.DD_RUM)try{window.DD_RUM.addAction(e,{...t,service:this.serviceName,environment:n.yZ||"development"})}catch(e){console.error("Failed to track action in Datadog:",e)}else console.warn("Datadog RUM is not available")},this.logMessage=function(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.initialized)return void console.warn("Logger not initialized or running on server");if(!t.isDatadogAvailable())return void console.warn("Datadog logging is not available");let i={...o,service:t.serviceName,timestamp:new Date().toISOString(),environment:n.yZ||"development"};try{var a,s,l,c;switch(e){case"debug":null==(a=window.DD_LOGS)||a.logger.debug(r,i);break;case"info":null==(s=window.DD_LOGS)||s.logger.info(r,i);break;case"warn":null==(l=window.DD_LOGS)||l.logger.warn(r,i);break;case"error":null==(c=window.DD_LOGS)||c.logger.error(r,i)}}catch(e){console.error("Failed to log to Datadog:",e)}},this.initialized=!0}}a.instance=null;let s=()=>(0,o.useMemo)(()=>a.getInstance(),[])},7287:(e,t,r)=>{"use strict";r.d(t,{BD:()=>s,f3:()=>a,iD:()=>i});var o=r(2487),n=r(208);let i=async e=>{let{email:t,password:r,stay_logged_in:i}=e;return o.A.post("/".concat(n.ZX.LOGIN),{email:t,password:r,stay_logged_in:i}).then(e=>e.data.data).catch(e=>{throw e})},a=async e=>{let{new_password:t,token:r}=e;return o.A.put("/".concat(n.ZX.RESET_PASSWORD),{new_password:t,token:r}).then(e=>e.data.data).catch(e=>{throw e})},s=async e=>o.A.post("/".concat(n.ZX.RESET_PASSWORD),{email:e}).then(e=>e.data).catch(e=>{throw e})},7498:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});var o=r(7876),n=r(9778);let i=()=>(0,o.jsx)("span",{className:"relative inline-block h-3.5 w-[66px] shrink-0 overflow-hidden text-current",children:(0,o.jsx)("span",{className:"flex h-3.5 w-[66px] shrink-0 -translate-x-[41p
1x] transition-transform duration-200 ease-out motion-reduce:transition-none group-hover:translate-x-0 group-focus-visible:translate-x-0",children:(0,o.jsx)(n.I,{"aria-hidden":!0,className:"pointer-events-none block h-3.5 w-[66px] shrink-0",fill:"none",icon:"hero-long-arrow",size:14,viewBox:"0 0 66 14"})})})},7905:(e,t,r)=>{"use strict";r.d(t,{j:()=>u});var o=r(7876),n=r(9995),i=r(4232),a=r(4275),s=r(6194),l=r(9356);let c=(0,i.forwardRef)((e,t)=>{let{isDisabled:r=!1,type:i,className:a,...s}=e;return(0,o.jsx)("input",{...s,ref:t,disabled:r,type:i,className:(0,n.A)("form-input",a&&a)})}),u=(0,i.forwardRef)((e,t)=>{let{required:r,isDisabled:i,label:u,labelClassName:d,className:A,error:b,helperText:g,...v}=e;return u?(0,o.jsxs)("label",{className:(0,n.A)("form-label",d&&d),children:[u,r&&!i&&(0,o.jsx)(s.s,{}),(0,o.jsx)(l.E,{value:g}),(0,o.jsx)(c,{...v,ref:t,required:r,isDisabled:i,className:(0,n.A)(A,u&&"mt-2",b&&"form-input-error")}),(null==b?void 0:b.message)&&(0,o.jsx)(a.bN,{message:b.message})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.E,{value:g}),(0,o.jsx)(c,{...v,ref:t,required:r,className:(0,n.A)(A,b&&"form-input-error")}),(null==b?void 0:b.message)&&(0,o.jsx)(a.bN,{message:b.message})]})})},9695:(e,t,r)=>{"use strict";r.d(t,{$:()=>d});var o=r(7876),n=r(9995),i=r(4232),a=r(7498),s=r(2604),l=r(5565),c=r(2268);let u=(e,t)=>e?(0,o.jsxs)("span",{className:"inline-flex items-center gap-3 whitespace-nowrap",children:[(0,o.jsx)("span",{children:t}),(0,o.jsx)(a.Q,{})]}):t,d=(0,i.forwardRef)((e,t)=>{var r;let{variant:i=c.Ak.PRIMARY,className:a,disabled:d,as:A="button",testId:b,overrides:g={},trailingIcon:v,...h}=e,{textColor:m,textHoverColor:f,buttonHoverColor:w,buttonColor:y,type:p}=g,R=(0,s.T9)({textColor:m,buttonColor:y,buttonHoverColor:w,textHoverColor:f}),E=(0,s.jf)({textColor:m,buttonColor:y,buttonHoverColor:w,textHoverColor:f}),x=null!=(r=(0,s.Kq)(p))?r:i,D=(0,s.SM)({variant:x,disabled:d}),I=(0,n.A)(D,a),C=!1!==v&&(0,s.xm)(D),T=C?"group":void 0;if("a"===A||"link"===A){let{href:e,children:r,...i}=h;return(0,o.jsx)(l.e,{ref:t,style:R,className:(0,n.A)(I,E,T),"data-cy":b,href:e,...i,children:u(C,r)})}let{type:_,children:N,...j}=h;return(0,o.jsx)("button",{ref:t,type:null!=_?_:"button",style:R,"data-cy":b,className:(0,n.A)(I,E,T),disabled:d,...j,children:u(C,N)})})}},e=>{e.O(0,[609,230,897,636,593,792],()=>e(e.s=448)),_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.