PageSourceSearch

https://cmscritic.com/_next/static/chunks/pages/forgot-41c6c20c5bac76ae.js

js cmscritic.com collected 2026-09-24 15:24:22 UTC 12,483 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8625],{35391:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/forgot",function(){return r(500)}])},98605:function(e,t,r){"use strict";var o=r(85893),n=r(67294),a=r(27436);let i=(e,t,r)=>{let o=t?t[e]:null;return!o&&e.includes(".")&&(o=e.split(".").reduce((e,t)=>e&&e[t],t)),o?o.message||r:null};t.Z=e=>{let{label:t,register:r,errors:s,placeholder:c,inputRef:l,getValues:d,customErrorMessage:u,type:p="text",isPassword:m=!1,helperText:f,prependInput:h,appendInput:y,className:v,...g}=e,[b,x]=(0,n.useState)(!1),[w,_]=(0,n.useState)(!1),[C,N]=(0,n.useState)(void 0),S=(0,n.useCallback)(e=>{e&&N(e.clientWidth?"".concat(e.clientWidth-2,"px"):void 0)},[]),j=i((null==r?void 0:r.name)||"",s,u);return(0,o.jsxs)("div",{className:"field-container field-container--".concat(w?"labelFloating":"labelResting"," ").concat(j?"is-invalid":""),children:[(0,o.jsx)("label",{className:"field-label ".concat((null==r?void 0:r.name)&&d&&["",null,void 0].includes(d(r.name))?"field-label--empty":""," field-label--").concat(w?"floating":"resting"," ").concat(h?"field-label--has-prepend":""),htmlFor:null==r?void 0:r.name,children:t}),(0,o.jsxs)("div",{className:"position-relative",children:[h&&(0,o.jsx)("div",{ref:S,className:"field-prepend d-flex align-items-end position-absolute left-0 bottom-0 top-0 p-2 ms-1",children:h}),(0,o.jsx)("input",{ref:l,type:m?b?"text":"password":p,placeholder:c,className:"Input ".concat(w?"Input--focused":""," ").concat(v),style:{paddingLeft:C},...r,onFocus:()=>_(!0),onBlur:e=>{null==r||r.onBlur(e),_(!1)},...g}),m&&(0,o.jsx)(a.Z,{onClick:()=>x(!b),className:"toggle-password no-min-size text-dark position-absolute right-0 bottom-0 top-0 p-2 me-1 z-index-1",children:(0,o.jsx)("span",{className:"far fa-eye".concat(b?"-slash":"")})}),y&&(0,o.jsx)("div",{className:"field-append d-flex align-items-center position-absolute right-0 bottom-0 top-0 p-2 me-1",children:y})]}),j&&(0,o.jsx)("span",{className:"invalid-feedback",children:"".concat(j)}),f&&(0,o.jsx)("span",{className:"small d-block mt-2",children:f})]})}},2966:function(e,t,r){"use strict";r.d(t,{M:function(){return n},d$:function(){return c},zh:function(){return l}});var o,n,a=r(85893),i=r(50259);let s="6LfYDgkoAAAAAGEttsyRzx5d81HPQCl-rHR0RvnM",c=!!s;(o=n||(n={})).sign_in="sign_in",o.sign_up="sign_up",o.completes_sign_up="completes_sign_up",o.resend_verify_email="resend_verify_email",o.reset_password="reset_password",o.forgot_password="forgot_password",o.contact_form_submit="contact_form_submit",o.advertising_form_submit="advertising_form_submit",o.product_form_submit="product_form_submit",o.award_nomination_form_submit="award_nomination_form_submit",o.award_voting_form_submit="award_voting_form_submit";let l=e=>t=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(i.pm,{reCaptchaKey:s||"",children:(0,a.jsx)(e,{...t})})})},500:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return x}});var o=r(85893),n=r(41664),a=r.n(n),i=r(67294),s=r(50259),c=r(87536),l=r(40782),d=r(57239),u=r(27436),p=r(98605),m=r(2966),f=r(75643),h=r(33718),y=r(73786);let v=(0,m.zh)(()=>{let[e,t]=(0,i.useState)(!1),[r]=(0,d.zN)(),[n,a]=(0,i.useState)(null),{executeRecaptcha:v}=(0,s.xX)(),{register:g,handleSubmit:b,getValues:x,setError:w,clearErrors:_,reset:C,formState:{errors:N,isSubmitting:S,isSubmitSuccessful:j}}=(0,c.cI)(),E=async e=>{try{if(!v&&m.d$){w("recaptcha-error",{type:"custom",message:"Execute recaptcha not yet available"});return}let o=v?await v(m.M.forgot_password):null;await r({email:e.email,captcha:o}).unwrap(),t(!0),a(null)}catch(e){if(t(!1),w("server-error",{type:"custom",message:"Server Error"}),[f.D.UNPROCESSABLE_ENTITY,f.D.CONFLICT].includes(e.status)){var o;a(null===(o=e.data)||void 0===o?void 0:o.message)}else l.Am.error(h.c)}};return(0,o.jsx)("div",{className:"mt-3",children:e?(0,o.jsxs)("div",{children:[(0,o.jsxs)("p",{children:["Please check your email. An email with instructions to create your password has been sent to"," ",(0,o.jsx)("span",{className:"fw-bold",children:x("email")}),". You may need to wait a few minutes to receive the email, or check your spam or junk folders."]}),(0,o.jsxs)("p",{children:["Didn't get an email?"," ",(0,o.jsx)(u.Z,{onClick:()=>{t(!1),C()},className:"text-primary px-2 border-0 no-min-size",children:"Resend it."})]})]}):(0,o.jsxs)("form",{onSubmit:b(E),children:[(0,o.jsx)("p",{children:"Enter the email address associated with your CMS Critic account. You will receive an email with instructions to set or reset your password."}),(0,o.jsx)("div",{children:(0,o.jsx)(p.Z,{register:g("email",{required:"This field is required",pattern:{value:y.CU,message:"This value is not a valid email"}}),placeholder:"Enter Your Email",label:"Email",getValues:x,errors:N})}),n&&(0,o.jsx)("span",{className:"text-warning small d-block mt-2",children:n}),(0,o.jsx)("div",{className:"text-center mt-4",children:(0,o.jsx)(u.Z,{type:"submit",className:"w-100 rounded-xl text-white fw-bold",ariaLabel:"Continue to reset password",color:"primary",isLoading:S,disabled:S||j,onClick:()=>_(["server-error","recaptcha-error"]),children:"Continue"})})]})})});var g=r(99837);let b=()=>(0,o.jsx)("div",{className:"card-flow-container mt-n5",children:(0,o.jsx)("div",{className:"w-100 mw-lg-600p",children:(0,o.jsxs)("div",{className:"bg-white shadow-lg-only p-3 p-lg-5 rounded-md position-relative",children:[(0,o.jsx)("div",{className:"d-flex justify-content-center align-items-center rounded-pill mt-3 ms-3 position-absolute top-0 left-0 bg-background w-xs-50p h-xs-50p",children:(0,o.jsx)(a(),{href:"/signin",className:"text-dark",children:(0,o.jsx)("span",{className:"fal fa-arrow-left"})})}),(0,o.jsx)("div",{className:" text-center",children:(0,o.jsx)(a(),{href:"/","aria-label":"CMS Critic home",children:(0,o.jsx)("img",{alt:"CMS Critic Logo",src:g.Vh,className:"img-fluid h-xs-80p mx-auto"})})}),(0,o.jsx)("h1",{className:"pb-3 text-center mt-4 pt-2 display-6",children:"Set or reset a password"}),(0,o.jsx)(v,{})]})})});b.getInitialProps=async()=>({pageTitle:"Forgot Password",pageDescription:"Forgot your password? Reset it easily on CMS Critic's Forgot Password page.",excludeTopNav:!0});var x=b},50259:function(e,t,r){"use strict";r.d(t,{pm:function(){return p},xX:function(){return m}});var o,n=r(67294),a=r(34155),i=function(){return(i=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},s=function(e){var t;e?function(e){if(e)for(;e.lastChild;
1)e.lastChild.remove()}("string"==typeof e?document.getElementById(e):e):(t=document.querySelector(".grecaptcha-badge"))&&t.parentNode&&document.body.removeChild(t.parentNode)},c=function(e,t){s(t),window.___grecaptcha_cfg=void 0;var r,o=document.querySelector("#"+e);o&&o.remove(),(r=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))&&r.remove()},l=function(e){var t=e.render,r=e.onLoadCallbackName,o=e.language,n=e.onLoad,a=e.useRecaptchaNet,i=e.useEnterprise,s=e.scriptProps,c=void 0===s?{}:s,l=c.nonce,d=void 0===l?"":l,u=c.defer,p=c.async,m=c.id,f=c.appendTo,h=(void 0===m?"":m)||"google-recaptcha-v3";if(document.querySelector("#"+h))n();else{var y,v="https://www."+((y={useEnterprise:i,useRecaptchaNet:a}).useRecaptchaNet?"recaptcha.net":"google.com")+"/recaptcha/"+(y.useEnterprise?"enterprise.js":"api.js"),g=document.createElement("script");g.id=h,g.src=v+"?render="+t+("explicit"===t?"&onload="+r:"")+(o?"&hl="+o:""),d&&(g.nonce=d),g.defer=!!(void 0!==u&&u),g.async=!!(void 0!==p&&p),g.onload=n,("body"===f?document.body:document.getElementsByTagName("head")[0]).appendChild(g)}},d=function(e){void 0===a||a.env,console.warn(e)};(o||(o={})).SCRIPT_NOT_AVAILABLE="Recaptcha script is not available";var u=(0,n.createContext)({executeRecaptcha:function(){throw Error("GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")}});function p(e){var t=e.reCaptchaKey,r=e.useEnterprise,a=void 0!==r&&r,s=e.useRecaptchaNet,p=void 0!==s&&s,m=e.scriptProps,f=e.language,h=e.container,y=e.children,v=(0,n.useState)(null),g=v[0],b=v[1],x=(0,n.useRef)(t),w=JSON.stringify(m),_=JSON.stringify(null==h?void 0:h.parameters);(0,n.useEffect)(function(){if(t){var e=(null==m?void 0:m.id)||"google-recaptcha-v3",r=(null==m?void 0:m.onLoadCallbackName)||"onRecaptchaLoadCallback";return window[r]=function(){var e=a?window.grecaptcha.enterprise:window.grecaptcha,r=i({badge:"inline",size:"invisible",sitekey:t},(null==h?void 0:h.parameters)||{});x.current=e.render(null==h?void 0:h.element,r)},l({render:(null==h?void 0:h.element)?"explicit":t,onLoadCallbackName:r,useEnterprise:a,useRecaptchaNet:p,scriptProps:m,language:f,onLoad:function(){if(window&&window.grecaptcha){var e=a?window.grecaptcha.enterprise:window.grecaptcha;e.ready(function(){b(e)})}else d("<GoogleRecaptchaProvider /> "+o.SCRIPT_NOT_AVAILABLE)},onError:function(){d("Error loading google recaptcha script")}}),function(){c(e,null==h?void 0:h.element)}}d("<GoogleReCaptchaProvider /> recaptcha key not provided")},[a,p,w,_,f,t,null==h?void 0:h.element]);var C=(0,n.useCallback)(function(e){if(!g||!g.execute)throw Error("<GoogleReCaptchaProvider /> Google Recaptcha has not been loaded");return g.execute(x.current,{action:e})},[g,x]),N=(0,n.useMemo)(function(){return{executeRecaptcha:g?C:void 0,container:null==h?void 0:h.element}},[C,g,null==h?void 0:h.element]);return n.createElement(u.Provider,{value:N},y)}u.Consumer;var m=function(){return(0,n.useContext)(u)};function f(e,t){return e(t={exports:{}},t.exports),t.exports}var h="function"==typeof Symbol&&Symbol.for,y=h?Symbol.for("react.element"):60103,v=h?Symbol.for("react.portal"):60106,g=h?Symbol.for("react.fragment"):60107,b=h?Symbol.for("react.strict_mode"):60108,x=h?Symbol.for("react.profiler"):60114,
1w=h?Symbol.for("react.provider"):60109,_=h?Symbol.for("react.context"):60110,C=h?Symbol.for("react.async_mode"):60111,N=h?Symbol.for("react.concurrent_mode"):60111,S=h?Symbol.for("react.forward_ref"):60112,j=h?Symbol.for("react.suspense"):60113,E=h?Symbol.for("react.suspense_list"):60120,P=h?Symbol.for("react.memo"):60115,R=h?Symbol.for("react.lazy"):60116,$=h?Symbol.for("react.block"):60121,k=h?Symbol.for("react.fundamental"):60117,M=h?Symbol.for("react.responder"):60118,L=h?Symbol.for("react.scope"):60119;function T(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case y:switch(e=e.type){case C:case N:case g:case x:case b:case j:return e;default:switch(e=e&&e.$$typeof){case _:case S:case R:case P:case w:return e;default:return t}}case v:return t}}}function A(e){return T(e)===N}var F={AsyncMode:C,ConcurrentMode:N,ContextConsumer:_,ContextProvider:w,Element:y,ForwardRef:S,Fragment:g,Lazy:R,Memo:P,Portal:v,Profiler:x,StrictMode:b,Suspense:j,isAsyncMode:function(e){return A(e)||T(e)===C},isConcurrentMode:A,isContextConsumer:function(e){return T(e)===_},isContextProvider:function(e){return T(e)===w},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===y},isForwardRef:function(e){return T(e)===S},isFragment:function(e){return T(e)===g},isLazy:function(e){return T(e)===R},isMemo:function(e){return T(e)===P},isPortal:function(e){return T(e)===v},isProfiler:function(e){return T(e)===x},isStrictMode:function(e){return T(e)===b},isSuspense:function(e){return T(e)===j},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===g||e===N||e===x||e===b||e===j||e===E||"object"==typeof e&&null!==e&&(e.$$typeof===R||e.$$typeof===P||e.$$typeof===w||e.$$typeof===_||e.$$typeof===S||e.$$typeof===k||e.$$typeof===M||e.$$typeof===L||e.$$typeof===$)},typeOf:T},z=f(function(e,t){}),O=(z.AsyncMode,z.ConcurrentMode,z.ContextConsumer,z.ContextProvider,z.Element,z.ForwardRef,z.Fragment,z.Lazy,z.Memo,z.Portal,z.Profiler,z.StrictMode,z.Suspense,z.isAsyncMode,z.isConcurrentMode,z.isContextConsumer,z.isContextProvider,z.isElement,z.isForwardRef,z.isFragment,z.isLazy,z.isMemo,z.isPortal,z.isProfiler,z.isStrictMode,z.isSuspense,z.isValidElementType,z.typeOf,f(function(e){e.exports=F})),I={};I[O.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},I[O.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0}}},function(e){e.O(0,[7536,2888,9774,179],function(){return e(e.s=35391)}),_N_E=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.