1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9566],{56810:function(e,s,a){var t=a(57437);a(2265),s.Z=e=>{let{className:s}=e;return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:s,children:(0,t.jsx)("path",{d:"M7.432 10.632C7.3976 10.67 7.36554 10.7101 7.336 10.752C7.30572 10.7966 7.28151 10.845 7.264 10.896C7.24094 10.9413 7.22476 10.9899 7.216 11.04C7.21208 11.0933 7.21208 11.1467 7.216 11.2C7.2133 11.3049 7.23522 11.4091 7.28 11.504C7.31593 11.6033 7.37325 11.6934 7.44791 11.7681C7.52256 11.8427 7.61273 11.9001 7.712 11.936C7.80776 11.9783 7.91131 12.0002 8.016 12.0002C8.1207 12.0002 8.22424 11.9783 8.32 11.936C8.41928 11.9001 8.50944 11.8427 8.58409 11.7681C8.65875 11.6934 8.71607 11.6033 8.752 11.504C8.78753 11.4067 8.80383 11.3035 8.8 11.2C8.80061 11.0947 8.78043 10.9903 8.74062 10.8929C8.70081 10.7954 8.64215 10.7067 8.568 10.632C8.49363 10.557 8.40515 10.4975 8.30766 10.4569C8.21018 10.4163 8.10561 10.3954 8 10.3954C7.89439 10.3954 7.78983 10.4163 7.69234 10.4569C7.59485 10.4975 7.50637 10.557 7.432 10.632ZM8 0C6.41775 0 4.87103 0.469192 3.55544 1.34824C2.23985 2.22729 1.21447 3.47672 0.608967 4.93853C0.00346627 6.40034 -0.15496 8.00887 0.153721 9.56072C0.462403 11.1126 1.22433 12.538 2.34315 13.6569C3.46197 14.7757 4.88743 15.5376 6.43928 15.8463C7.99113 16.155 9.59966 15.9965 11.0615 15.391C12.5233 14.7855 13.7727 13.7602 14.6518 12.4446C15.5308 11.129 16 9.58225 16 8C16 6.94942 15.7931 5.90914 15.391 4.93853C14.989 3.96793 14.3997 3.08601 13.6569 2.34315C12.914 1.60028 12.0321 1.011 11.0615 0.608964C10.0909 0.206926 9.05058 0 8 0V0ZM8 14.4C6.7342 14.4 5.49683 14.0246 4.44435 13.3214C3.39188 12.6182 2.57157 11.6186 2.08717 10.4492C1.60277 9.27972 1.47603 7.9929 1.72298 6.75142C1.96992 5.50994 2.57946 4.36957 3.47452 3.47452C4.36957 2.57946 5.50995 1.96992 6.75142 1.72297C7.9929 1.47603 9.27973 1.60277 10.4492 2.08717C11.6186 2.57157 12.6182 3.39187 13.3214 4.44435C14.0246 5.49682 14.4 6.7342 14.4 8C14.4 9.69738 13.7257 11.3252 12.5255 12.5255C11.3253 13.7257 9.69739 14.4 8 14.4V14.4ZM8 4C7.57845 3.99973 7.16427 4.1105 6.79913 4.32115C6.43399 4.53181 6.13078 4.83493 5.92 5.2C5.86212 5.29105 5.82325 5.39287 5.80574 5.49934C5.78823 5.6058 5.79244 5.71471 5.8181 5.81951C5.84377 5.9243 5.89038 6.02283 5.95511 6.10915C6.01984 6.19547 6.10137 6.2678 6.19478 6.32179C6.28819 6.37579 6.39156 6.41033 6.49867 6.42334C6.60578 6.43635 6.71441 6.42756 6.81803 6.3975C6.92165 6.36744 7.01812 6.31673 7.10164 6.24841C7.18516 6.1801 7.25399 6.0956 7.304 6C7.37449 5.87791 7.47598 5.77662 7.5982 5.70638C7.72042 5.63614 7.85903 5.59944 8 5.6C8.21217 5.6 8.41566 5.68428 8.56569 5.83431C8.71572 5.98434 8.8 6.18783 8.8 6.4C8.8 6.61217 8.71572 6.81565 8.56569 6.96568C8.41566 7.11571 8.21217 7.2 8 7.2C7.78783 7.2 7.58435 7.28428 7.43432 7.43431C7.28429 7.58434 7.2 7.78782 7.2 8V8.8C7.2 9.01217 7.28429 9.21565 7.43432 9.36568C7.58435 9.51571 7.78783 9.6 8 9.6C8.21217 9.6 8.41566 9.51571 8.56569 9.36568C8.71572 9.21565 8.8 9.01217 8.8 8.8V8.656C9.3291 8.46401 9.77389 8.09218 10.0566 7.60549C10.3393 7.11881 10.442 6.54823 10.3467 5.99351C10.2514 5.43879 9.96416 4.93521 9.5352 4.57081C9.10623 4.20641 8.56283 4.00437 8 4V4Z",fill:"#222222"})})}},69566:function(e,s,a){a.r(s),a.d(s,{default:function(){return Z}});var t=a(57437),r=a(2265),l=a(99376),i=a(73842),n=a(29501),o=a(75186),c=a(23542),m=a(62869),d=a(79671),x=a(83736),p=a(56810),u=a(42419),h=a(27465),f=a(96625),g=a(6e4);function w(e){let{email:s,password:a}=e,{login:i}=(0,h.mA)(),{push:n}=(0,l.useRouter)(),[c,d]=(0,r.useState)(!1),x=async()=>{if(!s||!a){n("/login");return}d(!0);try{await i(s,a),n("/")}catch(e){o.ZP.error("Failed to login automatically. Please try again."),n("/login")}finally{d(!1)}};return(0,t.jsxs)("div",{children:[(0,t.jsx)(g.Z,{productName:"Forgot Password",breadcrumbs:[]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("h1",{className:"as-h1 headline mx-auto mb-4 w-max leading-[34px] text-[#1B3144]",children:"Password Updated!"}),(0,t.jsxs)("div",{className:"relative mx-auto mb-3 mt-12 flex flex-col items-center sm:w-[430px]",children:[(0,t.jsx)("p",{className:"mb-12 text-center text-sm font-normal leading-[17px] text-primary-gray",children:"Your password has been changed successfully."}),(0,t.jsx)(m.z,{className:"flex h-[42px] w-full items-center justify-center rounded-md bg-[#404040] px-6 text-white md:w-auto",onClick:x,disabled:c,
1children:c?(0,t.jsx)(u.Z,{}):"Log in Now"})]})]})]})}var C=a(75481);let j=C.Ry({password:C.Z_().oneOf([C.iH("password"),null]).min(8,"Minimum length would be 8 chars").max(40,"Maximum length would be 40 chars").notOneOf([C.iH("email")],"Must be different from username").oneOf([C.iH("password"),null]).matches(/^\S*$/,"Must not contain spaces").oneOf([C.iH("password"),null]).matches(/[a-z]+/,"Must contain 1 lowercase character (a-z)").oneOf([C.iH("password"),null]).matches(/[A-Z]+/,"Must contain 1 uppercase character (A-Z)").oneOf([C.iH("password"),null]).matches(/\d+/,"Must contain 1 digit from 0-9").oneOf([C.iH("password"),null]).matches(/[@#$%^&*()_+=\[\]{}|:;"'<>,.?\/\\-]+/,'Must contain 1 special character "^[]â@#$%&*()_+=|}{;:<,.>/?-').required("Password is required"),confirmPassword:C.Z_().oneOf([C.iH("password")],"Password and Confirm Password fields do not match.").required("Confirm Password is required")});function y(){return(0,t.jsx)("section",{className:"top-0 w-full",children:(0,t.jsxs)("ul",{className:"list-disc pl-4",children:[(0,t.jsx)("li",{className:"py-1 text-primary-gray",children:(0,t.jsx)("p",{className:"text-xs font-normal leading-[18px] text-primary-lightGray",children:"Password length: 8-40 chars"})}),(0,t.jsx)("li",{className:"my-2",children:(0,t.jsx)("p",{className:"text-xs font-normal leading-[18px] text-primary-lightGray",children:"Must not contain spaces"})}),(0,t.jsx)("li",{className:"my-2",children:(0,t.jsx)("p",{className:"text-xs font-normal leading-[18px] text-primary-lightGray",children:"Must contain 1 uppercase character (A-Z)"})}),(0,t.jsx)("li",{className:"my-2",children:(0,t.jsx)("p",{className:"text-xs font-normal leading-[18px] text-primary-lightGray",children:"Must contain 1 digit from 0-9"})}),(0,t.jsx)("li",{className:"my-2",children:(0,t.jsx)("p",{className:"text-xs font-normal leading-[18px] text-primary-lightGray",children:`Must contain 1 special character â^[]â@#$%&*()-_+=|}{;:<,.>/?â`})})]})})}var b=e=>{let{token:s}=e,{register:a,handleSubmit:l,formState:{errors:C,isSubmitting:b,isDirty:N}}=(0,n.cI)({mode:"onChange",resolver:(0,i.X)(j)}),[P,Z]=(0,r.useState)(!1),[v,M]=(0,r.useState)(!1),[F,H]=(0,r.useState)({}),{handleStartInteraction:L,handleSubmitInteraction:k}=(0,x.Z)("Reset Password"),{resetPasswordWithoutLogin:S}=(0,h.mA)();return((0,r.useEffect)(()=>{N&&P&&L()},[N,P]),(0,r.useEffect)(()=>{Z(!0)},[]),P)?v?(0,t.jsx)(w,{email:F.email,password:F.password}):(0,t.jsxs)("div",{children:[(0,t.jsx)(g.Z,{productName:"Forgot Password",breadcrumbs:[]}),(0,t.jsx)("h1",{className:"as-h1 headline mx-auto mb-4 w-max leading-[34px] text-[#1B3144]",children:"Reset Password"}),(0,t.jsxs)("form",{className:"relative mx-auto mt-12 sm:w-[373px]",onSubmit:l(async e=>{try{let a=await S(s,e.password);a.accountId&&(k({}),o.ZP.success("Password reset success"),H({email:a.email,password:e.password}),M(!0))}catch(e){o.ZP.error("Something went wrong. Try again.")}}),children:[C&&(0,t.jsx)(c.Z,{formName:"Reset Password",errors:C}),(0,t.jsxs)("div",{className:"mb-3 flex w-full flex-col items-start justify-center gap-6",children:[(0,t.jsxs)("div",{className:"flex w-full flex-col space-y-3",children:[(0,t.jsxs)("section",{className:"flex items-center gap-3",children:[(0,t.jsx)("label",{className:"text-sm font-semibold leading-[17px] text-primary-gray",htmlFor:"registerPassword",children:"Password"}),(0,t.jsxs)("section",{className:"group relative",children:[(0,t.jsx)("section",{className:"cursor-pointer py-1 pr-5",children:(0,t.jsx)(p.Z,{className:"fill-primary-gratext-primary-gray"})}),(0,t.jsxs)("div",{className:"absolute -left-20 z-[1] hidden h-auto w-[270px] rounded-[6px] border border-gray-300 bg-[#F5F5F5] p-4 group-hover:block lg:left-0 lg:w-[347px]",children:[(0,t.jsx)("h4",{className:"mb-3 text-xs font-semibold leading-[15px] text-primary-lightGray",children:"Passwords must meet the following requirements:"}),(0,t.jsx)(y,{})]})]})]}),(0,t.jsx)(d.W,{required:!0,type:"password","aria-label":"Password",autoComplete:"current-password",...a("password"),className:"w-full"}),C.password&&C.password.message&&(0,t.jsx)(f.Z,{message:C.password.message})]}),(0,t.jsxs)("div",{className:"flex w-full flex-col gap-y-3",children:[(0,t.jsx)("label",{className:"text-sm font-semibold leading-[17px] text-primary-gray",htmlFor:"registerConfirmPassword",children:"Confirm Password"}),(0,t.jsx)(d.W,{required:!0,type:"password","aria-label":"Confirm Password",autoComplete:"current-password",...a("confirmPassword"),className:"w-full"}),C.confirmPassword&&(0,t.jsx)("p",{className:"text-sm font-normal leading-[17px] text-[#DA0F0F]",children:C.confirmPassword.message})]}),(0,t.jsx)(m.z,{className:"mt-2 flex h-[42px] w-full items-center justify-center rounded-md bg-[#404040] px-6 text-white md:w-auto",type:"submit",children:b?(0,t.jsx)(u.Z,{}):"Reset Password"})]})]})]}):null},N=e=>{let{token:s}=e;return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(b,{token:s})})},P=a(61002),Z=e=>{let{data:s}=e,a=(0,l.useSearchParams)().get("token");return a?(0,t.jsx)(N,{...s,token:a}):(0,t.jsx)(P.Z,{target:"/login"})}},96625:function(e,s,a){a.d(s,{Z:function(){return r}});var t=a(57437);function r(e){let{message:s}=e;return(0,t.jsx)("p",{className:"text-sm font-normal leading-[17px] text-[#DA0F0F]",children:s})}},6e4:function(e,s,a){var t=a(57437),r=a(27648),l=a(99376),i=a(61565),n=a(65821);s.Z=e=>{let{breadcrumbs:s,productName:a}=e,o=(0,l.usePathname)(),c=s.filter(e=>e.label?.toLowerCase()!=="hidden"),m={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://shadesoflight.com"},...c.map((e,s)=>({"@type":"ListItem",position:s+2,name:e.label?.toLocaleLowerCase().replace(/\b\w/g,e=>e.toUpperCase()),item:e.slug&&"string"==typeof e.slug?e.slug.startsWith("//")||e.slug.startsWith("http")?e.slug.startsWith("//")?`https:${e.slug}`:e.slug:`https://shadesoflight.com/${e.slug}`:""})),{"@type":"ListItem",position:c.length+2,name:a,item:`https://shadesoflight.com${o}`}]};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("section",{children:(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(m)}})}),(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:"mt-4 flex lg:mt-8",children:(0,t.jsxs)("ol",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsxs)("li",{className:"flex items-center gap-2","aria-label":"Home",children:[(0,t.jsx)(r.default,{onClick:()=>{(0,i.WT)("Home")},href:"/",className:"text-xs","aria-label":"Home",children:"Home"}),(0,t.jsx)(n.Z,{})]}),c&&c.map((e,s)=>(0,t.jsxs)("li",{className:"flex items-center gap-2","aria-label":e.label,children:[(0,t.jsx)(r.default,{onClick:()=>{(0,i.WT)(e.label?.toLocaleLowerCase().replace(/\b\w/g,e=>e.toUpperCase()))},href:e.slug||"",className:"text-xs","aria-label":e.label,children:e.label?.toLocaleLowerCase().replace(/\b\w/g,e=>e.toUpperCase())}),(0,t.jsx)(n.Z,{})]},"breadcrumb-"+s)),(0,t.jsx)("li",{className:"text-xs",children:a})]})})]})}},61002:function(e,s,a){var t=a(57437),r=a(2265),l=a(99376),i=a(43079);s.Z=e=>{let{target:s}=e,a=(0,l.useRouter)();return(0,r.useEffect)(()=>
1{if(!s)return;let e="string"==typeof s?s:(0,i.q)(s);a.push(e)},[s,a]),(0,t.jsx)(t.Fragment,{})}}}]); 2//# sourceMappingURL=9566.4f46d646807ebf08.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.