1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[972],{9930:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return f}});var s=r(7191),t=r(9008),i=r.n(t),a=r(7294),c=r(1891),u=r(5850),l=r(4730),o=r(4026),d=r(4211),h=r(5893),f=function(e){(0,s.Z)(e);var n=(0,c.G6)(),r=u.Z.recordLogin.useMutation(),t=(0,a.useState)(!0),f=t[0],g=t[1],m=(0,a.useState)(null),x=m[0],_=m[1],j=(0,a.useState)(!1),p=j[0],v=j[1];(0,a.useEffect)(function(){var e=new URL(window.location.href).searchParams.get("token");null!==e&&n.magicLinks.authenticate(e,{session_duration_minutes:l.C}).then(function(){r.mutate()}).catch(function(e){if(g(!1),"unable_to_auth_magic_link"===e.error_type)v(!0);else{var n;_(null!==(n=e.error_message)&&void 0!==n?n:e.message)}})},[r,n.magicLinks]);var b=null;return f?b=(0,h.jsx)("p",{children:"Authenticating.."}):p?b=(0,h.jsx)(d.Z,{}):x&&(b=(0,h.jsx)(o.Z,{errorMessage:x})),(0,h.jsxs)("div",{className:"bg-zinc-800 p-5 rounded-lg mt-8",children:[(0,h.jsx)(i(),{children:(0,h.jsx)("title",{children:"OnModel | Reset Password"})}),b]})}},4211:function(e,n,r){"use strict";r.d(n,{Z:function(){return a}});var s=r(1664),t=r.n(s),i=r(5893);function a(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{children:"This token has expired."}),(0,i.jsxs)("p",{children:["Please"," ",(0,i.jsx)(t(),{href:"/reset-pass/start",className:"text-cyan-400",children:"reset here again"}),"."]})]})}},4026:function(e,n,r){"use strict";r.d(n,{Z:function(){return t}});var s=r(5893);function t(e){var n=e.errorMessage,r=e.errorMessagesTitle,t=e.errorMessages;return n||t?(0,s.jsxs)("div",{className:"bg-red-100 border border-red-400 text-red-700 px-4 py-3 mb-4 rounded relative w-72",role:"alert",children:[n&&(0,s.jsx)("p",{className:"block sm:inline",children:n}),n&&t&&t.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]}),t&&t.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"block sm:inline",children:r}),(0,s.jsx)("ul",{className:"list-disc list-inside",children:t.map(function(e,n){return(0,s.jsx)("li",{children:e},n)})})]})]}):null}},4730:function(e,n,r){"use strict";r.d(n,{C:function(){return s}});var s=28800},5534:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login-magic-link",function(){return r(9930)}])}},function(e){e.O(0,[774,888,179],function(){return e(e.s=5534)}),_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.