1"use strict";(self.webpackChunksalesblink_react_web=self.webpackChunksalesblink_react_web||[]).push([[1304],{43566:()=>{},61304:(t,e,n)=>{n.r(e),n.d(e,{MagicSignin:()=>r});var i=n(82483),a=n(8118),s=n.n(a),c=n(98520),o=(n(43566),n(56723));function r(t){const e=(0,c.qN)(),n=(0,i.useRef)((0,i.useContext)(c.cy)),[a,r]=(0,i.useState)({type:"success",title:"Using The Magic",text:"Signing you in now..."});return(0,i.useEffect)((()=>{const t=new URLSearchParams(window.location.search),i=t.get("token"),a=t.get("redirect"),c={type:"error",title:"Magic Link is invalid",text:"Please generate a new link and try again",buttonLink:"/signin",buttonText:"Back to Sign In"};a&&window.sessionStorage.setItem("postAuthRedirect",a),i?async function(){try{const t=await s().post("/api/auth/magic/verify",{token:i});t.data["2fa_required"]?e("/signin/otp?token=".concat(t.data.token)):200===t.status?n.current.signin(t):r(c)}catch(t){r(c)}}():r(c)}),[]),(0,o.jsx)(c.iK,{children:(0,o.jsx)(c.fI,{children:(0,o.jsx)("div",{style:{width:"28em",margin:"0 auto"},children:(0,o.jsx)(c.QB,{type:a.type,title:a.title,text:a.text,buttonText:a.buttonText,buttonLink:a.buttonLink})})})})}}}]); 2//# sourceMappingURL=1304.c7af9e3f.chunk.js.map
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.