1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[742],{2036:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/forgot-password",function(){return n(7422)}])},2113:function(e,t,n){"use strict";var r=n(5893);n(7294);t.Z=function(e){var t=e.children,n=e.style;return(0,r.jsx)("div",{className:"w-full flex ".concat(n),children:t})}},3737:function(e,t,n){"use strict";var r=n(5893),s=(n(7294),n(4398));t.Z=function(e){var t=e.required,n=e.type,o=void 0===n?"text":n,u=e.label,a=e.sublabel,l=e.placeholder,i=e.value,c=e.onChange,d=e.style,h=e.disabled,p=e.readOnly;return(0,r.jsxs)("label",{className:d,children:[u,(0,r.jsxs)("span",{className:"text-sm",children:[" ",a]}),(0,r.jsx)(s.Z,{required:t,type:o,placeholder:l,value:i,onChange:c,className:d,style:d,disabled:h,readOnly:p})]})}},7422:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return Z},default:function(){return S}});var r=n(5893),s=n(7294),o=n(6379),u=n(5443),a=n.n(u),l=n(9055),i=n(7327),c=n(2113),d=n(7568),h=n(6042),p=n(9396),f=n(7582),x=n(3737),m=n(9466),b=n(9531),v=n(4853),y=function(e){var t=e.hintContext,n=e.setHintContext,o=e.setShowText,u=e.t,a=e.tc,l=(0,s.useContext)(b.Z).auth,i=(0,s.useState)(""),c=i[0],y=i[1],g=(0,s.useState)(""),j=g[0],_=g[1],I=(0,s.useState)(""),w=I[0],C=I[1],Z=(0,s.useState)(!0),S=Z[0],N=Z[1],T=(0,s.useState)(null),A=(T[0],T[1]),k=(function(){var e=(0,d.Z)((function(e){return(0,f.__generator)(this,(function(t){return C(""),N(!1),setTimeout((function(){N(!0)}),100),_(e),setTimeout((function(){_(null)}),3e3),[2]}))}))}(),function(){var e=(0,d.Z)((function(e){return(0,f.__generator)(this,(function(t){return A(e),[2]}))}))}(),function(){var e=(0,d.Z)((function(e){var r,s,a;return(0,f.__generator)(this,(function(i){switch(i.label){case 0:if(e.preventDefault(),""===w)return _(u("confirmRecaptcha")),setTimeout((function(){_(null)}),3e3),[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,l.axiosInstance({method:"post",url:"/forgotPassword/getHint",data:{publisherId:c,recaptchaToken:w}})];case 2:return 200===(s=i.sent()).status?(r=null,n((0,p.Z)((0,h.Z)({},t),{pubId:c,pubIdInvalid:!1,securityQuestion:s.data.question,questionId:s.data.hintId}))):(r=u("invalidPubId"),console.log(s.status)),[3,4];case 3:return a=i.sent(),r=a.response&&400===a.response.status&&"VALIDATION"===a.response.data.errorType?u("badRecaptchaError"):u("invalidPubId"),[3,4];case 4:return o(!1),null!=r&&(_(r),setTimeout((function(){_(null)}),3e3)),[2]}}))}));return function(t){return e.apply(this,arguments)}}());return(0,r.jsxs)("form",{onSubmit:k,className:"w-92",children:[(0,r.jsx)(x.Z,{required:!0,placeholder:a("pubId"),value:c,onChange:function(e){return y(e.target.value)}}),(0,r.jsx)("div",{className:"h-[78px]",children:S?(0,r.jsx)(v.Z,{sitekey:"6LeQolAUAAAAAIWAoTmYJiRgQy9R1lsy33QYHWnL",onChange:function(e){return C(e)}}):null}),(0,r.jsx)(m.Z,{type:"submit",label:a("submit"),color:"bg-cnxGreen",textColor:"text-white",style:"poppins-semibold mt-2"}),(0,r.jsx)("div",{className:"text-red-500",dangerouslySetInnerHTML:{__html:j}})]})},g=n(5675),j=n.n(g),_=function(e){var t=e.hintContext,n=e.tc,o=e.t,u=(0,s.useContext)(b.Z).auth,a=(0,s.useState)(!1),l=a[0],i=a[1],c=(0,s.useState)(""),h=c[0],p=c[1],y=(0,s.useState)(""),g=y[0],_=y[1],I=(0,s.useState)(!0),w=I[0],C=I[1],Z=(0,s.useState)(null),S=Z[0],N=Z[1],T=(0,s.useState)(null),A=T[0],k=T[1],P=function(){var e=(0,d.Z)((function(e){return(0,f.__generator)(this,(function(t){return _(""),C(!1),setTimeout((function(){C(!0)}),100),N(e),setTimeout((function(){N(null)}),3e3),[2]}))}));return function(t){return e.apply(this,arguments)}}(),R=function(){var e=(0,d.Z)((function(e){return(0,f.__generator)(this,(function(t){return k(e),[2]}))}));return function(t){return e.apply(this,arguments)}}(),H=function(){var e=(0,d.Z)((function(e){var n,r,s,a,l,c;return(0,f.__generator)(this,(function(d){switch(d.label){case 0:return e.preventDefault(),n=!1,r=!1,s=!1,a=!1,""!==g?[3,2]:[4,P(o("confirmRecaptcha"))];case 1:return d.sent(),[3,14];case 2:return d.trys.push([2,4,,5]),i(!0),[4,u.axiosInstance({method:"post",url:"/forgotPassword/validateHint",data:{publisherId:t.pubId,hintId:t.questionId,hintAnswer:h,recaptchaToken:g}})];case 3:return l=d.sent(),r=!0,s=200===l.status,[3,5];case 4:return void 0!==(c=d.sent()).response&&400===c.response.status&&"VALIDATION"===c.response.data.errorType?n=!0:(r=!0,s=!1,a=void 0===c.response||500===c.response.status),[3,5];case 5:return i(!1),n?[4,P(o("badRecaptchaError"))]:[3,7];case 6:return d.sent(),[3,14];case 7:return s?[3,12]:r?a?[4,P(o("internalError"))]:[3,9]:[3,11];case 8:return d.sent(),[3,11];case 9:return[4,P(o("invalidRecoveryResponse"))];case 10:d.sent(),d.label=11;case 11:return[3,14];case 12:return[4,R(o("validRecoveryResponse"))];case 13:d.sent(),d.label=14;case 14:return[2]}}
1))}));return function(t){return e.apply(this,arguments)}}();return(0,r.jsxs)("div",{children:[A?null:(0,r.jsxs)("form",{onSubmit:H,className:"w-92 ",children:[(0,r.jsx)(x.Z,{placeholder:n("pubId"),value:t.pubId,style:"font-light mb-4 block",readOnly:!0}),(0,r.jsx)(x.Z,{placeholder:o("recoveryQuestion"),value:t.securityQuestion,style:"font-light mb-4 block",readOnly:!0}),(0,r.jsx)(x.Z,{required:!0,placeholder:o("recoveryAnswer"),value:h,style:"font-light mb-4 block",onChange:function(e){return p(e.target.value)}}),(0,r.jsx)("div",{className:"h-[78px]",children:w?(0,r.jsx)(v.Z,{sitekey:"6LeQolAUAAAAAIWAoTmYJiRgQy9R1lsy33QYHWnL",onChange:function(e){return _(e)}}):null}),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(m.Z,{type:"submit",label:n("submit"),color:"bg-cnxGreen",textColor:"text-white",style:"poppins-semibold mt-2"}),l?(0,r.jsx)("div",{className:"h-8 w-8 mt-2 relative",children:(0,r.jsx)(j(),{src:"/images/loader.gif",layout:"fill"})}):null]})]}),S?(0,r.jsx)("div",{className:"rounded-md border-2 p-4 bg-primaryRed text-red-500",style:{backgroundColor:"#ffdede",borderColor:"#EF4444"},dangerouslySetInnerHTML:{__html:S}}):null,A?(0,r.jsx)("div",{className:"rounded-md border-2 p-4",style:{backgroundColor:"#a7f3d0",borderColor:"#10b981"},dangerouslySetInnerHTML:{__html:A}}):null]})},I=function(e){var t=e.t,n=e.tc,s=e.setShowText,o=e.hintContext,u=e.setHintContext;return o.pubIdInvalid?(0,r.jsx)(y,{hintContext:o,setHintContext:u,setShowText:s,t:t,tc:n}):(0,r.jsx)(_,{hintContext:o,tc:n,t:t})},w=n(1561),C=n(3387),Z=!0,S=function(){var e=(0,C.$G)("forgot-password").t,t=(0,C.$G)("common").t,n=(0,s.useState)({pubId:"",pubIdInvalid:!0,securityQuestion:"",questionId:""}),u=n[0],d=n[1],h=(0,s.useState)(!0),p=h[0],f=h[1];return(0,r.jsxs)(o.Z,{children:[(0,r.jsxs)(a(),{children:[(0,r.jsx)("title",{children:"Publisher Portal Forgot Password"}),(0,r.jsx)("meta",{name:"description",content:"Publisher Portal Forgot Password"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsx)(l.Z,{display:!1,t:t}),(0,r.jsxs)(i.Z,{children:[(0,r.jsx)("div",{className:"poppins-semibold text-3xl mb-4",children:e("forgotPassword")}),p?(0,r.jsx)("p",{className:"poppins-extralight mb-2 text-sm",children:e("p1")}):null,(0,r.jsx)(c.Z,{style:" flex-col md:flex-row",children:(0,r.jsx)(I,{t:e,tc:t,hintContext:u,setHintContext:d,setShowText:f})})]}),(0,r.jsx)(w.Z,{t:t})]})}},5675:function(e,t,n){e.exports=n(8045)}},function(e){e.O(0,[866,13,518,45,49,638,774,888,179],(function(){return t=2036,e(e.s=t);var t}));var t=e.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.