PageSourceSearch

https://social.innovation.net/_next/static/chunks/8848.618193a2e994ee2a.js

js innovation.net collected 2026-10-07 01:47:28 UTC 1,638 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8848],{48848:(e,t,s)=>{s.r(t),s.d(t,{MfaVerifyFlowScreen:()=>i,default:()=>i});var l=s(95155),a=s(12115),o=s(97987),r=s(19983),n=s(40798);s(50205),s(68463),s(92253),s(518);let i=({onClose:e})=>{let{user:t}=(0,o.u)(),s=(0,o.a)(),i=(0,a.useMemo)(()=>t?.mfaMethods.filter(e=>"passkey"!==e||!s.globalDisablePasskeys)??[],[t?.mfaMethods,s.globalDisablePasskeys]),[u,c]=(0,a.useState)(i[0]??null),{init:f,cancel:d,submit:h}=(0,r.u)(),[k,y]=(0,a.useState)(!1),[b,w]=(0,a.useState)(null),[m,S]=(0,a.useState)();(0,a.useEffect)(()=>{c(i[0]??null)},[i]);let g=(0,a.useRef)(!1);async function v(t){S(void 0);try{if(!t||!u)return;await h(u,t),y(!0),S(void 0),e()}catch(e){throw(0,n.t)(e).error}}async function p(t){if("passkey"!==t)try{c(t),await f(t)}catch(e){console.error(e)}else try{c(t);let s=await f(t);if(!s)throw Error("something went wrong");w(s),await h(t,s),y(!0),S(void 0),e()}catch(e){S((0,n.t)(e))}}(0,a.useEffect)(()=>{!g.current&&u&&(g.current=!0,p(u).finally(()=>{g.current=!1}))},[]);let C=()=>{c(null),S(void 0),d(),e()};return t?"passkey"===u?(0,l.jsx)(n.V,{account:t.linkedAccounts.filter(e=>"passkey"===e.type&&e.enrolledInMfa).sort((e,t)=>t.firstVerifiedAt.valueOf()-e.firstVerifiedAt.valueOf())[0],submitSuccess:k,hasBlockingError:m?.isBlocking??!1,error:m?.error,onClose:C,onBack:()=>{c(null),S(void 0)},handleSubmit:()=>v(b).catch(S)}):u?(0,l.jsx)(n.a,{submitSuccess:k,hasBlockingError:m?.isBlocking??!1,handleSubmitCode:v,selectedMethod:u,onClose:C,onBack:i.length>1?()=>c(null):void 0}):(0,l.jsx)(n.b,{mfaMethods:i,onSelect:p,handleClose:C}):null}}}]);

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.