1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e0c060d9-a913-446b-9cfe-7eae1d425566",e._sentryDebugIdIdentifier="sentry-dbid-e0c060d9-a913-446b-9cfe-7eae1d425566")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5226],{94370:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mfa/totp/manual",function(){return n(73151)}])},73151:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return k},default:function(){return Z}});var r=n(52322),o=n(46448),a=n(12866),i=n(55028),l=n(31476);let s=(0,a.ZP)(function(e){return(0,r.jsx)(l.Z,{...e,url:"https://static.swapcard.com/public/images/fe1830bd7d8b4262b46701b07401891c.svg"})}).withConfig({displayName:"copy__StyledIcon",componentId:"sc-7155d8f1-0"})([""]);var c=n(2784),u=n(28021),d=n(15375),p=n(42822),f=n(76235),m=function(e){let{successToastMessage:t,...n}=e,o=(0,d.T_)(),{showToast:a}=(0,f.pm)(),i=function(e){let{onSuccess:t,onError:n}=e,r=(0,c.useRef)(null);async function o(e){try{await navigator.clipboard.writeText(e),await (null==t?void 0:t())}catch(e){null==n||n()}}return{copy:async e=>{var t;let n="string"==typeof e?e:null===(t=r.current)||void 0===t?void 0:t.value;n&&await o(n)},paste:async()=>{let e="";try{e=await navigator.clipboard.readText(),await (null==t?void 0:t(e))}catch(e){null==n||n()}return e},target:r}}({onSuccess:()=>{t&&a(t,{type:f.wD.SUCCESS})}});return(0,r.jsx)(u.ZP,{...n,disabled:!0,readOnly:!0,ref:i.target,right:(0,r.jsx)(p.Z,{type:"button","aria-label":o.copy,onClick:i.copy,children:(0,r.jsx)(s,{})})})},h=n(74134),b=n(52841),y=n(91882),g=n(47042),_=n(56312),x=n(33036);let v=a.ZP.div.withConfig({displayName:"manual-verify__CopyWrapper",componentId:"sc-2df2d02e-0"})(["margin:0 auto;margin-bottom:",";max-width:350px;"],e=>{let{theme:t}=e;return t.spacing[4]});var w=function(e){let{onBack:t,onSetupWithScan:n,onVerifySuccess:a}=e,{onboarding:l}=(0,b.gv)(),{t:s}=(0,_.$G)();return l&&"Auth_TOTPOnboarding"===l.__typename?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y.xE,{onBack:t}),(0,r.jsx)(g.D,{children:s("mfa.setup.totp.manual_title")}),(0,r.jsx)(h.d,{children:s("mfa.setup.totp.manual_description")}),(0,r.jsxs)(v,{children:[(0,r.jsx)(i.Z,{marginBottom:1,htmlFor:"totp-secret",children:s("mfa.setup.totp.secret_label")}),(0,r.jsx)(m,{id:"totp-secret",value:l.secret})]}),(0,r.jsx)(x.Z,{onVerifySuccess:a}),(0,r.jsx)(h.d,{children:(0,r.jsx)(o.ZP,{onClick:n,variant:"LINK","aria-label":s("mfa.setup.totp.qr_code_title"),children:s("mfa.setup.totp.qr_code_title")})})]}):null},j=n(5632),P=n(60251),T=n(84793),k=!0,Z=(0,T.j)((0,P.g)(function(){let e=(0,j.useRouter)();return(0,r.jsx)(w,{onVerifySuccess:()=>e.push("/mfa/success"),onBack:()=>e.push("/mfa/totp"),onSetupWithScan:()=>e.push("/mfa/totp")})}))},33036:function(e,t,n){"use strict";var r=n(67862),o=n(52322),a=n(46448),i=n(28021),l=n(55028),s=n(81548),c=n(56675),u=n(33379),d=n(82778),p=n(12866),f=n(56312),m=n(98320),h=n(52841),b=n(39394);function y(){let e=(0,r._)(["\n mutation VerifyTOTPStrategy($totpToken: String!) {\n strategy: Auth_verifyMFAStrategy(\n challengeResponse: { totpToken: $totpToken, kind: TOTP }\n ) {\n createdAt\n }\n }\n"]);return y=function(){return e},e}let g=p.ZP.form.withConfig({displayName:"verify__Form",componentId:"sc-4e28f2d0-0"})(["max-width:200px;margin:0 auto;"]),_=(0,s.Ps)(y());t.Z=function(e){let{onVerifySuccess:t=()=>{}}=e,n=(0,d.h)(),r=(0,c.x)(),{accountId:s}=(0,h.gv)(),[p,{loading:y}]=(0,u.D)(_,{onError:n,onCompleted:()=>{s&&(0,m.pX)(r,s,e=>[...e,b.UP.TOTP]),t()}}),{t:x}=(0,f.$G)(),v=(0,i.Gl)();return(0,o.jsxs)(g,{onSubmit:e=>{e.preventDefault(),e.stopPropagation(),p({variables:{totpToken:v.value}})},children:[(0,o.jsx)(l.Z,{marginBottom:1,required:!0,htmlFor:"mfa-enter-code",children:x("mfa.totp.enter_code_label")}),(0,o.jsx)(i.ZP,{...v,id:"mfa-enter-code",outerWrapperProps:{marginBottom:6},placeholder:x("mfa.totp.enter_code_placeholder")}),(0,o.jsx)(a.W4,{marginBottom:4,align:"CENTER",children:(0,o.jsx)(a.ZP,{disabled:0===v.value.trim().length,type:"submit","aria-label":x("mfa.totp.verify_code"),loading:y,children:x("mfa.totp.verify_code")})})]})}},42822:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(52322),o=n(2784),a=n(74333),i=n(12866),l=n(31383);let s=i.ZP.div.withConfig({displayName:"label__Label",componentId:"sc-6e446f5d-0"})(["position:absolute;white-space:nowrap;transform:translateX(-50%);left:50%;
1top:25px;font-size:12px;font-weight:600;"]),c=i.ZP.button.withConfig({displayName:"style__Button",componentId:"sc-941cd659-0"})(["border:none;background:none;margin:0;padding:0;display:block;color:",";cursor:pointer;position:relative;outline:0;transition:color 150ms;box-shadow:none;font-size:16px;border-radius:",";","{transition:opacity 150ms;opacity:0;}&:hover{"," ","{opacity:1;}}&:focus-visible{outline:1px solid ",";outline-offset:2px;}",";"],e=>{let{disabled:t,theme:{colors:n}}=e;return t?n.outline.base:n.tertiary.base},e=>{let{theme:t}=e;return t.radius.sm},s,e=>{let{theme:{colors:t},warn:n,disabled:r}=e;return!r&&(0,l.iv)(["color:",";"],n?t.danger.base:t.secondary.base)},s,e=>{let{theme:t}=e;return t.colors.outline.focus},e=>{let{floating:t}=e;return t&&(0,l.iv)(["border-radius:",";height:40px;width:40px;display:flex;align-items:center;justify-content:center;box-shadow:",";background-color:",";"],e=>{let{theme:t}=e;return t.radius.max},e=>{let{theme:t}=e;return t.shadow.md},e=>{let{theme:{colors:t}}=e;return t.surface.base})}),u=(0,o.forwardRef)((e,t)=>{let{children:n,warn:o=!1,label:i,loading:l=!1,...u}=e;return(0,r.jsxs)(c,{ref:t,...u,"aria-label":null!=i?i:u["aria-label"],warn:o,disabled:u.disabled||l,children:[l?(0,r.jsx)(a.Z,{}):n,i&&(0,r.jsx)(s,{children:i})]})});u.displayName="ButtonIcon";var d=u}},function(e){e.O(0,[947,3661,6425,2302,1991,2473,6337,4576,2042,7701,2888,9774,179],function(){return e(e.s=94370)}),_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.