PageSourceSearch

https://chloeting.com/_next/static/chunks/pages/forgot-password-776fcc2ab7bad8ab.js

js chloeting.com collected 2026-10-02 03:53:09 UTC 14,936 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[29742],{64923:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/forgot-password",function(){return t(21799)}])},21799:function(n,e,t){"use strict";t.r(e);var r=t(47568),o=t(26042),i=t(69396),a=t(99534),c=t(20414),u=t(85893),s=t(95496),l=t(41664),d=t.n(l),f=t(11163),h=t(67294),p=t(87536),m=t(37823),v=t(70589),E=t(77778),g=t(25465),_=t(3437),w=t(52542),A=t(87297),S=t(74092),I=t(14378),R=t(53669),y=t(55208),x=w.Z.object({email:w.Z.string().required(g.C.EMAIL_REQUIRED).email(g.C.EMAIL_INVALID)});e.default=function(){var n=(0,f.useRouter)(),e=(0,I.lm)(),t=(0,h.useState)(!1),l=t[0],g=t[1],w=(0,h.useState)(!1),N=w[0],b=w[1],D=(0,p.cI)({defaultValues:{email:""},mode:"onChange",resolver:(0,s.X)(x)}),C=D.control,T=D.formState,M=D.handleSubmit,O=D.setValue,P=D.setError,Z=T.isSubmitting,U=T.isValid,L=function(){var n=(0,r.Z)((function(n){var t,r,o,i;return(0,c.__generator)(this,(function(a){switch(a.label){case 0:t=n.email,a.label=1;case 1:return a.trys.push([1,3,4,5]),[4,m.default.forgotPassword(t)];case 2:return a.sent(),g(!0),[3,5];case 3:return r=a.sent(),i=(null===r||void 0===r?void 0:r.code)===S.g.ACCOUNT_DISABLED?r.message:(null===r||void 0===r?void 0:r.code)===S.g.INVALID_REGISTED_EMAIL?"This email address is not attached to an account. Please double check and try again.":null!==(o=null===r||void 0===r?void 0:r.message)&&void 0!==o?o:"Something went wrong. Please try again.",P("email",{type:"custom",message:i}),e.error(i),g(!1),[3,5];case 4:return b(!1),[7];case 5:return[2]}}
1))}));return function(e){return n.apply(this,arguments)}}();return(0,h.useEffect)((function(){if(n.isReady){var e=n.query,t=e.expiredPasswordRecovery,r=e.email;b(!!t);var o=Array.isArray(r)?r[0]:r;o&&O("email",o,{shouldValidate:!0,shouldDirty:!0})}}),[n.isReady]),(0,u.jsxs)(R.T3,{className:"p__b--90",children:[(0,u.jsxs)(R.h4,{children:[(0,u.jsx)(R.V1,{children:"Chloe Ting"}),(0,u.jsx)(d(),{href:"/signup",passHref:!0,children:(0,u.jsx)(A.Qj,{$type:_.L.GHOST,style:{backgroundColor:"transparent"},children:"Sign Up"})})]}),N&&(0,u.jsx)(R.CR,{children:(0,u.jsx)("p",{style:{margin:0},children:"Email verification link has expired. Please re-enter your email address and we'll send another verification link."})}),(0,u.jsxs)(R.n5,{onSubmit:M(L),children:[(0,u.jsx)(R.vw,{children:"Password Recovery"}),l?(0,u.jsxs)(R.xv,{children:["Thank you! If the email address you entered is associated with an account, we'll have sent a password reset link."," ",(0,u.jsx)(R.xv,{as:"span",style:{fontWeight:600},children:"Please follow that link to reset your password."})]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(R.xv,{children:"Enter the email address for your account and we'll send you a verification link to reset your password."}),(0,u.jsx)(p.Qr,{name:"email",control:C,render:function(n){var e=n.field.onChange,t=n.fieldState.error,r=(0,a.Z)(n.field,["onChange"]);return(0,u.jsx)(R.Wi,{children:(0,u.jsx)(E.Z,(0,i.Z)((0,o.Z)({},r),{autoFocus:!0,placeholder:"Email address",onKeyDown:function(n){return(" "===n.key||"Space"===n.code)&&n.preventDefault()},onChange:function(n){return e((0,y.c3)(n.target.value))},disabled:Z,error:null===t||void 0===t?void 0:t.message}))})}}),(0,u.jsxs)(R.hE,{children:[(0,u.jsx)(v.Z,{disabled:Z||!U,htmlType:"submit",loading:Z,fullWidth:!0,children:"Send Verification"}),(0,u.jsx)(d(),{href:"/login",passHref:!0,children:(0,u.jsx)(R.rU,{children:"Back to Sign In"})})]})]})]})]})}},77778:function(n,e,t){"use strict";t.d(e,{Z:function(){return U}});var r,o=t(26042),i=t(99534),a=t(85893),c=t(67294),u=t(3437),s=t(14924),l=t(7297),d=t(79531),f=t(87379),h=t(80378),p=t(28598);function m(){var n=(0,l.Z)([""]);return m=function(){return n},n}function v(){var n=(0,l.Z)(["\n  font-size: 14px;\n  font-weight: 600;\n  color: var(--color-primary);\n  margin-bottom: 4px;\n"]);return v=function(){return n},n}function E(){var n=(0,l.Z)(["\n  font-size: 12px;\n  color: ",";\n  font-weight: 400;\n  margin-bottom: 0;\n  margin-top: 4px;\n"]);return E=function(){return n},n}function g(){var n=(0,l.Z)(["\n      padding-right: ","px;\n    "]);return g=function(){return n},n}function _(){var n=(0,l.Z)(["\n  border-radius: 4px;\n  border: var(--border-primary);\n  height: ","px;\n  padding: 8px 15px;\n  transition: border-color 0.3s ease;\n  color: var(--color-primary);\n  font-size: 14px;\n  font-weight: 500;\n  line-height: 1.4285;\n  ","\n\n  input {\n    line-height: 1.4285;\n  }\n\n  &:focus,\n  &:hover {\n    border-color: var(--color-primary) !important;\n    box-shadow: none !important;\n  }\n  &::placeholder {\n    color: (--color-secondary);\n  }\n  ",";\n\n  ","\n\n  ","\n\n  .ant-input-prefix {\n    margin-right: 20px;\n    &-wrapper {\n      input {\n        height: 20px;\n      }\n    }\n  }\n  &.ant-input-affix-wrapper {\n    padding-left: 10px;\n    &-focused {\n      box-shadow: none !important;\n    }\n  }\n"]);return _=function(){return n},n}function w(){var n=(0,l.Z)(["\n  cursor: pointer;\n"]);return w=function(){return n},n}function A(){var n=(0,l.Z)(["\n  position: absolute;\n  top: 0;\n  right: 0;\n  z-index: 1;\n  width: ",";\n  height: ",";\n  display: flex;\n  justify-content: center;\n  align-items: center;\n"]);return A=function(){return n},n}function S(){var n=(0,l.Z)(["\n  position: relative;\n  min-width: 100px;\n  border-right: 0;\n  text-align: center;\n  display: flex;\n  align-items: center;\n  color: var(--color-secondary);\n\n  span {\n    font-size: 13px;\n    font-weight: 400;\n    opacity: 0.8;\n  }\n"]);return S=function(){return n},n}function I(){var n=(0,l.Z)(["\n  position: relative;\n  display: flex;\n"]);return I=function(){return n},n}var R=(r={},(0,s.Z)(r,u.f.SMALL,40),(0,s.Z)(r,u.f.XSMALL,36),r),y=function(n){var e=n.$size;return R[e]},x=f.ZP.div.withConfig({componentId:"sc-ad72c0ce-0"})(m()),N=f.ZP.p.withConfig({componentId:"sc-ad72c0ce-1"})(v()),b=f.ZP.p.withConfig({componentId:"sc-ad72c0ce-2"})(E(),p.d8),D=(0,f.ZP)(d.Z).withConfig({componentId:"sc-ad72c0ce-3"})(_(),y,(function(n){return n.$isTransparentBg&&"background-color: transparent;"}),(function(n){return n.$error&&"\n      border-color: ".concat(p.d8,";\n      color: ").concat(p.d8,";\n  ")}),(function(n){return n.$hasSuffixIcon&&(0,f.iv)(g(),y)}),(function(n){return n.$isLowerCase&&"input {\n      text-transform: lowercase !important;\n     }\n    "})),C=function(n){var e=n.$inputSize;return"".concat(R[e],"px")}
1,T=(0,f.ZP)(h.Z).withConfig({componentId:"sc-ad72c0ce-4"})(w()),M=f.ZP.div.withConfig({componentId:"sc-ad72c0ce-5"})(A(),C,C),O=f.ZP.div.withConfig({componentId:"sc-ad72c0ce-6"})(S()),P=f.ZP.div.withConfig({componentId:"sc-ad72c0ce-7"})(I()),Z=c.forwardRef((function(n,e){var t=n.className,r=n.label,u=n.error,s=n.isError,l=void 0!==s&&s,d=n.placeholder,f=n.type,h=n.value,p=n.size,m=n.isLowerCase,v=void 0!==m&&m,E=n.prefixContent,g=void 0===E?"":E,_=n.isTransparentBg,w=void 0!==_&&_,A=n.onPressEnter,S=(0,i.Z)(n,["className","label","error","isError","placeholder","type","value","size","isLowerCase","prefixContent","isTransparentBg","onPressEnter"]),I=(0,c.useState)(!0),R=I[0],y=I[1],C="password"===f&&Boolean(h);return(0,a.jsxs)(x,{className:t,children:[r&&(0,a.jsx)(N,{children:r}),(0,a.jsxs)(P,{children:[(0,a.jsx)(D,(0,o.Z)({$hasSuffixIcon:C,ref:e,value:h,placeholder:d,type:"password"!==f?f:R?"password":"text",$error:l,$size:p,$isLowerCase:v,$isTransparentBg:w,prefix:!!g&&(0,a.jsx)(O,{children:(0,a.jsx)("span",{children:g})}),onPressEnter:A},S)),C&&(0,a.jsx)(M,{$inputSize:p,children:(0,a.jsx)(T,{icon:R?"show-eye
1-light":"hidden-eye-light",size:18,onClick:function(){return y((function(n){return!n}))}})})]}),u&&(0,a.jsx)(b,{children:u})]})}));Z.defaultProps={value:"",size:u.f.SMALL};var U=Z},25465:function(n,e,t){"use strict";t.d(e,{C:function(){return c}});var r=t(17746),o=function(n,e){return"".concat(n," must be at least ").concat(e," characters")},i=function(n,e){return"".concat(n," must not be greater than ").concat(e," characters")},a=function(n){return"".concat(n," is required")},c={FIRST_NAME_REQUIRED:a("First name"),USERNAME_REQUIRED:a("Username"),USERNAME_VALIDATE:"Username cannot contain invalid characters",MIN_USERNAME_LENGTH:o("Username",r.ZR),MAX_USERNAME_LENGTH:i("Username",r.Au),USERNAME_WITHIN_24_HOURS:"Please try again after some time as usernames can only be updated once every few days.",USERNAME_EXISTED:"Username is not available",USERNAME_IS_NOT_ALLOWED:"Username is not allowed to use",HUMAN_NAME_REQUIRED:"Name must not have multiple spaces",EMAIL_REQUIRED:a("Email"),EMAIL_INVALID:"Please enter a valid email address",MAX_FIRST_NAME_LENGTH_MESSAGE:i("First name",r.JT),MAX_LAST_NAME_LENGTH_MESSAGE:i("Last name",r.Sr),MIN_PASSWORD_LENGTH:o("Password",r.y4),MAX_PASSWORD_LENGTH:i("Password",r.Rl),CONTAIN_LOWERCASE_REQUIRED:"It should contain at least one lowercase letter",CONTAIN_UPPERCASE_REQUIRED:"It should contain at least one uppercase letter",CONTAIN_LETTER_REQUIRED:"It should contain at least one letter",CONTAIN_NUMBER_REQUIRED:"It should contain at least one number",CONTAIN_CHARACTERS_REQUIRED:"It should contain at least one special character (!@#$&*)",PASSWORD_REQUIRED:a("Password"),CONFIRM_PASSWORD_MATCHED:"Passwords currently do not match.",CONFIRM_PASSWORD_REQUIRED:"Please re-enter your password",GMAIL_SIGNUP_MESSAGE:'Google account users are recommended to click on the "Sign up with Google" button below to login instantly without a password or verification!',TIKTOK_USERNAME_INVALID:"Invalid tiktok username",YOUTUBE_USERNAME_INVALID:"Invalid youtube username"}},17746:function(n,e,t){"use strict";t.d(e,{Au:function(){return d},Cz:function(){return i},D0:function(){return E},De:function(){return m},Dt:function(){return _},Eo:function(){return p},JT:function(){return f},Qc:function(){return w},RZ:function(){return g},Rl:function(){return o},Sr:function(){return h},VO:function(){return s},YM:function(){return u},ZR:function(){return l},_6:function(){return c},bI:function(){return a},x:function(){return v},y4:function(){return r}});var r=8,o=32,i=/^(?!.*  ).*$/,a=/.*(?=.+)[0-9].*$/,c=/.*[a-zA-Z].*/,u=/^[\w\d.]*$/,s=/^[\w\d.-]*$/,l=2,d=40,f=254,h=254,p=/^[A-Za-z0-9]+[A-Za-z0-9._-]*$/,m=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/,v=/^((?:https?:\/\/)?(?:m\.|www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?)?$/,E=254,g=3e3,_=5,w=["gmail.com","icloud.com","hotmail.com","mail.ru","yahoo.com","outlook.com","yandex.ru","live.com","aol.com","me.com","msn.com","googlemail.com","protonmail.com","proton.me","gmx.de","web.de"]},55208:function(n,e,t){"use strict";t.d(e,{FS:function(){return S},K8:function(){return x},Pc:function(){return p},_6:function(){return b},aR:function(){return _},aU:function(){return N},c3:function(){return g},dn:function(){return E},fI:function(){return I},fx:function(){return D},hG:function(){return v},jA:function(){return y},oq:function(){return R},p6:function(){return h},qz:function(){return w},tJ:function(){return m},xZ:function(){return f},zw:function(){return A}});var r=t(27484),o=t.n(r),i=t(1646),a=t.n(i),c=t(79212),u=t.n(c),s=t(37412),l=t.n(s),d=t(11198);o().extend(u()),o().extend(l()),o().extend(a());var f=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return n.join(", ")},h=function(n,e){return n.format(e||"Do MMM YY")},p=function(n){return!!n.match(/^((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu.be))(\/(?:[\w\-]+\?v=|embed\/|v\/)?)([\w\-]+)(\S+)?$/)},m=function(n,e){return e.filter((function(n){return!n.isRemove})).reduce((function(e,t){var r=o()(n.startedAt).startOf("day"),i=o()(n.finishedAt||n.quittedAt).startOf("day"),a=o()(null===t||void 0===t?void 0:t.startedAt).startOf("day"),c=o()((null===t||void 0===t?void 0:t.finishedAt)||(null===t||void 0===t?void 0:t.quittedAt)||new Date(Date.now())).startOf("day");return e||n.id!==(null===t||void 0===t?void 0:t.id)&&(r.isSameOrAfter(a)&&r.isBefore(c)||i.isAfter(a)&&i.isSameOrBefore(c)||a.isSameOrAfter(r)&&a.isBefore(i)||c.isAfter(r)&&c.isSameOrBefore(i))}),!1)},v=function(n,e,t,r){var i=t.reduce((function(e,t){return e||r!==(null===t||void 0===t?void 0:t.id)&&n.isAfter(o()(null===t||void 0===t?void 0:t.startedAt).endOf("day"))&&n.isBefore(o()((null===t||void 0===t?void 0:t.finishedAt)||(null===t||void 0===t?void 0:t.quittedAt)||new Date(Date.now())).startOf("day"))}),!1);return n>o()().endOf("day")||n<o()(e).startOf("day")||i},E=function(n){return(null===n||void 0===n?void 0:n.map((function(n){return n.days})).flat()).filter((function(n){return n.isDone})).length},g=function(n){return n.toLowerCase().replace(/\s+/g,"")},_=function(n,e){return n.join(", ").replace(/, ([^,]*)$/," ".concat(e||"and"," $1"))},w=function(n){return n.replace("_"," ")},A=function(n){var e;if(!(null===n||void 0===n?void 0:n.youtubeData))return"";var t=o().duration(null===n||void 0===n||null===(e=n.youtubeData)||void 0===e?void 0:e.duration),r=t.minutes(),i=t.seconds();return"".concat(r<10?"0".concat(r):r,":").concat(i<10?"0".concat(i):i)},S=function(n){return!!n&&o()().isSame(n,"day")},I=function(n){return new URL(n).origin!==location.origin&&!R(n.toString())},R=function(n){return/^((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube(-nocookie)?\.com|youtu.be))(\/(?:[\w\-]+\?v=|embed\/|live\/|v\/)?)([\w\-]+)(\S+)?$/.test(n)},y=function(n){try{return"true"===localStorage.getItem("".concat(d.d.DISMISSED_STOPPED_PROGRAM_NOTICE,"_").concat(n))}catch(e){return console.error(e),!1}},x=function(n){try{localStorage.setItem("".concat(d.d.DISMISSED_STOPPED_PROGRAM_NOTICE,"_").concat(n),"true")}catch(e){console.error(e)}},N=function(n){var e=n.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return e&&11===e[2].length?e[2]:null},b=function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"s";return"".concat(e).concat(1!==n?t:"")},D=function(n){return n=(n=(n=(n=n.replace(RegExp("(?<!\\]\\()((https?:\\/\\/[^\\s\\[\\]]+))","g"),(function(n,e){return"[".concat(e,"](").concat(e,")")}))).replace(/\[([^\]]+)\]\(([^)]+)\)/g,(function(n,e,t){return"[".concat(e,"](").concat(t,")")}))).replace(/[\n]/g,"\n &nbsp;")).replace(/\n*-{2,}\n*/gm,"\n\n----\n\n")}},52542:function(n,e,t){"use strict";var r=t(7258),o=t(25465),i=t(17746);r.addMethod(r.string,"password",(function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.test("password",n,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this,r=t.path,a=t.createError,c="";return e.length<i.y4&&(c=o.C.MIN_PASSWORD_LENGTH),!c&&e.length>i.Rl&&(c=o.C.MAX_PASSWORD_LENGTH),c||i.bI.test(e)||(c=o.C.CONTAIN_NUMBER_REQUIRED),c||i._6.test(e)||(c=o.C.CONTAIN_LETTER_REQUIRED),!c||a({path:r,message:n||c})}))})),e.Z=r}},function(n){n.O(0,[41664,91033,80173,25070,12903,53669,49774,92888,40179],(function(){return e=64923,n(n.s=e);var e}));var e=n.O();_N_E=e}]);

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.