PageSourceSearch

https://www.joincocoon.com/_next/static/chunks/pages/passwords/recover-f224ca638966739a.js

js joincocoon.com collected 2026-10-05 18:07:56 UTC 2,503 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[570],{19573:function(s,r,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/passwords/recover",function(){return e(40630)}])},40630:function(s,r,e){"use strict";e.r(r),e.d(r,{__N_SSG:function(){return u}});var o=e(85893),a=e(92145),t=e(11163),l=e(88902),n=e(64881),d=e(32358),c=e(20314),w=e(25772),i=e(22517),m=e(68287),u=!0;r.default=()=>{let s=(0,t.useRouter)(),r=(0,a.I0)(),{query:e}=s,{customerId:u,email:f,resetToken:p}=e;(null===u||null===p||null===f)&&s.replace("/");let{current:P}=(0,a.v9)(s=>s.users),{getCurrentUser:v}=(0,a.v9)(s=>s.status),{updatePassword:h}=(0,a.v9)(s=>s.errors),b=(0,l.TA)({initialValues:{password:"",confirmPassword:""},validate:s=>{let r={};return s.password.length<8&&(r.password=i.Z.t("PasswordsRecover.form.errors.passwordLength")),s.confirmPassword.length<8&&(r.confirmPassword=i.Z.t("PasswordsRecover.form.errors.passwordLength")),s.password.length>=8&&s.confirmPassword.length>=8&&s.password!==s.confirmPassword&&(r.confirmPassword=i.Z.t("PasswordsRecover.form.errors.passwordMismatch")),r},onSubmit:s=>{r((0,n.M4)(u,s.password,p))},validateOnChange:!1});return(0,m.Z)(v,"PENDING","FULFILLED",()=>{P&&s.replace("/")}),(0,o.jsx)(c.Ml,{variant:w.X.A,children:(0,o.jsxs)("form",{className:"PasswordsRecover__form flex mxauto px2 flex-col col-12 sm:col-6 lg:col-4 w100",onSubmit:b.handleSubmit,children:[(0,o.jsx)("div",{className:"text-subtitle text-center color-blue-gray pb1 mb1_25",children:i.Z.t("PasswordsRecover.form.title",{email:f})}),(0,o.jsx)(c.nv,{className:"mb1_5",type:"password",label:i.Z.t("PasswordsRecover.form.password"),ariaLabel:i.Z.t("PasswordsRecover.form.password"),name:"password",showLabel:!0,value:b.values.password,onChange:s=>b.setFieldValue("password",s),error:b.errors.password}),(0,o.jsx)(c.nv,{type:"password",label:i.Z.t("PasswordsRecover.form.confirmPassword"),ariaLabel:i.Z.t("PasswordsRecover.form.confirmPassword"),name:"confirmPassword",showLabel:!0,value:b.values.confirmPassword,onChange:s=>b.setFieldValue("confirmPassword",s),error:b.errors.confirmPassword}),h&&(0,o.jsx)("p",{className:"text-cta-small color-red",children:i.Z.t("AuthUserSheet.form.errors.general")}),(0,o.jsx)(c.zx,{type:"submit",variant:"primary-small",className:"self-end mt1_75",label:i.Z.t("PasswordsRecover.form.resetPassword"),ariaLabel:i.Z.t("PasswordsRecover.form.resetPassword"),disabled:v===d.qb.PENDING})]})})}}},function(s){s.O(0,[888,774,179],function(){return s(s.s=19573)}),_N_E=s.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.