PageSourceSearch

https://mybridge.com/_next/static/chunks/pages/auth/login/mfa/otp_app-2db2a86298b7e3c1.js

js mybridge.com collected 2026-10-01 15:26:21 UTC 6,020 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9437],{40239:(e,t,n)=>{"use strict";n.d(t,{U:()=>l});var i=n(37876),r=n(7620),o=n(58218),a=n(80427);let l=e=>{let{title:t,subtitle:n,children:a}=e;return(0,i.jsxs)(s,{children:[(0,i.jsxs)(c,{children:[(0,i.jsx)(o.o5u,{variant:"Headline",color:r.Ql,children:t}),n&&(0,i.jsx)(o.o5u,{variant:"UIBody2",color:o.pRV,children:n})]}),a]})},s=a.Ay.div.withConfig({componentId:"sc-e39ca9bd-0"})(["display:flex;flex-direction:column;align-items:stretch;width:375px;margin-inline:auto;padding-top:100px;gap:20px;"]),c=a.Ay.div.withConfig({componentId:"sc-e39ca9bd-1"})(["display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;white-space:pre-line;"])},48973:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>I,default:()=>L});var i=n(37876),r=n(40097),o=n(93678),a=n(40909),l=n(37106),s=n(40239),c=n(68085),d=n(95081),u=n(97398),p=n(89382),m=n(43901),f=n(99334),h=n(48230),g=n.n(h),x=n(89099),y=n(14232),w=n(83816),v=n(61649),_=n(20807),j=n(514),b=n(58218),A=n(80427),I=!0;let L=()=>{let{t:e}=(0,f.Bd)(),t=(0,x.useRouter)(),n=(0,u.J)(),h=(0,m.i)(),{mutateAsync:g}=(0,r.n)(l.p.verifyLogin("otp_app")),A=async t=>{try{let{user:e,device:i}=(0,d.Z)(await g({verificationToken:n.verificationToken,code:t.code}));(0,c.x)({name:"complete_mfaLogin",property:{mfa_method:"otp_app",login_method:n.loginMethod}}),await (0,w.l)({user:e,device:i,loginMethod:n.loginMethod}),window.location.href=(0,v.S)()}catch(t){if(!(t instanceof d.u)){(0,j.$)(t),(0,a.lC)(e("common.exception"));return}if("mfa_token_invalid"===t.code)return void h();if("retry_later"===t.code)return{message:t.message,isRetryLater:!0};if("invalid_params"===t.code||"mfa_not_registered"===t.code)return{message:t.message};(0,a.lC)(t.message)}};return(0,y.useEffect)(()=>{(0,c.x)({name:"view_mfaLoginVerify",property:{mfa_method:"otp_app"}})},[]),(0,i.jsx)(o.A,{children:(0,i.jsx)(s.U,{title:e("mfa.code.title.otpApp"),subtitle:e("mfa.code.description.otpApp"),children:(0,i.jsx)(p.D,{onSubmit:A,children:n=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(b.o5u,{variant:"UIBody3",color:b.wco,children:[e("mfa.code.help.prefix")," ",(0,i.jsx)(k,{href:{pathname:_.R.AUTH.LOGIN.MFA.EMAIL,query:t.query},children:e("mfa.code.help.otpApp")})]}),(0,i.jsx)(b.$nd,{type:"submit",variant:"primary",layout:"fullBlock",size:"big",isLoading:n.isSubmitting,disabled:n.isSubmitting||!n.isValid,children:e("mfa.code.confirm.signIn")})]})})})})},k=(0,A.Ay)(g()).withConfig({componentId:"sc-5f5360d0-0"})(["text-decoration:underline;text-underline-offset:2px;color:inherit;cursor:pointer;"])},61649:(e,t,n)=>{"use strict";n.d(t,{S:()=>o,j:()=>a});var i=n(38248),r=n(5513);let o=()=>{let e=(0,i.getCookie)((0,r.Wj)());return e?((0,i.deleteCookie)((0,r.Wj)(),{path:"/",domain:".mybridge.com"}),e):"/"},a=()=>{window.location.href="/auth/login"}},66966:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var i=n(14232);let r=e=>{let{from:t,forSeconds:n}=e,[r,o]=(0,i.useState)(()=>Date.now()),a=Math.max(r-t,0)/1e3,l=t>0,s=l?Math.max(Math.ceil(n-a),0):0;return((e,t)=>{let n=(0,i.useRef)(e);(0,i.useEffect)(()=>{n.current=e},[e]),(0,i.useEffect)(()=>{if(null===t)return;let e=setInterval(()=>n.current(),t);return()=>clearInterval(e)},[t])})(()=>o(Date.now()),s>0?1e3:null),{remainingSeconds:s,isExpired:l&&s<=0}}},75905:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/login/mfa/otp_app",function(){return n(48973)}])},83816:(e,t,n)=>{"use strict";n.d(t,{l:()=>s});var i=n(30473),r=n(81894),o=n(96496),a=n(60524),l=n(86112);let s=async e=>{var t,n,s;let{user:c,device:d,loginMethod:u}=e;(0,a.WG)(d.token);let p=c.externalUserId,m=c.id;p&&(null==(n=window.eventLogger)||n.identify(p)),m&&(null==(s=window.eventLogger)||s.options.userId.set(m)),i.A.setUserID(p),o.i.send("airbridge.user.signin"),null==(t=window.eventLogger)||t.logger({name:"complete_signIn",property:{method:u}}),(0,l.xm)(),"line"===u&&await (0,r.pL)({category:"signin"}).catch(()=>{})}},89382:(e,t,n)=>{"use strict";n.d(t,{D:()=>c});var i=n(37876),r=n(99334),o=n(14232),a=n(88992),l=n(66966),s=n(58218);let c=e=>{let{onSubmit:t,children:n}=e,{t:c}=(0,r.Bd)(),{register:d,handleSubmit:u,formState:{isValid:p,isSubmitting:m}}=(0,a.mN)({mode:"onChange",defaultValues:{code:""}}),[f,h]=(0,o.useState)(null),[g,x]=(0,o.useState)(0),{remainingSeconds:y}=(0,l.y)({from:g,forSeconds:30}),w=y>0,v=async e=>{let n=await t(e);h(null!=n?n:null),(null==n?void 0:n.isRetryLater)&&x(Date.now())};return(0,i.jsx)("form",{onSubmit:u(v),children:(0,i.jsxs)(s.son,{direction:"column",gap:20,align:"stretch",children:[(0,i.jsx)(s.son,{align:"stretch",children:(0,i.jsx)(s.ksK,{...d("code",{required:!0,minLength:6}),errorMessage:(()=>
1{if(f)return f.isRetryLater?w?"".concat(f.message,"\n").concat(c("mfa.code.error.retryLater",{seconds:y})):void 0:f.message})(),width:"100%",required:!0,label:c("mfa.code.input.label"),placeholder:c("mfa.code.input.placeholder"),maxLength:6})}),(0,i.jsx)(s.son,{direction:"column",gap:16,align:"stretch",children:n({isSubmitting:m,isValid:p&&!w})})]})})}},93678:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(37876);n(14232);var r=n(65457),o=n(7620),a=n(80427);let l=a.Ay.div.withConfig({componentId:"sc-e78438e-0"})(["display:flex;width:100%;height:70px;background-color:",";box-shadow:0 0 4px 0 rgba(0,0,0,0.15);justify-content:center;align-items:center;"],o.ON),s=()=>(0,i.jsx)(l,{children:(0,i.jsx)(r.A,{black:!0,large:!0})}),c=a.Ay.div.withConfig({componentId:"sc-675fc663-0"})(["display:flex;flex-direction:column;"]),d=a.Ay.div.withConfig({componentId:"sc-675fc663-1"})(["display:flex;justify-content:center;"]),u=e=>{let{children:t}=e;return(0,i.jsxs)(c,{children:[(0,i.jsx)(s,{}),(0,i.jsx)(d,{children:t})]})}},95081:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r,u:()=>i});class i extends Error{constructor(e,t){super(null!=t?t:void 0),this.code=e}}let r=e=>{if("ok"!==e.code)throw new i(e.code,e.message);return e.data}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=75905)),_N_E=e.O()}]);
2//# sourceMappingURL=otp_app-2db2a86298b7e3c1.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.