1"use strict";(self.webpackChunkdiscovery_nissan=self.webpackChunkdiscovery_nissan||[]).push([[3441],{502:(e,t,r)=>{r.d(t,{d:()=>c});var s=r(5043),i=r(610),a=r(6827);function n(e,t){const r=e??"bottom",s={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return s?.[t]??r}var o=r(482);var l=r(2325),d=r(6448);function c(e){const{theme:t}=(0,d.UQ)(),r=(0,l.NU)();return(0,s.useMemo)((()=>function(e,t){const r=r=>({...t,...r,position:n(r?.position??t?.position,e)}),s=e=>{const t=r(e),s=(0,a.q)(t);return o.Z.notify(s,t)};return s.update=(e,t)=>{o.Z.update(e,r(t))},s.promise=(e,t)=>{const r=s({...t.loading,status:"loading",duration:null});e.then((e=>s.update(r,{status:"success",duration:5e3,...(0,i.J)(t.success,e)}))).catch((e=>s.update(r,{status:"error",duration:5e3,...(0,i.J)(t.error,e)})))},s.closeAll=o.Z.closeAll,s.close=o.Z.close,s.isActive=o.Z.isActive,s}(t.direction,{...r,...e})),[e,t.direction,r])}},3225:(e,t,r)=>{r.d(t,{MJ:()=>b,TP:()=>p,Uc:()=>g,eK:()=>x});var s=r(579),i=r(3194),a=r(3033),n=r(6417),o=r(8813),l=r(4765),d=r(5043),c=r(5003),u=r(5158),m=r(7971);const[h,p]=(0,n.q)({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[f,g]=(0,n.q)({strict:!1,name:"FormControlContext"});const b=(0,c.R)((function(e,t){const r=(0,u.o)("Form",e),n=(0,a.M)(e),{getRootProps:c,htmlProps:p,...g}=function(e){const{id:t,isRequired:r,isInvalid:s,isDisabled:a,isReadOnly:n,...l}=e,c=(0,d.useId)(),u=t||`field-${c}`,m=`${u}-label`,h=`${u}-feedback`,p=`${u}-helptext`,[f,g]=(0,d.useState)(!1),[b,x]=(0,d.useState)(!1),[v,y]=(0,d.useState)(!1),k=(0,d.useCallback)((function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{id:p,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ref:(0,i.Px)(e,(e=>{e&&x(!0)}))}}),[p]),N=(0,d.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:t,"data-focus":(0,o.s)(v),"data-disabled":(0,o.s)(a),"data-invalid":(0,o.s)(s),"data-readonly":(0,o.s)(n),id:void 0!==e.id?e.id:m,htmlFor:void 0!==e.htmlFor?e.htmlFor:u}}),[u,a,v,s,n,m]),R=(0,d.useCallback)((function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{id:h,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ref:(0,i.Px)(e,(e=>{e&&g(!0)})),"aria-live":"polite"}}),[h]),j=(0,d.useCallback)((function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},...l,ref:e,role:"group","data-focus":(0,o.s)(v),"data-disabled":(0,o.s)(a),"data-invalid":(0,o.s)(s),"data-readonly":(0,o.s)(n)}}),[l,a,v,s,n]),I=(0,d.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"}}),[]);return{isRequired:!!r,isInvalid:!!s,isReadOnly:!!n,isDisabled:!!a,isFocused:!!v,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:f,setHasFeedbackText:g,hasHelpText:b,setHasHelpText:x,id:u,labelId:m,feedbackId:h,helpTextId:p,htmlProps:l,getHelpTextProps:k,getErrorMessageProps:R,getRootProps:j,getLabelProps:N,getRequiredIndicatorProps:I}}(n),b=(0,l.cx)("chakra-form-control",e.className);return(0,s.jsx)(f,{value:g,children:(0,s.jsx)(h,{value:r,children:(0,s.jsx)(m.B.div,{...c({},t),className:b,__css:r.container})})})}));b.displayName="FormControl";const x=(0,c.R)((function(e,t){const r=g(),i=p(),a=(0,l.cx)("chakra-form__helper-text",e.className);return(0,s.jsx)(m.B.div,{...r?.getHelpTextProps(e,t),__css:i.helperText,className:a})}));x.displayName="FormHelperText"},3635:(e,t,r)=>{r.d(t,{t:()=>n,v:()=>
1o});var s=r(8813),i=r(7246),a=r(3225);function n(e){const{isDisabled:t,isInvalid:r,isReadOnly:i,isRequired:a,...n}=o(e);return{...n,disabled:t,readOnly:i,required:a,"aria-invalid":(0,s.r)(r),"aria-required":(0,s.r)(a),"aria-readonly":(0,s.r)(i)}}function o(e){const t=(0,a.Uc)(),{id:r,disabled:s,readOnly:n,required:o,isRequired:l,isInvalid:d,isReadOnly:c,isDisabled:u,onFocus:m,onBlur:h,...p}=e,f=e["aria-describedby"]?[e["aria-describedby"]]:[];return t?.hasFeedbackText&&t?.isInvalid&&f.push(t.feedbackId),t?.hasHelpText&&f.push(t.helpTextId),{...p,"aria-describedby":f.join(" ")||void 0,id:r??t?.id,isDisabled:s??u??t?.isDisabled,isReadOnly:n??c??t?.isReadOnly,isRequired:o??l??t?.isRequired,isInvalid:d??t?.isInvalid,onFocus:(0,i.H)(t?.onFocus,m),onBlur:(0,i.H)(t?.onBlur,h)}}},5699:(e,t,r)=>{r.d(t,{p:()=>c});var s=r(579),i=r(3033),a=r(4765),n=r(3635),o=r(5003),l=r(5158),d=r(7971);const c=(0,o.R)((function(e,t){const{htmlSize:r,...o}=e,c=(0,l.o)("Input",o),u=(0,i.M)(o),m=(0,n.t)(u),h=(0,a.cx)("chakra-input",e.className);return(0,s.jsx)(d.B.input,{size:r,...m,__css:c.field,ref:t,className:h})}));c.displayName="Input",c.id="Input"},5822:(e,t,r)=>{r.r(t),r.d(t,{default:()=>x});var s=r(5043),i=r(502),a=r(5371),n=r(9904),o=r(8846),l=r(2107),d=r(3225),c=r(6668),u=r(5699),m=r(9081),h=r(8662),p=r(7189),f=r(7667),g=r(9900),b=r(579);const x=()=>
1{const[e,t]=(0,s.useState)(""),[r,x]=(0,s.useState)(!1),[v,y]=(0,s.useState)(""),k=(0,i.d)(),N=(0,g.Zp)();return(0,b.jsx)(a.s,{flexDirection:"column",width:"100wh",height:"100vh",justifyContent:"center",alignItems:"center",children:(0,b.jsxs)(n.B,{flexDir:"column",mb:"2",justifyContent:"center",alignItems:"center",children:[(0,b.jsx)(o.D,{color:"primary",children:"Forgot Password"}),(0,b.jsx)(l.a,{minW:{base:"90%",md:"468px"},children:(0,b.jsx)("form",{onSubmit:async t=>{t.preventDefault(),y(""),x(!0);try{const t=await(0,f.BD)(e);y(t.message),t.message.includes("OTP")?(k({title:"OTP Sent!",description:"Please check your email for the OTP.",status:"success",duration:3e3,isClosable:!0}),setTimeout((()=>{N("/verify-otp",{state:{email:e}})}),2e3)):k({title:"Error",description:t.message||"Email not found.",status:"error",duration:3e3,isClosable:!0})}catch(r){console.error("Forgot password error:",r),k({title:"Server Error",description:"Something went wrong. Please try again later.",status:"error",duration:3e3,isClosable:!0}),y("Something went wrong. Please try again.")}finally{x(!1)}},children:(0,b.jsxs)(n.B,{rounded:"lg",bg:"#ffffff",boxShadow:"lg",p:8,children:[(0,b.jsxs)(d.MJ,{children:[(0,b.jsx)(c.l,{children:"Email Address"}),(0,b.jsx)(u.p,{type:"email",placeholder:"Enter your registered email",value:e,onChange:e=>t(e.target.value),required:!0})]}),v&&(0,b.jsx)(m.E,{fontSize:"sm",color:v.includes("OTP")?"green.500":"red.500",children:v}),(0,b.jsx)(h.$,{type:"submit",bg:"primary",color:"white",isLoading:r,_hover:{bg:"white",borderColor:"primary",color:"primary",borderWidth:"1px"},children:"Send OTP"}),(0,b.jsx)(p.N,{href:"/login",color:"primary",textAlign:"center",children:"Back to Login"})]})})})]})})}},6668:(e,t,r)=>{r.d(t,{l:()=>c});var s=r(579),i=r(3033),a=r(4765),n=r(3225),o=r(5003),l=r(5158),d=r(7971);const c=(0,o.R)((function(e,t){const r=(0,l.V)("FormLabel",e),o=(0,i.M)(e),{className:c,children:m,requiredIndicator:h=(0,s.jsx)(u,{}),optionalIndicator:p=null,...f}=o,g=(0,n.Uc)(),b=g?.getLabelProps(f,t)??{ref:t,...f};return(0,s.jsxs)(d.B.label,{...b,className:(0,a.cx)("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...r},children:[m,g?.isRequired?h:p]})}));c.displayName="FormLabel";const u=(0,o.R)((function(e,t){const r=(0,n.Uc)(),i=(0,n.TP)();if(!r?.isRequired)return null;const o=(0,a.cx)("chakra-form__required-indicator",e.className);return(0,s.jsx)(d.B.span,{...r?.getRequiredIndicatorProps(e,t),__css:i.requiredIndicator,className:o})}));u.displayName="RequiredIndicator"},7189:(e,t,r)=>{r.d(t,{N:()=>d});var s=r(579),i=r(3033),a=r(4765),n=r(5003),o=r(5158),l=r(7971);const d=(0,n.R)((function(e,t){const r=(0,o.V)("Link",e),{className:n,isExternal:d,...c}=(0,i.M)(e);return(0,s.jsx)(l.B.a,{target:d?"_blank":void 0,rel:d?"noopener":void 0,ref:t,className:(0,a.cx)("chakra-link",n),...c,__css:r})}));d.displayName="Link"},8846:(e,t,r)=>{r.d(t,{D:()=>d});var s=r(579),i=r(3033),a=r(4765),n=r(5003),o=r(5158),l=r(7971);const d=(0,n.R)((function(e,t){const r=(0,o.V)("Heading",e),{className:n,...d}=(0,i.M)(e);return(0,s.jsx)(l.B.h2,{ref:t,className:(0,a.cx)("chakra-heading",e.className),...d,__css:r})}));d.displayName="Heading"}}]); 2//# sourceMappingURL=3441.e72a0758.chunk.js.map
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.