PageSourceSearch

https://www.resilienceatlas.org/_next/static/chunks/pages/profile-settings-52a3f19644074fcb.js

js resilienceatlas.org collected 2026-10-03 19:57:10 UTC 3,181 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[660],{467:function(n,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile-settings",function(){return a(37146)}])},37146:function(n,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return E},default:function(){return S}});var e=a(14140),s=a(89736),i=a(34357),r=a(89227),o=a(75186),l=a(52352),u=a(38470),c=a(68112),d=a(33578),m=a(99318),f=a(56468),_=a(9189),j=a.n(_),x=a(91946),h=a(73102),p=a(37845),v=a(62028),b=a(57579),w=function(n){var t,a,s,i=n.user,r=n.handleSubmit,o=n.submitting,l=(0,p.NT)();return(0,e.jsxs)(x.Z,{onSubmit:r,children:[(0,e.jsx)(h.Z,{component:v.Z,type:"email",name:"email",label:(0,e.jsx)(p.T,{_str:"Email"}),autoFocus:!0,defaultValue:null!==(s=null===(t=i.data)||void 0===t?void 0:t.email)&&void 0!==s?s:""}),!!i.unconfirmed&&(0,e.jsx)("div",{children:(0,e.jsx)(p.T,{_str:"Currently waiting confirmation for: {email}",email:null===(a=i.data)||void 0===a?void 0:a.email})}),(0,e.jsx)(h.Z,{component:v.Z,type:"password",name:"password",label:(0,e.jsx)("span",{children:(0,e.jsx)(p.T,{_str:"Password {leave_it_blank}",_comment:"Password <em>(leave blank if you don't want to change it)</em>",leave_it_blank:(0,e.jsx)("em",{children:(0,e.jsx)(p.T,{_str:"(leave blank if you don't want to change it)",_comment:"Password <em>(leave blank if you don't want to change it)</em>"})})})}),autoComplete:"off"}),(0,e.jsx)(h.Z,{component:v.Z,type:"password",name:"password_confirmation",label:(0,e.jsx)(p.T,{_str:"Password confirmation"}),autoComplete:"off"}),(0,e.jsx)(b.Z,{loading:o}),(0,e.jsx)("div",{className:"actions",children:(0,e.jsx)("input",{className:j()("btn-submit",{"is-loading":o}),type:"submit",name:"commit",value:l("Update"),disabled:o})})]})},T=(0,o.$j)((function(n){return{user:n.user,initialValues:{email:n.user.email}}})),g=(0,d.Z)({form:"ProfileSettingsForm",asyncValidate:(0,f.a)(m.Uw),onSubmit:m.s2,onSubmitSuccess:function(n,t){return t((0,m.Zt)())}}),k=(0,c.qC)(T,g)(w),N=a(36649),Z=a(64295),y=function(n){var t=n.user,a=n.translations,o=n.setTranslations,l=n.loadUserData;(0,Z.w)({setTranslations:o,translations:a});var c=(0,i.useRouter)(),d=(0,u.$)(t);return(0,s.useEffect)((function(){!t.data&&t.auth_token&&l()}),[t,l]),(0,s.useEffect)((function(){d||c.push("/")}),[d,c]),(0,e.jsx)("div",{className:"l-content",children:(0,e.jsx)(r.X2,{children:(0,e.jsxs)("div",{className:"m-user-form",children:[!t.data&&(0,e.jsx)("div",{className:"is-loading"}),!!t.data&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("h2",{children:(0,e.jsx)(p.T,{_str:"Edit {first_name} {last_name}",first_name:t.data.first_name,last_name:t.data.last_name})}),(0,e.jsx)(k,{}),(0,e.jsx)("button",{type:"button",onClick:c.back,children:(0,e.jsx)(p.T,{_str:"Back"})})]})]})})})};y.Layout=function(n,t){return(0,e.jsx)(N.Z,{pageTitle:t["Profile settings"],children:n})};var P={setTranslations:l.Yh,loadUserData:m.Zt},E=!0,S=(0,o.$j)((function(n){return{user:n.user}}),P)(y)},38470:function(n,t,a){"use strict";a.d(t,{$:function(){return s}});var e=a(99318),s=function(n){return!!(0,e.LP)()}}},function(n){n.O(0,[181,227,678,840,551,774,888,179],(function(){return t=467,n(n.s=t);var t}));var t=n.O();_N_E=t}]);

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.