1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[617],{1241:_=>{_.exports={wrapper:"PasswordStrength_wrapper__zxE7c",bar:"PasswordStrength_bar__URl_F","bar-progress":"PasswordStrength_bar-progress__agnFo",text:"PasswordStrength_text__7OeVH"}},25079:(_,o,e)=>{"use strict";e.d(o,{A:()=>a});var s=e(37876),r=e(14232),t=e(46015),i=e.n(t),m=e(15039),f=e.n(m),n=e(62159);let a=_=>{let{infoMessage:o,inInput:e}=_,t=(0,r.useRef)(null),[m,a]=(0,r.useState)(!1);return(0,s.jsxs)("div",{className:f()(i()["form__info-message-icon"],e&&i()["in-input"]),ref:t,children:[(0,s.jsx)("i",{onClick:()=>a(!0)}),m&&(0,s.jsxs)("div",{className:i()["form__info-message"],children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:i()["form__info-message__close"],onClick:()=>a(!1)}),(0,s.jsx)("span",{className:i()["form__info-message__title"],children:o.title}),(0,s.jsx)(n.A,{content:o.description})]}),(0,s.jsx)("span",{className:i()["form__info-message__bg"],onClick:()=>a(!1)})]})]})}},31577:(_,o,e)=>{"use strict";e.r(o),e.d(o,{__N_SSP:()=>h,default:()=>w});var s=e(37876),r=e(15315),t=e(14232),i=e(91408),m=e(71090),f=e(64241),n=e.n(f),a=e(66442),l=e(16296),d=e(88992),c=e(38519),u=e(15039),p=e.n(u),b=e(67099),g=e(65641);let x=i.Ik().shape({pass:i.Yj().required(a.aX.empty).test("is-complex","Password it too simple",_=>g.NR.test(_)),pass_confirm:i.Yj().oneOf([i.KR("pass"),null],a.aX.notMatch).required(a.aX.empty)});var h=!0;let w=_=>{let{formActive:o}=_,e=(0,l.useRouter)(),[i,f]=(0,t.useState)(null),[u,h]=(0,t.useState)(!1),[w,k]=(0,t.useState)(""),[v,j]=(0,t.useState)(""),{register:N,control:y,handleSubmit:P,watch:S,formState:{errors:A}}=(0,d.mN)({resolver:(0,m.t)(x)}),T=S("pass");return(0,t.useEffect)(()=>{let _=atob(new URLSearchParams(window.location.search).get("cid")).split("||");k(_[0]),j(_[1])}),(0,s.jsx)(r.A,{metaTitle:"Set new password: Pathways Global Innovation Grant",formActive:o.isActive,children:(0,s.jsxs)("main",{children:[(0,s.jsx)("form",{className:p()(n().form,n()["form-reset"]),onSubmit:P(_=>{h(!0);let o={name:w,temp_pass:v,new_pass:_.pass};for(let _=0;_<a.yc.length;_++)f(null),fetch("".concat(a.yc[_],"/user/lost-password-reset?_format=json"),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(o)}).then(_=>{if(h(!1),_.status>=400)return Promise.reject(_);e.push("/sign-in")}).catch(_=>{_.json().then(_=>{_&&_.message?f(_.message):f(_)})})}),children:(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:n().form__title,children:"Set new password"}),(0,s.jsx)("p",{className:n().form__description,children:"Your password has been reset. Please set your new password."}),(0,s.jsxs)("div",{className:n().form__fields,children:[(0,s.jsx)(c.A,{type:"password",inputName:"pass",placeholder:"Your new password",errors:A,register:N,watch:S,infoMessage:{title:"Password",description:"Password rules: The password must have at least 8 characters, at least 1 digit(s), at least 1 lower case letter(s), at least 1 upper case letter(s), at least 1 non-alphanumeric character(s) such as *, -, or #."}}),T&&(0,s.jsx)(g.Ay,{password:T}),(0,s.jsx)(c.A,{type:"password",inputName:"pass_confirm",placeholder:"Repeat your new password",errors:A,register:N,watch:S})]}),(0,s.jsx)("div",{className:n().form__action_buttons,children:(0,s.jsx)("input",{type:"submit",value:"Set new password",className:n()["form__submit-form"],disabled:!S("pass")})})]})}),u?(0,s.jsx)(b.A,{}):null]})})}},38519:(_,o,e)=>{"use strict";e.d(o,{A:()=>l});var s=e(37876);e(14232);var r=e(64241),t=e.n(r),i=e(71577),m=e.n(i),f=e(15039),n=e.n(f),a=e(25079);let l=_=>{var o;let{type:e,inputName:r,disabled:i,placeholder:f,errors:l,register:d,watch:c,infoMessage:u,defaultValue:p,variant:b="default",customError:g,className:x}=_;return(0,s.jsxs)("div",{className:t()["form__field-group"],children:[(0,s.jsxs)("div",{className:n()(t().form__input,u&&t()["form__input--with-info"],c(r)&&t().focus,(l[r]||!!g)&&t()["form__field-error"],x),children:[(0,s.jsx)("input",{className:n()(t().input,i&&"adobe_name"===b&&m()["input__adobe--disabled"]),disabled:i,type:e,defaultValue:"date"===e?p?new Date(p):new Date:p,...d(r),onKeyPress:_=>{"tel"===e&&(_.which<48||_.which>57)&&_.preventDefault()}}),(0,s.jsx)("span",{className:n()(t().placeholder,i&&"adobe_name"===b&&m()["placeholder__adobe--disabled"]),children:f})]}),(l[r]||!!g)&&(0,s.jsx)("div",{className:t()["form__field-error-message"],children:(null==(o=l[r])?void 0:o.message)||g}),u&&(0,s.jsx)(a.A,{infoMessage:u,inInput:!0})]})}},46015:_=>{_.exports={"form__info-message-icon":"FormInfoMessage_form__info-message-icon__VhsaD","in-input":"FormInfoMessage_in-input__6F2Bp","form__info-message":"FormInfoMessage_form__info-message__H8Yh7","form__info-message__close":"FormInfoMessage_form__info-message__close__rv0g8","form__info-message__bg":"FormInfoMessage_form__info-message__bg__LAgpG","form__info-message__title":"FormInfoMessage_form__info-message__title__eNjsD"}},49206:(_,o,e)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/set-new-password",function(){return e(31577)}])},62159:(_,o,e)=>{"use strict";e.d(o,{A:()=>t});var s=e(37876);e(14232);var r=e(12227);let t=_=>{let{content:o,className:e="",tagName:t="p"}=_;return(0,s.jsx)(t,{className:e,dangerouslySetInnerHTML:{__html:r.A.sanitize(o,{ADD_ATTR:["target"]})}})}},64241:_=>{_.exports={form:"forms_form__pqoZX",disabled:"forms_disabled__7mBEP","form--no-padding-top":"forms_form--no-padding-top__H18tS","form-reset":"forms_form-reset__jRmPJ",form__title:"forms_form__title__7_p_W","form__title--center":"forms_form__title--center__vDFcf","form__title--no-margin":"forms_form__title--no-margin__LrALS","form__title__info-box":"forms_form__title__info-box__xgook",form__description:"forms_form__description__yVNKI","form__description-link":"forms_form__description-link__ufY6C","form__description--center":"forms_form__description--center__i5bzB","form__section-title":"forms_form__section-title__w1MMO","form__section-title--left":"forms_form__section-title--left__TsMxi","form__section-title--big":"forms_form__section-title--big__LL4gj","form__section-title--contact":"forms_form__section-title--contact__AiDJm","form__section-title--in-status-box":"forms_form__section-title--in-status-box__brRj4","form__fields--centered":"forms_form__fields--centered__NXTe7","form__section-subtitle":"forms_form__section-subtitle__yPuhC","form__section-subtitle--spacing":"forms_form__section-subtitle--spacing__Bhv2M","form__section-text":"forms_form__section-text__n4SCo","form__section-text--small":"forms_form__section-text--small__CXVGt","form__section-text--info":"forms_form__section-text--info__zuw2_","form__section-buttons":"forms_form__section-buttons__Rjkbz","form__file-link":"forms_form__file-link__pkUV
15","form__file-link__subtitle":"forms_form__file-link__subtitle__LLhId",form__fields:"forms_form__fields__nd_KR","form__fields-half":"forms_form__fields-half__jxsxr","form__fields-description":"forms_form__fields-description__9OzVQ","info-lists":"forms_info-lists__ZTJWg","form__field-group":"forms_form__field-group__X0gIC","form__field-group--center":"forms_form__field-group--center__QuGZg","form__field-group--disabled":"forms_form__field-group--disabled__cU4sE","form__field-error":"forms_form__field-error__1HB3P","form__field-error-message":"forms_form__field-error-message__rdqfU","form__send-error":"forms_form__send-error__YbHkd","form__send-ok":"forms_form__send-ok__JUj5F",form__action_buttons:"forms_form__action_buttons__eXqUv","btn-secondary":"forms_btn-secondary__ikQOR","form__action_buttons--no-margin-bottom":"forms_form__action_buttons--no-margin-bottom__vVSOy","form__action_buttons--no-margin-on-mobile":"forms_form__action_buttons--no-margin-on-mobile__nIFlP","form__action_buttons--center":"forms_form__action_buttons--center__yO2Kk","form__submit-form":"forms_form__submit-form__K6LPX","form__submit-form--loader":"forms_form__submit-form--loader__I6PMT",load2:"forms_load2__iG3S1","form__submit-form--invalid":"forms_form__submit-form--invalid__4gr41","form__submit-form--small":"forms_form__submit-form--small__x9vv0","form__submit-form--secondary":"forms_form__submit-form--secondary__F9PUb","form__bottom-link":"forms_form__bottom-link___LpOX",form__details:"forms_form__details__0klzc","form__details--last":"forms_form__details--last__68_Vx","form__details-title":"forms_form__details-title__mBygt","form__details-title--center":"forms_form__details-title--center__H_Ikc","form__details-title--top":"forms_form__details-title--top__xsDrr","form__details-title--small":"forms_form__details-title--small__u78Z8","form__details-title--in-status-box":"forms_form__details-title--in-status-box__7tZVJ","form__details-title--small-font":"forms_form__details-title--small-font__lcva8","form__details-title--top-space":"forms_form__details-title--top-space__Ywwb_","form__details-label":"forms_form__details-label__uU30z","form__details-text":"forms_form__details-text__6H9C_","form__details-text--word-break":"forms_form__details-text--word-break__DyEM7","form__details-text--in-status-box":"forms_form__details-text--in-status-box__HQv8p","form__details--in-status-box":"forms_form__details--in-status-box__F_Pzz","form__agreement-box":"forms_form__agreement-box__7oCqG",form__risks:"forms_form__risks__U7m94",form__milestones:"forms_form__milestones__97usd","form__risks-text":"forms_form__risks-text__iMU70","form__milestones-text":"forms_form__milestones-text__aWM2Y","form__textarea-counter":"forms_form__textarea-counter__zG7i6","form__textarea-counter--error":"forms_form__textarea-counter--error__lPUO6","form__hidden-content":"forms_form__hidden-content__MoUwT","form__hidden-content--show":"forms_form__hidden-content--show__LNvbF","form__toggle-btn":"forms_form__toggle-btn__shkeW","form__download-btn":"forms_form__download-btn__AvvB5","form__download-wrapper":"forms_form__download-wrapper__3gbPR","form__download-link":"forms_form__download-link__OxUkR",form__checkboxes:"forms_form__checkboxes__0BGTg",form__row:"forms_form__row__uHWNc","form__half-row":"forms_form__half-row__zoXL3","form__row-details":"forms_form__row-details__fs5wZ",form__summary:"forms_form__summary__ZA4tO","form__confirm-application":"forms_form__confirm-application__a6hBE",form__alert:"forms_form__alert__Y6Z9c","form__adobe-info":"forms_form__adobe-info__TpJov","form__text-link":"forms_form__text-link__Pszkr",row:"forms_row__G9QAd",col:"forms_col__QxJWn","files-list":"forms_files-list__E9Lb4","label-upload":"forms_label-upload__ilWgo","label-upload--second":"forms_label-upload--second__cLoiT","form__details-risk-plans":"forms_form__details-risk-plans__XHpyF","form__details-text-wide":"forms_form__details-text-wide__OmZZy",form__input:"forms_form__input__odKLJ",focus:"forms_focus__LZw3U",input:"forms_input__9GrRj","form__select--with-info":"forms_form__select--with-info___e4BB","form__input--with-info":"forms_form__input--with-info__neK1N",placeholder:"forms_placeholder__ndPP0","field-textarea__description":"forms_field-textarea__description__xEEe_",budget__description:"forms_budget__description__65nGk","budget__description--default":"forms_budget__description--default__i_T3C","budget__description--small":"forms_budget__description--small__i4YQo","budget__hidden-content":"forms_budget__hidden-content__WhieD","budget__hidden-content--is-visible":"forms_budget__hidden-content--is-visible__wTwht",budget__textarea:"forms_budget__textarea__1ViOK","budget__textarea-title":"forms_budget__textarea-title__fHMu6",budget__select:"forms_budget__select__mI0HS","budget__select-hidden-content":"forms_budget__select-hidden-content__Pwd6D","budget__select-hidden-content--is-visible":"forms_budget__select-hidden-content--is-visible__sKeDL",budget__upload:"forms_budget__upload__gFqiL","budget__upload-section":"forms_budget__upload-section___TNt4","budget__margin-bottom":"forms_budget__margin-bottom__S0gCa","budget__info-box":"forms_budget__info-box__LxyAN","budget__info-box--upload":"forms_budget__info-box--upload__d4xVR","budget__info-box--wrapper":"forms_budget__info-box--wrapper__lOHhQ","no-margin-top":"forms_no-margin-top__j3rUJ","no-margin-bottom":"forms_no-margin-bottom__8rLtC",hr__40:"forms_hr__40__EI2nx",hr__confirm:"forms_hr__confirm__UNi3_"}},65641:(_,o,e)=>{"use strict";e.d(o,{Ay:()=>a,NR:()=>f});var s=e(37876),r=e(14232),t=e(1241),i=e.n(t);
1let m={weak:{text:"Password is too weak",progress:10,color:"red"},strong:{text:"Password is too weak",progress:75,color:"#2424b1"},Vstrong:{text:"Password is strong",progress:100,color:"#54a254"}},f=RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*])(?=.{8,})"),n=RegExp("^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})");function a(_){let{password:o}=_,[e,t]=(0,r.useState)(m.weak);return(0,r.useEffect)(()=>{f.test(o)?t(()=>m.Vstrong):n.test(o)?t(m.strong):t(m.weak)},[o]),(0,s.jsx)(s.Fragment,{children:o&&e&&(0,s.jsxs)("div",{className:i().wrapper,children:[(0,s.jsx)("div",{className:i().text,children:null==e?void 0:e.text}),(0,s.jsx)("div",{className:i().bar,children:(0,s.jsx)("div",{className:i()["bar-progress"],style:{width:"".concat(e.progress,"%"),backgroundColor:e.color}})})]})})}},71577:_=>{_.exports={form__input:"InputText_form__input__sIK7T",focus:"InputText_focus__8cdC7",input:"InputText_input__ssWIU","input__adobe--disabled":"InputText_input__adobe--disabled__dMkD7","placeholder__adobe--disabled":"InputText_placeholder__adobe--disabled__zprrm"}}},_=>{_.O(0,[5695,2227,9759,5315,1837,636,6593,8792],()=>_(_.s=49206)),_N_E=_.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.