PageSourceSearch

https://canndr.com/app/_next/static/chunks/pages/forgot-password-f48ae48e8a203a35.js

js canndr.com collected 2026-10-01 23:45:34 UTC 12,409 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9742],{60872:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/forgot-password",function(){return n(26393)}])},83186:function(e,t,n){"use strict";var o=n(64836);t.Z=void 0;var r=o(n(47955)),a=n(85893),i=(0,r.default)((0,a.jsx)("path",{d:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h9v-2H4V8l8 5 8-5v5h2V6c0-1.1-.9-2-2-2zm-8 7L4 6h16l-8 5zm7 4 4 4-4 4v-3h-4v-2h4v-3z"}),"ForwardToInbox");t.Z=i},50280:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var o=n(63366),r=n(87462),a=n(67294),i=n(92827),l=n(94780),s=n(41796),c=n(89262),d=n(59145),p=n(75228),u=n(62191),x=n(1588),h=n(34867);function m(e){return(0,h.Z)("MuiAlert",e)}let g=(0,x.Z)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var f=n(33367),v=n(12921),Z=n(85893),b=(0,v.Z)((0,Z.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),j=(0,v.Z)((0,Z.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),C=(0,v.Z)((0,Z.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),w=(0,v.Z)((0,Z.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),y=(0,v.Z)((0,Z.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");let S=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],k=e=>{let{variant:t,color:n,severity:o,classes:r}=e,a={root:["root","".concat(t).concat((0,p.Z)(n||o)),"".concat(t)],icon:["icon"],message:["message"],action:["action"]};return(0,l.Z)(a,m,r)},A=(0,c.ZP)(u.Z,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,p.Z)(n.color||n.severity))]]}})(e=>{let{theme:t,ownerState:n}=e,o="light"===t.palette.mode?s._j:s.$n,a="light"===t.palette.mode?s.$n:s._j,i=n.color||n.severity;return(0,r.Z)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},i&&"standard"===n.variant&&{color:t.vars?t.vars.palette.Alert["".concat(i,"Color")]:o(t.palette[i].light,.6),backgroundColor:t.vars?t.vars.palette.Alert["".concat(i,"StandardBg")]:a(t.palette[i].light,.9),["& .".concat(g.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(i,"IconColor")]}:{color:t.palette[i].main}},i&&"outlined"===n.variant&&{color:t.vars?t.vars.palette.Alert["".concat(i,"Color")]:o(t.palette[i].light,.6),border:"1px solid ".concat((t.vars||t).palette[i].light),["& .".concat(g.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(i,"IconColor")]}:{color:t.palette[i].main}},i&&"filled"===n.variant&&(0,r.Z)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert["".concat(i,"FilledColor")],backgroundColor:t.vars.palette.Alert["".concat(i,"FilledBg")]}:{backgroundColor:"dark"===t.palette.mode?t.palette[i].dark:t.palette[i].main,color:t.palette.getContrastText(t.palette[i].main)}))}),z=(0,c.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),E=(0,c.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),F=(0,c.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),M={success:(0,Z.jsx)(b,{fontSize:"inherit"}),warning:(0,Z.jsx)(j,{fontSize:"inherit"}),error:(0,Z.jsx)(C,{fontSize:"inherit"}),info:(0,Z.jsx)(w,{fontSize:"inherit"})};var W=a.forwardRef(function(e,t){var n,a,l,s,c,p;let u=(0,d.Z)({props:e,name:"MuiAlert"}),{action:x,children:h,className:m,closeText:g="Close",color:v,components:b={},componentsProps:j={},icon:C,iconMapping:w=M,onClose:W,role:N="alert",severity:R="success",slotProps:I={},slots:L={},variant:_="standard"}=u,B=(0,o.Z)(u,S),P=(0,r.Z)({},u,{color:v,severity:R,variant:_}),H=k(P),D=null!=(n=null!=(a=L.closeButton)?a:b.CloseButton)?n:f.Z,T=null!=(l=null!=(s=L.closeIcon)?s:b.CloseIcon)?l:y,G=null!=(c=I.closeButton)?c:j.closeButton,O=null!=(p=I.closeIcon)?p:j.closeIcon;return(0,Z.jsxs)(A,(0,r.Z)({role:N,elevation:0,ownerState:P,className:(0,i.Z)(H.root,m),ref:t},B,{children:[!1!==C?(0,Z.jsx)(z,{ownerState:P,className:H.icon,children:C||w[R]||M[R]}):null,(0,Z.jsx)(E,{ownerState:P,className:H.message,children:h}),null!=x?(0,Z.jsx)(F,{ownerState:P,className:H.action,children:x}):null,null==x&&W?(0,Z.jsx)(F,{ownerState:P,className:H.action,children:(0,Z.jsx)(D,(0,r.Z)({size:"small","aria-label":g,t
1itle:g,color:"inherit",onClick:W},G,{children:(0,Z.jsx)(T,(0,r.Z)({fontSize:"small"},O))}))}):null]}))})},59979:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var o=n(63366),r=n(87462),a=n(67294),i=n(70828),l=n(14142),s=n(34867),c=n(94780),d=n(29628),p=n(13264),u=n(88647),x=n(85893);let h=["className","component","disableGutters","fixed","maxWidth","classes"],m=(0,u.Z)(),g=(0,p.Z)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`maxWidth${(0,l.Z)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),f=e=>(0,d.Z)({props:e,name:"MuiContainer",defaultTheme:m}),v=(e,t)=>{let{classes:n,fixed:o,disableGutters:r,maxWidth:a}=e,i={root:["root",a&&`maxWidth${(0,l.Z)(String(a))}`,o&&"fixed",r&&"disableGutters"]};return(0,c.Z)(i,e=>(0,s.Z)(t,e),n)};var Z=n(75228),b=n(89262),j=n(59145),C=function(e={}){let{createStyledComponent:t=g,useThemeProps:n=f,componentName:l="MuiContainer"}=e,s=t(({theme:e,ownerState:t})=>(0,r.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}),({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce((t,n)=>{let o=e.breakpoints.values[n];return 0!==o&&(t[e.breakpoints.up(n)]={maxWidth:`${o}${e.breakpoints.unit}`}),t},{}),({theme:e,ownerState:t})=>(0,r.Z)({},"xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}));return a.forwardRef(function(e,t){let a=n(e),{className:c,component:d="div",disableGutters:p=!1,fixed:u=!1,maxWidth:m="lg"}=a,g=(0,o.Z)(a,h),f=(0,r.Z)({},a,{component:d,disableGutters:p,fixed:u,maxWidth:m}),Z=v(f,l);return(0,x.jsx)(s,(0,r.Z)({as:d,ownerState:f,className:(0,i.Z)(Z.root,c),ref:t},g))})}({createStyledComponent:(0,b.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t["maxWidth".concat((0,Z.Z)(String(n.maxWidth)))],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,j.Z)({props:e,name:"MuiContainer"})})},26393:function(e,t,n){"use strict";n.r(t);var o=n(85893),r=n(43303),a=n(59979),i=n(94246),l=n(15354),s=n(50280),c=n(33367),d=n(6154),p=n(67294),u=n(39626),x=n(83186),h=n(7320),m=n(79386),g=n(76799),f=n(11163);t.default=()=>{let e=(0,f.useRouter)(),[t,n]=(0,p.useState)(!1),[v,Z]=(0,p.useState)(!1),[b,j]=(0,p.useState)(""),[C,w]=(0,p.useState)(""),[y,S]=(0,p.useState)(!1),[k,A]=(0,p.useState)(60);(0,p.useEffect)(()=>{let e=k>0&&setInterval(()=>A(k-1),1e3);return()=>clearInterval(e)},[k]);let z=async e=>{e.preventDefault(),n(!0);let t={email:e.target.email.value};try{await d.Z.post("".concat(g.J,"/forgot-password"),t),n(!1),j(e.target.email.value),Z(!0)}catch(e){S(!0),n(!1),Z(!1),w(e.response.data.message)}};return v?(0,o.jsx)(p.Fragment,{children:(0,o.jsxs)(r.Z,{className:"content-body bg-white h-full",children:[(0,o.jsx)(h.Z,{hasSticky:!0,title:"Canndr\xae - Forgot Password",show_logo:!0,close_button:!0,hasBannerDownload:!0}),(0,o.jsx)(r.Z,{sx:{background:"var(--Gradient, linear-gradient(180deg, #FFF 0%, #DBE5F4 100%))",padding:{xs:"20px",md:"30px",lg:"50px"}},className:"space-y-5 w-full h-full ",children:(0,o.jsxs)(a.Z,{sx:{background:"#FFFFFF",padding:"30px",margin:{xs:"50px 0px 0px 0px",md:"0px auto",lg:"0px auto"},width:{xs:"100%",md:"50%",lg:"30%"},borderRadius:"10px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:2},children:[(0,o.jsx)(i.Z,{color:"#084B84",fontSize:{xs:"24px",md:"28px",lg:"32px"},lineHeight:"40px",fontWeight:"700",marginTop:{xs:"30px",md:"50px",lg:"70px"},textAlign:"center",children:"Check your inbox"}),(0,o.jsx)(l.Z,{sx:{margin:"50px 0 0 0"},direction:"column",justifyContent:"center",alignItems:"center",children:(0,o.jsx)(l.Z,{direction:"column",justifyContent:"center",alignItems:"center",sx:{background:"#c5f5ff",width:90,height:90,borderRadius:"20px"},children:(0,o.jsx)(x.Z,{sx:{fill:"#45BEDC",width:50,height:50,margin:"auto auto"}})})}),(0,o.jsx)(i.Z,{color:"#5E5E5E",fontSize:"15px",lineHeight:"22px",fontWeight:"400",marginTop:"50px",textAlign:"center",children:"Please check your inbox for password recovery instructions. We have sent this email to:"}),(0,o.jsx)(i.Z,{color:"#5E5E5E",fontSize:"16px",lineHeight:"22px",fontWeight:"700",marginY:"15px",textAlign:"center",children:b}),(0,o.jsx)(i.Z,{color:"#5E5E5E",fontSize:"15px",lineHeight:"22px",fontWeight:"400",textAlign:"center",children:"This may take a minute. Please check spam and junk folders. Add [email protected] to your address book to ensure any further communication is not lost."}),(0,o.jsx)("p",{className:"text-center",children:(0,o.jsx)("button",{className:"bg-[#084B84] py-2 px-8 text-white rounded-md",children:"Open email app"})}),(0,o.jsx)(i.Z,{onClick:()=>e.push("/product"),color:"#45BEDC",fontSize:"12px",lineHeight:"16px",fontWeight:"400",marginY:"20px",textAlign:"center",children:"Skip, I’ll confirm later"})]})}),(0,o.jsx)(m.Z,{})]})}):(0,o.jsx)(p.Fragment,{children:(0,o.jsxs)(r.Z,{className:"content-body bg-white h-full",children:[(0,o.jsx)(h.Z,{hasSticky:!0,title:"Canndr\xae - Forgot Password",show_logo:!0,back_button:!0,hasBannerDownload:!0}),(0,o.jsx)(r.Z,{sx:{background:"var(--Gradient, linear-gradient(180deg, #FFF 0%, #DBE5F4 100%))",padding:{xs:"20px",md:"30px",lg:"50px"}},className:"space-y-5 w-full h-screen ",children:(0,o.jsxs)(a.Z,{sx:{background:"#FFFFFF",padding:"30px",margin:{xs:"50px 0px 0px 0px",md:"0px auto",lg:"0px auto"},width:{xs:"100%",md:"50%",lg:"30%"},borderRadius:"10px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"start",ga
1p:2},children:[(0,o.jsx)(i.Z,{color:"#084B84",fontSize:"32px",lineHeight:"40px",fontWeight:"700",marginTop:"70px",children:"Forgot my password"}),(0,o.jsx)(i.Z,{color:"#5E5E5E",fontSize:"15px",lineHeight:"22px",marginY:"30px",children:"Confirm the email address you want to use to reset your password"}),y?(0,o.jsx)(s.Z,{severity:"error",action:(0,o.jsx)(c.Z,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{S(!1)},children:(0,o.jsx)(u.Z,{fontSize:"inherit"})}),className:"mb-4",children:C}):"",(0,o.jsx)(r.Z,{className:"w-full",children:(0,o.jsxs)("form",{onSubmit:z,children:[(0,o.jsx)("input",{id:"email",type:"email",className:"border ".concat(""!==C?"border-red-700":"border-[#D3D3D3]"," px-4 py-2 rounded-[10px] w-full"),placeholder:"Email"}),(0,o.jsx)("button",{disabled:t,className:"w-full rounded-md px-3 py-2 text-white ".concat(t?"bg-blue-800":"bg-[#084B84]"," mt-[30px] mb-[40px]"),children:t?"Loading...":"Confirm Email"})]})})]})}),(0,o.jsx)(m.Z,{})]})})}}},function(e){e.O(0,[314,9510,5396,1664,4466,9e3,3740,1457,7998,9386,2888,9774,179],function(){return e(e.s=60872)}),_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.