1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3459],{10545:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return n(14595)}])},64913:function(e,s,n){"use strict";var r=n(85893),t=n(9008),a=n.n(t);s.Z=function(e){var s=e.headTitle;return(0,r.jsx)(a(),{children:(0,r.jsx)("title",{children:s})})}},14595:function(e,s,n){"use strict";n.r(s),n.d(s,{__N_SSP:function(){return b}});var r=n(47568),t=n(97582),a=n(85893),i=n(57434),o=n(40056),l=n(9435),u=n(96456),c=n(33299),d=n(11163),h=n(67294),g=n(10682),f=n(34051),m=n(31555),p=n(35005),x=n(64913),j=n(64261),Z=n(39941),b=!0;s.default=function(e){var s=e.content,n=e.redirectURL,b=e.hostUser,y=e.context,v=(e.resolvedUrl,(0,c.useSession)()),w=(v.data,v.status),_=(0,d.useRouter)(),k=(0,h.useState)(!1),L=k[0],P=k[1],T=(0,h.useState)(""),N=T[0],S=T[1],C=(0,h.useState)(""),E=C[0],I=C[1],U=(0,h.useState)(null),q=U[0],D=U[1],R=(0,h.useState)(null),Y=R[0],z=R[1],A="updatable";if((0,h.useEffect)((function(){y.redirectURL&&z("You must login to access this page.")}),[]),(0,h.useEffect)((function(){L||"authenticated"!=w||_.push("/dashboard")}),[w]),"unauthenticated"===w){var B=function(){var e=(0,r.Z)((function(e){return(0,t.__generator)(this,(function(s){return e.preventDefault(),""==N?(D("Please provide username."),setTimeout((function(){D("")}),3e3)):""==E?(D("Please provide password."),setTimeout((function(){D("")}),3e3)):(P(!0),null==q&&i.ZP.loading({content:"Logging in...",key:A}),(0,c.signIn)("credentials",{login:N,password:E,callbackUrl:null!==n&&void 0!==n?n:"/dashboard",hostUser:b,redirect:!1}).then((function(e){null!==e.error?200===e.status?(D("Your username/password combination was incorrect. Please try again"),setTimeout((function(){return D(null)}),3e3)):(D(e.error),setTimeout((function(){return D(null)}),3e3)):(setTimeout((function(){i.ZP.success({content:"Logged in successfully",duration:2,key:A})}),500),_.push(null!==n&&void 0!==n?n:e.url,null,{shallow:!0}))}))),[2]}))}));return function(s){return e.apply(this,arguments)}}();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x.Z,{headTitle:s.pageTitle}),(0,a.jsx)(Z.Z,{headerImages:s.headerImages}),(0,a.jsxs)(g.Z,{children:[Y&&(0,a.jsx)(o.Z,{className:"mt-3",description:Y,type:"error",showIcon:!0,closable:!0,closeText:"HIDE",onClose:function(){return z(null)}}),(0,a.jsx)(f.Z,{children:(0,a.jsx)(Z.Z,{marquees:s.marquees,displaysSidebar:s.displaysSidebar,marqueeDialogs:s.marqueeDialogs,chatConfig:s.chatConfig,paragraphTop:s.paragraphTop,body:s.body})}),(0,a.jsxs)(f.Z,{children:[(0,a.jsxs)(m.Z,{sm:12,md:6,children:[q&&(0,a.jsx)(o.Z,{message:"Error",description:q,type:"error",showIcon:!0}),(0,a.jsx)("h5",{children:"Already a Member?"}),(0,a.jsx)(l.Z,{layout:"vertical",children:(0,a.jsxs)(f.Z,{className:"justify-content-left",children:[(0,a.jsx)(m.Z,{xs:12,sm:10,children:(0,a.jsx)(l.Z.Item,{label:"Login",name:"username",children:(0,a.jsx)(u.Z,{value:N,onChange:function(e){return S(e.target.value)}})})}),(0,a.jsx)(m.Z,{xs:12,sm:10,children:(0,a.jsx)(l.Z.Item,{label:"Password",name:"password",children:(0,a.jsx)(u.Z.Password,{onChange:function(e){return I(e.target.value)},value:E})})}),(0,a.jsx)(m.Z,{xs:12,sm:10,children:(0,a.jsx)(p.Z,{variant:"secondary",size:"sm",style:{width:"8em"},type:"submit",onClick:B,children:"Login"})}),s.forgotLabel&&s.forgotPageLink&&(0,a.jsxs)(f.Z,{className:"my-3",children:[(0,a.jsx)("h5",{children:s.forgotLabel}),(0,a.jsxs)("p",{children:[(0,a.jsx)("a",{href:s.forgotPageLink,children:"Click here"})," to be emailed your login and password."]})]})]})})]}),s.registerLabel&&s.registerPageLink&&(0,a.jsxs)(m.Z,{sm:12,md:6,children:[(0,a.jsx)("h5",{children:"Not Yet a Member?"}),(0,a.jsx)("p",{children:"It is how we help you best. And Registration is free."}),(0,a.jsx)(p.Z,{variant:"secondary",size:"sm",style:{minWidth:"8em"},children:(0,a.jsx)("a",{href:s.registerPageLink,style:{display:"block",color:"inherit"},children:s.registerLabel})})]})]}),(0,a.jsx)(f.Z,{children:(0,a.jsx)(Z.Z,{paragraphBottom:s.paragraphBottom})})]})]})}return(0,a.jsx)(j.Z,{})}}},function(e){e.O(0,[7604,8529,2441,8872,2697,5092,9941,9774,2888,179],(function(){return s=10545,e(e.s=s);var s}));var s=e.O();_N_E=s}]);
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.