1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"063aaf048f1ae82a7b8dbd2e63ca89a43af9573a"};var s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="5bd15f58-0459-43a6-9d46-ba1315e1fb1c",e._sentryDebugIdIdentifier="sentry-dbid-5bd15f58-0459-43a6-9d46-ba1315e1fb1c")}catch(e){}}(),(self.webpackChunklalalai_web_www=self.webpackChunklalalai_web_www||[]).push([[3806],{32803(e,s,t){t.d(s,{SetupMfaPopup:()=>re});var n=t(74848),i=t(71468),a=t(98383),r=t(34449),l=t(32054),o=t(16744),c=t(19318),d=t(35739),u=t(35939),f=t(36760),h=t(32422),j=t(71103),p=t(9813),x=t(12243),b=t(91978),g=t(58822),m=t(54705),y=t(41890),w=t(18403),C=t(40587);function T(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);s&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,n)}return t}function S(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?T(Object(t),!0).forEach(function(s){(0,m.A)(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):T(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function O(){const e=function(){const e=(0,r.j)(),s=(0,r.G)(l.j.getMfaSetupVerifyStatus),t=(0,r.G)(l.j.getMfaVerifyLockedUntil);return(0,C.I)({status:s,lockedUntil:t,onComplete:s=>e((0,w.z)({code:s})),onFocus:()=>e((0,o.Q5)())})}(),s=e.otpInputProps,t=e.timerText;return(0,n.jsxs)(h.T,{fullWidth:!0,align:"center",gap:16,children:[t&&(0,n.jsx)(g.E,{as:"span",size:"small",color:"secondary",align:"center",children:t}),(0,n.jsx)(y.I,S({},s))]})}const E="T4dz2coP",P="y30ZJeGc";function W(){const e=(0,r.j)();return(0,n.jsxs)(h.T,{className:E,fullWidth:!0,gap:20,justify:"between",children:[(0,n.jsxs)(b.z,{gap:20,fullWidth:!0,justify:"between",children:[(0,n.jsxs)(h.T,{fullWidth:!0,gap:20,children:[(0,n.jsx)(x.$,{size:"sm",color:"tertiary",isIconOnly:!0,onPress:()=>e((0,o.ap)("startMfaSetup")),children:(0,n.jsx)(p.A,{className:P})}),(0,n.jsxs)(h.T,{fullWidth:!0,gap:16,children:[(0,n.jsx)(g.E,{as:"h3",size:"xxxlarge",color:"primary",children:j.o.multiFactorAuth.enterYourVerificationCode}),(0,n.jsx)(g.E,{as:"p",size:"medium",color:"primary",children:j.o.multiFactorAuth.findAuthCode})]})]}),(0,n.jsx)(f.a.CloseButton,{})]}),(0,n.jsx)(O,{})]})}var z=t(64720),D=t(5544),A=t(96540),k=t(43205),v=t(56177),M=t(46081),N=t(18936),I=t(3877),G=t(96270),F=t(60097),Q=t(13819),_=t(3571);const B="WmvZds5b";function L(){const e=function(){const e=(0,r.j)(),s=(0,r.G)(l.j.getMfaSetupActivateStatus);return{backupCodes:(0,r.G)(l.j.getMfaBackupCodes),isLoading:"fetching"===s,handleActivate:function(){e((0,Q.H)()).unwrap().then(()=>e(_.Xp.setIsMfaEnabled(!0)))}}}(),s=e.backupCodes,t=e.isLoading,i=e.handleActivate,a=(0,A.useState)(!1),o=(0,D.A)(a,2),c=o[0],d=o[1],u=(0,A.useState)(!1),f=(0,D.A)(u,2),p=f[0],m=f[1],y=s.join("\n"),w=(0,A.useCallback)(async()=>{p||await(0,k.E)({text:y,onSuccess:()=>{m(!0),setTimeout(()=>m(!1),3e3)}})}
1,[y,p]),C=(0,A.useCallback)(()=>{(0,v.Q)(y)},[y]),T=(0,A.useCallback)(()=>(0,M.s)({text:y,onError:()=>(0,I.m)({type:"error",content:j.o.disallowedPopupError})}),[y]);return(0,n.jsxs)(h.T,{fullWidth:!0,gap:16,justify:"between",fullHeight:!0,className:B,children:[(0,n.jsxs)(h.T,{fullWidth:!0,gap:16,children:[(0,n.jsx)(g.E,{as:"p",size:"medium",children:z.T.backupCodesDescription}),(0,n.jsxs)(h.T,{fullWidth:!0,gap:12,children:[(0,n.jsx)(g.E,{as:"span",size:"base",children:s.join(", ")}),(0,n.jsxs)(b.z,{gap:16,children:[(0,n.jsxs)(F.m,{isOpen:p,onOpenChange:m,isDisabled:!0,shouldCloseOnPress:!1,children:[(0,n.jsx)(G.Q,{size:"md",color:"quaternary",onPress:w,isDisabled:!y,children:z.T.copy}),(0,n.jsxs)(F.m.Content,{children:[(0,n.jsx)(F.m.Arrow,{}),j.o.referral.confirmation]})]}),(0,n.jsx)(G.Q,{size:"md",color:"quaternary",onPress:C,isDisabled:!y,children:z.T.download}),(0,n.jsx)(G.Q,{isDisabled:!y,size:"md",color:"quaternary",onPress:T,children:z.T.print})]})]})]}),(0,n.jsxs)(h.T,{fullWidth:!0,gap:24,children:[(0,n.jsx)(N.S,{text:z.T.backupCodesCheckboxLabel,isSelected:c,onChange:()=>d(!c)}),(0,n.jsx)(x.$,{fullWidth:!0,isPending:t,isDisabled:!c,onPress:i,children:z.T.enableMfaAction})]})]})}function q(){return(0,n.jsxs)(h.T,{className:E,fullWidth:!0,gap:16,children:[(0,n.jsxs)(b.z,{gap:20,fullWidth:!0,justify:"between",children:[(0,n.jsx)(g.E,{as:"h3",size:"xxxlarge",color:"primary",children:z.T.saveCodesInSafe}),(0,n.jsx)(f.a.CloseButton,{})]}),(0,n.jsx)(L,{})]})}var H=t(81319),K=t(51637),R=t(91367),V=t(49652),Y=t(6245);const $="rHXt15P7",U="MOjiWJ4d",X="LpkK9C2O",J="wQzgKOQb",Z="cDW2mBNW";function ee(){const e=(0,r.j)(),s=function(){const e=(0,r.j)(),s=(0,r.G)(l.j.getMfaSetupData),t=(0,r.G)(l.j.getSetupSessionExpiresAt),n=(0,r.G)(l.j.getMfaSetupStartStatus),i=(0,r.G)(Y.A.getIsTwoFactorAuthenticationEnabled),a=null!==t&&Date.now()>1e3*t;return(0,A.useEffect)(()=>{if(s&&!a||i)return;const t=e((0,V.q)());return()=>t.abort()},[]),{setupData:s,isLoading:"fetching"===n,isFailed:"failed"===n}}(),t=s.setupData,i=s.isLoading,a=(0,A.useState)(!1),c=(0,D.A)(a,2),d=c[0],u=c[1],f=(0,A.useCallback)(async()=>{if(!t||d)return;const e=t.secret.split(" ").join("");await(0,k.E)({text:e,onSuccess:()=>{u(!0),setTimeout(()=>u(!1),3e3)}})},[t,d]),p=i||!t;return(0,n.jsxs)(h.T,{fullWidth:!0,gap:24,children:[(0,n.jsxs)(R.s,{className:$,fullWidth:!0,gap:20,justify:"between",align:"start",children:[(0,n.jsx)(h.T,{children:p?(0,n.jsx)(K.E,{variant:"rounded",width:160,height:16,borderRadius:"4px"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g.E,{as:"span",color:"primary",size:"medium",children:z.T.setupTwoFactorAuthDescription}),(0,n.jsxs)(F.m,{isOpen:d,onOpenChange:u,isDisabled:!0,shouldCloseOnPress:!1,children:[(0,n.jsxs)(G.Q,{size:"md",className:J,onPress:f,children:[t.secret.split(" ").join(" "),(0,n.jsx)(H.A,{className:Z})]}),(0,n.jsxs)(F.m.Content,{placement:"bottom",children:[(0,n.jsx)(F.m.Arrow,{}),j.o.referral.confirmation]})]})]})}),(0,n.jsx)(b.z,{className:U,children:p?(0,n.jsx)(K.E,{variant:"rounded",className:X}):(0,n.jsx)("img",{src:t.qrCodeDataUri,alt:"Scan this QR code in your authenticator app",className:X})})]}),(0,n.jsx)(x.$,{fullWidth:!0,isDisabled:i||!t,onPress:()=>e((0,o.ap)("enterCode")),children:j.o.continueButton})]})}function se(){return(0,n.jsxs)(h.T,{className:E,fullWidth:!0,gap:20,justify:"between",children:[(0,n.jsxs)(b.z,{gap:20,fullWidth:!0,justify:"between",children:[(0,n.jsx)(g.E,{as:"h3",size:"xxxlarge",color:"primary",children:z.T.setupTwoFactorAuth}),(0,n.jsx)(f.a.CloseButton,{})]}),(0,n.jsx)(ee,{})]})}function te(){const e=(0,r.j)();return(0,n.jsxs)(h.T,{className:E,fullWidth:!0,gap:20,justify:"between",children:[(0,n.jsxs)(b.z,{gap:20,fullWidth:!0,justify:"between",children:[(0,n.jsxs)(h.T,{fullWidth:!0,gap:16,children:[(0,n.jsx)(g.E,{as:"h3",size:"xxxlarge",color:"primary",children:z.T.mfaIsEnabled}),(0,n.jsx)(g.E,{as:"p",size:"medium",children:z.T.mfaIsEnabledDescription})]}),(0,n.jsx)(f.a.CloseButton,{})]}),(0,n.jsx)(b.z,{fullWidth:!0,children:(0,n.jsx)(x.$,{fullWidth:!0,onPress:function(){e((0,d.YK)("setupMfa")),e((0,o.ap)("startMfaSetup")),e((0,o.c3)()),e((0,o.PC)())},children:j.o.status.finish})})]})}function ne(){const e=(0,r.G)(l.j.getSetupMfaScreen);return"enterCode"===e?(0,n.jsx)(W,{}):"saveBackupCodes"===e?(0,n.jsx)(q,{}):"successEnabled"===e?(0,n.jsx)(te,{}):(0,n.jsx)(se,{})}const ie="vc43iFX9",ae="Fwp1ODj7";function re(){const e=(0,r.j)(),s=(0,r.G)(l.j.getMfaSetupVerifyStatus),t=(0,r.G)(l.j.getSetupNotification),j=(0,i.d4)(c.Q.getIsModalOpenSelector("setupMfa"));let p;return t&&(p={notification:t,handleClose:()=>e((0,o.PC)())}),(0,n.jsx)(f.a,{isOpen:j,setIsOpen:function(){e((0,d.YK)("setupMfa")),e((0,o.PC)())},modalNotification:p,children:(0,n.jsxs)(h.T,{className:(0,a.A)(ie,"light"),fullWidth:!0,fullHeight:!0,children:[(0,n.jsx)(ne,{}),"fetching"===s&&(0,n.jsx)(u.v,{className:ae})]})})}}}]); 2//# sourceMappingURL=SetupMfaPopupAsync-9729a2952ebc9c441943.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.