PageSourceSearch

https://dynamic-lebkuchen-0238db.netlify.app/static/js/7237.948d4648.chunk.js

js dynamic-lebkuchen-0238db.netlify.app collected 2026-10-03 10:41:16 UTC 6,063 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkico_react=self.webpackChunkico_react||[]).push([[7237],{41548:(e,o,r)=>{r.d(o,{C:()=>c});var n=r(24107),t=r(15882),a=r(90034),l=r(52610),i=r(62988);const s=["children","color","isLoading","isPulsing"],c=e=>{let{children:o,color:r,isLoading:l,isPulsing:i}=e,c=(0,t.A)(e,s);return(0,a.jsx)(d,(0,n.A)((0,n.A)({$color:r,$isLoading:l,$isPulsing:i},c),{},{children:o}))};let d=l.I4.span.withConfig({displayName:"StyledSpan",componentId:"sc-80725f4-0"})(["padding:0.25rem;font-size:0.75rem;font-weight:500;line-height:1rem;border-radius:var(--privy-border-radius-xs);display:flex;align-items:center;"," ",""],e=>{let o,r;"green"===e.$color&&(o="var(--privy-color-success-dark)",r="var(--privy-color-success-light)"),"red"===e.$color&&(o="var(--privy-color-error)",r="var(--privy-color-error-light)"),"gray"===e.$color&&(o="var(--privy-color-foreground-2)",r="var(--privy-color-background-2)");let n=(0,l.i7)(["from,to{background-color:",";}50%{background-color:rgba(",",0.8);}"],r,r);return(0,l.AH)(["color:",";background-color:",";",";"],o,r,e.$isPulsing&&(0,l.AH)(["animation:"," 3s linear infinite;"],n))},i.L)},51278:(e,o,r)=>{r.r(o),r.d(o,{MfaAuthEnrollmentFlowScreen:()=>y,default:()=>y});var n=r(24107),t=r(90034),a=r(46695),l=r(30121),i=r(57722),s=r(67980),c=r(1991),d=r(33898),u=r(99844),h=r(49931),v=r(31176),m=r(179);r(2035),r(30549),r(88404),r(82425),r(82595),r(44036);const y={component:()=>{var e;let{user:o,ready:r}=(0,h.u)(),{data:y,onUserCloseViaDialogOrKeybindRef:f}=(0,h.a)(),g=(0,u.u)(),[p,x]=(0,i.useState)(null),[j,k]=(0,i.useState)(null),[b,w]=(0,i.useState)(null),[M,A]=(0,i.useState)(!1),[C,S]=(0,i.useState)(!1),[F,P]=(0,i.useState)(),$=async()=>{F?E(F):o?await L({user:o}):E(Error("Must be logged in to manage MFA")),setTimeout(()=>{x(null),k(null)},500)};if(f.current=$,null===y||void 0===y||!y.mfaEnroll)throw Error("Missing modal data for MFA enrollment screen.");let{onFailure:E,onSuccess:L,onBack:R,mfaMethods:T,verify:I,generateTotpSecret:B,enrollTotp:H,unenrollTotp:U,enrollPasskey:N}=y.mfaEnroll,O=null===o||void 0===o?void 0:o.mfaMethods.includes("sms"),W=null===o||void 0===o?void 0:o.mfaMethods.includes("totp"),_=null===o||void 0===o?void 0:o.mfaMethods.includes("passkey"),z=!(null===o||void 0===o||!o.phone),D=null!==(e=null===o||void 0===o?void 0:o.linkedAccounts.filter(e=>"passkey"===e.type).map(e=>e.credentialId))&&void 0!==e?e:[];function K(){x(null),k(null),P(void 0)}async function V(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D;try{P(void 0),S(!0);let o=await N(e);return await L({user:o})}catch(e){P(e)}finally{S(!1),A(!1)}}if(!r||!o||!g)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.M,{onClose:$,backFn:R},"header"),(0,t.jsx)(m.A,{children:(0,t.jsx)(v.M,{})}),(0,t.jsx)(m.C,{children:(0,t.jsx)(c.L,{})}),(0,t.jsx)(d.a,{})]});if("sms"===p)return null;if("totp"===p)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.M,{backFn:K,onClose:$},"header"),(0,t.jsx)(m.I,{style:{marginBottom:"1.5rem"},children:(0,t.jsx)(a.A,{})}),(0,t.jsx)(m.T,{children:"Remove authenticator app verification?"}),(0,t.jsxs)(m.S,{children:["MFA adds an extra layer of security to your ",null===g||void 0===g?void 0:g.name," account. Make sure you have other methods to secure your account."]}),(0,t.jsx)(m.B,{children:(0,t.jsx)(s.P,{$warn:!0,onClick:async function(){try{P(void 0),S(!0);let e=await U();return await L({user:e})}catch(e){P(e)}finally{S(!1),x(null)}},loading:C,children:"Remove"})}),(0,t.jsx)(d.a,{})]});if("passkey"===p){var q;let e=null===(q=y.mfaEnroll.shouldUnlinkOnUnenrollMfa)||void 0===q||q;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.M,{backFn:K,onClose:$},"header"),(0,t.jsx)(m.I,{style:{marginBottom:"1.5rem"},children:(0,t.jsx)(a.A,{})}),(0,t.jsx)(m.T,{children:"Are you sure you want to remove this passkey?"}),(0,t.jsx)(m.S,{children:e?"Removing your passkey will remove as both a verification method and a login method.":"Removing your passkey will remove as a verification method."}),(0,t.jsx)(m.B,{children:(0,t.jsx)(s.P,{$warn:!0,onClick:async function(){try{P(void 0),S(!0);let e=await N([]);return await L({user:e})}catch(e){P(e)}finally{S(!1),x(null)}},loading:C,children:"Remove"})}),(0,t.jsx)(d.a,{})]})}return 0!==T.length||O||W||_?"sms"===j?null:"totp"===j&&b?(0,t.jsx)(v.E,{onClose:$,onReset:K,submitEnrollmentWithTotp:e=>async function(e){try{P(void 0),S(!0);let o=await H(e);return await L({user:o})}catch(e){P(e)}finally{S(!1),x(null)}}(e.mfaCode),error:F,totpInfo:(0,n.A)((0,n.A)({},b),{},{appName:(null===g||void 0===g?void 0:g.name)||"Privy"})}):"passkey"===j?(0,t.jsx)(v.a,{onReset:K,onClose:$,submitEnrollmentWithPasskey:V}):(0,t.jsx)(v.b,{showIntro:!0,userMfaMethods:o.mfaMethods,appMfaMethods:g.mfa.methods,userHasAuthSms:z,backFn:R,handleSelectMethod:async function(e){P(void 0);try{await I()}catch(e){return void P(e)}return"totp"===e?(k(e),w(null),void B().then(e=>{let{totpSecret:o,totpAuthUrl:r}=e;w({authUrl:r,secret:o})}).catch(()=>{w(null),K()})):"passkey"===e&&1===D.length?await V():void k(e)},isTotpLoading:"totp"===j&&!b,isPasskeyLoading:M,error:F,onClose:$,setRemovingMfaMethod:async function(e){P(void 0);try{await I()}catch(e){return void P(e)}x(e)}}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.M,{onClose:$,backFn:R},"header"),(0,t.jsx)(m.I,{style:{marginBottom:"1.5rem"},children:(0,t.jsx)(l.A,{})}),(0,t.jsx)(m.T,{children:"Add more security"}),(0,t.jsxs)(m.S,{children:[null===g||void 0===g?void 0:g.name," does not have any verification methods enabled."]}),(0,t.jsx)(m.B,{children:(0,t.jsx)(s.P,{onClick:$,children:"Close"})}),(0,t.jsx)(d.a,{})]})}}},62988:(e,o,r)=>{r.d(o,{L:()=>a});var n=r(52610);let t=(0,n.i7)(["from,to{background:var(--privy-color-foreground-4);color:var(--privy-color-foreground-4);}50%{background:var(--privy-color-foreground-accent);color:var(--privy-color-foreground-accent);}"]);const a=(0,n.AH)(["",""],e=>e.$isLoading?(0,n.AH)(["width:35%;animation:"," 2s linear infinite;border-radius:var(--privy-border-radius-sm);"],t):"")}}]);
2//# sourceMappingURL=7237.948d4648.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.